configure revision b4485a66
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for xkbutils 1.0.4.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if 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
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_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.
47if 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 --'
51elif (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'
54else
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'
74fi
75
76# The user is always right.
77if 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  }
83fi
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.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
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
104IFS=$as_save_IFS
105
106     ;;
107esac
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.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
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.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if 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
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test 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
177test \$(( 1 + 1 )) = 2 || exit 1"
178  if (eval "$as_required") 2>/dev/null; then :
179  as_have_required=yes
180else
181  as_have_required=no
182fi
183  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189do
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
203fi
204fi
205	   done;;
206       esac
207  as_found=false
208done
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
212fi; }
213IFS=$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+"$@"}
232fi
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
249fi
250fi
251fi
252SHELL=${CONFIG_SHELL-/bin/sh}
253export SHELL
254# Unset more variables known to interfere with behavior of common tools.
255CLICOLOR_FORCE= GREP_OPTIONS=
256unset CLICOLOR_FORCE GREP_OPTIONS
257
258## --------------------- ##
259## M4sh Shell Functions. ##
260## --------------------- ##
261# as_fn_unset VAR
262# ---------------
263# Portably unset VAR.
264as_fn_unset ()
265{
266  { eval $1=; unset $1;}
267}
268as_unset=as_fn_unset
269
270# as_fn_set_status STATUS
271# -----------------------
272# Set $? to STATUS, without forking.
273as_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.
281as_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.
291as_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.
341if (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  }'
346else
347  as_fn_append ()
348  {
349    eval $1=\$$1\$2
350  }
351fi # 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.
358if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359  eval 'as_fn_arith ()
360  {
361    as_val=$(( $* ))
362  }'
363else
364  as_fn_arith ()
365  {
366    as_val=`expr "$@" || test $? -eq 1`
367  }
368fi # 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.
376as_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
387if expr a : '\(a\)' >/dev/null 2>&1 &&
388   test "X`expr 00001 : '.*\(...\)'`" = X001; then
389  as_expr=expr
390else
391  as_expr=false
392fi
393
394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395  as_basename=basename
396else
397  as_basename=false
398fi
399
400if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401  as_dirname=dirname
402else
403  as_dirname=false
404fi
405
406as_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.
426as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429as_cr_digits='0123456789'
430as_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
464ECHO_C= ECHO_N= ECHO_T=
465case `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';;
475esac
476
477rm -f conf$$ conf$$.exe conf$$.file
478if test -d conf$$.dir; then
479  rm -f conf$$.dir/conf$$.file
480else
481  rm -f conf$$.dir
482  mkdir conf$$.dir 2>/dev/null
483fi
484if (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
498else
499  as_ln_s='cp -p'
500fi
501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502rmdir conf$$.dir 2>/dev/null
503
504if mkdir -p . 2>/dev/null; then
505  as_mkdir_p='mkdir -p "$as_dir"'
506else
507  test -d ./-p && rmdir ./-p
508  as_mkdir_p=false
509fi
510
511if test -x / >/dev/null 2>&1; then
512  as_test_x='test -x'
513else
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  '
531fi
532as_executable_p=$as_test_x
533
534# Sed expression to map a string onto a valid CPP name.
535as_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.
538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540
541test -n "$DJDIR" || exec 7<&0 </dev/null
542exec 6>&1
543
544# Name of the host.
545# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546# so uname gets run too.
547ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548
549#
550# Initializations.
551#
552ac_default_prefix=/usr/local
553ac_clean_files=
554ac_config_libobj_dir=.
555LIBOBJS=
556cross_compiling=no
557subdirs=
558MFLAGS=
559MAKEFLAGS=
560
561# Identity of this package.
562PACKAGE_NAME='xkbutils'
563PACKAGE_TARNAME='xkbutils'
564PACKAGE_VERSION='1.0.4'
565PACKAGE_STRING='xkbutils 1.0.4'
566PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567PACKAGE_URL=''
568
569ac_unique_file="Makefile.am"
570# Factoring default headers for most tests.
571ac_includes_default="\
572#include <stdio.h>
573#ifdef HAVE_SYS_TYPES_H
574# include <sys/types.h>
575#endif
576#ifdef HAVE_SYS_STAT_H
577# include <sys/stat.h>
578#endif
579#ifdef STDC_HEADERS
580# include <stdlib.h>
581# include <stddef.h>
582#else
583# ifdef HAVE_STDLIB_H
584#  include <stdlib.h>
585# endif
586#endif
587#ifdef HAVE_STRING_H
588# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589#  include <memory.h>
590# endif
591# include <string.h>
592#endif
593#ifdef HAVE_STRINGS_H
594# include <strings.h>
595#endif
596#ifdef HAVE_INTTYPES_H
597# include <inttypes.h>
598#endif
599#ifdef HAVE_STDINT_H
600# include <stdint.h>
601#endif
602#ifdef HAVE_UNISTD_H
603# include <unistd.h>
604#endif"
605
606ac_subst_vars='am__EXEEXT_FALSE
607am__EXEEXT_TRUE
608LTLIBOBJS
609LIBOBJS
610XKBWATCH_LIBS
611XKBWATCH_CFLAGS
612XKBBELL_LIBS
613XKBBELL_CFLAGS
614XKBVLEDS_LIBS
615XKBVLEDS_CFLAGS
616AM_BACKSLASH
617AM_DEFAULT_VERBOSITY
618MAN_SUBSTS
619XORG_MAN_PAGE
620ADMIN_MAN_DIR
621DRIVER_MAN_DIR
622MISC_MAN_DIR
623FILE_MAN_DIR
624LIB_MAN_DIR
625APP_MAN_DIR
626ADMIN_MAN_SUFFIX
627DRIVER_MAN_SUFFIX
628MISC_MAN_SUFFIX
629FILE_MAN_SUFFIX
630LIB_MAN_SUFFIX
631APP_MAN_SUFFIX
632SED
633host_os
634host_vendor
635host_cpu
636host
637build_os
638build_vendor
639build_cpu
640build
641INSTALL_CMD
642PKG_CONFIG
643CHANGELOG_CMD
644STRICT_CFLAGS
645CWARNFLAGS
646BASE_CFLAGS
647EGREP
648GREP
649CPP
650am__fastdepCC_FALSE
651am__fastdepCC_TRUE
652CCDEPMODE
653am__nodep
654AMDEPBACKSLASH
655AMDEP_FALSE
656AMDEP_TRUE
657am__quote
658am__include
659DEPDIR
660OBJEXT
661EXEEXT
662ac_ct_CC
663CPPFLAGS
664LDFLAGS
665CFLAGS
666CC
667MAINT
668MAINTAINER_MODE_FALSE
669MAINTAINER_MODE_TRUE
670am__untar
671am__tar
672AMTAR
673am__leading_dot
674SET_MAKE
675AWK
676mkdir_p
677MKDIR_P
678INSTALL_STRIP_PROGRAM
679STRIP
680install_sh
681MAKEINFO
682AUTOHEADER
683AUTOMAKE
684AUTOCONF
685ACLOCAL
686VERSION
687PACKAGE
688CYGPATH_W
689am__isrc
690INSTALL_DATA
691INSTALL_SCRIPT
692INSTALL_PROGRAM
693target_alias
694host_alias
695build_alias
696LIBS
697ECHO_T
698ECHO_N
699ECHO_C
700DEFS
701mandir
702localedir
703libdir
704psdir
705pdfdir
706dvidir
707htmldir
708infodir
709docdir
710oldincludedir
711includedir
712localstatedir
713sharedstatedir
714sysconfdir
715datadir
716datarootdir
717libexecdir
718sbindir
719bindir
720program_transform_name
721prefix
722exec_prefix
723PACKAGE_URL
724PACKAGE_BUGREPORT
725PACKAGE_STRING
726PACKAGE_VERSION
727PACKAGE_TARNAME
728PACKAGE_NAME
729PATH_SEPARATOR
730SHELL'
731ac_subst_files=''
732ac_user_opts='
733enable_option_checking
734enable_maintainer_mode
735enable_dependency_tracking
736enable_selective_werror
737enable_strict_compilation
738enable_silent_rules
739'
740      ac_precious_vars='build_alias
741host_alias
742target_alias
743CC
744CFLAGS
745LDFLAGS
746LIBS
747CPPFLAGS
748CPP
749PKG_CONFIG
750XKBVLEDS_CFLAGS
751XKBVLEDS_LIBS
752XKBBELL_CFLAGS
753XKBBELL_LIBS
754XKBWATCH_CFLAGS
755XKBWATCH_LIBS'
756
757
758# Initialize some variables set by options.
759ac_init_help=
760ac_init_version=false
761ac_unrecognized_opts=
762ac_unrecognized_sep=
763# The variables have the same names as the options, with
764# dashes changed to underlines.
765cache_file=/dev/null
766exec_prefix=NONE
767no_create=
768no_recursion=
769prefix=NONE
770program_prefix=NONE
771program_suffix=NONE
772program_transform_name=s,x,x,
773silent=
774site=
775srcdir=
776verbose=
777x_includes=NONE
778x_libraries=NONE
779
780# Installation directory options.
781# These are left unexpanded so users can "make install exec_prefix=/foo"
782# and all the variables that are supposed to be based on exec_prefix
783# by default will actually change.
784# Use braces instead of parens because sh, perl, etc. also accept them.
785# (The list follows the same order as the GNU Coding Standards.)
786bindir='${exec_prefix}/bin'
787sbindir='${exec_prefix}/sbin'
788libexecdir='${exec_prefix}/libexec'
789datarootdir='${prefix}/share'
790datadir='${datarootdir}'
791sysconfdir='${prefix}/etc'
792sharedstatedir='${prefix}/com'
793localstatedir='${prefix}/var'
794includedir='${prefix}/include'
795oldincludedir='/usr/include'
796docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
797infodir='${datarootdir}/info'
798htmldir='${docdir}'
799dvidir='${docdir}'
800pdfdir='${docdir}'
801psdir='${docdir}'
802libdir='${exec_prefix}/lib'
803localedir='${datarootdir}/locale'
804mandir='${datarootdir}/man'
805
806ac_prev=
807ac_dashdash=
808for ac_option
809do
810  # If the previous option needs an argument, assign it.
811  if test -n "$ac_prev"; then
812    eval $ac_prev=\$ac_option
813    ac_prev=
814    continue
815  fi
816
817  case $ac_option in
818  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
819  *=)   ac_optarg= ;;
820  *)    ac_optarg=yes ;;
821  esac
822
823  # Accept the important Cygnus configure options, so we can diagnose typos.
824
825  case $ac_dashdash$ac_option in
826  --)
827    ac_dashdash=yes ;;
828
829  -bindir | --bindir | --bindi | --bind | --bin | --bi)
830    ac_prev=bindir ;;
831  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
832    bindir=$ac_optarg ;;
833
834  -build | --build | --buil | --bui | --bu)
835    ac_prev=build_alias ;;
836  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
837    build_alias=$ac_optarg ;;
838
839  -cache-file | --cache-file | --cache-fil | --cache-fi \
840  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
841    ac_prev=cache_file ;;
842  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
843  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
844    cache_file=$ac_optarg ;;
845
846  --config-cache | -C)
847    cache_file=config.cache ;;
848
849  -datadir | --datadir | --datadi | --datad)
850    ac_prev=datadir ;;
851  -datadir=* | --datadir=* | --datadi=* | --datad=*)
852    datadir=$ac_optarg ;;
853
854  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
855  | --dataroo | --dataro | --datar)
856    ac_prev=datarootdir ;;
857  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
858  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
859    datarootdir=$ac_optarg ;;
860
861  -disable-* | --disable-*)
862    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
863    # Reject names that are not valid shell variable names.
864    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
865      as_fn_error $? "invalid feature name: $ac_useropt"
866    ac_useropt_orig=$ac_useropt
867    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
868    case $ac_user_opts in
869      *"
870"enable_$ac_useropt"
871"*) ;;
872      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
873	 ac_unrecognized_sep=', ';;
874    esac
875    eval enable_$ac_useropt=no ;;
876
877  -docdir | --docdir | --docdi | --doc | --do)
878    ac_prev=docdir ;;
879  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
880    docdir=$ac_optarg ;;
881
882  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
883    ac_prev=dvidir ;;
884  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
885    dvidir=$ac_optarg ;;
886
887  -enable-* | --enable-*)
888    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
889    # Reject names that are not valid shell variable names.
890    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
891      as_fn_error $? "invalid feature name: $ac_useropt"
892    ac_useropt_orig=$ac_useropt
893    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
894    case $ac_user_opts in
895      *"
896"enable_$ac_useropt"
897"*) ;;
898      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
899	 ac_unrecognized_sep=', ';;
900    esac
901    eval enable_$ac_useropt=\$ac_optarg ;;
902
903  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
904  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
905  | --exec | --exe | --ex)
906    ac_prev=exec_prefix ;;
907  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
908  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
909  | --exec=* | --exe=* | --ex=*)
910    exec_prefix=$ac_optarg ;;
911
912  -gas | --gas | --ga | --g)
913    # Obsolete; use --with-gas.
914    with_gas=yes ;;
915
916  -help | --help | --hel | --he | -h)
917    ac_init_help=long ;;
918  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
919    ac_init_help=recursive ;;
920  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
921    ac_init_help=short ;;
922
923  -host | --host | --hos | --ho)
924    ac_prev=host_alias ;;
925  -host=* | --host=* | --hos=* | --ho=*)
926    host_alias=$ac_optarg ;;
927
928  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
929    ac_prev=htmldir ;;
930  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
931  | --ht=*)
932    htmldir=$ac_optarg ;;
933
934  -includedir | --includedir | --includedi | --included | --include \
935  | --includ | --inclu | --incl | --inc)
936    ac_prev=includedir ;;
937  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
938  | --includ=* | --inclu=* | --incl=* | --inc=*)
939    includedir=$ac_optarg ;;
940
941  -infodir | --infodir | --infodi | --infod | --info | --inf)
942    ac_prev=infodir ;;
943  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
944    infodir=$ac_optarg ;;
945
946  -libdir | --libdir | --libdi | --libd)
947    ac_prev=libdir ;;
948  -libdir=* | --libdir=* | --libdi=* | --libd=*)
949    libdir=$ac_optarg ;;
950
951  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
952  | --libexe | --libex | --libe)
953    ac_prev=libexecdir ;;
954  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
955  | --libexe=* | --libex=* | --libe=*)
956    libexecdir=$ac_optarg ;;
957
958  -localedir | --localedir | --localedi | --localed | --locale)
959    ac_prev=localedir ;;
960  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
961    localedir=$ac_optarg ;;
962
963  -localstatedir | --localstatedir | --localstatedi | --localstated \
964  | --localstate | --localstat | --localsta | --localst | --locals)
965    ac_prev=localstatedir ;;
966  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
967  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
968    localstatedir=$ac_optarg ;;
969
970  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
971    ac_prev=mandir ;;
972  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
973    mandir=$ac_optarg ;;
974
975  -nfp | --nfp | --nf)
976    # Obsolete; use --without-fp.
977    with_fp=no ;;
978
979  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
980  | --no-cr | --no-c | -n)
981    no_create=yes ;;
982
983  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
984  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
985    no_recursion=yes ;;
986
987  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
988  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
989  | --oldin | --oldi | --old | --ol | --o)
990    ac_prev=oldincludedir ;;
991  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
992  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
993  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
994    oldincludedir=$ac_optarg ;;
995
996  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
997    ac_prev=prefix ;;
998  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
999    prefix=$ac_optarg ;;
1000
1001  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1002  | --program-pre | --program-pr | --program-p)
1003    ac_prev=program_prefix ;;
1004  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1005  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1006    program_prefix=$ac_optarg ;;
1007
1008  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1009  | --program-suf | --program-su | --program-s)
1010    ac_prev=program_suffix ;;
1011  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1012  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1013    program_suffix=$ac_optarg ;;
1014
1015  -program-transform-name | --program-transform-name \
1016  | --program-transform-nam | --program-transform-na \
1017  | --program-transform-n | --program-transform- \
1018  | --program-transform | --program-transfor \
1019  | --program-transfo | --program-transf \
1020  | --program-trans | --program-tran \
1021  | --progr-tra | --program-tr | --program-t)
1022    ac_prev=program_transform_name ;;
1023  -program-transform-name=* | --program-transform-name=* \
1024  | --program-transform-nam=* | --program-transform-na=* \
1025  | --program-transform-n=* | --program-transform-=* \
1026  | --program-transform=* | --program-transfor=* \
1027  | --program-transfo=* | --program-transf=* \
1028  | --program-trans=* | --program-tran=* \
1029  | --progr-tra=* | --program-tr=* | --program-t=*)
1030    program_transform_name=$ac_optarg ;;
1031
1032  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1033    ac_prev=pdfdir ;;
1034  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1035    pdfdir=$ac_optarg ;;
1036
1037  -psdir | --psdir | --psdi | --psd | --ps)
1038    ac_prev=psdir ;;
1039  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1040    psdir=$ac_optarg ;;
1041
1042  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1043  | -silent | --silent | --silen | --sile | --sil)
1044    silent=yes ;;
1045
1046  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1047    ac_prev=sbindir ;;
1048  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1049  | --sbi=* | --sb=*)
1050    sbindir=$ac_optarg ;;
1051
1052  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1053  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1054  | --sharedst | --shareds | --shared | --share | --shar \
1055  | --sha | --sh)
1056    ac_prev=sharedstatedir ;;
1057  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1058  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1059  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1060  | --sha=* | --sh=*)
1061    sharedstatedir=$ac_optarg ;;
1062
1063  -site | --site | --sit)
1064    ac_prev=site ;;
1065  -site=* | --site=* | --sit=*)
1066    site=$ac_optarg ;;
1067
1068  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1069    ac_prev=srcdir ;;
1070  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1071    srcdir=$ac_optarg ;;
1072
1073  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1074  | --syscon | --sysco | --sysc | --sys | --sy)
1075    ac_prev=sysconfdir ;;
1076  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1077  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1078    sysconfdir=$ac_optarg ;;
1079
1080  -target | --target | --targe | --targ | --tar | --ta | --t)
1081    ac_prev=target_alias ;;
1082  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1083    target_alias=$ac_optarg ;;
1084
1085  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1086    verbose=yes ;;
1087
1088  -version | --version | --versio | --versi | --vers | -V)
1089    ac_init_version=: ;;
1090
1091  -with-* | --with-*)
1092    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1093    # Reject names that are not valid shell variable names.
1094    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1095      as_fn_error $? "invalid package name: $ac_useropt"
1096    ac_useropt_orig=$ac_useropt
1097    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098    case $ac_user_opts in
1099      *"
1100"with_$ac_useropt"
1101"*) ;;
1102      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1103	 ac_unrecognized_sep=', ';;
1104    esac
1105    eval with_$ac_useropt=\$ac_optarg ;;
1106
1107  -without-* | --without-*)
1108    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1109    # Reject names that are not valid shell variable names.
1110    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1111      as_fn_error $? "invalid package name: $ac_useropt"
1112    ac_useropt_orig=$ac_useropt
1113    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1114    case $ac_user_opts in
1115      *"
1116"with_$ac_useropt"
1117"*) ;;
1118      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1119	 ac_unrecognized_sep=', ';;
1120    esac
1121    eval with_$ac_useropt=no ;;
1122
1123  --x)
1124    # Obsolete; use --with-x.
1125    with_x=yes ;;
1126
1127  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1128  | --x-incl | --x-inc | --x-in | --x-i)
1129    ac_prev=x_includes ;;
1130  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1131  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1132    x_includes=$ac_optarg ;;
1133
1134  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1135  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1136    ac_prev=x_libraries ;;
1137  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1138  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1139    x_libraries=$ac_optarg ;;
1140
1141  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1142Try \`$0 --help' for more information"
1143    ;;
1144
1145  *=*)
1146    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1147    # Reject names that are not valid shell variable names.
1148    case $ac_envvar in #(
1149      '' | [0-9]* | *[!_$as_cr_alnum]* )
1150      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1151    esac
1152    eval $ac_envvar=\$ac_optarg
1153    export $ac_envvar ;;
1154
1155  *)
1156    # FIXME: should be removed in autoconf 3.0.
1157    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1158    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1159      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1160    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1161    ;;
1162
1163  esac
1164done
1165
1166if test -n "$ac_prev"; then
1167  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1168  as_fn_error $? "missing argument to $ac_option"
1169fi
1170
1171if test -n "$ac_unrecognized_opts"; then
1172  case $enable_option_checking in
1173    no) ;;
1174    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1175    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1176  esac
1177fi
1178
1179# Check all directory arguments for consistency.
1180for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1181		datadir sysconfdir sharedstatedir localstatedir includedir \
1182		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1183		libdir localedir mandir
1184do
1185  eval ac_val=\$$ac_var
1186  # Remove trailing slashes.
1187  case $ac_val in
1188    */ )
1189      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1190      eval $ac_var=\$ac_val;;
1191  esac
1192  # Be sure to have absolute directory names.
1193  case $ac_val in
1194    [\\/$]* | ?:[\\/]* )  continue;;
1195    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1196  esac
1197  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1198done
1199
1200# There might be people who depend on the old broken behavior: `$host'
1201# used to hold the argument of --host etc.
1202# FIXME: To remove some day.
1203build=$build_alias
1204host=$host_alias
1205target=$target_alias
1206
1207# FIXME: To remove some day.
1208if test "x$host_alias" != x; then
1209  if test "x$build_alias" = x; then
1210    cross_compiling=maybe
1211    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1212    If a cross compiler is detected then cross compile mode will be used" >&2
1213  elif test "x$build_alias" != "x$host_alias"; then
1214    cross_compiling=yes
1215  fi
1216fi
1217
1218ac_tool_prefix=
1219test -n "$host_alias" && ac_tool_prefix=$host_alias-
1220
1221test "$silent" = yes && exec 6>/dev/null
1222
1223
1224ac_pwd=`pwd` && test -n "$ac_pwd" &&
1225ac_ls_di=`ls -di .` &&
1226ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1227  as_fn_error $? "working directory cannot be determined"
1228test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1229  as_fn_error $? "pwd does not report name of working directory"
1230
1231
1232# Find the source files, if location was not specified.
1233if test -z "$srcdir"; then
1234  ac_srcdir_defaulted=yes
1235  # Try the directory containing this script, then the parent directory.
1236  ac_confdir=`$as_dirname -- "$as_myself" ||
1237$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1238	 X"$as_myself" : 'X\(//\)[^/]' \| \
1239	 X"$as_myself" : 'X\(//\)$' \| \
1240	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1241$as_echo X"$as_myself" |
1242    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1243	    s//\1/
1244	    q
1245	  }
1246	  /^X\(\/\/\)[^/].*/{
1247	    s//\1/
1248	    q
1249	  }
1250	  /^X\(\/\/\)$/{
1251	    s//\1/
1252	    q
1253	  }
1254	  /^X\(\/\).*/{
1255	    s//\1/
1256	    q
1257	  }
1258	  s/.*/./; q'`
1259  srcdir=$ac_confdir
1260  if test ! -r "$srcdir/$ac_unique_file"; then
1261    srcdir=..
1262  fi
1263else
1264  ac_srcdir_defaulted=no
1265fi
1266if test ! -r "$srcdir/$ac_unique_file"; then
1267  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1268  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1269fi
1270ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1271ac_abs_confdir=`(
1272	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1273	pwd)`
1274# When building in place, set srcdir=.
1275if test "$ac_abs_confdir" = "$ac_pwd"; then
1276  srcdir=.
1277fi
1278# Remove unnecessary trailing slashes from srcdir.
1279# Double slashes in file names in object file debugging info
1280# mess up M-x gdb in Emacs.
1281case $srcdir in
1282*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1283esac
1284for ac_var in $ac_precious_vars; do
1285  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1286  eval ac_env_${ac_var}_value=\$${ac_var}
1287  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1288  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1289done
1290
1291#
1292# Report the --help message.
1293#
1294if test "$ac_init_help" = "long"; then
1295  # Omit some internal or obsolete options to make the list less imposing.
1296  # This message is too long to be a string in the A/UX 3.1 sh.
1297  cat <<_ACEOF
1298\`configure' configures xkbutils 1.0.4 to adapt to many kinds of systems.
1299
1300Usage: $0 [OPTION]... [VAR=VALUE]...
1301
1302To assign environment variables (e.g., CC, CFLAGS...), specify them as
1303VAR=VALUE.  See below for descriptions of some of the useful variables.
1304
1305Defaults for the options are specified in brackets.
1306
1307Configuration:
1308  -h, --help              display this help and exit
1309      --help=short        display options specific to this package
1310      --help=recursive    display the short help of all the included packages
1311  -V, --version           display version information and exit
1312  -q, --quiet, --silent   do not print \`checking ...' messages
1313      --cache-file=FILE   cache test results in FILE [disabled]
1314  -C, --config-cache      alias for \`--cache-file=config.cache'
1315  -n, --no-create         do not create output files
1316      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1317
1318Installation directories:
1319  --prefix=PREFIX         install architecture-independent files in PREFIX
1320                          [$ac_default_prefix]
1321  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1322                          [PREFIX]
1323
1324By default, \`make install' will install all the files in
1325\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1326an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1327for instance \`--prefix=\$HOME'.
1328
1329For better control, use the options below.
1330
1331Fine tuning of the installation directories:
1332  --bindir=DIR            user executables [EPREFIX/bin]
1333  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1334  --libexecdir=DIR        program executables [EPREFIX/libexec]
1335  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1336  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1337  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1338  --libdir=DIR            object code libraries [EPREFIX/lib]
1339  --includedir=DIR        C header files [PREFIX/include]
1340  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1341  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1342  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1343  --infodir=DIR           info documentation [DATAROOTDIR/info]
1344  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1345  --mandir=DIR            man documentation [DATAROOTDIR/man]
1346  --docdir=DIR            documentation root [DATAROOTDIR/doc/xkbutils]
1347  --htmldir=DIR           html documentation [DOCDIR]
1348  --dvidir=DIR            dvi documentation [DOCDIR]
1349  --pdfdir=DIR            pdf documentation [DOCDIR]
1350  --psdir=DIR             ps documentation [DOCDIR]
1351_ACEOF
1352
1353  cat <<\_ACEOF
1354
1355Program names:
1356  --program-prefix=PREFIX            prepend PREFIX to installed program names
1357  --program-suffix=SUFFIX            append SUFFIX to installed program names
1358  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1359
1360System types:
1361  --build=BUILD     configure for building on BUILD [guessed]
1362  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1363_ACEOF
1364fi
1365
1366if test -n "$ac_init_help"; then
1367  case $ac_init_help in
1368     short | recursive ) echo "Configuration of xkbutils 1.0.4:";;
1369   esac
1370  cat <<\_ACEOF
1371
1372Optional Features:
1373  --disable-option-checking  ignore unrecognized --enable/--with options
1374  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1375  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1376  --enable-maintainer-mode  enable make rules and dependencies not useful
1377			  (and sometimes confusing) to the casual installer
1378  --disable-dependency-tracking  speeds up one-time build
1379  --enable-dependency-tracking   do not reject slow dependency extractors
1380  --disable-selective-werror
1381                          Turn off selective compiler errors. (default:
1382                          enabled)
1383  --enable-strict-compilation
1384                          Enable all warnings from compiler and make them
1385                          errors (default: disabled)
1386  --enable-silent-rules          less verbose build output (undo: `make V=1')
1387  --disable-silent-rules         verbose build output (undo: `make V=0')
1388
1389Some influential environment variables:
1390  CC          C compiler command
1391  CFLAGS      C compiler flags
1392  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1393              nonstandard directory <lib dir>
1394  LIBS        libraries to pass to the linker, e.g. -l<library>
1395  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1396              you have headers in a nonstandard directory <include dir>
1397  CPP         C preprocessor
1398  PKG_CONFIG  path to pkg-config utility
1399  XKBVLEDS_CFLAGS
1400              C compiler flags for XKBVLEDS, overriding pkg-config
1401  XKBVLEDS_LIBS
1402              linker flags for XKBVLEDS, overriding pkg-config
1403  XKBBELL_CFLAGS
1404              C compiler flags for XKBBELL, overriding pkg-config
1405  XKBBELL_LIBS
1406              linker flags for XKBBELL, overriding pkg-config
1407  XKBWATCH_CFLAGS
1408              C compiler flags for XKBWATCH, overriding pkg-config
1409  XKBWATCH_LIBS
1410              linker flags for XKBWATCH, overriding pkg-config
1411
1412Use these variables to override the choices made by `configure' or to help
1413it to find libraries and programs with nonstandard names/locations.
1414
1415Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1416_ACEOF
1417ac_status=$?
1418fi
1419
1420if test "$ac_init_help" = "recursive"; then
1421  # If there are subdirs, report their specific --help.
1422  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1423    test -d "$ac_dir" ||
1424      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1425      continue
1426    ac_builddir=.
1427
1428case "$ac_dir" in
1429.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1430*)
1431  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1432  # A ".." for each directory in $ac_dir_suffix.
1433  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1434  case $ac_top_builddir_sub in
1435  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1436  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1437  esac ;;
1438esac
1439ac_abs_top_builddir=$ac_pwd
1440ac_abs_builddir=$ac_pwd$ac_dir_suffix
1441# for backward compatibility:
1442ac_top_builddir=$ac_top_build_prefix
1443
1444case $srcdir in
1445  .)  # We are building in place.
1446    ac_srcdir=.
1447    ac_top_srcdir=$ac_top_builddir_sub
1448    ac_abs_top_srcdir=$ac_pwd ;;
1449  [\\/]* | ?:[\\/]* )  # Absolute name.
1450    ac_srcdir=$srcdir$ac_dir_suffix;
1451    ac_top_srcdir=$srcdir
1452    ac_abs_top_srcdir=$srcdir ;;
1453  *) # Relative name.
1454    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1455    ac_top_srcdir=$ac_top_build_prefix$srcdir
1456    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1457esac
1458ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1459
1460    cd "$ac_dir" || { ac_status=$?; continue; }
1461    # Check for guested configure.
1462    if test -f "$ac_srcdir/configure.gnu"; then
1463      echo &&
1464      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1465    elif test -f "$ac_srcdir/configure"; then
1466      echo &&
1467      $SHELL "$ac_srcdir/configure" --help=recursive
1468    else
1469      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1470    fi || ac_status=$?
1471    cd "$ac_pwd" || { ac_status=$?; break; }
1472  done
1473fi
1474
1475test -n "$ac_init_help" && exit $ac_status
1476if $ac_init_version; then
1477  cat <<\_ACEOF
1478xkbutils configure 1.0.4
1479generated by GNU Autoconf 2.68
1480
1481Copyright (C) 2010 Free Software Foundation, Inc.
1482This configure script is free software; the Free Software Foundation
1483gives unlimited permission to copy, distribute and modify it.
1484_ACEOF
1485  exit
1486fi
1487
1488## ------------------------ ##
1489## Autoconf initialization. ##
1490## ------------------------ ##
1491
1492# ac_fn_c_try_compile LINENO
1493# --------------------------
1494# Try to compile conftest.$ac_ext, and return whether this succeeded.
1495ac_fn_c_try_compile ()
1496{
1497  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1498  rm -f conftest.$ac_objext
1499  if { { ac_try="$ac_compile"
1500case "(($ac_try" in
1501  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1502  *) ac_try_echo=$ac_try;;
1503esac
1504eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1505$as_echo "$ac_try_echo"; } >&5
1506  (eval "$ac_compile") 2>conftest.err
1507  ac_status=$?
1508  if test -s conftest.err; then
1509    grep -v '^ *+' conftest.err >conftest.er1
1510    cat conftest.er1 >&5
1511    mv -f conftest.er1 conftest.err
1512  fi
1513  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1514  test $ac_status = 0; } && {
1515	 test -z "$ac_c_werror_flag" ||
1516	 test ! -s conftest.err
1517       } && test -s conftest.$ac_objext; then :
1518  ac_retval=0
1519else
1520  $as_echo "$as_me: failed program was:" >&5
1521sed 's/^/| /' conftest.$ac_ext >&5
1522
1523	ac_retval=1
1524fi
1525  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1526  as_fn_set_status $ac_retval
1527
1528} # ac_fn_c_try_compile
1529
1530# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1531# ---------------------------------------------
1532# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1533# accordingly.
1534ac_fn_c_check_decl ()
1535{
1536  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537  as_decl_name=`echo $2|sed 's/ *(.*//'`
1538  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1539  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1540$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1541if eval \${$3+:} false; then :
1542  $as_echo_n "(cached) " >&6
1543else
1544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1545/* end confdefs.h.  */
1546$4
1547int
1548main ()
1549{
1550#ifndef $as_decl_name
1551#ifdef __cplusplus
1552  (void) $as_decl_use;
1553#else
1554  (void) $as_decl_name;
1555#endif
1556#endif
1557
1558  ;
1559  return 0;
1560}
1561_ACEOF
1562if ac_fn_c_try_compile "$LINENO"; then :
1563  eval "$3=yes"
1564else
1565  eval "$3=no"
1566fi
1567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1568fi
1569eval ac_res=\$$3
1570	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1571$as_echo "$ac_res" >&6; }
1572  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1573
1574} # ac_fn_c_check_decl
1575
1576# ac_fn_c_try_cpp LINENO
1577# ----------------------
1578# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1579ac_fn_c_try_cpp ()
1580{
1581  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582  if { { ac_try="$ac_cpp conftest.$ac_ext"
1583case "(($ac_try" in
1584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585  *) ac_try_echo=$ac_try;;
1586esac
1587eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588$as_echo "$ac_try_echo"; } >&5
1589  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1590  ac_status=$?
1591  if test -s conftest.err; then
1592    grep -v '^ *+' conftest.err >conftest.er1
1593    cat conftest.er1 >&5
1594    mv -f conftest.er1 conftest.err
1595  fi
1596  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597  test $ac_status = 0; } > conftest.i && {
1598	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1599	 test ! -s conftest.err
1600       }; then :
1601  ac_retval=0
1602else
1603  $as_echo "$as_me: failed program was:" >&5
1604sed 's/^/| /' conftest.$ac_ext >&5
1605
1606    ac_retval=1
1607fi
1608  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1609  as_fn_set_status $ac_retval
1610
1611} # ac_fn_c_try_cpp
1612
1613# ac_fn_c_try_run LINENO
1614# ----------------------
1615# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1616# that executables *can* be run.
1617ac_fn_c_try_run ()
1618{
1619  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620  if { { ac_try="$ac_link"
1621case "(($ac_try" in
1622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623  *) ac_try_echo=$ac_try;;
1624esac
1625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626$as_echo "$ac_try_echo"; } >&5
1627  (eval "$ac_link") 2>&5
1628  ac_status=$?
1629  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1631  { { case "(($ac_try" in
1632  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633  *) ac_try_echo=$ac_try;;
1634esac
1635eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636$as_echo "$ac_try_echo"; } >&5
1637  (eval "$ac_try") 2>&5
1638  ac_status=$?
1639  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640  test $ac_status = 0; }; }; then :
1641  ac_retval=0
1642else
1643  $as_echo "$as_me: program exited with status $ac_status" >&5
1644       $as_echo "$as_me: failed program was:" >&5
1645sed 's/^/| /' conftest.$ac_ext >&5
1646
1647       ac_retval=$ac_status
1648fi
1649  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1650  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651  as_fn_set_status $ac_retval
1652
1653} # ac_fn_c_try_run
1654
1655# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1656# -------------------------------------------------------
1657# Tests whether HEADER exists and can be compiled using the include files in
1658# INCLUDES, setting the cache variable VAR accordingly.
1659ac_fn_c_check_header_compile ()
1660{
1661  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1663$as_echo_n "checking for $2... " >&6; }
1664if eval \${$3+:} false; then :
1665  $as_echo_n "(cached) " >&6
1666else
1667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1668/* end confdefs.h.  */
1669$4
1670#include <$2>
1671_ACEOF
1672if ac_fn_c_try_compile "$LINENO"; then :
1673  eval "$3=yes"
1674else
1675  eval "$3=no"
1676fi
1677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1678fi
1679eval ac_res=\$$3
1680	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1681$as_echo "$ac_res" >&6; }
1682  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683
1684} # ac_fn_c_check_header_compile
1685
1686# ac_fn_c_try_link LINENO
1687# -----------------------
1688# Try to link conftest.$ac_ext, and return whether this succeeded.
1689ac_fn_c_try_link ()
1690{
1691  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692  rm -f conftest.$ac_objext conftest$ac_exeext
1693  if { { ac_try="$ac_link"
1694case "(($ac_try" in
1695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696  *) ac_try_echo=$ac_try;;
1697esac
1698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699$as_echo "$ac_try_echo"; } >&5
1700  (eval "$ac_link") 2>conftest.err
1701  ac_status=$?
1702  if test -s conftest.err; then
1703    grep -v '^ *+' conftest.err >conftest.er1
1704    cat conftest.er1 >&5
1705    mv -f conftest.er1 conftest.err
1706  fi
1707  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708  test $ac_status = 0; } && {
1709	 test -z "$ac_c_werror_flag" ||
1710	 test ! -s conftest.err
1711       } && test -s conftest$ac_exeext && {
1712	 test "$cross_compiling" = yes ||
1713	 $as_test_x conftest$ac_exeext
1714       }; then :
1715  ac_retval=0
1716else
1717  $as_echo "$as_me: failed program was:" >&5
1718sed 's/^/| /' conftest.$ac_ext >&5
1719
1720	ac_retval=1
1721fi
1722  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1723  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1724  # interfere with the next link command; also delete a directory that is
1725  # left behind by Apple's compiler.  We do this before executing the actions.
1726  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1727  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728  as_fn_set_status $ac_retval
1729
1730} # ac_fn_c_try_link
1731
1732# ac_fn_c_check_func LINENO FUNC VAR
1733# ----------------------------------
1734# Tests whether FUNC exists, setting the cache variable VAR accordingly
1735ac_fn_c_check_func ()
1736{
1737  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739$as_echo_n "checking for $2... " >&6; }
1740if eval \${$3+:} false; then :
1741  $as_echo_n "(cached) " >&6
1742else
1743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744/* end confdefs.h.  */
1745/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1746   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1747#define $2 innocuous_$2
1748
1749/* System header to define __stub macros and hopefully few prototypes,
1750    which can conflict with char $2 (); below.
1751    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1752    <limits.h> exists even on freestanding compilers.  */
1753
1754#ifdef __STDC__
1755# include <limits.h>
1756#else
1757# include <assert.h>
1758#endif
1759
1760#undef $2
1761
1762/* Override any GCC internal prototype to avoid an error.
1763   Use char because int might match the return type of a GCC
1764   builtin and then its argument prototype would still apply.  */
1765#ifdef __cplusplus
1766extern "C"
1767#endif
1768char $2 ();
1769/* The GNU C library defines this for functions which it implements
1770    to always fail with ENOSYS.  Some functions are actually named
1771    something starting with __ and the normal name is an alias.  */
1772#if defined __stub_$2 || defined __stub___$2
1773choke me
1774#endif
1775
1776int
1777main ()
1778{
1779return $2 ();
1780  ;
1781  return 0;
1782}
1783_ACEOF
1784if ac_fn_c_try_link "$LINENO"; then :
1785  eval "$3=yes"
1786else
1787  eval "$3=no"
1788fi
1789rm -f core conftest.err conftest.$ac_objext \
1790    conftest$ac_exeext conftest.$ac_ext
1791fi
1792eval ac_res=\$$3
1793	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794$as_echo "$ac_res" >&6; }
1795  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796
1797} # ac_fn_c_check_func
1798cat >config.log <<_ACEOF
1799This file contains any messages produced by compilers while
1800running configure, to aid debugging if configure makes a mistake.
1801
1802It was created by xkbutils $as_me 1.0.4, which was
1803generated by GNU Autoconf 2.68.  Invocation command line was
1804
1805  $ $0 $@
1806
1807_ACEOF
1808exec 5>>config.log
1809{
1810cat <<_ASUNAME
1811## --------- ##
1812## Platform. ##
1813## --------- ##
1814
1815hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1816uname -m = `(uname -m) 2>/dev/null || echo unknown`
1817uname -r = `(uname -r) 2>/dev/null || echo unknown`
1818uname -s = `(uname -s) 2>/dev/null || echo unknown`
1819uname -v = `(uname -v) 2>/dev/null || echo unknown`
1820
1821/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1822/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1823
1824/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1825/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1826/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1827/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1828/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1829/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1830/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1831
1832_ASUNAME
1833
1834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1835for as_dir in $PATH
1836do
1837  IFS=$as_save_IFS
1838  test -z "$as_dir" && as_dir=.
1839    $as_echo "PATH: $as_dir"
1840  done
1841IFS=$as_save_IFS
1842
1843} >&5
1844
1845cat >&5 <<_ACEOF
1846
1847
1848## ----------- ##
1849## Core tests. ##
1850## ----------- ##
1851
1852_ACEOF
1853
1854
1855# Keep a trace of the command line.
1856# Strip out --no-create and --no-recursion so they do not pile up.
1857# Strip out --silent because we don't want to record it for future runs.
1858# Also quote any args containing shell meta-characters.
1859# Make two passes to allow for proper duplicate-argument suppression.
1860ac_configure_args=
1861ac_configure_args0=
1862ac_configure_args1=
1863ac_must_keep_next=false
1864for ac_pass in 1 2
1865do
1866  for ac_arg
1867  do
1868    case $ac_arg in
1869    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1870    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1871    | -silent | --silent | --silen | --sile | --sil)
1872      continue ;;
1873    *\'*)
1874      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1875    esac
1876    case $ac_pass in
1877    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1878    2)
1879      as_fn_append ac_configure_args1 " '$ac_arg'"
1880      if test $ac_must_keep_next = true; then
1881	ac_must_keep_next=false # Got value, back to normal.
1882      else
1883	case $ac_arg in
1884	  *=* | --config-cache | -C | -disable-* | --disable-* \
1885	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1886	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1887	  | -with-* | --with-* | -without-* | --without-* | --x)
1888	    case "$ac_configure_args0 " in
1889	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1890	    esac
1891	    ;;
1892	  -* ) ac_must_keep_next=true ;;
1893	esac
1894      fi
1895      as_fn_append ac_configure_args " '$ac_arg'"
1896      ;;
1897    esac
1898  done
1899done
1900{ ac_configure_args0=; unset ac_configure_args0;}
1901{ ac_configure_args1=; unset ac_configure_args1;}
1902
1903# When interrupted or exit'd, cleanup temporary files, and complete
1904# config.log.  We remove comments because anyway the quotes in there
1905# would cause problems or look ugly.
1906# WARNING: Use '\'' to represent an apostrophe within the trap.
1907# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1908trap 'exit_status=$?
1909  # Save into config.log some information that might help in debugging.
1910  {
1911    echo
1912
1913    $as_echo "## ---------------- ##
1914## Cache variables. ##
1915## ---------------- ##"
1916    echo
1917    # The following way of writing the cache mishandles newlines in values,
1918(
1919  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1920    eval ac_val=\$$ac_var
1921    case $ac_val in #(
1922    *${as_nl}*)
1923      case $ac_var in #(
1924      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1925$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1926      esac
1927      case $ac_var in #(
1928      _ | IFS | as_nl) ;; #(
1929      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1930      *) { eval $ac_var=; unset $ac_var;} ;;
1931      esac ;;
1932    esac
1933  done
1934  (set) 2>&1 |
1935    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1936    *${as_nl}ac_space=\ *)
1937      sed -n \
1938	"s/'\''/'\''\\\\'\'''\''/g;
1939	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1940      ;; #(
1941    *)
1942      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1943      ;;
1944    esac |
1945    sort
1946)
1947    echo
1948
1949    $as_echo "## ----------------- ##
1950## Output variables. ##
1951## ----------------- ##"
1952    echo
1953    for ac_var in $ac_subst_vars
1954    do
1955      eval ac_val=\$$ac_var
1956      case $ac_val in
1957      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1958      esac
1959      $as_echo "$ac_var='\''$ac_val'\''"
1960    done | sort
1961    echo
1962
1963    if test -n "$ac_subst_files"; then
1964      $as_echo "## ------------------- ##
1965## File substitutions. ##
1966## ------------------- ##"
1967      echo
1968      for ac_var in $ac_subst_files
1969      do
1970	eval ac_val=\$$ac_var
1971	case $ac_val in
1972	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1973	esac
1974	$as_echo "$ac_var='\''$ac_val'\''"
1975      done | sort
1976      echo
1977    fi
1978
1979    if test -s confdefs.h; then
1980      $as_echo "## ----------- ##
1981## confdefs.h. ##
1982## ----------- ##"
1983      echo
1984      cat confdefs.h
1985      echo
1986    fi
1987    test "$ac_signal" != 0 &&
1988      $as_echo "$as_me: caught signal $ac_signal"
1989    $as_echo "$as_me: exit $exit_status"
1990  } >&5
1991  rm -f core *.core core.conftest.* &&
1992    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1993    exit $exit_status
1994' 0
1995for ac_signal in 1 2 13 15; do
1996  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1997done
1998ac_signal=0
1999
2000# confdefs.h avoids OS command line length limits that DEFS can exceed.
2001rm -f -r conftest* confdefs.h
2002
2003$as_echo "/* confdefs.h */" > confdefs.h
2004
2005# Predefined preprocessor variables.
2006
2007cat >>confdefs.h <<_ACEOF
2008#define PACKAGE_NAME "$PACKAGE_NAME"
2009_ACEOF
2010
2011cat >>confdefs.h <<_ACEOF
2012#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2013_ACEOF
2014
2015cat >>confdefs.h <<_ACEOF
2016#define PACKAGE_VERSION "$PACKAGE_VERSION"
2017_ACEOF
2018
2019cat >>confdefs.h <<_ACEOF
2020#define PACKAGE_STRING "$PACKAGE_STRING"
2021_ACEOF
2022
2023cat >>confdefs.h <<_ACEOF
2024#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2025_ACEOF
2026
2027cat >>confdefs.h <<_ACEOF
2028#define PACKAGE_URL "$PACKAGE_URL"
2029_ACEOF
2030
2031
2032# Let the site file select an alternate cache file if it wants to.
2033# Prefer an explicitly selected file to automatically selected ones.
2034ac_site_file1=NONE
2035ac_site_file2=NONE
2036if test -n "$CONFIG_SITE"; then
2037  # We do not want a PATH search for config.site.
2038  case $CONFIG_SITE in #((
2039    -*)  ac_site_file1=./$CONFIG_SITE;;
2040    */*) ac_site_file1=$CONFIG_SITE;;
2041    *)   ac_site_file1=./$CONFIG_SITE;;
2042  esac
2043elif test "x$prefix" != xNONE; then
2044  ac_site_file1=$prefix/share/config.site
2045  ac_site_file2=$prefix/etc/config.site
2046else
2047  ac_site_file1=$ac_default_prefix/share/config.site
2048  ac_site_file2=$ac_default_prefix/etc/config.site
2049fi
2050for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2051do
2052  test "x$ac_site_file" = xNONE && continue
2053  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2054    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2055$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2056    sed 's/^/| /' "$ac_site_file" >&5
2057    . "$ac_site_file" \
2058      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2059$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2060as_fn_error $? "failed to load site script $ac_site_file
2061See \`config.log' for more details" "$LINENO" 5; }
2062  fi
2063done
2064
2065if test -r "$cache_file"; then
2066  # Some versions of bash will fail to source /dev/null (special files
2067  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2068  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2069    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2070$as_echo "$as_me: loading cache $cache_file" >&6;}
2071    case $cache_file in
2072      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2073      *)                      . "./$cache_file";;
2074    esac
2075  fi
2076else
2077  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2078$as_echo "$as_me: creating cache $cache_file" >&6;}
2079  >$cache_file
2080fi
2081
2082# Check that the precious variables saved in the cache have kept the same
2083# value.
2084ac_cache_corrupted=false
2085for ac_var in $ac_precious_vars; do
2086  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2087  eval ac_new_set=\$ac_env_${ac_var}_set
2088  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2089  eval ac_new_val=\$ac_env_${ac_var}_value
2090  case $ac_old_set,$ac_new_set in
2091    set,)
2092      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2093$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2094      ac_cache_corrupted=: ;;
2095    ,set)
2096      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2097$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2098      ac_cache_corrupted=: ;;
2099    ,);;
2100    *)
2101      if test "x$ac_old_val" != "x$ac_new_val"; then
2102	# differences in whitespace do not lead to failure.
2103	ac_old_val_w=`echo x $ac_old_val`
2104	ac_new_val_w=`echo x $ac_new_val`
2105	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2106	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2107$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2108	  ac_cache_corrupted=:
2109	else
2110	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2111$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2112	  eval $ac_var=\$ac_old_val
2113	fi
2114	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2115$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2116	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2117$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2118      fi;;
2119  esac
2120  # Pass precious variables to config.status.
2121  if test "$ac_new_set" = set; then
2122    case $ac_new_val in
2123    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2124    *) ac_arg=$ac_var=$ac_new_val ;;
2125    esac
2126    case " $ac_configure_args " in
2127      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2128      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2129    esac
2130  fi
2131done
2132if $ac_cache_corrupted; then
2133  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2134$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2135  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2136$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2137  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2138fi
2139## -------------------- ##
2140## Main body of script. ##
2141## -------------------- ##
2142
2143ac_ext=c
2144ac_cpp='$CPP $CPPFLAGS'
2145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2147ac_compiler_gnu=$ac_cv_c_compiler_gnu
2148
2149
2150
2151ac_config_headers="$ac_config_headers config.h"
2152
2153
2154# Initialize Automake
2155am__api_version='1.11'
2156
2157ac_aux_dir=
2158for 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
2172done
2173if test -z "$ac_aux_dir"; then
2174  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2175fi
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.
2181ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2182ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2183ac_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; }
2202if test -z "$INSTALL"; then
2203if ${ac_cv_path_install+:} false; then :
2204  $as_echo_n "(cached) " >&6
2205else
2206  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2207for as_dir in $PATH
2208do
2209  IFS=$as_save_IFS
2210  test -z "$as_dir" && as_dir=.
2211    # Account for people who put trailing slashes in PATH elements.
2212case $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    ;;
2250esac
2251
2252  done
2253IFS=$as_save_IFS
2254
2255rm -rf conftest.one conftest.two conftest.dir
2256
2257fi
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
2267fi
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.
2273test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2274
2275test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2276
2277test -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
2282sleep 1
2283echo timestamp > conftest.file
2284# Reject unsafe characters in $srcdir or the absolute working directory
2285# name.  Accept space and tab only in the latter.
2286am_lf='
2287'
2288case `pwd` in
2289  *[\\\"\#\$\&\'\`$am_lf]*)
2290    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2291esac
2292case $srcdir in
2293  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2294    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2295esac
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).
2302if (
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
2317alias in your environment" "$LINENO" 5
2318   fi
2319
2320   test "$2" = conftest.file
2321   )
2322then
2323   # Ok.
2324   :
2325else
2326   as_fn_error $? "newly created file is older than distributed files!
2327Check your system clock" "$LINENO" 5
2328fi
2329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2330$as_echo "yes" >&6; }
2331test "$program_prefix" != NONE &&
2332  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2333# Use a double $ so make ignores it.
2334test "$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.
2338ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2339program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2340
2341# expand $ac_aux_dir to an absolute path
2342am_aux_dir=`cd $ac_aux_dir && pwd`
2343
2344if 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
2351fi
2352# Use eval to expand $SHELL
2353if eval "$MISSING --run true"; then
2354  am_missing_run="$MISSING --run "
2355else
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;}
2359fi
2360
2361if 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
2368fi
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.
2374if 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.
2377set 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; }
2380if ${ac_cv_prog_STRIP+:} false; then :
2381  $as_echo_n "(cached) " >&6
2382else
2383  if test -n "$STRIP"; then
2384  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2385else
2386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387for as_dir in $PATH
2388do
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
2397done
2398  done
2399IFS=$as_save_IFS
2400
2401fi
2402fi
2403STRIP=$ac_cv_prog_STRIP
2404if test -n "$STRIP"; then
2405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2406$as_echo "$STRIP" >&6; }
2407else
2408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2409$as_echo "no" >&6; }
2410fi
2411
2412
2413fi
2414if 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.
2417set 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; }
2420if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2421  $as_echo_n "(cached) " >&6
2422else
2423  if test -n "$ac_ct_STRIP"; then
2424  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2425else
2426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427for as_dir in $PATH
2428do
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
2437done
2438  done
2439IFS=$as_save_IFS
2440
2441fi
2442fi
2443ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2444if 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; }
2447else
2448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2449$as_echo "no" >&6; }
2450fi
2451
2452  if test "x$ac_ct_STRIP" = x; then
2453    STRIP=":"
2454  else
2455    case $cross_compiling:$ac_tool_warned in
2456yes:)
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;}
2459ac_tool_warned=yes ;;
2460esac
2461    STRIP=$ac_ct_STRIP
2462  fi
2463else
2464  STRIP="$ac_cv_prog_STRIP"
2465fi
2466
2467fi
2468INSTALL_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; }
2472if test -z "$MKDIR_P"; then
2473  if ${ac_cv_path_mkdir+:} false; then :
2474  $as_echo_n "(cached) " >&6
2475else
2476  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2478do
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
2494IFS=$as_save_IFS
2495
2496fi
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
2508fi
2509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2510$as_echo "$MKDIR_P" >&6; }
2511
2512mkdir_p="$MKDIR_P"
2513case $mkdir_p in
2514  [\\/$]* | ?:[\\/]*) ;;
2515  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2516esac
2517
2518for ac_prog in gawk mawk nawk awk
2519do
2520  # Extract the first word of "$ac_prog", so it can be a program name with args.
2521set 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; }
2524if ${ac_cv_prog_AWK+:} false; then :
2525  $as_echo_n "(cached) " >&6
2526else
2527  if test -n "$AWK"; then
2528  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2529else
2530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531for as_dir in $PATH
2532do
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
2541done
2542  done
2543IFS=$as_save_IFS
2544
2545fi
2546fi
2547AWK=$ac_cv_prog_AWK
2548if test -n "$AWK"; then
2549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2550$as_echo "$AWK" >&6; }
2551else
2552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2553$as_echo "no" >&6; }
2554fi
2555
2556
2557  test -n "$AWK" && break
2558done
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; }
2562set x ${MAKE-make}
2563ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2564if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2565  $as_echo_n "(cached) " >&6
2566else
2567  cat >conftest.make <<\_ACEOF
2568SHELL = /bin/sh
2569all:
2570	@echo '@@@%%%=$(MAKE)=@@@%%%'
2571_ACEOF
2572# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2573case `${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;;
2578esac
2579rm -f conftest.make
2580fi
2581if 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=
2585else
2586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2587$as_echo "no" >&6; }
2588  SET_MAKE="MAKE=${MAKE-make}"
2589fi
2590
2591rm -rf .tst 2>/dev/null
2592mkdir .tst 2>/dev/null
2593if test -d .tst; then
2594  am__leading_dot=.
2595else
2596  am__leading_dot=_
2597fi
2598rmdir .tst 2>/dev/null
2599
2600if 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
2608fi
2609
2610# test whether we have cygpath
2611if 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
2617fi
2618
2619
2620# Define the identity of the package.
2621 PACKAGE='xkbutils'
2622 VERSION='1.0.4'
2623
2624
2625cat >>confdefs.h <<_ACEOF
2626#define PACKAGE "$PACKAGE"
2627_ACEOF
2628
2629
2630cat >>confdefs.h <<_ACEOF
2631#define VERSION "$VERSION"
2632_ACEOF
2633
2634# Some tools Automake needs.
2635
2636ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2637
2638
2639AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2640
2641
2642AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2643
2644
2645AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2646
2647
2648MAKEINFO=${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
2654AMTAR=${AMTAR-"${am_missing_run}tar"}
2655
2656am__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.
2666if test "${enable_maintainer_mode+set}" = set; then :
2667  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2668else
2669  USE_MAINTAINER_MODE=no
2670fi
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='#'
2677else
2678  MAINTAINER_MODE_TRUE='#'
2679  MAINTAINER_MODE_FALSE=
2680fi
2681
2682  MAINT=$MAINTAINER_MODE_TRUE
2683
2684
2685DEPDIR="${am__leading_dot}deps"
2686
2687ac_config_commands="$ac_config_commands depfiles"
2688
2689
2690am_make=${MAKE-make}
2691cat > confinc << 'END'
2692am__doit:
2693	@echo this is the am__doit target
2694.PHONY: am__doit
2695END
2696# If we don't find an include directive, just comment out the code.
2697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2698$as_echo_n "checking for style of include used by $am_make... " >&6; }
2699am__include="#"
2700am__quote=
2701_am_result=none
2702# First try GNU make style include.
2703echo "include confinc" > confmf
2704# Ignore all kinds of additional output from `make'.
2705case `$am_make -s -f confmf 2> /dev/null` in #(
2706*the\ am__doit\ target*)
2707  am__include=include
2708  am__quote=
2709  _am_result=GNU
2710  ;;
2711esac
2712# Now try BSD make style include.
2713if test "$am__include" = "#"; then
2714   echo '.include "confinc"' > confmf
2715   case `$am_make -s -f confmf 2> /dev/null` in #(
2716   *the\ am__doit\ target*)
2717     am__include=.include
2718     am__quote="\""
2719     _am_result=BSD
2720     ;;
2721   esac
2722fi
2723
2724
2725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2726$as_echo "$_am_result" >&6; }
2727rm -f confinc confmf
2728
2729# Check whether --enable-dependency-tracking was given.
2730if test "${enable_dependency_tracking+set}" = set; then :
2731  enableval=$enable_dependency_tracking;
2732fi
2733
2734if test "x$enable_dependency_tracking" != xno; then
2735  am_depcomp="$ac_aux_dir/depcomp"
2736  AMDEPBACKSLASH='\'
2737  am__nodep='_no'
2738fi
2739 if test "x$enable_dependency_tracking" != xno; then
2740  AMDEP_TRUE=
2741  AMDEP_FALSE='#'
2742else
2743  AMDEP_TRUE='#'
2744  AMDEP_FALSE=
2745fi
2746
2747
2748ac_ext=c
2749ac_cpp='$CPP $CPPFLAGS'
2750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2752ac_compiler_gnu=$ac_cv_c_compiler_gnu
2753if test -n "$ac_tool_prefix"; then
2754  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2755set dummy ${ac_tool_prefix}gcc; ac_word=$2
2756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2757$as_echo_n "checking for $ac_word... " >&6; }
2758if ${ac_cv_prog_CC+:} false; then :
2759  $as_echo_n "(cached) " >&6
2760else
2761  if test -n "$CC"; then
2762  ac_cv_prog_CC="$CC" # Let the user override the test.
2763else
2764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765for as_dir in $PATH
2766do
2767  IFS=$as_save_IFS
2768  test -z "$as_dir" && as_dir=.
2769    for ac_exec_ext in '' $ac_executable_extensions; do
2770  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2771    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2772    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2773    break 2
2774  fi
2775done
2776  done
2777IFS=$as_save_IFS
2778
2779fi
2780fi
2781CC=$ac_cv_prog_CC
2782if test -n "$CC"; then
2783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2784$as_echo "$CC" >&6; }
2785else
2786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2787$as_echo "no" >&6; }
2788fi
2789
2790
2791fi
2792if test -z "$ac_cv_prog_CC"; then
2793  ac_ct_CC=$CC
2794  # Extract the first word of "gcc", so it can be a program name with args.
2795set dummy gcc; ac_word=$2
2796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2797$as_echo_n "checking for $ac_word... " >&6; }
2798if ${ac_cv_prog_ac_ct_CC+:} false; then :
2799  $as_echo_n "(cached) " >&6
2800else
2801  if test -n "$ac_ct_CC"; then
2802  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2803else
2804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805for as_dir in $PATH
2806do
2807  IFS=$as_save_IFS
2808  test -z "$as_dir" && as_dir=.
2809    for ac_exec_ext in '' $ac_executable_extensions; do
2810  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2811    ac_cv_prog_ac_ct_CC="gcc"
2812    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2813    break 2
2814  fi
2815done
2816  done
2817IFS=$as_save_IFS
2818
2819fi
2820fi
2821ac_ct_CC=$ac_cv_prog_ac_ct_CC
2822if test -n "$ac_ct_CC"; then
2823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2824$as_echo "$ac_ct_CC" >&6; }
2825else
2826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827$as_echo "no" >&6; }
2828fi
2829
2830  if test "x$ac_ct_CC" = x; then
2831    CC=""
2832  else
2833    case $cross_compiling:$ac_tool_warned in
2834yes:)
2835{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2836$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2837ac_tool_warned=yes ;;
2838esac
2839    CC=$ac_ct_CC
2840  fi
2841else
2842  CC="$ac_cv_prog_CC"
2843fi
2844
2845if test -z "$CC"; then
2846          if test -n "$ac_tool_prefix"; then
2847    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2848set dummy ${ac_tool_prefix}cc; ac_word=$2
2849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2850$as_echo_n "checking for $ac_word... " >&6; }
2851if ${ac_cv_prog_CC+:} false; then :
2852  $as_echo_n "(cached) " >&6
2853else
2854  if test -n "$CC"; then
2855  ac_cv_prog_CC="$CC" # Let the user override the test.
2856else
2857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858for as_dir in $PATH
2859do
2860  IFS=$as_save_IFS
2861  test -z "$as_dir" && as_dir=.
2862    for ac_exec_ext in '' $ac_executable_extensions; do
2863  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2864    ac_cv_prog_CC="${ac_tool_prefix}cc"
2865    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2866    break 2
2867  fi
2868done
2869  done
2870IFS=$as_save_IFS
2871
2872fi
2873fi
2874CC=$ac_cv_prog_CC
2875if test -n "$CC"; then
2876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2877$as_echo "$CC" >&6; }
2878else
2879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2880$as_echo "no" >&6; }
2881fi
2882
2883
2884  fi
2885fi
2886if test -z "$CC"; then
2887  # Extract the first word of "cc", so it can be a program name with args.
2888set dummy cc; ac_word=$2
2889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2890$as_echo_n "checking for $ac_word... " >&6; }
2891if ${ac_cv_prog_CC+:} false; then :
2892  $as_echo_n "(cached) " >&6
2893else
2894  if test -n "$CC"; then
2895  ac_cv_prog_CC="$CC" # Let the user override the test.
2896else
2897  ac_prog_rejected=no
2898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899for as_dir in $PATH
2900do
2901  IFS=$as_save_IFS
2902  test -z "$as_dir" && as_dir=.
2903    for ac_exec_ext in '' $ac_executable_extensions; do
2904  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2905    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2906       ac_prog_rejected=yes
2907       continue
2908     fi
2909    ac_cv_prog_CC="cc"
2910    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2911    break 2
2912  fi
2913done
2914  done
2915IFS=$as_save_IFS
2916
2917if test $ac_prog_rejected = yes; then
2918  # We found a bogon in the path, so make sure we never use it.
2919  set dummy $ac_cv_prog_CC
2920  shift
2921  if test $# != 0; then
2922    # We chose a different compiler from the bogus one.
2923    # However, it has the same basename, so the bogon will be chosen
2924    # first if we set CC to just the basename; use the full file name.
2925    shift
2926    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2927  fi
2928fi
2929fi
2930fi
2931CC=$ac_cv_prog_CC
2932if test -n "$CC"; then
2933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2934$as_echo "$CC" >&6; }
2935else
2936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2937$as_echo "no" >&6; }
2938fi
2939
2940
2941fi
2942if test -z "$CC"; then
2943  if test -n "$ac_tool_prefix"; then
2944  for ac_prog in cl.exe
2945  do
2946    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2947set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2949$as_echo_n "checking for $ac_word... " >&6; }
2950if ${ac_cv_prog_CC+:} false; then :
2951  $as_echo_n "(cached) " >&6
2952else
2953  if test -n "$CC"; then
2954  ac_cv_prog_CC="$CC" # Let the user override the test.
2955else
2956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957for as_dir in $PATH
2958do
2959  IFS=$as_save_IFS
2960  test -z "$as_dir" && as_dir=.
2961    for ac_exec_ext in '' $ac_executable_extensions; do
2962  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2963    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2964    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2965    break 2
2966  fi
2967done
2968  done
2969IFS=$as_save_IFS
2970
2971fi
2972fi
2973CC=$ac_cv_prog_CC
2974if test -n "$CC"; then
2975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2976$as_echo "$CC" >&6; }
2977else
2978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2979$as_echo "no" >&6; }
2980fi
2981
2982
2983    test -n "$CC" && break
2984  done
2985fi
2986if test -z "$CC"; then
2987  ac_ct_CC=$CC
2988  for ac_prog in cl.exe
2989do
2990  # Extract the first word of "$ac_prog", so it can be a program name with args.
2991set dummy $ac_prog; ac_word=$2
2992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2993$as_echo_n "checking for $ac_word... " >&6; }
2994if ${ac_cv_prog_ac_ct_CC+:} false; then :
2995  $as_echo_n "(cached) " >&6
2996else
2997  if test -n "$ac_ct_CC"; then
2998  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2999else
3000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001for as_dir in $PATH
3002do
3003  IFS=$as_save_IFS
3004  test -z "$as_dir" && as_dir=.
3005    for ac_exec_ext in '' $ac_executable_extensions; do
3006  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3007    ac_cv_prog_ac_ct_CC="$ac_prog"
3008    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3009    break 2
3010  fi
3011done
3012  done
3013IFS=$as_save_IFS
3014
3015fi
3016fi
3017ac_ct_CC=$ac_cv_prog_ac_ct_CC
3018if test -n "$ac_ct_CC"; then
3019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3020$as_echo "$ac_ct_CC" >&6; }
3021else
3022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023$as_echo "no" >&6; }
3024fi
3025
3026
3027  test -n "$ac_ct_CC" && break
3028done
3029
3030  if test "x$ac_ct_CC" = x; then
3031    CC=""
3032  else
3033    case $cross_compiling:$ac_tool_warned in
3034yes:)
3035{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3036$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3037ac_tool_warned=yes ;;
3038esac
3039    CC=$ac_ct_CC
3040  fi
3041fi
3042
3043fi
3044
3045
3046test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3047$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3048as_fn_error $? "no acceptable C compiler found in \$PATH
3049See \`config.log' for more details" "$LINENO" 5; }
3050
3051# Provide some information about the compiler.
3052$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3053set X $ac_compile
3054ac_compiler=$2
3055for ac_option in --version -v -V -qversion; do
3056  { { ac_try="$ac_compiler $ac_option >&5"
3057case "(($ac_try" in
3058  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059  *) ac_try_echo=$ac_try;;
3060esac
3061eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3062$as_echo "$ac_try_echo"; } >&5
3063  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3064  ac_status=$?
3065  if test -s conftest.err; then
3066    sed '10a\
3067... rest of stderr output deleted ...
3068         10q' conftest.err >conftest.er1
3069    cat conftest.er1 >&5
3070  fi
3071  rm -f conftest.er1 conftest.err
3072  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3073  test $ac_status = 0; }
3074done
3075
3076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3077/* end confdefs.h.  */
3078
3079int
3080main ()
3081{
3082
3083  ;
3084  return 0;
3085}
3086_ACEOF
3087ac_clean_files_save=$ac_clean_files
3088ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3089# Try to create an executable without -o first, disregard a.out.
3090# It will help us diagnose broken compilers, and finding out an intuition
3091# of exeext.
3092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3093$as_echo_n "checking whether the C compiler works... " >&6; }
3094ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3095
3096# The possible output files:
3097ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3098
3099ac_rmfiles=
3100for ac_file in $ac_files
3101do
3102  case $ac_file in
3103    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3104    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3105  esac
3106done
3107rm -f $ac_rmfiles
3108
3109if { { ac_try="$ac_link_default"
3110case "(($ac_try" in
3111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112  *) ac_try_echo=$ac_try;;
3113esac
3114eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3115$as_echo "$ac_try_echo"; } >&5
3116  (eval "$ac_link_default") 2>&5
3117  ac_status=$?
3118  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3119  test $ac_status = 0; }; then :
3120  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3121# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3122# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3123# so that the user can short-circuit this test for compilers unknown to
3124# Autoconf.
3125for ac_file in $ac_files ''
3126do
3127  test -f "$ac_file" || continue
3128  case $ac_file in
3129    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3130	;;
3131    [ab].out )
3132	# We found the default executable, but exeext='' is most
3133	# certainly right.
3134	break;;
3135    *.* )
3136	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3137	then :; else
3138	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3139	fi
3140	# We set ac_cv_exeext here because the later test for it is not
3141	# safe: cross compilers may not add the suffix if given an `-o'
3142	# argument, so we may need to know it at that point already.
3143	# Even if this section looks crufty: it has the advantage of
3144	# actually working.
3145	break;;
3146    * )
3147	break;;
3148  esac
3149done
3150test "$ac_cv_exeext" = no && ac_cv_exeext=
3151
3152else
3153  ac_file=''
3154fi
3155if test -z "$ac_file"; then :
3156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3157$as_echo "no" >&6; }
3158$as_echo "$as_me: failed program was:" >&5
3159sed 's/^/| /' conftest.$ac_ext >&5
3160
3161{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3162$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3163as_fn_error 77 "C compiler cannot create executables
3164See \`config.log' for more details" "$LINENO" 5; }
3165else
3166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3167$as_echo "yes" >&6; }
3168fi
3169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3170$as_echo_n "checking for C compiler default output file name... " >&6; }
3171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3172$as_echo "$ac_file" >&6; }
3173ac_exeext=$ac_cv_exeext
3174
3175rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3176ac_clean_files=$ac_clean_files_save
3177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3178$as_echo_n "checking for suffix of executables... " >&6; }
3179if { { ac_try="$ac_link"
3180case "(($ac_try" in
3181  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182  *) ac_try_echo=$ac_try;;
3183esac
3184eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3185$as_echo "$ac_try_echo"; } >&5
3186  (eval "$ac_link") 2>&5
3187  ac_status=$?
3188  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3189  test $ac_status = 0; }; then :
3190  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3191# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3192# work properly (i.e., refer to `conftest.exe'), while it won't with
3193# `rm'.
3194for ac_file in conftest.exe conftest conftest.*; do
3195  test -f "$ac_file" || continue
3196  case $ac_file in
3197    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3198    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3199	  break;;
3200    * ) break;;
3201  esac
3202done
3203else
3204  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3205$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3206as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3207See \`config.log' for more details" "$LINENO" 5; }
3208fi
3209rm -f conftest conftest$ac_cv_exeext
3210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3211$as_echo "$ac_cv_exeext" >&6; }
3212
3213rm -f conftest.$ac_ext
3214EXEEXT=$ac_cv_exeext
3215ac_exeext=$EXEEXT
3216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3217/* end confdefs.h.  */
3218#include <stdio.h>
3219int
3220main ()
3221{
3222FILE *f = fopen ("conftest.out", "w");
3223 return ferror (f) || fclose (f) != 0;
3224
3225  ;
3226  return 0;
3227}
3228_ACEOF
3229ac_clean_files="$ac_clean_files conftest.out"
3230# Check that the compiler produces executables we can run.  If not, either
3231# the compiler is broken, or we cross compile.
3232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3233$as_echo_n "checking whether we are cross compiling... " >&6; }
3234if test "$cross_compiling" != yes; then
3235  { { ac_try="$ac_link"
3236case "(($ac_try" in
3237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238  *) ac_try_echo=$ac_try;;
3239esac
3240eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3241$as_echo "$ac_try_echo"; } >&5
3242  (eval "$ac_link") 2>&5
3243  ac_status=$?
3244  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3245  test $ac_status = 0; }
3246  if { ac_try='./conftest$ac_cv_exeext'
3247  { { case "(($ac_try" in
3248  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249  *) ac_try_echo=$ac_try;;
3250esac
3251eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3252$as_echo "$ac_try_echo"; } >&5
3253  (eval "$ac_try") 2>&5
3254  ac_status=$?
3255  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3256  test $ac_status = 0; }; }; then
3257    cross_compiling=no
3258  else
3259    if test "$cross_compiling" = maybe; then
3260	cross_compiling=yes
3261    else
3262	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3263$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3264as_fn_error $? "cannot run C compiled programs.
3265If you meant to cross compile, use \`--host'.
3266See \`config.log' for more details" "$LINENO" 5; }
3267    fi
3268  fi
3269fi
3270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3271$as_echo "$cross_compiling" >&6; }
3272
3273rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3274ac_clean_files=$ac_clean_files_save
3275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3276$as_echo_n "checking for suffix of object files... " >&6; }
3277if ${ac_cv_objext+:} false; then :
3278  $as_echo_n "(cached) " >&6
3279else
3280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3281/* end confdefs.h.  */
3282
3283int
3284main ()
3285{
3286
3287  ;
3288  return 0;
3289}
3290_ACEOF
3291rm -f conftest.o conftest.obj
3292if { { ac_try="$ac_compile"
3293case "(($ac_try" in
3294  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295  *) ac_try_echo=$ac_try;;
3296esac
3297eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3298$as_echo "$ac_try_echo"; } >&5
3299  (eval "$ac_compile") 2>&5
3300  ac_status=$?
3301  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3302  test $ac_status = 0; }; then :
3303  for ac_file in conftest.o conftest.obj conftest.*; do
3304  test -f "$ac_file" || continue;
3305  case $ac_file in
3306    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3307    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3308       break;;
3309  esac
3310done
3311else
3312  $as_echo "$as_me: failed program was:" >&5
3313sed 's/^/| /' conftest.$ac_ext >&5
3314
3315{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3316$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3317as_fn_error $? "cannot compute suffix of object files: cannot compile
3318See \`config.log' for more details" "$LINENO" 5; }
3319fi
3320rm -f conftest.$ac_cv_objext conftest.$ac_ext
3321fi
3322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3323$as_echo "$ac_cv_objext" >&6; }
3324OBJEXT=$ac_cv_objext
3325ac_objext=$OBJEXT
3326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3327$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3328if ${ac_cv_c_compiler_gnu+:} false; then :
3329  $as_echo_n "(cached) " >&6
3330else
3331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332/* end confdefs.h.  */
3333
3334int
3335main ()
3336{
3337#ifndef __GNUC__
3338       choke me
3339#endif
3340
3341  ;
3342  return 0;
3343}
3344_ACEOF
3345if ac_fn_c_try_compile "$LINENO"; then :
3346  ac_compiler_gnu=yes
3347else
3348  ac_compiler_gnu=no
3349fi
3350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3351ac_cv_c_compiler_gnu=$ac_compiler_gnu
3352
3353fi
3354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3355$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3356if test $ac_compiler_gnu = yes; then
3357  GCC=yes
3358else
3359  GCC=
3360fi
3361ac_test_CFLAGS=${CFLAGS+set}
3362ac_save_CFLAGS=$CFLAGS
3363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3364$as_echo_n "checking whether $CC accepts -g... " >&6; }
3365if ${ac_cv_prog_cc_g+:} false; then :
3366  $as_echo_n "(cached) " >&6
3367else
3368  ac_save_c_werror_flag=$ac_c_werror_flag
3369   ac_c_werror_flag=yes
3370   ac_cv_prog_cc_g=no
3371   CFLAGS="-g"
3372   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3373/* end confdefs.h.  */
3374
3375int
3376main ()
3377{
3378
3379  ;
3380  return 0;
3381}
3382_ACEOF
3383if ac_fn_c_try_compile "$LINENO"; then :
3384  ac_cv_prog_cc_g=yes
3385else
3386  CFLAGS=""
3387      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3388/* end confdefs.h.  */
3389
3390int
3391main ()
3392{
3393
3394  ;
3395  return 0;
3396}
3397_ACEOF
3398if ac_fn_c_try_compile "$LINENO"; then :
3399
3400else
3401  ac_c_werror_flag=$ac_save_c_werror_flag
3402	 CFLAGS="-g"
3403	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404/* end confdefs.h.  */
3405
3406int
3407main ()
3408{
3409
3410  ;
3411  return 0;
3412}
3413_ACEOF
3414if ac_fn_c_try_compile "$LINENO"; then :
3415  ac_cv_prog_cc_g=yes
3416fi
3417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3418fi
3419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3420fi
3421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3422   ac_c_werror_flag=$ac_save_c_werror_flag
3423fi
3424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3425$as_echo "$ac_cv_prog_cc_g" >&6; }
3426if test "$ac_test_CFLAGS" = set; then
3427  CFLAGS=$ac_save_CFLAGS
3428elif test $ac_cv_prog_cc_g = yes; then
3429  if test "$GCC" = yes; then
3430    CFLAGS="-g -O2"
3431  else
3432    CFLAGS="-g"
3433  fi
3434else
3435  if test "$GCC" = yes; then
3436    CFLAGS="-O2"
3437  else
3438    CFLAGS=
3439  fi
3440fi
3441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3442$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3443if ${ac_cv_prog_cc_c89+:} false; then :
3444  $as_echo_n "(cached) " >&6
3445else
3446  ac_cv_prog_cc_c89=no
3447ac_save_CC=$CC
3448cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3449/* end confdefs.h.  */
3450#include <stdarg.h>
3451#include <stdio.h>
3452#include <sys/types.h>
3453#include <sys/stat.h>
3454/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3455struct buf { int x; };
3456FILE * (*rcsopen) (struct buf *, struct stat *, int);
3457static char *e (p, i)
3458     char **p;
3459     int i;
3460{
3461  return p[i];
3462}
3463static char *f (char * (*g) (char **, int), char **p, ...)
3464{
3465  char *s;
3466  va_list v;
3467  va_start (v,p);
3468  s = g (p, va_arg (v,int));
3469  va_end (v);
3470  return s;
3471}
3472
3473/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3474   function prototypes and stuff, but not '\xHH' hex character constants.
3475   These don't provoke an error unfortunately, instead are silently treated
3476   as 'x'.  The following induces an error, until -std is added to get
3477   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3478   array size at least.  It's necessary to write '\x00'==0 to get something
3479   that's true only with -std.  */
3480int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3481
3482/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3483   inside strings and character constants.  */
3484#define FOO(x) 'x'
3485int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3486
3487int test (int i, double x);
3488struct s1 {int (*f) (int a);};
3489struct s2 {int (*f) (double a);};
3490int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3491int argc;
3492char **argv;
3493int
3494main ()
3495{
3496return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3497  ;
3498  return 0;
3499}
3500_ACEOF
3501for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3502	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3503do
3504  CC="$ac_save_CC $ac_arg"
3505  if ac_fn_c_try_compile "$LINENO"; then :
3506  ac_cv_prog_cc_c89=$ac_arg
3507fi
3508rm -f core conftest.err conftest.$ac_objext
3509  test "x$ac_cv_prog_cc_c89" != "xno" && break
3510done
3511rm -f conftest.$ac_ext
3512CC=$ac_save_CC
3513
3514fi
3515# AC_CACHE_VAL
3516case "x$ac_cv_prog_cc_c89" in
3517  x)
3518    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3519$as_echo "none needed" >&6; } ;;
3520  xno)
3521    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3522$as_echo "unsupported" >&6; } ;;
3523  *)
3524    CC="$CC $ac_cv_prog_cc_c89"
3525    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3526$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3527esac
3528if test "x$ac_cv_prog_cc_c89" != xno; then :
3529
3530fi
3531
3532ac_ext=c
3533ac_cpp='$CPP $CPPFLAGS'
3534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3536ac_compiler_gnu=$ac_cv_c_compiler_gnu
3537
3538depcc="$CC"   am_compiler_list=
3539
3540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3541$as_echo_n "checking dependency style of $depcc... " >&6; }
3542if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3543  $as_echo_n "(cached) " >&6
3544else
3545  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3546  # We make a subdir and do the tests there.  Otherwise we can end up
3547  # making bogus files that we don't know about and never remove.  For
3548  # instance it was reported that on HP-UX the gcc test will end up
3549  # making a dummy file named `D' -- because `-MD' means `put the output
3550  # in D'.
3551  rm -rf conftest.dir
3552  mkdir conftest.dir
3553  # Copy depcomp to subdir because otherwise we won't find it if we're
3554  # using a relative directory.
3555  cp "$am_depcomp" conftest.dir
3556  cd conftest.dir
3557  # We will build objects and dependencies in a subdirectory because
3558  # it helps to detect inapplicable dependency modes.  For instance
3559  # both Tru64's cc and ICC support -MD to output dependencies as a
3560  # side effect of compilation, but ICC will put the dependencies in
3561  # the current directory while Tru64 will put them in the object
3562  # directory.
3563  mkdir sub
3564
3565  am_cv_CC_dependencies_compiler_type=none
3566  if test "$am_compiler_list" = ""; then
3567     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3568  fi
3569  am__universal=false
3570  case " $depcc " in #(
3571     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3572     esac
3573
3574  for depmode in $am_compiler_list; do
3575    # Setup a source with many dependencies, because some compilers
3576    # like to wrap large dependency lists on column 80 (with \), and
3577    # we should not choose a depcomp mode which is confused by this.
3578    #
3579    # We need to recreate these files for each test, as the compiler may
3580    # overwrite some of them when testing with obscure command lines.
3581    # This happens at least with the AIX C compiler.
3582    : > sub/conftest.c
3583    for i in 1 2 3 4 5 6; do
3584      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3585      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3586      # Solaris 8's {/usr,}/bin/sh.
3587      touch sub/conftst$i.h
3588    done
3589    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3590
3591    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3592    # mode.  It turns out that the SunPro C++ compiler does not properly
3593    # handle `-M -o', and we need to detect this.  Also, some Intel
3594    # versions had trouble with output in subdirs
3595    am__obj=sub/conftest.${OBJEXT-o}
3596    am__minus_obj="-o $am__obj"
3597    case $depmode in
3598    gcc)
3599      # This depmode causes a compiler race in universal mode.
3600      test "$am__universal" = false || continue
3601      ;;
3602    nosideeffect)
3603      # after this tag, mechanisms are not by side-effect, so they'll
3604      # only be used when explicitly requested
3605      if test "x$enable_dependency_tracking" = xyes; then
3606	continue
3607      else
3608	break
3609      fi
3610      ;;
3611    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3612      # This compiler won't grok `-c -o', but also, the minuso test has
3613      # not run yet.  These depmodes are late enough in the game, and
3614      # so weak that their functioning should not be impacted.
3615      am__obj=conftest.${OBJEXT-o}
3616      am__minus_obj=
3617      ;;
3618    none) break ;;
3619    esac
3620    if depmode=$depmode \
3621       source=sub/conftest.c object=$am__obj \
3622       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3623       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3624         >/dev/null 2>conftest.err &&
3625       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3626       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3627       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3628       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3629      # icc doesn't choke on unknown options, it will just issue warnings
3630      # or remarks (even with -Werror).  So we grep stderr for any message
3631      # that says an option was ignored or not supported.
3632      # When given -MP, icc 7.0 and 7.1 complain thusly:
3633      #   icc: Command line warning: ignoring option '-M'; no argument required
3634      # The diagnosis changed in icc 8.0:
3635      #   icc: Command line remark: option '-MP' not supported
3636      if (grep 'ignoring option' conftest.err ||
3637          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3638        am_cv_CC_dependencies_compiler_type=$depmode
3639        break
3640      fi
3641    fi
3642  done
3643
3644  cd ..
3645  rm -rf conftest.dir
3646else
3647  am_cv_CC_dependencies_compiler_type=none
3648fi
3649
3650fi
3651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3652$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3653CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3654
3655 if
3656  test "x$enable_dependency_tracking" != xno \
3657  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3658  am__fastdepCC_TRUE=
3659  am__fastdepCC_FALSE='#'
3660else
3661  am__fastdepCC_TRUE='#'
3662  am__fastdepCC_FALSE=
3663fi
3664
3665
3666if test "x$CC" != xcc; then
3667  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3668$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3669else
3670  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3671$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3672fi
3673set dummy $CC; ac_cc=`$as_echo "$2" |
3674		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3675if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
3676  $as_echo_n "(cached) " >&6
3677else
3678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679/* end confdefs.h.  */
3680
3681int
3682main ()
3683{
3684
3685  ;
3686  return 0;
3687}
3688_ACEOF
3689# Make sure it works both with $CC and with simple cc.
3690# We do the test twice because some compilers refuse to overwrite an
3691# existing .o file with -o, though they will create one.
3692ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3693rm -f conftest2.*
3694if { { case "(($ac_try" in
3695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696  *) ac_try_echo=$ac_try;;
3697esac
3698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3699$as_echo "$ac_try_echo"; } >&5
3700  (eval "$ac_try") 2>&5
3701  ac_status=$?
3702  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3703  test $ac_status = 0; } &&
3704   test -f conftest2.$ac_objext && { { case "(($ac_try" in
3705  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3706  *) ac_try_echo=$ac_try;;
3707esac
3708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3709$as_echo "$ac_try_echo"; } >&5
3710  (eval "$ac_try") 2>&5
3711  ac_status=$?
3712  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3713  test $ac_status = 0; };
3714then
3715  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3716  if test "x$CC" != xcc; then
3717    # Test first that cc exists at all.
3718    if { ac_try='cc -c conftest.$ac_ext >&5'
3719  { { case "(($ac_try" in
3720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3721  *) ac_try_echo=$ac_try;;
3722esac
3723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3724$as_echo "$ac_try_echo"; } >&5
3725  (eval "$ac_try") 2>&5
3726  ac_status=$?
3727  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3728  test $ac_status = 0; }; }; then
3729      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3730      rm -f conftest2.*
3731      if { { case "(($ac_try" in
3732  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733  *) ac_try_echo=$ac_try;;
3734esac
3735eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3736$as_echo "$ac_try_echo"; } >&5
3737  (eval "$ac_try") 2>&5
3738  ac_status=$?
3739  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3740  test $ac_status = 0; } &&
3741	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3742  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743  *) ac_try_echo=$ac_try;;
3744esac
3745eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3746$as_echo "$ac_try_echo"; } >&5
3747  (eval "$ac_try") 2>&5
3748  ac_status=$?
3749  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3750  test $ac_status = 0; };
3751      then
3752	# cc works too.
3753	:
3754      else
3755	# cc exists but doesn't like -o.
3756	eval ac_cv_prog_cc_${ac_cc}_c_o=no
3757      fi
3758    fi
3759  fi
3760else
3761  eval ac_cv_prog_cc_${ac_cc}_c_o=no
3762fi
3763rm -f core conftest*
3764
3765fi
3766if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3768$as_echo "yes" >&6; }
3769else
3770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3771$as_echo "no" >&6; }
3772
3773$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3774
3775fi
3776
3777# FIXME: we rely on the cache variable name because
3778# there is no other way.
3779set dummy $CC
3780am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3781eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
3782if test "$am_t" != yes; then
3783   # Losing compiler, so override with the script.
3784   # FIXME: It is wrong to rewrite CC.
3785   # But if we don't then we get into trouble of one sort or another.
3786   # A longer-term fix would be to have automake use am__CC in this case,
3787   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3788   CC="$am_aux_dir/compile $CC"
3789fi
3790
3791
3792
3793# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3806$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3807if ${ac_cv_prog_cc_c99+:} false; then :
3808  $as_echo_n "(cached) " >&6
3809else
3810  ac_cv_prog_cc_c99=no
3811ac_save_CC=$CC
3812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813/* end confdefs.h.  */
3814#include <stdarg.h>
3815#include <stdbool.h>
3816#include <stdlib.h>
3817#include <wchar.h>
3818#include <stdio.h>
3819
3820// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3821#define debug(...) fprintf (stderr, __VA_ARGS__)
3822#define showlist(...) puts (#__VA_ARGS__)
3823#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3824static void
3825test_varargs_macros (void)
3826{
3827  int x = 1234;
3828  int y = 5678;
3829  debug ("Flag");
3830  debug ("X = %d\n", x);
3831  showlist (The first, second, and third items.);
3832  report (x>y, "x is %d but y is %d", x, y);
3833}
3834
3835// Check long long types.
3836#define BIG64 18446744073709551615ull
3837#define BIG32 4294967295ul
3838#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3839#if !BIG_OK
3840  your preprocessor is broken;
3841#endif
3842#if BIG_OK
3843#else
3844  your preprocessor is broken;
3845#endif
3846static long long int bignum = -9223372036854775807LL;
3847static unsigned long long int ubignum = BIG64;
3848
3849struct incomplete_array
3850{
3851  int datasize;
3852  double data[];
3853};
3854
3855struct named_init {
3856  int number;
3857  const wchar_t *name;
3858  double average;
3859};
3860
3861typedef const char *ccp;
3862
3863static inline int
3864test_restrict (ccp restrict text)
3865{
3866  // See if C++-style comments work.
3867  // Iterate through items via the restricted pointer.
3868  // Also check for declarations in for loops.
3869  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3870    continue;
3871  return 0;
3872}
3873
3874// Check varargs and va_copy.
3875static void
3876test_varargs (const char *format, ...)
3877{
3878  va_list args;
3879  va_start (args, format);
3880  va_list args_copy;
3881  va_copy (args_copy, args);
3882
3883  const char *str;
3884  int number;
3885  float fnumber;
3886
3887  while (*format)
3888    {
3889      switch (*format++)
3890	{
3891	case 's': // string
3892	  str = va_arg (args_copy, const char *);
3893	  break;
3894	case 'd': // int
3895	  number = va_arg (args_copy, int);
3896	  break;
3897	case 'f': // float
3898	  fnumber = va_arg (args_copy, double);
3899	  break;
3900	default:
3901	  break;
3902	}
3903    }
3904  va_end (args_copy);
3905  va_end (args);
3906}
3907
3908int
3909main ()
3910{
3911
3912  // Check bool.
3913  _Bool success = false;
3914
3915  // Check restrict.
3916  if (test_restrict ("String literal") == 0)
3917    success = true;
3918  char *restrict newvar = "Another string";
3919
3920  // Check varargs.
3921  test_varargs ("s, d' f .", "string", 65, 34.234);
3922  test_varargs_macros ();
3923
3924  // Check flexible array members.
3925  struct incomplete_array *ia =
3926    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3927  ia->datasize = 10;
3928  for (int i = 0; i < ia->datasize; ++i)
3929    ia->data[i] = i * 1.234;
3930
3931  // Check named initializers.
3932  struct named_init ni = {
3933    .number = 34,
3934    .name = L"Test wide string",
3935    .average = 543.34343,
3936  };
3937
3938  ni.number = 58;
3939
3940  int dynamic_array[ni.number];
3941  dynamic_array[ni.number - 1] = 543;
3942
3943  // work around unused variable warnings
3944  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3945	  || dynamic_array[ni.number - 1] != 543);
3946
3947  ;
3948  return 0;
3949}
3950_ACEOF
3951for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3952do
3953  CC="$ac_save_CC $ac_arg"
3954  if ac_fn_c_try_compile "$LINENO"; then :
3955  ac_cv_prog_cc_c99=$ac_arg
3956fi
3957rm -f core conftest.err conftest.$ac_objext
3958  test "x$ac_cv_prog_cc_c99" != "xno" && break
3959done
3960rm -f conftest.$ac_ext
3961CC=$ac_save_CC
3962
3963fi
3964# AC_CACHE_VAL
3965case "x$ac_cv_prog_cc_c99" in
3966  x)
3967    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3968$as_echo "none needed" >&6; } ;;
3969  xno)
3970    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3971$as_echo "unsupported" >&6; } ;;
3972  *)
3973    CC="$CC $ac_cv_prog_cc_c99"
3974    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3975$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3976esac
3977if test "x$ac_cv_prog_cc_c99" != xno; then :
3978
3979fi
3980
3981
3982
3983ac_ext=c
3984ac_cpp='$CPP $CPPFLAGS'
3985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3987ac_compiler_gnu=$ac_cv_c_compiler_gnu
3988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3989$as_echo_n "checking how to run the C preprocessor... " >&6; }
3990# On Suns, sometimes $CPP names a directory.
3991if test -n "$CPP" && test -d "$CPP"; then
3992  CPP=
3993fi
3994if test -z "$CPP"; then
3995  if ${ac_cv_prog_CPP+:} false; then :
3996  $as_echo_n "(cached) " >&6
3997else
3998      # Double quotes because CPP needs to be expanded
3999    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4000    do
4001      ac_preproc_ok=false
4002for ac_c_preproc_warn_flag in '' yes
4003do
4004  # Use a header file that comes with gcc, so configuring glibc
4005  # with a fresh cross-compiler works.
4006  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4007  # <limits.h> exists even on freestanding compilers.
4008  # On the NeXT, cc -E runs the code through the compiler's parser,
4009  # not just through cpp. "Syntax error" is here to catch this case.
4010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011/* end confdefs.h.  */
4012#ifdef __STDC__
4013# include <limits.h>
4014#else
4015# include <assert.h>
4016#endif
4017		     Syntax error
4018_ACEOF
4019if ac_fn_c_try_cpp "$LINENO"; then :
4020
4021else
4022  # Broken: fails on valid input.
4023continue
4024fi
4025rm -f conftest.err conftest.i conftest.$ac_ext
4026
4027  # OK, works on sane cases.  Now check whether nonexistent headers
4028  # can be detected and how.
4029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030/* end confdefs.h.  */
4031#include <ac_nonexistent.h>
4032_ACEOF
4033if ac_fn_c_try_cpp "$LINENO"; then :
4034  # Broken: success on invalid input.
4035continue
4036else
4037  # Passes both tests.
4038ac_preproc_ok=:
4039break
4040fi
4041rm -f conftest.err conftest.i conftest.$ac_ext
4042
4043done
4044# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4045rm -f conftest.i conftest.err conftest.$ac_ext
4046if $ac_preproc_ok; then :
4047  break
4048fi
4049
4050    done
4051    ac_cv_prog_CPP=$CPP
4052
4053fi
4054  CPP=$ac_cv_prog_CPP
4055else
4056  ac_cv_prog_CPP=$CPP
4057fi
4058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4059$as_echo "$CPP" >&6; }
4060ac_preproc_ok=false
4061for ac_c_preproc_warn_flag in '' yes
4062do
4063  # Use a header file that comes with gcc, so configuring glibc
4064  # with a fresh cross-compiler works.
4065  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4066  # <limits.h> exists even on freestanding compilers.
4067  # On the NeXT, cc -E runs the code through the compiler's parser,
4068  # not just through cpp. "Syntax error" is here to catch this case.
4069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070/* end confdefs.h.  */
4071#ifdef __STDC__
4072# include <limits.h>
4073#else
4074# include <assert.h>
4075#endif
4076		     Syntax error
4077_ACEOF
4078if ac_fn_c_try_cpp "$LINENO"; then :
4079
4080else
4081  # Broken: fails on valid input.
4082continue
4083fi
4084rm -f conftest.err conftest.i conftest.$ac_ext
4085
4086  # OK, works on sane cases.  Now check whether nonexistent headers
4087  # can be detected and how.
4088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089/* end confdefs.h.  */
4090#include <ac_nonexistent.h>
4091_ACEOF
4092if ac_fn_c_try_cpp "$LINENO"; then :
4093  # Broken: success on invalid input.
4094continue
4095else
4096  # Passes both tests.
4097ac_preproc_ok=:
4098break
4099fi
4100rm -f conftest.err conftest.i conftest.$ac_ext
4101
4102done
4103# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4104rm -f conftest.i conftest.err conftest.$ac_ext
4105if $ac_preproc_ok; then :
4106
4107else
4108  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4109$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4110as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4111See \`config.log' for more details" "$LINENO" 5; }
4112fi
4113
4114ac_ext=c
4115ac_cpp='$CPP $CPPFLAGS'
4116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4118ac_compiler_gnu=$ac_cv_c_compiler_gnu
4119
4120
4121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4122$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4123if ${ac_cv_path_GREP+:} false; then :
4124  $as_echo_n "(cached) " >&6
4125else
4126  if test -z "$GREP"; then
4127  ac_path_GREP_found=false
4128  # Loop through the user's path and test for each of PROGNAME-LIST
4129  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4131do
4132  IFS=$as_save_IFS
4133  test -z "$as_dir" && as_dir=.
4134    for ac_prog in grep ggrep; do
4135    for ac_exec_ext in '' $ac_executable_extensions; do
4136      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4137      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4138# Check for GNU ac_path_GREP and select it if it is found.
4139  # Check for GNU $ac_path_GREP
4140case `"$ac_path_GREP" --version 2>&1` in
4141*GNU*)
4142  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4143*)
4144  ac_count=0
4145  $as_echo_n 0123456789 >"conftest.in"
4146  while :
4147  do
4148    cat "conftest.in" "conftest.in" >"conftest.tmp"
4149    mv "conftest.tmp" "conftest.in"
4150    cp "conftest.in" "conftest.nl"
4151    $as_echo 'GREP' >> "conftest.nl"
4152    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4153    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4154    as_fn_arith $ac_count + 1 && ac_count=$as_val
4155    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4156      # Best one so far, save it but keep looking for a better one
4157      ac_cv_path_GREP="$ac_path_GREP"
4158      ac_path_GREP_max=$ac_count
4159    fi
4160    # 10*(2^10) chars as input seems more than enough
4161    test $ac_count -gt 10 && break
4162  done
4163  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4164esac
4165
4166      $ac_path_GREP_found && break 3
4167    done
4168  done
4169  done
4170IFS=$as_save_IFS
4171  if test -z "$ac_cv_path_GREP"; then
4172    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4173  fi
4174else
4175  ac_cv_path_GREP=$GREP
4176fi
4177
4178fi
4179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4180$as_echo "$ac_cv_path_GREP" >&6; }
4181 GREP="$ac_cv_path_GREP"
4182
4183
4184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4185$as_echo_n "checking for egrep... " >&6; }
4186if ${ac_cv_path_EGREP+:} false; then :
4187  $as_echo_n "(cached) " >&6
4188else
4189  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4190   then ac_cv_path_EGREP="$GREP -E"
4191   else
4192     if test -z "$EGREP"; then
4193  ac_path_EGREP_found=false
4194  # Loop through the user's path and test for each of PROGNAME-LIST
4195  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4196for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4197do
4198  IFS=$as_save_IFS
4199  test -z "$as_dir" && as_dir=.
4200    for ac_prog in egrep; do
4201    for ac_exec_ext in '' $ac_executable_extensions; do
4202      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4203      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4204# Check for GNU ac_path_EGREP and select it if it is found.
4205  # Check for GNU $ac_path_EGREP
4206case `"$ac_path_EGREP" --version 2>&1` in
4207*GNU*)
4208  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4209*)
4210  ac_count=0
4211  $as_echo_n 0123456789 >"conftest.in"
4212  while :
4213  do
4214    cat "conftest.in" "conftest.in" >"conftest.tmp"
4215    mv "conftest.tmp" "conftest.in"
4216    cp "conftest.in" "conftest.nl"
4217    $as_echo 'EGREP' >> "conftest.nl"
4218    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4219    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4220    as_fn_arith $ac_count + 1 && ac_count=$as_val
4221    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4222      # Best one so far, save it but keep looking for a better one
4223      ac_cv_path_EGREP="$ac_path_EGREP"
4224      ac_path_EGREP_max=$ac_count
4225    fi
4226    # 10*(2^10) chars as input seems more than enough
4227    test $ac_count -gt 10 && break
4228  done
4229  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4230esac
4231
4232      $ac_path_EGREP_found && break 3
4233    done
4234  done
4235  done
4236IFS=$as_save_IFS
4237  if test -z "$ac_cv_path_EGREP"; then
4238    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4239  fi
4240else
4241  ac_cv_path_EGREP=$EGREP
4242fi
4243
4244   fi
4245fi
4246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4247$as_echo "$ac_cv_path_EGREP" >&6; }
4248 EGREP="$ac_cv_path_EGREP"
4249
4250
4251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4252$as_echo_n "checking for ANSI C header files... " >&6; }
4253if ${ac_cv_header_stdc+:} false; then :
4254  $as_echo_n "(cached) " >&6
4255else
4256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257/* end confdefs.h.  */
4258#include <stdlib.h>
4259#include <stdarg.h>
4260#include <string.h>
4261#include <float.h>
4262
4263int
4264main ()
4265{
4266
4267  ;
4268  return 0;
4269}
4270_ACEOF
4271if ac_fn_c_try_compile "$LINENO"; then :
4272  ac_cv_header_stdc=yes
4273else
4274  ac_cv_header_stdc=no
4275fi
4276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4277
4278if test $ac_cv_header_stdc = yes; then
4279  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281/* end confdefs.h.  */
4282#include <string.h>
4283
4284_ACEOF
4285if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4286  $EGREP "memchr" >/dev/null 2>&1; then :
4287
4288else
4289  ac_cv_header_stdc=no
4290fi
4291rm -f conftest*
4292
4293fi
4294
4295if test $ac_cv_header_stdc = yes; then
4296  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4298/* end confdefs.h.  */
4299#include <stdlib.h>
4300
4301_ACEOF
4302if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4303  $EGREP "free" >/dev/null 2>&1; then :
4304
4305else
4306  ac_cv_header_stdc=no
4307fi
4308rm -f conftest*
4309
4310fi
4311
4312if test $ac_cv_header_stdc = yes; then
4313  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4314  if test "$cross_compiling" = yes; then :
4315  :
4316else
4317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318/* end confdefs.h.  */
4319#include <ctype.h>
4320#include <stdlib.h>
4321#if ((' ' & 0x0FF) == 0x020)
4322# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4323# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4324#else
4325# define ISLOWER(c) \
4326		   (('a' <= (c) && (c) <= 'i') \
4327		     || ('j' <= (c) && (c) <= 'r') \
4328		     || ('s' <= (c) && (c) <= 'z'))
4329# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4330#endif
4331
4332#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4333int
4334main ()
4335{
4336  int i;
4337  for (i = 0; i < 256; i++)
4338    if (XOR (islower (i), ISLOWER (i))
4339	|| toupper (i) != TOUPPER (i))
4340      return 2;
4341  return 0;
4342}
4343_ACEOF
4344if ac_fn_c_try_run "$LINENO"; then :
4345
4346else
4347  ac_cv_header_stdc=no
4348fi
4349rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4350  conftest.$ac_objext conftest.beam conftest.$ac_ext
4351fi
4352
4353fi
4354fi
4355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4356$as_echo "$ac_cv_header_stdc" >&6; }
4357if test $ac_cv_header_stdc = yes; then
4358
4359$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4360
4361fi
4362
4363# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4364for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4365		  inttypes.h stdint.h unistd.h
4366do :
4367  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4368ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4369"
4370if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4371  cat >>confdefs.h <<_ACEOF
4372#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4373_ACEOF
4374
4375fi
4376
4377done
4378
4379
4380
4381
4382
4383
4384ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4385if test "x$ac_cv_have_decl___clang__" = xyes; then :
4386  CLANGCC="yes"
4387else
4388  CLANGCC="no"
4389fi
4390
4391ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4392if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4393  INTELCC="yes"
4394else
4395  INTELCC="no"
4396fi
4397
4398ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4399if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4400  SUNCC="yes"
4401else
4402  SUNCC="no"
4403fi
4404
4405
4406
4407
4408if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4409	if test -n "$ac_tool_prefix"; then
4410  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4411set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4413$as_echo_n "checking for $ac_word... " >&6; }
4414if ${ac_cv_path_PKG_CONFIG+:} false; then :
4415  $as_echo_n "(cached) " >&6
4416else
4417  case $PKG_CONFIG in
4418  [\\/]* | ?:[\\/]*)
4419  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4420  ;;
4421  *)
4422  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423for as_dir in $PATH
4424do
4425  IFS=$as_save_IFS
4426  test -z "$as_dir" && as_dir=.
4427    for ac_exec_ext in '' $ac_executable_extensions; do
4428  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4429    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4430    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4431    break 2
4432  fi
4433done
4434  done
4435IFS=$as_save_IFS
4436
4437  ;;
4438esac
4439fi
4440PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4441if test -n "$PKG_CONFIG"; then
4442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4443$as_echo "$PKG_CONFIG" >&6; }
4444else
4445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4446$as_echo "no" >&6; }
4447fi
4448
4449
4450fi
4451if test -z "$ac_cv_path_PKG_CONFIG"; then
4452  ac_pt_PKG_CONFIG=$PKG_CONFIG
4453  # Extract the first word of "pkg-config", so it can be a program name with args.
4454set dummy pkg-config; ac_word=$2
4455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4456$as_echo_n "checking for $ac_word... " >&6; }
4457if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4458  $as_echo_n "(cached) " >&6
4459else
4460  case $ac_pt_PKG_CONFIG in
4461  [\\/]* | ?:[\\/]*)
4462  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4463  ;;
4464  *)
4465  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466for as_dir in $PATH
4467do
4468  IFS=$as_save_IFS
4469  test -z "$as_dir" && as_dir=.
4470    for ac_exec_ext in '' $ac_executable_extensions; do
4471  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4472    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4473    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4474    break 2
4475  fi
4476done
4477  done
4478IFS=$as_save_IFS
4479
4480  ;;
4481esac
4482fi
4483ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4484if test -n "$ac_pt_PKG_CONFIG"; then
4485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4486$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4487else
4488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4489$as_echo "no" >&6; }
4490fi
4491
4492  if test "x$ac_pt_PKG_CONFIG" = x; then
4493    PKG_CONFIG=""
4494  else
4495    case $cross_compiling:$ac_tool_warned in
4496yes:)
4497{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4498$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4499ac_tool_warned=yes ;;
4500esac
4501    PKG_CONFIG=$ac_pt_PKG_CONFIG
4502  fi
4503else
4504  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4505fi
4506
4507fi
4508if test -n "$PKG_CONFIG"; then
4509	_pkg_min_version=0.9.0
4510	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4511$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4512	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4513		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4514$as_echo "yes" >&6; }
4515	else
4516		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4517$as_echo "no" >&6; }
4518		PKG_CONFIG=""
4519	fi
4520
4521fi
4522# Make sure we can run config.sub.
4523$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4524  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4525
4526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4527$as_echo_n "checking build system type... " >&6; }
4528if ${ac_cv_build+:} false; then :
4529  $as_echo_n "(cached) " >&6
4530else
4531  ac_build_alias=$build_alias
4532test "x$ac_build_alias" = x &&
4533  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4534test "x$ac_build_alias" = x &&
4535  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4536ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4537  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4538
4539fi
4540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4541$as_echo "$ac_cv_build" >&6; }
4542case $ac_cv_build in
4543*-*-*) ;;
4544*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4545esac
4546build=$ac_cv_build
4547ac_save_IFS=$IFS; IFS='-'
4548set x $ac_cv_build
4549shift
4550build_cpu=$1
4551build_vendor=$2
4552shift; shift
4553# Remember, the first character of IFS is used to create $*,
4554# except with old shells:
4555build_os=$*
4556IFS=$ac_save_IFS
4557case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4558
4559
4560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4561$as_echo_n "checking host system type... " >&6; }
4562if ${ac_cv_host+:} false; then :
4563  $as_echo_n "(cached) " >&6
4564else
4565  if test "x$host_alias" = x; then
4566  ac_cv_host=$ac_cv_build
4567else
4568  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4569    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4570fi
4571
4572fi
4573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4574$as_echo "$ac_cv_host" >&6; }
4575case $ac_cv_host in
4576*-*-*) ;;
4577*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4578esac
4579host=$ac_cv_host
4580ac_save_IFS=$IFS; IFS='-'
4581set x $ac_cv_host
4582shift
4583host_cpu=$1
4584host_vendor=$2
4585shift; shift
4586# Remember, the first character of IFS is used to create $*,
4587# except with old shells:
4588host_os=$*
4589IFS=$ac_save_IFS
4590case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4591
4592
4593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4594$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4595if ${ac_cv_path_SED+:} false; then :
4596  $as_echo_n "(cached) " >&6
4597else
4598            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4599     for ac_i in 1 2 3 4 5 6 7; do
4600       ac_script="$ac_script$as_nl$ac_script"
4601     done
4602     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4603     { ac_script=; unset ac_script;}
4604     if test -z "$SED"; then
4605  ac_path_SED_found=false
4606  # Loop through the user's path and test for each of PROGNAME-LIST
4607  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608for as_dir in $PATH
4609do
4610  IFS=$as_save_IFS
4611  test -z "$as_dir" && as_dir=.
4612    for ac_prog in sed gsed; do
4613    for ac_exec_ext in '' $ac_executable_extensions; do
4614      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4615      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4616# Check for GNU ac_path_SED and select it if it is found.
4617  # Check for GNU $ac_path_SED
4618case `"$ac_path_SED" --version 2>&1` in
4619*GNU*)
4620  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4621*)
4622  ac_count=0
4623  $as_echo_n 0123456789 >"conftest.in"
4624  while :
4625  do
4626    cat "conftest.in" "conftest.in" >"conftest.tmp"
4627    mv "conftest.tmp" "conftest.in"
4628    cp "conftest.in" "conftest.nl"
4629    $as_echo '' >> "conftest.nl"
4630    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4631    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4632    as_fn_arith $ac_count + 1 && ac_count=$as_val
4633    if test $ac_count -gt ${ac_path_SED_max-0}; then
4634      # Best one so far, save it but keep looking for a better one
4635      ac_cv_path_SED="$ac_path_SED"
4636      ac_path_SED_max=$ac_count
4637    fi
4638    # 10*(2^10) chars as input seems more than enough
4639    test $ac_count -gt 10 && break
4640  done
4641  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4642esac
4643
4644      $ac_path_SED_found && break 3
4645    done
4646  done
4647  done
4648IFS=$as_save_IFS
4649  if test -z "$ac_cv_path_SED"; then
4650    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4651  fi
4652else
4653  ac_cv_path_SED=$SED
4654fi
4655
4656fi
4657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4658$as_echo "$ac_cv_path_SED" >&6; }
4659 SED="$ac_cv_path_SED"
4660  rm -f conftest.sed
4661
4662
4663
4664
4665
4666
4667# Check whether --enable-selective-werror was given.
4668if test "${enable_selective_werror+set}" = set; then :
4669  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4670else
4671  SELECTIVE_WERROR=yes
4672fi
4673
4674
4675
4676
4677
4678# -v is too short to test reliably with XORG_TESTSET_CFLAG
4679if test "x$SUNCC" = "xyes"; then
4680    BASE_CFLAGS="-v"
4681else
4682    BASE_CFLAGS=""
4683fi
4684
4685# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699xorg_testset_save_CFLAGS="$CFLAGS"
4700
4701if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4702	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4703	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4704$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4705if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4706  $as_echo_n "(cached) " >&6
4707else
4708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4709/* end confdefs.h.  */
4710int i;
4711_ACEOF
4712if ac_fn_c_try_compile "$LINENO"; then :
4713  xorg_cv_cc_flag_unknown_warning_option=yes
4714else
4715  xorg_cv_cc_flag_unknown_warning_option=no
4716fi
4717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4718fi
4719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4720$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4721	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4722	CFLAGS="$xorg_testset_save_CFLAGS"
4723fi
4724
4725if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4726	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4727		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4728	fi
4729	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4730	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4731$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4732if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4733  $as_echo_n "(cached) " >&6
4734else
4735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4736/* end confdefs.h.  */
4737int i;
4738_ACEOF
4739if ac_fn_c_try_compile "$LINENO"; then :
4740  xorg_cv_cc_flag_unused_command_line_argument=yes
4741else
4742  xorg_cv_cc_flag_unused_command_line_argument=no
4743fi
4744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4745fi
4746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4747$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4748	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4749	CFLAGS="$xorg_testset_save_CFLAGS"
4750fi
4751
4752found="no"
4753
4754	if test $found = "no" ; then
4755		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4756			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4757		fi
4758
4759		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4760			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4761		fi
4762
4763		CFLAGS="$CFLAGS -Wall"
4764
4765		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4766$as_echo_n "checking if $CC supports -Wall... " >&6; }
4767		cacheid=xorg_cv_cc_flag__Wall
4768		if eval \${$cacheid+:} false; then :
4769  $as_echo_n "(cached) " >&6
4770else
4771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772/* end confdefs.h.  */
4773int i;
4774int
4775main ()
4776{
4777
4778  ;
4779  return 0;
4780}
4781_ACEOF
4782if ac_fn_c_try_link "$LINENO"; then :
4783  eval $cacheid=yes
4784else
4785  eval $cacheid=no
4786fi
4787rm -f core conftest.err conftest.$ac_objext \
4788    conftest$ac_exeext conftest.$ac_ext
4789fi
4790
4791
4792		CFLAGS="$xorg_testset_save_CFLAGS"
4793
4794		eval supported=\$$cacheid
4795		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4796$as_echo "$supported" >&6; }
4797		if test "$supported" = "yes" ; then
4798			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4799			found="yes"
4800		fi
4801	fi
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817xorg_testset_save_CFLAGS="$CFLAGS"
4818
4819if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4820	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4821	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4822$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4823if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4824  $as_echo_n "(cached) " >&6
4825else
4826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4827/* end confdefs.h.  */
4828int i;
4829_ACEOF
4830if ac_fn_c_try_compile "$LINENO"; then :
4831  xorg_cv_cc_flag_unknown_warning_option=yes
4832else
4833  xorg_cv_cc_flag_unknown_warning_option=no
4834fi
4835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4836fi
4837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4838$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4839	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4840	CFLAGS="$xorg_testset_save_CFLAGS"
4841fi
4842
4843if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4844	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4845		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4846	fi
4847	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4848	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4849$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4850if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4851  $as_echo_n "(cached) " >&6
4852else
4853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4854/* end confdefs.h.  */
4855int i;
4856_ACEOF
4857if ac_fn_c_try_compile "$LINENO"; then :
4858  xorg_cv_cc_flag_unused_command_line_argument=yes
4859else
4860  xorg_cv_cc_flag_unused_command_line_argument=no
4861fi
4862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4863fi
4864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4865$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4866	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4867	CFLAGS="$xorg_testset_save_CFLAGS"
4868fi
4869
4870found="no"
4871
4872	if test $found = "no" ; then
4873		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4874			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4875		fi
4876
4877		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4878			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4879		fi
4880
4881		CFLAGS="$CFLAGS -Wpointer-arith"
4882
4883		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4884$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4885		cacheid=xorg_cv_cc_flag__Wpointer_arith
4886		if eval \${$cacheid+:} false; then :
4887  $as_echo_n "(cached) " >&6
4888else
4889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4890/* end confdefs.h.  */
4891int i;
4892int
4893main ()
4894{
4895
4896  ;
4897  return 0;
4898}
4899_ACEOF
4900if ac_fn_c_try_link "$LINENO"; then :
4901  eval $cacheid=yes
4902else
4903  eval $cacheid=no
4904fi
4905rm -f core conftest.err conftest.$ac_objext \
4906    conftest$ac_exeext conftest.$ac_ext
4907fi
4908
4909
4910		CFLAGS="$xorg_testset_save_CFLAGS"
4911
4912		eval supported=\$$cacheid
4913		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4914$as_echo "$supported" >&6; }
4915		if test "$supported" = "yes" ; then
4916			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4917			found="yes"
4918		fi
4919	fi
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935xorg_testset_save_CFLAGS="$CFLAGS"
4936
4937if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4938	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4939	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4940$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4941if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4942  $as_echo_n "(cached) " >&6
4943else
4944  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945/* end confdefs.h.  */
4946int i;
4947_ACEOF
4948if ac_fn_c_try_compile "$LINENO"; then :
4949  xorg_cv_cc_flag_unknown_warning_option=yes
4950else
4951  xorg_cv_cc_flag_unknown_warning_option=no
4952fi
4953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4954fi
4955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4956$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4957	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4958	CFLAGS="$xorg_testset_save_CFLAGS"
4959fi
4960
4961if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4962	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4963		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4964	fi
4965	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4966	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4967$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4968if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4969  $as_echo_n "(cached) " >&6
4970else
4971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4972/* end confdefs.h.  */
4973int i;
4974_ACEOF
4975if ac_fn_c_try_compile "$LINENO"; then :
4976  xorg_cv_cc_flag_unused_command_line_argument=yes
4977else
4978  xorg_cv_cc_flag_unused_command_line_argument=no
4979fi
4980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4981fi
4982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4983$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4984	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4985	CFLAGS="$xorg_testset_save_CFLAGS"
4986fi
4987
4988found="no"
4989
4990	if test $found = "no" ; then
4991		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4992			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4993		fi
4994
4995		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4996			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4997		fi
4998
4999		CFLAGS="$CFLAGS -Wmissing-declarations"
5000
5001		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5002$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5003		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5004		if eval \${$cacheid+:} false; then :
5005  $as_echo_n "(cached) " >&6
5006else
5007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5008/* end confdefs.h.  */
5009int i;
5010int
5011main ()
5012{
5013
5014  ;
5015  return 0;
5016}
5017_ACEOF
5018if ac_fn_c_try_link "$LINENO"; then :
5019  eval $cacheid=yes
5020else
5021  eval $cacheid=no
5022fi
5023rm -f core conftest.err conftest.$ac_objext \
5024    conftest$ac_exeext conftest.$ac_ext
5025fi
5026
5027
5028		CFLAGS="$xorg_testset_save_CFLAGS"
5029
5030		eval supported=\$$cacheid
5031		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5032$as_echo "$supported" >&6; }
5033		if test "$supported" = "yes" ; then
5034			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5035			found="yes"
5036		fi
5037	fi
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053xorg_testset_save_CFLAGS="$CFLAGS"
5054
5055if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5056	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5057	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5058$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5059if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5060  $as_echo_n "(cached) " >&6
5061else
5062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5063/* end confdefs.h.  */
5064int i;
5065_ACEOF
5066if ac_fn_c_try_compile "$LINENO"; then :
5067  xorg_cv_cc_flag_unknown_warning_option=yes
5068else
5069  xorg_cv_cc_flag_unknown_warning_option=no
5070fi
5071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5072fi
5073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5074$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5075	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5076	CFLAGS="$xorg_testset_save_CFLAGS"
5077fi
5078
5079if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5080	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5081		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5082	fi
5083	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5084	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5085$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5086if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5087  $as_echo_n "(cached) " >&6
5088else
5089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5090/* end confdefs.h.  */
5091int i;
5092_ACEOF
5093if ac_fn_c_try_compile "$LINENO"; then :
5094  xorg_cv_cc_flag_unused_command_line_argument=yes
5095else
5096  xorg_cv_cc_flag_unused_command_line_argument=no
5097fi
5098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5099fi
5100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5101$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5102	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5103	CFLAGS="$xorg_testset_save_CFLAGS"
5104fi
5105
5106found="no"
5107
5108	if test $found = "no" ; then
5109		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5110			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5111		fi
5112
5113		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5114			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5115		fi
5116
5117		CFLAGS="$CFLAGS -Wformat=2"
5118
5119		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5120$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5121		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5122		if eval \${$cacheid+:} false; then :
5123  $as_echo_n "(cached) " >&6
5124else
5125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5126/* end confdefs.h.  */
5127int i;
5128int
5129main ()
5130{
5131
5132  ;
5133  return 0;
5134}
5135_ACEOF
5136if ac_fn_c_try_link "$LINENO"; then :
5137  eval $cacheid=yes
5138else
5139  eval $cacheid=no
5140fi
5141rm -f core conftest.err conftest.$ac_objext \
5142    conftest$ac_exeext conftest.$ac_ext
5143fi
5144
5145
5146		CFLAGS="$xorg_testset_save_CFLAGS"
5147
5148		eval supported=\$$cacheid
5149		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5150$as_echo "$supported" >&6; }
5151		if test "$supported" = "yes" ; then
5152			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5153			found="yes"
5154		fi
5155	fi
5156
5157	if test $found = "no" ; then
5158		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5159			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5160		fi
5161
5162		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5163			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5164		fi
5165
5166		CFLAGS="$CFLAGS -Wformat"
5167
5168		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5169$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5170		cacheid=xorg_cv_cc_flag__Wformat
5171		if eval \${$cacheid+:} false; then :
5172  $as_echo_n "(cached) " >&6
5173else
5174  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5175/* end confdefs.h.  */
5176int i;
5177int
5178main ()
5179{
5180
5181  ;
5182  return 0;
5183}
5184_ACEOF
5185if ac_fn_c_try_link "$LINENO"; then :
5186  eval $cacheid=yes
5187else
5188  eval $cacheid=no
5189fi
5190rm -f core conftest.err conftest.$ac_objext \
5191    conftest$ac_exeext conftest.$ac_ext
5192fi
5193
5194
5195		CFLAGS="$xorg_testset_save_CFLAGS"
5196
5197		eval supported=\$$cacheid
5198		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5199$as_echo "$supported" >&6; }
5200		if test "$supported" = "yes" ; then
5201			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5202			found="yes"
5203		fi
5204	fi
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222xorg_testset_save_CFLAGS="$CFLAGS"
5223
5224if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5225	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5226	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5227$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5228if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5229  $as_echo_n "(cached) " >&6
5230else
5231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5232/* end confdefs.h.  */
5233int i;
5234_ACEOF
5235if ac_fn_c_try_compile "$LINENO"; then :
5236  xorg_cv_cc_flag_unknown_warning_option=yes
5237else
5238  xorg_cv_cc_flag_unknown_warning_option=no
5239fi
5240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5241fi
5242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5243$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5244	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5245	CFLAGS="$xorg_testset_save_CFLAGS"
5246fi
5247
5248if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5249	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5250		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5251	fi
5252	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5253	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5254$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5255if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5256  $as_echo_n "(cached) " >&6
5257else
5258  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5259/* end confdefs.h.  */
5260int i;
5261_ACEOF
5262if ac_fn_c_try_compile "$LINENO"; then :
5263  xorg_cv_cc_flag_unused_command_line_argument=yes
5264else
5265  xorg_cv_cc_flag_unused_command_line_argument=no
5266fi
5267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5268fi
5269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5270$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5271	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5272	CFLAGS="$xorg_testset_save_CFLAGS"
5273fi
5274
5275found="no"
5276
5277	if test $found = "no" ; then
5278		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5279			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5280		fi
5281
5282		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5283			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5284		fi
5285
5286		CFLAGS="$CFLAGS -Wstrict-prototypes"
5287
5288		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5289$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5290		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5291		if eval \${$cacheid+:} false; then :
5292  $as_echo_n "(cached) " >&6
5293else
5294  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5295/* end confdefs.h.  */
5296int i;
5297int
5298main ()
5299{
5300
5301  ;
5302  return 0;
5303}
5304_ACEOF
5305if ac_fn_c_try_link "$LINENO"; then :
5306  eval $cacheid=yes
5307else
5308  eval $cacheid=no
5309fi
5310rm -f core conftest.err conftest.$ac_objext \
5311    conftest$ac_exeext conftest.$ac_ext
5312fi
5313
5314
5315		CFLAGS="$xorg_testset_save_CFLAGS"
5316
5317		eval supported=\$$cacheid
5318		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5319$as_echo "$supported" >&6; }
5320		if test "$supported" = "yes" ; then
5321			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5322			found="yes"
5323		fi
5324	fi
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340xorg_testset_save_CFLAGS="$CFLAGS"
5341
5342if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5343	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5344	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5345$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5346if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5347  $as_echo_n "(cached) " >&6
5348else
5349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5350/* end confdefs.h.  */
5351int i;
5352_ACEOF
5353if ac_fn_c_try_compile "$LINENO"; then :
5354  xorg_cv_cc_flag_unknown_warning_option=yes
5355else
5356  xorg_cv_cc_flag_unknown_warning_option=no
5357fi
5358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5359fi
5360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5361$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5362	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5363	CFLAGS="$xorg_testset_save_CFLAGS"
5364fi
5365
5366if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5367	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5368		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5369	fi
5370	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5371	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5372$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5373if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5374  $as_echo_n "(cached) " >&6
5375else
5376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377/* end confdefs.h.  */
5378int i;
5379_ACEOF
5380if ac_fn_c_try_compile "$LINENO"; then :
5381  xorg_cv_cc_flag_unused_command_line_argument=yes
5382else
5383  xorg_cv_cc_flag_unused_command_line_argument=no
5384fi
5385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5386fi
5387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5388$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5389	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5390	CFLAGS="$xorg_testset_save_CFLAGS"
5391fi
5392
5393found="no"
5394
5395	if test $found = "no" ; then
5396		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5397			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5398		fi
5399
5400		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5401			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5402		fi
5403
5404		CFLAGS="$CFLAGS -Wmissing-prototypes"
5405
5406		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5407$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5408		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5409		if eval \${$cacheid+:} false; then :
5410  $as_echo_n "(cached) " >&6
5411else
5412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5413/* end confdefs.h.  */
5414int i;
5415int
5416main ()
5417{
5418
5419  ;
5420  return 0;
5421}
5422_ACEOF
5423if ac_fn_c_try_link "$LINENO"; then :
5424  eval $cacheid=yes
5425else
5426  eval $cacheid=no
5427fi
5428rm -f core conftest.err conftest.$ac_objext \
5429    conftest$ac_exeext conftest.$ac_ext
5430fi
5431
5432
5433		CFLAGS="$xorg_testset_save_CFLAGS"
5434
5435		eval supported=\$$cacheid
5436		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5437$as_echo "$supported" >&6; }
5438		if test "$supported" = "yes" ; then
5439			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5440			found="yes"
5441		fi
5442	fi
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458xorg_testset_save_CFLAGS="$CFLAGS"
5459
5460if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5461	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5462	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5463$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5464if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5465  $as_echo_n "(cached) " >&6
5466else
5467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5468/* end confdefs.h.  */
5469int i;
5470_ACEOF
5471if ac_fn_c_try_compile "$LINENO"; then :
5472  xorg_cv_cc_flag_unknown_warning_option=yes
5473else
5474  xorg_cv_cc_flag_unknown_warning_option=no
5475fi
5476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5477fi
5478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5479$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5480	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5481	CFLAGS="$xorg_testset_save_CFLAGS"
5482fi
5483
5484if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5485	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5486		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5487	fi
5488	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5489	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5490$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5491if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5492  $as_echo_n "(cached) " >&6
5493else
5494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5495/* end confdefs.h.  */
5496int i;
5497_ACEOF
5498if ac_fn_c_try_compile "$LINENO"; then :
5499  xorg_cv_cc_flag_unused_command_line_argument=yes
5500else
5501  xorg_cv_cc_flag_unused_command_line_argument=no
5502fi
5503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5504fi
5505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5506$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5507	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5508	CFLAGS="$xorg_testset_save_CFLAGS"
5509fi
5510
5511found="no"
5512
5513	if test $found = "no" ; then
5514		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5515			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5516		fi
5517
5518		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5519			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5520		fi
5521
5522		CFLAGS="$CFLAGS -Wnested-externs"
5523
5524		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5525$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5526		cacheid=xorg_cv_cc_flag__Wnested_externs
5527		if eval \${$cacheid+:} false; then :
5528  $as_echo_n "(cached) " >&6
5529else
5530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5531/* end confdefs.h.  */
5532int i;
5533int
5534main ()
5535{
5536
5537  ;
5538  return 0;
5539}
5540_ACEOF
5541if ac_fn_c_try_link "$LINENO"; then :
5542  eval $cacheid=yes
5543else
5544  eval $cacheid=no
5545fi
5546rm -f core conftest.err conftest.$ac_objext \
5547    conftest$ac_exeext conftest.$ac_ext
5548fi
5549
5550
5551		CFLAGS="$xorg_testset_save_CFLAGS"
5552
5553		eval supported=\$$cacheid
5554		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5555$as_echo "$supported" >&6; }
5556		if test "$supported" = "yes" ; then
5557			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5558			found="yes"
5559		fi
5560	fi
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576xorg_testset_save_CFLAGS="$CFLAGS"
5577
5578if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5579	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5580	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5581$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5582if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5583  $as_echo_n "(cached) " >&6
5584else
5585  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5586/* end confdefs.h.  */
5587int i;
5588_ACEOF
5589if ac_fn_c_try_compile "$LINENO"; then :
5590  xorg_cv_cc_flag_unknown_warning_option=yes
5591else
5592  xorg_cv_cc_flag_unknown_warning_option=no
5593fi
5594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5595fi
5596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5597$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5598	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5599	CFLAGS="$xorg_testset_save_CFLAGS"
5600fi
5601
5602if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5603	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5604		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5605	fi
5606	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5607	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5608$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5609if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5610  $as_echo_n "(cached) " >&6
5611else
5612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5613/* end confdefs.h.  */
5614int i;
5615_ACEOF
5616if ac_fn_c_try_compile "$LINENO"; then :
5617  xorg_cv_cc_flag_unused_command_line_argument=yes
5618else
5619  xorg_cv_cc_flag_unused_command_line_argument=no
5620fi
5621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5622fi
5623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5624$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5625	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5626	CFLAGS="$xorg_testset_save_CFLAGS"
5627fi
5628
5629found="no"
5630
5631	if test $found = "no" ; then
5632		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5633			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5634		fi
5635
5636		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5637			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5638		fi
5639
5640		CFLAGS="$CFLAGS -Wbad-function-cast"
5641
5642		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5643$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5644		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5645		if eval \${$cacheid+:} false; then :
5646  $as_echo_n "(cached) " >&6
5647else
5648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5649/* end confdefs.h.  */
5650int i;
5651int
5652main ()
5653{
5654
5655  ;
5656  return 0;
5657}
5658_ACEOF
5659if ac_fn_c_try_link "$LINENO"; then :
5660  eval $cacheid=yes
5661else
5662  eval $cacheid=no
5663fi
5664rm -f core conftest.err conftest.$ac_objext \
5665    conftest$ac_exeext conftest.$ac_ext
5666fi
5667
5668
5669		CFLAGS="$xorg_testset_save_CFLAGS"
5670
5671		eval supported=\$$cacheid
5672		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5673$as_echo "$supported" >&6; }
5674		if test "$supported" = "yes" ; then
5675			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5676			found="yes"
5677		fi
5678	fi
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694xorg_testset_save_CFLAGS="$CFLAGS"
5695
5696if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5697	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5698	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5699$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5700if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5701  $as_echo_n "(cached) " >&6
5702else
5703  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5704/* end confdefs.h.  */
5705int i;
5706_ACEOF
5707if ac_fn_c_try_compile "$LINENO"; then :
5708  xorg_cv_cc_flag_unknown_warning_option=yes
5709else
5710  xorg_cv_cc_flag_unknown_warning_option=no
5711fi
5712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5713fi
5714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5715$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5716	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5717	CFLAGS="$xorg_testset_save_CFLAGS"
5718fi
5719
5720if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5721	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5722		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5723	fi
5724	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5725	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5726$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5727if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5728  $as_echo_n "(cached) " >&6
5729else
5730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5731/* end confdefs.h.  */
5732int i;
5733_ACEOF
5734if ac_fn_c_try_compile "$LINENO"; then :
5735  xorg_cv_cc_flag_unused_command_line_argument=yes
5736else
5737  xorg_cv_cc_flag_unused_command_line_argument=no
5738fi
5739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5740fi
5741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5742$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5743	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5744	CFLAGS="$xorg_testset_save_CFLAGS"
5745fi
5746
5747found="no"
5748
5749	if test $found = "no" ; then
5750		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5751			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5752		fi
5753
5754		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5755			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5756		fi
5757
5758		CFLAGS="$CFLAGS -Wold-style-definition"
5759
5760		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5761$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5762		cacheid=xorg_cv_cc_flag__Wold_style_definition
5763		if eval \${$cacheid+:} false; then :
5764  $as_echo_n "(cached) " >&6
5765else
5766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5767/* end confdefs.h.  */
5768int i;
5769int
5770main ()
5771{
5772
5773  ;
5774  return 0;
5775}
5776_ACEOF
5777if ac_fn_c_try_link "$LINENO"; then :
5778  eval $cacheid=yes
5779else
5780  eval $cacheid=no
5781fi
5782rm -f core conftest.err conftest.$ac_objext \
5783    conftest$ac_exeext conftest.$ac_ext
5784fi
5785
5786
5787		CFLAGS="$xorg_testset_save_CFLAGS"
5788
5789		eval supported=\$$cacheid
5790		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5791$as_echo "$supported" >&6; }
5792		if test "$supported" = "yes" ; then
5793			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5794			found="yes"
5795		fi
5796	fi
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812xorg_testset_save_CFLAGS="$CFLAGS"
5813
5814if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5815	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5816	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5817$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5818if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5819  $as_echo_n "(cached) " >&6
5820else
5821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5822/* end confdefs.h.  */
5823int i;
5824_ACEOF
5825if ac_fn_c_try_compile "$LINENO"; then :
5826  xorg_cv_cc_flag_unknown_warning_option=yes
5827else
5828  xorg_cv_cc_flag_unknown_warning_option=no
5829fi
5830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5831fi
5832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5833$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5834	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5835	CFLAGS="$xorg_testset_save_CFLAGS"
5836fi
5837
5838if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5839	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5840		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5841	fi
5842	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5843	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5844$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5845if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5846  $as_echo_n "(cached) " >&6
5847else
5848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5849/* end confdefs.h.  */
5850int i;
5851_ACEOF
5852if ac_fn_c_try_compile "$LINENO"; then :
5853  xorg_cv_cc_flag_unused_command_line_argument=yes
5854else
5855  xorg_cv_cc_flag_unused_command_line_argument=no
5856fi
5857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5858fi
5859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5860$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5861	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5862	CFLAGS="$xorg_testset_save_CFLAGS"
5863fi
5864
5865found="no"
5866
5867	if test $found = "no" ; then
5868		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5869			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5870		fi
5871
5872		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5873			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5874		fi
5875
5876		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5877
5878		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5879$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5880		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5881		if eval \${$cacheid+:} false; then :
5882  $as_echo_n "(cached) " >&6
5883else
5884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5885/* end confdefs.h.  */
5886int i;
5887int
5888main ()
5889{
5890
5891  ;
5892  return 0;
5893}
5894_ACEOF
5895if ac_fn_c_try_link "$LINENO"; then :
5896  eval $cacheid=yes
5897else
5898  eval $cacheid=no
5899fi
5900rm -f core conftest.err conftest.$ac_objext \
5901    conftest$ac_exeext conftest.$ac_ext
5902fi
5903
5904
5905		CFLAGS="$xorg_testset_save_CFLAGS"
5906
5907		eval supported=\$$cacheid
5908		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5909$as_echo "$supported" >&6; }
5910		if test "$supported" = "yes" ; then
5911			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5912			found="yes"
5913		fi
5914	fi
5915
5916
5917
5918
5919
5920# This chunk adds additional warnings that could catch undesired effects.
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934xorg_testset_save_CFLAGS="$CFLAGS"
5935
5936if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5937	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5938	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5939$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5940if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5941  $as_echo_n "(cached) " >&6
5942else
5943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5944/* end confdefs.h.  */
5945int i;
5946_ACEOF
5947if ac_fn_c_try_compile "$LINENO"; then :
5948  xorg_cv_cc_flag_unknown_warning_option=yes
5949else
5950  xorg_cv_cc_flag_unknown_warning_option=no
5951fi
5952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5953fi
5954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5955$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5956	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5957	CFLAGS="$xorg_testset_save_CFLAGS"
5958fi
5959
5960if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5961	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5962		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5963	fi
5964	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5965	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5966$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5967if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5968  $as_echo_n "(cached) " >&6
5969else
5970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971/* end confdefs.h.  */
5972int i;
5973_ACEOF
5974if ac_fn_c_try_compile "$LINENO"; then :
5975  xorg_cv_cc_flag_unused_command_line_argument=yes
5976else
5977  xorg_cv_cc_flag_unused_command_line_argument=no
5978fi
5979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5980fi
5981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5982$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5983	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5984	CFLAGS="$xorg_testset_save_CFLAGS"
5985fi
5986
5987found="no"
5988
5989	if test $found = "no" ; then
5990		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5991			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5992		fi
5993
5994		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5995			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5996		fi
5997
5998		CFLAGS="$CFLAGS -Wunused"
5999
6000		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6001$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6002		cacheid=xorg_cv_cc_flag__Wunused
6003		if eval \${$cacheid+:} false; then :
6004  $as_echo_n "(cached) " >&6
6005else
6006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6007/* end confdefs.h.  */
6008int i;
6009int
6010main ()
6011{
6012
6013  ;
6014  return 0;
6015}
6016_ACEOF
6017if ac_fn_c_try_link "$LINENO"; then :
6018  eval $cacheid=yes
6019else
6020  eval $cacheid=no
6021fi
6022rm -f core conftest.err conftest.$ac_objext \
6023    conftest$ac_exeext conftest.$ac_ext
6024fi
6025
6026
6027		CFLAGS="$xorg_testset_save_CFLAGS"
6028
6029		eval supported=\$$cacheid
6030		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6031$as_echo "$supported" >&6; }
6032		if test "$supported" = "yes" ; then
6033			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6034			found="yes"
6035		fi
6036	fi
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052xorg_testset_save_CFLAGS="$CFLAGS"
6053
6054if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6055	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6056	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6057$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6058if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6059  $as_echo_n "(cached) " >&6
6060else
6061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6062/* end confdefs.h.  */
6063int i;
6064_ACEOF
6065if ac_fn_c_try_compile "$LINENO"; then :
6066  xorg_cv_cc_flag_unknown_warning_option=yes
6067else
6068  xorg_cv_cc_flag_unknown_warning_option=no
6069fi
6070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6071fi
6072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6073$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6074	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6075	CFLAGS="$xorg_testset_save_CFLAGS"
6076fi
6077
6078if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6079	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6080		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6081	fi
6082	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6083	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6084$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6085if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6086  $as_echo_n "(cached) " >&6
6087else
6088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6089/* end confdefs.h.  */
6090int i;
6091_ACEOF
6092if ac_fn_c_try_compile "$LINENO"; then :
6093  xorg_cv_cc_flag_unused_command_line_argument=yes
6094else
6095  xorg_cv_cc_flag_unused_command_line_argument=no
6096fi
6097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6098fi
6099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6100$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6101	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6102	CFLAGS="$xorg_testset_save_CFLAGS"
6103fi
6104
6105found="no"
6106
6107	if test $found = "no" ; then
6108		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6109			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6110		fi
6111
6112		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6113			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6114		fi
6115
6116		CFLAGS="$CFLAGS -Wuninitialized"
6117
6118		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6119$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6120		cacheid=xorg_cv_cc_flag__Wuninitialized
6121		if eval \${$cacheid+:} false; then :
6122  $as_echo_n "(cached) " >&6
6123else
6124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6125/* end confdefs.h.  */
6126int i;
6127int
6128main ()
6129{
6130
6131  ;
6132  return 0;
6133}
6134_ACEOF
6135if ac_fn_c_try_link "$LINENO"; then :
6136  eval $cacheid=yes
6137else
6138  eval $cacheid=no
6139fi
6140rm -f core conftest.err conftest.$ac_objext \
6141    conftest$ac_exeext conftest.$ac_ext
6142fi
6143
6144
6145		CFLAGS="$xorg_testset_save_CFLAGS"
6146
6147		eval supported=\$$cacheid
6148		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6149$as_echo "$supported" >&6; }
6150		if test "$supported" = "yes" ; then
6151			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6152			found="yes"
6153		fi
6154	fi
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170xorg_testset_save_CFLAGS="$CFLAGS"
6171
6172if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6173	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6174	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6175$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6176if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6177  $as_echo_n "(cached) " >&6
6178else
6179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6180/* end confdefs.h.  */
6181int i;
6182_ACEOF
6183if ac_fn_c_try_compile "$LINENO"; then :
6184  xorg_cv_cc_flag_unknown_warning_option=yes
6185else
6186  xorg_cv_cc_flag_unknown_warning_option=no
6187fi
6188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6189fi
6190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6191$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6192	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6193	CFLAGS="$xorg_testset_save_CFLAGS"
6194fi
6195
6196if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6197	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6198		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6199	fi
6200	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6201	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6202$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6203if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6204  $as_echo_n "(cached) " >&6
6205else
6206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6207/* end confdefs.h.  */
6208int i;
6209_ACEOF
6210if ac_fn_c_try_compile "$LINENO"; then :
6211  xorg_cv_cc_flag_unused_command_line_argument=yes
6212else
6213  xorg_cv_cc_flag_unused_command_line_argument=no
6214fi
6215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6216fi
6217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6218$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6219	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6220	CFLAGS="$xorg_testset_save_CFLAGS"
6221fi
6222
6223found="no"
6224
6225	if test $found = "no" ; then
6226		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6227			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6228		fi
6229
6230		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6231			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6232		fi
6233
6234		CFLAGS="$CFLAGS -Wshadow"
6235
6236		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6237$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6238		cacheid=xorg_cv_cc_flag__Wshadow
6239		if eval \${$cacheid+:} false; then :
6240  $as_echo_n "(cached) " >&6
6241else
6242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6243/* end confdefs.h.  */
6244int i;
6245int
6246main ()
6247{
6248
6249  ;
6250  return 0;
6251}
6252_ACEOF
6253if ac_fn_c_try_link "$LINENO"; then :
6254  eval $cacheid=yes
6255else
6256  eval $cacheid=no
6257fi
6258rm -f core conftest.err conftest.$ac_objext \
6259    conftest$ac_exeext conftest.$ac_ext
6260fi
6261
6262
6263		CFLAGS="$xorg_testset_save_CFLAGS"
6264
6265		eval supported=\$$cacheid
6266		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6267$as_echo "$supported" >&6; }
6268		if test "$supported" = "yes" ; then
6269			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6270			found="yes"
6271		fi
6272	fi
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288xorg_testset_save_CFLAGS="$CFLAGS"
6289
6290if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6291	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6292	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6293$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6294if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6295  $as_echo_n "(cached) " >&6
6296else
6297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6298/* end confdefs.h.  */
6299int i;
6300_ACEOF
6301if ac_fn_c_try_compile "$LINENO"; then :
6302  xorg_cv_cc_flag_unknown_warning_option=yes
6303else
6304  xorg_cv_cc_flag_unknown_warning_option=no
6305fi
6306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6307fi
6308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6309$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6310	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6311	CFLAGS="$xorg_testset_save_CFLAGS"
6312fi
6313
6314if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6315	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6316		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6317	fi
6318	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6319	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6320$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6321if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6322  $as_echo_n "(cached) " >&6
6323else
6324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6325/* end confdefs.h.  */
6326int i;
6327_ACEOF
6328if ac_fn_c_try_compile "$LINENO"; then :
6329  xorg_cv_cc_flag_unused_command_line_argument=yes
6330else
6331  xorg_cv_cc_flag_unused_command_line_argument=no
6332fi
6333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6334fi
6335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6336$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6337	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6338	CFLAGS="$xorg_testset_save_CFLAGS"
6339fi
6340
6341found="no"
6342
6343	if test $found = "no" ; then
6344		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6345			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6346		fi
6347
6348		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6349			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6350		fi
6351
6352		CFLAGS="$CFLAGS -Wcast-qual"
6353
6354		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6355$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6356		cacheid=xorg_cv_cc_flag__Wcast_qual
6357		if eval \${$cacheid+:} false; then :
6358  $as_echo_n "(cached) " >&6
6359else
6360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6361/* end confdefs.h.  */
6362int i;
6363int
6364main ()
6365{
6366
6367  ;
6368  return 0;
6369}
6370_ACEOF
6371if ac_fn_c_try_link "$LINENO"; then :
6372  eval $cacheid=yes
6373else
6374  eval $cacheid=no
6375fi
6376rm -f core conftest.err conftest.$ac_objext \
6377    conftest$ac_exeext conftest.$ac_ext
6378fi
6379
6380
6381		CFLAGS="$xorg_testset_save_CFLAGS"
6382
6383		eval supported=\$$cacheid
6384		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6385$as_echo "$supported" >&6; }
6386		if test "$supported" = "yes" ; then
6387			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6388			found="yes"
6389		fi
6390	fi
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406xorg_testset_save_CFLAGS="$CFLAGS"
6407
6408if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6409	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6410	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6411$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6412if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6413  $as_echo_n "(cached) " >&6
6414else
6415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6416/* end confdefs.h.  */
6417int i;
6418_ACEOF
6419if ac_fn_c_try_compile "$LINENO"; then :
6420  xorg_cv_cc_flag_unknown_warning_option=yes
6421else
6422  xorg_cv_cc_flag_unknown_warning_option=no
6423fi
6424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6425fi
6426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6427$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6428	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6429	CFLAGS="$xorg_testset_save_CFLAGS"
6430fi
6431
6432if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6433	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6434		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6435	fi
6436	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6437	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6438$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6439if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6440  $as_echo_n "(cached) " >&6
6441else
6442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6443/* end confdefs.h.  */
6444int i;
6445_ACEOF
6446if ac_fn_c_try_compile "$LINENO"; then :
6447  xorg_cv_cc_flag_unused_command_line_argument=yes
6448else
6449  xorg_cv_cc_flag_unused_command_line_argument=no
6450fi
6451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6452fi
6453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6454$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6455	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6456	CFLAGS="$xorg_testset_save_CFLAGS"
6457fi
6458
6459found="no"
6460
6461	if test $found = "no" ; then
6462		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6463			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6464		fi
6465
6466		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6467			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6468		fi
6469
6470		CFLAGS="$CFLAGS -Wmissing-noreturn"
6471
6472		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6473$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6474		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6475		if eval \${$cacheid+:} false; then :
6476  $as_echo_n "(cached) " >&6
6477else
6478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6479/* end confdefs.h.  */
6480int i;
6481int
6482main ()
6483{
6484
6485  ;
6486  return 0;
6487}
6488_ACEOF
6489if ac_fn_c_try_link "$LINENO"; then :
6490  eval $cacheid=yes
6491else
6492  eval $cacheid=no
6493fi
6494rm -f core conftest.err conftest.$ac_objext \
6495    conftest$ac_exeext conftest.$ac_ext
6496fi
6497
6498
6499		CFLAGS="$xorg_testset_save_CFLAGS"
6500
6501		eval supported=\$$cacheid
6502		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6503$as_echo "$supported" >&6; }
6504		if test "$supported" = "yes" ; then
6505			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6506			found="yes"
6507		fi
6508	fi
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524xorg_testset_save_CFLAGS="$CFLAGS"
6525
6526if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6527	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6528	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6529$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6530if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6531  $as_echo_n "(cached) " >&6
6532else
6533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6534/* end confdefs.h.  */
6535int i;
6536_ACEOF
6537if ac_fn_c_try_compile "$LINENO"; then :
6538  xorg_cv_cc_flag_unknown_warning_option=yes
6539else
6540  xorg_cv_cc_flag_unknown_warning_option=no
6541fi
6542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6543fi
6544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6545$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6546	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6547	CFLAGS="$xorg_testset_save_CFLAGS"
6548fi
6549
6550if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6551	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6552		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6553	fi
6554	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6555	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6556$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6557if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6558  $as_echo_n "(cached) " >&6
6559else
6560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6561/* end confdefs.h.  */
6562int i;
6563_ACEOF
6564if ac_fn_c_try_compile "$LINENO"; then :
6565  xorg_cv_cc_flag_unused_command_line_argument=yes
6566else
6567  xorg_cv_cc_flag_unused_command_line_argument=no
6568fi
6569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6570fi
6571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6572$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6573	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6574	CFLAGS="$xorg_testset_save_CFLAGS"
6575fi
6576
6577found="no"
6578
6579	if test $found = "no" ; then
6580		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6581			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6582		fi
6583
6584		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6585			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6586		fi
6587
6588		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6589
6590		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6591$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6592		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6593		if eval \${$cacheid+:} false; then :
6594  $as_echo_n "(cached) " >&6
6595else
6596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6597/* end confdefs.h.  */
6598int i;
6599int
6600main ()
6601{
6602
6603  ;
6604  return 0;
6605}
6606_ACEOF
6607if ac_fn_c_try_link "$LINENO"; then :
6608  eval $cacheid=yes
6609else
6610  eval $cacheid=no
6611fi
6612rm -f core conftest.err conftest.$ac_objext \
6613    conftest$ac_exeext conftest.$ac_ext
6614fi
6615
6616
6617		CFLAGS="$xorg_testset_save_CFLAGS"
6618
6619		eval supported=\$$cacheid
6620		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6621$as_echo "$supported" >&6; }
6622		if test "$supported" = "yes" ; then
6623			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6624			found="yes"
6625		fi
6626	fi
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642xorg_testset_save_CFLAGS="$CFLAGS"
6643
6644if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6645	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6646	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6647$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6648if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6649  $as_echo_n "(cached) " >&6
6650else
6651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6652/* end confdefs.h.  */
6653int i;
6654_ACEOF
6655if ac_fn_c_try_compile "$LINENO"; then :
6656  xorg_cv_cc_flag_unknown_warning_option=yes
6657else
6658  xorg_cv_cc_flag_unknown_warning_option=no
6659fi
6660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6661fi
6662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6663$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6664	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6665	CFLAGS="$xorg_testset_save_CFLAGS"
6666fi
6667
6668if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6669	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6670		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6671	fi
6672	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6673	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6674$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6675if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6676  $as_echo_n "(cached) " >&6
6677else
6678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6679/* end confdefs.h.  */
6680int i;
6681_ACEOF
6682if ac_fn_c_try_compile "$LINENO"; then :
6683  xorg_cv_cc_flag_unused_command_line_argument=yes
6684else
6685  xorg_cv_cc_flag_unused_command_line_argument=no
6686fi
6687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6688fi
6689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6690$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6691	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6692	CFLAGS="$xorg_testset_save_CFLAGS"
6693fi
6694
6695found="no"
6696
6697	if test $found = "no" ; then
6698		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6699			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6700		fi
6701
6702		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6703			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6704		fi
6705
6706		CFLAGS="$CFLAGS -Wredundant-decls"
6707
6708		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6709$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6710		cacheid=xorg_cv_cc_flag__Wredundant_decls
6711		if eval \${$cacheid+:} false; then :
6712  $as_echo_n "(cached) " >&6
6713else
6714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6715/* end confdefs.h.  */
6716int i;
6717int
6718main ()
6719{
6720
6721  ;
6722  return 0;
6723}
6724_ACEOF
6725if ac_fn_c_try_link "$LINENO"; then :
6726  eval $cacheid=yes
6727else
6728  eval $cacheid=no
6729fi
6730rm -f core conftest.err conftest.$ac_objext \
6731    conftest$ac_exeext conftest.$ac_ext
6732fi
6733
6734
6735		CFLAGS="$xorg_testset_save_CFLAGS"
6736
6737		eval supported=\$$cacheid
6738		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6739$as_echo "$supported" >&6; }
6740		if test "$supported" = "yes" ; then
6741			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6742			found="yes"
6743		fi
6744	fi
6745
6746
6747
6748# These are currently disabled because they are noisy.  They will be enabled
6749# in the future once the codebase is sufficiently modernized to silence
6750# them.  For now, I don't want them to drown out the other warnings.
6751# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6752# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6753# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6754
6755# Turn some warnings into errors, so we don't accidently get successful builds
6756# when there are problems that should be fixed.
6757
6758if test "x$SELECTIVE_WERROR" = "xyes" ; then
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772xorg_testset_save_CFLAGS="$CFLAGS"
6773
6774if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6775	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6776	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6777$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6778if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6779  $as_echo_n "(cached) " >&6
6780else
6781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6782/* end confdefs.h.  */
6783int i;
6784_ACEOF
6785if ac_fn_c_try_compile "$LINENO"; then :
6786  xorg_cv_cc_flag_unknown_warning_option=yes
6787else
6788  xorg_cv_cc_flag_unknown_warning_option=no
6789fi
6790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6791fi
6792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6793$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6794	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6795	CFLAGS="$xorg_testset_save_CFLAGS"
6796fi
6797
6798if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6799	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6800		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6801	fi
6802	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6803	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6804$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6805if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6806  $as_echo_n "(cached) " >&6
6807else
6808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6809/* end confdefs.h.  */
6810int i;
6811_ACEOF
6812if ac_fn_c_try_compile "$LINENO"; then :
6813  xorg_cv_cc_flag_unused_command_line_argument=yes
6814else
6815  xorg_cv_cc_flag_unused_command_line_argument=no
6816fi
6817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6818fi
6819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6820$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6821	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6822	CFLAGS="$xorg_testset_save_CFLAGS"
6823fi
6824
6825found="no"
6826
6827	if test $found = "no" ; then
6828		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6829			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6830		fi
6831
6832		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6833			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6834		fi
6835
6836		CFLAGS="$CFLAGS -Werror=implicit"
6837
6838		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6839$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6840		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6841		if eval \${$cacheid+:} false; then :
6842  $as_echo_n "(cached) " >&6
6843else
6844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6845/* end confdefs.h.  */
6846int i;
6847int
6848main ()
6849{
6850
6851  ;
6852  return 0;
6853}
6854_ACEOF
6855if ac_fn_c_try_link "$LINENO"; then :
6856  eval $cacheid=yes
6857else
6858  eval $cacheid=no
6859fi
6860rm -f core conftest.err conftest.$ac_objext \
6861    conftest$ac_exeext conftest.$ac_ext
6862fi
6863
6864
6865		CFLAGS="$xorg_testset_save_CFLAGS"
6866
6867		eval supported=\$$cacheid
6868		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6869$as_echo "$supported" >&6; }
6870		if test "$supported" = "yes" ; then
6871			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6872			found="yes"
6873		fi
6874	fi
6875
6876	if test $found = "no" ; then
6877		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6878			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6879		fi
6880
6881		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6882			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6883		fi
6884
6885		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6886
6887		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6888$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6889		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6890		if eval \${$cacheid+:} false; then :
6891  $as_echo_n "(cached) " >&6
6892else
6893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6894/* end confdefs.h.  */
6895int i;
6896int
6897main ()
6898{
6899
6900  ;
6901  return 0;
6902}
6903_ACEOF
6904if ac_fn_c_try_link "$LINENO"; then :
6905  eval $cacheid=yes
6906else
6907  eval $cacheid=no
6908fi
6909rm -f core conftest.err conftest.$ac_objext \
6910    conftest$ac_exeext conftest.$ac_ext
6911fi
6912
6913
6914		CFLAGS="$xorg_testset_save_CFLAGS"
6915
6916		eval supported=\$$cacheid
6917		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6918$as_echo "$supported" >&6; }
6919		if test "$supported" = "yes" ; then
6920			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6921			found="yes"
6922		fi
6923	fi
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939xorg_testset_save_CFLAGS="$CFLAGS"
6940
6941if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6942	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6943	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6944$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6945if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6946  $as_echo_n "(cached) " >&6
6947else
6948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6949/* end confdefs.h.  */
6950int i;
6951_ACEOF
6952if ac_fn_c_try_compile "$LINENO"; then :
6953  xorg_cv_cc_flag_unknown_warning_option=yes
6954else
6955  xorg_cv_cc_flag_unknown_warning_option=no
6956fi
6957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6958fi
6959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6960$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6961	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6962	CFLAGS="$xorg_testset_save_CFLAGS"
6963fi
6964
6965if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6966	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6967		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6968	fi
6969	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6970	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6971$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6972if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6973  $as_echo_n "(cached) " >&6
6974else
6975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6976/* end confdefs.h.  */
6977int i;
6978_ACEOF
6979if ac_fn_c_try_compile "$LINENO"; then :
6980  xorg_cv_cc_flag_unused_command_line_argument=yes
6981else
6982  xorg_cv_cc_flag_unused_command_line_argument=no
6983fi
6984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6985fi
6986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6987$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6988	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6989	CFLAGS="$xorg_testset_save_CFLAGS"
6990fi
6991
6992found="no"
6993
6994	if test $found = "no" ; then
6995		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6996			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6997		fi
6998
6999		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7000			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7001		fi
7002
7003		CFLAGS="$CFLAGS -Werror=nonnull"
7004
7005		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7006$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7007		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
7008		if eval \${$cacheid+:} false; then :
7009  $as_echo_n "(cached) " >&6
7010else
7011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7012/* end confdefs.h.  */
7013int i;
7014int
7015main ()
7016{
7017
7018  ;
7019  return 0;
7020}
7021_ACEOF
7022if ac_fn_c_try_link "$LINENO"; then :
7023  eval $cacheid=yes
7024else
7025  eval $cacheid=no
7026fi
7027rm -f core conftest.err conftest.$ac_objext \
7028    conftest$ac_exeext conftest.$ac_ext
7029fi
7030
7031
7032		CFLAGS="$xorg_testset_save_CFLAGS"
7033
7034		eval supported=\$$cacheid
7035		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7036$as_echo "$supported" >&6; }
7037		if test "$supported" = "yes" ; then
7038			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7039			found="yes"
7040		fi
7041	fi
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057xorg_testset_save_CFLAGS="$CFLAGS"
7058
7059if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7060	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7061	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7062$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7063if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7064  $as_echo_n "(cached) " >&6
7065else
7066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7067/* end confdefs.h.  */
7068int i;
7069_ACEOF
7070if ac_fn_c_try_compile "$LINENO"; then :
7071  xorg_cv_cc_flag_unknown_warning_option=yes
7072else
7073  xorg_cv_cc_flag_unknown_warning_option=no
7074fi
7075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7076fi
7077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7078$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7079	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7080	CFLAGS="$xorg_testset_save_CFLAGS"
7081fi
7082
7083if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7084	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7085		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7086	fi
7087	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7088	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7089$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7090if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7091  $as_echo_n "(cached) " >&6
7092else
7093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7094/* end confdefs.h.  */
7095int i;
7096_ACEOF
7097if ac_fn_c_try_compile "$LINENO"; then :
7098  xorg_cv_cc_flag_unused_command_line_argument=yes
7099else
7100  xorg_cv_cc_flag_unused_command_line_argument=no
7101fi
7102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7103fi
7104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7105$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7106	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7107	CFLAGS="$xorg_testset_save_CFLAGS"
7108fi
7109
7110found="no"
7111
7112	if test $found = "no" ; then
7113		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7114			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7115		fi
7116
7117		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7118			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7119		fi
7120
7121		CFLAGS="$CFLAGS -Werror=init-self"
7122
7123		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7124$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7125		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7126		if eval \${$cacheid+:} false; then :
7127  $as_echo_n "(cached) " >&6
7128else
7129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7130/* end confdefs.h.  */
7131int i;
7132int
7133main ()
7134{
7135
7136  ;
7137  return 0;
7138}
7139_ACEOF
7140if ac_fn_c_try_link "$LINENO"; then :
7141  eval $cacheid=yes
7142else
7143  eval $cacheid=no
7144fi
7145rm -f core conftest.err conftest.$ac_objext \
7146    conftest$ac_exeext conftest.$ac_ext
7147fi
7148
7149
7150		CFLAGS="$xorg_testset_save_CFLAGS"
7151
7152		eval supported=\$$cacheid
7153		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7154$as_echo "$supported" >&6; }
7155		if test "$supported" = "yes" ; then
7156			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7157			found="yes"
7158		fi
7159	fi
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175xorg_testset_save_CFLAGS="$CFLAGS"
7176
7177if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7178	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7179	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7180$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7181if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7182  $as_echo_n "(cached) " >&6
7183else
7184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7185/* end confdefs.h.  */
7186int i;
7187_ACEOF
7188if ac_fn_c_try_compile "$LINENO"; then :
7189  xorg_cv_cc_flag_unknown_warning_option=yes
7190else
7191  xorg_cv_cc_flag_unknown_warning_option=no
7192fi
7193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7194fi
7195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7196$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7197	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7198	CFLAGS="$xorg_testset_save_CFLAGS"
7199fi
7200
7201if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7202	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7203		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7204	fi
7205	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7206	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7207$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7208if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7209  $as_echo_n "(cached) " >&6
7210else
7211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7212/* end confdefs.h.  */
7213int i;
7214_ACEOF
7215if ac_fn_c_try_compile "$LINENO"; then :
7216  xorg_cv_cc_flag_unused_command_line_argument=yes
7217else
7218  xorg_cv_cc_flag_unused_command_line_argument=no
7219fi
7220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7221fi
7222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7223$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7224	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7225	CFLAGS="$xorg_testset_save_CFLAGS"
7226fi
7227
7228found="no"
7229
7230	if test $found = "no" ; then
7231		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7232			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7233		fi
7234
7235		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7236			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7237		fi
7238
7239		CFLAGS="$CFLAGS -Werror=main"
7240
7241		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7242$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7243		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7244		if eval \${$cacheid+:} false; then :
7245  $as_echo_n "(cached) " >&6
7246else
7247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7248/* end confdefs.h.  */
7249int i;
7250int
7251main ()
7252{
7253
7254  ;
7255  return 0;
7256}
7257_ACEOF
7258if ac_fn_c_try_link "$LINENO"; then :
7259  eval $cacheid=yes
7260else
7261  eval $cacheid=no
7262fi
7263rm -f core conftest.err conftest.$ac_objext \
7264    conftest$ac_exeext conftest.$ac_ext
7265fi
7266
7267
7268		CFLAGS="$xorg_testset_save_CFLAGS"
7269
7270		eval supported=\$$cacheid
7271		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7272$as_echo "$supported" >&6; }
7273		if test "$supported" = "yes" ; then
7274			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7275			found="yes"
7276		fi
7277	fi
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293xorg_testset_save_CFLAGS="$CFLAGS"
7294
7295if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7296	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7297	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7298$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7299if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7300  $as_echo_n "(cached) " >&6
7301else
7302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7303/* end confdefs.h.  */
7304int i;
7305_ACEOF
7306if ac_fn_c_try_compile "$LINENO"; then :
7307  xorg_cv_cc_flag_unknown_warning_option=yes
7308else
7309  xorg_cv_cc_flag_unknown_warning_option=no
7310fi
7311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7312fi
7313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7314$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7315	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7316	CFLAGS="$xorg_testset_save_CFLAGS"
7317fi
7318
7319if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7320	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7321		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7322	fi
7323	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7324	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7325$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7326if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7327  $as_echo_n "(cached) " >&6
7328else
7329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7330/* end confdefs.h.  */
7331int i;
7332_ACEOF
7333if ac_fn_c_try_compile "$LINENO"; then :
7334  xorg_cv_cc_flag_unused_command_line_argument=yes
7335else
7336  xorg_cv_cc_flag_unused_command_line_argument=no
7337fi
7338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7339fi
7340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7341$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7342	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7343	CFLAGS="$xorg_testset_save_CFLAGS"
7344fi
7345
7346found="no"
7347
7348	if test $found = "no" ; then
7349		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7350			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7351		fi
7352
7353		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7354			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7355		fi
7356
7357		CFLAGS="$CFLAGS -Werror=missing-braces"
7358
7359		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7360$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7361		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7362		if eval \${$cacheid+:} false; then :
7363  $as_echo_n "(cached) " >&6
7364else
7365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7366/* end confdefs.h.  */
7367int i;
7368int
7369main ()
7370{
7371
7372  ;
7373  return 0;
7374}
7375_ACEOF
7376if ac_fn_c_try_link "$LINENO"; then :
7377  eval $cacheid=yes
7378else
7379  eval $cacheid=no
7380fi
7381rm -f core conftest.err conftest.$ac_objext \
7382    conftest$ac_exeext conftest.$ac_ext
7383fi
7384
7385
7386		CFLAGS="$xorg_testset_save_CFLAGS"
7387
7388		eval supported=\$$cacheid
7389		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7390$as_echo "$supported" >&6; }
7391		if test "$supported" = "yes" ; then
7392			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7393			found="yes"
7394		fi
7395	fi
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411xorg_testset_save_CFLAGS="$CFLAGS"
7412
7413if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7414	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7415	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7416$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7417if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7418  $as_echo_n "(cached) " >&6
7419else
7420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7421/* end confdefs.h.  */
7422int i;
7423_ACEOF
7424if ac_fn_c_try_compile "$LINENO"; then :
7425  xorg_cv_cc_flag_unknown_warning_option=yes
7426else
7427  xorg_cv_cc_flag_unknown_warning_option=no
7428fi
7429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7430fi
7431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7432$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7433	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7434	CFLAGS="$xorg_testset_save_CFLAGS"
7435fi
7436
7437if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7438	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7439		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7440	fi
7441	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7442	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7443$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7444if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7445  $as_echo_n "(cached) " >&6
7446else
7447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7448/* end confdefs.h.  */
7449int i;
7450_ACEOF
7451if ac_fn_c_try_compile "$LINENO"; then :
7452  xorg_cv_cc_flag_unused_command_line_argument=yes
7453else
7454  xorg_cv_cc_flag_unused_command_line_argument=no
7455fi
7456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7457fi
7458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7459$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7460	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7461	CFLAGS="$xorg_testset_save_CFLAGS"
7462fi
7463
7464found="no"
7465
7466	if test $found = "no" ; then
7467		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7468			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7469		fi
7470
7471		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7472			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7473		fi
7474
7475		CFLAGS="$CFLAGS -Werror=sequence-point"
7476
7477		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7478$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7479		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7480		if eval \${$cacheid+:} false; then :
7481  $as_echo_n "(cached) " >&6
7482else
7483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7484/* end confdefs.h.  */
7485int i;
7486int
7487main ()
7488{
7489
7490  ;
7491  return 0;
7492}
7493_ACEOF
7494if ac_fn_c_try_link "$LINENO"; then :
7495  eval $cacheid=yes
7496else
7497  eval $cacheid=no
7498fi
7499rm -f core conftest.err conftest.$ac_objext \
7500    conftest$ac_exeext conftest.$ac_ext
7501fi
7502
7503
7504		CFLAGS="$xorg_testset_save_CFLAGS"
7505
7506		eval supported=\$$cacheid
7507		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7508$as_echo "$supported" >&6; }
7509		if test "$supported" = "yes" ; then
7510			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7511			found="yes"
7512		fi
7513	fi
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529xorg_testset_save_CFLAGS="$CFLAGS"
7530
7531if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7532	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7533	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7534$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7535if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7536  $as_echo_n "(cached) " >&6
7537else
7538  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7539/* end confdefs.h.  */
7540int i;
7541_ACEOF
7542if ac_fn_c_try_compile "$LINENO"; then :
7543  xorg_cv_cc_flag_unknown_warning_option=yes
7544else
7545  xorg_cv_cc_flag_unknown_warning_option=no
7546fi
7547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7548fi
7549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7550$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7551	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7552	CFLAGS="$xorg_testset_save_CFLAGS"
7553fi
7554
7555if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7556	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7557		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7558	fi
7559	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7560	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7561$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7562if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7563  $as_echo_n "(cached) " >&6
7564else
7565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7566/* end confdefs.h.  */
7567int i;
7568_ACEOF
7569if ac_fn_c_try_compile "$LINENO"; then :
7570  xorg_cv_cc_flag_unused_command_line_argument=yes
7571else
7572  xorg_cv_cc_flag_unused_command_line_argument=no
7573fi
7574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7575fi
7576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7577$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7578	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7579	CFLAGS="$xorg_testset_save_CFLAGS"
7580fi
7581
7582found="no"
7583
7584	if test $found = "no" ; then
7585		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7586			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7587		fi
7588
7589		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7590			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7591		fi
7592
7593		CFLAGS="$CFLAGS -Werror=return-type"
7594
7595		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7596$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7597		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7598		if eval \${$cacheid+:} false; then :
7599  $as_echo_n "(cached) " >&6
7600else
7601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7602/* end confdefs.h.  */
7603int i;
7604int
7605main ()
7606{
7607
7608  ;
7609  return 0;
7610}
7611_ACEOF
7612if ac_fn_c_try_link "$LINENO"; then :
7613  eval $cacheid=yes
7614else
7615  eval $cacheid=no
7616fi
7617rm -f core conftest.err conftest.$ac_objext \
7618    conftest$ac_exeext conftest.$ac_ext
7619fi
7620
7621
7622		CFLAGS="$xorg_testset_save_CFLAGS"
7623
7624		eval supported=\$$cacheid
7625		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7626$as_echo "$supported" >&6; }
7627		if test "$supported" = "yes" ; then
7628			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7629			found="yes"
7630		fi
7631	fi
7632
7633	if test $found = "no" ; then
7634		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7635			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7636		fi
7637
7638		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7639			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7640		fi
7641
7642		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7643
7644		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7645$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7646		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7647		if eval \${$cacheid+:} false; then :
7648  $as_echo_n "(cached) " >&6
7649else
7650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7651/* end confdefs.h.  */
7652int i;
7653int
7654main ()
7655{
7656
7657  ;
7658  return 0;
7659}
7660_ACEOF
7661if ac_fn_c_try_link "$LINENO"; then :
7662  eval $cacheid=yes
7663else
7664  eval $cacheid=no
7665fi
7666rm -f core conftest.err conftest.$ac_objext \
7667    conftest$ac_exeext conftest.$ac_ext
7668fi
7669
7670
7671		CFLAGS="$xorg_testset_save_CFLAGS"
7672
7673		eval supported=\$$cacheid
7674		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7675$as_echo "$supported" >&6; }
7676		if test "$supported" = "yes" ; then
7677			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7678			found="yes"
7679		fi
7680	fi
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696xorg_testset_save_CFLAGS="$CFLAGS"
7697
7698if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7699	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7700	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7701$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7702if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7703  $as_echo_n "(cached) " >&6
7704else
7705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7706/* end confdefs.h.  */
7707int i;
7708_ACEOF
7709if ac_fn_c_try_compile "$LINENO"; then :
7710  xorg_cv_cc_flag_unknown_warning_option=yes
7711else
7712  xorg_cv_cc_flag_unknown_warning_option=no
7713fi
7714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7715fi
7716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7717$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7718	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7719	CFLAGS="$xorg_testset_save_CFLAGS"
7720fi
7721
7722if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7723	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7724		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7725	fi
7726	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7727	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7728$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7729if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7730  $as_echo_n "(cached) " >&6
7731else
7732  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7733/* end confdefs.h.  */
7734int i;
7735_ACEOF
7736if ac_fn_c_try_compile "$LINENO"; then :
7737  xorg_cv_cc_flag_unused_command_line_argument=yes
7738else
7739  xorg_cv_cc_flag_unused_command_line_argument=no
7740fi
7741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7742fi
7743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7744$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7745	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7746	CFLAGS="$xorg_testset_save_CFLAGS"
7747fi
7748
7749found="no"
7750
7751	if test $found = "no" ; then
7752		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7753			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7754		fi
7755
7756		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7757			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7758		fi
7759
7760		CFLAGS="$CFLAGS -Werror=trigraphs"
7761
7762		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7763$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7764		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7765		if eval \${$cacheid+:} false; then :
7766  $as_echo_n "(cached) " >&6
7767else
7768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7769/* end confdefs.h.  */
7770int i;
7771int
7772main ()
7773{
7774
7775  ;
7776  return 0;
7777}
7778_ACEOF
7779if ac_fn_c_try_link "$LINENO"; then :
7780  eval $cacheid=yes
7781else
7782  eval $cacheid=no
7783fi
7784rm -f core conftest.err conftest.$ac_objext \
7785    conftest$ac_exeext conftest.$ac_ext
7786fi
7787
7788
7789		CFLAGS="$xorg_testset_save_CFLAGS"
7790
7791		eval supported=\$$cacheid
7792		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7793$as_echo "$supported" >&6; }
7794		if test "$supported" = "yes" ; then
7795			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7796			found="yes"
7797		fi
7798	fi
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814xorg_testset_save_CFLAGS="$CFLAGS"
7815
7816if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7817	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7818	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7819$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7820if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7821  $as_echo_n "(cached) " >&6
7822else
7823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7824/* end confdefs.h.  */
7825int i;
7826_ACEOF
7827if ac_fn_c_try_compile "$LINENO"; then :
7828  xorg_cv_cc_flag_unknown_warning_option=yes
7829else
7830  xorg_cv_cc_flag_unknown_warning_option=no
7831fi
7832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7833fi
7834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7835$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7836	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7837	CFLAGS="$xorg_testset_save_CFLAGS"
7838fi
7839
7840if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7841	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7842		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7843	fi
7844	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7845	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7846$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7847if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7848  $as_echo_n "(cached) " >&6
7849else
7850  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7851/* end confdefs.h.  */
7852int i;
7853_ACEOF
7854if ac_fn_c_try_compile "$LINENO"; then :
7855  xorg_cv_cc_flag_unused_command_line_argument=yes
7856else
7857  xorg_cv_cc_flag_unused_command_line_argument=no
7858fi
7859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7860fi
7861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7862$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7863	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7864	CFLAGS="$xorg_testset_save_CFLAGS"
7865fi
7866
7867found="no"
7868
7869	if test $found = "no" ; then
7870		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7871			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7872		fi
7873
7874		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7875			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7876		fi
7877
7878		CFLAGS="$CFLAGS -Werror=array-bounds"
7879
7880		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7881$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7882		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7883		if eval \${$cacheid+:} false; then :
7884  $as_echo_n "(cached) " >&6
7885else
7886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7887/* end confdefs.h.  */
7888int i;
7889int
7890main ()
7891{
7892
7893  ;
7894  return 0;
7895}
7896_ACEOF
7897if ac_fn_c_try_link "$LINENO"; then :
7898  eval $cacheid=yes
7899else
7900  eval $cacheid=no
7901fi
7902rm -f core conftest.err conftest.$ac_objext \
7903    conftest$ac_exeext conftest.$ac_ext
7904fi
7905
7906
7907		CFLAGS="$xorg_testset_save_CFLAGS"
7908
7909		eval supported=\$$cacheid
7910		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7911$as_echo "$supported" >&6; }
7912		if test "$supported" = "yes" ; then
7913			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7914			found="yes"
7915		fi
7916	fi
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932xorg_testset_save_CFLAGS="$CFLAGS"
7933
7934if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7935	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7936	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7937$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7938if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7939  $as_echo_n "(cached) " >&6
7940else
7941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7942/* end confdefs.h.  */
7943int i;
7944_ACEOF
7945if ac_fn_c_try_compile "$LINENO"; then :
7946  xorg_cv_cc_flag_unknown_warning_option=yes
7947else
7948  xorg_cv_cc_flag_unknown_warning_option=no
7949fi
7950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7951fi
7952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7953$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7954	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7955	CFLAGS="$xorg_testset_save_CFLAGS"
7956fi
7957
7958if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7959	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7960		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7961	fi
7962	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7963	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7964$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7965if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7966  $as_echo_n "(cached) " >&6
7967else
7968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7969/* end confdefs.h.  */
7970int i;
7971_ACEOF
7972if ac_fn_c_try_compile "$LINENO"; then :
7973  xorg_cv_cc_flag_unused_command_line_argument=yes
7974else
7975  xorg_cv_cc_flag_unused_command_line_argument=no
7976fi
7977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7978fi
7979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7980$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7981	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7982	CFLAGS="$xorg_testset_save_CFLAGS"
7983fi
7984
7985found="no"
7986
7987	if test $found = "no" ; then
7988		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7989			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7990		fi
7991
7992		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7993			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7994		fi
7995
7996		CFLAGS="$CFLAGS -Werror=write-strings"
7997
7998		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7999$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8000		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
8001		if eval \${$cacheid+:} false; then :
8002  $as_echo_n "(cached) " >&6
8003else
8004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8005/* end confdefs.h.  */
8006int i;
8007int
8008main ()
8009{
8010
8011  ;
8012  return 0;
8013}
8014_ACEOF
8015if ac_fn_c_try_link "$LINENO"; then :
8016  eval $cacheid=yes
8017else
8018  eval $cacheid=no
8019fi
8020rm -f core conftest.err conftest.$ac_objext \
8021    conftest$ac_exeext conftest.$ac_ext
8022fi
8023
8024
8025		CFLAGS="$xorg_testset_save_CFLAGS"
8026
8027		eval supported=\$$cacheid
8028		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8029$as_echo "$supported" >&6; }
8030		if test "$supported" = "yes" ; then
8031			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8032			found="yes"
8033		fi
8034	fi
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050xorg_testset_save_CFLAGS="$CFLAGS"
8051
8052if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8053	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8054	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8055$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8056if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8057  $as_echo_n "(cached) " >&6
8058else
8059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8060/* end confdefs.h.  */
8061int i;
8062_ACEOF
8063if ac_fn_c_try_compile "$LINENO"; then :
8064  xorg_cv_cc_flag_unknown_warning_option=yes
8065else
8066  xorg_cv_cc_flag_unknown_warning_option=no
8067fi
8068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8069fi
8070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8071$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8072	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8073	CFLAGS="$xorg_testset_save_CFLAGS"
8074fi
8075
8076if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8077	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8078		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8079	fi
8080	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8081	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8082$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8083if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8084  $as_echo_n "(cached) " >&6
8085else
8086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8087/* end confdefs.h.  */
8088int i;
8089_ACEOF
8090if ac_fn_c_try_compile "$LINENO"; then :
8091  xorg_cv_cc_flag_unused_command_line_argument=yes
8092else
8093  xorg_cv_cc_flag_unused_command_line_argument=no
8094fi
8095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8096fi
8097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8098$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8099	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8100	CFLAGS="$xorg_testset_save_CFLAGS"
8101fi
8102
8103found="no"
8104
8105	if test $found = "no" ; then
8106		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8107			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8108		fi
8109
8110		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8111			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8112		fi
8113
8114		CFLAGS="$CFLAGS -Werror=address"
8115
8116		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8117$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8118		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8119		if eval \${$cacheid+:} false; then :
8120  $as_echo_n "(cached) " >&6
8121else
8122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8123/* end confdefs.h.  */
8124int i;
8125int
8126main ()
8127{
8128
8129  ;
8130  return 0;
8131}
8132_ACEOF
8133if ac_fn_c_try_link "$LINENO"; then :
8134  eval $cacheid=yes
8135else
8136  eval $cacheid=no
8137fi
8138rm -f core conftest.err conftest.$ac_objext \
8139    conftest$ac_exeext conftest.$ac_ext
8140fi
8141
8142
8143		CFLAGS="$xorg_testset_save_CFLAGS"
8144
8145		eval supported=\$$cacheid
8146		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8147$as_echo "$supported" >&6; }
8148		if test "$supported" = "yes" ; then
8149			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8150			found="yes"
8151		fi
8152	fi
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168xorg_testset_save_CFLAGS="$CFLAGS"
8169
8170if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8171	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8172	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8173$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8174if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8175  $as_echo_n "(cached) " >&6
8176else
8177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8178/* end confdefs.h.  */
8179int i;
8180_ACEOF
8181if ac_fn_c_try_compile "$LINENO"; then :
8182  xorg_cv_cc_flag_unknown_warning_option=yes
8183else
8184  xorg_cv_cc_flag_unknown_warning_option=no
8185fi
8186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8187fi
8188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8189$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8190	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8191	CFLAGS="$xorg_testset_save_CFLAGS"
8192fi
8193
8194if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8195	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8196		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8197	fi
8198	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8199	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8200$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8201if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8202  $as_echo_n "(cached) " >&6
8203else
8204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8205/* end confdefs.h.  */
8206int i;
8207_ACEOF
8208if ac_fn_c_try_compile "$LINENO"; then :
8209  xorg_cv_cc_flag_unused_command_line_argument=yes
8210else
8211  xorg_cv_cc_flag_unused_command_line_argument=no
8212fi
8213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8214fi
8215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8216$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8217	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8218	CFLAGS="$xorg_testset_save_CFLAGS"
8219fi
8220
8221found="no"
8222
8223	if test $found = "no" ; then
8224		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8225			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8226		fi
8227
8228		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8229			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8230		fi
8231
8232		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8233
8234		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8235$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8236		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8237		if eval \${$cacheid+:} false; then :
8238  $as_echo_n "(cached) " >&6
8239else
8240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8241/* end confdefs.h.  */
8242int i;
8243int
8244main ()
8245{
8246
8247  ;
8248  return 0;
8249}
8250_ACEOF
8251if ac_fn_c_try_link "$LINENO"; then :
8252  eval $cacheid=yes
8253else
8254  eval $cacheid=no
8255fi
8256rm -f core conftest.err conftest.$ac_objext \
8257    conftest$ac_exeext conftest.$ac_ext
8258fi
8259
8260
8261		CFLAGS="$xorg_testset_save_CFLAGS"
8262
8263		eval supported=\$$cacheid
8264		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8265$as_echo "$supported" >&6; }
8266		if test "$supported" = "yes" ; then
8267			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8268			found="yes"
8269		fi
8270	fi
8271
8272	if test $found = "no" ; then
8273		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8274			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8275		fi
8276
8277		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8278			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8279		fi
8280
8281		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8282
8283		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8284$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8285		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8286		if eval \${$cacheid+:} false; then :
8287  $as_echo_n "(cached) " >&6
8288else
8289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8290/* end confdefs.h.  */
8291int i;
8292int
8293main ()
8294{
8295
8296  ;
8297  return 0;
8298}
8299_ACEOF
8300if ac_fn_c_try_link "$LINENO"; then :
8301  eval $cacheid=yes
8302else
8303  eval $cacheid=no
8304fi
8305rm -f core conftest.err conftest.$ac_objext \
8306    conftest$ac_exeext conftest.$ac_ext
8307fi
8308
8309
8310		CFLAGS="$xorg_testset_save_CFLAGS"
8311
8312		eval supported=\$$cacheid
8313		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8314$as_echo "$supported" >&6; }
8315		if test "$supported" = "yes" ; then
8316			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8317			found="yes"
8318		fi
8319	fi
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335xorg_testset_save_CFLAGS="$CFLAGS"
8336
8337if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8338	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8339	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8340$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8341if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8342  $as_echo_n "(cached) " >&6
8343else
8344  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8345/* end confdefs.h.  */
8346int i;
8347_ACEOF
8348if ac_fn_c_try_compile "$LINENO"; then :
8349  xorg_cv_cc_flag_unknown_warning_option=yes
8350else
8351  xorg_cv_cc_flag_unknown_warning_option=no
8352fi
8353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8354fi
8355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8356$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8357	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8358	CFLAGS="$xorg_testset_save_CFLAGS"
8359fi
8360
8361if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8362	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8363		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8364	fi
8365	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8366	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8367$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8368if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8369  $as_echo_n "(cached) " >&6
8370else
8371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8372/* end confdefs.h.  */
8373int i;
8374_ACEOF
8375if ac_fn_c_try_compile "$LINENO"; then :
8376  xorg_cv_cc_flag_unused_command_line_argument=yes
8377else
8378  xorg_cv_cc_flag_unused_command_line_argument=no
8379fi
8380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8381fi
8382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8383$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8384	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8385	CFLAGS="$xorg_testset_save_CFLAGS"
8386fi
8387
8388found="no"
8389
8390	if test $found = "no" ; then
8391		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8392			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8393		fi
8394
8395		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8396			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8397		fi
8398
8399		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8400
8401		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8402$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8403		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8404		if eval \${$cacheid+:} false; then :
8405  $as_echo_n "(cached) " >&6
8406else
8407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8408/* end confdefs.h.  */
8409int i;
8410int
8411main ()
8412{
8413
8414  ;
8415  return 0;
8416}
8417_ACEOF
8418if ac_fn_c_try_link "$LINENO"; then :
8419  eval $cacheid=yes
8420else
8421  eval $cacheid=no
8422fi
8423rm -f core conftest.err conftest.$ac_objext \
8424    conftest$ac_exeext conftest.$ac_ext
8425fi
8426
8427
8428		CFLAGS="$xorg_testset_save_CFLAGS"
8429
8430		eval supported=\$$cacheid
8431		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8432$as_echo "$supported" >&6; }
8433		if test "$supported" = "yes" ; then
8434			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8435			found="yes"
8436		fi
8437	fi
8438
8439 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8440else
8441{ $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
8442$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;}
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456xorg_testset_save_CFLAGS="$CFLAGS"
8457
8458if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8459	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8460	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8461$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8462if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8463  $as_echo_n "(cached) " >&6
8464else
8465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8466/* end confdefs.h.  */
8467int i;
8468_ACEOF
8469if ac_fn_c_try_compile "$LINENO"; then :
8470  xorg_cv_cc_flag_unknown_warning_option=yes
8471else
8472  xorg_cv_cc_flag_unknown_warning_option=no
8473fi
8474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8475fi
8476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8477$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8478	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8479	CFLAGS="$xorg_testset_save_CFLAGS"
8480fi
8481
8482if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8483	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8484		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8485	fi
8486	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8487	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8488$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8489if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8490  $as_echo_n "(cached) " >&6
8491else
8492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8493/* end confdefs.h.  */
8494int i;
8495_ACEOF
8496if ac_fn_c_try_compile "$LINENO"; then :
8497  xorg_cv_cc_flag_unused_command_line_argument=yes
8498else
8499  xorg_cv_cc_flag_unused_command_line_argument=no
8500fi
8501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8502fi
8503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8504$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8505	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8506	CFLAGS="$xorg_testset_save_CFLAGS"
8507fi
8508
8509found="no"
8510
8511	if test $found = "no" ; then
8512		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8513			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8514		fi
8515
8516		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8517			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8518		fi
8519
8520		CFLAGS="$CFLAGS -Wimplicit"
8521
8522		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8523$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8524		cacheid=xorg_cv_cc_flag__Wimplicit
8525		if eval \${$cacheid+:} false; then :
8526  $as_echo_n "(cached) " >&6
8527else
8528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8529/* end confdefs.h.  */
8530int i;
8531int
8532main ()
8533{
8534
8535  ;
8536  return 0;
8537}
8538_ACEOF
8539if ac_fn_c_try_link "$LINENO"; then :
8540  eval $cacheid=yes
8541else
8542  eval $cacheid=no
8543fi
8544rm -f core conftest.err conftest.$ac_objext \
8545    conftest$ac_exeext conftest.$ac_ext
8546fi
8547
8548
8549		CFLAGS="$xorg_testset_save_CFLAGS"
8550
8551		eval supported=\$$cacheid
8552		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8553$as_echo "$supported" >&6; }
8554		if test "$supported" = "yes" ; then
8555			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8556			found="yes"
8557		fi
8558	fi
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574xorg_testset_save_CFLAGS="$CFLAGS"
8575
8576if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8577	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8578	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8579$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8580if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8581  $as_echo_n "(cached) " >&6
8582else
8583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8584/* end confdefs.h.  */
8585int i;
8586_ACEOF
8587if ac_fn_c_try_compile "$LINENO"; then :
8588  xorg_cv_cc_flag_unknown_warning_option=yes
8589else
8590  xorg_cv_cc_flag_unknown_warning_option=no
8591fi
8592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8593fi
8594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8595$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8596	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8597	CFLAGS="$xorg_testset_save_CFLAGS"
8598fi
8599
8600if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8601	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8602		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8603	fi
8604	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8605	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8606$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8607if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8608  $as_echo_n "(cached) " >&6
8609else
8610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8611/* end confdefs.h.  */
8612int i;
8613_ACEOF
8614if ac_fn_c_try_compile "$LINENO"; then :
8615  xorg_cv_cc_flag_unused_command_line_argument=yes
8616else
8617  xorg_cv_cc_flag_unused_command_line_argument=no
8618fi
8619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8620fi
8621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8622$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8623	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8624	CFLAGS="$xorg_testset_save_CFLAGS"
8625fi
8626
8627found="no"
8628
8629	if test $found = "no" ; then
8630		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8631			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8632		fi
8633
8634		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8635			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8636		fi
8637
8638		CFLAGS="$CFLAGS -Wnonnull"
8639
8640		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8641$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8642		cacheid=xorg_cv_cc_flag__Wnonnull
8643		if eval \${$cacheid+:} false; then :
8644  $as_echo_n "(cached) " >&6
8645else
8646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8647/* end confdefs.h.  */
8648int i;
8649int
8650main ()
8651{
8652
8653  ;
8654  return 0;
8655}
8656_ACEOF
8657if ac_fn_c_try_link "$LINENO"; then :
8658  eval $cacheid=yes
8659else
8660  eval $cacheid=no
8661fi
8662rm -f core conftest.err conftest.$ac_objext \
8663    conftest$ac_exeext conftest.$ac_ext
8664fi
8665
8666
8667		CFLAGS="$xorg_testset_save_CFLAGS"
8668
8669		eval supported=\$$cacheid
8670		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8671$as_echo "$supported" >&6; }
8672		if test "$supported" = "yes" ; then
8673			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8674			found="yes"
8675		fi
8676	fi
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692xorg_testset_save_CFLAGS="$CFLAGS"
8693
8694if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8695	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8696	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8697$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8698if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8699  $as_echo_n "(cached) " >&6
8700else
8701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8702/* end confdefs.h.  */
8703int i;
8704_ACEOF
8705if ac_fn_c_try_compile "$LINENO"; then :
8706  xorg_cv_cc_flag_unknown_warning_option=yes
8707else
8708  xorg_cv_cc_flag_unknown_warning_option=no
8709fi
8710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8711fi
8712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8713$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8714	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8715	CFLAGS="$xorg_testset_save_CFLAGS"
8716fi
8717
8718if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8719	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8720		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8721	fi
8722	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8723	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8724$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8725if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8726  $as_echo_n "(cached) " >&6
8727else
8728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8729/* end confdefs.h.  */
8730int i;
8731_ACEOF
8732if ac_fn_c_try_compile "$LINENO"; then :
8733  xorg_cv_cc_flag_unused_command_line_argument=yes
8734else
8735  xorg_cv_cc_flag_unused_command_line_argument=no
8736fi
8737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8738fi
8739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8740$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8741	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8742	CFLAGS="$xorg_testset_save_CFLAGS"
8743fi
8744
8745found="no"
8746
8747	if test $found = "no" ; then
8748		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8749			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8750		fi
8751
8752		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8753			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8754		fi
8755
8756		CFLAGS="$CFLAGS -Winit-self"
8757
8758		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8759$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8760		cacheid=xorg_cv_cc_flag__Winit_self
8761		if eval \${$cacheid+:} false; then :
8762  $as_echo_n "(cached) " >&6
8763else
8764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8765/* end confdefs.h.  */
8766int i;
8767int
8768main ()
8769{
8770
8771  ;
8772  return 0;
8773}
8774_ACEOF
8775if ac_fn_c_try_link "$LINENO"; then :
8776  eval $cacheid=yes
8777else
8778  eval $cacheid=no
8779fi
8780rm -f core conftest.err conftest.$ac_objext \
8781    conftest$ac_exeext conftest.$ac_ext
8782fi
8783
8784
8785		CFLAGS="$xorg_testset_save_CFLAGS"
8786
8787		eval supported=\$$cacheid
8788		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8789$as_echo "$supported" >&6; }
8790		if test "$supported" = "yes" ; then
8791			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8792			found="yes"
8793		fi
8794	fi
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810xorg_testset_save_CFLAGS="$CFLAGS"
8811
8812if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8813	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8814	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8815$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8816if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8817  $as_echo_n "(cached) " >&6
8818else
8819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8820/* end confdefs.h.  */
8821int i;
8822_ACEOF
8823if ac_fn_c_try_compile "$LINENO"; then :
8824  xorg_cv_cc_flag_unknown_warning_option=yes
8825else
8826  xorg_cv_cc_flag_unknown_warning_option=no
8827fi
8828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8829fi
8830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8831$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8832	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8833	CFLAGS="$xorg_testset_save_CFLAGS"
8834fi
8835
8836if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8837	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8838		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8839	fi
8840	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8841	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8842$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8843if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8844  $as_echo_n "(cached) " >&6
8845else
8846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8847/* end confdefs.h.  */
8848int i;
8849_ACEOF
8850if ac_fn_c_try_compile "$LINENO"; then :
8851  xorg_cv_cc_flag_unused_command_line_argument=yes
8852else
8853  xorg_cv_cc_flag_unused_command_line_argument=no
8854fi
8855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8856fi
8857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8858$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8859	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8860	CFLAGS="$xorg_testset_save_CFLAGS"
8861fi
8862
8863found="no"
8864
8865	if test $found = "no" ; then
8866		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8867			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8868		fi
8869
8870		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8871			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8872		fi
8873
8874		CFLAGS="$CFLAGS -Wmain"
8875
8876		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8877$as_echo_n "checking if $CC supports -Wmain... " >&6; }
8878		cacheid=xorg_cv_cc_flag__Wmain
8879		if eval \${$cacheid+:} false; then :
8880  $as_echo_n "(cached) " >&6
8881else
8882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8883/* end confdefs.h.  */
8884int i;
8885int
8886main ()
8887{
8888
8889  ;
8890  return 0;
8891}
8892_ACEOF
8893if ac_fn_c_try_link "$LINENO"; then :
8894  eval $cacheid=yes
8895else
8896  eval $cacheid=no
8897fi
8898rm -f core conftest.err conftest.$ac_objext \
8899    conftest$ac_exeext conftest.$ac_ext
8900fi
8901
8902
8903		CFLAGS="$xorg_testset_save_CFLAGS"
8904
8905		eval supported=\$$cacheid
8906		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8907$as_echo "$supported" >&6; }
8908		if test "$supported" = "yes" ; then
8909			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8910			found="yes"
8911		fi
8912	fi
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928xorg_testset_save_CFLAGS="$CFLAGS"
8929
8930if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8931	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8932	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8933$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8934if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8935  $as_echo_n "(cached) " >&6
8936else
8937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8938/* end confdefs.h.  */
8939int i;
8940_ACEOF
8941if ac_fn_c_try_compile "$LINENO"; then :
8942  xorg_cv_cc_flag_unknown_warning_option=yes
8943else
8944  xorg_cv_cc_flag_unknown_warning_option=no
8945fi
8946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8947fi
8948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8949$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8950	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8951	CFLAGS="$xorg_testset_save_CFLAGS"
8952fi
8953
8954if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8955	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8956		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8957	fi
8958	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8959	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8960$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8961if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8962  $as_echo_n "(cached) " >&6
8963else
8964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8965/* end confdefs.h.  */
8966int i;
8967_ACEOF
8968if ac_fn_c_try_compile "$LINENO"; then :
8969  xorg_cv_cc_flag_unused_command_line_argument=yes
8970else
8971  xorg_cv_cc_flag_unused_command_line_argument=no
8972fi
8973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8974fi
8975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8976$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8977	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8978	CFLAGS="$xorg_testset_save_CFLAGS"
8979fi
8980
8981found="no"
8982
8983	if test $found = "no" ; then
8984		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8985			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8986		fi
8987
8988		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8989			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8990		fi
8991
8992		CFLAGS="$CFLAGS -Wmissing-braces"
8993
8994		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8995$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8996		cacheid=xorg_cv_cc_flag__Wmissing_braces
8997		if eval \${$cacheid+:} false; then :
8998  $as_echo_n "(cached) " >&6
8999else
9000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9001/* end confdefs.h.  */
9002int i;
9003int
9004main ()
9005{
9006
9007  ;
9008  return 0;
9009}
9010_ACEOF
9011if ac_fn_c_try_link "$LINENO"; then :
9012  eval $cacheid=yes
9013else
9014  eval $cacheid=no
9015fi
9016rm -f core conftest.err conftest.$ac_objext \
9017    conftest$ac_exeext conftest.$ac_ext
9018fi
9019
9020
9021		CFLAGS="$xorg_testset_save_CFLAGS"
9022
9023		eval supported=\$$cacheid
9024		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9025$as_echo "$supported" >&6; }
9026		if test "$supported" = "yes" ; then
9027			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9028			found="yes"
9029		fi
9030	fi
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046xorg_testset_save_CFLAGS="$CFLAGS"
9047
9048if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9049	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9050	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9051$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9052if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9053  $as_echo_n "(cached) " >&6
9054else
9055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9056/* end confdefs.h.  */
9057int i;
9058_ACEOF
9059if ac_fn_c_try_compile "$LINENO"; then :
9060  xorg_cv_cc_flag_unknown_warning_option=yes
9061else
9062  xorg_cv_cc_flag_unknown_warning_option=no
9063fi
9064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9065fi
9066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9067$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9068	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9069	CFLAGS="$xorg_testset_save_CFLAGS"
9070fi
9071
9072if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9073	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9074		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9075	fi
9076	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9077	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9078$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9079if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9080  $as_echo_n "(cached) " >&6
9081else
9082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9083/* end confdefs.h.  */
9084int i;
9085_ACEOF
9086if ac_fn_c_try_compile "$LINENO"; then :
9087  xorg_cv_cc_flag_unused_command_line_argument=yes
9088else
9089  xorg_cv_cc_flag_unused_command_line_argument=no
9090fi
9091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9092fi
9093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9094$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9095	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9096	CFLAGS="$xorg_testset_save_CFLAGS"
9097fi
9098
9099found="no"
9100
9101	if test $found = "no" ; then
9102		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9103			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9104		fi
9105
9106		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9107			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9108		fi
9109
9110		CFLAGS="$CFLAGS -Wsequence-point"
9111
9112		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9113$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9114		cacheid=xorg_cv_cc_flag__Wsequence_point
9115		if eval \${$cacheid+:} false; then :
9116  $as_echo_n "(cached) " >&6
9117else
9118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9119/* end confdefs.h.  */
9120int i;
9121int
9122main ()
9123{
9124
9125  ;
9126  return 0;
9127}
9128_ACEOF
9129if ac_fn_c_try_link "$LINENO"; then :
9130  eval $cacheid=yes
9131else
9132  eval $cacheid=no
9133fi
9134rm -f core conftest.err conftest.$ac_objext \
9135    conftest$ac_exeext conftest.$ac_ext
9136fi
9137
9138
9139		CFLAGS="$xorg_testset_save_CFLAGS"
9140
9141		eval supported=\$$cacheid
9142		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9143$as_echo "$supported" >&6; }
9144		if test "$supported" = "yes" ; then
9145			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9146			found="yes"
9147		fi
9148	fi
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164xorg_testset_save_CFLAGS="$CFLAGS"
9165
9166if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9167	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9168	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9169$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9170if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9171  $as_echo_n "(cached) " >&6
9172else
9173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9174/* end confdefs.h.  */
9175int i;
9176_ACEOF
9177if ac_fn_c_try_compile "$LINENO"; then :
9178  xorg_cv_cc_flag_unknown_warning_option=yes
9179else
9180  xorg_cv_cc_flag_unknown_warning_option=no
9181fi
9182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9183fi
9184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9185$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9186	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9187	CFLAGS="$xorg_testset_save_CFLAGS"
9188fi
9189
9190if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9191	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9192		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9193	fi
9194	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9195	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9196$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9197if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9198  $as_echo_n "(cached) " >&6
9199else
9200  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9201/* end confdefs.h.  */
9202int i;
9203_ACEOF
9204if ac_fn_c_try_compile "$LINENO"; then :
9205  xorg_cv_cc_flag_unused_command_line_argument=yes
9206else
9207  xorg_cv_cc_flag_unused_command_line_argument=no
9208fi
9209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9210fi
9211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9212$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9213	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9214	CFLAGS="$xorg_testset_save_CFLAGS"
9215fi
9216
9217found="no"
9218
9219	if test $found = "no" ; then
9220		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9221			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9222		fi
9223
9224		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9225			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9226		fi
9227
9228		CFLAGS="$CFLAGS -Wreturn-type"
9229
9230		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9231$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9232		cacheid=xorg_cv_cc_flag__Wreturn_type
9233		if eval \${$cacheid+:} false; then :
9234  $as_echo_n "(cached) " >&6
9235else
9236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9237/* end confdefs.h.  */
9238int i;
9239int
9240main ()
9241{
9242
9243  ;
9244  return 0;
9245}
9246_ACEOF
9247if ac_fn_c_try_link "$LINENO"; then :
9248  eval $cacheid=yes
9249else
9250  eval $cacheid=no
9251fi
9252rm -f core conftest.err conftest.$ac_objext \
9253    conftest$ac_exeext conftest.$ac_ext
9254fi
9255
9256
9257		CFLAGS="$xorg_testset_save_CFLAGS"
9258
9259		eval supported=\$$cacheid
9260		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9261$as_echo "$supported" >&6; }
9262		if test "$supported" = "yes" ; then
9263			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9264			found="yes"
9265		fi
9266	fi
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282xorg_testset_save_CFLAGS="$CFLAGS"
9283
9284if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9285	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9286	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9287$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9288if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9289  $as_echo_n "(cached) " >&6
9290else
9291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9292/* end confdefs.h.  */
9293int i;
9294_ACEOF
9295if ac_fn_c_try_compile "$LINENO"; then :
9296  xorg_cv_cc_flag_unknown_warning_option=yes
9297else
9298  xorg_cv_cc_flag_unknown_warning_option=no
9299fi
9300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9301fi
9302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9303$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9304	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9305	CFLAGS="$xorg_testset_save_CFLAGS"
9306fi
9307
9308if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9309	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9310		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9311	fi
9312	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9313	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9314$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9315if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9316  $as_echo_n "(cached) " >&6
9317else
9318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9319/* end confdefs.h.  */
9320int i;
9321_ACEOF
9322if ac_fn_c_try_compile "$LINENO"; then :
9323  xorg_cv_cc_flag_unused_command_line_argument=yes
9324else
9325  xorg_cv_cc_flag_unused_command_line_argument=no
9326fi
9327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9328fi
9329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9330$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9331	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9332	CFLAGS="$xorg_testset_save_CFLAGS"
9333fi
9334
9335found="no"
9336
9337	if test $found = "no" ; then
9338		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9339			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9340		fi
9341
9342		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9343			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9344		fi
9345
9346		CFLAGS="$CFLAGS -Wtrigraphs"
9347
9348		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9349$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9350		cacheid=xorg_cv_cc_flag__Wtrigraphs
9351		if eval \${$cacheid+:} false; then :
9352  $as_echo_n "(cached) " >&6
9353else
9354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9355/* end confdefs.h.  */
9356int i;
9357int
9358main ()
9359{
9360
9361  ;
9362  return 0;
9363}
9364_ACEOF
9365if ac_fn_c_try_link "$LINENO"; then :
9366  eval $cacheid=yes
9367else
9368  eval $cacheid=no
9369fi
9370rm -f core conftest.err conftest.$ac_objext \
9371    conftest$ac_exeext conftest.$ac_ext
9372fi
9373
9374
9375		CFLAGS="$xorg_testset_save_CFLAGS"
9376
9377		eval supported=\$$cacheid
9378		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9379$as_echo "$supported" >&6; }
9380		if test "$supported" = "yes" ; then
9381			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9382			found="yes"
9383		fi
9384	fi
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400xorg_testset_save_CFLAGS="$CFLAGS"
9401
9402if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9403	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9404	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9405$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9406if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9407  $as_echo_n "(cached) " >&6
9408else
9409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9410/* end confdefs.h.  */
9411int i;
9412_ACEOF
9413if ac_fn_c_try_compile "$LINENO"; then :
9414  xorg_cv_cc_flag_unknown_warning_option=yes
9415else
9416  xorg_cv_cc_flag_unknown_warning_option=no
9417fi
9418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9419fi
9420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9421$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9422	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9423	CFLAGS="$xorg_testset_save_CFLAGS"
9424fi
9425
9426if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9427	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9428		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9429	fi
9430	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9431	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9432$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9433if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9434  $as_echo_n "(cached) " >&6
9435else
9436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9437/* end confdefs.h.  */
9438int i;
9439_ACEOF
9440if ac_fn_c_try_compile "$LINENO"; then :
9441  xorg_cv_cc_flag_unused_command_line_argument=yes
9442else
9443  xorg_cv_cc_flag_unused_command_line_argument=no
9444fi
9445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9446fi
9447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9448$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9449	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9450	CFLAGS="$xorg_testset_save_CFLAGS"
9451fi
9452
9453found="no"
9454
9455	if test $found = "no" ; then
9456		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9457			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9458		fi
9459
9460		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9461			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9462		fi
9463
9464		CFLAGS="$CFLAGS -Warray-bounds"
9465
9466		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9467$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9468		cacheid=xorg_cv_cc_flag__Warray_bounds
9469		if eval \${$cacheid+:} false; then :
9470  $as_echo_n "(cached) " >&6
9471else
9472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9473/* end confdefs.h.  */
9474int i;
9475int
9476main ()
9477{
9478
9479  ;
9480  return 0;
9481}
9482_ACEOF
9483if ac_fn_c_try_link "$LINENO"; then :
9484  eval $cacheid=yes
9485else
9486  eval $cacheid=no
9487fi
9488rm -f core conftest.err conftest.$ac_objext \
9489    conftest$ac_exeext conftest.$ac_ext
9490fi
9491
9492
9493		CFLAGS="$xorg_testset_save_CFLAGS"
9494
9495		eval supported=\$$cacheid
9496		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9497$as_echo "$supported" >&6; }
9498		if test "$supported" = "yes" ; then
9499			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9500			found="yes"
9501		fi
9502	fi
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518xorg_testset_save_CFLAGS="$CFLAGS"
9519
9520if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9521	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9522	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9523$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9524if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9525  $as_echo_n "(cached) " >&6
9526else
9527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9528/* end confdefs.h.  */
9529int i;
9530_ACEOF
9531if ac_fn_c_try_compile "$LINENO"; then :
9532  xorg_cv_cc_flag_unknown_warning_option=yes
9533else
9534  xorg_cv_cc_flag_unknown_warning_option=no
9535fi
9536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9537fi
9538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9539$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9540	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9541	CFLAGS="$xorg_testset_save_CFLAGS"
9542fi
9543
9544if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9545	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9546		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9547	fi
9548	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9549	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9550$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9551if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9552  $as_echo_n "(cached) " >&6
9553else
9554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9555/* end confdefs.h.  */
9556int i;
9557_ACEOF
9558if ac_fn_c_try_compile "$LINENO"; then :
9559  xorg_cv_cc_flag_unused_command_line_argument=yes
9560else
9561  xorg_cv_cc_flag_unused_command_line_argument=no
9562fi
9563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9564fi
9565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9566$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9567	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9568	CFLAGS="$xorg_testset_save_CFLAGS"
9569fi
9570
9571found="no"
9572
9573	if test $found = "no" ; then
9574		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9575			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9576		fi
9577
9578		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9579			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9580		fi
9581
9582		CFLAGS="$CFLAGS -Wwrite-strings"
9583
9584		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9585$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9586		cacheid=xorg_cv_cc_flag__Wwrite_strings
9587		if eval \${$cacheid+:} false; then :
9588  $as_echo_n "(cached) " >&6
9589else
9590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9591/* end confdefs.h.  */
9592int i;
9593int
9594main ()
9595{
9596
9597  ;
9598  return 0;
9599}
9600_ACEOF
9601if ac_fn_c_try_link "$LINENO"; then :
9602  eval $cacheid=yes
9603else
9604  eval $cacheid=no
9605fi
9606rm -f core conftest.err conftest.$ac_objext \
9607    conftest$ac_exeext conftest.$ac_ext
9608fi
9609
9610
9611		CFLAGS="$xorg_testset_save_CFLAGS"
9612
9613		eval supported=\$$cacheid
9614		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9615$as_echo "$supported" >&6; }
9616		if test "$supported" = "yes" ; then
9617			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9618			found="yes"
9619		fi
9620	fi
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636xorg_testset_save_CFLAGS="$CFLAGS"
9637
9638if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9639	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9640	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9641$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9642if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9643  $as_echo_n "(cached) " >&6
9644else
9645  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9646/* end confdefs.h.  */
9647int i;
9648_ACEOF
9649if ac_fn_c_try_compile "$LINENO"; then :
9650  xorg_cv_cc_flag_unknown_warning_option=yes
9651else
9652  xorg_cv_cc_flag_unknown_warning_option=no
9653fi
9654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9655fi
9656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9657$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9658	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9659	CFLAGS="$xorg_testset_save_CFLAGS"
9660fi
9661
9662if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9663	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9664		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9665	fi
9666	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9667	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9668$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9669if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9670  $as_echo_n "(cached) " >&6
9671else
9672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9673/* end confdefs.h.  */
9674int i;
9675_ACEOF
9676if ac_fn_c_try_compile "$LINENO"; then :
9677  xorg_cv_cc_flag_unused_command_line_argument=yes
9678else
9679  xorg_cv_cc_flag_unused_command_line_argument=no
9680fi
9681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9682fi
9683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9684$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9685	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9686	CFLAGS="$xorg_testset_save_CFLAGS"
9687fi
9688
9689found="no"
9690
9691	if test $found = "no" ; then
9692		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9693			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9694		fi
9695
9696		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9697			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9698		fi
9699
9700		CFLAGS="$CFLAGS -Waddress"
9701
9702		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9703$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9704		cacheid=xorg_cv_cc_flag__Waddress
9705		if eval \${$cacheid+:} false; then :
9706  $as_echo_n "(cached) " >&6
9707else
9708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9709/* end confdefs.h.  */
9710int i;
9711int
9712main ()
9713{
9714
9715  ;
9716  return 0;
9717}
9718_ACEOF
9719if ac_fn_c_try_link "$LINENO"; then :
9720  eval $cacheid=yes
9721else
9722  eval $cacheid=no
9723fi
9724rm -f core conftest.err conftest.$ac_objext \
9725    conftest$ac_exeext conftest.$ac_ext
9726fi
9727
9728
9729		CFLAGS="$xorg_testset_save_CFLAGS"
9730
9731		eval supported=\$$cacheid
9732		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9733$as_echo "$supported" >&6; }
9734		if test "$supported" = "yes" ; then
9735			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9736			found="yes"
9737		fi
9738	fi
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754xorg_testset_save_CFLAGS="$CFLAGS"
9755
9756if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9757	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9758	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9759$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9760if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9761  $as_echo_n "(cached) " >&6
9762else
9763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9764/* end confdefs.h.  */
9765int i;
9766_ACEOF
9767if ac_fn_c_try_compile "$LINENO"; then :
9768  xorg_cv_cc_flag_unknown_warning_option=yes
9769else
9770  xorg_cv_cc_flag_unknown_warning_option=no
9771fi
9772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9773fi
9774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9775$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9776	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9777	CFLAGS="$xorg_testset_save_CFLAGS"
9778fi
9779
9780if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9781	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9782		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9783	fi
9784	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9785	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9786$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9787if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9788  $as_echo_n "(cached) " >&6
9789else
9790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9791/* end confdefs.h.  */
9792int i;
9793_ACEOF
9794if ac_fn_c_try_compile "$LINENO"; then :
9795  xorg_cv_cc_flag_unused_command_line_argument=yes
9796else
9797  xorg_cv_cc_flag_unused_command_line_argument=no
9798fi
9799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9800fi
9801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9802$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9803	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9804	CFLAGS="$xorg_testset_save_CFLAGS"
9805fi
9806
9807found="no"
9808
9809	if test $found = "no" ; then
9810		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9811			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9812		fi
9813
9814		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9815			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9816		fi
9817
9818		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9819
9820		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9821$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9822		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9823		if eval \${$cacheid+:} false; then :
9824  $as_echo_n "(cached) " >&6
9825else
9826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9827/* end confdefs.h.  */
9828int i;
9829int
9830main ()
9831{
9832
9833  ;
9834  return 0;
9835}
9836_ACEOF
9837if ac_fn_c_try_link "$LINENO"; then :
9838  eval $cacheid=yes
9839else
9840  eval $cacheid=no
9841fi
9842rm -f core conftest.err conftest.$ac_objext \
9843    conftest$ac_exeext conftest.$ac_ext
9844fi
9845
9846
9847		CFLAGS="$xorg_testset_save_CFLAGS"
9848
9849		eval supported=\$$cacheid
9850		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9851$as_echo "$supported" >&6; }
9852		if test "$supported" = "yes" ; then
9853			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9854			found="yes"
9855		fi
9856	fi
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872xorg_testset_save_CFLAGS="$CFLAGS"
9873
9874if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9875	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9876	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9877$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9878if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9879  $as_echo_n "(cached) " >&6
9880else
9881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9882/* end confdefs.h.  */
9883int i;
9884_ACEOF
9885if ac_fn_c_try_compile "$LINENO"; then :
9886  xorg_cv_cc_flag_unknown_warning_option=yes
9887else
9888  xorg_cv_cc_flag_unknown_warning_option=no
9889fi
9890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9891fi
9892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9893$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9894	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9895	CFLAGS="$xorg_testset_save_CFLAGS"
9896fi
9897
9898if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9899	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9900		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9901	fi
9902	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9903	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9904$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9905if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9906  $as_echo_n "(cached) " >&6
9907else
9908  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9909/* end confdefs.h.  */
9910int i;
9911_ACEOF
9912if ac_fn_c_try_compile "$LINENO"; then :
9913  xorg_cv_cc_flag_unused_command_line_argument=yes
9914else
9915  xorg_cv_cc_flag_unused_command_line_argument=no
9916fi
9917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9918fi
9919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9920$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9921	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9922	CFLAGS="$xorg_testset_save_CFLAGS"
9923fi
9924
9925found="no"
9926
9927	if test $found = "no" ; then
9928		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9929			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9930		fi
9931
9932		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9933			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9934		fi
9935
9936		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9937
9938		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9939$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9940		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9941		if eval \${$cacheid+:} false; then :
9942  $as_echo_n "(cached) " >&6
9943else
9944  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9945/* end confdefs.h.  */
9946int i;
9947int
9948main ()
9949{
9950
9951  ;
9952  return 0;
9953}
9954_ACEOF
9955if ac_fn_c_try_link "$LINENO"; then :
9956  eval $cacheid=yes
9957else
9958  eval $cacheid=no
9959fi
9960rm -f core conftest.err conftest.$ac_objext \
9961    conftest$ac_exeext conftest.$ac_ext
9962fi
9963
9964
9965		CFLAGS="$xorg_testset_save_CFLAGS"
9966
9967		eval supported=\$$cacheid
9968		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9969$as_echo "$supported" >&6; }
9970		if test "$supported" = "yes" ; then
9971			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9972			found="yes"
9973		fi
9974	fi
9975
9976
9977fi
9978
9979
9980
9981
9982
9983
9984
9985		CWARNFLAGS="$BASE_CFLAGS"
9986		if  test "x$GCC" = xyes ; then
9987		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9988		fi
9989
9990
9991
9992
9993
9994
9995
9996
9997# Check whether --enable-strict-compilation was given.
9998if test "${enable_strict_compilation+set}" = set; then :
9999  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10000else
10001  STRICT_COMPILE=no
10002fi
10003
10004
10005
10006
10007
10008
10009STRICT_CFLAGS=""
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023xorg_testset_save_CFLAGS="$CFLAGS"
10024
10025if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10026	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10027	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10028$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10029if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10030  $as_echo_n "(cached) " >&6
10031else
10032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10033/* end confdefs.h.  */
10034int i;
10035_ACEOF
10036if ac_fn_c_try_compile "$LINENO"; then :
10037  xorg_cv_cc_flag_unknown_warning_option=yes
10038else
10039  xorg_cv_cc_flag_unknown_warning_option=no
10040fi
10041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10042fi
10043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10044$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10045	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10046	CFLAGS="$xorg_testset_save_CFLAGS"
10047fi
10048
10049if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10050	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10051		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10052	fi
10053	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10054	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10055$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10056if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10057  $as_echo_n "(cached) " >&6
10058else
10059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10060/* end confdefs.h.  */
10061int i;
10062_ACEOF
10063if ac_fn_c_try_compile "$LINENO"; then :
10064  xorg_cv_cc_flag_unused_command_line_argument=yes
10065else
10066  xorg_cv_cc_flag_unused_command_line_argument=no
10067fi
10068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10069fi
10070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10071$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10072	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10073	CFLAGS="$xorg_testset_save_CFLAGS"
10074fi
10075
10076found="no"
10077
10078	if test $found = "no" ; then
10079		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10080			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10081		fi
10082
10083		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10084			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10085		fi
10086
10087		CFLAGS="$CFLAGS -pedantic"
10088
10089		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10090$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10091		cacheid=xorg_cv_cc_flag__pedantic
10092		if eval \${$cacheid+:} false; then :
10093  $as_echo_n "(cached) " >&6
10094else
10095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10096/* end confdefs.h.  */
10097int i;
10098int
10099main ()
10100{
10101
10102  ;
10103  return 0;
10104}
10105_ACEOF
10106if ac_fn_c_try_link "$LINENO"; then :
10107  eval $cacheid=yes
10108else
10109  eval $cacheid=no
10110fi
10111rm -f core conftest.err conftest.$ac_objext \
10112    conftest$ac_exeext conftest.$ac_ext
10113fi
10114
10115
10116		CFLAGS="$xorg_testset_save_CFLAGS"
10117
10118		eval supported=\$$cacheid
10119		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10120$as_echo "$supported" >&6; }
10121		if test "$supported" = "yes" ; then
10122			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10123			found="yes"
10124		fi
10125	fi
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141xorg_testset_save_CFLAGS="$CFLAGS"
10142
10143if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10144	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10145	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10146$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10147if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10148  $as_echo_n "(cached) " >&6
10149else
10150  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10151/* end confdefs.h.  */
10152int i;
10153_ACEOF
10154if ac_fn_c_try_compile "$LINENO"; then :
10155  xorg_cv_cc_flag_unknown_warning_option=yes
10156else
10157  xorg_cv_cc_flag_unknown_warning_option=no
10158fi
10159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10160fi
10161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10162$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10163	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10164	CFLAGS="$xorg_testset_save_CFLAGS"
10165fi
10166
10167if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10168	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10169		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10170	fi
10171	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10172	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10173$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10174if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10175  $as_echo_n "(cached) " >&6
10176else
10177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10178/* end confdefs.h.  */
10179int i;
10180_ACEOF
10181if ac_fn_c_try_compile "$LINENO"; then :
10182  xorg_cv_cc_flag_unused_command_line_argument=yes
10183else
10184  xorg_cv_cc_flag_unused_command_line_argument=no
10185fi
10186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10187fi
10188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10189$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10190	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10191	CFLAGS="$xorg_testset_save_CFLAGS"
10192fi
10193
10194found="no"
10195
10196	if test $found = "no" ; then
10197		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10198			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10199		fi
10200
10201		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10202			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10203		fi
10204
10205		CFLAGS="$CFLAGS -Werror"
10206
10207		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10208$as_echo_n "checking if $CC supports -Werror... " >&6; }
10209		cacheid=xorg_cv_cc_flag__Werror
10210		if eval \${$cacheid+:} false; then :
10211  $as_echo_n "(cached) " >&6
10212else
10213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10214/* end confdefs.h.  */
10215int i;
10216int
10217main ()
10218{
10219
10220  ;
10221  return 0;
10222}
10223_ACEOF
10224if ac_fn_c_try_link "$LINENO"; then :
10225  eval $cacheid=yes
10226else
10227  eval $cacheid=no
10228fi
10229rm -f core conftest.err conftest.$ac_objext \
10230    conftest$ac_exeext conftest.$ac_ext
10231fi
10232
10233
10234		CFLAGS="$xorg_testset_save_CFLAGS"
10235
10236		eval supported=\$$cacheid
10237		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10238$as_echo "$supported" >&6; }
10239		if test "$supported" = "yes" ; then
10240			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10241			found="yes"
10242		fi
10243	fi
10244
10245	if test $found = "no" ; then
10246		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10247			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10248		fi
10249
10250		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10251			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10252		fi
10253
10254		CFLAGS="$CFLAGS -errwarn"
10255
10256		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10257$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10258		cacheid=xorg_cv_cc_flag__errwarn
10259		if eval \${$cacheid+:} false; then :
10260  $as_echo_n "(cached) " >&6
10261else
10262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10263/* end confdefs.h.  */
10264int i;
10265int
10266main ()
10267{
10268
10269  ;
10270  return 0;
10271}
10272_ACEOF
10273if ac_fn_c_try_link "$LINENO"; then :
10274  eval $cacheid=yes
10275else
10276  eval $cacheid=no
10277fi
10278rm -f core conftest.err conftest.$ac_objext \
10279    conftest$ac_exeext conftest.$ac_ext
10280fi
10281
10282
10283		CFLAGS="$xorg_testset_save_CFLAGS"
10284
10285		eval supported=\$$cacheid
10286		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10287$as_echo "$supported" >&6; }
10288		if test "$supported" = "yes" ; then
10289			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10290			found="yes"
10291		fi
10292	fi
10293
10294
10295
10296# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10297# activate it with -Werror, so we add it here explicitly.
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311xorg_testset_save_CFLAGS="$CFLAGS"
10312
10313if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10314	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10315	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10316$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10317if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10318  $as_echo_n "(cached) " >&6
10319else
10320  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10321/* end confdefs.h.  */
10322int i;
10323_ACEOF
10324if ac_fn_c_try_compile "$LINENO"; then :
10325  xorg_cv_cc_flag_unknown_warning_option=yes
10326else
10327  xorg_cv_cc_flag_unknown_warning_option=no
10328fi
10329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10330fi
10331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10332$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10333	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10334	CFLAGS="$xorg_testset_save_CFLAGS"
10335fi
10336
10337if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10338	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10339		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10340	fi
10341	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10342	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10343$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10344if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10345  $as_echo_n "(cached) " >&6
10346else
10347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10348/* end confdefs.h.  */
10349int i;
10350_ACEOF
10351if ac_fn_c_try_compile "$LINENO"; then :
10352  xorg_cv_cc_flag_unused_command_line_argument=yes
10353else
10354  xorg_cv_cc_flag_unused_command_line_argument=no
10355fi
10356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10357fi
10358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10359$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10360	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10361	CFLAGS="$xorg_testset_save_CFLAGS"
10362fi
10363
10364found="no"
10365
10366	if test $found = "no" ; then
10367		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10368			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10369		fi
10370
10371		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10372			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10373		fi
10374
10375		CFLAGS="$CFLAGS -Werror=attributes"
10376
10377		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10378$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10379		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10380		if eval \${$cacheid+:} false; then :
10381  $as_echo_n "(cached) " >&6
10382else
10383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10384/* end confdefs.h.  */
10385int i;
10386int
10387main ()
10388{
10389
10390  ;
10391  return 0;
10392}
10393_ACEOF
10394if ac_fn_c_try_link "$LINENO"; then :
10395  eval $cacheid=yes
10396else
10397  eval $cacheid=no
10398fi
10399rm -f core conftest.err conftest.$ac_objext \
10400    conftest$ac_exeext conftest.$ac_ext
10401fi
10402
10403
10404		CFLAGS="$xorg_testset_save_CFLAGS"
10405
10406		eval supported=\$$cacheid
10407		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10408$as_echo "$supported" >&6; }
10409		if test "$supported" = "yes" ; then
10410			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10411			found="yes"
10412		fi
10413	fi
10414
10415
10416
10417if test "x$STRICT_COMPILE" = "xyes"; then
10418    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10419    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10420fi
10421
10422
10423
10424
10425
10426
10427cat >>confdefs.h <<_ACEOF
10428#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10429_ACEOF
10430
10431	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10432	if test "x$PVM" = "x"; then
10433		PVM="0"
10434	fi
10435
10436cat >>confdefs.h <<_ACEOF
10437#define PACKAGE_VERSION_MINOR $PVM
10438_ACEOF
10439
10440	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10441	if test "x$PVP" = "x"; then
10442		PVP="0"
10443	fi
10444
10445cat >>confdefs.h <<_ACEOF
10446#define PACKAGE_VERSION_PATCHLEVEL $PVP
10447_ACEOF
10448
10449
10450
10451CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10452mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10453|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10454echo 'git directory not found: installing possibly empty changelog.' >&2)"
10455
10456
10457
10458
10459macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10460INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10461mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10462|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10463echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10464
10465
10466
10467
10468
10469
10470if test x$APP_MAN_SUFFIX = x    ; then
10471    APP_MAN_SUFFIX=1
10472fi
10473if test x$APP_MAN_DIR = x    ; then
10474    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10475fi
10476
10477if test x$LIB_MAN_SUFFIX = x    ; then
10478    LIB_MAN_SUFFIX=3
10479fi
10480if test x$LIB_MAN_DIR = x    ; then
10481    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10482fi
10483
10484if test x$FILE_MAN_SUFFIX = x    ; then
10485    case $host_os in
10486	solaris*)	FILE_MAN_SUFFIX=4  ;;
10487	*)		FILE_MAN_SUFFIX=5  ;;
10488    esac
10489fi
10490if test x$FILE_MAN_DIR = x    ; then
10491    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10492fi
10493
10494if test x$MISC_MAN_SUFFIX = x    ; then
10495    case $host_os in
10496	solaris*)	MISC_MAN_SUFFIX=5  ;;
10497	*)		MISC_MAN_SUFFIX=7  ;;
10498    esac
10499fi
10500if test x$MISC_MAN_DIR = x    ; then
10501    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10502fi
10503
10504if test x$DRIVER_MAN_SUFFIX = x    ; then
10505    case $host_os in
10506	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10507	*)		DRIVER_MAN_SUFFIX=4  ;;
10508    esac
10509fi
10510if test x$DRIVER_MAN_DIR = x    ; then
10511    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10512fi
10513
10514if test x$ADMIN_MAN_SUFFIX = x    ; then
10515    case $host_os in
10516	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10517	*)		ADMIN_MAN_SUFFIX=8  ;;
10518    esac
10519fi
10520if test x$ADMIN_MAN_DIR = x    ; then
10521    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10522fi
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538XORG_MAN_PAGE="X Version 11"
10539
10540MAN_SUBSTS="\
10541	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10542	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10543	-e 's|__xservername__|Xorg|g' \
10544	-e 's|__xconfigfile__|xorg.conf|g' \
10545	-e 's|__projectroot__|\$(prefix)|g' \
10546	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10547	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10548	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10549	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10550	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10551	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10552	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10553
10554
10555
10556# Check whether --enable-silent-rules was given.
10557if test "${enable_silent_rules+set}" = set; then :
10558  enableval=$enable_silent_rules;
10559fi
10560
10561case $enable_silent_rules in
10562yes) AM_DEFAULT_VERBOSITY=0;;
10563no)  AM_DEFAULT_VERBOSITY=1;;
10564*)   AM_DEFAULT_VERBOSITY=0;;
10565esac
10566AM_BACKSLASH='\'
10567
10568
10569
10570for ac_func in strcasecmp
10571do :
10572  ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
10573if test "x$ac_cv_func_strcasecmp" = xyes; then :
10574  cat >>confdefs.h <<_ACEOF
10575#define HAVE_STRCASECMP 1
10576_ACEOF
10577
10578fi
10579done
10580
10581
10582# xkbvleds checks
10583
10584pkg_failed=no
10585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XKBVLEDS" >&5
10586$as_echo_n "checking for XKBVLEDS... " >&6; }
10587
10588if test -n "$XKBVLEDS_CFLAGS"; then
10589    pkg_cv_XKBVLEDS_CFLAGS="$XKBVLEDS_CFLAGS"
10590 elif test -n "$PKG_CONFIG"; then
10591    if test -n "$PKG_CONFIG" && \
10592    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xaw7 xt x11\""; } >&5
10593  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xaw7 xt x11") 2>&5
10594  ac_status=$?
10595  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10596  test $ac_status = 0; }; then
10597  pkg_cv_XKBVLEDS_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17 xaw7 xt x11" 2>/dev/null`
10598else
10599  pkg_failed=yes
10600fi
10601 else
10602    pkg_failed=untried
10603fi
10604if test -n "$XKBVLEDS_LIBS"; then
10605    pkg_cv_XKBVLEDS_LIBS="$XKBVLEDS_LIBS"
10606 elif test -n "$PKG_CONFIG"; then
10607    if test -n "$PKG_CONFIG" && \
10608    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xaw7 xt x11\""; } >&5
10609  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xaw7 xt x11") 2>&5
10610  ac_status=$?
10611  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10612  test $ac_status = 0; }; then
10613  pkg_cv_XKBVLEDS_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17 xaw7 xt x11" 2>/dev/null`
10614else
10615  pkg_failed=yes
10616fi
10617 else
10618    pkg_failed=untried
10619fi
10620
10621
10622
10623if test $pkg_failed = yes; then
10624
10625if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10626        _pkg_short_errors_supported=yes
10627else
10628        _pkg_short_errors_supported=no
10629fi
10630        if test $_pkg_short_errors_supported = yes; then
10631	        XKBVLEDS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto >= 7.0.17 xaw7 xt x11" 2>&1`
10632        else
10633	        XKBVLEDS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto >= 7.0.17 xaw7 xt x11" 2>&1`
10634        fi
10635	# Put the nasty error message in config.log where it belongs
10636	echo "$XKBVLEDS_PKG_ERRORS" >&5
10637
10638	as_fn_error $? "Package requirements (xproto >= 7.0.17 xaw7 xt x11) were not met:
10639
10640$XKBVLEDS_PKG_ERRORS
10641
10642Consider adjusting the PKG_CONFIG_PATH environment variable if you
10643installed software in a non-standard prefix.
10644
10645Alternatively, you may set the environment variables XKBVLEDS_CFLAGS
10646and XKBVLEDS_LIBS to avoid the need to call pkg-config.
10647See the pkg-config man page for more details.
10648" "$LINENO" 5
10649elif test $pkg_failed = untried; then
10650	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10651$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10652as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10653is in your PATH or set the PKG_CONFIG environment variable to the full
10654path to pkg-config.
10655
10656Alternatively, you may set the environment variables XKBVLEDS_CFLAGS
10657and XKBVLEDS_LIBS to avoid the need to call pkg-config.
10658See the pkg-config man page for more details.
10659
10660To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10661See \`config.log' for more details" "$LINENO" 5; }
10662else
10663	XKBVLEDS_CFLAGS=$pkg_cv_XKBVLEDS_CFLAGS
10664	XKBVLEDS_LIBS=$pkg_cv_XKBVLEDS_LIBS
10665        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10666$as_echo "yes" >&6; }
10667	:
10668fi
10669
10670# xkbbell checks
10671
10672pkg_failed=no
10673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XKBBELL" >&5
10674$as_echo_n "checking for XKBBELL... " >&6; }
10675
10676if test -n "$XKBBELL_CFLAGS"; then
10677    pkg_cv_XKBBELL_CFLAGS="$XKBBELL_CFLAGS"
10678 elif test -n "$PKG_CONFIG"; then
10679    if test -n "$PKG_CONFIG" && \
10680    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto inputproto x11\""; } >&5
10681  ($PKG_CONFIG --exists --print-errors "xproto inputproto x11") 2>&5
10682  ac_status=$?
10683  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10684  test $ac_status = 0; }; then
10685  pkg_cv_XKBBELL_CFLAGS=`$PKG_CONFIG --cflags "xproto inputproto x11" 2>/dev/null`
10686else
10687  pkg_failed=yes
10688fi
10689 else
10690    pkg_failed=untried
10691fi
10692if test -n "$XKBBELL_LIBS"; then
10693    pkg_cv_XKBBELL_LIBS="$XKBBELL_LIBS"
10694 elif test -n "$PKG_CONFIG"; then
10695    if test -n "$PKG_CONFIG" && \
10696    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto inputproto x11\""; } >&5
10697  ($PKG_CONFIG --exists --print-errors "xproto inputproto x11") 2>&5
10698  ac_status=$?
10699  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10700  test $ac_status = 0; }; then
10701  pkg_cv_XKBBELL_LIBS=`$PKG_CONFIG --libs "xproto inputproto x11" 2>/dev/null`
10702else
10703  pkg_failed=yes
10704fi
10705 else
10706    pkg_failed=untried
10707fi
10708
10709
10710
10711if test $pkg_failed = yes; then
10712
10713if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10714        _pkg_short_errors_supported=yes
10715else
10716        _pkg_short_errors_supported=no
10717fi
10718        if test $_pkg_short_errors_supported = yes; then
10719	        XKBBELL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto inputproto x11" 2>&1`
10720        else
10721	        XKBBELL_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto inputproto x11" 2>&1`
10722        fi
10723	# Put the nasty error message in config.log where it belongs
10724	echo "$XKBBELL_PKG_ERRORS" >&5
10725
10726	as_fn_error $? "Package requirements (xproto inputproto x11) were not met:
10727
10728$XKBBELL_PKG_ERRORS
10729
10730Consider adjusting the PKG_CONFIG_PATH environment variable if you
10731installed software in a non-standard prefix.
10732
10733Alternatively, you may set the environment variables XKBBELL_CFLAGS
10734and XKBBELL_LIBS to avoid the need to call pkg-config.
10735See the pkg-config man page for more details.
10736" "$LINENO" 5
10737elif test $pkg_failed = untried; then
10738	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10739$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10740as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10741is in your PATH or set the PKG_CONFIG environment variable to the full
10742path to pkg-config.
10743
10744Alternatively, you may set the environment variables XKBBELL_CFLAGS
10745and XKBBELL_LIBS to avoid the need to call pkg-config.
10746See the pkg-config man page for more details.
10747
10748To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10749See \`config.log' for more details" "$LINENO" 5; }
10750else
10751	XKBBELL_CFLAGS=$pkg_cv_XKBBELL_CFLAGS
10752	XKBBELL_LIBS=$pkg_cv_XKBBELL_LIBS
10753        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10754$as_echo "yes" >&6; }
10755	:
10756fi
10757
10758# xkbwatch checks
10759
10760pkg_failed=no
10761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XKBWATCH" >&5
10762$as_echo_n "checking for XKBWATCH... " >&6; }
10763
10764if test -n "$XKBWATCH_CFLAGS"; then
10765    pkg_cv_XKBWATCH_CFLAGS="$XKBWATCH_CFLAGS"
10766 elif test -n "$PKG_CONFIG"; then
10767    if test -n "$PKG_CONFIG" && \
10768    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xaw7 xt x11\""; } >&5
10769  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xaw7 xt x11") 2>&5
10770  ac_status=$?
10771  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10772  test $ac_status = 0; }; then
10773  pkg_cv_XKBWATCH_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17 xaw7 xt x11" 2>/dev/null`
10774else
10775  pkg_failed=yes
10776fi
10777 else
10778    pkg_failed=untried
10779fi
10780if test -n "$XKBWATCH_LIBS"; then
10781    pkg_cv_XKBWATCH_LIBS="$XKBWATCH_LIBS"
10782 elif test -n "$PKG_CONFIG"; then
10783    if test -n "$PKG_CONFIG" && \
10784    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xaw7 xt x11\""; } >&5
10785  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xaw7 xt x11") 2>&5
10786  ac_status=$?
10787  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10788  test $ac_status = 0; }; then
10789  pkg_cv_XKBWATCH_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17 xaw7 xt x11" 2>/dev/null`
10790else
10791  pkg_failed=yes
10792fi
10793 else
10794    pkg_failed=untried
10795fi
10796
10797
10798
10799if test $pkg_failed = yes; then
10800
10801if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10802        _pkg_short_errors_supported=yes
10803else
10804        _pkg_short_errors_supported=no
10805fi
10806        if test $_pkg_short_errors_supported = yes; then
10807	        XKBWATCH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto >= 7.0.17 xaw7 xt x11" 2>&1`
10808        else
10809	        XKBWATCH_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto >= 7.0.17 xaw7 xt x11" 2>&1`
10810        fi
10811	# Put the nasty error message in config.log where it belongs
10812	echo "$XKBWATCH_PKG_ERRORS" >&5
10813
10814	as_fn_error $? "Package requirements (xproto >= 7.0.17 xaw7 xt x11) were not met:
10815
10816$XKBWATCH_PKG_ERRORS
10817
10818Consider adjusting the PKG_CONFIG_PATH environment variable if you
10819installed software in a non-standard prefix.
10820
10821Alternatively, you may set the environment variables XKBWATCH_CFLAGS
10822and XKBWATCH_LIBS to avoid the need to call pkg-config.
10823See the pkg-config man page for more details.
10824" "$LINENO" 5
10825elif test $pkg_failed = untried; then
10826	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10827$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10828as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10829is in your PATH or set the PKG_CONFIG environment variable to the full
10830path to pkg-config.
10831
10832Alternatively, you may set the environment variables XKBWATCH_CFLAGS
10833and XKBWATCH_LIBS to avoid the need to call pkg-config.
10834See the pkg-config man page for more details.
10835
10836To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10837See \`config.log' for more details" "$LINENO" 5; }
10838else
10839	XKBWATCH_CFLAGS=$pkg_cv_XKBWATCH_CFLAGS
10840	XKBWATCH_LIBS=$pkg_cv_XKBWATCH_LIBS
10841        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10842$as_echo "yes" >&6; }
10843	:
10844fi
10845
10846ac_config_files="$ac_config_files Makefile man/Makefile"
10847
10848cat >confcache <<\_ACEOF
10849# This file is a shell script that caches the results of configure
10850# tests run on this system so they can be shared between configure
10851# scripts and configure runs, see configure's option --config-cache.
10852# It is not useful on other systems.  If it contains results you don't
10853# want to keep, you may remove or edit it.
10854#
10855# config.status only pays attention to the cache file if you give it
10856# the --recheck option to rerun configure.
10857#
10858# `ac_cv_env_foo' variables (set or unset) will be overridden when
10859# loading this file, other *unset* `ac_cv_foo' will be assigned the
10860# following values.
10861
10862_ACEOF
10863
10864# The following way of writing the cache mishandles newlines in values,
10865# but we know of no workaround that is simple, portable, and efficient.
10866# So, we kill variables containing newlines.
10867# Ultrix sh set writes to stderr and can't be redirected directly,
10868# and sets the high bit in the cache file unless we assign to the vars.
10869(
10870  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10871    eval ac_val=\$$ac_var
10872    case $ac_val in #(
10873    *${as_nl}*)
10874      case $ac_var in #(
10875      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10876$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10877      esac
10878      case $ac_var in #(
10879      _ | IFS | as_nl) ;; #(
10880      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10881      *) { eval $ac_var=; unset $ac_var;} ;;
10882      esac ;;
10883    esac
10884  done
10885
10886  (set) 2>&1 |
10887    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10888    *${as_nl}ac_space=\ *)
10889      # `set' does not quote correctly, so add quotes: double-quote
10890      # substitution turns \\\\ into \\, and sed turns \\ into \.
10891      sed -n \
10892	"s/'/'\\\\''/g;
10893	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10894      ;; #(
10895    *)
10896      # `set' quotes correctly as required by POSIX, so do not add quotes.
10897      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10898      ;;
10899    esac |
10900    sort
10901) |
10902  sed '
10903     /^ac_cv_env_/b end
10904     t clear
10905     :clear
10906     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10907     t end
10908     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10909     :end' >>confcache
10910if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10911  if test -w "$cache_file"; then
10912    if test "x$cache_file" != "x/dev/null"; then
10913      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10914$as_echo "$as_me: updating cache $cache_file" >&6;}
10915      if test ! -f "$cache_file" || test -h "$cache_file"; then
10916	cat confcache >"$cache_file"
10917      else
10918        case $cache_file in #(
10919        */* | ?:*)
10920	  mv -f confcache "$cache_file"$$ &&
10921	  mv -f "$cache_file"$$ "$cache_file" ;; #(
10922        *)
10923	  mv -f confcache "$cache_file" ;;
10924	esac
10925      fi
10926    fi
10927  else
10928    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10929$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10930  fi
10931fi
10932rm -f confcache
10933
10934test "x$prefix" = xNONE && prefix=$ac_default_prefix
10935# Let make expand exec_prefix.
10936test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10937
10938DEFS=-DHAVE_CONFIG_H
10939
10940ac_libobjs=
10941ac_ltlibobjs=
10942U=
10943for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10944  # 1. Remove the extension, and $U if already installed.
10945  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10946  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10947  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10948  #    will be set to the directory where LIBOBJS objects are built.
10949  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10950  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10951done
10952LIBOBJS=$ac_libobjs
10953
10954LTLIBOBJS=$ac_ltlibobjs
10955
10956
10957 if test -n "$EXEEXT"; then
10958  am__EXEEXT_TRUE=
10959  am__EXEEXT_FALSE='#'
10960else
10961  am__EXEEXT_TRUE='#'
10962  am__EXEEXT_FALSE=
10963fi
10964
10965if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10966  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10967Usually this means the macro was only invoked conditionally." "$LINENO" 5
10968fi
10969if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10970  as_fn_error $? "conditional \"AMDEP\" was never defined.
10971Usually this means the macro was only invoked conditionally." "$LINENO" 5
10972fi
10973if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10974  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10975Usually this means the macro was only invoked conditionally." "$LINENO" 5
10976fi
10977
10978: "${CONFIG_STATUS=./config.status}"
10979ac_write_fail=0
10980ac_clean_files_save=$ac_clean_files
10981ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10982{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10983$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10984as_write_fail=0
10985cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10986#! $SHELL
10987# Generated by $as_me.
10988# Run this file to recreate the current configuration.
10989# Compiler output produced by configure, useful for debugging
10990# configure, is in config.log if it exists.
10991
10992debug=false
10993ac_cs_recheck=false
10994ac_cs_silent=false
10995
10996SHELL=\${CONFIG_SHELL-$SHELL}
10997export SHELL
10998_ASEOF
10999cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11000## -------------------- ##
11001## M4sh Initialization. ##
11002## -------------------- ##
11003
11004# Be more Bourne compatible
11005DUALCASE=1; export DUALCASE # for MKS sh
11006if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11007  emulate sh
11008  NULLCMD=:
11009  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11010  # is contrary to our usage.  Disable this feature.
11011  alias -g '${1+"$@"}'='"$@"'
11012  setopt NO_GLOB_SUBST
11013else
11014  case `(set -o) 2>/dev/null` in #(
11015  *posix*) :
11016    set -o posix ;; #(
11017  *) :
11018     ;;
11019esac
11020fi
11021
11022
11023as_nl='
11024'
11025export as_nl
11026# Printing a long string crashes Solaris 7 /usr/bin/printf.
11027as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11028as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11029as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11030# Prefer a ksh shell builtin over an external printf program on Solaris,
11031# but without wasting forks for bash or zsh.
11032if test -z "$BASH_VERSION$ZSH_VERSION" \
11033    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11034  as_echo='print -r --'
11035  as_echo_n='print -rn --'
11036elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11037  as_echo='printf %s\n'
11038  as_echo_n='printf %s'
11039else
11040  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11041    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11042    as_echo_n='/usr/ucb/echo -n'
11043  else
11044    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11045    as_echo_n_body='eval
11046      arg=$1;
11047      case $arg in #(
11048      *"$as_nl"*)
11049	expr "X$arg" : "X\\(.*\\)$as_nl";
11050	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11051      esac;
11052      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11053    '
11054    export as_echo_n_body
11055    as_echo_n='sh -c $as_echo_n_body as_echo'
11056  fi
11057  export as_echo_body
11058  as_echo='sh -c $as_echo_body as_echo'
11059fi
11060
11061# The user is always right.
11062if test "${PATH_SEPARATOR+set}" != set; then
11063  PATH_SEPARATOR=:
11064  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11065    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11066      PATH_SEPARATOR=';'
11067  }
11068fi
11069
11070
11071# IFS
11072# We need space, tab and new line, in precisely that order.  Quoting is
11073# there to prevent editors from complaining about space-tab.
11074# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11075# splitting by setting IFS to empty value.)
11076IFS=" ""	$as_nl"
11077
11078# Find who we are.  Look in the path if we contain no directory separator.
11079as_myself=
11080case $0 in #((
11081  *[\\/]* ) as_myself=$0 ;;
11082  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11083for as_dir in $PATH
11084do
11085  IFS=$as_save_IFS
11086  test -z "$as_dir" && as_dir=.
11087    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11088  done
11089IFS=$as_save_IFS
11090
11091     ;;
11092esac
11093# We did not find ourselves, most probably we were run as `sh COMMAND'
11094# in which case we are not to be found in the path.
11095if test "x$as_myself" = x; then
11096  as_myself=$0
11097fi
11098if test ! -f "$as_myself"; then
11099  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11100  exit 1
11101fi
11102
11103# Unset variables that we do not need and which cause bugs (e.g. in
11104# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11105# suppresses any "Segmentation fault" message there.  '((' could
11106# trigger a bug in pdksh 5.2.14.
11107for as_var in BASH_ENV ENV MAIL MAILPATH
11108do eval test x\${$as_var+set} = xset \
11109  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11110done
11111PS1='$ '
11112PS2='> '
11113PS4='+ '
11114
11115# NLS nuisances.
11116LC_ALL=C
11117export LC_ALL
11118LANGUAGE=C
11119export LANGUAGE
11120
11121# CDPATH.
11122(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11123
11124
11125# as_fn_error STATUS ERROR [LINENO LOG_FD]
11126# ----------------------------------------
11127# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11128# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11129# script with STATUS, using 1 if that was 0.
11130as_fn_error ()
11131{
11132  as_status=$1; test $as_status -eq 0 && as_status=1
11133  if test "$4"; then
11134    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11135    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11136  fi
11137  $as_echo "$as_me: error: $2" >&2
11138  as_fn_exit $as_status
11139} # as_fn_error
11140
11141
11142# as_fn_set_status STATUS
11143# -----------------------
11144# Set $? to STATUS, without forking.
11145as_fn_set_status ()
11146{
11147  return $1
11148} # as_fn_set_status
11149
11150# as_fn_exit STATUS
11151# -----------------
11152# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11153as_fn_exit ()
11154{
11155  set +e
11156  as_fn_set_status $1
11157  exit $1
11158} # as_fn_exit
11159
11160# as_fn_unset VAR
11161# ---------------
11162# Portably unset VAR.
11163as_fn_unset ()
11164{
11165  { eval $1=; unset $1;}
11166}
11167as_unset=as_fn_unset
11168# as_fn_append VAR VALUE
11169# ----------------------
11170# Append the text in VALUE to the end of the definition contained in VAR. Take
11171# advantage of any shell optimizations that allow amortized linear growth over
11172# repeated appends, instead of the typical quadratic growth present in naive
11173# implementations.
11174if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11175  eval 'as_fn_append ()
11176  {
11177    eval $1+=\$2
11178  }'
11179else
11180  as_fn_append ()
11181  {
11182    eval $1=\$$1\$2
11183  }
11184fi # as_fn_append
11185
11186# as_fn_arith ARG...
11187# ------------------
11188# Perform arithmetic evaluation on the ARGs, and store the result in the
11189# global $as_val. Take advantage of shells that can avoid forks. The arguments
11190# must be portable across $(()) and expr.
11191if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11192  eval 'as_fn_arith ()
11193  {
11194    as_val=$(( $* ))
11195  }'
11196else
11197  as_fn_arith ()
11198  {
11199    as_val=`expr "$@" || test $? -eq 1`
11200  }
11201fi # as_fn_arith
11202
11203
11204if expr a : '\(a\)' >/dev/null 2>&1 &&
11205   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11206  as_expr=expr
11207else
11208  as_expr=false
11209fi
11210
11211if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11212  as_basename=basename
11213else
11214  as_basename=false
11215fi
11216
11217if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11218  as_dirname=dirname
11219else
11220  as_dirname=false
11221fi
11222
11223as_me=`$as_basename -- "$0" ||
11224$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11225	 X"$0" : 'X\(//\)$' \| \
11226	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11227$as_echo X/"$0" |
11228    sed '/^.*\/\([^/][^/]*\)\/*$/{
11229	    s//\1/
11230	    q
11231	  }
11232	  /^X\/\(\/\/\)$/{
11233	    s//\1/
11234	    q
11235	  }
11236	  /^X\/\(\/\).*/{
11237	    s//\1/
11238	    q
11239	  }
11240	  s/.*/./; q'`
11241
11242# Avoid depending upon Character Ranges.
11243as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11244as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11245as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11246as_cr_digits='0123456789'
11247as_cr_alnum=$as_cr_Letters$as_cr_digits
11248
11249ECHO_C= ECHO_N= ECHO_T=
11250case `echo -n x` in #(((((
11251-n*)
11252  case `echo 'xy\c'` in
11253  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11254  xy)  ECHO_C='\c';;
11255  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11256       ECHO_T='	';;
11257  esac;;
11258*)
11259  ECHO_N='-n';;
11260esac
11261
11262rm -f conf$$ conf$$.exe conf$$.file
11263if test -d conf$$.dir; then
11264  rm -f conf$$.dir/conf$$.file
11265else
11266  rm -f conf$$.dir
11267  mkdir conf$$.dir 2>/dev/null
11268fi
11269if (echo >conf$$.file) 2>/dev/null; then
11270  if ln -s conf$$.file conf$$ 2>/dev/null; then
11271    as_ln_s='ln -s'
11272    # ... but there are two gotchas:
11273    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11274    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11275    # In both cases, we have to default to `cp -p'.
11276    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11277      as_ln_s='cp -p'
11278  elif ln conf$$.file conf$$ 2>/dev/null; then
11279    as_ln_s=ln
11280  else
11281    as_ln_s='cp -p'
11282  fi
11283else
11284  as_ln_s='cp -p'
11285fi
11286rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11287rmdir conf$$.dir 2>/dev/null
11288
11289
11290# as_fn_mkdir_p
11291# -------------
11292# Create "$as_dir" as a directory, including parents if necessary.
11293as_fn_mkdir_p ()
11294{
11295
11296  case $as_dir in #(
11297  -*) as_dir=./$as_dir;;
11298  esac
11299  test -d "$as_dir" || eval $as_mkdir_p || {
11300    as_dirs=
11301    while :; do
11302      case $as_dir in #(
11303      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11304      *) as_qdir=$as_dir;;
11305      esac
11306      as_dirs="'$as_qdir' $as_dirs"
11307      as_dir=`$as_dirname -- "$as_dir" ||
11308$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11309	 X"$as_dir" : 'X\(//\)[^/]' \| \
11310	 X"$as_dir" : 'X\(//\)$' \| \
11311	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11312$as_echo X"$as_dir" |
11313    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11314	    s//\1/
11315	    q
11316	  }
11317	  /^X\(\/\/\)[^/].*/{
11318	    s//\1/
11319	    q
11320	  }
11321	  /^X\(\/\/\)$/{
11322	    s//\1/
11323	    q
11324	  }
11325	  /^X\(\/\).*/{
11326	    s//\1/
11327	    q
11328	  }
11329	  s/.*/./; q'`
11330      test -d "$as_dir" && break
11331    done
11332    test -z "$as_dirs" || eval "mkdir $as_dirs"
11333  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11334
11335
11336} # as_fn_mkdir_p
11337if mkdir -p . 2>/dev/null; then
11338  as_mkdir_p='mkdir -p "$as_dir"'
11339else
11340  test -d ./-p && rmdir ./-p
11341  as_mkdir_p=false
11342fi
11343
11344if test -x / >/dev/null 2>&1; then
11345  as_test_x='test -x'
11346else
11347  if ls -dL / >/dev/null 2>&1; then
11348    as_ls_L_option=L
11349  else
11350    as_ls_L_option=
11351  fi
11352  as_test_x='
11353    eval sh -c '\''
11354      if test -d "$1"; then
11355	test -d "$1/.";
11356      else
11357	case $1 in #(
11358	-*)set "./$1";;
11359	esac;
11360	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11361	???[sx]*):;;*)false;;esac;fi
11362    '\'' sh
11363  '
11364fi
11365as_executable_p=$as_test_x
11366
11367# Sed expression to map a string onto a valid CPP name.
11368as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11369
11370# Sed expression to map a string onto a valid variable name.
11371as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11372
11373
11374exec 6>&1
11375## ----------------------------------- ##
11376## Main body of $CONFIG_STATUS script. ##
11377## ----------------------------------- ##
11378_ASEOF
11379test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11380
11381cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11382# Save the log message, to keep $0 and so on meaningful, and to
11383# report actual input values of CONFIG_FILES etc. instead of their
11384# values after options handling.
11385ac_log="
11386This file was extended by xkbutils $as_me 1.0.4, which was
11387generated by GNU Autoconf 2.68.  Invocation command line was
11388
11389  CONFIG_FILES    = $CONFIG_FILES
11390  CONFIG_HEADERS  = $CONFIG_HEADERS
11391  CONFIG_LINKS    = $CONFIG_LINKS
11392  CONFIG_COMMANDS = $CONFIG_COMMANDS
11393  $ $0 $@
11394
11395on `(hostname || uname -n) 2>/dev/null | sed 1q`
11396"
11397
11398_ACEOF
11399
11400case $ac_config_files in *"
11401"*) set x $ac_config_files; shift; ac_config_files=$*;;
11402esac
11403
11404case $ac_config_headers in *"
11405"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11406esac
11407
11408
11409cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11410# Files that config.status was made for.
11411config_files="$ac_config_files"
11412config_headers="$ac_config_headers"
11413config_commands="$ac_config_commands"
11414
11415_ACEOF
11416
11417cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11418ac_cs_usage="\
11419\`$as_me' instantiates files and other configuration actions
11420from templates according to the current configuration.  Unless the files
11421and actions are specified as TAGs, all are instantiated by default.
11422
11423Usage: $0 [OPTION]... [TAG]...
11424
11425  -h, --help       print this help, then exit
11426  -V, --version    print version number and configuration settings, then exit
11427      --config     print configuration, then exit
11428  -q, --quiet, --silent
11429                   do not print progress messages
11430  -d, --debug      don't remove temporary files
11431      --recheck    update $as_me by reconfiguring in the same conditions
11432      --file=FILE[:TEMPLATE]
11433                   instantiate the configuration file FILE
11434      --header=FILE[:TEMPLATE]
11435                   instantiate the configuration header FILE
11436
11437Configuration files:
11438$config_files
11439
11440Configuration headers:
11441$config_headers
11442
11443Configuration commands:
11444$config_commands
11445
11446Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11447
11448_ACEOF
11449cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11450ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11451ac_cs_version="\\
11452xkbutils config.status 1.0.4
11453configured by $0, generated by GNU Autoconf 2.68,
11454  with options \\"\$ac_cs_config\\"
11455
11456Copyright (C) 2010 Free Software Foundation, Inc.
11457This config.status script is free software; the Free Software Foundation
11458gives unlimited permission to copy, distribute and modify it."
11459
11460ac_pwd='$ac_pwd'
11461srcdir='$srcdir'
11462INSTALL='$INSTALL'
11463MKDIR_P='$MKDIR_P'
11464AWK='$AWK'
11465test -n "\$AWK" || AWK=awk
11466_ACEOF
11467
11468cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11469# The default lists apply if the user does not specify any file.
11470ac_need_defaults=:
11471while test $# != 0
11472do
11473  case $1 in
11474  --*=?*)
11475    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11476    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11477    ac_shift=:
11478    ;;
11479  --*=)
11480    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11481    ac_optarg=
11482    ac_shift=:
11483    ;;
11484  *)
11485    ac_option=$1
11486    ac_optarg=$2
11487    ac_shift=shift
11488    ;;
11489  esac
11490
11491  case $ac_option in
11492  # Handling of the options.
11493  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11494    ac_cs_recheck=: ;;
11495  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11496    $as_echo "$ac_cs_version"; exit ;;
11497  --config | --confi | --conf | --con | --co | --c )
11498    $as_echo "$ac_cs_config"; exit ;;
11499  --debug | --debu | --deb | --de | --d | -d )
11500    debug=: ;;
11501  --file | --fil | --fi | --f )
11502    $ac_shift
11503    case $ac_optarg in
11504    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11505    '') as_fn_error $? "missing file argument" ;;
11506    esac
11507    as_fn_append CONFIG_FILES " '$ac_optarg'"
11508    ac_need_defaults=false;;
11509  --header | --heade | --head | --hea )
11510    $ac_shift
11511    case $ac_optarg in
11512    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11513    esac
11514    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11515    ac_need_defaults=false;;
11516  --he | --h)
11517    # Conflict between --help and --header
11518    as_fn_error $? "ambiguous option: \`$1'
11519Try \`$0 --help' for more information.";;
11520  --help | --hel | -h )
11521    $as_echo "$ac_cs_usage"; exit ;;
11522  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11523  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11524    ac_cs_silent=: ;;
11525
11526  # This is an error.
11527  -*) as_fn_error $? "unrecognized option: \`$1'
11528Try \`$0 --help' for more information." ;;
11529
11530  *) as_fn_append ac_config_targets " $1"
11531     ac_need_defaults=false ;;
11532
11533  esac
11534  shift
11535done
11536
11537ac_configure_extra_args=
11538
11539if $ac_cs_silent; then
11540  exec 6>/dev/null
11541  ac_configure_extra_args="$ac_configure_extra_args --silent"
11542fi
11543
11544_ACEOF
11545cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11546if \$ac_cs_recheck; then
11547  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11548  shift
11549  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11550  CONFIG_SHELL='$SHELL'
11551  export CONFIG_SHELL
11552  exec "\$@"
11553fi
11554
11555_ACEOF
11556cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11557exec 5>>config.log
11558{
11559  echo
11560  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11561## Running $as_me. ##
11562_ASBOX
11563  $as_echo "$ac_log"
11564} >&5
11565
11566_ACEOF
11567cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11568#
11569# INIT-COMMANDS
11570#
11571AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11572
11573_ACEOF
11574
11575cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11576
11577# Handling of arguments.
11578for ac_config_target in $ac_config_targets
11579do
11580  case $ac_config_target in
11581    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11582    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11583    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11584    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11585
11586  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11587  esac
11588done
11589
11590
11591# If the user did not use the arguments to specify the items to instantiate,
11592# then the envvar interface is used.  Set only those that are not.
11593# We use the long form for the default assignment because of an extremely
11594# bizarre bug on SunOS 4.1.3.
11595if $ac_need_defaults; then
11596  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11597  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11598  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11599fi
11600
11601# Have a temporary directory for convenience.  Make it in the build tree
11602# simply because there is no reason against having it here, and in addition,
11603# creating and moving files from /tmp can sometimes cause problems.
11604# Hook for its removal unless debugging.
11605# Note that there is a small window in which the directory will not be cleaned:
11606# after its creation but before its name has been assigned to `$tmp'.
11607$debug ||
11608{
11609  tmp= ac_tmp=
11610  trap 'exit_status=$?
11611  : "${ac_tmp:=$tmp}"
11612  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11613' 0
11614  trap 'as_fn_exit 1' 1 2 13 15
11615}
11616# Create a (secure) tmp directory for tmp files.
11617
11618{
11619  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11620  test -d "$tmp"
11621}  ||
11622{
11623  tmp=./conf$$-$RANDOM
11624  (umask 077 && mkdir "$tmp")
11625} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11626ac_tmp=$tmp
11627
11628# Set up the scripts for CONFIG_FILES section.
11629# No need to generate them if there are no CONFIG_FILES.
11630# This happens for instance with `./config.status config.h'.
11631if test -n "$CONFIG_FILES"; then
11632
11633
11634ac_cr=`echo X | tr X '\015'`
11635# On cygwin, bash can eat \r inside `` if the user requested igncr.
11636# But we know of no other shell where ac_cr would be empty at this
11637# point, so we can use a bashism as a fallback.
11638if test "x$ac_cr" = x; then
11639  eval ac_cr=\$\'\\r\'
11640fi
11641ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11642if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11643  ac_cs_awk_cr='\\r'
11644else
11645  ac_cs_awk_cr=$ac_cr
11646fi
11647
11648echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11649_ACEOF
11650
11651
11652{
11653  echo "cat >conf$$subs.awk <<_ACEOF" &&
11654  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11655  echo "_ACEOF"
11656} >conf$$subs.sh ||
11657  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11658ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11659ac_delim='%!_!# '
11660for ac_last_try in false false false false false :; do
11661  . ./conf$$subs.sh ||
11662    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11663
11664  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11665  if test $ac_delim_n = $ac_delim_num; then
11666    break
11667  elif $ac_last_try; then
11668    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11669  else
11670    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11671  fi
11672done
11673rm -f conf$$subs.sh
11674
11675cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11676cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11677_ACEOF
11678sed -n '
11679h
11680s/^/S["/; s/!.*/"]=/
11681p
11682g
11683s/^[^!]*!//
11684:repl
11685t repl
11686s/'"$ac_delim"'$//
11687t delim
11688:nl
11689h
11690s/\(.\{148\}\)..*/\1/
11691t more1
11692s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11693p
11694n
11695b repl
11696:more1
11697s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11698p
11699g
11700s/.\{148\}//
11701t nl
11702:delim
11703h
11704s/\(.\{148\}\)..*/\1/
11705t more2
11706s/["\\]/\\&/g; s/^/"/; s/$/"/
11707p
11708b
11709:more2
11710s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11711p
11712g
11713s/.\{148\}//
11714t delim
11715' <conf$$subs.awk | sed '
11716/^[^""]/{
11717  N
11718  s/\n//
11719}
11720' >>$CONFIG_STATUS || ac_write_fail=1
11721rm -f conf$$subs.awk
11722cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11723_ACAWK
11724cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11725  for (key in S) S_is_set[key] = 1
11726  FS = ""
11727
11728}
11729{
11730  line = $ 0
11731  nfields = split(line, field, "@")
11732  substed = 0
11733  len = length(field[1])
11734  for (i = 2; i < nfields; i++) {
11735    key = field[i]
11736    keylen = length(key)
11737    if (S_is_set[key]) {
11738      value = S[key]
11739      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11740      len += length(value) + length(field[++i])
11741      substed = 1
11742    } else
11743      len += 1 + keylen
11744  }
11745
11746  print line
11747}
11748
11749_ACAWK
11750_ACEOF
11751cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11752if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11753  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11754else
11755  cat
11756fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11757  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11758_ACEOF
11759
11760# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11761# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11762# trailing colons and then remove the whole line if VPATH becomes empty
11763# (actually we leave an empty line to preserve line numbers).
11764if test "x$srcdir" = x.; then
11765  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
11766h
11767s///
11768s/^/:/
11769s/[	 ]*$/:/
11770s/:\$(srcdir):/:/g
11771s/:\${srcdir}:/:/g
11772s/:@srcdir@:/:/g
11773s/^:*//
11774s/:*$//
11775x
11776s/\(=[	 ]*\).*/\1/
11777G
11778s/\n//
11779s/^[^=]*=[	 ]*$//
11780}'
11781fi
11782
11783cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11784fi # test -n "$CONFIG_FILES"
11785
11786# Set up the scripts for CONFIG_HEADERS section.
11787# No need to generate them if there are no CONFIG_HEADERS.
11788# This happens for instance with `./config.status Makefile'.
11789if test -n "$CONFIG_HEADERS"; then
11790cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11791BEGIN {
11792_ACEOF
11793
11794# Transform confdefs.h into an awk script `defines.awk', embedded as
11795# here-document in config.status, that substitutes the proper values into
11796# config.h.in to produce config.h.
11797
11798# Create a delimiter string that does not exist in confdefs.h, to ease
11799# handling of long lines.
11800ac_delim='%!_!# '
11801for ac_last_try in false false :; do
11802  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11803  if test -z "$ac_tt"; then
11804    break
11805  elif $ac_last_try; then
11806    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11807  else
11808    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11809  fi
11810done
11811
11812# For the awk script, D is an array of macro values keyed by name,
11813# likewise P contains macro parameters if any.  Preserve backslash
11814# newline sequences.
11815
11816ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11817sed -n '
11818s/.\{148\}/&'"$ac_delim"'/g
11819t rset
11820:rset
11821s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
11822t def
11823d
11824:def
11825s/\\$//
11826t bsnl
11827s/["\\]/\\&/g
11828s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11829D["\1"]=" \3"/p
11830s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
11831d
11832:bsnl
11833s/["\\]/\\&/g
11834s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11835D["\1"]=" \3\\\\\\n"\\/p
11836t cont
11837s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11838t cont
11839d
11840:cont
11841n
11842s/.\{148\}/&'"$ac_delim"'/g
11843t clear
11844:clear
11845s/\\$//
11846t bsnlc
11847s/["\\]/\\&/g; s/^/"/; s/$/"/p
11848d
11849:bsnlc
11850s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11851b cont
11852' <confdefs.h | sed '
11853s/'"$ac_delim"'/"\\\
11854"/g' >>$CONFIG_STATUS || ac_write_fail=1
11855
11856cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11857  for (key in D) D_is_set[key] = 1
11858  FS = ""
11859}
11860/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11861  line = \$ 0
11862  split(line, arg, " ")
11863  if (arg[1] == "#") {
11864    defundef = arg[2]
11865    mac1 = arg[3]
11866  } else {
11867    defundef = substr(arg[1], 2)
11868    mac1 = arg[2]
11869  }
11870  split(mac1, mac2, "(") #)
11871  macro = mac2[1]
11872  prefix = substr(line, 1, index(line, defundef) - 1)
11873  if (D_is_set[macro]) {
11874    # Preserve the white space surrounding the "#".
11875    print prefix "define", macro P[macro] D[macro]
11876    next
11877  } else {
11878    # Replace #undef with comments.  This is necessary, for example,
11879    # in the case of _POSIX_SOURCE, which is predefined and required
11880    # on some systems where configure will not decide to define it.
11881    if (defundef == "undef") {
11882      print "/*", prefix defundef, macro, "*/"
11883      next
11884    }
11885  }
11886}
11887{ print }
11888_ACAWK
11889_ACEOF
11890cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11891  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11892fi # test -n "$CONFIG_HEADERS"
11893
11894
11895eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
11896shift
11897for ac_tag
11898do
11899  case $ac_tag in
11900  :[FHLC]) ac_mode=$ac_tag; continue;;
11901  esac
11902  case $ac_mode$ac_tag in
11903  :[FHL]*:*);;
11904  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11905  :[FH]-) ac_tag=-:-;;
11906  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11907  esac
11908  ac_save_IFS=$IFS
11909  IFS=:
11910  set x $ac_tag
11911  IFS=$ac_save_IFS
11912  shift
11913  ac_file=$1
11914  shift
11915
11916  case $ac_mode in
11917  :L) ac_source=$1;;
11918  :[FH])
11919    ac_file_inputs=
11920    for ac_f
11921    do
11922      case $ac_f in
11923      -) ac_f="$ac_tmp/stdin";;
11924      *) # Look for the file first in the build tree, then in the source tree
11925	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
11926	 # because $ac_f cannot contain `:'.
11927	 test -f "$ac_f" ||
11928	   case $ac_f in
11929	   [\\/$]*) false;;
11930	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11931	   esac ||
11932	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11933      esac
11934      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11935      as_fn_append ac_file_inputs " '$ac_f'"
11936    done
11937
11938    # Let's still pretend it is `configure' which instantiates (i.e., don't
11939    # use $as_me), people would be surprised to read:
11940    #    /* config.h.  Generated by config.status.  */
11941    configure_input='Generated from '`
11942	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11943	`' by configure.'
11944    if test x"$ac_file" != x-; then
11945      configure_input="$ac_file.  $configure_input"
11946      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11947$as_echo "$as_me: creating $ac_file" >&6;}
11948    fi
11949    # Neutralize special characters interpreted by sed in replacement strings.
11950    case $configure_input in #(
11951    *\&* | *\|* | *\\* )
11952       ac_sed_conf_input=`$as_echo "$configure_input" |
11953       sed 's/[\\\\&|]/\\\\&/g'`;; #(
11954    *) ac_sed_conf_input=$configure_input;;
11955    esac
11956
11957    case $ac_tag in
11958    *:-:* | *:-) cat >"$ac_tmp/stdin" \
11959      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11960    esac
11961    ;;
11962  esac
11963
11964  ac_dir=`$as_dirname -- "$ac_file" ||
11965$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11966	 X"$ac_file" : 'X\(//\)[^/]' \| \
11967	 X"$ac_file" : 'X\(//\)$' \| \
11968	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11969$as_echo X"$ac_file" |
11970    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11971	    s//\1/
11972	    q
11973	  }
11974	  /^X\(\/\/\)[^/].*/{
11975	    s//\1/
11976	    q
11977	  }
11978	  /^X\(\/\/\)$/{
11979	    s//\1/
11980	    q
11981	  }
11982	  /^X\(\/\).*/{
11983	    s//\1/
11984	    q
11985	  }
11986	  s/.*/./; q'`
11987  as_dir="$ac_dir"; as_fn_mkdir_p
11988  ac_builddir=.
11989
11990case "$ac_dir" in
11991.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11992*)
11993  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11994  # A ".." for each directory in $ac_dir_suffix.
11995  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11996  case $ac_top_builddir_sub in
11997  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11998  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11999  esac ;;
12000esac
12001ac_abs_top_builddir=$ac_pwd
12002ac_abs_builddir=$ac_pwd$ac_dir_suffix
12003# for backward compatibility:
12004ac_top_builddir=$ac_top_build_prefix
12005
12006case $srcdir in
12007  .)  # We are building in place.
12008    ac_srcdir=.
12009    ac_top_srcdir=$ac_top_builddir_sub
12010    ac_abs_top_srcdir=$ac_pwd ;;
12011  [\\/]* | ?:[\\/]* )  # Absolute name.
12012    ac_srcdir=$srcdir$ac_dir_suffix;
12013    ac_top_srcdir=$srcdir
12014    ac_abs_top_srcdir=$srcdir ;;
12015  *) # Relative name.
12016    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12017    ac_top_srcdir=$ac_top_build_prefix$srcdir
12018    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12019esac
12020ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12021
12022
12023  case $ac_mode in
12024  :F)
12025  #
12026  # CONFIG_FILE
12027  #
12028
12029  case $INSTALL in
12030  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12031  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12032  esac
12033  ac_MKDIR_P=$MKDIR_P
12034  case $MKDIR_P in
12035  [\\/$]* | ?:[\\/]* ) ;;
12036  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12037  esac
12038_ACEOF
12039
12040cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12041# If the template does not know about datarootdir, expand it.
12042# FIXME: This hack should be removed a few years after 2.60.
12043ac_datarootdir_hack=; ac_datarootdir_seen=
12044ac_sed_dataroot='
12045/datarootdir/ {
12046  p
12047  q
12048}
12049/@datadir@/p
12050/@docdir@/p
12051/@infodir@/p
12052/@localedir@/p
12053/@mandir@/p'
12054case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12055*datarootdir*) ac_datarootdir_seen=yes;;
12056*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12057  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12058$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12059_ACEOF
12060cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12061  ac_datarootdir_hack='
12062  s&@datadir@&$datadir&g
12063  s&@docdir@&$docdir&g
12064  s&@infodir@&$infodir&g
12065  s&@localedir@&$localedir&g
12066  s&@mandir@&$mandir&g
12067  s&\\\${datarootdir}&$datarootdir&g' ;;
12068esac
12069_ACEOF
12070
12071# Neutralize VPATH when `$srcdir' = `.'.
12072# Shell code in configure.ac might set extrasub.
12073# FIXME: do we really want to maintain this feature?
12074cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12075ac_sed_extra="$ac_vpsub
12076$extrasub
12077_ACEOF
12078cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12079:t
12080/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12081s|@configure_input@|$ac_sed_conf_input|;t t
12082s&@top_builddir@&$ac_top_builddir_sub&;t t
12083s&@top_build_prefix@&$ac_top_build_prefix&;t t
12084s&@srcdir@&$ac_srcdir&;t t
12085s&@abs_srcdir@&$ac_abs_srcdir&;t t
12086s&@top_srcdir@&$ac_top_srcdir&;t t
12087s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12088s&@builddir@&$ac_builddir&;t t
12089s&@abs_builddir@&$ac_abs_builddir&;t t
12090s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12091s&@INSTALL@&$ac_INSTALL&;t t
12092s&@MKDIR_P@&$ac_MKDIR_P&;t t
12093$ac_datarootdir_hack
12094"
12095eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12096  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12097
12098test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12099  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12100  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12101      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12102  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12103which seems to be undefined.  Please make sure it is defined" >&5
12104$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12105which seems to be undefined.  Please make sure it is defined" >&2;}
12106
12107  rm -f "$ac_tmp/stdin"
12108  case $ac_file in
12109  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12110  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12111  esac \
12112  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12113 ;;
12114  :H)
12115  #
12116  # CONFIG_HEADER
12117  #
12118  if test x"$ac_file" != x-; then
12119    {
12120      $as_echo "/* $configure_input  */" \
12121      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12122    } >"$ac_tmp/config.h" \
12123      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12124    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12125      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12126$as_echo "$as_me: $ac_file is unchanged" >&6;}
12127    else
12128      rm -f "$ac_file"
12129      mv "$ac_tmp/config.h" "$ac_file" \
12130	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12131    fi
12132  else
12133    $as_echo "/* $configure_input  */" \
12134      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12135      || as_fn_error $? "could not create -" "$LINENO" 5
12136  fi
12137# Compute "$ac_file"'s index in $config_headers.
12138_am_arg="$ac_file"
12139_am_stamp_count=1
12140for _am_header in $config_headers :; do
12141  case $_am_header in
12142    $_am_arg | $_am_arg:* )
12143      break ;;
12144    * )
12145      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12146  esac
12147done
12148echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12149$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12150	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12151	 X"$_am_arg" : 'X\(//\)$' \| \
12152	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12153$as_echo X"$_am_arg" |
12154    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12155	    s//\1/
12156	    q
12157	  }
12158	  /^X\(\/\/\)[^/].*/{
12159	    s//\1/
12160	    q
12161	  }
12162	  /^X\(\/\/\)$/{
12163	    s//\1/
12164	    q
12165	  }
12166	  /^X\(\/\).*/{
12167	    s//\1/
12168	    q
12169	  }
12170	  s/.*/./; q'`/stamp-h$_am_stamp_count
12171 ;;
12172
12173  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12174$as_echo "$as_me: executing $ac_file commands" >&6;}
12175 ;;
12176  esac
12177
12178
12179  case $ac_file$ac_mode in
12180    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12181  # Autoconf 2.62 quotes --file arguments for eval, but not when files
12182  # are listed without --file.  Let's play safe and only enable the eval
12183  # if we detect the quoting.
12184  case $CONFIG_FILES in
12185  *\'*) eval set x "$CONFIG_FILES" ;;
12186  *)   set x $CONFIG_FILES ;;
12187  esac
12188  shift
12189  for mf
12190  do
12191    # Strip MF so we end up with the name of the file.
12192    mf=`echo "$mf" | sed -e 's/:.*$//'`
12193    # Check whether this is an Automake generated Makefile or not.
12194    # We used to match only the files named `Makefile.in', but
12195    # some people rename them; so instead we look at the file content.
12196    # Grep'ing the first line is not enough: some people post-process
12197    # each Makefile.in and add a new line on top of each file to say so.
12198    # Grep'ing the whole file is not good either: AIX grep has a line
12199    # limit of 2048, but all sed's we know have understand at least 4000.
12200    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12201      dirpart=`$as_dirname -- "$mf" ||
12202$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12203	 X"$mf" : 'X\(//\)[^/]' \| \
12204	 X"$mf" : 'X\(//\)$' \| \
12205	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12206$as_echo X"$mf" |
12207    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12208	    s//\1/
12209	    q
12210	  }
12211	  /^X\(\/\/\)[^/].*/{
12212	    s//\1/
12213	    q
12214	  }
12215	  /^X\(\/\/\)$/{
12216	    s//\1/
12217	    q
12218	  }
12219	  /^X\(\/\).*/{
12220	    s//\1/
12221	    q
12222	  }
12223	  s/.*/./; q'`
12224    else
12225      continue
12226    fi
12227    # Extract the definition of DEPDIR, am__include, and am__quote
12228    # from the Makefile without running `make'.
12229    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12230    test -z "$DEPDIR" && continue
12231    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12232    test -z "am__include" && continue
12233    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12234    # When using ansi2knr, U may be empty or an underscore; expand it
12235    U=`sed -n 's/^U = //p' < "$mf"`
12236    # Find all dependency output files, they are included files with
12237    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12238    # simplest approach to changing $(DEPDIR) to its actual value in the
12239    # expansion.
12240    for file in `sed -n "
12241      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12242	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12243      # Make sure the directory exists.
12244      test -f "$dirpart/$file" && continue
12245      fdir=`$as_dirname -- "$file" ||
12246$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12247	 X"$file" : 'X\(//\)[^/]' \| \
12248	 X"$file" : 'X\(//\)$' \| \
12249	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12250$as_echo X"$file" |
12251    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12252	    s//\1/
12253	    q
12254	  }
12255	  /^X\(\/\/\)[^/].*/{
12256	    s//\1/
12257	    q
12258	  }
12259	  /^X\(\/\/\)$/{
12260	    s//\1/
12261	    q
12262	  }
12263	  /^X\(\/\).*/{
12264	    s//\1/
12265	    q
12266	  }
12267	  s/.*/./; q'`
12268      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12269      # echo "creating $dirpart/$file"
12270      echo '# dummy' > "$dirpart/$file"
12271    done
12272  done
12273}
12274 ;;
12275
12276  esac
12277done # for ac_tag
12278
12279
12280as_fn_exit 0
12281_ACEOF
12282ac_clean_files=$ac_clean_files_save
12283
12284test $ac_write_fail = 0 ||
12285  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12286
12287
12288# configure is writing to config.log, and then calls config.status.
12289# config.status does its own redirection, appending to config.log.
12290# Unfortunately, on DOS this fails, as config.log is still kept open
12291# by configure, so config.status won't be able to write to it; its
12292# output is simply discarded.  So we exec the FD to /dev/null,
12293# effectively closing config.log, so it can be properly (re)opened and
12294# appended to by config.status.  When coming back to configure, we
12295# need to make the FD available again.
12296if test "$no_create" != yes; then
12297  ac_cs_success=:
12298  ac_config_status_args=
12299  test "$silent" = yes &&
12300    ac_config_status_args="$ac_config_status_args --quiet"
12301  exec 5>/dev/null
12302  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12303  exec 5>>config.log
12304  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12305  # would make configure fail if this is the last instruction.
12306  $ac_cs_success || as_fn_exit 1
12307fi
12308if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12309  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12310$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12311fi
12312
12313