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