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