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