configure revision 7d575c90
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for xlsatoms 1.1.1.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1"
178  if (eval "$as_required") 2>/dev/null; then :
179  as_have_required=yes
180else
181  as_have_required=no
182fi
183  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189do
190  IFS=$as_save_IFS
191  test -z "$as_dir" && as_dir=.
192  as_found=:
193  case $as_dir in #(
194	 /*)
195	   for as_base in sh bash ksh sh5; do
196	     # Try only shells that exist, to save several forks.
197	     as_shell=$as_dir/$as_base
198	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200  CONFIG_SHELL=$as_shell as_have_required=yes
201		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202  break 2
203fi
204fi
205	   done;;
206       esac
207  as_found=false
208done
209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211  CONFIG_SHELL=$SHELL as_have_required=yes
212fi; }
213IFS=$as_save_IFS
214
215
216      if test "x$CONFIG_SHELL" != x; then :
217  # We cannot yet assume a decent shell, so we have to provide a
218	# neutralization value for shells without unset; and this also
219	# works around shells that cannot unset nonexistent variables.
220	# Preserve -v and -x to the replacement shell.
221	BASH_ENV=/dev/null
222	ENV=/dev/null
223	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224	export CONFIG_SHELL
225	case $- in # ((((
226	  *v*x* | *x*v* ) as_opts=-vx ;;
227	  *v* ) as_opts=-v ;;
228	  *x* ) as_opts=-x ;;
229	  * ) as_opts= ;;
230	esac
231	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232fi
233
234    if test x$as_have_required = xno; then :
235  $as_echo "$0: This script requires a shell more modern than all"
236  $as_echo "$0: the shells that I found on your system."
237  if test x${ZSH_VERSION+set} = xset ; then
238    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240  else
241    $as_echo "$0: Please tell bug-autoconf@gnu.org and
242$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243$0: about your system, including any error possibly output
244$0: before this message. Then install a modern shell, or
245$0: manually run the script under such a shell if you do
246$0: have one."
247  fi
248  exit 1
249fi
250fi
251fi
252SHELL=${CONFIG_SHELL-/bin/sh}
253export SHELL
254# Unset more variables known to interfere with behavior of common tools.
255CLICOLOR_FORCE= GREP_OPTIONS=
256unset CLICOLOR_FORCE GREP_OPTIONS
257
258## --------------------- ##
259## M4sh Shell Functions. ##
260## --------------------- ##
261# as_fn_unset VAR
262# ---------------
263# Portably unset VAR.
264as_fn_unset ()
265{
266  { eval $1=; unset $1;}
267}
268as_unset=as_fn_unset
269
270# as_fn_set_status STATUS
271# -----------------------
272# Set $? to STATUS, without forking.
273as_fn_set_status ()
274{
275  return $1
276} # as_fn_set_status
277
278# as_fn_exit STATUS
279# -----------------
280# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281as_fn_exit ()
282{
283  set +e
284  as_fn_set_status $1
285  exit $1
286} # as_fn_exit
287
288# as_fn_mkdir_p
289# -------------
290# Create "$as_dir" as a directory, including parents if necessary.
291as_fn_mkdir_p ()
292{
293
294  case $as_dir in #(
295  -*) as_dir=./$as_dir;;
296  esac
297  test -d "$as_dir" || eval $as_mkdir_p || {
298    as_dirs=
299    while :; do
300      case $as_dir in #(
301      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302      *) as_qdir=$as_dir;;
303      esac
304      as_dirs="'$as_qdir' $as_dirs"
305      as_dir=`$as_dirname -- "$as_dir" ||
306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307	 X"$as_dir" : 'X\(//\)[^/]' \| \
308	 X"$as_dir" : 'X\(//\)$' \| \
309	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310$as_echo X"$as_dir" |
311    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312	    s//\1/
313	    q
314	  }
315	  /^X\(\/\/\)[^/].*/{
316	    s//\1/
317	    q
318	  }
319	  /^X\(\/\/\)$/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\).*/{
324	    s//\1/
325	    q
326	  }
327	  s/.*/./; q'`
328      test -d "$as_dir" && break
329    done
330    test -z "$as_dirs" || eval "mkdir $as_dirs"
331  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334} # as_fn_mkdir_p
335# as_fn_append VAR VALUE
336# ----------------------
337# Append the text in VALUE to the end of the definition contained in VAR. Take
338# advantage of any shell optimizations that allow amortized linear growth over
339# repeated appends, instead of the typical quadratic growth present in naive
340# implementations.
341if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342  eval 'as_fn_append ()
343  {
344    eval $1+=\$2
345  }'
346else
347  as_fn_append ()
348  {
349    eval $1=\$$1\$2
350  }
351fi # as_fn_append
352
353# as_fn_arith ARG...
354# ------------------
355# Perform arithmetic evaluation on the ARGs, and store the result in the
356# global $as_val. Take advantage of shells that can avoid forks. The arguments
357# must be portable across $(()) and expr.
358if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359  eval 'as_fn_arith ()
360  {
361    as_val=$(( $* ))
362  }'
363else
364  as_fn_arith ()
365  {
366    as_val=`expr "$@" || test $? -eq 1`
367  }
368fi # as_fn_arith
369
370
371# as_fn_error STATUS ERROR [LINENO LOG_FD]
372# ----------------------------------------
373# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375# script with STATUS, using 1 if that was 0.
376as_fn_error ()
377{
378  as_status=$1; test $as_status -eq 0 && as_status=1
379  if test "$4"; then
380    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382  fi
383  $as_echo "$as_me: error: $2" >&2
384  as_fn_exit $as_status
385} # as_fn_error
386
387if expr a : '\(a\)' >/dev/null 2>&1 &&
388   test "X`expr 00001 : '.*\(...\)'`" = X001; then
389  as_expr=expr
390else
391  as_expr=false
392fi
393
394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395  as_basename=basename
396else
397  as_basename=false
398fi
399
400if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401  as_dirname=dirname
402else
403  as_dirname=false
404fi
405
406as_me=`$as_basename -- "$0" ||
407$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408	 X"$0" : 'X\(//\)$' \| \
409	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410$as_echo X/"$0" |
411    sed '/^.*\/\([^/][^/]*\)\/*$/{
412	    s//\1/
413	    q
414	  }
415	  /^X\/\(\/\/\)$/{
416	    s//\1/
417	    q
418	  }
419	  /^X\/\(\/\).*/{
420	    s//\1/
421	    q
422	  }
423	  s/.*/./; q'`
424
425# Avoid depending upon Character Ranges.
426as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429as_cr_digits='0123456789'
430as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433  as_lineno_1=$LINENO as_lineno_1a=$LINENO
434  as_lineno_2=$LINENO as_lineno_2a=$LINENO
435  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
438  sed -n '
439    p
440    /[$]LINENO/=
441  ' <$as_myself |
442    sed '
443      s/[$]LINENO.*/&-/
444      t lineno
445      b
446      :lineno
447      N
448      :loop
449      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450      t loop
451      s/-\n.*//
452    ' >$as_me.lineno &&
453  chmod +x "$as_me.lineno" ||
454    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456  # Don't try to exec as it changes $[0], causing all sort of problems
457  # (the dirname of $[0] is not the place where we might find the
458  # original and so on.  Autoconf is especially sensitive to this).
459  . "./$as_me.lineno"
460  # Exit status is that of the last command.
461  exit
462}
463
464ECHO_C= ECHO_N= ECHO_T=
465case `echo -n x` in #(((((
466-n*)
467  case `echo 'xy\c'` in
468  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
469  xy)  ECHO_C='\c';;
470  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
471       ECHO_T='	';;
472  esac;;
473*)
474  ECHO_N='-n';;
475esac
476
477rm -f conf$$ conf$$.exe conf$$.file
478if test -d conf$$.dir; then
479  rm -f conf$$.dir/conf$$.file
480else
481  rm -f conf$$.dir
482  mkdir conf$$.dir 2>/dev/null
483fi
484if (echo >conf$$.file) 2>/dev/null; then
485  if ln -s conf$$.file conf$$ 2>/dev/null; then
486    as_ln_s='ln -s'
487    # ... but there are two gotchas:
488    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490    # In both cases, we have to default to `cp -p'.
491    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492      as_ln_s='cp -p'
493  elif ln conf$$.file conf$$ 2>/dev/null; then
494    as_ln_s=ln
495  else
496    as_ln_s='cp -p'
497  fi
498else
499  as_ln_s='cp -p'
500fi
501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502rmdir conf$$.dir 2>/dev/null
503
504if mkdir -p . 2>/dev/null; then
505  as_mkdir_p='mkdir -p "$as_dir"'
506else
507  test -d ./-p && rmdir ./-p
508  as_mkdir_p=false
509fi
510
511if test -x / >/dev/null 2>&1; then
512  as_test_x='test -x'
513else
514  if ls -dL / >/dev/null 2>&1; then
515    as_ls_L_option=L
516  else
517    as_ls_L_option=
518  fi
519  as_test_x='
520    eval sh -c '\''
521      if test -d "$1"; then
522	test -d "$1/.";
523      else
524	case $1 in #(
525	-*)set "./$1";;
526	esac;
527	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528	???[sx]*):;;*)false;;esac;fi
529    '\'' sh
530  '
531fi
532as_executable_p=$as_test_x
533
534# Sed expression to map a string onto a valid CPP name.
535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537# Sed expression to map a string onto a valid variable name.
538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540
541test -n "$DJDIR" || exec 7<&0 </dev/null
542exec 6>&1
543
544# Name of the host.
545# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546# so uname gets run too.
547ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548
549#
550# Initializations.
551#
552ac_default_prefix=/usr/local
553ac_clean_files=
554ac_config_libobj_dir=.
555LIBOBJS=
556cross_compiling=no
557subdirs=
558MFLAGS=
559MAKEFLAGS=
560
561# Identity of this package.
562PACKAGE_NAME='xlsatoms'
563PACKAGE_TARNAME='xlsatoms'
564PACKAGE_VERSION='1.1.1'
565PACKAGE_STRING='xlsatoms 1.1.1'
566PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567PACKAGE_URL=''
568
569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
572#ifdef HAVE_SYS_TYPES_H
573# include <sys/types.h>
574#endif
575#ifdef HAVE_SYS_STAT_H
576# include <sys/stat.h>
577#endif
578#ifdef STDC_HEADERS
579# include <stdlib.h>
580# include <stddef.h>
581#else
582# ifdef HAVE_STDLIB_H
583#  include <stdlib.h>
584# endif
585#endif
586#ifdef HAVE_STRING_H
587# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588#  include <memory.h>
589# endif
590# include <string.h>
591#endif
592#ifdef HAVE_STRINGS_H
593# include <strings.h>
594#endif
595#ifdef HAVE_INTTYPES_H
596# include <inttypes.h>
597#endif
598#ifdef HAVE_STDINT_H
599# include <stdint.h>
600#endif
601#ifdef HAVE_UNISTD_H
602# include <unistd.h>
603#endif"
604
605ac_subst_vars='am__EXEEXT_FALSE
606am__EXEEXT_TRUE
607LTLIBOBJS
608LIBOBJS
609XLSATOMS_LIBS
610XLSATOMS_CFLAGS
611AM_BACKSLASH
612AM_DEFAULT_VERBOSITY
613MAN_SUBSTS
614XORG_MAN_PAGE
615ADMIN_MAN_DIR
616DRIVER_MAN_DIR
617MISC_MAN_DIR
618FILE_MAN_DIR
619LIB_MAN_DIR
620APP_MAN_DIR
621ADMIN_MAN_SUFFIX
622DRIVER_MAN_SUFFIX
623MISC_MAN_SUFFIX
624FILE_MAN_SUFFIX
625LIB_MAN_SUFFIX
626APP_MAN_SUFFIX
627SED
628host_os
629host_vendor
630host_cpu
631host
632build_os
633build_vendor
634build_cpu
635build
636INSTALL_CMD
637PKG_CONFIG
638CHANGELOG_CMD
639STRICT_CFLAGS
640CWARNFLAGS
641BASE_CFLAGS
642EGREP
643GREP
644CPP
645am__fastdepCC_FALSE
646am__fastdepCC_TRUE
647CCDEPMODE
648am__nodep
649AMDEPBACKSLASH
650AMDEP_FALSE
651AMDEP_TRUE
652am__quote
653am__include
654DEPDIR
655OBJEXT
656EXEEXT
657ac_ct_CC
658CPPFLAGS
659LDFLAGS
660CFLAGS
661CC
662MAINT
663MAINTAINER_MODE_FALSE
664MAINTAINER_MODE_TRUE
665am__untar
666am__tar
667AMTAR
668am__leading_dot
669SET_MAKE
670AWK
671mkdir_p
672MKDIR_P
673INSTALL_STRIP_PROGRAM
674STRIP
675install_sh
676MAKEINFO
677AUTOHEADER
678AUTOMAKE
679AUTOCONF
680ACLOCAL
681VERSION
682PACKAGE
683CYGPATH_W
684am__isrc
685INSTALL_DATA
686INSTALL_SCRIPT
687INSTALL_PROGRAM
688target_alias
689host_alias
690build_alias
691LIBS
692ECHO_T
693ECHO_N
694ECHO_C
695DEFS
696mandir
697localedir
698libdir
699psdir
700pdfdir
701dvidir
702htmldir
703infodir
704docdir
705oldincludedir
706includedir
707localstatedir
708sharedstatedir
709sysconfdir
710datadir
711datarootdir
712libexecdir
713sbindir
714bindir
715program_transform_name
716prefix
717exec_prefix
718PACKAGE_URL
719PACKAGE_BUGREPORT
720PACKAGE_STRING
721PACKAGE_VERSION
722PACKAGE_TARNAME
723PACKAGE_NAME
724PATH_SEPARATOR
725SHELL'
726ac_subst_files=''
727ac_user_opts='
728enable_option_checking
729enable_maintainer_mode
730enable_dependency_tracking
731enable_selective_werror
732enable_strict_compilation
733enable_silent_rules
734'
735      ac_precious_vars='build_alias
736host_alias
737target_alias
738CC
739CFLAGS
740LDFLAGS
741LIBS
742CPPFLAGS
743CPP
744PKG_CONFIG
745XLSATOMS_CFLAGS
746XLSATOMS_LIBS'
747
748
749# Initialize some variables set by options.
750ac_init_help=
751ac_init_version=false
752ac_unrecognized_opts=
753ac_unrecognized_sep=
754# The variables have the same names as the options, with
755# dashes changed to underlines.
756cache_file=/dev/null
757exec_prefix=NONE
758no_create=
759no_recursion=
760prefix=NONE
761program_prefix=NONE
762program_suffix=NONE
763program_transform_name=s,x,x,
764silent=
765site=
766srcdir=
767verbose=
768x_includes=NONE
769x_libraries=NONE
770
771# Installation directory options.
772# These are left unexpanded so users can "make install exec_prefix=/foo"
773# and all the variables that are supposed to be based on exec_prefix
774# by default will actually change.
775# Use braces instead of parens because sh, perl, etc. also accept them.
776# (The list follows the same order as the GNU Coding Standards.)
777bindir='${exec_prefix}/bin'
778sbindir='${exec_prefix}/sbin'
779libexecdir='${exec_prefix}/libexec'
780datarootdir='${prefix}/share'
781datadir='${datarootdir}'
782sysconfdir='${prefix}/etc'
783sharedstatedir='${prefix}/com'
784localstatedir='${prefix}/var'
785includedir='${prefix}/include'
786oldincludedir='/usr/include'
787docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
788infodir='${datarootdir}/info'
789htmldir='${docdir}'
790dvidir='${docdir}'
791pdfdir='${docdir}'
792psdir='${docdir}'
793libdir='${exec_prefix}/lib'
794localedir='${datarootdir}/locale'
795mandir='${datarootdir}/man'
796
797ac_prev=
798ac_dashdash=
799for ac_option
800do
801  # If the previous option needs an argument, assign it.
802  if test -n "$ac_prev"; then
803    eval $ac_prev=\$ac_option
804    ac_prev=
805    continue
806  fi
807
808  case $ac_option in
809  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
810  *=)   ac_optarg= ;;
811  *)    ac_optarg=yes ;;
812  esac
813
814  # Accept the important Cygnus configure options, so we can diagnose typos.
815
816  case $ac_dashdash$ac_option in
817  --)
818    ac_dashdash=yes ;;
819
820  -bindir | --bindir | --bindi | --bind | --bin | --bi)
821    ac_prev=bindir ;;
822  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
823    bindir=$ac_optarg ;;
824
825  -build | --build | --buil | --bui | --bu)
826    ac_prev=build_alias ;;
827  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
828    build_alias=$ac_optarg ;;
829
830  -cache-file | --cache-file | --cache-fil | --cache-fi \
831  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
832    ac_prev=cache_file ;;
833  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
834  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
835    cache_file=$ac_optarg ;;
836
837  --config-cache | -C)
838    cache_file=config.cache ;;
839
840  -datadir | --datadir | --datadi | --datad)
841    ac_prev=datadir ;;
842  -datadir=* | --datadir=* | --datadi=* | --datad=*)
843    datadir=$ac_optarg ;;
844
845  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
846  | --dataroo | --dataro | --datar)
847    ac_prev=datarootdir ;;
848  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
849  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
850    datarootdir=$ac_optarg ;;
851
852  -disable-* | --disable-*)
853    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
854    # Reject names that are not valid shell variable names.
855    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
856      as_fn_error $? "invalid feature name: $ac_useropt"
857    ac_useropt_orig=$ac_useropt
858    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
859    case $ac_user_opts in
860      *"
861"enable_$ac_useropt"
862"*) ;;
863      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
864	 ac_unrecognized_sep=', ';;
865    esac
866    eval enable_$ac_useropt=no ;;
867
868  -docdir | --docdir | --docdi | --doc | --do)
869    ac_prev=docdir ;;
870  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
871    docdir=$ac_optarg ;;
872
873  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
874    ac_prev=dvidir ;;
875  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
876    dvidir=$ac_optarg ;;
877
878  -enable-* | --enable-*)
879    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
880    # Reject names that are not valid shell variable names.
881    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
882      as_fn_error $? "invalid feature name: $ac_useropt"
883    ac_useropt_orig=$ac_useropt
884    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
885    case $ac_user_opts in
886      *"
887"enable_$ac_useropt"
888"*) ;;
889      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
890	 ac_unrecognized_sep=', ';;
891    esac
892    eval enable_$ac_useropt=\$ac_optarg ;;
893
894  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
895  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
896  | --exec | --exe | --ex)
897    ac_prev=exec_prefix ;;
898  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
899  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
900  | --exec=* | --exe=* | --ex=*)
901    exec_prefix=$ac_optarg ;;
902
903  -gas | --gas | --ga | --g)
904    # Obsolete; use --with-gas.
905    with_gas=yes ;;
906
907  -help | --help | --hel | --he | -h)
908    ac_init_help=long ;;
909  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
910    ac_init_help=recursive ;;
911  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
912    ac_init_help=short ;;
913
914  -host | --host | --hos | --ho)
915    ac_prev=host_alias ;;
916  -host=* | --host=* | --hos=* | --ho=*)
917    host_alias=$ac_optarg ;;
918
919  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
920    ac_prev=htmldir ;;
921  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
922  | --ht=*)
923    htmldir=$ac_optarg ;;
924
925  -includedir | --includedir | --includedi | --included | --include \
926  | --includ | --inclu | --incl | --inc)
927    ac_prev=includedir ;;
928  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
929  | --includ=* | --inclu=* | --incl=* | --inc=*)
930    includedir=$ac_optarg ;;
931
932  -infodir | --infodir | --infodi | --infod | --info | --inf)
933    ac_prev=infodir ;;
934  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
935    infodir=$ac_optarg ;;
936
937  -libdir | --libdir | --libdi | --libd)
938    ac_prev=libdir ;;
939  -libdir=* | --libdir=* | --libdi=* | --libd=*)
940    libdir=$ac_optarg ;;
941
942  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
943  | --libexe | --libex | --libe)
944    ac_prev=libexecdir ;;
945  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
946  | --libexe=* | --libex=* | --libe=*)
947    libexecdir=$ac_optarg ;;
948
949  -localedir | --localedir | --localedi | --localed | --locale)
950    ac_prev=localedir ;;
951  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
952    localedir=$ac_optarg ;;
953
954  -localstatedir | --localstatedir | --localstatedi | --localstated \
955  | --localstate | --localstat | --localsta | --localst | --locals)
956    ac_prev=localstatedir ;;
957  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
958  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
959    localstatedir=$ac_optarg ;;
960
961  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
962    ac_prev=mandir ;;
963  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
964    mandir=$ac_optarg ;;
965
966  -nfp | --nfp | --nf)
967    # Obsolete; use --without-fp.
968    with_fp=no ;;
969
970  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
971  | --no-cr | --no-c | -n)
972    no_create=yes ;;
973
974  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
975  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
976    no_recursion=yes ;;
977
978  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
979  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
980  | --oldin | --oldi | --old | --ol | --o)
981    ac_prev=oldincludedir ;;
982  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
983  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
984  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
985    oldincludedir=$ac_optarg ;;
986
987  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
988    ac_prev=prefix ;;
989  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
990    prefix=$ac_optarg ;;
991
992  -program-prefix | --program-prefix | --program-prefi | --program-pref \
993  | --program-pre | --program-pr | --program-p)
994    ac_prev=program_prefix ;;
995  -program-prefix=* | --program-prefix=* | --program-prefi=* \
996  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
997    program_prefix=$ac_optarg ;;
998
999  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1000  | --program-suf | --program-su | --program-s)
1001    ac_prev=program_suffix ;;
1002  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1003  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1004    program_suffix=$ac_optarg ;;
1005
1006  -program-transform-name | --program-transform-name \
1007  | --program-transform-nam | --program-transform-na \
1008  | --program-transform-n | --program-transform- \
1009  | --program-transform | --program-transfor \
1010  | --program-transfo | --program-transf \
1011  | --program-trans | --program-tran \
1012  | --progr-tra | --program-tr | --program-t)
1013    ac_prev=program_transform_name ;;
1014  -program-transform-name=* | --program-transform-name=* \
1015  | --program-transform-nam=* | --program-transform-na=* \
1016  | --program-transform-n=* | --program-transform-=* \
1017  | --program-transform=* | --program-transfor=* \
1018  | --program-transfo=* | --program-transf=* \
1019  | --program-trans=* | --program-tran=* \
1020  | --progr-tra=* | --program-tr=* | --program-t=*)
1021    program_transform_name=$ac_optarg ;;
1022
1023  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1024    ac_prev=pdfdir ;;
1025  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1026    pdfdir=$ac_optarg ;;
1027
1028  -psdir | --psdir | --psdi | --psd | --ps)
1029    ac_prev=psdir ;;
1030  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1031    psdir=$ac_optarg ;;
1032
1033  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1034  | -silent | --silent | --silen | --sile | --sil)
1035    silent=yes ;;
1036
1037  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1038    ac_prev=sbindir ;;
1039  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1040  | --sbi=* | --sb=*)
1041    sbindir=$ac_optarg ;;
1042
1043  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1044  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1045  | --sharedst | --shareds | --shared | --share | --shar \
1046  | --sha | --sh)
1047    ac_prev=sharedstatedir ;;
1048  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1049  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1050  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1051  | --sha=* | --sh=*)
1052    sharedstatedir=$ac_optarg ;;
1053
1054  -site | --site | --sit)
1055    ac_prev=site ;;
1056  -site=* | --site=* | --sit=*)
1057    site=$ac_optarg ;;
1058
1059  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1060    ac_prev=srcdir ;;
1061  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1062    srcdir=$ac_optarg ;;
1063
1064  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1065  | --syscon | --sysco | --sysc | --sys | --sy)
1066    ac_prev=sysconfdir ;;
1067  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1068  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1069    sysconfdir=$ac_optarg ;;
1070
1071  -target | --target | --targe | --targ | --tar | --ta | --t)
1072    ac_prev=target_alias ;;
1073  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1074    target_alias=$ac_optarg ;;
1075
1076  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1077    verbose=yes ;;
1078
1079  -version | --version | --versio | --versi | --vers | -V)
1080    ac_init_version=: ;;
1081
1082  -with-* | --with-*)
1083    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1084    # Reject names that are not valid shell variable names.
1085    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1086      as_fn_error $? "invalid package name: $ac_useropt"
1087    ac_useropt_orig=$ac_useropt
1088    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1089    case $ac_user_opts in
1090      *"
1091"with_$ac_useropt"
1092"*) ;;
1093      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1094	 ac_unrecognized_sep=', ';;
1095    esac
1096    eval with_$ac_useropt=\$ac_optarg ;;
1097
1098  -without-* | --without-*)
1099    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1100    # Reject names that are not valid shell variable names.
1101    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1102      as_fn_error $? "invalid package name: $ac_useropt"
1103    ac_useropt_orig=$ac_useropt
1104    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1105    case $ac_user_opts in
1106      *"
1107"with_$ac_useropt"
1108"*) ;;
1109      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1110	 ac_unrecognized_sep=', ';;
1111    esac
1112    eval with_$ac_useropt=no ;;
1113
1114  --x)
1115    # Obsolete; use --with-x.
1116    with_x=yes ;;
1117
1118  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1119  | --x-incl | --x-inc | --x-in | --x-i)
1120    ac_prev=x_includes ;;
1121  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1122  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1123    x_includes=$ac_optarg ;;
1124
1125  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1126  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1127    ac_prev=x_libraries ;;
1128  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1129  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1130    x_libraries=$ac_optarg ;;
1131
1132  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1133Try \`$0 --help' for more information"
1134    ;;
1135
1136  *=*)
1137    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1138    # Reject names that are not valid shell variable names.
1139    case $ac_envvar in #(
1140      '' | [0-9]* | *[!_$as_cr_alnum]* )
1141      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1142    esac
1143    eval $ac_envvar=\$ac_optarg
1144    export $ac_envvar ;;
1145
1146  *)
1147    # FIXME: should be removed in autoconf 3.0.
1148    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1149    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1150      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1151    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1152    ;;
1153
1154  esac
1155done
1156
1157if test -n "$ac_prev"; then
1158  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1159  as_fn_error $? "missing argument to $ac_option"
1160fi
1161
1162if test -n "$ac_unrecognized_opts"; then
1163  case $enable_option_checking in
1164    no) ;;
1165    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1166    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1167  esac
1168fi
1169
1170# Check all directory arguments for consistency.
1171for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1172		datadir sysconfdir sharedstatedir localstatedir includedir \
1173		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1174		libdir localedir mandir
1175do
1176  eval ac_val=\$$ac_var
1177  # Remove trailing slashes.
1178  case $ac_val in
1179    */ )
1180      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1181      eval $ac_var=\$ac_val;;
1182  esac
1183  # Be sure to have absolute directory names.
1184  case $ac_val in
1185    [\\/$]* | ?:[\\/]* )  continue;;
1186    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1187  esac
1188  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1189done
1190
1191# There might be people who depend on the old broken behavior: `$host'
1192# used to hold the argument of --host etc.
1193# FIXME: To remove some day.
1194build=$build_alias
1195host=$host_alias
1196target=$target_alias
1197
1198# FIXME: To remove some day.
1199if test "x$host_alias" != x; then
1200  if test "x$build_alias" = x; then
1201    cross_compiling=maybe
1202    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1203    If a cross compiler is detected then cross compile mode will be used" >&2
1204  elif test "x$build_alias" != "x$host_alias"; then
1205    cross_compiling=yes
1206  fi
1207fi
1208
1209ac_tool_prefix=
1210test -n "$host_alias" && ac_tool_prefix=$host_alias-
1211
1212test "$silent" = yes && exec 6>/dev/null
1213
1214
1215ac_pwd=`pwd` && test -n "$ac_pwd" &&
1216ac_ls_di=`ls -di .` &&
1217ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1218  as_fn_error $? "working directory cannot be determined"
1219test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1220  as_fn_error $? "pwd does not report name of working directory"
1221
1222
1223# Find the source files, if location was not specified.
1224if test -z "$srcdir"; then
1225  ac_srcdir_defaulted=yes
1226  # Try the directory containing this script, then the parent directory.
1227  ac_confdir=`$as_dirname -- "$as_myself" ||
1228$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1229	 X"$as_myself" : 'X\(//\)[^/]' \| \
1230	 X"$as_myself" : 'X\(//\)$' \| \
1231	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1232$as_echo X"$as_myself" |
1233    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1234	    s//\1/
1235	    q
1236	  }
1237	  /^X\(\/\/\)[^/].*/{
1238	    s//\1/
1239	    q
1240	  }
1241	  /^X\(\/\/\)$/{
1242	    s//\1/
1243	    q
1244	  }
1245	  /^X\(\/\).*/{
1246	    s//\1/
1247	    q
1248	  }
1249	  s/.*/./; q'`
1250  srcdir=$ac_confdir
1251  if test ! -r "$srcdir/$ac_unique_file"; then
1252    srcdir=..
1253  fi
1254else
1255  ac_srcdir_defaulted=no
1256fi
1257if test ! -r "$srcdir/$ac_unique_file"; then
1258  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1259  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1260fi
1261ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1262ac_abs_confdir=`(
1263	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1264	pwd)`
1265# When building in place, set srcdir=.
1266if test "$ac_abs_confdir" = "$ac_pwd"; then
1267  srcdir=.
1268fi
1269# Remove unnecessary trailing slashes from srcdir.
1270# Double slashes in file names in object file debugging info
1271# mess up M-x gdb in Emacs.
1272case $srcdir in
1273*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1274esac
1275for ac_var in $ac_precious_vars; do
1276  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1277  eval ac_env_${ac_var}_value=\$${ac_var}
1278  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1279  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1280done
1281
1282#
1283# Report the --help message.
1284#
1285if test "$ac_init_help" = "long"; then
1286  # Omit some internal or obsolete options to make the list less imposing.
1287  # This message is too long to be a string in the A/UX 3.1 sh.
1288  cat <<_ACEOF
1289\`configure' configures xlsatoms 1.1.1 to adapt to many kinds of systems.
1290
1291Usage: $0 [OPTION]... [VAR=VALUE]...
1292
1293To assign environment variables (e.g., CC, CFLAGS...), specify them as
1294VAR=VALUE.  See below for descriptions of some of the useful variables.
1295
1296Defaults for the options are specified in brackets.
1297
1298Configuration:
1299  -h, --help              display this help and exit
1300      --help=short        display options specific to this package
1301      --help=recursive    display the short help of all the included packages
1302  -V, --version           display version information and exit
1303  -q, --quiet, --silent   do not print \`checking ...' messages
1304      --cache-file=FILE   cache test results in FILE [disabled]
1305  -C, --config-cache      alias for \`--cache-file=config.cache'
1306  -n, --no-create         do not create output files
1307      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1308
1309Installation directories:
1310  --prefix=PREFIX         install architecture-independent files in PREFIX
1311                          [$ac_default_prefix]
1312  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1313                          [PREFIX]
1314
1315By default, \`make install' will install all the files in
1316\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1317an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1318for instance \`--prefix=\$HOME'.
1319
1320For better control, use the options below.
1321
1322Fine tuning of the installation directories:
1323  --bindir=DIR            user executables [EPREFIX/bin]
1324  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1325  --libexecdir=DIR        program executables [EPREFIX/libexec]
1326  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1327  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1328  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1329  --libdir=DIR            object code libraries [EPREFIX/lib]
1330  --includedir=DIR        C header files [PREFIX/include]
1331  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1332  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1333  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1334  --infodir=DIR           info documentation [DATAROOTDIR/info]
1335  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1336  --mandir=DIR            man documentation [DATAROOTDIR/man]
1337  --docdir=DIR            documentation root [DATAROOTDIR/doc/xlsatoms]
1338  --htmldir=DIR           html documentation [DOCDIR]
1339  --dvidir=DIR            dvi documentation [DOCDIR]
1340  --pdfdir=DIR            pdf documentation [DOCDIR]
1341  --psdir=DIR             ps documentation [DOCDIR]
1342_ACEOF
1343
1344  cat <<\_ACEOF
1345
1346Program names:
1347  --program-prefix=PREFIX            prepend PREFIX to installed program names
1348  --program-suffix=SUFFIX            append SUFFIX to installed program names
1349  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1350
1351System types:
1352  --build=BUILD     configure for building on BUILD [guessed]
1353  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1354_ACEOF
1355fi
1356
1357if test -n "$ac_init_help"; then
1358  case $ac_init_help in
1359     short | recursive ) echo "Configuration of xlsatoms 1.1.1:";;
1360   esac
1361  cat <<\_ACEOF
1362
1363Optional Features:
1364  --disable-option-checking  ignore unrecognized --enable/--with options
1365  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1366  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1367  --enable-maintainer-mode  enable make rules and dependencies not useful
1368			  (and sometimes confusing) to the casual installer
1369  --disable-dependency-tracking  speeds up one-time build
1370  --enable-dependency-tracking   do not reject slow dependency extractors
1371  --disable-selective-werror
1372                          Turn off selective compiler errors. (default:
1373                          enabled)
1374  --enable-strict-compilation
1375                          Enable all warnings from compiler and make them
1376                          errors (default: disabled)
1377  --enable-silent-rules          less verbose build output (undo: `make V=1')
1378  --disable-silent-rules         verbose build output (undo: `make V=0')
1379
1380Some influential environment variables:
1381  CC          C compiler command
1382  CFLAGS      C compiler flags
1383  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1384              nonstandard directory <lib dir>
1385  LIBS        libraries to pass to the linker, e.g. -l<library>
1386  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1387              you have headers in a nonstandard directory <include dir>
1388  CPP         C preprocessor
1389  PKG_CONFIG  path to pkg-config utility
1390  XLSATOMS_CFLAGS
1391              C compiler flags for XLSATOMS, overriding pkg-config
1392  XLSATOMS_LIBS
1393              linker flags for XLSATOMS, overriding pkg-config
1394
1395Use these variables to override the choices made by `configure' or to help
1396it to find libraries and programs with nonstandard names/locations.
1397
1398Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1399_ACEOF
1400ac_status=$?
1401fi
1402
1403if test "$ac_init_help" = "recursive"; then
1404  # If there are subdirs, report their specific --help.
1405  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1406    test -d "$ac_dir" ||
1407      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1408      continue
1409    ac_builddir=.
1410
1411case "$ac_dir" in
1412.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1413*)
1414  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1415  # A ".." for each directory in $ac_dir_suffix.
1416  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1417  case $ac_top_builddir_sub in
1418  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1419  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1420  esac ;;
1421esac
1422ac_abs_top_builddir=$ac_pwd
1423ac_abs_builddir=$ac_pwd$ac_dir_suffix
1424# for backward compatibility:
1425ac_top_builddir=$ac_top_build_prefix
1426
1427case $srcdir in
1428  .)  # We are building in place.
1429    ac_srcdir=.
1430    ac_top_srcdir=$ac_top_builddir_sub
1431    ac_abs_top_srcdir=$ac_pwd ;;
1432  [\\/]* | ?:[\\/]* )  # Absolute name.
1433    ac_srcdir=$srcdir$ac_dir_suffix;
1434    ac_top_srcdir=$srcdir
1435    ac_abs_top_srcdir=$srcdir ;;
1436  *) # Relative name.
1437    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1438    ac_top_srcdir=$ac_top_build_prefix$srcdir
1439    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1440esac
1441ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1442
1443    cd "$ac_dir" || { ac_status=$?; continue; }
1444    # Check for guested configure.
1445    if test -f "$ac_srcdir/configure.gnu"; then
1446      echo &&
1447      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1448    elif test -f "$ac_srcdir/configure"; then
1449      echo &&
1450      $SHELL "$ac_srcdir/configure" --help=recursive
1451    else
1452      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1453    fi || ac_status=$?
1454    cd "$ac_pwd" || { ac_status=$?; break; }
1455  done
1456fi
1457
1458test -n "$ac_init_help" && exit $ac_status
1459if $ac_init_version; then
1460  cat <<\_ACEOF
1461xlsatoms configure 1.1.1
1462generated by GNU Autoconf 2.68
1463
1464Copyright (C) 2010 Free Software Foundation, Inc.
1465This configure script is free software; the Free Software Foundation
1466gives unlimited permission to copy, distribute and modify it.
1467_ACEOF
1468  exit
1469fi
1470
1471## ------------------------ ##
1472## Autoconf initialization. ##
1473## ------------------------ ##
1474
1475# ac_fn_c_try_compile LINENO
1476# --------------------------
1477# Try to compile conftest.$ac_ext, and return whether this succeeded.
1478ac_fn_c_try_compile ()
1479{
1480  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1481  rm -f conftest.$ac_objext
1482  if { { ac_try="$ac_compile"
1483case "(($ac_try" in
1484  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1485  *) ac_try_echo=$ac_try;;
1486esac
1487eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1488$as_echo "$ac_try_echo"; } >&5
1489  (eval "$ac_compile") 2>conftest.err
1490  ac_status=$?
1491  if test -s conftest.err; then
1492    grep -v '^ *+' conftest.err >conftest.er1
1493    cat conftest.er1 >&5
1494    mv -f conftest.er1 conftest.err
1495  fi
1496  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1497  test $ac_status = 0; } && {
1498	 test -z "$ac_c_werror_flag" ||
1499	 test ! -s conftest.err
1500       } && test -s conftest.$ac_objext; then :
1501  ac_retval=0
1502else
1503  $as_echo "$as_me: failed program was:" >&5
1504sed 's/^/| /' conftest.$ac_ext >&5
1505
1506	ac_retval=1
1507fi
1508  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1509  as_fn_set_status $ac_retval
1510
1511} # ac_fn_c_try_compile
1512
1513# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1514# ---------------------------------------------
1515# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1516# accordingly.
1517ac_fn_c_check_decl ()
1518{
1519  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1520  as_decl_name=`echo $2|sed 's/ *(.*//'`
1521  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1522  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1523$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1524if eval \${$3+:} false; then :
1525  $as_echo_n "(cached) " >&6
1526else
1527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1528/* end confdefs.h.  */
1529$4
1530int
1531main ()
1532{
1533#ifndef $as_decl_name
1534#ifdef __cplusplus
1535  (void) $as_decl_use;
1536#else
1537  (void) $as_decl_name;
1538#endif
1539#endif
1540
1541  ;
1542  return 0;
1543}
1544_ACEOF
1545if ac_fn_c_try_compile "$LINENO"; then :
1546  eval "$3=yes"
1547else
1548  eval "$3=no"
1549fi
1550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1551fi
1552eval ac_res=\$$3
1553	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1554$as_echo "$ac_res" >&6; }
1555  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1556
1557} # ac_fn_c_check_decl
1558
1559# ac_fn_c_try_cpp LINENO
1560# ----------------------
1561# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1562ac_fn_c_try_cpp ()
1563{
1564  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1565  if { { ac_try="$ac_cpp conftest.$ac_ext"
1566case "(($ac_try" in
1567  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568  *) ac_try_echo=$ac_try;;
1569esac
1570eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571$as_echo "$ac_try_echo"; } >&5
1572  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1573  ac_status=$?
1574  if test -s conftest.err; then
1575    grep -v '^ *+' conftest.err >conftest.er1
1576    cat conftest.er1 >&5
1577    mv -f conftest.er1 conftest.err
1578  fi
1579  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580  test $ac_status = 0; } > conftest.i && {
1581	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1582	 test ! -s conftest.err
1583       }; then :
1584  ac_retval=0
1585else
1586  $as_echo "$as_me: failed program was:" >&5
1587sed 's/^/| /' conftest.$ac_ext >&5
1588
1589    ac_retval=1
1590fi
1591  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592  as_fn_set_status $ac_retval
1593
1594} # ac_fn_c_try_cpp
1595
1596# ac_fn_c_try_run LINENO
1597# ----------------------
1598# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1599# that executables *can* be run.
1600ac_fn_c_try_run ()
1601{
1602  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603  if { { ac_try="$ac_link"
1604case "(($ac_try" in
1605  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1606  *) ac_try_echo=$ac_try;;
1607esac
1608eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609$as_echo "$ac_try_echo"; } >&5
1610  (eval "$ac_link") 2>&5
1611  ac_status=$?
1612  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1613  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1614  { { case "(($ac_try" in
1615  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616  *) ac_try_echo=$ac_try;;
1617esac
1618eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619$as_echo "$ac_try_echo"; } >&5
1620  (eval "$ac_try") 2>&5
1621  ac_status=$?
1622  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623  test $ac_status = 0; }; }; then :
1624  ac_retval=0
1625else
1626  $as_echo "$as_me: program exited with status $ac_status" >&5
1627       $as_echo "$as_me: failed program was:" >&5
1628sed 's/^/| /' conftest.$ac_ext >&5
1629
1630       ac_retval=$ac_status
1631fi
1632  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1633  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1634  as_fn_set_status $ac_retval
1635
1636} # ac_fn_c_try_run
1637
1638# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1639# -------------------------------------------------------
1640# Tests whether HEADER exists and can be compiled using the include files in
1641# INCLUDES, setting the cache variable VAR accordingly.
1642ac_fn_c_check_header_compile ()
1643{
1644  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1646$as_echo_n "checking for $2... " >&6; }
1647if eval \${$3+:} false; then :
1648  $as_echo_n "(cached) " >&6
1649else
1650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1651/* end confdefs.h.  */
1652$4
1653#include <$2>
1654_ACEOF
1655if ac_fn_c_try_compile "$LINENO"; then :
1656  eval "$3=yes"
1657else
1658  eval "$3=no"
1659fi
1660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1661fi
1662eval ac_res=\$$3
1663	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1664$as_echo "$ac_res" >&6; }
1665  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666
1667} # ac_fn_c_check_header_compile
1668
1669# ac_fn_c_try_link LINENO
1670# -----------------------
1671# Try to link conftest.$ac_ext, and return whether this succeeded.
1672ac_fn_c_try_link ()
1673{
1674  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675  rm -f conftest.$ac_objext conftest$ac_exeext
1676  if { { ac_try="$ac_link"
1677case "(($ac_try" in
1678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679  *) ac_try_echo=$ac_try;;
1680esac
1681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682$as_echo "$ac_try_echo"; } >&5
1683  (eval "$ac_link") 2>conftest.err
1684  ac_status=$?
1685  if test -s conftest.err; then
1686    grep -v '^ *+' conftest.err >conftest.er1
1687    cat conftest.er1 >&5
1688    mv -f conftest.er1 conftest.err
1689  fi
1690  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691  test $ac_status = 0; } && {
1692	 test -z "$ac_c_werror_flag" ||
1693	 test ! -s conftest.err
1694       } && test -s conftest$ac_exeext && {
1695	 test "$cross_compiling" = yes ||
1696	 $as_test_x conftest$ac_exeext
1697       }; then :
1698  ac_retval=0
1699else
1700  $as_echo "$as_me: failed program was:" >&5
1701sed 's/^/| /' conftest.$ac_ext >&5
1702
1703	ac_retval=1
1704fi
1705  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1706  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1707  # interfere with the next link command; also delete a directory that is
1708  # left behind by Apple's compiler.  We do this before executing the actions.
1709  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1710  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711  as_fn_set_status $ac_retval
1712
1713} # ac_fn_c_try_link
1714cat >config.log <<_ACEOF
1715This file contains any messages produced by compilers while
1716running configure, to aid debugging if configure makes a mistake.
1717
1718It was created by xlsatoms $as_me 1.1.1, which was
1719generated by GNU Autoconf 2.68.  Invocation command line was
1720
1721  $ $0 $@
1722
1723_ACEOF
1724exec 5>>config.log
1725{
1726cat <<_ASUNAME
1727## --------- ##
1728## Platform. ##
1729## --------- ##
1730
1731hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1732uname -m = `(uname -m) 2>/dev/null || echo unknown`
1733uname -r = `(uname -r) 2>/dev/null || echo unknown`
1734uname -s = `(uname -s) 2>/dev/null || echo unknown`
1735uname -v = `(uname -v) 2>/dev/null || echo unknown`
1736
1737/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1738/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1739
1740/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1741/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1742/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1743/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1744/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1745/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1746/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1747
1748_ASUNAME
1749
1750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1751for as_dir in $PATH
1752do
1753  IFS=$as_save_IFS
1754  test -z "$as_dir" && as_dir=.
1755    $as_echo "PATH: $as_dir"
1756  done
1757IFS=$as_save_IFS
1758
1759} >&5
1760
1761cat >&5 <<_ACEOF
1762
1763
1764## ----------- ##
1765## Core tests. ##
1766## ----------- ##
1767
1768_ACEOF
1769
1770
1771# Keep a trace of the command line.
1772# Strip out --no-create and --no-recursion so they do not pile up.
1773# Strip out --silent because we don't want to record it for future runs.
1774# Also quote any args containing shell meta-characters.
1775# Make two passes to allow for proper duplicate-argument suppression.
1776ac_configure_args=
1777ac_configure_args0=
1778ac_configure_args1=
1779ac_must_keep_next=false
1780for ac_pass in 1 2
1781do
1782  for ac_arg
1783  do
1784    case $ac_arg in
1785    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1786    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1787    | -silent | --silent | --silen | --sile | --sil)
1788      continue ;;
1789    *\'*)
1790      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1791    esac
1792    case $ac_pass in
1793    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1794    2)
1795      as_fn_append ac_configure_args1 " '$ac_arg'"
1796      if test $ac_must_keep_next = true; then
1797	ac_must_keep_next=false # Got value, back to normal.
1798      else
1799	case $ac_arg in
1800	  *=* | --config-cache | -C | -disable-* | --disable-* \
1801	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1802	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1803	  | -with-* | --with-* | -without-* | --without-* | --x)
1804	    case "$ac_configure_args0 " in
1805	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1806	    esac
1807	    ;;
1808	  -* ) ac_must_keep_next=true ;;
1809	esac
1810      fi
1811      as_fn_append ac_configure_args " '$ac_arg'"
1812      ;;
1813    esac
1814  done
1815done
1816{ ac_configure_args0=; unset ac_configure_args0;}
1817{ ac_configure_args1=; unset ac_configure_args1;}
1818
1819# When interrupted or exit'd, cleanup temporary files, and complete
1820# config.log.  We remove comments because anyway the quotes in there
1821# would cause problems or look ugly.
1822# WARNING: Use '\'' to represent an apostrophe within the trap.
1823# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1824trap 'exit_status=$?
1825  # Save into config.log some information that might help in debugging.
1826  {
1827    echo
1828
1829    $as_echo "## ---------------- ##
1830## Cache variables. ##
1831## ---------------- ##"
1832    echo
1833    # The following way of writing the cache mishandles newlines in values,
1834(
1835  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1836    eval ac_val=\$$ac_var
1837    case $ac_val in #(
1838    *${as_nl}*)
1839      case $ac_var in #(
1840      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1841$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1842      esac
1843      case $ac_var in #(
1844      _ | IFS | as_nl) ;; #(
1845      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1846      *) { eval $ac_var=; unset $ac_var;} ;;
1847      esac ;;
1848    esac
1849  done
1850  (set) 2>&1 |
1851    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1852    *${as_nl}ac_space=\ *)
1853      sed -n \
1854	"s/'\''/'\''\\\\'\'''\''/g;
1855	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1856      ;; #(
1857    *)
1858      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1859      ;;
1860    esac |
1861    sort
1862)
1863    echo
1864
1865    $as_echo "## ----------------- ##
1866## Output variables. ##
1867## ----------------- ##"
1868    echo
1869    for ac_var in $ac_subst_vars
1870    do
1871      eval ac_val=\$$ac_var
1872      case $ac_val in
1873      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1874      esac
1875      $as_echo "$ac_var='\''$ac_val'\''"
1876    done | sort
1877    echo
1878
1879    if test -n "$ac_subst_files"; then
1880      $as_echo "## ------------------- ##
1881## File substitutions. ##
1882## ------------------- ##"
1883      echo
1884      for ac_var in $ac_subst_files
1885      do
1886	eval ac_val=\$$ac_var
1887	case $ac_val in
1888	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1889	esac
1890	$as_echo "$ac_var='\''$ac_val'\''"
1891      done | sort
1892      echo
1893    fi
1894
1895    if test -s confdefs.h; then
1896      $as_echo "## ----------- ##
1897## confdefs.h. ##
1898## ----------- ##"
1899      echo
1900      cat confdefs.h
1901      echo
1902    fi
1903    test "$ac_signal" != 0 &&
1904      $as_echo "$as_me: caught signal $ac_signal"
1905    $as_echo "$as_me: exit $exit_status"
1906  } >&5
1907  rm -f core *.core core.conftest.* &&
1908    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1909    exit $exit_status
1910' 0
1911for ac_signal in 1 2 13 15; do
1912  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1913done
1914ac_signal=0
1915
1916# confdefs.h avoids OS command line length limits that DEFS can exceed.
1917rm -f -r conftest* confdefs.h
1918
1919$as_echo "/* confdefs.h */" > confdefs.h
1920
1921# Predefined preprocessor variables.
1922
1923cat >>confdefs.h <<_ACEOF
1924#define PACKAGE_NAME "$PACKAGE_NAME"
1925_ACEOF
1926
1927cat >>confdefs.h <<_ACEOF
1928#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1929_ACEOF
1930
1931cat >>confdefs.h <<_ACEOF
1932#define PACKAGE_VERSION "$PACKAGE_VERSION"
1933_ACEOF
1934
1935cat >>confdefs.h <<_ACEOF
1936#define PACKAGE_STRING "$PACKAGE_STRING"
1937_ACEOF
1938
1939cat >>confdefs.h <<_ACEOF
1940#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1941_ACEOF
1942
1943cat >>confdefs.h <<_ACEOF
1944#define PACKAGE_URL "$PACKAGE_URL"
1945_ACEOF
1946
1947
1948# Let the site file select an alternate cache file if it wants to.
1949# Prefer an explicitly selected file to automatically selected ones.
1950ac_site_file1=NONE
1951ac_site_file2=NONE
1952if test -n "$CONFIG_SITE"; then
1953  # We do not want a PATH search for config.site.
1954  case $CONFIG_SITE in #((
1955    -*)  ac_site_file1=./$CONFIG_SITE;;
1956    */*) ac_site_file1=$CONFIG_SITE;;
1957    *)   ac_site_file1=./$CONFIG_SITE;;
1958  esac
1959elif test "x$prefix" != xNONE; then
1960  ac_site_file1=$prefix/share/config.site
1961  ac_site_file2=$prefix/etc/config.site
1962else
1963  ac_site_file1=$ac_default_prefix/share/config.site
1964  ac_site_file2=$ac_default_prefix/etc/config.site
1965fi
1966for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1967do
1968  test "x$ac_site_file" = xNONE && continue
1969  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1970    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1971$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1972    sed 's/^/| /' "$ac_site_file" >&5
1973    . "$ac_site_file" \
1974      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1975$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1976as_fn_error $? "failed to load site script $ac_site_file
1977See \`config.log' for more details" "$LINENO" 5; }
1978  fi
1979done
1980
1981if test -r "$cache_file"; then
1982  # Some versions of bash will fail to source /dev/null (special files
1983  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1984  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1985    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1986$as_echo "$as_me: loading cache $cache_file" >&6;}
1987    case $cache_file in
1988      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1989      *)                      . "./$cache_file";;
1990    esac
1991  fi
1992else
1993  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1994$as_echo "$as_me: creating cache $cache_file" >&6;}
1995  >$cache_file
1996fi
1997
1998# Check that the precious variables saved in the cache have kept the same
1999# value.
2000ac_cache_corrupted=false
2001for ac_var in $ac_precious_vars; do
2002  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2003  eval ac_new_set=\$ac_env_${ac_var}_set
2004  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2005  eval ac_new_val=\$ac_env_${ac_var}_value
2006  case $ac_old_set,$ac_new_set in
2007    set,)
2008      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2009$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2010      ac_cache_corrupted=: ;;
2011    ,set)
2012      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2013$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2014      ac_cache_corrupted=: ;;
2015    ,);;
2016    *)
2017      if test "x$ac_old_val" != "x$ac_new_val"; then
2018	# differences in whitespace do not lead to failure.
2019	ac_old_val_w=`echo x $ac_old_val`
2020	ac_new_val_w=`echo x $ac_new_val`
2021	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2022	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2023$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2024	  ac_cache_corrupted=:
2025	else
2026	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2027$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2028	  eval $ac_var=\$ac_old_val
2029	fi
2030	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2031$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2032	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2033$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2034      fi;;
2035  esac
2036  # Pass precious variables to config.status.
2037  if test "$ac_new_set" = set; then
2038    case $ac_new_val in
2039    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2040    *) ac_arg=$ac_var=$ac_new_val ;;
2041    esac
2042    case " $ac_configure_args " in
2043      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2044      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2045    esac
2046  fi
2047done
2048if $ac_cache_corrupted; then
2049  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2050$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2051  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2052$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2053  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2054fi
2055## -------------------- ##
2056## Main body of script. ##
2057## -------------------- ##
2058
2059ac_ext=c
2060ac_cpp='$CPP $CPPFLAGS'
2061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2063ac_compiler_gnu=$ac_cv_c_compiler_gnu
2064
2065
2066am__api_version='1.11'
2067
2068ac_aux_dir=
2069for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2070  if test -f "$ac_dir/install-sh"; then
2071    ac_aux_dir=$ac_dir
2072    ac_install_sh="$ac_aux_dir/install-sh -c"
2073    break
2074  elif test -f "$ac_dir/install.sh"; then
2075    ac_aux_dir=$ac_dir
2076    ac_install_sh="$ac_aux_dir/install.sh -c"
2077    break
2078  elif test -f "$ac_dir/shtool"; then
2079    ac_aux_dir=$ac_dir
2080    ac_install_sh="$ac_aux_dir/shtool install -c"
2081    break
2082  fi
2083done
2084if test -z "$ac_aux_dir"; then
2085  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2086fi
2087
2088# These three variables are undocumented and unsupported,
2089# and are intended to be withdrawn in a future Autoconf release.
2090# They can cause serious problems if a builder's source tree is in a directory
2091# whose full name contains unusual characters.
2092ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2093ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2094ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2095
2096
2097# Find a good install program.  We prefer a C program (faster),
2098# so one script is as good as another.  But avoid the broken or
2099# incompatible versions:
2100# SysV /etc/install, /usr/sbin/install
2101# SunOS /usr/etc/install
2102# IRIX /sbin/install
2103# AIX /bin/install
2104# AmigaOS /C/install, which installs bootblocks on floppy discs
2105# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2106# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2107# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2108# OS/2's system install, which has a completely different semantic
2109# ./install, which can be erroneously created by make from ./install.sh.
2110# Reject install programs that cannot install multiple files.
2111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2112$as_echo_n "checking for a BSD-compatible install... " >&6; }
2113if test -z "$INSTALL"; then
2114if ${ac_cv_path_install+:} false; then :
2115  $as_echo_n "(cached) " >&6
2116else
2117  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2118for as_dir in $PATH
2119do
2120  IFS=$as_save_IFS
2121  test -z "$as_dir" && as_dir=.
2122    # Account for people who put trailing slashes in PATH elements.
2123case $as_dir/ in #((
2124  ./ | .// | /[cC]/* | \
2125  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2126  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2127  /usr/ucb/* ) ;;
2128  *)
2129    # OSF1 and SCO ODT 3.0 have their own names for install.
2130    # Don't use installbsd from OSF since it installs stuff as root
2131    # by default.
2132    for ac_prog in ginstall scoinst install; do
2133      for ac_exec_ext in '' $ac_executable_extensions; do
2134	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2135	  if test $ac_prog = install &&
2136	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2137	    # AIX install.  It has an incompatible calling convention.
2138	    :
2139	  elif test $ac_prog = install &&
2140	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2141	    # program-specific install script used by HP pwplus--don't use.
2142	    :
2143	  else
2144	    rm -rf conftest.one conftest.two conftest.dir
2145	    echo one > conftest.one
2146	    echo two > conftest.two
2147	    mkdir conftest.dir
2148	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2149	      test -s conftest.one && test -s conftest.two &&
2150	      test -s conftest.dir/conftest.one &&
2151	      test -s conftest.dir/conftest.two
2152	    then
2153	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2154	      break 3
2155	    fi
2156	  fi
2157	fi
2158      done
2159    done
2160    ;;
2161esac
2162
2163  done
2164IFS=$as_save_IFS
2165
2166rm -rf conftest.one conftest.two conftest.dir
2167
2168fi
2169  if test "${ac_cv_path_install+set}" = set; then
2170    INSTALL=$ac_cv_path_install
2171  else
2172    # As a last resort, use the slow shell script.  Don't cache a
2173    # value for INSTALL within a source directory, because that will
2174    # break other packages using the cache if that directory is
2175    # removed, or if the value is a relative name.
2176    INSTALL=$ac_install_sh
2177  fi
2178fi
2179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2180$as_echo "$INSTALL" >&6; }
2181
2182# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2183# It thinks the first close brace ends the variable substitution.
2184test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2185
2186test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2187
2188test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2189
2190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2191$as_echo_n "checking whether build environment is sane... " >&6; }
2192# Just in case
2193sleep 1
2194echo timestamp > conftest.file
2195# Reject unsafe characters in $srcdir or the absolute working directory
2196# name.  Accept space and tab only in the latter.
2197am_lf='
2198'
2199case `pwd` in
2200  *[\\\"\#\$\&\'\`$am_lf]*)
2201    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2202esac
2203case $srcdir in
2204  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2205    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2206esac
2207
2208# Do `set' in a subshell so we don't clobber the current shell's
2209# arguments.  Must try -L first in case configure is actually a
2210# symlink; some systems play weird games with the mod time of symlinks
2211# (eg FreeBSD returns the mod time of the symlink's containing
2212# directory).
2213if (
2214   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2215   if test "$*" = "X"; then
2216      # -L didn't work.
2217      set X `ls -t "$srcdir/configure" conftest.file`
2218   fi
2219   rm -f conftest.file
2220   if test "$*" != "X $srcdir/configure conftest.file" \
2221      && test "$*" != "X conftest.file $srcdir/configure"; then
2222
2223      # If neither matched, then we have a broken ls.  This can happen
2224      # if, for instance, CONFIG_SHELL is bash and it inherits a
2225      # broken ls alias from the environment.  This has actually
2226      # happened.  Such a system could not be considered "sane".
2227      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2228alias in your environment" "$LINENO" 5
2229   fi
2230
2231   test "$2" = conftest.file
2232   )
2233then
2234   # Ok.
2235   :
2236else
2237   as_fn_error $? "newly created file is older than distributed files!
2238Check your system clock" "$LINENO" 5
2239fi
2240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2241$as_echo "yes" >&6; }
2242test "$program_prefix" != NONE &&
2243  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2244# Use a double $ so make ignores it.
2245test "$program_suffix" != NONE &&
2246  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2247# Double any \ or $.
2248# By default was `s,x,x', remove it if useless.
2249ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2250program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2251
2252# expand $ac_aux_dir to an absolute path
2253am_aux_dir=`cd $ac_aux_dir && pwd`
2254
2255if test x"${MISSING+set}" != xset; then
2256  case $am_aux_dir in
2257  *\ * | *\	*)
2258    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2259  *)
2260    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2261  esac
2262fi
2263# Use eval to expand $SHELL
2264if eval "$MISSING --run true"; then
2265  am_missing_run="$MISSING --run "
2266else
2267  am_missing_run=
2268  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2269$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2270fi
2271
2272if test x"${install_sh}" != xset; then
2273  case $am_aux_dir in
2274  *\ * | *\	*)
2275    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2276  *)
2277    install_sh="\${SHELL} $am_aux_dir/install-sh"
2278  esac
2279fi
2280
2281# Installed binaries are usually stripped using `strip' when the user
2282# run `make install-strip'.  However `strip' might not be the right
2283# tool to use in cross-compilation environments, therefore Automake
2284# will honor the `STRIP' environment variable to overrule this program.
2285if test "$cross_compiling" != no; then
2286  if test -n "$ac_tool_prefix"; then
2287  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2288set dummy ${ac_tool_prefix}strip; ac_word=$2
2289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2290$as_echo_n "checking for $ac_word... " >&6; }
2291if ${ac_cv_prog_STRIP+:} false; then :
2292  $as_echo_n "(cached) " >&6
2293else
2294  if test -n "$STRIP"; then
2295  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2296else
2297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298for as_dir in $PATH
2299do
2300  IFS=$as_save_IFS
2301  test -z "$as_dir" && as_dir=.
2302    for ac_exec_ext in '' $ac_executable_extensions; do
2303  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2304    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2305    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2306    break 2
2307  fi
2308done
2309  done
2310IFS=$as_save_IFS
2311
2312fi
2313fi
2314STRIP=$ac_cv_prog_STRIP
2315if test -n "$STRIP"; then
2316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2317$as_echo "$STRIP" >&6; }
2318else
2319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2320$as_echo "no" >&6; }
2321fi
2322
2323
2324fi
2325if test -z "$ac_cv_prog_STRIP"; then
2326  ac_ct_STRIP=$STRIP
2327  # Extract the first word of "strip", so it can be a program name with args.
2328set dummy strip; ac_word=$2
2329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2330$as_echo_n "checking for $ac_word... " >&6; }
2331if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2332  $as_echo_n "(cached) " >&6
2333else
2334  if test -n "$ac_ct_STRIP"; then
2335  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2336else
2337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338for as_dir in $PATH
2339do
2340  IFS=$as_save_IFS
2341  test -z "$as_dir" && as_dir=.
2342    for ac_exec_ext in '' $ac_executable_extensions; do
2343  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2344    ac_cv_prog_ac_ct_STRIP="strip"
2345    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2346    break 2
2347  fi
2348done
2349  done
2350IFS=$as_save_IFS
2351
2352fi
2353fi
2354ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2355if test -n "$ac_ct_STRIP"; then
2356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2357$as_echo "$ac_ct_STRIP" >&6; }
2358else
2359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2360$as_echo "no" >&6; }
2361fi
2362
2363  if test "x$ac_ct_STRIP" = x; then
2364    STRIP=":"
2365  else
2366    case $cross_compiling:$ac_tool_warned in
2367yes:)
2368{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2369$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2370ac_tool_warned=yes ;;
2371esac
2372    STRIP=$ac_ct_STRIP
2373  fi
2374else
2375  STRIP="$ac_cv_prog_STRIP"
2376fi
2377
2378fi
2379INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2380
2381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2382$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2383if test -z "$MKDIR_P"; then
2384  if ${ac_cv_path_mkdir+:} false; then :
2385  $as_echo_n "(cached) " >&6
2386else
2387  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2389do
2390  IFS=$as_save_IFS
2391  test -z "$as_dir" && as_dir=.
2392    for ac_prog in mkdir gmkdir; do
2393	 for ac_exec_ext in '' $ac_executable_extensions; do
2394	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2395	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2396	     'mkdir (GNU coreutils) '* | \
2397	     'mkdir (coreutils) '* | \
2398	     'mkdir (fileutils) '4.1*)
2399	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2400	       break 3;;
2401	   esac
2402	 done
2403       done
2404  done
2405IFS=$as_save_IFS
2406
2407fi
2408
2409  test -d ./--version && rmdir ./--version
2410  if test "${ac_cv_path_mkdir+set}" = set; then
2411    MKDIR_P="$ac_cv_path_mkdir -p"
2412  else
2413    # As a last resort, use the slow shell script.  Don't cache a
2414    # value for MKDIR_P within a source directory, because that will
2415    # break other packages using the cache if that directory is
2416    # removed, or if the value is a relative name.
2417    MKDIR_P="$ac_install_sh -d"
2418  fi
2419fi
2420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2421$as_echo "$MKDIR_P" >&6; }
2422
2423mkdir_p="$MKDIR_P"
2424case $mkdir_p in
2425  [\\/$]* | ?:[\\/]*) ;;
2426  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2427esac
2428
2429for ac_prog in gawk mawk nawk awk
2430do
2431  # Extract the first word of "$ac_prog", so it can be a program name with args.
2432set dummy $ac_prog; ac_word=$2
2433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2434$as_echo_n "checking for $ac_word... " >&6; }
2435if ${ac_cv_prog_AWK+:} false; then :
2436  $as_echo_n "(cached) " >&6
2437else
2438  if test -n "$AWK"; then
2439  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2440else
2441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442for as_dir in $PATH
2443do
2444  IFS=$as_save_IFS
2445  test -z "$as_dir" && as_dir=.
2446    for ac_exec_ext in '' $ac_executable_extensions; do
2447  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2448    ac_cv_prog_AWK="$ac_prog"
2449    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2450    break 2
2451  fi
2452done
2453  done
2454IFS=$as_save_IFS
2455
2456fi
2457fi
2458AWK=$ac_cv_prog_AWK
2459if test -n "$AWK"; then
2460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2461$as_echo "$AWK" >&6; }
2462else
2463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2464$as_echo "no" >&6; }
2465fi
2466
2467
2468  test -n "$AWK" && break
2469done
2470
2471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2472$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2473set x ${MAKE-make}
2474ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2475if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2476  $as_echo_n "(cached) " >&6
2477else
2478  cat >conftest.make <<\_ACEOF
2479SHELL = /bin/sh
2480all:
2481	@echo '@@@%%%=$(MAKE)=@@@%%%'
2482_ACEOF
2483# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2484case `${MAKE-make} -f conftest.make 2>/dev/null` in
2485  *@@@%%%=?*=@@@%%%*)
2486    eval ac_cv_prog_make_${ac_make}_set=yes;;
2487  *)
2488    eval ac_cv_prog_make_${ac_make}_set=no;;
2489esac
2490rm -f conftest.make
2491fi
2492if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2494$as_echo "yes" >&6; }
2495  SET_MAKE=
2496else
2497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2498$as_echo "no" >&6; }
2499  SET_MAKE="MAKE=${MAKE-make}"
2500fi
2501
2502rm -rf .tst 2>/dev/null
2503mkdir .tst 2>/dev/null
2504if test -d .tst; then
2505  am__leading_dot=.
2506else
2507  am__leading_dot=_
2508fi
2509rmdir .tst 2>/dev/null
2510
2511if test "`cd $srcdir && pwd`" != "`pwd`"; then
2512  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2513  # is not polluted with repeated "-I."
2514  am__isrc=' -I$(srcdir)'
2515  # test to see if srcdir already configured
2516  if test -f $srcdir/config.status; then
2517    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2518  fi
2519fi
2520
2521# test whether we have cygpath
2522if test -z "$CYGPATH_W"; then
2523  if (cygpath --version) >/dev/null 2>/dev/null; then
2524    CYGPATH_W='cygpath -w'
2525  else
2526    CYGPATH_W=echo
2527  fi
2528fi
2529
2530
2531# Define the identity of the package.
2532 PACKAGE='xlsatoms'
2533 VERSION='1.1.1'
2534
2535
2536cat >>confdefs.h <<_ACEOF
2537#define PACKAGE "$PACKAGE"
2538_ACEOF
2539
2540
2541cat >>confdefs.h <<_ACEOF
2542#define VERSION "$VERSION"
2543_ACEOF
2544
2545# Some tools Automake needs.
2546
2547ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2548
2549
2550AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2551
2552
2553AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2554
2555
2556AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2557
2558
2559MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2560
2561# We need awk for the "check" target.  The system "awk" is bad on
2562# some platforms.
2563# Always define AMTAR for backward compatibility.
2564
2565AMTAR=${AMTAR-"${am_missing_run}tar"}
2566
2567am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2568
2569
2570
2571
2572
2573
2574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2575$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2576    # Check whether --enable-maintainer-mode was given.
2577if test "${enable_maintainer_mode+set}" = set; then :
2578  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2579else
2580  USE_MAINTAINER_MODE=no
2581fi
2582
2583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2584$as_echo "$USE_MAINTAINER_MODE" >&6; }
2585   if test $USE_MAINTAINER_MODE = yes; then
2586  MAINTAINER_MODE_TRUE=
2587  MAINTAINER_MODE_FALSE='#'
2588else
2589  MAINTAINER_MODE_TRUE='#'
2590  MAINTAINER_MODE_FALSE=
2591fi
2592
2593  MAINT=$MAINTAINER_MODE_TRUE
2594
2595
2596
2597# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610ac_config_headers="$ac_config_headers config.h"
2611
2612
2613
2614DEPDIR="${am__leading_dot}deps"
2615
2616ac_config_commands="$ac_config_commands depfiles"
2617
2618
2619am_make=${MAKE-make}
2620cat > confinc << 'END'
2621am__doit:
2622	@echo this is the am__doit target
2623.PHONY: am__doit
2624END
2625# If we don't find an include directive, just comment out the code.
2626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2627$as_echo_n "checking for style of include used by $am_make... " >&6; }
2628am__include="#"
2629am__quote=
2630_am_result=none
2631# First try GNU make style include.
2632echo "include confinc" > confmf
2633# Ignore all kinds of additional output from `make'.
2634case `$am_make -s -f confmf 2> /dev/null` in #(
2635*the\ am__doit\ target*)
2636  am__include=include
2637  am__quote=
2638  _am_result=GNU
2639  ;;
2640esac
2641# Now try BSD make style include.
2642if test "$am__include" = "#"; then
2643   echo '.include "confinc"' > confmf
2644   case `$am_make -s -f confmf 2> /dev/null` in #(
2645   *the\ am__doit\ target*)
2646     am__include=.include
2647     am__quote="\""
2648     _am_result=BSD
2649     ;;
2650   esac
2651fi
2652
2653
2654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2655$as_echo "$_am_result" >&6; }
2656rm -f confinc confmf
2657
2658# Check whether --enable-dependency-tracking was given.
2659if test "${enable_dependency_tracking+set}" = set; then :
2660  enableval=$enable_dependency_tracking;
2661fi
2662
2663if test "x$enable_dependency_tracking" != xno; then
2664  am_depcomp="$ac_aux_dir/depcomp"
2665  AMDEPBACKSLASH='\'
2666  am__nodep='_no'
2667fi
2668 if test "x$enable_dependency_tracking" != xno; then
2669  AMDEP_TRUE=
2670  AMDEP_FALSE='#'
2671else
2672  AMDEP_TRUE='#'
2673  AMDEP_FALSE=
2674fi
2675
2676
2677ac_ext=c
2678ac_cpp='$CPP $CPPFLAGS'
2679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2681ac_compiler_gnu=$ac_cv_c_compiler_gnu
2682if test -n "$ac_tool_prefix"; then
2683  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2684set dummy ${ac_tool_prefix}gcc; ac_word=$2
2685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2686$as_echo_n "checking for $ac_word... " >&6; }
2687if ${ac_cv_prog_CC+:} false; then :
2688  $as_echo_n "(cached) " >&6
2689else
2690  if test -n "$CC"; then
2691  ac_cv_prog_CC="$CC" # Let the user override the test.
2692else
2693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694for as_dir in $PATH
2695do
2696  IFS=$as_save_IFS
2697  test -z "$as_dir" && as_dir=.
2698    for ac_exec_ext in '' $ac_executable_extensions; do
2699  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2700    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2701    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2702    break 2
2703  fi
2704done
2705  done
2706IFS=$as_save_IFS
2707
2708fi
2709fi
2710CC=$ac_cv_prog_CC
2711if test -n "$CC"; then
2712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2713$as_echo "$CC" >&6; }
2714else
2715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2716$as_echo "no" >&6; }
2717fi
2718
2719
2720fi
2721if test -z "$ac_cv_prog_CC"; then
2722  ac_ct_CC=$CC
2723  # Extract the first word of "gcc", so it can be a program name with args.
2724set dummy gcc; ac_word=$2
2725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2726$as_echo_n "checking for $ac_word... " >&6; }
2727if ${ac_cv_prog_ac_ct_CC+:} false; then :
2728  $as_echo_n "(cached) " >&6
2729else
2730  if test -n "$ac_ct_CC"; then
2731  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2732else
2733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2734for as_dir in $PATH
2735do
2736  IFS=$as_save_IFS
2737  test -z "$as_dir" && as_dir=.
2738    for ac_exec_ext in '' $ac_executable_extensions; do
2739  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2740    ac_cv_prog_ac_ct_CC="gcc"
2741    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2742    break 2
2743  fi
2744done
2745  done
2746IFS=$as_save_IFS
2747
2748fi
2749fi
2750ac_ct_CC=$ac_cv_prog_ac_ct_CC
2751if test -n "$ac_ct_CC"; then
2752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2753$as_echo "$ac_ct_CC" >&6; }
2754else
2755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2756$as_echo "no" >&6; }
2757fi
2758
2759  if test "x$ac_ct_CC" = x; then
2760    CC=""
2761  else
2762    case $cross_compiling:$ac_tool_warned in
2763yes:)
2764{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2765$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2766ac_tool_warned=yes ;;
2767esac
2768    CC=$ac_ct_CC
2769  fi
2770else
2771  CC="$ac_cv_prog_CC"
2772fi
2773
2774if test -z "$CC"; then
2775          if test -n "$ac_tool_prefix"; then
2776    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2777set dummy ${ac_tool_prefix}cc; ac_word=$2
2778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2779$as_echo_n "checking for $ac_word... " >&6; }
2780if ${ac_cv_prog_CC+:} false; then :
2781  $as_echo_n "(cached) " >&6
2782else
2783  if test -n "$CC"; then
2784  ac_cv_prog_CC="$CC" # Let the user override the test.
2785else
2786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787for as_dir in $PATH
2788do
2789  IFS=$as_save_IFS
2790  test -z "$as_dir" && as_dir=.
2791    for ac_exec_ext in '' $ac_executable_extensions; do
2792  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2793    ac_cv_prog_CC="${ac_tool_prefix}cc"
2794    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2795    break 2
2796  fi
2797done
2798  done
2799IFS=$as_save_IFS
2800
2801fi
2802fi
2803CC=$ac_cv_prog_CC
2804if test -n "$CC"; then
2805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2806$as_echo "$CC" >&6; }
2807else
2808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2809$as_echo "no" >&6; }
2810fi
2811
2812
2813  fi
2814fi
2815if test -z "$CC"; then
2816  # Extract the first word of "cc", so it can be a program name with args.
2817set dummy cc; ac_word=$2
2818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2819$as_echo_n "checking for $ac_word... " >&6; }
2820if ${ac_cv_prog_CC+:} false; then :
2821  $as_echo_n "(cached) " >&6
2822else
2823  if test -n "$CC"; then
2824  ac_cv_prog_CC="$CC" # Let the user override the test.
2825else
2826  ac_prog_rejected=no
2827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828for as_dir in $PATH
2829do
2830  IFS=$as_save_IFS
2831  test -z "$as_dir" && as_dir=.
2832    for ac_exec_ext in '' $ac_executable_extensions; do
2833  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2834    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2835       ac_prog_rejected=yes
2836       continue
2837     fi
2838    ac_cv_prog_CC="cc"
2839    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2840    break 2
2841  fi
2842done
2843  done
2844IFS=$as_save_IFS
2845
2846if test $ac_prog_rejected = yes; then
2847  # We found a bogon in the path, so make sure we never use it.
2848  set dummy $ac_cv_prog_CC
2849  shift
2850  if test $# != 0; then
2851    # We chose a different compiler from the bogus one.
2852    # However, it has the same basename, so the bogon will be chosen
2853    # first if we set CC to just the basename; use the full file name.
2854    shift
2855    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2856  fi
2857fi
2858fi
2859fi
2860CC=$ac_cv_prog_CC
2861if test -n "$CC"; then
2862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2863$as_echo "$CC" >&6; }
2864else
2865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2866$as_echo "no" >&6; }
2867fi
2868
2869
2870fi
2871if test -z "$CC"; then
2872  if test -n "$ac_tool_prefix"; then
2873  for ac_prog in cl.exe
2874  do
2875    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2876set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2878$as_echo_n "checking for $ac_word... " >&6; }
2879if ${ac_cv_prog_CC+:} false; then :
2880  $as_echo_n "(cached) " >&6
2881else
2882  if test -n "$CC"; then
2883  ac_cv_prog_CC="$CC" # Let the user override the test.
2884else
2885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886for as_dir in $PATH
2887do
2888  IFS=$as_save_IFS
2889  test -z "$as_dir" && as_dir=.
2890    for ac_exec_ext in '' $ac_executable_extensions; do
2891  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2892    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2893    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2894    break 2
2895  fi
2896done
2897  done
2898IFS=$as_save_IFS
2899
2900fi
2901fi
2902CC=$ac_cv_prog_CC
2903if test -n "$CC"; then
2904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2905$as_echo "$CC" >&6; }
2906else
2907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2908$as_echo "no" >&6; }
2909fi
2910
2911
2912    test -n "$CC" && break
2913  done
2914fi
2915if test -z "$CC"; then
2916  ac_ct_CC=$CC
2917  for ac_prog in cl.exe
2918do
2919  # Extract the first word of "$ac_prog", so it can be a program name with args.
2920set dummy $ac_prog; ac_word=$2
2921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2922$as_echo_n "checking for $ac_word... " >&6; }
2923if ${ac_cv_prog_ac_ct_CC+:} false; then :
2924  $as_echo_n "(cached) " >&6
2925else
2926  if test -n "$ac_ct_CC"; then
2927  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2928else
2929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930for as_dir in $PATH
2931do
2932  IFS=$as_save_IFS
2933  test -z "$as_dir" && as_dir=.
2934    for ac_exec_ext in '' $ac_executable_extensions; do
2935  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2936    ac_cv_prog_ac_ct_CC="$ac_prog"
2937    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2938    break 2
2939  fi
2940done
2941  done
2942IFS=$as_save_IFS
2943
2944fi
2945fi
2946ac_ct_CC=$ac_cv_prog_ac_ct_CC
2947if test -n "$ac_ct_CC"; then
2948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2949$as_echo "$ac_ct_CC" >&6; }
2950else
2951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2952$as_echo "no" >&6; }
2953fi
2954
2955
2956  test -n "$ac_ct_CC" && break
2957done
2958
2959  if test "x$ac_ct_CC" = x; then
2960    CC=""
2961  else
2962    case $cross_compiling:$ac_tool_warned in
2963yes:)
2964{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2965$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2966ac_tool_warned=yes ;;
2967esac
2968    CC=$ac_ct_CC
2969  fi
2970fi
2971
2972fi
2973
2974
2975test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2976$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2977as_fn_error $? "no acceptable C compiler found in \$PATH
2978See \`config.log' for more details" "$LINENO" 5; }
2979
2980# Provide some information about the compiler.
2981$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2982set X $ac_compile
2983ac_compiler=$2
2984for ac_option in --version -v -V -qversion; do
2985  { { ac_try="$ac_compiler $ac_option >&5"
2986case "(($ac_try" in
2987  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988  *) ac_try_echo=$ac_try;;
2989esac
2990eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2991$as_echo "$ac_try_echo"; } >&5
2992  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2993  ac_status=$?
2994  if test -s conftest.err; then
2995    sed '10a\
2996... rest of stderr output deleted ...
2997         10q' conftest.err >conftest.er1
2998    cat conftest.er1 >&5
2999  fi
3000  rm -f conftest.er1 conftest.err
3001  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3002  test $ac_status = 0; }
3003done
3004
3005cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3006/* end confdefs.h.  */
3007
3008int
3009main ()
3010{
3011
3012  ;
3013  return 0;
3014}
3015_ACEOF
3016ac_clean_files_save=$ac_clean_files
3017ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3018# Try to create an executable without -o first, disregard a.out.
3019# It will help us diagnose broken compilers, and finding out an intuition
3020# of exeext.
3021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3022$as_echo_n "checking whether the C compiler works... " >&6; }
3023ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3024
3025# The possible output files:
3026ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3027
3028ac_rmfiles=
3029for ac_file in $ac_files
3030do
3031  case $ac_file in
3032    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3033    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3034  esac
3035done
3036rm -f $ac_rmfiles
3037
3038if { { ac_try="$ac_link_default"
3039case "(($ac_try" in
3040  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041  *) ac_try_echo=$ac_try;;
3042esac
3043eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3044$as_echo "$ac_try_echo"; } >&5
3045  (eval "$ac_link_default") 2>&5
3046  ac_status=$?
3047  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3048  test $ac_status = 0; }; then :
3049  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3050# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3051# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3052# so that the user can short-circuit this test for compilers unknown to
3053# Autoconf.
3054for ac_file in $ac_files ''
3055do
3056  test -f "$ac_file" || continue
3057  case $ac_file in
3058    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3059	;;
3060    [ab].out )
3061	# We found the default executable, but exeext='' is most
3062	# certainly right.
3063	break;;
3064    *.* )
3065	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3066	then :; else
3067	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3068	fi
3069	# We set ac_cv_exeext here because the later test for it is not
3070	# safe: cross compilers may not add the suffix if given an `-o'
3071	# argument, so we may need to know it at that point already.
3072	# Even if this section looks crufty: it has the advantage of
3073	# actually working.
3074	break;;
3075    * )
3076	break;;
3077  esac
3078done
3079test "$ac_cv_exeext" = no && ac_cv_exeext=
3080
3081else
3082  ac_file=''
3083fi
3084if test -z "$ac_file"; then :
3085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086$as_echo "no" >&6; }
3087$as_echo "$as_me: failed program was:" >&5
3088sed 's/^/| /' conftest.$ac_ext >&5
3089
3090{ { $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 77 "C compiler cannot create executables
3093See \`config.log' for more details" "$LINENO" 5; }
3094else
3095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3096$as_echo "yes" >&6; }
3097fi
3098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3099$as_echo_n "checking for C compiler default output file name... " >&6; }
3100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3101$as_echo "$ac_file" >&6; }
3102ac_exeext=$ac_cv_exeext
3103
3104rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3105ac_clean_files=$ac_clean_files_save
3106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3107$as_echo_n "checking for suffix of executables... " >&6; }
3108if { { ac_try="$ac_link"
3109case "(($ac_try" in
3110  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111  *) ac_try_echo=$ac_try;;
3112esac
3113eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3114$as_echo "$ac_try_echo"; } >&5
3115  (eval "$ac_link") 2>&5
3116  ac_status=$?
3117  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3118  test $ac_status = 0; }; then :
3119  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3120# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3121# work properly (i.e., refer to `conftest.exe'), while it won't with
3122# `rm'.
3123for ac_file in conftest.exe conftest conftest.*; do
3124  test -f "$ac_file" || continue
3125  case $ac_file in
3126    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3127    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3128	  break;;
3129    * ) break;;
3130  esac
3131done
3132else
3133  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3134$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3135as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3136See \`config.log' for more details" "$LINENO" 5; }
3137fi
3138rm -f conftest conftest$ac_cv_exeext
3139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3140$as_echo "$ac_cv_exeext" >&6; }
3141
3142rm -f conftest.$ac_ext
3143EXEEXT=$ac_cv_exeext
3144ac_exeext=$EXEEXT
3145cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3146/* end confdefs.h.  */
3147#include <stdio.h>
3148int
3149main ()
3150{
3151FILE *f = fopen ("conftest.out", "w");
3152 return ferror (f) || fclose (f) != 0;
3153
3154  ;
3155  return 0;
3156}
3157_ACEOF
3158ac_clean_files="$ac_clean_files conftest.out"
3159# Check that the compiler produces executables we can run.  If not, either
3160# the compiler is broken, or we cross compile.
3161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3162$as_echo_n "checking whether we are cross compiling... " >&6; }
3163if test "$cross_compiling" != yes; then
3164  { { ac_try="$ac_link"
3165case "(($ac_try" in
3166  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167  *) ac_try_echo=$ac_try;;
3168esac
3169eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3170$as_echo "$ac_try_echo"; } >&5
3171  (eval "$ac_link") 2>&5
3172  ac_status=$?
3173  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3174  test $ac_status = 0; }
3175  if { ac_try='./conftest$ac_cv_exeext'
3176  { { case "(($ac_try" in
3177  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178  *) ac_try_echo=$ac_try;;
3179esac
3180eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3181$as_echo "$ac_try_echo"; } >&5
3182  (eval "$ac_try") 2>&5
3183  ac_status=$?
3184  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3185  test $ac_status = 0; }; }; then
3186    cross_compiling=no
3187  else
3188    if test "$cross_compiling" = maybe; then
3189	cross_compiling=yes
3190    else
3191	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3192$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3193as_fn_error $? "cannot run C compiled programs.
3194If you meant to cross compile, use \`--host'.
3195See \`config.log' for more details" "$LINENO" 5; }
3196    fi
3197  fi
3198fi
3199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3200$as_echo "$cross_compiling" >&6; }
3201
3202rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3203ac_clean_files=$ac_clean_files_save
3204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3205$as_echo_n "checking for suffix of object files... " >&6; }
3206if ${ac_cv_objext+:} false; then :
3207  $as_echo_n "(cached) " >&6
3208else
3209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3210/* end confdefs.h.  */
3211
3212int
3213main ()
3214{
3215
3216  ;
3217  return 0;
3218}
3219_ACEOF
3220rm -f conftest.o conftest.obj
3221if { { ac_try="$ac_compile"
3222case "(($ac_try" in
3223  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224  *) ac_try_echo=$ac_try;;
3225esac
3226eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3227$as_echo "$ac_try_echo"; } >&5
3228  (eval "$ac_compile") 2>&5
3229  ac_status=$?
3230  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3231  test $ac_status = 0; }; then :
3232  for ac_file in conftest.o conftest.obj conftest.*; do
3233  test -f "$ac_file" || continue;
3234  case $ac_file in
3235    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3236    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3237       break;;
3238  esac
3239done
3240else
3241  $as_echo "$as_me: failed program was:" >&5
3242sed 's/^/| /' conftest.$ac_ext >&5
3243
3244{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3245$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3246as_fn_error $? "cannot compute suffix of object files: cannot compile
3247See \`config.log' for more details" "$LINENO" 5; }
3248fi
3249rm -f conftest.$ac_cv_objext conftest.$ac_ext
3250fi
3251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3252$as_echo "$ac_cv_objext" >&6; }
3253OBJEXT=$ac_cv_objext
3254ac_objext=$OBJEXT
3255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3256$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3257if ${ac_cv_c_compiler_gnu+:} false; then :
3258  $as_echo_n "(cached) " >&6
3259else
3260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3261/* end confdefs.h.  */
3262
3263int
3264main ()
3265{
3266#ifndef __GNUC__
3267       choke me
3268#endif
3269
3270  ;
3271  return 0;
3272}
3273_ACEOF
3274if ac_fn_c_try_compile "$LINENO"; then :
3275  ac_compiler_gnu=yes
3276else
3277  ac_compiler_gnu=no
3278fi
3279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3280ac_cv_c_compiler_gnu=$ac_compiler_gnu
3281
3282fi
3283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3284$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3285if test $ac_compiler_gnu = yes; then
3286  GCC=yes
3287else
3288  GCC=
3289fi
3290ac_test_CFLAGS=${CFLAGS+set}
3291ac_save_CFLAGS=$CFLAGS
3292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3293$as_echo_n "checking whether $CC accepts -g... " >&6; }
3294if ${ac_cv_prog_cc_g+:} false; then :
3295  $as_echo_n "(cached) " >&6
3296else
3297  ac_save_c_werror_flag=$ac_c_werror_flag
3298   ac_c_werror_flag=yes
3299   ac_cv_prog_cc_g=no
3300   CFLAGS="-g"
3301   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3302/* end confdefs.h.  */
3303
3304int
3305main ()
3306{
3307
3308  ;
3309  return 0;
3310}
3311_ACEOF
3312if ac_fn_c_try_compile "$LINENO"; then :
3313  ac_cv_prog_cc_g=yes
3314else
3315  CFLAGS=""
3316      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3317/* end confdefs.h.  */
3318
3319int
3320main ()
3321{
3322
3323  ;
3324  return 0;
3325}
3326_ACEOF
3327if ac_fn_c_try_compile "$LINENO"; then :
3328
3329else
3330  ac_c_werror_flag=$ac_save_c_werror_flag
3331	 CFLAGS="-g"
3332	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3333/* end confdefs.h.  */
3334
3335int
3336main ()
3337{
3338
3339  ;
3340  return 0;
3341}
3342_ACEOF
3343if ac_fn_c_try_compile "$LINENO"; then :
3344  ac_cv_prog_cc_g=yes
3345fi
3346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3347fi
3348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3349fi
3350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3351   ac_c_werror_flag=$ac_save_c_werror_flag
3352fi
3353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3354$as_echo "$ac_cv_prog_cc_g" >&6; }
3355if test "$ac_test_CFLAGS" = set; then
3356  CFLAGS=$ac_save_CFLAGS
3357elif test $ac_cv_prog_cc_g = yes; then
3358  if test "$GCC" = yes; then
3359    CFLAGS="-g -O2"
3360  else
3361    CFLAGS="-g"
3362  fi
3363else
3364  if test "$GCC" = yes; then
3365    CFLAGS="-O2"
3366  else
3367    CFLAGS=
3368  fi
3369fi
3370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3371$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3372if ${ac_cv_prog_cc_c89+:} false; then :
3373  $as_echo_n "(cached) " >&6
3374else
3375  ac_cv_prog_cc_c89=no
3376ac_save_CC=$CC
3377cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3378/* end confdefs.h.  */
3379#include <stdarg.h>
3380#include <stdio.h>
3381#include <sys/types.h>
3382#include <sys/stat.h>
3383/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3384struct buf { int x; };
3385FILE * (*rcsopen) (struct buf *, struct stat *, int);
3386static char *e (p, i)
3387     char **p;
3388     int i;
3389{
3390  return p[i];
3391}
3392static char *f (char * (*g) (char **, int), char **p, ...)
3393{
3394  char *s;
3395  va_list v;
3396  va_start (v,p);
3397  s = g (p, va_arg (v,int));
3398  va_end (v);
3399  return s;
3400}
3401
3402/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3403   function prototypes and stuff, but not '\xHH' hex character constants.
3404   These don't provoke an error unfortunately, instead are silently treated
3405   as 'x'.  The following induces an error, until -std is added to get
3406   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3407   array size at least.  It's necessary to write '\x00'==0 to get something
3408   that's true only with -std.  */
3409int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3410
3411/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3412   inside strings and character constants.  */
3413#define FOO(x) 'x'
3414int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3415
3416int test (int i, double x);
3417struct s1 {int (*f) (int a);};
3418struct s2 {int (*f) (double a);};
3419int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3420int argc;
3421char **argv;
3422int
3423main ()
3424{
3425return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3426  ;
3427  return 0;
3428}
3429_ACEOF
3430for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3431	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3432do
3433  CC="$ac_save_CC $ac_arg"
3434  if ac_fn_c_try_compile "$LINENO"; then :
3435  ac_cv_prog_cc_c89=$ac_arg
3436fi
3437rm -f core conftest.err conftest.$ac_objext
3438  test "x$ac_cv_prog_cc_c89" != "xno" && break
3439done
3440rm -f conftest.$ac_ext
3441CC=$ac_save_CC
3442
3443fi
3444# AC_CACHE_VAL
3445case "x$ac_cv_prog_cc_c89" in
3446  x)
3447    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3448$as_echo "none needed" >&6; } ;;
3449  xno)
3450    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3451$as_echo "unsupported" >&6; } ;;
3452  *)
3453    CC="$CC $ac_cv_prog_cc_c89"
3454    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3455$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3456esac
3457if test "x$ac_cv_prog_cc_c89" != xno; then :
3458
3459fi
3460
3461ac_ext=c
3462ac_cpp='$CPP $CPPFLAGS'
3463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3465ac_compiler_gnu=$ac_cv_c_compiler_gnu
3466
3467depcc="$CC"   am_compiler_list=
3468
3469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3470$as_echo_n "checking dependency style of $depcc... " >&6; }
3471if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3472  $as_echo_n "(cached) " >&6
3473else
3474  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3475  # We make a subdir and do the tests there.  Otherwise we can end up
3476  # making bogus files that we don't know about and never remove.  For
3477  # instance it was reported that on HP-UX the gcc test will end up
3478  # making a dummy file named `D' -- because `-MD' means `put the output
3479  # in D'.
3480  rm -rf conftest.dir
3481  mkdir conftest.dir
3482  # Copy depcomp to subdir because otherwise we won't find it if we're
3483  # using a relative directory.
3484  cp "$am_depcomp" conftest.dir
3485  cd conftest.dir
3486  # We will build objects and dependencies in a subdirectory because
3487  # it helps to detect inapplicable dependency modes.  For instance
3488  # both Tru64's cc and ICC support -MD to output dependencies as a
3489  # side effect of compilation, but ICC will put the dependencies in
3490  # the current directory while Tru64 will put them in the object
3491  # directory.
3492  mkdir sub
3493
3494  am_cv_CC_dependencies_compiler_type=none
3495  if test "$am_compiler_list" = ""; then
3496     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3497  fi
3498  am__universal=false
3499  case " $depcc " in #(
3500     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3501     esac
3502
3503  for depmode in $am_compiler_list; do
3504    # Setup a source with many dependencies, because some compilers
3505    # like to wrap large dependency lists on column 80 (with \), and
3506    # we should not choose a depcomp mode which is confused by this.
3507    #
3508    # We need to recreate these files for each test, as the compiler may
3509    # overwrite some of them when testing with obscure command lines.
3510    # This happens at least with the AIX C compiler.
3511    : > sub/conftest.c
3512    for i in 1 2 3 4 5 6; do
3513      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3514      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3515      # Solaris 8's {/usr,}/bin/sh.
3516      touch sub/conftst$i.h
3517    done
3518    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3519
3520    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3521    # mode.  It turns out that the SunPro C++ compiler does not properly
3522    # handle `-M -o', and we need to detect this.  Also, some Intel
3523    # versions had trouble with output in subdirs
3524    am__obj=sub/conftest.${OBJEXT-o}
3525    am__minus_obj="-o $am__obj"
3526    case $depmode in
3527    gcc)
3528      # This depmode causes a compiler race in universal mode.
3529      test "$am__universal" = false || continue
3530      ;;
3531    nosideeffect)
3532      # after this tag, mechanisms are not by side-effect, so they'll
3533      # only be used when explicitly requested
3534      if test "x$enable_dependency_tracking" = xyes; then
3535	continue
3536      else
3537	break
3538      fi
3539      ;;
3540    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3541      # This compiler won't grok `-c -o', but also, the minuso test has
3542      # not run yet.  These depmodes are late enough in the game, and
3543      # so weak that their functioning should not be impacted.
3544      am__obj=conftest.${OBJEXT-o}
3545      am__minus_obj=
3546      ;;
3547    none) break ;;
3548    esac
3549    if depmode=$depmode \
3550       source=sub/conftest.c object=$am__obj \
3551       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3552       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3553         >/dev/null 2>conftest.err &&
3554       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3555       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3556       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3557       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3558      # icc doesn't choke on unknown options, it will just issue warnings
3559      # or remarks (even with -Werror).  So we grep stderr for any message
3560      # that says an option was ignored or not supported.
3561      # When given -MP, icc 7.0 and 7.1 complain thusly:
3562      #   icc: Command line warning: ignoring option '-M'; no argument required
3563      # The diagnosis changed in icc 8.0:
3564      #   icc: Command line remark: option '-MP' not supported
3565      if (grep 'ignoring option' conftest.err ||
3566          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3567        am_cv_CC_dependencies_compiler_type=$depmode
3568        break
3569      fi
3570    fi
3571  done
3572
3573  cd ..
3574  rm -rf conftest.dir
3575else
3576  am_cv_CC_dependencies_compiler_type=none
3577fi
3578
3579fi
3580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3581$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3582CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3583
3584 if
3585  test "x$enable_dependency_tracking" != xno \
3586  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3587  am__fastdepCC_TRUE=
3588  am__fastdepCC_FALSE='#'
3589else
3590  am__fastdepCC_TRUE='#'
3591  am__fastdepCC_FALSE=
3592fi
3593
3594
3595   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3596$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3597if ${ac_cv_prog_cc_c99+:} false; then :
3598  $as_echo_n "(cached) " >&6
3599else
3600  ac_cv_prog_cc_c99=no
3601ac_save_CC=$CC
3602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3603/* end confdefs.h.  */
3604#include <stdarg.h>
3605#include <stdbool.h>
3606#include <stdlib.h>
3607#include <wchar.h>
3608#include <stdio.h>
3609
3610// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3611#define debug(...) fprintf (stderr, __VA_ARGS__)
3612#define showlist(...) puts (#__VA_ARGS__)
3613#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3614static void
3615test_varargs_macros (void)
3616{
3617  int x = 1234;
3618  int y = 5678;
3619  debug ("Flag");
3620  debug ("X = %d\n", x);
3621  showlist (The first, second, and third items.);
3622  report (x>y, "x is %d but y is %d", x, y);
3623}
3624
3625// Check long long types.
3626#define BIG64 18446744073709551615ull
3627#define BIG32 4294967295ul
3628#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3629#if !BIG_OK
3630  your preprocessor is broken;
3631#endif
3632#if BIG_OK
3633#else
3634  your preprocessor is broken;
3635#endif
3636static long long int bignum = -9223372036854775807LL;
3637static unsigned long long int ubignum = BIG64;
3638
3639struct incomplete_array
3640{
3641  int datasize;
3642  double data[];
3643};
3644
3645struct named_init {
3646  int number;
3647  const wchar_t *name;
3648  double average;
3649};
3650
3651typedef const char *ccp;
3652
3653static inline int
3654test_restrict (ccp restrict text)
3655{
3656  // See if C++-style comments work.
3657  // Iterate through items via the restricted pointer.
3658  // Also check for declarations in for loops.
3659  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3660    continue;
3661  return 0;
3662}
3663
3664// Check varargs and va_copy.
3665static void
3666test_varargs (const char *format, ...)
3667{
3668  va_list args;
3669  va_start (args, format);
3670  va_list args_copy;
3671  va_copy (args_copy, args);
3672
3673  const char *str;
3674  int number;
3675  float fnumber;
3676
3677  while (*format)
3678    {
3679      switch (*format++)
3680	{
3681	case 's': // string
3682	  str = va_arg (args_copy, const char *);
3683	  break;
3684	case 'd': // int
3685	  number = va_arg (args_copy, int);
3686	  break;
3687	case 'f': // float
3688	  fnumber = va_arg (args_copy, double);
3689	  break;
3690	default:
3691	  break;
3692	}
3693    }
3694  va_end (args_copy);
3695  va_end (args);
3696}
3697
3698int
3699main ()
3700{
3701
3702  // Check bool.
3703  _Bool success = false;
3704
3705  // Check restrict.
3706  if (test_restrict ("String literal") == 0)
3707    success = true;
3708  char *restrict newvar = "Another string";
3709
3710  // Check varargs.
3711  test_varargs ("s, d' f .", "string", 65, 34.234);
3712  test_varargs_macros ();
3713
3714  // Check flexible array members.
3715  struct incomplete_array *ia =
3716    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3717  ia->datasize = 10;
3718  for (int i = 0; i < ia->datasize; ++i)
3719    ia->data[i] = i * 1.234;
3720
3721  // Check named initializers.
3722  struct named_init ni = {
3723    .number = 34,
3724    .name = L"Test wide string",
3725    .average = 543.34343,
3726  };
3727
3728  ni.number = 58;
3729
3730  int dynamic_array[ni.number];
3731  dynamic_array[ni.number - 1] = 543;
3732
3733  // work around unused variable warnings
3734  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3735	  || dynamic_array[ni.number - 1] != 543);
3736
3737  ;
3738  return 0;
3739}
3740_ACEOF
3741for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3742do
3743  CC="$ac_save_CC $ac_arg"
3744  if ac_fn_c_try_compile "$LINENO"; then :
3745  ac_cv_prog_cc_c99=$ac_arg
3746fi
3747rm -f core conftest.err conftest.$ac_objext
3748  test "x$ac_cv_prog_cc_c99" != "xno" && break
3749done
3750rm -f conftest.$ac_ext
3751CC=$ac_save_CC
3752
3753fi
3754# AC_CACHE_VAL
3755case "x$ac_cv_prog_cc_c99" in
3756  x)
3757    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3758$as_echo "none needed" >&6; } ;;
3759  xno)
3760    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3761$as_echo "unsupported" >&6; } ;;
3762  *)
3763    CC="$CC $ac_cv_prog_cc_c99"
3764    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3765$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3766esac
3767if test "x$ac_cv_prog_cc_c99" != xno; then :
3768
3769fi
3770
3771
3772
3773ac_ext=c
3774ac_cpp='$CPP $CPPFLAGS'
3775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3777ac_compiler_gnu=$ac_cv_c_compiler_gnu
3778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3779$as_echo_n "checking how to run the C preprocessor... " >&6; }
3780# On Suns, sometimes $CPP names a directory.
3781if test -n "$CPP" && test -d "$CPP"; then
3782  CPP=
3783fi
3784if test -z "$CPP"; then
3785  if ${ac_cv_prog_CPP+:} false; then :
3786  $as_echo_n "(cached) " >&6
3787else
3788      # Double quotes because CPP needs to be expanded
3789    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3790    do
3791      ac_preproc_ok=false
3792for ac_c_preproc_warn_flag in '' yes
3793do
3794  # Use a header file that comes with gcc, so configuring glibc
3795  # with a fresh cross-compiler works.
3796  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3797  # <limits.h> exists even on freestanding compilers.
3798  # On the NeXT, cc -E runs the code through the compiler's parser,
3799  # not just through cpp. "Syntax error" is here to catch this case.
3800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801/* end confdefs.h.  */
3802#ifdef __STDC__
3803# include <limits.h>
3804#else
3805# include <assert.h>
3806#endif
3807		     Syntax error
3808_ACEOF
3809if ac_fn_c_try_cpp "$LINENO"; then :
3810
3811else
3812  # Broken: fails on valid input.
3813continue
3814fi
3815rm -f conftest.err conftest.i conftest.$ac_ext
3816
3817  # OK, works on sane cases.  Now check whether nonexistent headers
3818  # can be detected and how.
3819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820/* end confdefs.h.  */
3821#include <ac_nonexistent.h>
3822_ACEOF
3823if ac_fn_c_try_cpp "$LINENO"; then :
3824  # Broken: success on invalid input.
3825continue
3826else
3827  # Passes both tests.
3828ac_preproc_ok=:
3829break
3830fi
3831rm -f conftest.err conftest.i conftest.$ac_ext
3832
3833done
3834# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3835rm -f conftest.i conftest.err conftest.$ac_ext
3836if $ac_preproc_ok; then :
3837  break
3838fi
3839
3840    done
3841    ac_cv_prog_CPP=$CPP
3842
3843fi
3844  CPP=$ac_cv_prog_CPP
3845else
3846  ac_cv_prog_CPP=$CPP
3847fi
3848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3849$as_echo "$CPP" >&6; }
3850ac_preproc_ok=false
3851for ac_c_preproc_warn_flag in '' yes
3852do
3853  # Use a header file that comes with gcc, so configuring glibc
3854  # with a fresh cross-compiler works.
3855  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3856  # <limits.h> exists even on freestanding compilers.
3857  # On the NeXT, cc -E runs the code through the compiler's parser,
3858  # not just through cpp. "Syntax error" is here to catch this case.
3859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860/* end confdefs.h.  */
3861#ifdef __STDC__
3862# include <limits.h>
3863#else
3864# include <assert.h>
3865#endif
3866		     Syntax error
3867_ACEOF
3868if ac_fn_c_try_cpp "$LINENO"; then :
3869
3870else
3871  # Broken: fails on valid input.
3872continue
3873fi
3874rm -f conftest.err conftest.i conftest.$ac_ext
3875
3876  # OK, works on sane cases.  Now check whether nonexistent headers
3877  # can be detected and how.
3878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879/* end confdefs.h.  */
3880#include <ac_nonexistent.h>
3881_ACEOF
3882if ac_fn_c_try_cpp "$LINENO"; then :
3883  # Broken: success on invalid input.
3884continue
3885else
3886  # Passes both tests.
3887ac_preproc_ok=:
3888break
3889fi
3890rm -f conftest.err conftest.i conftest.$ac_ext
3891
3892done
3893# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3894rm -f conftest.i conftest.err conftest.$ac_ext
3895if $ac_preproc_ok; then :
3896
3897else
3898  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3899$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3900as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3901See \`config.log' for more details" "$LINENO" 5; }
3902fi
3903
3904ac_ext=c
3905ac_cpp='$CPP $CPPFLAGS'
3906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3908ac_compiler_gnu=$ac_cv_c_compiler_gnu
3909
3910
3911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3912$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3913if ${ac_cv_path_GREP+:} false; then :
3914  $as_echo_n "(cached) " >&6
3915else
3916  if test -z "$GREP"; then
3917  ac_path_GREP_found=false
3918  # Loop through the user's path and test for each of PROGNAME-LIST
3919  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3921do
3922  IFS=$as_save_IFS
3923  test -z "$as_dir" && as_dir=.
3924    for ac_prog in grep ggrep; do
3925    for ac_exec_ext in '' $ac_executable_extensions; do
3926      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3927      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3928# Check for GNU ac_path_GREP and select it if it is found.
3929  # Check for GNU $ac_path_GREP
3930case `"$ac_path_GREP" --version 2>&1` in
3931*GNU*)
3932  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3933*)
3934  ac_count=0
3935  $as_echo_n 0123456789 >"conftest.in"
3936  while :
3937  do
3938    cat "conftest.in" "conftest.in" >"conftest.tmp"
3939    mv "conftest.tmp" "conftest.in"
3940    cp "conftest.in" "conftest.nl"
3941    $as_echo 'GREP' >> "conftest.nl"
3942    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3943    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3944    as_fn_arith $ac_count + 1 && ac_count=$as_val
3945    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3946      # Best one so far, save it but keep looking for a better one
3947      ac_cv_path_GREP="$ac_path_GREP"
3948      ac_path_GREP_max=$ac_count
3949    fi
3950    # 10*(2^10) chars as input seems more than enough
3951    test $ac_count -gt 10 && break
3952  done
3953  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3954esac
3955
3956      $ac_path_GREP_found && break 3
3957    done
3958  done
3959  done
3960IFS=$as_save_IFS
3961  if test -z "$ac_cv_path_GREP"; then
3962    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3963  fi
3964else
3965  ac_cv_path_GREP=$GREP
3966fi
3967
3968fi
3969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3970$as_echo "$ac_cv_path_GREP" >&6; }
3971 GREP="$ac_cv_path_GREP"
3972
3973
3974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3975$as_echo_n "checking for egrep... " >&6; }
3976if ${ac_cv_path_EGREP+:} false; then :
3977  $as_echo_n "(cached) " >&6
3978else
3979  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3980   then ac_cv_path_EGREP="$GREP -E"
3981   else
3982     if test -z "$EGREP"; then
3983  ac_path_EGREP_found=false
3984  # Loop through the user's path and test for each of PROGNAME-LIST
3985  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3987do
3988  IFS=$as_save_IFS
3989  test -z "$as_dir" && as_dir=.
3990    for ac_prog in egrep; do
3991    for ac_exec_ext in '' $ac_executable_extensions; do
3992      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3993      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3994# Check for GNU ac_path_EGREP and select it if it is found.
3995  # Check for GNU $ac_path_EGREP
3996case `"$ac_path_EGREP" --version 2>&1` in
3997*GNU*)
3998  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3999*)
4000  ac_count=0
4001  $as_echo_n 0123456789 >"conftest.in"
4002  while :
4003  do
4004    cat "conftest.in" "conftest.in" >"conftest.tmp"
4005    mv "conftest.tmp" "conftest.in"
4006    cp "conftest.in" "conftest.nl"
4007    $as_echo 'EGREP' >> "conftest.nl"
4008    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4009    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4010    as_fn_arith $ac_count + 1 && ac_count=$as_val
4011    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4012      # Best one so far, save it but keep looking for a better one
4013      ac_cv_path_EGREP="$ac_path_EGREP"
4014      ac_path_EGREP_max=$ac_count
4015    fi
4016    # 10*(2^10) chars as input seems more than enough
4017    test $ac_count -gt 10 && break
4018  done
4019  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4020esac
4021
4022      $ac_path_EGREP_found && break 3
4023    done
4024  done
4025  done
4026IFS=$as_save_IFS
4027  if test -z "$ac_cv_path_EGREP"; then
4028    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4029  fi
4030else
4031  ac_cv_path_EGREP=$EGREP
4032fi
4033
4034   fi
4035fi
4036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4037$as_echo "$ac_cv_path_EGREP" >&6; }
4038 EGREP="$ac_cv_path_EGREP"
4039
4040
4041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4042$as_echo_n "checking for ANSI C header files... " >&6; }
4043if ${ac_cv_header_stdc+:} false; then :
4044  $as_echo_n "(cached) " >&6
4045else
4046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047/* end confdefs.h.  */
4048#include <stdlib.h>
4049#include <stdarg.h>
4050#include <string.h>
4051#include <float.h>
4052
4053int
4054main ()
4055{
4056
4057  ;
4058  return 0;
4059}
4060_ACEOF
4061if ac_fn_c_try_compile "$LINENO"; then :
4062  ac_cv_header_stdc=yes
4063else
4064  ac_cv_header_stdc=no
4065fi
4066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4067
4068if test $ac_cv_header_stdc = yes; then
4069  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071/* end confdefs.h.  */
4072#include <string.h>
4073
4074_ACEOF
4075if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4076  $EGREP "memchr" >/dev/null 2>&1; then :
4077
4078else
4079  ac_cv_header_stdc=no
4080fi
4081rm -f conftest*
4082
4083fi
4084
4085if test $ac_cv_header_stdc = yes; then
4086  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088/* end confdefs.h.  */
4089#include <stdlib.h>
4090
4091_ACEOF
4092if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4093  $EGREP "free" >/dev/null 2>&1; then :
4094
4095else
4096  ac_cv_header_stdc=no
4097fi
4098rm -f conftest*
4099
4100fi
4101
4102if test $ac_cv_header_stdc = yes; then
4103  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4104  if test "$cross_compiling" = yes; then :
4105  :
4106else
4107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108/* end confdefs.h.  */
4109#include <ctype.h>
4110#include <stdlib.h>
4111#if ((' ' & 0x0FF) == 0x020)
4112# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4113# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4114#else
4115# define ISLOWER(c) \
4116		   (('a' <= (c) && (c) <= 'i') \
4117		     || ('j' <= (c) && (c) <= 'r') \
4118		     || ('s' <= (c) && (c) <= 'z'))
4119# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4120#endif
4121
4122#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4123int
4124main ()
4125{
4126  int i;
4127  for (i = 0; i < 256; i++)
4128    if (XOR (islower (i), ISLOWER (i))
4129	|| toupper (i) != TOUPPER (i))
4130      return 2;
4131  return 0;
4132}
4133_ACEOF
4134if ac_fn_c_try_run "$LINENO"; then :
4135
4136else
4137  ac_cv_header_stdc=no
4138fi
4139rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4140  conftest.$ac_objext conftest.beam conftest.$ac_ext
4141fi
4142
4143fi
4144fi
4145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4146$as_echo "$ac_cv_header_stdc" >&6; }
4147if test $ac_cv_header_stdc = yes; then
4148
4149$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4150
4151fi
4152
4153# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4154for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4155		  inttypes.h stdint.h unistd.h
4156do :
4157  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4158ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4159"
4160if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4161  cat >>confdefs.h <<_ACEOF
4162#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4163_ACEOF
4164
4165fi
4166
4167done
4168
4169
4170
4171
4172
4173
4174ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4175if test "x$ac_cv_have_decl___clang__" = xyes; then :
4176  CLANGCC="yes"
4177else
4178  CLANGCC="no"
4179fi
4180
4181ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4182if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4183  INTELCC="yes"
4184else
4185  INTELCC="no"
4186fi
4187
4188ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4189if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4190  SUNCC="yes"
4191else
4192  SUNCC="no"
4193fi
4194
4195
4196
4197
4198if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4199	if test -n "$ac_tool_prefix"; then
4200  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4201set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4203$as_echo_n "checking for $ac_word... " >&6; }
4204if ${ac_cv_path_PKG_CONFIG+:} false; then :
4205  $as_echo_n "(cached) " >&6
4206else
4207  case $PKG_CONFIG in
4208  [\\/]* | ?:[\\/]*)
4209  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4210  ;;
4211  *)
4212  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213for as_dir in $PATH
4214do
4215  IFS=$as_save_IFS
4216  test -z "$as_dir" && as_dir=.
4217    for ac_exec_ext in '' $ac_executable_extensions; do
4218  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4219    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4220    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4221    break 2
4222  fi
4223done
4224  done
4225IFS=$as_save_IFS
4226
4227  ;;
4228esac
4229fi
4230PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4231if test -n "$PKG_CONFIG"; then
4232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4233$as_echo "$PKG_CONFIG" >&6; }
4234else
4235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4236$as_echo "no" >&6; }
4237fi
4238
4239
4240fi
4241if test -z "$ac_cv_path_PKG_CONFIG"; then
4242  ac_pt_PKG_CONFIG=$PKG_CONFIG
4243  # Extract the first word of "pkg-config", so it can be a program name with args.
4244set dummy pkg-config; ac_word=$2
4245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4246$as_echo_n "checking for $ac_word... " >&6; }
4247if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4248  $as_echo_n "(cached) " >&6
4249else
4250  case $ac_pt_PKG_CONFIG in
4251  [\\/]* | ?:[\\/]*)
4252  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4253  ;;
4254  *)
4255  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256for as_dir in $PATH
4257do
4258  IFS=$as_save_IFS
4259  test -z "$as_dir" && as_dir=.
4260    for ac_exec_ext in '' $ac_executable_extensions; do
4261  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4262    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4263    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4264    break 2
4265  fi
4266done
4267  done
4268IFS=$as_save_IFS
4269
4270  ;;
4271esac
4272fi
4273ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4274if test -n "$ac_pt_PKG_CONFIG"; then
4275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4276$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4277else
4278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4279$as_echo "no" >&6; }
4280fi
4281
4282  if test "x$ac_pt_PKG_CONFIG" = x; then
4283    PKG_CONFIG=""
4284  else
4285    case $cross_compiling:$ac_tool_warned in
4286yes:)
4287{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4288$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4289ac_tool_warned=yes ;;
4290esac
4291    PKG_CONFIG=$ac_pt_PKG_CONFIG
4292  fi
4293else
4294  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4295fi
4296
4297fi
4298if test -n "$PKG_CONFIG"; then
4299	_pkg_min_version=0.9.0
4300	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4301$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4302	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4303		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4304$as_echo "yes" >&6; }
4305	else
4306		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4307$as_echo "no" >&6; }
4308		PKG_CONFIG=""
4309	fi
4310
4311fi
4312# Make sure we can run config.sub.
4313$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4314  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4315
4316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4317$as_echo_n "checking build system type... " >&6; }
4318if ${ac_cv_build+:} false; then :
4319  $as_echo_n "(cached) " >&6
4320else
4321  ac_build_alias=$build_alias
4322test "x$ac_build_alias" = x &&
4323  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4324test "x$ac_build_alias" = x &&
4325  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4326ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4327  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4328
4329fi
4330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4331$as_echo "$ac_cv_build" >&6; }
4332case $ac_cv_build in
4333*-*-*) ;;
4334*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4335esac
4336build=$ac_cv_build
4337ac_save_IFS=$IFS; IFS='-'
4338set x $ac_cv_build
4339shift
4340build_cpu=$1
4341build_vendor=$2
4342shift; shift
4343# Remember, the first character of IFS is used to create $*,
4344# except with old shells:
4345build_os=$*
4346IFS=$ac_save_IFS
4347case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4348
4349
4350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4351$as_echo_n "checking host system type... " >&6; }
4352if ${ac_cv_host+:} false; then :
4353  $as_echo_n "(cached) " >&6
4354else
4355  if test "x$host_alias" = x; then
4356  ac_cv_host=$ac_cv_build
4357else
4358  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4359    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4360fi
4361
4362fi
4363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4364$as_echo "$ac_cv_host" >&6; }
4365case $ac_cv_host in
4366*-*-*) ;;
4367*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4368esac
4369host=$ac_cv_host
4370ac_save_IFS=$IFS; IFS='-'
4371set x $ac_cv_host
4372shift
4373host_cpu=$1
4374host_vendor=$2
4375shift; shift
4376# Remember, the first character of IFS is used to create $*,
4377# except with old shells:
4378host_os=$*
4379IFS=$ac_save_IFS
4380case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4381
4382
4383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4384$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4385if ${ac_cv_path_SED+:} false; then :
4386  $as_echo_n "(cached) " >&6
4387else
4388            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4389     for ac_i in 1 2 3 4 5 6 7; do
4390       ac_script="$ac_script$as_nl$ac_script"
4391     done
4392     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4393     { ac_script=; unset ac_script;}
4394     if test -z "$SED"; then
4395  ac_path_SED_found=false
4396  # Loop through the user's path and test for each of PROGNAME-LIST
4397  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398for as_dir in $PATH
4399do
4400  IFS=$as_save_IFS
4401  test -z "$as_dir" && as_dir=.
4402    for ac_prog in sed gsed; do
4403    for ac_exec_ext in '' $ac_executable_extensions; do
4404      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4405      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4406# Check for GNU ac_path_SED and select it if it is found.
4407  # Check for GNU $ac_path_SED
4408case `"$ac_path_SED" --version 2>&1` in
4409*GNU*)
4410  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4411*)
4412  ac_count=0
4413  $as_echo_n 0123456789 >"conftest.in"
4414  while :
4415  do
4416    cat "conftest.in" "conftest.in" >"conftest.tmp"
4417    mv "conftest.tmp" "conftest.in"
4418    cp "conftest.in" "conftest.nl"
4419    $as_echo '' >> "conftest.nl"
4420    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4421    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4422    as_fn_arith $ac_count + 1 && ac_count=$as_val
4423    if test $ac_count -gt ${ac_path_SED_max-0}; then
4424      # Best one so far, save it but keep looking for a better one
4425      ac_cv_path_SED="$ac_path_SED"
4426      ac_path_SED_max=$ac_count
4427    fi
4428    # 10*(2^10) chars as input seems more than enough
4429    test $ac_count -gt 10 && break
4430  done
4431  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4432esac
4433
4434      $ac_path_SED_found && break 3
4435    done
4436  done
4437  done
4438IFS=$as_save_IFS
4439  if test -z "$ac_cv_path_SED"; then
4440    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4441  fi
4442else
4443  ac_cv_path_SED=$SED
4444fi
4445
4446fi
4447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4448$as_echo "$ac_cv_path_SED" >&6; }
4449 SED="$ac_cv_path_SED"
4450  rm -f conftest.sed
4451
4452
4453
4454
4455
4456
4457# Check whether --enable-selective-werror was given.
4458if test "${enable_selective_werror+set}" = set; then :
4459  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4460else
4461  SELECTIVE_WERROR=yes
4462fi
4463
4464
4465
4466
4467
4468# -v is too short to test reliably with XORG_TESTSET_CFLAG
4469if test "x$SUNCC" = "xyes"; then
4470    BASE_CFLAGS="-v"
4471else
4472    BASE_CFLAGS=""
4473fi
4474
4475# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489xorg_testset_save_CFLAGS="$CFLAGS"
4490
4491if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4492	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4493	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4494$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4495if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4496  $as_echo_n "(cached) " >&6
4497else
4498  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499/* end confdefs.h.  */
4500int i;
4501_ACEOF
4502if ac_fn_c_try_compile "$LINENO"; then :
4503  xorg_cv_cc_flag_unknown_warning_option=yes
4504else
4505  xorg_cv_cc_flag_unknown_warning_option=no
4506fi
4507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4508fi
4509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4510$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4511	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4512	CFLAGS="$xorg_testset_save_CFLAGS"
4513fi
4514
4515if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4516	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4517		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4518	fi
4519	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4520	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4521$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4522if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4523  $as_echo_n "(cached) " >&6
4524else
4525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4526/* end confdefs.h.  */
4527int i;
4528_ACEOF
4529if ac_fn_c_try_compile "$LINENO"; then :
4530  xorg_cv_cc_flag_unused_command_line_argument=yes
4531else
4532  xorg_cv_cc_flag_unused_command_line_argument=no
4533fi
4534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4535fi
4536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4537$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4538	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4539	CFLAGS="$xorg_testset_save_CFLAGS"
4540fi
4541
4542found="no"
4543
4544	if test $found = "no" ; then
4545		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4546			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4547		fi
4548
4549		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4550			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4551		fi
4552
4553		CFLAGS="$CFLAGS -Wall"
4554
4555		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5
4556$as_echo_n "checking if $CC supports-Wall... " >&6; }
4557		cacheid=xorg_cv_cc_flag__Wall
4558		if eval \${$cacheid+:} false; then :
4559  $as_echo_n "(cached) " >&6
4560else
4561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4562/* end confdefs.h.  */
4563int i;
4564int
4565main ()
4566{
4567
4568  ;
4569  return 0;
4570}
4571_ACEOF
4572if ac_fn_c_try_link "$LINENO"; then :
4573  eval $cacheid=yes
4574else
4575  eval $cacheid=no
4576fi
4577rm -f core conftest.err conftest.$ac_objext \
4578    conftest$ac_exeext conftest.$ac_ext
4579fi
4580
4581
4582		CFLAGS="$xorg_testset_save_CFLAGS"
4583
4584		eval supported=\$$cacheid
4585		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4586$as_echo "$supported" >&6; }
4587		if test "$supported" = "yes" ; then
4588			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4589			found="yes"
4590		fi
4591	fi
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607xorg_testset_save_CFLAGS="$CFLAGS"
4608
4609if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4610	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4611	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4612$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4613if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4614  $as_echo_n "(cached) " >&6
4615else
4616  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4617/* end confdefs.h.  */
4618int i;
4619_ACEOF
4620if ac_fn_c_try_compile "$LINENO"; then :
4621  xorg_cv_cc_flag_unknown_warning_option=yes
4622else
4623  xorg_cv_cc_flag_unknown_warning_option=no
4624fi
4625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4626fi
4627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4628$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4629	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4630	CFLAGS="$xorg_testset_save_CFLAGS"
4631fi
4632
4633if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4634	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4635		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4636	fi
4637	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4638	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4639$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4640if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4641  $as_echo_n "(cached) " >&6
4642else
4643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644/* end confdefs.h.  */
4645int i;
4646_ACEOF
4647if ac_fn_c_try_compile "$LINENO"; then :
4648  xorg_cv_cc_flag_unused_command_line_argument=yes
4649else
4650  xorg_cv_cc_flag_unused_command_line_argument=no
4651fi
4652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4653fi
4654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4655$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4656	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4657	CFLAGS="$xorg_testset_save_CFLAGS"
4658fi
4659
4660found="no"
4661
4662	if test $found = "no" ; then
4663		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4664			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4665		fi
4666
4667		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4668			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4669		fi
4670
4671		CFLAGS="$CFLAGS -Wpointer-arith"
4672
4673		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5
4674$as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; }
4675		cacheid=xorg_cv_cc_flag__Wpointer_arith
4676		if eval \${$cacheid+:} false; then :
4677  $as_echo_n "(cached) " >&6
4678else
4679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4680/* end confdefs.h.  */
4681int i;
4682int
4683main ()
4684{
4685
4686  ;
4687  return 0;
4688}
4689_ACEOF
4690if ac_fn_c_try_link "$LINENO"; then :
4691  eval $cacheid=yes
4692else
4693  eval $cacheid=no
4694fi
4695rm -f core conftest.err conftest.$ac_objext \
4696    conftest$ac_exeext conftest.$ac_ext
4697fi
4698
4699
4700		CFLAGS="$xorg_testset_save_CFLAGS"
4701
4702		eval supported=\$$cacheid
4703		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4704$as_echo "$supported" >&6; }
4705		if test "$supported" = "yes" ; then
4706			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4707			found="yes"
4708		fi
4709	fi
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725xorg_testset_save_CFLAGS="$CFLAGS"
4726
4727if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4728	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4729	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4730$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4731if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4732  $as_echo_n "(cached) " >&6
4733else
4734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4735/* end confdefs.h.  */
4736int i;
4737_ACEOF
4738if ac_fn_c_try_compile "$LINENO"; then :
4739  xorg_cv_cc_flag_unknown_warning_option=yes
4740else
4741  xorg_cv_cc_flag_unknown_warning_option=no
4742fi
4743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4744fi
4745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4746$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4747	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4748	CFLAGS="$xorg_testset_save_CFLAGS"
4749fi
4750
4751if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4752	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4753		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4754	fi
4755	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4756	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4757$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4758if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4759  $as_echo_n "(cached) " >&6
4760else
4761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4762/* end confdefs.h.  */
4763int i;
4764_ACEOF
4765if ac_fn_c_try_compile "$LINENO"; then :
4766  xorg_cv_cc_flag_unused_command_line_argument=yes
4767else
4768  xorg_cv_cc_flag_unused_command_line_argument=no
4769fi
4770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4771fi
4772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4773$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4774	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4775	CFLAGS="$xorg_testset_save_CFLAGS"
4776fi
4777
4778found="no"
4779
4780	if test $found = "no" ; then
4781		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4782			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4783		fi
4784
4785		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4786			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4787		fi
4788
4789		CFLAGS="$CFLAGS -Wmissing-declarations"
4790
4791		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5
4792$as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; }
4793		cacheid=xorg_cv_cc_flag__Wmissing_declarations
4794		if eval \${$cacheid+:} false; then :
4795  $as_echo_n "(cached) " >&6
4796else
4797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4798/* end confdefs.h.  */
4799int i;
4800int
4801main ()
4802{
4803
4804  ;
4805  return 0;
4806}
4807_ACEOF
4808if ac_fn_c_try_link "$LINENO"; then :
4809  eval $cacheid=yes
4810else
4811  eval $cacheid=no
4812fi
4813rm -f core conftest.err conftest.$ac_objext \
4814    conftest$ac_exeext conftest.$ac_ext
4815fi
4816
4817
4818		CFLAGS="$xorg_testset_save_CFLAGS"
4819
4820		eval supported=\$$cacheid
4821		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4822$as_echo "$supported" >&6; }
4823		if test "$supported" = "yes" ; then
4824			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4825			found="yes"
4826		fi
4827	fi
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843xorg_testset_save_CFLAGS="$CFLAGS"
4844
4845if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4846	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4847	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4848$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4849if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4850  $as_echo_n "(cached) " >&6
4851else
4852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4853/* end confdefs.h.  */
4854int i;
4855_ACEOF
4856if ac_fn_c_try_compile "$LINENO"; then :
4857  xorg_cv_cc_flag_unknown_warning_option=yes
4858else
4859  xorg_cv_cc_flag_unknown_warning_option=no
4860fi
4861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4862fi
4863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4864$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4865	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4866	CFLAGS="$xorg_testset_save_CFLAGS"
4867fi
4868
4869if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4870	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4871		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4872	fi
4873	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4874	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4875$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4876if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4877  $as_echo_n "(cached) " >&6
4878else
4879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880/* end confdefs.h.  */
4881int i;
4882_ACEOF
4883if ac_fn_c_try_compile "$LINENO"; then :
4884  xorg_cv_cc_flag_unused_command_line_argument=yes
4885else
4886  xorg_cv_cc_flag_unused_command_line_argument=no
4887fi
4888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4889fi
4890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4891$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4892	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4893	CFLAGS="$xorg_testset_save_CFLAGS"
4894fi
4895
4896found="no"
4897
4898	if test $found = "no" ; then
4899		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4900			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4901		fi
4902
4903		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4904			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4905		fi
4906
4907		CFLAGS="$CFLAGS -Wformat=2"
4908
4909		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5
4910$as_echo_n "checking if $CC supports-Wformat=2... " >&6; }
4911		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
4912		if eval \${$cacheid+:} false; then :
4913  $as_echo_n "(cached) " >&6
4914else
4915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4916/* end confdefs.h.  */
4917int i;
4918int
4919main ()
4920{
4921
4922  ;
4923  return 0;
4924}
4925_ACEOF
4926if ac_fn_c_try_link "$LINENO"; then :
4927  eval $cacheid=yes
4928else
4929  eval $cacheid=no
4930fi
4931rm -f core conftest.err conftest.$ac_objext \
4932    conftest$ac_exeext conftest.$ac_ext
4933fi
4934
4935
4936		CFLAGS="$xorg_testset_save_CFLAGS"
4937
4938		eval supported=\$$cacheid
4939		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4940$as_echo "$supported" >&6; }
4941		if test "$supported" = "yes" ; then
4942			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
4943			found="yes"
4944		fi
4945	fi
4946
4947	if test $found = "no" ; then
4948		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4949			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4950		fi
4951
4952		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4953			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4954		fi
4955
4956		CFLAGS="$CFLAGS -Wformat"
4957
4958		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5
4959$as_echo_n "checking if $CC supports-Wformat... " >&6; }
4960		cacheid=xorg_cv_cc_flag__Wformat
4961		if eval \${$cacheid+:} false; then :
4962  $as_echo_n "(cached) " >&6
4963else
4964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4965/* end confdefs.h.  */
4966int i;
4967int
4968main ()
4969{
4970
4971  ;
4972  return 0;
4973}
4974_ACEOF
4975if ac_fn_c_try_link "$LINENO"; then :
4976  eval $cacheid=yes
4977else
4978  eval $cacheid=no
4979fi
4980rm -f core conftest.err conftest.$ac_objext \
4981    conftest$ac_exeext conftest.$ac_ext
4982fi
4983
4984
4985		CFLAGS="$xorg_testset_save_CFLAGS"
4986
4987		eval supported=\$$cacheid
4988		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4989$as_echo "$supported" >&6; }
4990		if test "$supported" = "yes" ; then
4991			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
4992			found="yes"
4993		fi
4994	fi
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012xorg_testset_save_CFLAGS="$CFLAGS"
5013
5014if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5015	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5016	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5017$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5018if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5019  $as_echo_n "(cached) " >&6
5020else
5021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5022/* end confdefs.h.  */
5023int i;
5024_ACEOF
5025if ac_fn_c_try_compile "$LINENO"; then :
5026  xorg_cv_cc_flag_unknown_warning_option=yes
5027else
5028  xorg_cv_cc_flag_unknown_warning_option=no
5029fi
5030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5031fi
5032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5033$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5034	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5035	CFLAGS="$xorg_testset_save_CFLAGS"
5036fi
5037
5038if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5039	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5040		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5041	fi
5042	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5043	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5044$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5045if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5046  $as_echo_n "(cached) " >&6
5047else
5048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5049/* end confdefs.h.  */
5050int i;
5051_ACEOF
5052if ac_fn_c_try_compile "$LINENO"; then :
5053  xorg_cv_cc_flag_unused_command_line_argument=yes
5054else
5055  xorg_cv_cc_flag_unused_command_line_argument=no
5056fi
5057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5058fi
5059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5060$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5061	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5062	CFLAGS="$xorg_testset_save_CFLAGS"
5063fi
5064
5065found="no"
5066
5067	if test $found = "no" ; then
5068		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5069			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5070		fi
5071
5072		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5073			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5074		fi
5075
5076		CFLAGS="$CFLAGS -Wstrict-prototypes"
5077
5078		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5
5079$as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; }
5080		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5081		if eval \${$cacheid+:} false; then :
5082  $as_echo_n "(cached) " >&6
5083else
5084  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5085/* end confdefs.h.  */
5086int i;
5087int
5088main ()
5089{
5090
5091  ;
5092  return 0;
5093}
5094_ACEOF
5095if ac_fn_c_try_link "$LINENO"; then :
5096  eval $cacheid=yes
5097else
5098  eval $cacheid=no
5099fi
5100rm -f core conftest.err conftest.$ac_objext \
5101    conftest$ac_exeext conftest.$ac_ext
5102fi
5103
5104
5105		CFLAGS="$xorg_testset_save_CFLAGS"
5106
5107		eval supported=\$$cacheid
5108		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5109$as_echo "$supported" >&6; }
5110		if test "$supported" = "yes" ; then
5111			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5112			found="yes"
5113		fi
5114	fi
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130xorg_testset_save_CFLAGS="$CFLAGS"
5131
5132if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5133	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5134	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5135$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5136if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5137  $as_echo_n "(cached) " >&6
5138else
5139  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5140/* end confdefs.h.  */
5141int i;
5142_ACEOF
5143if ac_fn_c_try_compile "$LINENO"; then :
5144  xorg_cv_cc_flag_unknown_warning_option=yes
5145else
5146  xorg_cv_cc_flag_unknown_warning_option=no
5147fi
5148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5149fi
5150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5151$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5152	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5153	CFLAGS="$xorg_testset_save_CFLAGS"
5154fi
5155
5156if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5157	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5158		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5159	fi
5160	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5161	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5162$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5163if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5164  $as_echo_n "(cached) " >&6
5165else
5166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5167/* end confdefs.h.  */
5168int i;
5169_ACEOF
5170if ac_fn_c_try_compile "$LINENO"; then :
5171  xorg_cv_cc_flag_unused_command_line_argument=yes
5172else
5173  xorg_cv_cc_flag_unused_command_line_argument=no
5174fi
5175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5176fi
5177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5178$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5179	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5180	CFLAGS="$xorg_testset_save_CFLAGS"
5181fi
5182
5183found="no"
5184
5185	if test $found = "no" ; then
5186		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5187			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5188		fi
5189
5190		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5191			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5192		fi
5193
5194		CFLAGS="$CFLAGS -Wmissing-prototypes"
5195
5196		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5
5197$as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; }
5198		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5199		if eval \${$cacheid+:} false; then :
5200  $as_echo_n "(cached) " >&6
5201else
5202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5203/* end confdefs.h.  */
5204int i;
5205int
5206main ()
5207{
5208
5209  ;
5210  return 0;
5211}
5212_ACEOF
5213if ac_fn_c_try_link "$LINENO"; then :
5214  eval $cacheid=yes
5215else
5216  eval $cacheid=no
5217fi
5218rm -f core conftest.err conftest.$ac_objext \
5219    conftest$ac_exeext conftest.$ac_ext
5220fi
5221
5222
5223		CFLAGS="$xorg_testset_save_CFLAGS"
5224
5225		eval supported=\$$cacheid
5226		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5227$as_echo "$supported" >&6; }
5228		if test "$supported" = "yes" ; then
5229			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5230			found="yes"
5231		fi
5232	fi
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248xorg_testset_save_CFLAGS="$CFLAGS"
5249
5250if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5251	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5252	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5253$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5254if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5255  $as_echo_n "(cached) " >&6
5256else
5257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5258/* end confdefs.h.  */
5259int i;
5260_ACEOF
5261if ac_fn_c_try_compile "$LINENO"; then :
5262  xorg_cv_cc_flag_unknown_warning_option=yes
5263else
5264  xorg_cv_cc_flag_unknown_warning_option=no
5265fi
5266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5267fi
5268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5269$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5270	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5271	CFLAGS="$xorg_testset_save_CFLAGS"
5272fi
5273
5274if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5275	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5276		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5277	fi
5278	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5279	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5280$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5281if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5282  $as_echo_n "(cached) " >&6
5283else
5284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285/* end confdefs.h.  */
5286int i;
5287_ACEOF
5288if ac_fn_c_try_compile "$LINENO"; then :
5289  xorg_cv_cc_flag_unused_command_line_argument=yes
5290else
5291  xorg_cv_cc_flag_unused_command_line_argument=no
5292fi
5293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5294fi
5295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5296$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5297	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5298	CFLAGS="$xorg_testset_save_CFLAGS"
5299fi
5300
5301found="no"
5302
5303	if test $found = "no" ; then
5304		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5305			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5306		fi
5307
5308		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5309			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5310		fi
5311
5312		CFLAGS="$CFLAGS -Wnested-externs"
5313
5314		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5
5315$as_echo_n "checking if $CC supports-Wnested-externs... " >&6; }
5316		cacheid=xorg_cv_cc_flag__Wnested_externs
5317		if eval \${$cacheid+:} false; then :
5318  $as_echo_n "(cached) " >&6
5319else
5320  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5321/* end confdefs.h.  */
5322int i;
5323int
5324main ()
5325{
5326
5327  ;
5328  return 0;
5329}
5330_ACEOF
5331if ac_fn_c_try_link "$LINENO"; then :
5332  eval $cacheid=yes
5333else
5334  eval $cacheid=no
5335fi
5336rm -f core conftest.err conftest.$ac_objext \
5337    conftest$ac_exeext conftest.$ac_ext
5338fi
5339
5340
5341		CFLAGS="$xorg_testset_save_CFLAGS"
5342
5343		eval supported=\$$cacheid
5344		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5345$as_echo "$supported" >&6; }
5346		if test "$supported" = "yes" ; then
5347			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5348			found="yes"
5349		fi
5350	fi
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366xorg_testset_save_CFLAGS="$CFLAGS"
5367
5368if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5369	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5370	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5371$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5372if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5373  $as_echo_n "(cached) " >&6
5374else
5375  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5376/* end confdefs.h.  */
5377int i;
5378_ACEOF
5379if ac_fn_c_try_compile "$LINENO"; then :
5380  xorg_cv_cc_flag_unknown_warning_option=yes
5381else
5382  xorg_cv_cc_flag_unknown_warning_option=no
5383fi
5384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5385fi
5386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5387$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5388	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5389	CFLAGS="$xorg_testset_save_CFLAGS"
5390fi
5391
5392if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5393	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5394		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5395	fi
5396	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5397	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5398$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5399if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5400  $as_echo_n "(cached) " >&6
5401else
5402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403/* end confdefs.h.  */
5404int i;
5405_ACEOF
5406if ac_fn_c_try_compile "$LINENO"; then :
5407  xorg_cv_cc_flag_unused_command_line_argument=yes
5408else
5409  xorg_cv_cc_flag_unused_command_line_argument=no
5410fi
5411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5412fi
5413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5414$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5415	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5416	CFLAGS="$xorg_testset_save_CFLAGS"
5417fi
5418
5419found="no"
5420
5421	if test $found = "no" ; then
5422		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5423			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5424		fi
5425
5426		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5427			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5428		fi
5429
5430		CFLAGS="$CFLAGS -Wbad-function-cast"
5431
5432		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5
5433$as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; }
5434		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5435		if eval \${$cacheid+:} false; then :
5436  $as_echo_n "(cached) " >&6
5437else
5438  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5439/* end confdefs.h.  */
5440int i;
5441int
5442main ()
5443{
5444
5445  ;
5446  return 0;
5447}
5448_ACEOF
5449if ac_fn_c_try_link "$LINENO"; then :
5450  eval $cacheid=yes
5451else
5452  eval $cacheid=no
5453fi
5454rm -f core conftest.err conftest.$ac_objext \
5455    conftest$ac_exeext conftest.$ac_ext
5456fi
5457
5458
5459		CFLAGS="$xorg_testset_save_CFLAGS"
5460
5461		eval supported=\$$cacheid
5462		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5463$as_echo "$supported" >&6; }
5464		if test "$supported" = "yes" ; then
5465			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5466			found="yes"
5467		fi
5468	fi
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484xorg_testset_save_CFLAGS="$CFLAGS"
5485
5486if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5487	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5488	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5489$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5490if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5491  $as_echo_n "(cached) " >&6
5492else
5493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5494/* end confdefs.h.  */
5495int i;
5496_ACEOF
5497if ac_fn_c_try_compile "$LINENO"; then :
5498  xorg_cv_cc_flag_unknown_warning_option=yes
5499else
5500  xorg_cv_cc_flag_unknown_warning_option=no
5501fi
5502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5503fi
5504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5505$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5506	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5507	CFLAGS="$xorg_testset_save_CFLAGS"
5508fi
5509
5510if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5511	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5512		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5513	fi
5514	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5515	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5516$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5517if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5518  $as_echo_n "(cached) " >&6
5519else
5520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5521/* end confdefs.h.  */
5522int i;
5523_ACEOF
5524if ac_fn_c_try_compile "$LINENO"; then :
5525  xorg_cv_cc_flag_unused_command_line_argument=yes
5526else
5527  xorg_cv_cc_flag_unused_command_line_argument=no
5528fi
5529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5530fi
5531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5532$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5533	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5534	CFLAGS="$xorg_testset_save_CFLAGS"
5535fi
5536
5537found="no"
5538
5539	if test $found = "no" ; then
5540		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5541			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5542		fi
5543
5544		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5545			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5546		fi
5547
5548		CFLAGS="$CFLAGS -Wold-style-definition"
5549
5550		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5
5551$as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; }
5552		cacheid=xorg_cv_cc_flag__Wold_style_definition
5553		if eval \${$cacheid+:} false; then :
5554  $as_echo_n "(cached) " >&6
5555else
5556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5557/* end confdefs.h.  */
5558int i;
5559int
5560main ()
5561{
5562
5563  ;
5564  return 0;
5565}
5566_ACEOF
5567if ac_fn_c_try_link "$LINENO"; then :
5568  eval $cacheid=yes
5569else
5570  eval $cacheid=no
5571fi
5572rm -f core conftest.err conftest.$ac_objext \
5573    conftest$ac_exeext conftest.$ac_ext
5574fi
5575
5576
5577		CFLAGS="$xorg_testset_save_CFLAGS"
5578
5579		eval supported=\$$cacheid
5580		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5581$as_echo "$supported" >&6; }
5582		if test "$supported" = "yes" ; then
5583			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5584			found="yes"
5585		fi
5586	fi
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602xorg_testset_save_CFLAGS="$CFLAGS"
5603
5604if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5605	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5606	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5607$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5608if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5609  $as_echo_n "(cached) " >&6
5610else
5611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5612/* end confdefs.h.  */
5613int i;
5614_ACEOF
5615if ac_fn_c_try_compile "$LINENO"; then :
5616  xorg_cv_cc_flag_unknown_warning_option=yes
5617else
5618  xorg_cv_cc_flag_unknown_warning_option=no
5619fi
5620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5621fi
5622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5623$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5624	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5625	CFLAGS="$xorg_testset_save_CFLAGS"
5626fi
5627
5628if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5629	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5630		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5631	fi
5632	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5633	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5634$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5635if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5636  $as_echo_n "(cached) " >&6
5637else
5638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5639/* end confdefs.h.  */
5640int i;
5641_ACEOF
5642if ac_fn_c_try_compile "$LINENO"; then :
5643  xorg_cv_cc_flag_unused_command_line_argument=yes
5644else
5645  xorg_cv_cc_flag_unused_command_line_argument=no
5646fi
5647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5648fi
5649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5650$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5651	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5652	CFLAGS="$xorg_testset_save_CFLAGS"
5653fi
5654
5655found="no"
5656
5657	if test $found = "no" ; then
5658		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5659			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5660		fi
5661
5662		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5663			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5664		fi
5665
5666		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5667
5668		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5
5669$as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; }
5670		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5671		if eval \${$cacheid+:} false; then :
5672  $as_echo_n "(cached) " >&6
5673else
5674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5675/* end confdefs.h.  */
5676int i;
5677int
5678main ()
5679{
5680
5681  ;
5682  return 0;
5683}
5684_ACEOF
5685if ac_fn_c_try_link "$LINENO"; then :
5686  eval $cacheid=yes
5687else
5688  eval $cacheid=no
5689fi
5690rm -f core conftest.err conftest.$ac_objext \
5691    conftest$ac_exeext conftest.$ac_ext
5692fi
5693
5694
5695		CFLAGS="$xorg_testset_save_CFLAGS"
5696
5697		eval supported=\$$cacheid
5698		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5699$as_echo "$supported" >&6; }
5700		if test "$supported" = "yes" ; then
5701			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5702			found="yes"
5703		fi
5704	fi
5705
5706
5707
5708
5709
5710# This chunk adds additional warnings that could catch undesired effects.
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724xorg_testset_save_CFLAGS="$CFLAGS"
5725
5726if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5727	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5728	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5729$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5730if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5731  $as_echo_n "(cached) " >&6
5732else
5733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5734/* end confdefs.h.  */
5735int i;
5736_ACEOF
5737if ac_fn_c_try_compile "$LINENO"; then :
5738  xorg_cv_cc_flag_unknown_warning_option=yes
5739else
5740  xorg_cv_cc_flag_unknown_warning_option=no
5741fi
5742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5743fi
5744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5745$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5746	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5747	CFLAGS="$xorg_testset_save_CFLAGS"
5748fi
5749
5750if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5751	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5752		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5753	fi
5754	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5755	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5756$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5757if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5758  $as_echo_n "(cached) " >&6
5759else
5760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761/* end confdefs.h.  */
5762int i;
5763_ACEOF
5764if ac_fn_c_try_compile "$LINENO"; then :
5765  xorg_cv_cc_flag_unused_command_line_argument=yes
5766else
5767  xorg_cv_cc_flag_unused_command_line_argument=no
5768fi
5769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5770fi
5771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5772$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5773	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5774	CFLAGS="$xorg_testset_save_CFLAGS"
5775fi
5776
5777found="no"
5778
5779	if test $found = "no" ; then
5780		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5781			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5782		fi
5783
5784		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5785			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5786		fi
5787
5788		CFLAGS="$CFLAGS -Wunused"
5789
5790		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5
5791$as_echo_n "checking if $CC supports-Wunused... " >&6; }
5792		cacheid=xorg_cv_cc_flag__Wunused
5793		if eval \${$cacheid+:} false; then :
5794  $as_echo_n "(cached) " >&6
5795else
5796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5797/* end confdefs.h.  */
5798int i;
5799int
5800main ()
5801{
5802
5803  ;
5804  return 0;
5805}
5806_ACEOF
5807if ac_fn_c_try_link "$LINENO"; then :
5808  eval $cacheid=yes
5809else
5810  eval $cacheid=no
5811fi
5812rm -f core conftest.err conftest.$ac_objext \
5813    conftest$ac_exeext conftest.$ac_ext
5814fi
5815
5816
5817		CFLAGS="$xorg_testset_save_CFLAGS"
5818
5819		eval supported=\$$cacheid
5820		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5821$as_echo "$supported" >&6; }
5822		if test "$supported" = "yes" ; then
5823			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5824			found="yes"
5825		fi
5826	fi
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842xorg_testset_save_CFLAGS="$CFLAGS"
5843
5844if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5845	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5846	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5847$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5848if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5849  $as_echo_n "(cached) " >&6
5850else
5851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5852/* end confdefs.h.  */
5853int i;
5854_ACEOF
5855if ac_fn_c_try_compile "$LINENO"; then :
5856  xorg_cv_cc_flag_unknown_warning_option=yes
5857else
5858  xorg_cv_cc_flag_unknown_warning_option=no
5859fi
5860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5861fi
5862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5863$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5864	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5865	CFLAGS="$xorg_testset_save_CFLAGS"
5866fi
5867
5868if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5869	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5870		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5871	fi
5872	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5873	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5874$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5875if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5876  $as_echo_n "(cached) " >&6
5877else
5878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5879/* end confdefs.h.  */
5880int i;
5881_ACEOF
5882if ac_fn_c_try_compile "$LINENO"; then :
5883  xorg_cv_cc_flag_unused_command_line_argument=yes
5884else
5885  xorg_cv_cc_flag_unused_command_line_argument=no
5886fi
5887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5888fi
5889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5890$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5891	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5892	CFLAGS="$xorg_testset_save_CFLAGS"
5893fi
5894
5895found="no"
5896
5897	if test $found = "no" ; then
5898		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5899			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5900		fi
5901
5902		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5903			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5904		fi
5905
5906		CFLAGS="$CFLAGS -Wuninitialized"
5907
5908		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5
5909$as_echo_n "checking if $CC supports-Wuninitialized... " >&6; }
5910		cacheid=xorg_cv_cc_flag__Wuninitialized
5911		if eval \${$cacheid+:} false; then :
5912  $as_echo_n "(cached) " >&6
5913else
5914  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5915/* end confdefs.h.  */
5916int i;
5917int
5918main ()
5919{
5920
5921  ;
5922  return 0;
5923}
5924_ACEOF
5925if ac_fn_c_try_link "$LINENO"; then :
5926  eval $cacheid=yes
5927else
5928  eval $cacheid=no
5929fi
5930rm -f core conftest.err conftest.$ac_objext \
5931    conftest$ac_exeext conftest.$ac_ext
5932fi
5933
5934
5935		CFLAGS="$xorg_testset_save_CFLAGS"
5936
5937		eval supported=\$$cacheid
5938		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5939$as_echo "$supported" >&6; }
5940		if test "$supported" = "yes" ; then
5941			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
5942			found="yes"
5943		fi
5944	fi
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960xorg_testset_save_CFLAGS="$CFLAGS"
5961
5962if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5963	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5964	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5965$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5966if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5967  $as_echo_n "(cached) " >&6
5968else
5969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5970/* end confdefs.h.  */
5971int i;
5972_ACEOF
5973if ac_fn_c_try_compile "$LINENO"; then :
5974  xorg_cv_cc_flag_unknown_warning_option=yes
5975else
5976  xorg_cv_cc_flag_unknown_warning_option=no
5977fi
5978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5979fi
5980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5981$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5982	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5983	CFLAGS="$xorg_testset_save_CFLAGS"
5984fi
5985
5986if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5987	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5988		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5989	fi
5990	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5991	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5992$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5993if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5994  $as_echo_n "(cached) " >&6
5995else
5996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5997/* end confdefs.h.  */
5998int i;
5999_ACEOF
6000if ac_fn_c_try_compile "$LINENO"; then :
6001  xorg_cv_cc_flag_unused_command_line_argument=yes
6002else
6003  xorg_cv_cc_flag_unused_command_line_argument=no
6004fi
6005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6006fi
6007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6008$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6009	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6010	CFLAGS="$xorg_testset_save_CFLAGS"
6011fi
6012
6013found="no"
6014
6015	if test $found = "no" ; then
6016		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6017			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6018		fi
6019
6020		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6021			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6022		fi
6023
6024		CFLAGS="$CFLAGS -Wshadow"
6025
6026		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5
6027$as_echo_n "checking if $CC supports-Wshadow... " >&6; }
6028		cacheid=xorg_cv_cc_flag__Wshadow
6029		if eval \${$cacheid+:} false; then :
6030  $as_echo_n "(cached) " >&6
6031else
6032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6033/* end confdefs.h.  */
6034int i;
6035int
6036main ()
6037{
6038
6039  ;
6040  return 0;
6041}
6042_ACEOF
6043if ac_fn_c_try_link "$LINENO"; then :
6044  eval $cacheid=yes
6045else
6046  eval $cacheid=no
6047fi
6048rm -f core conftest.err conftest.$ac_objext \
6049    conftest$ac_exeext conftest.$ac_ext
6050fi
6051
6052
6053		CFLAGS="$xorg_testset_save_CFLAGS"
6054
6055		eval supported=\$$cacheid
6056		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6057$as_echo "$supported" >&6; }
6058		if test "$supported" = "yes" ; then
6059			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6060			found="yes"
6061		fi
6062	fi
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078xorg_testset_save_CFLAGS="$CFLAGS"
6079
6080if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6081	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6082	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6083$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6084if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6085  $as_echo_n "(cached) " >&6
6086else
6087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6088/* end confdefs.h.  */
6089int i;
6090_ACEOF
6091if ac_fn_c_try_compile "$LINENO"; then :
6092  xorg_cv_cc_flag_unknown_warning_option=yes
6093else
6094  xorg_cv_cc_flag_unknown_warning_option=no
6095fi
6096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6097fi
6098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6099$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6100	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6101	CFLAGS="$xorg_testset_save_CFLAGS"
6102fi
6103
6104if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6105	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6106		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6107	fi
6108	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6109	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6110$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6111if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6112  $as_echo_n "(cached) " >&6
6113else
6114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6115/* end confdefs.h.  */
6116int i;
6117_ACEOF
6118if ac_fn_c_try_compile "$LINENO"; then :
6119  xorg_cv_cc_flag_unused_command_line_argument=yes
6120else
6121  xorg_cv_cc_flag_unused_command_line_argument=no
6122fi
6123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6124fi
6125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6126$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6127	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6128	CFLAGS="$xorg_testset_save_CFLAGS"
6129fi
6130
6131found="no"
6132
6133	if test $found = "no" ; then
6134		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6135			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6136		fi
6137
6138		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6139			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6140		fi
6141
6142		CFLAGS="$CFLAGS -Wcast-qual"
6143
6144		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5
6145$as_echo_n "checking if $CC supports-Wcast-qual... " >&6; }
6146		cacheid=xorg_cv_cc_flag__Wcast_qual
6147		if eval \${$cacheid+:} false; then :
6148  $as_echo_n "(cached) " >&6
6149else
6150  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6151/* end confdefs.h.  */
6152int i;
6153int
6154main ()
6155{
6156
6157  ;
6158  return 0;
6159}
6160_ACEOF
6161if ac_fn_c_try_link "$LINENO"; then :
6162  eval $cacheid=yes
6163else
6164  eval $cacheid=no
6165fi
6166rm -f core conftest.err conftest.$ac_objext \
6167    conftest$ac_exeext conftest.$ac_ext
6168fi
6169
6170
6171		CFLAGS="$xorg_testset_save_CFLAGS"
6172
6173		eval supported=\$$cacheid
6174		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6175$as_echo "$supported" >&6; }
6176		if test "$supported" = "yes" ; then
6177			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6178			found="yes"
6179		fi
6180	fi
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196xorg_testset_save_CFLAGS="$CFLAGS"
6197
6198if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6199	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6200	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6201$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6202if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6203  $as_echo_n "(cached) " >&6
6204else
6205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6206/* end confdefs.h.  */
6207int i;
6208_ACEOF
6209if ac_fn_c_try_compile "$LINENO"; then :
6210  xorg_cv_cc_flag_unknown_warning_option=yes
6211else
6212  xorg_cv_cc_flag_unknown_warning_option=no
6213fi
6214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6215fi
6216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6217$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6218	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6219	CFLAGS="$xorg_testset_save_CFLAGS"
6220fi
6221
6222if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6223	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6224		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6225	fi
6226	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6227	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6228$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6229if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6230  $as_echo_n "(cached) " >&6
6231else
6232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6233/* end confdefs.h.  */
6234int i;
6235_ACEOF
6236if ac_fn_c_try_compile "$LINENO"; then :
6237  xorg_cv_cc_flag_unused_command_line_argument=yes
6238else
6239  xorg_cv_cc_flag_unused_command_line_argument=no
6240fi
6241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6242fi
6243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6244$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6245	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6246	CFLAGS="$xorg_testset_save_CFLAGS"
6247fi
6248
6249found="no"
6250
6251	if test $found = "no" ; then
6252		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6253			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6254		fi
6255
6256		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6257			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6258		fi
6259
6260		CFLAGS="$CFLAGS -Wmissing-noreturn"
6261
6262		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5
6263$as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; }
6264		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6265		if eval \${$cacheid+:} false; then :
6266  $as_echo_n "(cached) " >&6
6267else
6268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6269/* end confdefs.h.  */
6270int i;
6271int
6272main ()
6273{
6274
6275  ;
6276  return 0;
6277}
6278_ACEOF
6279if ac_fn_c_try_link "$LINENO"; then :
6280  eval $cacheid=yes
6281else
6282  eval $cacheid=no
6283fi
6284rm -f core conftest.err conftest.$ac_objext \
6285    conftest$ac_exeext conftest.$ac_ext
6286fi
6287
6288
6289		CFLAGS="$xorg_testset_save_CFLAGS"
6290
6291		eval supported=\$$cacheid
6292		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6293$as_echo "$supported" >&6; }
6294		if test "$supported" = "yes" ; then
6295			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6296			found="yes"
6297		fi
6298	fi
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314xorg_testset_save_CFLAGS="$CFLAGS"
6315
6316if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6317	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6318	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6319$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6320if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6321  $as_echo_n "(cached) " >&6
6322else
6323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6324/* end confdefs.h.  */
6325int i;
6326_ACEOF
6327if ac_fn_c_try_compile "$LINENO"; then :
6328  xorg_cv_cc_flag_unknown_warning_option=yes
6329else
6330  xorg_cv_cc_flag_unknown_warning_option=no
6331fi
6332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6333fi
6334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6335$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6336	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6337	CFLAGS="$xorg_testset_save_CFLAGS"
6338fi
6339
6340if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6341	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6342		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6343	fi
6344	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6345	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6346$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6347if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6348  $as_echo_n "(cached) " >&6
6349else
6350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6351/* end confdefs.h.  */
6352int i;
6353_ACEOF
6354if ac_fn_c_try_compile "$LINENO"; then :
6355  xorg_cv_cc_flag_unused_command_line_argument=yes
6356else
6357  xorg_cv_cc_flag_unused_command_line_argument=no
6358fi
6359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6360fi
6361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6362$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6363	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6364	CFLAGS="$xorg_testset_save_CFLAGS"
6365fi
6366
6367found="no"
6368
6369	if test $found = "no" ; then
6370		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6371			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6372		fi
6373
6374		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6375			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6376		fi
6377
6378		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6379
6380		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5
6381$as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; }
6382		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6383		if eval \${$cacheid+:} false; then :
6384  $as_echo_n "(cached) " >&6
6385else
6386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6387/* end confdefs.h.  */
6388int i;
6389int
6390main ()
6391{
6392
6393  ;
6394  return 0;
6395}
6396_ACEOF
6397if ac_fn_c_try_link "$LINENO"; then :
6398  eval $cacheid=yes
6399else
6400  eval $cacheid=no
6401fi
6402rm -f core conftest.err conftest.$ac_objext \
6403    conftest$ac_exeext conftest.$ac_ext
6404fi
6405
6406
6407		CFLAGS="$xorg_testset_save_CFLAGS"
6408
6409		eval supported=\$$cacheid
6410		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6411$as_echo "$supported" >&6; }
6412		if test "$supported" = "yes" ; then
6413			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6414			found="yes"
6415		fi
6416	fi
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432xorg_testset_save_CFLAGS="$CFLAGS"
6433
6434if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6435	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6436	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6437$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6438if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6439  $as_echo_n "(cached) " >&6
6440else
6441  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6442/* end confdefs.h.  */
6443int i;
6444_ACEOF
6445if ac_fn_c_try_compile "$LINENO"; then :
6446  xorg_cv_cc_flag_unknown_warning_option=yes
6447else
6448  xorg_cv_cc_flag_unknown_warning_option=no
6449fi
6450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6451fi
6452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6453$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6454	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6455	CFLAGS="$xorg_testset_save_CFLAGS"
6456fi
6457
6458if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6459	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6460		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6461	fi
6462	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6463	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6464$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6465if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6466  $as_echo_n "(cached) " >&6
6467else
6468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469/* end confdefs.h.  */
6470int i;
6471_ACEOF
6472if ac_fn_c_try_compile "$LINENO"; then :
6473  xorg_cv_cc_flag_unused_command_line_argument=yes
6474else
6475  xorg_cv_cc_flag_unused_command_line_argument=no
6476fi
6477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6478fi
6479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6480$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6481	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6482	CFLAGS="$xorg_testset_save_CFLAGS"
6483fi
6484
6485found="no"
6486
6487	if test $found = "no" ; then
6488		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6489			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6490		fi
6491
6492		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6493			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6494		fi
6495
6496		CFLAGS="$CFLAGS -Wredundant-decls"
6497
6498		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5
6499$as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; }
6500		cacheid=xorg_cv_cc_flag__Wredundant_decls
6501		if eval \${$cacheid+:} false; then :
6502  $as_echo_n "(cached) " >&6
6503else
6504  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6505/* end confdefs.h.  */
6506int i;
6507int
6508main ()
6509{
6510
6511  ;
6512  return 0;
6513}
6514_ACEOF
6515if ac_fn_c_try_link "$LINENO"; then :
6516  eval $cacheid=yes
6517else
6518  eval $cacheid=no
6519fi
6520rm -f core conftest.err conftest.$ac_objext \
6521    conftest$ac_exeext conftest.$ac_ext
6522fi
6523
6524
6525		CFLAGS="$xorg_testset_save_CFLAGS"
6526
6527		eval supported=\$$cacheid
6528		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6529$as_echo "$supported" >&6; }
6530		if test "$supported" = "yes" ; then
6531			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6532			found="yes"
6533		fi
6534	fi
6535
6536
6537
6538# These are currently disabled because they are noisy.  They will be enabled
6539# in the future once the codebase is sufficiently modernized to silence
6540# them.  For now, I don't want them to drown out the other warnings.
6541# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6542# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6543# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6544
6545# Turn some warnings into errors, so we don't accidently get successful builds
6546# when there are problems that should be fixed.
6547
6548if test "x$SELECTIVE_WERROR" = "xyes" ; then
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562xorg_testset_save_CFLAGS="$CFLAGS"
6563
6564if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6565	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6566	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6567$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6568if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6569  $as_echo_n "(cached) " >&6
6570else
6571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6572/* end confdefs.h.  */
6573int i;
6574_ACEOF
6575if ac_fn_c_try_compile "$LINENO"; then :
6576  xorg_cv_cc_flag_unknown_warning_option=yes
6577else
6578  xorg_cv_cc_flag_unknown_warning_option=no
6579fi
6580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6581fi
6582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6583$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6584	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6585	CFLAGS="$xorg_testset_save_CFLAGS"
6586fi
6587
6588if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6589	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6590		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6591	fi
6592	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6593	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6594$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6595if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6596  $as_echo_n "(cached) " >&6
6597else
6598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6599/* end confdefs.h.  */
6600int i;
6601_ACEOF
6602if ac_fn_c_try_compile "$LINENO"; then :
6603  xorg_cv_cc_flag_unused_command_line_argument=yes
6604else
6605  xorg_cv_cc_flag_unused_command_line_argument=no
6606fi
6607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6608fi
6609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6610$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6611	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6612	CFLAGS="$xorg_testset_save_CFLAGS"
6613fi
6614
6615found="no"
6616
6617	if test $found = "no" ; then
6618		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6619			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6620		fi
6621
6622		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6623			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6624		fi
6625
6626		CFLAGS="$CFLAGS -Werror=implicit"
6627
6628		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5
6629$as_echo_n "checking if $CC supports-Werror=implicit... " >&6; }
6630		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6631		if eval \${$cacheid+:} false; then :
6632  $as_echo_n "(cached) " >&6
6633else
6634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6635/* end confdefs.h.  */
6636int i;
6637int
6638main ()
6639{
6640
6641  ;
6642  return 0;
6643}
6644_ACEOF
6645if ac_fn_c_try_link "$LINENO"; then :
6646  eval $cacheid=yes
6647else
6648  eval $cacheid=no
6649fi
6650rm -f core conftest.err conftest.$ac_objext \
6651    conftest$ac_exeext conftest.$ac_ext
6652fi
6653
6654
6655		CFLAGS="$xorg_testset_save_CFLAGS"
6656
6657		eval supported=\$$cacheid
6658		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6659$as_echo "$supported" >&6; }
6660		if test "$supported" = "yes" ; then
6661			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6662			found="yes"
6663		fi
6664	fi
6665
6666	if test $found = "no" ; then
6667		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6668			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6669		fi
6670
6671		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6672			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6673		fi
6674
6675		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6676
6677		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6678$as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6679		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6680		if eval \${$cacheid+:} false; then :
6681  $as_echo_n "(cached) " >&6
6682else
6683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6684/* end confdefs.h.  */
6685int i;
6686int
6687main ()
6688{
6689
6690  ;
6691  return 0;
6692}
6693_ACEOF
6694if ac_fn_c_try_link "$LINENO"; then :
6695  eval $cacheid=yes
6696else
6697  eval $cacheid=no
6698fi
6699rm -f core conftest.err conftest.$ac_objext \
6700    conftest$ac_exeext conftest.$ac_ext
6701fi
6702
6703
6704		CFLAGS="$xorg_testset_save_CFLAGS"
6705
6706		eval supported=\$$cacheid
6707		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6708$as_echo "$supported" >&6; }
6709		if test "$supported" = "yes" ; then
6710			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6711			found="yes"
6712		fi
6713	fi
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729xorg_testset_save_CFLAGS="$CFLAGS"
6730
6731if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6732	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6733	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6734$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6735if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6736  $as_echo_n "(cached) " >&6
6737else
6738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6739/* end confdefs.h.  */
6740int i;
6741_ACEOF
6742if ac_fn_c_try_compile "$LINENO"; then :
6743  xorg_cv_cc_flag_unknown_warning_option=yes
6744else
6745  xorg_cv_cc_flag_unknown_warning_option=no
6746fi
6747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6748fi
6749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6750$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6751	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6752	CFLAGS="$xorg_testset_save_CFLAGS"
6753fi
6754
6755if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6756	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6757		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6758	fi
6759	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6760	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6761$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6762if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6763  $as_echo_n "(cached) " >&6
6764else
6765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6766/* end confdefs.h.  */
6767int i;
6768_ACEOF
6769if ac_fn_c_try_compile "$LINENO"; then :
6770  xorg_cv_cc_flag_unused_command_line_argument=yes
6771else
6772  xorg_cv_cc_flag_unused_command_line_argument=no
6773fi
6774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6775fi
6776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6777$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6778	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6779	CFLAGS="$xorg_testset_save_CFLAGS"
6780fi
6781
6782found="no"
6783
6784	if test $found = "no" ; then
6785		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6786			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6787		fi
6788
6789		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6790			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6791		fi
6792
6793		CFLAGS="$CFLAGS -Werror=nonnull"
6794
6795		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5
6796$as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; }
6797		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
6798		if eval \${$cacheid+:} false; then :
6799  $as_echo_n "(cached) " >&6
6800else
6801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6802/* end confdefs.h.  */
6803int i;
6804int
6805main ()
6806{
6807
6808  ;
6809  return 0;
6810}
6811_ACEOF
6812if ac_fn_c_try_link "$LINENO"; then :
6813  eval $cacheid=yes
6814else
6815  eval $cacheid=no
6816fi
6817rm -f core conftest.err conftest.$ac_objext \
6818    conftest$ac_exeext conftest.$ac_ext
6819fi
6820
6821
6822		CFLAGS="$xorg_testset_save_CFLAGS"
6823
6824		eval supported=\$$cacheid
6825		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6826$as_echo "$supported" >&6; }
6827		if test "$supported" = "yes" ; then
6828			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6829			found="yes"
6830		fi
6831	fi
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847xorg_testset_save_CFLAGS="$CFLAGS"
6848
6849if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6850	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6851	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6852$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6853if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6854  $as_echo_n "(cached) " >&6
6855else
6856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6857/* end confdefs.h.  */
6858int i;
6859_ACEOF
6860if ac_fn_c_try_compile "$LINENO"; then :
6861  xorg_cv_cc_flag_unknown_warning_option=yes
6862else
6863  xorg_cv_cc_flag_unknown_warning_option=no
6864fi
6865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6866fi
6867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6868$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6869	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6870	CFLAGS="$xorg_testset_save_CFLAGS"
6871fi
6872
6873if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6874	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6875		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6876	fi
6877	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6878	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6879$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6880if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6881  $as_echo_n "(cached) " >&6
6882else
6883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6884/* end confdefs.h.  */
6885int i;
6886_ACEOF
6887if ac_fn_c_try_compile "$LINENO"; then :
6888  xorg_cv_cc_flag_unused_command_line_argument=yes
6889else
6890  xorg_cv_cc_flag_unused_command_line_argument=no
6891fi
6892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6893fi
6894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6895$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6896	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6897	CFLAGS="$xorg_testset_save_CFLAGS"
6898fi
6899
6900found="no"
6901
6902	if test $found = "no" ; then
6903		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6904			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6905		fi
6906
6907		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6908			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6909		fi
6910
6911		CFLAGS="$CFLAGS -Werror=init-self"
6912
6913		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5
6914$as_echo_n "checking if $CC supports-Werror=init-self... " >&6; }
6915		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
6916		if eval \${$cacheid+:} false; then :
6917  $as_echo_n "(cached) " >&6
6918else
6919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6920/* end confdefs.h.  */
6921int i;
6922int
6923main ()
6924{
6925
6926  ;
6927  return 0;
6928}
6929_ACEOF
6930if ac_fn_c_try_link "$LINENO"; then :
6931  eval $cacheid=yes
6932else
6933  eval $cacheid=no
6934fi
6935rm -f core conftest.err conftest.$ac_objext \
6936    conftest$ac_exeext conftest.$ac_ext
6937fi
6938
6939
6940		CFLAGS="$xorg_testset_save_CFLAGS"
6941
6942		eval supported=\$$cacheid
6943		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6944$as_echo "$supported" >&6; }
6945		if test "$supported" = "yes" ; then
6946			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
6947			found="yes"
6948		fi
6949	fi
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965xorg_testset_save_CFLAGS="$CFLAGS"
6966
6967if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6968	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6969	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6970$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6971if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6972  $as_echo_n "(cached) " >&6
6973else
6974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6975/* end confdefs.h.  */
6976int i;
6977_ACEOF
6978if ac_fn_c_try_compile "$LINENO"; then :
6979  xorg_cv_cc_flag_unknown_warning_option=yes
6980else
6981  xorg_cv_cc_flag_unknown_warning_option=no
6982fi
6983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6984fi
6985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6986$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6987	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6988	CFLAGS="$xorg_testset_save_CFLAGS"
6989fi
6990
6991if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6992	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6993		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6994	fi
6995	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6996	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6997$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6998if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6999  $as_echo_n "(cached) " >&6
7000else
7001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7002/* end confdefs.h.  */
7003int i;
7004_ACEOF
7005if ac_fn_c_try_compile "$LINENO"; then :
7006  xorg_cv_cc_flag_unused_command_line_argument=yes
7007else
7008  xorg_cv_cc_flag_unused_command_line_argument=no
7009fi
7010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7011fi
7012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7013$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7014	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7015	CFLAGS="$xorg_testset_save_CFLAGS"
7016fi
7017
7018found="no"
7019
7020	if test $found = "no" ; then
7021		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7022			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7023		fi
7024
7025		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7026			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7027		fi
7028
7029		CFLAGS="$CFLAGS -Werror=main"
7030
7031		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5
7032$as_echo_n "checking if $CC supports-Werror=main... " >&6; }
7033		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7034		if eval \${$cacheid+:} false; then :
7035  $as_echo_n "(cached) " >&6
7036else
7037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7038/* end confdefs.h.  */
7039int i;
7040int
7041main ()
7042{
7043
7044  ;
7045  return 0;
7046}
7047_ACEOF
7048if ac_fn_c_try_link "$LINENO"; then :
7049  eval $cacheid=yes
7050else
7051  eval $cacheid=no
7052fi
7053rm -f core conftest.err conftest.$ac_objext \
7054    conftest$ac_exeext conftest.$ac_ext
7055fi
7056
7057
7058		CFLAGS="$xorg_testset_save_CFLAGS"
7059
7060		eval supported=\$$cacheid
7061		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7062$as_echo "$supported" >&6; }
7063		if test "$supported" = "yes" ; then
7064			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7065			found="yes"
7066		fi
7067	fi
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083xorg_testset_save_CFLAGS="$CFLAGS"
7084
7085if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7086	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7087	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7088$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7089if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7090  $as_echo_n "(cached) " >&6
7091else
7092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093/* end confdefs.h.  */
7094int i;
7095_ACEOF
7096if ac_fn_c_try_compile "$LINENO"; then :
7097  xorg_cv_cc_flag_unknown_warning_option=yes
7098else
7099  xorg_cv_cc_flag_unknown_warning_option=no
7100fi
7101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7102fi
7103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7104$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7105	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7106	CFLAGS="$xorg_testset_save_CFLAGS"
7107fi
7108
7109if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7110	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7111		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7112	fi
7113	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7114	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7115$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7116if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7117  $as_echo_n "(cached) " >&6
7118else
7119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7120/* end confdefs.h.  */
7121int i;
7122_ACEOF
7123if ac_fn_c_try_compile "$LINENO"; then :
7124  xorg_cv_cc_flag_unused_command_line_argument=yes
7125else
7126  xorg_cv_cc_flag_unused_command_line_argument=no
7127fi
7128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7129fi
7130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7131$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7132	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7133	CFLAGS="$xorg_testset_save_CFLAGS"
7134fi
7135
7136found="no"
7137
7138	if test $found = "no" ; then
7139		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7140			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7141		fi
7142
7143		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7144			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7145		fi
7146
7147		CFLAGS="$CFLAGS -Werror=missing-braces"
7148
7149		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5
7150$as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; }
7151		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7152		if eval \${$cacheid+:} false; then :
7153  $as_echo_n "(cached) " >&6
7154else
7155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7156/* end confdefs.h.  */
7157int i;
7158int
7159main ()
7160{
7161
7162  ;
7163  return 0;
7164}
7165_ACEOF
7166if ac_fn_c_try_link "$LINENO"; then :
7167  eval $cacheid=yes
7168else
7169  eval $cacheid=no
7170fi
7171rm -f core conftest.err conftest.$ac_objext \
7172    conftest$ac_exeext conftest.$ac_ext
7173fi
7174
7175
7176		CFLAGS="$xorg_testset_save_CFLAGS"
7177
7178		eval supported=\$$cacheid
7179		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7180$as_echo "$supported" >&6; }
7181		if test "$supported" = "yes" ; then
7182			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7183			found="yes"
7184		fi
7185	fi
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201xorg_testset_save_CFLAGS="$CFLAGS"
7202
7203if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7204	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7205	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7206$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7207if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7208  $as_echo_n "(cached) " >&6
7209else
7210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7211/* end confdefs.h.  */
7212int i;
7213_ACEOF
7214if ac_fn_c_try_compile "$LINENO"; then :
7215  xorg_cv_cc_flag_unknown_warning_option=yes
7216else
7217  xorg_cv_cc_flag_unknown_warning_option=no
7218fi
7219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7220fi
7221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7222$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7223	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7224	CFLAGS="$xorg_testset_save_CFLAGS"
7225fi
7226
7227if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7228	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7229		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7230	fi
7231	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7232	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7233$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7234if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7235  $as_echo_n "(cached) " >&6
7236else
7237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7238/* end confdefs.h.  */
7239int i;
7240_ACEOF
7241if ac_fn_c_try_compile "$LINENO"; then :
7242  xorg_cv_cc_flag_unused_command_line_argument=yes
7243else
7244  xorg_cv_cc_flag_unused_command_line_argument=no
7245fi
7246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7247fi
7248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7249$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7250	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7251	CFLAGS="$xorg_testset_save_CFLAGS"
7252fi
7253
7254found="no"
7255
7256	if test $found = "no" ; then
7257		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7258			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7259		fi
7260
7261		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7262			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7263		fi
7264
7265		CFLAGS="$CFLAGS -Werror=sequence-point"
7266
7267		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5
7268$as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; }
7269		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7270		if eval \${$cacheid+:} false; then :
7271  $as_echo_n "(cached) " >&6
7272else
7273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7274/* end confdefs.h.  */
7275int i;
7276int
7277main ()
7278{
7279
7280  ;
7281  return 0;
7282}
7283_ACEOF
7284if ac_fn_c_try_link "$LINENO"; then :
7285  eval $cacheid=yes
7286else
7287  eval $cacheid=no
7288fi
7289rm -f core conftest.err conftest.$ac_objext \
7290    conftest$ac_exeext conftest.$ac_ext
7291fi
7292
7293
7294		CFLAGS="$xorg_testset_save_CFLAGS"
7295
7296		eval supported=\$$cacheid
7297		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7298$as_echo "$supported" >&6; }
7299		if test "$supported" = "yes" ; then
7300			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7301			found="yes"
7302		fi
7303	fi
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319xorg_testset_save_CFLAGS="$CFLAGS"
7320
7321if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7322	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7323	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7324$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7325if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7326  $as_echo_n "(cached) " >&6
7327else
7328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7329/* end confdefs.h.  */
7330int i;
7331_ACEOF
7332if ac_fn_c_try_compile "$LINENO"; then :
7333  xorg_cv_cc_flag_unknown_warning_option=yes
7334else
7335  xorg_cv_cc_flag_unknown_warning_option=no
7336fi
7337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7338fi
7339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7340$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7341	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7342	CFLAGS="$xorg_testset_save_CFLAGS"
7343fi
7344
7345if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7346	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7347		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7348	fi
7349	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7350	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7351$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7352if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7353  $as_echo_n "(cached) " >&6
7354else
7355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7356/* end confdefs.h.  */
7357int i;
7358_ACEOF
7359if ac_fn_c_try_compile "$LINENO"; then :
7360  xorg_cv_cc_flag_unused_command_line_argument=yes
7361else
7362  xorg_cv_cc_flag_unused_command_line_argument=no
7363fi
7364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7365fi
7366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7367$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7368	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7369	CFLAGS="$xorg_testset_save_CFLAGS"
7370fi
7371
7372found="no"
7373
7374	if test $found = "no" ; then
7375		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7376			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7377		fi
7378
7379		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7380			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7381		fi
7382
7383		CFLAGS="$CFLAGS -Werror=return-type"
7384
7385		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5
7386$as_echo_n "checking if $CC supports-Werror=return-type... " >&6; }
7387		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7388		if eval \${$cacheid+:} false; then :
7389  $as_echo_n "(cached) " >&6
7390else
7391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7392/* end confdefs.h.  */
7393int i;
7394int
7395main ()
7396{
7397
7398  ;
7399  return 0;
7400}
7401_ACEOF
7402if ac_fn_c_try_link "$LINENO"; then :
7403  eval $cacheid=yes
7404else
7405  eval $cacheid=no
7406fi
7407rm -f core conftest.err conftest.$ac_objext \
7408    conftest$ac_exeext conftest.$ac_ext
7409fi
7410
7411
7412		CFLAGS="$xorg_testset_save_CFLAGS"
7413
7414		eval supported=\$$cacheid
7415		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7416$as_echo "$supported" >&6; }
7417		if test "$supported" = "yes" ; then
7418			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7419			found="yes"
7420		fi
7421	fi
7422
7423	if test $found = "no" ; then
7424		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7425			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7426		fi
7427
7428		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7429			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7430		fi
7431
7432		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7433
7434		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7435$as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7436		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7437		if eval \${$cacheid+:} false; then :
7438  $as_echo_n "(cached) " >&6
7439else
7440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7441/* end confdefs.h.  */
7442int i;
7443int
7444main ()
7445{
7446
7447  ;
7448  return 0;
7449}
7450_ACEOF
7451if ac_fn_c_try_link "$LINENO"; then :
7452  eval $cacheid=yes
7453else
7454  eval $cacheid=no
7455fi
7456rm -f core conftest.err conftest.$ac_objext \
7457    conftest$ac_exeext conftest.$ac_ext
7458fi
7459
7460
7461		CFLAGS="$xorg_testset_save_CFLAGS"
7462
7463		eval supported=\$$cacheid
7464		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7465$as_echo "$supported" >&6; }
7466		if test "$supported" = "yes" ; then
7467			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7468			found="yes"
7469		fi
7470	fi
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486xorg_testset_save_CFLAGS="$CFLAGS"
7487
7488if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7489	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7490	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7491$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7492if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7493  $as_echo_n "(cached) " >&6
7494else
7495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496/* end confdefs.h.  */
7497int i;
7498_ACEOF
7499if ac_fn_c_try_compile "$LINENO"; then :
7500  xorg_cv_cc_flag_unknown_warning_option=yes
7501else
7502  xorg_cv_cc_flag_unknown_warning_option=no
7503fi
7504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7505fi
7506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7507$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7508	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7509	CFLAGS="$xorg_testset_save_CFLAGS"
7510fi
7511
7512if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7513	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7514		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7515	fi
7516	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7517	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7518$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7519if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7520  $as_echo_n "(cached) " >&6
7521else
7522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7523/* end confdefs.h.  */
7524int i;
7525_ACEOF
7526if ac_fn_c_try_compile "$LINENO"; then :
7527  xorg_cv_cc_flag_unused_command_line_argument=yes
7528else
7529  xorg_cv_cc_flag_unused_command_line_argument=no
7530fi
7531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7532fi
7533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7534$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7535	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7536	CFLAGS="$xorg_testset_save_CFLAGS"
7537fi
7538
7539found="no"
7540
7541	if test $found = "no" ; then
7542		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7543			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7544		fi
7545
7546		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7547			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7548		fi
7549
7550		CFLAGS="$CFLAGS -Werror=trigraphs"
7551
7552		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5
7553$as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; }
7554		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7555		if eval \${$cacheid+:} false; then :
7556  $as_echo_n "(cached) " >&6
7557else
7558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7559/* end confdefs.h.  */
7560int i;
7561int
7562main ()
7563{
7564
7565  ;
7566  return 0;
7567}
7568_ACEOF
7569if ac_fn_c_try_link "$LINENO"; then :
7570  eval $cacheid=yes
7571else
7572  eval $cacheid=no
7573fi
7574rm -f core conftest.err conftest.$ac_objext \
7575    conftest$ac_exeext conftest.$ac_ext
7576fi
7577
7578
7579		CFLAGS="$xorg_testset_save_CFLAGS"
7580
7581		eval supported=\$$cacheid
7582		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7583$as_echo "$supported" >&6; }
7584		if test "$supported" = "yes" ; then
7585			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7586			found="yes"
7587		fi
7588	fi
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604xorg_testset_save_CFLAGS="$CFLAGS"
7605
7606if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7607	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7608	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7609$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7610if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7611  $as_echo_n "(cached) " >&6
7612else
7613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7614/* end confdefs.h.  */
7615int i;
7616_ACEOF
7617if ac_fn_c_try_compile "$LINENO"; then :
7618  xorg_cv_cc_flag_unknown_warning_option=yes
7619else
7620  xorg_cv_cc_flag_unknown_warning_option=no
7621fi
7622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7623fi
7624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7625$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7626	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7627	CFLAGS="$xorg_testset_save_CFLAGS"
7628fi
7629
7630if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7631	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7632		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7633	fi
7634	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7635	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7636$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7637if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7638  $as_echo_n "(cached) " >&6
7639else
7640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7641/* end confdefs.h.  */
7642int i;
7643_ACEOF
7644if ac_fn_c_try_compile "$LINENO"; then :
7645  xorg_cv_cc_flag_unused_command_line_argument=yes
7646else
7647  xorg_cv_cc_flag_unused_command_line_argument=no
7648fi
7649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7650fi
7651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7652$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7653	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7654	CFLAGS="$xorg_testset_save_CFLAGS"
7655fi
7656
7657found="no"
7658
7659	if test $found = "no" ; then
7660		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7661			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7662		fi
7663
7664		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7665			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7666		fi
7667
7668		CFLAGS="$CFLAGS -Werror=array-bounds"
7669
7670		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5
7671$as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; }
7672		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7673		if eval \${$cacheid+:} false; then :
7674  $as_echo_n "(cached) " >&6
7675else
7676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7677/* end confdefs.h.  */
7678int i;
7679int
7680main ()
7681{
7682
7683  ;
7684  return 0;
7685}
7686_ACEOF
7687if ac_fn_c_try_link "$LINENO"; then :
7688  eval $cacheid=yes
7689else
7690  eval $cacheid=no
7691fi
7692rm -f core conftest.err conftest.$ac_objext \
7693    conftest$ac_exeext conftest.$ac_ext
7694fi
7695
7696
7697		CFLAGS="$xorg_testset_save_CFLAGS"
7698
7699		eval supported=\$$cacheid
7700		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7701$as_echo "$supported" >&6; }
7702		if test "$supported" = "yes" ; then
7703			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7704			found="yes"
7705		fi
7706	fi
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722xorg_testset_save_CFLAGS="$CFLAGS"
7723
7724if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7725	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7726	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7727$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7728if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7729  $as_echo_n "(cached) " >&6
7730else
7731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7732/* end confdefs.h.  */
7733int i;
7734_ACEOF
7735if ac_fn_c_try_compile "$LINENO"; then :
7736  xorg_cv_cc_flag_unknown_warning_option=yes
7737else
7738  xorg_cv_cc_flag_unknown_warning_option=no
7739fi
7740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7741fi
7742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7743$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7744	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7745	CFLAGS="$xorg_testset_save_CFLAGS"
7746fi
7747
7748if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7749	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7750		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7751	fi
7752	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7753	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7754$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7755if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7756  $as_echo_n "(cached) " >&6
7757else
7758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7759/* end confdefs.h.  */
7760int i;
7761_ACEOF
7762if ac_fn_c_try_compile "$LINENO"; then :
7763  xorg_cv_cc_flag_unused_command_line_argument=yes
7764else
7765  xorg_cv_cc_flag_unused_command_line_argument=no
7766fi
7767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7768fi
7769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7770$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7771	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7772	CFLAGS="$xorg_testset_save_CFLAGS"
7773fi
7774
7775found="no"
7776
7777	if test $found = "no" ; then
7778		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7779			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7780		fi
7781
7782		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7783			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7784		fi
7785
7786		CFLAGS="$CFLAGS -Werror=write-strings"
7787
7788		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5
7789$as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; }
7790		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
7791		if eval \${$cacheid+:} false; then :
7792  $as_echo_n "(cached) " >&6
7793else
7794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7795/* end confdefs.h.  */
7796int i;
7797int
7798main ()
7799{
7800
7801  ;
7802  return 0;
7803}
7804_ACEOF
7805if ac_fn_c_try_link "$LINENO"; then :
7806  eval $cacheid=yes
7807else
7808  eval $cacheid=no
7809fi
7810rm -f core conftest.err conftest.$ac_objext \
7811    conftest$ac_exeext conftest.$ac_ext
7812fi
7813
7814
7815		CFLAGS="$xorg_testset_save_CFLAGS"
7816
7817		eval supported=\$$cacheid
7818		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7819$as_echo "$supported" >&6; }
7820		if test "$supported" = "yes" ; then
7821			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7822			found="yes"
7823		fi
7824	fi
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840xorg_testset_save_CFLAGS="$CFLAGS"
7841
7842if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7843	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7844	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7845$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7846if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7847  $as_echo_n "(cached) " >&6
7848else
7849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7850/* end confdefs.h.  */
7851int i;
7852_ACEOF
7853if ac_fn_c_try_compile "$LINENO"; then :
7854  xorg_cv_cc_flag_unknown_warning_option=yes
7855else
7856  xorg_cv_cc_flag_unknown_warning_option=no
7857fi
7858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7859fi
7860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7861$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7862	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7863	CFLAGS="$xorg_testset_save_CFLAGS"
7864fi
7865
7866if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7867	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7868		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7869	fi
7870	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7871	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7872$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7873if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7874  $as_echo_n "(cached) " >&6
7875else
7876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7877/* end confdefs.h.  */
7878int i;
7879_ACEOF
7880if ac_fn_c_try_compile "$LINENO"; then :
7881  xorg_cv_cc_flag_unused_command_line_argument=yes
7882else
7883  xorg_cv_cc_flag_unused_command_line_argument=no
7884fi
7885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7886fi
7887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7888$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7889	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7890	CFLAGS="$xorg_testset_save_CFLAGS"
7891fi
7892
7893found="no"
7894
7895	if test $found = "no" ; then
7896		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7897			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7898		fi
7899
7900		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7901			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7902		fi
7903
7904		CFLAGS="$CFLAGS -Werror=address"
7905
7906		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5
7907$as_echo_n "checking if $CC supports-Werror=address... " >&6; }
7908		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
7909		if eval \${$cacheid+:} false; then :
7910  $as_echo_n "(cached) " >&6
7911else
7912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7913/* end confdefs.h.  */
7914int i;
7915int
7916main ()
7917{
7918
7919  ;
7920  return 0;
7921}
7922_ACEOF
7923if ac_fn_c_try_link "$LINENO"; then :
7924  eval $cacheid=yes
7925else
7926  eval $cacheid=no
7927fi
7928rm -f core conftest.err conftest.$ac_objext \
7929    conftest$ac_exeext conftest.$ac_ext
7930fi
7931
7932
7933		CFLAGS="$xorg_testset_save_CFLAGS"
7934
7935		eval supported=\$$cacheid
7936		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7937$as_echo "$supported" >&6; }
7938		if test "$supported" = "yes" ; then
7939			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
7940			found="yes"
7941		fi
7942	fi
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958xorg_testset_save_CFLAGS="$CFLAGS"
7959
7960if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7961	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7962	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7963$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7964if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7965  $as_echo_n "(cached) " >&6
7966else
7967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7968/* end confdefs.h.  */
7969int i;
7970_ACEOF
7971if ac_fn_c_try_compile "$LINENO"; then :
7972  xorg_cv_cc_flag_unknown_warning_option=yes
7973else
7974  xorg_cv_cc_flag_unknown_warning_option=no
7975fi
7976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7977fi
7978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7979$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7980	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7981	CFLAGS="$xorg_testset_save_CFLAGS"
7982fi
7983
7984if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7985	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7986		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7987	fi
7988	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7989	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7990$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7991if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7992  $as_echo_n "(cached) " >&6
7993else
7994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7995/* end confdefs.h.  */
7996int i;
7997_ACEOF
7998if ac_fn_c_try_compile "$LINENO"; then :
7999  xorg_cv_cc_flag_unused_command_line_argument=yes
8000else
8001  xorg_cv_cc_flag_unused_command_line_argument=no
8002fi
8003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8004fi
8005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8006$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8007	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8008	CFLAGS="$xorg_testset_save_CFLAGS"
8009fi
8010
8011found="no"
8012
8013	if test $found = "no" ; then
8014		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8015			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8016		fi
8017
8018		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8019			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8020		fi
8021
8022		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8023
8024		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5
8025$as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; }
8026		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8027		if eval \${$cacheid+:} false; then :
8028  $as_echo_n "(cached) " >&6
8029else
8030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8031/* end confdefs.h.  */
8032int i;
8033int
8034main ()
8035{
8036
8037  ;
8038  return 0;
8039}
8040_ACEOF
8041if ac_fn_c_try_link "$LINENO"; then :
8042  eval $cacheid=yes
8043else
8044  eval $cacheid=no
8045fi
8046rm -f core conftest.err conftest.$ac_objext \
8047    conftest$ac_exeext conftest.$ac_ext
8048fi
8049
8050
8051		CFLAGS="$xorg_testset_save_CFLAGS"
8052
8053		eval supported=\$$cacheid
8054		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8055$as_echo "$supported" >&6; }
8056		if test "$supported" = "yes" ; then
8057			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8058			found="yes"
8059		fi
8060	fi
8061
8062	if test $found = "no" ; then
8063		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8064			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8065		fi
8066
8067		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8068			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8069		fi
8070
8071		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8072
8073		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8074$as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8075		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8076		if eval \${$cacheid+:} false; then :
8077  $as_echo_n "(cached) " >&6
8078else
8079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8080/* end confdefs.h.  */
8081int i;
8082int
8083main ()
8084{
8085
8086  ;
8087  return 0;
8088}
8089_ACEOF
8090if ac_fn_c_try_link "$LINENO"; then :
8091  eval $cacheid=yes
8092else
8093  eval $cacheid=no
8094fi
8095rm -f core conftest.err conftest.$ac_objext \
8096    conftest$ac_exeext conftest.$ac_ext
8097fi
8098
8099
8100		CFLAGS="$xorg_testset_save_CFLAGS"
8101
8102		eval supported=\$$cacheid
8103		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8104$as_echo "$supported" >&6; }
8105		if test "$supported" = "yes" ; then
8106			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8107			found="yes"
8108		fi
8109	fi
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125xorg_testset_save_CFLAGS="$CFLAGS"
8126
8127if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8128	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8129	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8130$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8131if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8132  $as_echo_n "(cached) " >&6
8133else
8134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8135/* end confdefs.h.  */
8136int i;
8137_ACEOF
8138if ac_fn_c_try_compile "$LINENO"; then :
8139  xorg_cv_cc_flag_unknown_warning_option=yes
8140else
8141  xorg_cv_cc_flag_unknown_warning_option=no
8142fi
8143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8144fi
8145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8146$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8147	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8148	CFLAGS="$xorg_testset_save_CFLAGS"
8149fi
8150
8151if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8152	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8153		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8154	fi
8155	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8156	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8157$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8158if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8159  $as_echo_n "(cached) " >&6
8160else
8161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8162/* end confdefs.h.  */
8163int i;
8164_ACEOF
8165if ac_fn_c_try_compile "$LINENO"; then :
8166  xorg_cv_cc_flag_unused_command_line_argument=yes
8167else
8168  xorg_cv_cc_flag_unused_command_line_argument=no
8169fi
8170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8171fi
8172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8173$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8174	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8175	CFLAGS="$xorg_testset_save_CFLAGS"
8176fi
8177
8178found="no"
8179
8180	if test $found = "no" ; then
8181		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8182			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8183		fi
8184
8185		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8186			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8187		fi
8188
8189		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8190
8191		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5
8192$as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; }
8193		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8194		if eval \${$cacheid+:} false; then :
8195  $as_echo_n "(cached) " >&6
8196else
8197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8198/* end confdefs.h.  */
8199int i;
8200int
8201main ()
8202{
8203
8204  ;
8205  return 0;
8206}
8207_ACEOF
8208if ac_fn_c_try_link "$LINENO"; then :
8209  eval $cacheid=yes
8210else
8211  eval $cacheid=no
8212fi
8213rm -f core conftest.err conftest.$ac_objext \
8214    conftest$ac_exeext conftest.$ac_ext
8215fi
8216
8217
8218		CFLAGS="$xorg_testset_save_CFLAGS"
8219
8220		eval supported=\$$cacheid
8221		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8222$as_echo "$supported" >&6; }
8223		if test "$supported" = "yes" ; then
8224			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8225			found="yes"
8226		fi
8227	fi
8228
8229 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8230else
8231{ $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
8232$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;}
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246xorg_testset_save_CFLAGS="$CFLAGS"
8247
8248if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8249	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8250	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8251$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8252if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8253  $as_echo_n "(cached) " >&6
8254else
8255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8256/* end confdefs.h.  */
8257int i;
8258_ACEOF
8259if ac_fn_c_try_compile "$LINENO"; then :
8260  xorg_cv_cc_flag_unknown_warning_option=yes
8261else
8262  xorg_cv_cc_flag_unknown_warning_option=no
8263fi
8264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8265fi
8266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8267$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8268	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8269	CFLAGS="$xorg_testset_save_CFLAGS"
8270fi
8271
8272if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8273	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8274		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8275	fi
8276	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8277	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8278$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8279if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8280  $as_echo_n "(cached) " >&6
8281else
8282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8283/* end confdefs.h.  */
8284int i;
8285_ACEOF
8286if ac_fn_c_try_compile "$LINENO"; then :
8287  xorg_cv_cc_flag_unused_command_line_argument=yes
8288else
8289  xorg_cv_cc_flag_unused_command_line_argument=no
8290fi
8291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8292fi
8293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8294$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8295	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8296	CFLAGS="$xorg_testset_save_CFLAGS"
8297fi
8298
8299found="no"
8300
8301	if test $found = "no" ; then
8302		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8303			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8304		fi
8305
8306		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8307			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8308		fi
8309
8310		CFLAGS="$CFLAGS -Wimplicit"
8311
8312		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5
8313$as_echo_n "checking if $CC supports-Wimplicit... " >&6; }
8314		cacheid=xorg_cv_cc_flag__Wimplicit
8315		if eval \${$cacheid+:} false; then :
8316  $as_echo_n "(cached) " >&6
8317else
8318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8319/* end confdefs.h.  */
8320int i;
8321int
8322main ()
8323{
8324
8325  ;
8326  return 0;
8327}
8328_ACEOF
8329if ac_fn_c_try_link "$LINENO"; then :
8330  eval $cacheid=yes
8331else
8332  eval $cacheid=no
8333fi
8334rm -f core conftest.err conftest.$ac_objext \
8335    conftest$ac_exeext conftest.$ac_ext
8336fi
8337
8338
8339		CFLAGS="$xorg_testset_save_CFLAGS"
8340
8341		eval supported=\$$cacheid
8342		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8343$as_echo "$supported" >&6; }
8344		if test "$supported" = "yes" ; then
8345			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8346			found="yes"
8347		fi
8348	fi
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364xorg_testset_save_CFLAGS="$CFLAGS"
8365
8366if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8367	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8368	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8369$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8370if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8371  $as_echo_n "(cached) " >&6
8372else
8373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8374/* end confdefs.h.  */
8375int i;
8376_ACEOF
8377if ac_fn_c_try_compile "$LINENO"; then :
8378  xorg_cv_cc_flag_unknown_warning_option=yes
8379else
8380  xorg_cv_cc_flag_unknown_warning_option=no
8381fi
8382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8383fi
8384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8385$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8386	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8387	CFLAGS="$xorg_testset_save_CFLAGS"
8388fi
8389
8390if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8391	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8392		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8393	fi
8394	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8395	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8396$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8397if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8398  $as_echo_n "(cached) " >&6
8399else
8400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8401/* end confdefs.h.  */
8402int i;
8403_ACEOF
8404if ac_fn_c_try_compile "$LINENO"; then :
8405  xorg_cv_cc_flag_unused_command_line_argument=yes
8406else
8407  xorg_cv_cc_flag_unused_command_line_argument=no
8408fi
8409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8410fi
8411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8412$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8413	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8414	CFLAGS="$xorg_testset_save_CFLAGS"
8415fi
8416
8417found="no"
8418
8419	if test $found = "no" ; then
8420		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8421			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8422		fi
8423
8424		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8425			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8426		fi
8427
8428		CFLAGS="$CFLAGS -Wnonnull"
8429
8430		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5
8431$as_echo_n "checking if $CC supports-Wnonnull... " >&6; }
8432		cacheid=xorg_cv_cc_flag__Wnonnull
8433		if eval \${$cacheid+:} false; then :
8434  $as_echo_n "(cached) " >&6
8435else
8436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8437/* end confdefs.h.  */
8438int i;
8439int
8440main ()
8441{
8442
8443  ;
8444  return 0;
8445}
8446_ACEOF
8447if ac_fn_c_try_link "$LINENO"; then :
8448  eval $cacheid=yes
8449else
8450  eval $cacheid=no
8451fi
8452rm -f core conftest.err conftest.$ac_objext \
8453    conftest$ac_exeext conftest.$ac_ext
8454fi
8455
8456
8457		CFLAGS="$xorg_testset_save_CFLAGS"
8458
8459		eval supported=\$$cacheid
8460		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8461$as_echo "$supported" >&6; }
8462		if test "$supported" = "yes" ; then
8463			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8464			found="yes"
8465		fi
8466	fi
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482xorg_testset_save_CFLAGS="$CFLAGS"
8483
8484if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8485	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8486	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8487$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8488if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8489  $as_echo_n "(cached) " >&6
8490else
8491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8492/* end confdefs.h.  */
8493int i;
8494_ACEOF
8495if ac_fn_c_try_compile "$LINENO"; then :
8496  xorg_cv_cc_flag_unknown_warning_option=yes
8497else
8498  xorg_cv_cc_flag_unknown_warning_option=no
8499fi
8500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8501fi
8502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8503$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8504	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8505	CFLAGS="$xorg_testset_save_CFLAGS"
8506fi
8507
8508if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8509	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8510		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8511	fi
8512	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8513	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8514$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8515if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8516  $as_echo_n "(cached) " >&6
8517else
8518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8519/* end confdefs.h.  */
8520int i;
8521_ACEOF
8522if ac_fn_c_try_compile "$LINENO"; then :
8523  xorg_cv_cc_flag_unused_command_line_argument=yes
8524else
8525  xorg_cv_cc_flag_unused_command_line_argument=no
8526fi
8527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8528fi
8529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8530$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8531	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8532	CFLAGS="$xorg_testset_save_CFLAGS"
8533fi
8534
8535found="no"
8536
8537	if test $found = "no" ; then
8538		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8539			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8540		fi
8541
8542		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8543			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8544		fi
8545
8546		CFLAGS="$CFLAGS -Winit-self"
8547
8548		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5
8549$as_echo_n "checking if $CC supports-Winit-self... " >&6; }
8550		cacheid=xorg_cv_cc_flag__Winit_self
8551		if eval \${$cacheid+:} false; then :
8552  $as_echo_n "(cached) " >&6
8553else
8554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8555/* end confdefs.h.  */
8556int i;
8557int
8558main ()
8559{
8560
8561  ;
8562  return 0;
8563}
8564_ACEOF
8565if ac_fn_c_try_link "$LINENO"; then :
8566  eval $cacheid=yes
8567else
8568  eval $cacheid=no
8569fi
8570rm -f core conftest.err conftest.$ac_objext \
8571    conftest$ac_exeext conftest.$ac_ext
8572fi
8573
8574
8575		CFLAGS="$xorg_testset_save_CFLAGS"
8576
8577		eval supported=\$$cacheid
8578		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8579$as_echo "$supported" >&6; }
8580		if test "$supported" = "yes" ; then
8581			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8582			found="yes"
8583		fi
8584	fi
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600xorg_testset_save_CFLAGS="$CFLAGS"
8601
8602if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8603	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8604	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8605$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8606if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8607  $as_echo_n "(cached) " >&6
8608else
8609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8610/* end confdefs.h.  */
8611int i;
8612_ACEOF
8613if ac_fn_c_try_compile "$LINENO"; then :
8614  xorg_cv_cc_flag_unknown_warning_option=yes
8615else
8616  xorg_cv_cc_flag_unknown_warning_option=no
8617fi
8618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8619fi
8620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8621$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8622	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8623	CFLAGS="$xorg_testset_save_CFLAGS"
8624fi
8625
8626if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8627	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8628		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8629	fi
8630	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8631	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8632$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8633if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8634  $as_echo_n "(cached) " >&6
8635else
8636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8637/* end confdefs.h.  */
8638int i;
8639_ACEOF
8640if ac_fn_c_try_compile "$LINENO"; then :
8641  xorg_cv_cc_flag_unused_command_line_argument=yes
8642else
8643  xorg_cv_cc_flag_unused_command_line_argument=no
8644fi
8645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8646fi
8647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8648$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8649	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8650	CFLAGS="$xorg_testset_save_CFLAGS"
8651fi
8652
8653found="no"
8654
8655	if test $found = "no" ; then
8656		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8657			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8658		fi
8659
8660		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8661			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8662		fi
8663
8664		CFLAGS="$CFLAGS -Wmain"
8665
8666		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5
8667$as_echo_n "checking if $CC supports-Wmain... " >&6; }
8668		cacheid=xorg_cv_cc_flag__Wmain
8669		if eval \${$cacheid+:} false; then :
8670  $as_echo_n "(cached) " >&6
8671else
8672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8673/* end confdefs.h.  */
8674int i;
8675int
8676main ()
8677{
8678
8679  ;
8680  return 0;
8681}
8682_ACEOF
8683if ac_fn_c_try_link "$LINENO"; then :
8684  eval $cacheid=yes
8685else
8686  eval $cacheid=no
8687fi
8688rm -f core conftest.err conftest.$ac_objext \
8689    conftest$ac_exeext conftest.$ac_ext
8690fi
8691
8692
8693		CFLAGS="$xorg_testset_save_CFLAGS"
8694
8695		eval supported=\$$cacheid
8696		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8697$as_echo "$supported" >&6; }
8698		if test "$supported" = "yes" ; then
8699			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8700			found="yes"
8701		fi
8702	fi
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718xorg_testset_save_CFLAGS="$CFLAGS"
8719
8720if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8721	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8722	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8723$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8724if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8725  $as_echo_n "(cached) " >&6
8726else
8727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8728/* end confdefs.h.  */
8729int i;
8730_ACEOF
8731if ac_fn_c_try_compile "$LINENO"; then :
8732  xorg_cv_cc_flag_unknown_warning_option=yes
8733else
8734  xorg_cv_cc_flag_unknown_warning_option=no
8735fi
8736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8737fi
8738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8739$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8740	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8741	CFLAGS="$xorg_testset_save_CFLAGS"
8742fi
8743
8744if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8745	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8746		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8747	fi
8748	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8749	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8750$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8751if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8752  $as_echo_n "(cached) " >&6
8753else
8754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8755/* end confdefs.h.  */
8756int i;
8757_ACEOF
8758if ac_fn_c_try_compile "$LINENO"; then :
8759  xorg_cv_cc_flag_unused_command_line_argument=yes
8760else
8761  xorg_cv_cc_flag_unused_command_line_argument=no
8762fi
8763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8764fi
8765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8766$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8767	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8768	CFLAGS="$xorg_testset_save_CFLAGS"
8769fi
8770
8771found="no"
8772
8773	if test $found = "no" ; then
8774		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8775			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8776		fi
8777
8778		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8779			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8780		fi
8781
8782		CFLAGS="$CFLAGS -Wmissing-braces"
8783
8784		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5
8785$as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; }
8786		cacheid=xorg_cv_cc_flag__Wmissing_braces
8787		if eval \${$cacheid+:} false; then :
8788  $as_echo_n "(cached) " >&6
8789else
8790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8791/* end confdefs.h.  */
8792int i;
8793int
8794main ()
8795{
8796
8797  ;
8798  return 0;
8799}
8800_ACEOF
8801if ac_fn_c_try_link "$LINENO"; then :
8802  eval $cacheid=yes
8803else
8804  eval $cacheid=no
8805fi
8806rm -f core conftest.err conftest.$ac_objext \
8807    conftest$ac_exeext conftest.$ac_ext
8808fi
8809
8810
8811		CFLAGS="$xorg_testset_save_CFLAGS"
8812
8813		eval supported=\$$cacheid
8814		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8815$as_echo "$supported" >&6; }
8816		if test "$supported" = "yes" ; then
8817			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8818			found="yes"
8819		fi
8820	fi
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836xorg_testset_save_CFLAGS="$CFLAGS"
8837
8838if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8839	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8840	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8841$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8842if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8843  $as_echo_n "(cached) " >&6
8844else
8845  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8846/* end confdefs.h.  */
8847int i;
8848_ACEOF
8849if ac_fn_c_try_compile "$LINENO"; then :
8850  xorg_cv_cc_flag_unknown_warning_option=yes
8851else
8852  xorg_cv_cc_flag_unknown_warning_option=no
8853fi
8854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8855fi
8856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8857$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8858	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8859	CFLAGS="$xorg_testset_save_CFLAGS"
8860fi
8861
8862if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8863	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8864		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8865	fi
8866	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8867	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8868$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8869if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8870  $as_echo_n "(cached) " >&6
8871else
8872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8873/* end confdefs.h.  */
8874int i;
8875_ACEOF
8876if ac_fn_c_try_compile "$LINENO"; then :
8877  xorg_cv_cc_flag_unused_command_line_argument=yes
8878else
8879  xorg_cv_cc_flag_unused_command_line_argument=no
8880fi
8881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8882fi
8883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8884$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8885	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8886	CFLAGS="$xorg_testset_save_CFLAGS"
8887fi
8888
8889found="no"
8890
8891	if test $found = "no" ; then
8892		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8893			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8894		fi
8895
8896		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8897			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8898		fi
8899
8900		CFLAGS="$CFLAGS -Wsequence-point"
8901
8902		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5
8903$as_echo_n "checking if $CC supports-Wsequence-point... " >&6; }
8904		cacheid=xorg_cv_cc_flag__Wsequence_point
8905		if eval \${$cacheid+:} false; then :
8906  $as_echo_n "(cached) " >&6
8907else
8908  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8909/* end confdefs.h.  */
8910int i;
8911int
8912main ()
8913{
8914
8915  ;
8916  return 0;
8917}
8918_ACEOF
8919if ac_fn_c_try_link "$LINENO"; then :
8920  eval $cacheid=yes
8921else
8922  eval $cacheid=no
8923fi
8924rm -f core conftest.err conftest.$ac_objext \
8925    conftest$ac_exeext conftest.$ac_ext
8926fi
8927
8928
8929		CFLAGS="$xorg_testset_save_CFLAGS"
8930
8931		eval supported=\$$cacheid
8932		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8933$as_echo "$supported" >&6; }
8934		if test "$supported" = "yes" ; then
8935			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
8936			found="yes"
8937		fi
8938	fi
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954xorg_testset_save_CFLAGS="$CFLAGS"
8955
8956if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8957	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8958	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8959$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8960if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8961  $as_echo_n "(cached) " >&6
8962else
8963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8964/* end confdefs.h.  */
8965int i;
8966_ACEOF
8967if ac_fn_c_try_compile "$LINENO"; then :
8968  xorg_cv_cc_flag_unknown_warning_option=yes
8969else
8970  xorg_cv_cc_flag_unknown_warning_option=no
8971fi
8972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8973fi
8974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8975$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8976	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8977	CFLAGS="$xorg_testset_save_CFLAGS"
8978fi
8979
8980if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8981	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8982		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8983	fi
8984	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8985	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8986$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8987if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8988  $as_echo_n "(cached) " >&6
8989else
8990  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8991/* end confdefs.h.  */
8992int i;
8993_ACEOF
8994if ac_fn_c_try_compile "$LINENO"; then :
8995  xorg_cv_cc_flag_unused_command_line_argument=yes
8996else
8997  xorg_cv_cc_flag_unused_command_line_argument=no
8998fi
8999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9000fi
9001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9002$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9003	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9004	CFLAGS="$xorg_testset_save_CFLAGS"
9005fi
9006
9007found="no"
9008
9009	if test $found = "no" ; then
9010		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9011			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9012		fi
9013
9014		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9015			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9016		fi
9017
9018		CFLAGS="$CFLAGS -Wreturn-type"
9019
9020		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5
9021$as_echo_n "checking if $CC supports-Wreturn-type... " >&6; }
9022		cacheid=xorg_cv_cc_flag__Wreturn_type
9023		if eval \${$cacheid+:} false; then :
9024  $as_echo_n "(cached) " >&6
9025else
9026  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9027/* end confdefs.h.  */
9028int i;
9029int
9030main ()
9031{
9032
9033  ;
9034  return 0;
9035}
9036_ACEOF
9037if ac_fn_c_try_link "$LINENO"; then :
9038  eval $cacheid=yes
9039else
9040  eval $cacheid=no
9041fi
9042rm -f core conftest.err conftest.$ac_objext \
9043    conftest$ac_exeext conftest.$ac_ext
9044fi
9045
9046
9047		CFLAGS="$xorg_testset_save_CFLAGS"
9048
9049		eval supported=\$$cacheid
9050		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9051$as_echo "$supported" >&6; }
9052		if test "$supported" = "yes" ; then
9053			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9054			found="yes"
9055		fi
9056	fi
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072xorg_testset_save_CFLAGS="$CFLAGS"
9073
9074if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9075	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9076	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9077$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9078if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9079  $as_echo_n "(cached) " >&6
9080else
9081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9082/* end confdefs.h.  */
9083int i;
9084_ACEOF
9085if ac_fn_c_try_compile "$LINENO"; then :
9086  xorg_cv_cc_flag_unknown_warning_option=yes
9087else
9088  xorg_cv_cc_flag_unknown_warning_option=no
9089fi
9090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9091fi
9092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9093$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9094	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9095	CFLAGS="$xorg_testset_save_CFLAGS"
9096fi
9097
9098if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9099	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9100		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9101	fi
9102	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9103	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9104$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9105if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9106  $as_echo_n "(cached) " >&6
9107else
9108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9109/* end confdefs.h.  */
9110int i;
9111_ACEOF
9112if ac_fn_c_try_compile "$LINENO"; then :
9113  xorg_cv_cc_flag_unused_command_line_argument=yes
9114else
9115  xorg_cv_cc_flag_unused_command_line_argument=no
9116fi
9117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9118fi
9119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9120$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9121	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9122	CFLAGS="$xorg_testset_save_CFLAGS"
9123fi
9124
9125found="no"
9126
9127	if test $found = "no" ; then
9128		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9129			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9130		fi
9131
9132		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9133			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9134		fi
9135
9136		CFLAGS="$CFLAGS -Wtrigraphs"
9137
9138		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5
9139$as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; }
9140		cacheid=xorg_cv_cc_flag__Wtrigraphs
9141		if eval \${$cacheid+:} false; then :
9142  $as_echo_n "(cached) " >&6
9143else
9144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9145/* end confdefs.h.  */
9146int i;
9147int
9148main ()
9149{
9150
9151  ;
9152  return 0;
9153}
9154_ACEOF
9155if ac_fn_c_try_link "$LINENO"; then :
9156  eval $cacheid=yes
9157else
9158  eval $cacheid=no
9159fi
9160rm -f core conftest.err conftest.$ac_objext \
9161    conftest$ac_exeext conftest.$ac_ext
9162fi
9163
9164
9165		CFLAGS="$xorg_testset_save_CFLAGS"
9166
9167		eval supported=\$$cacheid
9168		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9169$as_echo "$supported" >&6; }
9170		if test "$supported" = "yes" ; then
9171			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9172			found="yes"
9173		fi
9174	fi
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190xorg_testset_save_CFLAGS="$CFLAGS"
9191
9192if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9193	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9194	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9195$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9196if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9197  $as_echo_n "(cached) " >&6
9198else
9199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9200/* end confdefs.h.  */
9201int i;
9202_ACEOF
9203if ac_fn_c_try_compile "$LINENO"; then :
9204  xorg_cv_cc_flag_unknown_warning_option=yes
9205else
9206  xorg_cv_cc_flag_unknown_warning_option=no
9207fi
9208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9209fi
9210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9211$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9212	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9213	CFLAGS="$xorg_testset_save_CFLAGS"
9214fi
9215
9216if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9217	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9218		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9219	fi
9220	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9221	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9222$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9223if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9224  $as_echo_n "(cached) " >&6
9225else
9226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9227/* end confdefs.h.  */
9228int i;
9229_ACEOF
9230if ac_fn_c_try_compile "$LINENO"; then :
9231  xorg_cv_cc_flag_unused_command_line_argument=yes
9232else
9233  xorg_cv_cc_flag_unused_command_line_argument=no
9234fi
9235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9236fi
9237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9238$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9239	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9240	CFLAGS="$xorg_testset_save_CFLAGS"
9241fi
9242
9243found="no"
9244
9245	if test $found = "no" ; then
9246		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9247			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9248		fi
9249
9250		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9251			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9252		fi
9253
9254		CFLAGS="$CFLAGS -Warray-bounds"
9255
9256		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5
9257$as_echo_n "checking if $CC supports-Warray-bounds... " >&6; }
9258		cacheid=xorg_cv_cc_flag__Warray_bounds
9259		if eval \${$cacheid+:} false; then :
9260  $as_echo_n "(cached) " >&6
9261else
9262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9263/* end confdefs.h.  */
9264int i;
9265int
9266main ()
9267{
9268
9269  ;
9270  return 0;
9271}
9272_ACEOF
9273if ac_fn_c_try_link "$LINENO"; then :
9274  eval $cacheid=yes
9275else
9276  eval $cacheid=no
9277fi
9278rm -f core conftest.err conftest.$ac_objext \
9279    conftest$ac_exeext conftest.$ac_ext
9280fi
9281
9282
9283		CFLAGS="$xorg_testset_save_CFLAGS"
9284
9285		eval supported=\$$cacheid
9286		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9287$as_echo "$supported" >&6; }
9288		if test "$supported" = "yes" ; then
9289			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9290			found="yes"
9291		fi
9292	fi
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308xorg_testset_save_CFLAGS="$CFLAGS"
9309
9310if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9311	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9312	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9313$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9314if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9315  $as_echo_n "(cached) " >&6
9316else
9317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9318/* end confdefs.h.  */
9319int i;
9320_ACEOF
9321if ac_fn_c_try_compile "$LINENO"; then :
9322  xorg_cv_cc_flag_unknown_warning_option=yes
9323else
9324  xorg_cv_cc_flag_unknown_warning_option=no
9325fi
9326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9327fi
9328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9329$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9330	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9331	CFLAGS="$xorg_testset_save_CFLAGS"
9332fi
9333
9334if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9335	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9336		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9337	fi
9338	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9339	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9340$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9341if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9342  $as_echo_n "(cached) " >&6
9343else
9344  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9345/* end confdefs.h.  */
9346int i;
9347_ACEOF
9348if ac_fn_c_try_compile "$LINENO"; then :
9349  xorg_cv_cc_flag_unused_command_line_argument=yes
9350else
9351  xorg_cv_cc_flag_unused_command_line_argument=no
9352fi
9353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9354fi
9355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9356$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9357	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9358	CFLAGS="$xorg_testset_save_CFLAGS"
9359fi
9360
9361found="no"
9362
9363	if test $found = "no" ; then
9364		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9365			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9366		fi
9367
9368		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9369			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9370		fi
9371
9372		CFLAGS="$CFLAGS -Wwrite-strings"
9373
9374		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5
9375$as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; }
9376		cacheid=xorg_cv_cc_flag__Wwrite_strings
9377		if eval \${$cacheid+:} false; then :
9378  $as_echo_n "(cached) " >&6
9379else
9380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9381/* end confdefs.h.  */
9382int i;
9383int
9384main ()
9385{
9386
9387  ;
9388  return 0;
9389}
9390_ACEOF
9391if ac_fn_c_try_link "$LINENO"; then :
9392  eval $cacheid=yes
9393else
9394  eval $cacheid=no
9395fi
9396rm -f core conftest.err conftest.$ac_objext \
9397    conftest$ac_exeext conftest.$ac_ext
9398fi
9399
9400
9401		CFLAGS="$xorg_testset_save_CFLAGS"
9402
9403		eval supported=\$$cacheid
9404		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9405$as_echo "$supported" >&6; }
9406		if test "$supported" = "yes" ; then
9407			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9408			found="yes"
9409		fi
9410	fi
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426xorg_testset_save_CFLAGS="$CFLAGS"
9427
9428if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9429	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9430	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9431$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9432if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9433  $as_echo_n "(cached) " >&6
9434else
9435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9436/* end confdefs.h.  */
9437int i;
9438_ACEOF
9439if ac_fn_c_try_compile "$LINENO"; then :
9440  xorg_cv_cc_flag_unknown_warning_option=yes
9441else
9442  xorg_cv_cc_flag_unknown_warning_option=no
9443fi
9444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9445fi
9446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9447$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9448	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9449	CFLAGS="$xorg_testset_save_CFLAGS"
9450fi
9451
9452if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9453	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9454		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9455	fi
9456	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9457	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9458$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9459if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9460  $as_echo_n "(cached) " >&6
9461else
9462  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9463/* end confdefs.h.  */
9464int i;
9465_ACEOF
9466if ac_fn_c_try_compile "$LINENO"; then :
9467  xorg_cv_cc_flag_unused_command_line_argument=yes
9468else
9469  xorg_cv_cc_flag_unused_command_line_argument=no
9470fi
9471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9472fi
9473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9474$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9475	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9476	CFLAGS="$xorg_testset_save_CFLAGS"
9477fi
9478
9479found="no"
9480
9481	if test $found = "no" ; then
9482		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9483			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9484		fi
9485
9486		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9487			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9488		fi
9489
9490		CFLAGS="$CFLAGS -Waddress"
9491
9492		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5
9493$as_echo_n "checking if $CC supports-Waddress... " >&6; }
9494		cacheid=xorg_cv_cc_flag__Waddress
9495		if eval \${$cacheid+:} false; then :
9496  $as_echo_n "(cached) " >&6
9497else
9498  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9499/* end confdefs.h.  */
9500int i;
9501int
9502main ()
9503{
9504
9505  ;
9506  return 0;
9507}
9508_ACEOF
9509if ac_fn_c_try_link "$LINENO"; then :
9510  eval $cacheid=yes
9511else
9512  eval $cacheid=no
9513fi
9514rm -f core conftest.err conftest.$ac_objext \
9515    conftest$ac_exeext conftest.$ac_ext
9516fi
9517
9518
9519		CFLAGS="$xorg_testset_save_CFLAGS"
9520
9521		eval supported=\$$cacheid
9522		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9523$as_echo "$supported" >&6; }
9524		if test "$supported" = "yes" ; then
9525			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9526			found="yes"
9527		fi
9528	fi
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544xorg_testset_save_CFLAGS="$CFLAGS"
9545
9546if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9547	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9548	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9549$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9550if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9551  $as_echo_n "(cached) " >&6
9552else
9553  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9554/* end confdefs.h.  */
9555int i;
9556_ACEOF
9557if ac_fn_c_try_compile "$LINENO"; then :
9558  xorg_cv_cc_flag_unknown_warning_option=yes
9559else
9560  xorg_cv_cc_flag_unknown_warning_option=no
9561fi
9562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9563fi
9564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9565$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9566	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9567	CFLAGS="$xorg_testset_save_CFLAGS"
9568fi
9569
9570if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9571	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9572		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9573	fi
9574	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9575	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9576$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9577if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9578  $as_echo_n "(cached) " >&6
9579else
9580  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9581/* end confdefs.h.  */
9582int i;
9583_ACEOF
9584if ac_fn_c_try_compile "$LINENO"; then :
9585  xorg_cv_cc_flag_unused_command_line_argument=yes
9586else
9587  xorg_cv_cc_flag_unused_command_line_argument=no
9588fi
9589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9590fi
9591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9592$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9593	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9594	CFLAGS="$xorg_testset_save_CFLAGS"
9595fi
9596
9597found="no"
9598
9599	if test $found = "no" ; then
9600		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9601			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9602		fi
9603
9604		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9605			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9606		fi
9607
9608		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9609
9610		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5
9611$as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; }
9612		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9613		if eval \${$cacheid+:} false; then :
9614  $as_echo_n "(cached) " >&6
9615else
9616  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9617/* end confdefs.h.  */
9618int i;
9619int
9620main ()
9621{
9622
9623  ;
9624  return 0;
9625}
9626_ACEOF
9627if ac_fn_c_try_link "$LINENO"; then :
9628  eval $cacheid=yes
9629else
9630  eval $cacheid=no
9631fi
9632rm -f core conftest.err conftest.$ac_objext \
9633    conftest$ac_exeext conftest.$ac_ext
9634fi
9635
9636
9637		CFLAGS="$xorg_testset_save_CFLAGS"
9638
9639		eval supported=\$$cacheid
9640		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9641$as_echo "$supported" >&6; }
9642		if test "$supported" = "yes" ; then
9643			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9644			found="yes"
9645		fi
9646	fi
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662xorg_testset_save_CFLAGS="$CFLAGS"
9663
9664if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9665	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9666	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9667$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9668if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9669  $as_echo_n "(cached) " >&6
9670else
9671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9672/* end confdefs.h.  */
9673int i;
9674_ACEOF
9675if ac_fn_c_try_compile "$LINENO"; then :
9676  xorg_cv_cc_flag_unknown_warning_option=yes
9677else
9678  xorg_cv_cc_flag_unknown_warning_option=no
9679fi
9680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9681fi
9682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9683$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9684	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9685	CFLAGS="$xorg_testset_save_CFLAGS"
9686fi
9687
9688if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9689	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9690		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9691	fi
9692	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9693	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9694$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9695if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9696  $as_echo_n "(cached) " >&6
9697else
9698  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9699/* end confdefs.h.  */
9700int i;
9701_ACEOF
9702if ac_fn_c_try_compile "$LINENO"; then :
9703  xorg_cv_cc_flag_unused_command_line_argument=yes
9704else
9705  xorg_cv_cc_flag_unused_command_line_argument=no
9706fi
9707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9708fi
9709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9710$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9711	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9712	CFLAGS="$xorg_testset_save_CFLAGS"
9713fi
9714
9715found="no"
9716
9717	if test $found = "no" ; then
9718		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9719			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9720		fi
9721
9722		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9723			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9724		fi
9725
9726		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9727
9728		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5
9729$as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; }
9730		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9731		if eval \${$cacheid+:} false; then :
9732  $as_echo_n "(cached) " >&6
9733else
9734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9735/* end confdefs.h.  */
9736int i;
9737int
9738main ()
9739{
9740
9741  ;
9742  return 0;
9743}
9744_ACEOF
9745if ac_fn_c_try_link "$LINENO"; then :
9746  eval $cacheid=yes
9747else
9748  eval $cacheid=no
9749fi
9750rm -f core conftest.err conftest.$ac_objext \
9751    conftest$ac_exeext conftest.$ac_ext
9752fi
9753
9754
9755		CFLAGS="$xorg_testset_save_CFLAGS"
9756
9757		eval supported=\$$cacheid
9758		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9759$as_echo "$supported" >&6; }
9760		if test "$supported" = "yes" ; then
9761			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9762			found="yes"
9763		fi
9764	fi
9765
9766
9767fi
9768
9769
9770
9771
9772
9773
9774
9775		CWARNFLAGS="$BASE_CFLAGS"
9776		if  test "x$GCC" = xyes ; then
9777		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9778		fi
9779
9780
9781
9782
9783
9784
9785
9786
9787# Check whether --enable-strict-compilation was given.
9788if test "${enable_strict_compilation+set}" = set; then :
9789  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9790else
9791  STRICT_COMPILE=no
9792fi
9793
9794
9795
9796
9797
9798
9799STRICT_CFLAGS=""
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813xorg_testset_save_CFLAGS="$CFLAGS"
9814
9815if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9816	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9817	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9818$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9819if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9820  $as_echo_n "(cached) " >&6
9821else
9822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9823/* end confdefs.h.  */
9824int i;
9825_ACEOF
9826if ac_fn_c_try_compile "$LINENO"; then :
9827  xorg_cv_cc_flag_unknown_warning_option=yes
9828else
9829  xorg_cv_cc_flag_unknown_warning_option=no
9830fi
9831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9832fi
9833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9834$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9835	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9836	CFLAGS="$xorg_testset_save_CFLAGS"
9837fi
9838
9839if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9840	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9841		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9842	fi
9843	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9844	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9845$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9846if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9847  $as_echo_n "(cached) " >&6
9848else
9849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9850/* end confdefs.h.  */
9851int i;
9852_ACEOF
9853if ac_fn_c_try_compile "$LINENO"; then :
9854  xorg_cv_cc_flag_unused_command_line_argument=yes
9855else
9856  xorg_cv_cc_flag_unused_command_line_argument=no
9857fi
9858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9859fi
9860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9861$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9862	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9863	CFLAGS="$xorg_testset_save_CFLAGS"
9864fi
9865
9866found="no"
9867
9868	if test $found = "no" ; then
9869		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9870			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9871		fi
9872
9873		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9874			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9875		fi
9876
9877		CFLAGS="$CFLAGS -pedantic"
9878
9879		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5
9880$as_echo_n "checking if $CC supports-pedantic... " >&6; }
9881		cacheid=xorg_cv_cc_flag__pedantic
9882		if eval \${$cacheid+:} false; then :
9883  $as_echo_n "(cached) " >&6
9884else
9885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9886/* end confdefs.h.  */
9887int i;
9888int
9889main ()
9890{
9891
9892  ;
9893  return 0;
9894}
9895_ACEOF
9896if ac_fn_c_try_link "$LINENO"; then :
9897  eval $cacheid=yes
9898else
9899  eval $cacheid=no
9900fi
9901rm -f core conftest.err conftest.$ac_objext \
9902    conftest$ac_exeext conftest.$ac_ext
9903fi
9904
9905
9906		CFLAGS="$xorg_testset_save_CFLAGS"
9907
9908		eval supported=\$$cacheid
9909		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9910$as_echo "$supported" >&6; }
9911		if test "$supported" = "yes" ; then
9912			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
9913			found="yes"
9914		fi
9915	fi
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931xorg_testset_save_CFLAGS="$CFLAGS"
9932
9933if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9934	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9935	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9936$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9937if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9938  $as_echo_n "(cached) " >&6
9939else
9940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9941/* end confdefs.h.  */
9942int i;
9943_ACEOF
9944if ac_fn_c_try_compile "$LINENO"; then :
9945  xorg_cv_cc_flag_unknown_warning_option=yes
9946else
9947  xorg_cv_cc_flag_unknown_warning_option=no
9948fi
9949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9950fi
9951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9952$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9953	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9954	CFLAGS="$xorg_testset_save_CFLAGS"
9955fi
9956
9957if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9958	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9959		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9960	fi
9961	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9962	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9963$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9964if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9965  $as_echo_n "(cached) " >&6
9966else
9967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9968/* end confdefs.h.  */
9969int i;
9970_ACEOF
9971if ac_fn_c_try_compile "$LINENO"; then :
9972  xorg_cv_cc_flag_unused_command_line_argument=yes
9973else
9974  xorg_cv_cc_flag_unused_command_line_argument=no
9975fi
9976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9977fi
9978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9979$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9980	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9981	CFLAGS="$xorg_testset_save_CFLAGS"
9982fi
9983
9984found="no"
9985
9986	if test $found = "no" ; then
9987		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9988			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9989		fi
9990
9991		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9992			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9993		fi
9994
9995		CFLAGS="$CFLAGS -Werror"
9996
9997		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5
9998$as_echo_n "checking if $CC supports-Werror... " >&6; }
9999		cacheid=xorg_cv_cc_flag__Werror
10000		if eval \${$cacheid+:} false; then :
10001  $as_echo_n "(cached) " >&6
10002else
10003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10004/* end confdefs.h.  */
10005int i;
10006int
10007main ()
10008{
10009
10010  ;
10011  return 0;
10012}
10013_ACEOF
10014if ac_fn_c_try_link "$LINENO"; then :
10015  eval $cacheid=yes
10016else
10017  eval $cacheid=no
10018fi
10019rm -f core conftest.err conftest.$ac_objext \
10020    conftest$ac_exeext conftest.$ac_ext
10021fi
10022
10023
10024		CFLAGS="$xorg_testset_save_CFLAGS"
10025
10026		eval supported=\$$cacheid
10027		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10028$as_echo "$supported" >&6; }
10029		if test "$supported" = "yes" ; then
10030			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10031			found="yes"
10032		fi
10033	fi
10034
10035	if test $found = "no" ; then
10036		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10037			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10038		fi
10039
10040		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10041			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10042		fi
10043
10044		CFLAGS="$CFLAGS -errwarn"
10045
10046		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5
10047$as_echo_n "checking if $CC supports-errwarn... " >&6; }
10048		cacheid=xorg_cv_cc_flag__errwarn
10049		if eval \${$cacheid+:} false; then :
10050  $as_echo_n "(cached) " >&6
10051else
10052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10053/* end confdefs.h.  */
10054int i;
10055int
10056main ()
10057{
10058
10059  ;
10060  return 0;
10061}
10062_ACEOF
10063if ac_fn_c_try_link "$LINENO"; then :
10064  eval $cacheid=yes
10065else
10066  eval $cacheid=no
10067fi
10068rm -f core conftest.err conftest.$ac_objext \
10069    conftest$ac_exeext conftest.$ac_ext
10070fi
10071
10072
10073		CFLAGS="$xorg_testset_save_CFLAGS"
10074
10075		eval supported=\$$cacheid
10076		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10077$as_echo "$supported" >&6; }
10078		if test "$supported" = "yes" ; then
10079			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10080			found="yes"
10081		fi
10082	fi
10083
10084
10085
10086# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10087# activate it with -Werror, so we add it here explicitly.
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101xorg_testset_save_CFLAGS="$CFLAGS"
10102
10103if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10104	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10105	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10106$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10107if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10108  $as_echo_n "(cached) " >&6
10109else
10110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10111/* end confdefs.h.  */
10112int i;
10113_ACEOF
10114if ac_fn_c_try_compile "$LINENO"; then :
10115  xorg_cv_cc_flag_unknown_warning_option=yes
10116else
10117  xorg_cv_cc_flag_unknown_warning_option=no
10118fi
10119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10120fi
10121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10122$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10123	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10124	CFLAGS="$xorg_testset_save_CFLAGS"
10125fi
10126
10127if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10128	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10129		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10130	fi
10131	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10132	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10133$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10134if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10135  $as_echo_n "(cached) " >&6
10136else
10137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10138/* end confdefs.h.  */
10139int i;
10140_ACEOF
10141if ac_fn_c_try_compile "$LINENO"; then :
10142  xorg_cv_cc_flag_unused_command_line_argument=yes
10143else
10144  xorg_cv_cc_flag_unused_command_line_argument=no
10145fi
10146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10147fi
10148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10149$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10150	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10151	CFLAGS="$xorg_testset_save_CFLAGS"
10152fi
10153
10154found="no"
10155
10156	if test $found = "no" ; then
10157		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10158			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10159		fi
10160
10161		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10162			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10163		fi
10164
10165		CFLAGS="$CFLAGS -Werror=attributes"
10166
10167		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5
10168$as_echo_n "checking if $CC supports-Werror=attributes... " >&6; }
10169		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10170		if eval \${$cacheid+:} false; then :
10171  $as_echo_n "(cached) " >&6
10172else
10173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10174/* end confdefs.h.  */
10175int i;
10176int
10177main ()
10178{
10179
10180  ;
10181  return 0;
10182}
10183_ACEOF
10184if ac_fn_c_try_link "$LINENO"; then :
10185  eval $cacheid=yes
10186else
10187  eval $cacheid=no
10188fi
10189rm -f core conftest.err conftest.$ac_objext \
10190    conftest$ac_exeext conftest.$ac_ext
10191fi
10192
10193
10194		CFLAGS="$xorg_testset_save_CFLAGS"
10195
10196		eval supported=\$$cacheid
10197		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10198$as_echo "$supported" >&6; }
10199		if test "$supported" = "yes" ; then
10200			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10201			found="yes"
10202		fi
10203	fi
10204
10205
10206
10207if test "x$STRICT_COMPILE" = "xyes"; then
10208    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10209    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10210fi
10211
10212
10213
10214
10215
10216
10217cat >>confdefs.h <<_ACEOF
10218#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10219_ACEOF
10220
10221	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10222	if test "x$PVM" = "x"; then
10223		PVM="0"
10224	fi
10225
10226cat >>confdefs.h <<_ACEOF
10227#define PACKAGE_VERSION_MINOR $PVM
10228_ACEOF
10229
10230	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10231	if test "x$PVP" = "x"; then
10232		PVP="0"
10233	fi
10234
10235cat >>confdefs.h <<_ACEOF
10236#define PACKAGE_VERSION_PATCHLEVEL $PVP
10237_ACEOF
10238
10239
10240
10241CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10242mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10243|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10244echo 'git directory not found: installing possibly empty changelog.' >&2)"
10245
10246
10247
10248
10249macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10250INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10251mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10252|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10253echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10254
10255
10256
10257
10258
10259
10260if test x$APP_MAN_SUFFIX = x    ; then
10261    APP_MAN_SUFFIX=1
10262fi
10263if test x$APP_MAN_DIR = x    ; then
10264    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10265fi
10266
10267if test x$LIB_MAN_SUFFIX = x    ; then
10268    LIB_MAN_SUFFIX=3
10269fi
10270if test x$LIB_MAN_DIR = x    ; then
10271    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10272fi
10273
10274if test x$FILE_MAN_SUFFIX = x    ; then
10275    case $host_os in
10276	solaris*)	FILE_MAN_SUFFIX=4  ;;
10277	*)		FILE_MAN_SUFFIX=5  ;;
10278    esac
10279fi
10280if test x$FILE_MAN_DIR = x    ; then
10281    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10282fi
10283
10284if test x$MISC_MAN_SUFFIX = x    ; then
10285    case $host_os in
10286	solaris*)	MISC_MAN_SUFFIX=5  ;;
10287	*)		MISC_MAN_SUFFIX=7  ;;
10288    esac
10289fi
10290if test x$MISC_MAN_DIR = x    ; then
10291    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10292fi
10293
10294if test x$DRIVER_MAN_SUFFIX = x    ; then
10295    case $host_os in
10296	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10297	*)		DRIVER_MAN_SUFFIX=4  ;;
10298    esac
10299fi
10300if test x$DRIVER_MAN_DIR = x    ; then
10301    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10302fi
10303
10304if test x$ADMIN_MAN_SUFFIX = x    ; then
10305    case $host_os in
10306	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10307	*)		ADMIN_MAN_SUFFIX=8  ;;
10308    esac
10309fi
10310if test x$ADMIN_MAN_DIR = x    ; then
10311    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10312fi
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328XORG_MAN_PAGE="X Version 11"
10329
10330MAN_SUBSTS="\
10331	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10332	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10333	-e 's|__xservername__|Xorg|g' \
10334	-e 's|__xconfigfile__|xorg.conf|g' \
10335	-e 's|__projectroot__|\$(prefix)|g' \
10336	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10337	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10338	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10339	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10340	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10341	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10342	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10343
10344
10345
10346# Check whether --enable-silent-rules was given.
10347if test "${enable_silent_rules+set}" = set; then :
10348  enableval=$enable_silent_rules;
10349fi
10350
10351case $enable_silent_rules in
10352yes) AM_DEFAULT_VERBOSITY=0;;
10353no)  AM_DEFAULT_VERBOSITY=1;;
10354*)   AM_DEFAULT_VERBOSITY=0;;
10355esac
10356AM_BACKSLASH='\'
10357
10358
10359
10360# Checks for pkg-config packages
10361
10362pkg_failed=no
10363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLSATOMS" >&5
10364$as_echo_n "checking for XLSATOMS... " >&6; }
10365
10366if test -n "$XLSATOMS_CFLAGS"; then
10367    pkg_cv_XLSATOMS_CFLAGS="$XLSATOMS_CFLAGS"
10368 elif test -n "$PKG_CONFIG"; then
10369    if test -n "$PKG_CONFIG" && \
10370    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb\""; } >&5
10371  ($PKG_CONFIG --exists --print-errors "xcb") 2>&5
10372  ac_status=$?
10373  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10374  test $ac_status = 0; }; then
10375  pkg_cv_XLSATOMS_CFLAGS=`$PKG_CONFIG --cflags "xcb" 2>/dev/null`
10376else
10377  pkg_failed=yes
10378fi
10379 else
10380    pkg_failed=untried
10381fi
10382if test -n "$XLSATOMS_LIBS"; then
10383    pkg_cv_XLSATOMS_LIBS="$XLSATOMS_LIBS"
10384 elif test -n "$PKG_CONFIG"; then
10385    if test -n "$PKG_CONFIG" && \
10386    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb\""; } >&5
10387  ($PKG_CONFIG --exists --print-errors "xcb") 2>&5
10388  ac_status=$?
10389  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10390  test $ac_status = 0; }; then
10391  pkg_cv_XLSATOMS_LIBS=`$PKG_CONFIG --libs "xcb" 2>/dev/null`
10392else
10393  pkg_failed=yes
10394fi
10395 else
10396    pkg_failed=untried
10397fi
10398
10399
10400
10401if test $pkg_failed = yes; then
10402
10403if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10404        _pkg_short_errors_supported=yes
10405else
10406        _pkg_short_errors_supported=no
10407fi
10408        if test $_pkg_short_errors_supported = yes; then
10409	        XLSATOMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xcb" 2>&1`
10410        else
10411	        XLSATOMS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xcb" 2>&1`
10412        fi
10413	# Put the nasty error message in config.log where it belongs
10414	echo "$XLSATOMS_PKG_ERRORS" >&5
10415
10416	as_fn_error $? "Package requirements (xcb) were not met:
10417
10418$XLSATOMS_PKG_ERRORS
10419
10420Consider adjusting the PKG_CONFIG_PATH environment variable if you
10421installed software in a non-standard prefix.
10422
10423Alternatively, you may set the environment variables XLSATOMS_CFLAGS
10424and XLSATOMS_LIBS to avoid the need to call pkg-config.
10425See the pkg-config man page for more details.
10426" "$LINENO" 5
10427elif test $pkg_failed = untried; then
10428	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10429$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10430as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10431is in your PATH or set the PKG_CONFIG environment variable to the full
10432path to pkg-config.
10433
10434Alternatively, you may set the environment variables XLSATOMS_CFLAGS
10435and XLSATOMS_LIBS to avoid the need to call pkg-config.
10436See the pkg-config man page for more details.
10437
10438To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10439See \`config.log' for more details" "$LINENO" 5; }
10440else
10441	XLSATOMS_CFLAGS=$pkg_cv_XLSATOMS_CFLAGS
10442	XLSATOMS_LIBS=$pkg_cv_XLSATOMS_LIBS
10443        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10444$as_echo "yes" >&6; }
10445	:
10446fi
10447
10448ac_config_files="$ac_config_files Makefile man/Makefile"
10449
10450cat >confcache <<\_ACEOF
10451# This file is a shell script that caches the results of configure
10452# tests run on this system so they can be shared between configure
10453# scripts and configure runs, see configure's option --config-cache.
10454# It is not useful on other systems.  If it contains results you don't
10455# want to keep, you may remove or edit it.
10456#
10457# config.status only pays attention to the cache file if you give it
10458# the --recheck option to rerun configure.
10459#
10460# `ac_cv_env_foo' variables (set or unset) will be overridden when
10461# loading this file, other *unset* `ac_cv_foo' will be assigned the
10462# following values.
10463
10464_ACEOF
10465
10466# The following way of writing the cache mishandles newlines in values,
10467# but we know of no workaround that is simple, portable, and efficient.
10468# So, we kill variables containing newlines.
10469# Ultrix sh set writes to stderr and can't be redirected directly,
10470# and sets the high bit in the cache file unless we assign to the vars.
10471(
10472  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10473    eval ac_val=\$$ac_var
10474    case $ac_val in #(
10475    *${as_nl}*)
10476      case $ac_var in #(
10477      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10478$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10479      esac
10480      case $ac_var in #(
10481      _ | IFS | as_nl) ;; #(
10482      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10483      *) { eval $ac_var=; unset $ac_var;} ;;
10484      esac ;;
10485    esac
10486  done
10487
10488  (set) 2>&1 |
10489    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10490    *${as_nl}ac_space=\ *)
10491      # `set' does not quote correctly, so add quotes: double-quote
10492      # substitution turns \\\\ into \\, and sed turns \\ into \.
10493      sed -n \
10494	"s/'/'\\\\''/g;
10495	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10496      ;; #(
10497    *)
10498      # `set' quotes correctly as required by POSIX, so do not add quotes.
10499      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10500      ;;
10501    esac |
10502    sort
10503) |
10504  sed '
10505     /^ac_cv_env_/b end
10506     t clear
10507     :clear
10508     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10509     t end
10510     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10511     :end' >>confcache
10512if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10513  if test -w "$cache_file"; then
10514    if test "x$cache_file" != "x/dev/null"; then
10515      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10516$as_echo "$as_me: updating cache $cache_file" >&6;}
10517      if test ! -f "$cache_file" || test -h "$cache_file"; then
10518	cat confcache >"$cache_file"
10519      else
10520        case $cache_file in #(
10521        */* | ?:*)
10522	  mv -f confcache "$cache_file"$$ &&
10523	  mv -f "$cache_file"$$ "$cache_file" ;; #(
10524        *)
10525	  mv -f confcache "$cache_file" ;;
10526	esac
10527      fi
10528    fi
10529  else
10530    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10531$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10532  fi
10533fi
10534rm -f confcache
10535
10536test "x$prefix" = xNONE && prefix=$ac_default_prefix
10537# Let make expand exec_prefix.
10538test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10539
10540DEFS=-DHAVE_CONFIG_H
10541
10542ac_libobjs=
10543ac_ltlibobjs=
10544U=
10545for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10546  # 1. Remove the extension, and $U if already installed.
10547  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10548  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10549  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10550  #    will be set to the directory where LIBOBJS objects are built.
10551  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10552  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10553done
10554LIBOBJS=$ac_libobjs
10555
10556LTLIBOBJS=$ac_ltlibobjs
10557
10558
10559 if test -n "$EXEEXT"; then
10560  am__EXEEXT_TRUE=
10561  am__EXEEXT_FALSE='#'
10562else
10563  am__EXEEXT_TRUE='#'
10564  am__EXEEXT_FALSE=
10565fi
10566
10567if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10568  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10569Usually this means the macro was only invoked conditionally." "$LINENO" 5
10570fi
10571if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10572  as_fn_error $? "conditional \"AMDEP\" was never defined.
10573Usually this means the macro was only invoked conditionally." "$LINENO" 5
10574fi
10575if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10576  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10577Usually this means the macro was only invoked conditionally." "$LINENO" 5
10578fi
10579
10580: "${CONFIG_STATUS=./config.status}"
10581ac_write_fail=0
10582ac_clean_files_save=$ac_clean_files
10583ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10584{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10585$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10586as_write_fail=0
10587cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10588#! $SHELL
10589# Generated by $as_me.
10590# Run this file to recreate the current configuration.
10591# Compiler output produced by configure, useful for debugging
10592# configure, is in config.log if it exists.
10593
10594debug=false
10595ac_cs_recheck=false
10596ac_cs_silent=false
10597
10598SHELL=\${CONFIG_SHELL-$SHELL}
10599export SHELL
10600_ASEOF
10601cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10602## -------------------- ##
10603## M4sh Initialization. ##
10604## -------------------- ##
10605
10606# Be more Bourne compatible
10607DUALCASE=1; export DUALCASE # for MKS sh
10608if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10609  emulate sh
10610  NULLCMD=:
10611  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10612  # is contrary to our usage.  Disable this feature.
10613  alias -g '${1+"$@"}'='"$@"'
10614  setopt NO_GLOB_SUBST
10615else
10616  case `(set -o) 2>/dev/null` in #(
10617  *posix*) :
10618    set -o posix ;; #(
10619  *) :
10620     ;;
10621esac
10622fi
10623
10624
10625as_nl='
10626'
10627export as_nl
10628# Printing a long string crashes Solaris 7 /usr/bin/printf.
10629as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10630as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10631as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10632# Prefer a ksh shell builtin over an external printf program on Solaris,
10633# but without wasting forks for bash or zsh.
10634if test -z "$BASH_VERSION$ZSH_VERSION" \
10635    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10636  as_echo='print -r --'
10637  as_echo_n='print -rn --'
10638elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10639  as_echo='printf %s\n'
10640  as_echo_n='printf %s'
10641else
10642  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10643    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10644    as_echo_n='/usr/ucb/echo -n'
10645  else
10646    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10647    as_echo_n_body='eval
10648      arg=$1;
10649      case $arg in #(
10650      *"$as_nl"*)
10651	expr "X$arg" : "X\\(.*\\)$as_nl";
10652	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10653      esac;
10654      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10655    '
10656    export as_echo_n_body
10657    as_echo_n='sh -c $as_echo_n_body as_echo'
10658  fi
10659  export as_echo_body
10660  as_echo='sh -c $as_echo_body as_echo'
10661fi
10662
10663# The user is always right.
10664if test "${PATH_SEPARATOR+set}" != set; then
10665  PATH_SEPARATOR=:
10666  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10667    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10668      PATH_SEPARATOR=';'
10669  }
10670fi
10671
10672
10673# IFS
10674# We need space, tab and new line, in precisely that order.  Quoting is
10675# there to prevent editors from complaining about space-tab.
10676# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10677# splitting by setting IFS to empty value.)
10678IFS=" ""	$as_nl"
10679
10680# Find who we are.  Look in the path if we contain no directory separator.
10681as_myself=
10682case $0 in #((
10683  *[\\/]* ) as_myself=$0 ;;
10684  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10685for as_dir in $PATH
10686do
10687  IFS=$as_save_IFS
10688  test -z "$as_dir" && as_dir=.
10689    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10690  done
10691IFS=$as_save_IFS
10692
10693     ;;
10694esac
10695# We did not find ourselves, most probably we were run as `sh COMMAND'
10696# in which case we are not to be found in the path.
10697if test "x$as_myself" = x; then
10698  as_myself=$0
10699fi
10700if test ! -f "$as_myself"; then
10701  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10702  exit 1
10703fi
10704
10705# Unset variables that we do not need and which cause bugs (e.g. in
10706# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
10707# suppresses any "Segmentation fault" message there.  '((' could
10708# trigger a bug in pdksh 5.2.14.
10709for as_var in BASH_ENV ENV MAIL MAILPATH
10710do eval test x\${$as_var+set} = xset \
10711  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10712done
10713PS1='$ '
10714PS2='> '
10715PS4='+ '
10716
10717# NLS nuisances.
10718LC_ALL=C
10719export LC_ALL
10720LANGUAGE=C
10721export LANGUAGE
10722
10723# CDPATH.
10724(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10725
10726
10727# as_fn_error STATUS ERROR [LINENO LOG_FD]
10728# ----------------------------------------
10729# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10730# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10731# script with STATUS, using 1 if that was 0.
10732as_fn_error ()
10733{
10734  as_status=$1; test $as_status -eq 0 && as_status=1
10735  if test "$4"; then
10736    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10737    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10738  fi
10739  $as_echo "$as_me: error: $2" >&2
10740  as_fn_exit $as_status
10741} # as_fn_error
10742
10743
10744# as_fn_set_status STATUS
10745# -----------------------
10746# Set $? to STATUS, without forking.
10747as_fn_set_status ()
10748{
10749  return $1
10750} # as_fn_set_status
10751
10752# as_fn_exit STATUS
10753# -----------------
10754# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10755as_fn_exit ()
10756{
10757  set +e
10758  as_fn_set_status $1
10759  exit $1
10760} # as_fn_exit
10761
10762# as_fn_unset VAR
10763# ---------------
10764# Portably unset VAR.
10765as_fn_unset ()
10766{
10767  { eval $1=; unset $1;}
10768}
10769as_unset=as_fn_unset
10770# as_fn_append VAR VALUE
10771# ----------------------
10772# Append the text in VALUE to the end of the definition contained in VAR. Take
10773# advantage of any shell optimizations that allow amortized linear growth over
10774# repeated appends, instead of the typical quadratic growth present in naive
10775# implementations.
10776if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10777  eval 'as_fn_append ()
10778  {
10779    eval $1+=\$2
10780  }'
10781else
10782  as_fn_append ()
10783  {
10784    eval $1=\$$1\$2
10785  }
10786fi # as_fn_append
10787
10788# as_fn_arith ARG...
10789# ------------------
10790# Perform arithmetic evaluation on the ARGs, and store the result in the
10791# global $as_val. Take advantage of shells that can avoid forks. The arguments
10792# must be portable across $(()) and expr.
10793if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10794  eval 'as_fn_arith ()
10795  {
10796    as_val=$(( $* ))
10797  }'
10798else
10799  as_fn_arith ()
10800  {
10801    as_val=`expr "$@" || test $? -eq 1`
10802  }
10803fi # as_fn_arith
10804
10805
10806if expr a : '\(a\)' >/dev/null 2>&1 &&
10807   test "X`expr 00001 : '.*\(...\)'`" = X001; then
10808  as_expr=expr
10809else
10810  as_expr=false
10811fi
10812
10813if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10814  as_basename=basename
10815else
10816  as_basename=false
10817fi
10818
10819if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10820  as_dirname=dirname
10821else
10822  as_dirname=false
10823fi
10824
10825as_me=`$as_basename -- "$0" ||
10826$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10827	 X"$0" : 'X\(//\)$' \| \
10828	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10829$as_echo X/"$0" |
10830    sed '/^.*\/\([^/][^/]*\)\/*$/{
10831	    s//\1/
10832	    q
10833	  }
10834	  /^X\/\(\/\/\)$/{
10835	    s//\1/
10836	    q
10837	  }
10838	  /^X\/\(\/\).*/{
10839	    s//\1/
10840	    q
10841	  }
10842	  s/.*/./; q'`
10843
10844# Avoid depending upon Character Ranges.
10845as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10846as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10847as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10848as_cr_digits='0123456789'
10849as_cr_alnum=$as_cr_Letters$as_cr_digits
10850
10851ECHO_C= ECHO_N= ECHO_T=
10852case `echo -n x` in #(((((
10853-n*)
10854  case `echo 'xy\c'` in
10855  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
10856  xy)  ECHO_C='\c';;
10857  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
10858       ECHO_T='	';;
10859  esac;;
10860*)
10861  ECHO_N='-n';;
10862esac
10863
10864rm -f conf$$ conf$$.exe conf$$.file
10865if test -d conf$$.dir; then
10866  rm -f conf$$.dir/conf$$.file
10867else
10868  rm -f conf$$.dir
10869  mkdir conf$$.dir 2>/dev/null
10870fi
10871if (echo >conf$$.file) 2>/dev/null; then
10872  if ln -s conf$$.file conf$$ 2>/dev/null; then
10873    as_ln_s='ln -s'
10874    # ... but there are two gotchas:
10875    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10876    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10877    # In both cases, we have to default to `cp -p'.
10878    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10879      as_ln_s='cp -p'
10880  elif ln conf$$.file conf$$ 2>/dev/null; then
10881    as_ln_s=ln
10882  else
10883    as_ln_s='cp -p'
10884  fi
10885else
10886  as_ln_s='cp -p'
10887fi
10888rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10889rmdir conf$$.dir 2>/dev/null
10890
10891
10892# as_fn_mkdir_p
10893# -------------
10894# Create "$as_dir" as a directory, including parents if necessary.
10895as_fn_mkdir_p ()
10896{
10897
10898  case $as_dir in #(
10899  -*) as_dir=./$as_dir;;
10900  esac
10901  test -d "$as_dir" || eval $as_mkdir_p || {
10902    as_dirs=
10903    while :; do
10904      case $as_dir in #(
10905      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10906      *) as_qdir=$as_dir;;
10907      esac
10908      as_dirs="'$as_qdir' $as_dirs"
10909      as_dir=`$as_dirname -- "$as_dir" ||
10910$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10911	 X"$as_dir" : 'X\(//\)[^/]' \| \
10912	 X"$as_dir" : 'X\(//\)$' \| \
10913	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10914$as_echo X"$as_dir" |
10915    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10916	    s//\1/
10917	    q
10918	  }
10919	  /^X\(\/\/\)[^/].*/{
10920	    s//\1/
10921	    q
10922	  }
10923	  /^X\(\/\/\)$/{
10924	    s//\1/
10925	    q
10926	  }
10927	  /^X\(\/\).*/{
10928	    s//\1/
10929	    q
10930	  }
10931	  s/.*/./; q'`
10932      test -d "$as_dir" && break
10933    done
10934    test -z "$as_dirs" || eval "mkdir $as_dirs"
10935  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10936
10937
10938} # as_fn_mkdir_p
10939if mkdir -p . 2>/dev/null; then
10940  as_mkdir_p='mkdir -p "$as_dir"'
10941else
10942  test -d ./-p && rmdir ./-p
10943  as_mkdir_p=false
10944fi
10945
10946if test -x / >/dev/null 2>&1; then
10947  as_test_x='test -x'
10948else
10949  if ls -dL / >/dev/null 2>&1; then
10950    as_ls_L_option=L
10951  else
10952    as_ls_L_option=
10953  fi
10954  as_test_x='
10955    eval sh -c '\''
10956      if test -d "$1"; then
10957	test -d "$1/.";
10958      else
10959	case $1 in #(
10960	-*)set "./$1";;
10961	esac;
10962	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10963	???[sx]*):;;*)false;;esac;fi
10964    '\'' sh
10965  '
10966fi
10967as_executable_p=$as_test_x
10968
10969# Sed expression to map a string onto a valid CPP name.
10970as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10971
10972# Sed expression to map a string onto a valid variable name.
10973as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10974
10975
10976exec 6>&1
10977## ----------------------------------- ##
10978## Main body of $CONFIG_STATUS script. ##
10979## ----------------------------------- ##
10980_ASEOF
10981test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10982
10983cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10984# Save the log message, to keep $0 and so on meaningful, and to
10985# report actual input values of CONFIG_FILES etc. instead of their
10986# values after options handling.
10987ac_log="
10988This file was extended by xlsatoms $as_me 1.1.1, which was
10989generated by GNU Autoconf 2.68.  Invocation command line was
10990
10991  CONFIG_FILES    = $CONFIG_FILES
10992  CONFIG_HEADERS  = $CONFIG_HEADERS
10993  CONFIG_LINKS    = $CONFIG_LINKS
10994  CONFIG_COMMANDS = $CONFIG_COMMANDS
10995  $ $0 $@
10996
10997on `(hostname || uname -n) 2>/dev/null | sed 1q`
10998"
10999
11000_ACEOF
11001
11002case $ac_config_files in *"
11003"*) set x $ac_config_files; shift; ac_config_files=$*;;
11004esac
11005
11006case $ac_config_headers in *"
11007"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11008esac
11009
11010
11011cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11012# Files that config.status was made for.
11013config_files="$ac_config_files"
11014config_headers="$ac_config_headers"
11015config_commands="$ac_config_commands"
11016
11017_ACEOF
11018
11019cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11020ac_cs_usage="\
11021\`$as_me' instantiates files and other configuration actions
11022from templates according to the current configuration.  Unless the files
11023and actions are specified as TAGs, all are instantiated by default.
11024
11025Usage: $0 [OPTION]... [TAG]...
11026
11027  -h, --help       print this help, then exit
11028  -V, --version    print version number and configuration settings, then exit
11029      --config     print configuration, then exit
11030  -q, --quiet, --silent
11031                   do not print progress messages
11032  -d, --debug      don't remove temporary files
11033      --recheck    update $as_me by reconfiguring in the same conditions
11034      --file=FILE[:TEMPLATE]
11035                   instantiate the configuration file FILE
11036      --header=FILE[:TEMPLATE]
11037                   instantiate the configuration header FILE
11038
11039Configuration files:
11040$config_files
11041
11042Configuration headers:
11043$config_headers
11044
11045Configuration commands:
11046$config_commands
11047
11048Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11049
11050_ACEOF
11051cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11052ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11053ac_cs_version="\\
11054xlsatoms config.status 1.1.1
11055configured by $0, generated by GNU Autoconf 2.68,
11056  with options \\"\$ac_cs_config\\"
11057
11058Copyright (C) 2010 Free Software Foundation, Inc.
11059This config.status script is free software; the Free Software Foundation
11060gives unlimited permission to copy, distribute and modify it."
11061
11062ac_pwd='$ac_pwd'
11063srcdir='$srcdir'
11064INSTALL='$INSTALL'
11065MKDIR_P='$MKDIR_P'
11066AWK='$AWK'
11067test -n "\$AWK" || AWK=awk
11068_ACEOF
11069
11070cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11071# The default lists apply if the user does not specify any file.
11072ac_need_defaults=:
11073while test $# != 0
11074do
11075  case $1 in
11076  --*=?*)
11077    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11078    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11079    ac_shift=:
11080    ;;
11081  --*=)
11082    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11083    ac_optarg=
11084    ac_shift=:
11085    ;;
11086  *)
11087    ac_option=$1
11088    ac_optarg=$2
11089    ac_shift=shift
11090    ;;
11091  esac
11092
11093  case $ac_option in
11094  # Handling of the options.
11095  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11096    ac_cs_recheck=: ;;
11097  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11098    $as_echo "$ac_cs_version"; exit ;;
11099  --config | --confi | --conf | --con | --co | --c )
11100    $as_echo "$ac_cs_config"; exit ;;
11101  --debug | --debu | --deb | --de | --d | -d )
11102    debug=: ;;
11103  --file | --fil | --fi | --f )
11104    $ac_shift
11105    case $ac_optarg in
11106    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11107    '') as_fn_error $? "missing file argument" ;;
11108    esac
11109    as_fn_append CONFIG_FILES " '$ac_optarg'"
11110    ac_need_defaults=false;;
11111  --header | --heade | --head | --hea )
11112    $ac_shift
11113    case $ac_optarg in
11114    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11115    esac
11116    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11117    ac_need_defaults=false;;
11118  --he | --h)
11119    # Conflict between --help and --header
11120    as_fn_error $? "ambiguous option: \`$1'
11121Try \`$0 --help' for more information.";;
11122  --help | --hel | -h )
11123    $as_echo "$ac_cs_usage"; exit ;;
11124  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11125  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11126    ac_cs_silent=: ;;
11127
11128  # This is an error.
11129  -*) as_fn_error $? "unrecognized option: \`$1'
11130Try \`$0 --help' for more information." ;;
11131
11132  *) as_fn_append ac_config_targets " $1"
11133     ac_need_defaults=false ;;
11134
11135  esac
11136  shift
11137done
11138
11139ac_configure_extra_args=
11140
11141if $ac_cs_silent; then
11142  exec 6>/dev/null
11143  ac_configure_extra_args="$ac_configure_extra_args --silent"
11144fi
11145
11146_ACEOF
11147cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11148if \$ac_cs_recheck; then
11149  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11150  shift
11151  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11152  CONFIG_SHELL='$SHELL'
11153  export CONFIG_SHELL
11154  exec "\$@"
11155fi
11156
11157_ACEOF
11158cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11159exec 5>>config.log
11160{
11161  echo
11162  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11163## Running $as_me. ##
11164_ASBOX
11165  $as_echo "$ac_log"
11166} >&5
11167
11168_ACEOF
11169cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11170#
11171# INIT-COMMANDS
11172#
11173AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11174
11175_ACEOF
11176
11177cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11178
11179# Handling of arguments.
11180for ac_config_target in $ac_config_targets
11181do
11182  case $ac_config_target in
11183    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11184    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11185    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11186    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11187
11188  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11189  esac
11190done
11191
11192
11193# If the user did not use the arguments to specify the items to instantiate,
11194# then the envvar interface is used.  Set only those that are not.
11195# We use the long form for the default assignment because of an extremely
11196# bizarre bug on SunOS 4.1.3.
11197if $ac_need_defaults; then
11198  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11199  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11200  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11201fi
11202
11203# Have a temporary directory for convenience.  Make it in the build tree
11204# simply because there is no reason against having it here, and in addition,
11205# creating and moving files from /tmp can sometimes cause problems.
11206# Hook for its removal unless debugging.
11207# Note that there is a small window in which the directory will not be cleaned:
11208# after its creation but before its name has been assigned to `$tmp'.
11209$debug ||
11210{
11211  tmp= ac_tmp=
11212  trap 'exit_status=$?
11213  : "${ac_tmp:=$tmp}"
11214  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11215' 0
11216  trap 'as_fn_exit 1' 1 2 13 15
11217}
11218# Create a (secure) tmp directory for tmp files.
11219
11220{
11221  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11222  test -d "$tmp"
11223}  ||
11224{
11225  tmp=./conf$$-$RANDOM
11226  (umask 077 && mkdir "$tmp")
11227} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11228ac_tmp=$tmp
11229
11230# Set up the scripts for CONFIG_FILES section.
11231# No need to generate them if there are no CONFIG_FILES.
11232# This happens for instance with `./config.status config.h'.
11233if test -n "$CONFIG_FILES"; then
11234
11235
11236ac_cr=`echo X | tr X '\015'`
11237# On cygwin, bash can eat \r inside `` if the user requested igncr.
11238# But we know of no other shell where ac_cr would be empty at this
11239# point, so we can use a bashism as a fallback.
11240if test "x$ac_cr" = x; then
11241  eval ac_cr=\$\'\\r\'
11242fi
11243ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11244if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11245  ac_cs_awk_cr='\\r'
11246else
11247  ac_cs_awk_cr=$ac_cr
11248fi
11249
11250echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11251_ACEOF
11252
11253
11254{
11255  echo "cat >conf$$subs.awk <<_ACEOF" &&
11256  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11257  echo "_ACEOF"
11258} >conf$$subs.sh ||
11259  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11260ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11261ac_delim='%!_!# '
11262for ac_last_try in false false false false false :; do
11263  . ./conf$$subs.sh ||
11264    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11265
11266  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11267  if test $ac_delim_n = $ac_delim_num; then
11268    break
11269  elif $ac_last_try; then
11270    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11271  else
11272    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11273  fi
11274done
11275rm -f conf$$subs.sh
11276
11277cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11278cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11279_ACEOF
11280sed -n '
11281h
11282s/^/S["/; s/!.*/"]=/
11283p
11284g
11285s/^[^!]*!//
11286:repl
11287t repl
11288s/'"$ac_delim"'$//
11289t delim
11290:nl
11291h
11292s/\(.\{148\}\)..*/\1/
11293t more1
11294s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11295p
11296n
11297b repl
11298:more1
11299s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11300p
11301g
11302s/.\{148\}//
11303t nl
11304:delim
11305h
11306s/\(.\{148\}\)..*/\1/
11307t more2
11308s/["\\]/\\&/g; s/^/"/; s/$/"/
11309p
11310b
11311:more2
11312s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11313p
11314g
11315s/.\{148\}//
11316t delim
11317' <conf$$subs.awk | sed '
11318/^[^""]/{
11319  N
11320  s/\n//
11321}
11322' >>$CONFIG_STATUS || ac_write_fail=1
11323rm -f conf$$subs.awk
11324cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11325_ACAWK
11326cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11327  for (key in S) S_is_set[key] = 1
11328  FS = ""
11329
11330}
11331{
11332  line = $ 0
11333  nfields = split(line, field, "@")
11334  substed = 0
11335  len = length(field[1])
11336  for (i = 2; i < nfields; i++) {
11337    key = field[i]
11338    keylen = length(key)
11339    if (S_is_set[key]) {
11340      value = S[key]
11341      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11342      len += length(value) + length(field[++i])
11343      substed = 1
11344    } else
11345      len += 1 + keylen
11346  }
11347
11348  print line
11349}
11350
11351_ACAWK
11352_ACEOF
11353cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11354if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11355  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11356else
11357  cat
11358fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11359  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11360_ACEOF
11361
11362# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11363# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11364# trailing colons and then remove the whole line if VPATH becomes empty
11365# (actually we leave an empty line to preserve line numbers).
11366if test "x$srcdir" = x.; then
11367  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
11368h
11369s///
11370s/^/:/
11371s/[	 ]*$/:/
11372s/:\$(srcdir):/:/g
11373s/:\${srcdir}:/:/g
11374s/:@srcdir@:/:/g
11375s/^:*//
11376s/:*$//
11377x
11378s/\(=[	 ]*\).*/\1/
11379G
11380s/\n//
11381s/^[^=]*=[	 ]*$//
11382}'
11383fi
11384
11385cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11386fi # test -n "$CONFIG_FILES"
11387
11388# Set up the scripts for CONFIG_HEADERS section.
11389# No need to generate them if there are no CONFIG_HEADERS.
11390# This happens for instance with `./config.status Makefile'.
11391if test -n "$CONFIG_HEADERS"; then
11392cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11393BEGIN {
11394_ACEOF
11395
11396# Transform confdefs.h into an awk script `defines.awk', embedded as
11397# here-document in config.status, that substitutes the proper values into
11398# config.h.in to produce config.h.
11399
11400# Create a delimiter string that does not exist in confdefs.h, to ease
11401# handling of long lines.
11402ac_delim='%!_!# '
11403for ac_last_try in false false :; do
11404  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11405  if test -z "$ac_tt"; then
11406    break
11407  elif $ac_last_try; then
11408    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11409  else
11410    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11411  fi
11412done
11413
11414# For the awk script, D is an array of macro values keyed by name,
11415# likewise P contains macro parameters if any.  Preserve backslash
11416# newline sequences.
11417
11418ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11419sed -n '
11420s/.\{148\}/&'"$ac_delim"'/g
11421t rset
11422:rset
11423s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
11424t def
11425d
11426:def
11427s/\\$//
11428t bsnl
11429s/["\\]/\\&/g
11430s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11431D["\1"]=" \3"/p
11432s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
11433d
11434:bsnl
11435s/["\\]/\\&/g
11436s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11437D["\1"]=" \3\\\\\\n"\\/p
11438t cont
11439s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11440t cont
11441d
11442:cont
11443n
11444s/.\{148\}/&'"$ac_delim"'/g
11445t clear
11446:clear
11447s/\\$//
11448t bsnlc
11449s/["\\]/\\&/g; s/^/"/; s/$/"/p
11450d
11451:bsnlc
11452s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11453b cont
11454' <confdefs.h | sed '
11455s/'"$ac_delim"'/"\\\
11456"/g' >>$CONFIG_STATUS || ac_write_fail=1
11457
11458cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11459  for (key in D) D_is_set[key] = 1
11460  FS = ""
11461}
11462/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11463  line = \$ 0
11464  split(line, arg, " ")
11465  if (arg[1] == "#") {
11466    defundef = arg[2]
11467    mac1 = arg[3]
11468  } else {
11469    defundef = substr(arg[1], 2)
11470    mac1 = arg[2]
11471  }
11472  split(mac1, mac2, "(") #)
11473  macro = mac2[1]
11474  prefix = substr(line, 1, index(line, defundef) - 1)
11475  if (D_is_set[macro]) {
11476    # Preserve the white space surrounding the "#".
11477    print prefix "define", macro P[macro] D[macro]
11478    next
11479  } else {
11480    # Replace #undef with comments.  This is necessary, for example,
11481    # in the case of _POSIX_SOURCE, which is predefined and required
11482    # on some systems where configure will not decide to define it.
11483    if (defundef == "undef") {
11484      print "/*", prefix defundef, macro, "*/"
11485      next
11486    }
11487  }
11488}
11489{ print }
11490_ACAWK
11491_ACEOF
11492cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11493  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11494fi # test -n "$CONFIG_HEADERS"
11495
11496
11497eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
11498shift
11499for ac_tag
11500do
11501  case $ac_tag in
11502  :[FHLC]) ac_mode=$ac_tag; continue;;
11503  esac
11504  case $ac_mode$ac_tag in
11505  :[FHL]*:*);;
11506  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11507  :[FH]-) ac_tag=-:-;;
11508  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11509  esac
11510  ac_save_IFS=$IFS
11511  IFS=:
11512  set x $ac_tag
11513  IFS=$ac_save_IFS
11514  shift
11515  ac_file=$1
11516  shift
11517
11518  case $ac_mode in
11519  :L) ac_source=$1;;
11520  :[FH])
11521    ac_file_inputs=
11522    for ac_f
11523    do
11524      case $ac_f in
11525      -) ac_f="$ac_tmp/stdin";;
11526      *) # Look for the file first in the build tree, then in the source tree
11527	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
11528	 # because $ac_f cannot contain `:'.
11529	 test -f "$ac_f" ||
11530	   case $ac_f in
11531	   [\\/$]*) false;;
11532	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11533	   esac ||
11534	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11535      esac
11536      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11537      as_fn_append ac_file_inputs " '$ac_f'"
11538    done
11539
11540    # Let's still pretend it is `configure' which instantiates (i.e., don't
11541    # use $as_me), people would be surprised to read:
11542    #    /* config.h.  Generated by config.status.  */
11543    configure_input='Generated from '`
11544	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11545	`' by configure.'
11546    if test x"$ac_file" != x-; then
11547      configure_input="$ac_file.  $configure_input"
11548      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11549$as_echo "$as_me: creating $ac_file" >&6;}
11550    fi
11551    # Neutralize special characters interpreted by sed in replacement strings.
11552    case $configure_input in #(
11553    *\&* | *\|* | *\\* )
11554       ac_sed_conf_input=`$as_echo "$configure_input" |
11555       sed 's/[\\\\&|]/\\\\&/g'`;; #(
11556    *) ac_sed_conf_input=$configure_input;;
11557    esac
11558
11559    case $ac_tag in
11560    *:-:* | *:-) cat >"$ac_tmp/stdin" \
11561      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11562    esac
11563    ;;
11564  esac
11565
11566  ac_dir=`$as_dirname -- "$ac_file" ||
11567$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11568	 X"$ac_file" : 'X\(//\)[^/]' \| \
11569	 X"$ac_file" : 'X\(//\)$' \| \
11570	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11571$as_echo X"$ac_file" |
11572    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11573	    s//\1/
11574	    q
11575	  }
11576	  /^X\(\/\/\)[^/].*/{
11577	    s//\1/
11578	    q
11579	  }
11580	  /^X\(\/\/\)$/{
11581	    s//\1/
11582	    q
11583	  }
11584	  /^X\(\/\).*/{
11585	    s//\1/
11586	    q
11587	  }
11588	  s/.*/./; q'`
11589  as_dir="$ac_dir"; as_fn_mkdir_p
11590  ac_builddir=.
11591
11592case "$ac_dir" in
11593.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11594*)
11595  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11596  # A ".." for each directory in $ac_dir_suffix.
11597  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11598  case $ac_top_builddir_sub in
11599  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11600  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11601  esac ;;
11602esac
11603ac_abs_top_builddir=$ac_pwd
11604ac_abs_builddir=$ac_pwd$ac_dir_suffix
11605# for backward compatibility:
11606ac_top_builddir=$ac_top_build_prefix
11607
11608case $srcdir in
11609  .)  # We are building in place.
11610    ac_srcdir=.
11611    ac_top_srcdir=$ac_top_builddir_sub
11612    ac_abs_top_srcdir=$ac_pwd ;;
11613  [\\/]* | ?:[\\/]* )  # Absolute name.
11614    ac_srcdir=$srcdir$ac_dir_suffix;
11615    ac_top_srcdir=$srcdir
11616    ac_abs_top_srcdir=$srcdir ;;
11617  *) # Relative name.
11618    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11619    ac_top_srcdir=$ac_top_build_prefix$srcdir
11620    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11621esac
11622ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11623
11624
11625  case $ac_mode in
11626  :F)
11627  #
11628  # CONFIG_FILE
11629  #
11630
11631  case $INSTALL in
11632  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11633  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11634  esac
11635  ac_MKDIR_P=$MKDIR_P
11636  case $MKDIR_P in
11637  [\\/$]* | ?:[\\/]* ) ;;
11638  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11639  esac
11640_ACEOF
11641
11642cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11643# If the template does not know about datarootdir, expand it.
11644# FIXME: This hack should be removed a few years after 2.60.
11645ac_datarootdir_hack=; ac_datarootdir_seen=
11646ac_sed_dataroot='
11647/datarootdir/ {
11648  p
11649  q
11650}
11651/@datadir@/p
11652/@docdir@/p
11653/@infodir@/p
11654/@localedir@/p
11655/@mandir@/p'
11656case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11657*datarootdir*) ac_datarootdir_seen=yes;;
11658*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11659  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11660$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11661_ACEOF
11662cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11663  ac_datarootdir_hack='
11664  s&@datadir@&$datadir&g
11665  s&@docdir@&$docdir&g
11666  s&@infodir@&$infodir&g
11667  s&@localedir@&$localedir&g
11668  s&@mandir@&$mandir&g
11669  s&\\\${datarootdir}&$datarootdir&g' ;;
11670esac
11671_ACEOF
11672
11673# Neutralize VPATH when `$srcdir' = `.'.
11674# Shell code in configure.ac might set extrasub.
11675# FIXME: do we really want to maintain this feature?
11676cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11677ac_sed_extra="$ac_vpsub
11678$extrasub
11679_ACEOF
11680cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11681:t
11682/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11683s|@configure_input@|$ac_sed_conf_input|;t t
11684s&@top_builddir@&$ac_top_builddir_sub&;t t
11685s&@top_build_prefix@&$ac_top_build_prefix&;t t
11686s&@srcdir@&$ac_srcdir&;t t
11687s&@abs_srcdir@&$ac_abs_srcdir&;t t
11688s&@top_srcdir@&$ac_top_srcdir&;t t
11689s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11690s&@builddir@&$ac_builddir&;t t
11691s&@abs_builddir@&$ac_abs_builddir&;t t
11692s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11693s&@INSTALL@&$ac_INSTALL&;t t
11694s&@MKDIR_P@&$ac_MKDIR_P&;t t
11695$ac_datarootdir_hack
11696"
11697eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11698  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11699
11700test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11701  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11702  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
11703      "$ac_tmp/out"`; test -z "$ac_out"; } &&
11704  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11705which seems to be undefined.  Please make sure it is defined" >&5
11706$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11707which seems to be undefined.  Please make sure it is defined" >&2;}
11708
11709  rm -f "$ac_tmp/stdin"
11710  case $ac_file in
11711  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11712  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11713  esac \
11714  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11715 ;;
11716  :H)
11717  #
11718  # CONFIG_HEADER
11719  #
11720  if test x"$ac_file" != x-; then
11721    {
11722      $as_echo "/* $configure_input  */" \
11723      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11724    } >"$ac_tmp/config.h" \
11725      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11726    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11727      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11728$as_echo "$as_me: $ac_file is unchanged" >&6;}
11729    else
11730      rm -f "$ac_file"
11731      mv "$ac_tmp/config.h" "$ac_file" \
11732	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
11733    fi
11734  else
11735    $as_echo "/* $configure_input  */" \
11736      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11737      || as_fn_error $? "could not create -" "$LINENO" 5
11738  fi
11739# Compute "$ac_file"'s index in $config_headers.
11740_am_arg="$ac_file"
11741_am_stamp_count=1
11742for _am_header in $config_headers :; do
11743  case $_am_header in
11744    $_am_arg | $_am_arg:* )
11745      break ;;
11746    * )
11747      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11748  esac
11749done
11750echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11751$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11752	 X"$_am_arg" : 'X\(//\)[^/]' \| \
11753	 X"$_am_arg" : 'X\(//\)$' \| \
11754	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11755$as_echo X"$_am_arg" |
11756    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11757	    s//\1/
11758	    q
11759	  }
11760	  /^X\(\/\/\)[^/].*/{
11761	    s//\1/
11762	    q
11763	  }
11764	  /^X\(\/\/\)$/{
11765	    s//\1/
11766	    q
11767	  }
11768	  /^X\(\/\).*/{
11769	    s//\1/
11770	    q
11771	  }
11772	  s/.*/./; q'`/stamp-h$_am_stamp_count
11773 ;;
11774
11775  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11776$as_echo "$as_me: executing $ac_file commands" >&6;}
11777 ;;
11778  esac
11779
11780
11781  case $ac_file$ac_mode in
11782    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11783  # Autoconf 2.62 quotes --file arguments for eval, but not when files
11784  # are listed without --file.  Let's play safe and only enable the eval
11785  # if we detect the quoting.
11786  case $CONFIG_FILES in
11787  *\'*) eval set x "$CONFIG_FILES" ;;
11788  *)   set x $CONFIG_FILES ;;
11789  esac
11790  shift
11791  for mf
11792  do
11793    # Strip MF so we end up with the name of the file.
11794    mf=`echo "$mf" | sed -e 's/:.*$//'`
11795    # Check whether this is an Automake generated Makefile or not.
11796    # We used to match only the files named `Makefile.in', but
11797    # some people rename them; so instead we look at the file content.
11798    # Grep'ing the first line is not enough: some people post-process
11799    # each Makefile.in and add a new line on top of each file to say so.
11800    # Grep'ing the whole file is not good either: AIX grep has a line
11801    # limit of 2048, but all sed's we know have understand at least 4000.
11802    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11803      dirpart=`$as_dirname -- "$mf" ||
11804$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11805	 X"$mf" : 'X\(//\)[^/]' \| \
11806	 X"$mf" : 'X\(//\)$' \| \
11807	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11808$as_echo X"$mf" |
11809    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11810	    s//\1/
11811	    q
11812	  }
11813	  /^X\(\/\/\)[^/].*/{
11814	    s//\1/
11815	    q
11816	  }
11817	  /^X\(\/\/\)$/{
11818	    s//\1/
11819	    q
11820	  }
11821	  /^X\(\/\).*/{
11822	    s//\1/
11823	    q
11824	  }
11825	  s/.*/./; q'`
11826    else
11827      continue
11828    fi
11829    # Extract the definition of DEPDIR, am__include, and am__quote
11830    # from the Makefile without running `make'.
11831    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11832    test -z "$DEPDIR" && continue
11833    am__include=`sed -n 's/^am__include = //p' < "$mf"`
11834    test -z "am__include" && continue
11835    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11836    # When using ansi2knr, U may be empty or an underscore; expand it
11837    U=`sed -n 's/^U = //p' < "$mf"`
11838    # Find all dependency output files, they are included files with
11839    # $(DEPDIR) in their names.  We invoke sed twice because it is the
11840    # simplest approach to changing $(DEPDIR) to its actual value in the
11841    # expansion.
11842    for file in `sed -n "
11843      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11844	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11845      # Make sure the directory exists.
11846      test -f "$dirpart/$file" && continue
11847      fdir=`$as_dirname -- "$file" ||
11848$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11849	 X"$file" : 'X\(//\)[^/]' \| \
11850	 X"$file" : 'X\(//\)$' \| \
11851	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11852$as_echo X"$file" |
11853    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11854	    s//\1/
11855	    q
11856	  }
11857	  /^X\(\/\/\)[^/].*/{
11858	    s//\1/
11859	    q
11860	  }
11861	  /^X\(\/\/\)$/{
11862	    s//\1/
11863	    q
11864	  }
11865	  /^X\(\/\).*/{
11866	    s//\1/
11867	    q
11868	  }
11869	  s/.*/./; q'`
11870      as_dir=$dirpart/$fdir; as_fn_mkdir_p
11871      # echo "creating $dirpart/$file"
11872      echo '# dummy' > "$dirpart/$file"
11873    done
11874  done
11875}
11876 ;;
11877
11878  esac
11879done # for ac_tag
11880
11881
11882as_fn_exit 0
11883_ACEOF
11884ac_clean_files=$ac_clean_files_save
11885
11886test $ac_write_fail = 0 ||
11887  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11888
11889
11890# configure is writing to config.log, and then calls config.status.
11891# config.status does its own redirection, appending to config.log.
11892# Unfortunately, on DOS this fails, as config.log is still kept open
11893# by configure, so config.status won't be able to write to it; its
11894# output is simply discarded.  So we exec the FD to /dev/null,
11895# effectively closing config.log, so it can be properly (re)opened and
11896# appended to by config.status.  When coming back to configure, we
11897# need to make the FD available again.
11898if test "$no_create" != yes; then
11899  ac_cs_success=:
11900  ac_config_status_args=
11901  test "$silent" = yes &&
11902    ac_config_status_args="$ac_config_status_args --quiet"
11903  exec 5>/dev/null
11904  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11905  exec 5>>config.log
11906  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11907  # would make configure fail if this is the last instruction.
11908  $ac_cs_success || as_fn_exit 1
11909fi
11910if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11911  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11912$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11913fi
11914
11915