1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xkbevd 1.1.4.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202  if (eval "$as_required") 2>/dev/null; then :
203  as_have_required=yes
204else
205  as_have_required=no
206fi
207  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214  IFS=$as_save_IFS
215  test -z "$as_dir" && as_dir=.
216  as_found=:
217  case $as_dir in #(
218	 /*)
219	   for as_base in sh bash ksh sh5; do
220	     # Try only shells that exist, to save several forks.
221	     as_shell=$as_dir/$as_base
222	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226  break 2
227fi
228fi
229	   done;;
230       esac
231  as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235  CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240      if test "x$CONFIG_SHELL" != x; then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno; then :
263  $as_echo "$0: This script requires a shell more modern than all"
264  $as_echo "$0: the shells that I found on your system."
265  if test x${ZSH_VERSION+set} = xset ; then
266    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268  else
269    $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
271$0: about your system, including any error possibly output
272$0: before this message. Then install a modern shell, or
273$0: manually run the script under such a shell if you do
274$0: have one."
275  fi
276  exit 1
277fi
278fi
279fi
280SHELL=${CONFIG_SHELL-/bin/sh}
281export SHELL
282# Unset more variables known to interfere with behavior of common tools.
283CLICOLOR_FORCE= GREP_OPTIONS=
284unset CLICOLOR_FORCE GREP_OPTIONS
285
286## --------------------- ##
287## M4sh Shell Functions. ##
288## --------------------- ##
289# as_fn_unset VAR
290# ---------------
291# Portably unset VAR.
292as_fn_unset ()
293{
294  { eval $1=; unset $1;}
295}
296as_unset=as_fn_unset
297
298# as_fn_set_status STATUS
299# -----------------------
300# Set $? to STATUS, without forking.
301as_fn_set_status ()
302{
303  return $1
304} # as_fn_set_status
305
306# as_fn_exit STATUS
307# -----------------
308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309as_fn_exit ()
310{
311  set +e
312  as_fn_set_status $1
313  exit $1
314} # as_fn_exit
315
316# as_fn_mkdir_p
317# -------------
318# Create "$as_dir" as a directory, including parents if necessary.
319as_fn_mkdir_p ()
320{
321
322  case $as_dir in #(
323  -*) as_dir=./$as_dir;;
324  esac
325  test -d "$as_dir" || eval $as_mkdir_p || {
326    as_dirs=
327    while :; do
328      case $as_dir in #(
329      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330      *) as_qdir=$as_dir;;
331      esac
332      as_dirs="'$as_qdir' $as_dirs"
333      as_dir=`$as_dirname -- "$as_dir" ||
334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335	 X"$as_dir" : 'X\(//\)[^/]' \| \
336	 X"$as_dir" : 'X\(//\)$' \| \
337	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338$as_echo X"$as_dir" |
339    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)[^/].*/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\).*/{
352	    s//\1/
353	    q
354	  }
355	  s/.*/./; q'`
356      test -d "$as_dir" && break
357    done
358    test -z "$as_dirs" || eval "mkdir $as_dirs"
359  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362} # as_fn_mkdir_p
363
364# as_fn_executable_p FILE
365# -----------------------
366# Test if FILE is an executable regular file.
367as_fn_executable_p ()
368{
369  test -f "$1" && test -x "$1"
370} # as_fn_executable_p
371# as_fn_append VAR VALUE
372# ----------------------
373# Append the text in VALUE to the end of the definition contained in VAR. Take
374# advantage of any shell optimizations that allow amortized linear growth over
375# repeated appends, instead of the typical quadratic growth present in naive
376# implementations.
377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378  eval 'as_fn_append ()
379  {
380    eval $1+=\$2
381  }'
382else
383  as_fn_append ()
384  {
385    eval $1=\$$1\$2
386  }
387fi # as_fn_append
388
389# as_fn_arith ARG...
390# ------------------
391# Perform arithmetic evaluation on the ARGs, and store the result in the
392# global $as_val. Take advantage of shells that can avoid forks. The arguments
393# must be portable across $(()) and expr.
394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395  eval 'as_fn_arith ()
396  {
397    as_val=$(( $* ))
398  }'
399else
400  as_fn_arith ()
401  {
402    as_val=`expr "$@" || test $? -eq 1`
403  }
404fi # as_fn_arith
405
406
407# as_fn_error STATUS ERROR [LINENO LOG_FD]
408# ----------------------------------------
409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411# script with STATUS, using 1 if that was 0.
412as_fn_error ()
413{
414  as_status=$1; test $as_status -eq 0 && as_status=1
415  if test "$4"; then
416    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418  fi
419  $as_echo "$as_me: error: $2" >&2
420  as_fn_exit $as_status
421} # as_fn_error
422
423if expr a : '\(a\)' >/dev/null 2>&1 &&
424   test "X`expr 00001 : '.*\(...\)'`" = X001; then
425  as_expr=expr
426else
427  as_expr=false
428fi
429
430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431  as_basename=basename
432else
433  as_basename=false
434fi
435
436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437  as_dirname=dirname
438else
439  as_dirname=false
440fi
441
442as_me=`$as_basename -- "$0" ||
443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444	 X"$0" : 'X\(//\)$' \| \
445	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446$as_echo X/"$0" |
447    sed '/^.*\/\([^/][^/]*\)\/*$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\/\)$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\).*/{
456	    s//\1/
457	    q
458	  }
459	  s/.*/./; q'`
460
461# Avoid depending upon Character Ranges.
462as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465as_cr_digits='0123456789'
466as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469  as_lineno_1=$LINENO as_lineno_1a=$LINENO
470  as_lineno_2=$LINENO as_lineno_2a=$LINENO
471  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
474  sed -n '
475    p
476    /[$]LINENO/=
477  ' <$as_myself |
478    sed '
479      s/[$]LINENO.*/&-/
480      t lineno
481      b
482      :lineno
483      N
484      :loop
485      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486      t loop
487      s/-\n.*//
488    ' >$as_me.lineno &&
489  chmod +x "$as_me.lineno" ||
490    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493  # already done that, so ensure we don't try to do so again and fall
494  # in an infinite loop.  This has already happened in practice.
495  _as_can_reexec=no; export _as_can_reexec
496  # Don't try to exec as it changes $[0], causing all sort of problems
497  # (the dirname of $[0] is not the place where we might find the
498  # original and so on.  Autoconf is especially sensitive to this).
499  . "./$as_me.lineno"
500  # Exit status is that of the last command.
501  exit
502}
503
504ECHO_C= ECHO_N= ECHO_T=
505case `echo -n x` in #(((((
506-n*)
507  case `echo 'xy\c'` in
508  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
509  xy)  ECHO_C='\c';;
510  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
511       ECHO_T='	';;
512  esac;;
513*)
514  ECHO_N='-n';;
515esac
516
517rm -f conf$$ conf$$.exe conf$$.file
518if test -d conf$$.dir; then
519  rm -f conf$$.dir/conf$$.file
520else
521  rm -f conf$$.dir
522  mkdir conf$$.dir 2>/dev/null
523fi
524if (echo >conf$$.file) 2>/dev/null; then
525  if ln -s conf$$.file conf$$ 2>/dev/null; then
526    as_ln_s='ln -s'
527    # ... but there are two gotchas:
528    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530    # In both cases, we have to default to `cp -pR'.
531    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532      as_ln_s='cp -pR'
533  elif ln conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s=ln
535  else
536    as_ln_s='cp -pR'
537  fi
538else
539  as_ln_s='cp -pR'
540fi
541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542rmdir conf$$.dir 2>/dev/null
543
544if mkdir -p . 2>/dev/null; then
545  as_mkdir_p='mkdir -p "$as_dir"'
546else
547  test -d ./-p && rmdir ./-p
548  as_mkdir_p=false
549fi
550
551as_test_x='test -x'
552as_executable_p=as_fn_executable_p
553
554# Sed expression to map a string onto a valid CPP name.
555as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557# Sed expression to map a string onto a valid variable name.
558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560
561test -n "$DJDIR" || exec 7<&0 </dev/null
562exec 6>&1
563
564# Name of the host.
565# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566# so uname gets run too.
567ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
569#
570# Initializations.
571#
572ac_default_prefix=/usr/local
573ac_clean_files=
574ac_config_libobj_dir=.
575LIBOBJS=
576cross_compiling=no
577subdirs=
578MFLAGS=
579MAKEFLAGS=
580
581# Identity of this package.
582PACKAGE_NAME='xkbevd'
583PACKAGE_TARNAME='xkbevd'
584PACKAGE_VERSION='1.1.4'
585PACKAGE_STRING='xkbevd 1.1.4'
586PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
587PACKAGE_URL=''
588
589ac_unique_file="Makefile.am"
590# Factoring default headers for most tests.
591ac_includes_default="\
592#include <stdio.h>
593#ifdef HAVE_SYS_TYPES_H
594# include <sys/types.h>
595#endif
596#ifdef HAVE_SYS_STAT_H
597# include <sys/stat.h>
598#endif
599#ifdef STDC_HEADERS
600# include <stdlib.h>
601# include <stddef.h>
602#else
603# ifdef HAVE_STDLIB_H
604#  include <stdlib.h>
605# endif
606#endif
607#ifdef HAVE_STRING_H
608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609#  include <memory.h>
610# endif
611# include <string.h>
612#endif
613#ifdef HAVE_STRINGS_H
614# include <strings.h>
615#endif
616#ifdef HAVE_INTTYPES_H
617# include <inttypes.h>
618#endif
619#ifdef HAVE_STDINT_H
620# include <stdint.h>
621#endif
622#ifdef HAVE_UNISTD_H
623# include <unistd.h>
624#endif"
625
626ac_subst_vars='am__EXEEXT_FALSE
627am__EXEEXT_TRUE
628LTLIBOBJS
629LIBOBJS
630XKBEVD_LIBS
631XKBEVD_CFLAGS
632YACC_INST
633YFLAGS
634YACC
635MAN_SUBSTS
636XORG_MAN_PAGE
637ADMIN_MAN_DIR
638DRIVER_MAN_DIR
639MISC_MAN_DIR
640FILE_MAN_DIR
641LIB_MAN_DIR
642APP_MAN_DIR
643ADMIN_MAN_SUFFIX
644DRIVER_MAN_SUFFIX
645MISC_MAN_SUFFIX
646FILE_MAN_SUFFIX
647LIB_MAN_SUFFIX
648APP_MAN_SUFFIX
649SED
650host_os
651host_vendor
652host_cpu
653host
654build_os
655build_vendor
656build_cpu
657build
658INSTALL_CMD
659PKG_CONFIG
660CHANGELOG_CMD
661STRICT_CFLAGS
662CWARNFLAGS
663BASE_CFLAGS
664EGREP
665GREP
666CPP
667am__fastdepCC_FALSE
668am__fastdepCC_TRUE
669CCDEPMODE
670am__nodep
671AMDEPBACKSLASH
672AMDEP_FALSE
673AMDEP_TRUE
674am__quote
675am__include
676DEPDIR
677OBJEXT
678EXEEXT
679ac_ct_CC
680CPPFLAGS
681LDFLAGS
682CFLAGS
683CC
684AM_BACKSLASH
685AM_DEFAULT_VERBOSITY
686AM_DEFAULT_V
687AM_V
688am__untar
689am__tar
690AMTAR
691am__leading_dot
692SET_MAKE
693AWK
694mkdir_p
695MKDIR_P
696INSTALL_STRIP_PROGRAM
697STRIP
698install_sh
699MAKEINFO
700AUTOHEADER
701AUTOMAKE
702AUTOCONF
703ACLOCAL
704VERSION
705PACKAGE
706CYGPATH_W
707am__isrc
708INSTALL_DATA
709INSTALL_SCRIPT
710INSTALL_PROGRAM
711target_alias
712host_alias
713build_alias
714LIBS
715ECHO_T
716ECHO_N
717ECHO_C
718DEFS
719mandir
720localedir
721libdir
722psdir
723pdfdir
724dvidir
725htmldir
726infodir
727docdir
728oldincludedir
729includedir
730localstatedir
731sharedstatedir
732sysconfdir
733datadir
734datarootdir
735libexecdir
736sbindir
737bindir
738program_transform_name
739prefix
740exec_prefix
741PACKAGE_URL
742PACKAGE_BUGREPORT
743PACKAGE_STRING
744PACKAGE_VERSION
745PACKAGE_TARNAME
746PACKAGE_NAME
747PATH_SEPARATOR
748SHELL'
749ac_subst_files=''
750ac_user_opts='
751enable_option_checking
752enable_silent_rules
753enable_dependency_tracking
754enable_selective_werror
755enable_strict_compilation
756'
757      ac_precious_vars='build_alias
758host_alias
759target_alias
760CC
761CFLAGS
762LDFLAGS
763LIBS
764CPPFLAGS
765CPP
766PKG_CONFIG
767YACC
768YFLAGS
769XKBEVD_CFLAGS
770XKBEVD_LIBS'
771
772
773# Initialize some variables set by options.
774ac_init_help=
775ac_init_version=false
776ac_unrecognized_opts=
777ac_unrecognized_sep=
778# The variables have the same names as the options, with
779# dashes changed to underlines.
780cache_file=/dev/null
781exec_prefix=NONE
782no_create=
783no_recursion=
784prefix=NONE
785program_prefix=NONE
786program_suffix=NONE
787program_transform_name=s,x,x,
788silent=
789site=
790srcdir=
791verbose=
792x_includes=NONE
793x_libraries=NONE
794
795# Installation directory options.
796# These are left unexpanded so users can "make install exec_prefix=/foo"
797# and all the variables that are supposed to be based on exec_prefix
798# by default will actually change.
799# Use braces instead of parens because sh, perl, etc. also accept them.
800# (The list follows the same order as the GNU Coding Standards.)
801bindir='${exec_prefix}/bin'
802sbindir='${exec_prefix}/sbin'
803libexecdir='${exec_prefix}/libexec'
804datarootdir='${prefix}/share'
805datadir='${datarootdir}'
806sysconfdir='${prefix}/etc'
807sharedstatedir='${prefix}/com'
808localstatedir='${prefix}/var'
809includedir='${prefix}/include'
810oldincludedir='/usr/include'
811docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
812infodir='${datarootdir}/info'
813htmldir='${docdir}'
814dvidir='${docdir}'
815pdfdir='${docdir}'
816psdir='${docdir}'
817libdir='${exec_prefix}/lib'
818localedir='${datarootdir}/locale'
819mandir='${datarootdir}/man'
820
821ac_prev=
822ac_dashdash=
823for ac_option
824do
825  # If the previous option needs an argument, assign it.
826  if test -n "$ac_prev"; then
827    eval $ac_prev=\$ac_option
828    ac_prev=
829    continue
830  fi
831
832  case $ac_option in
833  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
834  *=)   ac_optarg= ;;
835  *)    ac_optarg=yes ;;
836  esac
837
838  # Accept the important Cygnus configure options, so we can diagnose typos.
839
840  case $ac_dashdash$ac_option in
841  --)
842    ac_dashdash=yes ;;
843
844  -bindir | --bindir | --bindi | --bind | --bin | --bi)
845    ac_prev=bindir ;;
846  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
847    bindir=$ac_optarg ;;
848
849  -build | --build | --buil | --bui | --bu)
850    ac_prev=build_alias ;;
851  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
852    build_alias=$ac_optarg ;;
853
854  -cache-file | --cache-file | --cache-fil | --cache-fi \
855  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
856    ac_prev=cache_file ;;
857  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
858  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
859    cache_file=$ac_optarg ;;
860
861  --config-cache | -C)
862    cache_file=config.cache ;;
863
864  -datadir | --datadir | --datadi | --datad)
865    ac_prev=datadir ;;
866  -datadir=* | --datadir=* | --datadi=* | --datad=*)
867    datadir=$ac_optarg ;;
868
869  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
870  | --dataroo | --dataro | --datar)
871    ac_prev=datarootdir ;;
872  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
873  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
874    datarootdir=$ac_optarg ;;
875
876  -disable-* | --disable-*)
877    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
878    # Reject names that are not valid shell variable names.
879    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
880      as_fn_error $? "invalid feature name: $ac_useropt"
881    ac_useropt_orig=$ac_useropt
882    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
883    case $ac_user_opts in
884      *"
885"enable_$ac_useropt"
886"*) ;;
887      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
888	 ac_unrecognized_sep=', ';;
889    esac
890    eval enable_$ac_useropt=no ;;
891
892  -docdir | --docdir | --docdi | --doc | --do)
893    ac_prev=docdir ;;
894  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
895    docdir=$ac_optarg ;;
896
897  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
898    ac_prev=dvidir ;;
899  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
900    dvidir=$ac_optarg ;;
901
902  -enable-* | --enable-*)
903    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
904    # Reject names that are not valid shell variable names.
905    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
906      as_fn_error $? "invalid feature name: $ac_useropt"
907    ac_useropt_orig=$ac_useropt
908    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
909    case $ac_user_opts in
910      *"
911"enable_$ac_useropt"
912"*) ;;
913      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
914	 ac_unrecognized_sep=', ';;
915    esac
916    eval enable_$ac_useropt=\$ac_optarg ;;
917
918  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
919  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
920  | --exec | --exe | --ex)
921    ac_prev=exec_prefix ;;
922  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
923  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
924  | --exec=* | --exe=* | --ex=*)
925    exec_prefix=$ac_optarg ;;
926
927  -gas | --gas | --ga | --g)
928    # Obsolete; use --with-gas.
929    with_gas=yes ;;
930
931  -help | --help | --hel | --he | -h)
932    ac_init_help=long ;;
933  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
934    ac_init_help=recursive ;;
935  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
936    ac_init_help=short ;;
937
938  -host | --host | --hos | --ho)
939    ac_prev=host_alias ;;
940  -host=* | --host=* | --hos=* | --ho=*)
941    host_alias=$ac_optarg ;;
942
943  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
944    ac_prev=htmldir ;;
945  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
946  | --ht=*)
947    htmldir=$ac_optarg ;;
948
949  -includedir | --includedir | --includedi | --included | --include \
950  | --includ | --inclu | --incl | --inc)
951    ac_prev=includedir ;;
952  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
953  | --includ=* | --inclu=* | --incl=* | --inc=*)
954    includedir=$ac_optarg ;;
955
956  -infodir | --infodir | --infodi | --infod | --info | --inf)
957    ac_prev=infodir ;;
958  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
959    infodir=$ac_optarg ;;
960
961  -libdir | --libdir | --libdi | --libd)
962    ac_prev=libdir ;;
963  -libdir=* | --libdir=* | --libdi=* | --libd=*)
964    libdir=$ac_optarg ;;
965
966  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
967  | --libexe | --libex | --libe)
968    ac_prev=libexecdir ;;
969  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
970  | --libexe=* | --libex=* | --libe=*)
971    libexecdir=$ac_optarg ;;
972
973  -localedir | --localedir | --localedi | --localed | --locale)
974    ac_prev=localedir ;;
975  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
976    localedir=$ac_optarg ;;
977
978  -localstatedir | --localstatedir | --localstatedi | --localstated \
979  | --localstate | --localstat | --localsta | --localst | --locals)
980    ac_prev=localstatedir ;;
981  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
982  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
983    localstatedir=$ac_optarg ;;
984
985  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
986    ac_prev=mandir ;;
987  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
988    mandir=$ac_optarg ;;
989
990  -nfp | --nfp | --nf)
991    # Obsolete; use --without-fp.
992    with_fp=no ;;
993
994  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
995  | --no-cr | --no-c | -n)
996    no_create=yes ;;
997
998  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
999  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1000    no_recursion=yes ;;
1001
1002  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1003  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1004  | --oldin | --oldi | --old | --ol | --o)
1005    ac_prev=oldincludedir ;;
1006  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1007  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1008  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1009    oldincludedir=$ac_optarg ;;
1010
1011  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1012    ac_prev=prefix ;;
1013  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1014    prefix=$ac_optarg ;;
1015
1016  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1017  | --program-pre | --program-pr | --program-p)
1018    ac_prev=program_prefix ;;
1019  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1020  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1021    program_prefix=$ac_optarg ;;
1022
1023  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1024  | --program-suf | --program-su | --program-s)
1025    ac_prev=program_suffix ;;
1026  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1027  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1028    program_suffix=$ac_optarg ;;
1029
1030  -program-transform-name | --program-transform-name \
1031  | --program-transform-nam | --program-transform-na \
1032  | --program-transform-n | --program-transform- \
1033  | --program-transform | --program-transfor \
1034  | --program-transfo | --program-transf \
1035  | --program-trans | --program-tran \
1036  | --progr-tra | --program-tr | --program-t)
1037    ac_prev=program_transform_name ;;
1038  -program-transform-name=* | --program-transform-name=* \
1039  | --program-transform-nam=* | --program-transform-na=* \
1040  | --program-transform-n=* | --program-transform-=* \
1041  | --program-transform=* | --program-transfor=* \
1042  | --program-transfo=* | --program-transf=* \
1043  | --program-trans=* | --program-tran=* \
1044  | --progr-tra=* | --program-tr=* | --program-t=*)
1045    program_transform_name=$ac_optarg ;;
1046
1047  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1048    ac_prev=pdfdir ;;
1049  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1050    pdfdir=$ac_optarg ;;
1051
1052  -psdir | --psdir | --psdi | --psd | --ps)
1053    ac_prev=psdir ;;
1054  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1055    psdir=$ac_optarg ;;
1056
1057  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1058  | -silent | --silent | --silen | --sile | --sil)
1059    silent=yes ;;
1060
1061  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1062    ac_prev=sbindir ;;
1063  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1064  | --sbi=* | --sb=*)
1065    sbindir=$ac_optarg ;;
1066
1067  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1068  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1069  | --sharedst | --shareds | --shared | --share | --shar \
1070  | --sha | --sh)
1071    ac_prev=sharedstatedir ;;
1072  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1073  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1074  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1075  | --sha=* | --sh=*)
1076    sharedstatedir=$ac_optarg ;;
1077
1078  -site | --site | --sit)
1079    ac_prev=site ;;
1080  -site=* | --site=* | --sit=*)
1081    site=$ac_optarg ;;
1082
1083  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1084    ac_prev=srcdir ;;
1085  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1086    srcdir=$ac_optarg ;;
1087
1088  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1089  | --syscon | --sysco | --sysc | --sys | --sy)
1090    ac_prev=sysconfdir ;;
1091  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1092  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1093    sysconfdir=$ac_optarg ;;
1094
1095  -target | --target | --targe | --targ | --tar | --ta | --t)
1096    ac_prev=target_alias ;;
1097  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1098    target_alias=$ac_optarg ;;
1099
1100  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1101    verbose=yes ;;
1102
1103  -version | --version | --versio | --versi | --vers | -V)
1104    ac_init_version=: ;;
1105
1106  -with-* | --with-*)
1107    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1108    # Reject names that are not valid shell variable names.
1109    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110      as_fn_error $? "invalid package name: $ac_useropt"
1111    ac_useropt_orig=$ac_useropt
1112    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113    case $ac_user_opts in
1114      *"
1115"with_$ac_useropt"
1116"*) ;;
1117      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1118	 ac_unrecognized_sep=', ';;
1119    esac
1120    eval with_$ac_useropt=\$ac_optarg ;;
1121
1122  -without-* | --without-*)
1123    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1124    # Reject names that are not valid shell variable names.
1125    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126      as_fn_error $? "invalid package name: $ac_useropt"
1127    ac_useropt_orig=$ac_useropt
1128    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129    case $ac_user_opts in
1130      *"
1131"with_$ac_useropt"
1132"*) ;;
1133      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1134	 ac_unrecognized_sep=', ';;
1135    esac
1136    eval with_$ac_useropt=no ;;
1137
1138  --x)
1139    # Obsolete; use --with-x.
1140    with_x=yes ;;
1141
1142  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1143  | --x-incl | --x-inc | --x-in | --x-i)
1144    ac_prev=x_includes ;;
1145  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1146  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1147    x_includes=$ac_optarg ;;
1148
1149  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1150  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1151    ac_prev=x_libraries ;;
1152  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1153  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1154    x_libraries=$ac_optarg ;;
1155
1156  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1157Try \`$0 --help' for more information"
1158    ;;
1159
1160  *=*)
1161    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1162    # Reject names that are not valid shell variable names.
1163    case $ac_envvar in #(
1164      '' | [0-9]* | *[!_$as_cr_alnum]* )
1165      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1166    esac
1167    eval $ac_envvar=\$ac_optarg
1168    export $ac_envvar ;;
1169
1170  *)
1171    # FIXME: should be removed in autoconf 3.0.
1172    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1173    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1174      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1175    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1176    ;;
1177
1178  esac
1179done
1180
1181if test -n "$ac_prev"; then
1182  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1183  as_fn_error $? "missing argument to $ac_option"
1184fi
1185
1186if test -n "$ac_unrecognized_opts"; then
1187  case $enable_option_checking in
1188    no) ;;
1189    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1190    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1191  esac
1192fi
1193
1194# Check all directory arguments for consistency.
1195for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1196		datadir sysconfdir sharedstatedir localstatedir includedir \
1197		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1198		libdir localedir mandir
1199do
1200  eval ac_val=\$$ac_var
1201  # Remove trailing slashes.
1202  case $ac_val in
1203    */ )
1204      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1205      eval $ac_var=\$ac_val;;
1206  esac
1207  # Be sure to have absolute directory names.
1208  case $ac_val in
1209    [\\/$]* | ?:[\\/]* )  continue;;
1210    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1211  esac
1212  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1213done
1214
1215# There might be people who depend on the old broken behavior: `$host'
1216# used to hold the argument of --host etc.
1217# FIXME: To remove some day.
1218build=$build_alias
1219host=$host_alias
1220target=$target_alias
1221
1222# FIXME: To remove some day.
1223if test "x$host_alias" != x; then
1224  if test "x$build_alias" = x; then
1225    cross_compiling=maybe
1226  elif test "x$build_alias" != "x$host_alias"; then
1227    cross_compiling=yes
1228  fi
1229fi
1230
1231ac_tool_prefix=
1232test -n "$host_alias" && ac_tool_prefix=$host_alias-
1233
1234test "$silent" = yes && exec 6>/dev/null
1235
1236
1237ac_pwd=`pwd` && test -n "$ac_pwd" &&
1238ac_ls_di=`ls -di .` &&
1239ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1240  as_fn_error $? "working directory cannot be determined"
1241test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1242  as_fn_error $? "pwd does not report name of working directory"
1243
1244
1245# Find the source files, if location was not specified.
1246if test -z "$srcdir"; then
1247  ac_srcdir_defaulted=yes
1248  # Try the directory containing this script, then the parent directory.
1249  ac_confdir=`$as_dirname -- "$as_myself" ||
1250$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1251	 X"$as_myself" : 'X\(//\)[^/]' \| \
1252	 X"$as_myself" : 'X\(//\)$' \| \
1253	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1254$as_echo X"$as_myself" |
1255    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1256	    s//\1/
1257	    q
1258	  }
1259	  /^X\(\/\/\)[^/].*/{
1260	    s//\1/
1261	    q
1262	  }
1263	  /^X\(\/\/\)$/{
1264	    s//\1/
1265	    q
1266	  }
1267	  /^X\(\/\).*/{
1268	    s//\1/
1269	    q
1270	  }
1271	  s/.*/./; q'`
1272  srcdir=$ac_confdir
1273  if test ! -r "$srcdir/$ac_unique_file"; then
1274    srcdir=..
1275  fi
1276else
1277  ac_srcdir_defaulted=no
1278fi
1279if test ! -r "$srcdir/$ac_unique_file"; then
1280  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1281  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1282fi
1283ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1284ac_abs_confdir=`(
1285	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1286	pwd)`
1287# When building in place, set srcdir=.
1288if test "$ac_abs_confdir" = "$ac_pwd"; then
1289  srcdir=.
1290fi
1291# Remove unnecessary trailing slashes from srcdir.
1292# Double slashes in file names in object file debugging info
1293# mess up M-x gdb in Emacs.
1294case $srcdir in
1295*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1296esac
1297for ac_var in $ac_precious_vars; do
1298  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1299  eval ac_env_${ac_var}_value=\$${ac_var}
1300  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1301  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1302done
1303
1304#
1305# Report the --help message.
1306#
1307if test "$ac_init_help" = "long"; then
1308  # Omit some internal or obsolete options to make the list less imposing.
1309  # This message is too long to be a string in the A/UX 3.1 sh.
1310  cat <<_ACEOF
1311\`configure' configures xkbevd 1.1.4 to adapt to many kinds of systems.
1312
1313Usage: $0 [OPTION]... [VAR=VALUE]...
1314
1315To assign environment variables (e.g., CC, CFLAGS...), specify them as
1316VAR=VALUE.  See below for descriptions of some of the useful variables.
1317
1318Defaults for the options are specified in brackets.
1319
1320Configuration:
1321  -h, --help              display this help and exit
1322      --help=short        display options specific to this package
1323      --help=recursive    display the short help of all the included packages
1324  -V, --version           display version information and exit
1325  -q, --quiet, --silent   do not print \`checking ...' messages
1326      --cache-file=FILE   cache test results in FILE [disabled]
1327  -C, --config-cache      alias for \`--cache-file=config.cache'
1328  -n, --no-create         do not create output files
1329      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1330
1331Installation directories:
1332  --prefix=PREFIX         install architecture-independent files in PREFIX
1333                          [$ac_default_prefix]
1334  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1335                          [PREFIX]
1336
1337By default, \`make install' will install all the files in
1338\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1339an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1340for instance \`--prefix=\$HOME'.
1341
1342For better control, use the options below.
1343
1344Fine tuning of the installation directories:
1345  --bindir=DIR            user executables [EPREFIX/bin]
1346  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1347  --libexecdir=DIR        program executables [EPREFIX/libexec]
1348  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1349  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1350  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1351  --libdir=DIR            object code libraries [EPREFIX/lib]
1352  --includedir=DIR        C header files [PREFIX/include]
1353  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1354  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1355  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1356  --infodir=DIR           info documentation [DATAROOTDIR/info]
1357  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1358  --mandir=DIR            man documentation [DATAROOTDIR/man]
1359  --docdir=DIR            documentation root [DATAROOTDIR/doc/xkbevd]
1360  --htmldir=DIR           html documentation [DOCDIR]
1361  --dvidir=DIR            dvi documentation [DOCDIR]
1362  --pdfdir=DIR            pdf documentation [DOCDIR]
1363  --psdir=DIR             ps documentation [DOCDIR]
1364_ACEOF
1365
1366  cat <<\_ACEOF
1367
1368Program names:
1369  --program-prefix=PREFIX            prepend PREFIX to installed program names
1370  --program-suffix=SUFFIX            append SUFFIX to installed program names
1371  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1372
1373System types:
1374  --build=BUILD     configure for building on BUILD [guessed]
1375  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1376_ACEOF
1377fi
1378
1379if test -n "$ac_init_help"; then
1380  case $ac_init_help in
1381     short | recursive ) echo "Configuration of xkbevd 1.1.4:";;
1382   esac
1383  cat <<\_ACEOF
1384
1385Optional Features:
1386  --disable-option-checking  ignore unrecognized --enable/--with options
1387  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1388  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1389  --enable-silent-rules   less verbose build output (undo: "make V=1")
1390  --disable-silent-rules  verbose build output (undo: "make V=0")
1391  --enable-dependency-tracking
1392                          do not reject slow dependency extractors
1393  --disable-dependency-tracking
1394                          speeds up one-time build
1395  --disable-selective-werror
1396                          Turn off selective compiler errors. (default:
1397                          enabled)
1398  --enable-strict-compilation
1399                          Enable all warnings from compiler and make them
1400                          errors (default: disabled)
1401
1402Some influential environment variables:
1403  CC          C compiler command
1404  CFLAGS      C compiler flags
1405  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1406              nonstandard directory <lib dir>
1407  LIBS        libraries to pass to the linker, e.g. -l<library>
1408  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1409              you have headers in a nonstandard directory <include dir>
1410  CPP         C preprocessor
1411  PKG_CONFIG  path to pkg-config utility
1412  YACC        The `Yet Another Compiler Compiler' implementation to use.
1413              Defaults to the first program found out of: `bison -y', `byacc',
1414              `yacc'.
1415  YFLAGS      The list of arguments that will be passed by default to $YACC.
1416              This script will default YFLAGS to the empty string to avoid a
1417              default value of `-d' given by some make applications.
1418  XKBEVD_CFLAGS
1419              C compiler flags for XKBEVD, overriding pkg-config
1420  XKBEVD_LIBS linker flags for XKBEVD, overriding pkg-config
1421
1422Use these variables to override the choices made by `configure' or to help
1423it to find libraries and programs with nonstandard names/locations.
1424
1425Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1426_ACEOF
1427ac_status=$?
1428fi
1429
1430if test "$ac_init_help" = "recursive"; then
1431  # If there are subdirs, report their specific --help.
1432  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1433    test -d "$ac_dir" ||
1434      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1435      continue
1436    ac_builddir=.
1437
1438case "$ac_dir" in
1439.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1440*)
1441  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1442  # A ".." for each directory in $ac_dir_suffix.
1443  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1444  case $ac_top_builddir_sub in
1445  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1446  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1447  esac ;;
1448esac
1449ac_abs_top_builddir=$ac_pwd
1450ac_abs_builddir=$ac_pwd$ac_dir_suffix
1451# for backward compatibility:
1452ac_top_builddir=$ac_top_build_prefix
1453
1454case $srcdir in
1455  .)  # We are building in place.
1456    ac_srcdir=.
1457    ac_top_srcdir=$ac_top_builddir_sub
1458    ac_abs_top_srcdir=$ac_pwd ;;
1459  [\\/]* | ?:[\\/]* )  # Absolute name.
1460    ac_srcdir=$srcdir$ac_dir_suffix;
1461    ac_top_srcdir=$srcdir
1462    ac_abs_top_srcdir=$srcdir ;;
1463  *) # Relative name.
1464    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1465    ac_top_srcdir=$ac_top_build_prefix$srcdir
1466    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1467esac
1468ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1469
1470    cd "$ac_dir" || { ac_status=$?; continue; }
1471    # Check for guested configure.
1472    if test -f "$ac_srcdir/configure.gnu"; then
1473      echo &&
1474      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1475    elif test -f "$ac_srcdir/configure"; then
1476      echo &&
1477      $SHELL "$ac_srcdir/configure" --help=recursive
1478    else
1479      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1480    fi || ac_status=$?
1481    cd "$ac_pwd" || { ac_status=$?; break; }
1482  done
1483fi
1484
1485test -n "$ac_init_help" && exit $ac_status
1486if $ac_init_version; then
1487  cat <<\_ACEOF
1488xkbevd configure 1.1.4
1489generated by GNU Autoconf 2.69
1490
1491Copyright (C) 2012 Free Software Foundation, Inc.
1492This configure script is free software; the Free Software Foundation
1493gives unlimited permission to copy, distribute and modify it.
1494_ACEOF
1495  exit
1496fi
1497
1498## ------------------------ ##
1499## Autoconf initialization. ##
1500## ------------------------ ##
1501
1502# ac_fn_c_try_compile LINENO
1503# --------------------------
1504# Try to compile conftest.$ac_ext, and return whether this succeeded.
1505ac_fn_c_try_compile ()
1506{
1507  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1508  rm -f conftest.$ac_objext
1509  if { { ac_try="$ac_compile"
1510case "(($ac_try" in
1511  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1512  *) ac_try_echo=$ac_try;;
1513esac
1514eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1515$as_echo "$ac_try_echo"; } >&5
1516  (eval "$ac_compile") 2>conftest.err
1517  ac_status=$?
1518  if test -s conftest.err; then
1519    grep -v '^ *+' conftest.err >conftest.er1
1520    cat conftest.er1 >&5
1521    mv -f conftest.er1 conftest.err
1522  fi
1523  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1524  test $ac_status = 0; } && {
1525	 test -z "$ac_c_werror_flag" ||
1526	 test ! -s conftest.err
1527       } && test -s conftest.$ac_objext; then :
1528  ac_retval=0
1529else
1530  $as_echo "$as_me: failed program was:" >&5
1531sed 's/^/| /' conftest.$ac_ext >&5
1532
1533	ac_retval=1
1534fi
1535  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1536  as_fn_set_status $ac_retval
1537
1538} # ac_fn_c_try_compile
1539
1540# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1541# ---------------------------------------------
1542# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1543# accordingly.
1544ac_fn_c_check_decl ()
1545{
1546  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1547  as_decl_name=`echo $2|sed 's/ *(.*//'`
1548  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1549  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1550$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1551if eval \${$3+:} false; then :
1552  $as_echo_n "(cached) " >&6
1553else
1554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1555/* end confdefs.h.  */
1556$4
1557int
1558main ()
1559{
1560#ifndef $as_decl_name
1561#ifdef __cplusplus
1562  (void) $as_decl_use;
1563#else
1564  (void) $as_decl_name;
1565#endif
1566#endif
1567
1568  ;
1569  return 0;
1570}
1571_ACEOF
1572if ac_fn_c_try_compile "$LINENO"; then :
1573  eval "$3=yes"
1574else
1575  eval "$3=no"
1576fi
1577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1578fi
1579eval ac_res=\$$3
1580	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1581$as_echo "$ac_res" >&6; }
1582  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1583
1584} # ac_fn_c_check_decl
1585
1586# ac_fn_c_try_cpp LINENO
1587# ----------------------
1588# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1589ac_fn_c_try_cpp ()
1590{
1591  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592  if { { ac_try="$ac_cpp conftest.$ac_ext"
1593case "(($ac_try" in
1594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1595  *) ac_try_echo=$ac_try;;
1596esac
1597eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1598$as_echo "$ac_try_echo"; } >&5
1599  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1600  ac_status=$?
1601  if test -s conftest.err; then
1602    grep -v '^ *+' conftest.err >conftest.er1
1603    cat conftest.er1 >&5
1604    mv -f conftest.er1 conftest.err
1605  fi
1606  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1607  test $ac_status = 0; } > conftest.i && {
1608	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1609	 test ! -s conftest.err
1610       }; then :
1611  ac_retval=0
1612else
1613  $as_echo "$as_me: failed program was:" >&5
1614sed 's/^/| /' conftest.$ac_ext >&5
1615
1616    ac_retval=1
1617fi
1618  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1619  as_fn_set_status $ac_retval
1620
1621} # ac_fn_c_try_cpp
1622
1623# ac_fn_c_try_run LINENO
1624# ----------------------
1625# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1626# that executables *can* be run.
1627ac_fn_c_try_run ()
1628{
1629  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630  if { { ac_try="$ac_link"
1631case "(($ac_try" in
1632  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633  *) ac_try_echo=$ac_try;;
1634esac
1635eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636$as_echo "$ac_try_echo"; } >&5
1637  (eval "$ac_link") 2>&5
1638  ac_status=$?
1639  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1641  { { case "(($ac_try" in
1642  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1643  *) ac_try_echo=$ac_try;;
1644esac
1645eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646$as_echo "$ac_try_echo"; } >&5
1647  (eval "$ac_try") 2>&5
1648  ac_status=$?
1649  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650  test $ac_status = 0; }; }; then :
1651  ac_retval=0
1652else
1653  $as_echo "$as_me: program exited with status $ac_status" >&5
1654       $as_echo "$as_me: failed program was:" >&5
1655sed 's/^/| /' conftest.$ac_ext >&5
1656
1657       ac_retval=$ac_status
1658fi
1659  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1660  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661  as_fn_set_status $ac_retval
1662
1663} # ac_fn_c_try_run
1664
1665# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1666# -------------------------------------------------------
1667# Tests whether HEADER exists and can be compiled using the include files in
1668# INCLUDES, setting the cache variable VAR accordingly.
1669ac_fn_c_check_header_compile ()
1670{
1671  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1673$as_echo_n "checking for $2... " >&6; }
1674if eval \${$3+:} false; then :
1675  $as_echo_n "(cached) " >&6
1676else
1677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1678/* end confdefs.h.  */
1679$4
1680#include <$2>
1681_ACEOF
1682if ac_fn_c_try_compile "$LINENO"; then :
1683  eval "$3=yes"
1684else
1685  eval "$3=no"
1686fi
1687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1688fi
1689eval ac_res=\$$3
1690	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1691$as_echo "$ac_res" >&6; }
1692  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1693
1694} # ac_fn_c_check_header_compile
1695
1696# ac_fn_c_try_link LINENO
1697# -----------------------
1698# Try to link conftest.$ac_ext, and return whether this succeeded.
1699ac_fn_c_try_link ()
1700{
1701  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702  rm -f conftest.$ac_objext conftest$ac_exeext
1703  if { { ac_try="$ac_link"
1704case "(($ac_try" in
1705  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706  *) ac_try_echo=$ac_try;;
1707esac
1708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709$as_echo "$ac_try_echo"; } >&5
1710  (eval "$ac_link") 2>conftest.err
1711  ac_status=$?
1712  if test -s conftest.err; then
1713    grep -v '^ *+' conftest.err >conftest.er1
1714    cat conftest.er1 >&5
1715    mv -f conftest.er1 conftest.err
1716  fi
1717  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718  test $ac_status = 0; } && {
1719	 test -z "$ac_c_werror_flag" ||
1720	 test ! -s conftest.err
1721       } && test -s conftest$ac_exeext && {
1722	 test "$cross_compiling" = yes ||
1723	 test -x conftest$ac_exeext
1724       }; then :
1725  ac_retval=0
1726else
1727  $as_echo "$as_me: failed program was:" >&5
1728sed 's/^/| /' conftest.$ac_ext >&5
1729
1730	ac_retval=1
1731fi
1732  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1733  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1734  # interfere with the next link command; also delete a directory that is
1735  # left behind by Apple's compiler.  We do this before executing the actions.
1736  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1737  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738  as_fn_set_status $ac_retval
1739
1740} # ac_fn_c_try_link
1741
1742# ac_fn_c_check_func LINENO FUNC VAR
1743# ----------------------------------
1744# Tests whether FUNC exists, setting the cache variable VAR accordingly
1745ac_fn_c_check_func ()
1746{
1747  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1749$as_echo_n "checking for $2... " >&6; }
1750if eval \${$3+:} false; then :
1751  $as_echo_n "(cached) " >&6
1752else
1753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754/* end confdefs.h.  */
1755/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1756   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1757#define $2 innocuous_$2
1758
1759/* System header to define __stub macros and hopefully few prototypes,
1760    which can conflict with char $2 (); below.
1761    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1762    <limits.h> exists even on freestanding compilers.  */
1763
1764#ifdef __STDC__
1765# include <limits.h>
1766#else
1767# include <assert.h>
1768#endif
1769
1770#undef $2
1771
1772/* Override any GCC internal prototype to avoid an error.
1773   Use char because int might match the return type of a GCC
1774   builtin and then its argument prototype would still apply.  */
1775#ifdef __cplusplus
1776extern "C"
1777#endif
1778char $2 ();
1779/* The GNU C library defines this for functions which it implements
1780    to always fail with ENOSYS.  Some functions are actually named
1781    something starting with __ and the normal name is an alias.  */
1782#if defined __stub_$2 || defined __stub___$2
1783choke me
1784#endif
1785
1786int
1787main ()
1788{
1789return $2 ();
1790  ;
1791  return 0;
1792}
1793_ACEOF
1794if ac_fn_c_try_link "$LINENO"; then :
1795  eval "$3=yes"
1796else
1797  eval "$3=no"
1798fi
1799rm -f core conftest.err conftest.$ac_objext \
1800    conftest$ac_exeext conftest.$ac_ext
1801fi
1802eval ac_res=\$$3
1803	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804$as_echo "$ac_res" >&6; }
1805  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806
1807} # ac_fn_c_check_func
1808cat >config.log <<_ACEOF
1809This file contains any messages produced by compilers while
1810running configure, to aid debugging if configure makes a mistake.
1811
1812It was created by xkbevd $as_me 1.1.4, which was
1813generated by GNU Autoconf 2.69.  Invocation command line was
1814
1815  $ $0 $@
1816
1817_ACEOF
1818exec 5>>config.log
1819{
1820cat <<_ASUNAME
1821## --------- ##
1822## Platform. ##
1823## --------- ##
1824
1825hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1826uname -m = `(uname -m) 2>/dev/null || echo unknown`
1827uname -r = `(uname -r) 2>/dev/null || echo unknown`
1828uname -s = `(uname -s) 2>/dev/null || echo unknown`
1829uname -v = `(uname -v) 2>/dev/null || echo unknown`
1830
1831/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1832/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1833
1834/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1835/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1836/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1837/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1838/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1839/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1840/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1841
1842_ASUNAME
1843
1844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1845for as_dir in $PATH
1846do
1847  IFS=$as_save_IFS
1848  test -z "$as_dir" && as_dir=.
1849    $as_echo "PATH: $as_dir"
1850  done
1851IFS=$as_save_IFS
1852
1853} >&5
1854
1855cat >&5 <<_ACEOF
1856
1857
1858## ----------- ##
1859## Core tests. ##
1860## ----------- ##
1861
1862_ACEOF
1863
1864
1865# Keep a trace of the command line.
1866# Strip out --no-create and --no-recursion so they do not pile up.
1867# Strip out --silent because we don't want to record it for future runs.
1868# Also quote any args containing shell meta-characters.
1869# Make two passes to allow for proper duplicate-argument suppression.
1870ac_configure_args=
1871ac_configure_args0=
1872ac_configure_args1=
1873ac_must_keep_next=false
1874for ac_pass in 1 2
1875do
1876  for ac_arg
1877  do
1878    case $ac_arg in
1879    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1880    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1881    | -silent | --silent | --silen | --sile | --sil)
1882      continue ;;
1883    *\'*)
1884      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1885    esac
1886    case $ac_pass in
1887    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1888    2)
1889      as_fn_append ac_configure_args1 " '$ac_arg'"
1890      if test $ac_must_keep_next = true; then
1891	ac_must_keep_next=false # Got value, back to normal.
1892      else
1893	case $ac_arg in
1894	  *=* | --config-cache | -C | -disable-* | --disable-* \
1895	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1896	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1897	  | -with-* | --with-* | -without-* | --without-* | --x)
1898	    case "$ac_configure_args0 " in
1899	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1900	    esac
1901	    ;;
1902	  -* ) ac_must_keep_next=true ;;
1903	esac
1904      fi
1905      as_fn_append ac_configure_args " '$ac_arg'"
1906      ;;
1907    esac
1908  done
1909done
1910{ ac_configure_args0=; unset ac_configure_args0;}
1911{ ac_configure_args1=; unset ac_configure_args1;}
1912
1913# When interrupted or exit'd, cleanup temporary files, and complete
1914# config.log.  We remove comments because anyway the quotes in there
1915# would cause problems or look ugly.
1916# WARNING: Use '\'' to represent an apostrophe within the trap.
1917# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1918trap 'exit_status=$?
1919  # Save into config.log some information that might help in debugging.
1920  {
1921    echo
1922
1923    $as_echo "## ---------------- ##
1924## Cache variables. ##
1925## ---------------- ##"
1926    echo
1927    # The following way of writing the cache mishandles newlines in values,
1928(
1929  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1930    eval ac_val=\$$ac_var
1931    case $ac_val in #(
1932    *${as_nl}*)
1933      case $ac_var in #(
1934      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1935$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1936      esac
1937      case $ac_var in #(
1938      _ | IFS | as_nl) ;; #(
1939      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1940      *) { eval $ac_var=; unset $ac_var;} ;;
1941      esac ;;
1942    esac
1943  done
1944  (set) 2>&1 |
1945    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1946    *${as_nl}ac_space=\ *)
1947      sed -n \
1948	"s/'\''/'\''\\\\'\'''\''/g;
1949	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1950      ;; #(
1951    *)
1952      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1953      ;;
1954    esac |
1955    sort
1956)
1957    echo
1958
1959    $as_echo "## ----------------- ##
1960## Output variables. ##
1961## ----------------- ##"
1962    echo
1963    for ac_var in $ac_subst_vars
1964    do
1965      eval ac_val=\$$ac_var
1966      case $ac_val in
1967      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1968      esac
1969      $as_echo "$ac_var='\''$ac_val'\''"
1970    done | sort
1971    echo
1972
1973    if test -n "$ac_subst_files"; then
1974      $as_echo "## ------------------- ##
1975## File substitutions. ##
1976## ------------------- ##"
1977      echo
1978      for ac_var in $ac_subst_files
1979      do
1980	eval ac_val=\$$ac_var
1981	case $ac_val in
1982	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1983	esac
1984	$as_echo "$ac_var='\''$ac_val'\''"
1985      done | sort
1986      echo
1987    fi
1988
1989    if test -s confdefs.h; then
1990      $as_echo "## ----------- ##
1991## confdefs.h. ##
1992## ----------- ##"
1993      echo
1994      cat confdefs.h
1995      echo
1996    fi
1997    test "$ac_signal" != 0 &&
1998      $as_echo "$as_me: caught signal $ac_signal"
1999    $as_echo "$as_me: exit $exit_status"
2000  } >&5
2001  rm -f core *.core core.conftest.* &&
2002    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2003    exit $exit_status
2004' 0
2005for ac_signal in 1 2 13 15; do
2006  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2007done
2008ac_signal=0
2009
2010# confdefs.h avoids OS command line length limits that DEFS can exceed.
2011rm -f -r conftest* confdefs.h
2012
2013$as_echo "/* confdefs.h */" > confdefs.h
2014
2015# Predefined preprocessor variables.
2016
2017cat >>confdefs.h <<_ACEOF
2018#define PACKAGE_NAME "$PACKAGE_NAME"
2019_ACEOF
2020
2021cat >>confdefs.h <<_ACEOF
2022#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2023_ACEOF
2024
2025cat >>confdefs.h <<_ACEOF
2026#define PACKAGE_VERSION "$PACKAGE_VERSION"
2027_ACEOF
2028
2029cat >>confdefs.h <<_ACEOF
2030#define PACKAGE_STRING "$PACKAGE_STRING"
2031_ACEOF
2032
2033cat >>confdefs.h <<_ACEOF
2034#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2035_ACEOF
2036
2037cat >>confdefs.h <<_ACEOF
2038#define PACKAGE_URL "$PACKAGE_URL"
2039_ACEOF
2040
2041
2042# Let the site file select an alternate cache file if it wants to.
2043# Prefer an explicitly selected file to automatically selected ones.
2044ac_site_file1=NONE
2045ac_site_file2=NONE
2046if test -n "$CONFIG_SITE"; then
2047  # We do not want a PATH search for config.site.
2048  case $CONFIG_SITE in #((
2049    -*)  ac_site_file1=./$CONFIG_SITE;;
2050    */*) ac_site_file1=$CONFIG_SITE;;
2051    *)   ac_site_file1=./$CONFIG_SITE;;
2052  esac
2053elif test "x$prefix" != xNONE; then
2054  ac_site_file1=$prefix/share/config.site
2055  ac_site_file2=$prefix/etc/config.site
2056else
2057  ac_site_file1=$ac_default_prefix/share/config.site
2058  ac_site_file2=$ac_default_prefix/etc/config.site
2059fi
2060for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2061do
2062  test "x$ac_site_file" = xNONE && continue
2063  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2064    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2065$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2066    sed 's/^/| /' "$ac_site_file" >&5
2067    . "$ac_site_file" \
2068      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2069$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2070as_fn_error $? "failed to load site script $ac_site_file
2071See \`config.log' for more details" "$LINENO" 5; }
2072  fi
2073done
2074
2075if test -r "$cache_file"; then
2076  # Some versions of bash will fail to source /dev/null (special files
2077  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2078  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2079    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2080$as_echo "$as_me: loading cache $cache_file" >&6;}
2081    case $cache_file in
2082      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2083      *)                      . "./$cache_file";;
2084    esac
2085  fi
2086else
2087  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2088$as_echo "$as_me: creating cache $cache_file" >&6;}
2089  >$cache_file
2090fi
2091
2092# Check that the precious variables saved in the cache have kept the same
2093# value.
2094ac_cache_corrupted=false
2095for ac_var in $ac_precious_vars; do
2096  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2097  eval ac_new_set=\$ac_env_${ac_var}_set
2098  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2099  eval ac_new_val=\$ac_env_${ac_var}_value
2100  case $ac_old_set,$ac_new_set in
2101    set,)
2102      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2103$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2104      ac_cache_corrupted=: ;;
2105    ,set)
2106      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2107$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2108      ac_cache_corrupted=: ;;
2109    ,);;
2110    *)
2111      if test "x$ac_old_val" != "x$ac_new_val"; then
2112	# differences in whitespace do not lead to failure.
2113	ac_old_val_w=`echo x $ac_old_val`
2114	ac_new_val_w=`echo x $ac_new_val`
2115	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2116	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2117$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2118	  ac_cache_corrupted=:
2119	else
2120	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2121$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2122	  eval $ac_var=\$ac_old_val
2123	fi
2124	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2125$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2126	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2127$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2128      fi;;
2129  esac
2130  # Pass precious variables to config.status.
2131  if test "$ac_new_set" = set; then
2132    case $ac_new_val in
2133    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2134    *) ac_arg=$ac_var=$ac_new_val ;;
2135    esac
2136    case " $ac_configure_args " in
2137      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2138      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2139    esac
2140  fi
2141done
2142if $ac_cache_corrupted; then
2143  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2144$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2145  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2146$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2147  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2148fi
2149## -------------------- ##
2150## Main body of script. ##
2151## -------------------- ##
2152
2153ac_ext=c
2154ac_cpp='$CPP $CPPFLAGS'
2155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2157ac_compiler_gnu=$ac_cv_c_compiler_gnu
2158
2159
2160
2161ac_config_headers="$ac_config_headers config.h"
2162
2163
2164# Initialize Automake
2165am__api_version='1.15'
2166
2167ac_aux_dir=
2168for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2169  if test -f "$ac_dir/install-sh"; then
2170    ac_aux_dir=$ac_dir
2171    ac_install_sh="$ac_aux_dir/install-sh -c"
2172    break
2173  elif test -f "$ac_dir/install.sh"; then
2174    ac_aux_dir=$ac_dir
2175    ac_install_sh="$ac_aux_dir/install.sh -c"
2176    break
2177  elif test -f "$ac_dir/shtool"; then
2178    ac_aux_dir=$ac_dir
2179    ac_install_sh="$ac_aux_dir/shtool install -c"
2180    break
2181  fi
2182done
2183if test -z "$ac_aux_dir"; then
2184  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2185fi
2186
2187# These three variables are undocumented and unsupported,
2188# and are intended to be withdrawn in a future Autoconf release.
2189# They can cause serious problems if a builder's source tree is in a directory
2190# whose full name contains unusual characters.
2191ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2192ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2193ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2194
2195
2196# Find a good install program.  We prefer a C program (faster),
2197# so one script is as good as another.  But avoid the broken or
2198# incompatible versions:
2199# SysV /etc/install, /usr/sbin/install
2200# SunOS /usr/etc/install
2201# IRIX /sbin/install
2202# AIX /bin/install
2203# AmigaOS /C/install, which installs bootblocks on floppy discs
2204# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2205# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2206# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2207# OS/2's system install, which has a completely different semantic
2208# ./install, which can be erroneously created by make from ./install.sh.
2209# Reject install programs that cannot install multiple files.
2210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2211$as_echo_n "checking for a BSD-compatible install... " >&6; }
2212if test -z "$INSTALL"; then
2213if ${ac_cv_path_install+:} false; then :
2214  $as_echo_n "(cached) " >&6
2215else
2216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2217for as_dir in $PATH
2218do
2219  IFS=$as_save_IFS
2220  test -z "$as_dir" && as_dir=.
2221    # Account for people who put trailing slashes in PATH elements.
2222case $as_dir/ in #((
2223  ./ | .// | /[cC]/* | \
2224  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2225  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2226  /usr/ucb/* ) ;;
2227  *)
2228    # OSF1 and SCO ODT 3.0 have their own names for install.
2229    # Don't use installbsd from OSF since it installs stuff as root
2230    # by default.
2231    for ac_prog in ginstall scoinst install; do
2232      for ac_exec_ext in '' $ac_executable_extensions; do
2233	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2234	  if test $ac_prog = install &&
2235	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2236	    # AIX install.  It has an incompatible calling convention.
2237	    :
2238	  elif test $ac_prog = install &&
2239	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2240	    # program-specific install script used by HP pwplus--don't use.
2241	    :
2242	  else
2243	    rm -rf conftest.one conftest.two conftest.dir
2244	    echo one > conftest.one
2245	    echo two > conftest.two
2246	    mkdir conftest.dir
2247	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2248	      test -s conftest.one && test -s conftest.two &&
2249	      test -s conftest.dir/conftest.one &&
2250	      test -s conftest.dir/conftest.two
2251	    then
2252	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2253	      break 3
2254	    fi
2255	  fi
2256	fi
2257      done
2258    done
2259    ;;
2260esac
2261
2262  done
2263IFS=$as_save_IFS
2264
2265rm -rf conftest.one conftest.two conftest.dir
2266
2267fi
2268  if test "${ac_cv_path_install+set}" = set; then
2269    INSTALL=$ac_cv_path_install
2270  else
2271    # As a last resort, use the slow shell script.  Don't cache a
2272    # value for INSTALL within a source directory, because that will
2273    # break other packages using the cache if that directory is
2274    # removed, or if the value is a relative name.
2275    INSTALL=$ac_install_sh
2276  fi
2277fi
2278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2279$as_echo "$INSTALL" >&6; }
2280
2281# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2282# It thinks the first close brace ends the variable substitution.
2283test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2284
2285test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2286
2287test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2288
2289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2290$as_echo_n "checking whether build environment is sane... " >&6; }
2291# Reject unsafe characters in $srcdir or the absolute working directory
2292# name.  Accept space and tab only in the latter.
2293am_lf='
2294'
2295case `pwd` in
2296  *[\\\"\#\$\&\'\`$am_lf]*)
2297    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2298esac
2299case $srcdir in
2300  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2301    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2302esac
2303
2304# Do 'set' in a subshell so we don't clobber the current shell's
2305# arguments.  Must try -L first in case configure is actually a
2306# symlink; some systems play weird games with the mod time of symlinks
2307# (eg FreeBSD returns the mod time of the symlink's containing
2308# directory).
2309if (
2310   am_has_slept=no
2311   for am_try in 1 2; do
2312     echo "timestamp, slept: $am_has_slept" > conftest.file
2313     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2314     if test "$*" = "X"; then
2315	# -L didn't work.
2316	set X `ls -t "$srcdir/configure" conftest.file`
2317     fi
2318     if test "$*" != "X $srcdir/configure conftest.file" \
2319	&& test "$*" != "X conftest.file $srcdir/configure"; then
2320
2321	# If neither matched, then we have a broken ls.  This can happen
2322	# if, for instance, CONFIG_SHELL is bash and it inherits a
2323	# broken ls alias from the environment.  This has actually
2324	# happened.  Such a system could not be considered "sane".
2325	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2326  alias in your environment" "$LINENO" 5
2327     fi
2328     if test "$2" = conftest.file || test $am_try -eq 2; then
2329       break
2330     fi
2331     # Just in case.
2332     sleep 1
2333     am_has_slept=yes
2334   done
2335   test "$2" = conftest.file
2336   )
2337then
2338   # Ok.
2339   :
2340else
2341   as_fn_error $? "newly created file is older than distributed files!
2342Check your system clock" "$LINENO" 5
2343fi
2344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2345$as_echo "yes" >&6; }
2346# If we didn't sleep, we still need to ensure time stamps of config.status and
2347# generated files are strictly newer.
2348am_sleep_pid=
2349if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2350  ( sleep 1 ) &
2351  am_sleep_pid=$!
2352fi
2353
2354rm -f conftest.file
2355
2356test "$program_prefix" != NONE &&
2357  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2358# Use a double $ so make ignores it.
2359test "$program_suffix" != NONE &&
2360  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2361# Double any \ or $.
2362# By default was `s,x,x', remove it if useless.
2363ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2364program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2365
2366# Expand $ac_aux_dir to an absolute path.
2367am_aux_dir=`cd "$ac_aux_dir" && pwd`
2368
2369if test x"${MISSING+set}" != xset; then
2370  case $am_aux_dir in
2371  *\ * | *\	*)
2372    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2373  *)
2374    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2375  esac
2376fi
2377# Use eval to expand $SHELL
2378if eval "$MISSING --is-lightweight"; then
2379  am_missing_run="$MISSING "
2380else
2381  am_missing_run=
2382  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2383$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2384fi
2385
2386if test x"${install_sh+set}" != xset; then
2387  case $am_aux_dir in
2388  *\ * | *\	*)
2389    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2390  *)
2391    install_sh="\${SHELL} $am_aux_dir/install-sh"
2392  esac
2393fi
2394
2395# Installed binaries are usually stripped using 'strip' when the user
2396# run "make install-strip".  However 'strip' might not be the right
2397# tool to use in cross-compilation environments, therefore Automake
2398# will honor the 'STRIP' environment variable to overrule this program.
2399if test "$cross_compiling" != no; then
2400  if test -n "$ac_tool_prefix"; then
2401  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2402set dummy ${ac_tool_prefix}strip; ac_word=$2
2403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2404$as_echo_n "checking for $ac_word... " >&6; }
2405if ${ac_cv_prog_STRIP+:} false; then :
2406  $as_echo_n "(cached) " >&6
2407else
2408  if test -n "$STRIP"; then
2409  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2410else
2411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412for as_dir in $PATH
2413do
2414  IFS=$as_save_IFS
2415  test -z "$as_dir" && as_dir=.
2416    for ac_exec_ext in '' $ac_executable_extensions; do
2417  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2418    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2419    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2420    break 2
2421  fi
2422done
2423  done
2424IFS=$as_save_IFS
2425
2426fi
2427fi
2428STRIP=$ac_cv_prog_STRIP
2429if test -n "$STRIP"; then
2430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2431$as_echo "$STRIP" >&6; }
2432else
2433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2434$as_echo "no" >&6; }
2435fi
2436
2437
2438fi
2439if test -z "$ac_cv_prog_STRIP"; then
2440  ac_ct_STRIP=$STRIP
2441  # Extract the first word of "strip", so it can be a program name with args.
2442set dummy strip; ac_word=$2
2443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2444$as_echo_n "checking for $ac_word... " >&6; }
2445if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2446  $as_echo_n "(cached) " >&6
2447else
2448  if test -n "$ac_ct_STRIP"; then
2449  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2450else
2451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452for as_dir in $PATH
2453do
2454  IFS=$as_save_IFS
2455  test -z "$as_dir" && as_dir=.
2456    for ac_exec_ext in '' $ac_executable_extensions; do
2457  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2458    ac_cv_prog_ac_ct_STRIP="strip"
2459    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2460    break 2
2461  fi
2462done
2463  done
2464IFS=$as_save_IFS
2465
2466fi
2467fi
2468ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2469if test -n "$ac_ct_STRIP"; then
2470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2471$as_echo "$ac_ct_STRIP" >&6; }
2472else
2473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2474$as_echo "no" >&6; }
2475fi
2476
2477  if test "x$ac_ct_STRIP" = x; then
2478    STRIP=":"
2479  else
2480    case $cross_compiling:$ac_tool_warned in
2481yes:)
2482{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2483$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2484ac_tool_warned=yes ;;
2485esac
2486    STRIP=$ac_ct_STRIP
2487  fi
2488else
2489  STRIP="$ac_cv_prog_STRIP"
2490fi
2491
2492fi
2493INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2494
2495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2496$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2497if test -z "$MKDIR_P"; then
2498  if ${ac_cv_path_mkdir+:} false; then :
2499  $as_echo_n "(cached) " >&6
2500else
2501  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2503do
2504  IFS=$as_save_IFS
2505  test -z "$as_dir" && as_dir=.
2506    for ac_prog in mkdir gmkdir; do
2507	 for ac_exec_ext in '' $ac_executable_extensions; do
2508	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2509	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2510	     'mkdir (GNU coreutils) '* | \
2511	     'mkdir (coreutils) '* | \
2512	     'mkdir (fileutils) '4.1*)
2513	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2514	       break 3;;
2515	   esac
2516	 done
2517       done
2518  done
2519IFS=$as_save_IFS
2520
2521fi
2522
2523  test -d ./--version && rmdir ./--version
2524  if test "${ac_cv_path_mkdir+set}" = set; then
2525    MKDIR_P="$ac_cv_path_mkdir -p"
2526  else
2527    # As a last resort, use the slow shell script.  Don't cache a
2528    # value for MKDIR_P within a source directory, because that will
2529    # break other packages using the cache if that directory is
2530    # removed, or if the value is a relative name.
2531    MKDIR_P="$ac_install_sh -d"
2532  fi
2533fi
2534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2535$as_echo "$MKDIR_P" >&6; }
2536
2537for ac_prog in gawk mawk nawk awk
2538do
2539  # Extract the first word of "$ac_prog", so it can be a program name with args.
2540set dummy $ac_prog; ac_word=$2
2541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2542$as_echo_n "checking for $ac_word... " >&6; }
2543if ${ac_cv_prog_AWK+:} false; then :
2544  $as_echo_n "(cached) " >&6
2545else
2546  if test -n "$AWK"; then
2547  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2548else
2549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550for as_dir in $PATH
2551do
2552  IFS=$as_save_IFS
2553  test -z "$as_dir" && as_dir=.
2554    for ac_exec_ext in '' $ac_executable_extensions; do
2555  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2556    ac_cv_prog_AWK="$ac_prog"
2557    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2558    break 2
2559  fi
2560done
2561  done
2562IFS=$as_save_IFS
2563
2564fi
2565fi
2566AWK=$ac_cv_prog_AWK
2567if test -n "$AWK"; then
2568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2569$as_echo "$AWK" >&6; }
2570else
2571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2572$as_echo "no" >&6; }
2573fi
2574
2575
2576  test -n "$AWK" && break
2577done
2578
2579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2580$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2581set x ${MAKE-make}
2582ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2583if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2584  $as_echo_n "(cached) " >&6
2585else
2586  cat >conftest.make <<\_ACEOF
2587SHELL = /bin/sh
2588all:
2589	@echo '@@@%%%=$(MAKE)=@@@%%%'
2590_ACEOF
2591# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2592case `${MAKE-make} -f conftest.make 2>/dev/null` in
2593  *@@@%%%=?*=@@@%%%*)
2594    eval ac_cv_prog_make_${ac_make}_set=yes;;
2595  *)
2596    eval ac_cv_prog_make_${ac_make}_set=no;;
2597esac
2598rm -f conftest.make
2599fi
2600if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2602$as_echo "yes" >&6; }
2603  SET_MAKE=
2604else
2605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2606$as_echo "no" >&6; }
2607  SET_MAKE="MAKE=${MAKE-make}"
2608fi
2609
2610rm -rf .tst 2>/dev/null
2611mkdir .tst 2>/dev/null
2612if test -d .tst; then
2613  am__leading_dot=.
2614else
2615  am__leading_dot=_
2616fi
2617rmdir .tst 2>/dev/null
2618
2619# Check whether --enable-silent-rules was given.
2620if test "${enable_silent_rules+set}" = set; then :
2621  enableval=$enable_silent_rules;
2622fi
2623
2624case $enable_silent_rules in # (((
2625  yes) AM_DEFAULT_VERBOSITY=0;;
2626   no) AM_DEFAULT_VERBOSITY=1;;
2627    *) AM_DEFAULT_VERBOSITY=1;;
2628esac
2629am_make=${MAKE-make}
2630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2631$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2632if ${am_cv_make_support_nested_variables+:} false; then :
2633  $as_echo_n "(cached) " >&6
2634else
2635  if $as_echo 'TRUE=$(BAR$(V))
2636BAR0=false
2637BAR1=true
2638V=1
2639am__doit:
2640	@$(TRUE)
2641.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2642  am_cv_make_support_nested_variables=yes
2643else
2644  am_cv_make_support_nested_variables=no
2645fi
2646fi
2647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2648$as_echo "$am_cv_make_support_nested_variables" >&6; }
2649if test $am_cv_make_support_nested_variables = yes; then
2650    AM_V='$(V)'
2651  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2652else
2653  AM_V=$AM_DEFAULT_VERBOSITY
2654  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2655fi
2656AM_BACKSLASH='\'
2657
2658if test "`cd $srcdir && pwd`" != "`pwd`"; then
2659  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2660  # is not polluted with repeated "-I."
2661  am__isrc=' -I$(srcdir)'
2662  # test to see if srcdir already configured
2663  if test -f $srcdir/config.status; then
2664    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2665  fi
2666fi
2667
2668# test whether we have cygpath
2669if test -z "$CYGPATH_W"; then
2670  if (cygpath --version) >/dev/null 2>/dev/null; then
2671    CYGPATH_W='cygpath -w'
2672  else
2673    CYGPATH_W=echo
2674  fi
2675fi
2676
2677
2678# Define the identity of the package.
2679 PACKAGE='xkbevd'
2680 VERSION='1.1.4'
2681
2682
2683cat >>confdefs.h <<_ACEOF
2684#define PACKAGE "$PACKAGE"
2685_ACEOF
2686
2687
2688cat >>confdefs.h <<_ACEOF
2689#define VERSION "$VERSION"
2690_ACEOF
2691
2692# Some tools Automake needs.
2693
2694ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2695
2696
2697AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2698
2699
2700AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2701
2702
2703AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2704
2705
2706MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2707
2708# For better backward compatibility.  To be removed once Automake 1.9.x
2709# dies out for good.  For more background, see:
2710# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2711# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2712mkdir_p='$(MKDIR_P)'
2713
2714# We need awk for the "check" target (and possibly the TAP driver).  The
2715# system "awk" is bad on some platforms.
2716# Always define AMTAR for backward compatibility.  Yes, it's still used
2717# in the wild :-(  We should find a proper way to deprecate it ...
2718AMTAR='$${TAR-tar}'
2719
2720
2721# We'll loop over all known methods to create a tar archive until one works.
2722_am_tools='gnutar  pax cpio none'
2723
2724am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2725
2726
2727
2728
2729
2730
2731# POSIX will say in a future version that running "rm -f" with no argument
2732# is OK; and we want to be able to make that assumption in our Makefile
2733# recipes.  So use an aggressive probe to check that the usage we want is
2734# actually supported "in the wild" to an acceptable degree.
2735# See automake bug#10828.
2736# To make any issue more visible, cause the running configure to be aborted
2737# by default if the 'rm' program in use doesn't match our expectations; the
2738# user can still override this though.
2739if rm -f && rm -fr && rm -rf; then : OK; else
2740  cat >&2 <<'END'
2741Oops!
2742
2743Your 'rm' program seems unable to run without file operands specified
2744on the command line, even when the '-f' option is present.  This is contrary
2745to the behaviour of most rm programs out there, and not conforming with
2746the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2747
2748Please tell bug-automake@gnu.org about your system, including the value
2749of your $PATH and any error possibly output before this message.  This
2750can help us improve future automake versions.
2751
2752END
2753  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2754    echo 'Configuration will proceed anyway, since you have set the' >&2
2755    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2756    echo >&2
2757  else
2758    cat >&2 <<'END'
2759Aborting the configuration process, to ensure you take notice of the issue.
2760
2761You can download and install GNU coreutils to get an 'rm' implementation
2762that behaves properly: <http://www.gnu.org/software/coreutils/>.
2763
2764If you want to complete the configuration process using your problematic
2765'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2766to "yes", and re-run configure.
2767
2768END
2769    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2770  fi
2771fi
2772
2773
2774# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786DEPDIR="${am__leading_dot}deps"
2787
2788ac_config_commands="$ac_config_commands depfiles"
2789
2790
2791am_make=${MAKE-make}
2792cat > confinc << 'END'
2793am__doit:
2794	@echo this is the am__doit target
2795.PHONY: am__doit
2796END
2797# If we don't find an include directive, just comment out the code.
2798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2799$as_echo_n "checking for style of include used by $am_make... " >&6; }
2800am__include="#"
2801am__quote=
2802_am_result=none
2803# First try GNU make style include.
2804echo "include confinc" > confmf
2805# Ignore all kinds of additional output from 'make'.
2806case `$am_make -s -f confmf 2> /dev/null` in #(
2807*the\ am__doit\ target*)
2808  am__include=include
2809  am__quote=
2810  _am_result=GNU
2811  ;;
2812esac
2813# Now try BSD make style include.
2814if test "$am__include" = "#"; then
2815   echo '.include "confinc"' > confmf
2816   case `$am_make -s -f confmf 2> /dev/null` in #(
2817   *the\ am__doit\ target*)
2818     am__include=.include
2819     am__quote="\""
2820     _am_result=BSD
2821     ;;
2822   esac
2823fi
2824
2825
2826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2827$as_echo "$_am_result" >&6; }
2828rm -f confinc confmf
2829
2830# Check whether --enable-dependency-tracking was given.
2831if test "${enable_dependency_tracking+set}" = set; then :
2832  enableval=$enable_dependency_tracking;
2833fi
2834
2835if test "x$enable_dependency_tracking" != xno; then
2836  am_depcomp="$ac_aux_dir/depcomp"
2837  AMDEPBACKSLASH='\'
2838  am__nodep='_no'
2839fi
2840 if test "x$enable_dependency_tracking" != xno; then
2841  AMDEP_TRUE=
2842  AMDEP_FALSE='#'
2843else
2844  AMDEP_TRUE='#'
2845  AMDEP_FALSE=
2846fi
2847
2848
2849ac_ext=c
2850ac_cpp='$CPP $CPPFLAGS'
2851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2853ac_compiler_gnu=$ac_cv_c_compiler_gnu
2854if test -n "$ac_tool_prefix"; then
2855  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2856set dummy ${ac_tool_prefix}gcc; ac_word=$2
2857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2858$as_echo_n "checking for $ac_word... " >&6; }
2859if ${ac_cv_prog_CC+:} false; then :
2860  $as_echo_n "(cached) " >&6
2861else
2862  if test -n "$CC"; then
2863  ac_cv_prog_CC="$CC" # Let the user override the test.
2864else
2865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866for as_dir in $PATH
2867do
2868  IFS=$as_save_IFS
2869  test -z "$as_dir" && as_dir=.
2870    for ac_exec_ext in '' $ac_executable_extensions; do
2871  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2872    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2873    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2874    break 2
2875  fi
2876done
2877  done
2878IFS=$as_save_IFS
2879
2880fi
2881fi
2882CC=$ac_cv_prog_CC
2883if test -n "$CC"; then
2884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2885$as_echo "$CC" >&6; }
2886else
2887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888$as_echo "no" >&6; }
2889fi
2890
2891
2892fi
2893if test -z "$ac_cv_prog_CC"; then
2894  ac_ct_CC=$CC
2895  # Extract the first word of "gcc", so it can be a program name with args.
2896set dummy gcc; ac_word=$2
2897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2898$as_echo_n "checking for $ac_word... " >&6; }
2899if ${ac_cv_prog_ac_ct_CC+:} false; then :
2900  $as_echo_n "(cached) " >&6
2901else
2902  if test -n "$ac_ct_CC"; then
2903  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2904else
2905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906for as_dir in $PATH
2907do
2908  IFS=$as_save_IFS
2909  test -z "$as_dir" && as_dir=.
2910    for ac_exec_ext in '' $ac_executable_extensions; do
2911  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2912    ac_cv_prog_ac_ct_CC="gcc"
2913    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2914    break 2
2915  fi
2916done
2917  done
2918IFS=$as_save_IFS
2919
2920fi
2921fi
2922ac_ct_CC=$ac_cv_prog_ac_ct_CC
2923if test -n "$ac_ct_CC"; then
2924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2925$as_echo "$ac_ct_CC" >&6; }
2926else
2927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928$as_echo "no" >&6; }
2929fi
2930
2931  if test "x$ac_ct_CC" = x; then
2932    CC=""
2933  else
2934    case $cross_compiling:$ac_tool_warned in
2935yes:)
2936{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2937$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2938ac_tool_warned=yes ;;
2939esac
2940    CC=$ac_ct_CC
2941  fi
2942else
2943  CC="$ac_cv_prog_CC"
2944fi
2945
2946if test -z "$CC"; then
2947          if test -n "$ac_tool_prefix"; then
2948    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2949set dummy ${ac_tool_prefix}cc; ac_word=$2
2950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2951$as_echo_n "checking for $ac_word... " >&6; }
2952if ${ac_cv_prog_CC+:} false; then :
2953  $as_echo_n "(cached) " >&6
2954else
2955  if test -n "$CC"; then
2956  ac_cv_prog_CC="$CC" # Let the user override the test.
2957else
2958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959for as_dir in $PATH
2960do
2961  IFS=$as_save_IFS
2962  test -z "$as_dir" && as_dir=.
2963    for ac_exec_ext in '' $ac_executable_extensions; do
2964  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2965    ac_cv_prog_CC="${ac_tool_prefix}cc"
2966    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2967    break 2
2968  fi
2969done
2970  done
2971IFS=$as_save_IFS
2972
2973fi
2974fi
2975CC=$ac_cv_prog_CC
2976if test -n "$CC"; then
2977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2978$as_echo "$CC" >&6; }
2979else
2980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981$as_echo "no" >&6; }
2982fi
2983
2984
2985  fi
2986fi
2987if test -z "$CC"; then
2988  # Extract the first word of "cc", so it can be a program name with args.
2989set dummy cc; ac_word=$2
2990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2991$as_echo_n "checking for $ac_word... " >&6; }
2992if ${ac_cv_prog_CC+:} false; then :
2993  $as_echo_n "(cached) " >&6
2994else
2995  if test -n "$CC"; then
2996  ac_cv_prog_CC="$CC" # Let the user override the test.
2997else
2998  ac_prog_rejected=no
2999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000for as_dir in $PATH
3001do
3002  IFS=$as_save_IFS
3003  test -z "$as_dir" && as_dir=.
3004    for ac_exec_ext in '' $ac_executable_extensions; do
3005  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3006    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3007       ac_prog_rejected=yes
3008       continue
3009     fi
3010    ac_cv_prog_CC="cc"
3011    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3012    break 2
3013  fi
3014done
3015  done
3016IFS=$as_save_IFS
3017
3018if test $ac_prog_rejected = yes; then
3019  # We found a bogon in the path, so make sure we never use it.
3020  set dummy $ac_cv_prog_CC
3021  shift
3022  if test $# != 0; then
3023    # We chose a different compiler from the bogus one.
3024    # However, it has the same basename, so the bogon will be chosen
3025    # first if we set CC to just the basename; use the full file name.
3026    shift
3027    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3028  fi
3029fi
3030fi
3031fi
3032CC=$ac_cv_prog_CC
3033if test -n "$CC"; then
3034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3035$as_echo "$CC" >&6; }
3036else
3037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038$as_echo "no" >&6; }
3039fi
3040
3041
3042fi
3043if test -z "$CC"; then
3044  if test -n "$ac_tool_prefix"; then
3045  for ac_prog in cl.exe
3046  do
3047    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3048set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3050$as_echo_n "checking for $ac_word... " >&6; }
3051if ${ac_cv_prog_CC+:} false; then :
3052  $as_echo_n "(cached) " >&6
3053else
3054  if test -n "$CC"; then
3055  ac_cv_prog_CC="$CC" # Let the user override the test.
3056else
3057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058for as_dir in $PATH
3059do
3060  IFS=$as_save_IFS
3061  test -z "$as_dir" && as_dir=.
3062    for ac_exec_ext in '' $ac_executable_extensions; do
3063  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3064    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3065    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3066    break 2
3067  fi
3068done
3069  done
3070IFS=$as_save_IFS
3071
3072fi
3073fi
3074CC=$ac_cv_prog_CC
3075if test -n "$CC"; then
3076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3077$as_echo "$CC" >&6; }
3078else
3079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080$as_echo "no" >&6; }
3081fi
3082
3083
3084    test -n "$CC" && break
3085  done
3086fi
3087if test -z "$CC"; then
3088  ac_ct_CC=$CC
3089  for ac_prog in cl.exe
3090do
3091  # Extract the first word of "$ac_prog", so it can be a program name with args.
3092set dummy $ac_prog; ac_word=$2
3093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3094$as_echo_n "checking for $ac_word... " >&6; }
3095if ${ac_cv_prog_ac_ct_CC+:} false; then :
3096  $as_echo_n "(cached) " >&6
3097else
3098  if test -n "$ac_ct_CC"; then
3099  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3100else
3101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102for as_dir in $PATH
3103do
3104  IFS=$as_save_IFS
3105  test -z "$as_dir" && as_dir=.
3106    for ac_exec_ext in '' $ac_executable_extensions; do
3107  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3108    ac_cv_prog_ac_ct_CC="$ac_prog"
3109    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3110    break 2
3111  fi
3112done
3113  done
3114IFS=$as_save_IFS
3115
3116fi
3117fi
3118ac_ct_CC=$ac_cv_prog_ac_ct_CC
3119if test -n "$ac_ct_CC"; then
3120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3121$as_echo "$ac_ct_CC" >&6; }
3122else
3123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3124$as_echo "no" >&6; }
3125fi
3126
3127
3128  test -n "$ac_ct_CC" && break
3129done
3130
3131  if test "x$ac_ct_CC" = x; then
3132    CC=""
3133  else
3134    case $cross_compiling:$ac_tool_warned in
3135yes:)
3136{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3137$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3138ac_tool_warned=yes ;;
3139esac
3140    CC=$ac_ct_CC
3141  fi
3142fi
3143
3144fi
3145
3146
3147test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3148$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3149as_fn_error $? "no acceptable C compiler found in \$PATH
3150See \`config.log' for more details" "$LINENO" 5; }
3151
3152# Provide some information about the compiler.
3153$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3154set X $ac_compile
3155ac_compiler=$2
3156for ac_option in --version -v -V -qversion; do
3157  { { ac_try="$ac_compiler $ac_option >&5"
3158case "(($ac_try" in
3159  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160  *) ac_try_echo=$ac_try;;
3161esac
3162eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3163$as_echo "$ac_try_echo"; } >&5
3164  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3165  ac_status=$?
3166  if test -s conftest.err; then
3167    sed '10a\
3168... rest of stderr output deleted ...
3169         10q' conftest.err >conftest.er1
3170    cat conftest.er1 >&5
3171  fi
3172  rm -f conftest.er1 conftest.err
3173  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3174  test $ac_status = 0; }
3175done
3176
3177cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3178/* end confdefs.h.  */
3179
3180int
3181main ()
3182{
3183
3184  ;
3185  return 0;
3186}
3187_ACEOF
3188ac_clean_files_save=$ac_clean_files
3189ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3190# Try to create an executable without -o first, disregard a.out.
3191# It will help us diagnose broken compilers, and finding out an intuition
3192# of exeext.
3193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3194$as_echo_n "checking whether the C compiler works... " >&6; }
3195ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3196
3197# The possible output files:
3198ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3199
3200ac_rmfiles=
3201for ac_file in $ac_files
3202do
3203  case $ac_file in
3204    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3205    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3206  esac
3207done
3208rm -f $ac_rmfiles
3209
3210if { { ac_try="$ac_link_default"
3211case "(($ac_try" in
3212  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213  *) ac_try_echo=$ac_try;;
3214esac
3215eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3216$as_echo "$ac_try_echo"; } >&5
3217  (eval "$ac_link_default") 2>&5
3218  ac_status=$?
3219  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3220  test $ac_status = 0; }; then :
3221  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3222# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3223# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3224# so that the user can short-circuit this test for compilers unknown to
3225# Autoconf.
3226for ac_file in $ac_files ''
3227do
3228  test -f "$ac_file" || continue
3229  case $ac_file in
3230    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3231	;;
3232    [ab].out )
3233	# We found the default executable, but exeext='' is most
3234	# certainly right.
3235	break;;
3236    *.* )
3237	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3238	then :; else
3239	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3240	fi
3241	# We set ac_cv_exeext here because the later test for it is not
3242	# safe: cross compilers may not add the suffix if given an `-o'
3243	# argument, so we may need to know it at that point already.
3244	# Even if this section looks crufty: it has the advantage of
3245	# actually working.
3246	break;;
3247    * )
3248	break;;
3249  esac
3250done
3251test "$ac_cv_exeext" = no && ac_cv_exeext=
3252
3253else
3254  ac_file=''
3255fi
3256if test -z "$ac_file"; then :
3257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3258$as_echo "no" >&6; }
3259$as_echo "$as_me: failed program was:" >&5
3260sed 's/^/| /' conftest.$ac_ext >&5
3261
3262{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3263$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3264as_fn_error 77 "C compiler cannot create executables
3265See \`config.log' for more details" "$LINENO" 5; }
3266else
3267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3268$as_echo "yes" >&6; }
3269fi
3270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3271$as_echo_n "checking for C compiler default output file name... " >&6; }
3272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3273$as_echo "$ac_file" >&6; }
3274ac_exeext=$ac_cv_exeext
3275
3276rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3277ac_clean_files=$ac_clean_files_save
3278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3279$as_echo_n "checking for suffix of executables... " >&6; }
3280if { { ac_try="$ac_link"
3281case "(($ac_try" in
3282  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283  *) ac_try_echo=$ac_try;;
3284esac
3285eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3286$as_echo "$ac_try_echo"; } >&5
3287  (eval "$ac_link") 2>&5
3288  ac_status=$?
3289  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3290  test $ac_status = 0; }; then :
3291  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3292# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3293# work properly (i.e., refer to `conftest.exe'), while it won't with
3294# `rm'.
3295for ac_file in conftest.exe conftest conftest.*; do
3296  test -f "$ac_file" || continue
3297  case $ac_file in
3298    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3299    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3300	  break;;
3301    * ) break;;
3302  esac
3303done
3304else
3305  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3306$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3307as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3308See \`config.log' for more details" "$LINENO" 5; }
3309fi
3310rm -f conftest conftest$ac_cv_exeext
3311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3312$as_echo "$ac_cv_exeext" >&6; }
3313
3314rm -f conftest.$ac_ext
3315EXEEXT=$ac_cv_exeext
3316ac_exeext=$EXEEXT
3317cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3318/* end confdefs.h.  */
3319#include <stdio.h>
3320int
3321main ()
3322{
3323FILE *f = fopen ("conftest.out", "w");
3324 return ferror (f) || fclose (f) != 0;
3325
3326  ;
3327  return 0;
3328}
3329_ACEOF
3330ac_clean_files="$ac_clean_files conftest.out"
3331# Check that the compiler produces executables we can run.  If not, either
3332# the compiler is broken, or we cross compile.
3333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3334$as_echo_n "checking whether we are cross compiling... " >&6; }
3335if test "$cross_compiling" != yes; then
3336  { { ac_try="$ac_link"
3337case "(($ac_try" in
3338  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339  *) ac_try_echo=$ac_try;;
3340esac
3341eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3342$as_echo "$ac_try_echo"; } >&5
3343  (eval "$ac_link") 2>&5
3344  ac_status=$?
3345  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3346  test $ac_status = 0; }
3347  if { ac_try='./conftest$ac_cv_exeext'
3348  { { case "(($ac_try" in
3349  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350  *) ac_try_echo=$ac_try;;
3351esac
3352eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3353$as_echo "$ac_try_echo"; } >&5
3354  (eval "$ac_try") 2>&5
3355  ac_status=$?
3356  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3357  test $ac_status = 0; }; }; then
3358    cross_compiling=no
3359  else
3360    if test "$cross_compiling" = maybe; then
3361	cross_compiling=yes
3362    else
3363	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3364$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3365as_fn_error $? "cannot run C compiled programs.
3366If you meant to cross compile, use \`--host'.
3367See \`config.log' for more details" "$LINENO" 5; }
3368    fi
3369  fi
3370fi
3371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3372$as_echo "$cross_compiling" >&6; }
3373
3374rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3375ac_clean_files=$ac_clean_files_save
3376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3377$as_echo_n "checking for suffix of object files... " >&6; }
3378if ${ac_cv_objext+:} false; then :
3379  $as_echo_n "(cached) " >&6
3380else
3381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382/* end confdefs.h.  */
3383
3384int
3385main ()
3386{
3387
3388  ;
3389  return 0;
3390}
3391_ACEOF
3392rm -f conftest.o conftest.obj
3393if { { ac_try="$ac_compile"
3394case "(($ac_try" in
3395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396  *) ac_try_echo=$ac_try;;
3397esac
3398eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3399$as_echo "$ac_try_echo"; } >&5
3400  (eval "$ac_compile") 2>&5
3401  ac_status=$?
3402  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3403  test $ac_status = 0; }; then :
3404  for ac_file in conftest.o conftest.obj conftest.*; do
3405  test -f "$ac_file" || continue;
3406  case $ac_file in
3407    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3408    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3409       break;;
3410  esac
3411done
3412else
3413  $as_echo "$as_me: failed program was:" >&5
3414sed 's/^/| /' conftest.$ac_ext >&5
3415
3416{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3417$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3418as_fn_error $? "cannot compute suffix of object files: cannot compile
3419See \`config.log' for more details" "$LINENO" 5; }
3420fi
3421rm -f conftest.$ac_cv_objext conftest.$ac_ext
3422fi
3423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3424$as_echo "$ac_cv_objext" >&6; }
3425OBJEXT=$ac_cv_objext
3426ac_objext=$OBJEXT
3427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3428$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3429if ${ac_cv_c_compiler_gnu+:} false; then :
3430  $as_echo_n "(cached) " >&6
3431else
3432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433/* end confdefs.h.  */
3434
3435int
3436main ()
3437{
3438#ifndef __GNUC__
3439       choke me
3440#endif
3441
3442  ;
3443  return 0;
3444}
3445_ACEOF
3446if ac_fn_c_try_compile "$LINENO"; then :
3447  ac_compiler_gnu=yes
3448else
3449  ac_compiler_gnu=no
3450fi
3451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3452ac_cv_c_compiler_gnu=$ac_compiler_gnu
3453
3454fi
3455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3456$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3457if test $ac_compiler_gnu = yes; then
3458  GCC=yes
3459else
3460  GCC=
3461fi
3462ac_test_CFLAGS=${CFLAGS+set}
3463ac_save_CFLAGS=$CFLAGS
3464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3465$as_echo_n "checking whether $CC accepts -g... " >&6; }
3466if ${ac_cv_prog_cc_g+:} false; then :
3467  $as_echo_n "(cached) " >&6
3468else
3469  ac_save_c_werror_flag=$ac_c_werror_flag
3470   ac_c_werror_flag=yes
3471   ac_cv_prog_cc_g=no
3472   CFLAGS="-g"
3473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3474/* end confdefs.h.  */
3475
3476int
3477main ()
3478{
3479
3480  ;
3481  return 0;
3482}
3483_ACEOF
3484if ac_fn_c_try_compile "$LINENO"; then :
3485  ac_cv_prog_cc_g=yes
3486else
3487  CFLAGS=""
3488      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489/* end confdefs.h.  */
3490
3491int
3492main ()
3493{
3494
3495  ;
3496  return 0;
3497}
3498_ACEOF
3499if ac_fn_c_try_compile "$LINENO"; then :
3500
3501else
3502  ac_c_werror_flag=$ac_save_c_werror_flag
3503	 CFLAGS="-g"
3504	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505/* end confdefs.h.  */
3506
3507int
3508main ()
3509{
3510
3511  ;
3512  return 0;
3513}
3514_ACEOF
3515if ac_fn_c_try_compile "$LINENO"; then :
3516  ac_cv_prog_cc_g=yes
3517fi
3518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3519fi
3520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3521fi
3522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3523   ac_c_werror_flag=$ac_save_c_werror_flag
3524fi
3525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3526$as_echo "$ac_cv_prog_cc_g" >&6; }
3527if test "$ac_test_CFLAGS" = set; then
3528  CFLAGS=$ac_save_CFLAGS
3529elif test $ac_cv_prog_cc_g = yes; then
3530  if test "$GCC" = yes; then
3531    CFLAGS="-g -O2"
3532  else
3533    CFLAGS="-g"
3534  fi
3535else
3536  if test "$GCC" = yes; then
3537    CFLAGS="-O2"
3538  else
3539    CFLAGS=
3540  fi
3541fi
3542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3543$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3544if ${ac_cv_prog_cc_c89+:} false; then :
3545  $as_echo_n "(cached) " >&6
3546else
3547  ac_cv_prog_cc_c89=no
3548ac_save_CC=$CC
3549cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550/* end confdefs.h.  */
3551#include <stdarg.h>
3552#include <stdio.h>
3553struct stat;
3554/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3555struct buf { int x; };
3556FILE * (*rcsopen) (struct buf *, struct stat *, int);
3557static char *e (p, i)
3558     char **p;
3559     int i;
3560{
3561  return p[i];
3562}
3563static char *f (char * (*g) (char **, int), char **p, ...)
3564{
3565  char *s;
3566  va_list v;
3567  va_start (v,p);
3568  s = g (p, va_arg (v,int));
3569  va_end (v);
3570  return s;
3571}
3572
3573/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3574   function prototypes and stuff, but not '\xHH' hex character constants.
3575   These don't provoke an error unfortunately, instead are silently treated
3576   as 'x'.  The following induces an error, until -std is added to get
3577   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3578   array size at least.  It's necessary to write '\x00'==0 to get something
3579   that's true only with -std.  */
3580int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3581
3582/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3583   inside strings and character constants.  */
3584#define FOO(x) 'x'
3585int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3586
3587int test (int i, double x);
3588struct s1 {int (*f) (int a);};
3589struct s2 {int (*f) (double a);};
3590int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3591int argc;
3592char **argv;
3593int
3594main ()
3595{
3596return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3597  ;
3598  return 0;
3599}
3600_ACEOF
3601for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3602	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3603do
3604  CC="$ac_save_CC $ac_arg"
3605  if ac_fn_c_try_compile "$LINENO"; then :
3606  ac_cv_prog_cc_c89=$ac_arg
3607fi
3608rm -f core conftest.err conftest.$ac_objext
3609  test "x$ac_cv_prog_cc_c89" != "xno" && break
3610done
3611rm -f conftest.$ac_ext
3612CC=$ac_save_CC
3613
3614fi
3615# AC_CACHE_VAL
3616case "x$ac_cv_prog_cc_c89" in
3617  x)
3618    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3619$as_echo "none needed" >&6; } ;;
3620  xno)
3621    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3622$as_echo "unsupported" >&6; } ;;
3623  *)
3624    CC="$CC $ac_cv_prog_cc_c89"
3625    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3626$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3627esac
3628if test "x$ac_cv_prog_cc_c89" != xno; then :
3629
3630fi
3631
3632ac_ext=c
3633ac_cpp='$CPP $CPPFLAGS'
3634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3636ac_compiler_gnu=$ac_cv_c_compiler_gnu
3637
3638ac_ext=c
3639ac_cpp='$CPP $CPPFLAGS'
3640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3642ac_compiler_gnu=$ac_cv_c_compiler_gnu
3643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3644$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3645if ${am_cv_prog_cc_c_o+:} false; then :
3646  $as_echo_n "(cached) " >&6
3647else
3648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649/* end confdefs.h.  */
3650
3651int
3652main ()
3653{
3654
3655  ;
3656  return 0;
3657}
3658_ACEOF
3659  # Make sure it works both with $CC and with simple cc.
3660  # Following AC_PROG_CC_C_O, we do the test twice because some
3661  # compilers refuse to overwrite an existing .o file with -o,
3662  # though they will create one.
3663  am_cv_prog_cc_c_o=yes
3664  for am_i in 1 2; do
3665    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3666   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3667   ac_status=$?
3668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669   (exit $ac_status); } \
3670         && test -f conftest2.$ac_objext; then
3671      : OK
3672    else
3673      am_cv_prog_cc_c_o=no
3674      break
3675    fi
3676  done
3677  rm -f core conftest*
3678  unset am_i
3679fi
3680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3681$as_echo "$am_cv_prog_cc_c_o" >&6; }
3682if test "$am_cv_prog_cc_c_o" != yes; then
3683   # Losing compiler, so override with the script.
3684   # FIXME: It is wrong to rewrite CC.
3685   # But if we don't then we get into trouble of one sort or another.
3686   # A longer-term fix would be to have automake use am__CC in this case,
3687   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3688   CC="$am_aux_dir/compile $CC"
3689fi
3690ac_ext=c
3691ac_cpp='$CPP $CPPFLAGS'
3692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3694ac_compiler_gnu=$ac_cv_c_compiler_gnu
3695
3696
3697depcc="$CC"   am_compiler_list=
3698
3699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3700$as_echo_n "checking dependency style of $depcc... " >&6; }
3701if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3702  $as_echo_n "(cached) " >&6
3703else
3704  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3705  # We make a subdir and do the tests there.  Otherwise we can end up
3706  # making bogus files that we don't know about and never remove.  For
3707  # instance it was reported that on HP-UX the gcc test will end up
3708  # making a dummy file named 'D' -- because '-MD' means "put the output
3709  # in D".
3710  rm -rf conftest.dir
3711  mkdir conftest.dir
3712  # Copy depcomp to subdir because otherwise we won't find it if we're
3713  # using a relative directory.
3714  cp "$am_depcomp" conftest.dir
3715  cd conftest.dir
3716  # We will build objects and dependencies in a subdirectory because
3717  # it helps to detect inapplicable dependency modes.  For instance
3718  # both Tru64's cc and ICC support -MD to output dependencies as a
3719  # side effect of compilation, but ICC will put the dependencies in
3720  # the current directory while Tru64 will put them in the object
3721  # directory.
3722  mkdir sub
3723
3724  am_cv_CC_dependencies_compiler_type=none
3725  if test "$am_compiler_list" = ""; then
3726     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3727  fi
3728  am__universal=false
3729  case " $depcc " in #(
3730     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3731     esac
3732
3733  for depmode in $am_compiler_list; do
3734    # Setup a source with many dependencies, because some compilers
3735    # like to wrap large dependency lists on column 80 (with \), and
3736    # we should not choose a depcomp mode which is confused by this.
3737    #
3738    # We need to recreate these files for each test, as the compiler may
3739    # overwrite some of them when testing with obscure command lines.
3740    # This happens at least with the AIX C compiler.
3741    : > sub/conftest.c
3742    for i in 1 2 3 4 5 6; do
3743      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3744      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3745      # Solaris 10 /bin/sh.
3746      echo '/* dummy */' > sub/conftst$i.h
3747    done
3748    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3749
3750    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3751    # mode.  It turns out that the SunPro C++ compiler does not properly
3752    # handle '-M -o', and we need to detect this.  Also, some Intel
3753    # versions had trouble with output in subdirs.
3754    am__obj=sub/conftest.${OBJEXT-o}
3755    am__minus_obj="-o $am__obj"
3756    case $depmode in
3757    gcc)
3758      # This depmode causes a compiler race in universal mode.
3759      test "$am__universal" = false || continue
3760      ;;
3761    nosideeffect)
3762      # After this tag, mechanisms are not by side-effect, so they'll
3763      # only be used when explicitly requested.
3764      if test "x$enable_dependency_tracking" = xyes; then
3765	continue
3766      else
3767	break
3768      fi
3769      ;;
3770    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3771      # This compiler won't grok '-c -o', but also, the minuso test has
3772      # not run yet.  These depmodes are late enough in the game, and
3773      # so weak that their functioning should not be impacted.
3774      am__obj=conftest.${OBJEXT-o}
3775      am__minus_obj=
3776      ;;
3777    none) break ;;
3778    esac
3779    if depmode=$depmode \
3780       source=sub/conftest.c object=$am__obj \
3781       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3782       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3783         >/dev/null 2>conftest.err &&
3784       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3785       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3786       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3787       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3788      # icc doesn't choke on unknown options, it will just issue warnings
3789      # or remarks (even with -Werror).  So we grep stderr for any message
3790      # that says an option was ignored or not supported.
3791      # When given -MP, icc 7.0 and 7.1 complain thusly:
3792      #   icc: Command line warning: ignoring option '-M'; no argument required
3793      # The diagnosis changed in icc 8.0:
3794      #   icc: Command line remark: option '-MP' not supported
3795      if (grep 'ignoring option' conftest.err ||
3796          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3797        am_cv_CC_dependencies_compiler_type=$depmode
3798        break
3799      fi
3800    fi
3801  done
3802
3803  cd ..
3804  rm -rf conftest.dir
3805else
3806  am_cv_CC_dependencies_compiler_type=none
3807fi
3808
3809fi
3810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3811$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3812CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3813
3814 if
3815  test "x$enable_dependency_tracking" != xno \
3816  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3817  am__fastdepCC_TRUE=
3818  am__fastdepCC_FALSE='#'
3819else
3820  am__fastdepCC_TRUE='#'
3821  am__fastdepCC_FALSE=
3822fi
3823
3824
3825   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3826$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3827if ${ac_cv_prog_cc_c99+:} false; then :
3828  $as_echo_n "(cached) " >&6
3829else
3830  ac_cv_prog_cc_c99=no
3831ac_save_CC=$CC
3832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833/* end confdefs.h.  */
3834#include <stdarg.h>
3835#include <stdbool.h>
3836#include <stdlib.h>
3837#include <wchar.h>
3838#include <stdio.h>
3839
3840// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3841#define debug(...) fprintf (stderr, __VA_ARGS__)
3842#define showlist(...) puts (#__VA_ARGS__)
3843#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3844static void
3845test_varargs_macros (void)
3846{
3847  int x = 1234;
3848  int y = 5678;
3849  debug ("Flag");
3850  debug ("X = %d\n", x);
3851  showlist (The first, second, and third items.);
3852  report (x>y, "x is %d but y is %d", x, y);
3853}
3854
3855// Check long long types.
3856#define BIG64 18446744073709551615ull
3857#define BIG32 4294967295ul
3858#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3859#if !BIG_OK
3860  your preprocessor is broken;
3861#endif
3862#if BIG_OK
3863#else
3864  your preprocessor is broken;
3865#endif
3866static long long int bignum = -9223372036854775807LL;
3867static unsigned long long int ubignum = BIG64;
3868
3869struct incomplete_array
3870{
3871  int datasize;
3872  double data[];
3873};
3874
3875struct named_init {
3876  int number;
3877  const wchar_t *name;
3878  double average;
3879};
3880
3881typedef const char *ccp;
3882
3883static inline int
3884test_restrict (ccp restrict text)
3885{
3886  // See if C++-style comments work.
3887  // Iterate through items via the restricted pointer.
3888  // Also check for declarations in for loops.
3889  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3890    continue;
3891  return 0;
3892}
3893
3894// Check varargs and va_copy.
3895static void
3896test_varargs (const char *format, ...)
3897{
3898  va_list args;
3899  va_start (args, format);
3900  va_list args_copy;
3901  va_copy (args_copy, args);
3902
3903  const char *str;
3904  int number;
3905  float fnumber;
3906
3907  while (*format)
3908    {
3909      switch (*format++)
3910	{
3911	case 's': // string
3912	  str = va_arg (args_copy, const char *);
3913	  break;
3914	case 'd': // int
3915	  number = va_arg (args_copy, int);
3916	  break;
3917	case 'f': // float
3918	  fnumber = va_arg (args_copy, double);
3919	  break;
3920	default:
3921	  break;
3922	}
3923    }
3924  va_end (args_copy);
3925  va_end (args);
3926}
3927
3928int
3929main ()
3930{
3931
3932  // Check bool.
3933  _Bool success = false;
3934
3935  // Check restrict.
3936  if (test_restrict ("String literal") == 0)
3937    success = true;
3938  char *restrict newvar = "Another string";
3939
3940  // Check varargs.
3941  test_varargs ("s, d' f .", "string", 65, 34.234);
3942  test_varargs_macros ();
3943
3944  // Check flexible array members.
3945  struct incomplete_array *ia =
3946    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3947  ia->datasize = 10;
3948  for (int i = 0; i < ia->datasize; ++i)
3949    ia->data[i] = i * 1.234;
3950
3951  // Check named initializers.
3952  struct named_init ni = {
3953    .number = 34,
3954    .name = L"Test wide string",
3955    .average = 543.34343,
3956  };
3957
3958  ni.number = 58;
3959
3960  int dynamic_array[ni.number];
3961  dynamic_array[ni.number - 1] = 543;
3962
3963  // work around unused variable warnings
3964  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3965	  || dynamic_array[ni.number - 1] != 543);
3966
3967  ;
3968  return 0;
3969}
3970_ACEOF
3971for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3972do
3973  CC="$ac_save_CC $ac_arg"
3974  if ac_fn_c_try_compile "$LINENO"; then :
3975  ac_cv_prog_cc_c99=$ac_arg
3976fi
3977rm -f core conftest.err conftest.$ac_objext
3978  test "x$ac_cv_prog_cc_c99" != "xno" && break
3979done
3980rm -f conftest.$ac_ext
3981CC=$ac_save_CC
3982
3983fi
3984# AC_CACHE_VAL
3985case "x$ac_cv_prog_cc_c99" in
3986  x)
3987    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3988$as_echo "none needed" >&6; } ;;
3989  xno)
3990    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3991$as_echo "unsupported" >&6; } ;;
3992  *)
3993    CC="$CC $ac_cv_prog_cc_c99"
3994    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3995$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3996esac
3997if test "x$ac_cv_prog_cc_c99" != xno; then :
3998
3999fi
4000
4001
4002
4003ac_ext=c
4004ac_cpp='$CPP $CPPFLAGS'
4005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4007ac_compiler_gnu=$ac_cv_c_compiler_gnu
4008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4009$as_echo_n "checking how to run the C preprocessor... " >&6; }
4010# On Suns, sometimes $CPP names a directory.
4011if test -n "$CPP" && test -d "$CPP"; then
4012  CPP=
4013fi
4014if test -z "$CPP"; then
4015  if ${ac_cv_prog_CPP+:} false; then :
4016  $as_echo_n "(cached) " >&6
4017else
4018      # Double quotes because CPP needs to be expanded
4019    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4020    do
4021      ac_preproc_ok=false
4022for ac_c_preproc_warn_flag in '' yes
4023do
4024  # Use a header file that comes with gcc, so configuring glibc
4025  # with a fresh cross-compiler works.
4026  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4027  # <limits.h> exists even on freestanding compilers.
4028  # On the NeXT, cc -E runs the code through the compiler's parser,
4029  # not just through cpp. "Syntax error" is here to catch this case.
4030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4031/* end confdefs.h.  */
4032#ifdef __STDC__
4033# include <limits.h>
4034#else
4035# include <assert.h>
4036#endif
4037		     Syntax error
4038_ACEOF
4039if ac_fn_c_try_cpp "$LINENO"; then :
4040
4041else
4042  # Broken: fails on valid input.
4043continue
4044fi
4045rm -f conftest.err conftest.i conftest.$ac_ext
4046
4047  # OK, works on sane cases.  Now check whether nonexistent headers
4048  # can be detected and how.
4049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050/* end confdefs.h.  */
4051#include <ac_nonexistent.h>
4052_ACEOF
4053if ac_fn_c_try_cpp "$LINENO"; then :
4054  # Broken: success on invalid input.
4055continue
4056else
4057  # Passes both tests.
4058ac_preproc_ok=:
4059break
4060fi
4061rm -f conftest.err conftest.i conftest.$ac_ext
4062
4063done
4064# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4065rm -f conftest.i conftest.err conftest.$ac_ext
4066if $ac_preproc_ok; then :
4067  break
4068fi
4069
4070    done
4071    ac_cv_prog_CPP=$CPP
4072
4073fi
4074  CPP=$ac_cv_prog_CPP
4075else
4076  ac_cv_prog_CPP=$CPP
4077fi
4078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4079$as_echo "$CPP" >&6; }
4080ac_preproc_ok=false
4081for ac_c_preproc_warn_flag in '' yes
4082do
4083  # Use a header file that comes with gcc, so configuring glibc
4084  # with a fresh cross-compiler works.
4085  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4086  # <limits.h> exists even on freestanding compilers.
4087  # On the NeXT, cc -E runs the code through the compiler's parser,
4088  # not just through cpp. "Syntax error" is here to catch this case.
4089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090/* end confdefs.h.  */
4091#ifdef __STDC__
4092# include <limits.h>
4093#else
4094# include <assert.h>
4095#endif
4096		     Syntax error
4097_ACEOF
4098if ac_fn_c_try_cpp "$LINENO"; then :
4099
4100else
4101  # Broken: fails on valid input.
4102continue
4103fi
4104rm -f conftest.err conftest.i conftest.$ac_ext
4105
4106  # OK, works on sane cases.  Now check whether nonexistent headers
4107  # can be detected and how.
4108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109/* end confdefs.h.  */
4110#include <ac_nonexistent.h>
4111_ACEOF
4112if ac_fn_c_try_cpp "$LINENO"; then :
4113  # Broken: success on invalid input.
4114continue
4115else
4116  # Passes both tests.
4117ac_preproc_ok=:
4118break
4119fi
4120rm -f conftest.err conftest.i conftest.$ac_ext
4121
4122done
4123# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4124rm -f conftest.i conftest.err conftest.$ac_ext
4125if $ac_preproc_ok; then :
4126
4127else
4128  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4129$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4130as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4131See \`config.log' for more details" "$LINENO" 5; }
4132fi
4133
4134ac_ext=c
4135ac_cpp='$CPP $CPPFLAGS'
4136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4138ac_compiler_gnu=$ac_cv_c_compiler_gnu
4139
4140
4141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4142$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4143if ${ac_cv_path_GREP+:} false; then :
4144  $as_echo_n "(cached) " >&6
4145else
4146  if test -z "$GREP"; then
4147  ac_path_GREP_found=false
4148  # Loop through the user's path and test for each of PROGNAME-LIST
4149  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4151do
4152  IFS=$as_save_IFS
4153  test -z "$as_dir" && as_dir=.
4154    for ac_prog in grep ggrep; do
4155    for ac_exec_ext in '' $ac_executable_extensions; do
4156      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4157      as_fn_executable_p "$ac_path_GREP" || continue
4158# Check for GNU ac_path_GREP and select it if it is found.
4159  # Check for GNU $ac_path_GREP
4160case `"$ac_path_GREP" --version 2>&1` in
4161*GNU*)
4162  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4163*)
4164  ac_count=0
4165  $as_echo_n 0123456789 >"conftest.in"
4166  while :
4167  do
4168    cat "conftest.in" "conftest.in" >"conftest.tmp"
4169    mv "conftest.tmp" "conftest.in"
4170    cp "conftest.in" "conftest.nl"
4171    $as_echo 'GREP' >> "conftest.nl"
4172    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4173    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4174    as_fn_arith $ac_count + 1 && ac_count=$as_val
4175    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4176      # Best one so far, save it but keep looking for a better one
4177      ac_cv_path_GREP="$ac_path_GREP"
4178      ac_path_GREP_max=$ac_count
4179    fi
4180    # 10*(2^10) chars as input seems more than enough
4181    test $ac_count -gt 10 && break
4182  done
4183  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4184esac
4185
4186      $ac_path_GREP_found && break 3
4187    done
4188  done
4189  done
4190IFS=$as_save_IFS
4191  if test -z "$ac_cv_path_GREP"; then
4192    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4193  fi
4194else
4195  ac_cv_path_GREP=$GREP
4196fi
4197
4198fi
4199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4200$as_echo "$ac_cv_path_GREP" >&6; }
4201 GREP="$ac_cv_path_GREP"
4202
4203
4204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4205$as_echo_n "checking for egrep... " >&6; }
4206if ${ac_cv_path_EGREP+:} false; then :
4207  $as_echo_n "(cached) " >&6
4208else
4209  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4210   then ac_cv_path_EGREP="$GREP -E"
4211   else
4212     if test -z "$EGREP"; then
4213  ac_path_EGREP_found=false
4214  # Loop through the user's path and test for each of PROGNAME-LIST
4215  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4217do
4218  IFS=$as_save_IFS
4219  test -z "$as_dir" && as_dir=.
4220    for ac_prog in egrep; do
4221    for ac_exec_ext in '' $ac_executable_extensions; do
4222      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4223      as_fn_executable_p "$ac_path_EGREP" || continue
4224# Check for GNU ac_path_EGREP and select it if it is found.
4225  # Check for GNU $ac_path_EGREP
4226case `"$ac_path_EGREP" --version 2>&1` in
4227*GNU*)
4228  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4229*)
4230  ac_count=0
4231  $as_echo_n 0123456789 >"conftest.in"
4232  while :
4233  do
4234    cat "conftest.in" "conftest.in" >"conftest.tmp"
4235    mv "conftest.tmp" "conftest.in"
4236    cp "conftest.in" "conftest.nl"
4237    $as_echo 'EGREP' >> "conftest.nl"
4238    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4239    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4240    as_fn_arith $ac_count + 1 && ac_count=$as_val
4241    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4242      # Best one so far, save it but keep looking for a better one
4243      ac_cv_path_EGREP="$ac_path_EGREP"
4244      ac_path_EGREP_max=$ac_count
4245    fi
4246    # 10*(2^10) chars as input seems more than enough
4247    test $ac_count -gt 10 && break
4248  done
4249  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4250esac
4251
4252      $ac_path_EGREP_found && break 3
4253    done
4254  done
4255  done
4256IFS=$as_save_IFS
4257  if test -z "$ac_cv_path_EGREP"; then
4258    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4259  fi
4260else
4261  ac_cv_path_EGREP=$EGREP
4262fi
4263
4264   fi
4265fi
4266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4267$as_echo "$ac_cv_path_EGREP" >&6; }
4268 EGREP="$ac_cv_path_EGREP"
4269
4270
4271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4272$as_echo_n "checking for ANSI C header files... " >&6; }
4273if ${ac_cv_header_stdc+:} false; then :
4274  $as_echo_n "(cached) " >&6
4275else
4276  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4277/* end confdefs.h.  */
4278#include <stdlib.h>
4279#include <stdarg.h>
4280#include <string.h>
4281#include <float.h>
4282
4283int
4284main ()
4285{
4286
4287  ;
4288  return 0;
4289}
4290_ACEOF
4291if ac_fn_c_try_compile "$LINENO"; then :
4292  ac_cv_header_stdc=yes
4293else
4294  ac_cv_header_stdc=no
4295fi
4296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4297
4298if test $ac_cv_header_stdc = yes; then
4299  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4301/* end confdefs.h.  */
4302#include <string.h>
4303
4304_ACEOF
4305if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4306  $EGREP "memchr" >/dev/null 2>&1; then :
4307
4308else
4309  ac_cv_header_stdc=no
4310fi
4311rm -f conftest*
4312
4313fi
4314
4315if test $ac_cv_header_stdc = yes; then
4316  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318/* end confdefs.h.  */
4319#include <stdlib.h>
4320
4321_ACEOF
4322if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4323  $EGREP "free" >/dev/null 2>&1; then :
4324
4325else
4326  ac_cv_header_stdc=no
4327fi
4328rm -f conftest*
4329
4330fi
4331
4332if test $ac_cv_header_stdc = yes; then
4333  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4334  if test "$cross_compiling" = yes; then :
4335  :
4336else
4337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4338/* end confdefs.h.  */
4339#include <ctype.h>
4340#include <stdlib.h>
4341#if ((' ' & 0x0FF) == 0x020)
4342# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4343# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4344#else
4345# define ISLOWER(c) \
4346		   (('a' <= (c) && (c) <= 'i') \
4347		     || ('j' <= (c) && (c) <= 'r') \
4348		     || ('s' <= (c) && (c) <= 'z'))
4349# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4350#endif
4351
4352#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4353int
4354main ()
4355{
4356  int i;
4357  for (i = 0; i < 256; i++)
4358    if (XOR (islower (i), ISLOWER (i))
4359	|| toupper (i) != TOUPPER (i))
4360      return 2;
4361  return 0;
4362}
4363_ACEOF
4364if ac_fn_c_try_run "$LINENO"; then :
4365
4366else
4367  ac_cv_header_stdc=no
4368fi
4369rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4370  conftest.$ac_objext conftest.beam conftest.$ac_ext
4371fi
4372
4373fi
4374fi
4375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4376$as_echo "$ac_cv_header_stdc" >&6; }
4377if test $ac_cv_header_stdc = yes; then
4378
4379$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4380
4381fi
4382
4383# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4384for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4385		  inttypes.h stdint.h unistd.h
4386do :
4387  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4388ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4389"
4390if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4391  cat >>confdefs.h <<_ACEOF
4392#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4393_ACEOF
4394
4395fi
4396
4397done
4398
4399
4400
4401
4402
4403
4404ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4405if test "x$ac_cv_have_decl___clang__" = xyes; then :
4406  CLANGCC="yes"
4407else
4408  CLANGCC="no"
4409fi
4410
4411ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4412if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4413  INTELCC="yes"
4414else
4415  INTELCC="no"
4416fi
4417
4418ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4419if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4420  SUNCC="yes"
4421else
4422  SUNCC="no"
4423fi
4424
4425
4426
4427
4428if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4429	if test -n "$ac_tool_prefix"; then
4430  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4431set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4433$as_echo_n "checking for $ac_word... " >&6; }
4434if ${ac_cv_path_PKG_CONFIG+:} false; then :
4435  $as_echo_n "(cached) " >&6
4436else
4437  case $PKG_CONFIG in
4438  [\\/]* | ?:[\\/]*)
4439  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4440  ;;
4441  *)
4442  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443for as_dir in $PATH
4444do
4445  IFS=$as_save_IFS
4446  test -z "$as_dir" && as_dir=.
4447    for ac_exec_ext in '' $ac_executable_extensions; do
4448  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4449    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4450    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4451    break 2
4452  fi
4453done
4454  done
4455IFS=$as_save_IFS
4456
4457  ;;
4458esac
4459fi
4460PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4461if test -n "$PKG_CONFIG"; then
4462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4463$as_echo "$PKG_CONFIG" >&6; }
4464else
4465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4466$as_echo "no" >&6; }
4467fi
4468
4469
4470fi
4471if test -z "$ac_cv_path_PKG_CONFIG"; then
4472  ac_pt_PKG_CONFIG=$PKG_CONFIG
4473  # Extract the first word of "pkg-config", so it can be a program name with args.
4474set dummy pkg-config; ac_word=$2
4475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4476$as_echo_n "checking for $ac_word... " >&6; }
4477if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4478  $as_echo_n "(cached) " >&6
4479else
4480  case $ac_pt_PKG_CONFIG in
4481  [\\/]* | ?:[\\/]*)
4482  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4483  ;;
4484  *)
4485  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486for as_dir in $PATH
4487do
4488  IFS=$as_save_IFS
4489  test -z "$as_dir" && as_dir=.
4490    for ac_exec_ext in '' $ac_executable_extensions; do
4491  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4492    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4493    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4494    break 2
4495  fi
4496done
4497  done
4498IFS=$as_save_IFS
4499
4500  ;;
4501esac
4502fi
4503ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4504if test -n "$ac_pt_PKG_CONFIG"; then
4505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4506$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4507else
4508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4509$as_echo "no" >&6; }
4510fi
4511
4512  if test "x$ac_pt_PKG_CONFIG" = x; then
4513    PKG_CONFIG=""
4514  else
4515    case $cross_compiling:$ac_tool_warned in
4516yes:)
4517{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4518$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4519ac_tool_warned=yes ;;
4520esac
4521    PKG_CONFIG=$ac_pt_PKG_CONFIG
4522  fi
4523else
4524  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4525fi
4526
4527fi
4528if test -n "$PKG_CONFIG"; then
4529	_pkg_min_version=0.9.0
4530	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4531$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4532	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4533		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4534$as_echo "yes" >&6; }
4535	else
4536		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4537$as_echo "no" >&6; }
4538		PKG_CONFIG=""
4539	fi
4540
4541fi
4542# Make sure we can run config.sub.
4543$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4544  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4545
4546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4547$as_echo_n "checking build system type... " >&6; }
4548if ${ac_cv_build+:} false; then :
4549  $as_echo_n "(cached) " >&6
4550else
4551  ac_build_alias=$build_alias
4552test "x$ac_build_alias" = x &&
4553  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4554test "x$ac_build_alias" = x &&
4555  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4556ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4557  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4558
4559fi
4560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4561$as_echo "$ac_cv_build" >&6; }
4562case $ac_cv_build in
4563*-*-*) ;;
4564*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4565esac
4566build=$ac_cv_build
4567ac_save_IFS=$IFS; IFS='-'
4568set x $ac_cv_build
4569shift
4570build_cpu=$1
4571build_vendor=$2
4572shift; shift
4573# Remember, the first character of IFS is used to create $*,
4574# except with old shells:
4575build_os=$*
4576IFS=$ac_save_IFS
4577case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4578
4579
4580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4581$as_echo_n "checking host system type... " >&6; }
4582if ${ac_cv_host+:} false; then :
4583  $as_echo_n "(cached) " >&6
4584else
4585  if test "x$host_alias" = x; then
4586  ac_cv_host=$ac_cv_build
4587else
4588  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4589    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4590fi
4591
4592fi
4593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4594$as_echo "$ac_cv_host" >&6; }
4595case $ac_cv_host in
4596*-*-*) ;;
4597*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4598esac
4599host=$ac_cv_host
4600ac_save_IFS=$IFS; IFS='-'
4601set x $ac_cv_host
4602shift
4603host_cpu=$1
4604host_vendor=$2
4605shift; shift
4606# Remember, the first character of IFS is used to create $*,
4607# except with old shells:
4608host_os=$*
4609IFS=$ac_save_IFS
4610case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4611
4612
4613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4614$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4615if ${ac_cv_path_SED+:} false; then :
4616  $as_echo_n "(cached) " >&6
4617else
4618            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4619     for ac_i in 1 2 3 4 5 6 7; do
4620       ac_script="$ac_script$as_nl$ac_script"
4621     done
4622     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4623     { ac_script=; unset ac_script;}
4624     if test -z "$SED"; then
4625  ac_path_SED_found=false
4626  # Loop through the user's path and test for each of PROGNAME-LIST
4627  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628for as_dir in $PATH
4629do
4630  IFS=$as_save_IFS
4631  test -z "$as_dir" && as_dir=.
4632    for ac_prog in sed gsed; do
4633    for ac_exec_ext in '' $ac_executable_extensions; do
4634      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4635      as_fn_executable_p "$ac_path_SED" || continue
4636# Check for GNU ac_path_SED and select it if it is found.
4637  # Check for GNU $ac_path_SED
4638case `"$ac_path_SED" --version 2>&1` in
4639*GNU*)
4640  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4641*)
4642  ac_count=0
4643  $as_echo_n 0123456789 >"conftest.in"
4644  while :
4645  do
4646    cat "conftest.in" "conftest.in" >"conftest.tmp"
4647    mv "conftest.tmp" "conftest.in"
4648    cp "conftest.in" "conftest.nl"
4649    $as_echo '' >> "conftest.nl"
4650    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4651    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4652    as_fn_arith $ac_count + 1 && ac_count=$as_val
4653    if test $ac_count -gt ${ac_path_SED_max-0}; then
4654      # Best one so far, save it but keep looking for a better one
4655      ac_cv_path_SED="$ac_path_SED"
4656      ac_path_SED_max=$ac_count
4657    fi
4658    # 10*(2^10) chars as input seems more than enough
4659    test $ac_count -gt 10 && break
4660  done
4661  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4662esac
4663
4664      $ac_path_SED_found && break 3
4665    done
4666  done
4667  done
4668IFS=$as_save_IFS
4669  if test -z "$ac_cv_path_SED"; then
4670    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4671  fi
4672else
4673  ac_cv_path_SED=$SED
4674fi
4675
4676fi
4677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4678$as_echo "$ac_cv_path_SED" >&6; }
4679 SED="$ac_cv_path_SED"
4680  rm -f conftest.sed
4681
4682
4683
4684
4685
4686
4687# Check whether --enable-selective-werror was given.
4688if test "${enable_selective_werror+set}" = set; then :
4689  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4690else
4691  SELECTIVE_WERROR=yes
4692fi
4693
4694
4695
4696
4697
4698# -v is too short to test reliably with XORG_TESTSET_CFLAG
4699if test "x$SUNCC" = "xyes"; then
4700    BASE_CFLAGS="-v"
4701else
4702    BASE_CFLAGS=""
4703fi
4704
4705# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719xorg_testset_save_CFLAGS="$CFLAGS"
4720
4721if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4722	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4723	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4724$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4725if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4726  $as_echo_n "(cached) " >&6
4727else
4728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729/* end confdefs.h.  */
4730int i;
4731_ACEOF
4732if ac_fn_c_try_compile "$LINENO"; then :
4733  xorg_cv_cc_flag_unknown_warning_option=yes
4734else
4735  xorg_cv_cc_flag_unknown_warning_option=no
4736fi
4737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4738fi
4739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4740$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4741	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4742	CFLAGS="$xorg_testset_save_CFLAGS"
4743fi
4744
4745if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4746	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4747		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4748	fi
4749	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4750	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4751$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4752if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4753  $as_echo_n "(cached) " >&6
4754else
4755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4756/* end confdefs.h.  */
4757int i;
4758_ACEOF
4759if ac_fn_c_try_compile "$LINENO"; then :
4760  xorg_cv_cc_flag_unused_command_line_argument=yes
4761else
4762  xorg_cv_cc_flag_unused_command_line_argument=no
4763fi
4764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4765fi
4766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4767$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4768	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4769	CFLAGS="$xorg_testset_save_CFLAGS"
4770fi
4771
4772found="no"
4773
4774	if test $found = "no" ; then
4775		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4776			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4777		fi
4778
4779		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4780			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4781		fi
4782
4783		CFLAGS="$CFLAGS -Wall"
4784
4785		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4786$as_echo_n "checking if $CC supports -Wall... " >&6; }
4787		cacheid=xorg_cv_cc_flag__Wall
4788		if eval \${$cacheid+:} false; then :
4789  $as_echo_n "(cached) " >&6
4790else
4791  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4792/* end confdefs.h.  */
4793int i;
4794int
4795main ()
4796{
4797
4798  ;
4799  return 0;
4800}
4801_ACEOF
4802if ac_fn_c_try_link "$LINENO"; then :
4803  eval $cacheid=yes
4804else
4805  eval $cacheid=no
4806fi
4807rm -f core conftest.err conftest.$ac_objext \
4808    conftest$ac_exeext conftest.$ac_ext
4809fi
4810
4811
4812		CFLAGS="$xorg_testset_save_CFLAGS"
4813
4814		eval supported=\$$cacheid
4815		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4816$as_echo "$supported" >&6; }
4817		if test "$supported" = "yes" ; then
4818			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4819			found="yes"
4820		fi
4821	fi
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837xorg_testset_save_CFLAGS="$CFLAGS"
4838
4839if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4840	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4841	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4842$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4843if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4844  $as_echo_n "(cached) " >&6
4845else
4846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4847/* end confdefs.h.  */
4848int i;
4849_ACEOF
4850if ac_fn_c_try_compile "$LINENO"; then :
4851  xorg_cv_cc_flag_unknown_warning_option=yes
4852else
4853  xorg_cv_cc_flag_unknown_warning_option=no
4854fi
4855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4856fi
4857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4858$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4859	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4860	CFLAGS="$xorg_testset_save_CFLAGS"
4861fi
4862
4863if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4864	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4865		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4866	fi
4867	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4868	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4869$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4870if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4871  $as_echo_n "(cached) " >&6
4872else
4873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4874/* end confdefs.h.  */
4875int i;
4876_ACEOF
4877if ac_fn_c_try_compile "$LINENO"; then :
4878  xorg_cv_cc_flag_unused_command_line_argument=yes
4879else
4880  xorg_cv_cc_flag_unused_command_line_argument=no
4881fi
4882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4883fi
4884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4885$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4886	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4887	CFLAGS="$xorg_testset_save_CFLAGS"
4888fi
4889
4890found="no"
4891
4892	if test $found = "no" ; then
4893		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4894			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4895		fi
4896
4897		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4898			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4899		fi
4900
4901		CFLAGS="$CFLAGS -Wpointer-arith"
4902
4903		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4904$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4905		cacheid=xorg_cv_cc_flag__Wpointer_arith
4906		if eval \${$cacheid+:} false; then :
4907  $as_echo_n "(cached) " >&6
4908else
4909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4910/* end confdefs.h.  */
4911int i;
4912int
4913main ()
4914{
4915
4916  ;
4917  return 0;
4918}
4919_ACEOF
4920if ac_fn_c_try_link "$LINENO"; then :
4921  eval $cacheid=yes
4922else
4923  eval $cacheid=no
4924fi
4925rm -f core conftest.err conftest.$ac_objext \
4926    conftest$ac_exeext conftest.$ac_ext
4927fi
4928
4929
4930		CFLAGS="$xorg_testset_save_CFLAGS"
4931
4932		eval supported=\$$cacheid
4933		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4934$as_echo "$supported" >&6; }
4935		if test "$supported" = "yes" ; then
4936			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4937			found="yes"
4938		fi
4939	fi
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955xorg_testset_save_CFLAGS="$CFLAGS"
4956
4957if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4958	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4959	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4960$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4961if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4962  $as_echo_n "(cached) " >&6
4963else
4964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4965/* end confdefs.h.  */
4966int i;
4967_ACEOF
4968if ac_fn_c_try_compile "$LINENO"; then :
4969  xorg_cv_cc_flag_unknown_warning_option=yes
4970else
4971  xorg_cv_cc_flag_unknown_warning_option=no
4972fi
4973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4974fi
4975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4976$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4977	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4978	CFLAGS="$xorg_testset_save_CFLAGS"
4979fi
4980
4981if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4982	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4983		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4984	fi
4985	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4986	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4987$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4988if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4989  $as_echo_n "(cached) " >&6
4990else
4991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992/* end confdefs.h.  */
4993int i;
4994_ACEOF
4995if ac_fn_c_try_compile "$LINENO"; then :
4996  xorg_cv_cc_flag_unused_command_line_argument=yes
4997else
4998  xorg_cv_cc_flag_unused_command_line_argument=no
4999fi
5000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5001fi
5002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5003$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5004	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5005	CFLAGS="$xorg_testset_save_CFLAGS"
5006fi
5007
5008found="no"
5009
5010	if test $found = "no" ; then
5011		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5012			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5013		fi
5014
5015		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5016			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5017		fi
5018
5019		CFLAGS="$CFLAGS -Wmissing-declarations"
5020
5021		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5022$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5023		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5024		if eval \${$cacheid+:} false; then :
5025  $as_echo_n "(cached) " >&6
5026else
5027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5028/* end confdefs.h.  */
5029int i;
5030int
5031main ()
5032{
5033
5034  ;
5035  return 0;
5036}
5037_ACEOF
5038if ac_fn_c_try_link "$LINENO"; then :
5039  eval $cacheid=yes
5040else
5041  eval $cacheid=no
5042fi
5043rm -f core conftest.err conftest.$ac_objext \
5044    conftest$ac_exeext conftest.$ac_ext
5045fi
5046
5047
5048		CFLAGS="$xorg_testset_save_CFLAGS"
5049
5050		eval supported=\$$cacheid
5051		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5052$as_echo "$supported" >&6; }
5053		if test "$supported" = "yes" ; then
5054			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5055			found="yes"
5056		fi
5057	fi
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073xorg_testset_save_CFLAGS="$CFLAGS"
5074
5075if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5076	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5077	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5078$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5079if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5080  $as_echo_n "(cached) " >&6
5081else
5082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5083/* end confdefs.h.  */
5084int i;
5085_ACEOF
5086if ac_fn_c_try_compile "$LINENO"; then :
5087  xorg_cv_cc_flag_unknown_warning_option=yes
5088else
5089  xorg_cv_cc_flag_unknown_warning_option=no
5090fi
5091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5092fi
5093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5094$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5095	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5096	CFLAGS="$xorg_testset_save_CFLAGS"
5097fi
5098
5099if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5100	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5101		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5102	fi
5103	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5104	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5105$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5106if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5107  $as_echo_n "(cached) " >&6
5108else
5109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5110/* end confdefs.h.  */
5111int i;
5112_ACEOF
5113if ac_fn_c_try_compile "$LINENO"; then :
5114  xorg_cv_cc_flag_unused_command_line_argument=yes
5115else
5116  xorg_cv_cc_flag_unused_command_line_argument=no
5117fi
5118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5119fi
5120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5121$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5122	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5123	CFLAGS="$xorg_testset_save_CFLAGS"
5124fi
5125
5126found="no"
5127
5128	if test $found = "no" ; then
5129		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5130			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5131		fi
5132
5133		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5134			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5135		fi
5136
5137		CFLAGS="$CFLAGS -Wformat=2"
5138
5139		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5140$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5141		cacheid=xorg_cv_cc_flag__Wformat_2
5142		if eval \${$cacheid+:} false; then :
5143  $as_echo_n "(cached) " >&6
5144else
5145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146/* end confdefs.h.  */
5147int i;
5148int
5149main ()
5150{
5151
5152  ;
5153  return 0;
5154}
5155_ACEOF
5156if ac_fn_c_try_link "$LINENO"; then :
5157  eval $cacheid=yes
5158else
5159  eval $cacheid=no
5160fi
5161rm -f core conftest.err conftest.$ac_objext \
5162    conftest$ac_exeext conftest.$ac_ext
5163fi
5164
5165
5166		CFLAGS="$xorg_testset_save_CFLAGS"
5167
5168		eval supported=\$$cacheid
5169		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5170$as_echo "$supported" >&6; }
5171		if test "$supported" = "yes" ; then
5172			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5173			found="yes"
5174		fi
5175	fi
5176
5177	if test $found = "no" ; then
5178		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5179			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5180		fi
5181
5182		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5183			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5184		fi
5185
5186		CFLAGS="$CFLAGS -Wformat"
5187
5188		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5189$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5190		cacheid=xorg_cv_cc_flag__Wformat
5191		if eval \${$cacheid+:} false; then :
5192  $as_echo_n "(cached) " >&6
5193else
5194  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5195/* end confdefs.h.  */
5196int i;
5197int
5198main ()
5199{
5200
5201  ;
5202  return 0;
5203}
5204_ACEOF
5205if ac_fn_c_try_link "$LINENO"; then :
5206  eval $cacheid=yes
5207else
5208  eval $cacheid=no
5209fi
5210rm -f core conftest.err conftest.$ac_objext \
5211    conftest$ac_exeext conftest.$ac_ext
5212fi
5213
5214
5215		CFLAGS="$xorg_testset_save_CFLAGS"
5216
5217		eval supported=\$$cacheid
5218		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5219$as_echo "$supported" >&6; }
5220		if test "$supported" = "yes" ; then
5221			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5222			found="yes"
5223		fi
5224	fi
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242xorg_testset_save_CFLAGS="$CFLAGS"
5243
5244if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5245	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5246	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5247$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5248if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5249  $as_echo_n "(cached) " >&6
5250else
5251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5252/* end confdefs.h.  */
5253int i;
5254_ACEOF
5255if ac_fn_c_try_compile "$LINENO"; then :
5256  xorg_cv_cc_flag_unknown_warning_option=yes
5257else
5258  xorg_cv_cc_flag_unknown_warning_option=no
5259fi
5260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5261fi
5262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5263$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5264	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5265	CFLAGS="$xorg_testset_save_CFLAGS"
5266fi
5267
5268if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5269	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5270		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5271	fi
5272	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5273	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5274$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5275if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5276  $as_echo_n "(cached) " >&6
5277else
5278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5279/* end confdefs.h.  */
5280int i;
5281_ACEOF
5282if ac_fn_c_try_compile "$LINENO"; then :
5283  xorg_cv_cc_flag_unused_command_line_argument=yes
5284else
5285  xorg_cv_cc_flag_unused_command_line_argument=no
5286fi
5287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5288fi
5289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5290$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5291	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5292	CFLAGS="$xorg_testset_save_CFLAGS"
5293fi
5294
5295found="no"
5296
5297	if test $found = "no" ; then
5298		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5299			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5300		fi
5301
5302		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5303			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5304		fi
5305
5306		CFLAGS="$CFLAGS -Wstrict-prototypes"
5307
5308		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5309$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5310		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5311		if eval \${$cacheid+:} false; then :
5312  $as_echo_n "(cached) " >&6
5313else
5314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5315/* end confdefs.h.  */
5316int i;
5317int
5318main ()
5319{
5320
5321  ;
5322  return 0;
5323}
5324_ACEOF
5325if ac_fn_c_try_link "$LINENO"; then :
5326  eval $cacheid=yes
5327else
5328  eval $cacheid=no
5329fi
5330rm -f core conftest.err conftest.$ac_objext \
5331    conftest$ac_exeext conftest.$ac_ext
5332fi
5333
5334
5335		CFLAGS="$xorg_testset_save_CFLAGS"
5336
5337		eval supported=\$$cacheid
5338		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5339$as_echo "$supported" >&6; }
5340		if test "$supported" = "yes" ; then
5341			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5342			found="yes"
5343		fi
5344	fi
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360xorg_testset_save_CFLAGS="$CFLAGS"
5361
5362if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5363	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5364	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5365$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5366if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5367  $as_echo_n "(cached) " >&6
5368else
5369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5370/* end confdefs.h.  */
5371int i;
5372_ACEOF
5373if ac_fn_c_try_compile "$LINENO"; then :
5374  xorg_cv_cc_flag_unknown_warning_option=yes
5375else
5376  xorg_cv_cc_flag_unknown_warning_option=no
5377fi
5378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5379fi
5380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5381$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5382	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5383	CFLAGS="$xorg_testset_save_CFLAGS"
5384fi
5385
5386if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5387	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5388		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5389	fi
5390	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5391	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5392$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5393if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5394  $as_echo_n "(cached) " >&6
5395else
5396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397/* end confdefs.h.  */
5398int i;
5399_ACEOF
5400if ac_fn_c_try_compile "$LINENO"; then :
5401  xorg_cv_cc_flag_unused_command_line_argument=yes
5402else
5403  xorg_cv_cc_flag_unused_command_line_argument=no
5404fi
5405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5406fi
5407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5408$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5409	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5410	CFLAGS="$xorg_testset_save_CFLAGS"
5411fi
5412
5413found="no"
5414
5415	if test $found = "no" ; then
5416		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5417			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5418		fi
5419
5420		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5421			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5422		fi
5423
5424		CFLAGS="$CFLAGS -Wmissing-prototypes"
5425
5426		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5427$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5428		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5429		if eval \${$cacheid+:} false; then :
5430  $as_echo_n "(cached) " >&6
5431else
5432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5433/* end confdefs.h.  */
5434int i;
5435int
5436main ()
5437{
5438
5439  ;
5440  return 0;
5441}
5442_ACEOF
5443if ac_fn_c_try_link "$LINENO"; then :
5444  eval $cacheid=yes
5445else
5446  eval $cacheid=no
5447fi
5448rm -f core conftest.err conftest.$ac_objext \
5449    conftest$ac_exeext conftest.$ac_ext
5450fi
5451
5452
5453		CFLAGS="$xorg_testset_save_CFLAGS"
5454
5455		eval supported=\$$cacheid
5456		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5457$as_echo "$supported" >&6; }
5458		if test "$supported" = "yes" ; then
5459			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5460			found="yes"
5461		fi
5462	fi
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478xorg_testset_save_CFLAGS="$CFLAGS"
5479
5480if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5481	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5482	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5483$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5484if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5485  $as_echo_n "(cached) " >&6
5486else
5487  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5488/* end confdefs.h.  */
5489int i;
5490_ACEOF
5491if ac_fn_c_try_compile "$LINENO"; then :
5492  xorg_cv_cc_flag_unknown_warning_option=yes
5493else
5494  xorg_cv_cc_flag_unknown_warning_option=no
5495fi
5496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5497fi
5498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5499$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5500	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5501	CFLAGS="$xorg_testset_save_CFLAGS"
5502fi
5503
5504if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5505	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5506		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5507	fi
5508	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5509	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5510$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5511if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5512  $as_echo_n "(cached) " >&6
5513else
5514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5515/* end confdefs.h.  */
5516int i;
5517_ACEOF
5518if ac_fn_c_try_compile "$LINENO"; then :
5519  xorg_cv_cc_flag_unused_command_line_argument=yes
5520else
5521  xorg_cv_cc_flag_unused_command_line_argument=no
5522fi
5523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5524fi
5525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5526$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5527	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5528	CFLAGS="$xorg_testset_save_CFLAGS"
5529fi
5530
5531found="no"
5532
5533	if test $found = "no" ; then
5534		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5535			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5536		fi
5537
5538		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5539			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5540		fi
5541
5542		CFLAGS="$CFLAGS -Wnested-externs"
5543
5544		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5545$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5546		cacheid=xorg_cv_cc_flag__Wnested_externs
5547		if eval \${$cacheid+:} false; then :
5548  $as_echo_n "(cached) " >&6
5549else
5550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5551/* end confdefs.h.  */
5552int i;
5553int
5554main ()
5555{
5556
5557  ;
5558  return 0;
5559}
5560_ACEOF
5561if ac_fn_c_try_link "$LINENO"; then :
5562  eval $cacheid=yes
5563else
5564  eval $cacheid=no
5565fi
5566rm -f core conftest.err conftest.$ac_objext \
5567    conftest$ac_exeext conftest.$ac_ext
5568fi
5569
5570
5571		CFLAGS="$xorg_testset_save_CFLAGS"
5572
5573		eval supported=\$$cacheid
5574		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5575$as_echo "$supported" >&6; }
5576		if test "$supported" = "yes" ; then
5577			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5578			found="yes"
5579		fi
5580	fi
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596xorg_testset_save_CFLAGS="$CFLAGS"
5597
5598if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5599	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5600	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5601$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5602if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5603  $as_echo_n "(cached) " >&6
5604else
5605  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5606/* end confdefs.h.  */
5607int i;
5608_ACEOF
5609if ac_fn_c_try_compile "$LINENO"; then :
5610  xorg_cv_cc_flag_unknown_warning_option=yes
5611else
5612  xorg_cv_cc_flag_unknown_warning_option=no
5613fi
5614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5615fi
5616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5617$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5618	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5619	CFLAGS="$xorg_testset_save_CFLAGS"
5620fi
5621
5622if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5623	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5624		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5625	fi
5626	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5627	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5628$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5629if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5630  $as_echo_n "(cached) " >&6
5631else
5632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5633/* end confdefs.h.  */
5634int i;
5635_ACEOF
5636if ac_fn_c_try_compile "$LINENO"; then :
5637  xorg_cv_cc_flag_unused_command_line_argument=yes
5638else
5639  xorg_cv_cc_flag_unused_command_line_argument=no
5640fi
5641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5642fi
5643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5644$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5645	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5646	CFLAGS="$xorg_testset_save_CFLAGS"
5647fi
5648
5649found="no"
5650
5651	if test $found = "no" ; then
5652		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5653			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5654		fi
5655
5656		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5657			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5658		fi
5659
5660		CFLAGS="$CFLAGS -Wbad-function-cast"
5661
5662		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5663$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5664		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5665		if eval \${$cacheid+:} false; then :
5666  $as_echo_n "(cached) " >&6
5667else
5668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5669/* end confdefs.h.  */
5670int i;
5671int
5672main ()
5673{
5674
5675  ;
5676  return 0;
5677}
5678_ACEOF
5679if ac_fn_c_try_link "$LINENO"; then :
5680  eval $cacheid=yes
5681else
5682  eval $cacheid=no
5683fi
5684rm -f core conftest.err conftest.$ac_objext \
5685    conftest$ac_exeext conftest.$ac_ext
5686fi
5687
5688
5689		CFLAGS="$xorg_testset_save_CFLAGS"
5690
5691		eval supported=\$$cacheid
5692		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5693$as_echo "$supported" >&6; }
5694		if test "$supported" = "yes" ; then
5695			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5696			found="yes"
5697		fi
5698	fi
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714xorg_testset_save_CFLAGS="$CFLAGS"
5715
5716if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5717	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5718	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5719$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5720if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5721  $as_echo_n "(cached) " >&6
5722else
5723  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5724/* end confdefs.h.  */
5725int i;
5726_ACEOF
5727if ac_fn_c_try_compile "$LINENO"; then :
5728  xorg_cv_cc_flag_unknown_warning_option=yes
5729else
5730  xorg_cv_cc_flag_unknown_warning_option=no
5731fi
5732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5733fi
5734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5735$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5736	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5737	CFLAGS="$xorg_testset_save_CFLAGS"
5738fi
5739
5740if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5741	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5742		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5743	fi
5744	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5745	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5746$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5747if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5748  $as_echo_n "(cached) " >&6
5749else
5750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5751/* end confdefs.h.  */
5752int i;
5753_ACEOF
5754if ac_fn_c_try_compile "$LINENO"; then :
5755  xorg_cv_cc_flag_unused_command_line_argument=yes
5756else
5757  xorg_cv_cc_flag_unused_command_line_argument=no
5758fi
5759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5760fi
5761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5762$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5763	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5764	CFLAGS="$xorg_testset_save_CFLAGS"
5765fi
5766
5767found="no"
5768
5769	if test $found = "no" ; then
5770		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5771			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5772		fi
5773
5774		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5775			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5776		fi
5777
5778		CFLAGS="$CFLAGS -Wold-style-definition"
5779
5780		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5781$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5782		cacheid=xorg_cv_cc_flag__Wold_style_definition
5783		if eval \${$cacheid+:} false; then :
5784  $as_echo_n "(cached) " >&6
5785else
5786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5787/* end confdefs.h.  */
5788int i;
5789int
5790main ()
5791{
5792
5793  ;
5794  return 0;
5795}
5796_ACEOF
5797if ac_fn_c_try_link "$LINENO"; then :
5798  eval $cacheid=yes
5799else
5800  eval $cacheid=no
5801fi
5802rm -f core conftest.err conftest.$ac_objext \
5803    conftest$ac_exeext conftest.$ac_ext
5804fi
5805
5806
5807		CFLAGS="$xorg_testset_save_CFLAGS"
5808
5809		eval supported=\$$cacheid
5810		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5811$as_echo "$supported" >&6; }
5812		if test "$supported" = "yes" ; then
5813			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5814			found="yes"
5815		fi
5816	fi
5817
5818	if test $found = "no" ; then
5819		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5820			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5821		fi
5822
5823		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5824			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5825		fi
5826
5827		CFLAGS="$CFLAGS -fd"
5828
5829		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5830$as_echo_n "checking if $CC supports -fd... " >&6; }
5831		cacheid=xorg_cv_cc_flag__fd
5832		if eval \${$cacheid+:} false; then :
5833  $as_echo_n "(cached) " >&6
5834else
5835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5836/* end confdefs.h.  */
5837int i;
5838int
5839main ()
5840{
5841
5842  ;
5843  return 0;
5844}
5845_ACEOF
5846if ac_fn_c_try_link "$LINENO"; then :
5847  eval $cacheid=yes
5848else
5849  eval $cacheid=no
5850fi
5851rm -f core conftest.err conftest.$ac_objext \
5852    conftest$ac_exeext conftest.$ac_ext
5853fi
5854
5855
5856		CFLAGS="$xorg_testset_save_CFLAGS"
5857
5858		eval supported=\$$cacheid
5859		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5860$as_echo "$supported" >&6; }
5861		if test "$supported" = "yes" ; then
5862			BASE_CFLAGS="$BASE_CFLAGS -fd"
5863			found="yes"
5864		fi
5865	fi
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881xorg_testset_save_CFLAGS="$CFLAGS"
5882
5883if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5884	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5885	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5886$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5887if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5888  $as_echo_n "(cached) " >&6
5889else
5890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5891/* end confdefs.h.  */
5892int i;
5893_ACEOF
5894if ac_fn_c_try_compile "$LINENO"; then :
5895  xorg_cv_cc_flag_unknown_warning_option=yes
5896else
5897  xorg_cv_cc_flag_unknown_warning_option=no
5898fi
5899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5900fi
5901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5902$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5903	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5904	CFLAGS="$xorg_testset_save_CFLAGS"
5905fi
5906
5907if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5908	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5909		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5910	fi
5911	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5912	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5913$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5914if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5915  $as_echo_n "(cached) " >&6
5916else
5917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5918/* end confdefs.h.  */
5919int i;
5920_ACEOF
5921if ac_fn_c_try_compile "$LINENO"; then :
5922  xorg_cv_cc_flag_unused_command_line_argument=yes
5923else
5924  xorg_cv_cc_flag_unused_command_line_argument=no
5925fi
5926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5927fi
5928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5929$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5930	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5931	CFLAGS="$xorg_testset_save_CFLAGS"
5932fi
5933
5934found="no"
5935
5936	if test $found = "no" ; then
5937		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5938			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5939		fi
5940
5941		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5942			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5943		fi
5944
5945		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5946
5947		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5948$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5949		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5950		if eval \${$cacheid+:} false; then :
5951  $as_echo_n "(cached) " >&6
5952else
5953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5954/* end confdefs.h.  */
5955int i;
5956int
5957main ()
5958{
5959
5960  ;
5961  return 0;
5962}
5963_ACEOF
5964if ac_fn_c_try_link "$LINENO"; then :
5965  eval $cacheid=yes
5966else
5967  eval $cacheid=no
5968fi
5969rm -f core conftest.err conftest.$ac_objext \
5970    conftest$ac_exeext conftest.$ac_ext
5971fi
5972
5973
5974		CFLAGS="$xorg_testset_save_CFLAGS"
5975
5976		eval supported=\$$cacheid
5977		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5978$as_echo "$supported" >&6; }
5979		if test "$supported" = "yes" ; then
5980			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5981			found="yes"
5982		fi
5983	fi
5984
5985
5986
5987
5988
5989# This chunk adds additional warnings that could catch undesired effects.
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003xorg_testset_save_CFLAGS="$CFLAGS"
6004
6005if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6006	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6007	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6008$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6009if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6010  $as_echo_n "(cached) " >&6
6011else
6012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6013/* end confdefs.h.  */
6014int i;
6015_ACEOF
6016if ac_fn_c_try_compile "$LINENO"; then :
6017  xorg_cv_cc_flag_unknown_warning_option=yes
6018else
6019  xorg_cv_cc_flag_unknown_warning_option=no
6020fi
6021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6022fi
6023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6024$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6025	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6026	CFLAGS="$xorg_testset_save_CFLAGS"
6027fi
6028
6029if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6030	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6031		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6032	fi
6033	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6034	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6035$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6036if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6037  $as_echo_n "(cached) " >&6
6038else
6039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6040/* end confdefs.h.  */
6041int i;
6042_ACEOF
6043if ac_fn_c_try_compile "$LINENO"; then :
6044  xorg_cv_cc_flag_unused_command_line_argument=yes
6045else
6046  xorg_cv_cc_flag_unused_command_line_argument=no
6047fi
6048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6049fi
6050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6051$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6052	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6053	CFLAGS="$xorg_testset_save_CFLAGS"
6054fi
6055
6056found="no"
6057
6058	if test $found = "no" ; then
6059		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6060			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6061		fi
6062
6063		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6064			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6065		fi
6066
6067		CFLAGS="$CFLAGS -Wunused"
6068
6069		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6070$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6071		cacheid=xorg_cv_cc_flag__Wunused
6072		if eval \${$cacheid+:} false; then :
6073  $as_echo_n "(cached) " >&6
6074else
6075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6076/* end confdefs.h.  */
6077int i;
6078int
6079main ()
6080{
6081
6082  ;
6083  return 0;
6084}
6085_ACEOF
6086if ac_fn_c_try_link "$LINENO"; then :
6087  eval $cacheid=yes
6088else
6089  eval $cacheid=no
6090fi
6091rm -f core conftest.err conftest.$ac_objext \
6092    conftest$ac_exeext conftest.$ac_ext
6093fi
6094
6095
6096		CFLAGS="$xorg_testset_save_CFLAGS"
6097
6098		eval supported=\$$cacheid
6099		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6100$as_echo "$supported" >&6; }
6101		if test "$supported" = "yes" ; then
6102			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6103			found="yes"
6104		fi
6105	fi
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121xorg_testset_save_CFLAGS="$CFLAGS"
6122
6123if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6124	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6125	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6126$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6127if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6128  $as_echo_n "(cached) " >&6
6129else
6130  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6131/* end confdefs.h.  */
6132int i;
6133_ACEOF
6134if ac_fn_c_try_compile "$LINENO"; then :
6135  xorg_cv_cc_flag_unknown_warning_option=yes
6136else
6137  xorg_cv_cc_flag_unknown_warning_option=no
6138fi
6139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6140fi
6141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6142$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6143	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6144	CFLAGS="$xorg_testset_save_CFLAGS"
6145fi
6146
6147if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6148	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6149		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6150	fi
6151	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6152	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6153$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6154if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6155  $as_echo_n "(cached) " >&6
6156else
6157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6158/* end confdefs.h.  */
6159int i;
6160_ACEOF
6161if ac_fn_c_try_compile "$LINENO"; then :
6162  xorg_cv_cc_flag_unused_command_line_argument=yes
6163else
6164  xorg_cv_cc_flag_unused_command_line_argument=no
6165fi
6166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6167fi
6168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6169$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6170	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6171	CFLAGS="$xorg_testset_save_CFLAGS"
6172fi
6173
6174found="no"
6175
6176	if test $found = "no" ; then
6177		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6178			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6179		fi
6180
6181		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6182			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6183		fi
6184
6185		CFLAGS="$CFLAGS -Wuninitialized"
6186
6187		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6188$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6189		cacheid=xorg_cv_cc_flag__Wuninitialized
6190		if eval \${$cacheid+:} false; then :
6191  $as_echo_n "(cached) " >&6
6192else
6193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6194/* end confdefs.h.  */
6195int i;
6196int
6197main ()
6198{
6199
6200  ;
6201  return 0;
6202}
6203_ACEOF
6204if ac_fn_c_try_link "$LINENO"; then :
6205  eval $cacheid=yes
6206else
6207  eval $cacheid=no
6208fi
6209rm -f core conftest.err conftest.$ac_objext \
6210    conftest$ac_exeext conftest.$ac_ext
6211fi
6212
6213
6214		CFLAGS="$xorg_testset_save_CFLAGS"
6215
6216		eval supported=\$$cacheid
6217		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6218$as_echo "$supported" >&6; }
6219		if test "$supported" = "yes" ; then
6220			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6221			found="yes"
6222		fi
6223	fi
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239xorg_testset_save_CFLAGS="$CFLAGS"
6240
6241if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6242	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6243	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6244$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6245if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6246  $as_echo_n "(cached) " >&6
6247else
6248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6249/* end confdefs.h.  */
6250int i;
6251_ACEOF
6252if ac_fn_c_try_compile "$LINENO"; then :
6253  xorg_cv_cc_flag_unknown_warning_option=yes
6254else
6255  xorg_cv_cc_flag_unknown_warning_option=no
6256fi
6257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6258fi
6259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6260$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6261	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6262	CFLAGS="$xorg_testset_save_CFLAGS"
6263fi
6264
6265if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6266	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6267		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6268	fi
6269	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6270	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6271$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6272if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6273  $as_echo_n "(cached) " >&6
6274else
6275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6276/* end confdefs.h.  */
6277int i;
6278_ACEOF
6279if ac_fn_c_try_compile "$LINENO"; then :
6280  xorg_cv_cc_flag_unused_command_line_argument=yes
6281else
6282  xorg_cv_cc_flag_unused_command_line_argument=no
6283fi
6284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6285fi
6286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6287$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6288	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6289	CFLAGS="$xorg_testset_save_CFLAGS"
6290fi
6291
6292found="no"
6293
6294	if test $found = "no" ; then
6295		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6296			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6297		fi
6298
6299		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6300			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6301		fi
6302
6303		CFLAGS="$CFLAGS -Wshadow"
6304
6305		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6306$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6307		cacheid=xorg_cv_cc_flag__Wshadow
6308		if eval \${$cacheid+:} false; then :
6309  $as_echo_n "(cached) " >&6
6310else
6311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6312/* end confdefs.h.  */
6313int i;
6314int
6315main ()
6316{
6317
6318  ;
6319  return 0;
6320}
6321_ACEOF
6322if ac_fn_c_try_link "$LINENO"; then :
6323  eval $cacheid=yes
6324else
6325  eval $cacheid=no
6326fi
6327rm -f core conftest.err conftest.$ac_objext \
6328    conftest$ac_exeext conftest.$ac_ext
6329fi
6330
6331
6332		CFLAGS="$xorg_testset_save_CFLAGS"
6333
6334		eval supported=\$$cacheid
6335		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6336$as_echo "$supported" >&6; }
6337		if test "$supported" = "yes" ; then
6338			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6339			found="yes"
6340		fi
6341	fi
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357xorg_testset_save_CFLAGS="$CFLAGS"
6358
6359if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6360	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6361	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6362$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6363if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6364  $as_echo_n "(cached) " >&6
6365else
6366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6367/* end confdefs.h.  */
6368int i;
6369_ACEOF
6370if ac_fn_c_try_compile "$LINENO"; then :
6371  xorg_cv_cc_flag_unknown_warning_option=yes
6372else
6373  xorg_cv_cc_flag_unknown_warning_option=no
6374fi
6375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6376fi
6377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6378$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6379	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6380	CFLAGS="$xorg_testset_save_CFLAGS"
6381fi
6382
6383if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6384	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6385		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6386	fi
6387	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6388	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6389$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6390if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6391  $as_echo_n "(cached) " >&6
6392else
6393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6394/* end confdefs.h.  */
6395int i;
6396_ACEOF
6397if ac_fn_c_try_compile "$LINENO"; then :
6398  xorg_cv_cc_flag_unused_command_line_argument=yes
6399else
6400  xorg_cv_cc_flag_unused_command_line_argument=no
6401fi
6402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6403fi
6404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6405$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6406	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6407	CFLAGS="$xorg_testset_save_CFLAGS"
6408fi
6409
6410found="no"
6411
6412	if test $found = "no" ; then
6413		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6414			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6415		fi
6416
6417		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6418			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6419		fi
6420
6421		CFLAGS="$CFLAGS -Wmissing-noreturn"
6422
6423		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6424$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6425		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6426		if eval \${$cacheid+:} false; then :
6427  $as_echo_n "(cached) " >&6
6428else
6429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6430/* end confdefs.h.  */
6431int i;
6432int
6433main ()
6434{
6435
6436  ;
6437  return 0;
6438}
6439_ACEOF
6440if ac_fn_c_try_link "$LINENO"; then :
6441  eval $cacheid=yes
6442else
6443  eval $cacheid=no
6444fi
6445rm -f core conftest.err conftest.$ac_objext \
6446    conftest$ac_exeext conftest.$ac_ext
6447fi
6448
6449
6450		CFLAGS="$xorg_testset_save_CFLAGS"
6451
6452		eval supported=\$$cacheid
6453		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6454$as_echo "$supported" >&6; }
6455		if test "$supported" = "yes" ; then
6456			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6457			found="yes"
6458		fi
6459	fi
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475xorg_testset_save_CFLAGS="$CFLAGS"
6476
6477if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6478	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6479	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6480$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6481if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6482  $as_echo_n "(cached) " >&6
6483else
6484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6485/* end confdefs.h.  */
6486int i;
6487_ACEOF
6488if ac_fn_c_try_compile "$LINENO"; then :
6489  xorg_cv_cc_flag_unknown_warning_option=yes
6490else
6491  xorg_cv_cc_flag_unknown_warning_option=no
6492fi
6493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6494fi
6495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6496$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6497	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6498	CFLAGS="$xorg_testset_save_CFLAGS"
6499fi
6500
6501if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6502	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6503		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6504	fi
6505	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6506	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6507$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6508if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6509  $as_echo_n "(cached) " >&6
6510else
6511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6512/* end confdefs.h.  */
6513int i;
6514_ACEOF
6515if ac_fn_c_try_compile "$LINENO"; then :
6516  xorg_cv_cc_flag_unused_command_line_argument=yes
6517else
6518  xorg_cv_cc_flag_unused_command_line_argument=no
6519fi
6520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6521fi
6522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6523$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6524	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6525	CFLAGS="$xorg_testset_save_CFLAGS"
6526fi
6527
6528found="no"
6529
6530	if test $found = "no" ; then
6531		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6532			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6533		fi
6534
6535		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6536			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6537		fi
6538
6539		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6540
6541		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6542$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6543		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6544		if eval \${$cacheid+:} false; then :
6545  $as_echo_n "(cached) " >&6
6546else
6547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6548/* end confdefs.h.  */
6549int i;
6550int
6551main ()
6552{
6553
6554  ;
6555  return 0;
6556}
6557_ACEOF
6558if ac_fn_c_try_link "$LINENO"; then :
6559  eval $cacheid=yes
6560else
6561  eval $cacheid=no
6562fi
6563rm -f core conftest.err conftest.$ac_objext \
6564    conftest$ac_exeext conftest.$ac_ext
6565fi
6566
6567
6568		CFLAGS="$xorg_testset_save_CFLAGS"
6569
6570		eval supported=\$$cacheid
6571		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6572$as_echo "$supported" >&6; }
6573		if test "$supported" = "yes" ; then
6574			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6575			found="yes"
6576		fi
6577	fi
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593xorg_testset_save_CFLAGS="$CFLAGS"
6594
6595if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6596	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6597	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6598$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6599if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6600  $as_echo_n "(cached) " >&6
6601else
6602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6603/* end confdefs.h.  */
6604int i;
6605_ACEOF
6606if ac_fn_c_try_compile "$LINENO"; then :
6607  xorg_cv_cc_flag_unknown_warning_option=yes
6608else
6609  xorg_cv_cc_flag_unknown_warning_option=no
6610fi
6611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6612fi
6613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6614$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6615	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6616	CFLAGS="$xorg_testset_save_CFLAGS"
6617fi
6618
6619if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6620	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6621		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6622	fi
6623	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6624	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6625$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6626if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6627  $as_echo_n "(cached) " >&6
6628else
6629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6630/* end confdefs.h.  */
6631int i;
6632_ACEOF
6633if ac_fn_c_try_compile "$LINENO"; then :
6634  xorg_cv_cc_flag_unused_command_line_argument=yes
6635else
6636  xorg_cv_cc_flag_unused_command_line_argument=no
6637fi
6638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6639fi
6640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6641$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6642	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6643	CFLAGS="$xorg_testset_save_CFLAGS"
6644fi
6645
6646found="no"
6647
6648	if test $found = "no" ; then
6649		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6650			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6651		fi
6652
6653		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6654			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6655		fi
6656
6657		CFLAGS="$CFLAGS -Wredundant-decls"
6658
6659		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6660$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6661		cacheid=xorg_cv_cc_flag__Wredundant_decls
6662		if eval \${$cacheid+:} false; then :
6663  $as_echo_n "(cached) " >&6
6664else
6665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6666/* end confdefs.h.  */
6667int i;
6668int
6669main ()
6670{
6671
6672  ;
6673  return 0;
6674}
6675_ACEOF
6676if ac_fn_c_try_link "$LINENO"; then :
6677  eval $cacheid=yes
6678else
6679  eval $cacheid=no
6680fi
6681rm -f core conftest.err conftest.$ac_objext \
6682    conftest$ac_exeext conftest.$ac_ext
6683fi
6684
6685
6686		CFLAGS="$xorg_testset_save_CFLAGS"
6687
6688		eval supported=\$$cacheid
6689		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6690$as_echo "$supported" >&6; }
6691		if test "$supported" = "yes" ; then
6692			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6693			found="yes"
6694		fi
6695	fi
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711xorg_testset_save_CFLAGS="$CFLAGS"
6712
6713if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6714	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6715	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6716$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6717if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6718  $as_echo_n "(cached) " >&6
6719else
6720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6721/* end confdefs.h.  */
6722int i;
6723_ACEOF
6724if ac_fn_c_try_compile "$LINENO"; then :
6725  xorg_cv_cc_flag_unknown_warning_option=yes
6726else
6727  xorg_cv_cc_flag_unknown_warning_option=no
6728fi
6729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6730fi
6731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6732$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6733	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6734	CFLAGS="$xorg_testset_save_CFLAGS"
6735fi
6736
6737if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6738	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6739		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6740	fi
6741	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6742	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6743$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6744if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6745  $as_echo_n "(cached) " >&6
6746else
6747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6748/* end confdefs.h.  */
6749int i;
6750_ACEOF
6751if ac_fn_c_try_compile "$LINENO"; then :
6752  xorg_cv_cc_flag_unused_command_line_argument=yes
6753else
6754  xorg_cv_cc_flag_unused_command_line_argument=no
6755fi
6756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6757fi
6758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6759$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6760	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6761	CFLAGS="$xorg_testset_save_CFLAGS"
6762fi
6763
6764found="no"
6765
6766	if test $found = "no" ; then
6767		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6768			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6769		fi
6770
6771		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6772			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6773		fi
6774
6775		CFLAGS="$CFLAGS -Wlogical-op"
6776
6777		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6778$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6779		cacheid=xorg_cv_cc_flag__Wlogical_op
6780		if eval \${$cacheid+:} false; then :
6781  $as_echo_n "(cached) " >&6
6782else
6783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6784/* end confdefs.h.  */
6785int i;
6786int
6787main ()
6788{
6789
6790  ;
6791  return 0;
6792}
6793_ACEOF
6794if ac_fn_c_try_link "$LINENO"; then :
6795  eval $cacheid=yes
6796else
6797  eval $cacheid=no
6798fi
6799rm -f core conftest.err conftest.$ac_objext \
6800    conftest$ac_exeext conftest.$ac_ext
6801fi
6802
6803
6804		CFLAGS="$xorg_testset_save_CFLAGS"
6805
6806		eval supported=\$$cacheid
6807		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6808$as_echo "$supported" >&6; }
6809		if test "$supported" = "yes" ; then
6810			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6811			found="yes"
6812		fi
6813	fi
6814
6815
6816
6817# These are currently disabled because they are noisy.  They will be enabled
6818# in the future once the codebase is sufficiently modernized to silence
6819# them.  For now, I don't want them to drown out the other warnings.
6820# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6821# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6822# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6823
6824# Turn some warnings into errors, so we don't accidently get successful builds
6825# when there are problems that should be fixed.
6826
6827if test "x$SELECTIVE_WERROR" = "xyes" ; then
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841xorg_testset_save_CFLAGS="$CFLAGS"
6842
6843if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6844	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6845	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6846$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6847if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6848  $as_echo_n "(cached) " >&6
6849else
6850  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851/* end confdefs.h.  */
6852int i;
6853_ACEOF
6854if ac_fn_c_try_compile "$LINENO"; then :
6855  xorg_cv_cc_flag_unknown_warning_option=yes
6856else
6857  xorg_cv_cc_flag_unknown_warning_option=no
6858fi
6859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6860fi
6861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6862$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6863	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6864	CFLAGS="$xorg_testset_save_CFLAGS"
6865fi
6866
6867if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6868	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6869		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6870	fi
6871	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6872	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6873$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6874if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6875  $as_echo_n "(cached) " >&6
6876else
6877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6878/* end confdefs.h.  */
6879int i;
6880_ACEOF
6881if ac_fn_c_try_compile "$LINENO"; then :
6882  xorg_cv_cc_flag_unused_command_line_argument=yes
6883else
6884  xorg_cv_cc_flag_unused_command_line_argument=no
6885fi
6886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6887fi
6888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6889$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6890	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6891	CFLAGS="$xorg_testset_save_CFLAGS"
6892fi
6893
6894found="no"
6895
6896	if test $found = "no" ; then
6897		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6898			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6899		fi
6900
6901		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6902			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6903		fi
6904
6905		CFLAGS="$CFLAGS -Werror=implicit"
6906
6907		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6908$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6909		cacheid=xorg_cv_cc_flag__Werror_implicit
6910		if eval \${$cacheid+:} false; then :
6911  $as_echo_n "(cached) " >&6
6912else
6913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6914/* end confdefs.h.  */
6915int i;
6916int
6917main ()
6918{
6919
6920  ;
6921  return 0;
6922}
6923_ACEOF
6924if ac_fn_c_try_link "$LINENO"; then :
6925  eval $cacheid=yes
6926else
6927  eval $cacheid=no
6928fi
6929rm -f core conftest.err conftest.$ac_objext \
6930    conftest$ac_exeext conftest.$ac_ext
6931fi
6932
6933
6934		CFLAGS="$xorg_testset_save_CFLAGS"
6935
6936		eval supported=\$$cacheid
6937		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6938$as_echo "$supported" >&6; }
6939		if test "$supported" = "yes" ; then
6940			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6941			found="yes"
6942		fi
6943	fi
6944
6945	if test $found = "no" ; then
6946		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6947			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6948		fi
6949
6950		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6951			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6952		fi
6953
6954		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6955
6956		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6957$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6958		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
6959		if eval \${$cacheid+:} false; then :
6960  $as_echo_n "(cached) " >&6
6961else
6962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6963/* end confdefs.h.  */
6964int i;
6965int
6966main ()
6967{
6968
6969  ;
6970  return 0;
6971}
6972_ACEOF
6973if ac_fn_c_try_link "$LINENO"; then :
6974  eval $cacheid=yes
6975else
6976  eval $cacheid=no
6977fi
6978rm -f core conftest.err conftest.$ac_objext \
6979    conftest$ac_exeext conftest.$ac_ext
6980fi
6981
6982
6983		CFLAGS="$xorg_testset_save_CFLAGS"
6984
6985		eval supported=\$$cacheid
6986		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6987$as_echo "$supported" >&6; }
6988		if test "$supported" = "yes" ; then
6989			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6990			found="yes"
6991		fi
6992	fi
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008xorg_testset_save_CFLAGS="$CFLAGS"
7009
7010if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7011	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7012	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7013$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7014if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7015  $as_echo_n "(cached) " >&6
7016else
7017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7018/* end confdefs.h.  */
7019int i;
7020_ACEOF
7021if ac_fn_c_try_compile "$LINENO"; then :
7022  xorg_cv_cc_flag_unknown_warning_option=yes
7023else
7024  xorg_cv_cc_flag_unknown_warning_option=no
7025fi
7026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7027fi
7028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7029$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7030	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7031	CFLAGS="$xorg_testset_save_CFLAGS"
7032fi
7033
7034if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7035	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7036		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7037	fi
7038	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7039	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7040$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7041if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7042  $as_echo_n "(cached) " >&6
7043else
7044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7045/* end confdefs.h.  */
7046int i;
7047_ACEOF
7048if ac_fn_c_try_compile "$LINENO"; then :
7049  xorg_cv_cc_flag_unused_command_line_argument=yes
7050else
7051  xorg_cv_cc_flag_unused_command_line_argument=no
7052fi
7053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7054fi
7055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7056$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7057	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7058	CFLAGS="$xorg_testset_save_CFLAGS"
7059fi
7060
7061found="no"
7062
7063	if test $found = "no" ; then
7064		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7065			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7066		fi
7067
7068		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7069			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7070		fi
7071
7072		CFLAGS="$CFLAGS -Werror=nonnull"
7073
7074		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7075$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7076		cacheid=xorg_cv_cc_flag__Werror_nonnull
7077		if eval \${$cacheid+:} false; then :
7078  $as_echo_n "(cached) " >&6
7079else
7080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7081/* end confdefs.h.  */
7082int i;
7083int
7084main ()
7085{
7086
7087  ;
7088  return 0;
7089}
7090_ACEOF
7091if ac_fn_c_try_link "$LINENO"; then :
7092  eval $cacheid=yes
7093else
7094  eval $cacheid=no
7095fi
7096rm -f core conftest.err conftest.$ac_objext \
7097    conftest$ac_exeext conftest.$ac_ext
7098fi
7099
7100
7101		CFLAGS="$xorg_testset_save_CFLAGS"
7102
7103		eval supported=\$$cacheid
7104		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7105$as_echo "$supported" >&6; }
7106		if test "$supported" = "yes" ; then
7107			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7108			found="yes"
7109		fi
7110	fi
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126xorg_testset_save_CFLAGS="$CFLAGS"
7127
7128if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7129	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7130	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7131$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7132if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7133  $as_echo_n "(cached) " >&6
7134else
7135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7136/* end confdefs.h.  */
7137int i;
7138_ACEOF
7139if ac_fn_c_try_compile "$LINENO"; then :
7140  xorg_cv_cc_flag_unknown_warning_option=yes
7141else
7142  xorg_cv_cc_flag_unknown_warning_option=no
7143fi
7144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7145fi
7146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7147$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7148	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7149	CFLAGS="$xorg_testset_save_CFLAGS"
7150fi
7151
7152if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7153	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7154		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7155	fi
7156	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7157	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7158$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7159if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7160  $as_echo_n "(cached) " >&6
7161else
7162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7163/* end confdefs.h.  */
7164int i;
7165_ACEOF
7166if ac_fn_c_try_compile "$LINENO"; then :
7167  xorg_cv_cc_flag_unused_command_line_argument=yes
7168else
7169  xorg_cv_cc_flag_unused_command_line_argument=no
7170fi
7171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7172fi
7173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7174$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7175	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7176	CFLAGS="$xorg_testset_save_CFLAGS"
7177fi
7178
7179found="no"
7180
7181	if test $found = "no" ; then
7182		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7183			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7184		fi
7185
7186		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7187			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7188		fi
7189
7190		CFLAGS="$CFLAGS -Werror=init-self"
7191
7192		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7193$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7194		cacheid=xorg_cv_cc_flag__Werror_init_self
7195		if eval \${$cacheid+:} false; then :
7196  $as_echo_n "(cached) " >&6
7197else
7198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7199/* end confdefs.h.  */
7200int i;
7201int
7202main ()
7203{
7204
7205  ;
7206  return 0;
7207}
7208_ACEOF
7209if ac_fn_c_try_link "$LINENO"; then :
7210  eval $cacheid=yes
7211else
7212  eval $cacheid=no
7213fi
7214rm -f core conftest.err conftest.$ac_objext \
7215    conftest$ac_exeext conftest.$ac_ext
7216fi
7217
7218
7219		CFLAGS="$xorg_testset_save_CFLAGS"
7220
7221		eval supported=\$$cacheid
7222		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7223$as_echo "$supported" >&6; }
7224		if test "$supported" = "yes" ; then
7225			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7226			found="yes"
7227		fi
7228	fi
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244xorg_testset_save_CFLAGS="$CFLAGS"
7245
7246if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7247	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7248	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7249$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7250if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7251  $as_echo_n "(cached) " >&6
7252else
7253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7254/* end confdefs.h.  */
7255int i;
7256_ACEOF
7257if ac_fn_c_try_compile "$LINENO"; then :
7258  xorg_cv_cc_flag_unknown_warning_option=yes
7259else
7260  xorg_cv_cc_flag_unknown_warning_option=no
7261fi
7262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7263fi
7264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7265$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7266	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7267	CFLAGS="$xorg_testset_save_CFLAGS"
7268fi
7269
7270if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7271	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7272		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7273	fi
7274	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7275	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7276$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7277if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7278  $as_echo_n "(cached) " >&6
7279else
7280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7281/* end confdefs.h.  */
7282int i;
7283_ACEOF
7284if ac_fn_c_try_compile "$LINENO"; then :
7285  xorg_cv_cc_flag_unused_command_line_argument=yes
7286else
7287  xorg_cv_cc_flag_unused_command_line_argument=no
7288fi
7289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7290fi
7291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7292$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7293	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7294	CFLAGS="$xorg_testset_save_CFLAGS"
7295fi
7296
7297found="no"
7298
7299	if test $found = "no" ; then
7300		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7301			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7302		fi
7303
7304		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7305			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7306		fi
7307
7308		CFLAGS="$CFLAGS -Werror=main"
7309
7310		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7311$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7312		cacheid=xorg_cv_cc_flag__Werror_main
7313		if eval \${$cacheid+:} false; then :
7314  $as_echo_n "(cached) " >&6
7315else
7316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7317/* end confdefs.h.  */
7318int i;
7319int
7320main ()
7321{
7322
7323  ;
7324  return 0;
7325}
7326_ACEOF
7327if ac_fn_c_try_link "$LINENO"; then :
7328  eval $cacheid=yes
7329else
7330  eval $cacheid=no
7331fi
7332rm -f core conftest.err conftest.$ac_objext \
7333    conftest$ac_exeext conftest.$ac_ext
7334fi
7335
7336
7337		CFLAGS="$xorg_testset_save_CFLAGS"
7338
7339		eval supported=\$$cacheid
7340		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7341$as_echo "$supported" >&6; }
7342		if test "$supported" = "yes" ; then
7343			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7344			found="yes"
7345		fi
7346	fi
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362xorg_testset_save_CFLAGS="$CFLAGS"
7363
7364if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7365	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7366	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7367$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7368if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7369  $as_echo_n "(cached) " >&6
7370else
7371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7372/* end confdefs.h.  */
7373int i;
7374_ACEOF
7375if ac_fn_c_try_compile "$LINENO"; then :
7376  xorg_cv_cc_flag_unknown_warning_option=yes
7377else
7378  xorg_cv_cc_flag_unknown_warning_option=no
7379fi
7380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7381fi
7382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7383$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7384	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7385	CFLAGS="$xorg_testset_save_CFLAGS"
7386fi
7387
7388if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7389	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7390		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7391	fi
7392	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7393	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7394$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7395if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7396  $as_echo_n "(cached) " >&6
7397else
7398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7399/* end confdefs.h.  */
7400int i;
7401_ACEOF
7402if ac_fn_c_try_compile "$LINENO"; then :
7403  xorg_cv_cc_flag_unused_command_line_argument=yes
7404else
7405  xorg_cv_cc_flag_unused_command_line_argument=no
7406fi
7407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7408fi
7409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7410$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7411	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7412	CFLAGS="$xorg_testset_save_CFLAGS"
7413fi
7414
7415found="no"
7416
7417	if test $found = "no" ; then
7418		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7419			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7420		fi
7421
7422		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7423			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7424		fi
7425
7426		CFLAGS="$CFLAGS -Werror=missing-braces"
7427
7428		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7429$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7430		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7431		if eval \${$cacheid+:} false; then :
7432  $as_echo_n "(cached) " >&6
7433else
7434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7435/* end confdefs.h.  */
7436int i;
7437int
7438main ()
7439{
7440
7441  ;
7442  return 0;
7443}
7444_ACEOF
7445if ac_fn_c_try_link "$LINENO"; then :
7446  eval $cacheid=yes
7447else
7448  eval $cacheid=no
7449fi
7450rm -f core conftest.err conftest.$ac_objext \
7451    conftest$ac_exeext conftest.$ac_ext
7452fi
7453
7454
7455		CFLAGS="$xorg_testset_save_CFLAGS"
7456
7457		eval supported=\$$cacheid
7458		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7459$as_echo "$supported" >&6; }
7460		if test "$supported" = "yes" ; then
7461			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7462			found="yes"
7463		fi
7464	fi
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480xorg_testset_save_CFLAGS="$CFLAGS"
7481
7482if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7483	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7484	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7485$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7486if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7487  $as_echo_n "(cached) " >&6
7488else
7489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7490/* end confdefs.h.  */
7491int i;
7492_ACEOF
7493if ac_fn_c_try_compile "$LINENO"; then :
7494  xorg_cv_cc_flag_unknown_warning_option=yes
7495else
7496  xorg_cv_cc_flag_unknown_warning_option=no
7497fi
7498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7499fi
7500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7501$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7502	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7503	CFLAGS="$xorg_testset_save_CFLAGS"
7504fi
7505
7506if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7507	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7508		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7509	fi
7510	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7511	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7512$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7513if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7514  $as_echo_n "(cached) " >&6
7515else
7516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7517/* end confdefs.h.  */
7518int i;
7519_ACEOF
7520if ac_fn_c_try_compile "$LINENO"; then :
7521  xorg_cv_cc_flag_unused_command_line_argument=yes
7522else
7523  xorg_cv_cc_flag_unused_command_line_argument=no
7524fi
7525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7526fi
7527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7528$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7529	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7530	CFLAGS="$xorg_testset_save_CFLAGS"
7531fi
7532
7533found="no"
7534
7535	if test $found = "no" ; then
7536		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7537			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7538		fi
7539
7540		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7541			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7542		fi
7543
7544		CFLAGS="$CFLAGS -Werror=sequence-point"
7545
7546		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7547$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7548		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7549		if eval \${$cacheid+:} false; then :
7550  $as_echo_n "(cached) " >&6
7551else
7552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7553/* end confdefs.h.  */
7554int i;
7555int
7556main ()
7557{
7558
7559  ;
7560  return 0;
7561}
7562_ACEOF
7563if ac_fn_c_try_link "$LINENO"; then :
7564  eval $cacheid=yes
7565else
7566  eval $cacheid=no
7567fi
7568rm -f core conftest.err conftest.$ac_objext \
7569    conftest$ac_exeext conftest.$ac_ext
7570fi
7571
7572
7573		CFLAGS="$xorg_testset_save_CFLAGS"
7574
7575		eval supported=\$$cacheid
7576		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7577$as_echo "$supported" >&6; }
7578		if test "$supported" = "yes" ; then
7579			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7580			found="yes"
7581		fi
7582	fi
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598xorg_testset_save_CFLAGS="$CFLAGS"
7599
7600if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7601	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7602	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7603$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7604if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7605  $as_echo_n "(cached) " >&6
7606else
7607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7608/* end confdefs.h.  */
7609int i;
7610_ACEOF
7611if ac_fn_c_try_compile "$LINENO"; then :
7612  xorg_cv_cc_flag_unknown_warning_option=yes
7613else
7614  xorg_cv_cc_flag_unknown_warning_option=no
7615fi
7616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7617fi
7618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7619$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7620	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7621	CFLAGS="$xorg_testset_save_CFLAGS"
7622fi
7623
7624if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7625	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7626		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7627	fi
7628	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7629	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7630$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7631if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7632  $as_echo_n "(cached) " >&6
7633else
7634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635/* end confdefs.h.  */
7636int i;
7637_ACEOF
7638if ac_fn_c_try_compile "$LINENO"; then :
7639  xorg_cv_cc_flag_unused_command_line_argument=yes
7640else
7641  xorg_cv_cc_flag_unused_command_line_argument=no
7642fi
7643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7644fi
7645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7646$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7647	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7648	CFLAGS="$xorg_testset_save_CFLAGS"
7649fi
7650
7651found="no"
7652
7653	if test $found = "no" ; then
7654		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7655			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7656		fi
7657
7658		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7659			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7660		fi
7661
7662		CFLAGS="$CFLAGS -Werror=return-type"
7663
7664		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7665$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7666		cacheid=xorg_cv_cc_flag__Werror_return_type
7667		if eval \${$cacheid+:} false; then :
7668  $as_echo_n "(cached) " >&6
7669else
7670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7671/* end confdefs.h.  */
7672int i;
7673int
7674main ()
7675{
7676
7677  ;
7678  return 0;
7679}
7680_ACEOF
7681if ac_fn_c_try_link "$LINENO"; then :
7682  eval $cacheid=yes
7683else
7684  eval $cacheid=no
7685fi
7686rm -f core conftest.err conftest.$ac_objext \
7687    conftest$ac_exeext conftest.$ac_ext
7688fi
7689
7690
7691		CFLAGS="$xorg_testset_save_CFLAGS"
7692
7693		eval supported=\$$cacheid
7694		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7695$as_echo "$supported" >&6; }
7696		if test "$supported" = "yes" ; then
7697			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7698			found="yes"
7699		fi
7700	fi
7701
7702	if test $found = "no" ; then
7703		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7704			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7705		fi
7706
7707		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7708			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7709		fi
7710
7711		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7712
7713		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7714$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7715		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7716		if eval \${$cacheid+:} false; then :
7717  $as_echo_n "(cached) " >&6
7718else
7719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7720/* end confdefs.h.  */
7721int i;
7722int
7723main ()
7724{
7725
7726  ;
7727  return 0;
7728}
7729_ACEOF
7730if ac_fn_c_try_link "$LINENO"; then :
7731  eval $cacheid=yes
7732else
7733  eval $cacheid=no
7734fi
7735rm -f core conftest.err conftest.$ac_objext \
7736    conftest$ac_exeext conftest.$ac_ext
7737fi
7738
7739
7740		CFLAGS="$xorg_testset_save_CFLAGS"
7741
7742		eval supported=\$$cacheid
7743		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7744$as_echo "$supported" >&6; }
7745		if test "$supported" = "yes" ; then
7746			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7747			found="yes"
7748		fi
7749	fi
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765xorg_testset_save_CFLAGS="$CFLAGS"
7766
7767if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7768	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7769	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7770$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7771if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7772  $as_echo_n "(cached) " >&6
7773else
7774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7775/* end confdefs.h.  */
7776int i;
7777_ACEOF
7778if ac_fn_c_try_compile "$LINENO"; then :
7779  xorg_cv_cc_flag_unknown_warning_option=yes
7780else
7781  xorg_cv_cc_flag_unknown_warning_option=no
7782fi
7783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7784fi
7785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7786$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7787	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7788	CFLAGS="$xorg_testset_save_CFLAGS"
7789fi
7790
7791if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7792	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7793		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7794	fi
7795	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7796	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7797$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7798if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7799  $as_echo_n "(cached) " >&6
7800else
7801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7802/* end confdefs.h.  */
7803int i;
7804_ACEOF
7805if ac_fn_c_try_compile "$LINENO"; then :
7806  xorg_cv_cc_flag_unused_command_line_argument=yes
7807else
7808  xorg_cv_cc_flag_unused_command_line_argument=no
7809fi
7810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7811fi
7812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7813$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7814	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7815	CFLAGS="$xorg_testset_save_CFLAGS"
7816fi
7817
7818found="no"
7819
7820	if test $found = "no" ; then
7821		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7822			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7823		fi
7824
7825		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7826			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7827		fi
7828
7829		CFLAGS="$CFLAGS -Werror=trigraphs"
7830
7831		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7832$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7833		cacheid=xorg_cv_cc_flag__Werror_trigraphs
7834		if eval \${$cacheid+:} false; then :
7835  $as_echo_n "(cached) " >&6
7836else
7837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7838/* end confdefs.h.  */
7839int i;
7840int
7841main ()
7842{
7843
7844  ;
7845  return 0;
7846}
7847_ACEOF
7848if ac_fn_c_try_link "$LINENO"; then :
7849  eval $cacheid=yes
7850else
7851  eval $cacheid=no
7852fi
7853rm -f core conftest.err conftest.$ac_objext \
7854    conftest$ac_exeext conftest.$ac_ext
7855fi
7856
7857
7858		CFLAGS="$xorg_testset_save_CFLAGS"
7859
7860		eval supported=\$$cacheid
7861		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7862$as_echo "$supported" >&6; }
7863		if test "$supported" = "yes" ; then
7864			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7865			found="yes"
7866		fi
7867	fi
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883xorg_testset_save_CFLAGS="$CFLAGS"
7884
7885if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7886	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7887	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7888$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7889if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7890  $as_echo_n "(cached) " >&6
7891else
7892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7893/* end confdefs.h.  */
7894int i;
7895_ACEOF
7896if ac_fn_c_try_compile "$LINENO"; then :
7897  xorg_cv_cc_flag_unknown_warning_option=yes
7898else
7899  xorg_cv_cc_flag_unknown_warning_option=no
7900fi
7901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7902fi
7903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7904$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7905	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7906	CFLAGS="$xorg_testset_save_CFLAGS"
7907fi
7908
7909if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7910	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7911		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7912	fi
7913	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7914	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7915$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7916if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7917  $as_echo_n "(cached) " >&6
7918else
7919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7920/* end confdefs.h.  */
7921int i;
7922_ACEOF
7923if ac_fn_c_try_compile "$LINENO"; then :
7924  xorg_cv_cc_flag_unused_command_line_argument=yes
7925else
7926  xorg_cv_cc_flag_unused_command_line_argument=no
7927fi
7928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7929fi
7930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7931$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7932	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7933	CFLAGS="$xorg_testset_save_CFLAGS"
7934fi
7935
7936found="no"
7937
7938	if test $found = "no" ; then
7939		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7940			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7941		fi
7942
7943		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7944			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7945		fi
7946
7947		CFLAGS="$CFLAGS -Werror=array-bounds"
7948
7949		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7950$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7951		cacheid=xorg_cv_cc_flag__Werror_array_bounds
7952		if eval \${$cacheid+:} false; then :
7953  $as_echo_n "(cached) " >&6
7954else
7955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7956/* end confdefs.h.  */
7957int i;
7958int
7959main ()
7960{
7961
7962  ;
7963  return 0;
7964}
7965_ACEOF
7966if ac_fn_c_try_link "$LINENO"; then :
7967  eval $cacheid=yes
7968else
7969  eval $cacheid=no
7970fi
7971rm -f core conftest.err conftest.$ac_objext \
7972    conftest$ac_exeext conftest.$ac_ext
7973fi
7974
7975
7976		CFLAGS="$xorg_testset_save_CFLAGS"
7977
7978		eval supported=\$$cacheid
7979		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7980$as_echo "$supported" >&6; }
7981		if test "$supported" = "yes" ; then
7982			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7983			found="yes"
7984		fi
7985	fi
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001xorg_testset_save_CFLAGS="$CFLAGS"
8002
8003if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8004	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8005	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8006$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8007if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8008  $as_echo_n "(cached) " >&6
8009else
8010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8011/* end confdefs.h.  */
8012int i;
8013_ACEOF
8014if ac_fn_c_try_compile "$LINENO"; then :
8015  xorg_cv_cc_flag_unknown_warning_option=yes
8016else
8017  xorg_cv_cc_flag_unknown_warning_option=no
8018fi
8019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8020fi
8021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8022$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8023	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8024	CFLAGS="$xorg_testset_save_CFLAGS"
8025fi
8026
8027if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8028	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8029		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8030	fi
8031	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8032	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8033$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8034if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8035  $as_echo_n "(cached) " >&6
8036else
8037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8038/* end confdefs.h.  */
8039int i;
8040_ACEOF
8041if ac_fn_c_try_compile "$LINENO"; then :
8042  xorg_cv_cc_flag_unused_command_line_argument=yes
8043else
8044  xorg_cv_cc_flag_unused_command_line_argument=no
8045fi
8046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8047fi
8048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8049$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8050	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8051	CFLAGS="$xorg_testset_save_CFLAGS"
8052fi
8053
8054found="no"
8055
8056	if test $found = "no" ; then
8057		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8058			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8059		fi
8060
8061		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8062			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8063		fi
8064
8065		CFLAGS="$CFLAGS -Werror=write-strings"
8066
8067		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8068$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8069		cacheid=xorg_cv_cc_flag__Werror_write_strings
8070		if eval \${$cacheid+:} false; then :
8071  $as_echo_n "(cached) " >&6
8072else
8073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8074/* end confdefs.h.  */
8075int i;
8076int
8077main ()
8078{
8079
8080  ;
8081  return 0;
8082}
8083_ACEOF
8084if ac_fn_c_try_link "$LINENO"; then :
8085  eval $cacheid=yes
8086else
8087  eval $cacheid=no
8088fi
8089rm -f core conftest.err conftest.$ac_objext \
8090    conftest$ac_exeext conftest.$ac_ext
8091fi
8092
8093
8094		CFLAGS="$xorg_testset_save_CFLAGS"
8095
8096		eval supported=\$$cacheid
8097		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8098$as_echo "$supported" >&6; }
8099		if test "$supported" = "yes" ; then
8100			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8101			found="yes"
8102		fi
8103	fi
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119xorg_testset_save_CFLAGS="$CFLAGS"
8120
8121if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8122	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8123	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8124$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8125if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8126  $as_echo_n "(cached) " >&6
8127else
8128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8129/* end confdefs.h.  */
8130int i;
8131_ACEOF
8132if ac_fn_c_try_compile "$LINENO"; then :
8133  xorg_cv_cc_flag_unknown_warning_option=yes
8134else
8135  xorg_cv_cc_flag_unknown_warning_option=no
8136fi
8137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8138fi
8139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8140$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8141	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8142	CFLAGS="$xorg_testset_save_CFLAGS"
8143fi
8144
8145if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8146	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8147		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8148	fi
8149	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8150	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8151$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8152if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8153  $as_echo_n "(cached) " >&6
8154else
8155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8156/* end confdefs.h.  */
8157int i;
8158_ACEOF
8159if ac_fn_c_try_compile "$LINENO"; then :
8160  xorg_cv_cc_flag_unused_command_line_argument=yes
8161else
8162  xorg_cv_cc_flag_unused_command_line_argument=no
8163fi
8164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8165fi
8166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8167$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8168	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8169	CFLAGS="$xorg_testset_save_CFLAGS"
8170fi
8171
8172found="no"
8173
8174	if test $found = "no" ; then
8175		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8176			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8177		fi
8178
8179		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8180			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8181		fi
8182
8183		CFLAGS="$CFLAGS -Werror=address"
8184
8185		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8186$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8187		cacheid=xorg_cv_cc_flag__Werror_address
8188		if eval \${$cacheid+:} false; then :
8189  $as_echo_n "(cached) " >&6
8190else
8191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8192/* end confdefs.h.  */
8193int i;
8194int
8195main ()
8196{
8197
8198  ;
8199  return 0;
8200}
8201_ACEOF
8202if ac_fn_c_try_link "$LINENO"; then :
8203  eval $cacheid=yes
8204else
8205  eval $cacheid=no
8206fi
8207rm -f core conftest.err conftest.$ac_objext \
8208    conftest$ac_exeext conftest.$ac_ext
8209fi
8210
8211
8212		CFLAGS="$xorg_testset_save_CFLAGS"
8213
8214		eval supported=\$$cacheid
8215		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8216$as_echo "$supported" >&6; }
8217		if test "$supported" = "yes" ; then
8218			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8219			found="yes"
8220		fi
8221	fi
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237xorg_testset_save_CFLAGS="$CFLAGS"
8238
8239if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8240	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8241	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8242$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8243if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8244  $as_echo_n "(cached) " >&6
8245else
8246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8247/* end confdefs.h.  */
8248int i;
8249_ACEOF
8250if ac_fn_c_try_compile "$LINENO"; then :
8251  xorg_cv_cc_flag_unknown_warning_option=yes
8252else
8253  xorg_cv_cc_flag_unknown_warning_option=no
8254fi
8255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8256fi
8257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8258$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8259	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8260	CFLAGS="$xorg_testset_save_CFLAGS"
8261fi
8262
8263if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8264	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8265		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8266	fi
8267	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8268	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8269$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8270if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8271  $as_echo_n "(cached) " >&6
8272else
8273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8274/* end confdefs.h.  */
8275int i;
8276_ACEOF
8277if ac_fn_c_try_compile "$LINENO"; then :
8278  xorg_cv_cc_flag_unused_command_line_argument=yes
8279else
8280  xorg_cv_cc_flag_unused_command_line_argument=no
8281fi
8282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8283fi
8284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8285$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8286	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8287	CFLAGS="$xorg_testset_save_CFLAGS"
8288fi
8289
8290found="no"
8291
8292	if test $found = "no" ; then
8293		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8294			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8295		fi
8296
8297		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8298			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8299		fi
8300
8301		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8302
8303		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8304$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8305		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8306		if eval \${$cacheid+:} false; then :
8307  $as_echo_n "(cached) " >&6
8308else
8309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8310/* end confdefs.h.  */
8311int i;
8312int
8313main ()
8314{
8315
8316  ;
8317  return 0;
8318}
8319_ACEOF
8320if ac_fn_c_try_link "$LINENO"; then :
8321  eval $cacheid=yes
8322else
8323  eval $cacheid=no
8324fi
8325rm -f core conftest.err conftest.$ac_objext \
8326    conftest$ac_exeext conftest.$ac_ext
8327fi
8328
8329
8330		CFLAGS="$xorg_testset_save_CFLAGS"
8331
8332		eval supported=\$$cacheid
8333		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8334$as_echo "$supported" >&6; }
8335		if test "$supported" = "yes" ; then
8336			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8337			found="yes"
8338		fi
8339	fi
8340
8341	if test $found = "no" ; then
8342		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8343			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8344		fi
8345
8346		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8347			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8348		fi
8349
8350		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8351
8352		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8353$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8354		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8355		if eval \${$cacheid+:} false; then :
8356  $as_echo_n "(cached) " >&6
8357else
8358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8359/* end confdefs.h.  */
8360int i;
8361int
8362main ()
8363{
8364
8365  ;
8366  return 0;
8367}
8368_ACEOF
8369if ac_fn_c_try_link "$LINENO"; then :
8370  eval $cacheid=yes
8371else
8372  eval $cacheid=no
8373fi
8374rm -f core conftest.err conftest.$ac_objext \
8375    conftest$ac_exeext conftest.$ac_ext
8376fi
8377
8378
8379		CFLAGS="$xorg_testset_save_CFLAGS"
8380
8381		eval supported=\$$cacheid
8382		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8383$as_echo "$supported" >&6; }
8384		if test "$supported" = "yes" ; then
8385			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8386			found="yes"
8387		fi
8388	fi
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404xorg_testset_save_CFLAGS="$CFLAGS"
8405
8406if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8407	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8408	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8409$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8410if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8411  $as_echo_n "(cached) " >&6
8412else
8413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414/* end confdefs.h.  */
8415int i;
8416_ACEOF
8417if ac_fn_c_try_compile "$LINENO"; then :
8418  xorg_cv_cc_flag_unknown_warning_option=yes
8419else
8420  xorg_cv_cc_flag_unknown_warning_option=no
8421fi
8422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8423fi
8424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8425$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8426	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8427	CFLAGS="$xorg_testset_save_CFLAGS"
8428fi
8429
8430if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8431	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8432		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8433	fi
8434	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8435	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8436$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8437if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8438  $as_echo_n "(cached) " >&6
8439else
8440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8441/* end confdefs.h.  */
8442int i;
8443_ACEOF
8444if ac_fn_c_try_compile "$LINENO"; then :
8445  xorg_cv_cc_flag_unused_command_line_argument=yes
8446else
8447  xorg_cv_cc_flag_unused_command_line_argument=no
8448fi
8449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8450fi
8451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8452$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8453	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8454	CFLAGS="$xorg_testset_save_CFLAGS"
8455fi
8456
8457found="no"
8458
8459	if test $found = "no" ; then
8460		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8461			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8462		fi
8463
8464		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8465			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8466		fi
8467
8468		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8469
8470		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8471$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8472		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8473		if eval \${$cacheid+:} false; then :
8474  $as_echo_n "(cached) " >&6
8475else
8476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8477/* end confdefs.h.  */
8478int i;
8479int
8480main ()
8481{
8482
8483  ;
8484  return 0;
8485}
8486_ACEOF
8487if ac_fn_c_try_link "$LINENO"; then :
8488  eval $cacheid=yes
8489else
8490  eval $cacheid=no
8491fi
8492rm -f core conftest.err conftest.$ac_objext \
8493    conftest$ac_exeext conftest.$ac_ext
8494fi
8495
8496
8497		CFLAGS="$xorg_testset_save_CFLAGS"
8498
8499		eval supported=\$$cacheid
8500		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8501$as_echo "$supported" >&6; }
8502		if test "$supported" = "yes" ; then
8503			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8504			found="yes"
8505		fi
8506	fi
8507
8508 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8509else
8510{ $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
8511$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;}
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525xorg_testset_save_CFLAGS="$CFLAGS"
8526
8527if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8528	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8529	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8530$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8531if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8532  $as_echo_n "(cached) " >&6
8533else
8534  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8535/* end confdefs.h.  */
8536int i;
8537_ACEOF
8538if ac_fn_c_try_compile "$LINENO"; then :
8539  xorg_cv_cc_flag_unknown_warning_option=yes
8540else
8541  xorg_cv_cc_flag_unknown_warning_option=no
8542fi
8543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8544fi
8545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8546$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8547	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8548	CFLAGS="$xorg_testset_save_CFLAGS"
8549fi
8550
8551if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8552	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8553		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8554	fi
8555	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8556	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8557$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8558if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8559  $as_echo_n "(cached) " >&6
8560else
8561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8562/* end confdefs.h.  */
8563int i;
8564_ACEOF
8565if ac_fn_c_try_compile "$LINENO"; then :
8566  xorg_cv_cc_flag_unused_command_line_argument=yes
8567else
8568  xorg_cv_cc_flag_unused_command_line_argument=no
8569fi
8570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8571fi
8572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8573$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8574	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8575	CFLAGS="$xorg_testset_save_CFLAGS"
8576fi
8577
8578found="no"
8579
8580	if test $found = "no" ; then
8581		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8582			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8583		fi
8584
8585		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8586			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8587		fi
8588
8589		CFLAGS="$CFLAGS -Wimplicit"
8590
8591		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8592$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8593		cacheid=xorg_cv_cc_flag__Wimplicit
8594		if eval \${$cacheid+:} false; then :
8595  $as_echo_n "(cached) " >&6
8596else
8597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8598/* end confdefs.h.  */
8599int i;
8600int
8601main ()
8602{
8603
8604  ;
8605  return 0;
8606}
8607_ACEOF
8608if ac_fn_c_try_link "$LINENO"; then :
8609  eval $cacheid=yes
8610else
8611  eval $cacheid=no
8612fi
8613rm -f core conftest.err conftest.$ac_objext \
8614    conftest$ac_exeext conftest.$ac_ext
8615fi
8616
8617
8618		CFLAGS="$xorg_testset_save_CFLAGS"
8619
8620		eval supported=\$$cacheid
8621		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8622$as_echo "$supported" >&6; }
8623		if test "$supported" = "yes" ; then
8624			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8625			found="yes"
8626		fi
8627	fi
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643xorg_testset_save_CFLAGS="$CFLAGS"
8644
8645if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8646	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8647	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8648$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8649if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8650  $as_echo_n "(cached) " >&6
8651else
8652  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8653/* end confdefs.h.  */
8654int i;
8655_ACEOF
8656if ac_fn_c_try_compile "$LINENO"; then :
8657  xorg_cv_cc_flag_unknown_warning_option=yes
8658else
8659  xorg_cv_cc_flag_unknown_warning_option=no
8660fi
8661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8662fi
8663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8664$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8665	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8666	CFLAGS="$xorg_testset_save_CFLAGS"
8667fi
8668
8669if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8670	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8671		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8672	fi
8673	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8674	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8675$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8676if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8677  $as_echo_n "(cached) " >&6
8678else
8679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8680/* end confdefs.h.  */
8681int i;
8682_ACEOF
8683if ac_fn_c_try_compile "$LINENO"; then :
8684  xorg_cv_cc_flag_unused_command_line_argument=yes
8685else
8686  xorg_cv_cc_flag_unused_command_line_argument=no
8687fi
8688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8689fi
8690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8691$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8692	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8693	CFLAGS="$xorg_testset_save_CFLAGS"
8694fi
8695
8696found="no"
8697
8698	if test $found = "no" ; then
8699		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8700			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8701		fi
8702
8703		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8704			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8705		fi
8706
8707		CFLAGS="$CFLAGS -Wnonnull"
8708
8709		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8710$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8711		cacheid=xorg_cv_cc_flag__Wnonnull
8712		if eval \${$cacheid+:} false; then :
8713  $as_echo_n "(cached) " >&6
8714else
8715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8716/* end confdefs.h.  */
8717int i;
8718int
8719main ()
8720{
8721
8722  ;
8723  return 0;
8724}
8725_ACEOF
8726if ac_fn_c_try_link "$LINENO"; then :
8727  eval $cacheid=yes
8728else
8729  eval $cacheid=no
8730fi
8731rm -f core conftest.err conftest.$ac_objext \
8732    conftest$ac_exeext conftest.$ac_ext
8733fi
8734
8735
8736		CFLAGS="$xorg_testset_save_CFLAGS"
8737
8738		eval supported=\$$cacheid
8739		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8740$as_echo "$supported" >&6; }
8741		if test "$supported" = "yes" ; then
8742			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8743			found="yes"
8744		fi
8745	fi
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761xorg_testset_save_CFLAGS="$CFLAGS"
8762
8763if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8764	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8765	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8766$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8767if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8768  $as_echo_n "(cached) " >&6
8769else
8770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8771/* end confdefs.h.  */
8772int i;
8773_ACEOF
8774if ac_fn_c_try_compile "$LINENO"; then :
8775  xorg_cv_cc_flag_unknown_warning_option=yes
8776else
8777  xorg_cv_cc_flag_unknown_warning_option=no
8778fi
8779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8780fi
8781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8782$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8783	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8784	CFLAGS="$xorg_testset_save_CFLAGS"
8785fi
8786
8787if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8788	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8789		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8790	fi
8791	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8792	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8793$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8794if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8795  $as_echo_n "(cached) " >&6
8796else
8797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8798/* end confdefs.h.  */
8799int i;
8800_ACEOF
8801if ac_fn_c_try_compile "$LINENO"; then :
8802  xorg_cv_cc_flag_unused_command_line_argument=yes
8803else
8804  xorg_cv_cc_flag_unused_command_line_argument=no
8805fi
8806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8807fi
8808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8809$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8810	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8811	CFLAGS="$xorg_testset_save_CFLAGS"
8812fi
8813
8814found="no"
8815
8816	if test $found = "no" ; then
8817		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8818			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8819		fi
8820
8821		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8822			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8823		fi
8824
8825		CFLAGS="$CFLAGS -Winit-self"
8826
8827		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8828$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8829		cacheid=xorg_cv_cc_flag__Winit_self
8830		if eval \${$cacheid+:} false; then :
8831  $as_echo_n "(cached) " >&6
8832else
8833  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8834/* end confdefs.h.  */
8835int i;
8836int
8837main ()
8838{
8839
8840  ;
8841  return 0;
8842}
8843_ACEOF
8844if ac_fn_c_try_link "$LINENO"; then :
8845  eval $cacheid=yes
8846else
8847  eval $cacheid=no
8848fi
8849rm -f core conftest.err conftest.$ac_objext \
8850    conftest$ac_exeext conftest.$ac_ext
8851fi
8852
8853
8854		CFLAGS="$xorg_testset_save_CFLAGS"
8855
8856		eval supported=\$$cacheid
8857		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8858$as_echo "$supported" >&6; }
8859		if test "$supported" = "yes" ; then
8860			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8861			found="yes"
8862		fi
8863	fi
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879xorg_testset_save_CFLAGS="$CFLAGS"
8880
8881if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8882	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8883	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8884$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8885if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8886  $as_echo_n "(cached) " >&6
8887else
8888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8889/* end confdefs.h.  */
8890int i;
8891_ACEOF
8892if ac_fn_c_try_compile "$LINENO"; then :
8893  xorg_cv_cc_flag_unknown_warning_option=yes
8894else
8895  xorg_cv_cc_flag_unknown_warning_option=no
8896fi
8897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8898fi
8899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8900$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8901	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8902	CFLAGS="$xorg_testset_save_CFLAGS"
8903fi
8904
8905if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8906	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8907		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8908	fi
8909	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8910	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8911$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8912if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8913  $as_echo_n "(cached) " >&6
8914else
8915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8916/* end confdefs.h.  */
8917int i;
8918_ACEOF
8919if ac_fn_c_try_compile "$LINENO"; then :
8920  xorg_cv_cc_flag_unused_command_line_argument=yes
8921else
8922  xorg_cv_cc_flag_unused_command_line_argument=no
8923fi
8924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8925fi
8926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8927$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8928	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8929	CFLAGS="$xorg_testset_save_CFLAGS"
8930fi
8931
8932found="no"
8933
8934	if test $found = "no" ; then
8935		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8936			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8937		fi
8938
8939		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8940			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8941		fi
8942
8943		CFLAGS="$CFLAGS -Wmain"
8944
8945		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8946$as_echo_n "checking if $CC supports -Wmain... " >&6; }
8947		cacheid=xorg_cv_cc_flag__Wmain
8948		if eval \${$cacheid+:} false; then :
8949  $as_echo_n "(cached) " >&6
8950else
8951  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8952/* end confdefs.h.  */
8953int i;
8954int
8955main ()
8956{
8957
8958  ;
8959  return 0;
8960}
8961_ACEOF
8962if ac_fn_c_try_link "$LINENO"; then :
8963  eval $cacheid=yes
8964else
8965  eval $cacheid=no
8966fi
8967rm -f core conftest.err conftest.$ac_objext \
8968    conftest$ac_exeext conftest.$ac_ext
8969fi
8970
8971
8972		CFLAGS="$xorg_testset_save_CFLAGS"
8973
8974		eval supported=\$$cacheid
8975		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8976$as_echo "$supported" >&6; }
8977		if test "$supported" = "yes" ; then
8978			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8979			found="yes"
8980		fi
8981	fi
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997xorg_testset_save_CFLAGS="$CFLAGS"
8998
8999if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9000	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9001	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9002$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9003if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9004  $as_echo_n "(cached) " >&6
9005else
9006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9007/* end confdefs.h.  */
9008int i;
9009_ACEOF
9010if ac_fn_c_try_compile "$LINENO"; then :
9011  xorg_cv_cc_flag_unknown_warning_option=yes
9012else
9013  xorg_cv_cc_flag_unknown_warning_option=no
9014fi
9015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9016fi
9017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9018$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9019	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9020	CFLAGS="$xorg_testset_save_CFLAGS"
9021fi
9022
9023if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9024	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9025		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9026	fi
9027	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9028	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9029$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9030if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9031  $as_echo_n "(cached) " >&6
9032else
9033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9034/* end confdefs.h.  */
9035int i;
9036_ACEOF
9037if ac_fn_c_try_compile "$LINENO"; then :
9038  xorg_cv_cc_flag_unused_command_line_argument=yes
9039else
9040  xorg_cv_cc_flag_unused_command_line_argument=no
9041fi
9042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9043fi
9044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9045$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9046	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9047	CFLAGS="$xorg_testset_save_CFLAGS"
9048fi
9049
9050found="no"
9051
9052	if test $found = "no" ; then
9053		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9054			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9055		fi
9056
9057		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9058			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9059		fi
9060
9061		CFLAGS="$CFLAGS -Wmissing-braces"
9062
9063		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9064$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9065		cacheid=xorg_cv_cc_flag__Wmissing_braces
9066		if eval \${$cacheid+:} false; then :
9067  $as_echo_n "(cached) " >&6
9068else
9069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9070/* end confdefs.h.  */
9071int i;
9072int
9073main ()
9074{
9075
9076  ;
9077  return 0;
9078}
9079_ACEOF
9080if ac_fn_c_try_link "$LINENO"; then :
9081  eval $cacheid=yes
9082else
9083  eval $cacheid=no
9084fi
9085rm -f core conftest.err conftest.$ac_objext \
9086    conftest$ac_exeext conftest.$ac_ext
9087fi
9088
9089
9090		CFLAGS="$xorg_testset_save_CFLAGS"
9091
9092		eval supported=\$$cacheid
9093		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9094$as_echo "$supported" >&6; }
9095		if test "$supported" = "yes" ; then
9096			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9097			found="yes"
9098		fi
9099	fi
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115xorg_testset_save_CFLAGS="$CFLAGS"
9116
9117if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9118	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9119	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9120$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9121if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9122  $as_echo_n "(cached) " >&6
9123else
9124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9125/* end confdefs.h.  */
9126int i;
9127_ACEOF
9128if ac_fn_c_try_compile "$LINENO"; then :
9129  xorg_cv_cc_flag_unknown_warning_option=yes
9130else
9131  xorg_cv_cc_flag_unknown_warning_option=no
9132fi
9133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9134fi
9135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9136$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9137	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9138	CFLAGS="$xorg_testset_save_CFLAGS"
9139fi
9140
9141if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9142	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9143		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9144	fi
9145	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9146	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9147$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9148if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9149  $as_echo_n "(cached) " >&6
9150else
9151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9152/* end confdefs.h.  */
9153int i;
9154_ACEOF
9155if ac_fn_c_try_compile "$LINENO"; then :
9156  xorg_cv_cc_flag_unused_command_line_argument=yes
9157else
9158  xorg_cv_cc_flag_unused_command_line_argument=no
9159fi
9160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9161fi
9162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9163$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9164	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9165	CFLAGS="$xorg_testset_save_CFLAGS"
9166fi
9167
9168found="no"
9169
9170	if test $found = "no" ; then
9171		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9172			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9173		fi
9174
9175		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9176			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9177		fi
9178
9179		CFLAGS="$CFLAGS -Wsequence-point"
9180
9181		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9182$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9183		cacheid=xorg_cv_cc_flag__Wsequence_point
9184		if eval \${$cacheid+:} false; then :
9185  $as_echo_n "(cached) " >&6
9186else
9187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9188/* end confdefs.h.  */
9189int i;
9190int
9191main ()
9192{
9193
9194  ;
9195  return 0;
9196}
9197_ACEOF
9198if ac_fn_c_try_link "$LINENO"; then :
9199  eval $cacheid=yes
9200else
9201  eval $cacheid=no
9202fi
9203rm -f core conftest.err conftest.$ac_objext \
9204    conftest$ac_exeext conftest.$ac_ext
9205fi
9206
9207
9208		CFLAGS="$xorg_testset_save_CFLAGS"
9209
9210		eval supported=\$$cacheid
9211		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9212$as_echo "$supported" >&6; }
9213		if test "$supported" = "yes" ; then
9214			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9215			found="yes"
9216		fi
9217	fi
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233xorg_testset_save_CFLAGS="$CFLAGS"
9234
9235if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9236	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9237	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9238$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9239if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9240  $as_echo_n "(cached) " >&6
9241else
9242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9243/* end confdefs.h.  */
9244int i;
9245_ACEOF
9246if ac_fn_c_try_compile "$LINENO"; then :
9247  xorg_cv_cc_flag_unknown_warning_option=yes
9248else
9249  xorg_cv_cc_flag_unknown_warning_option=no
9250fi
9251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9252fi
9253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9254$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9255	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9256	CFLAGS="$xorg_testset_save_CFLAGS"
9257fi
9258
9259if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9260	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9261		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9262	fi
9263	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9264	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9265$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9266if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9267  $as_echo_n "(cached) " >&6
9268else
9269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9270/* end confdefs.h.  */
9271int i;
9272_ACEOF
9273if ac_fn_c_try_compile "$LINENO"; then :
9274  xorg_cv_cc_flag_unused_command_line_argument=yes
9275else
9276  xorg_cv_cc_flag_unused_command_line_argument=no
9277fi
9278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9279fi
9280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9281$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9282	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9283	CFLAGS="$xorg_testset_save_CFLAGS"
9284fi
9285
9286found="no"
9287
9288	if test $found = "no" ; then
9289		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9290			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9291		fi
9292
9293		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9294			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9295		fi
9296
9297		CFLAGS="$CFLAGS -Wreturn-type"
9298
9299		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9300$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9301		cacheid=xorg_cv_cc_flag__Wreturn_type
9302		if eval \${$cacheid+:} false; then :
9303  $as_echo_n "(cached) " >&6
9304else
9305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9306/* end confdefs.h.  */
9307int i;
9308int
9309main ()
9310{
9311
9312  ;
9313  return 0;
9314}
9315_ACEOF
9316if ac_fn_c_try_link "$LINENO"; then :
9317  eval $cacheid=yes
9318else
9319  eval $cacheid=no
9320fi
9321rm -f core conftest.err conftest.$ac_objext \
9322    conftest$ac_exeext conftest.$ac_ext
9323fi
9324
9325
9326		CFLAGS="$xorg_testset_save_CFLAGS"
9327
9328		eval supported=\$$cacheid
9329		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9330$as_echo "$supported" >&6; }
9331		if test "$supported" = "yes" ; then
9332			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9333			found="yes"
9334		fi
9335	fi
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351xorg_testset_save_CFLAGS="$CFLAGS"
9352
9353if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9354	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9355	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9356$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9357if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9358  $as_echo_n "(cached) " >&6
9359else
9360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9361/* end confdefs.h.  */
9362int i;
9363_ACEOF
9364if ac_fn_c_try_compile "$LINENO"; then :
9365  xorg_cv_cc_flag_unknown_warning_option=yes
9366else
9367  xorg_cv_cc_flag_unknown_warning_option=no
9368fi
9369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9370fi
9371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9372$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9373	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9374	CFLAGS="$xorg_testset_save_CFLAGS"
9375fi
9376
9377if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9378	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9379		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9380	fi
9381	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9382	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9383$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9384if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9385  $as_echo_n "(cached) " >&6
9386else
9387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9388/* end confdefs.h.  */
9389int i;
9390_ACEOF
9391if ac_fn_c_try_compile "$LINENO"; then :
9392  xorg_cv_cc_flag_unused_command_line_argument=yes
9393else
9394  xorg_cv_cc_flag_unused_command_line_argument=no
9395fi
9396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9397fi
9398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9399$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9400	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9401	CFLAGS="$xorg_testset_save_CFLAGS"
9402fi
9403
9404found="no"
9405
9406	if test $found = "no" ; then
9407		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9408			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9409		fi
9410
9411		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9412			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9413		fi
9414
9415		CFLAGS="$CFLAGS -Wtrigraphs"
9416
9417		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9418$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9419		cacheid=xorg_cv_cc_flag__Wtrigraphs
9420		if eval \${$cacheid+:} false; then :
9421  $as_echo_n "(cached) " >&6
9422else
9423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9424/* end confdefs.h.  */
9425int i;
9426int
9427main ()
9428{
9429
9430  ;
9431  return 0;
9432}
9433_ACEOF
9434if ac_fn_c_try_link "$LINENO"; then :
9435  eval $cacheid=yes
9436else
9437  eval $cacheid=no
9438fi
9439rm -f core conftest.err conftest.$ac_objext \
9440    conftest$ac_exeext conftest.$ac_ext
9441fi
9442
9443
9444		CFLAGS="$xorg_testset_save_CFLAGS"
9445
9446		eval supported=\$$cacheid
9447		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9448$as_echo "$supported" >&6; }
9449		if test "$supported" = "yes" ; then
9450			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9451			found="yes"
9452		fi
9453	fi
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469xorg_testset_save_CFLAGS="$CFLAGS"
9470
9471if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9472	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9473	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9474$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9475if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9476  $as_echo_n "(cached) " >&6
9477else
9478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9479/* end confdefs.h.  */
9480int i;
9481_ACEOF
9482if ac_fn_c_try_compile "$LINENO"; then :
9483  xorg_cv_cc_flag_unknown_warning_option=yes
9484else
9485  xorg_cv_cc_flag_unknown_warning_option=no
9486fi
9487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9488fi
9489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9490$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9491	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9492	CFLAGS="$xorg_testset_save_CFLAGS"
9493fi
9494
9495if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9496	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9497		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9498	fi
9499	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9500	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9501$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9502if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9503  $as_echo_n "(cached) " >&6
9504else
9505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9506/* end confdefs.h.  */
9507int i;
9508_ACEOF
9509if ac_fn_c_try_compile "$LINENO"; then :
9510  xorg_cv_cc_flag_unused_command_line_argument=yes
9511else
9512  xorg_cv_cc_flag_unused_command_line_argument=no
9513fi
9514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9515fi
9516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9517$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9518	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9519	CFLAGS="$xorg_testset_save_CFLAGS"
9520fi
9521
9522found="no"
9523
9524	if test $found = "no" ; then
9525		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9526			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9527		fi
9528
9529		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9530			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9531		fi
9532
9533		CFLAGS="$CFLAGS -Warray-bounds"
9534
9535		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9536$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9537		cacheid=xorg_cv_cc_flag__Warray_bounds
9538		if eval \${$cacheid+:} false; then :
9539  $as_echo_n "(cached) " >&6
9540else
9541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9542/* end confdefs.h.  */
9543int i;
9544int
9545main ()
9546{
9547
9548  ;
9549  return 0;
9550}
9551_ACEOF
9552if ac_fn_c_try_link "$LINENO"; then :
9553  eval $cacheid=yes
9554else
9555  eval $cacheid=no
9556fi
9557rm -f core conftest.err conftest.$ac_objext \
9558    conftest$ac_exeext conftest.$ac_ext
9559fi
9560
9561
9562		CFLAGS="$xorg_testset_save_CFLAGS"
9563
9564		eval supported=\$$cacheid
9565		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9566$as_echo "$supported" >&6; }
9567		if test "$supported" = "yes" ; then
9568			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9569			found="yes"
9570		fi
9571	fi
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587xorg_testset_save_CFLAGS="$CFLAGS"
9588
9589if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9590	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9591	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9592$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9593if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9594  $as_echo_n "(cached) " >&6
9595else
9596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9597/* end confdefs.h.  */
9598int i;
9599_ACEOF
9600if ac_fn_c_try_compile "$LINENO"; then :
9601  xorg_cv_cc_flag_unknown_warning_option=yes
9602else
9603  xorg_cv_cc_flag_unknown_warning_option=no
9604fi
9605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9606fi
9607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9608$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9609	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9610	CFLAGS="$xorg_testset_save_CFLAGS"
9611fi
9612
9613if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9614	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9615		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9616	fi
9617	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9618	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9619$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9620if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9621  $as_echo_n "(cached) " >&6
9622else
9623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9624/* end confdefs.h.  */
9625int i;
9626_ACEOF
9627if ac_fn_c_try_compile "$LINENO"; then :
9628  xorg_cv_cc_flag_unused_command_line_argument=yes
9629else
9630  xorg_cv_cc_flag_unused_command_line_argument=no
9631fi
9632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9633fi
9634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9635$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9636	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9637	CFLAGS="$xorg_testset_save_CFLAGS"
9638fi
9639
9640found="no"
9641
9642	if test $found = "no" ; then
9643		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9644			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9645		fi
9646
9647		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9648			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9649		fi
9650
9651		CFLAGS="$CFLAGS -Wwrite-strings"
9652
9653		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9654$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9655		cacheid=xorg_cv_cc_flag__Wwrite_strings
9656		if eval \${$cacheid+:} false; then :
9657  $as_echo_n "(cached) " >&6
9658else
9659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9660/* end confdefs.h.  */
9661int i;
9662int
9663main ()
9664{
9665
9666  ;
9667  return 0;
9668}
9669_ACEOF
9670if ac_fn_c_try_link "$LINENO"; then :
9671  eval $cacheid=yes
9672else
9673  eval $cacheid=no
9674fi
9675rm -f core conftest.err conftest.$ac_objext \
9676    conftest$ac_exeext conftest.$ac_ext
9677fi
9678
9679
9680		CFLAGS="$xorg_testset_save_CFLAGS"
9681
9682		eval supported=\$$cacheid
9683		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9684$as_echo "$supported" >&6; }
9685		if test "$supported" = "yes" ; then
9686			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9687			found="yes"
9688		fi
9689	fi
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705xorg_testset_save_CFLAGS="$CFLAGS"
9706
9707if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9708	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9709	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9710$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9711if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9712  $as_echo_n "(cached) " >&6
9713else
9714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9715/* end confdefs.h.  */
9716int i;
9717_ACEOF
9718if ac_fn_c_try_compile "$LINENO"; then :
9719  xorg_cv_cc_flag_unknown_warning_option=yes
9720else
9721  xorg_cv_cc_flag_unknown_warning_option=no
9722fi
9723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9724fi
9725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9726$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9727	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9728	CFLAGS="$xorg_testset_save_CFLAGS"
9729fi
9730
9731if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9732	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9733		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9734	fi
9735	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9736	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9737$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9738if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9739  $as_echo_n "(cached) " >&6
9740else
9741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9742/* end confdefs.h.  */
9743int i;
9744_ACEOF
9745if ac_fn_c_try_compile "$LINENO"; then :
9746  xorg_cv_cc_flag_unused_command_line_argument=yes
9747else
9748  xorg_cv_cc_flag_unused_command_line_argument=no
9749fi
9750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9751fi
9752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9753$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9754	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9755	CFLAGS="$xorg_testset_save_CFLAGS"
9756fi
9757
9758found="no"
9759
9760	if test $found = "no" ; then
9761		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9762			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9763		fi
9764
9765		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9766			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9767		fi
9768
9769		CFLAGS="$CFLAGS -Waddress"
9770
9771		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9772$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9773		cacheid=xorg_cv_cc_flag__Waddress
9774		if eval \${$cacheid+:} false; then :
9775  $as_echo_n "(cached) " >&6
9776else
9777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9778/* end confdefs.h.  */
9779int i;
9780int
9781main ()
9782{
9783
9784  ;
9785  return 0;
9786}
9787_ACEOF
9788if ac_fn_c_try_link "$LINENO"; then :
9789  eval $cacheid=yes
9790else
9791  eval $cacheid=no
9792fi
9793rm -f core conftest.err conftest.$ac_objext \
9794    conftest$ac_exeext conftest.$ac_ext
9795fi
9796
9797
9798		CFLAGS="$xorg_testset_save_CFLAGS"
9799
9800		eval supported=\$$cacheid
9801		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9802$as_echo "$supported" >&6; }
9803		if test "$supported" = "yes" ; then
9804			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9805			found="yes"
9806		fi
9807	fi
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823xorg_testset_save_CFLAGS="$CFLAGS"
9824
9825if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9826	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9827	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9828$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9829if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9830  $as_echo_n "(cached) " >&6
9831else
9832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9833/* end confdefs.h.  */
9834int i;
9835_ACEOF
9836if ac_fn_c_try_compile "$LINENO"; then :
9837  xorg_cv_cc_flag_unknown_warning_option=yes
9838else
9839  xorg_cv_cc_flag_unknown_warning_option=no
9840fi
9841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9842fi
9843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9844$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9845	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9846	CFLAGS="$xorg_testset_save_CFLAGS"
9847fi
9848
9849if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9850	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9851		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9852	fi
9853	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9854	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9855$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9856if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9857  $as_echo_n "(cached) " >&6
9858else
9859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9860/* end confdefs.h.  */
9861int i;
9862_ACEOF
9863if ac_fn_c_try_compile "$LINENO"; then :
9864  xorg_cv_cc_flag_unused_command_line_argument=yes
9865else
9866  xorg_cv_cc_flag_unused_command_line_argument=no
9867fi
9868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9869fi
9870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9871$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9872	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9873	CFLAGS="$xorg_testset_save_CFLAGS"
9874fi
9875
9876found="no"
9877
9878	if test $found = "no" ; then
9879		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9880			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9881		fi
9882
9883		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9884			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9885		fi
9886
9887		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9888
9889		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9890$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9891		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9892		if eval \${$cacheid+:} false; then :
9893  $as_echo_n "(cached) " >&6
9894else
9895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9896/* end confdefs.h.  */
9897int i;
9898int
9899main ()
9900{
9901
9902  ;
9903  return 0;
9904}
9905_ACEOF
9906if ac_fn_c_try_link "$LINENO"; then :
9907  eval $cacheid=yes
9908else
9909  eval $cacheid=no
9910fi
9911rm -f core conftest.err conftest.$ac_objext \
9912    conftest$ac_exeext conftest.$ac_ext
9913fi
9914
9915
9916		CFLAGS="$xorg_testset_save_CFLAGS"
9917
9918		eval supported=\$$cacheid
9919		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9920$as_echo "$supported" >&6; }
9921		if test "$supported" = "yes" ; then
9922			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9923			found="yes"
9924		fi
9925	fi
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941xorg_testset_save_CFLAGS="$CFLAGS"
9942
9943if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9944	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9945	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9946$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9947if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9948  $as_echo_n "(cached) " >&6
9949else
9950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9951/* end confdefs.h.  */
9952int i;
9953_ACEOF
9954if ac_fn_c_try_compile "$LINENO"; then :
9955  xorg_cv_cc_flag_unknown_warning_option=yes
9956else
9957  xorg_cv_cc_flag_unknown_warning_option=no
9958fi
9959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9960fi
9961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9962$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9963	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9964	CFLAGS="$xorg_testset_save_CFLAGS"
9965fi
9966
9967if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9968	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9969		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9970	fi
9971	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9972	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9973$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9974if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9975  $as_echo_n "(cached) " >&6
9976else
9977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9978/* end confdefs.h.  */
9979int i;
9980_ACEOF
9981if ac_fn_c_try_compile "$LINENO"; then :
9982  xorg_cv_cc_flag_unused_command_line_argument=yes
9983else
9984  xorg_cv_cc_flag_unused_command_line_argument=no
9985fi
9986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9987fi
9988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9989$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9990	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9991	CFLAGS="$xorg_testset_save_CFLAGS"
9992fi
9993
9994found="no"
9995
9996	if test $found = "no" ; then
9997		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9998			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9999		fi
10000
10001		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10002			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10003		fi
10004
10005		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10006
10007		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10008$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10009		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10010		if eval \${$cacheid+:} false; then :
10011  $as_echo_n "(cached) " >&6
10012else
10013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10014/* end confdefs.h.  */
10015int i;
10016int
10017main ()
10018{
10019
10020  ;
10021  return 0;
10022}
10023_ACEOF
10024if ac_fn_c_try_link "$LINENO"; then :
10025  eval $cacheid=yes
10026else
10027  eval $cacheid=no
10028fi
10029rm -f core conftest.err conftest.$ac_objext \
10030    conftest$ac_exeext conftest.$ac_ext
10031fi
10032
10033
10034		CFLAGS="$xorg_testset_save_CFLAGS"
10035
10036		eval supported=\$$cacheid
10037		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10038$as_echo "$supported" >&6; }
10039		if test "$supported" = "yes" ; then
10040			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10041			found="yes"
10042		fi
10043	fi
10044
10045
10046fi
10047
10048
10049
10050
10051
10052
10053
10054		CWARNFLAGS="$BASE_CFLAGS"
10055		if  test "x$GCC" = xyes ; then
10056		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10057		fi
10058
10059
10060
10061
10062
10063
10064
10065
10066# Check whether --enable-strict-compilation was given.
10067if test "${enable_strict_compilation+set}" = set; then :
10068  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10069else
10070  STRICT_COMPILE=no
10071fi
10072
10073
10074
10075
10076
10077
10078STRICT_CFLAGS=""
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092xorg_testset_save_CFLAGS="$CFLAGS"
10093
10094if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10095	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10096	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10097$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10098if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10099  $as_echo_n "(cached) " >&6
10100else
10101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10102/* end confdefs.h.  */
10103int i;
10104_ACEOF
10105if ac_fn_c_try_compile "$LINENO"; then :
10106  xorg_cv_cc_flag_unknown_warning_option=yes
10107else
10108  xorg_cv_cc_flag_unknown_warning_option=no
10109fi
10110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10111fi
10112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10113$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10114	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10115	CFLAGS="$xorg_testset_save_CFLAGS"
10116fi
10117
10118if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10119	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10120		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10121	fi
10122	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10123	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10124$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10125if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10126  $as_echo_n "(cached) " >&6
10127else
10128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10129/* end confdefs.h.  */
10130int i;
10131_ACEOF
10132if ac_fn_c_try_compile "$LINENO"; then :
10133  xorg_cv_cc_flag_unused_command_line_argument=yes
10134else
10135  xorg_cv_cc_flag_unused_command_line_argument=no
10136fi
10137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10138fi
10139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10140$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10141	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10142	CFLAGS="$xorg_testset_save_CFLAGS"
10143fi
10144
10145found="no"
10146
10147	if test $found = "no" ; then
10148		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10149			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10150		fi
10151
10152		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10153			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10154		fi
10155
10156		CFLAGS="$CFLAGS -pedantic"
10157
10158		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10159$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10160		cacheid=xorg_cv_cc_flag__pedantic
10161		if eval \${$cacheid+:} false; then :
10162  $as_echo_n "(cached) " >&6
10163else
10164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10165/* end confdefs.h.  */
10166int i;
10167int
10168main ()
10169{
10170
10171  ;
10172  return 0;
10173}
10174_ACEOF
10175if ac_fn_c_try_link "$LINENO"; then :
10176  eval $cacheid=yes
10177else
10178  eval $cacheid=no
10179fi
10180rm -f core conftest.err conftest.$ac_objext \
10181    conftest$ac_exeext conftest.$ac_ext
10182fi
10183
10184
10185		CFLAGS="$xorg_testset_save_CFLAGS"
10186
10187		eval supported=\$$cacheid
10188		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10189$as_echo "$supported" >&6; }
10190		if test "$supported" = "yes" ; then
10191			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10192			found="yes"
10193		fi
10194	fi
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210xorg_testset_save_CFLAGS="$CFLAGS"
10211
10212if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10213	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10214	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10215$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10216if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10217  $as_echo_n "(cached) " >&6
10218else
10219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10220/* end confdefs.h.  */
10221int i;
10222_ACEOF
10223if ac_fn_c_try_compile "$LINENO"; then :
10224  xorg_cv_cc_flag_unknown_warning_option=yes
10225else
10226  xorg_cv_cc_flag_unknown_warning_option=no
10227fi
10228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10229fi
10230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10231$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10232	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10233	CFLAGS="$xorg_testset_save_CFLAGS"
10234fi
10235
10236if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10237	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10238		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10239	fi
10240	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10241	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10242$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10243if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10244  $as_echo_n "(cached) " >&6
10245else
10246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10247/* end confdefs.h.  */
10248int i;
10249_ACEOF
10250if ac_fn_c_try_compile "$LINENO"; then :
10251  xorg_cv_cc_flag_unused_command_line_argument=yes
10252else
10253  xorg_cv_cc_flag_unused_command_line_argument=no
10254fi
10255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10256fi
10257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10258$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10259	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10260	CFLAGS="$xorg_testset_save_CFLAGS"
10261fi
10262
10263found="no"
10264
10265	if test $found = "no" ; then
10266		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10267			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10268		fi
10269
10270		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10271			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10272		fi
10273
10274		CFLAGS="$CFLAGS -Werror"
10275
10276		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10277$as_echo_n "checking if $CC supports -Werror... " >&6; }
10278		cacheid=xorg_cv_cc_flag__Werror
10279		if eval \${$cacheid+:} false; then :
10280  $as_echo_n "(cached) " >&6
10281else
10282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10283/* end confdefs.h.  */
10284int i;
10285int
10286main ()
10287{
10288
10289  ;
10290  return 0;
10291}
10292_ACEOF
10293if ac_fn_c_try_link "$LINENO"; then :
10294  eval $cacheid=yes
10295else
10296  eval $cacheid=no
10297fi
10298rm -f core conftest.err conftest.$ac_objext \
10299    conftest$ac_exeext conftest.$ac_ext
10300fi
10301
10302
10303		CFLAGS="$xorg_testset_save_CFLAGS"
10304
10305		eval supported=\$$cacheid
10306		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10307$as_echo "$supported" >&6; }
10308		if test "$supported" = "yes" ; then
10309			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10310			found="yes"
10311		fi
10312	fi
10313
10314	if test $found = "no" ; then
10315		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10316			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10317		fi
10318
10319		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10320			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10321		fi
10322
10323		CFLAGS="$CFLAGS -errwarn"
10324
10325		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10326$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10327		cacheid=xorg_cv_cc_flag__errwarn
10328		if eval \${$cacheid+:} false; then :
10329  $as_echo_n "(cached) " >&6
10330else
10331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10332/* end confdefs.h.  */
10333int i;
10334int
10335main ()
10336{
10337
10338  ;
10339  return 0;
10340}
10341_ACEOF
10342if ac_fn_c_try_link "$LINENO"; then :
10343  eval $cacheid=yes
10344else
10345  eval $cacheid=no
10346fi
10347rm -f core conftest.err conftest.$ac_objext \
10348    conftest$ac_exeext conftest.$ac_ext
10349fi
10350
10351
10352		CFLAGS="$xorg_testset_save_CFLAGS"
10353
10354		eval supported=\$$cacheid
10355		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10356$as_echo "$supported" >&6; }
10357		if test "$supported" = "yes" ; then
10358			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10359			found="yes"
10360		fi
10361	fi
10362
10363
10364
10365# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10366# activate it with -Werror, so we add it here explicitly.
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380xorg_testset_save_CFLAGS="$CFLAGS"
10381
10382if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10383	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10384	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10385$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10386if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10387  $as_echo_n "(cached) " >&6
10388else
10389  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10390/* end confdefs.h.  */
10391int i;
10392_ACEOF
10393if ac_fn_c_try_compile "$LINENO"; then :
10394  xorg_cv_cc_flag_unknown_warning_option=yes
10395else
10396  xorg_cv_cc_flag_unknown_warning_option=no
10397fi
10398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10399fi
10400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10401$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10402	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10403	CFLAGS="$xorg_testset_save_CFLAGS"
10404fi
10405
10406if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10407	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10408		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10409	fi
10410	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10411	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10412$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10413if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10414  $as_echo_n "(cached) " >&6
10415else
10416  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10417/* end confdefs.h.  */
10418int i;
10419_ACEOF
10420if ac_fn_c_try_compile "$LINENO"; then :
10421  xorg_cv_cc_flag_unused_command_line_argument=yes
10422else
10423  xorg_cv_cc_flag_unused_command_line_argument=no
10424fi
10425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10426fi
10427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10428$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10429	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10430	CFLAGS="$xorg_testset_save_CFLAGS"
10431fi
10432
10433found="no"
10434
10435	if test $found = "no" ; then
10436		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10437			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10438		fi
10439
10440		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10441			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10442		fi
10443
10444		CFLAGS="$CFLAGS -Werror=attributes"
10445
10446		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10447$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10448		cacheid=xorg_cv_cc_flag__Werror_attributes
10449		if eval \${$cacheid+:} false; then :
10450  $as_echo_n "(cached) " >&6
10451else
10452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10453/* end confdefs.h.  */
10454int i;
10455int
10456main ()
10457{
10458
10459  ;
10460  return 0;
10461}
10462_ACEOF
10463if ac_fn_c_try_link "$LINENO"; then :
10464  eval $cacheid=yes
10465else
10466  eval $cacheid=no
10467fi
10468rm -f core conftest.err conftest.$ac_objext \
10469    conftest$ac_exeext conftest.$ac_ext
10470fi
10471
10472
10473		CFLAGS="$xorg_testset_save_CFLAGS"
10474
10475		eval supported=\$$cacheid
10476		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10477$as_echo "$supported" >&6; }
10478		if test "$supported" = "yes" ; then
10479			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10480			found="yes"
10481		fi
10482	fi
10483
10484
10485
10486if test "x$STRICT_COMPILE" = "xyes"; then
10487    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10488    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10489fi
10490
10491
10492
10493
10494
10495
10496cat >>confdefs.h <<_ACEOF
10497#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10498_ACEOF
10499
10500	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10501	if test "x$PVM" = "x"; then
10502		PVM="0"
10503	fi
10504
10505cat >>confdefs.h <<_ACEOF
10506#define PACKAGE_VERSION_MINOR $PVM
10507_ACEOF
10508
10509	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10510	if test "x$PVP" = "x"; then
10511		PVP="0"
10512	fi
10513
10514cat >>confdefs.h <<_ACEOF
10515#define PACKAGE_VERSION_PATCHLEVEL $PVP
10516_ACEOF
10517
10518
10519
10520CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10521mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10522|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10523echo 'git directory not found: installing possibly empty changelog.' >&2)"
10524
10525
10526
10527
10528macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10529INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10530mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10531|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10532echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10533
10534
10535
10536
10537
10538
10539if test x$APP_MAN_SUFFIX = x    ; then
10540    APP_MAN_SUFFIX=1
10541fi
10542if test x$APP_MAN_DIR = x    ; then
10543    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10544fi
10545
10546if test x$LIB_MAN_SUFFIX = x    ; then
10547    LIB_MAN_SUFFIX=3
10548fi
10549if test x$LIB_MAN_DIR = x    ; then
10550    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10551fi
10552
10553if test x$FILE_MAN_SUFFIX = x    ; then
10554    case $host_os in
10555	solaris*)	FILE_MAN_SUFFIX=4  ;;
10556	*)		FILE_MAN_SUFFIX=5  ;;
10557    esac
10558fi
10559if test x$FILE_MAN_DIR = x    ; then
10560    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10561fi
10562
10563if test x$MISC_MAN_SUFFIX = x    ; then
10564    case $host_os in
10565	solaris*)	MISC_MAN_SUFFIX=5  ;;
10566	*)		MISC_MAN_SUFFIX=7  ;;
10567    esac
10568fi
10569if test x$MISC_MAN_DIR = x    ; then
10570    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10571fi
10572
10573if test x$DRIVER_MAN_SUFFIX = x    ; then
10574    case $host_os in
10575	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10576	*)		DRIVER_MAN_SUFFIX=4  ;;
10577    esac
10578fi
10579if test x$DRIVER_MAN_DIR = x    ; then
10580    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10581fi
10582
10583if test x$ADMIN_MAN_SUFFIX = x    ; then
10584    case $host_os in
10585	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10586	*)		ADMIN_MAN_SUFFIX=8  ;;
10587    esac
10588fi
10589if test x$ADMIN_MAN_DIR = x    ; then
10590    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10591fi
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607XORG_MAN_PAGE="X Version 11"
10608
10609MAN_SUBSTS="\
10610	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10611	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10612	-e 's|__xservername__|Xorg|g' \
10613	-e 's|__xconfigfile__|xorg.conf|g' \
10614	-e 's|__projectroot__|\$(prefix)|g' \
10615	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10616	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10617	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10618	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10619	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10620	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10621	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10622
10623
10624
10625# Check whether --enable-silent-rules was given.
10626if test "${enable_silent_rules+set}" = set; then :
10627  enableval=$enable_silent_rules;
10628fi
10629
10630case $enable_silent_rules in # (((
10631  yes) AM_DEFAULT_VERBOSITY=0;;
10632   no) AM_DEFAULT_VERBOSITY=1;;
10633    *) AM_DEFAULT_VERBOSITY=0;;
10634esac
10635am_make=${MAKE-make}
10636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10637$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10638if ${am_cv_make_support_nested_variables+:} false; then :
10639  $as_echo_n "(cached) " >&6
10640else
10641  if $as_echo 'TRUE=$(BAR$(V))
10642BAR0=false
10643BAR1=true
10644V=1
10645am__doit:
10646	@$(TRUE)
10647.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10648  am_cv_make_support_nested_variables=yes
10649else
10650  am_cv_make_support_nested_variables=no
10651fi
10652fi
10653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10654$as_echo "$am_cv_make_support_nested_variables" >&6; }
10655if test $am_cv_make_support_nested_variables = yes; then
10656    AM_V='$(V)'
10657  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10658else
10659  AM_V=$AM_DEFAULT_VERBOSITY
10660  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10661fi
10662AM_BACKSLASH='\'
10663
10664
10665
10666for ac_prog in 'bison -y' byacc
10667do
10668  # Extract the first word of "$ac_prog", so it can be a program name with args.
10669set dummy $ac_prog; ac_word=$2
10670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10671$as_echo_n "checking for $ac_word... " >&6; }
10672if ${ac_cv_prog_YACC+:} false; then :
10673  $as_echo_n "(cached) " >&6
10674else
10675  if test -n "$YACC"; then
10676  ac_cv_prog_YACC="$YACC" # Let the user override the test.
10677else
10678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10679for as_dir in $PATH
10680do
10681  IFS=$as_save_IFS
10682  test -z "$as_dir" && as_dir=.
10683    for ac_exec_ext in '' $ac_executable_extensions; do
10684  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10685    ac_cv_prog_YACC="$ac_prog"
10686    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10687    break 2
10688  fi
10689done
10690  done
10691IFS=$as_save_IFS
10692
10693fi
10694fi
10695YACC=$ac_cv_prog_YACC
10696if test -n "$YACC"; then
10697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10698$as_echo "$YACC" >&6; }
10699else
10700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10701$as_echo "no" >&6; }
10702fi
10703
10704
10705  test -n "$YACC" && break
10706done
10707test -n "$YACC" || YACC="yacc"
10708
10709# Extract the first word of "$YACC", so it can be a program name with args.
10710set dummy $YACC; ac_word=$2
10711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10712$as_echo_n "checking for $ac_word... " >&6; }
10713if ${ac_cv_path_YACC_INST+:} false; then :
10714  $as_echo_n "(cached) " >&6
10715else
10716  case $YACC_INST in
10717  [\\/]* | ?:[\\/]*)
10718  ac_cv_path_YACC_INST="$YACC_INST" # Let the user override the test with a path.
10719  ;;
10720  *)
10721  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10722for as_dir in $PATH
10723do
10724  IFS=$as_save_IFS
10725  test -z "$as_dir" && as_dir=.
10726    for ac_exec_ext in '' $ac_executable_extensions; do
10727  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10728    ac_cv_path_YACC_INST="$as_dir/$ac_word$ac_exec_ext"
10729    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10730    break 2
10731  fi
10732done
10733  done
10734IFS=$as_save_IFS
10735
10736  ;;
10737esac
10738fi
10739YACC_INST=$ac_cv_path_YACC_INST
10740if test -n "$YACC_INST"; then
10741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC_INST" >&5
10742$as_echo "$YACC_INST" >&6; }
10743else
10744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10745$as_echo "no" >&6; }
10746fi
10747
10748
10749if test ! -f "cfgparse.c"; then
10750   if test -z "$YACC_INST"; then
10751      as_fn_error $? "yacc not found - unable to compile cfgparse.y" "$LINENO" 5
10752   fi
10753fi
10754
10755for ac_func in strcasecmp
10756do :
10757  ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
10758if test "x$ac_cv_func_strcasecmp" = xyes; then :
10759  cat >>confdefs.h <<_ACEOF
10760#define HAVE_STRCASECMP 1
10761_ACEOF
10762
10763fi
10764done
10765
10766
10767# Checks for pkg-config packages
10768
10769pkg_failed=no
10770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XKBEVD" >&5
10771$as_echo_n "checking for XKBEVD... " >&6; }
10772
10773if test -n "$XKBEVD_CFLAGS"; then
10774    pkg_cv_XKBEVD_CFLAGS="$XKBEVD_CFLAGS"
10775 elif test -n "$PKG_CONFIG"; then
10776    if test -n "$PKG_CONFIG" && \
10777    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile x11\""; } >&5
10778  ($PKG_CONFIG --exists --print-errors "xkbfile x11") 2>&5
10779  ac_status=$?
10780  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10781  test $ac_status = 0; }; then
10782  pkg_cv_XKBEVD_CFLAGS=`$PKG_CONFIG --cflags "xkbfile x11" 2>/dev/null`
10783else
10784  pkg_failed=yes
10785fi
10786 else
10787    pkg_failed=untried
10788fi
10789if test -n "$XKBEVD_LIBS"; then
10790    pkg_cv_XKBEVD_LIBS="$XKBEVD_LIBS"
10791 elif test -n "$PKG_CONFIG"; then
10792    if test -n "$PKG_CONFIG" && \
10793    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile x11\""; } >&5
10794  ($PKG_CONFIG --exists --print-errors "xkbfile x11") 2>&5
10795  ac_status=$?
10796  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10797  test $ac_status = 0; }; then
10798  pkg_cv_XKBEVD_LIBS=`$PKG_CONFIG --libs "xkbfile x11" 2>/dev/null`
10799else
10800  pkg_failed=yes
10801fi
10802 else
10803    pkg_failed=untried
10804fi
10805
10806
10807
10808if test $pkg_failed = yes; then
10809
10810if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10811        _pkg_short_errors_supported=yes
10812else
10813        _pkg_short_errors_supported=no
10814fi
10815        if test $_pkg_short_errors_supported = yes; then
10816	        XKBEVD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xkbfile x11" 2>&1`
10817        else
10818	        XKBEVD_PKG_ERRORS=`$PKG_CONFIG --print-errors "xkbfile x11" 2>&1`
10819        fi
10820	# Put the nasty error message in config.log where it belongs
10821	echo "$XKBEVD_PKG_ERRORS" >&5
10822
10823	as_fn_error $? "Package requirements (xkbfile x11) were not met:
10824
10825$XKBEVD_PKG_ERRORS
10826
10827Consider adjusting the PKG_CONFIG_PATH environment variable if you
10828installed software in a non-standard prefix.
10829
10830Alternatively, you may set the environment variables XKBEVD_CFLAGS
10831and XKBEVD_LIBS to avoid the need to call pkg-config.
10832See the pkg-config man page for more details.
10833" "$LINENO" 5
10834elif test $pkg_failed = untried; then
10835	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10836$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10837as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10838is in your PATH or set the PKG_CONFIG environment variable to the full
10839path to pkg-config.
10840
10841Alternatively, you may set the environment variables XKBEVD_CFLAGS
10842and XKBEVD_LIBS to avoid the need to call pkg-config.
10843See the pkg-config man page for more details.
10844
10845To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10846See \`config.log' for more details" "$LINENO" 5; }
10847else
10848	XKBEVD_CFLAGS=$pkg_cv_XKBEVD_CFLAGS
10849	XKBEVD_LIBS=$pkg_cv_XKBEVD_LIBS
10850        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10851$as_echo "yes" >&6; }
10852	:
10853fi
10854
10855ac_config_files="$ac_config_files Makefile man/Makefile"
10856
10857cat >confcache <<\_ACEOF
10858# This file is a shell script that caches the results of configure
10859# tests run on this system so they can be shared between configure
10860# scripts and configure runs, see configure's option --config-cache.
10861# It is not useful on other systems.  If it contains results you don't
10862# want to keep, you may remove or edit it.
10863#
10864# config.status only pays attention to the cache file if you give it
10865# the --recheck option to rerun configure.
10866#
10867# `ac_cv_env_foo' variables (set or unset) will be overridden when
10868# loading this file, other *unset* `ac_cv_foo' will be assigned the
10869# following values.
10870
10871_ACEOF
10872
10873# The following way of writing the cache mishandles newlines in values,
10874# but we know of no workaround that is simple, portable, and efficient.
10875# So, we kill variables containing newlines.
10876# Ultrix sh set writes to stderr and can't be redirected directly,
10877# and sets the high bit in the cache file unless we assign to the vars.
10878(
10879  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10880    eval ac_val=\$$ac_var
10881    case $ac_val in #(
10882    *${as_nl}*)
10883      case $ac_var in #(
10884      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10885$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10886      esac
10887      case $ac_var in #(
10888      _ | IFS | as_nl) ;; #(
10889      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10890      *) { eval $ac_var=; unset $ac_var;} ;;
10891      esac ;;
10892    esac
10893  done
10894
10895  (set) 2>&1 |
10896    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10897    *${as_nl}ac_space=\ *)
10898      # `set' does not quote correctly, so add quotes: double-quote
10899      # substitution turns \\\\ into \\, and sed turns \\ into \.
10900      sed -n \
10901	"s/'/'\\\\''/g;
10902	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10903      ;; #(
10904    *)
10905      # `set' quotes correctly as required by POSIX, so do not add quotes.
10906      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10907      ;;
10908    esac |
10909    sort
10910) |
10911  sed '
10912     /^ac_cv_env_/b end
10913     t clear
10914     :clear
10915     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10916     t end
10917     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10918     :end' >>confcache
10919if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10920  if test -w "$cache_file"; then
10921    if test "x$cache_file" != "x/dev/null"; then
10922      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10923$as_echo "$as_me: updating cache $cache_file" >&6;}
10924      if test ! -f "$cache_file" || test -h "$cache_file"; then
10925	cat confcache >"$cache_file"
10926      else
10927        case $cache_file in #(
10928        */* | ?:*)
10929	  mv -f confcache "$cache_file"$$ &&
10930	  mv -f "$cache_file"$$ "$cache_file" ;; #(
10931        *)
10932	  mv -f confcache "$cache_file" ;;
10933	esac
10934      fi
10935    fi
10936  else
10937    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10938$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10939  fi
10940fi
10941rm -f confcache
10942
10943test "x$prefix" = xNONE && prefix=$ac_default_prefix
10944# Let make expand exec_prefix.
10945test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10946
10947DEFS=-DHAVE_CONFIG_H
10948
10949ac_libobjs=
10950ac_ltlibobjs=
10951U=
10952for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10953  # 1. Remove the extension, and $U if already installed.
10954  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10955  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10956  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10957  #    will be set to the directory where LIBOBJS objects are built.
10958  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10959  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10960done
10961LIBOBJS=$ac_libobjs
10962
10963LTLIBOBJS=$ac_ltlibobjs
10964
10965
10966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
10967$as_echo_n "checking that generated files are newer than configure... " >&6; }
10968   if test -n "$am_sleep_pid"; then
10969     # Hide warnings about reused PIDs.
10970     wait $am_sleep_pid 2>/dev/null
10971   fi
10972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
10973$as_echo "done" >&6; }
10974 if test -n "$EXEEXT"; then
10975  am__EXEEXT_TRUE=
10976  am__EXEEXT_FALSE='#'
10977else
10978  am__EXEEXT_TRUE='#'
10979  am__EXEEXT_FALSE=
10980fi
10981
10982if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10983  as_fn_error $? "conditional \"AMDEP\" was never defined.
10984Usually this means the macro was only invoked conditionally." "$LINENO" 5
10985fi
10986if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10987  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10988Usually this means the macro was only invoked conditionally." "$LINENO" 5
10989fi
10990
10991: "${CONFIG_STATUS=./config.status}"
10992ac_write_fail=0
10993ac_clean_files_save=$ac_clean_files
10994ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10995{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10996$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10997as_write_fail=0
10998cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10999#! $SHELL
11000# Generated by $as_me.
11001# Run this file to recreate the current configuration.
11002# Compiler output produced by configure, useful for debugging
11003# configure, is in config.log if it exists.
11004
11005debug=false
11006ac_cs_recheck=false
11007ac_cs_silent=false
11008
11009SHELL=\${CONFIG_SHELL-$SHELL}
11010export SHELL
11011_ASEOF
11012cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11013## -------------------- ##
11014## M4sh Initialization. ##
11015## -------------------- ##
11016
11017# Be more Bourne compatible
11018DUALCASE=1; export DUALCASE # for MKS sh
11019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11020  emulate sh
11021  NULLCMD=:
11022  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11023  # is contrary to our usage.  Disable this feature.
11024  alias -g '${1+"$@"}'='"$@"'
11025  setopt NO_GLOB_SUBST
11026else
11027  case `(set -o) 2>/dev/null` in #(
11028  *posix*) :
11029    set -o posix ;; #(
11030  *) :
11031     ;;
11032esac
11033fi
11034
11035
11036as_nl='
11037'
11038export as_nl
11039# Printing a long string crashes Solaris 7 /usr/bin/printf.
11040as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11041as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11042as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11043# Prefer a ksh shell builtin over an external printf program on Solaris,
11044# but without wasting forks for bash or zsh.
11045if test -z "$BASH_VERSION$ZSH_VERSION" \
11046    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11047  as_echo='print -r --'
11048  as_echo_n='print -rn --'
11049elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11050  as_echo='printf %s\n'
11051  as_echo_n='printf %s'
11052else
11053  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11054    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11055    as_echo_n='/usr/ucb/echo -n'
11056  else
11057    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11058    as_echo_n_body='eval
11059      arg=$1;
11060      case $arg in #(
11061      *"$as_nl"*)
11062	expr "X$arg" : "X\\(.*\\)$as_nl";
11063	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11064      esac;
11065      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11066    '
11067    export as_echo_n_body
11068    as_echo_n='sh -c $as_echo_n_body as_echo'
11069  fi
11070  export as_echo_body
11071  as_echo='sh -c $as_echo_body as_echo'
11072fi
11073
11074# The user is always right.
11075if test "${PATH_SEPARATOR+set}" != set; then
11076  PATH_SEPARATOR=:
11077  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11078    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11079      PATH_SEPARATOR=';'
11080  }
11081fi
11082
11083
11084# IFS
11085# We need space, tab and new line, in precisely that order.  Quoting is
11086# there to prevent editors from complaining about space-tab.
11087# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11088# splitting by setting IFS to empty value.)
11089IFS=" ""	$as_nl"
11090
11091# Find who we are.  Look in the path if we contain no directory separator.
11092as_myself=
11093case $0 in #((
11094  *[\\/]* ) as_myself=$0 ;;
11095  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11096for as_dir in $PATH
11097do
11098  IFS=$as_save_IFS
11099  test -z "$as_dir" && as_dir=.
11100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11101  done
11102IFS=$as_save_IFS
11103
11104     ;;
11105esac
11106# We did not find ourselves, most probably we were run as `sh COMMAND'
11107# in which case we are not to be found in the path.
11108if test "x$as_myself" = x; then
11109  as_myself=$0
11110fi
11111if test ! -f "$as_myself"; then
11112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11113  exit 1
11114fi
11115
11116# Unset variables that we do not need and which cause bugs (e.g. in
11117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11118# suppresses any "Segmentation fault" message there.  '((' could
11119# trigger a bug in pdksh 5.2.14.
11120for as_var in BASH_ENV ENV MAIL MAILPATH
11121do eval test x\${$as_var+set} = xset \
11122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11123done
11124PS1='$ '
11125PS2='> '
11126PS4='+ '
11127
11128# NLS nuisances.
11129LC_ALL=C
11130export LC_ALL
11131LANGUAGE=C
11132export LANGUAGE
11133
11134# CDPATH.
11135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11136
11137
11138# as_fn_error STATUS ERROR [LINENO LOG_FD]
11139# ----------------------------------------
11140# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11141# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11142# script with STATUS, using 1 if that was 0.
11143as_fn_error ()
11144{
11145  as_status=$1; test $as_status -eq 0 && as_status=1
11146  if test "$4"; then
11147    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11148    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11149  fi
11150  $as_echo "$as_me: error: $2" >&2
11151  as_fn_exit $as_status
11152} # as_fn_error
11153
11154
11155# as_fn_set_status STATUS
11156# -----------------------
11157# Set $? to STATUS, without forking.
11158as_fn_set_status ()
11159{
11160  return $1
11161} # as_fn_set_status
11162
11163# as_fn_exit STATUS
11164# -----------------
11165# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11166as_fn_exit ()
11167{
11168  set +e
11169  as_fn_set_status $1
11170  exit $1
11171} # as_fn_exit
11172
11173# as_fn_unset VAR
11174# ---------------
11175# Portably unset VAR.
11176as_fn_unset ()
11177{
11178  { eval $1=; unset $1;}
11179}
11180as_unset=as_fn_unset
11181# as_fn_append VAR VALUE
11182# ----------------------
11183# Append the text in VALUE to the end of the definition contained in VAR. Take
11184# advantage of any shell optimizations that allow amortized linear growth over
11185# repeated appends, instead of the typical quadratic growth present in naive
11186# implementations.
11187if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11188  eval 'as_fn_append ()
11189  {
11190    eval $1+=\$2
11191  }'
11192else
11193  as_fn_append ()
11194  {
11195    eval $1=\$$1\$2
11196  }
11197fi # as_fn_append
11198
11199# as_fn_arith ARG...
11200# ------------------
11201# Perform arithmetic evaluation on the ARGs, and store the result in the
11202# global $as_val. Take advantage of shells that can avoid forks. The arguments
11203# must be portable across $(()) and expr.
11204if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11205  eval 'as_fn_arith ()
11206  {
11207    as_val=$(( $* ))
11208  }'
11209else
11210  as_fn_arith ()
11211  {
11212    as_val=`expr "$@" || test $? -eq 1`
11213  }
11214fi # as_fn_arith
11215
11216
11217if expr a : '\(a\)' >/dev/null 2>&1 &&
11218   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11219  as_expr=expr
11220else
11221  as_expr=false
11222fi
11223
11224if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11225  as_basename=basename
11226else
11227  as_basename=false
11228fi
11229
11230if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11231  as_dirname=dirname
11232else
11233  as_dirname=false
11234fi
11235
11236as_me=`$as_basename -- "$0" ||
11237$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11238	 X"$0" : 'X\(//\)$' \| \
11239	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11240$as_echo X/"$0" |
11241    sed '/^.*\/\([^/][^/]*\)\/*$/{
11242	    s//\1/
11243	    q
11244	  }
11245	  /^X\/\(\/\/\)$/{
11246	    s//\1/
11247	    q
11248	  }
11249	  /^X\/\(\/\).*/{
11250	    s//\1/
11251	    q
11252	  }
11253	  s/.*/./; q'`
11254
11255# Avoid depending upon Character Ranges.
11256as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11257as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11258as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11259as_cr_digits='0123456789'
11260as_cr_alnum=$as_cr_Letters$as_cr_digits
11261
11262ECHO_C= ECHO_N= ECHO_T=
11263case `echo -n x` in #(((((
11264-n*)
11265  case `echo 'xy\c'` in
11266  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11267  xy)  ECHO_C='\c';;
11268  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11269       ECHO_T='	';;
11270  esac;;
11271*)
11272  ECHO_N='-n';;
11273esac
11274
11275rm -f conf$$ conf$$.exe conf$$.file
11276if test -d conf$$.dir; then
11277  rm -f conf$$.dir/conf$$.file
11278else
11279  rm -f conf$$.dir
11280  mkdir conf$$.dir 2>/dev/null
11281fi
11282if (echo >conf$$.file) 2>/dev/null; then
11283  if ln -s conf$$.file conf$$ 2>/dev/null; then
11284    as_ln_s='ln -s'
11285    # ... but there are two gotchas:
11286    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11287    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11288    # In both cases, we have to default to `cp -pR'.
11289    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11290      as_ln_s='cp -pR'
11291  elif ln conf$$.file conf$$ 2>/dev/null; then
11292    as_ln_s=ln
11293  else
11294    as_ln_s='cp -pR'
11295  fi
11296else
11297  as_ln_s='cp -pR'
11298fi
11299rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11300rmdir conf$$.dir 2>/dev/null
11301
11302
11303# as_fn_mkdir_p
11304# -------------
11305# Create "$as_dir" as a directory, including parents if necessary.
11306as_fn_mkdir_p ()
11307{
11308
11309  case $as_dir in #(
11310  -*) as_dir=./$as_dir;;
11311  esac
11312  test -d "$as_dir" || eval $as_mkdir_p || {
11313    as_dirs=
11314    while :; do
11315      case $as_dir in #(
11316      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11317      *) as_qdir=$as_dir;;
11318      esac
11319      as_dirs="'$as_qdir' $as_dirs"
11320      as_dir=`$as_dirname -- "$as_dir" ||
11321$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11322	 X"$as_dir" : 'X\(//\)[^/]' \| \
11323	 X"$as_dir" : 'X\(//\)$' \| \
11324	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11325$as_echo X"$as_dir" |
11326    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11327	    s//\1/
11328	    q
11329	  }
11330	  /^X\(\/\/\)[^/].*/{
11331	    s//\1/
11332	    q
11333	  }
11334	  /^X\(\/\/\)$/{
11335	    s//\1/
11336	    q
11337	  }
11338	  /^X\(\/\).*/{
11339	    s//\1/
11340	    q
11341	  }
11342	  s/.*/./; q'`
11343      test -d "$as_dir" && break
11344    done
11345    test -z "$as_dirs" || eval "mkdir $as_dirs"
11346  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11347
11348
11349} # as_fn_mkdir_p
11350if mkdir -p . 2>/dev/null; then
11351  as_mkdir_p='mkdir -p "$as_dir"'
11352else
11353  test -d ./-p && rmdir ./-p
11354  as_mkdir_p=false
11355fi
11356
11357
11358# as_fn_executable_p FILE
11359# -----------------------
11360# Test if FILE is an executable regular file.
11361as_fn_executable_p ()
11362{
11363  test -f "$1" && test -x "$1"
11364} # as_fn_executable_p
11365as_test_x='test -x'
11366as_executable_p=as_fn_executable_p
11367
11368# Sed expression to map a string onto a valid CPP name.
11369as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11370
11371# Sed expression to map a string onto a valid variable name.
11372as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11373
11374
11375exec 6>&1
11376## ----------------------------------- ##
11377## Main body of $CONFIG_STATUS script. ##
11378## ----------------------------------- ##
11379_ASEOF
11380test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11381
11382cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11383# Save the log message, to keep $0 and so on meaningful, and to
11384# report actual input values of CONFIG_FILES etc. instead of their
11385# values after options handling.
11386ac_log="
11387This file was extended by xkbevd $as_me 1.1.4, which was
11388generated by GNU Autoconf 2.69.  Invocation command line was
11389
11390  CONFIG_FILES    = $CONFIG_FILES
11391  CONFIG_HEADERS  = $CONFIG_HEADERS
11392  CONFIG_LINKS    = $CONFIG_LINKS
11393  CONFIG_COMMANDS = $CONFIG_COMMANDS
11394  $ $0 $@
11395
11396on `(hostname || uname -n) 2>/dev/null | sed 1q`
11397"
11398
11399_ACEOF
11400
11401case $ac_config_files in *"
11402"*) set x $ac_config_files; shift; ac_config_files=$*;;
11403esac
11404
11405case $ac_config_headers in *"
11406"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11407esac
11408
11409
11410cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11411# Files that config.status was made for.
11412config_files="$ac_config_files"
11413config_headers="$ac_config_headers"
11414config_commands="$ac_config_commands"
11415
11416_ACEOF
11417
11418cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11419ac_cs_usage="\
11420\`$as_me' instantiates files and other configuration actions
11421from templates according to the current configuration.  Unless the files
11422and actions are specified as TAGs, all are instantiated by default.
11423
11424Usage: $0 [OPTION]... [TAG]...
11425
11426  -h, --help       print this help, then exit
11427  -V, --version    print version number and configuration settings, then exit
11428      --config     print configuration, then exit
11429  -q, --quiet, --silent
11430                   do not print progress messages
11431  -d, --debug      don't remove temporary files
11432      --recheck    update $as_me by reconfiguring in the same conditions
11433      --file=FILE[:TEMPLATE]
11434                   instantiate the configuration file FILE
11435      --header=FILE[:TEMPLATE]
11436                   instantiate the configuration header FILE
11437
11438Configuration files:
11439$config_files
11440
11441Configuration headers:
11442$config_headers
11443
11444Configuration commands:
11445$config_commands
11446
11447Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11448
11449_ACEOF
11450cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11451ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11452ac_cs_version="\\
11453xkbevd config.status 1.1.4
11454configured by $0, generated by GNU Autoconf 2.69,
11455  with options \\"\$ac_cs_config\\"
11456
11457Copyright (C) 2012 Free Software Foundation, Inc.
11458This config.status script is free software; the Free Software Foundation
11459gives unlimited permission to copy, distribute and modify it."
11460
11461ac_pwd='$ac_pwd'
11462srcdir='$srcdir'
11463INSTALL='$INSTALL'
11464MKDIR_P='$MKDIR_P'
11465AWK='$AWK'
11466test -n "\$AWK" || AWK=awk
11467_ACEOF
11468
11469cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11470# The default lists apply if the user does not specify any file.
11471ac_need_defaults=:
11472while test $# != 0
11473do
11474  case $1 in
11475  --*=?*)
11476    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11477    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11478    ac_shift=:
11479    ;;
11480  --*=)
11481    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11482    ac_optarg=
11483    ac_shift=:
11484    ;;
11485  *)
11486    ac_option=$1
11487    ac_optarg=$2
11488    ac_shift=shift
11489    ;;
11490  esac
11491
11492  case $ac_option in
11493  # Handling of the options.
11494  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11495    ac_cs_recheck=: ;;
11496  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11497    $as_echo "$ac_cs_version"; exit ;;
11498  --config | --confi | --conf | --con | --co | --c )
11499    $as_echo "$ac_cs_config"; exit ;;
11500  --debug | --debu | --deb | --de | --d | -d )
11501    debug=: ;;
11502  --file | --fil | --fi | --f )
11503    $ac_shift
11504    case $ac_optarg in
11505    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11506    '') as_fn_error $? "missing file argument" ;;
11507    esac
11508    as_fn_append CONFIG_FILES " '$ac_optarg'"
11509    ac_need_defaults=false;;
11510  --header | --heade | --head | --hea )
11511    $ac_shift
11512    case $ac_optarg in
11513    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11514    esac
11515    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11516    ac_need_defaults=false;;
11517  --he | --h)
11518    # Conflict between --help and --header
11519    as_fn_error $? "ambiguous option: \`$1'
11520Try \`$0 --help' for more information.";;
11521  --help | --hel | -h )
11522    $as_echo "$ac_cs_usage"; exit ;;
11523  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11524  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11525    ac_cs_silent=: ;;
11526
11527  # This is an error.
11528  -*) as_fn_error $? "unrecognized option: \`$1'
11529Try \`$0 --help' for more information." ;;
11530
11531  *) as_fn_append ac_config_targets " $1"
11532     ac_need_defaults=false ;;
11533
11534  esac
11535  shift
11536done
11537
11538ac_configure_extra_args=
11539
11540if $ac_cs_silent; then
11541  exec 6>/dev/null
11542  ac_configure_extra_args="$ac_configure_extra_args --silent"
11543fi
11544
11545_ACEOF
11546cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11547if \$ac_cs_recheck; then
11548  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11549  shift
11550  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11551  CONFIG_SHELL='$SHELL'
11552  export CONFIG_SHELL
11553  exec "\$@"
11554fi
11555
11556_ACEOF
11557cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11558exec 5>>config.log
11559{
11560  echo
11561  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11562## Running $as_me. ##
11563_ASBOX
11564  $as_echo "$ac_log"
11565} >&5
11566
11567_ACEOF
11568cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11569#
11570# INIT-COMMANDS
11571#
11572AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11573
11574_ACEOF
11575
11576cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11577
11578# Handling of arguments.
11579for ac_config_target in $ac_config_targets
11580do
11581  case $ac_config_target in
11582    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11583    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11584    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11585    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11586
11587  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11588  esac
11589done
11590
11591
11592# If the user did not use the arguments to specify the items to instantiate,
11593# then the envvar interface is used.  Set only those that are not.
11594# We use the long form for the default assignment because of an extremely
11595# bizarre bug on SunOS 4.1.3.
11596if $ac_need_defaults; then
11597  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11598  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11599  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11600fi
11601
11602# Have a temporary directory for convenience.  Make it in the build tree
11603# simply because there is no reason against having it here, and in addition,
11604# creating and moving files from /tmp can sometimes cause problems.
11605# Hook for its removal unless debugging.
11606# Note that there is a small window in which the directory will not be cleaned:
11607# after its creation but before its name has been assigned to `$tmp'.
11608$debug ||
11609{
11610  tmp= ac_tmp=
11611  trap 'exit_status=$?
11612  : "${ac_tmp:=$tmp}"
11613  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11614' 0
11615  trap 'as_fn_exit 1' 1 2 13 15
11616}
11617# Create a (secure) tmp directory for tmp files.
11618
11619{
11620  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11621  test -d "$tmp"
11622}  ||
11623{
11624  tmp=./conf$$-$RANDOM
11625  (umask 077 && mkdir "$tmp")
11626} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11627ac_tmp=$tmp
11628
11629# Set up the scripts for CONFIG_FILES section.
11630# No need to generate them if there are no CONFIG_FILES.
11631# This happens for instance with `./config.status config.h'.
11632if test -n "$CONFIG_FILES"; then
11633
11634
11635ac_cr=`echo X | tr X '\015'`
11636# On cygwin, bash can eat \r inside `` if the user requested igncr.
11637# But we know of no other shell where ac_cr would be empty at this
11638# point, so we can use a bashism as a fallback.
11639if test "x$ac_cr" = x; then
11640  eval ac_cr=\$\'\\r\'
11641fi
11642ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11643if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11644  ac_cs_awk_cr='\\r'
11645else
11646  ac_cs_awk_cr=$ac_cr
11647fi
11648
11649echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11650_ACEOF
11651
11652
11653{
11654  echo "cat >conf$$subs.awk <<_ACEOF" &&
11655  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11656  echo "_ACEOF"
11657} >conf$$subs.sh ||
11658  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11659ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11660ac_delim='%!_!# '
11661for ac_last_try in false false false false false :; do
11662  . ./conf$$subs.sh ||
11663    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11664
11665  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11666  if test $ac_delim_n = $ac_delim_num; then
11667    break
11668  elif $ac_last_try; then
11669    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11670  else
11671    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11672  fi
11673done
11674rm -f conf$$subs.sh
11675
11676cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11677cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11678_ACEOF
11679sed -n '
11680h
11681s/^/S["/; s/!.*/"]=/
11682p
11683g
11684s/^[^!]*!//
11685:repl
11686t repl
11687s/'"$ac_delim"'$//
11688t delim
11689:nl
11690h
11691s/\(.\{148\}\)..*/\1/
11692t more1
11693s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11694p
11695n
11696b repl
11697:more1
11698s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11699p
11700g
11701s/.\{148\}//
11702t nl
11703:delim
11704h
11705s/\(.\{148\}\)..*/\1/
11706t more2
11707s/["\\]/\\&/g; s/^/"/; s/$/"/
11708p
11709b
11710:more2
11711s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11712p
11713g
11714s/.\{148\}//
11715t delim
11716' <conf$$subs.awk | sed '
11717/^[^""]/{
11718  N
11719  s/\n//
11720}
11721' >>$CONFIG_STATUS || ac_write_fail=1
11722rm -f conf$$subs.awk
11723cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11724_ACAWK
11725cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11726  for (key in S) S_is_set[key] = 1
11727  FS = ""
11728
11729}
11730{
11731  line = $ 0
11732  nfields = split(line, field, "@")
11733  substed = 0
11734  len = length(field[1])
11735  for (i = 2; i < nfields; i++) {
11736    key = field[i]
11737    keylen = length(key)
11738    if (S_is_set[key]) {
11739      value = S[key]
11740      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11741      len += length(value) + length(field[++i])
11742      substed = 1
11743    } else
11744      len += 1 + keylen
11745  }
11746
11747  print line
11748}
11749
11750_ACAWK
11751_ACEOF
11752cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11753if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11754  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11755else
11756  cat
11757fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11758  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11759_ACEOF
11760
11761# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11762# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11763# trailing colons and then remove the whole line if VPATH becomes empty
11764# (actually we leave an empty line to preserve line numbers).
11765if test "x$srcdir" = x.; then
11766  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
11767h
11768s///
11769s/^/:/
11770s/[	 ]*$/:/
11771s/:\$(srcdir):/:/g
11772s/:\${srcdir}:/:/g
11773s/:@srcdir@:/:/g
11774s/^:*//
11775s/:*$//
11776x
11777s/\(=[	 ]*\).*/\1/
11778G
11779s/\n//
11780s/^[^=]*=[	 ]*$//
11781}'
11782fi
11783
11784cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11785fi # test -n "$CONFIG_FILES"
11786
11787# Set up the scripts for CONFIG_HEADERS section.
11788# No need to generate them if there are no CONFIG_HEADERS.
11789# This happens for instance with `./config.status Makefile'.
11790if test -n "$CONFIG_HEADERS"; then
11791cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11792BEGIN {
11793_ACEOF
11794
11795# Transform confdefs.h into an awk script `defines.awk', embedded as
11796# here-document in config.status, that substitutes the proper values into
11797# config.h.in to produce config.h.
11798
11799# Create a delimiter string that does not exist in confdefs.h, to ease
11800# handling of long lines.
11801ac_delim='%!_!# '
11802for ac_last_try in false false :; do
11803  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11804  if test -z "$ac_tt"; then
11805    break
11806  elif $ac_last_try; then
11807    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11808  else
11809    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11810  fi
11811done
11812
11813# For the awk script, D is an array of macro values keyed by name,
11814# likewise P contains macro parameters if any.  Preserve backslash
11815# newline sequences.
11816
11817ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11818sed -n '
11819s/.\{148\}/&'"$ac_delim"'/g
11820t rset
11821:rset
11822s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
11823t def
11824d
11825:def
11826s/\\$//
11827t bsnl
11828s/["\\]/\\&/g
11829s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11830D["\1"]=" \3"/p
11831s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
11832d
11833:bsnl
11834s/["\\]/\\&/g
11835s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11836D["\1"]=" \3\\\\\\n"\\/p
11837t cont
11838s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11839t cont
11840d
11841:cont
11842n
11843s/.\{148\}/&'"$ac_delim"'/g
11844t clear
11845:clear
11846s/\\$//
11847t bsnlc
11848s/["\\]/\\&/g; s/^/"/; s/$/"/p
11849d
11850:bsnlc
11851s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11852b cont
11853' <confdefs.h | sed '
11854s/'"$ac_delim"'/"\\\
11855"/g' >>$CONFIG_STATUS || ac_write_fail=1
11856
11857cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11858  for (key in D) D_is_set[key] = 1
11859  FS = ""
11860}
11861/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11862  line = \$ 0
11863  split(line, arg, " ")
11864  if (arg[1] == "#") {
11865    defundef = arg[2]
11866    mac1 = arg[3]
11867  } else {
11868    defundef = substr(arg[1], 2)
11869    mac1 = arg[2]
11870  }
11871  split(mac1, mac2, "(") #)
11872  macro = mac2[1]
11873  prefix = substr(line, 1, index(line, defundef) - 1)
11874  if (D_is_set[macro]) {
11875    # Preserve the white space surrounding the "#".
11876    print prefix "define", macro P[macro] D[macro]
11877    next
11878  } else {
11879    # Replace #undef with comments.  This is necessary, for example,
11880    # in the case of _POSIX_SOURCE, which is predefined and required
11881    # on some systems where configure will not decide to define it.
11882    if (defundef == "undef") {
11883      print "/*", prefix defundef, macro, "*/"
11884      next
11885    }
11886  }
11887}
11888{ print }
11889_ACAWK
11890_ACEOF
11891cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11892  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11893fi # test -n "$CONFIG_HEADERS"
11894
11895
11896eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
11897shift
11898for ac_tag
11899do
11900  case $ac_tag in
11901  :[FHLC]) ac_mode=$ac_tag; continue;;
11902  esac
11903  case $ac_mode$ac_tag in
11904  :[FHL]*:*);;
11905  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11906  :[FH]-) ac_tag=-:-;;
11907  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11908  esac
11909  ac_save_IFS=$IFS
11910  IFS=:
11911  set x $ac_tag
11912  IFS=$ac_save_IFS
11913  shift
11914  ac_file=$1
11915  shift
11916
11917  case $ac_mode in
11918  :L) ac_source=$1;;
11919  :[FH])
11920    ac_file_inputs=
11921    for ac_f
11922    do
11923      case $ac_f in
11924      -) ac_f="$ac_tmp/stdin";;
11925      *) # Look for the file first in the build tree, then in the source tree
11926	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
11927	 # because $ac_f cannot contain `:'.
11928	 test -f "$ac_f" ||
11929	   case $ac_f in
11930	   [\\/$]*) false;;
11931	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11932	   esac ||
11933	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11934      esac
11935      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11936      as_fn_append ac_file_inputs " '$ac_f'"
11937    done
11938
11939    # Let's still pretend it is `configure' which instantiates (i.e., don't
11940    # use $as_me), people would be surprised to read:
11941    #    /* config.h.  Generated by config.status.  */
11942    configure_input='Generated from '`
11943	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11944	`' by configure.'
11945    if test x"$ac_file" != x-; then
11946      configure_input="$ac_file.  $configure_input"
11947      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11948$as_echo "$as_me: creating $ac_file" >&6;}
11949    fi
11950    # Neutralize special characters interpreted by sed in replacement strings.
11951    case $configure_input in #(
11952    *\&* | *\|* | *\\* )
11953       ac_sed_conf_input=`$as_echo "$configure_input" |
11954       sed 's/[\\\\&|]/\\\\&/g'`;; #(
11955    *) ac_sed_conf_input=$configure_input;;
11956    esac
11957
11958    case $ac_tag in
11959    *:-:* | *:-) cat >"$ac_tmp/stdin" \
11960      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11961    esac
11962    ;;
11963  esac
11964
11965  ac_dir=`$as_dirname -- "$ac_file" ||
11966$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11967	 X"$ac_file" : 'X\(//\)[^/]' \| \
11968	 X"$ac_file" : 'X\(//\)$' \| \
11969	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11970$as_echo X"$ac_file" |
11971    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11972	    s//\1/
11973	    q
11974	  }
11975	  /^X\(\/\/\)[^/].*/{
11976	    s//\1/
11977	    q
11978	  }
11979	  /^X\(\/\/\)$/{
11980	    s//\1/
11981	    q
11982	  }
11983	  /^X\(\/\).*/{
11984	    s//\1/
11985	    q
11986	  }
11987	  s/.*/./; q'`
11988  as_dir="$ac_dir"; as_fn_mkdir_p
11989  ac_builddir=.
11990
11991case "$ac_dir" in
11992.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11993*)
11994  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11995  # A ".." for each directory in $ac_dir_suffix.
11996  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11997  case $ac_top_builddir_sub in
11998  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11999  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12000  esac ;;
12001esac
12002ac_abs_top_builddir=$ac_pwd
12003ac_abs_builddir=$ac_pwd$ac_dir_suffix
12004# for backward compatibility:
12005ac_top_builddir=$ac_top_build_prefix
12006
12007case $srcdir in
12008  .)  # We are building in place.
12009    ac_srcdir=.
12010    ac_top_srcdir=$ac_top_builddir_sub
12011    ac_abs_top_srcdir=$ac_pwd ;;
12012  [\\/]* | ?:[\\/]* )  # Absolute name.
12013    ac_srcdir=$srcdir$ac_dir_suffix;
12014    ac_top_srcdir=$srcdir
12015    ac_abs_top_srcdir=$srcdir ;;
12016  *) # Relative name.
12017    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12018    ac_top_srcdir=$ac_top_build_prefix$srcdir
12019    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12020esac
12021ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12022
12023
12024  case $ac_mode in
12025  :F)
12026  #
12027  # CONFIG_FILE
12028  #
12029
12030  case $INSTALL in
12031  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12032  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12033  esac
12034  ac_MKDIR_P=$MKDIR_P
12035  case $MKDIR_P in
12036  [\\/$]* | ?:[\\/]* ) ;;
12037  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12038  esac
12039_ACEOF
12040
12041cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12042# If the template does not know about datarootdir, expand it.
12043# FIXME: This hack should be removed a few years after 2.60.
12044ac_datarootdir_hack=; ac_datarootdir_seen=
12045ac_sed_dataroot='
12046/datarootdir/ {
12047  p
12048  q
12049}
12050/@datadir@/p
12051/@docdir@/p
12052/@infodir@/p
12053/@localedir@/p
12054/@mandir@/p'
12055case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12056*datarootdir*) ac_datarootdir_seen=yes;;
12057*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12058  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12059$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12060_ACEOF
12061cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12062  ac_datarootdir_hack='
12063  s&@datadir@&$datadir&g
12064  s&@docdir@&$docdir&g
12065  s&@infodir@&$infodir&g
12066  s&@localedir@&$localedir&g
12067  s&@mandir@&$mandir&g
12068  s&\\\${datarootdir}&$datarootdir&g' ;;
12069esac
12070_ACEOF
12071
12072# Neutralize VPATH when `$srcdir' = `.'.
12073# Shell code in configure.ac might set extrasub.
12074# FIXME: do we really want to maintain this feature?
12075cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12076ac_sed_extra="$ac_vpsub
12077$extrasub
12078_ACEOF
12079cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12080:t
12081/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12082s|@configure_input@|$ac_sed_conf_input|;t t
12083s&@top_builddir@&$ac_top_builddir_sub&;t t
12084s&@top_build_prefix@&$ac_top_build_prefix&;t t
12085s&@srcdir@&$ac_srcdir&;t t
12086s&@abs_srcdir@&$ac_abs_srcdir&;t t
12087s&@top_srcdir@&$ac_top_srcdir&;t t
12088s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12089s&@builddir@&$ac_builddir&;t t
12090s&@abs_builddir@&$ac_abs_builddir&;t t
12091s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12092s&@INSTALL@&$ac_INSTALL&;t t
12093s&@MKDIR_P@&$ac_MKDIR_P&;t t
12094$ac_datarootdir_hack
12095"
12096eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12097  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12098
12099test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12100  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12101  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12102      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12103  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12104which seems to be undefined.  Please make sure it is defined" >&5
12105$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12106which seems to be undefined.  Please make sure it is defined" >&2;}
12107
12108  rm -f "$ac_tmp/stdin"
12109  case $ac_file in
12110  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12111  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12112  esac \
12113  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12114 ;;
12115  :H)
12116  #
12117  # CONFIG_HEADER
12118  #
12119  if test x"$ac_file" != x-; then
12120    {
12121      $as_echo "/* $configure_input  */" \
12122      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12123    } >"$ac_tmp/config.h" \
12124      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12125    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12126      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12127$as_echo "$as_me: $ac_file is unchanged" >&6;}
12128    else
12129      rm -f "$ac_file"
12130      mv "$ac_tmp/config.h" "$ac_file" \
12131	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12132    fi
12133  else
12134    $as_echo "/* $configure_input  */" \
12135      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12136      || as_fn_error $? "could not create -" "$LINENO" 5
12137  fi
12138# Compute "$ac_file"'s index in $config_headers.
12139_am_arg="$ac_file"
12140_am_stamp_count=1
12141for _am_header in $config_headers :; do
12142  case $_am_header in
12143    $_am_arg | $_am_arg:* )
12144      break ;;
12145    * )
12146      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12147  esac
12148done
12149echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12150$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12151	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12152	 X"$_am_arg" : 'X\(//\)$' \| \
12153	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12154$as_echo X"$_am_arg" |
12155    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12156	    s//\1/
12157	    q
12158	  }
12159	  /^X\(\/\/\)[^/].*/{
12160	    s//\1/
12161	    q
12162	  }
12163	  /^X\(\/\/\)$/{
12164	    s//\1/
12165	    q
12166	  }
12167	  /^X\(\/\).*/{
12168	    s//\1/
12169	    q
12170	  }
12171	  s/.*/./; q'`/stamp-h$_am_stamp_count
12172 ;;
12173
12174  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12175$as_echo "$as_me: executing $ac_file commands" >&6;}
12176 ;;
12177  esac
12178
12179
12180  case $ac_file$ac_mode in
12181    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12182  # Older Autoconf quotes --file arguments for eval, but not when files
12183  # are listed without --file.  Let's play safe and only enable the eval
12184  # if we detect the quoting.
12185  case $CONFIG_FILES in
12186  *\'*) eval set x "$CONFIG_FILES" ;;
12187  *)   set x $CONFIG_FILES ;;
12188  esac
12189  shift
12190  for mf
12191  do
12192    # Strip MF so we end up with the name of the file.
12193    mf=`echo "$mf" | sed -e 's/:.*$//'`
12194    # Check whether this is an Automake generated Makefile or not.
12195    # We used to match only the files named 'Makefile.in', but
12196    # some people rename them; so instead we look at the file content.
12197    # Grep'ing the first line is not enough: some people post-process
12198    # each Makefile.in and add a new line on top of each file to say so.
12199    # Grep'ing the whole file is not good either: AIX grep has a line
12200    # limit of 2048, but all sed's we know have understand at least 4000.
12201    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12202      dirpart=`$as_dirname -- "$mf" ||
12203$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12204	 X"$mf" : 'X\(//\)[^/]' \| \
12205	 X"$mf" : 'X\(//\)$' \| \
12206	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12207$as_echo X"$mf" |
12208    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12209	    s//\1/
12210	    q
12211	  }
12212	  /^X\(\/\/\)[^/].*/{
12213	    s//\1/
12214	    q
12215	  }
12216	  /^X\(\/\/\)$/{
12217	    s//\1/
12218	    q
12219	  }
12220	  /^X\(\/\).*/{
12221	    s//\1/
12222	    q
12223	  }
12224	  s/.*/./; q'`
12225    else
12226      continue
12227    fi
12228    # Extract the definition of DEPDIR, am__include, and am__quote
12229    # from the Makefile without running 'make'.
12230    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12231    test -z "$DEPDIR" && continue
12232    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12233    test -z "$am__include" && continue
12234    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12235    # Find all dependency output files, they are included files with
12236    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12237    # simplest approach to changing $(DEPDIR) to its actual value in the
12238    # expansion.
12239    for file in `sed -n "
12240      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12241	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12242      # Make sure the directory exists.
12243      test -f "$dirpart/$file" && continue
12244      fdir=`$as_dirname -- "$file" ||
12245$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12246	 X"$file" : 'X\(//\)[^/]' \| \
12247	 X"$file" : 'X\(//\)$' \| \
12248	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12249$as_echo X"$file" |
12250    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12251	    s//\1/
12252	    q
12253	  }
12254	  /^X\(\/\/\)[^/].*/{
12255	    s//\1/
12256	    q
12257	  }
12258	  /^X\(\/\/\)$/{
12259	    s//\1/
12260	    q
12261	  }
12262	  /^X\(\/\).*/{
12263	    s//\1/
12264	    q
12265	  }
12266	  s/.*/./; q'`
12267      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12268      # echo "creating $dirpart/$file"
12269      echo '# dummy' > "$dirpart/$file"
12270    done
12271  done
12272}
12273 ;;
12274
12275  esac
12276done # for ac_tag
12277
12278
12279as_fn_exit 0
12280_ACEOF
12281ac_clean_files=$ac_clean_files_save
12282
12283test $ac_write_fail = 0 ||
12284  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12285
12286
12287# configure is writing to config.log, and then calls config.status.
12288# config.status does its own redirection, appending to config.log.
12289# Unfortunately, on DOS this fails, as config.log is still kept open
12290# by configure, so config.status won't be able to write to it; its
12291# output is simply discarded.  So we exec the FD to /dev/null,
12292# effectively closing config.log, so it can be properly (re)opened and
12293# appended to by config.status.  When coming back to configure, we
12294# need to make the FD available again.
12295if test "$no_create" != yes; then
12296  ac_cs_success=:
12297  ac_config_status_args=
12298  test "$silent" = yes &&
12299    ac_config_status_args="$ac_config_status_args --quiet"
12300  exec 5>/dev/null
12301  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12302  exec 5>>config.log
12303  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12304  # would make configure fail if this is the last instruction.
12305  $ac_cs_success || as_fn_exit 1
12306fi
12307if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12308  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12309$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12310fi
12311
12312