configure revision a85aecdf
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for xgc 1.0.4.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1"
178  if (eval "$as_required") 2>/dev/null; then :
179  as_have_required=yes
180else
181  as_have_required=no
182fi
183  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189do
190  IFS=$as_save_IFS
191  test -z "$as_dir" && as_dir=.
192  as_found=:
193  case $as_dir in #(
194	 /*)
195	   for as_base in sh bash ksh sh5; do
196	     # Try only shells that exist, to save several forks.
197	     as_shell=$as_dir/$as_base
198	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200  CONFIG_SHELL=$as_shell as_have_required=yes
201		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202  break 2
203fi
204fi
205	   done;;
206       esac
207  as_found=false
208done
209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211  CONFIG_SHELL=$SHELL as_have_required=yes
212fi; }
213IFS=$as_save_IFS
214
215
216      if test "x$CONFIG_SHELL" != x; then :
217  # We cannot yet assume a decent shell, so we have to provide a
218	# neutralization value for shells without unset; and this also
219	# works around shells that cannot unset nonexistent variables.
220	# Preserve -v and -x to the replacement shell.
221	BASH_ENV=/dev/null
222	ENV=/dev/null
223	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224	export CONFIG_SHELL
225	case $- in # ((((
226	  *v*x* | *x*v* ) as_opts=-vx ;;
227	  *v* ) as_opts=-v ;;
228	  *x* ) as_opts=-x ;;
229	  * ) as_opts= ;;
230	esac
231	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232fi
233
234    if test x$as_have_required = xno; then :
235  $as_echo "$0: This script requires a shell more modern than all"
236  $as_echo "$0: the shells that I found on your system."
237  if test x${ZSH_VERSION+set} = xset ; then
238    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240  else
241    $as_echo "$0: Please tell bug-autoconf@gnu.org and
242$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243$0: about your system, including any error possibly output
244$0: before this message. Then install a modern shell, or
245$0: manually run the script under such a shell if you do
246$0: have one."
247  fi
248  exit 1
249fi
250fi
251fi
252SHELL=${CONFIG_SHELL-/bin/sh}
253export SHELL
254# Unset more variables known to interfere with behavior of common tools.
255CLICOLOR_FORCE= GREP_OPTIONS=
256unset CLICOLOR_FORCE GREP_OPTIONS
257
258## --------------------- ##
259## M4sh Shell Functions. ##
260## --------------------- ##
261# as_fn_unset VAR
262# ---------------
263# Portably unset VAR.
264as_fn_unset ()
265{
266  { eval $1=; unset $1;}
267}
268as_unset=as_fn_unset
269
270# as_fn_set_status STATUS
271# -----------------------
272# Set $? to STATUS, without forking.
273as_fn_set_status ()
274{
275  return $1
276} # as_fn_set_status
277
278# as_fn_exit STATUS
279# -----------------
280# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281as_fn_exit ()
282{
283  set +e
284  as_fn_set_status $1
285  exit $1
286} # as_fn_exit
287
288# as_fn_mkdir_p
289# -------------
290# Create "$as_dir" as a directory, including parents if necessary.
291as_fn_mkdir_p ()
292{
293
294  case $as_dir in #(
295  -*) as_dir=./$as_dir;;
296  esac
297  test -d "$as_dir" || eval $as_mkdir_p || {
298    as_dirs=
299    while :; do
300      case $as_dir in #(
301      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302      *) as_qdir=$as_dir;;
303      esac
304      as_dirs="'$as_qdir' $as_dirs"
305      as_dir=`$as_dirname -- "$as_dir" ||
306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307	 X"$as_dir" : 'X\(//\)[^/]' \| \
308	 X"$as_dir" : 'X\(//\)$' \| \
309	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310$as_echo X"$as_dir" |
311    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312	    s//\1/
313	    q
314	  }
315	  /^X\(\/\/\)[^/].*/{
316	    s//\1/
317	    q
318	  }
319	  /^X\(\/\/\)$/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\).*/{
324	    s//\1/
325	    q
326	  }
327	  s/.*/./; q'`
328      test -d "$as_dir" && break
329    done
330    test -z "$as_dirs" || eval "mkdir $as_dirs"
331  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334} # as_fn_mkdir_p
335# as_fn_append VAR VALUE
336# ----------------------
337# Append the text in VALUE to the end of the definition contained in VAR. Take
338# advantage of any shell optimizations that allow amortized linear growth over
339# repeated appends, instead of the typical quadratic growth present in naive
340# implementations.
341if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342  eval 'as_fn_append ()
343  {
344    eval $1+=\$2
345  }'
346else
347  as_fn_append ()
348  {
349    eval $1=\$$1\$2
350  }
351fi # as_fn_append
352
353# as_fn_arith ARG...
354# ------------------
355# Perform arithmetic evaluation on the ARGs, and store the result in the
356# global $as_val. Take advantage of shells that can avoid forks. The arguments
357# must be portable across $(()) and expr.
358if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359  eval 'as_fn_arith ()
360  {
361    as_val=$(( $* ))
362  }'
363else
364  as_fn_arith ()
365  {
366    as_val=`expr "$@" || test $? -eq 1`
367  }
368fi # as_fn_arith
369
370
371# as_fn_error STATUS ERROR [LINENO LOG_FD]
372# ----------------------------------------
373# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375# script with STATUS, using 1 if that was 0.
376as_fn_error ()
377{
378  as_status=$1; test $as_status -eq 0 && as_status=1
379  if test "$4"; then
380    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382  fi
383  $as_echo "$as_me: error: $2" >&2
384  as_fn_exit $as_status
385} # as_fn_error
386
387if expr a : '\(a\)' >/dev/null 2>&1 &&
388   test "X`expr 00001 : '.*\(...\)'`" = X001; then
389  as_expr=expr
390else
391  as_expr=false
392fi
393
394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395  as_basename=basename
396else
397  as_basename=false
398fi
399
400if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401  as_dirname=dirname
402else
403  as_dirname=false
404fi
405
406as_me=`$as_basename -- "$0" ||
407$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408	 X"$0" : 'X\(//\)$' \| \
409	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410$as_echo X/"$0" |
411    sed '/^.*\/\([^/][^/]*\)\/*$/{
412	    s//\1/
413	    q
414	  }
415	  /^X\/\(\/\/\)$/{
416	    s//\1/
417	    q
418	  }
419	  /^X\/\(\/\).*/{
420	    s//\1/
421	    q
422	  }
423	  s/.*/./; q'`
424
425# Avoid depending upon Character Ranges.
426as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429as_cr_digits='0123456789'
430as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433  as_lineno_1=$LINENO as_lineno_1a=$LINENO
434  as_lineno_2=$LINENO as_lineno_2a=$LINENO
435  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
438  sed -n '
439    p
440    /[$]LINENO/=
441  ' <$as_myself |
442    sed '
443      s/[$]LINENO.*/&-/
444      t lineno
445      b
446      :lineno
447      N
448      :loop
449      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450      t loop
451      s/-\n.*//
452    ' >$as_me.lineno &&
453  chmod +x "$as_me.lineno" ||
454    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456  # Don't try to exec as it changes $[0], causing all sort of problems
457  # (the dirname of $[0] is not the place where we might find the
458  # original and so on.  Autoconf is especially sensitive to this).
459  . "./$as_me.lineno"
460  # Exit status is that of the last command.
461  exit
462}
463
464ECHO_C= ECHO_N= ECHO_T=
465case `echo -n x` in #(((((
466-n*)
467  case `echo 'xy\c'` in
468  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
469  xy)  ECHO_C='\c';;
470  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
471       ECHO_T='	';;
472  esac;;
473*)
474  ECHO_N='-n';;
475esac
476
477rm -f conf$$ conf$$.exe conf$$.file
478if test -d conf$$.dir; then
479  rm -f conf$$.dir/conf$$.file
480else
481  rm -f conf$$.dir
482  mkdir conf$$.dir 2>/dev/null
483fi
484if (echo >conf$$.file) 2>/dev/null; then
485  if ln -s conf$$.file conf$$ 2>/dev/null; then
486    as_ln_s='ln -s'
487    # ... but there are two gotchas:
488    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490    # In both cases, we have to default to `cp -p'.
491    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492      as_ln_s='cp -p'
493  elif ln conf$$.file conf$$ 2>/dev/null; then
494    as_ln_s=ln
495  else
496    as_ln_s='cp -p'
497  fi
498else
499  as_ln_s='cp -p'
500fi
501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502rmdir conf$$.dir 2>/dev/null
503
504if mkdir -p . 2>/dev/null; then
505  as_mkdir_p='mkdir -p "$as_dir"'
506else
507  test -d ./-p && rmdir ./-p
508  as_mkdir_p=false
509fi
510
511if test -x / >/dev/null 2>&1; then
512  as_test_x='test -x'
513else
514  if ls -dL / >/dev/null 2>&1; then
515    as_ls_L_option=L
516  else
517    as_ls_L_option=
518  fi
519  as_test_x='
520    eval sh -c '\''
521      if test -d "$1"; then
522	test -d "$1/.";
523      else
524	case $1 in #(
525	-*)set "./$1";;
526	esac;
527	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528	???[sx]*):;;*)false;;esac;fi
529    '\'' sh
530  '
531fi
532as_executable_p=$as_test_x
533
534# Sed expression to map a string onto a valid CPP name.
535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537# Sed expression to map a string onto a valid variable name.
538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540
541test -n "$DJDIR" || exec 7<&0 </dev/null
542exec 6>&1
543
544# Name of the host.
545# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546# so uname gets run too.
547ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548
549#
550# Initializations.
551#
552ac_default_prefix=/usr/local
553ac_clean_files=
554ac_config_libobj_dir=.
555LIBOBJS=
556cross_compiling=no
557subdirs=
558MFLAGS=
559MAKEFLAGS=
560
561# Identity of this package.
562PACKAGE_NAME='xgc'
563PACKAGE_TARNAME='xgc'
564PACKAGE_VERSION='1.0.4'
565PACKAGE_STRING='xgc 1.0.4'
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
610appdefaultdir
611XGC_LIBS
612XGC_CFLAGS
613YACC_INST
614YFLAGS
615YACC
616LEXLIB
617LEX_OUTPUT_ROOT
618LEX
619AM_BACKSLASH
620AM_DEFAULT_VERBOSITY
621MAN_SUBSTS
622XORG_MAN_PAGE
623ADMIN_MAN_DIR
624DRIVER_MAN_DIR
625MISC_MAN_DIR
626FILE_MAN_DIR
627LIB_MAN_DIR
628APP_MAN_DIR
629ADMIN_MAN_SUFFIX
630DRIVER_MAN_SUFFIX
631MISC_MAN_SUFFIX
632FILE_MAN_SUFFIX
633LIB_MAN_SUFFIX
634APP_MAN_SUFFIX
635SED
636host_os
637host_vendor
638host_cpu
639host
640build_os
641build_vendor
642build_cpu
643build
644INSTALL_CMD
645PKG_CONFIG
646CHANGELOG_CMD
647STRICT_CFLAGS
648CWARNFLAGS
649BASE_CFLAGS
650EGREP
651GREP
652CPP
653am__fastdepCC_FALSE
654am__fastdepCC_TRUE
655CCDEPMODE
656am__nodep
657AMDEPBACKSLASH
658AMDEP_FALSE
659AMDEP_TRUE
660am__quote
661am__include
662DEPDIR
663OBJEXT
664EXEEXT
665ac_ct_CC
666CPPFLAGS
667LDFLAGS
668CFLAGS
669CC
670MAINT
671MAINTAINER_MODE_FALSE
672MAINTAINER_MODE_TRUE
673am__untar
674am__tar
675AMTAR
676am__leading_dot
677SET_MAKE
678AWK
679mkdir_p
680MKDIR_P
681INSTALL_STRIP_PROGRAM
682STRIP
683install_sh
684MAKEINFO
685AUTOHEADER
686AUTOMAKE
687AUTOCONF
688ACLOCAL
689VERSION
690PACKAGE
691CYGPATH_W
692am__isrc
693INSTALL_DATA
694INSTALL_SCRIPT
695INSTALL_PROGRAM
696target_alias
697host_alias
698build_alias
699LIBS
700ECHO_T
701ECHO_N
702ECHO_C
703DEFS
704mandir
705localedir
706libdir
707psdir
708pdfdir
709dvidir
710htmldir
711infodir
712docdir
713oldincludedir
714includedir
715localstatedir
716sharedstatedir
717sysconfdir
718datadir
719datarootdir
720libexecdir
721sbindir
722bindir
723program_transform_name
724prefix
725exec_prefix
726PACKAGE_URL
727PACKAGE_BUGREPORT
728PACKAGE_STRING
729PACKAGE_VERSION
730PACKAGE_TARNAME
731PACKAGE_NAME
732PATH_SEPARATOR
733SHELL'
734ac_subst_files=''
735ac_user_opts='
736enable_option_checking
737enable_maintainer_mode
738enable_dependency_tracking
739enable_selective_werror
740enable_strict_compilation
741enable_silent_rules
742with_appdefaultdir
743'
744      ac_precious_vars='build_alias
745host_alias
746target_alias
747CC
748CFLAGS
749LDFLAGS
750LIBS
751CPPFLAGS
752CPP
753PKG_CONFIG
754YACC
755YFLAGS
756XGC_CFLAGS
757XGC_LIBS'
758
759
760# Initialize some variables set by options.
761ac_init_help=
762ac_init_version=false
763ac_unrecognized_opts=
764ac_unrecognized_sep=
765# The variables have the same names as the options, with
766# dashes changed to underlines.
767cache_file=/dev/null
768exec_prefix=NONE
769no_create=
770no_recursion=
771prefix=NONE
772program_prefix=NONE
773program_suffix=NONE
774program_transform_name=s,x,x,
775silent=
776site=
777srcdir=
778verbose=
779x_includes=NONE
780x_libraries=NONE
781
782# Installation directory options.
783# These are left unexpanded so users can "make install exec_prefix=/foo"
784# and all the variables that are supposed to be based on exec_prefix
785# by default will actually change.
786# Use braces instead of parens because sh, perl, etc. also accept them.
787# (The list follows the same order as the GNU Coding Standards.)
788bindir='${exec_prefix}/bin'
789sbindir='${exec_prefix}/sbin'
790libexecdir='${exec_prefix}/libexec'
791datarootdir='${prefix}/share'
792datadir='${datarootdir}'
793sysconfdir='${prefix}/etc'
794sharedstatedir='${prefix}/com'
795localstatedir='${prefix}/var'
796includedir='${prefix}/include'
797oldincludedir='/usr/include'
798docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
799infodir='${datarootdir}/info'
800htmldir='${docdir}'
801dvidir='${docdir}'
802pdfdir='${docdir}'
803psdir='${docdir}'
804libdir='${exec_prefix}/lib'
805localedir='${datarootdir}/locale'
806mandir='${datarootdir}/man'
807
808ac_prev=
809ac_dashdash=
810for ac_option
811do
812  # If the previous option needs an argument, assign it.
813  if test -n "$ac_prev"; then
814    eval $ac_prev=\$ac_option
815    ac_prev=
816    continue
817  fi
818
819  case $ac_option in
820  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
821  *=)   ac_optarg= ;;
822  *)    ac_optarg=yes ;;
823  esac
824
825  # Accept the important Cygnus configure options, so we can diagnose typos.
826
827  case $ac_dashdash$ac_option in
828  --)
829    ac_dashdash=yes ;;
830
831  -bindir | --bindir | --bindi | --bind | --bin | --bi)
832    ac_prev=bindir ;;
833  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
834    bindir=$ac_optarg ;;
835
836  -build | --build | --buil | --bui | --bu)
837    ac_prev=build_alias ;;
838  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
839    build_alias=$ac_optarg ;;
840
841  -cache-file | --cache-file | --cache-fil | --cache-fi \
842  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
843    ac_prev=cache_file ;;
844  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
845  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
846    cache_file=$ac_optarg ;;
847
848  --config-cache | -C)
849    cache_file=config.cache ;;
850
851  -datadir | --datadir | --datadi | --datad)
852    ac_prev=datadir ;;
853  -datadir=* | --datadir=* | --datadi=* | --datad=*)
854    datadir=$ac_optarg ;;
855
856  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
857  | --dataroo | --dataro | --datar)
858    ac_prev=datarootdir ;;
859  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
860  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
861    datarootdir=$ac_optarg ;;
862
863  -disable-* | --disable-*)
864    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
865    # Reject names that are not valid shell variable names.
866    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
867      as_fn_error $? "invalid feature name: $ac_useropt"
868    ac_useropt_orig=$ac_useropt
869    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
870    case $ac_user_opts in
871      *"
872"enable_$ac_useropt"
873"*) ;;
874      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
875	 ac_unrecognized_sep=', ';;
876    esac
877    eval enable_$ac_useropt=no ;;
878
879  -docdir | --docdir | --docdi | --doc | --do)
880    ac_prev=docdir ;;
881  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
882    docdir=$ac_optarg ;;
883
884  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
885    ac_prev=dvidir ;;
886  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
887    dvidir=$ac_optarg ;;
888
889  -enable-* | --enable-*)
890    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
891    # Reject names that are not valid shell variable names.
892    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893      as_fn_error $? "invalid feature name: $ac_useropt"
894    ac_useropt_orig=$ac_useropt
895    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896    case $ac_user_opts in
897      *"
898"enable_$ac_useropt"
899"*) ;;
900      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
901	 ac_unrecognized_sep=', ';;
902    esac
903    eval enable_$ac_useropt=\$ac_optarg ;;
904
905  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
906  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
907  | --exec | --exe | --ex)
908    ac_prev=exec_prefix ;;
909  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
910  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
911  | --exec=* | --exe=* | --ex=*)
912    exec_prefix=$ac_optarg ;;
913
914  -gas | --gas | --ga | --g)
915    # Obsolete; use --with-gas.
916    with_gas=yes ;;
917
918  -help | --help | --hel | --he | -h)
919    ac_init_help=long ;;
920  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
921    ac_init_help=recursive ;;
922  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
923    ac_init_help=short ;;
924
925  -host | --host | --hos | --ho)
926    ac_prev=host_alias ;;
927  -host=* | --host=* | --hos=* | --ho=*)
928    host_alias=$ac_optarg ;;
929
930  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
931    ac_prev=htmldir ;;
932  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
933  | --ht=*)
934    htmldir=$ac_optarg ;;
935
936  -includedir | --includedir | --includedi | --included | --include \
937  | --includ | --inclu | --incl | --inc)
938    ac_prev=includedir ;;
939  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
940  | --includ=* | --inclu=* | --incl=* | --inc=*)
941    includedir=$ac_optarg ;;
942
943  -infodir | --infodir | --infodi | --infod | --info | --inf)
944    ac_prev=infodir ;;
945  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
946    infodir=$ac_optarg ;;
947
948  -libdir | --libdir | --libdi | --libd)
949    ac_prev=libdir ;;
950  -libdir=* | --libdir=* | --libdi=* | --libd=*)
951    libdir=$ac_optarg ;;
952
953  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
954  | --libexe | --libex | --libe)
955    ac_prev=libexecdir ;;
956  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
957  | --libexe=* | --libex=* | --libe=*)
958    libexecdir=$ac_optarg ;;
959
960  -localedir | --localedir | --localedi | --localed | --locale)
961    ac_prev=localedir ;;
962  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
963    localedir=$ac_optarg ;;
964
965  -localstatedir | --localstatedir | --localstatedi | --localstated \
966  | --localstate | --localstat | --localsta | --localst | --locals)
967    ac_prev=localstatedir ;;
968  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
969  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
970    localstatedir=$ac_optarg ;;
971
972  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
973    ac_prev=mandir ;;
974  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
975    mandir=$ac_optarg ;;
976
977  -nfp | --nfp | --nf)
978    # Obsolete; use --without-fp.
979    with_fp=no ;;
980
981  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
982  | --no-cr | --no-c | -n)
983    no_create=yes ;;
984
985  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
986  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
987    no_recursion=yes ;;
988
989  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
990  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
991  | --oldin | --oldi | --old | --ol | --o)
992    ac_prev=oldincludedir ;;
993  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
994  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
995  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
996    oldincludedir=$ac_optarg ;;
997
998  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
999    ac_prev=prefix ;;
1000  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1001    prefix=$ac_optarg ;;
1002
1003  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1004  | --program-pre | --program-pr | --program-p)
1005    ac_prev=program_prefix ;;
1006  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1007  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1008    program_prefix=$ac_optarg ;;
1009
1010  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1011  | --program-suf | --program-su | --program-s)
1012    ac_prev=program_suffix ;;
1013  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1014  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1015    program_suffix=$ac_optarg ;;
1016
1017  -program-transform-name | --program-transform-name \
1018  | --program-transform-nam | --program-transform-na \
1019  | --program-transform-n | --program-transform- \
1020  | --program-transform | --program-transfor \
1021  | --program-transfo | --program-transf \
1022  | --program-trans | --program-tran \
1023  | --progr-tra | --program-tr | --program-t)
1024    ac_prev=program_transform_name ;;
1025  -program-transform-name=* | --program-transform-name=* \
1026  | --program-transform-nam=* | --program-transform-na=* \
1027  | --program-transform-n=* | --program-transform-=* \
1028  | --program-transform=* | --program-transfor=* \
1029  | --program-transfo=* | --program-transf=* \
1030  | --program-trans=* | --program-tran=* \
1031  | --progr-tra=* | --program-tr=* | --program-t=*)
1032    program_transform_name=$ac_optarg ;;
1033
1034  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1035    ac_prev=pdfdir ;;
1036  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1037    pdfdir=$ac_optarg ;;
1038
1039  -psdir | --psdir | --psdi | --psd | --ps)
1040    ac_prev=psdir ;;
1041  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1042    psdir=$ac_optarg ;;
1043
1044  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1045  | -silent | --silent | --silen | --sile | --sil)
1046    silent=yes ;;
1047
1048  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1049    ac_prev=sbindir ;;
1050  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1051  | --sbi=* | --sb=*)
1052    sbindir=$ac_optarg ;;
1053
1054  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1055  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1056  | --sharedst | --shareds | --shared | --share | --shar \
1057  | --sha | --sh)
1058    ac_prev=sharedstatedir ;;
1059  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1060  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1061  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1062  | --sha=* | --sh=*)
1063    sharedstatedir=$ac_optarg ;;
1064
1065  -site | --site | --sit)
1066    ac_prev=site ;;
1067  -site=* | --site=* | --sit=*)
1068    site=$ac_optarg ;;
1069
1070  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1071    ac_prev=srcdir ;;
1072  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1073    srcdir=$ac_optarg ;;
1074
1075  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1076  | --syscon | --sysco | --sysc | --sys | --sy)
1077    ac_prev=sysconfdir ;;
1078  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1079  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1080    sysconfdir=$ac_optarg ;;
1081
1082  -target | --target | --targe | --targ | --tar | --ta | --t)
1083    ac_prev=target_alias ;;
1084  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1085    target_alias=$ac_optarg ;;
1086
1087  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1088    verbose=yes ;;
1089
1090  -version | --version | --versio | --versi | --vers | -V)
1091    ac_init_version=: ;;
1092
1093  -with-* | --with-*)
1094    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1095    # Reject names that are not valid shell variable names.
1096    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1097      as_fn_error $? "invalid package name: $ac_useropt"
1098    ac_useropt_orig=$ac_useropt
1099    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1100    case $ac_user_opts in
1101      *"
1102"with_$ac_useropt"
1103"*) ;;
1104      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1105	 ac_unrecognized_sep=', ';;
1106    esac
1107    eval with_$ac_useropt=\$ac_optarg ;;
1108
1109  -without-* | --without-*)
1110    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1111    # Reject names that are not valid shell variable names.
1112    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1113      as_fn_error $? "invalid package name: $ac_useropt"
1114    ac_useropt_orig=$ac_useropt
1115    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116    case $ac_user_opts in
1117      *"
1118"with_$ac_useropt"
1119"*) ;;
1120      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1121	 ac_unrecognized_sep=', ';;
1122    esac
1123    eval with_$ac_useropt=no ;;
1124
1125  --x)
1126    # Obsolete; use --with-x.
1127    with_x=yes ;;
1128
1129  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1130  | --x-incl | --x-inc | --x-in | --x-i)
1131    ac_prev=x_includes ;;
1132  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1133  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1134    x_includes=$ac_optarg ;;
1135
1136  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1137  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1138    ac_prev=x_libraries ;;
1139  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1140  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1141    x_libraries=$ac_optarg ;;
1142
1143  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1144Try \`$0 --help' for more information"
1145    ;;
1146
1147  *=*)
1148    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1149    # Reject names that are not valid shell variable names.
1150    case $ac_envvar in #(
1151      '' | [0-9]* | *[!_$as_cr_alnum]* )
1152      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1153    esac
1154    eval $ac_envvar=\$ac_optarg
1155    export $ac_envvar ;;
1156
1157  *)
1158    # FIXME: should be removed in autoconf 3.0.
1159    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1160    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1161      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1162    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1163    ;;
1164
1165  esac
1166done
1167
1168if test -n "$ac_prev"; then
1169  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1170  as_fn_error $? "missing argument to $ac_option"
1171fi
1172
1173if test -n "$ac_unrecognized_opts"; then
1174  case $enable_option_checking in
1175    no) ;;
1176    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1177    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1178  esac
1179fi
1180
1181# Check all directory arguments for consistency.
1182for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1183		datadir sysconfdir sharedstatedir localstatedir includedir \
1184		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1185		libdir localedir mandir
1186do
1187  eval ac_val=\$$ac_var
1188  # Remove trailing slashes.
1189  case $ac_val in
1190    */ )
1191      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1192      eval $ac_var=\$ac_val;;
1193  esac
1194  # Be sure to have absolute directory names.
1195  case $ac_val in
1196    [\\/$]* | ?:[\\/]* )  continue;;
1197    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1198  esac
1199  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1200done
1201
1202# There might be people who depend on the old broken behavior: `$host'
1203# used to hold the argument of --host etc.
1204# FIXME: To remove some day.
1205build=$build_alias
1206host=$host_alias
1207target=$target_alias
1208
1209# FIXME: To remove some day.
1210if test "x$host_alias" != x; then
1211  if test "x$build_alias" = x; then
1212    cross_compiling=maybe
1213    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1214    If a cross compiler is detected then cross compile mode will be used" >&2
1215  elif test "x$build_alias" != "x$host_alias"; then
1216    cross_compiling=yes
1217  fi
1218fi
1219
1220ac_tool_prefix=
1221test -n "$host_alias" && ac_tool_prefix=$host_alias-
1222
1223test "$silent" = yes && exec 6>/dev/null
1224
1225
1226ac_pwd=`pwd` && test -n "$ac_pwd" &&
1227ac_ls_di=`ls -di .` &&
1228ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1229  as_fn_error $? "working directory cannot be determined"
1230test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1231  as_fn_error $? "pwd does not report name of working directory"
1232
1233
1234# Find the source files, if location was not specified.
1235if test -z "$srcdir"; then
1236  ac_srcdir_defaulted=yes
1237  # Try the directory containing this script, then the parent directory.
1238  ac_confdir=`$as_dirname -- "$as_myself" ||
1239$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1240	 X"$as_myself" : 'X\(//\)[^/]' \| \
1241	 X"$as_myself" : 'X\(//\)$' \| \
1242	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1243$as_echo X"$as_myself" |
1244    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1245	    s//\1/
1246	    q
1247	  }
1248	  /^X\(\/\/\)[^/].*/{
1249	    s//\1/
1250	    q
1251	  }
1252	  /^X\(\/\/\)$/{
1253	    s//\1/
1254	    q
1255	  }
1256	  /^X\(\/\).*/{
1257	    s//\1/
1258	    q
1259	  }
1260	  s/.*/./; q'`
1261  srcdir=$ac_confdir
1262  if test ! -r "$srcdir/$ac_unique_file"; then
1263    srcdir=..
1264  fi
1265else
1266  ac_srcdir_defaulted=no
1267fi
1268if test ! -r "$srcdir/$ac_unique_file"; then
1269  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1270  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1271fi
1272ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1273ac_abs_confdir=`(
1274	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1275	pwd)`
1276# When building in place, set srcdir=.
1277if test "$ac_abs_confdir" = "$ac_pwd"; then
1278  srcdir=.
1279fi
1280# Remove unnecessary trailing slashes from srcdir.
1281# Double slashes in file names in object file debugging info
1282# mess up M-x gdb in Emacs.
1283case $srcdir in
1284*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1285esac
1286for ac_var in $ac_precious_vars; do
1287  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1288  eval ac_env_${ac_var}_value=\$${ac_var}
1289  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1290  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1291done
1292
1293#
1294# Report the --help message.
1295#
1296if test "$ac_init_help" = "long"; then
1297  # Omit some internal or obsolete options to make the list less imposing.
1298  # This message is too long to be a string in the A/UX 3.1 sh.
1299  cat <<_ACEOF
1300\`configure' configures xgc 1.0.4 to adapt to many kinds of systems.
1301
1302Usage: $0 [OPTION]... [VAR=VALUE]...
1303
1304To assign environment variables (e.g., CC, CFLAGS...), specify them as
1305VAR=VALUE.  See below for descriptions of some of the useful variables.
1306
1307Defaults for the options are specified in brackets.
1308
1309Configuration:
1310  -h, --help              display this help and exit
1311      --help=short        display options specific to this package
1312      --help=recursive    display the short help of all the included packages
1313  -V, --version           display version information and exit
1314  -q, --quiet, --silent   do not print \`checking ...' messages
1315      --cache-file=FILE   cache test results in FILE [disabled]
1316  -C, --config-cache      alias for \`--cache-file=config.cache'
1317  -n, --no-create         do not create output files
1318      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1319
1320Installation directories:
1321  --prefix=PREFIX         install architecture-independent files in PREFIX
1322                          [$ac_default_prefix]
1323  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1324                          [PREFIX]
1325
1326By default, \`make install' will install all the files in
1327\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1328an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1329for instance \`--prefix=\$HOME'.
1330
1331For better control, use the options below.
1332
1333Fine tuning of the installation directories:
1334  --bindir=DIR            user executables [EPREFIX/bin]
1335  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1336  --libexecdir=DIR        program executables [EPREFIX/libexec]
1337  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1338  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1339  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1340  --libdir=DIR            object code libraries [EPREFIX/lib]
1341  --includedir=DIR        C header files [PREFIX/include]
1342  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1343  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1344  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1345  --infodir=DIR           info documentation [DATAROOTDIR/info]
1346  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1347  --mandir=DIR            man documentation [DATAROOTDIR/man]
1348  --docdir=DIR            documentation root [DATAROOTDIR/doc/xgc]
1349  --htmldir=DIR           html documentation [DOCDIR]
1350  --dvidir=DIR            dvi documentation [DOCDIR]
1351  --pdfdir=DIR            pdf documentation [DOCDIR]
1352  --psdir=DIR             ps documentation [DOCDIR]
1353_ACEOF
1354
1355  cat <<\_ACEOF
1356
1357Program names:
1358  --program-prefix=PREFIX            prepend PREFIX to installed program names
1359  --program-suffix=SUFFIX            append SUFFIX to installed program names
1360  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1361
1362System types:
1363  --build=BUILD     configure for building on BUILD [guessed]
1364  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1365_ACEOF
1366fi
1367
1368if test -n "$ac_init_help"; then
1369  case $ac_init_help in
1370     short | recursive ) echo "Configuration of xgc 1.0.4:";;
1371   esac
1372  cat <<\_ACEOF
1373
1374Optional Features:
1375  --disable-option-checking  ignore unrecognized --enable/--with options
1376  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1377  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1378  --enable-maintainer-mode  enable make rules and dependencies not useful
1379			  (and sometimes confusing) to the casual installer
1380  --disable-dependency-tracking  speeds up one-time build
1381  --enable-dependency-tracking   do not reject slow dependency extractors
1382  --disable-selective-werror
1383                          Turn off selective compiler errors. (default:
1384                          enabled)
1385  --enable-strict-compilation
1386                          Enable all warnings from compiler and make them
1387                          errors (default: disabled)
1388  --enable-silent-rules          less verbose build output (undo: `make V=1')
1389  --disable-silent-rules         verbose build output (undo: `make V=0')
1390
1391Optional Packages:
1392  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1393  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1394  --with-appdefaultdir=<pathname>
1395                          specify directory for app-defaults files (default is
1396                          autodetected)
1397
1398Some influential environment variables:
1399  CC          C compiler command
1400  CFLAGS      C compiler flags
1401  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1402              nonstandard directory <lib dir>
1403  LIBS        libraries to pass to the linker, e.g. -l<library>
1404  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1405              you have headers in a nonstandard directory <include dir>
1406  CPP         C preprocessor
1407  PKG_CONFIG  path to pkg-config utility
1408  YACC        The `Yet Another Compiler Compiler' implementation to use.
1409              Defaults to the first program found out of: `bison -y', `byacc',
1410              `yacc'.
1411  YFLAGS      The list of arguments that will be passed by default to $YACC.
1412              This script will default YFLAGS to the empty string to avoid a
1413              default value of `-d' given by some make applications.
1414  XGC_CFLAGS  C compiler flags for XGC, overriding pkg-config
1415  XGC_LIBS    linker flags for XGC, overriding pkg-config
1416
1417Use these variables to override the choices made by `configure' or to help
1418it to find libraries and programs with nonstandard names/locations.
1419
1420Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1421_ACEOF
1422ac_status=$?
1423fi
1424
1425if test "$ac_init_help" = "recursive"; then
1426  # If there are subdirs, report their specific --help.
1427  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1428    test -d "$ac_dir" ||
1429      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1430      continue
1431    ac_builddir=.
1432
1433case "$ac_dir" in
1434.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1435*)
1436  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1437  # A ".." for each directory in $ac_dir_suffix.
1438  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1439  case $ac_top_builddir_sub in
1440  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1441  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1442  esac ;;
1443esac
1444ac_abs_top_builddir=$ac_pwd
1445ac_abs_builddir=$ac_pwd$ac_dir_suffix
1446# for backward compatibility:
1447ac_top_builddir=$ac_top_build_prefix
1448
1449case $srcdir in
1450  .)  # We are building in place.
1451    ac_srcdir=.
1452    ac_top_srcdir=$ac_top_builddir_sub
1453    ac_abs_top_srcdir=$ac_pwd ;;
1454  [\\/]* | ?:[\\/]* )  # Absolute name.
1455    ac_srcdir=$srcdir$ac_dir_suffix;
1456    ac_top_srcdir=$srcdir
1457    ac_abs_top_srcdir=$srcdir ;;
1458  *) # Relative name.
1459    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1460    ac_top_srcdir=$ac_top_build_prefix$srcdir
1461    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1462esac
1463ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1464
1465    cd "$ac_dir" || { ac_status=$?; continue; }
1466    # Check for guested configure.
1467    if test -f "$ac_srcdir/configure.gnu"; then
1468      echo &&
1469      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1470    elif test -f "$ac_srcdir/configure"; then
1471      echo &&
1472      $SHELL "$ac_srcdir/configure" --help=recursive
1473    else
1474      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1475    fi || ac_status=$?
1476    cd "$ac_pwd" || { ac_status=$?; break; }
1477  done
1478fi
1479
1480test -n "$ac_init_help" && exit $ac_status
1481if $ac_init_version; then
1482  cat <<\_ACEOF
1483xgc configure 1.0.4
1484generated by GNU Autoconf 2.68
1485
1486Copyright (C) 2010 Free Software Foundation, Inc.
1487This configure script is free software; the Free Software Foundation
1488gives unlimited permission to copy, distribute and modify it.
1489_ACEOF
1490  exit
1491fi
1492
1493## ------------------------ ##
1494## Autoconf initialization. ##
1495## ------------------------ ##
1496
1497# ac_fn_c_try_compile LINENO
1498# --------------------------
1499# Try to compile conftest.$ac_ext, and return whether this succeeded.
1500ac_fn_c_try_compile ()
1501{
1502  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1503  rm -f conftest.$ac_objext
1504  if { { ac_try="$ac_compile"
1505case "(($ac_try" in
1506  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1507  *) ac_try_echo=$ac_try;;
1508esac
1509eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1510$as_echo "$ac_try_echo"; } >&5
1511  (eval "$ac_compile") 2>conftest.err
1512  ac_status=$?
1513  if test -s conftest.err; then
1514    grep -v '^ *+' conftest.err >conftest.er1
1515    cat conftest.er1 >&5
1516    mv -f conftest.er1 conftest.err
1517  fi
1518  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1519  test $ac_status = 0; } && {
1520	 test -z "$ac_c_werror_flag" ||
1521	 test ! -s conftest.err
1522       } && test -s conftest.$ac_objext; then :
1523  ac_retval=0
1524else
1525  $as_echo "$as_me: failed program was:" >&5
1526sed 's/^/| /' conftest.$ac_ext >&5
1527
1528	ac_retval=1
1529fi
1530  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1531  as_fn_set_status $ac_retval
1532
1533} # ac_fn_c_try_compile
1534
1535# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1536# ---------------------------------------------
1537# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1538# accordingly.
1539ac_fn_c_check_decl ()
1540{
1541  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1542  as_decl_name=`echo $2|sed 's/ *(.*//'`
1543  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1544  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1545$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1546if eval \${$3+:} false; then :
1547  $as_echo_n "(cached) " >&6
1548else
1549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1550/* end confdefs.h.  */
1551$4
1552int
1553main ()
1554{
1555#ifndef $as_decl_name
1556#ifdef __cplusplus
1557  (void) $as_decl_use;
1558#else
1559  (void) $as_decl_name;
1560#endif
1561#endif
1562
1563  ;
1564  return 0;
1565}
1566_ACEOF
1567if ac_fn_c_try_compile "$LINENO"; then :
1568  eval "$3=yes"
1569else
1570  eval "$3=no"
1571fi
1572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1573fi
1574eval ac_res=\$$3
1575	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1576$as_echo "$ac_res" >&6; }
1577  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1578
1579} # ac_fn_c_check_decl
1580
1581# ac_fn_c_try_cpp LINENO
1582# ----------------------
1583# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1584ac_fn_c_try_cpp ()
1585{
1586  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587  if { { ac_try="$ac_cpp conftest.$ac_ext"
1588case "(($ac_try" in
1589  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1590  *) ac_try_echo=$ac_try;;
1591esac
1592eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593$as_echo "$ac_try_echo"; } >&5
1594  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1595  ac_status=$?
1596  if test -s conftest.err; then
1597    grep -v '^ *+' conftest.err >conftest.er1
1598    cat conftest.er1 >&5
1599    mv -f conftest.er1 conftest.err
1600  fi
1601  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602  test $ac_status = 0; } > conftest.i && {
1603	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1604	 test ! -s conftest.err
1605       }; then :
1606  ac_retval=0
1607else
1608  $as_echo "$as_me: failed program was:" >&5
1609sed 's/^/| /' conftest.$ac_ext >&5
1610
1611    ac_retval=1
1612fi
1613  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1614  as_fn_set_status $ac_retval
1615
1616} # ac_fn_c_try_cpp
1617
1618# ac_fn_c_try_run LINENO
1619# ----------------------
1620# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1621# that executables *can* be run.
1622ac_fn_c_try_run ()
1623{
1624  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625  if { { ac_try="$ac_link"
1626case "(($ac_try" in
1627  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628  *) ac_try_echo=$ac_try;;
1629esac
1630eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631$as_echo "$ac_try_echo"; } >&5
1632  (eval "$ac_link") 2>&5
1633  ac_status=$?
1634  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1636  { { case "(($ac_try" in
1637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638  *) ac_try_echo=$ac_try;;
1639esac
1640eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641$as_echo "$ac_try_echo"; } >&5
1642  (eval "$ac_try") 2>&5
1643  ac_status=$?
1644  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645  test $ac_status = 0; }; }; then :
1646  ac_retval=0
1647else
1648  $as_echo "$as_me: program exited with status $ac_status" >&5
1649       $as_echo "$as_me: failed program was:" >&5
1650sed 's/^/| /' conftest.$ac_ext >&5
1651
1652       ac_retval=$ac_status
1653fi
1654  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1655  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656  as_fn_set_status $ac_retval
1657
1658} # ac_fn_c_try_run
1659
1660# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1661# -------------------------------------------------------
1662# Tests whether HEADER exists and can be compiled using the include files in
1663# INCLUDES, setting the cache variable VAR accordingly.
1664ac_fn_c_check_header_compile ()
1665{
1666  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1668$as_echo_n "checking for $2... " >&6; }
1669if eval \${$3+:} false; then :
1670  $as_echo_n "(cached) " >&6
1671else
1672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1673/* end confdefs.h.  */
1674$4
1675#include <$2>
1676_ACEOF
1677if ac_fn_c_try_compile "$LINENO"; then :
1678  eval "$3=yes"
1679else
1680  eval "$3=no"
1681fi
1682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1683fi
1684eval ac_res=\$$3
1685	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1686$as_echo "$ac_res" >&6; }
1687  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688
1689} # ac_fn_c_check_header_compile
1690
1691# ac_fn_c_try_link LINENO
1692# -----------------------
1693# Try to link conftest.$ac_ext, and return whether this succeeded.
1694ac_fn_c_try_link ()
1695{
1696  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697  rm -f conftest.$ac_objext conftest$ac_exeext
1698  if { { ac_try="$ac_link"
1699case "(($ac_try" in
1700  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701  *) ac_try_echo=$ac_try;;
1702esac
1703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704$as_echo "$ac_try_echo"; } >&5
1705  (eval "$ac_link") 2>conftest.err
1706  ac_status=$?
1707  if test -s conftest.err; then
1708    grep -v '^ *+' conftest.err >conftest.er1
1709    cat conftest.er1 >&5
1710    mv -f conftest.er1 conftest.err
1711  fi
1712  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713  test $ac_status = 0; } && {
1714	 test -z "$ac_c_werror_flag" ||
1715	 test ! -s conftest.err
1716       } && test -s conftest$ac_exeext && {
1717	 test "$cross_compiling" = yes ||
1718	 $as_test_x conftest$ac_exeext
1719       }; then :
1720  ac_retval=0
1721else
1722  $as_echo "$as_me: failed program was:" >&5
1723sed 's/^/| /' conftest.$ac_ext >&5
1724
1725	ac_retval=1
1726fi
1727  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1728  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1729  # interfere with the next link command; also delete a directory that is
1730  # left behind by Apple's compiler.  We do this before executing the actions.
1731  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1732  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733  as_fn_set_status $ac_retval
1734
1735} # ac_fn_c_try_link
1736cat >config.log <<_ACEOF
1737This file contains any messages produced by compilers while
1738running configure, to aid debugging if configure makes a mistake.
1739
1740It was created by xgc $as_me 1.0.4, which was
1741generated by GNU Autoconf 2.68.  Invocation command line was
1742
1743  $ $0 $@
1744
1745_ACEOF
1746exec 5>>config.log
1747{
1748cat <<_ASUNAME
1749## --------- ##
1750## Platform. ##
1751## --------- ##
1752
1753hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1754uname -m = `(uname -m) 2>/dev/null || echo unknown`
1755uname -r = `(uname -r) 2>/dev/null || echo unknown`
1756uname -s = `(uname -s) 2>/dev/null || echo unknown`
1757uname -v = `(uname -v) 2>/dev/null || echo unknown`
1758
1759/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1760/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1761
1762/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1763/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1764/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1765/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1766/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1767/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1768/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1769
1770_ASUNAME
1771
1772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1773for as_dir in $PATH
1774do
1775  IFS=$as_save_IFS
1776  test -z "$as_dir" && as_dir=.
1777    $as_echo "PATH: $as_dir"
1778  done
1779IFS=$as_save_IFS
1780
1781} >&5
1782
1783cat >&5 <<_ACEOF
1784
1785
1786## ----------- ##
1787## Core tests. ##
1788## ----------- ##
1789
1790_ACEOF
1791
1792
1793# Keep a trace of the command line.
1794# Strip out --no-create and --no-recursion so they do not pile up.
1795# Strip out --silent because we don't want to record it for future runs.
1796# Also quote any args containing shell meta-characters.
1797# Make two passes to allow for proper duplicate-argument suppression.
1798ac_configure_args=
1799ac_configure_args0=
1800ac_configure_args1=
1801ac_must_keep_next=false
1802for ac_pass in 1 2
1803do
1804  for ac_arg
1805  do
1806    case $ac_arg in
1807    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1808    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1809    | -silent | --silent | --silen | --sile | --sil)
1810      continue ;;
1811    *\'*)
1812      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1813    esac
1814    case $ac_pass in
1815    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1816    2)
1817      as_fn_append ac_configure_args1 " '$ac_arg'"
1818      if test $ac_must_keep_next = true; then
1819	ac_must_keep_next=false # Got value, back to normal.
1820      else
1821	case $ac_arg in
1822	  *=* | --config-cache | -C | -disable-* | --disable-* \
1823	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1824	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1825	  | -with-* | --with-* | -without-* | --without-* | --x)
1826	    case "$ac_configure_args0 " in
1827	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1828	    esac
1829	    ;;
1830	  -* ) ac_must_keep_next=true ;;
1831	esac
1832      fi
1833      as_fn_append ac_configure_args " '$ac_arg'"
1834      ;;
1835    esac
1836  done
1837done
1838{ ac_configure_args0=; unset ac_configure_args0;}
1839{ ac_configure_args1=; unset ac_configure_args1;}
1840
1841# When interrupted or exit'd, cleanup temporary files, and complete
1842# config.log.  We remove comments because anyway the quotes in there
1843# would cause problems or look ugly.
1844# WARNING: Use '\'' to represent an apostrophe within the trap.
1845# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1846trap 'exit_status=$?
1847  # Save into config.log some information that might help in debugging.
1848  {
1849    echo
1850
1851    $as_echo "## ---------------- ##
1852## Cache variables. ##
1853## ---------------- ##"
1854    echo
1855    # The following way of writing the cache mishandles newlines in values,
1856(
1857  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1858    eval ac_val=\$$ac_var
1859    case $ac_val in #(
1860    *${as_nl}*)
1861      case $ac_var in #(
1862      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1863$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1864      esac
1865      case $ac_var in #(
1866      _ | IFS | as_nl) ;; #(
1867      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1868      *) { eval $ac_var=; unset $ac_var;} ;;
1869      esac ;;
1870    esac
1871  done
1872  (set) 2>&1 |
1873    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1874    *${as_nl}ac_space=\ *)
1875      sed -n \
1876	"s/'\''/'\''\\\\'\'''\''/g;
1877	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1878      ;; #(
1879    *)
1880      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1881      ;;
1882    esac |
1883    sort
1884)
1885    echo
1886
1887    $as_echo "## ----------------- ##
1888## Output variables. ##
1889## ----------------- ##"
1890    echo
1891    for ac_var in $ac_subst_vars
1892    do
1893      eval ac_val=\$$ac_var
1894      case $ac_val in
1895      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1896      esac
1897      $as_echo "$ac_var='\''$ac_val'\''"
1898    done | sort
1899    echo
1900
1901    if test -n "$ac_subst_files"; then
1902      $as_echo "## ------------------- ##
1903## File substitutions. ##
1904## ------------------- ##"
1905      echo
1906      for ac_var in $ac_subst_files
1907      do
1908	eval ac_val=\$$ac_var
1909	case $ac_val in
1910	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1911	esac
1912	$as_echo "$ac_var='\''$ac_val'\''"
1913      done | sort
1914      echo
1915    fi
1916
1917    if test -s confdefs.h; then
1918      $as_echo "## ----------- ##
1919## confdefs.h. ##
1920## ----------- ##"
1921      echo
1922      cat confdefs.h
1923      echo
1924    fi
1925    test "$ac_signal" != 0 &&
1926      $as_echo "$as_me: caught signal $ac_signal"
1927    $as_echo "$as_me: exit $exit_status"
1928  } >&5
1929  rm -f core *.core core.conftest.* &&
1930    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1931    exit $exit_status
1932' 0
1933for ac_signal in 1 2 13 15; do
1934  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1935done
1936ac_signal=0
1937
1938# confdefs.h avoids OS command line length limits that DEFS can exceed.
1939rm -f -r conftest* confdefs.h
1940
1941$as_echo "/* confdefs.h */" > confdefs.h
1942
1943# Predefined preprocessor variables.
1944
1945cat >>confdefs.h <<_ACEOF
1946#define PACKAGE_NAME "$PACKAGE_NAME"
1947_ACEOF
1948
1949cat >>confdefs.h <<_ACEOF
1950#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1951_ACEOF
1952
1953cat >>confdefs.h <<_ACEOF
1954#define PACKAGE_VERSION "$PACKAGE_VERSION"
1955_ACEOF
1956
1957cat >>confdefs.h <<_ACEOF
1958#define PACKAGE_STRING "$PACKAGE_STRING"
1959_ACEOF
1960
1961cat >>confdefs.h <<_ACEOF
1962#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1963_ACEOF
1964
1965cat >>confdefs.h <<_ACEOF
1966#define PACKAGE_URL "$PACKAGE_URL"
1967_ACEOF
1968
1969
1970# Let the site file select an alternate cache file if it wants to.
1971# Prefer an explicitly selected file to automatically selected ones.
1972ac_site_file1=NONE
1973ac_site_file2=NONE
1974if test -n "$CONFIG_SITE"; then
1975  # We do not want a PATH search for config.site.
1976  case $CONFIG_SITE in #((
1977    -*)  ac_site_file1=./$CONFIG_SITE;;
1978    */*) ac_site_file1=$CONFIG_SITE;;
1979    *)   ac_site_file1=./$CONFIG_SITE;;
1980  esac
1981elif test "x$prefix" != xNONE; then
1982  ac_site_file1=$prefix/share/config.site
1983  ac_site_file2=$prefix/etc/config.site
1984else
1985  ac_site_file1=$ac_default_prefix/share/config.site
1986  ac_site_file2=$ac_default_prefix/etc/config.site
1987fi
1988for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1989do
1990  test "x$ac_site_file" = xNONE && continue
1991  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1992    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1993$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1994    sed 's/^/| /' "$ac_site_file" >&5
1995    . "$ac_site_file" \
1996      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1997$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1998as_fn_error $? "failed to load site script $ac_site_file
1999See \`config.log' for more details" "$LINENO" 5; }
2000  fi
2001done
2002
2003if test -r "$cache_file"; then
2004  # Some versions of bash will fail to source /dev/null (special files
2005  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2006  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2007    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2008$as_echo "$as_me: loading cache $cache_file" >&6;}
2009    case $cache_file in
2010      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2011      *)                      . "./$cache_file";;
2012    esac
2013  fi
2014else
2015  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2016$as_echo "$as_me: creating cache $cache_file" >&6;}
2017  >$cache_file
2018fi
2019
2020# Check that the precious variables saved in the cache have kept the same
2021# value.
2022ac_cache_corrupted=false
2023for ac_var in $ac_precious_vars; do
2024  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2025  eval ac_new_set=\$ac_env_${ac_var}_set
2026  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2027  eval ac_new_val=\$ac_env_${ac_var}_value
2028  case $ac_old_set,$ac_new_set in
2029    set,)
2030      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2031$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2032      ac_cache_corrupted=: ;;
2033    ,set)
2034      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2035$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2036      ac_cache_corrupted=: ;;
2037    ,);;
2038    *)
2039      if test "x$ac_old_val" != "x$ac_new_val"; then
2040	# differences in whitespace do not lead to failure.
2041	ac_old_val_w=`echo x $ac_old_val`
2042	ac_new_val_w=`echo x $ac_new_val`
2043	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2044	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2045$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2046	  ac_cache_corrupted=:
2047	else
2048	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2049$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2050	  eval $ac_var=\$ac_old_val
2051	fi
2052	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2053$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2054	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2055$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2056      fi;;
2057  esac
2058  # Pass precious variables to config.status.
2059  if test "$ac_new_set" = set; then
2060    case $ac_new_val in
2061    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2062    *) ac_arg=$ac_var=$ac_new_val ;;
2063    esac
2064    case " $ac_configure_args " in
2065      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2066      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2067    esac
2068  fi
2069done
2070if $ac_cache_corrupted; then
2071  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2072$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2073  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2074$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2075  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2076fi
2077## -------------------- ##
2078## Main body of script. ##
2079## -------------------- ##
2080
2081ac_ext=c
2082ac_cpp='$CPP $CPPFLAGS'
2083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2085ac_compiler_gnu=$ac_cv_c_compiler_gnu
2086
2087
2088
2089ac_config_headers="$ac_config_headers config.h"
2090
2091
2092# Initialize Automake
2093am__api_version='1.11'
2094
2095ac_aux_dir=
2096for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2097  if test -f "$ac_dir/install-sh"; then
2098    ac_aux_dir=$ac_dir
2099    ac_install_sh="$ac_aux_dir/install-sh -c"
2100    break
2101  elif test -f "$ac_dir/install.sh"; then
2102    ac_aux_dir=$ac_dir
2103    ac_install_sh="$ac_aux_dir/install.sh -c"
2104    break
2105  elif test -f "$ac_dir/shtool"; then
2106    ac_aux_dir=$ac_dir
2107    ac_install_sh="$ac_aux_dir/shtool install -c"
2108    break
2109  fi
2110done
2111if test -z "$ac_aux_dir"; then
2112  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2113fi
2114
2115# These three variables are undocumented and unsupported,
2116# and are intended to be withdrawn in a future Autoconf release.
2117# They can cause serious problems if a builder's source tree is in a directory
2118# whose full name contains unusual characters.
2119ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2120ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2121ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2122
2123
2124# Find a good install program.  We prefer a C program (faster),
2125# so one script is as good as another.  But avoid the broken or
2126# incompatible versions:
2127# SysV /etc/install, /usr/sbin/install
2128# SunOS /usr/etc/install
2129# IRIX /sbin/install
2130# AIX /bin/install
2131# AmigaOS /C/install, which installs bootblocks on floppy discs
2132# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2133# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2134# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2135# OS/2's system install, which has a completely different semantic
2136# ./install, which can be erroneously created by make from ./install.sh.
2137# Reject install programs that cannot install multiple files.
2138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2139$as_echo_n "checking for a BSD-compatible install... " >&6; }
2140if test -z "$INSTALL"; then
2141if ${ac_cv_path_install+:} false; then :
2142  $as_echo_n "(cached) " >&6
2143else
2144  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145for as_dir in $PATH
2146do
2147  IFS=$as_save_IFS
2148  test -z "$as_dir" && as_dir=.
2149    # Account for people who put trailing slashes in PATH elements.
2150case $as_dir/ in #((
2151  ./ | .// | /[cC]/* | \
2152  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2153  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2154  /usr/ucb/* ) ;;
2155  *)
2156    # OSF1 and SCO ODT 3.0 have their own names for install.
2157    # Don't use installbsd from OSF since it installs stuff as root
2158    # by default.
2159    for ac_prog in ginstall scoinst install; do
2160      for ac_exec_ext in '' $ac_executable_extensions; do
2161	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2162	  if test $ac_prog = install &&
2163	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2164	    # AIX install.  It has an incompatible calling convention.
2165	    :
2166	  elif test $ac_prog = install &&
2167	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2168	    # program-specific install script used by HP pwplus--don't use.
2169	    :
2170	  else
2171	    rm -rf conftest.one conftest.two conftest.dir
2172	    echo one > conftest.one
2173	    echo two > conftest.two
2174	    mkdir conftest.dir
2175	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2176	      test -s conftest.one && test -s conftest.two &&
2177	      test -s conftest.dir/conftest.one &&
2178	      test -s conftest.dir/conftest.two
2179	    then
2180	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2181	      break 3
2182	    fi
2183	  fi
2184	fi
2185      done
2186    done
2187    ;;
2188esac
2189
2190  done
2191IFS=$as_save_IFS
2192
2193rm -rf conftest.one conftest.two conftest.dir
2194
2195fi
2196  if test "${ac_cv_path_install+set}" = set; then
2197    INSTALL=$ac_cv_path_install
2198  else
2199    # As a last resort, use the slow shell script.  Don't cache a
2200    # value for INSTALL within a source directory, because that will
2201    # break other packages using the cache if that directory is
2202    # removed, or if the value is a relative name.
2203    INSTALL=$ac_install_sh
2204  fi
2205fi
2206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2207$as_echo "$INSTALL" >&6; }
2208
2209# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2210# It thinks the first close brace ends the variable substitution.
2211test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2212
2213test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2214
2215test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2216
2217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2218$as_echo_n "checking whether build environment is sane... " >&6; }
2219# Just in case
2220sleep 1
2221echo timestamp > conftest.file
2222# Reject unsafe characters in $srcdir or the absolute working directory
2223# name.  Accept space and tab only in the latter.
2224am_lf='
2225'
2226case `pwd` in
2227  *[\\\"\#\$\&\'\`$am_lf]*)
2228    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2229esac
2230case $srcdir in
2231  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2232    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2233esac
2234
2235# Do `set' in a subshell so we don't clobber the current shell's
2236# arguments.  Must try -L first in case configure is actually a
2237# symlink; some systems play weird games with the mod time of symlinks
2238# (eg FreeBSD returns the mod time of the symlink's containing
2239# directory).
2240if (
2241   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2242   if test "$*" = "X"; then
2243      # -L didn't work.
2244      set X `ls -t "$srcdir/configure" conftest.file`
2245   fi
2246   rm -f conftest.file
2247   if test "$*" != "X $srcdir/configure conftest.file" \
2248      && test "$*" != "X conftest.file $srcdir/configure"; then
2249
2250      # If neither matched, then we have a broken ls.  This can happen
2251      # if, for instance, CONFIG_SHELL is bash and it inherits a
2252      # broken ls alias from the environment.  This has actually
2253      # happened.  Such a system could not be considered "sane".
2254      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2255alias in your environment" "$LINENO" 5
2256   fi
2257
2258   test "$2" = conftest.file
2259   )
2260then
2261   # Ok.
2262   :
2263else
2264   as_fn_error $? "newly created file is older than distributed files!
2265Check your system clock" "$LINENO" 5
2266fi
2267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2268$as_echo "yes" >&6; }
2269test "$program_prefix" != NONE &&
2270  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2271# Use a double $ so make ignores it.
2272test "$program_suffix" != NONE &&
2273  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2274# Double any \ or $.
2275# By default was `s,x,x', remove it if useless.
2276ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2277program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2278
2279# expand $ac_aux_dir to an absolute path
2280am_aux_dir=`cd $ac_aux_dir && pwd`
2281
2282if test x"${MISSING+set}" != xset; then
2283  case $am_aux_dir in
2284  *\ * | *\	*)
2285    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2286  *)
2287    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2288  esac
2289fi
2290# Use eval to expand $SHELL
2291if eval "$MISSING --run true"; then
2292  am_missing_run="$MISSING --run "
2293else
2294  am_missing_run=
2295  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2296$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2297fi
2298
2299if test x"${install_sh}" != xset; then
2300  case $am_aux_dir in
2301  *\ * | *\	*)
2302    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2303  *)
2304    install_sh="\${SHELL} $am_aux_dir/install-sh"
2305  esac
2306fi
2307
2308# Installed binaries are usually stripped using `strip' when the user
2309# run `make install-strip'.  However `strip' might not be the right
2310# tool to use in cross-compilation environments, therefore Automake
2311# will honor the `STRIP' environment variable to overrule this program.
2312if test "$cross_compiling" != no; then
2313  if test -n "$ac_tool_prefix"; then
2314  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2315set dummy ${ac_tool_prefix}strip; ac_word=$2
2316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2317$as_echo_n "checking for $ac_word... " >&6; }
2318if ${ac_cv_prog_STRIP+:} false; then :
2319  $as_echo_n "(cached) " >&6
2320else
2321  if test -n "$STRIP"; then
2322  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2323else
2324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325for as_dir in $PATH
2326do
2327  IFS=$as_save_IFS
2328  test -z "$as_dir" && as_dir=.
2329    for ac_exec_ext in '' $ac_executable_extensions; do
2330  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2331    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2332    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2333    break 2
2334  fi
2335done
2336  done
2337IFS=$as_save_IFS
2338
2339fi
2340fi
2341STRIP=$ac_cv_prog_STRIP
2342if test -n "$STRIP"; then
2343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2344$as_echo "$STRIP" >&6; }
2345else
2346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2347$as_echo "no" >&6; }
2348fi
2349
2350
2351fi
2352if test -z "$ac_cv_prog_STRIP"; then
2353  ac_ct_STRIP=$STRIP
2354  # Extract the first word of "strip", so it can be a program name with args.
2355set dummy strip; ac_word=$2
2356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2357$as_echo_n "checking for $ac_word... " >&6; }
2358if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2359  $as_echo_n "(cached) " >&6
2360else
2361  if test -n "$ac_ct_STRIP"; then
2362  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2363else
2364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2365for as_dir in $PATH
2366do
2367  IFS=$as_save_IFS
2368  test -z "$as_dir" && as_dir=.
2369    for ac_exec_ext in '' $ac_executable_extensions; do
2370  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2371    ac_cv_prog_ac_ct_STRIP="strip"
2372    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2373    break 2
2374  fi
2375done
2376  done
2377IFS=$as_save_IFS
2378
2379fi
2380fi
2381ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2382if test -n "$ac_ct_STRIP"; then
2383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2384$as_echo "$ac_ct_STRIP" >&6; }
2385else
2386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2387$as_echo "no" >&6; }
2388fi
2389
2390  if test "x$ac_ct_STRIP" = x; then
2391    STRIP=":"
2392  else
2393    case $cross_compiling:$ac_tool_warned in
2394yes:)
2395{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2396$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2397ac_tool_warned=yes ;;
2398esac
2399    STRIP=$ac_ct_STRIP
2400  fi
2401else
2402  STRIP="$ac_cv_prog_STRIP"
2403fi
2404
2405fi
2406INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2407
2408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2409$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2410if test -z "$MKDIR_P"; then
2411  if ${ac_cv_path_mkdir+:} false; then :
2412  $as_echo_n "(cached) " >&6
2413else
2414  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2415for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2416do
2417  IFS=$as_save_IFS
2418  test -z "$as_dir" && as_dir=.
2419    for ac_prog in mkdir gmkdir; do
2420	 for ac_exec_ext in '' $ac_executable_extensions; do
2421	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2422	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2423	     'mkdir (GNU coreutils) '* | \
2424	     'mkdir (coreutils) '* | \
2425	     'mkdir (fileutils) '4.1*)
2426	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2427	       break 3;;
2428	   esac
2429	 done
2430       done
2431  done
2432IFS=$as_save_IFS
2433
2434fi
2435
2436  test -d ./--version && rmdir ./--version
2437  if test "${ac_cv_path_mkdir+set}" = set; then
2438    MKDIR_P="$ac_cv_path_mkdir -p"
2439  else
2440    # As a last resort, use the slow shell script.  Don't cache a
2441    # value for MKDIR_P within a source directory, because that will
2442    # break other packages using the cache if that directory is
2443    # removed, or if the value is a relative name.
2444    MKDIR_P="$ac_install_sh -d"
2445  fi
2446fi
2447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2448$as_echo "$MKDIR_P" >&6; }
2449
2450mkdir_p="$MKDIR_P"
2451case $mkdir_p in
2452  [\\/$]* | ?:[\\/]*) ;;
2453  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2454esac
2455
2456for ac_prog in gawk mawk nawk awk
2457do
2458  # Extract the first word of "$ac_prog", so it can be a program name with args.
2459set dummy $ac_prog; ac_word=$2
2460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2461$as_echo_n "checking for $ac_word... " >&6; }
2462if ${ac_cv_prog_AWK+:} false; then :
2463  $as_echo_n "(cached) " >&6
2464else
2465  if test -n "$AWK"; then
2466  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2467else
2468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469for as_dir in $PATH
2470do
2471  IFS=$as_save_IFS
2472  test -z "$as_dir" && as_dir=.
2473    for ac_exec_ext in '' $ac_executable_extensions; do
2474  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2475    ac_cv_prog_AWK="$ac_prog"
2476    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2477    break 2
2478  fi
2479done
2480  done
2481IFS=$as_save_IFS
2482
2483fi
2484fi
2485AWK=$ac_cv_prog_AWK
2486if test -n "$AWK"; then
2487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2488$as_echo "$AWK" >&6; }
2489else
2490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2491$as_echo "no" >&6; }
2492fi
2493
2494
2495  test -n "$AWK" && break
2496done
2497
2498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2499$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2500set x ${MAKE-make}
2501ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2502if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2503  $as_echo_n "(cached) " >&6
2504else
2505  cat >conftest.make <<\_ACEOF
2506SHELL = /bin/sh
2507all:
2508	@echo '@@@%%%=$(MAKE)=@@@%%%'
2509_ACEOF
2510# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2511case `${MAKE-make} -f conftest.make 2>/dev/null` in
2512  *@@@%%%=?*=@@@%%%*)
2513    eval ac_cv_prog_make_${ac_make}_set=yes;;
2514  *)
2515    eval ac_cv_prog_make_${ac_make}_set=no;;
2516esac
2517rm -f conftest.make
2518fi
2519if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2521$as_echo "yes" >&6; }
2522  SET_MAKE=
2523else
2524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2525$as_echo "no" >&6; }
2526  SET_MAKE="MAKE=${MAKE-make}"
2527fi
2528
2529rm -rf .tst 2>/dev/null
2530mkdir .tst 2>/dev/null
2531if test -d .tst; then
2532  am__leading_dot=.
2533else
2534  am__leading_dot=_
2535fi
2536rmdir .tst 2>/dev/null
2537
2538if test "`cd $srcdir && pwd`" != "`pwd`"; then
2539  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2540  # is not polluted with repeated "-I."
2541  am__isrc=' -I$(srcdir)'
2542  # test to see if srcdir already configured
2543  if test -f $srcdir/config.status; then
2544    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2545  fi
2546fi
2547
2548# test whether we have cygpath
2549if test -z "$CYGPATH_W"; then
2550  if (cygpath --version) >/dev/null 2>/dev/null; then
2551    CYGPATH_W='cygpath -w'
2552  else
2553    CYGPATH_W=echo
2554  fi
2555fi
2556
2557
2558# Define the identity of the package.
2559 PACKAGE='xgc'
2560 VERSION='1.0.4'
2561
2562
2563cat >>confdefs.h <<_ACEOF
2564#define PACKAGE "$PACKAGE"
2565_ACEOF
2566
2567
2568cat >>confdefs.h <<_ACEOF
2569#define VERSION "$VERSION"
2570_ACEOF
2571
2572# Some tools Automake needs.
2573
2574ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2575
2576
2577AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2578
2579
2580AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2581
2582
2583AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2584
2585
2586MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2587
2588# We need awk for the "check" target.  The system "awk" is bad on
2589# some platforms.
2590# Always define AMTAR for backward compatibility.
2591
2592AMTAR=${AMTAR-"${am_missing_run}tar"}
2593
2594am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2595
2596
2597
2598
2599
2600
2601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2602$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2603    # Check whether --enable-maintainer-mode was given.
2604if test "${enable_maintainer_mode+set}" = set; then :
2605  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2606else
2607  USE_MAINTAINER_MODE=no
2608fi
2609
2610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2611$as_echo "$USE_MAINTAINER_MODE" >&6; }
2612   if test $USE_MAINTAINER_MODE = yes; then
2613  MAINTAINER_MODE_TRUE=
2614  MAINTAINER_MODE_FALSE='#'
2615else
2616  MAINTAINER_MODE_TRUE='#'
2617  MAINTAINER_MODE_FALSE=
2618fi
2619
2620  MAINT=$MAINTAINER_MODE_TRUE
2621
2622
2623
2624# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636DEPDIR="${am__leading_dot}deps"
2637
2638ac_config_commands="$ac_config_commands depfiles"
2639
2640
2641am_make=${MAKE-make}
2642cat > confinc << 'END'
2643am__doit:
2644	@echo this is the am__doit target
2645.PHONY: am__doit
2646END
2647# If we don't find an include directive, just comment out the code.
2648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2649$as_echo_n "checking for style of include used by $am_make... " >&6; }
2650am__include="#"
2651am__quote=
2652_am_result=none
2653# First try GNU make style include.
2654echo "include confinc" > confmf
2655# Ignore all kinds of additional output from `make'.
2656case `$am_make -s -f confmf 2> /dev/null` in #(
2657*the\ am__doit\ target*)
2658  am__include=include
2659  am__quote=
2660  _am_result=GNU
2661  ;;
2662esac
2663# Now try BSD make style include.
2664if test "$am__include" = "#"; then
2665   echo '.include "confinc"' > confmf
2666   case `$am_make -s -f confmf 2> /dev/null` in #(
2667   *the\ am__doit\ target*)
2668     am__include=.include
2669     am__quote="\""
2670     _am_result=BSD
2671     ;;
2672   esac
2673fi
2674
2675
2676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2677$as_echo "$_am_result" >&6; }
2678rm -f confinc confmf
2679
2680# Check whether --enable-dependency-tracking was given.
2681if test "${enable_dependency_tracking+set}" = set; then :
2682  enableval=$enable_dependency_tracking;
2683fi
2684
2685if test "x$enable_dependency_tracking" != xno; then
2686  am_depcomp="$ac_aux_dir/depcomp"
2687  AMDEPBACKSLASH='\'
2688  am__nodep='_no'
2689fi
2690 if test "x$enable_dependency_tracking" != xno; then
2691  AMDEP_TRUE=
2692  AMDEP_FALSE='#'
2693else
2694  AMDEP_TRUE='#'
2695  AMDEP_FALSE=
2696fi
2697
2698
2699ac_ext=c
2700ac_cpp='$CPP $CPPFLAGS'
2701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2703ac_compiler_gnu=$ac_cv_c_compiler_gnu
2704if test -n "$ac_tool_prefix"; then
2705  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2706set dummy ${ac_tool_prefix}gcc; ac_word=$2
2707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2708$as_echo_n "checking for $ac_word... " >&6; }
2709if ${ac_cv_prog_CC+:} false; then :
2710  $as_echo_n "(cached) " >&6
2711else
2712  if test -n "$CC"; then
2713  ac_cv_prog_CC="$CC" # Let the user override the test.
2714else
2715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716for as_dir in $PATH
2717do
2718  IFS=$as_save_IFS
2719  test -z "$as_dir" && as_dir=.
2720    for ac_exec_ext in '' $ac_executable_extensions; do
2721  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2722    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2723    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2724    break 2
2725  fi
2726done
2727  done
2728IFS=$as_save_IFS
2729
2730fi
2731fi
2732CC=$ac_cv_prog_CC
2733if test -n "$CC"; then
2734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2735$as_echo "$CC" >&6; }
2736else
2737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2738$as_echo "no" >&6; }
2739fi
2740
2741
2742fi
2743if test -z "$ac_cv_prog_CC"; then
2744  ac_ct_CC=$CC
2745  # Extract the first word of "gcc", so it can be a program name with args.
2746set dummy gcc; ac_word=$2
2747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2748$as_echo_n "checking for $ac_word... " >&6; }
2749if ${ac_cv_prog_ac_ct_CC+:} false; then :
2750  $as_echo_n "(cached) " >&6
2751else
2752  if test -n "$ac_ct_CC"; then
2753  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2754else
2755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756for as_dir in $PATH
2757do
2758  IFS=$as_save_IFS
2759  test -z "$as_dir" && as_dir=.
2760    for ac_exec_ext in '' $ac_executable_extensions; do
2761  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2762    ac_cv_prog_ac_ct_CC="gcc"
2763    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2764    break 2
2765  fi
2766done
2767  done
2768IFS=$as_save_IFS
2769
2770fi
2771fi
2772ac_ct_CC=$ac_cv_prog_ac_ct_CC
2773if test -n "$ac_ct_CC"; then
2774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2775$as_echo "$ac_ct_CC" >&6; }
2776else
2777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2778$as_echo "no" >&6; }
2779fi
2780
2781  if test "x$ac_ct_CC" = x; then
2782    CC=""
2783  else
2784    case $cross_compiling:$ac_tool_warned in
2785yes:)
2786{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2787$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2788ac_tool_warned=yes ;;
2789esac
2790    CC=$ac_ct_CC
2791  fi
2792else
2793  CC="$ac_cv_prog_CC"
2794fi
2795
2796if test -z "$CC"; then
2797          if test -n "$ac_tool_prefix"; then
2798    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2799set dummy ${ac_tool_prefix}cc; ac_word=$2
2800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2801$as_echo_n "checking for $ac_word... " >&6; }
2802if ${ac_cv_prog_CC+:} false; then :
2803  $as_echo_n "(cached) " >&6
2804else
2805  if test -n "$CC"; then
2806  ac_cv_prog_CC="$CC" # Let the user override the test.
2807else
2808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809for as_dir in $PATH
2810do
2811  IFS=$as_save_IFS
2812  test -z "$as_dir" && as_dir=.
2813    for ac_exec_ext in '' $ac_executable_extensions; do
2814  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2815    ac_cv_prog_CC="${ac_tool_prefix}cc"
2816    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2817    break 2
2818  fi
2819done
2820  done
2821IFS=$as_save_IFS
2822
2823fi
2824fi
2825CC=$ac_cv_prog_CC
2826if test -n "$CC"; then
2827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2828$as_echo "$CC" >&6; }
2829else
2830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2831$as_echo "no" >&6; }
2832fi
2833
2834
2835  fi
2836fi
2837if test -z "$CC"; then
2838  # Extract the first word of "cc", so it can be a program name with args.
2839set dummy cc; ac_word=$2
2840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2841$as_echo_n "checking for $ac_word... " >&6; }
2842if ${ac_cv_prog_CC+:} false; then :
2843  $as_echo_n "(cached) " >&6
2844else
2845  if test -n "$CC"; then
2846  ac_cv_prog_CC="$CC" # Let the user override the test.
2847else
2848  ac_prog_rejected=no
2849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850for as_dir in $PATH
2851do
2852  IFS=$as_save_IFS
2853  test -z "$as_dir" && as_dir=.
2854    for ac_exec_ext in '' $ac_executable_extensions; do
2855  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2856    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2857       ac_prog_rejected=yes
2858       continue
2859     fi
2860    ac_cv_prog_CC="cc"
2861    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2862    break 2
2863  fi
2864done
2865  done
2866IFS=$as_save_IFS
2867
2868if test $ac_prog_rejected = yes; then
2869  # We found a bogon in the path, so make sure we never use it.
2870  set dummy $ac_cv_prog_CC
2871  shift
2872  if test $# != 0; then
2873    # We chose a different compiler from the bogus one.
2874    # However, it has the same basename, so the bogon will be chosen
2875    # first if we set CC to just the basename; use the full file name.
2876    shift
2877    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2878  fi
2879fi
2880fi
2881fi
2882CC=$ac_cv_prog_CC
2883if test -n "$CC"; then
2884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2885$as_echo "$CC" >&6; }
2886else
2887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888$as_echo "no" >&6; }
2889fi
2890
2891
2892fi
2893if test -z "$CC"; then
2894  if test -n "$ac_tool_prefix"; then
2895  for ac_prog in cl.exe
2896  do
2897    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2898set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2900$as_echo_n "checking for $ac_word... " >&6; }
2901if ${ac_cv_prog_CC+:} false; then :
2902  $as_echo_n "(cached) " >&6
2903else
2904  if test -n "$CC"; then
2905  ac_cv_prog_CC="$CC" # Let the user override the test.
2906else
2907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908for as_dir in $PATH
2909do
2910  IFS=$as_save_IFS
2911  test -z "$as_dir" && as_dir=.
2912    for ac_exec_ext in '' $ac_executable_extensions; do
2913  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2914    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2915    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2916    break 2
2917  fi
2918done
2919  done
2920IFS=$as_save_IFS
2921
2922fi
2923fi
2924CC=$ac_cv_prog_CC
2925if test -n "$CC"; then
2926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2927$as_echo "$CC" >&6; }
2928else
2929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2930$as_echo "no" >&6; }
2931fi
2932
2933
2934    test -n "$CC" && break
2935  done
2936fi
2937if test -z "$CC"; then
2938  ac_ct_CC=$CC
2939  for ac_prog in cl.exe
2940do
2941  # Extract the first word of "$ac_prog", so it can be a program name with args.
2942set dummy $ac_prog; ac_word=$2
2943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944$as_echo_n "checking for $ac_word... " >&6; }
2945if ${ac_cv_prog_ac_ct_CC+:} false; then :
2946  $as_echo_n "(cached) " >&6
2947else
2948  if test -n "$ac_ct_CC"; then
2949  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2950else
2951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952for as_dir in $PATH
2953do
2954  IFS=$as_save_IFS
2955  test -z "$as_dir" && as_dir=.
2956    for ac_exec_ext in '' $ac_executable_extensions; do
2957  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2958    ac_cv_prog_ac_ct_CC="$ac_prog"
2959    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2960    break 2
2961  fi
2962done
2963  done
2964IFS=$as_save_IFS
2965
2966fi
2967fi
2968ac_ct_CC=$ac_cv_prog_ac_ct_CC
2969if test -n "$ac_ct_CC"; then
2970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2971$as_echo "$ac_ct_CC" >&6; }
2972else
2973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974$as_echo "no" >&6; }
2975fi
2976
2977
2978  test -n "$ac_ct_CC" && break
2979done
2980
2981  if test "x$ac_ct_CC" = x; then
2982    CC=""
2983  else
2984    case $cross_compiling:$ac_tool_warned in
2985yes:)
2986{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2987$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2988ac_tool_warned=yes ;;
2989esac
2990    CC=$ac_ct_CC
2991  fi
2992fi
2993
2994fi
2995
2996
2997test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2998$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2999as_fn_error $? "no acceptable C compiler found in \$PATH
3000See \`config.log' for more details" "$LINENO" 5; }
3001
3002# Provide some information about the compiler.
3003$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3004set X $ac_compile
3005ac_compiler=$2
3006for ac_option in --version -v -V -qversion; do
3007  { { ac_try="$ac_compiler $ac_option >&5"
3008case "(($ac_try" in
3009  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010  *) ac_try_echo=$ac_try;;
3011esac
3012eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3013$as_echo "$ac_try_echo"; } >&5
3014  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3015  ac_status=$?
3016  if test -s conftest.err; then
3017    sed '10a\
3018... rest of stderr output deleted ...
3019         10q' conftest.err >conftest.er1
3020    cat conftest.er1 >&5
3021  fi
3022  rm -f conftest.er1 conftest.err
3023  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3024  test $ac_status = 0; }
3025done
3026
3027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3028/* end confdefs.h.  */
3029
3030int
3031main ()
3032{
3033
3034  ;
3035  return 0;
3036}
3037_ACEOF
3038ac_clean_files_save=$ac_clean_files
3039ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3040# Try to create an executable without -o first, disregard a.out.
3041# It will help us diagnose broken compilers, and finding out an intuition
3042# of exeext.
3043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3044$as_echo_n "checking whether the C compiler works... " >&6; }
3045ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3046
3047# The possible output files:
3048ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3049
3050ac_rmfiles=
3051for ac_file in $ac_files
3052do
3053  case $ac_file in
3054    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3055    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3056  esac
3057done
3058rm -f $ac_rmfiles
3059
3060if { { ac_try="$ac_link_default"
3061case "(($ac_try" in
3062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063  *) ac_try_echo=$ac_try;;
3064esac
3065eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3066$as_echo "$ac_try_echo"; } >&5
3067  (eval "$ac_link_default") 2>&5
3068  ac_status=$?
3069  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3070  test $ac_status = 0; }; then :
3071  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3072# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3073# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3074# so that the user can short-circuit this test for compilers unknown to
3075# Autoconf.
3076for ac_file in $ac_files ''
3077do
3078  test -f "$ac_file" || continue
3079  case $ac_file in
3080    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3081	;;
3082    [ab].out )
3083	# We found the default executable, but exeext='' is most
3084	# certainly right.
3085	break;;
3086    *.* )
3087	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3088	then :; else
3089	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3090	fi
3091	# We set ac_cv_exeext here because the later test for it is not
3092	# safe: cross compilers may not add the suffix if given an `-o'
3093	# argument, so we may need to know it at that point already.
3094	# Even if this section looks crufty: it has the advantage of
3095	# actually working.
3096	break;;
3097    * )
3098	break;;
3099  esac
3100done
3101test "$ac_cv_exeext" = no && ac_cv_exeext=
3102
3103else
3104  ac_file=''
3105fi
3106if test -z "$ac_file"; then :
3107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108$as_echo "no" >&6; }
3109$as_echo "$as_me: failed program was:" >&5
3110sed 's/^/| /' conftest.$ac_ext >&5
3111
3112{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3113$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3114as_fn_error 77 "C compiler cannot create executables
3115See \`config.log' for more details" "$LINENO" 5; }
3116else
3117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3118$as_echo "yes" >&6; }
3119fi
3120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3121$as_echo_n "checking for C compiler default output file name... " >&6; }
3122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3123$as_echo "$ac_file" >&6; }
3124ac_exeext=$ac_cv_exeext
3125
3126rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3127ac_clean_files=$ac_clean_files_save
3128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3129$as_echo_n "checking for suffix of executables... " >&6; }
3130if { { ac_try="$ac_link"
3131case "(($ac_try" in
3132  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133  *) ac_try_echo=$ac_try;;
3134esac
3135eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3136$as_echo "$ac_try_echo"; } >&5
3137  (eval "$ac_link") 2>&5
3138  ac_status=$?
3139  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3140  test $ac_status = 0; }; then :
3141  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3142# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3143# work properly (i.e., refer to `conftest.exe'), while it won't with
3144# `rm'.
3145for ac_file in conftest.exe conftest conftest.*; do
3146  test -f "$ac_file" || continue
3147  case $ac_file in
3148    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3149    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3150	  break;;
3151    * ) break;;
3152  esac
3153done
3154else
3155  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3156$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3157as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3158See \`config.log' for more details" "$LINENO" 5; }
3159fi
3160rm -f conftest conftest$ac_cv_exeext
3161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3162$as_echo "$ac_cv_exeext" >&6; }
3163
3164rm -f conftest.$ac_ext
3165EXEEXT=$ac_cv_exeext
3166ac_exeext=$EXEEXT
3167cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3168/* end confdefs.h.  */
3169#include <stdio.h>
3170int
3171main ()
3172{
3173FILE *f = fopen ("conftest.out", "w");
3174 return ferror (f) || fclose (f) != 0;
3175
3176  ;
3177  return 0;
3178}
3179_ACEOF
3180ac_clean_files="$ac_clean_files conftest.out"
3181# Check that the compiler produces executables we can run.  If not, either
3182# the compiler is broken, or we cross compile.
3183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3184$as_echo_n "checking whether we are cross compiling... " >&6; }
3185if test "$cross_compiling" != yes; then
3186  { { ac_try="$ac_link"
3187case "(($ac_try" in
3188  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189  *) ac_try_echo=$ac_try;;
3190esac
3191eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3192$as_echo "$ac_try_echo"; } >&5
3193  (eval "$ac_link") 2>&5
3194  ac_status=$?
3195  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3196  test $ac_status = 0; }
3197  if { ac_try='./conftest$ac_cv_exeext'
3198  { { case "(($ac_try" in
3199  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200  *) ac_try_echo=$ac_try;;
3201esac
3202eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3203$as_echo "$ac_try_echo"; } >&5
3204  (eval "$ac_try") 2>&5
3205  ac_status=$?
3206  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3207  test $ac_status = 0; }; }; then
3208    cross_compiling=no
3209  else
3210    if test "$cross_compiling" = maybe; then
3211	cross_compiling=yes
3212    else
3213	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3214$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3215as_fn_error $? "cannot run C compiled programs.
3216If you meant to cross compile, use \`--host'.
3217See \`config.log' for more details" "$LINENO" 5; }
3218    fi
3219  fi
3220fi
3221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3222$as_echo "$cross_compiling" >&6; }
3223
3224rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3225ac_clean_files=$ac_clean_files_save
3226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3227$as_echo_n "checking for suffix of object files... " >&6; }
3228if ${ac_cv_objext+:} false; then :
3229  $as_echo_n "(cached) " >&6
3230else
3231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3232/* end confdefs.h.  */
3233
3234int
3235main ()
3236{
3237
3238  ;
3239  return 0;
3240}
3241_ACEOF
3242rm -f conftest.o conftest.obj
3243if { { ac_try="$ac_compile"
3244case "(($ac_try" in
3245  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246  *) ac_try_echo=$ac_try;;
3247esac
3248eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3249$as_echo "$ac_try_echo"; } >&5
3250  (eval "$ac_compile") 2>&5
3251  ac_status=$?
3252  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3253  test $ac_status = 0; }; then :
3254  for ac_file in conftest.o conftest.obj conftest.*; do
3255  test -f "$ac_file" || continue;
3256  case $ac_file in
3257    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3258    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3259       break;;
3260  esac
3261done
3262else
3263  $as_echo "$as_me: failed program was:" >&5
3264sed 's/^/| /' conftest.$ac_ext >&5
3265
3266{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3267$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3268as_fn_error $? "cannot compute suffix of object files: cannot compile
3269See \`config.log' for more details" "$LINENO" 5; }
3270fi
3271rm -f conftest.$ac_cv_objext conftest.$ac_ext
3272fi
3273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3274$as_echo "$ac_cv_objext" >&6; }
3275OBJEXT=$ac_cv_objext
3276ac_objext=$OBJEXT
3277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3278$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3279if ${ac_cv_c_compiler_gnu+:} false; then :
3280  $as_echo_n "(cached) " >&6
3281else
3282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3283/* end confdefs.h.  */
3284
3285int
3286main ()
3287{
3288#ifndef __GNUC__
3289       choke me
3290#endif
3291
3292  ;
3293  return 0;
3294}
3295_ACEOF
3296if ac_fn_c_try_compile "$LINENO"; then :
3297  ac_compiler_gnu=yes
3298else
3299  ac_compiler_gnu=no
3300fi
3301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3302ac_cv_c_compiler_gnu=$ac_compiler_gnu
3303
3304fi
3305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3306$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3307if test $ac_compiler_gnu = yes; then
3308  GCC=yes
3309else
3310  GCC=
3311fi
3312ac_test_CFLAGS=${CFLAGS+set}
3313ac_save_CFLAGS=$CFLAGS
3314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3315$as_echo_n "checking whether $CC accepts -g... " >&6; }
3316if ${ac_cv_prog_cc_g+:} false; then :
3317  $as_echo_n "(cached) " >&6
3318else
3319  ac_save_c_werror_flag=$ac_c_werror_flag
3320   ac_c_werror_flag=yes
3321   ac_cv_prog_cc_g=no
3322   CFLAGS="-g"
3323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3324/* end confdefs.h.  */
3325
3326int
3327main ()
3328{
3329
3330  ;
3331  return 0;
3332}
3333_ACEOF
3334if ac_fn_c_try_compile "$LINENO"; then :
3335  ac_cv_prog_cc_g=yes
3336else
3337  CFLAGS=""
3338      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3339/* end confdefs.h.  */
3340
3341int
3342main ()
3343{
3344
3345  ;
3346  return 0;
3347}
3348_ACEOF
3349if ac_fn_c_try_compile "$LINENO"; then :
3350
3351else
3352  ac_c_werror_flag=$ac_save_c_werror_flag
3353	 CFLAGS="-g"
3354	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3355/* end confdefs.h.  */
3356
3357int
3358main ()
3359{
3360
3361  ;
3362  return 0;
3363}
3364_ACEOF
3365if ac_fn_c_try_compile "$LINENO"; then :
3366  ac_cv_prog_cc_g=yes
3367fi
3368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3369fi
3370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3371fi
3372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3373   ac_c_werror_flag=$ac_save_c_werror_flag
3374fi
3375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3376$as_echo "$ac_cv_prog_cc_g" >&6; }
3377if test "$ac_test_CFLAGS" = set; then
3378  CFLAGS=$ac_save_CFLAGS
3379elif test $ac_cv_prog_cc_g = yes; then
3380  if test "$GCC" = yes; then
3381    CFLAGS="-g -O2"
3382  else
3383    CFLAGS="-g"
3384  fi
3385else
3386  if test "$GCC" = yes; then
3387    CFLAGS="-O2"
3388  else
3389    CFLAGS=
3390  fi
3391fi
3392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3393$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3394if ${ac_cv_prog_cc_c89+:} false; then :
3395  $as_echo_n "(cached) " >&6
3396else
3397  ac_cv_prog_cc_c89=no
3398ac_save_CC=$CC
3399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400/* end confdefs.h.  */
3401#include <stdarg.h>
3402#include <stdio.h>
3403#include <sys/types.h>
3404#include <sys/stat.h>
3405/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3406struct buf { int x; };
3407FILE * (*rcsopen) (struct buf *, struct stat *, int);
3408static char *e (p, i)
3409     char **p;
3410     int i;
3411{
3412  return p[i];
3413}
3414static char *f (char * (*g) (char **, int), char **p, ...)
3415{
3416  char *s;
3417  va_list v;
3418  va_start (v,p);
3419  s = g (p, va_arg (v,int));
3420  va_end (v);
3421  return s;
3422}
3423
3424/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3425   function prototypes and stuff, but not '\xHH' hex character constants.
3426   These don't provoke an error unfortunately, instead are silently treated
3427   as 'x'.  The following induces an error, until -std is added to get
3428   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3429   array size at least.  It's necessary to write '\x00'==0 to get something
3430   that's true only with -std.  */
3431int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3432
3433/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3434   inside strings and character constants.  */
3435#define FOO(x) 'x'
3436int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3437
3438int test (int i, double x);
3439struct s1 {int (*f) (int a);};
3440struct s2 {int (*f) (double a);};
3441int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3442int argc;
3443char **argv;
3444int
3445main ()
3446{
3447return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3448  ;
3449  return 0;
3450}
3451_ACEOF
3452for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3453	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3454do
3455  CC="$ac_save_CC $ac_arg"
3456  if ac_fn_c_try_compile "$LINENO"; then :
3457  ac_cv_prog_cc_c89=$ac_arg
3458fi
3459rm -f core conftest.err conftest.$ac_objext
3460  test "x$ac_cv_prog_cc_c89" != "xno" && break
3461done
3462rm -f conftest.$ac_ext
3463CC=$ac_save_CC
3464
3465fi
3466# AC_CACHE_VAL
3467case "x$ac_cv_prog_cc_c89" in
3468  x)
3469    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3470$as_echo "none needed" >&6; } ;;
3471  xno)
3472    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3473$as_echo "unsupported" >&6; } ;;
3474  *)
3475    CC="$CC $ac_cv_prog_cc_c89"
3476    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3477$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3478esac
3479if test "x$ac_cv_prog_cc_c89" != xno; then :
3480
3481fi
3482
3483ac_ext=c
3484ac_cpp='$CPP $CPPFLAGS'
3485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3487ac_compiler_gnu=$ac_cv_c_compiler_gnu
3488
3489depcc="$CC"   am_compiler_list=
3490
3491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3492$as_echo_n "checking dependency style of $depcc... " >&6; }
3493if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3494  $as_echo_n "(cached) " >&6
3495else
3496  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3497  # We make a subdir and do the tests there.  Otherwise we can end up
3498  # making bogus files that we don't know about and never remove.  For
3499  # instance it was reported that on HP-UX the gcc test will end up
3500  # making a dummy file named `D' -- because `-MD' means `put the output
3501  # in D'.
3502  rm -rf conftest.dir
3503  mkdir conftest.dir
3504  # Copy depcomp to subdir because otherwise we won't find it if we're
3505  # using a relative directory.
3506  cp "$am_depcomp" conftest.dir
3507  cd conftest.dir
3508  # We will build objects and dependencies in a subdirectory because
3509  # it helps to detect inapplicable dependency modes.  For instance
3510  # both Tru64's cc and ICC support -MD to output dependencies as a
3511  # side effect of compilation, but ICC will put the dependencies in
3512  # the current directory while Tru64 will put them in the object
3513  # directory.
3514  mkdir sub
3515
3516  am_cv_CC_dependencies_compiler_type=none
3517  if test "$am_compiler_list" = ""; then
3518     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3519  fi
3520  am__universal=false
3521  case " $depcc " in #(
3522     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3523     esac
3524
3525  for depmode in $am_compiler_list; do
3526    # Setup a source with many dependencies, because some compilers
3527    # like to wrap large dependency lists on column 80 (with \), and
3528    # we should not choose a depcomp mode which is confused by this.
3529    #
3530    # We need to recreate these files for each test, as the compiler may
3531    # overwrite some of them when testing with obscure command lines.
3532    # This happens at least with the AIX C compiler.
3533    : > sub/conftest.c
3534    for i in 1 2 3 4 5 6; do
3535      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3536      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3537      # Solaris 8's {/usr,}/bin/sh.
3538      touch sub/conftst$i.h
3539    done
3540    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3541
3542    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3543    # mode.  It turns out that the SunPro C++ compiler does not properly
3544    # handle `-M -o', and we need to detect this.  Also, some Intel
3545    # versions had trouble with output in subdirs
3546    am__obj=sub/conftest.${OBJEXT-o}
3547    am__minus_obj="-o $am__obj"
3548    case $depmode in
3549    gcc)
3550      # This depmode causes a compiler race in universal mode.
3551      test "$am__universal" = false || continue
3552      ;;
3553    nosideeffect)
3554      # after this tag, mechanisms are not by side-effect, so they'll
3555      # only be used when explicitly requested
3556      if test "x$enable_dependency_tracking" = xyes; then
3557	continue
3558      else
3559	break
3560      fi
3561      ;;
3562    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3563      # This compiler won't grok `-c -o', but also, the minuso test has
3564      # not run yet.  These depmodes are late enough in the game, and
3565      # so weak that their functioning should not be impacted.
3566      am__obj=conftest.${OBJEXT-o}
3567      am__minus_obj=
3568      ;;
3569    none) break ;;
3570    esac
3571    if depmode=$depmode \
3572       source=sub/conftest.c object=$am__obj \
3573       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3574       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3575         >/dev/null 2>conftest.err &&
3576       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3577       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3578       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3579       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3580      # icc doesn't choke on unknown options, it will just issue warnings
3581      # or remarks (even with -Werror).  So we grep stderr for any message
3582      # that says an option was ignored or not supported.
3583      # When given -MP, icc 7.0 and 7.1 complain thusly:
3584      #   icc: Command line warning: ignoring option '-M'; no argument required
3585      # The diagnosis changed in icc 8.0:
3586      #   icc: Command line remark: option '-MP' not supported
3587      if (grep 'ignoring option' conftest.err ||
3588          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3589        am_cv_CC_dependencies_compiler_type=$depmode
3590        break
3591      fi
3592    fi
3593  done
3594
3595  cd ..
3596  rm -rf conftest.dir
3597else
3598  am_cv_CC_dependencies_compiler_type=none
3599fi
3600
3601fi
3602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3603$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3604CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3605
3606 if
3607  test "x$enable_dependency_tracking" != xno \
3608  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3609  am__fastdepCC_TRUE=
3610  am__fastdepCC_FALSE='#'
3611else
3612  am__fastdepCC_TRUE='#'
3613  am__fastdepCC_FALSE=
3614fi
3615
3616
3617   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3618$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3619if ${ac_cv_prog_cc_c99+:} false; then :
3620  $as_echo_n "(cached) " >&6
3621else
3622  ac_cv_prog_cc_c99=no
3623ac_save_CC=$CC
3624cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3625/* end confdefs.h.  */
3626#include <stdarg.h>
3627#include <stdbool.h>
3628#include <stdlib.h>
3629#include <wchar.h>
3630#include <stdio.h>
3631
3632// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3633#define debug(...) fprintf (stderr, __VA_ARGS__)
3634#define showlist(...) puts (#__VA_ARGS__)
3635#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3636static void
3637test_varargs_macros (void)
3638{
3639  int x = 1234;
3640  int y = 5678;
3641  debug ("Flag");
3642  debug ("X = %d\n", x);
3643  showlist (The first, second, and third items.);
3644  report (x>y, "x is %d but y is %d", x, y);
3645}
3646
3647// Check long long types.
3648#define BIG64 18446744073709551615ull
3649#define BIG32 4294967295ul
3650#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3651#if !BIG_OK
3652  your preprocessor is broken;
3653#endif
3654#if BIG_OK
3655#else
3656  your preprocessor is broken;
3657#endif
3658static long long int bignum = -9223372036854775807LL;
3659static unsigned long long int ubignum = BIG64;
3660
3661struct incomplete_array
3662{
3663  int datasize;
3664  double data[];
3665};
3666
3667struct named_init {
3668  int number;
3669  const wchar_t *name;
3670  double average;
3671};
3672
3673typedef const char *ccp;
3674
3675static inline int
3676test_restrict (ccp restrict text)
3677{
3678  // See if C++-style comments work.
3679  // Iterate through items via the restricted pointer.
3680  // Also check for declarations in for loops.
3681  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3682    continue;
3683  return 0;
3684}
3685
3686// Check varargs and va_copy.
3687static void
3688test_varargs (const char *format, ...)
3689{
3690  va_list args;
3691  va_start (args, format);
3692  va_list args_copy;
3693  va_copy (args_copy, args);
3694
3695  const char *str;
3696  int number;
3697  float fnumber;
3698
3699  while (*format)
3700    {
3701      switch (*format++)
3702	{
3703	case 's': // string
3704	  str = va_arg (args_copy, const char *);
3705	  break;
3706	case 'd': // int
3707	  number = va_arg (args_copy, int);
3708	  break;
3709	case 'f': // float
3710	  fnumber = va_arg (args_copy, double);
3711	  break;
3712	default:
3713	  break;
3714	}
3715    }
3716  va_end (args_copy);
3717  va_end (args);
3718}
3719
3720int
3721main ()
3722{
3723
3724  // Check bool.
3725  _Bool success = false;
3726
3727  // Check restrict.
3728  if (test_restrict ("String literal") == 0)
3729    success = true;
3730  char *restrict newvar = "Another string";
3731
3732  // Check varargs.
3733  test_varargs ("s, d' f .", "string", 65, 34.234);
3734  test_varargs_macros ();
3735
3736  // Check flexible array members.
3737  struct incomplete_array *ia =
3738    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3739  ia->datasize = 10;
3740  for (int i = 0; i < ia->datasize; ++i)
3741    ia->data[i] = i * 1.234;
3742
3743  // Check named initializers.
3744  struct named_init ni = {
3745    .number = 34,
3746    .name = L"Test wide string",
3747    .average = 543.34343,
3748  };
3749
3750  ni.number = 58;
3751
3752  int dynamic_array[ni.number];
3753  dynamic_array[ni.number - 1] = 543;
3754
3755  // work around unused variable warnings
3756  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3757	  || dynamic_array[ni.number - 1] != 543);
3758
3759  ;
3760  return 0;
3761}
3762_ACEOF
3763for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3764do
3765  CC="$ac_save_CC $ac_arg"
3766  if ac_fn_c_try_compile "$LINENO"; then :
3767  ac_cv_prog_cc_c99=$ac_arg
3768fi
3769rm -f core conftest.err conftest.$ac_objext
3770  test "x$ac_cv_prog_cc_c99" != "xno" && break
3771done
3772rm -f conftest.$ac_ext
3773CC=$ac_save_CC
3774
3775fi
3776# AC_CACHE_VAL
3777case "x$ac_cv_prog_cc_c99" in
3778  x)
3779    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3780$as_echo "none needed" >&6; } ;;
3781  xno)
3782    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3783$as_echo "unsupported" >&6; } ;;
3784  *)
3785    CC="$CC $ac_cv_prog_cc_c99"
3786    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3787$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3788esac
3789if test "x$ac_cv_prog_cc_c99" != xno; then :
3790
3791fi
3792
3793
3794
3795ac_ext=c
3796ac_cpp='$CPP $CPPFLAGS'
3797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3799ac_compiler_gnu=$ac_cv_c_compiler_gnu
3800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3801$as_echo_n "checking how to run the C preprocessor... " >&6; }
3802# On Suns, sometimes $CPP names a directory.
3803if test -n "$CPP" && test -d "$CPP"; then
3804  CPP=
3805fi
3806if test -z "$CPP"; then
3807  if ${ac_cv_prog_CPP+:} false; then :
3808  $as_echo_n "(cached) " >&6
3809else
3810      # Double quotes because CPP needs to be expanded
3811    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3812    do
3813      ac_preproc_ok=false
3814for ac_c_preproc_warn_flag in '' yes
3815do
3816  # Use a header file that comes with gcc, so configuring glibc
3817  # with a fresh cross-compiler works.
3818  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3819  # <limits.h> exists even on freestanding compilers.
3820  # On the NeXT, cc -E runs the code through the compiler's parser,
3821  # not just through cpp. "Syntax error" is here to catch this case.
3822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3823/* end confdefs.h.  */
3824#ifdef __STDC__
3825# include <limits.h>
3826#else
3827# include <assert.h>
3828#endif
3829		     Syntax error
3830_ACEOF
3831if ac_fn_c_try_cpp "$LINENO"; then :
3832
3833else
3834  # Broken: fails on valid input.
3835continue
3836fi
3837rm -f conftest.err conftest.i conftest.$ac_ext
3838
3839  # OK, works on sane cases.  Now check whether nonexistent headers
3840  # can be detected and how.
3841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3842/* end confdefs.h.  */
3843#include <ac_nonexistent.h>
3844_ACEOF
3845if ac_fn_c_try_cpp "$LINENO"; then :
3846  # Broken: success on invalid input.
3847continue
3848else
3849  # Passes both tests.
3850ac_preproc_ok=:
3851break
3852fi
3853rm -f conftest.err conftest.i conftest.$ac_ext
3854
3855done
3856# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3857rm -f conftest.i conftest.err conftest.$ac_ext
3858if $ac_preproc_ok; then :
3859  break
3860fi
3861
3862    done
3863    ac_cv_prog_CPP=$CPP
3864
3865fi
3866  CPP=$ac_cv_prog_CPP
3867else
3868  ac_cv_prog_CPP=$CPP
3869fi
3870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3871$as_echo "$CPP" >&6; }
3872ac_preproc_ok=false
3873for ac_c_preproc_warn_flag in '' yes
3874do
3875  # Use a header file that comes with gcc, so configuring glibc
3876  # with a fresh cross-compiler works.
3877  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3878  # <limits.h> exists even on freestanding compilers.
3879  # On the NeXT, cc -E runs the code through the compiler's parser,
3880  # not just through cpp. "Syntax error" is here to catch this case.
3881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882/* end confdefs.h.  */
3883#ifdef __STDC__
3884# include <limits.h>
3885#else
3886# include <assert.h>
3887#endif
3888		     Syntax error
3889_ACEOF
3890if ac_fn_c_try_cpp "$LINENO"; then :
3891
3892else
3893  # Broken: fails on valid input.
3894continue
3895fi
3896rm -f conftest.err conftest.i conftest.$ac_ext
3897
3898  # OK, works on sane cases.  Now check whether nonexistent headers
3899  # can be detected and how.
3900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3901/* end confdefs.h.  */
3902#include <ac_nonexistent.h>
3903_ACEOF
3904if ac_fn_c_try_cpp "$LINENO"; then :
3905  # Broken: success on invalid input.
3906continue
3907else
3908  # Passes both tests.
3909ac_preproc_ok=:
3910break
3911fi
3912rm -f conftest.err conftest.i conftest.$ac_ext
3913
3914done
3915# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3916rm -f conftest.i conftest.err conftest.$ac_ext
3917if $ac_preproc_ok; then :
3918
3919else
3920  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3921$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3922as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3923See \`config.log' for more details" "$LINENO" 5; }
3924fi
3925
3926ac_ext=c
3927ac_cpp='$CPP $CPPFLAGS'
3928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3930ac_compiler_gnu=$ac_cv_c_compiler_gnu
3931
3932
3933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3934$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3935if ${ac_cv_path_GREP+:} false; then :
3936  $as_echo_n "(cached) " >&6
3937else
3938  if test -z "$GREP"; then
3939  ac_path_GREP_found=false
3940  # Loop through the user's path and test for each of PROGNAME-LIST
3941  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3943do
3944  IFS=$as_save_IFS
3945  test -z "$as_dir" && as_dir=.
3946    for ac_prog in grep ggrep; do
3947    for ac_exec_ext in '' $ac_executable_extensions; do
3948      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3949      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3950# Check for GNU ac_path_GREP and select it if it is found.
3951  # Check for GNU $ac_path_GREP
3952case `"$ac_path_GREP" --version 2>&1` in
3953*GNU*)
3954  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3955*)
3956  ac_count=0
3957  $as_echo_n 0123456789 >"conftest.in"
3958  while :
3959  do
3960    cat "conftest.in" "conftest.in" >"conftest.tmp"
3961    mv "conftest.tmp" "conftest.in"
3962    cp "conftest.in" "conftest.nl"
3963    $as_echo 'GREP' >> "conftest.nl"
3964    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3965    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3966    as_fn_arith $ac_count + 1 && ac_count=$as_val
3967    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3968      # Best one so far, save it but keep looking for a better one
3969      ac_cv_path_GREP="$ac_path_GREP"
3970      ac_path_GREP_max=$ac_count
3971    fi
3972    # 10*(2^10) chars as input seems more than enough
3973    test $ac_count -gt 10 && break
3974  done
3975  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3976esac
3977
3978      $ac_path_GREP_found && break 3
3979    done
3980  done
3981  done
3982IFS=$as_save_IFS
3983  if test -z "$ac_cv_path_GREP"; then
3984    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3985  fi
3986else
3987  ac_cv_path_GREP=$GREP
3988fi
3989
3990fi
3991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3992$as_echo "$ac_cv_path_GREP" >&6; }
3993 GREP="$ac_cv_path_GREP"
3994
3995
3996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3997$as_echo_n "checking for egrep... " >&6; }
3998if ${ac_cv_path_EGREP+:} false; then :
3999  $as_echo_n "(cached) " >&6
4000else
4001  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4002   then ac_cv_path_EGREP="$GREP -E"
4003   else
4004     if test -z "$EGREP"; then
4005  ac_path_EGREP_found=false
4006  # Loop through the user's path and test for each of PROGNAME-LIST
4007  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4009do
4010  IFS=$as_save_IFS
4011  test -z "$as_dir" && as_dir=.
4012    for ac_prog in egrep; do
4013    for ac_exec_ext in '' $ac_executable_extensions; do
4014      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4015      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4016# Check for GNU ac_path_EGREP and select it if it is found.
4017  # Check for GNU $ac_path_EGREP
4018case `"$ac_path_EGREP" --version 2>&1` in
4019*GNU*)
4020  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4021*)
4022  ac_count=0
4023  $as_echo_n 0123456789 >"conftest.in"
4024  while :
4025  do
4026    cat "conftest.in" "conftest.in" >"conftest.tmp"
4027    mv "conftest.tmp" "conftest.in"
4028    cp "conftest.in" "conftest.nl"
4029    $as_echo 'EGREP' >> "conftest.nl"
4030    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4031    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4032    as_fn_arith $ac_count + 1 && ac_count=$as_val
4033    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4034      # Best one so far, save it but keep looking for a better one
4035      ac_cv_path_EGREP="$ac_path_EGREP"
4036      ac_path_EGREP_max=$ac_count
4037    fi
4038    # 10*(2^10) chars as input seems more than enough
4039    test $ac_count -gt 10 && break
4040  done
4041  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4042esac
4043
4044      $ac_path_EGREP_found && break 3
4045    done
4046  done
4047  done
4048IFS=$as_save_IFS
4049  if test -z "$ac_cv_path_EGREP"; then
4050    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4051  fi
4052else
4053  ac_cv_path_EGREP=$EGREP
4054fi
4055
4056   fi
4057fi
4058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4059$as_echo "$ac_cv_path_EGREP" >&6; }
4060 EGREP="$ac_cv_path_EGREP"
4061
4062
4063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4064$as_echo_n "checking for ANSI C header files... " >&6; }
4065if ${ac_cv_header_stdc+:} false; then :
4066  $as_echo_n "(cached) " >&6
4067else
4068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4069/* end confdefs.h.  */
4070#include <stdlib.h>
4071#include <stdarg.h>
4072#include <string.h>
4073#include <float.h>
4074
4075int
4076main ()
4077{
4078
4079  ;
4080  return 0;
4081}
4082_ACEOF
4083if ac_fn_c_try_compile "$LINENO"; then :
4084  ac_cv_header_stdc=yes
4085else
4086  ac_cv_header_stdc=no
4087fi
4088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4089
4090if test $ac_cv_header_stdc = yes; then
4091  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093/* end confdefs.h.  */
4094#include <string.h>
4095
4096_ACEOF
4097if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4098  $EGREP "memchr" >/dev/null 2>&1; then :
4099
4100else
4101  ac_cv_header_stdc=no
4102fi
4103rm -f conftest*
4104
4105fi
4106
4107if test $ac_cv_header_stdc = yes; then
4108  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4110/* end confdefs.h.  */
4111#include <stdlib.h>
4112
4113_ACEOF
4114if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4115  $EGREP "free" >/dev/null 2>&1; then :
4116
4117else
4118  ac_cv_header_stdc=no
4119fi
4120rm -f conftest*
4121
4122fi
4123
4124if test $ac_cv_header_stdc = yes; then
4125  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4126  if test "$cross_compiling" = yes; then :
4127  :
4128else
4129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4130/* end confdefs.h.  */
4131#include <ctype.h>
4132#include <stdlib.h>
4133#if ((' ' & 0x0FF) == 0x020)
4134# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4135# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4136#else
4137# define ISLOWER(c) \
4138		   (('a' <= (c) && (c) <= 'i') \
4139		     || ('j' <= (c) && (c) <= 'r') \
4140		     || ('s' <= (c) && (c) <= 'z'))
4141# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4142#endif
4143
4144#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4145int
4146main ()
4147{
4148  int i;
4149  for (i = 0; i < 256; i++)
4150    if (XOR (islower (i), ISLOWER (i))
4151	|| toupper (i) != TOUPPER (i))
4152      return 2;
4153  return 0;
4154}
4155_ACEOF
4156if ac_fn_c_try_run "$LINENO"; then :
4157
4158else
4159  ac_cv_header_stdc=no
4160fi
4161rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4162  conftest.$ac_objext conftest.beam conftest.$ac_ext
4163fi
4164
4165fi
4166fi
4167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4168$as_echo "$ac_cv_header_stdc" >&6; }
4169if test $ac_cv_header_stdc = yes; then
4170
4171$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4172
4173fi
4174
4175# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4176for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4177		  inttypes.h stdint.h unistd.h
4178do :
4179  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4180ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4181"
4182if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4183  cat >>confdefs.h <<_ACEOF
4184#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4185_ACEOF
4186
4187fi
4188
4189done
4190
4191
4192
4193
4194
4195
4196ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4197if test "x$ac_cv_have_decl___clang__" = xyes; then :
4198  CLANGCC="yes"
4199else
4200  CLANGCC="no"
4201fi
4202
4203ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4204if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4205  INTELCC="yes"
4206else
4207  INTELCC="no"
4208fi
4209
4210ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4211if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4212  SUNCC="yes"
4213else
4214  SUNCC="no"
4215fi
4216
4217
4218
4219
4220if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4221	if test -n "$ac_tool_prefix"; then
4222  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4223set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4225$as_echo_n "checking for $ac_word... " >&6; }
4226if ${ac_cv_path_PKG_CONFIG+:} false; then :
4227  $as_echo_n "(cached) " >&6
4228else
4229  case $PKG_CONFIG in
4230  [\\/]* | ?:[\\/]*)
4231  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4232  ;;
4233  *)
4234  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235for as_dir in $PATH
4236do
4237  IFS=$as_save_IFS
4238  test -z "$as_dir" && as_dir=.
4239    for ac_exec_ext in '' $ac_executable_extensions; do
4240  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4241    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4242    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4243    break 2
4244  fi
4245done
4246  done
4247IFS=$as_save_IFS
4248
4249  ;;
4250esac
4251fi
4252PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4253if test -n "$PKG_CONFIG"; then
4254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4255$as_echo "$PKG_CONFIG" >&6; }
4256else
4257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4258$as_echo "no" >&6; }
4259fi
4260
4261
4262fi
4263if test -z "$ac_cv_path_PKG_CONFIG"; then
4264  ac_pt_PKG_CONFIG=$PKG_CONFIG
4265  # Extract the first word of "pkg-config", so it can be a program name with args.
4266set dummy pkg-config; ac_word=$2
4267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4268$as_echo_n "checking for $ac_word... " >&6; }
4269if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4270  $as_echo_n "(cached) " >&6
4271else
4272  case $ac_pt_PKG_CONFIG in
4273  [\\/]* | ?:[\\/]*)
4274  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4275  ;;
4276  *)
4277  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278for as_dir in $PATH
4279do
4280  IFS=$as_save_IFS
4281  test -z "$as_dir" && as_dir=.
4282    for ac_exec_ext in '' $ac_executable_extensions; do
4283  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4284    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4285    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4286    break 2
4287  fi
4288done
4289  done
4290IFS=$as_save_IFS
4291
4292  ;;
4293esac
4294fi
4295ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4296if test -n "$ac_pt_PKG_CONFIG"; then
4297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4298$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4299else
4300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4301$as_echo "no" >&6; }
4302fi
4303
4304  if test "x$ac_pt_PKG_CONFIG" = x; then
4305    PKG_CONFIG=""
4306  else
4307    case $cross_compiling:$ac_tool_warned in
4308yes:)
4309{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4310$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4311ac_tool_warned=yes ;;
4312esac
4313    PKG_CONFIG=$ac_pt_PKG_CONFIG
4314  fi
4315else
4316  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4317fi
4318
4319fi
4320if test -n "$PKG_CONFIG"; then
4321	_pkg_min_version=0.9.0
4322	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4323$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4324	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4325		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4326$as_echo "yes" >&6; }
4327	else
4328		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4329$as_echo "no" >&6; }
4330		PKG_CONFIG=""
4331	fi
4332
4333fi
4334# Make sure we can run config.sub.
4335$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4336  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4337
4338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4339$as_echo_n "checking build system type... " >&6; }
4340if ${ac_cv_build+:} false; then :
4341  $as_echo_n "(cached) " >&6
4342else
4343  ac_build_alias=$build_alias
4344test "x$ac_build_alias" = x &&
4345  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4346test "x$ac_build_alias" = x &&
4347  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4348ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4349  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4350
4351fi
4352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4353$as_echo "$ac_cv_build" >&6; }
4354case $ac_cv_build in
4355*-*-*) ;;
4356*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4357esac
4358build=$ac_cv_build
4359ac_save_IFS=$IFS; IFS='-'
4360set x $ac_cv_build
4361shift
4362build_cpu=$1
4363build_vendor=$2
4364shift; shift
4365# Remember, the first character of IFS is used to create $*,
4366# except with old shells:
4367build_os=$*
4368IFS=$ac_save_IFS
4369case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4370
4371
4372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4373$as_echo_n "checking host system type... " >&6; }
4374if ${ac_cv_host+:} false; then :
4375  $as_echo_n "(cached) " >&6
4376else
4377  if test "x$host_alias" = x; then
4378  ac_cv_host=$ac_cv_build
4379else
4380  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4381    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4382fi
4383
4384fi
4385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4386$as_echo "$ac_cv_host" >&6; }
4387case $ac_cv_host in
4388*-*-*) ;;
4389*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4390esac
4391host=$ac_cv_host
4392ac_save_IFS=$IFS; IFS='-'
4393set x $ac_cv_host
4394shift
4395host_cpu=$1
4396host_vendor=$2
4397shift; shift
4398# Remember, the first character of IFS is used to create $*,
4399# except with old shells:
4400host_os=$*
4401IFS=$ac_save_IFS
4402case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4403
4404
4405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4406$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4407if ${ac_cv_path_SED+:} false; then :
4408  $as_echo_n "(cached) " >&6
4409else
4410            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4411     for ac_i in 1 2 3 4 5 6 7; do
4412       ac_script="$ac_script$as_nl$ac_script"
4413     done
4414     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4415     { ac_script=; unset ac_script;}
4416     if test -z "$SED"; then
4417  ac_path_SED_found=false
4418  # Loop through the user's path and test for each of PROGNAME-LIST
4419  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420for as_dir in $PATH
4421do
4422  IFS=$as_save_IFS
4423  test -z "$as_dir" && as_dir=.
4424    for ac_prog in sed gsed; do
4425    for ac_exec_ext in '' $ac_executable_extensions; do
4426      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4427      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4428# Check for GNU ac_path_SED and select it if it is found.
4429  # Check for GNU $ac_path_SED
4430case `"$ac_path_SED" --version 2>&1` in
4431*GNU*)
4432  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4433*)
4434  ac_count=0
4435  $as_echo_n 0123456789 >"conftest.in"
4436  while :
4437  do
4438    cat "conftest.in" "conftest.in" >"conftest.tmp"
4439    mv "conftest.tmp" "conftest.in"
4440    cp "conftest.in" "conftest.nl"
4441    $as_echo '' >> "conftest.nl"
4442    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4443    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4444    as_fn_arith $ac_count + 1 && ac_count=$as_val
4445    if test $ac_count -gt ${ac_path_SED_max-0}; then
4446      # Best one so far, save it but keep looking for a better one
4447      ac_cv_path_SED="$ac_path_SED"
4448      ac_path_SED_max=$ac_count
4449    fi
4450    # 10*(2^10) chars as input seems more than enough
4451    test $ac_count -gt 10 && break
4452  done
4453  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4454esac
4455
4456      $ac_path_SED_found && break 3
4457    done
4458  done
4459  done
4460IFS=$as_save_IFS
4461  if test -z "$ac_cv_path_SED"; then
4462    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4463  fi
4464else
4465  ac_cv_path_SED=$SED
4466fi
4467
4468fi
4469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4470$as_echo "$ac_cv_path_SED" >&6; }
4471 SED="$ac_cv_path_SED"
4472  rm -f conftest.sed
4473
4474
4475
4476
4477
4478
4479# Check whether --enable-selective-werror was given.
4480if test "${enable_selective_werror+set}" = set; then :
4481  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4482else
4483  SELECTIVE_WERROR=yes
4484fi
4485
4486
4487
4488
4489
4490# -v is too short to test reliably with XORG_TESTSET_CFLAG
4491if test "x$SUNCC" = "xyes"; then
4492    BASE_CFLAGS="-v"
4493else
4494    BASE_CFLAGS=""
4495fi
4496
4497# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511xorg_testset_save_CFLAGS="$CFLAGS"
4512
4513if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4514	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4515	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4516$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4517if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4518  $as_echo_n "(cached) " >&6
4519else
4520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4521/* end confdefs.h.  */
4522int i;
4523_ACEOF
4524if ac_fn_c_try_compile "$LINENO"; then :
4525  xorg_cv_cc_flag_unknown_warning_option=yes
4526else
4527  xorg_cv_cc_flag_unknown_warning_option=no
4528fi
4529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4530fi
4531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4532$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4533	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4534	CFLAGS="$xorg_testset_save_CFLAGS"
4535fi
4536
4537if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4538	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4539		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4540	fi
4541	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4542	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4543$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4544if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4545  $as_echo_n "(cached) " >&6
4546else
4547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4548/* end confdefs.h.  */
4549int i;
4550_ACEOF
4551if ac_fn_c_try_compile "$LINENO"; then :
4552  xorg_cv_cc_flag_unused_command_line_argument=yes
4553else
4554  xorg_cv_cc_flag_unused_command_line_argument=no
4555fi
4556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4557fi
4558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4559$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4560	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4561	CFLAGS="$xorg_testset_save_CFLAGS"
4562fi
4563
4564found="no"
4565
4566	if test $found = "no" ; then
4567		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4568			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4569		fi
4570
4571		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4572			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4573		fi
4574
4575		CFLAGS="$CFLAGS -Wall"
4576
4577		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4578$as_echo_n "checking if $CC supports -Wall... " >&6; }
4579		cacheid=xorg_cv_cc_flag__Wall
4580		if eval \${$cacheid+:} false; then :
4581  $as_echo_n "(cached) " >&6
4582else
4583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4584/* end confdefs.h.  */
4585int i;
4586int
4587main ()
4588{
4589
4590  ;
4591  return 0;
4592}
4593_ACEOF
4594if ac_fn_c_try_link "$LINENO"; then :
4595  eval $cacheid=yes
4596else
4597  eval $cacheid=no
4598fi
4599rm -f core conftest.err conftest.$ac_objext \
4600    conftest$ac_exeext conftest.$ac_ext
4601fi
4602
4603
4604		CFLAGS="$xorg_testset_save_CFLAGS"
4605
4606		eval supported=\$$cacheid
4607		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4608$as_echo "$supported" >&6; }
4609		if test "$supported" = "yes" ; then
4610			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4611			found="yes"
4612		fi
4613	fi
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629xorg_testset_save_CFLAGS="$CFLAGS"
4630
4631if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4632	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4633	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4634$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4635if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4636  $as_echo_n "(cached) " >&6
4637else
4638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4639/* end confdefs.h.  */
4640int i;
4641_ACEOF
4642if ac_fn_c_try_compile "$LINENO"; then :
4643  xorg_cv_cc_flag_unknown_warning_option=yes
4644else
4645  xorg_cv_cc_flag_unknown_warning_option=no
4646fi
4647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4648fi
4649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4650$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4651	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4652	CFLAGS="$xorg_testset_save_CFLAGS"
4653fi
4654
4655if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4656	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4657		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4658	fi
4659	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4660	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4661$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4662if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4663  $as_echo_n "(cached) " >&6
4664else
4665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4666/* end confdefs.h.  */
4667int i;
4668_ACEOF
4669if ac_fn_c_try_compile "$LINENO"; then :
4670  xorg_cv_cc_flag_unused_command_line_argument=yes
4671else
4672  xorg_cv_cc_flag_unused_command_line_argument=no
4673fi
4674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4675fi
4676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4677$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4678	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4679	CFLAGS="$xorg_testset_save_CFLAGS"
4680fi
4681
4682found="no"
4683
4684	if test $found = "no" ; then
4685		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4686			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4687		fi
4688
4689		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4690			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4691		fi
4692
4693		CFLAGS="$CFLAGS -Wpointer-arith"
4694
4695		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4696$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4697		cacheid=xorg_cv_cc_flag__Wpointer_arith
4698		if eval \${$cacheid+:} false; then :
4699  $as_echo_n "(cached) " >&6
4700else
4701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4702/* end confdefs.h.  */
4703int i;
4704int
4705main ()
4706{
4707
4708  ;
4709  return 0;
4710}
4711_ACEOF
4712if ac_fn_c_try_link "$LINENO"; then :
4713  eval $cacheid=yes
4714else
4715  eval $cacheid=no
4716fi
4717rm -f core conftest.err conftest.$ac_objext \
4718    conftest$ac_exeext conftest.$ac_ext
4719fi
4720
4721
4722		CFLAGS="$xorg_testset_save_CFLAGS"
4723
4724		eval supported=\$$cacheid
4725		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4726$as_echo "$supported" >&6; }
4727		if test "$supported" = "yes" ; then
4728			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4729			found="yes"
4730		fi
4731	fi
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747xorg_testset_save_CFLAGS="$CFLAGS"
4748
4749if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4750	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4751	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4752$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4753if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4754  $as_echo_n "(cached) " >&6
4755else
4756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757/* end confdefs.h.  */
4758int i;
4759_ACEOF
4760if ac_fn_c_try_compile "$LINENO"; then :
4761  xorg_cv_cc_flag_unknown_warning_option=yes
4762else
4763  xorg_cv_cc_flag_unknown_warning_option=no
4764fi
4765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4766fi
4767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4768$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4769	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4770	CFLAGS="$xorg_testset_save_CFLAGS"
4771fi
4772
4773if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4774	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4775		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4776	fi
4777	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4778	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4779$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4780if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4781  $as_echo_n "(cached) " >&6
4782else
4783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4784/* end confdefs.h.  */
4785int i;
4786_ACEOF
4787if ac_fn_c_try_compile "$LINENO"; then :
4788  xorg_cv_cc_flag_unused_command_line_argument=yes
4789else
4790  xorg_cv_cc_flag_unused_command_line_argument=no
4791fi
4792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4793fi
4794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4795$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4796	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4797	CFLAGS="$xorg_testset_save_CFLAGS"
4798fi
4799
4800found="no"
4801
4802	if test $found = "no" ; then
4803		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4804			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4805		fi
4806
4807		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4808			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4809		fi
4810
4811		CFLAGS="$CFLAGS -Wmissing-declarations"
4812
4813		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4814$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4815		cacheid=xorg_cv_cc_flag__Wmissing_declarations
4816		if eval \${$cacheid+:} false; then :
4817  $as_echo_n "(cached) " >&6
4818else
4819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4820/* end confdefs.h.  */
4821int i;
4822int
4823main ()
4824{
4825
4826  ;
4827  return 0;
4828}
4829_ACEOF
4830if ac_fn_c_try_link "$LINENO"; then :
4831  eval $cacheid=yes
4832else
4833  eval $cacheid=no
4834fi
4835rm -f core conftest.err conftest.$ac_objext \
4836    conftest$ac_exeext conftest.$ac_ext
4837fi
4838
4839
4840		CFLAGS="$xorg_testset_save_CFLAGS"
4841
4842		eval supported=\$$cacheid
4843		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4844$as_echo "$supported" >&6; }
4845		if test "$supported" = "yes" ; then
4846			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4847			found="yes"
4848		fi
4849	fi
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865xorg_testset_save_CFLAGS="$CFLAGS"
4866
4867if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4868	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4869	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4870$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4871if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4872  $as_echo_n "(cached) " >&6
4873else
4874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4875/* end confdefs.h.  */
4876int i;
4877_ACEOF
4878if ac_fn_c_try_compile "$LINENO"; then :
4879  xorg_cv_cc_flag_unknown_warning_option=yes
4880else
4881  xorg_cv_cc_flag_unknown_warning_option=no
4882fi
4883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4884fi
4885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4886$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4887	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4888	CFLAGS="$xorg_testset_save_CFLAGS"
4889fi
4890
4891if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4892	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4893		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4894	fi
4895	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4896	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4897$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4898if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4899  $as_echo_n "(cached) " >&6
4900else
4901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4902/* end confdefs.h.  */
4903int i;
4904_ACEOF
4905if ac_fn_c_try_compile "$LINENO"; then :
4906  xorg_cv_cc_flag_unused_command_line_argument=yes
4907else
4908  xorg_cv_cc_flag_unused_command_line_argument=no
4909fi
4910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4911fi
4912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4913$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4914	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4915	CFLAGS="$xorg_testset_save_CFLAGS"
4916fi
4917
4918found="no"
4919
4920	if test $found = "no" ; then
4921		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4922			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4923		fi
4924
4925		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4926			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4927		fi
4928
4929		CFLAGS="$CFLAGS -Wformat=2"
4930
4931		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
4932$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
4933		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
4934		if eval \${$cacheid+:} false; then :
4935  $as_echo_n "(cached) " >&6
4936else
4937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4938/* end confdefs.h.  */
4939int i;
4940int
4941main ()
4942{
4943
4944  ;
4945  return 0;
4946}
4947_ACEOF
4948if ac_fn_c_try_link "$LINENO"; then :
4949  eval $cacheid=yes
4950else
4951  eval $cacheid=no
4952fi
4953rm -f core conftest.err conftest.$ac_objext \
4954    conftest$ac_exeext conftest.$ac_ext
4955fi
4956
4957
4958		CFLAGS="$xorg_testset_save_CFLAGS"
4959
4960		eval supported=\$$cacheid
4961		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4962$as_echo "$supported" >&6; }
4963		if test "$supported" = "yes" ; then
4964			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
4965			found="yes"
4966		fi
4967	fi
4968
4969	if test $found = "no" ; then
4970		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4971			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4972		fi
4973
4974		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4975			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4976		fi
4977
4978		CFLAGS="$CFLAGS -Wformat"
4979
4980		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
4981$as_echo_n "checking if $CC supports -Wformat... " >&6; }
4982		cacheid=xorg_cv_cc_flag__Wformat
4983		if eval \${$cacheid+:} false; then :
4984  $as_echo_n "(cached) " >&6
4985else
4986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4987/* end confdefs.h.  */
4988int i;
4989int
4990main ()
4991{
4992
4993  ;
4994  return 0;
4995}
4996_ACEOF
4997if ac_fn_c_try_link "$LINENO"; then :
4998  eval $cacheid=yes
4999else
5000  eval $cacheid=no
5001fi
5002rm -f core conftest.err conftest.$ac_objext \
5003    conftest$ac_exeext conftest.$ac_ext
5004fi
5005
5006
5007		CFLAGS="$xorg_testset_save_CFLAGS"
5008
5009		eval supported=\$$cacheid
5010		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5011$as_echo "$supported" >&6; }
5012		if test "$supported" = "yes" ; then
5013			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5014			found="yes"
5015		fi
5016	fi
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034xorg_testset_save_CFLAGS="$CFLAGS"
5035
5036if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5037	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5038	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5039$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5040if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5041  $as_echo_n "(cached) " >&6
5042else
5043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5044/* end confdefs.h.  */
5045int i;
5046_ACEOF
5047if ac_fn_c_try_compile "$LINENO"; then :
5048  xorg_cv_cc_flag_unknown_warning_option=yes
5049else
5050  xorg_cv_cc_flag_unknown_warning_option=no
5051fi
5052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5053fi
5054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5055$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5056	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5057	CFLAGS="$xorg_testset_save_CFLAGS"
5058fi
5059
5060if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5061	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5062		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5063	fi
5064	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5065	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5066$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5067if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5068  $as_echo_n "(cached) " >&6
5069else
5070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5071/* end confdefs.h.  */
5072int i;
5073_ACEOF
5074if ac_fn_c_try_compile "$LINENO"; then :
5075  xorg_cv_cc_flag_unused_command_line_argument=yes
5076else
5077  xorg_cv_cc_flag_unused_command_line_argument=no
5078fi
5079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5080fi
5081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5082$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5083	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5084	CFLAGS="$xorg_testset_save_CFLAGS"
5085fi
5086
5087found="no"
5088
5089	if test $found = "no" ; then
5090		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5091			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5092		fi
5093
5094		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5095			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5096		fi
5097
5098		CFLAGS="$CFLAGS -Wstrict-prototypes"
5099
5100		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5101$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5102		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5103		if eval \${$cacheid+:} false; then :
5104  $as_echo_n "(cached) " >&6
5105else
5106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5107/* end confdefs.h.  */
5108int i;
5109int
5110main ()
5111{
5112
5113  ;
5114  return 0;
5115}
5116_ACEOF
5117if ac_fn_c_try_link "$LINENO"; then :
5118  eval $cacheid=yes
5119else
5120  eval $cacheid=no
5121fi
5122rm -f core conftest.err conftest.$ac_objext \
5123    conftest$ac_exeext conftest.$ac_ext
5124fi
5125
5126
5127		CFLAGS="$xorg_testset_save_CFLAGS"
5128
5129		eval supported=\$$cacheid
5130		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5131$as_echo "$supported" >&6; }
5132		if test "$supported" = "yes" ; then
5133			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5134			found="yes"
5135		fi
5136	fi
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152xorg_testset_save_CFLAGS="$CFLAGS"
5153
5154if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5155	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5156	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5157$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5158if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5159  $as_echo_n "(cached) " >&6
5160else
5161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162/* end confdefs.h.  */
5163int i;
5164_ACEOF
5165if ac_fn_c_try_compile "$LINENO"; then :
5166  xorg_cv_cc_flag_unknown_warning_option=yes
5167else
5168  xorg_cv_cc_flag_unknown_warning_option=no
5169fi
5170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5171fi
5172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5173$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5174	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5175	CFLAGS="$xorg_testset_save_CFLAGS"
5176fi
5177
5178if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5179	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5180		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5181	fi
5182	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5183	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5184$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5185if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5186  $as_echo_n "(cached) " >&6
5187else
5188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5189/* end confdefs.h.  */
5190int i;
5191_ACEOF
5192if ac_fn_c_try_compile "$LINENO"; then :
5193  xorg_cv_cc_flag_unused_command_line_argument=yes
5194else
5195  xorg_cv_cc_flag_unused_command_line_argument=no
5196fi
5197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5198fi
5199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5200$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5201	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5202	CFLAGS="$xorg_testset_save_CFLAGS"
5203fi
5204
5205found="no"
5206
5207	if test $found = "no" ; then
5208		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5209			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5210		fi
5211
5212		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5213			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5214		fi
5215
5216		CFLAGS="$CFLAGS -Wmissing-prototypes"
5217
5218		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5219$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5220		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5221		if eval \${$cacheid+:} false; then :
5222  $as_echo_n "(cached) " >&6
5223else
5224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5225/* end confdefs.h.  */
5226int i;
5227int
5228main ()
5229{
5230
5231  ;
5232  return 0;
5233}
5234_ACEOF
5235if ac_fn_c_try_link "$LINENO"; then :
5236  eval $cacheid=yes
5237else
5238  eval $cacheid=no
5239fi
5240rm -f core conftest.err conftest.$ac_objext \
5241    conftest$ac_exeext conftest.$ac_ext
5242fi
5243
5244
5245		CFLAGS="$xorg_testset_save_CFLAGS"
5246
5247		eval supported=\$$cacheid
5248		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5249$as_echo "$supported" >&6; }
5250		if test "$supported" = "yes" ; then
5251			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5252			found="yes"
5253		fi
5254	fi
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270xorg_testset_save_CFLAGS="$CFLAGS"
5271
5272if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5273	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5274	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5275$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5276if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5277  $as_echo_n "(cached) " >&6
5278else
5279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5280/* end confdefs.h.  */
5281int i;
5282_ACEOF
5283if ac_fn_c_try_compile "$LINENO"; then :
5284  xorg_cv_cc_flag_unknown_warning_option=yes
5285else
5286  xorg_cv_cc_flag_unknown_warning_option=no
5287fi
5288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5289fi
5290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5291$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5292	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5293	CFLAGS="$xorg_testset_save_CFLAGS"
5294fi
5295
5296if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5297	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5298		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5299	fi
5300	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5301	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5302$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5303if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5304  $as_echo_n "(cached) " >&6
5305else
5306  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5307/* end confdefs.h.  */
5308int i;
5309_ACEOF
5310if ac_fn_c_try_compile "$LINENO"; then :
5311  xorg_cv_cc_flag_unused_command_line_argument=yes
5312else
5313  xorg_cv_cc_flag_unused_command_line_argument=no
5314fi
5315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5316fi
5317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5318$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5319	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5320	CFLAGS="$xorg_testset_save_CFLAGS"
5321fi
5322
5323found="no"
5324
5325	if test $found = "no" ; then
5326		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5327			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5328		fi
5329
5330		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5331			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5332		fi
5333
5334		CFLAGS="$CFLAGS -Wnested-externs"
5335
5336		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5337$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5338		cacheid=xorg_cv_cc_flag__Wnested_externs
5339		if eval \${$cacheid+:} false; then :
5340  $as_echo_n "(cached) " >&6
5341else
5342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5343/* end confdefs.h.  */
5344int i;
5345int
5346main ()
5347{
5348
5349  ;
5350  return 0;
5351}
5352_ACEOF
5353if ac_fn_c_try_link "$LINENO"; then :
5354  eval $cacheid=yes
5355else
5356  eval $cacheid=no
5357fi
5358rm -f core conftest.err conftest.$ac_objext \
5359    conftest$ac_exeext conftest.$ac_ext
5360fi
5361
5362
5363		CFLAGS="$xorg_testset_save_CFLAGS"
5364
5365		eval supported=\$$cacheid
5366		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5367$as_echo "$supported" >&6; }
5368		if test "$supported" = "yes" ; then
5369			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5370			found="yes"
5371		fi
5372	fi
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388xorg_testset_save_CFLAGS="$CFLAGS"
5389
5390if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5391	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5392	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5393$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5394if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5395  $as_echo_n "(cached) " >&6
5396else
5397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5398/* end confdefs.h.  */
5399int i;
5400_ACEOF
5401if ac_fn_c_try_compile "$LINENO"; then :
5402  xorg_cv_cc_flag_unknown_warning_option=yes
5403else
5404  xorg_cv_cc_flag_unknown_warning_option=no
5405fi
5406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5407fi
5408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5409$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5410	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5411	CFLAGS="$xorg_testset_save_CFLAGS"
5412fi
5413
5414if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5415	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5416		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5417	fi
5418	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5419	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5420$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5421if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5422  $as_echo_n "(cached) " >&6
5423else
5424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5425/* end confdefs.h.  */
5426int i;
5427_ACEOF
5428if ac_fn_c_try_compile "$LINENO"; then :
5429  xorg_cv_cc_flag_unused_command_line_argument=yes
5430else
5431  xorg_cv_cc_flag_unused_command_line_argument=no
5432fi
5433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5434fi
5435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5436$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5437	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5438	CFLAGS="$xorg_testset_save_CFLAGS"
5439fi
5440
5441found="no"
5442
5443	if test $found = "no" ; then
5444		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5445			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5446		fi
5447
5448		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5449			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5450		fi
5451
5452		CFLAGS="$CFLAGS -Wbad-function-cast"
5453
5454		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5455$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5456		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5457		if eval \${$cacheid+:} false; then :
5458  $as_echo_n "(cached) " >&6
5459else
5460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5461/* end confdefs.h.  */
5462int i;
5463int
5464main ()
5465{
5466
5467  ;
5468  return 0;
5469}
5470_ACEOF
5471if ac_fn_c_try_link "$LINENO"; then :
5472  eval $cacheid=yes
5473else
5474  eval $cacheid=no
5475fi
5476rm -f core conftest.err conftest.$ac_objext \
5477    conftest$ac_exeext conftest.$ac_ext
5478fi
5479
5480
5481		CFLAGS="$xorg_testset_save_CFLAGS"
5482
5483		eval supported=\$$cacheid
5484		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5485$as_echo "$supported" >&6; }
5486		if test "$supported" = "yes" ; then
5487			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5488			found="yes"
5489		fi
5490	fi
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506xorg_testset_save_CFLAGS="$CFLAGS"
5507
5508if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5509	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5510	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5511$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5512if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5513  $as_echo_n "(cached) " >&6
5514else
5515  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5516/* end confdefs.h.  */
5517int i;
5518_ACEOF
5519if ac_fn_c_try_compile "$LINENO"; then :
5520  xorg_cv_cc_flag_unknown_warning_option=yes
5521else
5522  xorg_cv_cc_flag_unknown_warning_option=no
5523fi
5524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5525fi
5526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5527$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5528	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5529	CFLAGS="$xorg_testset_save_CFLAGS"
5530fi
5531
5532if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5533	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5534		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5535	fi
5536	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5537	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5538$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5539if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5540  $as_echo_n "(cached) " >&6
5541else
5542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5543/* end confdefs.h.  */
5544int i;
5545_ACEOF
5546if ac_fn_c_try_compile "$LINENO"; then :
5547  xorg_cv_cc_flag_unused_command_line_argument=yes
5548else
5549  xorg_cv_cc_flag_unused_command_line_argument=no
5550fi
5551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5552fi
5553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5554$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5555	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5556	CFLAGS="$xorg_testset_save_CFLAGS"
5557fi
5558
5559found="no"
5560
5561	if test $found = "no" ; then
5562		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5563			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5564		fi
5565
5566		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5567			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5568		fi
5569
5570		CFLAGS="$CFLAGS -Wold-style-definition"
5571
5572		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5573$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5574		cacheid=xorg_cv_cc_flag__Wold_style_definition
5575		if eval \${$cacheid+:} false; then :
5576  $as_echo_n "(cached) " >&6
5577else
5578  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5579/* end confdefs.h.  */
5580int i;
5581int
5582main ()
5583{
5584
5585  ;
5586  return 0;
5587}
5588_ACEOF
5589if ac_fn_c_try_link "$LINENO"; then :
5590  eval $cacheid=yes
5591else
5592  eval $cacheid=no
5593fi
5594rm -f core conftest.err conftest.$ac_objext \
5595    conftest$ac_exeext conftest.$ac_ext
5596fi
5597
5598
5599		CFLAGS="$xorg_testset_save_CFLAGS"
5600
5601		eval supported=\$$cacheid
5602		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5603$as_echo "$supported" >&6; }
5604		if test "$supported" = "yes" ; then
5605			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5606			found="yes"
5607		fi
5608	fi
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624xorg_testset_save_CFLAGS="$CFLAGS"
5625
5626if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5627	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5628	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5629$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5630if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5631  $as_echo_n "(cached) " >&6
5632else
5633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634/* end confdefs.h.  */
5635int i;
5636_ACEOF
5637if ac_fn_c_try_compile "$LINENO"; then :
5638  xorg_cv_cc_flag_unknown_warning_option=yes
5639else
5640  xorg_cv_cc_flag_unknown_warning_option=no
5641fi
5642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5643fi
5644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5645$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5646	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5647	CFLAGS="$xorg_testset_save_CFLAGS"
5648fi
5649
5650if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5651	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5652		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5653	fi
5654	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5655	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5656$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5657if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5658  $as_echo_n "(cached) " >&6
5659else
5660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5661/* end confdefs.h.  */
5662int i;
5663_ACEOF
5664if ac_fn_c_try_compile "$LINENO"; then :
5665  xorg_cv_cc_flag_unused_command_line_argument=yes
5666else
5667  xorg_cv_cc_flag_unused_command_line_argument=no
5668fi
5669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5670fi
5671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5672$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5673	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5674	CFLAGS="$xorg_testset_save_CFLAGS"
5675fi
5676
5677found="no"
5678
5679	if test $found = "no" ; then
5680		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5681			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5682		fi
5683
5684		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5685			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5686		fi
5687
5688		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5689
5690		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5691$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5692		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5693		if eval \${$cacheid+:} false; then :
5694  $as_echo_n "(cached) " >&6
5695else
5696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5697/* end confdefs.h.  */
5698int i;
5699int
5700main ()
5701{
5702
5703  ;
5704  return 0;
5705}
5706_ACEOF
5707if ac_fn_c_try_link "$LINENO"; then :
5708  eval $cacheid=yes
5709else
5710  eval $cacheid=no
5711fi
5712rm -f core conftest.err conftest.$ac_objext \
5713    conftest$ac_exeext conftest.$ac_ext
5714fi
5715
5716
5717		CFLAGS="$xorg_testset_save_CFLAGS"
5718
5719		eval supported=\$$cacheid
5720		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5721$as_echo "$supported" >&6; }
5722		if test "$supported" = "yes" ; then
5723			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5724			found="yes"
5725		fi
5726	fi
5727
5728
5729
5730
5731
5732# This chunk adds additional warnings that could catch undesired effects.
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746xorg_testset_save_CFLAGS="$CFLAGS"
5747
5748if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5749	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5750	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5751$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5752if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5753  $as_echo_n "(cached) " >&6
5754else
5755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5756/* end confdefs.h.  */
5757int i;
5758_ACEOF
5759if ac_fn_c_try_compile "$LINENO"; then :
5760  xorg_cv_cc_flag_unknown_warning_option=yes
5761else
5762  xorg_cv_cc_flag_unknown_warning_option=no
5763fi
5764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5765fi
5766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5767$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5768	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5769	CFLAGS="$xorg_testset_save_CFLAGS"
5770fi
5771
5772if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5773	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5774		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5775	fi
5776	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5777	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5778$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5779if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5780  $as_echo_n "(cached) " >&6
5781else
5782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5783/* end confdefs.h.  */
5784int i;
5785_ACEOF
5786if ac_fn_c_try_compile "$LINENO"; then :
5787  xorg_cv_cc_flag_unused_command_line_argument=yes
5788else
5789  xorg_cv_cc_flag_unused_command_line_argument=no
5790fi
5791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5792fi
5793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5794$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5795	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5796	CFLAGS="$xorg_testset_save_CFLAGS"
5797fi
5798
5799found="no"
5800
5801	if test $found = "no" ; then
5802		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5803			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5804		fi
5805
5806		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5807			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5808		fi
5809
5810		CFLAGS="$CFLAGS -Wunused"
5811
5812		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5813$as_echo_n "checking if $CC supports -Wunused... " >&6; }
5814		cacheid=xorg_cv_cc_flag__Wunused
5815		if eval \${$cacheid+:} false; then :
5816  $as_echo_n "(cached) " >&6
5817else
5818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5819/* end confdefs.h.  */
5820int i;
5821int
5822main ()
5823{
5824
5825  ;
5826  return 0;
5827}
5828_ACEOF
5829if ac_fn_c_try_link "$LINENO"; then :
5830  eval $cacheid=yes
5831else
5832  eval $cacheid=no
5833fi
5834rm -f core conftest.err conftest.$ac_objext \
5835    conftest$ac_exeext conftest.$ac_ext
5836fi
5837
5838
5839		CFLAGS="$xorg_testset_save_CFLAGS"
5840
5841		eval supported=\$$cacheid
5842		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5843$as_echo "$supported" >&6; }
5844		if test "$supported" = "yes" ; then
5845			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5846			found="yes"
5847		fi
5848	fi
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864xorg_testset_save_CFLAGS="$CFLAGS"
5865
5866if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5867	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5868	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5869$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5870if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5871  $as_echo_n "(cached) " >&6
5872else
5873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5874/* end confdefs.h.  */
5875int i;
5876_ACEOF
5877if ac_fn_c_try_compile "$LINENO"; then :
5878  xorg_cv_cc_flag_unknown_warning_option=yes
5879else
5880  xorg_cv_cc_flag_unknown_warning_option=no
5881fi
5882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5883fi
5884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5885$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5886	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5887	CFLAGS="$xorg_testset_save_CFLAGS"
5888fi
5889
5890if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5891	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5892		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5893	fi
5894	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5895	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5896$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5897if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5898  $as_echo_n "(cached) " >&6
5899else
5900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5901/* end confdefs.h.  */
5902int i;
5903_ACEOF
5904if ac_fn_c_try_compile "$LINENO"; then :
5905  xorg_cv_cc_flag_unused_command_line_argument=yes
5906else
5907  xorg_cv_cc_flag_unused_command_line_argument=no
5908fi
5909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5910fi
5911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5912$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5913	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5914	CFLAGS="$xorg_testset_save_CFLAGS"
5915fi
5916
5917found="no"
5918
5919	if test $found = "no" ; then
5920		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5921			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5922		fi
5923
5924		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5925			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5926		fi
5927
5928		CFLAGS="$CFLAGS -Wuninitialized"
5929
5930		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5931$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5932		cacheid=xorg_cv_cc_flag__Wuninitialized
5933		if eval \${$cacheid+:} false; then :
5934  $as_echo_n "(cached) " >&6
5935else
5936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5937/* end confdefs.h.  */
5938int i;
5939int
5940main ()
5941{
5942
5943  ;
5944  return 0;
5945}
5946_ACEOF
5947if ac_fn_c_try_link "$LINENO"; then :
5948  eval $cacheid=yes
5949else
5950  eval $cacheid=no
5951fi
5952rm -f core conftest.err conftest.$ac_objext \
5953    conftest$ac_exeext conftest.$ac_ext
5954fi
5955
5956
5957		CFLAGS="$xorg_testset_save_CFLAGS"
5958
5959		eval supported=\$$cacheid
5960		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5961$as_echo "$supported" >&6; }
5962		if test "$supported" = "yes" ; then
5963			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
5964			found="yes"
5965		fi
5966	fi
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982xorg_testset_save_CFLAGS="$CFLAGS"
5983
5984if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5985	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5986	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5987$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5988if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5989  $as_echo_n "(cached) " >&6
5990else
5991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5992/* end confdefs.h.  */
5993int i;
5994_ACEOF
5995if ac_fn_c_try_compile "$LINENO"; then :
5996  xorg_cv_cc_flag_unknown_warning_option=yes
5997else
5998  xorg_cv_cc_flag_unknown_warning_option=no
5999fi
6000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6001fi
6002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6003$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6004	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6005	CFLAGS="$xorg_testset_save_CFLAGS"
6006fi
6007
6008if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6009	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6010		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6011	fi
6012	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6013	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6014$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6015if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6016  $as_echo_n "(cached) " >&6
6017else
6018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6019/* end confdefs.h.  */
6020int i;
6021_ACEOF
6022if ac_fn_c_try_compile "$LINENO"; then :
6023  xorg_cv_cc_flag_unused_command_line_argument=yes
6024else
6025  xorg_cv_cc_flag_unused_command_line_argument=no
6026fi
6027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6028fi
6029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6030$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6031	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6032	CFLAGS="$xorg_testset_save_CFLAGS"
6033fi
6034
6035found="no"
6036
6037	if test $found = "no" ; then
6038		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6039			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6040		fi
6041
6042		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6043			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6044		fi
6045
6046		CFLAGS="$CFLAGS -Wshadow"
6047
6048		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6049$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6050		cacheid=xorg_cv_cc_flag__Wshadow
6051		if eval \${$cacheid+:} false; then :
6052  $as_echo_n "(cached) " >&6
6053else
6054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6055/* end confdefs.h.  */
6056int i;
6057int
6058main ()
6059{
6060
6061  ;
6062  return 0;
6063}
6064_ACEOF
6065if ac_fn_c_try_link "$LINENO"; then :
6066  eval $cacheid=yes
6067else
6068  eval $cacheid=no
6069fi
6070rm -f core conftest.err conftest.$ac_objext \
6071    conftest$ac_exeext conftest.$ac_ext
6072fi
6073
6074
6075		CFLAGS="$xorg_testset_save_CFLAGS"
6076
6077		eval supported=\$$cacheid
6078		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6079$as_echo "$supported" >&6; }
6080		if test "$supported" = "yes" ; then
6081			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6082			found="yes"
6083		fi
6084	fi
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100xorg_testset_save_CFLAGS="$CFLAGS"
6101
6102if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6103	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6104	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6105$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6106if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6107  $as_echo_n "(cached) " >&6
6108else
6109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6110/* end confdefs.h.  */
6111int i;
6112_ACEOF
6113if ac_fn_c_try_compile "$LINENO"; then :
6114  xorg_cv_cc_flag_unknown_warning_option=yes
6115else
6116  xorg_cv_cc_flag_unknown_warning_option=no
6117fi
6118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6119fi
6120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6121$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6122	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6123	CFLAGS="$xorg_testset_save_CFLAGS"
6124fi
6125
6126if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6127	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6128		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6129	fi
6130	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6131	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6132$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6133if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6134  $as_echo_n "(cached) " >&6
6135else
6136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6137/* end confdefs.h.  */
6138int i;
6139_ACEOF
6140if ac_fn_c_try_compile "$LINENO"; then :
6141  xorg_cv_cc_flag_unused_command_line_argument=yes
6142else
6143  xorg_cv_cc_flag_unused_command_line_argument=no
6144fi
6145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6146fi
6147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6148$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6149	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6150	CFLAGS="$xorg_testset_save_CFLAGS"
6151fi
6152
6153found="no"
6154
6155	if test $found = "no" ; then
6156		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6157			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6158		fi
6159
6160		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6161			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6162		fi
6163
6164		CFLAGS="$CFLAGS -Wcast-qual"
6165
6166		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6167$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6168		cacheid=xorg_cv_cc_flag__Wcast_qual
6169		if eval \${$cacheid+:} false; then :
6170  $as_echo_n "(cached) " >&6
6171else
6172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6173/* end confdefs.h.  */
6174int i;
6175int
6176main ()
6177{
6178
6179  ;
6180  return 0;
6181}
6182_ACEOF
6183if ac_fn_c_try_link "$LINENO"; then :
6184  eval $cacheid=yes
6185else
6186  eval $cacheid=no
6187fi
6188rm -f core conftest.err conftest.$ac_objext \
6189    conftest$ac_exeext conftest.$ac_ext
6190fi
6191
6192
6193		CFLAGS="$xorg_testset_save_CFLAGS"
6194
6195		eval supported=\$$cacheid
6196		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6197$as_echo "$supported" >&6; }
6198		if test "$supported" = "yes" ; then
6199			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6200			found="yes"
6201		fi
6202	fi
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218xorg_testset_save_CFLAGS="$CFLAGS"
6219
6220if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6221	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6222	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6223$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6224if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6225  $as_echo_n "(cached) " >&6
6226else
6227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6228/* end confdefs.h.  */
6229int i;
6230_ACEOF
6231if ac_fn_c_try_compile "$LINENO"; then :
6232  xorg_cv_cc_flag_unknown_warning_option=yes
6233else
6234  xorg_cv_cc_flag_unknown_warning_option=no
6235fi
6236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6237fi
6238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6239$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6240	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6241	CFLAGS="$xorg_testset_save_CFLAGS"
6242fi
6243
6244if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6245	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6246		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6247	fi
6248	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6249	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6250$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6251if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6252  $as_echo_n "(cached) " >&6
6253else
6254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6255/* end confdefs.h.  */
6256int i;
6257_ACEOF
6258if ac_fn_c_try_compile "$LINENO"; then :
6259  xorg_cv_cc_flag_unused_command_line_argument=yes
6260else
6261  xorg_cv_cc_flag_unused_command_line_argument=no
6262fi
6263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6264fi
6265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6266$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6267	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6268	CFLAGS="$xorg_testset_save_CFLAGS"
6269fi
6270
6271found="no"
6272
6273	if test $found = "no" ; then
6274		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6275			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6276		fi
6277
6278		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6279			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6280		fi
6281
6282		CFLAGS="$CFLAGS -Wmissing-noreturn"
6283
6284		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6285$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6286		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6287		if eval \${$cacheid+:} false; then :
6288  $as_echo_n "(cached) " >&6
6289else
6290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6291/* end confdefs.h.  */
6292int i;
6293int
6294main ()
6295{
6296
6297  ;
6298  return 0;
6299}
6300_ACEOF
6301if ac_fn_c_try_link "$LINENO"; then :
6302  eval $cacheid=yes
6303else
6304  eval $cacheid=no
6305fi
6306rm -f core conftest.err conftest.$ac_objext \
6307    conftest$ac_exeext conftest.$ac_ext
6308fi
6309
6310
6311		CFLAGS="$xorg_testset_save_CFLAGS"
6312
6313		eval supported=\$$cacheid
6314		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6315$as_echo "$supported" >&6; }
6316		if test "$supported" = "yes" ; then
6317			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6318			found="yes"
6319		fi
6320	fi
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336xorg_testset_save_CFLAGS="$CFLAGS"
6337
6338if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6339	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6340	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6341$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6342if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6343  $as_echo_n "(cached) " >&6
6344else
6345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6346/* end confdefs.h.  */
6347int i;
6348_ACEOF
6349if ac_fn_c_try_compile "$LINENO"; then :
6350  xorg_cv_cc_flag_unknown_warning_option=yes
6351else
6352  xorg_cv_cc_flag_unknown_warning_option=no
6353fi
6354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6355fi
6356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6357$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6358	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6359	CFLAGS="$xorg_testset_save_CFLAGS"
6360fi
6361
6362if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6363	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6364		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6365	fi
6366	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6367	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6368$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6369if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6370  $as_echo_n "(cached) " >&6
6371else
6372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6373/* end confdefs.h.  */
6374int i;
6375_ACEOF
6376if ac_fn_c_try_compile "$LINENO"; then :
6377  xorg_cv_cc_flag_unused_command_line_argument=yes
6378else
6379  xorg_cv_cc_flag_unused_command_line_argument=no
6380fi
6381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6382fi
6383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6384$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6385	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6386	CFLAGS="$xorg_testset_save_CFLAGS"
6387fi
6388
6389found="no"
6390
6391	if test $found = "no" ; then
6392		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6393			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6394		fi
6395
6396		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6397			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6398		fi
6399
6400		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6401
6402		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6403$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6404		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6405		if eval \${$cacheid+:} false; then :
6406  $as_echo_n "(cached) " >&6
6407else
6408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6409/* end confdefs.h.  */
6410int i;
6411int
6412main ()
6413{
6414
6415  ;
6416  return 0;
6417}
6418_ACEOF
6419if ac_fn_c_try_link "$LINENO"; then :
6420  eval $cacheid=yes
6421else
6422  eval $cacheid=no
6423fi
6424rm -f core conftest.err conftest.$ac_objext \
6425    conftest$ac_exeext conftest.$ac_ext
6426fi
6427
6428
6429		CFLAGS="$xorg_testset_save_CFLAGS"
6430
6431		eval supported=\$$cacheid
6432		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6433$as_echo "$supported" >&6; }
6434		if test "$supported" = "yes" ; then
6435			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6436			found="yes"
6437		fi
6438	fi
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454xorg_testset_save_CFLAGS="$CFLAGS"
6455
6456if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6457	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6458	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6459$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6460if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6461  $as_echo_n "(cached) " >&6
6462else
6463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6464/* end confdefs.h.  */
6465int i;
6466_ACEOF
6467if ac_fn_c_try_compile "$LINENO"; then :
6468  xorg_cv_cc_flag_unknown_warning_option=yes
6469else
6470  xorg_cv_cc_flag_unknown_warning_option=no
6471fi
6472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6473fi
6474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6475$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6476	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6477	CFLAGS="$xorg_testset_save_CFLAGS"
6478fi
6479
6480if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6481	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6482		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6483	fi
6484	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6485	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6486$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6487if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6488  $as_echo_n "(cached) " >&6
6489else
6490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6491/* end confdefs.h.  */
6492int i;
6493_ACEOF
6494if ac_fn_c_try_compile "$LINENO"; then :
6495  xorg_cv_cc_flag_unused_command_line_argument=yes
6496else
6497  xorg_cv_cc_flag_unused_command_line_argument=no
6498fi
6499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6500fi
6501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6502$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6503	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6504	CFLAGS="$xorg_testset_save_CFLAGS"
6505fi
6506
6507found="no"
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 -Wredundant-decls"
6519
6520		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6521$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6522		cacheid=xorg_cv_cc_flag__Wredundant_decls
6523		if eval \${$cacheid+:} 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 $cacheid=yes
6539else
6540  eval $cacheid=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=\$$cacheid
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 -Wredundant-decls"
6554			found="yes"
6555		fi
6556	fi
6557
6558
6559
6560# These are currently disabled because they are noisy.  They will be enabled
6561# in the future once the codebase is sufficiently modernized to silence
6562# them.  For now, I don't want them to drown out the other warnings.
6563# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6564# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6565# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6566
6567# Turn some warnings into errors, so we don't accidently get successful builds
6568# when there are problems that should be fixed.
6569
6570if test "x$SELECTIVE_WERROR" = "xyes" ; then
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584xorg_testset_save_CFLAGS="$CFLAGS"
6585
6586if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6587	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6588	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6589$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6590if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6591  $as_echo_n "(cached) " >&6
6592else
6593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6594/* end confdefs.h.  */
6595int i;
6596_ACEOF
6597if ac_fn_c_try_compile "$LINENO"; then :
6598  xorg_cv_cc_flag_unknown_warning_option=yes
6599else
6600  xorg_cv_cc_flag_unknown_warning_option=no
6601fi
6602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6603fi
6604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6605$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6606	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6607	CFLAGS="$xorg_testset_save_CFLAGS"
6608fi
6609
6610if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6611	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6612		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6613	fi
6614	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6615	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6616$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6617if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6618  $as_echo_n "(cached) " >&6
6619else
6620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6621/* end confdefs.h.  */
6622int i;
6623_ACEOF
6624if ac_fn_c_try_compile "$LINENO"; then :
6625  xorg_cv_cc_flag_unused_command_line_argument=yes
6626else
6627  xorg_cv_cc_flag_unused_command_line_argument=no
6628fi
6629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6630fi
6631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6632$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6633	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6634	CFLAGS="$xorg_testset_save_CFLAGS"
6635fi
6636
6637found="no"
6638
6639	if test $found = "no" ; then
6640		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6641			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6642		fi
6643
6644		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6645			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6646		fi
6647
6648		CFLAGS="$CFLAGS -Werror=implicit"
6649
6650		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6651$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6652		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6653		if eval \${$cacheid+:} false; then :
6654  $as_echo_n "(cached) " >&6
6655else
6656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6657/* end confdefs.h.  */
6658int i;
6659int
6660main ()
6661{
6662
6663  ;
6664  return 0;
6665}
6666_ACEOF
6667if ac_fn_c_try_link "$LINENO"; then :
6668  eval $cacheid=yes
6669else
6670  eval $cacheid=no
6671fi
6672rm -f core conftest.err conftest.$ac_objext \
6673    conftest$ac_exeext conftest.$ac_ext
6674fi
6675
6676
6677		CFLAGS="$xorg_testset_save_CFLAGS"
6678
6679		eval supported=\$$cacheid
6680		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6681$as_echo "$supported" >&6; }
6682		if test "$supported" = "yes" ; then
6683			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6684			found="yes"
6685		fi
6686	fi
6687
6688	if test $found = "no" ; then
6689		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6690			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6691		fi
6692
6693		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6694			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6695		fi
6696
6697		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6698
6699		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6700$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6701		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6702		if eval \${$cacheid+:} false; then :
6703  $as_echo_n "(cached) " >&6
6704else
6705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6706/* end confdefs.h.  */
6707int i;
6708int
6709main ()
6710{
6711
6712  ;
6713  return 0;
6714}
6715_ACEOF
6716if ac_fn_c_try_link "$LINENO"; then :
6717  eval $cacheid=yes
6718else
6719  eval $cacheid=no
6720fi
6721rm -f core conftest.err conftest.$ac_objext \
6722    conftest$ac_exeext conftest.$ac_ext
6723fi
6724
6725
6726		CFLAGS="$xorg_testset_save_CFLAGS"
6727
6728		eval supported=\$$cacheid
6729		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6730$as_echo "$supported" >&6; }
6731		if test "$supported" = "yes" ; then
6732			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6733			found="yes"
6734		fi
6735	fi
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751xorg_testset_save_CFLAGS="$CFLAGS"
6752
6753if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6754	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6755	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6756$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6757if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6758  $as_echo_n "(cached) " >&6
6759else
6760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6761/* end confdefs.h.  */
6762int i;
6763_ACEOF
6764if ac_fn_c_try_compile "$LINENO"; then :
6765  xorg_cv_cc_flag_unknown_warning_option=yes
6766else
6767  xorg_cv_cc_flag_unknown_warning_option=no
6768fi
6769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6770fi
6771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6772$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6773	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6774	CFLAGS="$xorg_testset_save_CFLAGS"
6775fi
6776
6777if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6778	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6779		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6780	fi
6781	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6782	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6783$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6784if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6785  $as_echo_n "(cached) " >&6
6786else
6787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6788/* end confdefs.h.  */
6789int i;
6790_ACEOF
6791if ac_fn_c_try_compile "$LINENO"; then :
6792  xorg_cv_cc_flag_unused_command_line_argument=yes
6793else
6794  xorg_cv_cc_flag_unused_command_line_argument=no
6795fi
6796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6797fi
6798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6799$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6800	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6801	CFLAGS="$xorg_testset_save_CFLAGS"
6802fi
6803
6804found="no"
6805
6806	if test $found = "no" ; then
6807		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6808			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6809		fi
6810
6811		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6812			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6813		fi
6814
6815		CFLAGS="$CFLAGS -Werror=nonnull"
6816
6817		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6818$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6819		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
6820		if eval \${$cacheid+:} false; then :
6821  $as_echo_n "(cached) " >&6
6822else
6823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6824/* end confdefs.h.  */
6825int i;
6826int
6827main ()
6828{
6829
6830  ;
6831  return 0;
6832}
6833_ACEOF
6834if ac_fn_c_try_link "$LINENO"; then :
6835  eval $cacheid=yes
6836else
6837  eval $cacheid=no
6838fi
6839rm -f core conftest.err conftest.$ac_objext \
6840    conftest$ac_exeext conftest.$ac_ext
6841fi
6842
6843
6844		CFLAGS="$xorg_testset_save_CFLAGS"
6845
6846		eval supported=\$$cacheid
6847		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6848$as_echo "$supported" >&6; }
6849		if test "$supported" = "yes" ; then
6850			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6851			found="yes"
6852		fi
6853	fi
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869xorg_testset_save_CFLAGS="$CFLAGS"
6870
6871if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6872	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6873	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6874$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6875if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6876  $as_echo_n "(cached) " >&6
6877else
6878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6879/* end confdefs.h.  */
6880int i;
6881_ACEOF
6882if ac_fn_c_try_compile "$LINENO"; then :
6883  xorg_cv_cc_flag_unknown_warning_option=yes
6884else
6885  xorg_cv_cc_flag_unknown_warning_option=no
6886fi
6887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6888fi
6889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6890$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6891	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6892	CFLAGS="$xorg_testset_save_CFLAGS"
6893fi
6894
6895if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6896	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6897		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6898	fi
6899	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6900	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6901$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6902if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6903  $as_echo_n "(cached) " >&6
6904else
6905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6906/* end confdefs.h.  */
6907int i;
6908_ACEOF
6909if ac_fn_c_try_compile "$LINENO"; then :
6910  xorg_cv_cc_flag_unused_command_line_argument=yes
6911else
6912  xorg_cv_cc_flag_unused_command_line_argument=no
6913fi
6914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6915fi
6916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6917$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6918	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6919	CFLAGS="$xorg_testset_save_CFLAGS"
6920fi
6921
6922found="no"
6923
6924	if test $found = "no" ; then
6925		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6926			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6927		fi
6928
6929		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6930			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6931		fi
6932
6933		CFLAGS="$CFLAGS -Werror=init-self"
6934
6935		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
6936$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
6937		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
6938		if eval \${$cacheid+:} false; then :
6939  $as_echo_n "(cached) " >&6
6940else
6941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6942/* end confdefs.h.  */
6943int i;
6944int
6945main ()
6946{
6947
6948  ;
6949  return 0;
6950}
6951_ACEOF
6952if ac_fn_c_try_link "$LINENO"; then :
6953  eval $cacheid=yes
6954else
6955  eval $cacheid=no
6956fi
6957rm -f core conftest.err conftest.$ac_objext \
6958    conftest$ac_exeext conftest.$ac_ext
6959fi
6960
6961
6962		CFLAGS="$xorg_testset_save_CFLAGS"
6963
6964		eval supported=\$$cacheid
6965		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6966$as_echo "$supported" >&6; }
6967		if test "$supported" = "yes" ; then
6968			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
6969			found="yes"
6970		fi
6971	fi
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987xorg_testset_save_CFLAGS="$CFLAGS"
6988
6989if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6990	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6991	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6992$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6993if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6994  $as_echo_n "(cached) " >&6
6995else
6996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6997/* end confdefs.h.  */
6998int i;
6999_ACEOF
7000if ac_fn_c_try_compile "$LINENO"; then :
7001  xorg_cv_cc_flag_unknown_warning_option=yes
7002else
7003  xorg_cv_cc_flag_unknown_warning_option=no
7004fi
7005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7006fi
7007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7008$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7009	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7010	CFLAGS="$xorg_testset_save_CFLAGS"
7011fi
7012
7013if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7014	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7015		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7016	fi
7017	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7018	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7019$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7020if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7021  $as_echo_n "(cached) " >&6
7022else
7023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7024/* end confdefs.h.  */
7025int i;
7026_ACEOF
7027if ac_fn_c_try_compile "$LINENO"; then :
7028  xorg_cv_cc_flag_unused_command_line_argument=yes
7029else
7030  xorg_cv_cc_flag_unused_command_line_argument=no
7031fi
7032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7033fi
7034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7035$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7036	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7037	CFLAGS="$xorg_testset_save_CFLAGS"
7038fi
7039
7040found="no"
7041
7042	if test $found = "no" ; then
7043		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7044			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7045		fi
7046
7047		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7048			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7049		fi
7050
7051		CFLAGS="$CFLAGS -Werror=main"
7052
7053		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7054$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7055		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7056		if eval \${$cacheid+:} false; then :
7057  $as_echo_n "(cached) " >&6
7058else
7059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7060/* end confdefs.h.  */
7061int i;
7062int
7063main ()
7064{
7065
7066  ;
7067  return 0;
7068}
7069_ACEOF
7070if ac_fn_c_try_link "$LINENO"; then :
7071  eval $cacheid=yes
7072else
7073  eval $cacheid=no
7074fi
7075rm -f core conftest.err conftest.$ac_objext \
7076    conftest$ac_exeext conftest.$ac_ext
7077fi
7078
7079
7080		CFLAGS="$xorg_testset_save_CFLAGS"
7081
7082		eval supported=\$$cacheid
7083		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7084$as_echo "$supported" >&6; }
7085		if test "$supported" = "yes" ; then
7086			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7087			found="yes"
7088		fi
7089	fi
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105xorg_testset_save_CFLAGS="$CFLAGS"
7106
7107if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7108	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7109	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7110$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7111if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7112  $as_echo_n "(cached) " >&6
7113else
7114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7115/* end confdefs.h.  */
7116int i;
7117_ACEOF
7118if ac_fn_c_try_compile "$LINENO"; then :
7119  xorg_cv_cc_flag_unknown_warning_option=yes
7120else
7121  xorg_cv_cc_flag_unknown_warning_option=no
7122fi
7123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7124fi
7125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7126$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7127	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7128	CFLAGS="$xorg_testset_save_CFLAGS"
7129fi
7130
7131if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7132	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7133		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7134	fi
7135	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7136	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7137$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7138if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7139  $as_echo_n "(cached) " >&6
7140else
7141  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7142/* end confdefs.h.  */
7143int i;
7144_ACEOF
7145if ac_fn_c_try_compile "$LINENO"; then :
7146  xorg_cv_cc_flag_unused_command_line_argument=yes
7147else
7148  xorg_cv_cc_flag_unused_command_line_argument=no
7149fi
7150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7151fi
7152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7153$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7154	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7155	CFLAGS="$xorg_testset_save_CFLAGS"
7156fi
7157
7158found="no"
7159
7160	if test $found = "no" ; then
7161		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7162			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7163		fi
7164
7165		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7166			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7167		fi
7168
7169		CFLAGS="$CFLAGS -Werror=missing-braces"
7170
7171		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7172$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7173		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7174		if eval \${$cacheid+:} false; then :
7175  $as_echo_n "(cached) " >&6
7176else
7177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7178/* end confdefs.h.  */
7179int i;
7180int
7181main ()
7182{
7183
7184  ;
7185  return 0;
7186}
7187_ACEOF
7188if ac_fn_c_try_link "$LINENO"; then :
7189  eval $cacheid=yes
7190else
7191  eval $cacheid=no
7192fi
7193rm -f core conftest.err conftest.$ac_objext \
7194    conftest$ac_exeext conftest.$ac_ext
7195fi
7196
7197
7198		CFLAGS="$xorg_testset_save_CFLAGS"
7199
7200		eval supported=\$$cacheid
7201		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7202$as_echo "$supported" >&6; }
7203		if test "$supported" = "yes" ; then
7204			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7205			found="yes"
7206		fi
7207	fi
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223xorg_testset_save_CFLAGS="$CFLAGS"
7224
7225if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7226	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7227	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7228$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7229if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7230  $as_echo_n "(cached) " >&6
7231else
7232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7233/* end confdefs.h.  */
7234int i;
7235_ACEOF
7236if ac_fn_c_try_compile "$LINENO"; then :
7237  xorg_cv_cc_flag_unknown_warning_option=yes
7238else
7239  xorg_cv_cc_flag_unknown_warning_option=no
7240fi
7241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7242fi
7243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7244$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7245	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7246	CFLAGS="$xorg_testset_save_CFLAGS"
7247fi
7248
7249if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7250	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7251		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7252	fi
7253	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7254	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7255$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7256if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7257  $as_echo_n "(cached) " >&6
7258else
7259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7260/* end confdefs.h.  */
7261int i;
7262_ACEOF
7263if ac_fn_c_try_compile "$LINENO"; then :
7264  xorg_cv_cc_flag_unused_command_line_argument=yes
7265else
7266  xorg_cv_cc_flag_unused_command_line_argument=no
7267fi
7268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7269fi
7270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7271$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7272	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7273	CFLAGS="$xorg_testset_save_CFLAGS"
7274fi
7275
7276found="no"
7277
7278	if test $found = "no" ; then
7279		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7280			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7281		fi
7282
7283		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7284			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7285		fi
7286
7287		CFLAGS="$CFLAGS -Werror=sequence-point"
7288
7289		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7290$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7291		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7292		if eval \${$cacheid+:} false; then :
7293  $as_echo_n "(cached) " >&6
7294else
7295  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7296/* end confdefs.h.  */
7297int i;
7298int
7299main ()
7300{
7301
7302  ;
7303  return 0;
7304}
7305_ACEOF
7306if ac_fn_c_try_link "$LINENO"; then :
7307  eval $cacheid=yes
7308else
7309  eval $cacheid=no
7310fi
7311rm -f core conftest.err conftest.$ac_objext \
7312    conftest$ac_exeext conftest.$ac_ext
7313fi
7314
7315
7316		CFLAGS="$xorg_testset_save_CFLAGS"
7317
7318		eval supported=\$$cacheid
7319		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7320$as_echo "$supported" >&6; }
7321		if test "$supported" = "yes" ; then
7322			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7323			found="yes"
7324		fi
7325	fi
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341xorg_testset_save_CFLAGS="$CFLAGS"
7342
7343if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7344	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7345	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7346$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7347if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7348  $as_echo_n "(cached) " >&6
7349else
7350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7351/* end confdefs.h.  */
7352int i;
7353_ACEOF
7354if ac_fn_c_try_compile "$LINENO"; then :
7355  xorg_cv_cc_flag_unknown_warning_option=yes
7356else
7357  xorg_cv_cc_flag_unknown_warning_option=no
7358fi
7359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7360fi
7361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7362$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7363	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7364	CFLAGS="$xorg_testset_save_CFLAGS"
7365fi
7366
7367if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7368	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7369		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7370	fi
7371	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7372	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7373$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7374if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7375  $as_echo_n "(cached) " >&6
7376else
7377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7378/* end confdefs.h.  */
7379int i;
7380_ACEOF
7381if ac_fn_c_try_compile "$LINENO"; then :
7382  xorg_cv_cc_flag_unused_command_line_argument=yes
7383else
7384  xorg_cv_cc_flag_unused_command_line_argument=no
7385fi
7386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7387fi
7388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7389$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7390	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7391	CFLAGS="$xorg_testset_save_CFLAGS"
7392fi
7393
7394found="no"
7395
7396	if test $found = "no" ; then
7397		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7398			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7399		fi
7400
7401		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7402			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7403		fi
7404
7405		CFLAGS="$CFLAGS -Werror=return-type"
7406
7407		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7408$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7409		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7410		if eval \${$cacheid+:} false; then :
7411  $as_echo_n "(cached) " >&6
7412else
7413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7414/* end confdefs.h.  */
7415int i;
7416int
7417main ()
7418{
7419
7420  ;
7421  return 0;
7422}
7423_ACEOF
7424if ac_fn_c_try_link "$LINENO"; then :
7425  eval $cacheid=yes
7426else
7427  eval $cacheid=no
7428fi
7429rm -f core conftest.err conftest.$ac_objext \
7430    conftest$ac_exeext conftest.$ac_ext
7431fi
7432
7433
7434		CFLAGS="$xorg_testset_save_CFLAGS"
7435
7436		eval supported=\$$cacheid
7437		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7438$as_echo "$supported" >&6; }
7439		if test "$supported" = "yes" ; then
7440			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7441			found="yes"
7442		fi
7443	fi
7444
7445	if test $found = "no" ; then
7446		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7447			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7448		fi
7449
7450		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7451			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7452		fi
7453
7454		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7455
7456		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7457$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7458		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7459		if eval \${$cacheid+:} false; then :
7460  $as_echo_n "(cached) " >&6
7461else
7462  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7463/* end confdefs.h.  */
7464int i;
7465int
7466main ()
7467{
7468
7469  ;
7470  return 0;
7471}
7472_ACEOF
7473if ac_fn_c_try_link "$LINENO"; then :
7474  eval $cacheid=yes
7475else
7476  eval $cacheid=no
7477fi
7478rm -f core conftest.err conftest.$ac_objext \
7479    conftest$ac_exeext conftest.$ac_ext
7480fi
7481
7482
7483		CFLAGS="$xorg_testset_save_CFLAGS"
7484
7485		eval supported=\$$cacheid
7486		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7487$as_echo "$supported" >&6; }
7488		if test "$supported" = "yes" ; then
7489			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7490			found="yes"
7491		fi
7492	fi
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508xorg_testset_save_CFLAGS="$CFLAGS"
7509
7510if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7511	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7512	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7513$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7514if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7515  $as_echo_n "(cached) " >&6
7516else
7517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7518/* end confdefs.h.  */
7519int i;
7520_ACEOF
7521if ac_fn_c_try_compile "$LINENO"; then :
7522  xorg_cv_cc_flag_unknown_warning_option=yes
7523else
7524  xorg_cv_cc_flag_unknown_warning_option=no
7525fi
7526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7527fi
7528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7529$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7530	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7531	CFLAGS="$xorg_testset_save_CFLAGS"
7532fi
7533
7534if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7535	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7536		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7537	fi
7538	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7539	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7540$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7541if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7542  $as_echo_n "(cached) " >&6
7543else
7544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7545/* end confdefs.h.  */
7546int i;
7547_ACEOF
7548if ac_fn_c_try_compile "$LINENO"; then :
7549  xorg_cv_cc_flag_unused_command_line_argument=yes
7550else
7551  xorg_cv_cc_flag_unused_command_line_argument=no
7552fi
7553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7554fi
7555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7556$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7557	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7558	CFLAGS="$xorg_testset_save_CFLAGS"
7559fi
7560
7561found="no"
7562
7563	if test $found = "no" ; then
7564		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7565			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7566		fi
7567
7568		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7569			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7570		fi
7571
7572		CFLAGS="$CFLAGS -Werror=trigraphs"
7573
7574		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7575$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7576		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7577		if eval \${$cacheid+:} false; then :
7578  $as_echo_n "(cached) " >&6
7579else
7580  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7581/* end confdefs.h.  */
7582int i;
7583int
7584main ()
7585{
7586
7587  ;
7588  return 0;
7589}
7590_ACEOF
7591if ac_fn_c_try_link "$LINENO"; then :
7592  eval $cacheid=yes
7593else
7594  eval $cacheid=no
7595fi
7596rm -f core conftest.err conftest.$ac_objext \
7597    conftest$ac_exeext conftest.$ac_ext
7598fi
7599
7600
7601		CFLAGS="$xorg_testset_save_CFLAGS"
7602
7603		eval supported=\$$cacheid
7604		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7605$as_echo "$supported" >&6; }
7606		if test "$supported" = "yes" ; then
7607			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7608			found="yes"
7609		fi
7610	fi
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626xorg_testset_save_CFLAGS="$CFLAGS"
7627
7628if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7629	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7630	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7631$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7632if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7633  $as_echo_n "(cached) " >&6
7634else
7635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7636/* end confdefs.h.  */
7637int i;
7638_ACEOF
7639if ac_fn_c_try_compile "$LINENO"; then :
7640  xorg_cv_cc_flag_unknown_warning_option=yes
7641else
7642  xorg_cv_cc_flag_unknown_warning_option=no
7643fi
7644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7645fi
7646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7647$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7648	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7649	CFLAGS="$xorg_testset_save_CFLAGS"
7650fi
7651
7652if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7653	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7654		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7655	fi
7656	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7657	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7658$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7659if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7660  $as_echo_n "(cached) " >&6
7661else
7662  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7663/* end confdefs.h.  */
7664int i;
7665_ACEOF
7666if ac_fn_c_try_compile "$LINENO"; then :
7667  xorg_cv_cc_flag_unused_command_line_argument=yes
7668else
7669  xorg_cv_cc_flag_unused_command_line_argument=no
7670fi
7671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7672fi
7673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7674$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7675	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7676	CFLAGS="$xorg_testset_save_CFLAGS"
7677fi
7678
7679found="no"
7680
7681	if test $found = "no" ; then
7682		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7683			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7684		fi
7685
7686		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7687			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7688		fi
7689
7690		CFLAGS="$CFLAGS -Werror=array-bounds"
7691
7692		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7693$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7694		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7695		if eval \${$cacheid+:} false; then :
7696  $as_echo_n "(cached) " >&6
7697else
7698  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7699/* end confdefs.h.  */
7700int i;
7701int
7702main ()
7703{
7704
7705  ;
7706  return 0;
7707}
7708_ACEOF
7709if ac_fn_c_try_link "$LINENO"; then :
7710  eval $cacheid=yes
7711else
7712  eval $cacheid=no
7713fi
7714rm -f core conftest.err conftest.$ac_objext \
7715    conftest$ac_exeext conftest.$ac_ext
7716fi
7717
7718
7719		CFLAGS="$xorg_testset_save_CFLAGS"
7720
7721		eval supported=\$$cacheid
7722		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7723$as_echo "$supported" >&6; }
7724		if test "$supported" = "yes" ; then
7725			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7726			found="yes"
7727		fi
7728	fi
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744xorg_testset_save_CFLAGS="$CFLAGS"
7745
7746if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7747	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7748	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7749$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7750if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7751  $as_echo_n "(cached) " >&6
7752else
7753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7754/* end confdefs.h.  */
7755int i;
7756_ACEOF
7757if ac_fn_c_try_compile "$LINENO"; then :
7758  xorg_cv_cc_flag_unknown_warning_option=yes
7759else
7760  xorg_cv_cc_flag_unknown_warning_option=no
7761fi
7762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7763fi
7764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7765$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7766	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7767	CFLAGS="$xorg_testset_save_CFLAGS"
7768fi
7769
7770if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7771	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7772		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7773	fi
7774	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7775	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7776$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7777if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7778  $as_echo_n "(cached) " >&6
7779else
7780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7781/* end confdefs.h.  */
7782int i;
7783_ACEOF
7784if ac_fn_c_try_compile "$LINENO"; then :
7785  xorg_cv_cc_flag_unused_command_line_argument=yes
7786else
7787  xorg_cv_cc_flag_unused_command_line_argument=no
7788fi
7789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7790fi
7791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7792$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7793	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7794	CFLAGS="$xorg_testset_save_CFLAGS"
7795fi
7796
7797found="no"
7798
7799	if test $found = "no" ; then
7800		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7801			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7802		fi
7803
7804		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7805			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7806		fi
7807
7808		CFLAGS="$CFLAGS -Werror=write-strings"
7809
7810		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7811$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7812		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
7813		if eval \${$cacheid+:} false; then :
7814  $as_echo_n "(cached) " >&6
7815else
7816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7817/* end confdefs.h.  */
7818int i;
7819int
7820main ()
7821{
7822
7823  ;
7824  return 0;
7825}
7826_ACEOF
7827if ac_fn_c_try_link "$LINENO"; then :
7828  eval $cacheid=yes
7829else
7830  eval $cacheid=no
7831fi
7832rm -f core conftest.err conftest.$ac_objext \
7833    conftest$ac_exeext conftest.$ac_ext
7834fi
7835
7836
7837		CFLAGS="$xorg_testset_save_CFLAGS"
7838
7839		eval supported=\$$cacheid
7840		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7841$as_echo "$supported" >&6; }
7842		if test "$supported" = "yes" ; then
7843			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7844			found="yes"
7845		fi
7846	fi
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862xorg_testset_save_CFLAGS="$CFLAGS"
7863
7864if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7865	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7866	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7867$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7868if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7869  $as_echo_n "(cached) " >&6
7870else
7871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7872/* end confdefs.h.  */
7873int i;
7874_ACEOF
7875if ac_fn_c_try_compile "$LINENO"; then :
7876  xorg_cv_cc_flag_unknown_warning_option=yes
7877else
7878  xorg_cv_cc_flag_unknown_warning_option=no
7879fi
7880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7881fi
7882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7883$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7884	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7885	CFLAGS="$xorg_testset_save_CFLAGS"
7886fi
7887
7888if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7889	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7890		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7891	fi
7892	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7893	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7894$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7895if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7896  $as_echo_n "(cached) " >&6
7897else
7898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899/* end confdefs.h.  */
7900int i;
7901_ACEOF
7902if ac_fn_c_try_compile "$LINENO"; then :
7903  xorg_cv_cc_flag_unused_command_line_argument=yes
7904else
7905  xorg_cv_cc_flag_unused_command_line_argument=no
7906fi
7907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7908fi
7909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7910$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7911	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7912	CFLAGS="$xorg_testset_save_CFLAGS"
7913fi
7914
7915found="no"
7916
7917	if test $found = "no" ; then
7918		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7919			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7920		fi
7921
7922		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7923			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7924		fi
7925
7926		CFLAGS="$CFLAGS -Werror=address"
7927
7928		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
7929$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
7930		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
7931		if eval \${$cacheid+:} false; then :
7932  $as_echo_n "(cached) " >&6
7933else
7934  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7935/* end confdefs.h.  */
7936int i;
7937int
7938main ()
7939{
7940
7941  ;
7942  return 0;
7943}
7944_ACEOF
7945if ac_fn_c_try_link "$LINENO"; then :
7946  eval $cacheid=yes
7947else
7948  eval $cacheid=no
7949fi
7950rm -f core conftest.err conftest.$ac_objext \
7951    conftest$ac_exeext conftest.$ac_ext
7952fi
7953
7954
7955		CFLAGS="$xorg_testset_save_CFLAGS"
7956
7957		eval supported=\$$cacheid
7958		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7959$as_echo "$supported" >&6; }
7960		if test "$supported" = "yes" ; then
7961			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
7962			found="yes"
7963		fi
7964	fi
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980xorg_testset_save_CFLAGS="$CFLAGS"
7981
7982if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7983	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7984	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7985$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7986if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7987  $as_echo_n "(cached) " >&6
7988else
7989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7990/* end confdefs.h.  */
7991int i;
7992_ACEOF
7993if ac_fn_c_try_compile "$LINENO"; then :
7994  xorg_cv_cc_flag_unknown_warning_option=yes
7995else
7996  xorg_cv_cc_flag_unknown_warning_option=no
7997fi
7998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7999fi
8000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8001$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8002	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8003	CFLAGS="$xorg_testset_save_CFLAGS"
8004fi
8005
8006if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8007	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8008		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8009	fi
8010	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8011	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8012$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8013if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8014  $as_echo_n "(cached) " >&6
8015else
8016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8017/* end confdefs.h.  */
8018int i;
8019_ACEOF
8020if ac_fn_c_try_compile "$LINENO"; then :
8021  xorg_cv_cc_flag_unused_command_line_argument=yes
8022else
8023  xorg_cv_cc_flag_unused_command_line_argument=no
8024fi
8025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8026fi
8027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8028$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8029	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8030	CFLAGS="$xorg_testset_save_CFLAGS"
8031fi
8032
8033found="no"
8034
8035	if test $found = "no" ; then
8036		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8037			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8038		fi
8039
8040		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8041			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8042		fi
8043
8044		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8045
8046		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8047$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8048		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8049		if eval \${$cacheid+:} false; then :
8050  $as_echo_n "(cached) " >&6
8051else
8052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8053/* end confdefs.h.  */
8054int i;
8055int
8056main ()
8057{
8058
8059  ;
8060  return 0;
8061}
8062_ACEOF
8063if ac_fn_c_try_link "$LINENO"; then :
8064  eval $cacheid=yes
8065else
8066  eval $cacheid=no
8067fi
8068rm -f core conftest.err conftest.$ac_objext \
8069    conftest$ac_exeext conftest.$ac_ext
8070fi
8071
8072
8073		CFLAGS="$xorg_testset_save_CFLAGS"
8074
8075		eval supported=\$$cacheid
8076		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8077$as_echo "$supported" >&6; }
8078		if test "$supported" = "yes" ; then
8079			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8080			found="yes"
8081		fi
8082	fi
8083
8084	if test $found = "no" ; then
8085		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8086			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8087		fi
8088
8089		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8090			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8091		fi
8092
8093		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8094
8095		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8096$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8097		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8098		if eval \${$cacheid+:} false; then :
8099  $as_echo_n "(cached) " >&6
8100else
8101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8102/* end confdefs.h.  */
8103int i;
8104int
8105main ()
8106{
8107
8108  ;
8109  return 0;
8110}
8111_ACEOF
8112if ac_fn_c_try_link "$LINENO"; then :
8113  eval $cacheid=yes
8114else
8115  eval $cacheid=no
8116fi
8117rm -f core conftest.err conftest.$ac_objext \
8118    conftest$ac_exeext conftest.$ac_ext
8119fi
8120
8121
8122		CFLAGS="$xorg_testset_save_CFLAGS"
8123
8124		eval supported=\$$cacheid
8125		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8126$as_echo "$supported" >&6; }
8127		if test "$supported" = "yes" ; then
8128			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8129			found="yes"
8130		fi
8131	fi
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147xorg_testset_save_CFLAGS="$CFLAGS"
8148
8149if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8150	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8151	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8152$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8153if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8154  $as_echo_n "(cached) " >&6
8155else
8156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8157/* end confdefs.h.  */
8158int i;
8159_ACEOF
8160if ac_fn_c_try_compile "$LINENO"; then :
8161  xorg_cv_cc_flag_unknown_warning_option=yes
8162else
8163  xorg_cv_cc_flag_unknown_warning_option=no
8164fi
8165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8166fi
8167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8168$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8169	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8170	CFLAGS="$xorg_testset_save_CFLAGS"
8171fi
8172
8173if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8174	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8175		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8176	fi
8177	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8178	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8179$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8180if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8181  $as_echo_n "(cached) " >&6
8182else
8183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8184/* end confdefs.h.  */
8185int i;
8186_ACEOF
8187if ac_fn_c_try_compile "$LINENO"; then :
8188  xorg_cv_cc_flag_unused_command_line_argument=yes
8189else
8190  xorg_cv_cc_flag_unused_command_line_argument=no
8191fi
8192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8193fi
8194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8195$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8196	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8197	CFLAGS="$xorg_testset_save_CFLAGS"
8198fi
8199
8200found="no"
8201
8202	if test $found = "no" ; then
8203		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8204			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8205		fi
8206
8207		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8208			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8209		fi
8210
8211		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8212
8213		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8214$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8215		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8216		if eval \${$cacheid+:} false; then :
8217  $as_echo_n "(cached) " >&6
8218else
8219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8220/* end confdefs.h.  */
8221int i;
8222int
8223main ()
8224{
8225
8226  ;
8227  return 0;
8228}
8229_ACEOF
8230if ac_fn_c_try_link "$LINENO"; then :
8231  eval $cacheid=yes
8232else
8233  eval $cacheid=no
8234fi
8235rm -f core conftest.err conftest.$ac_objext \
8236    conftest$ac_exeext conftest.$ac_ext
8237fi
8238
8239
8240		CFLAGS="$xorg_testset_save_CFLAGS"
8241
8242		eval supported=\$$cacheid
8243		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8244$as_echo "$supported" >&6; }
8245		if test "$supported" = "yes" ; then
8246			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8247			found="yes"
8248		fi
8249	fi
8250
8251 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8252else
8253{ $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
8254$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;}
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268xorg_testset_save_CFLAGS="$CFLAGS"
8269
8270if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8271	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8272	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8273$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8274if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8275  $as_echo_n "(cached) " >&6
8276else
8277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8278/* end confdefs.h.  */
8279int i;
8280_ACEOF
8281if ac_fn_c_try_compile "$LINENO"; then :
8282  xorg_cv_cc_flag_unknown_warning_option=yes
8283else
8284  xorg_cv_cc_flag_unknown_warning_option=no
8285fi
8286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8287fi
8288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8289$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8290	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8291	CFLAGS="$xorg_testset_save_CFLAGS"
8292fi
8293
8294if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8295	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8296		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8297	fi
8298	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8299	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8300$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8301if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8302  $as_echo_n "(cached) " >&6
8303else
8304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8305/* end confdefs.h.  */
8306int i;
8307_ACEOF
8308if ac_fn_c_try_compile "$LINENO"; then :
8309  xorg_cv_cc_flag_unused_command_line_argument=yes
8310else
8311  xorg_cv_cc_flag_unused_command_line_argument=no
8312fi
8313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8314fi
8315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8316$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8317	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8318	CFLAGS="$xorg_testset_save_CFLAGS"
8319fi
8320
8321found="no"
8322
8323	if test $found = "no" ; then
8324		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8325			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8326		fi
8327
8328		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8329			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8330		fi
8331
8332		CFLAGS="$CFLAGS -Wimplicit"
8333
8334		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8335$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8336		cacheid=xorg_cv_cc_flag__Wimplicit
8337		if eval \${$cacheid+:} false; then :
8338  $as_echo_n "(cached) " >&6
8339else
8340  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8341/* end confdefs.h.  */
8342int i;
8343int
8344main ()
8345{
8346
8347  ;
8348  return 0;
8349}
8350_ACEOF
8351if ac_fn_c_try_link "$LINENO"; then :
8352  eval $cacheid=yes
8353else
8354  eval $cacheid=no
8355fi
8356rm -f core conftest.err conftest.$ac_objext \
8357    conftest$ac_exeext conftest.$ac_ext
8358fi
8359
8360
8361		CFLAGS="$xorg_testset_save_CFLAGS"
8362
8363		eval supported=\$$cacheid
8364		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8365$as_echo "$supported" >&6; }
8366		if test "$supported" = "yes" ; then
8367			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8368			found="yes"
8369		fi
8370	fi
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386xorg_testset_save_CFLAGS="$CFLAGS"
8387
8388if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8389	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8390	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8391$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8392if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8393  $as_echo_n "(cached) " >&6
8394else
8395  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8396/* end confdefs.h.  */
8397int i;
8398_ACEOF
8399if ac_fn_c_try_compile "$LINENO"; then :
8400  xorg_cv_cc_flag_unknown_warning_option=yes
8401else
8402  xorg_cv_cc_flag_unknown_warning_option=no
8403fi
8404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8405fi
8406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8407$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8408	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8409	CFLAGS="$xorg_testset_save_CFLAGS"
8410fi
8411
8412if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8413	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8414		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8415	fi
8416	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8417	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8418$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8419if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8420  $as_echo_n "(cached) " >&6
8421else
8422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8423/* end confdefs.h.  */
8424int i;
8425_ACEOF
8426if ac_fn_c_try_compile "$LINENO"; then :
8427  xorg_cv_cc_flag_unused_command_line_argument=yes
8428else
8429  xorg_cv_cc_flag_unused_command_line_argument=no
8430fi
8431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8432fi
8433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8434$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8435	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8436	CFLAGS="$xorg_testset_save_CFLAGS"
8437fi
8438
8439found="no"
8440
8441	if test $found = "no" ; then
8442		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8443			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8444		fi
8445
8446		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8447			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8448		fi
8449
8450		CFLAGS="$CFLAGS -Wnonnull"
8451
8452		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8453$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8454		cacheid=xorg_cv_cc_flag__Wnonnull
8455		if eval \${$cacheid+:} false; then :
8456  $as_echo_n "(cached) " >&6
8457else
8458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8459/* end confdefs.h.  */
8460int i;
8461int
8462main ()
8463{
8464
8465  ;
8466  return 0;
8467}
8468_ACEOF
8469if ac_fn_c_try_link "$LINENO"; then :
8470  eval $cacheid=yes
8471else
8472  eval $cacheid=no
8473fi
8474rm -f core conftest.err conftest.$ac_objext \
8475    conftest$ac_exeext conftest.$ac_ext
8476fi
8477
8478
8479		CFLAGS="$xorg_testset_save_CFLAGS"
8480
8481		eval supported=\$$cacheid
8482		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8483$as_echo "$supported" >&6; }
8484		if test "$supported" = "yes" ; then
8485			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8486			found="yes"
8487		fi
8488	fi
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504xorg_testset_save_CFLAGS="$CFLAGS"
8505
8506if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8507	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8508	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8509$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8510if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8511  $as_echo_n "(cached) " >&6
8512else
8513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8514/* end confdefs.h.  */
8515int i;
8516_ACEOF
8517if ac_fn_c_try_compile "$LINENO"; then :
8518  xorg_cv_cc_flag_unknown_warning_option=yes
8519else
8520  xorg_cv_cc_flag_unknown_warning_option=no
8521fi
8522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8523fi
8524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8525$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8526	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8527	CFLAGS="$xorg_testset_save_CFLAGS"
8528fi
8529
8530if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8531	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8532		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8533	fi
8534	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8535	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8536$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8537if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8538  $as_echo_n "(cached) " >&6
8539else
8540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8541/* end confdefs.h.  */
8542int i;
8543_ACEOF
8544if ac_fn_c_try_compile "$LINENO"; then :
8545  xorg_cv_cc_flag_unused_command_line_argument=yes
8546else
8547  xorg_cv_cc_flag_unused_command_line_argument=no
8548fi
8549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8550fi
8551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8552$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8553	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8554	CFLAGS="$xorg_testset_save_CFLAGS"
8555fi
8556
8557found="no"
8558
8559	if test $found = "no" ; then
8560		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8561			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8562		fi
8563
8564		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8565			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8566		fi
8567
8568		CFLAGS="$CFLAGS -Winit-self"
8569
8570		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8571$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8572		cacheid=xorg_cv_cc_flag__Winit_self
8573		if eval \${$cacheid+:} false; then :
8574  $as_echo_n "(cached) " >&6
8575else
8576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8577/* end confdefs.h.  */
8578int i;
8579int
8580main ()
8581{
8582
8583  ;
8584  return 0;
8585}
8586_ACEOF
8587if ac_fn_c_try_link "$LINENO"; then :
8588  eval $cacheid=yes
8589else
8590  eval $cacheid=no
8591fi
8592rm -f core conftest.err conftest.$ac_objext \
8593    conftest$ac_exeext conftest.$ac_ext
8594fi
8595
8596
8597		CFLAGS="$xorg_testset_save_CFLAGS"
8598
8599		eval supported=\$$cacheid
8600		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8601$as_echo "$supported" >&6; }
8602		if test "$supported" = "yes" ; then
8603			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8604			found="yes"
8605		fi
8606	fi
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622xorg_testset_save_CFLAGS="$CFLAGS"
8623
8624if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8625	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8626	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8627$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8628if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8629  $as_echo_n "(cached) " >&6
8630else
8631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8632/* end confdefs.h.  */
8633int i;
8634_ACEOF
8635if ac_fn_c_try_compile "$LINENO"; then :
8636  xorg_cv_cc_flag_unknown_warning_option=yes
8637else
8638  xorg_cv_cc_flag_unknown_warning_option=no
8639fi
8640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8641fi
8642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8643$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8644	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8645	CFLAGS="$xorg_testset_save_CFLAGS"
8646fi
8647
8648if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8649	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8650		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8651	fi
8652	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8653	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8654$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8655if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8656  $as_echo_n "(cached) " >&6
8657else
8658  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8659/* end confdefs.h.  */
8660int i;
8661_ACEOF
8662if ac_fn_c_try_compile "$LINENO"; then :
8663  xorg_cv_cc_flag_unused_command_line_argument=yes
8664else
8665  xorg_cv_cc_flag_unused_command_line_argument=no
8666fi
8667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8668fi
8669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8670$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8671	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8672	CFLAGS="$xorg_testset_save_CFLAGS"
8673fi
8674
8675found="no"
8676
8677	if test $found = "no" ; then
8678		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8679			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8680		fi
8681
8682		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8683			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8684		fi
8685
8686		CFLAGS="$CFLAGS -Wmain"
8687
8688		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8689$as_echo_n "checking if $CC supports -Wmain... " >&6; }
8690		cacheid=xorg_cv_cc_flag__Wmain
8691		if eval \${$cacheid+:} false; then :
8692  $as_echo_n "(cached) " >&6
8693else
8694  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8695/* end confdefs.h.  */
8696int i;
8697int
8698main ()
8699{
8700
8701  ;
8702  return 0;
8703}
8704_ACEOF
8705if ac_fn_c_try_link "$LINENO"; then :
8706  eval $cacheid=yes
8707else
8708  eval $cacheid=no
8709fi
8710rm -f core conftest.err conftest.$ac_objext \
8711    conftest$ac_exeext conftest.$ac_ext
8712fi
8713
8714
8715		CFLAGS="$xorg_testset_save_CFLAGS"
8716
8717		eval supported=\$$cacheid
8718		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8719$as_echo "$supported" >&6; }
8720		if test "$supported" = "yes" ; then
8721			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8722			found="yes"
8723		fi
8724	fi
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740xorg_testset_save_CFLAGS="$CFLAGS"
8741
8742if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8743	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8744	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8745$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8746if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8747  $as_echo_n "(cached) " >&6
8748else
8749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8750/* end confdefs.h.  */
8751int i;
8752_ACEOF
8753if ac_fn_c_try_compile "$LINENO"; then :
8754  xorg_cv_cc_flag_unknown_warning_option=yes
8755else
8756  xorg_cv_cc_flag_unknown_warning_option=no
8757fi
8758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8759fi
8760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8761$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8762	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8763	CFLAGS="$xorg_testset_save_CFLAGS"
8764fi
8765
8766if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8767	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8768		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8769	fi
8770	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8771	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8772$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8773if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8774  $as_echo_n "(cached) " >&6
8775else
8776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8777/* end confdefs.h.  */
8778int i;
8779_ACEOF
8780if ac_fn_c_try_compile "$LINENO"; then :
8781  xorg_cv_cc_flag_unused_command_line_argument=yes
8782else
8783  xorg_cv_cc_flag_unused_command_line_argument=no
8784fi
8785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8786fi
8787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8788$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8789	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8790	CFLAGS="$xorg_testset_save_CFLAGS"
8791fi
8792
8793found="no"
8794
8795	if test $found = "no" ; then
8796		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8797			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8798		fi
8799
8800		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8801			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8802		fi
8803
8804		CFLAGS="$CFLAGS -Wmissing-braces"
8805
8806		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8807$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8808		cacheid=xorg_cv_cc_flag__Wmissing_braces
8809		if eval \${$cacheid+:} false; then :
8810  $as_echo_n "(cached) " >&6
8811else
8812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8813/* end confdefs.h.  */
8814int i;
8815int
8816main ()
8817{
8818
8819  ;
8820  return 0;
8821}
8822_ACEOF
8823if ac_fn_c_try_link "$LINENO"; then :
8824  eval $cacheid=yes
8825else
8826  eval $cacheid=no
8827fi
8828rm -f core conftest.err conftest.$ac_objext \
8829    conftest$ac_exeext conftest.$ac_ext
8830fi
8831
8832
8833		CFLAGS="$xorg_testset_save_CFLAGS"
8834
8835		eval supported=\$$cacheid
8836		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8837$as_echo "$supported" >&6; }
8838		if test "$supported" = "yes" ; then
8839			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8840			found="yes"
8841		fi
8842	fi
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858xorg_testset_save_CFLAGS="$CFLAGS"
8859
8860if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8861	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8862	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8863$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8864if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8865  $as_echo_n "(cached) " >&6
8866else
8867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8868/* end confdefs.h.  */
8869int i;
8870_ACEOF
8871if ac_fn_c_try_compile "$LINENO"; then :
8872  xorg_cv_cc_flag_unknown_warning_option=yes
8873else
8874  xorg_cv_cc_flag_unknown_warning_option=no
8875fi
8876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8877fi
8878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8879$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8880	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8881	CFLAGS="$xorg_testset_save_CFLAGS"
8882fi
8883
8884if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8885	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8886		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8887	fi
8888	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8889	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8890$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8891if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8892  $as_echo_n "(cached) " >&6
8893else
8894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8895/* end confdefs.h.  */
8896int i;
8897_ACEOF
8898if ac_fn_c_try_compile "$LINENO"; then :
8899  xorg_cv_cc_flag_unused_command_line_argument=yes
8900else
8901  xorg_cv_cc_flag_unused_command_line_argument=no
8902fi
8903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8904fi
8905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8906$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8907	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8908	CFLAGS="$xorg_testset_save_CFLAGS"
8909fi
8910
8911found="no"
8912
8913	if test $found = "no" ; then
8914		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8915			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8916		fi
8917
8918		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8919			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8920		fi
8921
8922		CFLAGS="$CFLAGS -Wsequence-point"
8923
8924		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
8925$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
8926		cacheid=xorg_cv_cc_flag__Wsequence_point
8927		if eval \${$cacheid+:} false; then :
8928  $as_echo_n "(cached) " >&6
8929else
8930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8931/* end confdefs.h.  */
8932int i;
8933int
8934main ()
8935{
8936
8937  ;
8938  return 0;
8939}
8940_ACEOF
8941if ac_fn_c_try_link "$LINENO"; then :
8942  eval $cacheid=yes
8943else
8944  eval $cacheid=no
8945fi
8946rm -f core conftest.err conftest.$ac_objext \
8947    conftest$ac_exeext conftest.$ac_ext
8948fi
8949
8950
8951		CFLAGS="$xorg_testset_save_CFLAGS"
8952
8953		eval supported=\$$cacheid
8954		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8955$as_echo "$supported" >&6; }
8956		if test "$supported" = "yes" ; then
8957			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
8958			found="yes"
8959		fi
8960	fi
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976xorg_testset_save_CFLAGS="$CFLAGS"
8977
8978if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8979	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8980	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8981$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8982if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8983  $as_echo_n "(cached) " >&6
8984else
8985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8986/* end confdefs.h.  */
8987int i;
8988_ACEOF
8989if ac_fn_c_try_compile "$LINENO"; then :
8990  xorg_cv_cc_flag_unknown_warning_option=yes
8991else
8992  xorg_cv_cc_flag_unknown_warning_option=no
8993fi
8994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8995fi
8996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8997$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8998	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8999	CFLAGS="$xorg_testset_save_CFLAGS"
9000fi
9001
9002if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9003	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9004		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9005	fi
9006	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9007	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9008$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9009if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9010  $as_echo_n "(cached) " >&6
9011else
9012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9013/* end confdefs.h.  */
9014int i;
9015_ACEOF
9016if ac_fn_c_try_compile "$LINENO"; then :
9017  xorg_cv_cc_flag_unused_command_line_argument=yes
9018else
9019  xorg_cv_cc_flag_unused_command_line_argument=no
9020fi
9021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9022fi
9023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9024$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9025	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9026	CFLAGS="$xorg_testset_save_CFLAGS"
9027fi
9028
9029found="no"
9030
9031	if test $found = "no" ; then
9032		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9033			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9034		fi
9035
9036		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9037			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9038		fi
9039
9040		CFLAGS="$CFLAGS -Wreturn-type"
9041
9042		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9043$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9044		cacheid=xorg_cv_cc_flag__Wreturn_type
9045		if eval \${$cacheid+:} false; then :
9046  $as_echo_n "(cached) " >&6
9047else
9048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9049/* end confdefs.h.  */
9050int i;
9051int
9052main ()
9053{
9054
9055  ;
9056  return 0;
9057}
9058_ACEOF
9059if ac_fn_c_try_link "$LINENO"; then :
9060  eval $cacheid=yes
9061else
9062  eval $cacheid=no
9063fi
9064rm -f core conftest.err conftest.$ac_objext \
9065    conftest$ac_exeext conftest.$ac_ext
9066fi
9067
9068
9069		CFLAGS="$xorg_testset_save_CFLAGS"
9070
9071		eval supported=\$$cacheid
9072		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9073$as_echo "$supported" >&6; }
9074		if test "$supported" = "yes" ; then
9075			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9076			found="yes"
9077		fi
9078	fi
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094xorg_testset_save_CFLAGS="$CFLAGS"
9095
9096if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9097	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9098	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9099$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9100if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9101  $as_echo_n "(cached) " >&6
9102else
9103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9104/* end confdefs.h.  */
9105int i;
9106_ACEOF
9107if ac_fn_c_try_compile "$LINENO"; then :
9108  xorg_cv_cc_flag_unknown_warning_option=yes
9109else
9110  xorg_cv_cc_flag_unknown_warning_option=no
9111fi
9112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9113fi
9114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9115$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9116	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9117	CFLAGS="$xorg_testset_save_CFLAGS"
9118fi
9119
9120if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9121	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9122		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9123	fi
9124	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9125	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9126$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9127if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9128  $as_echo_n "(cached) " >&6
9129else
9130  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9131/* end confdefs.h.  */
9132int i;
9133_ACEOF
9134if ac_fn_c_try_compile "$LINENO"; then :
9135  xorg_cv_cc_flag_unused_command_line_argument=yes
9136else
9137  xorg_cv_cc_flag_unused_command_line_argument=no
9138fi
9139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9140fi
9141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9142$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9143	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9144	CFLAGS="$xorg_testset_save_CFLAGS"
9145fi
9146
9147found="no"
9148
9149	if test $found = "no" ; then
9150		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9151			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9152		fi
9153
9154		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9155			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9156		fi
9157
9158		CFLAGS="$CFLAGS -Wtrigraphs"
9159
9160		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9161$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9162		cacheid=xorg_cv_cc_flag__Wtrigraphs
9163		if eval \${$cacheid+:} false; then :
9164  $as_echo_n "(cached) " >&6
9165else
9166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9167/* end confdefs.h.  */
9168int i;
9169int
9170main ()
9171{
9172
9173  ;
9174  return 0;
9175}
9176_ACEOF
9177if ac_fn_c_try_link "$LINENO"; then :
9178  eval $cacheid=yes
9179else
9180  eval $cacheid=no
9181fi
9182rm -f core conftest.err conftest.$ac_objext \
9183    conftest$ac_exeext conftest.$ac_ext
9184fi
9185
9186
9187		CFLAGS="$xorg_testset_save_CFLAGS"
9188
9189		eval supported=\$$cacheid
9190		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9191$as_echo "$supported" >&6; }
9192		if test "$supported" = "yes" ; then
9193			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9194			found="yes"
9195		fi
9196	fi
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212xorg_testset_save_CFLAGS="$CFLAGS"
9213
9214if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9215	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9216	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9217$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9218if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9219  $as_echo_n "(cached) " >&6
9220else
9221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9222/* end confdefs.h.  */
9223int i;
9224_ACEOF
9225if ac_fn_c_try_compile "$LINENO"; then :
9226  xorg_cv_cc_flag_unknown_warning_option=yes
9227else
9228  xorg_cv_cc_flag_unknown_warning_option=no
9229fi
9230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9231fi
9232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9233$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9234	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9235	CFLAGS="$xorg_testset_save_CFLAGS"
9236fi
9237
9238if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9239	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9240		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9241	fi
9242	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9243	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9244$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9245if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9246  $as_echo_n "(cached) " >&6
9247else
9248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9249/* end confdefs.h.  */
9250int i;
9251_ACEOF
9252if ac_fn_c_try_compile "$LINENO"; then :
9253  xorg_cv_cc_flag_unused_command_line_argument=yes
9254else
9255  xorg_cv_cc_flag_unused_command_line_argument=no
9256fi
9257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9258fi
9259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9260$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9261	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9262	CFLAGS="$xorg_testset_save_CFLAGS"
9263fi
9264
9265found="no"
9266
9267	if test $found = "no" ; then
9268		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9269			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9270		fi
9271
9272		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9273			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9274		fi
9275
9276		CFLAGS="$CFLAGS -Warray-bounds"
9277
9278		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9279$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9280		cacheid=xorg_cv_cc_flag__Warray_bounds
9281		if eval \${$cacheid+:} false; then :
9282  $as_echo_n "(cached) " >&6
9283else
9284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9285/* end confdefs.h.  */
9286int i;
9287int
9288main ()
9289{
9290
9291  ;
9292  return 0;
9293}
9294_ACEOF
9295if ac_fn_c_try_link "$LINENO"; then :
9296  eval $cacheid=yes
9297else
9298  eval $cacheid=no
9299fi
9300rm -f core conftest.err conftest.$ac_objext \
9301    conftest$ac_exeext conftest.$ac_ext
9302fi
9303
9304
9305		CFLAGS="$xorg_testset_save_CFLAGS"
9306
9307		eval supported=\$$cacheid
9308		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9309$as_echo "$supported" >&6; }
9310		if test "$supported" = "yes" ; then
9311			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9312			found="yes"
9313		fi
9314	fi
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330xorg_testset_save_CFLAGS="$CFLAGS"
9331
9332if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9333	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9334	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9335$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9336if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9337  $as_echo_n "(cached) " >&6
9338else
9339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9340/* end confdefs.h.  */
9341int i;
9342_ACEOF
9343if ac_fn_c_try_compile "$LINENO"; then :
9344  xorg_cv_cc_flag_unknown_warning_option=yes
9345else
9346  xorg_cv_cc_flag_unknown_warning_option=no
9347fi
9348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9349fi
9350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9351$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9352	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9353	CFLAGS="$xorg_testset_save_CFLAGS"
9354fi
9355
9356if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9357	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9358		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9359	fi
9360	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9361	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9362$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9363if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9364  $as_echo_n "(cached) " >&6
9365else
9366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9367/* end confdefs.h.  */
9368int i;
9369_ACEOF
9370if ac_fn_c_try_compile "$LINENO"; then :
9371  xorg_cv_cc_flag_unused_command_line_argument=yes
9372else
9373  xorg_cv_cc_flag_unused_command_line_argument=no
9374fi
9375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9376fi
9377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9378$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9379	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9380	CFLAGS="$xorg_testset_save_CFLAGS"
9381fi
9382
9383found="no"
9384
9385	if test $found = "no" ; then
9386		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9387			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9388		fi
9389
9390		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9391			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9392		fi
9393
9394		CFLAGS="$CFLAGS -Wwrite-strings"
9395
9396		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9397$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9398		cacheid=xorg_cv_cc_flag__Wwrite_strings
9399		if eval \${$cacheid+:} false; then :
9400  $as_echo_n "(cached) " >&6
9401else
9402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9403/* end confdefs.h.  */
9404int i;
9405int
9406main ()
9407{
9408
9409  ;
9410  return 0;
9411}
9412_ACEOF
9413if ac_fn_c_try_link "$LINENO"; then :
9414  eval $cacheid=yes
9415else
9416  eval $cacheid=no
9417fi
9418rm -f core conftest.err conftest.$ac_objext \
9419    conftest$ac_exeext conftest.$ac_ext
9420fi
9421
9422
9423		CFLAGS="$xorg_testset_save_CFLAGS"
9424
9425		eval supported=\$$cacheid
9426		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9427$as_echo "$supported" >&6; }
9428		if test "$supported" = "yes" ; then
9429			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9430			found="yes"
9431		fi
9432	fi
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448xorg_testset_save_CFLAGS="$CFLAGS"
9449
9450if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9451	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9452	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9453$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9454if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9455  $as_echo_n "(cached) " >&6
9456else
9457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9458/* end confdefs.h.  */
9459int i;
9460_ACEOF
9461if ac_fn_c_try_compile "$LINENO"; then :
9462  xorg_cv_cc_flag_unknown_warning_option=yes
9463else
9464  xorg_cv_cc_flag_unknown_warning_option=no
9465fi
9466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9467fi
9468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9469$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9470	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9471	CFLAGS="$xorg_testset_save_CFLAGS"
9472fi
9473
9474if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9475	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9476		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9477	fi
9478	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9479	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9480$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9481if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9482  $as_echo_n "(cached) " >&6
9483else
9484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9485/* end confdefs.h.  */
9486int i;
9487_ACEOF
9488if ac_fn_c_try_compile "$LINENO"; then :
9489  xorg_cv_cc_flag_unused_command_line_argument=yes
9490else
9491  xorg_cv_cc_flag_unused_command_line_argument=no
9492fi
9493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9494fi
9495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9496$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9497	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9498	CFLAGS="$xorg_testset_save_CFLAGS"
9499fi
9500
9501found="no"
9502
9503	if test $found = "no" ; then
9504		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9505			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9506		fi
9507
9508		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9509			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9510		fi
9511
9512		CFLAGS="$CFLAGS -Waddress"
9513
9514		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9515$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9516		cacheid=xorg_cv_cc_flag__Waddress
9517		if eval \${$cacheid+:} false; then :
9518  $as_echo_n "(cached) " >&6
9519else
9520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9521/* end confdefs.h.  */
9522int i;
9523int
9524main ()
9525{
9526
9527  ;
9528  return 0;
9529}
9530_ACEOF
9531if ac_fn_c_try_link "$LINENO"; then :
9532  eval $cacheid=yes
9533else
9534  eval $cacheid=no
9535fi
9536rm -f core conftest.err conftest.$ac_objext \
9537    conftest$ac_exeext conftest.$ac_ext
9538fi
9539
9540
9541		CFLAGS="$xorg_testset_save_CFLAGS"
9542
9543		eval supported=\$$cacheid
9544		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9545$as_echo "$supported" >&6; }
9546		if test "$supported" = "yes" ; then
9547			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9548			found="yes"
9549		fi
9550	fi
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566xorg_testset_save_CFLAGS="$CFLAGS"
9567
9568if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9569	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9570	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9571$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9572if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9573  $as_echo_n "(cached) " >&6
9574else
9575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9576/* end confdefs.h.  */
9577int i;
9578_ACEOF
9579if ac_fn_c_try_compile "$LINENO"; then :
9580  xorg_cv_cc_flag_unknown_warning_option=yes
9581else
9582  xorg_cv_cc_flag_unknown_warning_option=no
9583fi
9584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9585fi
9586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9587$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9588	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9589	CFLAGS="$xorg_testset_save_CFLAGS"
9590fi
9591
9592if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9593	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9594		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9595	fi
9596	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9597	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9598$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9599if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9600  $as_echo_n "(cached) " >&6
9601else
9602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9603/* end confdefs.h.  */
9604int i;
9605_ACEOF
9606if ac_fn_c_try_compile "$LINENO"; then :
9607  xorg_cv_cc_flag_unused_command_line_argument=yes
9608else
9609  xorg_cv_cc_flag_unused_command_line_argument=no
9610fi
9611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9612fi
9613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9614$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9615	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9616	CFLAGS="$xorg_testset_save_CFLAGS"
9617fi
9618
9619found="no"
9620
9621	if test $found = "no" ; then
9622		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9623			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9624		fi
9625
9626		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9627			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9628		fi
9629
9630		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9631
9632		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9633$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9634		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9635		if eval \${$cacheid+:} false; then :
9636  $as_echo_n "(cached) " >&6
9637else
9638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9639/* end confdefs.h.  */
9640int i;
9641int
9642main ()
9643{
9644
9645  ;
9646  return 0;
9647}
9648_ACEOF
9649if ac_fn_c_try_link "$LINENO"; then :
9650  eval $cacheid=yes
9651else
9652  eval $cacheid=no
9653fi
9654rm -f core conftest.err conftest.$ac_objext \
9655    conftest$ac_exeext conftest.$ac_ext
9656fi
9657
9658
9659		CFLAGS="$xorg_testset_save_CFLAGS"
9660
9661		eval supported=\$$cacheid
9662		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9663$as_echo "$supported" >&6; }
9664		if test "$supported" = "yes" ; then
9665			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9666			found="yes"
9667		fi
9668	fi
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684xorg_testset_save_CFLAGS="$CFLAGS"
9685
9686if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9687	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9688	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9689$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9690if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9691  $as_echo_n "(cached) " >&6
9692else
9693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9694/* end confdefs.h.  */
9695int i;
9696_ACEOF
9697if ac_fn_c_try_compile "$LINENO"; then :
9698  xorg_cv_cc_flag_unknown_warning_option=yes
9699else
9700  xorg_cv_cc_flag_unknown_warning_option=no
9701fi
9702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9703fi
9704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9705$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9706	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9707	CFLAGS="$xorg_testset_save_CFLAGS"
9708fi
9709
9710if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9711	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9712		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9713	fi
9714	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9715	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9716$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9717if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9718  $as_echo_n "(cached) " >&6
9719else
9720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9721/* end confdefs.h.  */
9722int i;
9723_ACEOF
9724if ac_fn_c_try_compile "$LINENO"; then :
9725  xorg_cv_cc_flag_unused_command_line_argument=yes
9726else
9727  xorg_cv_cc_flag_unused_command_line_argument=no
9728fi
9729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9730fi
9731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9732$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9733	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9734	CFLAGS="$xorg_testset_save_CFLAGS"
9735fi
9736
9737found="no"
9738
9739	if test $found = "no" ; then
9740		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9741			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9742		fi
9743
9744		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9745			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9746		fi
9747
9748		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9749
9750		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9751$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9752		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9753		if eval \${$cacheid+:} false; then :
9754  $as_echo_n "(cached) " >&6
9755else
9756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9757/* end confdefs.h.  */
9758int i;
9759int
9760main ()
9761{
9762
9763  ;
9764  return 0;
9765}
9766_ACEOF
9767if ac_fn_c_try_link "$LINENO"; then :
9768  eval $cacheid=yes
9769else
9770  eval $cacheid=no
9771fi
9772rm -f core conftest.err conftest.$ac_objext \
9773    conftest$ac_exeext conftest.$ac_ext
9774fi
9775
9776
9777		CFLAGS="$xorg_testset_save_CFLAGS"
9778
9779		eval supported=\$$cacheid
9780		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9781$as_echo "$supported" >&6; }
9782		if test "$supported" = "yes" ; then
9783			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9784			found="yes"
9785		fi
9786	fi
9787
9788
9789fi
9790
9791
9792
9793
9794
9795
9796
9797		CWARNFLAGS="$BASE_CFLAGS"
9798		if  test "x$GCC" = xyes ; then
9799		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9800		fi
9801
9802
9803
9804
9805
9806
9807
9808
9809# Check whether --enable-strict-compilation was given.
9810if test "${enable_strict_compilation+set}" = set; then :
9811  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9812else
9813  STRICT_COMPILE=no
9814fi
9815
9816
9817
9818
9819
9820
9821STRICT_CFLAGS=""
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835xorg_testset_save_CFLAGS="$CFLAGS"
9836
9837if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9838	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9839	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9840$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9841if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9842  $as_echo_n "(cached) " >&6
9843else
9844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9845/* end confdefs.h.  */
9846int i;
9847_ACEOF
9848if ac_fn_c_try_compile "$LINENO"; then :
9849  xorg_cv_cc_flag_unknown_warning_option=yes
9850else
9851  xorg_cv_cc_flag_unknown_warning_option=no
9852fi
9853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9854fi
9855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9856$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9857	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9858	CFLAGS="$xorg_testset_save_CFLAGS"
9859fi
9860
9861if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9862	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9863		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9864	fi
9865	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9866	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9867$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9868if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9869  $as_echo_n "(cached) " >&6
9870else
9871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9872/* end confdefs.h.  */
9873int i;
9874_ACEOF
9875if ac_fn_c_try_compile "$LINENO"; then :
9876  xorg_cv_cc_flag_unused_command_line_argument=yes
9877else
9878  xorg_cv_cc_flag_unused_command_line_argument=no
9879fi
9880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9881fi
9882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9883$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9884	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9885	CFLAGS="$xorg_testset_save_CFLAGS"
9886fi
9887
9888found="no"
9889
9890	if test $found = "no" ; then
9891		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9892			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9893		fi
9894
9895		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9896			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9897		fi
9898
9899		CFLAGS="$CFLAGS -pedantic"
9900
9901		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
9902$as_echo_n "checking if $CC supports -pedantic... " >&6; }
9903		cacheid=xorg_cv_cc_flag__pedantic
9904		if eval \${$cacheid+:} false; then :
9905  $as_echo_n "(cached) " >&6
9906else
9907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9908/* end confdefs.h.  */
9909int i;
9910int
9911main ()
9912{
9913
9914  ;
9915  return 0;
9916}
9917_ACEOF
9918if ac_fn_c_try_link "$LINENO"; then :
9919  eval $cacheid=yes
9920else
9921  eval $cacheid=no
9922fi
9923rm -f core conftest.err conftest.$ac_objext \
9924    conftest$ac_exeext conftest.$ac_ext
9925fi
9926
9927
9928		CFLAGS="$xorg_testset_save_CFLAGS"
9929
9930		eval supported=\$$cacheid
9931		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9932$as_echo "$supported" >&6; }
9933		if test "$supported" = "yes" ; then
9934			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
9935			found="yes"
9936		fi
9937	fi
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953xorg_testset_save_CFLAGS="$CFLAGS"
9954
9955if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9956	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9957	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9958$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9959if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9960  $as_echo_n "(cached) " >&6
9961else
9962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9963/* end confdefs.h.  */
9964int i;
9965_ACEOF
9966if ac_fn_c_try_compile "$LINENO"; then :
9967  xorg_cv_cc_flag_unknown_warning_option=yes
9968else
9969  xorg_cv_cc_flag_unknown_warning_option=no
9970fi
9971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9972fi
9973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9974$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9975	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9976	CFLAGS="$xorg_testset_save_CFLAGS"
9977fi
9978
9979if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9980	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9981		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9982	fi
9983	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9984	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9985$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9986if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9987  $as_echo_n "(cached) " >&6
9988else
9989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9990/* end confdefs.h.  */
9991int i;
9992_ACEOF
9993if ac_fn_c_try_compile "$LINENO"; then :
9994  xorg_cv_cc_flag_unused_command_line_argument=yes
9995else
9996  xorg_cv_cc_flag_unused_command_line_argument=no
9997fi
9998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9999fi
10000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10001$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10002	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10003	CFLAGS="$xorg_testset_save_CFLAGS"
10004fi
10005
10006found="no"
10007
10008	if test $found = "no" ; then
10009		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10010			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10011		fi
10012
10013		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10014			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10015		fi
10016
10017		CFLAGS="$CFLAGS -Werror"
10018
10019		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10020$as_echo_n "checking if $CC supports -Werror... " >&6; }
10021		cacheid=xorg_cv_cc_flag__Werror
10022		if eval \${$cacheid+:} false; then :
10023  $as_echo_n "(cached) " >&6
10024else
10025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10026/* end confdefs.h.  */
10027int i;
10028int
10029main ()
10030{
10031
10032  ;
10033  return 0;
10034}
10035_ACEOF
10036if ac_fn_c_try_link "$LINENO"; then :
10037  eval $cacheid=yes
10038else
10039  eval $cacheid=no
10040fi
10041rm -f core conftest.err conftest.$ac_objext \
10042    conftest$ac_exeext conftest.$ac_ext
10043fi
10044
10045
10046		CFLAGS="$xorg_testset_save_CFLAGS"
10047
10048		eval supported=\$$cacheid
10049		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10050$as_echo "$supported" >&6; }
10051		if test "$supported" = "yes" ; then
10052			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10053			found="yes"
10054		fi
10055	fi
10056
10057	if test $found = "no" ; then
10058		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10059			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10060		fi
10061
10062		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10063			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10064		fi
10065
10066		CFLAGS="$CFLAGS -errwarn"
10067
10068		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10069$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10070		cacheid=xorg_cv_cc_flag__errwarn
10071		if eval \${$cacheid+:} false; then :
10072  $as_echo_n "(cached) " >&6
10073else
10074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10075/* end confdefs.h.  */
10076int i;
10077int
10078main ()
10079{
10080
10081  ;
10082  return 0;
10083}
10084_ACEOF
10085if ac_fn_c_try_link "$LINENO"; then :
10086  eval $cacheid=yes
10087else
10088  eval $cacheid=no
10089fi
10090rm -f core conftest.err conftest.$ac_objext \
10091    conftest$ac_exeext conftest.$ac_ext
10092fi
10093
10094
10095		CFLAGS="$xorg_testset_save_CFLAGS"
10096
10097		eval supported=\$$cacheid
10098		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10099$as_echo "$supported" >&6; }
10100		if test "$supported" = "yes" ; then
10101			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10102			found="yes"
10103		fi
10104	fi
10105
10106
10107
10108# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10109# activate it with -Werror, so we add it here explicitly.
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123xorg_testset_save_CFLAGS="$CFLAGS"
10124
10125if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10126	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10127	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10128$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10129if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10130  $as_echo_n "(cached) " >&6
10131else
10132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10133/* end confdefs.h.  */
10134int i;
10135_ACEOF
10136if ac_fn_c_try_compile "$LINENO"; then :
10137  xorg_cv_cc_flag_unknown_warning_option=yes
10138else
10139  xorg_cv_cc_flag_unknown_warning_option=no
10140fi
10141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10142fi
10143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10144$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10145	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10146	CFLAGS="$xorg_testset_save_CFLAGS"
10147fi
10148
10149if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10150	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10151		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10152	fi
10153	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10154	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10155$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10156if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10157  $as_echo_n "(cached) " >&6
10158else
10159  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10160/* end confdefs.h.  */
10161int i;
10162_ACEOF
10163if ac_fn_c_try_compile "$LINENO"; then :
10164  xorg_cv_cc_flag_unused_command_line_argument=yes
10165else
10166  xorg_cv_cc_flag_unused_command_line_argument=no
10167fi
10168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10169fi
10170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10171$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10172	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10173	CFLAGS="$xorg_testset_save_CFLAGS"
10174fi
10175
10176found="no"
10177
10178	if test $found = "no" ; then
10179		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10180			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10181		fi
10182
10183		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10184			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10185		fi
10186
10187		CFLAGS="$CFLAGS -Werror=attributes"
10188
10189		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10190$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10191		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10192		if eval \${$cacheid+:} false; then :
10193  $as_echo_n "(cached) " >&6
10194else
10195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10196/* end confdefs.h.  */
10197int i;
10198int
10199main ()
10200{
10201
10202  ;
10203  return 0;
10204}
10205_ACEOF
10206if ac_fn_c_try_link "$LINENO"; then :
10207  eval $cacheid=yes
10208else
10209  eval $cacheid=no
10210fi
10211rm -f core conftest.err conftest.$ac_objext \
10212    conftest$ac_exeext conftest.$ac_ext
10213fi
10214
10215
10216		CFLAGS="$xorg_testset_save_CFLAGS"
10217
10218		eval supported=\$$cacheid
10219		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10220$as_echo "$supported" >&6; }
10221		if test "$supported" = "yes" ; then
10222			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10223			found="yes"
10224		fi
10225	fi
10226
10227
10228
10229if test "x$STRICT_COMPILE" = "xyes"; then
10230    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10231    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10232fi
10233
10234
10235
10236
10237
10238
10239cat >>confdefs.h <<_ACEOF
10240#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10241_ACEOF
10242
10243	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10244	if test "x$PVM" = "x"; then
10245		PVM="0"
10246	fi
10247
10248cat >>confdefs.h <<_ACEOF
10249#define PACKAGE_VERSION_MINOR $PVM
10250_ACEOF
10251
10252	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10253	if test "x$PVP" = "x"; then
10254		PVP="0"
10255	fi
10256
10257cat >>confdefs.h <<_ACEOF
10258#define PACKAGE_VERSION_PATCHLEVEL $PVP
10259_ACEOF
10260
10261
10262
10263CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10264mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10265|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10266echo 'git directory not found: installing possibly empty changelog.' >&2)"
10267
10268
10269
10270
10271macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10272INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10273mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10274|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10275echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10276
10277
10278
10279
10280
10281
10282if test x$APP_MAN_SUFFIX = x    ; then
10283    APP_MAN_SUFFIX=1
10284fi
10285if test x$APP_MAN_DIR = x    ; then
10286    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10287fi
10288
10289if test x$LIB_MAN_SUFFIX = x    ; then
10290    LIB_MAN_SUFFIX=3
10291fi
10292if test x$LIB_MAN_DIR = x    ; then
10293    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10294fi
10295
10296if test x$FILE_MAN_SUFFIX = x    ; then
10297    case $host_os in
10298	solaris*)	FILE_MAN_SUFFIX=4  ;;
10299	*)		FILE_MAN_SUFFIX=5  ;;
10300    esac
10301fi
10302if test x$FILE_MAN_DIR = x    ; then
10303    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10304fi
10305
10306if test x$MISC_MAN_SUFFIX = x    ; then
10307    case $host_os in
10308	solaris*)	MISC_MAN_SUFFIX=5  ;;
10309	*)		MISC_MAN_SUFFIX=7  ;;
10310    esac
10311fi
10312if test x$MISC_MAN_DIR = x    ; then
10313    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10314fi
10315
10316if test x$DRIVER_MAN_SUFFIX = x    ; then
10317    case $host_os in
10318	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10319	*)		DRIVER_MAN_SUFFIX=4  ;;
10320    esac
10321fi
10322if test x$DRIVER_MAN_DIR = x    ; then
10323    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10324fi
10325
10326if test x$ADMIN_MAN_SUFFIX = x    ; then
10327    case $host_os in
10328	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10329	*)		ADMIN_MAN_SUFFIX=8  ;;
10330    esac
10331fi
10332if test x$ADMIN_MAN_DIR = x    ; then
10333    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10334fi
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350XORG_MAN_PAGE="X Version 11"
10351
10352MAN_SUBSTS="\
10353	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10354	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10355	-e 's|__xservername__|Xorg|g' \
10356	-e 's|__xconfigfile__|xorg.conf|g' \
10357	-e 's|__projectroot__|\$(prefix)|g' \
10358	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10359	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10360	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10361	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10362	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10363	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10364	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10365
10366
10367
10368# Check whether --enable-silent-rules was given.
10369if test "${enable_silent_rules+set}" = set; then :
10370  enableval=$enable_silent_rules;
10371fi
10372
10373case $enable_silent_rules in
10374yes) AM_DEFAULT_VERBOSITY=0;;
10375no)  AM_DEFAULT_VERBOSITY=1;;
10376*)   AM_DEFAULT_VERBOSITY=0;;
10377esac
10378AM_BACKSLASH='\'
10379
10380
10381
10382for ac_prog in flex lex
10383do
10384  # Extract the first word of "$ac_prog", so it can be a program name with args.
10385set dummy $ac_prog; ac_word=$2
10386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10387$as_echo_n "checking for $ac_word... " >&6; }
10388if ${ac_cv_prog_LEX+:} false; then :
10389  $as_echo_n "(cached) " >&6
10390else
10391  if test -n "$LEX"; then
10392  ac_cv_prog_LEX="$LEX" # Let the user override the test.
10393else
10394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10395for as_dir in $PATH
10396do
10397  IFS=$as_save_IFS
10398  test -z "$as_dir" && as_dir=.
10399    for ac_exec_ext in '' $ac_executable_extensions; do
10400  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10401    ac_cv_prog_LEX="$ac_prog"
10402    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10403    break 2
10404  fi
10405done
10406  done
10407IFS=$as_save_IFS
10408
10409fi
10410fi
10411LEX=$ac_cv_prog_LEX
10412if test -n "$LEX"; then
10413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10414$as_echo "$LEX" >&6; }
10415else
10416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10417$as_echo "no" >&6; }
10418fi
10419
10420
10421  test -n "$LEX" && break
10422done
10423test -n "$LEX" || LEX=":"
10424
10425if test "x$LEX" != "x:"; then
10426  cat >conftest.l <<_ACEOF
10427%%
10428a { ECHO; }
10429b { REJECT; }
10430c { yymore (); }
10431d { yyless (1); }
10432e { yyless (input () != 0); }
10433f { unput (yytext[0]); }
10434. { BEGIN INITIAL; }
10435%%
10436#ifdef YYTEXT_POINTER
10437extern char *yytext;
10438#endif
10439int
10440main (void)
10441{
10442  return ! yylex () + ! yywrap ();
10443}
10444_ACEOF
10445{ { ac_try="$LEX conftest.l"
10446case "(($ac_try" in
10447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10448  *) ac_try_echo=$ac_try;;
10449esac
10450eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10451$as_echo "$ac_try_echo"; } >&5
10452  (eval "$LEX conftest.l") 2>&5
10453  ac_status=$?
10454  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10455  test $ac_status = 0; }
10456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
10457$as_echo_n "checking lex output file root... " >&6; }
10458if ${ac_cv_prog_lex_root+:} false; then :
10459  $as_echo_n "(cached) " >&6
10460else
10461
10462if test -f lex.yy.c; then
10463  ac_cv_prog_lex_root=lex.yy
10464elif test -f lexyy.c; then
10465  ac_cv_prog_lex_root=lexyy
10466else
10467  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
10468fi
10469fi
10470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
10471$as_echo "$ac_cv_prog_lex_root" >&6; }
10472LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
10473
10474if test -z "${LEXLIB+set}"; then
10475  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
10476$as_echo_n "checking lex library... " >&6; }
10477if ${ac_cv_lib_lex+:} false; then :
10478  $as_echo_n "(cached) " >&6
10479else
10480
10481    ac_save_LIBS=$LIBS
10482    ac_cv_lib_lex='none needed'
10483    for ac_lib in '' -lfl -ll; do
10484      LIBS="$ac_lib $ac_save_LIBS"
10485      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10486/* end confdefs.h.  */
10487`cat $LEX_OUTPUT_ROOT.c`
10488_ACEOF
10489if ac_fn_c_try_link "$LINENO"; then :
10490  ac_cv_lib_lex=$ac_lib
10491fi
10492rm -f core conftest.err conftest.$ac_objext \
10493    conftest$ac_exeext conftest.$ac_ext
10494      test "$ac_cv_lib_lex" != 'none needed' && break
10495    done
10496    LIBS=$ac_save_LIBS
10497
10498fi
10499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
10500$as_echo "$ac_cv_lib_lex" >&6; }
10501  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
10502fi
10503
10504
10505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
10506$as_echo_n "checking whether yytext is a pointer... " >&6; }
10507if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
10508  $as_echo_n "(cached) " >&6
10509else
10510  # POSIX says lex can declare yytext either as a pointer or an array; the
10511# default is implementation-dependent.  Figure out which it is, since
10512# not all implementations provide the %pointer and %array declarations.
10513ac_cv_prog_lex_yytext_pointer=no
10514ac_save_LIBS=$LIBS
10515LIBS="$LEXLIB $ac_save_LIBS"
10516cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10517/* end confdefs.h.  */
10518
10519  #define YYTEXT_POINTER 1
10520`cat $LEX_OUTPUT_ROOT.c`
10521_ACEOF
10522if ac_fn_c_try_link "$LINENO"; then :
10523  ac_cv_prog_lex_yytext_pointer=yes
10524fi
10525rm -f core conftest.err conftest.$ac_objext \
10526    conftest$ac_exeext conftest.$ac_ext
10527LIBS=$ac_save_LIBS
10528
10529fi
10530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
10531$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
10532if test $ac_cv_prog_lex_yytext_pointer = yes; then
10533
10534$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
10535
10536fi
10537rm -f conftest.l $LEX_OUTPUT_ROOT.c
10538
10539fi
10540for ac_prog in 'bison -y' byacc
10541do
10542  # Extract the first word of "$ac_prog", so it can be a program name with args.
10543set dummy $ac_prog; ac_word=$2
10544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10545$as_echo_n "checking for $ac_word... " >&6; }
10546if ${ac_cv_prog_YACC+:} false; then :
10547  $as_echo_n "(cached) " >&6
10548else
10549  if test -n "$YACC"; then
10550  ac_cv_prog_YACC="$YACC" # Let the user override the test.
10551else
10552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10553for as_dir in $PATH
10554do
10555  IFS=$as_save_IFS
10556  test -z "$as_dir" && as_dir=.
10557    for ac_exec_ext in '' $ac_executable_extensions; do
10558  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10559    ac_cv_prog_YACC="$ac_prog"
10560    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10561    break 2
10562  fi
10563done
10564  done
10565IFS=$as_save_IFS
10566
10567fi
10568fi
10569YACC=$ac_cv_prog_YACC
10570if test -n "$YACC"; then
10571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10572$as_echo "$YACC" >&6; }
10573else
10574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10575$as_echo "no" >&6; }
10576fi
10577
10578
10579  test -n "$YACC" && break
10580done
10581test -n "$YACC" || YACC="yacc"
10582
10583# Extract the first word of "$YACC", so it can be a program name with args.
10584set dummy $YACC; ac_word=$2
10585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10586$as_echo_n "checking for $ac_word... " >&6; }
10587if ${ac_cv_path_YACC_INST+:} false; then :
10588  $as_echo_n "(cached) " >&6
10589else
10590  case $YACC_INST in
10591  [\\/]* | ?:[\\/]*)
10592  ac_cv_path_YACC_INST="$YACC_INST" # Let the user override the test with a path.
10593  ;;
10594  *)
10595  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10596for as_dir in $PATH
10597do
10598  IFS=$as_save_IFS
10599  test -z "$as_dir" && as_dir=.
10600    for ac_exec_ext in '' $ac_executable_extensions; do
10601  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10602    ac_cv_path_YACC_INST="$as_dir/$ac_word$ac_exec_ext"
10603    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10604    break 2
10605  fi
10606done
10607  done
10608IFS=$as_save_IFS
10609
10610  ;;
10611esac
10612fi
10613YACC_INST=$ac_cv_path_YACC_INST
10614if test -n "$YACC_INST"; then
10615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC_INST" >&5
10616$as_echo "$YACC_INST" >&6; }
10617else
10618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10619$as_echo "no" >&6; }
10620fi
10621
10622
10623if test ! -f "gram.c"; then
10624   if test -z "$YACC_INST"; then
10625      as_fn_error $? "yacc not found - unable to compile gram.y" "$LINENO" 5
10626   fi
10627fi
10628
10629
10630pkg_failed=no
10631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGC" >&5
10632$as_echo_n "checking for XGC... " >&6; }
10633
10634if test -n "$XGC_CFLAGS"; then
10635    pkg_cv_XGC_CFLAGS="$XGC_CFLAGS"
10636 elif test -n "$PKG_CONFIG"; then
10637    if test -n "$PKG_CONFIG" && \
10638    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xt\""; } >&5
10639  ($PKG_CONFIG --exists --print-errors "xaw7 xt") 2>&5
10640  ac_status=$?
10641  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10642  test $ac_status = 0; }; then
10643  pkg_cv_XGC_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xt" 2>/dev/null`
10644else
10645  pkg_failed=yes
10646fi
10647 else
10648    pkg_failed=untried
10649fi
10650if test -n "$XGC_LIBS"; then
10651    pkg_cv_XGC_LIBS="$XGC_LIBS"
10652 elif test -n "$PKG_CONFIG"; then
10653    if test -n "$PKG_CONFIG" && \
10654    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xt\""; } >&5
10655  ($PKG_CONFIG --exists --print-errors "xaw7 xt") 2>&5
10656  ac_status=$?
10657  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10658  test $ac_status = 0; }; then
10659  pkg_cv_XGC_LIBS=`$PKG_CONFIG --libs "xaw7 xt" 2>/dev/null`
10660else
10661  pkg_failed=yes
10662fi
10663 else
10664    pkg_failed=untried
10665fi
10666
10667
10668
10669if test $pkg_failed = yes; then
10670
10671if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10672        _pkg_short_errors_supported=yes
10673else
10674        _pkg_short_errors_supported=no
10675fi
10676        if test $_pkg_short_errors_supported = yes; then
10677	        XGC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xaw7 xt" 2>&1`
10678        else
10679	        XGC_PKG_ERRORS=`$PKG_CONFIG --print-errors "xaw7 xt" 2>&1`
10680        fi
10681	# Put the nasty error message in config.log where it belongs
10682	echo "$XGC_PKG_ERRORS" >&5
10683
10684	as_fn_error $? "Package requirements (xaw7 xt) were not met:
10685
10686$XGC_PKG_ERRORS
10687
10688Consider adjusting the PKG_CONFIG_PATH environment variable if you
10689installed software in a non-standard prefix.
10690
10691Alternatively, you may set the environment variables XGC_CFLAGS
10692and XGC_LIBS to avoid the need to call pkg-config.
10693See the pkg-config man page for more details.
10694" "$LINENO" 5
10695elif test $pkg_failed = untried; then
10696	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10697$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10698as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10699is in your PATH or set the PKG_CONFIG environment variable to the full
10700path to pkg-config.
10701
10702Alternatively, you may set the environment variables XGC_CFLAGS
10703and XGC_LIBS to avoid the need to call pkg-config.
10704See the pkg-config man page for more details.
10705
10706To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10707See \`config.log' for more details" "$LINENO" 5; }
10708else
10709	XGC_CFLAGS=$pkg_cv_XGC_CFLAGS
10710	XGC_LIBS=$pkg_cv_XGC_LIBS
10711        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10712$as_echo "yes" >&6; }
10713	:
10714fi
10715xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
10716
10717# Check whether --with-appdefaultdir was given.
10718if test "${with_appdefaultdir+set}" = set; then :
10719  withval=$with_appdefaultdir; appdefaultdir="$withval"
10720else
10721  appdefaultdir="${xt_appdefaultdir}"
10722fi
10723
10724
10725
10726ac_config_files="$ac_config_files Makefile man/Makefile"
10727
10728cat >confcache <<\_ACEOF
10729# This file is a shell script that caches the results of configure
10730# tests run on this system so they can be shared between configure
10731# scripts and configure runs, see configure's option --config-cache.
10732# It is not useful on other systems.  If it contains results you don't
10733# want to keep, you may remove or edit it.
10734#
10735# config.status only pays attention to the cache file if you give it
10736# the --recheck option to rerun configure.
10737#
10738# `ac_cv_env_foo' variables (set or unset) will be overridden when
10739# loading this file, other *unset* `ac_cv_foo' will be assigned the
10740# following values.
10741
10742_ACEOF
10743
10744# The following way of writing the cache mishandles newlines in values,
10745# but we know of no workaround that is simple, portable, and efficient.
10746# So, we kill variables containing newlines.
10747# Ultrix sh set writes to stderr and can't be redirected directly,
10748# and sets the high bit in the cache file unless we assign to the vars.
10749(
10750  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10751    eval ac_val=\$$ac_var
10752    case $ac_val in #(
10753    *${as_nl}*)
10754      case $ac_var in #(
10755      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10756$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10757      esac
10758      case $ac_var in #(
10759      _ | IFS | as_nl) ;; #(
10760      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10761      *) { eval $ac_var=; unset $ac_var;} ;;
10762      esac ;;
10763    esac
10764  done
10765
10766  (set) 2>&1 |
10767    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10768    *${as_nl}ac_space=\ *)
10769      # `set' does not quote correctly, so add quotes: double-quote
10770      # substitution turns \\\\ into \\, and sed turns \\ into \.
10771      sed -n \
10772	"s/'/'\\\\''/g;
10773	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10774      ;; #(
10775    *)
10776      # `set' quotes correctly as required by POSIX, so do not add quotes.
10777      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10778      ;;
10779    esac |
10780    sort
10781) |
10782  sed '
10783     /^ac_cv_env_/b end
10784     t clear
10785     :clear
10786     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10787     t end
10788     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10789     :end' >>confcache
10790if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10791  if test -w "$cache_file"; then
10792    if test "x$cache_file" != "x/dev/null"; then
10793      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10794$as_echo "$as_me: updating cache $cache_file" >&6;}
10795      if test ! -f "$cache_file" || test -h "$cache_file"; then
10796	cat confcache >"$cache_file"
10797      else
10798        case $cache_file in #(
10799        */* | ?:*)
10800	  mv -f confcache "$cache_file"$$ &&
10801	  mv -f "$cache_file"$$ "$cache_file" ;; #(
10802        *)
10803	  mv -f confcache "$cache_file" ;;
10804	esac
10805      fi
10806    fi
10807  else
10808    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10809$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10810  fi
10811fi
10812rm -f confcache
10813
10814test "x$prefix" = xNONE && prefix=$ac_default_prefix
10815# Let make expand exec_prefix.
10816test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10817
10818DEFS=-DHAVE_CONFIG_H
10819
10820ac_libobjs=
10821ac_ltlibobjs=
10822U=
10823for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10824  # 1. Remove the extension, and $U if already installed.
10825  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10826  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10827  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10828  #    will be set to the directory where LIBOBJS objects are built.
10829  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10830  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10831done
10832LIBOBJS=$ac_libobjs
10833
10834LTLIBOBJS=$ac_ltlibobjs
10835
10836
10837 if test -n "$EXEEXT"; then
10838  am__EXEEXT_TRUE=
10839  am__EXEEXT_FALSE='#'
10840else
10841  am__EXEEXT_TRUE='#'
10842  am__EXEEXT_FALSE=
10843fi
10844
10845if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10846  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10847Usually this means the macro was only invoked conditionally." "$LINENO" 5
10848fi
10849if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10850  as_fn_error $? "conditional \"AMDEP\" was never defined.
10851Usually this means the macro was only invoked conditionally." "$LINENO" 5
10852fi
10853if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10854  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10855Usually this means the macro was only invoked conditionally." "$LINENO" 5
10856fi
10857
10858: "${CONFIG_STATUS=./config.status}"
10859ac_write_fail=0
10860ac_clean_files_save=$ac_clean_files
10861ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10862{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10863$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10864as_write_fail=0
10865cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10866#! $SHELL
10867# Generated by $as_me.
10868# Run this file to recreate the current configuration.
10869# Compiler output produced by configure, useful for debugging
10870# configure, is in config.log if it exists.
10871
10872debug=false
10873ac_cs_recheck=false
10874ac_cs_silent=false
10875
10876SHELL=\${CONFIG_SHELL-$SHELL}
10877export SHELL
10878_ASEOF
10879cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10880## -------------------- ##
10881## M4sh Initialization. ##
10882## -------------------- ##
10883
10884# Be more Bourne compatible
10885DUALCASE=1; export DUALCASE # for MKS sh
10886if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10887  emulate sh
10888  NULLCMD=:
10889  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10890  # is contrary to our usage.  Disable this feature.
10891  alias -g '${1+"$@"}'='"$@"'
10892  setopt NO_GLOB_SUBST
10893else
10894  case `(set -o) 2>/dev/null` in #(
10895  *posix*) :
10896    set -o posix ;; #(
10897  *) :
10898     ;;
10899esac
10900fi
10901
10902
10903as_nl='
10904'
10905export as_nl
10906# Printing a long string crashes Solaris 7 /usr/bin/printf.
10907as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10908as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10909as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10910# Prefer a ksh shell builtin over an external printf program on Solaris,
10911# but without wasting forks for bash or zsh.
10912if test -z "$BASH_VERSION$ZSH_VERSION" \
10913    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10914  as_echo='print -r --'
10915  as_echo_n='print -rn --'
10916elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10917  as_echo='printf %s\n'
10918  as_echo_n='printf %s'
10919else
10920  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10921    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10922    as_echo_n='/usr/ucb/echo -n'
10923  else
10924    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10925    as_echo_n_body='eval
10926      arg=$1;
10927      case $arg in #(
10928      *"$as_nl"*)
10929	expr "X$arg" : "X\\(.*\\)$as_nl";
10930	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10931      esac;
10932      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10933    '
10934    export as_echo_n_body
10935    as_echo_n='sh -c $as_echo_n_body as_echo'
10936  fi
10937  export as_echo_body
10938  as_echo='sh -c $as_echo_body as_echo'
10939fi
10940
10941# The user is always right.
10942if test "${PATH_SEPARATOR+set}" != set; then
10943  PATH_SEPARATOR=:
10944  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10945    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10946      PATH_SEPARATOR=';'
10947  }
10948fi
10949
10950
10951# IFS
10952# We need space, tab and new line, in precisely that order.  Quoting is
10953# there to prevent editors from complaining about space-tab.
10954# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10955# splitting by setting IFS to empty value.)
10956IFS=" ""	$as_nl"
10957
10958# Find who we are.  Look in the path if we contain no directory separator.
10959as_myself=
10960case $0 in #((
10961  *[\\/]* ) as_myself=$0 ;;
10962  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10963for as_dir in $PATH
10964do
10965  IFS=$as_save_IFS
10966  test -z "$as_dir" && as_dir=.
10967    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10968  done
10969IFS=$as_save_IFS
10970
10971     ;;
10972esac
10973# We did not find ourselves, most probably we were run as `sh COMMAND'
10974# in which case we are not to be found in the path.
10975if test "x$as_myself" = x; then
10976  as_myself=$0
10977fi
10978if test ! -f "$as_myself"; then
10979  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10980  exit 1
10981fi
10982
10983# Unset variables that we do not need and which cause bugs (e.g. in
10984# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
10985# suppresses any "Segmentation fault" message there.  '((' could
10986# trigger a bug in pdksh 5.2.14.
10987for as_var in BASH_ENV ENV MAIL MAILPATH
10988do eval test x\${$as_var+set} = xset \
10989  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10990done
10991PS1='$ '
10992PS2='> '
10993PS4='+ '
10994
10995# NLS nuisances.
10996LC_ALL=C
10997export LC_ALL
10998LANGUAGE=C
10999export LANGUAGE
11000
11001# CDPATH.
11002(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11003
11004
11005# as_fn_error STATUS ERROR [LINENO LOG_FD]
11006# ----------------------------------------
11007# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11008# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11009# script with STATUS, using 1 if that was 0.
11010as_fn_error ()
11011{
11012  as_status=$1; test $as_status -eq 0 && as_status=1
11013  if test "$4"; then
11014    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11015    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11016  fi
11017  $as_echo "$as_me: error: $2" >&2
11018  as_fn_exit $as_status
11019} # as_fn_error
11020
11021
11022# as_fn_set_status STATUS
11023# -----------------------
11024# Set $? to STATUS, without forking.
11025as_fn_set_status ()
11026{
11027  return $1
11028} # as_fn_set_status
11029
11030# as_fn_exit STATUS
11031# -----------------
11032# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11033as_fn_exit ()
11034{
11035  set +e
11036  as_fn_set_status $1
11037  exit $1
11038} # as_fn_exit
11039
11040# as_fn_unset VAR
11041# ---------------
11042# Portably unset VAR.
11043as_fn_unset ()
11044{
11045  { eval $1=; unset $1;}
11046}
11047as_unset=as_fn_unset
11048# as_fn_append VAR VALUE
11049# ----------------------
11050# Append the text in VALUE to the end of the definition contained in VAR. Take
11051# advantage of any shell optimizations that allow amortized linear growth over
11052# repeated appends, instead of the typical quadratic growth present in naive
11053# implementations.
11054if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11055  eval 'as_fn_append ()
11056  {
11057    eval $1+=\$2
11058  }'
11059else
11060  as_fn_append ()
11061  {
11062    eval $1=\$$1\$2
11063  }
11064fi # as_fn_append
11065
11066# as_fn_arith ARG...
11067# ------------------
11068# Perform arithmetic evaluation on the ARGs, and store the result in the
11069# global $as_val. Take advantage of shells that can avoid forks. The arguments
11070# must be portable across $(()) and expr.
11071if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11072  eval 'as_fn_arith ()
11073  {
11074    as_val=$(( $* ))
11075  }'
11076else
11077  as_fn_arith ()
11078  {
11079    as_val=`expr "$@" || test $? -eq 1`
11080  }
11081fi # as_fn_arith
11082
11083
11084if expr a : '\(a\)' >/dev/null 2>&1 &&
11085   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11086  as_expr=expr
11087else
11088  as_expr=false
11089fi
11090
11091if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11092  as_basename=basename
11093else
11094  as_basename=false
11095fi
11096
11097if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11098  as_dirname=dirname
11099else
11100  as_dirname=false
11101fi
11102
11103as_me=`$as_basename -- "$0" ||
11104$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11105	 X"$0" : 'X\(//\)$' \| \
11106	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11107$as_echo X/"$0" |
11108    sed '/^.*\/\([^/][^/]*\)\/*$/{
11109	    s//\1/
11110	    q
11111	  }
11112	  /^X\/\(\/\/\)$/{
11113	    s//\1/
11114	    q
11115	  }
11116	  /^X\/\(\/\).*/{
11117	    s//\1/
11118	    q
11119	  }
11120	  s/.*/./; q'`
11121
11122# Avoid depending upon Character Ranges.
11123as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11124as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11125as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11126as_cr_digits='0123456789'
11127as_cr_alnum=$as_cr_Letters$as_cr_digits
11128
11129ECHO_C= ECHO_N= ECHO_T=
11130case `echo -n x` in #(((((
11131-n*)
11132  case `echo 'xy\c'` in
11133  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11134  xy)  ECHO_C='\c';;
11135  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11136       ECHO_T='	';;
11137  esac;;
11138*)
11139  ECHO_N='-n';;
11140esac
11141
11142rm -f conf$$ conf$$.exe conf$$.file
11143if test -d conf$$.dir; then
11144  rm -f conf$$.dir/conf$$.file
11145else
11146  rm -f conf$$.dir
11147  mkdir conf$$.dir 2>/dev/null
11148fi
11149if (echo >conf$$.file) 2>/dev/null; then
11150  if ln -s conf$$.file conf$$ 2>/dev/null; then
11151    as_ln_s='ln -s'
11152    # ... but there are two gotchas:
11153    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11154    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11155    # In both cases, we have to default to `cp -p'.
11156    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11157      as_ln_s='cp -p'
11158  elif ln conf$$.file conf$$ 2>/dev/null; then
11159    as_ln_s=ln
11160  else
11161    as_ln_s='cp -p'
11162  fi
11163else
11164  as_ln_s='cp -p'
11165fi
11166rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11167rmdir conf$$.dir 2>/dev/null
11168
11169
11170# as_fn_mkdir_p
11171# -------------
11172# Create "$as_dir" as a directory, including parents if necessary.
11173as_fn_mkdir_p ()
11174{
11175
11176  case $as_dir in #(
11177  -*) as_dir=./$as_dir;;
11178  esac
11179  test -d "$as_dir" || eval $as_mkdir_p || {
11180    as_dirs=
11181    while :; do
11182      case $as_dir in #(
11183      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11184      *) as_qdir=$as_dir;;
11185      esac
11186      as_dirs="'$as_qdir' $as_dirs"
11187      as_dir=`$as_dirname -- "$as_dir" ||
11188$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11189	 X"$as_dir" : 'X\(//\)[^/]' \| \
11190	 X"$as_dir" : 'X\(//\)$' \| \
11191	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11192$as_echo X"$as_dir" |
11193    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11194	    s//\1/
11195	    q
11196	  }
11197	  /^X\(\/\/\)[^/].*/{
11198	    s//\1/
11199	    q
11200	  }
11201	  /^X\(\/\/\)$/{
11202	    s//\1/
11203	    q
11204	  }
11205	  /^X\(\/\).*/{
11206	    s//\1/
11207	    q
11208	  }
11209	  s/.*/./; q'`
11210      test -d "$as_dir" && break
11211    done
11212    test -z "$as_dirs" || eval "mkdir $as_dirs"
11213  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11214
11215
11216} # as_fn_mkdir_p
11217if mkdir -p . 2>/dev/null; then
11218  as_mkdir_p='mkdir -p "$as_dir"'
11219else
11220  test -d ./-p && rmdir ./-p
11221  as_mkdir_p=false
11222fi
11223
11224if test -x / >/dev/null 2>&1; then
11225  as_test_x='test -x'
11226else
11227  if ls -dL / >/dev/null 2>&1; then
11228    as_ls_L_option=L
11229  else
11230    as_ls_L_option=
11231  fi
11232  as_test_x='
11233    eval sh -c '\''
11234      if test -d "$1"; then
11235	test -d "$1/.";
11236      else
11237	case $1 in #(
11238	-*)set "./$1";;
11239	esac;
11240	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11241	???[sx]*):;;*)false;;esac;fi
11242    '\'' sh
11243  '
11244fi
11245as_executable_p=$as_test_x
11246
11247# Sed expression to map a string onto a valid CPP name.
11248as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11249
11250# Sed expression to map a string onto a valid variable name.
11251as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11252
11253
11254exec 6>&1
11255## ----------------------------------- ##
11256## Main body of $CONFIG_STATUS script. ##
11257## ----------------------------------- ##
11258_ASEOF
11259test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11260
11261cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11262# Save the log message, to keep $0 and so on meaningful, and to
11263# report actual input values of CONFIG_FILES etc. instead of their
11264# values after options handling.
11265ac_log="
11266This file was extended by xgc $as_me 1.0.4, which was
11267generated by GNU Autoconf 2.68.  Invocation command line was
11268
11269  CONFIG_FILES    = $CONFIG_FILES
11270  CONFIG_HEADERS  = $CONFIG_HEADERS
11271  CONFIG_LINKS    = $CONFIG_LINKS
11272  CONFIG_COMMANDS = $CONFIG_COMMANDS
11273  $ $0 $@
11274
11275on `(hostname || uname -n) 2>/dev/null | sed 1q`
11276"
11277
11278_ACEOF
11279
11280case $ac_config_files in *"
11281"*) set x $ac_config_files; shift; ac_config_files=$*;;
11282esac
11283
11284case $ac_config_headers in *"
11285"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11286esac
11287
11288
11289cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11290# Files that config.status was made for.
11291config_files="$ac_config_files"
11292config_headers="$ac_config_headers"
11293config_commands="$ac_config_commands"
11294
11295_ACEOF
11296
11297cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11298ac_cs_usage="\
11299\`$as_me' instantiates files and other configuration actions
11300from templates according to the current configuration.  Unless the files
11301and actions are specified as TAGs, all are instantiated by default.
11302
11303Usage: $0 [OPTION]... [TAG]...
11304
11305  -h, --help       print this help, then exit
11306  -V, --version    print version number and configuration settings, then exit
11307      --config     print configuration, then exit
11308  -q, --quiet, --silent
11309                   do not print progress messages
11310  -d, --debug      don't remove temporary files
11311      --recheck    update $as_me by reconfiguring in the same conditions
11312      --file=FILE[:TEMPLATE]
11313                   instantiate the configuration file FILE
11314      --header=FILE[:TEMPLATE]
11315                   instantiate the configuration header FILE
11316
11317Configuration files:
11318$config_files
11319
11320Configuration headers:
11321$config_headers
11322
11323Configuration commands:
11324$config_commands
11325
11326Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11327
11328_ACEOF
11329cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11330ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11331ac_cs_version="\\
11332xgc config.status 1.0.4
11333configured by $0, generated by GNU Autoconf 2.68,
11334  with options \\"\$ac_cs_config\\"
11335
11336Copyright (C) 2010 Free Software Foundation, Inc.
11337This config.status script is free software; the Free Software Foundation
11338gives unlimited permission to copy, distribute and modify it."
11339
11340ac_pwd='$ac_pwd'
11341srcdir='$srcdir'
11342INSTALL='$INSTALL'
11343MKDIR_P='$MKDIR_P'
11344AWK='$AWK'
11345test -n "\$AWK" || AWK=awk
11346_ACEOF
11347
11348cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11349# The default lists apply if the user does not specify any file.
11350ac_need_defaults=:
11351while test $# != 0
11352do
11353  case $1 in
11354  --*=?*)
11355    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11356    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11357    ac_shift=:
11358    ;;
11359  --*=)
11360    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11361    ac_optarg=
11362    ac_shift=:
11363    ;;
11364  *)
11365    ac_option=$1
11366    ac_optarg=$2
11367    ac_shift=shift
11368    ;;
11369  esac
11370
11371  case $ac_option in
11372  # Handling of the options.
11373  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11374    ac_cs_recheck=: ;;
11375  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11376    $as_echo "$ac_cs_version"; exit ;;
11377  --config | --confi | --conf | --con | --co | --c )
11378    $as_echo "$ac_cs_config"; exit ;;
11379  --debug | --debu | --deb | --de | --d | -d )
11380    debug=: ;;
11381  --file | --fil | --fi | --f )
11382    $ac_shift
11383    case $ac_optarg in
11384    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11385    '') as_fn_error $? "missing file argument" ;;
11386    esac
11387    as_fn_append CONFIG_FILES " '$ac_optarg'"
11388    ac_need_defaults=false;;
11389  --header | --heade | --head | --hea )
11390    $ac_shift
11391    case $ac_optarg in
11392    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11393    esac
11394    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11395    ac_need_defaults=false;;
11396  --he | --h)
11397    # Conflict between --help and --header
11398    as_fn_error $? "ambiguous option: \`$1'
11399Try \`$0 --help' for more information.";;
11400  --help | --hel | -h )
11401    $as_echo "$ac_cs_usage"; exit ;;
11402  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11403  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11404    ac_cs_silent=: ;;
11405
11406  # This is an error.
11407  -*) as_fn_error $? "unrecognized option: \`$1'
11408Try \`$0 --help' for more information." ;;
11409
11410  *) as_fn_append ac_config_targets " $1"
11411     ac_need_defaults=false ;;
11412
11413  esac
11414  shift
11415done
11416
11417ac_configure_extra_args=
11418
11419if $ac_cs_silent; then
11420  exec 6>/dev/null
11421  ac_configure_extra_args="$ac_configure_extra_args --silent"
11422fi
11423
11424_ACEOF
11425cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11426if \$ac_cs_recheck; then
11427  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11428  shift
11429  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11430  CONFIG_SHELL='$SHELL'
11431  export CONFIG_SHELL
11432  exec "\$@"
11433fi
11434
11435_ACEOF
11436cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11437exec 5>>config.log
11438{
11439  echo
11440  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11441## Running $as_me. ##
11442_ASBOX
11443  $as_echo "$ac_log"
11444} >&5
11445
11446_ACEOF
11447cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11448#
11449# INIT-COMMANDS
11450#
11451AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11452
11453_ACEOF
11454
11455cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11456
11457# Handling of arguments.
11458for ac_config_target in $ac_config_targets
11459do
11460  case $ac_config_target in
11461    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11462    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11463    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11464    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11465
11466  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11467  esac
11468done
11469
11470
11471# If the user did not use the arguments to specify the items to instantiate,
11472# then the envvar interface is used.  Set only those that are not.
11473# We use the long form for the default assignment because of an extremely
11474# bizarre bug on SunOS 4.1.3.
11475if $ac_need_defaults; then
11476  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11477  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11478  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11479fi
11480
11481# Have a temporary directory for convenience.  Make it in the build tree
11482# simply because there is no reason against having it here, and in addition,
11483# creating and moving files from /tmp can sometimes cause problems.
11484# Hook for its removal unless debugging.
11485# Note that there is a small window in which the directory will not be cleaned:
11486# after its creation but before its name has been assigned to `$tmp'.
11487$debug ||
11488{
11489  tmp= ac_tmp=
11490  trap 'exit_status=$?
11491  : "${ac_tmp:=$tmp}"
11492  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11493' 0
11494  trap 'as_fn_exit 1' 1 2 13 15
11495}
11496# Create a (secure) tmp directory for tmp files.
11497
11498{
11499  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11500  test -d "$tmp"
11501}  ||
11502{
11503  tmp=./conf$$-$RANDOM
11504  (umask 077 && mkdir "$tmp")
11505} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11506ac_tmp=$tmp
11507
11508# Set up the scripts for CONFIG_FILES section.
11509# No need to generate them if there are no CONFIG_FILES.
11510# This happens for instance with `./config.status config.h'.
11511if test -n "$CONFIG_FILES"; then
11512
11513
11514ac_cr=`echo X | tr X '\015'`
11515# On cygwin, bash can eat \r inside `` if the user requested igncr.
11516# But we know of no other shell where ac_cr would be empty at this
11517# point, so we can use a bashism as a fallback.
11518if test "x$ac_cr" = x; then
11519  eval ac_cr=\$\'\\r\'
11520fi
11521ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11522if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11523  ac_cs_awk_cr='\\r'
11524else
11525  ac_cs_awk_cr=$ac_cr
11526fi
11527
11528echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11529_ACEOF
11530
11531
11532{
11533  echo "cat >conf$$subs.awk <<_ACEOF" &&
11534  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11535  echo "_ACEOF"
11536} >conf$$subs.sh ||
11537  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11538ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11539ac_delim='%!_!# '
11540for ac_last_try in false false false false false :; do
11541  . ./conf$$subs.sh ||
11542    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11543
11544  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11545  if test $ac_delim_n = $ac_delim_num; then
11546    break
11547  elif $ac_last_try; then
11548    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11549  else
11550    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11551  fi
11552done
11553rm -f conf$$subs.sh
11554
11555cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11556cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11557_ACEOF
11558sed -n '
11559h
11560s/^/S["/; s/!.*/"]=/
11561p
11562g
11563s/^[^!]*!//
11564:repl
11565t repl
11566s/'"$ac_delim"'$//
11567t delim
11568:nl
11569h
11570s/\(.\{148\}\)..*/\1/
11571t more1
11572s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11573p
11574n
11575b repl
11576:more1
11577s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11578p
11579g
11580s/.\{148\}//
11581t nl
11582:delim
11583h
11584s/\(.\{148\}\)..*/\1/
11585t more2
11586s/["\\]/\\&/g; s/^/"/; s/$/"/
11587p
11588b
11589:more2
11590s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11591p
11592g
11593s/.\{148\}//
11594t delim
11595' <conf$$subs.awk | sed '
11596/^[^""]/{
11597  N
11598  s/\n//
11599}
11600' >>$CONFIG_STATUS || ac_write_fail=1
11601rm -f conf$$subs.awk
11602cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11603_ACAWK
11604cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11605  for (key in S) S_is_set[key] = 1
11606  FS = ""
11607
11608}
11609{
11610  line = $ 0
11611  nfields = split(line, field, "@")
11612  substed = 0
11613  len = length(field[1])
11614  for (i = 2; i < nfields; i++) {
11615    key = field[i]
11616    keylen = length(key)
11617    if (S_is_set[key]) {
11618      value = S[key]
11619      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11620      len += length(value) + length(field[++i])
11621      substed = 1
11622    } else
11623      len += 1 + keylen
11624  }
11625
11626  print line
11627}
11628
11629_ACAWK
11630_ACEOF
11631cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11632if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11633  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11634else
11635  cat
11636fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11637  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11638_ACEOF
11639
11640# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11641# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11642# trailing colons and then remove the whole line if VPATH becomes empty
11643# (actually we leave an empty line to preserve line numbers).
11644if test "x$srcdir" = x.; then
11645  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
11646h
11647s///
11648s/^/:/
11649s/[	 ]*$/:/
11650s/:\$(srcdir):/:/g
11651s/:\${srcdir}:/:/g
11652s/:@srcdir@:/:/g
11653s/^:*//
11654s/:*$//
11655x
11656s/\(=[	 ]*\).*/\1/
11657G
11658s/\n//
11659s/^[^=]*=[	 ]*$//
11660}'
11661fi
11662
11663cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11664fi # test -n "$CONFIG_FILES"
11665
11666# Set up the scripts for CONFIG_HEADERS section.
11667# No need to generate them if there are no CONFIG_HEADERS.
11668# This happens for instance with `./config.status Makefile'.
11669if test -n "$CONFIG_HEADERS"; then
11670cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11671BEGIN {
11672_ACEOF
11673
11674# Transform confdefs.h into an awk script `defines.awk', embedded as
11675# here-document in config.status, that substitutes the proper values into
11676# config.h.in to produce config.h.
11677
11678# Create a delimiter string that does not exist in confdefs.h, to ease
11679# handling of long lines.
11680ac_delim='%!_!# '
11681for ac_last_try in false false :; do
11682  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11683  if test -z "$ac_tt"; then
11684    break
11685  elif $ac_last_try; then
11686    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11687  else
11688    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11689  fi
11690done
11691
11692# For the awk script, D is an array of macro values keyed by name,
11693# likewise P contains macro parameters if any.  Preserve backslash
11694# newline sequences.
11695
11696ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11697sed -n '
11698s/.\{148\}/&'"$ac_delim"'/g
11699t rset
11700:rset
11701s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
11702t def
11703d
11704:def
11705s/\\$//
11706t bsnl
11707s/["\\]/\\&/g
11708s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11709D["\1"]=" \3"/p
11710s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
11711d
11712:bsnl
11713s/["\\]/\\&/g
11714s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11715D["\1"]=" \3\\\\\\n"\\/p
11716t cont
11717s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11718t cont
11719d
11720:cont
11721n
11722s/.\{148\}/&'"$ac_delim"'/g
11723t clear
11724:clear
11725s/\\$//
11726t bsnlc
11727s/["\\]/\\&/g; s/^/"/; s/$/"/p
11728d
11729:bsnlc
11730s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11731b cont
11732' <confdefs.h | sed '
11733s/'"$ac_delim"'/"\\\
11734"/g' >>$CONFIG_STATUS || ac_write_fail=1
11735
11736cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11737  for (key in D) D_is_set[key] = 1
11738  FS = ""
11739}
11740/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11741  line = \$ 0
11742  split(line, arg, " ")
11743  if (arg[1] == "#") {
11744    defundef = arg[2]
11745    mac1 = arg[3]
11746  } else {
11747    defundef = substr(arg[1], 2)
11748    mac1 = arg[2]
11749  }
11750  split(mac1, mac2, "(") #)
11751  macro = mac2[1]
11752  prefix = substr(line, 1, index(line, defundef) - 1)
11753  if (D_is_set[macro]) {
11754    # Preserve the white space surrounding the "#".
11755    print prefix "define", macro P[macro] D[macro]
11756    next
11757  } else {
11758    # Replace #undef with comments.  This is necessary, for example,
11759    # in the case of _POSIX_SOURCE, which is predefined and required
11760    # on some systems where configure will not decide to define it.
11761    if (defundef == "undef") {
11762      print "/*", prefix defundef, macro, "*/"
11763      next
11764    }
11765  }
11766}
11767{ print }
11768_ACAWK
11769_ACEOF
11770cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11771  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11772fi # test -n "$CONFIG_HEADERS"
11773
11774
11775eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
11776shift
11777for ac_tag
11778do
11779  case $ac_tag in
11780  :[FHLC]) ac_mode=$ac_tag; continue;;
11781  esac
11782  case $ac_mode$ac_tag in
11783  :[FHL]*:*);;
11784  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11785  :[FH]-) ac_tag=-:-;;
11786  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11787  esac
11788  ac_save_IFS=$IFS
11789  IFS=:
11790  set x $ac_tag
11791  IFS=$ac_save_IFS
11792  shift
11793  ac_file=$1
11794  shift
11795
11796  case $ac_mode in
11797  :L) ac_source=$1;;
11798  :[FH])
11799    ac_file_inputs=
11800    for ac_f
11801    do
11802      case $ac_f in
11803      -) ac_f="$ac_tmp/stdin";;
11804      *) # Look for the file first in the build tree, then in the source tree
11805	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
11806	 # because $ac_f cannot contain `:'.
11807	 test -f "$ac_f" ||
11808	   case $ac_f in
11809	   [\\/$]*) false;;
11810	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11811	   esac ||
11812	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11813      esac
11814      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11815      as_fn_append ac_file_inputs " '$ac_f'"
11816    done
11817
11818    # Let's still pretend it is `configure' which instantiates (i.e., don't
11819    # use $as_me), people would be surprised to read:
11820    #    /* config.h.  Generated by config.status.  */
11821    configure_input='Generated from '`
11822	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11823	`' by configure.'
11824    if test x"$ac_file" != x-; then
11825      configure_input="$ac_file.  $configure_input"
11826      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11827$as_echo "$as_me: creating $ac_file" >&6;}
11828    fi
11829    # Neutralize special characters interpreted by sed in replacement strings.
11830    case $configure_input in #(
11831    *\&* | *\|* | *\\* )
11832       ac_sed_conf_input=`$as_echo "$configure_input" |
11833       sed 's/[\\\\&|]/\\\\&/g'`;; #(
11834    *) ac_sed_conf_input=$configure_input;;
11835    esac
11836
11837    case $ac_tag in
11838    *:-:* | *:-) cat >"$ac_tmp/stdin" \
11839      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11840    esac
11841    ;;
11842  esac
11843
11844  ac_dir=`$as_dirname -- "$ac_file" ||
11845$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11846	 X"$ac_file" : 'X\(//\)[^/]' \| \
11847	 X"$ac_file" : 'X\(//\)$' \| \
11848	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11849$as_echo X"$ac_file" |
11850    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11851	    s//\1/
11852	    q
11853	  }
11854	  /^X\(\/\/\)[^/].*/{
11855	    s//\1/
11856	    q
11857	  }
11858	  /^X\(\/\/\)$/{
11859	    s//\1/
11860	    q
11861	  }
11862	  /^X\(\/\).*/{
11863	    s//\1/
11864	    q
11865	  }
11866	  s/.*/./; q'`
11867  as_dir="$ac_dir"; as_fn_mkdir_p
11868  ac_builddir=.
11869
11870case "$ac_dir" in
11871.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11872*)
11873  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11874  # A ".." for each directory in $ac_dir_suffix.
11875  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11876  case $ac_top_builddir_sub in
11877  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11878  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11879  esac ;;
11880esac
11881ac_abs_top_builddir=$ac_pwd
11882ac_abs_builddir=$ac_pwd$ac_dir_suffix
11883# for backward compatibility:
11884ac_top_builddir=$ac_top_build_prefix
11885
11886case $srcdir in
11887  .)  # We are building in place.
11888    ac_srcdir=.
11889    ac_top_srcdir=$ac_top_builddir_sub
11890    ac_abs_top_srcdir=$ac_pwd ;;
11891  [\\/]* | ?:[\\/]* )  # Absolute name.
11892    ac_srcdir=$srcdir$ac_dir_suffix;
11893    ac_top_srcdir=$srcdir
11894    ac_abs_top_srcdir=$srcdir ;;
11895  *) # Relative name.
11896    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11897    ac_top_srcdir=$ac_top_build_prefix$srcdir
11898    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11899esac
11900ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11901
11902
11903  case $ac_mode in
11904  :F)
11905  #
11906  # CONFIG_FILE
11907  #
11908
11909  case $INSTALL in
11910  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11911  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11912  esac
11913  ac_MKDIR_P=$MKDIR_P
11914  case $MKDIR_P in
11915  [\\/$]* | ?:[\\/]* ) ;;
11916  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11917  esac
11918_ACEOF
11919
11920cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11921# If the template does not know about datarootdir, expand it.
11922# FIXME: This hack should be removed a few years after 2.60.
11923ac_datarootdir_hack=; ac_datarootdir_seen=
11924ac_sed_dataroot='
11925/datarootdir/ {
11926  p
11927  q
11928}
11929/@datadir@/p
11930/@docdir@/p
11931/@infodir@/p
11932/@localedir@/p
11933/@mandir@/p'
11934case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11935*datarootdir*) ac_datarootdir_seen=yes;;
11936*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11937  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11938$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11939_ACEOF
11940cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11941  ac_datarootdir_hack='
11942  s&@datadir@&$datadir&g
11943  s&@docdir@&$docdir&g
11944  s&@infodir@&$infodir&g
11945  s&@localedir@&$localedir&g
11946  s&@mandir@&$mandir&g
11947  s&\\\${datarootdir}&$datarootdir&g' ;;
11948esac
11949_ACEOF
11950
11951# Neutralize VPATH when `$srcdir' = `.'.
11952# Shell code in configure.ac might set extrasub.
11953# FIXME: do we really want to maintain this feature?
11954cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11955ac_sed_extra="$ac_vpsub
11956$extrasub
11957_ACEOF
11958cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11959:t
11960/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11961s|@configure_input@|$ac_sed_conf_input|;t t
11962s&@top_builddir@&$ac_top_builddir_sub&;t t
11963s&@top_build_prefix@&$ac_top_build_prefix&;t t
11964s&@srcdir@&$ac_srcdir&;t t
11965s&@abs_srcdir@&$ac_abs_srcdir&;t t
11966s&@top_srcdir@&$ac_top_srcdir&;t t
11967s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11968s&@builddir@&$ac_builddir&;t t
11969s&@abs_builddir@&$ac_abs_builddir&;t t
11970s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11971s&@INSTALL@&$ac_INSTALL&;t t
11972s&@MKDIR_P@&$ac_MKDIR_P&;t t
11973$ac_datarootdir_hack
11974"
11975eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11976  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11977
11978test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11979  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11980  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
11981      "$ac_tmp/out"`; test -z "$ac_out"; } &&
11982  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11983which seems to be undefined.  Please make sure it is defined" >&5
11984$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11985which seems to be undefined.  Please make sure it is defined" >&2;}
11986
11987  rm -f "$ac_tmp/stdin"
11988  case $ac_file in
11989  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11990  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11991  esac \
11992  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11993 ;;
11994  :H)
11995  #
11996  # CONFIG_HEADER
11997  #
11998  if test x"$ac_file" != x-; then
11999    {
12000      $as_echo "/* $configure_input  */" \
12001      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12002    } >"$ac_tmp/config.h" \
12003      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12004    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12005      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12006$as_echo "$as_me: $ac_file is unchanged" >&6;}
12007    else
12008      rm -f "$ac_file"
12009      mv "$ac_tmp/config.h" "$ac_file" \
12010	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12011    fi
12012  else
12013    $as_echo "/* $configure_input  */" \
12014      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12015      || as_fn_error $? "could not create -" "$LINENO" 5
12016  fi
12017# Compute "$ac_file"'s index in $config_headers.
12018_am_arg="$ac_file"
12019_am_stamp_count=1
12020for _am_header in $config_headers :; do
12021  case $_am_header in
12022    $_am_arg | $_am_arg:* )
12023      break ;;
12024    * )
12025      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12026  esac
12027done
12028echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12029$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12030	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12031	 X"$_am_arg" : 'X\(//\)$' \| \
12032	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12033$as_echo X"$_am_arg" |
12034    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12035	    s//\1/
12036	    q
12037	  }
12038	  /^X\(\/\/\)[^/].*/{
12039	    s//\1/
12040	    q
12041	  }
12042	  /^X\(\/\/\)$/{
12043	    s//\1/
12044	    q
12045	  }
12046	  /^X\(\/\).*/{
12047	    s//\1/
12048	    q
12049	  }
12050	  s/.*/./; q'`/stamp-h$_am_stamp_count
12051 ;;
12052
12053  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12054$as_echo "$as_me: executing $ac_file commands" >&6;}
12055 ;;
12056  esac
12057
12058
12059  case $ac_file$ac_mode in
12060    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12061  # Autoconf 2.62 quotes --file arguments for eval, but not when files
12062  # are listed without --file.  Let's play safe and only enable the eval
12063  # if we detect the quoting.
12064  case $CONFIG_FILES in
12065  *\'*) eval set x "$CONFIG_FILES" ;;
12066  *)   set x $CONFIG_FILES ;;
12067  esac
12068  shift
12069  for mf
12070  do
12071    # Strip MF so we end up with the name of the file.
12072    mf=`echo "$mf" | sed -e 's/:.*$//'`
12073    # Check whether this is an Automake generated Makefile or not.
12074    # We used to match only the files named `Makefile.in', but
12075    # some people rename them; so instead we look at the file content.
12076    # Grep'ing the first line is not enough: some people post-process
12077    # each Makefile.in and add a new line on top of each file to say so.
12078    # Grep'ing the whole file is not good either: AIX grep has a line
12079    # limit of 2048, but all sed's we know have understand at least 4000.
12080    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12081      dirpart=`$as_dirname -- "$mf" ||
12082$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12083	 X"$mf" : 'X\(//\)[^/]' \| \
12084	 X"$mf" : 'X\(//\)$' \| \
12085	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12086$as_echo X"$mf" |
12087    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12088	    s//\1/
12089	    q
12090	  }
12091	  /^X\(\/\/\)[^/].*/{
12092	    s//\1/
12093	    q
12094	  }
12095	  /^X\(\/\/\)$/{
12096	    s//\1/
12097	    q
12098	  }
12099	  /^X\(\/\).*/{
12100	    s//\1/
12101	    q
12102	  }
12103	  s/.*/./; q'`
12104    else
12105      continue
12106    fi
12107    # Extract the definition of DEPDIR, am__include, and am__quote
12108    # from the Makefile without running `make'.
12109    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12110    test -z "$DEPDIR" && continue
12111    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12112    test -z "am__include" && continue
12113    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12114    # When using ansi2knr, U may be empty or an underscore; expand it
12115    U=`sed -n 's/^U = //p' < "$mf"`
12116    # Find all dependency output files, they are included files with
12117    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12118    # simplest approach to changing $(DEPDIR) to its actual value in the
12119    # expansion.
12120    for file in `sed -n "
12121      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12122	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12123      # Make sure the directory exists.
12124      test -f "$dirpart/$file" && continue
12125      fdir=`$as_dirname -- "$file" ||
12126$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12127	 X"$file" : 'X\(//\)[^/]' \| \
12128	 X"$file" : 'X\(//\)$' \| \
12129	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12130$as_echo X"$file" |
12131    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12132	    s//\1/
12133	    q
12134	  }
12135	  /^X\(\/\/\)[^/].*/{
12136	    s//\1/
12137	    q
12138	  }
12139	  /^X\(\/\/\)$/{
12140	    s//\1/
12141	    q
12142	  }
12143	  /^X\(\/\).*/{
12144	    s//\1/
12145	    q
12146	  }
12147	  s/.*/./; q'`
12148      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12149      # echo "creating $dirpart/$file"
12150      echo '# dummy' > "$dirpart/$file"
12151    done
12152  done
12153}
12154 ;;
12155
12156  esac
12157done # for ac_tag
12158
12159
12160as_fn_exit 0
12161_ACEOF
12162ac_clean_files=$ac_clean_files_save
12163
12164test $ac_write_fail = 0 ||
12165  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12166
12167
12168# configure is writing to config.log, and then calls config.status.
12169# config.status does its own redirection, appending to config.log.
12170# Unfortunately, on DOS this fails, as config.log is still kept open
12171# by configure, so config.status won't be able to write to it; its
12172# output is simply discarded.  So we exec the FD to /dev/null,
12173# effectively closing config.log, so it can be properly (re)opened and
12174# appended to by config.status.  When coming back to configure, we
12175# need to make the FD available again.
12176if test "$no_create" != yes; then
12177  ac_cs_success=:
12178  ac_config_status_args=
12179  test "$silent" = yes &&
12180    ac_config_status_args="$ac_config_status_args --quiet"
12181  exec 5>/dev/null
12182  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12183  exec 5>>config.log
12184  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12185  # would make configure fail if this is the last instruction.
12186  $ac_cs_success || as_fn_exit 1
12187fi
12188if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12189  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12190$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12191fi
12192
12193