configure revision 1114aea8
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for imake 1.0.5.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1"
178  if (eval "$as_required") 2>/dev/null; then :
179  as_have_required=yes
180else
181  as_have_required=no
182fi
183  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189do
190  IFS=$as_save_IFS
191  test -z "$as_dir" && as_dir=.
192  as_found=:
193  case $as_dir in #(
194	 /*)
195	   for as_base in sh bash ksh sh5; do
196	     # Try only shells that exist, to save several forks.
197	     as_shell=$as_dir/$as_base
198	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200  CONFIG_SHELL=$as_shell as_have_required=yes
201		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202  break 2
203fi
204fi
205	   done;;
206       esac
207  as_found=false
208done
209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211  CONFIG_SHELL=$SHELL as_have_required=yes
212fi; }
213IFS=$as_save_IFS
214
215
216      if test "x$CONFIG_SHELL" != x; then :
217  # We cannot yet assume a decent shell, so we have to provide a
218	# neutralization value for shells without unset; and this also
219	# works around shells that cannot unset nonexistent variables.
220	# Preserve -v and -x to the replacement shell.
221	BASH_ENV=/dev/null
222	ENV=/dev/null
223	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224	export CONFIG_SHELL
225	case $- in # ((((
226	  *v*x* | *x*v* ) as_opts=-vx ;;
227	  *v* ) as_opts=-v ;;
228	  *x* ) as_opts=-x ;;
229	  * ) as_opts= ;;
230	esac
231	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232fi
233
234    if test x$as_have_required = xno; then :
235  $as_echo "$0: This script requires a shell more modern than all"
236  $as_echo "$0: the shells that I found on your system."
237  if test x${ZSH_VERSION+set} = xset ; then
238    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240  else
241    $as_echo "$0: Please tell bug-autoconf@gnu.org and
242$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243$0: about your system, including any error possibly output
244$0: before this message. Then install a modern shell, or
245$0: manually run the script under such a shell if you do
246$0: have one."
247  fi
248  exit 1
249fi
250fi
251fi
252SHELL=${CONFIG_SHELL-/bin/sh}
253export SHELL
254# Unset more variables known to interfere with behavior of common tools.
255CLICOLOR_FORCE= GREP_OPTIONS=
256unset CLICOLOR_FORCE GREP_OPTIONS
257
258## --------------------- ##
259## M4sh Shell Functions. ##
260## --------------------- ##
261# as_fn_unset VAR
262# ---------------
263# Portably unset VAR.
264as_fn_unset ()
265{
266  { eval $1=; unset $1;}
267}
268as_unset=as_fn_unset
269
270# as_fn_set_status STATUS
271# -----------------------
272# Set $? to STATUS, without forking.
273as_fn_set_status ()
274{
275  return $1
276} # as_fn_set_status
277
278# as_fn_exit STATUS
279# -----------------
280# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281as_fn_exit ()
282{
283  set +e
284  as_fn_set_status $1
285  exit $1
286} # as_fn_exit
287
288# as_fn_mkdir_p
289# -------------
290# Create "$as_dir" as a directory, including parents if necessary.
291as_fn_mkdir_p ()
292{
293
294  case $as_dir in #(
295  -*) as_dir=./$as_dir;;
296  esac
297  test -d "$as_dir" || eval $as_mkdir_p || {
298    as_dirs=
299    while :; do
300      case $as_dir in #(
301      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302      *) as_qdir=$as_dir;;
303      esac
304      as_dirs="'$as_qdir' $as_dirs"
305      as_dir=`$as_dirname -- "$as_dir" ||
306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307	 X"$as_dir" : 'X\(//\)[^/]' \| \
308	 X"$as_dir" : 'X\(//\)$' \| \
309	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310$as_echo X"$as_dir" |
311    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312	    s//\1/
313	    q
314	  }
315	  /^X\(\/\/\)[^/].*/{
316	    s//\1/
317	    q
318	  }
319	  /^X\(\/\/\)$/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\).*/{
324	    s//\1/
325	    q
326	  }
327	  s/.*/./; q'`
328      test -d "$as_dir" && break
329    done
330    test -z "$as_dirs" || eval "mkdir $as_dirs"
331  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334} # as_fn_mkdir_p
335# as_fn_append VAR VALUE
336# ----------------------
337# Append the text in VALUE to the end of the definition contained in VAR. Take
338# advantage of any shell optimizations that allow amortized linear growth over
339# repeated appends, instead of the typical quadratic growth present in naive
340# implementations.
341if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342  eval 'as_fn_append ()
343  {
344    eval $1+=\$2
345  }'
346else
347  as_fn_append ()
348  {
349    eval $1=\$$1\$2
350  }
351fi # as_fn_append
352
353# as_fn_arith ARG...
354# ------------------
355# Perform arithmetic evaluation on the ARGs, and store the result in the
356# global $as_val. Take advantage of shells that can avoid forks. The arguments
357# must be portable across $(()) and expr.
358if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359  eval 'as_fn_arith ()
360  {
361    as_val=$(( $* ))
362  }'
363else
364  as_fn_arith ()
365  {
366    as_val=`expr "$@" || test $? -eq 1`
367  }
368fi # as_fn_arith
369
370
371# as_fn_error STATUS ERROR [LINENO LOG_FD]
372# ----------------------------------------
373# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375# script with STATUS, using 1 if that was 0.
376as_fn_error ()
377{
378  as_status=$1; test $as_status -eq 0 && as_status=1
379  if test "$4"; then
380    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382  fi
383  $as_echo "$as_me: error: $2" >&2
384  as_fn_exit $as_status
385} # as_fn_error
386
387if expr a : '\(a\)' >/dev/null 2>&1 &&
388   test "X`expr 00001 : '.*\(...\)'`" = X001; then
389  as_expr=expr
390else
391  as_expr=false
392fi
393
394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395  as_basename=basename
396else
397  as_basename=false
398fi
399
400if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401  as_dirname=dirname
402else
403  as_dirname=false
404fi
405
406as_me=`$as_basename -- "$0" ||
407$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408	 X"$0" : 'X\(//\)$' \| \
409	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410$as_echo X/"$0" |
411    sed '/^.*\/\([^/][^/]*\)\/*$/{
412	    s//\1/
413	    q
414	  }
415	  /^X\/\(\/\/\)$/{
416	    s//\1/
417	    q
418	  }
419	  /^X\/\(\/\).*/{
420	    s//\1/
421	    q
422	  }
423	  s/.*/./; q'`
424
425# Avoid depending upon Character Ranges.
426as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429as_cr_digits='0123456789'
430as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433  as_lineno_1=$LINENO as_lineno_1a=$LINENO
434  as_lineno_2=$LINENO as_lineno_2a=$LINENO
435  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
438  sed -n '
439    p
440    /[$]LINENO/=
441  ' <$as_myself |
442    sed '
443      s/[$]LINENO.*/&-/
444      t lineno
445      b
446      :lineno
447      N
448      :loop
449      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450      t loop
451      s/-\n.*//
452    ' >$as_me.lineno &&
453  chmod +x "$as_me.lineno" ||
454    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456  # Don't try to exec as it changes $[0], causing all sort of problems
457  # (the dirname of $[0] is not the place where we might find the
458  # original and so on.  Autoconf is especially sensitive to this).
459  . "./$as_me.lineno"
460  # Exit status is that of the last command.
461  exit
462}
463
464ECHO_C= ECHO_N= ECHO_T=
465case `echo -n x` in #(((((
466-n*)
467  case `echo 'xy\c'` in
468  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
469  xy)  ECHO_C='\c';;
470  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
471       ECHO_T='	';;
472  esac;;
473*)
474  ECHO_N='-n';;
475esac
476
477rm -f conf$$ conf$$.exe conf$$.file
478if test -d conf$$.dir; then
479  rm -f conf$$.dir/conf$$.file
480else
481  rm -f conf$$.dir
482  mkdir conf$$.dir 2>/dev/null
483fi
484if (echo >conf$$.file) 2>/dev/null; then
485  if ln -s conf$$.file conf$$ 2>/dev/null; then
486    as_ln_s='ln -s'
487    # ... but there are two gotchas:
488    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490    # In both cases, we have to default to `cp -p'.
491    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492      as_ln_s='cp -p'
493  elif ln conf$$.file conf$$ 2>/dev/null; then
494    as_ln_s=ln
495  else
496    as_ln_s='cp -p'
497  fi
498else
499  as_ln_s='cp -p'
500fi
501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502rmdir conf$$.dir 2>/dev/null
503
504if mkdir -p . 2>/dev/null; then
505  as_mkdir_p='mkdir -p "$as_dir"'
506else
507  test -d ./-p && rmdir ./-p
508  as_mkdir_p=false
509fi
510
511if test -x / >/dev/null 2>&1; then
512  as_test_x='test -x'
513else
514  if ls -dL / >/dev/null 2>&1; then
515    as_ls_L_option=L
516  else
517    as_ls_L_option=
518  fi
519  as_test_x='
520    eval sh -c '\''
521      if test -d "$1"; then
522	test -d "$1/.";
523      else
524	case $1 in #(
525	-*)set "./$1";;
526	esac;
527	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528	???[sx]*):;;*)false;;esac;fi
529    '\'' sh
530  '
531fi
532as_executable_p=$as_test_x
533
534# Sed expression to map a string onto a valid CPP name.
535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537# Sed expression to map a string onto a valid variable name.
538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540
541test -n "$DJDIR" || exec 7<&0 </dev/null
542exec 6>&1
543
544# Name of the host.
545# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546# so uname gets run too.
547ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548
549#
550# Initializations.
551#
552ac_default_prefix=/usr/local
553ac_clean_files=
554ac_config_libobj_dir=.
555LIBOBJS=
556cross_compiling=no
557subdirs=
558MFLAGS=
559MAKEFLAGS=
560
561# Identity of this package.
562PACKAGE_NAME='imake'
563PACKAGE_TARNAME='imake'
564PACKAGE_VERSION='1.0.5'
565PACKAGE_STRING='imake 1.0.5'
566PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567PACKAGE_URL=''
568
569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
572#ifdef HAVE_SYS_TYPES_H
573# include <sys/types.h>
574#endif
575#ifdef HAVE_SYS_STAT_H
576# include <sys/stat.h>
577#endif
578#ifdef STDC_HEADERS
579# include <stdlib.h>
580# include <stddef.h>
581#else
582# ifdef HAVE_STDLIB_H
583#  include <stdlib.h>
584# endif
585#endif
586#ifdef HAVE_STRING_H
587# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588#  include <memory.h>
589# endif
590# include <string.h>
591#endif
592#ifdef HAVE_STRINGS_H
593# include <strings.h>
594#endif
595#ifdef HAVE_INTTYPES_H
596# include <inttypes.h>
597#endif
598#ifdef HAVE_STDINT_H
599# include <stdint.h>
600#endif
601#ifdef HAVE_UNISTD_H
602# include <unistd.h>
603#endif"
604
605ac_subst_vars='am__EXEEXT_FALSE
606am__EXEEXT_TRUE
607LTLIBOBJS
608LIBOBJS
609XPROTO_LIBS
610XPROTO_CFLAGS
611BUILD_MKHTMLINDEX_FALSE
612BUILD_MKHTMLINDEX_TRUE
613BUILD_CLEANLINKS_FALSE
614BUILD_CLEANLINKS_TRUE
615BUILD_MKDIRHIER_FALSE
616BUILD_MKDIRHIER_TRUE
617BUILD_MERGELIB_FALSE
618BUILD_MERGELIB_TRUE
619BUILD_CCMAKEDEP_FALSE
620BUILD_CCMAKEDEP_TRUE
621BUILD_XMKMF_FALSE
622BUILD_XMKMF_TRUE
623BUILD_MAKEG_FALSE
624BUILD_MAKEG_TRUE
625BUILD_REVPATH_FALSE
626BUILD_REVPATH_TRUE
627RANLIB
628ARCMD
629PREPROCESSCMD_MKDEPEND
630XCONFDIR
631HAS_PERL_FALSE
632HAS_PERL_TRUE
633HAS_PERL
634CPP_PROGRAM
635RAWCPPFLAGS
636RAWCPP
637AM_BACKSLASH
638AM_DEFAULT_VERBOSITY
639MAN_SUBSTS
640XORG_MAN_PAGE
641ADMIN_MAN_DIR
642DRIVER_MAN_DIR
643MISC_MAN_DIR
644FILE_MAN_DIR
645LIB_MAN_DIR
646APP_MAN_DIR
647ADMIN_MAN_SUFFIX
648DRIVER_MAN_SUFFIX
649MISC_MAN_SUFFIX
650FILE_MAN_SUFFIX
651LIB_MAN_SUFFIX
652APP_MAN_SUFFIX
653SED
654host_os
655host_vendor
656host_cpu
657host
658build_os
659build_vendor
660build_cpu
661build
662INSTALL_CMD
663PKG_CONFIG
664CHANGELOG_CMD
665STRICT_CFLAGS
666CWARNFLAGS
667BASE_CFLAGS
668EGREP
669GREP
670CPP
671am__fastdepCC_FALSE
672am__fastdepCC_TRUE
673CCDEPMODE
674AMDEPBACKSLASH
675AMDEP_FALSE
676AMDEP_TRUE
677am__quote
678am__include
679DEPDIR
680OBJEXT
681EXEEXT
682ac_ct_CC
683CPPFLAGS
684LDFLAGS
685CFLAGS
686CC
687MAINT
688MAINTAINER_MODE_FALSE
689MAINTAINER_MODE_TRUE
690am__untar
691am__tar
692AMTAR
693am__leading_dot
694SET_MAKE
695AWK
696mkdir_p
697MKDIR_P
698INSTALL_STRIP_PROGRAM
699STRIP
700install_sh
701MAKEINFO
702AUTOHEADER
703AUTOMAKE
704AUTOCONF
705ACLOCAL
706VERSION
707PACKAGE
708CYGPATH_W
709am__isrc
710INSTALL_DATA
711INSTALL_SCRIPT
712INSTALL_PROGRAM
713target_alias
714host_alias
715build_alias
716LIBS
717ECHO_T
718ECHO_N
719ECHO_C
720DEFS
721mandir
722localedir
723libdir
724psdir
725pdfdir
726dvidir
727htmldir
728infodir
729docdir
730oldincludedir
731includedir
732localstatedir
733sharedstatedir
734sysconfdir
735datadir
736datarootdir
737libexecdir
738sbindir
739bindir
740program_transform_name
741prefix
742exec_prefix
743PACKAGE_URL
744PACKAGE_BUGREPORT
745PACKAGE_STRING
746PACKAGE_VERSION
747PACKAGE_TARNAME
748PACKAGE_NAME
749PATH_SEPARATOR
750SHELL'
751ac_subst_files=''
752ac_user_opts='
753enable_option_checking
754enable_maintainer_mode
755enable_dependency_tracking
756enable_selective_werror
757enable_strict_compilation
758enable_silent_rules
759with_config_dir
760with_script_preproc_cmd
761with_create_lib_cmd
762with_clean_lib_cmd
763enable_revpath
764enable_makeg
765enable_xmkmf
766enable_ccmakedep
767enable_mergelib
768enable_mkdirhier
769enable_cleanlinks
770enable_mkhtmlindex
771'
772      ac_precious_vars='build_alias
773host_alias
774target_alias
775CC
776CFLAGS
777LDFLAGS
778LIBS
779CPPFLAGS
780CPP
781PKG_CONFIG
782XPROTO_CFLAGS
783XPROTO_LIBS'
784
785
786# Initialize some variables set by options.
787ac_init_help=
788ac_init_version=false
789ac_unrecognized_opts=
790ac_unrecognized_sep=
791# The variables have the same names as the options, with
792# dashes changed to underlines.
793cache_file=/dev/null
794exec_prefix=NONE
795no_create=
796no_recursion=
797prefix=NONE
798program_prefix=NONE
799program_suffix=NONE
800program_transform_name=s,x,x,
801silent=
802site=
803srcdir=
804verbose=
805x_includes=NONE
806x_libraries=NONE
807
808# Installation directory options.
809# These are left unexpanded so users can "make install exec_prefix=/foo"
810# and all the variables that are supposed to be based on exec_prefix
811# by default will actually change.
812# Use braces instead of parens because sh, perl, etc. also accept them.
813# (The list follows the same order as the GNU Coding Standards.)
814bindir='${exec_prefix}/bin'
815sbindir='${exec_prefix}/sbin'
816libexecdir='${exec_prefix}/libexec'
817datarootdir='${prefix}/share'
818datadir='${datarootdir}'
819sysconfdir='${prefix}/etc'
820sharedstatedir='${prefix}/com'
821localstatedir='${prefix}/var'
822includedir='${prefix}/include'
823oldincludedir='/usr/include'
824docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
825infodir='${datarootdir}/info'
826htmldir='${docdir}'
827dvidir='${docdir}'
828pdfdir='${docdir}'
829psdir='${docdir}'
830libdir='${exec_prefix}/lib'
831localedir='${datarootdir}/locale'
832mandir='${datarootdir}/man'
833
834ac_prev=
835ac_dashdash=
836for ac_option
837do
838  # If the previous option needs an argument, assign it.
839  if test -n "$ac_prev"; then
840    eval $ac_prev=\$ac_option
841    ac_prev=
842    continue
843  fi
844
845  case $ac_option in
846  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
847  *=)   ac_optarg= ;;
848  *)    ac_optarg=yes ;;
849  esac
850
851  # Accept the important Cygnus configure options, so we can diagnose typos.
852
853  case $ac_dashdash$ac_option in
854  --)
855    ac_dashdash=yes ;;
856
857  -bindir | --bindir | --bindi | --bind | --bin | --bi)
858    ac_prev=bindir ;;
859  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
860    bindir=$ac_optarg ;;
861
862  -build | --build | --buil | --bui | --bu)
863    ac_prev=build_alias ;;
864  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
865    build_alias=$ac_optarg ;;
866
867  -cache-file | --cache-file | --cache-fil | --cache-fi \
868  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
869    ac_prev=cache_file ;;
870  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
871  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
872    cache_file=$ac_optarg ;;
873
874  --config-cache | -C)
875    cache_file=config.cache ;;
876
877  -datadir | --datadir | --datadi | --datad)
878    ac_prev=datadir ;;
879  -datadir=* | --datadir=* | --datadi=* | --datad=*)
880    datadir=$ac_optarg ;;
881
882  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
883  | --dataroo | --dataro | --datar)
884    ac_prev=datarootdir ;;
885  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
886  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
887    datarootdir=$ac_optarg ;;
888
889  -disable-* | --disable-*)
890    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
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--disable-$ac_useropt_orig"
901	 ac_unrecognized_sep=', ';;
902    esac
903    eval enable_$ac_useropt=no ;;
904
905  -docdir | --docdir | --docdi | --doc | --do)
906    ac_prev=docdir ;;
907  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
908    docdir=$ac_optarg ;;
909
910  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911    ac_prev=dvidir ;;
912  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
913    dvidir=$ac_optarg ;;
914
915  -enable-* | --enable-*)
916    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
917    # Reject names that are not valid shell variable names.
918    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919      as_fn_error $? "invalid feature name: $ac_useropt"
920    ac_useropt_orig=$ac_useropt
921    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922    case $ac_user_opts in
923      *"
924"enable_$ac_useropt"
925"*) ;;
926      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
927	 ac_unrecognized_sep=', ';;
928    esac
929    eval enable_$ac_useropt=\$ac_optarg ;;
930
931  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
932  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
933  | --exec | --exe | --ex)
934    ac_prev=exec_prefix ;;
935  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
936  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
937  | --exec=* | --exe=* | --ex=*)
938    exec_prefix=$ac_optarg ;;
939
940  -gas | --gas | --ga | --g)
941    # Obsolete; use --with-gas.
942    with_gas=yes ;;
943
944  -help | --help | --hel | --he | -h)
945    ac_init_help=long ;;
946  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
947    ac_init_help=recursive ;;
948  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
949    ac_init_help=short ;;
950
951  -host | --host | --hos | --ho)
952    ac_prev=host_alias ;;
953  -host=* | --host=* | --hos=* | --ho=*)
954    host_alias=$ac_optarg ;;
955
956  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
957    ac_prev=htmldir ;;
958  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
959  | --ht=*)
960    htmldir=$ac_optarg ;;
961
962  -includedir | --includedir | --includedi | --included | --include \
963  | --includ | --inclu | --incl | --inc)
964    ac_prev=includedir ;;
965  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
966  | --includ=* | --inclu=* | --incl=* | --inc=*)
967    includedir=$ac_optarg ;;
968
969  -infodir | --infodir | --infodi | --infod | --info | --inf)
970    ac_prev=infodir ;;
971  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
972    infodir=$ac_optarg ;;
973
974  -libdir | --libdir | --libdi | --libd)
975    ac_prev=libdir ;;
976  -libdir=* | --libdir=* | --libdi=* | --libd=*)
977    libdir=$ac_optarg ;;
978
979  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
980  | --libexe | --libex | --libe)
981    ac_prev=libexecdir ;;
982  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
983  | --libexe=* | --libex=* | --libe=*)
984    libexecdir=$ac_optarg ;;
985
986  -localedir | --localedir | --localedi | --localed | --locale)
987    ac_prev=localedir ;;
988  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
989    localedir=$ac_optarg ;;
990
991  -localstatedir | --localstatedir | --localstatedi | --localstated \
992  | --localstate | --localstat | --localsta | --localst | --locals)
993    ac_prev=localstatedir ;;
994  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
995  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
996    localstatedir=$ac_optarg ;;
997
998  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
999    ac_prev=mandir ;;
1000  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1001    mandir=$ac_optarg ;;
1002
1003  -nfp | --nfp | --nf)
1004    # Obsolete; use --without-fp.
1005    with_fp=no ;;
1006
1007  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1008  | --no-cr | --no-c | -n)
1009    no_create=yes ;;
1010
1011  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013    no_recursion=yes ;;
1014
1015  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1016  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1017  | --oldin | --oldi | --old | --ol | --o)
1018    ac_prev=oldincludedir ;;
1019  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1020  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1021  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1022    oldincludedir=$ac_optarg ;;
1023
1024  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1025    ac_prev=prefix ;;
1026  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1027    prefix=$ac_optarg ;;
1028
1029  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1030  | --program-pre | --program-pr | --program-p)
1031    ac_prev=program_prefix ;;
1032  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1033  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1034    program_prefix=$ac_optarg ;;
1035
1036  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1037  | --program-suf | --program-su | --program-s)
1038    ac_prev=program_suffix ;;
1039  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1040  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1041    program_suffix=$ac_optarg ;;
1042
1043  -program-transform-name | --program-transform-name \
1044  | --program-transform-nam | --program-transform-na \
1045  | --program-transform-n | --program-transform- \
1046  | --program-transform | --program-transfor \
1047  | --program-transfo | --program-transf \
1048  | --program-trans | --program-tran \
1049  | --progr-tra | --program-tr | --program-t)
1050    ac_prev=program_transform_name ;;
1051  -program-transform-name=* | --program-transform-name=* \
1052  | --program-transform-nam=* | --program-transform-na=* \
1053  | --program-transform-n=* | --program-transform-=* \
1054  | --program-transform=* | --program-transfor=* \
1055  | --program-transfo=* | --program-transf=* \
1056  | --program-trans=* | --program-tran=* \
1057  | --progr-tra=* | --program-tr=* | --program-t=*)
1058    program_transform_name=$ac_optarg ;;
1059
1060  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1061    ac_prev=pdfdir ;;
1062  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1063    pdfdir=$ac_optarg ;;
1064
1065  -psdir | --psdir | --psdi | --psd | --ps)
1066    ac_prev=psdir ;;
1067  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1068    psdir=$ac_optarg ;;
1069
1070  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071  | -silent | --silent | --silen | --sile | --sil)
1072    silent=yes ;;
1073
1074  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075    ac_prev=sbindir ;;
1076  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077  | --sbi=* | --sb=*)
1078    sbindir=$ac_optarg ;;
1079
1080  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082  | --sharedst | --shareds | --shared | --share | --shar \
1083  | --sha | --sh)
1084    ac_prev=sharedstatedir ;;
1085  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088  | --sha=* | --sh=*)
1089    sharedstatedir=$ac_optarg ;;
1090
1091  -site | --site | --sit)
1092    ac_prev=site ;;
1093  -site=* | --site=* | --sit=*)
1094    site=$ac_optarg ;;
1095
1096  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097    ac_prev=srcdir ;;
1098  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1099    srcdir=$ac_optarg ;;
1100
1101  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102  | --syscon | --sysco | --sysc | --sys | --sy)
1103    ac_prev=sysconfdir ;;
1104  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1106    sysconfdir=$ac_optarg ;;
1107
1108  -target | --target | --targe | --targ | --tar | --ta | --t)
1109    ac_prev=target_alias ;;
1110  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1111    target_alias=$ac_optarg ;;
1112
1113  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1114    verbose=yes ;;
1115
1116  -version | --version | --versio | --versi | --vers | -V)
1117    ac_init_version=: ;;
1118
1119  -with-* | --with-*)
1120    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1121    # Reject names that are not valid shell variable names.
1122    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123      as_fn_error $? "invalid package name: $ac_useropt"
1124    ac_useropt_orig=$ac_useropt
1125    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126    case $ac_user_opts in
1127      *"
1128"with_$ac_useropt"
1129"*) ;;
1130      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1131	 ac_unrecognized_sep=', ';;
1132    esac
1133    eval with_$ac_useropt=\$ac_optarg ;;
1134
1135  -without-* | --without-*)
1136    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1137    # Reject names that are not valid shell variable names.
1138    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139      as_fn_error $? "invalid package name: $ac_useropt"
1140    ac_useropt_orig=$ac_useropt
1141    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142    case $ac_user_opts in
1143      *"
1144"with_$ac_useropt"
1145"*) ;;
1146      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1147	 ac_unrecognized_sep=', ';;
1148    esac
1149    eval with_$ac_useropt=no ;;
1150
1151  --x)
1152    # Obsolete; use --with-x.
1153    with_x=yes ;;
1154
1155  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156  | --x-incl | --x-inc | --x-in | --x-i)
1157    ac_prev=x_includes ;;
1158  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160    x_includes=$ac_optarg ;;
1161
1162  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164    ac_prev=x_libraries ;;
1165  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167    x_libraries=$ac_optarg ;;
1168
1169  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1170Try \`$0 --help' for more information"
1171    ;;
1172
1173  *=*)
1174    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1175    # Reject names that are not valid shell variable names.
1176    case $ac_envvar in #(
1177      '' | [0-9]* | *[!_$as_cr_alnum]* )
1178      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1179    esac
1180    eval $ac_envvar=\$ac_optarg
1181    export $ac_envvar ;;
1182
1183  *)
1184    # FIXME: should be removed in autoconf 3.0.
1185    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1186    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1188    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1189    ;;
1190
1191  esac
1192done
1193
1194if test -n "$ac_prev"; then
1195  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1196  as_fn_error $? "missing argument to $ac_option"
1197fi
1198
1199if test -n "$ac_unrecognized_opts"; then
1200  case $enable_option_checking in
1201    no) ;;
1202    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1203    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1204  esac
1205fi
1206
1207# Check all directory arguments for consistency.
1208for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209		datadir sysconfdir sharedstatedir localstatedir includedir \
1210		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211		libdir localedir mandir
1212do
1213  eval ac_val=\$$ac_var
1214  # Remove trailing slashes.
1215  case $ac_val in
1216    */ )
1217      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1218      eval $ac_var=\$ac_val;;
1219  esac
1220  # Be sure to have absolute directory names.
1221  case $ac_val in
1222    [\\/$]* | ?:[\\/]* )  continue;;
1223    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1224  esac
1225  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1226done
1227
1228# There might be people who depend on the old broken behavior: `$host'
1229# used to hold the argument of --host etc.
1230# FIXME: To remove some day.
1231build=$build_alias
1232host=$host_alias
1233target=$target_alias
1234
1235# FIXME: To remove some day.
1236if test "x$host_alias" != x; then
1237  if test "x$build_alias" = x; then
1238    cross_compiling=maybe
1239    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1240    If a cross compiler is detected then cross compile mode will be used" >&2
1241  elif test "x$build_alias" != "x$host_alias"; then
1242    cross_compiling=yes
1243  fi
1244fi
1245
1246ac_tool_prefix=
1247test -n "$host_alias" && ac_tool_prefix=$host_alias-
1248
1249test "$silent" = yes && exec 6>/dev/null
1250
1251
1252ac_pwd=`pwd` && test -n "$ac_pwd" &&
1253ac_ls_di=`ls -di .` &&
1254ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1255  as_fn_error $? "working directory cannot be determined"
1256test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1257  as_fn_error $? "pwd does not report name of working directory"
1258
1259
1260# Find the source files, if location was not specified.
1261if test -z "$srcdir"; then
1262  ac_srcdir_defaulted=yes
1263  # Try the directory containing this script, then the parent directory.
1264  ac_confdir=`$as_dirname -- "$as_myself" ||
1265$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1266	 X"$as_myself" : 'X\(//\)[^/]' \| \
1267	 X"$as_myself" : 'X\(//\)$' \| \
1268	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1269$as_echo X"$as_myself" |
1270    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1271	    s//\1/
1272	    q
1273	  }
1274	  /^X\(\/\/\)[^/].*/{
1275	    s//\1/
1276	    q
1277	  }
1278	  /^X\(\/\/\)$/{
1279	    s//\1/
1280	    q
1281	  }
1282	  /^X\(\/\).*/{
1283	    s//\1/
1284	    q
1285	  }
1286	  s/.*/./; q'`
1287  srcdir=$ac_confdir
1288  if test ! -r "$srcdir/$ac_unique_file"; then
1289    srcdir=..
1290  fi
1291else
1292  ac_srcdir_defaulted=no
1293fi
1294if test ! -r "$srcdir/$ac_unique_file"; then
1295  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1296  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1297fi
1298ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1299ac_abs_confdir=`(
1300	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1301	pwd)`
1302# When building in place, set srcdir=.
1303if test "$ac_abs_confdir" = "$ac_pwd"; then
1304  srcdir=.
1305fi
1306# Remove unnecessary trailing slashes from srcdir.
1307# Double slashes in file names in object file debugging info
1308# mess up M-x gdb in Emacs.
1309case $srcdir in
1310*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1311esac
1312for ac_var in $ac_precious_vars; do
1313  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1314  eval ac_env_${ac_var}_value=\$${ac_var}
1315  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1316  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1317done
1318
1319#
1320# Report the --help message.
1321#
1322if test "$ac_init_help" = "long"; then
1323  # Omit some internal or obsolete options to make the list less imposing.
1324  # This message is too long to be a string in the A/UX 3.1 sh.
1325  cat <<_ACEOF
1326\`configure' configures imake 1.0.5 to adapt to many kinds of systems.
1327
1328Usage: $0 [OPTION]... [VAR=VALUE]...
1329
1330To assign environment variables (e.g., CC, CFLAGS...), specify them as
1331VAR=VALUE.  See below for descriptions of some of the useful variables.
1332
1333Defaults for the options are specified in brackets.
1334
1335Configuration:
1336  -h, --help              display this help and exit
1337      --help=short        display options specific to this package
1338      --help=recursive    display the short help of all the included packages
1339  -V, --version           display version information and exit
1340  -q, --quiet, --silent   do not print \`checking ...' messages
1341      --cache-file=FILE   cache test results in FILE [disabled]
1342  -C, --config-cache      alias for \`--cache-file=config.cache'
1343  -n, --no-create         do not create output files
1344      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1345
1346Installation directories:
1347  --prefix=PREFIX         install architecture-independent files in PREFIX
1348                          [$ac_default_prefix]
1349  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1350                          [PREFIX]
1351
1352By default, \`make install' will install all the files in
1353\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1354an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1355for instance \`--prefix=\$HOME'.
1356
1357For better control, use the options below.
1358
1359Fine tuning of the installation directories:
1360  --bindir=DIR            user executables [EPREFIX/bin]
1361  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1362  --libexecdir=DIR        program executables [EPREFIX/libexec]
1363  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1364  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1365  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1366  --libdir=DIR            object code libraries [EPREFIX/lib]
1367  --includedir=DIR        C header files [PREFIX/include]
1368  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1369  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1370  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1371  --infodir=DIR           info documentation [DATAROOTDIR/info]
1372  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1373  --mandir=DIR            man documentation [DATAROOTDIR/man]
1374  --docdir=DIR            documentation root [DATAROOTDIR/doc/imake]
1375  --htmldir=DIR           html documentation [DOCDIR]
1376  --dvidir=DIR            dvi documentation [DOCDIR]
1377  --pdfdir=DIR            pdf documentation [DOCDIR]
1378  --psdir=DIR             ps documentation [DOCDIR]
1379_ACEOF
1380
1381  cat <<\_ACEOF
1382
1383Program names:
1384  --program-prefix=PREFIX            prepend PREFIX to installed program names
1385  --program-suffix=SUFFIX            append SUFFIX to installed program names
1386  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1387
1388System types:
1389  --build=BUILD     configure for building on BUILD [guessed]
1390  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1391_ACEOF
1392fi
1393
1394if test -n "$ac_init_help"; then
1395  case $ac_init_help in
1396     short | recursive ) echo "Configuration of imake 1.0.5:";;
1397   esac
1398  cat <<\_ACEOF
1399
1400Optional Features:
1401  --disable-option-checking  ignore unrecognized --enable/--with options
1402  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1403  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1404  --enable-maintainer-mode  enable make rules and dependencies not useful
1405			  (and sometimes confusing) to the casual installer
1406  --disable-dependency-tracking  speeds up one-time build
1407  --enable-dependency-tracking   do not reject slow dependency extractors
1408  --disable-selective-werror
1409                          Turn off selective compiler errors. (default:
1410                          enabled)
1411  --enable-strict-compilation
1412                          Enable all warnings from compiler and make them
1413                          errors (default: disabled)
1414  --enable-silent-rules          less verbose build output (undo: `make V=1')
1415  --disable-silent-rules         verbose build output (undo: `make V=0')
1416  --disable-revpath       Build revpath (default: enabled)
1417  --disable-makeg         Build makeg (default: enabled)
1418  --disable-xmkmf         Build xmkmf (default: enabled)
1419  --disable-ccmakedep     Build ccmakedep (default: enabled)
1420  --disable-mergelib      Build mergelib (default: enabled)
1421  --disable-mkdirhier     Build mkdirhier (default: enabled)
1422  --disable-cleanlinks    Build cleanlinks (default: enabled)
1423  --disable-mkhtmlindex   Build mkhtmlindex (default: enabled)
1424
1425Optional Packages:
1426  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1427  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1428  --with-config-dir=<path>
1429                          Path to config dir (default: ${libdir}/X11/config)
1430  --with-script-preproc-cmd=CMD
1431                          Preprocessor command to run on scripts (default:
1432                          "gcc -E")
1433  --with-create-lib-cmd=CMD
1434                          Command to create libraries (default: "ar clq")
1435  --with-clean-lib-cmd=CMD
1436                          Command to clean up libraries (default: "ranlib")
1437
1438Some influential environment variables:
1439  CC          C compiler command
1440  CFLAGS      C compiler flags
1441  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1442              nonstandard directory <lib dir>
1443  LIBS        libraries to pass to the linker, e.g. -l<library>
1444  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1445              you have headers in a nonstandard directory <include dir>
1446  CPP         C preprocessor
1447  PKG_CONFIG  path to pkg-config utility
1448  XPROTO_CFLAGS
1449              C compiler flags for XPROTO, overriding pkg-config
1450  XPROTO_LIBS linker flags for XPROTO, overriding pkg-config
1451
1452Use these variables to override the choices made by `configure' or to help
1453it to find libraries and programs with nonstandard names/locations.
1454
1455Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1456_ACEOF
1457ac_status=$?
1458fi
1459
1460if test "$ac_init_help" = "recursive"; then
1461  # If there are subdirs, report their specific --help.
1462  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1463    test -d "$ac_dir" ||
1464      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1465      continue
1466    ac_builddir=.
1467
1468case "$ac_dir" in
1469.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470*)
1471  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1472  # A ".." for each directory in $ac_dir_suffix.
1473  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1474  case $ac_top_builddir_sub in
1475  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1477  esac ;;
1478esac
1479ac_abs_top_builddir=$ac_pwd
1480ac_abs_builddir=$ac_pwd$ac_dir_suffix
1481# for backward compatibility:
1482ac_top_builddir=$ac_top_build_prefix
1483
1484case $srcdir in
1485  .)  # We are building in place.
1486    ac_srcdir=.
1487    ac_top_srcdir=$ac_top_builddir_sub
1488    ac_abs_top_srcdir=$ac_pwd ;;
1489  [\\/]* | ?:[\\/]* )  # Absolute name.
1490    ac_srcdir=$srcdir$ac_dir_suffix;
1491    ac_top_srcdir=$srcdir
1492    ac_abs_top_srcdir=$srcdir ;;
1493  *) # Relative name.
1494    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1495    ac_top_srcdir=$ac_top_build_prefix$srcdir
1496    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1497esac
1498ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1499
1500    cd "$ac_dir" || { ac_status=$?; continue; }
1501    # Check for guested configure.
1502    if test -f "$ac_srcdir/configure.gnu"; then
1503      echo &&
1504      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1505    elif test -f "$ac_srcdir/configure"; then
1506      echo &&
1507      $SHELL "$ac_srcdir/configure" --help=recursive
1508    else
1509      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1510    fi || ac_status=$?
1511    cd "$ac_pwd" || { ac_status=$?; break; }
1512  done
1513fi
1514
1515test -n "$ac_init_help" && exit $ac_status
1516if $ac_init_version; then
1517  cat <<\_ACEOF
1518imake configure 1.0.5
1519generated by GNU Autoconf 2.68
1520
1521Copyright (C) 2010 Free Software Foundation, Inc.
1522This configure script is free software; the Free Software Foundation
1523gives unlimited permission to copy, distribute and modify it.
1524_ACEOF
1525  exit
1526fi
1527
1528## ------------------------ ##
1529## Autoconf initialization. ##
1530## ------------------------ ##
1531
1532# ac_fn_c_try_compile LINENO
1533# --------------------------
1534# Try to compile conftest.$ac_ext, and return whether this succeeded.
1535ac_fn_c_try_compile ()
1536{
1537  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1538  rm -f conftest.$ac_objext
1539  if { { ac_try="$ac_compile"
1540case "(($ac_try" in
1541  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1542  *) ac_try_echo=$ac_try;;
1543esac
1544eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1545$as_echo "$ac_try_echo"; } >&5
1546  (eval "$ac_compile") 2>conftest.err
1547  ac_status=$?
1548  if test -s conftest.err; then
1549    grep -v '^ *+' conftest.err >conftest.er1
1550    cat conftest.er1 >&5
1551    mv -f conftest.er1 conftest.err
1552  fi
1553  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1554  test $ac_status = 0; } && {
1555	 test -z "$ac_c_werror_flag" ||
1556	 test ! -s conftest.err
1557       } && test -s conftest.$ac_objext; then :
1558  ac_retval=0
1559else
1560  $as_echo "$as_me: failed program was:" >&5
1561sed 's/^/| /' conftest.$ac_ext >&5
1562
1563	ac_retval=1
1564fi
1565  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1566  as_fn_set_status $ac_retval
1567
1568} # ac_fn_c_try_compile
1569
1570# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1571# ---------------------------------------------
1572# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1573# accordingly.
1574ac_fn_c_check_decl ()
1575{
1576  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577  as_decl_name=`echo $2|sed 's/ *(.*//'`
1578  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1579  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1580$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1581if eval \${$3+:} false; then :
1582  $as_echo_n "(cached) " >&6
1583else
1584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1585/* end confdefs.h.  */
1586$4
1587int
1588main ()
1589{
1590#ifndef $as_decl_name
1591#ifdef __cplusplus
1592  (void) $as_decl_use;
1593#else
1594  (void) $as_decl_name;
1595#endif
1596#endif
1597
1598  ;
1599  return 0;
1600}
1601_ACEOF
1602if ac_fn_c_try_compile "$LINENO"; then :
1603  eval "$3=yes"
1604else
1605  eval "$3=no"
1606fi
1607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1608fi
1609eval ac_res=\$$3
1610	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1611$as_echo "$ac_res" >&6; }
1612  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613
1614} # ac_fn_c_check_decl
1615
1616# ac_fn_c_try_cpp LINENO
1617# ----------------------
1618# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1619ac_fn_c_try_cpp ()
1620{
1621  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622  if { { ac_try="$ac_cpp conftest.$ac_ext"
1623case "(($ac_try" in
1624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625  *) ac_try_echo=$ac_try;;
1626esac
1627eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628$as_echo "$ac_try_echo"; } >&5
1629  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1630  ac_status=$?
1631  if test -s conftest.err; then
1632    grep -v '^ *+' conftest.err >conftest.er1
1633    cat conftest.er1 >&5
1634    mv -f conftest.er1 conftest.err
1635  fi
1636  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637  test $ac_status = 0; } > conftest.i && {
1638	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1639	 test ! -s conftest.err
1640       }; then :
1641  ac_retval=0
1642else
1643  $as_echo "$as_me: failed program was:" >&5
1644sed 's/^/| /' conftest.$ac_ext >&5
1645
1646    ac_retval=1
1647fi
1648  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649  as_fn_set_status $ac_retval
1650
1651} # ac_fn_c_try_cpp
1652
1653# ac_fn_c_try_run LINENO
1654# ----------------------
1655# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1656# that executables *can* be run.
1657ac_fn_c_try_run ()
1658{
1659  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660  if { { ac_try="$ac_link"
1661case "(($ac_try" in
1662  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663  *) ac_try_echo=$ac_try;;
1664esac
1665eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666$as_echo "$ac_try_echo"; } >&5
1667  (eval "$ac_link") 2>&5
1668  ac_status=$?
1669  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1671  { { case "(($ac_try" in
1672  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673  *) ac_try_echo=$ac_try;;
1674esac
1675eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676$as_echo "$ac_try_echo"; } >&5
1677  (eval "$ac_try") 2>&5
1678  ac_status=$?
1679  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680  test $ac_status = 0; }; }; then :
1681  ac_retval=0
1682else
1683  $as_echo "$as_me: program exited with status $ac_status" >&5
1684       $as_echo "$as_me: failed program was:" >&5
1685sed 's/^/| /' conftest.$ac_ext >&5
1686
1687       ac_retval=$ac_status
1688fi
1689  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1690  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691  as_fn_set_status $ac_retval
1692
1693} # ac_fn_c_try_run
1694
1695# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1696# -------------------------------------------------------
1697# Tests whether HEADER exists and can be compiled using the include files in
1698# INCLUDES, setting the cache variable VAR accordingly.
1699ac_fn_c_check_header_compile ()
1700{
1701  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1703$as_echo_n "checking for $2... " >&6; }
1704if eval \${$3+:} false; then :
1705  $as_echo_n "(cached) " >&6
1706else
1707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1708/* end confdefs.h.  */
1709$4
1710#include <$2>
1711_ACEOF
1712if ac_fn_c_try_compile "$LINENO"; then :
1713  eval "$3=yes"
1714else
1715  eval "$3=no"
1716fi
1717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1718fi
1719eval ac_res=\$$3
1720	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1721$as_echo "$ac_res" >&6; }
1722  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723
1724} # ac_fn_c_check_header_compile
1725
1726# ac_fn_c_try_link LINENO
1727# -----------------------
1728# Try to link conftest.$ac_ext, and return whether this succeeded.
1729ac_fn_c_try_link ()
1730{
1731  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732  rm -f conftest.$ac_objext conftest$ac_exeext
1733  if { { ac_try="$ac_link"
1734case "(($ac_try" in
1735  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736  *) ac_try_echo=$ac_try;;
1737esac
1738eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739$as_echo "$ac_try_echo"; } >&5
1740  (eval "$ac_link") 2>conftest.err
1741  ac_status=$?
1742  if test -s conftest.err; then
1743    grep -v '^ *+' conftest.err >conftest.er1
1744    cat conftest.er1 >&5
1745    mv -f conftest.er1 conftest.err
1746  fi
1747  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748  test $ac_status = 0; } && {
1749	 test -z "$ac_c_werror_flag" ||
1750	 test ! -s conftest.err
1751       } && test -s conftest$ac_exeext && {
1752	 test "$cross_compiling" = yes ||
1753	 $as_test_x conftest$ac_exeext
1754       }; then :
1755  ac_retval=0
1756else
1757  $as_echo "$as_me: failed program was:" >&5
1758sed 's/^/| /' conftest.$ac_ext >&5
1759
1760	ac_retval=1
1761fi
1762  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1763  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1764  # interfere with the next link command; also delete a directory that is
1765  # left behind by Apple's compiler.  We do this before executing the actions.
1766  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1767  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768  as_fn_set_status $ac_retval
1769
1770} # ac_fn_c_try_link
1771
1772# ac_fn_c_check_func LINENO FUNC VAR
1773# ----------------------------------
1774# Tests whether FUNC exists, setting the cache variable VAR accordingly
1775ac_fn_c_check_func ()
1776{
1777  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1779$as_echo_n "checking for $2... " >&6; }
1780if eval \${$3+:} false; then :
1781  $as_echo_n "(cached) " >&6
1782else
1783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784/* end confdefs.h.  */
1785/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1786   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1787#define $2 innocuous_$2
1788
1789/* System header to define __stub macros and hopefully few prototypes,
1790    which can conflict with char $2 (); below.
1791    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1792    <limits.h> exists even on freestanding compilers.  */
1793
1794#ifdef __STDC__
1795# include <limits.h>
1796#else
1797# include <assert.h>
1798#endif
1799
1800#undef $2
1801
1802/* Override any GCC internal prototype to avoid an error.
1803   Use char because int might match the return type of a GCC
1804   builtin and then its argument prototype would still apply.  */
1805#ifdef __cplusplus
1806extern "C"
1807#endif
1808char $2 ();
1809/* The GNU C library defines this for functions which it implements
1810    to always fail with ENOSYS.  Some functions are actually named
1811    something starting with __ and the normal name is an alias.  */
1812#if defined __stub_$2 || defined __stub___$2
1813choke me
1814#endif
1815
1816int
1817main ()
1818{
1819return $2 ();
1820  ;
1821  return 0;
1822}
1823_ACEOF
1824if ac_fn_c_try_link "$LINENO"; then :
1825  eval "$3=yes"
1826else
1827  eval "$3=no"
1828fi
1829rm -f core conftest.err conftest.$ac_objext \
1830    conftest$ac_exeext conftest.$ac_ext
1831fi
1832eval ac_res=\$$3
1833	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1834$as_echo "$ac_res" >&6; }
1835  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836
1837} # ac_fn_c_check_func
1838cat >config.log <<_ACEOF
1839This file contains any messages produced by compilers while
1840running configure, to aid debugging if configure makes a mistake.
1841
1842It was created by imake $as_me 1.0.5, which was
1843generated by GNU Autoconf 2.68.  Invocation command line was
1844
1845  $ $0 $@
1846
1847_ACEOF
1848exec 5>>config.log
1849{
1850cat <<_ASUNAME
1851## --------- ##
1852## Platform. ##
1853## --------- ##
1854
1855hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1856uname -m = `(uname -m) 2>/dev/null || echo unknown`
1857uname -r = `(uname -r) 2>/dev/null || echo unknown`
1858uname -s = `(uname -s) 2>/dev/null || echo unknown`
1859uname -v = `(uname -v) 2>/dev/null || echo unknown`
1860
1861/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1862/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1863
1864/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1865/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1866/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1867/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1868/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1869/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1870/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1871
1872_ASUNAME
1873
1874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1875for as_dir in $PATH
1876do
1877  IFS=$as_save_IFS
1878  test -z "$as_dir" && as_dir=.
1879    $as_echo "PATH: $as_dir"
1880  done
1881IFS=$as_save_IFS
1882
1883} >&5
1884
1885cat >&5 <<_ACEOF
1886
1887
1888## ----------- ##
1889## Core tests. ##
1890## ----------- ##
1891
1892_ACEOF
1893
1894
1895# Keep a trace of the command line.
1896# Strip out --no-create and --no-recursion so they do not pile up.
1897# Strip out --silent because we don't want to record it for future runs.
1898# Also quote any args containing shell meta-characters.
1899# Make two passes to allow for proper duplicate-argument suppression.
1900ac_configure_args=
1901ac_configure_args0=
1902ac_configure_args1=
1903ac_must_keep_next=false
1904for ac_pass in 1 2
1905do
1906  for ac_arg
1907  do
1908    case $ac_arg in
1909    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1910    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1911    | -silent | --silent | --silen | --sile | --sil)
1912      continue ;;
1913    *\'*)
1914      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1915    esac
1916    case $ac_pass in
1917    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1918    2)
1919      as_fn_append ac_configure_args1 " '$ac_arg'"
1920      if test $ac_must_keep_next = true; then
1921	ac_must_keep_next=false # Got value, back to normal.
1922      else
1923	case $ac_arg in
1924	  *=* | --config-cache | -C | -disable-* | --disable-* \
1925	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1926	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1927	  | -with-* | --with-* | -without-* | --without-* | --x)
1928	    case "$ac_configure_args0 " in
1929	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1930	    esac
1931	    ;;
1932	  -* ) ac_must_keep_next=true ;;
1933	esac
1934      fi
1935      as_fn_append ac_configure_args " '$ac_arg'"
1936      ;;
1937    esac
1938  done
1939done
1940{ ac_configure_args0=; unset ac_configure_args0;}
1941{ ac_configure_args1=; unset ac_configure_args1;}
1942
1943# When interrupted or exit'd, cleanup temporary files, and complete
1944# config.log.  We remove comments because anyway the quotes in there
1945# would cause problems or look ugly.
1946# WARNING: Use '\'' to represent an apostrophe within the trap.
1947# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1948trap 'exit_status=$?
1949  # Save into config.log some information that might help in debugging.
1950  {
1951    echo
1952
1953    $as_echo "## ---------------- ##
1954## Cache variables. ##
1955## ---------------- ##"
1956    echo
1957    # The following way of writing the cache mishandles newlines in values,
1958(
1959  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1960    eval ac_val=\$$ac_var
1961    case $ac_val in #(
1962    *${as_nl}*)
1963      case $ac_var in #(
1964      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1965$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1966      esac
1967      case $ac_var in #(
1968      _ | IFS | as_nl) ;; #(
1969      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1970      *) { eval $ac_var=; unset $ac_var;} ;;
1971      esac ;;
1972    esac
1973  done
1974  (set) 2>&1 |
1975    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1976    *${as_nl}ac_space=\ *)
1977      sed -n \
1978	"s/'\''/'\''\\\\'\'''\''/g;
1979	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1980      ;; #(
1981    *)
1982      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1983      ;;
1984    esac |
1985    sort
1986)
1987    echo
1988
1989    $as_echo "## ----------------- ##
1990## Output variables. ##
1991## ----------------- ##"
1992    echo
1993    for ac_var in $ac_subst_vars
1994    do
1995      eval ac_val=\$$ac_var
1996      case $ac_val in
1997      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1998      esac
1999      $as_echo "$ac_var='\''$ac_val'\''"
2000    done | sort
2001    echo
2002
2003    if test -n "$ac_subst_files"; then
2004      $as_echo "## ------------------- ##
2005## File substitutions. ##
2006## ------------------- ##"
2007      echo
2008      for ac_var in $ac_subst_files
2009      do
2010	eval ac_val=\$$ac_var
2011	case $ac_val in
2012	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2013	esac
2014	$as_echo "$ac_var='\''$ac_val'\''"
2015      done | sort
2016      echo
2017    fi
2018
2019    if test -s confdefs.h; then
2020      $as_echo "## ----------- ##
2021## confdefs.h. ##
2022## ----------- ##"
2023      echo
2024      cat confdefs.h
2025      echo
2026    fi
2027    test "$ac_signal" != 0 &&
2028      $as_echo "$as_me: caught signal $ac_signal"
2029    $as_echo "$as_me: exit $exit_status"
2030  } >&5
2031  rm -f core *.core core.conftest.* &&
2032    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2033    exit $exit_status
2034' 0
2035for ac_signal in 1 2 13 15; do
2036  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2037done
2038ac_signal=0
2039
2040# confdefs.h avoids OS command line length limits that DEFS can exceed.
2041rm -f -r conftest* confdefs.h
2042
2043$as_echo "/* confdefs.h */" > confdefs.h
2044
2045# Predefined preprocessor variables.
2046
2047cat >>confdefs.h <<_ACEOF
2048#define PACKAGE_NAME "$PACKAGE_NAME"
2049_ACEOF
2050
2051cat >>confdefs.h <<_ACEOF
2052#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2053_ACEOF
2054
2055cat >>confdefs.h <<_ACEOF
2056#define PACKAGE_VERSION "$PACKAGE_VERSION"
2057_ACEOF
2058
2059cat >>confdefs.h <<_ACEOF
2060#define PACKAGE_STRING "$PACKAGE_STRING"
2061_ACEOF
2062
2063cat >>confdefs.h <<_ACEOF
2064#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2065_ACEOF
2066
2067cat >>confdefs.h <<_ACEOF
2068#define PACKAGE_URL "$PACKAGE_URL"
2069_ACEOF
2070
2071
2072# Let the site file select an alternate cache file if it wants to.
2073# Prefer an explicitly selected file to automatically selected ones.
2074ac_site_file1=NONE
2075ac_site_file2=NONE
2076if test -n "$CONFIG_SITE"; then
2077  # We do not want a PATH search for config.site.
2078  case $CONFIG_SITE in #((
2079    -*)  ac_site_file1=./$CONFIG_SITE;;
2080    */*) ac_site_file1=$CONFIG_SITE;;
2081    *)   ac_site_file1=./$CONFIG_SITE;;
2082  esac
2083elif test "x$prefix" != xNONE; then
2084  ac_site_file1=$prefix/share/config.site
2085  ac_site_file2=$prefix/etc/config.site
2086else
2087  ac_site_file1=$ac_default_prefix/share/config.site
2088  ac_site_file2=$ac_default_prefix/etc/config.site
2089fi
2090for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2091do
2092  test "x$ac_site_file" = xNONE && continue
2093  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2094    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2095$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2096    sed 's/^/| /' "$ac_site_file" >&5
2097    . "$ac_site_file" \
2098      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2099$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2100as_fn_error $? "failed to load site script $ac_site_file
2101See \`config.log' for more details" "$LINENO" 5; }
2102  fi
2103done
2104
2105if test -r "$cache_file"; then
2106  # Some versions of bash will fail to source /dev/null (special files
2107  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2108  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2109    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2110$as_echo "$as_me: loading cache $cache_file" >&6;}
2111    case $cache_file in
2112      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2113      *)                      . "./$cache_file";;
2114    esac
2115  fi
2116else
2117  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2118$as_echo "$as_me: creating cache $cache_file" >&6;}
2119  >$cache_file
2120fi
2121
2122# Check that the precious variables saved in the cache have kept the same
2123# value.
2124ac_cache_corrupted=false
2125for ac_var in $ac_precious_vars; do
2126  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2127  eval ac_new_set=\$ac_env_${ac_var}_set
2128  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2129  eval ac_new_val=\$ac_env_${ac_var}_value
2130  case $ac_old_set,$ac_new_set in
2131    set,)
2132      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2133$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2134      ac_cache_corrupted=: ;;
2135    ,set)
2136      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2137$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2138      ac_cache_corrupted=: ;;
2139    ,);;
2140    *)
2141      if test "x$ac_old_val" != "x$ac_new_val"; then
2142	# differences in whitespace do not lead to failure.
2143	ac_old_val_w=`echo x $ac_old_val`
2144	ac_new_val_w=`echo x $ac_new_val`
2145	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2146	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2147$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2148	  ac_cache_corrupted=:
2149	else
2150	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2151$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2152	  eval $ac_var=\$ac_old_val
2153	fi
2154	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2155$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2156	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2157$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2158      fi;;
2159  esac
2160  # Pass precious variables to config.status.
2161  if test "$ac_new_set" = set; then
2162    case $ac_new_val in
2163    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2164    *) ac_arg=$ac_var=$ac_new_val ;;
2165    esac
2166    case " $ac_configure_args " in
2167      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2168      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2169    esac
2170  fi
2171done
2172if $ac_cache_corrupted; then
2173  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2174$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2175  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2176$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2177  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2178fi
2179## -------------------- ##
2180## Main body of script. ##
2181## -------------------- ##
2182
2183ac_ext=c
2184ac_cpp='$CPP $CPPFLAGS'
2185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2187ac_compiler_gnu=$ac_cv_c_compiler_gnu
2188
2189
2190am__api_version='1.11'
2191
2192ac_aux_dir=
2193for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2194  if test -f "$ac_dir/install-sh"; then
2195    ac_aux_dir=$ac_dir
2196    ac_install_sh="$ac_aux_dir/install-sh -c"
2197    break
2198  elif test -f "$ac_dir/install.sh"; then
2199    ac_aux_dir=$ac_dir
2200    ac_install_sh="$ac_aux_dir/install.sh -c"
2201    break
2202  elif test -f "$ac_dir/shtool"; then
2203    ac_aux_dir=$ac_dir
2204    ac_install_sh="$ac_aux_dir/shtool install -c"
2205    break
2206  fi
2207done
2208if test -z "$ac_aux_dir"; then
2209  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2210fi
2211
2212# These three variables are undocumented and unsupported,
2213# and are intended to be withdrawn in a future Autoconf release.
2214# They can cause serious problems if a builder's source tree is in a directory
2215# whose full name contains unusual characters.
2216ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2217ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2218ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2219
2220
2221# Find a good install program.  We prefer a C program (faster),
2222# so one script is as good as another.  But avoid the broken or
2223# incompatible versions:
2224# SysV /etc/install, /usr/sbin/install
2225# SunOS /usr/etc/install
2226# IRIX /sbin/install
2227# AIX /bin/install
2228# AmigaOS /C/install, which installs bootblocks on floppy discs
2229# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2230# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2231# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2232# OS/2's system install, which has a completely different semantic
2233# ./install, which can be erroneously created by make from ./install.sh.
2234# Reject install programs that cannot install multiple files.
2235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2236$as_echo_n "checking for a BSD-compatible install... " >&6; }
2237if test -z "$INSTALL"; then
2238if ${ac_cv_path_install+:} false; then :
2239  $as_echo_n "(cached) " >&6
2240else
2241  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2242for as_dir in $PATH
2243do
2244  IFS=$as_save_IFS
2245  test -z "$as_dir" && as_dir=.
2246    # Account for people who put trailing slashes in PATH elements.
2247case $as_dir/ in #((
2248  ./ | .// | /[cC]/* | \
2249  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2250  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2251  /usr/ucb/* ) ;;
2252  *)
2253    # OSF1 and SCO ODT 3.0 have their own names for install.
2254    # Don't use installbsd from OSF since it installs stuff as root
2255    # by default.
2256    for ac_prog in ginstall scoinst install; do
2257      for ac_exec_ext in '' $ac_executable_extensions; do
2258	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2259	  if test $ac_prog = install &&
2260	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2261	    # AIX install.  It has an incompatible calling convention.
2262	    :
2263	  elif test $ac_prog = install &&
2264	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2265	    # program-specific install script used by HP pwplus--don't use.
2266	    :
2267	  else
2268	    rm -rf conftest.one conftest.two conftest.dir
2269	    echo one > conftest.one
2270	    echo two > conftest.two
2271	    mkdir conftest.dir
2272	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2273	      test -s conftest.one && test -s conftest.two &&
2274	      test -s conftest.dir/conftest.one &&
2275	      test -s conftest.dir/conftest.two
2276	    then
2277	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2278	      break 3
2279	    fi
2280	  fi
2281	fi
2282      done
2283    done
2284    ;;
2285esac
2286
2287  done
2288IFS=$as_save_IFS
2289
2290rm -rf conftest.one conftest.two conftest.dir
2291
2292fi
2293  if test "${ac_cv_path_install+set}" = set; then
2294    INSTALL=$ac_cv_path_install
2295  else
2296    # As a last resort, use the slow shell script.  Don't cache a
2297    # value for INSTALL within a source directory, because that will
2298    # break other packages using the cache if that directory is
2299    # removed, or if the value is a relative name.
2300    INSTALL=$ac_install_sh
2301  fi
2302fi
2303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2304$as_echo "$INSTALL" >&6; }
2305
2306# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2307# It thinks the first close brace ends the variable substitution.
2308test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2309
2310test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2311
2312test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2313
2314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2315$as_echo_n "checking whether build environment is sane... " >&6; }
2316# Just in case
2317sleep 1
2318echo timestamp > conftest.file
2319# Reject unsafe characters in $srcdir or the absolute working directory
2320# name.  Accept space and tab only in the latter.
2321am_lf='
2322'
2323case `pwd` in
2324  *[\\\"\#\$\&\'\`$am_lf]*)
2325    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2326esac
2327case $srcdir in
2328  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2329    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2330esac
2331
2332# Do `set' in a subshell so we don't clobber the current shell's
2333# arguments.  Must try -L first in case configure is actually a
2334# symlink; some systems play weird games with the mod time of symlinks
2335# (eg FreeBSD returns the mod time of the symlink's containing
2336# directory).
2337if (
2338   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2339   if test "$*" = "X"; then
2340      # -L didn't work.
2341      set X `ls -t "$srcdir/configure" conftest.file`
2342   fi
2343   rm -f conftest.file
2344   if test "$*" != "X $srcdir/configure conftest.file" \
2345      && test "$*" != "X conftest.file $srcdir/configure"; then
2346
2347      # If neither matched, then we have a broken ls.  This can happen
2348      # if, for instance, CONFIG_SHELL is bash and it inherits a
2349      # broken ls alias from the environment.  This has actually
2350      # happened.  Such a system could not be considered "sane".
2351      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2352alias in your environment" "$LINENO" 5
2353   fi
2354
2355   test "$2" = conftest.file
2356   )
2357then
2358   # Ok.
2359   :
2360else
2361   as_fn_error $? "newly created file is older than distributed files!
2362Check your system clock" "$LINENO" 5
2363fi
2364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2365$as_echo "yes" >&6; }
2366test "$program_prefix" != NONE &&
2367  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2368# Use a double $ so make ignores it.
2369test "$program_suffix" != NONE &&
2370  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2371# Double any \ or $.
2372# By default was `s,x,x', remove it if useless.
2373ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2374program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2375
2376# expand $ac_aux_dir to an absolute path
2377am_aux_dir=`cd $ac_aux_dir && pwd`
2378
2379if test x"${MISSING+set}" != xset; then
2380  case $am_aux_dir in
2381  *\ * | *\	*)
2382    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2383  *)
2384    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2385  esac
2386fi
2387# Use eval to expand $SHELL
2388if eval "$MISSING --run true"; then
2389  am_missing_run="$MISSING --run "
2390else
2391  am_missing_run=
2392  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2393$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2394fi
2395
2396if test x"${install_sh}" != xset; then
2397  case $am_aux_dir in
2398  *\ * | *\	*)
2399    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2400  *)
2401    install_sh="\${SHELL} $am_aux_dir/install-sh"
2402  esac
2403fi
2404
2405# Installed binaries are usually stripped using `strip' when the user
2406# run `make install-strip'.  However `strip' might not be the right
2407# tool to use in cross-compilation environments, therefore Automake
2408# will honor the `STRIP' environment variable to overrule this program.
2409if test "$cross_compiling" != no; then
2410  if test -n "$ac_tool_prefix"; then
2411  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2412set dummy ${ac_tool_prefix}strip; ac_word=$2
2413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2414$as_echo_n "checking for $ac_word... " >&6; }
2415if ${ac_cv_prog_STRIP+:} false; then :
2416  $as_echo_n "(cached) " >&6
2417else
2418  if test -n "$STRIP"; then
2419  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2420else
2421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2422for as_dir in $PATH
2423do
2424  IFS=$as_save_IFS
2425  test -z "$as_dir" && as_dir=.
2426    for ac_exec_ext in '' $ac_executable_extensions; do
2427  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2428    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2429    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2430    break 2
2431  fi
2432done
2433  done
2434IFS=$as_save_IFS
2435
2436fi
2437fi
2438STRIP=$ac_cv_prog_STRIP
2439if test -n "$STRIP"; then
2440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2441$as_echo "$STRIP" >&6; }
2442else
2443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2444$as_echo "no" >&6; }
2445fi
2446
2447
2448fi
2449if test -z "$ac_cv_prog_STRIP"; then
2450  ac_ct_STRIP=$STRIP
2451  # Extract the first word of "strip", so it can be a program name with args.
2452set dummy strip; ac_word=$2
2453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2454$as_echo_n "checking for $ac_word... " >&6; }
2455if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2456  $as_echo_n "(cached) " >&6
2457else
2458  if test -n "$ac_ct_STRIP"; then
2459  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2460else
2461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462for as_dir in $PATH
2463do
2464  IFS=$as_save_IFS
2465  test -z "$as_dir" && as_dir=.
2466    for ac_exec_ext in '' $ac_executable_extensions; do
2467  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2468    ac_cv_prog_ac_ct_STRIP="strip"
2469    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2470    break 2
2471  fi
2472done
2473  done
2474IFS=$as_save_IFS
2475
2476fi
2477fi
2478ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2479if test -n "$ac_ct_STRIP"; then
2480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2481$as_echo "$ac_ct_STRIP" >&6; }
2482else
2483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2484$as_echo "no" >&6; }
2485fi
2486
2487  if test "x$ac_ct_STRIP" = x; then
2488    STRIP=":"
2489  else
2490    case $cross_compiling:$ac_tool_warned in
2491yes:)
2492{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2493$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2494ac_tool_warned=yes ;;
2495esac
2496    STRIP=$ac_ct_STRIP
2497  fi
2498else
2499  STRIP="$ac_cv_prog_STRIP"
2500fi
2501
2502fi
2503INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2504
2505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2506$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2507if test -z "$MKDIR_P"; then
2508  if ${ac_cv_path_mkdir+:} false; then :
2509  $as_echo_n "(cached) " >&6
2510else
2511  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2513do
2514  IFS=$as_save_IFS
2515  test -z "$as_dir" && as_dir=.
2516    for ac_prog in mkdir gmkdir; do
2517	 for ac_exec_ext in '' $ac_executable_extensions; do
2518	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2519	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2520	     'mkdir (GNU coreutils) '* | \
2521	     'mkdir (coreutils) '* | \
2522	     'mkdir (fileutils) '4.1*)
2523	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2524	       break 3;;
2525	   esac
2526	 done
2527       done
2528  done
2529IFS=$as_save_IFS
2530
2531fi
2532
2533  test -d ./--version && rmdir ./--version
2534  if test "${ac_cv_path_mkdir+set}" = set; then
2535    MKDIR_P="$ac_cv_path_mkdir -p"
2536  else
2537    # As a last resort, use the slow shell script.  Don't cache a
2538    # value for MKDIR_P within a source directory, because that will
2539    # break other packages using the cache if that directory is
2540    # removed, or if the value is a relative name.
2541    MKDIR_P="$ac_install_sh -d"
2542  fi
2543fi
2544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2545$as_echo "$MKDIR_P" >&6; }
2546
2547mkdir_p="$MKDIR_P"
2548case $mkdir_p in
2549  [\\/$]* | ?:[\\/]*) ;;
2550  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2551esac
2552
2553for ac_prog in gawk mawk nawk awk
2554do
2555  # Extract the first word of "$ac_prog", so it can be a program name with args.
2556set dummy $ac_prog; ac_word=$2
2557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2558$as_echo_n "checking for $ac_word... " >&6; }
2559if ${ac_cv_prog_AWK+:} false; then :
2560  $as_echo_n "(cached) " >&6
2561else
2562  if test -n "$AWK"; then
2563  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2564else
2565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566for as_dir in $PATH
2567do
2568  IFS=$as_save_IFS
2569  test -z "$as_dir" && as_dir=.
2570    for ac_exec_ext in '' $ac_executable_extensions; do
2571  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2572    ac_cv_prog_AWK="$ac_prog"
2573    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2574    break 2
2575  fi
2576done
2577  done
2578IFS=$as_save_IFS
2579
2580fi
2581fi
2582AWK=$ac_cv_prog_AWK
2583if test -n "$AWK"; then
2584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2585$as_echo "$AWK" >&6; }
2586else
2587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2588$as_echo "no" >&6; }
2589fi
2590
2591
2592  test -n "$AWK" && break
2593done
2594
2595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2596$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2597set x ${MAKE-make}
2598ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2599if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2600  $as_echo_n "(cached) " >&6
2601else
2602  cat >conftest.make <<\_ACEOF
2603SHELL = /bin/sh
2604all:
2605	@echo '@@@%%%=$(MAKE)=@@@%%%'
2606_ACEOF
2607# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2608case `${MAKE-make} -f conftest.make 2>/dev/null` in
2609  *@@@%%%=?*=@@@%%%*)
2610    eval ac_cv_prog_make_${ac_make}_set=yes;;
2611  *)
2612    eval ac_cv_prog_make_${ac_make}_set=no;;
2613esac
2614rm -f conftest.make
2615fi
2616if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2618$as_echo "yes" >&6; }
2619  SET_MAKE=
2620else
2621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2622$as_echo "no" >&6; }
2623  SET_MAKE="MAKE=${MAKE-make}"
2624fi
2625
2626rm -rf .tst 2>/dev/null
2627mkdir .tst 2>/dev/null
2628if test -d .tst; then
2629  am__leading_dot=.
2630else
2631  am__leading_dot=_
2632fi
2633rmdir .tst 2>/dev/null
2634
2635if test "`cd $srcdir && pwd`" != "`pwd`"; then
2636  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2637  # is not polluted with repeated "-I."
2638  am__isrc=' -I$(srcdir)'
2639  # test to see if srcdir already configured
2640  if test -f $srcdir/config.status; then
2641    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2642  fi
2643fi
2644
2645# test whether we have cygpath
2646if test -z "$CYGPATH_W"; then
2647  if (cygpath --version) >/dev/null 2>/dev/null; then
2648    CYGPATH_W='cygpath -w'
2649  else
2650    CYGPATH_W=echo
2651  fi
2652fi
2653
2654
2655# Define the identity of the package.
2656 PACKAGE='imake'
2657 VERSION='1.0.5'
2658
2659
2660cat >>confdefs.h <<_ACEOF
2661#define PACKAGE "$PACKAGE"
2662_ACEOF
2663
2664
2665cat >>confdefs.h <<_ACEOF
2666#define VERSION "$VERSION"
2667_ACEOF
2668
2669# Some tools Automake needs.
2670
2671ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2672
2673
2674AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2675
2676
2677AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2678
2679
2680AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2681
2682
2683MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2684
2685# We need awk for the "check" target.  The system "awk" is bad on
2686# some platforms.
2687# Always define AMTAR for backward compatibility.
2688
2689AMTAR=${AMTAR-"${am_missing_run}tar"}
2690
2691am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2692
2693
2694
2695
2696
2697
2698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2699$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2700    # Check whether --enable-maintainer-mode was given.
2701if test "${enable_maintainer_mode+set}" = set; then :
2702  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2703else
2704  USE_MAINTAINER_MODE=no
2705fi
2706
2707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2708$as_echo "$USE_MAINTAINER_MODE" >&6; }
2709   if test $USE_MAINTAINER_MODE = yes; then
2710  MAINTAINER_MODE_TRUE=
2711  MAINTAINER_MODE_FALSE='#'
2712else
2713  MAINTAINER_MODE_TRUE='#'
2714  MAINTAINER_MODE_FALSE=
2715fi
2716
2717  MAINT=$MAINTAINER_MODE_TRUE
2718
2719
2720
2721ac_config_headers="$ac_config_headers config.h"
2722
2723
2724# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736DEPDIR="${am__leading_dot}deps"
2737
2738ac_config_commands="$ac_config_commands depfiles"
2739
2740
2741am_make=${MAKE-make}
2742cat > confinc << 'END'
2743am__doit:
2744	@echo this is the am__doit target
2745.PHONY: am__doit
2746END
2747# If we don't find an include directive, just comment out the code.
2748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2749$as_echo_n "checking for style of include used by $am_make... " >&6; }
2750am__include="#"
2751am__quote=
2752_am_result=none
2753# First try GNU make style include.
2754echo "include confinc" > confmf
2755# Ignore all kinds of additional output from `make'.
2756case `$am_make -s -f confmf 2> /dev/null` in #(
2757*the\ am__doit\ target*)
2758  am__include=include
2759  am__quote=
2760  _am_result=GNU
2761  ;;
2762esac
2763# Now try BSD make style include.
2764if test "$am__include" = "#"; then
2765   echo '.include "confinc"' > confmf
2766   case `$am_make -s -f confmf 2> /dev/null` in #(
2767   *the\ am__doit\ target*)
2768     am__include=.include
2769     am__quote="\""
2770     _am_result=BSD
2771     ;;
2772   esac
2773fi
2774
2775
2776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2777$as_echo "$_am_result" >&6; }
2778rm -f confinc confmf
2779
2780# Check whether --enable-dependency-tracking was given.
2781if test "${enable_dependency_tracking+set}" = set; then :
2782  enableval=$enable_dependency_tracking;
2783fi
2784
2785if test "x$enable_dependency_tracking" != xno; then
2786  am_depcomp="$ac_aux_dir/depcomp"
2787  AMDEPBACKSLASH='\'
2788fi
2789 if test "x$enable_dependency_tracking" != xno; then
2790  AMDEP_TRUE=
2791  AMDEP_FALSE='#'
2792else
2793  AMDEP_TRUE='#'
2794  AMDEP_FALSE=
2795fi
2796
2797
2798ac_ext=c
2799ac_cpp='$CPP $CPPFLAGS'
2800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2802ac_compiler_gnu=$ac_cv_c_compiler_gnu
2803if test -n "$ac_tool_prefix"; then
2804  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2805set dummy ${ac_tool_prefix}gcc; ac_word=$2
2806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2807$as_echo_n "checking for $ac_word... " >&6; }
2808if ${ac_cv_prog_CC+:} false; then :
2809  $as_echo_n "(cached) " >&6
2810else
2811  if test -n "$CC"; then
2812  ac_cv_prog_CC="$CC" # Let the user override the test.
2813else
2814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815for as_dir in $PATH
2816do
2817  IFS=$as_save_IFS
2818  test -z "$as_dir" && as_dir=.
2819    for ac_exec_ext in '' $ac_executable_extensions; do
2820  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2821    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2822    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2823    break 2
2824  fi
2825done
2826  done
2827IFS=$as_save_IFS
2828
2829fi
2830fi
2831CC=$ac_cv_prog_CC
2832if test -n "$CC"; then
2833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2834$as_echo "$CC" >&6; }
2835else
2836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2837$as_echo "no" >&6; }
2838fi
2839
2840
2841fi
2842if test -z "$ac_cv_prog_CC"; then
2843  ac_ct_CC=$CC
2844  # Extract the first word of "gcc", so it can be a program name with args.
2845set dummy gcc; ac_word=$2
2846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2847$as_echo_n "checking for $ac_word... " >&6; }
2848if ${ac_cv_prog_ac_ct_CC+:} false; then :
2849  $as_echo_n "(cached) " >&6
2850else
2851  if test -n "$ac_ct_CC"; then
2852  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2853else
2854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855for as_dir in $PATH
2856do
2857  IFS=$as_save_IFS
2858  test -z "$as_dir" && as_dir=.
2859    for ac_exec_ext in '' $ac_executable_extensions; do
2860  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2861    ac_cv_prog_ac_ct_CC="gcc"
2862    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2863    break 2
2864  fi
2865done
2866  done
2867IFS=$as_save_IFS
2868
2869fi
2870fi
2871ac_ct_CC=$ac_cv_prog_ac_ct_CC
2872if test -n "$ac_ct_CC"; then
2873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2874$as_echo "$ac_ct_CC" >&6; }
2875else
2876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2877$as_echo "no" >&6; }
2878fi
2879
2880  if test "x$ac_ct_CC" = x; then
2881    CC=""
2882  else
2883    case $cross_compiling:$ac_tool_warned in
2884yes:)
2885{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2886$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2887ac_tool_warned=yes ;;
2888esac
2889    CC=$ac_ct_CC
2890  fi
2891else
2892  CC="$ac_cv_prog_CC"
2893fi
2894
2895if test -z "$CC"; then
2896          if test -n "$ac_tool_prefix"; then
2897    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2898set dummy ${ac_tool_prefix}cc; 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}cc"
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  fi
2935fi
2936if test -z "$CC"; then
2937  # Extract the first word of "cc", so it can be a program name with args.
2938set dummy cc; ac_word=$2
2939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940$as_echo_n "checking for $ac_word... " >&6; }
2941if ${ac_cv_prog_CC+:} false; then :
2942  $as_echo_n "(cached) " >&6
2943else
2944  if test -n "$CC"; then
2945  ac_cv_prog_CC="$CC" # Let the user override the test.
2946else
2947  ac_prog_rejected=no
2948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949for as_dir in $PATH
2950do
2951  IFS=$as_save_IFS
2952  test -z "$as_dir" && as_dir=.
2953    for ac_exec_ext in '' $ac_executable_extensions; do
2954  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2955    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2956       ac_prog_rejected=yes
2957       continue
2958     fi
2959    ac_cv_prog_CC="cc"
2960    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2961    break 2
2962  fi
2963done
2964  done
2965IFS=$as_save_IFS
2966
2967if test $ac_prog_rejected = yes; then
2968  # We found a bogon in the path, so make sure we never use it.
2969  set dummy $ac_cv_prog_CC
2970  shift
2971  if test $# != 0; then
2972    # We chose a different compiler from the bogus one.
2973    # However, it has the same basename, so the bogon will be chosen
2974    # first if we set CC to just the basename; use the full file name.
2975    shift
2976    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2977  fi
2978fi
2979fi
2980fi
2981CC=$ac_cv_prog_CC
2982if test -n "$CC"; then
2983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2984$as_echo "$CC" >&6; }
2985else
2986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2987$as_echo "no" >&6; }
2988fi
2989
2990
2991fi
2992if test -z "$CC"; then
2993  if test -n "$ac_tool_prefix"; then
2994  for ac_prog in cl.exe
2995  do
2996    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2997set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2999$as_echo_n "checking for $ac_word... " >&6; }
3000if ${ac_cv_prog_CC+:} false; then :
3001  $as_echo_n "(cached) " >&6
3002else
3003  if test -n "$CC"; then
3004  ac_cv_prog_CC="$CC" # Let the user override the test.
3005else
3006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007for as_dir in $PATH
3008do
3009  IFS=$as_save_IFS
3010  test -z "$as_dir" && as_dir=.
3011    for ac_exec_ext in '' $ac_executable_extensions; do
3012  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3013    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3014    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3015    break 2
3016  fi
3017done
3018  done
3019IFS=$as_save_IFS
3020
3021fi
3022fi
3023CC=$ac_cv_prog_CC
3024if test -n "$CC"; then
3025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3026$as_echo "$CC" >&6; }
3027else
3028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029$as_echo "no" >&6; }
3030fi
3031
3032
3033    test -n "$CC" && break
3034  done
3035fi
3036if test -z "$CC"; then
3037  ac_ct_CC=$CC
3038  for ac_prog in cl.exe
3039do
3040  # Extract the first word of "$ac_prog", so it can be a program name with args.
3041set dummy $ac_prog; ac_word=$2
3042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043$as_echo_n "checking for $ac_word... " >&6; }
3044if ${ac_cv_prog_ac_ct_CC+:} false; then :
3045  $as_echo_n "(cached) " >&6
3046else
3047  if test -n "$ac_ct_CC"; then
3048  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3049else
3050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051for as_dir in $PATH
3052do
3053  IFS=$as_save_IFS
3054  test -z "$as_dir" && as_dir=.
3055    for ac_exec_ext in '' $ac_executable_extensions; do
3056  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3057    ac_cv_prog_ac_ct_CC="$ac_prog"
3058    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3059    break 2
3060  fi
3061done
3062  done
3063IFS=$as_save_IFS
3064
3065fi
3066fi
3067ac_ct_CC=$ac_cv_prog_ac_ct_CC
3068if test -n "$ac_ct_CC"; then
3069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3070$as_echo "$ac_ct_CC" >&6; }
3071else
3072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073$as_echo "no" >&6; }
3074fi
3075
3076
3077  test -n "$ac_ct_CC" && break
3078done
3079
3080  if test "x$ac_ct_CC" = x; then
3081    CC=""
3082  else
3083    case $cross_compiling:$ac_tool_warned in
3084yes:)
3085{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3086$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3087ac_tool_warned=yes ;;
3088esac
3089    CC=$ac_ct_CC
3090  fi
3091fi
3092
3093fi
3094
3095
3096test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3097$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3098as_fn_error $? "no acceptable C compiler found in \$PATH
3099See \`config.log' for more details" "$LINENO" 5; }
3100
3101# Provide some information about the compiler.
3102$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3103set X $ac_compile
3104ac_compiler=$2
3105for ac_option in --version -v -V -qversion; do
3106  { { ac_try="$ac_compiler $ac_option >&5"
3107case "(($ac_try" in
3108  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109  *) ac_try_echo=$ac_try;;
3110esac
3111eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3112$as_echo "$ac_try_echo"; } >&5
3113  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3114  ac_status=$?
3115  if test -s conftest.err; then
3116    sed '10a\
3117... rest of stderr output deleted ...
3118         10q' conftest.err >conftest.er1
3119    cat conftest.er1 >&5
3120  fi
3121  rm -f conftest.er1 conftest.err
3122  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3123  test $ac_status = 0; }
3124done
3125
3126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3127/* end confdefs.h.  */
3128
3129int
3130main ()
3131{
3132
3133  ;
3134  return 0;
3135}
3136_ACEOF
3137ac_clean_files_save=$ac_clean_files
3138ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3139# Try to create an executable without -o first, disregard a.out.
3140# It will help us diagnose broken compilers, and finding out an intuition
3141# of exeext.
3142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3143$as_echo_n "checking whether the C compiler works... " >&6; }
3144ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3145
3146# The possible output files:
3147ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3148
3149ac_rmfiles=
3150for ac_file in $ac_files
3151do
3152  case $ac_file in
3153    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3154    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3155  esac
3156done
3157rm -f $ac_rmfiles
3158
3159if { { ac_try="$ac_link_default"
3160case "(($ac_try" in
3161  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162  *) ac_try_echo=$ac_try;;
3163esac
3164eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3165$as_echo "$ac_try_echo"; } >&5
3166  (eval "$ac_link_default") 2>&5
3167  ac_status=$?
3168  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3169  test $ac_status = 0; }; then :
3170  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3171# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3172# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3173# so that the user can short-circuit this test for compilers unknown to
3174# Autoconf.
3175for ac_file in $ac_files ''
3176do
3177  test -f "$ac_file" || continue
3178  case $ac_file in
3179    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3180	;;
3181    [ab].out )
3182	# We found the default executable, but exeext='' is most
3183	# certainly right.
3184	break;;
3185    *.* )
3186	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3187	then :; else
3188	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3189	fi
3190	# We set ac_cv_exeext here because the later test for it is not
3191	# safe: cross compilers may not add the suffix if given an `-o'
3192	# argument, so we may need to know it at that point already.
3193	# Even if this section looks crufty: it has the advantage of
3194	# actually working.
3195	break;;
3196    * )
3197	break;;
3198  esac
3199done
3200test "$ac_cv_exeext" = no && ac_cv_exeext=
3201
3202else
3203  ac_file=''
3204fi
3205if test -z "$ac_file"; then :
3206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3207$as_echo "no" >&6; }
3208$as_echo "$as_me: failed program was:" >&5
3209sed 's/^/| /' conftest.$ac_ext >&5
3210
3211{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3212$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3213as_fn_error 77 "C compiler cannot create executables
3214See \`config.log' for more details" "$LINENO" 5; }
3215else
3216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3217$as_echo "yes" >&6; }
3218fi
3219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3220$as_echo_n "checking for C compiler default output file name... " >&6; }
3221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3222$as_echo "$ac_file" >&6; }
3223ac_exeext=$ac_cv_exeext
3224
3225rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3226ac_clean_files=$ac_clean_files_save
3227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3228$as_echo_n "checking for suffix of executables... " >&6; }
3229if { { ac_try="$ac_link"
3230case "(($ac_try" in
3231  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232  *) ac_try_echo=$ac_try;;
3233esac
3234eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3235$as_echo "$ac_try_echo"; } >&5
3236  (eval "$ac_link") 2>&5
3237  ac_status=$?
3238  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3239  test $ac_status = 0; }; then :
3240  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3241# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3242# work properly (i.e., refer to `conftest.exe'), while it won't with
3243# `rm'.
3244for ac_file in conftest.exe conftest conftest.*; do
3245  test -f "$ac_file" || continue
3246  case $ac_file in
3247    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3248    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3249	  break;;
3250    * ) break;;
3251  esac
3252done
3253else
3254  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3255$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3256as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3257See \`config.log' for more details" "$LINENO" 5; }
3258fi
3259rm -f conftest conftest$ac_cv_exeext
3260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3261$as_echo "$ac_cv_exeext" >&6; }
3262
3263rm -f conftest.$ac_ext
3264EXEEXT=$ac_cv_exeext
3265ac_exeext=$EXEEXT
3266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3267/* end confdefs.h.  */
3268#include <stdio.h>
3269int
3270main ()
3271{
3272FILE *f = fopen ("conftest.out", "w");
3273 return ferror (f) || fclose (f) != 0;
3274
3275  ;
3276  return 0;
3277}
3278_ACEOF
3279ac_clean_files="$ac_clean_files conftest.out"
3280# Check that the compiler produces executables we can run.  If not, either
3281# the compiler is broken, or we cross compile.
3282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3283$as_echo_n "checking whether we are cross compiling... " >&6; }
3284if test "$cross_compiling" != yes; then
3285  { { ac_try="$ac_link"
3286case "(($ac_try" in
3287  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288  *) ac_try_echo=$ac_try;;
3289esac
3290eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3291$as_echo "$ac_try_echo"; } >&5
3292  (eval "$ac_link") 2>&5
3293  ac_status=$?
3294  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3295  test $ac_status = 0; }
3296  if { ac_try='./conftest$ac_cv_exeext'
3297  { { case "(($ac_try" in
3298  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299  *) ac_try_echo=$ac_try;;
3300esac
3301eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3302$as_echo "$ac_try_echo"; } >&5
3303  (eval "$ac_try") 2>&5
3304  ac_status=$?
3305  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3306  test $ac_status = 0; }; }; then
3307    cross_compiling=no
3308  else
3309    if test "$cross_compiling" = maybe; then
3310	cross_compiling=yes
3311    else
3312	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3313$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3314as_fn_error $? "cannot run C compiled programs.
3315If you meant to cross compile, use \`--host'.
3316See \`config.log' for more details" "$LINENO" 5; }
3317    fi
3318  fi
3319fi
3320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3321$as_echo "$cross_compiling" >&6; }
3322
3323rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3324ac_clean_files=$ac_clean_files_save
3325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3326$as_echo_n "checking for suffix of object files... " >&6; }
3327if ${ac_cv_objext+:} false; then :
3328  $as_echo_n "(cached) " >&6
3329else
3330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3331/* end confdefs.h.  */
3332
3333int
3334main ()
3335{
3336
3337  ;
3338  return 0;
3339}
3340_ACEOF
3341rm -f conftest.o conftest.obj
3342if { { ac_try="$ac_compile"
3343case "(($ac_try" in
3344  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3345  *) ac_try_echo=$ac_try;;
3346esac
3347eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3348$as_echo "$ac_try_echo"; } >&5
3349  (eval "$ac_compile") 2>&5
3350  ac_status=$?
3351  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3352  test $ac_status = 0; }; then :
3353  for ac_file in conftest.o conftest.obj conftest.*; do
3354  test -f "$ac_file" || continue;
3355  case $ac_file in
3356    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3357    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3358       break;;
3359  esac
3360done
3361else
3362  $as_echo "$as_me: failed program was:" >&5
3363sed 's/^/| /' conftest.$ac_ext >&5
3364
3365{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3366$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3367as_fn_error $? "cannot compute suffix of object files: cannot compile
3368See \`config.log' for more details" "$LINENO" 5; }
3369fi
3370rm -f conftest.$ac_cv_objext conftest.$ac_ext
3371fi
3372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3373$as_echo "$ac_cv_objext" >&6; }
3374OBJEXT=$ac_cv_objext
3375ac_objext=$OBJEXT
3376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3377$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3378if ${ac_cv_c_compiler_gnu+:} false; then :
3379  $as_echo_n "(cached) " >&6
3380else
3381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382/* end confdefs.h.  */
3383
3384int
3385main ()
3386{
3387#ifndef __GNUC__
3388       choke me
3389#endif
3390
3391  ;
3392  return 0;
3393}
3394_ACEOF
3395if ac_fn_c_try_compile "$LINENO"; then :
3396  ac_compiler_gnu=yes
3397else
3398  ac_compiler_gnu=no
3399fi
3400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3401ac_cv_c_compiler_gnu=$ac_compiler_gnu
3402
3403fi
3404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3405$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3406if test $ac_compiler_gnu = yes; then
3407  GCC=yes
3408else
3409  GCC=
3410fi
3411ac_test_CFLAGS=${CFLAGS+set}
3412ac_save_CFLAGS=$CFLAGS
3413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3414$as_echo_n "checking whether $CC accepts -g... " >&6; }
3415if ${ac_cv_prog_cc_g+:} false; then :
3416  $as_echo_n "(cached) " >&6
3417else
3418  ac_save_c_werror_flag=$ac_c_werror_flag
3419   ac_c_werror_flag=yes
3420   ac_cv_prog_cc_g=no
3421   CFLAGS="-g"
3422   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3423/* end confdefs.h.  */
3424
3425int
3426main ()
3427{
3428
3429  ;
3430  return 0;
3431}
3432_ACEOF
3433if ac_fn_c_try_compile "$LINENO"; then :
3434  ac_cv_prog_cc_g=yes
3435else
3436  CFLAGS=""
3437      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3438/* end confdefs.h.  */
3439
3440int
3441main ()
3442{
3443
3444  ;
3445  return 0;
3446}
3447_ACEOF
3448if ac_fn_c_try_compile "$LINENO"; then :
3449
3450else
3451  ac_c_werror_flag=$ac_save_c_werror_flag
3452	 CFLAGS="-g"
3453	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3454/* end confdefs.h.  */
3455
3456int
3457main ()
3458{
3459
3460  ;
3461  return 0;
3462}
3463_ACEOF
3464if ac_fn_c_try_compile "$LINENO"; then :
3465  ac_cv_prog_cc_g=yes
3466fi
3467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3468fi
3469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3470fi
3471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3472   ac_c_werror_flag=$ac_save_c_werror_flag
3473fi
3474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3475$as_echo "$ac_cv_prog_cc_g" >&6; }
3476if test "$ac_test_CFLAGS" = set; then
3477  CFLAGS=$ac_save_CFLAGS
3478elif test $ac_cv_prog_cc_g = yes; then
3479  if test "$GCC" = yes; then
3480    CFLAGS="-g -O2"
3481  else
3482    CFLAGS="-g"
3483  fi
3484else
3485  if test "$GCC" = yes; then
3486    CFLAGS="-O2"
3487  else
3488    CFLAGS=
3489  fi
3490fi
3491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3492$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3493if ${ac_cv_prog_cc_c89+:} false; then :
3494  $as_echo_n "(cached) " >&6
3495else
3496  ac_cv_prog_cc_c89=no
3497ac_save_CC=$CC
3498cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499/* end confdefs.h.  */
3500#include <stdarg.h>
3501#include <stdio.h>
3502#include <sys/types.h>
3503#include <sys/stat.h>
3504/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3505struct buf { int x; };
3506FILE * (*rcsopen) (struct buf *, struct stat *, int);
3507static char *e (p, i)
3508     char **p;
3509     int i;
3510{
3511  return p[i];
3512}
3513static char *f (char * (*g) (char **, int), char **p, ...)
3514{
3515  char *s;
3516  va_list v;
3517  va_start (v,p);
3518  s = g (p, va_arg (v,int));
3519  va_end (v);
3520  return s;
3521}
3522
3523/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3524   function prototypes and stuff, but not '\xHH' hex character constants.
3525   These don't provoke an error unfortunately, instead are silently treated
3526   as 'x'.  The following induces an error, until -std is added to get
3527   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3528   array size at least.  It's necessary to write '\x00'==0 to get something
3529   that's true only with -std.  */
3530int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3531
3532/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3533   inside strings and character constants.  */
3534#define FOO(x) 'x'
3535int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3536
3537int test (int i, double x);
3538struct s1 {int (*f) (int a);};
3539struct s2 {int (*f) (double a);};
3540int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3541int argc;
3542char **argv;
3543int
3544main ()
3545{
3546return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3547  ;
3548  return 0;
3549}
3550_ACEOF
3551for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3552	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3553do
3554  CC="$ac_save_CC $ac_arg"
3555  if ac_fn_c_try_compile "$LINENO"; then :
3556  ac_cv_prog_cc_c89=$ac_arg
3557fi
3558rm -f core conftest.err conftest.$ac_objext
3559  test "x$ac_cv_prog_cc_c89" != "xno" && break
3560done
3561rm -f conftest.$ac_ext
3562CC=$ac_save_CC
3563
3564fi
3565# AC_CACHE_VAL
3566case "x$ac_cv_prog_cc_c89" in
3567  x)
3568    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3569$as_echo "none needed" >&6; } ;;
3570  xno)
3571    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3572$as_echo "unsupported" >&6; } ;;
3573  *)
3574    CC="$CC $ac_cv_prog_cc_c89"
3575    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3576$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3577esac
3578if test "x$ac_cv_prog_cc_c89" != xno; then :
3579
3580fi
3581
3582ac_ext=c
3583ac_cpp='$CPP $CPPFLAGS'
3584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3586ac_compiler_gnu=$ac_cv_c_compiler_gnu
3587
3588depcc="$CC"   am_compiler_list=
3589
3590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3591$as_echo_n "checking dependency style of $depcc... " >&6; }
3592if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3593  $as_echo_n "(cached) " >&6
3594else
3595  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3596  # We make a subdir and do the tests there.  Otherwise we can end up
3597  # making bogus files that we don't know about and never remove.  For
3598  # instance it was reported that on HP-UX the gcc test will end up
3599  # making a dummy file named `D' -- because `-MD' means `put the output
3600  # in D'.
3601  mkdir conftest.dir
3602  # Copy depcomp to subdir because otherwise we won't find it if we're
3603  # using a relative directory.
3604  cp "$am_depcomp" conftest.dir
3605  cd conftest.dir
3606  # We will build objects and dependencies in a subdirectory because
3607  # it helps to detect inapplicable dependency modes.  For instance
3608  # both Tru64's cc and ICC support -MD to output dependencies as a
3609  # side effect of compilation, but ICC will put the dependencies in
3610  # the current directory while Tru64 will put them in the object
3611  # directory.
3612  mkdir sub
3613
3614  am_cv_CC_dependencies_compiler_type=none
3615  if test "$am_compiler_list" = ""; then
3616     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3617  fi
3618  am__universal=false
3619  case " $depcc " in #(
3620     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3621     esac
3622
3623  for depmode in $am_compiler_list; do
3624    # Setup a source with many dependencies, because some compilers
3625    # like to wrap large dependency lists on column 80 (with \), and
3626    # we should not choose a depcomp mode which is confused by this.
3627    #
3628    # We need to recreate these files for each test, as the compiler may
3629    # overwrite some of them when testing with obscure command lines.
3630    # This happens at least with the AIX C compiler.
3631    : > sub/conftest.c
3632    for i in 1 2 3 4 5 6; do
3633      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3634      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3635      # Solaris 8's {/usr,}/bin/sh.
3636      touch sub/conftst$i.h
3637    done
3638    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3639
3640    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3641    # mode.  It turns out that the SunPro C++ compiler does not properly
3642    # handle `-M -o', and we need to detect this.  Also, some Intel
3643    # versions had trouble with output in subdirs
3644    am__obj=sub/conftest.${OBJEXT-o}
3645    am__minus_obj="-o $am__obj"
3646    case $depmode in
3647    gcc)
3648      # This depmode causes a compiler race in universal mode.
3649      test "$am__universal" = false || continue
3650      ;;
3651    nosideeffect)
3652      # after this tag, mechanisms are not by side-effect, so they'll
3653      # only be used when explicitly requested
3654      if test "x$enable_dependency_tracking" = xyes; then
3655	continue
3656      else
3657	break
3658      fi
3659      ;;
3660    msvisualcpp | msvcmsys)
3661      # This compiler won't grok `-c -o', but also, the minuso test has
3662      # not run yet.  These depmodes are late enough in the game, and
3663      # so weak that their functioning should not be impacted.
3664      am__obj=conftest.${OBJEXT-o}
3665      am__minus_obj=
3666      ;;
3667    none) break ;;
3668    esac
3669    if depmode=$depmode \
3670       source=sub/conftest.c object=$am__obj \
3671       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3672       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3673         >/dev/null 2>conftest.err &&
3674       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3675       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3676       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3677       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3678      # icc doesn't choke on unknown options, it will just issue warnings
3679      # or remarks (even with -Werror).  So we grep stderr for any message
3680      # that says an option was ignored or not supported.
3681      # When given -MP, icc 7.0 and 7.1 complain thusly:
3682      #   icc: Command line warning: ignoring option '-M'; no argument required
3683      # The diagnosis changed in icc 8.0:
3684      #   icc: Command line remark: option '-MP' not supported
3685      if (grep 'ignoring option' conftest.err ||
3686          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3687        am_cv_CC_dependencies_compiler_type=$depmode
3688        break
3689      fi
3690    fi
3691  done
3692
3693  cd ..
3694  rm -rf conftest.dir
3695else
3696  am_cv_CC_dependencies_compiler_type=none
3697fi
3698
3699fi
3700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3701$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3702CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3703
3704 if
3705  test "x$enable_dependency_tracking" != xno \
3706  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3707  am__fastdepCC_TRUE=
3708  am__fastdepCC_FALSE='#'
3709else
3710  am__fastdepCC_TRUE='#'
3711  am__fastdepCC_FALSE=
3712fi
3713
3714
3715   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3716$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3717if ${ac_cv_prog_cc_c99+:} false; then :
3718  $as_echo_n "(cached) " >&6
3719else
3720  ac_cv_prog_cc_c99=no
3721ac_save_CC=$CC
3722cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3723/* end confdefs.h.  */
3724#include <stdarg.h>
3725#include <stdbool.h>
3726#include <stdlib.h>
3727#include <wchar.h>
3728#include <stdio.h>
3729
3730// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3731#define debug(...) fprintf (stderr, __VA_ARGS__)
3732#define showlist(...) puts (#__VA_ARGS__)
3733#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3734static void
3735test_varargs_macros (void)
3736{
3737  int x = 1234;
3738  int y = 5678;
3739  debug ("Flag");
3740  debug ("X = %d\n", x);
3741  showlist (The first, second, and third items.);
3742  report (x>y, "x is %d but y is %d", x, y);
3743}
3744
3745// Check long long types.
3746#define BIG64 18446744073709551615ull
3747#define BIG32 4294967295ul
3748#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3749#if !BIG_OK
3750  your preprocessor is broken;
3751#endif
3752#if BIG_OK
3753#else
3754  your preprocessor is broken;
3755#endif
3756static long long int bignum = -9223372036854775807LL;
3757static unsigned long long int ubignum = BIG64;
3758
3759struct incomplete_array
3760{
3761  int datasize;
3762  double data[];
3763};
3764
3765struct named_init {
3766  int number;
3767  const wchar_t *name;
3768  double average;
3769};
3770
3771typedef const char *ccp;
3772
3773static inline int
3774test_restrict (ccp restrict text)
3775{
3776  // See if C++-style comments work.
3777  // Iterate through items via the restricted pointer.
3778  // Also check for declarations in for loops.
3779  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3780    continue;
3781  return 0;
3782}
3783
3784// Check varargs and va_copy.
3785static void
3786test_varargs (const char *format, ...)
3787{
3788  va_list args;
3789  va_start (args, format);
3790  va_list args_copy;
3791  va_copy (args_copy, args);
3792
3793  const char *str;
3794  int number;
3795  float fnumber;
3796
3797  while (*format)
3798    {
3799      switch (*format++)
3800	{
3801	case 's': // string
3802	  str = va_arg (args_copy, const char *);
3803	  break;
3804	case 'd': // int
3805	  number = va_arg (args_copy, int);
3806	  break;
3807	case 'f': // float
3808	  fnumber = va_arg (args_copy, double);
3809	  break;
3810	default:
3811	  break;
3812	}
3813    }
3814  va_end (args_copy);
3815  va_end (args);
3816}
3817
3818int
3819main ()
3820{
3821
3822  // Check bool.
3823  _Bool success = false;
3824
3825  // Check restrict.
3826  if (test_restrict ("String literal") == 0)
3827    success = true;
3828  char *restrict newvar = "Another string";
3829
3830  // Check varargs.
3831  test_varargs ("s, d' f .", "string", 65, 34.234);
3832  test_varargs_macros ();
3833
3834  // Check flexible array members.
3835  struct incomplete_array *ia =
3836    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3837  ia->datasize = 10;
3838  for (int i = 0; i < ia->datasize; ++i)
3839    ia->data[i] = i * 1.234;
3840
3841  // Check named initializers.
3842  struct named_init ni = {
3843    .number = 34,
3844    .name = L"Test wide string",
3845    .average = 543.34343,
3846  };
3847
3848  ni.number = 58;
3849
3850  int dynamic_array[ni.number];
3851  dynamic_array[ni.number - 1] = 543;
3852
3853  // work around unused variable warnings
3854  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3855	  || dynamic_array[ni.number - 1] != 543);
3856
3857  ;
3858  return 0;
3859}
3860_ACEOF
3861for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3862do
3863  CC="$ac_save_CC $ac_arg"
3864  if ac_fn_c_try_compile "$LINENO"; then :
3865  ac_cv_prog_cc_c99=$ac_arg
3866fi
3867rm -f core conftest.err conftest.$ac_objext
3868  test "x$ac_cv_prog_cc_c99" != "xno" && break
3869done
3870rm -f conftest.$ac_ext
3871CC=$ac_save_CC
3872
3873fi
3874# AC_CACHE_VAL
3875case "x$ac_cv_prog_cc_c99" in
3876  x)
3877    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3878$as_echo "none needed" >&6; } ;;
3879  xno)
3880    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3881$as_echo "unsupported" >&6; } ;;
3882  *)
3883    CC="$CC $ac_cv_prog_cc_c99"
3884    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3885$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3886esac
3887if test "x$ac_cv_prog_cc_c99" != xno; then :
3888
3889fi
3890
3891
3892
3893ac_ext=c
3894ac_cpp='$CPP $CPPFLAGS'
3895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3897ac_compiler_gnu=$ac_cv_c_compiler_gnu
3898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3899$as_echo_n "checking how to run the C preprocessor... " >&6; }
3900# On Suns, sometimes $CPP names a directory.
3901if test -n "$CPP" && test -d "$CPP"; then
3902  CPP=
3903fi
3904if test -z "$CPP"; then
3905  if ${ac_cv_prog_CPP+:} false; then :
3906  $as_echo_n "(cached) " >&6
3907else
3908      # Double quotes because CPP needs to be expanded
3909    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3910    do
3911      ac_preproc_ok=false
3912for ac_c_preproc_warn_flag in '' yes
3913do
3914  # Use a header file that comes with gcc, so configuring glibc
3915  # with a fresh cross-compiler works.
3916  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3917  # <limits.h> exists even on freestanding compilers.
3918  # On the NeXT, cc -E runs the code through the compiler's parser,
3919  # not just through cpp. "Syntax error" is here to catch this case.
3920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3921/* end confdefs.h.  */
3922#ifdef __STDC__
3923# include <limits.h>
3924#else
3925# include <assert.h>
3926#endif
3927		     Syntax error
3928_ACEOF
3929if ac_fn_c_try_cpp "$LINENO"; then :
3930
3931else
3932  # Broken: fails on valid input.
3933continue
3934fi
3935rm -f conftest.err conftest.i conftest.$ac_ext
3936
3937  # OK, works on sane cases.  Now check whether nonexistent headers
3938  # can be detected and how.
3939  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940/* end confdefs.h.  */
3941#include <ac_nonexistent.h>
3942_ACEOF
3943if ac_fn_c_try_cpp "$LINENO"; then :
3944  # Broken: success on invalid input.
3945continue
3946else
3947  # Passes both tests.
3948ac_preproc_ok=:
3949break
3950fi
3951rm -f conftest.err conftest.i conftest.$ac_ext
3952
3953done
3954# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3955rm -f conftest.i conftest.err conftest.$ac_ext
3956if $ac_preproc_ok; then :
3957  break
3958fi
3959
3960    done
3961    ac_cv_prog_CPP=$CPP
3962
3963fi
3964  CPP=$ac_cv_prog_CPP
3965else
3966  ac_cv_prog_CPP=$CPP
3967fi
3968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3969$as_echo "$CPP" >&6; }
3970ac_preproc_ok=false
3971for ac_c_preproc_warn_flag in '' yes
3972do
3973  # Use a header file that comes with gcc, so configuring glibc
3974  # with a fresh cross-compiler works.
3975  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3976  # <limits.h> exists even on freestanding compilers.
3977  # On the NeXT, cc -E runs the code through the compiler's parser,
3978  # not just through cpp. "Syntax error" is here to catch this case.
3979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3980/* end confdefs.h.  */
3981#ifdef __STDC__
3982# include <limits.h>
3983#else
3984# include <assert.h>
3985#endif
3986		     Syntax error
3987_ACEOF
3988if ac_fn_c_try_cpp "$LINENO"; then :
3989
3990else
3991  # Broken: fails on valid input.
3992continue
3993fi
3994rm -f conftest.err conftest.i conftest.$ac_ext
3995
3996  # OK, works on sane cases.  Now check whether nonexistent headers
3997  # can be detected and how.
3998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999/* end confdefs.h.  */
4000#include <ac_nonexistent.h>
4001_ACEOF
4002if ac_fn_c_try_cpp "$LINENO"; then :
4003  # Broken: success on invalid input.
4004continue
4005else
4006  # Passes both tests.
4007ac_preproc_ok=:
4008break
4009fi
4010rm -f conftest.err conftest.i conftest.$ac_ext
4011
4012done
4013# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4014rm -f conftest.i conftest.err conftest.$ac_ext
4015if $ac_preproc_ok; then :
4016
4017else
4018  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4019$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4020as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4021See \`config.log' for more details" "$LINENO" 5; }
4022fi
4023
4024ac_ext=c
4025ac_cpp='$CPP $CPPFLAGS'
4026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4028ac_compiler_gnu=$ac_cv_c_compiler_gnu
4029
4030
4031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4032$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4033if ${ac_cv_path_GREP+:} false; then :
4034  $as_echo_n "(cached) " >&6
4035else
4036  if test -z "$GREP"; then
4037  ac_path_GREP_found=false
4038  # Loop through the user's path and test for each of PROGNAME-LIST
4039  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4040for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4041do
4042  IFS=$as_save_IFS
4043  test -z "$as_dir" && as_dir=.
4044    for ac_prog in grep ggrep; do
4045    for ac_exec_ext in '' $ac_executable_extensions; do
4046      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4047      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4048# Check for GNU ac_path_GREP and select it if it is found.
4049  # Check for GNU $ac_path_GREP
4050case `"$ac_path_GREP" --version 2>&1` in
4051*GNU*)
4052  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4053*)
4054  ac_count=0
4055  $as_echo_n 0123456789 >"conftest.in"
4056  while :
4057  do
4058    cat "conftest.in" "conftest.in" >"conftest.tmp"
4059    mv "conftest.tmp" "conftest.in"
4060    cp "conftest.in" "conftest.nl"
4061    $as_echo 'GREP' >> "conftest.nl"
4062    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4063    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4064    as_fn_arith $ac_count + 1 && ac_count=$as_val
4065    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4066      # Best one so far, save it but keep looking for a better one
4067      ac_cv_path_GREP="$ac_path_GREP"
4068      ac_path_GREP_max=$ac_count
4069    fi
4070    # 10*(2^10) chars as input seems more than enough
4071    test $ac_count -gt 10 && break
4072  done
4073  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4074esac
4075
4076      $ac_path_GREP_found && break 3
4077    done
4078  done
4079  done
4080IFS=$as_save_IFS
4081  if test -z "$ac_cv_path_GREP"; then
4082    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4083  fi
4084else
4085  ac_cv_path_GREP=$GREP
4086fi
4087
4088fi
4089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4090$as_echo "$ac_cv_path_GREP" >&6; }
4091 GREP="$ac_cv_path_GREP"
4092
4093
4094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4095$as_echo_n "checking for egrep... " >&6; }
4096if ${ac_cv_path_EGREP+:} false; then :
4097  $as_echo_n "(cached) " >&6
4098else
4099  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4100   then ac_cv_path_EGREP="$GREP -E"
4101   else
4102     if test -z "$EGREP"; then
4103  ac_path_EGREP_found=false
4104  # Loop through the user's path and test for each of PROGNAME-LIST
4105  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4107do
4108  IFS=$as_save_IFS
4109  test -z "$as_dir" && as_dir=.
4110    for ac_prog in egrep; do
4111    for ac_exec_ext in '' $ac_executable_extensions; do
4112      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4113      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4114# Check for GNU ac_path_EGREP and select it if it is found.
4115  # Check for GNU $ac_path_EGREP
4116case `"$ac_path_EGREP" --version 2>&1` in
4117*GNU*)
4118  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4119*)
4120  ac_count=0
4121  $as_echo_n 0123456789 >"conftest.in"
4122  while :
4123  do
4124    cat "conftest.in" "conftest.in" >"conftest.tmp"
4125    mv "conftest.tmp" "conftest.in"
4126    cp "conftest.in" "conftest.nl"
4127    $as_echo 'EGREP' >> "conftest.nl"
4128    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4129    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4130    as_fn_arith $ac_count + 1 && ac_count=$as_val
4131    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4132      # Best one so far, save it but keep looking for a better one
4133      ac_cv_path_EGREP="$ac_path_EGREP"
4134      ac_path_EGREP_max=$ac_count
4135    fi
4136    # 10*(2^10) chars as input seems more than enough
4137    test $ac_count -gt 10 && break
4138  done
4139  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4140esac
4141
4142      $ac_path_EGREP_found && break 3
4143    done
4144  done
4145  done
4146IFS=$as_save_IFS
4147  if test -z "$ac_cv_path_EGREP"; then
4148    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4149  fi
4150else
4151  ac_cv_path_EGREP=$EGREP
4152fi
4153
4154   fi
4155fi
4156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4157$as_echo "$ac_cv_path_EGREP" >&6; }
4158 EGREP="$ac_cv_path_EGREP"
4159
4160
4161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4162$as_echo_n "checking for ANSI C header files... " >&6; }
4163if ${ac_cv_header_stdc+:} false; then :
4164  $as_echo_n "(cached) " >&6
4165else
4166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167/* end confdefs.h.  */
4168#include <stdlib.h>
4169#include <stdarg.h>
4170#include <string.h>
4171#include <float.h>
4172
4173int
4174main ()
4175{
4176
4177  ;
4178  return 0;
4179}
4180_ACEOF
4181if ac_fn_c_try_compile "$LINENO"; then :
4182  ac_cv_header_stdc=yes
4183else
4184  ac_cv_header_stdc=no
4185fi
4186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4187
4188if test $ac_cv_header_stdc = yes; then
4189  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4191/* end confdefs.h.  */
4192#include <string.h>
4193
4194_ACEOF
4195if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4196  $EGREP "memchr" >/dev/null 2>&1; then :
4197
4198else
4199  ac_cv_header_stdc=no
4200fi
4201rm -f conftest*
4202
4203fi
4204
4205if test $ac_cv_header_stdc = yes; then
4206  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208/* end confdefs.h.  */
4209#include <stdlib.h>
4210
4211_ACEOF
4212if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4213  $EGREP "free" >/dev/null 2>&1; then :
4214
4215else
4216  ac_cv_header_stdc=no
4217fi
4218rm -f conftest*
4219
4220fi
4221
4222if test $ac_cv_header_stdc = yes; then
4223  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4224  if test "$cross_compiling" = yes; then :
4225  :
4226else
4227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4228/* end confdefs.h.  */
4229#include <ctype.h>
4230#include <stdlib.h>
4231#if ((' ' & 0x0FF) == 0x020)
4232# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4233# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4234#else
4235# define ISLOWER(c) \
4236		   (('a' <= (c) && (c) <= 'i') \
4237		     || ('j' <= (c) && (c) <= 'r') \
4238		     || ('s' <= (c) && (c) <= 'z'))
4239# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4240#endif
4241
4242#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4243int
4244main ()
4245{
4246  int i;
4247  for (i = 0; i < 256; i++)
4248    if (XOR (islower (i), ISLOWER (i))
4249	|| toupper (i) != TOUPPER (i))
4250      return 2;
4251  return 0;
4252}
4253_ACEOF
4254if ac_fn_c_try_run "$LINENO"; then :
4255
4256else
4257  ac_cv_header_stdc=no
4258fi
4259rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4260  conftest.$ac_objext conftest.beam conftest.$ac_ext
4261fi
4262
4263fi
4264fi
4265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4266$as_echo "$ac_cv_header_stdc" >&6; }
4267if test $ac_cv_header_stdc = yes; then
4268
4269$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4270
4271fi
4272
4273# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4274for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4275		  inttypes.h stdint.h unistd.h
4276do :
4277  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4278ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4279"
4280if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4281  cat >>confdefs.h <<_ACEOF
4282#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4283_ACEOF
4284
4285fi
4286
4287done
4288
4289
4290
4291
4292
4293
4294ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4295if test "x$ac_cv_have_decl___clang__" = xyes; then :
4296  CLANGCC="yes"
4297else
4298  CLANGCC="no"
4299fi
4300
4301ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4302if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4303  INTELCC="yes"
4304else
4305  INTELCC="no"
4306fi
4307
4308ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4309if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4310  SUNCC="yes"
4311else
4312  SUNCC="no"
4313fi
4314
4315
4316
4317
4318if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4319	if test -n "$ac_tool_prefix"; then
4320  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4321set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4323$as_echo_n "checking for $ac_word... " >&6; }
4324if ${ac_cv_path_PKG_CONFIG+:} false; then :
4325  $as_echo_n "(cached) " >&6
4326else
4327  case $PKG_CONFIG in
4328  [\\/]* | ?:[\\/]*)
4329  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4330  ;;
4331  *)
4332  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333for as_dir in $PATH
4334do
4335  IFS=$as_save_IFS
4336  test -z "$as_dir" && as_dir=.
4337    for ac_exec_ext in '' $ac_executable_extensions; do
4338  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4339    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4340    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4341    break 2
4342  fi
4343done
4344  done
4345IFS=$as_save_IFS
4346
4347  ;;
4348esac
4349fi
4350PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4351if test -n "$PKG_CONFIG"; then
4352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4353$as_echo "$PKG_CONFIG" >&6; }
4354else
4355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4356$as_echo "no" >&6; }
4357fi
4358
4359
4360fi
4361if test -z "$ac_cv_path_PKG_CONFIG"; then
4362  ac_pt_PKG_CONFIG=$PKG_CONFIG
4363  # Extract the first word of "pkg-config", so it can be a program name with args.
4364set dummy pkg-config; ac_word=$2
4365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4366$as_echo_n "checking for $ac_word... " >&6; }
4367if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4368  $as_echo_n "(cached) " >&6
4369else
4370  case $ac_pt_PKG_CONFIG in
4371  [\\/]* | ?:[\\/]*)
4372  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4373  ;;
4374  *)
4375  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376for as_dir in $PATH
4377do
4378  IFS=$as_save_IFS
4379  test -z "$as_dir" && as_dir=.
4380    for ac_exec_ext in '' $ac_executable_extensions; do
4381  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4382    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4383    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4384    break 2
4385  fi
4386done
4387  done
4388IFS=$as_save_IFS
4389
4390  ;;
4391esac
4392fi
4393ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4394if test -n "$ac_pt_PKG_CONFIG"; then
4395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4396$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4397else
4398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4399$as_echo "no" >&6; }
4400fi
4401
4402  if test "x$ac_pt_PKG_CONFIG" = x; then
4403    PKG_CONFIG=""
4404  else
4405    case $cross_compiling:$ac_tool_warned in
4406yes:)
4407{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4408$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4409ac_tool_warned=yes ;;
4410esac
4411    PKG_CONFIG=$ac_pt_PKG_CONFIG
4412  fi
4413else
4414  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4415fi
4416
4417fi
4418if test -n "$PKG_CONFIG"; then
4419	_pkg_min_version=0.9.0
4420	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4421$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4422	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4423		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4424$as_echo "yes" >&6; }
4425	else
4426		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4427$as_echo "no" >&6; }
4428		PKG_CONFIG=""
4429	fi
4430
4431fi
4432# Make sure we can run config.sub.
4433$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4434  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4435
4436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4437$as_echo_n "checking build system type... " >&6; }
4438if ${ac_cv_build+:} false; then :
4439  $as_echo_n "(cached) " >&6
4440else
4441  ac_build_alias=$build_alias
4442test "x$ac_build_alias" = x &&
4443  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4444test "x$ac_build_alias" = x &&
4445  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4446ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4447  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4448
4449fi
4450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4451$as_echo "$ac_cv_build" >&6; }
4452case $ac_cv_build in
4453*-*-*) ;;
4454*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4455esac
4456build=$ac_cv_build
4457ac_save_IFS=$IFS; IFS='-'
4458set x $ac_cv_build
4459shift
4460build_cpu=$1
4461build_vendor=$2
4462shift; shift
4463# Remember, the first character of IFS is used to create $*,
4464# except with old shells:
4465build_os=$*
4466IFS=$ac_save_IFS
4467case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4468
4469
4470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4471$as_echo_n "checking host system type... " >&6; }
4472if ${ac_cv_host+:} false; then :
4473  $as_echo_n "(cached) " >&6
4474else
4475  if test "x$host_alias" = x; then
4476  ac_cv_host=$ac_cv_build
4477else
4478  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4479    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4480fi
4481
4482fi
4483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4484$as_echo "$ac_cv_host" >&6; }
4485case $ac_cv_host in
4486*-*-*) ;;
4487*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4488esac
4489host=$ac_cv_host
4490ac_save_IFS=$IFS; IFS='-'
4491set x $ac_cv_host
4492shift
4493host_cpu=$1
4494host_vendor=$2
4495shift; shift
4496# Remember, the first character of IFS is used to create $*,
4497# except with old shells:
4498host_os=$*
4499IFS=$ac_save_IFS
4500case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4501
4502
4503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4504$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4505if ${ac_cv_path_SED+:} false; then :
4506  $as_echo_n "(cached) " >&6
4507else
4508            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4509     for ac_i in 1 2 3 4 5 6 7; do
4510       ac_script="$ac_script$as_nl$ac_script"
4511     done
4512     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4513     { ac_script=; unset ac_script;}
4514     if test -z "$SED"; then
4515  ac_path_SED_found=false
4516  # Loop through the user's path and test for each of PROGNAME-LIST
4517  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518for as_dir in $PATH
4519do
4520  IFS=$as_save_IFS
4521  test -z "$as_dir" && as_dir=.
4522    for ac_prog in sed gsed; do
4523    for ac_exec_ext in '' $ac_executable_extensions; do
4524      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4525      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4526# Check for GNU ac_path_SED and select it if it is found.
4527  # Check for GNU $ac_path_SED
4528case `"$ac_path_SED" --version 2>&1` in
4529*GNU*)
4530  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4531*)
4532  ac_count=0
4533  $as_echo_n 0123456789 >"conftest.in"
4534  while :
4535  do
4536    cat "conftest.in" "conftest.in" >"conftest.tmp"
4537    mv "conftest.tmp" "conftest.in"
4538    cp "conftest.in" "conftest.nl"
4539    $as_echo '' >> "conftest.nl"
4540    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4541    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4542    as_fn_arith $ac_count + 1 && ac_count=$as_val
4543    if test $ac_count -gt ${ac_path_SED_max-0}; then
4544      # Best one so far, save it but keep looking for a better one
4545      ac_cv_path_SED="$ac_path_SED"
4546      ac_path_SED_max=$ac_count
4547    fi
4548    # 10*(2^10) chars as input seems more than enough
4549    test $ac_count -gt 10 && break
4550  done
4551  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4552esac
4553
4554      $ac_path_SED_found && break 3
4555    done
4556  done
4557  done
4558IFS=$as_save_IFS
4559  if test -z "$ac_cv_path_SED"; then
4560    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4561  fi
4562else
4563  ac_cv_path_SED=$SED
4564fi
4565
4566fi
4567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4568$as_echo "$ac_cv_path_SED" >&6; }
4569 SED="$ac_cv_path_SED"
4570  rm -f conftest.sed
4571
4572
4573
4574
4575
4576
4577# Check whether --enable-selective-werror was given.
4578if test "${enable_selective_werror+set}" = set; then :
4579  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4580else
4581  SELECTIVE_WERROR=yes
4582fi
4583
4584
4585
4586
4587
4588# -v is too short to test reliably with XORG_TESTSET_CFLAG
4589if test "x$SUNCC" = "xyes"; then
4590    BASE_CFLAGS="-v"
4591else
4592    BASE_CFLAGS=""
4593fi
4594
4595# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607xorg_testset_save_CFLAGS="$CFLAGS"
4608
4609if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4610	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4611	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
4612$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
4613if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
4614  $as_echo_n "(cached) " >&6
4615else
4616  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4617/* end confdefs.h.  */
4618int i;
4619_ACEOF
4620if ac_fn_c_try_compile "$LINENO"; then :
4621  xorg_cv_compiler_flag_unknown_warning_option=yes
4622else
4623  xorg_cv_compiler_flag_unknown_warning_option=no
4624fi
4625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4626fi
4627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
4628$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
4629	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
4630	CFLAGS="$xorg_testset_save_CFLAGS"
4631fi
4632
4633if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4634	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4635		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4636	fi
4637	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4638	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
4639$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
4640if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
4641  $as_echo_n "(cached) " >&6
4642else
4643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644/* end confdefs.h.  */
4645int i;
4646_ACEOF
4647if ac_fn_c_try_compile "$LINENO"; then :
4648  xorg_cv_compiler_flag_unused_command_line_argument=yes
4649else
4650  xorg_cv_compiler_flag_unused_command_line_argument=no
4651fi
4652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4653fi
4654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
4655$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
4656	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
4657	CFLAGS="$xorg_testset_save_CFLAGS"
4658fi
4659
4660found="no"
4661
4662	if test $found = "no" ; then
4663		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4664			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4665		fi
4666
4667		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4668			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4669		fi
4670
4671		CFLAGS="$CFLAGS -Wall"
4672
4673		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4674$as_echo_n "checking if $CC supports -Wall... " >&6; }
4675		cacheid=`$as_echo xorg_cv_cc_flag_-Wall`
4676		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4677  $as_echo_n "(cached) " >&6
4678else
4679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4680/* end confdefs.h.  */
4681int i;
4682int
4683main ()
4684{
4685
4686  ;
4687  return 0;
4688}
4689_ACEOF
4690if ac_fn_c_try_link "$LINENO"; then :
4691  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4692else
4693  eval `$as_echo "$cacheid" | $as_tr_sh`=no
4694fi
4695rm -f core conftest.err conftest.$ac_objext \
4696    conftest$ac_exeext conftest.$ac_ext
4697fi
4698
4699
4700		CFLAGS="$xorg_testset_save_CFLAGS"
4701
4702		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
4703		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4704$as_echo "$supported" >&6; }
4705		if test "$supported" = "yes" ; then
4706			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4707			found="yes"
4708		fi
4709	fi
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723xorg_testset_save_CFLAGS="$CFLAGS"
4724
4725if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4726	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4727	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
4728$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
4729if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
4730  $as_echo_n "(cached) " >&6
4731else
4732  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4733/* end confdefs.h.  */
4734int i;
4735_ACEOF
4736if ac_fn_c_try_compile "$LINENO"; then :
4737  xorg_cv_compiler_flag_unknown_warning_option=yes
4738else
4739  xorg_cv_compiler_flag_unknown_warning_option=no
4740fi
4741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4742fi
4743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
4744$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
4745	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
4746	CFLAGS="$xorg_testset_save_CFLAGS"
4747fi
4748
4749if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4750	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4751		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4752	fi
4753	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4754	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
4755$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
4756if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
4757  $as_echo_n "(cached) " >&6
4758else
4759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760/* end confdefs.h.  */
4761int i;
4762_ACEOF
4763if ac_fn_c_try_compile "$LINENO"; then :
4764  xorg_cv_compiler_flag_unused_command_line_argument=yes
4765else
4766  xorg_cv_compiler_flag_unused_command_line_argument=no
4767fi
4768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4769fi
4770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
4771$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
4772	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
4773	CFLAGS="$xorg_testset_save_CFLAGS"
4774fi
4775
4776found="no"
4777
4778	if test $found = "no" ; then
4779		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4780			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4781		fi
4782
4783		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4784			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4785		fi
4786
4787		CFLAGS="$CFLAGS -Wpointer-arith"
4788
4789		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4790$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4791		cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-arith`
4792		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4793  $as_echo_n "(cached) " >&6
4794else
4795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4796/* end confdefs.h.  */
4797int i;
4798int
4799main ()
4800{
4801
4802  ;
4803  return 0;
4804}
4805_ACEOF
4806if ac_fn_c_try_link "$LINENO"; then :
4807  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4808else
4809  eval `$as_echo "$cacheid" | $as_tr_sh`=no
4810fi
4811rm -f core conftest.err conftest.$ac_objext \
4812    conftest$ac_exeext conftest.$ac_ext
4813fi
4814
4815
4816		CFLAGS="$xorg_testset_save_CFLAGS"
4817
4818		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
4819		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4820$as_echo "$supported" >&6; }
4821		if test "$supported" = "yes" ; then
4822			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4823			found="yes"
4824		fi
4825	fi
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839xorg_testset_save_CFLAGS="$CFLAGS"
4840
4841if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4842	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4843	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
4844$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
4845if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
4846  $as_echo_n "(cached) " >&6
4847else
4848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4849/* end confdefs.h.  */
4850int i;
4851_ACEOF
4852if ac_fn_c_try_compile "$LINENO"; then :
4853  xorg_cv_compiler_flag_unknown_warning_option=yes
4854else
4855  xorg_cv_compiler_flag_unknown_warning_option=no
4856fi
4857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4858fi
4859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
4860$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
4861	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
4862	CFLAGS="$xorg_testset_save_CFLAGS"
4863fi
4864
4865if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4866	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4867		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4868	fi
4869	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4870	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
4871$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
4872if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
4873  $as_echo_n "(cached) " >&6
4874else
4875  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4876/* end confdefs.h.  */
4877int i;
4878_ACEOF
4879if ac_fn_c_try_compile "$LINENO"; then :
4880  xorg_cv_compiler_flag_unused_command_line_argument=yes
4881else
4882  xorg_cv_compiler_flag_unused_command_line_argument=no
4883fi
4884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4885fi
4886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
4887$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
4888	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
4889	CFLAGS="$xorg_testset_save_CFLAGS"
4890fi
4891
4892found="no"
4893
4894	if test $found = "no" ; then
4895		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4896			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4897		fi
4898
4899		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4900			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4901		fi
4902
4903		CFLAGS="$CFLAGS -Wmissing-declarations"
4904
4905		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4906$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4907		cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-declarations`
4908		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4909  $as_echo_n "(cached) " >&6
4910else
4911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4912/* end confdefs.h.  */
4913int i;
4914int
4915main ()
4916{
4917
4918  ;
4919  return 0;
4920}
4921_ACEOF
4922if ac_fn_c_try_link "$LINENO"; then :
4923  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4924else
4925  eval `$as_echo "$cacheid" | $as_tr_sh`=no
4926fi
4927rm -f core conftest.err conftest.$ac_objext \
4928    conftest$ac_exeext conftest.$ac_ext
4929fi
4930
4931
4932		CFLAGS="$xorg_testset_save_CFLAGS"
4933
4934		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
4935		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4936$as_echo "$supported" >&6; }
4937		if test "$supported" = "yes" ; then
4938			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4939			found="yes"
4940		fi
4941	fi
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955xorg_testset_save_CFLAGS="$CFLAGS"
4956
4957if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4958	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4959	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
4960$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
4961if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
4962  $as_echo_n "(cached) " >&6
4963else
4964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4965/* end confdefs.h.  */
4966int i;
4967_ACEOF
4968if ac_fn_c_try_compile "$LINENO"; then :
4969  xorg_cv_compiler_flag_unknown_warning_option=yes
4970else
4971  xorg_cv_compiler_flag_unknown_warning_option=no
4972fi
4973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4974fi
4975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
4976$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
4977	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
4978	CFLAGS="$xorg_testset_save_CFLAGS"
4979fi
4980
4981if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4982	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4983		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4984	fi
4985	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4986	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
4987$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
4988if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
4989  $as_echo_n "(cached) " >&6
4990else
4991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992/* end confdefs.h.  */
4993int i;
4994_ACEOF
4995if ac_fn_c_try_compile "$LINENO"; then :
4996  xorg_cv_compiler_flag_unused_command_line_argument=yes
4997else
4998  xorg_cv_compiler_flag_unused_command_line_argument=no
4999fi
5000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5001fi
5002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
5003$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
5004	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
5005	CFLAGS="$xorg_testset_save_CFLAGS"
5006fi
5007
5008found="no"
5009
5010	if test $found = "no" ; then
5011		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5012			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5013		fi
5014
5015		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5016			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5017		fi
5018
5019		CFLAGS="$CFLAGS -Wformat=2"
5020
5021		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5022$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5023		cacheid=`$as_echo xorg_cv_cc_flag_-Wformat=2`
5024		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5025  $as_echo_n "(cached) " >&6
5026else
5027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5028/* end confdefs.h.  */
5029int i;
5030int
5031main ()
5032{
5033
5034  ;
5035  return 0;
5036}
5037_ACEOF
5038if ac_fn_c_try_link "$LINENO"; then :
5039  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5040else
5041  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5042fi
5043rm -f core conftest.err conftest.$ac_objext \
5044    conftest$ac_exeext conftest.$ac_ext
5045fi
5046
5047
5048		CFLAGS="$xorg_testset_save_CFLAGS"
5049
5050		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5051		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5052$as_echo "$supported" >&6; }
5053		if test "$supported" = "yes" ; then
5054			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5055			found="yes"
5056		fi
5057	fi
5058
5059	if test $found = "no" ; then
5060		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5061			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5062		fi
5063
5064		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5065			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5066		fi
5067
5068		CFLAGS="$CFLAGS -Wformat"
5069
5070		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5071$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5072		cacheid=`$as_echo xorg_cv_cc_flag_-Wformat`
5073		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5074  $as_echo_n "(cached) " >&6
5075else
5076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5077/* end confdefs.h.  */
5078int i;
5079int
5080main ()
5081{
5082
5083  ;
5084  return 0;
5085}
5086_ACEOF
5087if ac_fn_c_try_link "$LINENO"; then :
5088  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5089else
5090  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5091fi
5092rm -f core conftest.err conftest.$ac_objext \
5093    conftest$ac_exeext conftest.$ac_ext
5094fi
5095
5096
5097		CFLAGS="$xorg_testset_save_CFLAGS"
5098
5099		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5100		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5101$as_echo "$supported" >&6; }
5102		if test "$supported" = "yes" ; then
5103			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5104			found="yes"
5105		fi
5106	fi
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122xorg_testset_save_CFLAGS="$CFLAGS"
5123
5124if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5125	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5126	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
5127$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
5128if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
5129  $as_echo_n "(cached) " >&6
5130else
5131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5132/* end confdefs.h.  */
5133int i;
5134_ACEOF
5135if ac_fn_c_try_compile "$LINENO"; then :
5136  xorg_cv_compiler_flag_unknown_warning_option=yes
5137else
5138  xorg_cv_compiler_flag_unknown_warning_option=no
5139fi
5140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5141fi
5142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
5143$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
5144	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
5145	CFLAGS="$xorg_testset_save_CFLAGS"
5146fi
5147
5148if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5149	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5150		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5151	fi
5152	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5153	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
5154$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
5155if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
5156  $as_echo_n "(cached) " >&6
5157else
5158  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5159/* end confdefs.h.  */
5160int i;
5161_ACEOF
5162if ac_fn_c_try_compile "$LINENO"; then :
5163  xorg_cv_compiler_flag_unused_command_line_argument=yes
5164else
5165  xorg_cv_compiler_flag_unused_command_line_argument=no
5166fi
5167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5168fi
5169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
5170$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
5171	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
5172	CFLAGS="$xorg_testset_save_CFLAGS"
5173fi
5174
5175found="no"
5176
5177	if test $found = "no" ; then
5178		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5179			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5180		fi
5181
5182		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5183			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5184		fi
5185
5186		CFLAGS="$CFLAGS -Wstrict-prototypes"
5187
5188		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5189$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5190		cacheid=`$as_echo xorg_cv_cc_flag_-Wstrict-prototypes`
5191		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5192  $as_echo_n "(cached) " >&6
5193else
5194  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5195/* end confdefs.h.  */
5196int i;
5197int
5198main ()
5199{
5200
5201  ;
5202  return 0;
5203}
5204_ACEOF
5205if ac_fn_c_try_link "$LINENO"; then :
5206  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5207else
5208  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5209fi
5210rm -f core conftest.err conftest.$ac_objext \
5211    conftest$ac_exeext conftest.$ac_ext
5212fi
5213
5214
5215		CFLAGS="$xorg_testset_save_CFLAGS"
5216
5217		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5218		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5219$as_echo "$supported" >&6; }
5220		if test "$supported" = "yes" ; then
5221			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5222			found="yes"
5223		fi
5224	fi
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238xorg_testset_save_CFLAGS="$CFLAGS"
5239
5240if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5241	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5242	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
5243$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
5244if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
5245  $as_echo_n "(cached) " >&6
5246else
5247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5248/* end confdefs.h.  */
5249int i;
5250_ACEOF
5251if ac_fn_c_try_compile "$LINENO"; then :
5252  xorg_cv_compiler_flag_unknown_warning_option=yes
5253else
5254  xorg_cv_compiler_flag_unknown_warning_option=no
5255fi
5256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5257fi
5258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
5259$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
5260	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
5261	CFLAGS="$xorg_testset_save_CFLAGS"
5262fi
5263
5264if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5265	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5266		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5267	fi
5268	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5269	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
5270$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
5271if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
5272  $as_echo_n "(cached) " >&6
5273else
5274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5275/* end confdefs.h.  */
5276int i;
5277_ACEOF
5278if ac_fn_c_try_compile "$LINENO"; then :
5279  xorg_cv_compiler_flag_unused_command_line_argument=yes
5280else
5281  xorg_cv_compiler_flag_unused_command_line_argument=no
5282fi
5283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5284fi
5285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
5286$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
5287	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
5288	CFLAGS="$xorg_testset_save_CFLAGS"
5289fi
5290
5291found="no"
5292
5293	if test $found = "no" ; then
5294		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5295			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5296		fi
5297
5298		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5299			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5300		fi
5301
5302		CFLAGS="$CFLAGS -Wmissing-prototypes"
5303
5304		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5305$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5306		cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-prototypes`
5307		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5308  $as_echo_n "(cached) " >&6
5309else
5310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5311/* end confdefs.h.  */
5312int i;
5313int
5314main ()
5315{
5316
5317  ;
5318  return 0;
5319}
5320_ACEOF
5321if ac_fn_c_try_link "$LINENO"; then :
5322  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5323else
5324  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5325fi
5326rm -f core conftest.err conftest.$ac_objext \
5327    conftest$ac_exeext conftest.$ac_ext
5328fi
5329
5330
5331		CFLAGS="$xorg_testset_save_CFLAGS"
5332
5333		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5334		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5335$as_echo "$supported" >&6; }
5336		if test "$supported" = "yes" ; then
5337			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5338			found="yes"
5339		fi
5340	fi
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354xorg_testset_save_CFLAGS="$CFLAGS"
5355
5356if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5357	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5358	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
5359$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
5360if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
5361  $as_echo_n "(cached) " >&6
5362else
5363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5364/* end confdefs.h.  */
5365int i;
5366_ACEOF
5367if ac_fn_c_try_compile "$LINENO"; then :
5368  xorg_cv_compiler_flag_unknown_warning_option=yes
5369else
5370  xorg_cv_compiler_flag_unknown_warning_option=no
5371fi
5372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5373fi
5374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
5375$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
5376	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
5377	CFLAGS="$xorg_testset_save_CFLAGS"
5378fi
5379
5380if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5381	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5382		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5383	fi
5384	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5385	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
5386$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
5387if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
5388  $as_echo_n "(cached) " >&6
5389else
5390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5391/* end confdefs.h.  */
5392int i;
5393_ACEOF
5394if ac_fn_c_try_compile "$LINENO"; then :
5395  xorg_cv_compiler_flag_unused_command_line_argument=yes
5396else
5397  xorg_cv_compiler_flag_unused_command_line_argument=no
5398fi
5399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5400fi
5401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
5402$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
5403	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
5404	CFLAGS="$xorg_testset_save_CFLAGS"
5405fi
5406
5407found="no"
5408
5409	if test $found = "no" ; then
5410		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5411			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5412		fi
5413
5414		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5415			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5416		fi
5417
5418		CFLAGS="$CFLAGS -Wnested-externs"
5419
5420		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5421$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5422		cacheid=`$as_echo xorg_cv_cc_flag_-Wnested-externs`
5423		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5424  $as_echo_n "(cached) " >&6
5425else
5426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5427/* end confdefs.h.  */
5428int i;
5429int
5430main ()
5431{
5432
5433  ;
5434  return 0;
5435}
5436_ACEOF
5437if ac_fn_c_try_link "$LINENO"; then :
5438  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5439else
5440  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5441fi
5442rm -f core conftest.err conftest.$ac_objext \
5443    conftest$ac_exeext conftest.$ac_ext
5444fi
5445
5446
5447		CFLAGS="$xorg_testset_save_CFLAGS"
5448
5449		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5450		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5451$as_echo "$supported" >&6; }
5452		if test "$supported" = "yes" ; then
5453			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5454			found="yes"
5455		fi
5456	fi
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470xorg_testset_save_CFLAGS="$CFLAGS"
5471
5472if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5473	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5474	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
5475$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
5476if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
5477  $as_echo_n "(cached) " >&6
5478else
5479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480/* end confdefs.h.  */
5481int i;
5482_ACEOF
5483if ac_fn_c_try_compile "$LINENO"; then :
5484  xorg_cv_compiler_flag_unknown_warning_option=yes
5485else
5486  xorg_cv_compiler_flag_unknown_warning_option=no
5487fi
5488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5489fi
5490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
5491$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
5492	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
5493	CFLAGS="$xorg_testset_save_CFLAGS"
5494fi
5495
5496if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5497	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5498		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5499	fi
5500	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5501	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
5502$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
5503if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
5504  $as_echo_n "(cached) " >&6
5505else
5506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507/* end confdefs.h.  */
5508int i;
5509_ACEOF
5510if ac_fn_c_try_compile "$LINENO"; then :
5511  xorg_cv_compiler_flag_unused_command_line_argument=yes
5512else
5513  xorg_cv_compiler_flag_unused_command_line_argument=no
5514fi
5515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5516fi
5517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
5518$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
5519	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
5520	CFLAGS="$xorg_testset_save_CFLAGS"
5521fi
5522
5523found="no"
5524
5525	if test $found = "no" ; then
5526		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5527			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5528		fi
5529
5530		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5531			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5532		fi
5533
5534		CFLAGS="$CFLAGS -Wbad-function-cast"
5535
5536		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5537$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5538		cacheid=`$as_echo xorg_cv_cc_flag_-Wbad-function-cast`
5539		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5540  $as_echo_n "(cached) " >&6
5541else
5542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5543/* end confdefs.h.  */
5544int i;
5545int
5546main ()
5547{
5548
5549  ;
5550  return 0;
5551}
5552_ACEOF
5553if ac_fn_c_try_link "$LINENO"; then :
5554  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5555else
5556  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5557fi
5558rm -f core conftest.err conftest.$ac_objext \
5559    conftest$ac_exeext conftest.$ac_ext
5560fi
5561
5562
5563		CFLAGS="$xorg_testset_save_CFLAGS"
5564
5565		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5566		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5567$as_echo "$supported" >&6; }
5568		if test "$supported" = "yes" ; then
5569			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5570			found="yes"
5571		fi
5572	fi
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586xorg_testset_save_CFLAGS="$CFLAGS"
5587
5588if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5589	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5590	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
5591$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
5592if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
5593  $as_echo_n "(cached) " >&6
5594else
5595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5596/* end confdefs.h.  */
5597int i;
5598_ACEOF
5599if ac_fn_c_try_compile "$LINENO"; then :
5600  xorg_cv_compiler_flag_unknown_warning_option=yes
5601else
5602  xorg_cv_compiler_flag_unknown_warning_option=no
5603fi
5604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5605fi
5606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
5607$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
5608	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
5609	CFLAGS="$xorg_testset_save_CFLAGS"
5610fi
5611
5612if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5613	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5614		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5615	fi
5616	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5617	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
5618$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
5619if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
5620  $as_echo_n "(cached) " >&6
5621else
5622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5623/* end confdefs.h.  */
5624int i;
5625_ACEOF
5626if ac_fn_c_try_compile "$LINENO"; then :
5627  xorg_cv_compiler_flag_unused_command_line_argument=yes
5628else
5629  xorg_cv_compiler_flag_unused_command_line_argument=no
5630fi
5631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5632fi
5633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
5634$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
5635	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
5636	CFLAGS="$xorg_testset_save_CFLAGS"
5637fi
5638
5639found="no"
5640
5641	if test $found = "no" ; then
5642		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5643			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5644		fi
5645
5646		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5647			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5648		fi
5649
5650		CFLAGS="$CFLAGS -Wold-style-definition"
5651
5652		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5653$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5654		cacheid=`$as_echo xorg_cv_cc_flag_-Wold-style-definition`
5655		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5656  $as_echo_n "(cached) " >&6
5657else
5658  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5659/* end confdefs.h.  */
5660int i;
5661int
5662main ()
5663{
5664
5665  ;
5666  return 0;
5667}
5668_ACEOF
5669if ac_fn_c_try_link "$LINENO"; then :
5670  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5671else
5672  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5673fi
5674rm -f core conftest.err conftest.$ac_objext \
5675    conftest$ac_exeext conftest.$ac_ext
5676fi
5677
5678
5679		CFLAGS="$xorg_testset_save_CFLAGS"
5680
5681		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5682		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5683$as_echo "$supported" >&6; }
5684		if test "$supported" = "yes" ; then
5685			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5686			found="yes"
5687		fi
5688	fi
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702xorg_testset_save_CFLAGS="$CFLAGS"
5703
5704if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5705	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5706	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
5707$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
5708if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
5709  $as_echo_n "(cached) " >&6
5710else
5711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5712/* end confdefs.h.  */
5713int i;
5714_ACEOF
5715if ac_fn_c_try_compile "$LINENO"; then :
5716  xorg_cv_compiler_flag_unknown_warning_option=yes
5717else
5718  xorg_cv_compiler_flag_unknown_warning_option=no
5719fi
5720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5721fi
5722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
5723$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
5724	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
5725	CFLAGS="$xorg_testset_save_CFLAGS"
5726fi
5727
5728if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5729	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5730		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5731	fi
5732	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5733	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
5734$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
5735if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
5736  $as_echo_n "(cached) " >&6
5737else
5738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5739/* end confdefs.h.  */
5740int i;
5741_ACEOF
5742if ac_fn_c_try_compile "$LINENO"; then :
5743  xorg_cv_compiler_flag_unused_command_line_argument=yes
5744else
5745  xorg_cv_compiler_flag_unused_command_line_argument=no
5746fi
5747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5748fi
5749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
5750$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
5751	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
5752	CFLAGS="$xorg_testset_save_CFLAGS"
5753fi
5754
5755found="no"
5756
5757	if test $found = "no" ; then
5758		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5759			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5760		fi
5761
5762		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5763			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5764		fi
5765
5766		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5767
5768		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5769$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5770		cacheid=`$as_echo xorg_cv_cc_flag_-Wdeclaration-after-statement`
5771		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5772  $as_echo_n "(cached) " >&6
5773else
5774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5775/* end confdefs.h.  */
5776int i;
5777int
5778main ()
5779{
5780
5781  ;
5782  return 0;
5783}
5784_ACEOF
5785if ac_fn_c_try_link "$LINENO"; then :
5786  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5787else
5788  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5789fi
5790rm -f core conftest.err conftest.$ac_objext \
5791    conftest$ac_exeext conftest.$ac_ext
5792fi
5793
5794
5795		CFLAGS="$xorg_testset_save_CFLAGS"
5796
5797		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5798		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5799$as_echo "$supported" >&6; }
5800		if test "$supported" = "yes" ; then
5801			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5802			found="yes"
5803		fi
5804	fi
5805
5806
5807
5808
5809
5810# This chunk adds additional warnings that could catch undesired effects.
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822xorg_testset_save_CFLAGS="$CFLAGS"
5823
5824if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5825	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5826	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
5827$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
5828if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
5829  $as_echo_n "(cached) " >&6
5830else
5831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5832/* end confdefs.h.  */
5833int i;
5834_ACEOF
5835if ac_fn_c_try_compile "$LINENO"; then :
5836  xorg_cv_compiler_flag_unknown_warning_option=yes
5837else
5838  xorg_cv_compiler_flag_unknown_warning_option=no
5839fi
5840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5841fi
5842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
5843$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
5844	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
5845	CFLAGS="$xorg_testset_save_CFLAGS"
5846fi
5847
5848if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5849	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5850		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5851	fi
5852	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5853	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
5854$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
5855if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
5856  $as_echo_n "(cached) " >&6
5857else
5858  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859/* end confdefs.h.  */
5860int i;
5861_ACEOF
5862if ac_fn_c_try_compile "$LINENO"; then :
5863  xorg_cv_compiler_flag_unused_command_line_argument=yes
5864else
5865  xorg_cv_compiler_flag_unused_command_line_argument=no
5866fi
5867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5868fi
5869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
5870$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
5871	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
5872	CFLAGS="$xorg_testset_save_CFLAGS"
5873fi
5874
5875found="no"
5876
5877	if test $found = "no" ; then
5878		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5879			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5880		fi
5881
5882		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5883			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5884		fi
5885
5886		CFLAGS="$CFLAGS -Wunused"
5887
5888		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5889$as_echo_n "checking if $CC supports -Wunused... " >&6; }
5890		cacheid=`$as_echo xorg_cv_cc_flag_-Wunused`
5891		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5892  $as_echo_n "(cached) " >&6
5893else
5894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5895/* end confdefs.h.  */
5896int i;
5897int
5898main ()
5899{
5900
5901  ;
5902  return 0;
5903}
5904_ACEOF
5905if ac_fn_c_try_link "$LINENO"; then :
5906  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5907else
5908  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5909fi
5910rm -f core conftest.err conftest.$ac_objext \
5911    conftest$ac_exeext conftest.$ac_ext
5912fi
5913
5914
5915		CFLAGS="$xorg_testset_save_CFLAGS"
5916
5917		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5918		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5919$as_echo "$supported" >&6; }
5920		if test "$supported" = "yes" ; then
5921			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5922			found="yes"
5923		fi
5924	fi
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938xorg_testset_save_CFLAGS="$CFLAGS"
5939
5940if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5941	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5942	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
5943$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
5944if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
5945  $as_echo_n "(cached) " >&6
5946else
5947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5948/* end confdefs.h.  */
5949int i;
5950_ACEOF
5951if ac_fn_c_try_compile "$LINENO"; then :
5952  xorg_cv_compiler_flag_unknown_warning_option=yes
5953else
5954  xorg_cv_compiler_flag_unknown_warning_option=no
5955fi
5956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5957fi
5958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
5959$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
5960	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
5961	CFLAGS="$xorg_testset_save_CFLAGS"
5962fi
5963
5964if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5965	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5966		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5967	fi
5968	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5969	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
5970$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
5971if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
5972  $as_echo_n "(cached) " >&6
5973else
5974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5975/* end confdefs.h.  */
5976int i;
5977_ACEOF
5978if ac_fn_c_try_compile "$LINENO"; then :
5979  xorg_cv_compiler_flag_unused_command_line_argument=yes
5980else
5981  xorg_cv_compiler_flag_unused_command_line_argument=no
5982fi
5983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5984fi
5985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
5986$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
5987	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
5988	CFLAGS="$xorg_testset_save_CFLAGS"
5989fi
5990
5991found="no"
5992
5993	if test $found = "no" ; then
5994		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5995			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5996		fi
5997
5998		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5999			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6000		fi
6001
6002		CFLAGS="$CFLAGS -Wuninitialized"
6003
6004		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6005$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6006		cacheid=`$as_echo xorg_cv_cc_flag_-Wuninitialized`
6007		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6008  $as_echo_n "(cached) " >&6
6009else
6010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6011/* end confdefs.h.  */
6012int i;
6013int
6014main ()
6015{
6016
6017  ;
6018  return 0;
6019}
6020_ACEOF
6021if ac_fn_c_try_link "$LINENO"; then :
6022  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6023else
6024  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6025fi
6026rm -f core conftest.err conftest.$ac_objext \
6027    conftest$ac_exeext conftest.$ac_ext
6028fi
6029
6030
6031		CFLAGS="$xorg_testset_save_CFLAGS"
6032
6033		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6034		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6035$as_echo "$supported" >&6; }
6036		if test "$supported" = "yes" ; then
6037			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6038			found="yes"
6039		fi
6040	fi
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054xorg_testset_save_CFLAGS="$CFLAGS"
6055
6056if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6057	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6058	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
6059$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
6060if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
6061  $as_echo_n "(cached) " >&6
6062else
6063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6064/* end confdefs.h.  */
6065int i;
6066_ACEOF
6067if ac_fn_c_try_compile "$LINENO"; then :
6068  xorg_cv_compiler_flag_unknown_warning_option=yes
6069else
6070  xorg_cv_compiler_flag_unknown_warning_option=no
6071fi
6072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6073fi
6074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
6075$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
6076	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
6077	CFLAGS="$xorg_testset_save_CFLAGS"
6078fi
6079
6080if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6081	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6082		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6083	fi
6084	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6085	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
6086$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
6087if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
6088  $as_echo_n "(cached) " >&6
6089else
6090  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6091/* end confdefs.h.  */
6092int i;
6093_ACEOF
6094if ac_fn_c_try_compile "$LINENO"; then :
6095  xorg_cv_compiler_flag_unused_command_line_argument=yes
6096else
6097  xorg_cv_compiler_flag_unused_command_line_argument=no
6098fi
6099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6100fi
6101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
6102$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
6103	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
6104	CFLAGS="$xorg_testset_save_CFLAGS"
6105fi
6106
6107found="no"
6108
6109	if test $found = "no" ; then
6110		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6111			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6112		fi
6113
6114		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6115			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6116		fi
6117
6118		CFLAGS="$CFLAGS -Wshadow"
6119
6120		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6121$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6122		cacheid=`$as_echo xorg_cv_cc_flag_-Wshadow`
6123		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6124  $as_echo_n "(cached) " >&6
6125else
6126  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6127/* end confdefs.h.  */
6128int i;
6129int
6130main ()
6131{
6132
6133  ;
6134  return 0;
6135}
6136_ACEOF
6137if ac_fn_c_try_link "$LINENO"; then :
6138  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6139else
6140  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6141fi
6142rm -f core conftest.err conftest.$ac_objext \
6143    conftest$ac_exeext conftest.$ac_ext
6144fi
6145
6146
6147		CFLAGS="$xorg_testset_save_CFLAGS"
6148
6149		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6150		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6151$as_echo "$supported" >&6; }
6152		if test "$supported" = "yes" ; then
6153			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6154			found="yes"
6155		fi
6156	fi
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170xorg_testset_save_CFLAGS="$CFLAGS"
6171
6172if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6173	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6174	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
6175$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
6176if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
6177  $as_echo_n "(cached) " >&6
6178else
6179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6180/* end confdefs.h.  */
6181int i;
6182_ACEOF
6183if ac_fn_c_try_compile "$LINENO"; then :
6184  xorg_cv_compiler_flag_unknown_warning_option=yes
6185else
6186  xorg_cv_compiler_flag_unknown_warning_option=no
6187fi
6188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6189fi
6190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
6191$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
6192	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
6193	CFLAGS="$xorg_testset_save_CFLAGS"
6194fi
6195
6196if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6197	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6198		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6199	fi
6200	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6201	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
6202$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
6203if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
6204  $as_echo_n "(cached) " >&6
6205else
6206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6207/* end confdefs.h.  */
6208int i;
6209_ACEOF
6210if ac_fn_c_try_compile "$LINENO"; then :
6211  xorg_cv_compiler_flag_unused_command_line_argument=yes
6212else
6213  xorg_cv_compiler_flag_unused_command_line_argument=no
6214fi
6215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6216fi
6217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
6218$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
6219	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
6220	CFLAGS="$xorg_testset_save_CFLAGS"
6221fi
6222
6223found="no"
6224
6225	if test $found = "no" ; then
6226		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6227			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6228		fi
6229
6230		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6231			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6232		fi
6233
6234		CFLAGS="$CFLAGS -Wcast-qual"
6235
6236		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6237$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6238		cacheid=`$as_echo xorg_cv_cc_flag_-Wcast-qual`
6239		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6240  $as_echo_n "(cached) " >&6
6241else
6242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6243/* end confdefs.h.  */
6244int i;
6245int
6246main ()
6247{
6248
6249  ;
6250  return 0;
6251}
6252_ACEOF
6253if ac_fn_c_try_link "$LINENO"; then :
6254  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6255else
6256  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6257fi
6258rm -f core conftest.err conftest.$ac_objext \
6259    conftest$ac_exeext conftest.$ac_ext
6260fi
6261
6262
6263		CFLAGS="$xorg_testset_save_CFLAGS"
6264
6265		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6266		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6267$as_echo "$supported" >&6; }
6268		if test "$supported" = "yes" ; then
6269			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6270			found="yes"
6271		fi
6272	fi
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286xorg_testset_save_CFLAGS="$CFLAGS"
6287
6288if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6289	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6290	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
6291$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
6292if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
6293  $as_echo_n "(cached) " >&6
6294else
6295  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6296/* end confdefs.h.  */
6297int i;
6298_ACEOF
6299if ac_fn_c_try_compile "$LINENO"; then :
6300  xorg_cv_compiler_flag_unknown_warning_option=yes
6301else
6302  xorg_cv_compiler_flag_unknown_warning_option=no
6303fi
6304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6305fi
6306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
6307$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
6308	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
6309	CFLAGS="$xorg_testset_save_CFLAGS"
6310fi
6311
6312if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6313	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6314		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6315	fi
6316	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6317	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
6318$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
6319if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
6320  $as_echo_n "(cached) " >&6
6321else
6322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6323/* end confdefs.h.  */
6324int i;
6325_ACEOF
6326if ac_fn_c_try_compile "$LINENO"; then :
6327  xorg_cv_compiler_flag_unused_command_line_argument=yes
6328else
6329  xorg_cv_compiler_flag_unused_command_line_argument=no
6330fi
6331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6332fi
6333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
6334$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
6335	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
6336	CFLAGS="$xorg_testset_save_CFLAGS"
6337fi
6338
6339found="no"
6340
6341	if test $found = "no" ; then
6342		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6343			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6344		fi
6345
6346		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6347			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6348		fi
6349
6350		CFLAGS="$CFLAGS -Wmissing-noreturn"
6351
6352		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6353$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6354		cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-noreturn`
6355		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6356  $as_echo_n "(cached) " >&6
6357else
6358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6359/* end confdefs.h.  */
6360int i;
6361int
6362main ()
6363{
6364
6365  ;
6366  return 0;
6367}
6368_ACEOF
6369if ac_fn_c_try_link "$LINENO"; then :
6370  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6371else
6372  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6373fi
6374rm -f core conftest.err conftest.$ac_objext \
6375    conftest$ac_exeext conftest.$ac_ext
6376fi
6377
6378
6379		CFLAGS="$xorg_testset_save_CFLAGS"
6380
6381		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6382		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6383$as_echo "$supported" >&6; }
6384		if test "$supported" = "yes" ; then
6385			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6386			found="yes"
6387		fi
6388	fi
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402xorg_testset_save_CFLAGS="$CFLAGS"
6403
6404if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6405	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6406	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
6407$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
6408if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
6409  $as_echo_n "(cached) " >&6
6410else
6411  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6412/* end confdefs.h.  */
6413int i;
6414_ACEOF
6415if ac_fn_c_try_compile "$LINENO"; then :
6416  xorg_cv_compiler_flag_unknown_warning_option=yes
6417else
6418  xorg_cv_compiler_flag_unknown_warning_option=no
6419fi
6420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6421fi
6422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
6423$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
6424	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
6425	CFLAGS="$xorg_testset_save_CFLAGS"
6426fi
6427
6428if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6429	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6430		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6431	fi
6432	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6433	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
6434$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
6435if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
6436  $as_echo_n "(cached) " >&6
6437else
6438  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6439/* end confdefs.h.  */
6440int i;
6441_ACEOF
6442if ac_fn_c_try_compile "$LINENO"; then :
6443  xorg_cv_compiler_flag_unused_command_line_argument=yes
6444else
6445  xorg_cv_compiler_flag_unused_command_line_argument=no
6446fi
6447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6448fi
6449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
6450$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
6451	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
6452	CFLAGS="$xorg_testset_save_CFLAGS"
6453fi
6454
6455found="no"
6456
6457	if test $found = "no" ; then
6458		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6459			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6460		fi
6461
6462		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6463			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6464		fi
6465
6466		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6467
6468		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6469$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6470		cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-format-attribute`
6471		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6472  $as_echo_n "(cached) " >&6
6473else
6474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6475/* end confdefs.h.  */
6476int i;
6477int
6478main ()
6479{
6480
6481  ;
6482  return 0;
6483}
6484_ACEOF
6485if ac_fn_c_try_link "$LINENO"; then :
6486  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6487else
6488  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6489fi
6490rm -f core conftest.err conftest.$ac_objext \
6491    conftest$ac_exeext conftest.$ac_ext
6492fi
6493
6494
6495		CFLAGS="$xorg_testset_save_CFLAGS"
6496
6497		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6498		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6499$as_echo "$supported" >&6; }
6500		if test "$supported" = "yes" ; then
6501			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6502			found="yes"
6503		fi
6504	fi
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518xorg_testset_save_CFLAGS="$CFLAGS"
6519
6520if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6521	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6522	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
6523$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
6524if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
6525  $as_echo_n "(cached) " >&6
6526else
6527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6528/* end confdefs.h.  */
6529int i;
6530_ACEOF
6531if ac_fn_c_try_compile "$LINENO"; then :
6532  xorg_cv_compiler_flag_unknown_warning_option=yes
6533else
6534  xorg_cv_compiler_flag_unknown_warning_option=no
6535fi
6536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6537fi
6538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
6539$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
6540	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
6541	CFLAGS="$xorg_testset_save_CFLAGS"
6542fi
6543
6544if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6545	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6546		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6547	fi
6548	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6549	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
6550$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
6551if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
6552  $as_echo_n "(cached) " >&6
6553else
6554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6555/* end confdefs.h.  */
6556int i;
6557_ACEOF
6558if ac_fn_c_try_compile "$LINENO"; then :
6559  xorg_cv_compiler_flag_unused_command_line_argument=yes
6560else
6561  xorg_cv_compiler_flag_unused_command_line_argument=no
6562fi
6563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6564fi
6565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
6566$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
6567	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
6568	CFLAGS="$xorg_testset_save_CFLAGS"
6569fi
6570
6571found="no"
6572
6573	if test $found = "no" ; then
6574		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6575			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6576		fi
6577
6578		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6579			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6580		fi
6581
6582		CFLAGS="$CFLAGS -Wredundant-decls"
6583
6584		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6585$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6586		cacheid=`$as_echo xorg_cv_cc_flag_-Wredundant-decls`
6587		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6588  $as_echo_n "(cached) " >&6
6589else
6590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6591/* end confdefs.h.  */
6592int i;
6593int
6594main ()
6595{
6596
6597  ;
6598  return 0;
6599}
6600_ACEOF
6601if ac_fn_c_try_link "$LINENO"; then :
6602  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6603else
6604  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6605fi
6606rm -f core conftest.err conftest.$ac_objext \
6607    conftest$ac_exeext conftest.$ac_ext
6608fi
6609
6610
6611		CFLAGS="$xorg_testset_save_CFLAGS"
6612
6613		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6614		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6615$as_echo "$supported" >&6; }
6616		if test "$supported" = "yes" ; then
6617			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6618			found="yes"
6619		fi
6620	fi
6621
6622
6623
6624# These are currently disabled because they are noisy.  They will be enabled
6625# in the future once the codebase is sufficiently modernized to silence
6626# them.  For now, I don't want them to drown out the other warnings.
6627# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6628# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6629# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6630
6631# Turn some warnings into errors, so we don't accidently get successful builds
6632# when there are problems that should be fixed.
6633
6634if test "x$SELECTIVE_WERROR" = "xyes" ; then
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646xorg_testset_save_CFLAGS="$CFLAGS"
6647
6648if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6649	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6650	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
6651$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
6652if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
6653  $as_echo_n "(cached) " >&6
6654else
6655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6656/* end confdefs.h.  */
6657int i;
6658_ACEOF
6659if ac_fn_c_try_compile "$LINENO"; then :
6660  xorg_cv_compiler_flag_unknown_warning_option=yes
6661else
6662  xorg_cv_compiler_flag_unknown_warning_option=no
6663fi
6664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6665fi
6666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
6667$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
6668	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
6669	CFLAGS="$xorg_testset_save_CFLAGS"
6670fi
6671
6672if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6673	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6674		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6675	fi
6676	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6677	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
6678$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
6679if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
6680  $as_echo_n "(cached) " >&6
6681else
6682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683/* end confdefs.h.  */
6684int i;
6685_ACEOF
6686if ac_fn_c_try_compile "$LINENO"; then :
6687  xorg_cv_compiler_flag_unused_command_line_argument=yes
6688else
6689  xorg_cv_compiler_flag_unused_command_line_argument=no
6690fi
6691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6692fi
6693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
6694$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
6695	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
6696	CFLAGS="$xorg_testset_save_CFLAGS"
6697fi
6698
6699found="no"
6700
6701	if test $found = "no" ; then
6702		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6703			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6704		fi
6705
6706		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6707			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6708		fi
6709
6710		CFLAGS="$CFLAGS -Werror=implicit"
6711
6712		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6713$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6714		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=implicit`
6715		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6716  $as_echo_n "(cached) " >&6
6717else
6718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6719/* end confdefs.h.  */
6720int i;
6721int
6722main ()
6723{
6724
6725  ;
6726  return 0;
6727}
6728_ACEOF
6729if ac_fn_c_try_link "$LINENO"; then :
6730  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6731else
6732  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6733fi
6734rm -f core conftest.err conftest.$ac_objext \
6735    conftest$ac_exeext conftest.$ac_ext
6736fi
6737
6738
6739		CFLAGS="$xorg_testset_save_CFLAGS"
6740
6741		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6742		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6743$as_echo "$supported" >&6; }
6744		if test "$supported" = "yes" ; then
6745			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6746			found="yes"
6747		fi
6748	fi
6749
6750	if test $found = "no" ; then
6751		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6752			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6753		fi
6754
6755		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6756			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6757		fi
6758
6759		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6760
6761		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6762$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6763		cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED`
6764		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6765  $as_echo_n "(cached) " >&6
6766else
6767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6768/* end confdefs.h.  */
6769int i;
6770int
6771main ()
6772{
6773
6774  ;
6775  return 0;
6776}
6777_ACEOF
6778if ac_fn_c_try_link "$LINENO"; then :
6779  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6780else
6781  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6782fi
6783rm -f core conftest.err conftest.$ac_objext \
6784    conftest$ac_exeext conftest.$ac_ext
6785fi
6786
6787
6788		CFLAGS="$xorg_testset_save_CFLAGS"
6789
6790		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6791		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6792$as_echo "$supported" >&6; }
6793		if test "$supported" = "yes" ; then
6794			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6795			found="yes"
6796		fi
6797	fi
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811xorg_testset_save_CFLAGS="$CFLAGS"
6812
6813if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6814	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6815	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
6816$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
6817if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
6818  $as_echo_n "(cached) " >&6
6819else
6820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6821/* end confdefs.h.  */
6822int i;
6823_ACEOF
6824if ac_fn_c_try_compile "$LINENO"; then :
6825  xorg_cv_compiler_flag_unknown_warning_option=yes
6826else
6827  xorg_cv_compiler_flag_unknown_warning_option=no
6828fi
6829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6830fi
6831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
6832$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
6833	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
6834	CFLAGS="$xorg_testset_save_CFLAGS"
6835fi
6836
6837if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6838	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6839		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6840	fi
6841	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6842	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
6843$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
6844if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
6845  $as_echo_n "(cached) " >&6
6846else
6847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6848/* end confdefs.h.  */
6849int i;
6850_ACEOF
6851if ac_fn_c_try_compile "$LINENO"; then :
6852  xorg_cv_compiler_flag_unused_command_line_argument=yes
6853else
6854  xorg_cv_compiler_flag_unused_command_line_argument=no
6855fi
6856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6857fi
6858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
6859$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
6860	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
6861	CFLAGS="$xorg_testset_save_CFLAGS"
6862fi
6863
6864found="no"
6865
6866	if test $found = "no" ; then
6867		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6868			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6869		fi
6870
6871		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6872			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6873		fi
6874
6875		CFLAGS="$CFLAGS -Werror=nonnull"
6876
6877		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6878$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6879		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=nonnull`
6880		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6881  $as_echo_n "(cached) " >&6
6882else
6883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6884/* end confdefs.h.  */
6885int i;
6886int
6887main ()
6888{
6889
6890  ;
6891  return 0;
6892}
6893_ACEOF
6894if ac_fn_c_try_link "$LINENO"; then :
6895  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6896else
6897  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6898fi
6899rm -f core conftest.err conftest.$ac_objext \
6900    conftest$ac_exeext conftest.$ac_ext
6901fi
6902
6903
6904		CFLAGS="$xorg_testset_save_CFLAGS"
6905
6906		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6907		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6908$as_echo "$supported" >&6; }
6909		if test "$supported" = "yes" ; then
6910			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6911			found="yes"
6912		fi
6913	fi
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927xorg_testset_save_CFLAGS="$CFLAGS"
6928
6929if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6930	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6931	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
6932$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
6933if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
6934  $as_echo_n "(cached) " >&6
6935else
6936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6937/* end confdefs.h.  */
6938int i;
6939_ACEOF
6940if ac_fn_c_try_compile "$LINENO"; then :
6941  xorg_cv_compiler_flag_unknown_warning_option=yes
6942else
6943  xorg_cv_compiler_flag_unknown_warning_option=no
6944fi
6945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6946fi
6947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
6948$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
6949	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
6950	CFLAGS="$xorg_testset_save_CFLAGS"
6951fi
6952
6953if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6954	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6955		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6956	fi
6957	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6958	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
6959$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
6960if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
6961  $as_echo_n "(cached) " >&6
6962else
6963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6964/* end confdefs.h.  */
6965int i;
6966_ACEOF
6967if ac_fn_c_try_compile "$LINENO"; then :
6968  xorg_cv_compiler_flag_unused_command_line_argument=yes
6969else
6970  xorg_cv_compiler_flag_unused_command_line_argument=no
6971fi
6972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6973fi
6974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
6975$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
6976	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
6977	CFLAGS="$xorg_testset_save_CFLAGS"
6978fi
6979
6980found="no"
6981
6982	if test $found = "no" ; then
6983		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6984			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6985		fi
6986
6987		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6988			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6989		fi
6990
6991		CFLAGS="$CFLAGS -Werror=init-self"
6992
6993		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
6994$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
6995		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=init-self`
6996		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6997  $as_echo_n "(cached) " >&6
6998else
6999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7000/* end confdefs.h.  */
7001int i;
7002int
7003main ()
7004{
7005
7006  ;
7007  return 0;
7008}
7009_ACEOF
7010if ac_fn_c_try_link "$LINENO"; then :
7011  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7012else
7013  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7014fi
7015rm -f core conftest.err conftest.$ac_objext \
7016    conftest$ac_exeext conftest.$ac_ext
7017fi
7018
7019
7020		CFLAGS="$xorg_testset_save_CFLAGS"
7021
7022		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7023		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7024$as_echo "$supported" >&6; }
7025		if test "$supported" = "yes" ; then
7026			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7027			found="yes"
7028		fi
7029	fi
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043xorg_testset_save_CFLAGS="$CFLAGS"
7044
7045if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7046	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7047	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
7048$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
7049if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
7050  $as_echo_n "(cached) " >&6
7051else
7052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7053/* end confdefs.h.  */
7054int i;
7055_ACEOF
7056if ac_fn_c_try_compile "$LINENO"; then :
7057  xorg_cv_compiler_flag_unknown_warning_option=yes
7058else
7059  xorg_cv_compiler_flag_unknown_warning_option=no
7060fi
7061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7062fi
7063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
7064$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
7065	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
7066	CFLAGS="$xorg_testset_save_CFLAGS"
7067fi
7068
7069if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7070	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7071		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7072	fi
7073	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7074	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
7075$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
7076if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
7077  $as_echo_n "(cached) " >&6
7078else
7079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7080/* end confdefs.h.  */
7081int i;
7082_ACEOF
7083if ac_fn_c_try_compile "$LINENO"; then :
7084  xorg_cv_compiler_flag_unused_command_line_argument=yes
7085else
7086  xorg_cv_compiler_flag_unused_command_line_argument=no
7087fi
7088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7089fi
7090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
7091$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
7092	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
7093	CFLAGS="$xorg_testset_save_CFLAGS"
7094fi
7095
7096found="no"
7097
7098	if test $found = "no" ; then
7099		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7100			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7101		fi
7102
7103		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7104			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7105		fi
7106
7107		CFLAGS="$CFLAGS -Werror=main"
7108
7109		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7110$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7111		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=main`
7112		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7113  $as_echo_n "(cached) " >&6
7114else
7115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7116/* end confdefs.h.  */
7117int i;
7118int
7119main ()
7120{
7121
7122  ;
7123  return 0;
7124}
7125_ACEOF
7126if ac_fn_c_try_link "$LINENO"; then :
7127  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7128else
7129  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7130fi
7131rm -f core conftest.err conftest.$ac_objext \
7132    conftest$ac_exeext conftest.$ac_ext
7133fi
7134
7135
7136		CFLAGS="$xorg_testset_save_CFLAGS"
7137
7138		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7139		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7140$as_echo "$supported" >&6; }
7141		if test "$supported" = "yes" ; then
7142			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7143			found="yes"
7144		fi
7145	fi
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159xorg_testset_save_CFLAGS="$CFLAGS"
7160
7161if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7162	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7163	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
7164$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
7165if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
7166  $as_echo_n "(cached) " >&6
7167else
7168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7169/* end confdefs.h.  */
7170int i;
7171_ACEOF
7172if ac_fn_c_try_compile "$LINENO"; then :
7173  xorg_cv_compiler_flag_unknown_warning_option=yes
7174else
7175  xorg_cv_compiler_flag_unknown_warning_option=no
7176fi
7177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7178fi
7179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
7180$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
7181	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
7182	CFLAGS="$xorg_testset_save_CFLAGS"
7183fi
7184
7185if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7186	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7187		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7188	fi
7189	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7190	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
7191$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
7192if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
7193  $as_echo_n "(cached) " >&6
7194else
7195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7196/* end confdefs.h.  */
7197int i;
7198_ACEOF
7199if ac_fn_c_try_compile "$LINENO"; then :
7200  xorg_cv_compiler_flag_unused_command_line_argument=yes
7201else
7202  xorg_cv_compiler_flag_unused_command_line_argument=no
7203fi
7204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7205fi
7206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
7207$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
7208	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
7209	CFLAGS="$xorg_testset_save_CFLAGS"
7210fi
7211
7212found="no"
7213
7214	if test $found = "no" ; then
7215		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7216			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7217		fi
7218
7219		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7220			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7221		fi
7222
7223		CFLAGS="$CFLAGS -Werror=missing-braces"
7224
7225		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7226$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7227		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=missing-braces`
7228		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7229  $as_echo_n "(cached) " >&6
7230else
7231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7232/* end confdefs.h.  */
7233int i;
7234int
7235main ()
7236{
7237
7238  ;
7239  return 0;
7240}
7241_ACEOF
7242if ac_fn_c_try_link "$LINENO"; then :
7243  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7244else
7245  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7246fi
7247rm -f core conftest.err conftest.$ac_objext \
7248    conftest$ac_exeext conftest.$ac_ext
7249fi
7250
7251
7252		CFLAGS="$xorg_testset_save_CFLAGS"
7253
7254		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7255		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7256$as_echo "$supported" >&6; }
7257		if test "$supported" = "yes" ; then
7258			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7259			found="yes"
7260		fi
7261	fi
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275xorg_testset_save_CFLAGS="$CFLAGS"
7276
7277if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7278	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7279	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
7280$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
7281if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
7282  $as_echo_n "(cached) " >&6
7283else
7284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7285/* end confdefs.h.  */
7286int i;
7287_ACEOF
7288if ac_fn_c_try_compile "$LINENO"; then :
7289  xorg_cv_compiler_flag_unknown_warning_option=yes
7290else
7291  xorg_cv_compiler_flag_unknown_warning_option=no
7292fi
7293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7294fi
7295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
7296$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
7297	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
7298	CFLAGS="$xorg_testset_save_CFLAGS"
7299fi
7300
7301if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7302	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7303		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7304	fi
7305	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7306	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
7307$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
7308if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
7309  $as_echo_n "(cached) " >&6
7310else
7311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7312/* end confdefs.h.  */
7313int i;
7314_ACEOF
7315if ac_fn_c_try_compile "$LINENO"; then :
7316  xorg_cv_compiler_flag_unused_command_line_argument=yes
7317else
7318  xorg_cv_compiler_flag_unused_command_line_argument=no
7319fi
7320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7321fi
7322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
7323$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
7324	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
7325	CFLAGS="$xorg_testset_save_CFLAGS"
7326fi
7327
7328found="no"
7329
7330	if test $found = "no" ; then
7331		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7332			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7333		fi
7334
7335		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7336			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7337		fi
7338
7339		CFLAGS="$CFLAGS -Werror=sequence-point"
7340
7341		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7342$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7343		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=sequence-point`
7344		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7345  $as_echo_n "(cached) " >&6
7346else
7347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7348/* end confdefs.h.  */
7349int i;
7350int
7351main ()
7352{
7353
7354  ;
7355  return 0;
7356}
7357_ACEOF
7358if ac_fn_c_try_link "$LINENO"; then :
7359  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7360else
7361  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7362fi
7363rm -f core conftest.err conftest.$ac_objext \
7364    conftest$ac_exeext conftest.$ac_ext
7365fi
7366
7367
7368		CFLAGS="$xorg_testset_save_CFLAGS"
7369
7370		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7371		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7372$as_echo "$supported" >&6; }
7373		if test "$supported" = "yes" ; then
7374			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7375			found="yes"
7376		fi
7377	fi
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391xorg_testset_save_CFLAGS="$CFLAGS"
7392
7393if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7394	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7395	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
7396$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
7397if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
7398  $as_echo_n "(cached) " >&6
7399else
7400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7401/* end confdefs.h.  */
7402int i;
7403_ACEOF
7404if ac_fn_c_try_compile "$LINENO"; then :
7405  xorg_cv_compiler_flag_unknown_warning_option=yes
7406else
7407  xorg_cv_compiler_flag_unknown_warning_option=no
7408fi
7409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7410fi
7411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
7412$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
7413	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
7414	CFLAGS="$xorg_testset_save_CFLAGS"
7415fi
7416
7417if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7418	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7419		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7420	fi
7421	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7422	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
7423$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
7424if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
7425  $as_echo_n "(cached) " >&6
7426else
7427  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7428/* end confdefs.h.  */
7429int i;
7430_ACEOF
7431if ac_fn_c_try_compile "$LINENO"; then :
7432  xorg_cv_compiler_flag_unused_command_line_argument=yes
7433else
7434  xorg_cv_compiler_flag_unused_command_line_argument=no
7435fi
7436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7437fi
7438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
7439$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
7440	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
7441	CFLAGS="$xorg_testset_save_CFLAGS"
7442fi
7443
7444found="no"
7445
7446	if test $found = "no" ; then
7447		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7448			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7449		fi
7450
7451		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7452			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7453		fi
7454
7455		CFLAGS="$CFLAGS -Werror=return-type"
7456
7457		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7458$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7459		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=return-type`
7460		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7461  $as_echo_n "(cached) " >&6
7462else
7463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7464/* end confdefs.h.  */
7465int i;
7466int
7467main ()
7468{
7469
7470  ;
7471  return 0;
7472}
7473_ACEOF
7474if ac_fn_c_try_link "$LINENO"; then :
7475  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7476else
7477  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7478fi
7479rm -f core conftest.err conftest.$ac_objext \
7480    conftest$ac_exeext conftest.$ac_ext
7481fi
7482
7483
7484		CFLAGS="$xorg_testset_save_CFLAGS"
7485
7486		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7487		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7488$as_echo "$supported" >&6; }
7489		if test "$supported" = "yes" ; then
7490			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7491			found="yes"
7492		fi
7493	fi
7494
7495	if test $found = "no" ; then
7496		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7497			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7498		fi
7499
7500		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7501			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7502		fi
7503
7504		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7505
7506		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7507$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7508		cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT`
7509		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7510  $as_echo_n "(cached) " >&6
7511else
7512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7513/* end confdefs.h.  */
7514int i;
7515int
7516main ()
7517{
7518
7519  ;
7520  return 0;
7521}
7522_ACEOF
7523if ac_fn_c_try_link "$LINENO"; then :
7524  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7525else
7526  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7527fi
7528rm -f core conftest.err conftest.$ac_objext \
7529    conftest$ac_exeext conftest.$ac_ext
7530fi
7531
7532
7533		CFLAGS="$xorg_testset_save_CFLAGS"
7534
7535		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7536		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7537$as_echo "$supported" >&6; }
7538		if test "$supported" = "yes" ; then
7539			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7540			found="yes"
7541		fi
7542	fi
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556xorg_testset_save_CFLAGS="$CFLAGS"
7557
7558if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7559	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7560	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
7561$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
7562if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
7563  $as_echo_n "(cached) " >&6
7564else
7565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7566/* end confdefs.h.  */
7567int i;
7568_ACEOF
7569if ac_fn_c_try_compile "$LINENO"; then :
7570  xorg_cv_compiler_flag_unknown_warning_option=yes
7571else
7572  xorg_cv_compiler_flag_unknown_warning_option=no
7573fi
7574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7575fi
7576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
7577$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
7578	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
7579	CFLAGS="$xorg_testset_save_CFLAGS"
7580fi
7581
7582if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7583	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7584		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7585	fi
7586	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7587	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
7588$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
7589if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
7590  $as_echo_n "(cached) " >&6
7591else
7592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7593/* end confdefs.h.  */
7594int i;
7595_ACEOF
7596if ac_fn_c_try_compile "$LINENO"; then :
7597  xorg_cv_compiler_flag_unused_command_line_argument=yes
7598else
7599  xorg_cv_compiler_flag_unused_command_line_argument=no
7600fi
7601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7602fi
7603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
7604$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
7605	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
7606	CFLAGS="$xorg_testset_save_CFLAGS"
7607fi
7608
7609found="no"
7610
7611	if test $found = "no" ; then
7612		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7613			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7614		fi
7615
7616		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7617			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7618		fi
7619
7620		CFLAGS="$CFLAGS -Werror=trigraphs"
7621
7622		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7623$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7624		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=trigraphs`
7625		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7626  $as_echo_n "(cached) " >&6
7627else
7628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7629/* end confdefs.h.  */
7630int i;
7631int
7632main ()
7633{
7634
7635  ;
7636  return 0;
7637}
7638_ACEOF
7639if ac_fn_c_try_link "$LINENO"; then :
7640  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7641else
7642  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7643fi
7644rm -f core conftest.err conftest.$ac_objext \
7645    conftest$ac_exeext conftest.$ac_ext
7646fi
7647
7648
7649		CFLAGS="$xorg_testset_save_CFLAGS"
7650
7651		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7652		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7653$as_echo "$supported" >&6; }
7654		if test "$supported" = "yes" ; then
7655			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7656			found="yes"
7657		fi
7658	fi
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672xorg_testset_save_CFLAGS="$CFLAGS"
7673
7674if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7675	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7676	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
7677$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
7678if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
7679  $as_echo_n "(cached) " >&6
7680else
7681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7682/* end confdefs.h.  */
7683int i;
7684_ACEOF
7685if ac_fn_c_try_compile "$LINENO"; then :
7686  xorg_cv_compiler_flag_unknown_warning_option=yes
7687else
7688  xorg_cv_compiler_flag_unknown_warning_option=no
7689fi
7690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7691fi
7692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
7693$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
7694	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
7695	CFLAGS="$xorg_testset_save_CFLAGS"
7696fi
7697
7698if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7699	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7700		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7701	fi
7702	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7703	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
7704$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
7705if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
7706  $as_echo_n "(cached) " >&6
7707else
7708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7709/* end confdefs.h.  */
7710int i;
7711_ACEOF
7712if ac_fn_c_try_compile "$LINENO"; then :
7713  xorg_cv_compiler_flag_unused_command_line_argument=yes
7714else
7715  xorg_cv_compiler_flag_unused_command_line_argument=no
7716fi
7717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7718fi
7719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
7720$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
7721	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
7722	CFLAGS="$xorg_testset_save_CFLAGS"
7723fi
7724
7725found="no"
7726
7727	if test $found = "no" ; then
7728		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7729			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7730		fi
7731
7732		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7733			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7734		fi
7735
7736		CFLAGS="$CFLAGS -Werror=array-bounds"
7737
7738		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7739$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7740		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=array-bounds`
7741		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7742  $as_echo_n "(cached) " >&6
7743else
7744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7745/* end confdefs.h.  */
7746int i;
7747int
7748main ()
7749{
7750
7751  ;
7752  return 0;
7753}
7754_ACEOF
7755if ac_fn_c_try_link "$LINENO"; then :
7756  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7757else
7758  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7759fi
7760rm -f core conftest.err conftest.$ac_objext \
7761    conftest$ac_exeext conftest.$ac_ext
7762fi
7763
7764
7765		CFLAGS="$xorg_testset_save_CFLAGS"
7766
7767		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7768		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7769$as_echo "$supported" >&6; }
7770		if test "$supported" = "yes" ; then
7771			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7772			found="yes"
7773		fi
7774	fi
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788xorg_testset_save_CFLAGS="$CFLAGS"
7789
7790if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7791	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7792	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
7793$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
7794if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
7795  $as_echo_n "(cached) " >&6
7796else
7797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7798/* end confdefs.h.  */
7799int i;
7800_ACEOF
7801if ac_fn_c_try_compile "$LINENO"; then :
7802  xorg_cv_compiler_flag_unknown_warning_option=yes
7803else
7804  xorg_cv_compiler_flag_unknown_warning_option=no
7805fi
7806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7807fi
7808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
7809$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
7810	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
7811	CFLAGS="$xorg_testset_save_CFLAGS"
7812fi
7813
7814if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7815	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7816		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7817	fi
7818	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7819	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
7820$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
7821if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
7822  $as_echo_n "(cached) " >&6
7823else
7824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7825/* end confdefs.h.  */
7826int i;
7827_ACEOF
7828if ac_fn_c_try_compile "$LINENO"; then :
7829  xorg_cv_compiler_flag_unused_command_line_argument=yes
7830else
7831  xorg_cv_compiler_flag_unused_command_line_argument=no
7832fi
7833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7834fi
7835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
7836$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
7837	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
7838	CFLAGS="$xorg_testset_save_CFLAGS"
7839fi
7840
7841found="no"
7842
7843	if test $found = "no" ; then
7844		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7845			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7846		fi
7847
7848		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7849			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7850		fi
7851
7852		CFLAGS="$CFLAGS -Werror=write-strings"
7853
7854		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7855$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7856		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=write-strings`
7857		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7858  $as_echo_n "(cached) " >&6
7859else
7860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7861/* end confdefs.h.  */
7862int i;
7863int
7864main ()
7865{
7866
7867  ;
7868  return 0;
7869}
7870_ACEOF
7871if ac_fn_c_try_link "$LINENO"; then :
7872  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7873else
7874  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7875fi
7876rm -f core conftest.err conftest.$ac_objext \
7877    conftest$ac_exeext conftest.$ac_ext
7878fi
7879
7880
7881		CFLAGS="$xorg_testset_save_CFLAGS"
7882
7883		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7884		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7885$as_echo "$supported" >&6; }
7886		if test "$supported" = "yes" ; then
7887			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7888			found="yes"
7889		fi
7890	fi
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904xorg_testset_save_CFLAGS="$CFLAGS"
7905
7906if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7907	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7908	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
7909$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
7910if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
7911  $as_echo_n "(cached) " >&6
7912else
7913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7914/* end confdefs.h.  */
7915int i;
7916_ACEOF
7917if ac_fn_c_try_compile "$LINENO"; then :
7918  xorg_cv_compiler_flag_unknown_warning_option=yes
7919else
7920  xorg_cv_compiler_flag_unknown_warning_option=no
7921fi
7922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7923fi
7924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
7925$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
7926	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
7927	CFLAGS="$xorg_testset_save_CFLAGS"
7928fi
7929
7930if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7931	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7932		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7933	fi
7934	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7935	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
7936$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
7937if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
7938  $as_echo_n "(cached) " >&6
7939else
7940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7941/* end confdefs.h.  */
7942int i;
7943_ACEOF
7944if ac_fn_c_try_compile "$LINENO"; then :
7945  xorg_cv_compiler_flag_unused_command_line_argument=yes
7946else
7947  xorg_cv_compiler_flag_unused_command_line_argument=no
7948fi
7949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7950fi
7951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
7952$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
7953	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
7954	CFLAGS="$xorg_testset_save_CFLAGS"
7955fi
7956
7957found="no"
7958
7959	if test $found = "no" ; then
7960		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7961			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7962		fi
7963
7964		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7965			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7966		fi
7967
7968		CFLAGS="$CFLAGS -Werror=address"
7969
7970		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
7971$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
7972		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=address`
7973		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7974  $as_echo_n "(cached) " >&6
7975else
7976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7977/* end confdefs.h.  */
7978int i;
7979int
7980main ()
7981{
7982
7983  ;
7984  return 0;
7985}
7986_ACEOF
7987if ac_fn_c_try_link "$LINENO"; then :
7988  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7989else
7990  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7991fi
7992rm -f core conftest.err conftest.$ac_objext \
7993    conftest$ac_exeext conftest.$ac_ext
7994fi
7995
7996
7997		CFLAGS="$xorg_testset_save_CFLAGS"
7998
7999		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8000		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8001$as_echo "$supported" >&6; }
8002		if test "$supported" = "yes" ; then
8003			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8004			found="yes"
8005		fi
8006	fi
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020xorg_testset_save_CFLAGS="$CFLAGS"
8021
8022if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8023	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8024	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
8025$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
8026if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
8027  $as_echo_n "(cached) " >&6
8028else
8029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8030/* end confdefs.h.  */
8031int i;
8032_ACEOF
8033if ac_fn_c_try_compile "$LINENO"; then :
8034  xorg_cv_compiler_flag_unknown_warning_option=yes
8035else
8036  xorg_cv_compiler_flag_unknown_warning_option=no
8037fi
8038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8039fi
8040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
8041$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
8042	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
8043	CFLAGS="$xorg_testset_save_CFLAGS"
8044fi
8045
8046if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8047	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8048		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8049	fi
8050	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8051	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
8052$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
8053if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
8054  $as_echo_n "(cached) " >&6
8055else
8056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8057/* end confdefs.h.  */
8058int i;
8059_ACEOF
8060if ac_fn_c_try_compile "$LINENO"; then :
8061  xorg_cv_compiler_flag_unused_command_line_argument=yes
8062else
8063  xorg_cv_compiler_flag_unused_command_line_argument=no
8064fi
8065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8066fi
8067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
8068$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
8069	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
8070	CFLAGS="$xorg_testset_save_CFLAGS"
8071fi
8072
8073found="no"
8074
8075	if test $found = "no" ; then
8076		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8077			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8078		fi
8079
8080		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8081			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8082		fi
8083
8084		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8085
8086		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8087$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8088		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=int-to-pointer-cast`
8089		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8090  $as_echo_n "(cached) " >&6
8091else
8092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8093/* end confdefs.h.  */
8094int i;
8095int
8096main ()
8097{
8098
8099  ;
8100  return 0;
8101}
8102_ACEOF
8103if ac_fn_c_try_link "$LINENO"; then :
8104  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8105else
8106  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8107fi
8108rm -f core conftest.err conftest.$ac_objext \
8109    conftest$ac_exeext conftest.$ac_ext
8110fi
8111
8112
8113		CFLAGS="$xorg_testset_save_CFLAGS"
8114
8115		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8116		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8117$as_echo "$supported" >&6; }
8118		if test "$supported" = "yes" ; then
8119			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8120			found="yes"
8121		fi
8122	fi
8123
8124	if test $found = "no" ; then
8125		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8126			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8127		fi
8128
8129		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8130			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8131		fi
8132
8133		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8134
8135		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8136$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8137		cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION`
8138		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8139  $as_echo_n "(cached) " >&6
8140else
8141  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8142/* end confdefs.h.  */
8143int i;
8144int
8145main ()
8146{
8147
8148  ;
8149  return 0;
8150}
8151_ACEOF
8152if ac_fn_c_try_link "$LINENO"; then :
8153  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8154else
8155  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8156fi
8157rm -f core conftest.err conftest.$ac_objext \
8158    conftest$ac_exeext conftest.$ac_ext
8159fi
8160
8161
8162		CFLAGS="$xorg_testset_save_CFLAGS"
8163
8164		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8165		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8166$as_echo "$supported" >&6; }
8167		if test "$supported" = "yes" ; then
8168			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8169			found="yes"
8170		fi
8171	fi
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185xorg_testset_save_CFLAGS="$CFLAGS"
8186
8187if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8188	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8189	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
8190$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
8191if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
8192  $as_echo_n "(cached) " >&6
8193else
8194  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8195/* end confdefs.h.  */
8196int i;
8197_ACEOF
8198if ac_fn_c_try_compile "$LINENO"; then :
8199  xorg_cv_compiler_flag_unknown_warning_option=yes
8200else
8201  xorg_cv_compiler_flag_unknown_warning_option=no
8202fi
8203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8204fi
8205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
8206$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
8207	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
8208	CFLAGS="$xorg_testset_save_CFLAGS"
8209fi
8210
8211if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8212	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8213		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8214	fi
8215	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8216	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
8217$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
8218if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
8219  $as_echo_n "(cached) " >&6
8220else
8221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8222/* end confdefs.h.  */
8223int i;
8224_ACEOF
8225if ac_fn_c_try_compile "$LINENO"; then :
8226  xorg_cv_compiler_flag_unused_command_line_argument=yes
8227else
8228  xorg_cv_compiler_flag_unused_command_line_argument=no
8229fi
8230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8231fi
8232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
8233$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
8234	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
8235	CFLAGS="$xorg_testset_save_CFLAGS"
8236fi
8237
8238found="no"
8239
8240	if test $found = "no" ; then
8241		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8242			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8243		fi
8244
8245		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8246			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8247		fi
8248
8249		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8250
8251		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8252$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8253		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=pointer-to-int-cast`
8254		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8255  $as_echo_n "(cached) " >&6
8256else
8257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8258/* end confdefs.h.  */
8259int i;
8260int
8261main ()
8262{
8263
8264  ;
8265  return 0;
8266}
8267_ACEOF
8268if ac_fn_c_try_link "$LINENO"; then :
8269  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8270else
8271  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8272fi
8273rm -f core conftest.err conftest.$ac_objext \
8274    conftest$ac_exeext conftest.$ac_ext
8275fi
8276
8277
8278		CFLAGS="$xorg_testset_save_CFLAGS"
8279
8280		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8281		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8282$as_echo "$supported" >&6; }
8283		if test "$supported" = "yes" ; then
8284			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8285			found="yes"
8286		fi
8287	fi
8288
8289 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8290else
8291{ $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
8292$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;}
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304xorg_testset_save_CFLAGS="$CFLAGS"
8305
8306if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8307	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8308	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
8309$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
8310if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
8311  $as_echo_n "(cached) " >&6
8312else
8313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8314/* end confdefs.h.  */
8315int i;
8316_ACEOF
8317if ac_fn_c_try_compile "$LINENO"; then :
8318  xorg_cv_compiler_flag_unknown_warning_option=yes
8319else
8320  xorg_cv_compiler_flag_unknown_warning_option=no
8321fi
8322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8323fi
8324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
8325$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
8326	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
8327	CFLAGS="$xorg_testset_save_CFLAGS"
8328fi
8329
8330if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8331	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8332		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8333	fi
8334	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8335	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
8336$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
8337if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
8338  $as_echo_n "(cached) " >&6
8339else
8340  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8341/* end confdefs.h.  */
8342int i;
8343_ACEOF
8344if ac_fn_c_try_compile "$LINENO"; then :
8345  xorg_cv_compiler_flag_unused_command_line_argument=yes
8346else
8347  xorg_cv_compiler_flag_unused_command_line_argument=no
8348fi
8349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8350fi
8351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
8352$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
8353	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
8354	CFLAGS="$xorg_testset_save_CFLAGS"
8355fi
8356
8357found="no"
8358
8359	if test $found = "no" ; then
8360		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8361			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8362		fi
8363
8364		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8365			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8366		fi
8367
8368		CFLAGS="$CFLAGS -Wimplicit"
8369
8370		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8371$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8372		cacheid=`$as_echo xorg_cv_cc_flag_-Wimplicit`
8373		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8374  $as_echo_n "(cached) " >&6
8375else
8376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8377/* end confdefs.h.  */
8378int i;
8379int
8380main ()
8381{
8382
8383  ;
8384  return 0;
8385}
8386_ACEOF
8387if ac_fn_c_try_link "$LINENO"; then :
8388  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8389else
8390  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8391fi
8392rm -f core conftest.err conftest.$ac_objext \
8393    conftest$ac_exeext conftest.$ac_ext
8394fi
8395
8396
8397		CFLAGS="$xorg_testset_save_CFLAGS"
8398
8399		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8400		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8401$as_echo "$supported" >&6; }
8402		if test "$supported" = "yes" ; then
8403			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8404			found="yes"
8405		fi
8406	fi
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420xorg_testset_save_CFLAGS="$CFLAGS"
8421
8422if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8423	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8424	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
8425$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
8426if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
8427  $as_echo_n "(cached) " >&6
8428else
8429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8430/* end confdefs.h.  */
8431int i;
8432_ACEOF
8433if ac_fn_c_try_compile "$LINENO"; then :
8434  xorg_cv_compiler_flag_unknown_warning_option=yes
8435else
8436  xorg_cv_compiler_flag_unknown_warning_option=no
8437fi
8438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8439fi
8440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
8441$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
8442	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
8443	CFLAGS="$xorg_testset_save_CFLAGS"
8444fi
8445
8446if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8447	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8448		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8449	fi
8450	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8451	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
8452$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
8453if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
8454  $as_echo_n "(cached) " >&6
8455else
8456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8457/* end confdefs.h.  */
8458int i;
8459_ACEOF
8460if ac_fn_c_try_compile "$LINENO"; then :
8461  xorg_cv_compiler_flag_unused_command_line_argument=yes
8462else
8463  xorg_cv_compiler_flag_unused_command_line_argument=no
8464fi
8465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8466fi
8467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
8468$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
8469	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
8470	CFLAGS="$xorg_testset_save_CFLAGS"
8471fi
8472
8473found="no"
8474
8475	if test $found = "no" ; then
8476		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8477			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8478		fi
8479
8480		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8481			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8482		fi
8483
8484		CFLAGS="$CFLAGS -Wnonnull"
8485
8486		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8487$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8488		cacheid=`$as_echo xorg_cv_cc_flag_-Wnonnull`
8489		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8490  $as_echo_n "(cached) " >&6
8491else
8492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8493/* end confdefs.h.  */
8494int i;
8495int
8496main ()
8497{
8498
8499  ;
8500  return 0;
8501}
8502_ACEOF
8503if ac_fn_c_try_link "$LINENO"; then :
8504  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8505else
8506  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8507fi
8508rm -f core conftest.err conftest.$ac_objext \
8509    conftest$ac_exeext conftest.$ac_ext
8510fi
8511
8512
8513		CFLAGS="$xorg_testset_save_CFLAGS"
8514
8515		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8516		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8517$as_echo "$supported" >&6; }
8518		if test "$supported" = "yes" ; then
8519			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8520			found="yes"
8521		fi
8522	fi
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536xorg_testset_save_CFLAGS="$CFLAGS"
8537
8538if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8539	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8540	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
8541$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
8542if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
8543  $as_echo_n "(cached) " >&6
8544else
8545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8546/* end confdefs.h.  */
8547int i;
8548_ACEOF
8549if ac_fn_c_try_compile "$LINENO"; then :
8550  xorg_cv_compiler_flag_unknown_warning_option=yes
8551else
8552  xorg_cv_compiler_flag_unknown_warning_option=no
8553fi
8554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8555fi
8556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
8557$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
8558	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
8559	CFLAGS="$xorg_testset_save_CFLAGS"
8560fi
8561
8562if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8563	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8564		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8565	fi
8566	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8567	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
8568$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
8569if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
8570  $as_echo_n "(cached) " >&6
8571else
8572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8573/* end confdefs.h.  */
8574int i;
8575_ACEOF
8576if ac_fn_c_try_compile "$LINENO"; then :
8577  xorg_cv_compiler_flag_unused_command_line_argument=yes
8578else
8579  xorg_cv_compiler_flag_unused_command_line_argument=no
8580fi
8581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8582fi
8583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
8584$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
8585	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
8586	CFLAGS="$xorg_testset_save_CFLAGS"
8587fi
8588
8589found="no"
8590
8591	if test $found = "no" ; then
8592		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8593			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8594		fi
8595
8596		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8597			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8598		fi
8599
8600		CFLAGS="$CFLAGS -Winit-self"
8601
8602		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8603$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8604		cacheid=`$as_echo xorg_cv_cc_flag_-Winit-self`
8605		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8606  $as_echo_n "(cached) " >&6
8607else
8608  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8609/* end confdefs.h.  */
8610int i;
8611int
8612main ()
8613{
8614
8615  ;
8616  return 0;
8617}
8618_ACEOF
8619if ac_fn_c_try_link "$LINENO"; then :
8620  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8621else
8622  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8623fi
8624rm -f core conftest.err conftest.$ac_objext \
8625    conftest$ac_exeext conftest.$ac_ext
8626fi
8627
8628
8629		CFLAGS="$xorg_testset_save_CFLAGS"
8630
8631		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8632		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8633$as_echo "$supported" >&6; }
8634		if test "$supported" = "yes" ; then
8635			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8636			found="yes"
8637		fi
8638	fi
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652xorg_testset_save_CFLAGS="$CFLAGS"
8653
8654if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8655	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8656	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
8657$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
8658if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
8659  $as_echo_n "(cached) " >&6
8660else
8661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8662/* end confdefs.h.  */
8663int i;
8664_ACEOF
8665if ac_fn_c_try_compile "$LINENO"; then :
8666  xorg_cv_compiler_flag_unknown_warning_option=yes
8667else
8668  xorg_cv_compiler_flag_unknown_warning_option=no
8669fi
8670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8671fi
8672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
8673$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
8674	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
8675	CFLAGS="$xorg_testset_save_CFLAGS"
8676fi
8677
8678if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8679	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8680		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8681	fi
8682	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8683	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
8684$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
8685if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
8686  $as_echo_n "(cached) " >&6
8687else
8688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8689/* end confdefs.h.  */
8690int i;
8691_ACEOF
8692if ac_fn_c_try_compile "$LINENO"; then :
8693  xorg_cv_compiler_flag_unused_command_line_argument=yes
8694else
8695  xorg_cv_compiler_flag_unused_command_line_argument=no
8696fi
8697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8698fi
8699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
8700$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
8701	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
8702	CFLAGS="$xorg_testset_save_CFLAGS"
8703fi
8704
8705found="no"
8706
8707	if test $found = "no" ; then
8708		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8709			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8710		fi
8711
8712		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8713			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8714		fi
8715
8716		CFLAGS="$CFLAGS -Wmain"
8717
8718		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8719$as_echo_n "checking if $CC supports -Wmain... " >&6; }
8720		cacheid=`$as_echo xorg_cv_cc_flag_-Wmain`
8721		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8722  $as_echo_n "(cached) " >&6
8723else
8724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8725/* end confdefs.h.  */
8726int i;
8727int
8728main ()
8729{
8730
8731  ;
8732  return 0;
8733}
8734_ACEOF
8735if ac_fn_c_try_link "$LINENO"; then :
8736  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8737else
8738  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8739fi
8740rm -f core conftest.err conftest.$ac_objext \
8741    conftest$ac_exeext conftest.$ac_ext
8742fi
8743
8744
8745		CFLAGS="$xorg_testset_save_CFLAGS"
8746
8747		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8748		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8749$as_echo "$supported" >&6; }
8750		if test "$supported" = "yes" ; then
8751			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8752			found="yes"
8753		fi
8754	fi
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768xorg_testset_save_CFLAGS="$CFLAGS"
8769
8770if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8771	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8772	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
8773$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
8774if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
8775  $as_echo_n "(cached) " >&6
8776else
8777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8778/* end confdefs.h.  */
8779int i;
8780_ACEOF
8781if ac_fn_c_try_compile "$LINENO"; then :
8782  xorg_cv_compiler_flag_unknown_warning_option=yes
8783else
8784  xorg_cv_compiler_flag_unknown_warning_option=no
8785fi
8786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8787fi
8788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
8789$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
8790	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
8791	CFLAGS="$xorg_testset_save_CFLAGS"
8792fi
8793
8794if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8795	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8796		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8797	fi
8798	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8799	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
8800$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
8801if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
8802  $as_echo_n "(cached) " >&6
8803else
8804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8805/* end confdefs.h.  */
8806int i;
8807_ACEOF
8808if ac_fn_c_try_compile "$LINENO"; then :
8809  xorg_cv_compiler_flag_unused_command_line_argument=yes
8810else
8811  xorg_cv_compiler_flag_unused_command_line_argument=no
8812fi
8813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8814fi
8815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
8816$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
8817	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
8818	CFLAGS="$xorg_testset_save_CFLAGS"
8819fi
8820
8821found="no"
8822
8823	if test $found = "no" ; then
8824		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8825			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8826		fi
8827
8828		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8829			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8830		fi
8831
8832		CFLAGS="$CFLAGS -Wmissing-braces"
8833
8834		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8835$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8836		cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-braces`
8837		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8838  $as_echo_n "(cached) " >&6
8839else
8840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8841/* end confdefs.h.  */
8842int i;
8843int
8844main ()
8845{
8846
8847  ;
8848  return 0;
8849}
8850_ACEOF
8851if ac_fn_c_try_link "$LINENO"; then :
8852  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8853else
8854  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8855fi
8856rm -f core conftest.err conftest.$ac_objext \
8857    conftest$ac_exeext conftest.$ac_ext
8858fi
8859
8860
8861		CFLAGS="$xorg_testset_save_CFLAGS"
8862
8863		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8864		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8865$as_echo "$supported" >&6; }
8866		if test "$supported" = "yes" ; then
8867			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8868			found="yes"
8869		fi
8870	fi
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884xorg_testset_save_CFLAGS="$CFLAGS"
8885
8886if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8887	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8888	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
8889$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
8890if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
8891  $as_echo_n "(cached) " >&6
8892else
8893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8894/* end confdefs.h.  */
8895int i;
8896_ACEOF
8897if ac_fn_c_try_compile "$LINENO"; then :
8898  xorg_cv_compiler_flag_unknown_warning_option=yes
8899else
8900  xorg_cv_compiler_flag_unknown_warning_option=no
8901fi
8902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8903fi
8904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
8905$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
8906	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
8907	CFLAGS="$xorg_testset_save_CFLAGS"
8908fi
8909
8910if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8911	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8912		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8913	fi
8914	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8915	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
8916$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
8917if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
8918  $as_echo_n "(cached) " >&6
8919else
8920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8921/* end confdefs.h.  */
8922int i;
8923_ACEOF
8924if ac_fn_c_try_compile "$LINENO"; then :
8925  xorg_cv_compiler_flag_unused_command_line_argument=yes
8926else
8927  xorg_cv_compiler_flag_unused_command_line_argument=no
8928fi
8929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8930fi
8931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
8932$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
8933	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
8934	CFLAGS="$xorg_testset_save_CFLAGS"
8935fi
8936
8937found="no"
8938
8939	if test $found = "no" ; then
8940		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8941			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8942		fi
8943
8944		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8945			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8946		fi
8947
8948		CFLAGS="$CFLAGS -Wsequence-point"
8949
8950		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
8951$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
8952		cacheid=`$as_echo xorg_cv_cc_flag_-Wsequence-point`
8953		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8954  $as_echo_n "(cached) " >&6
8955else
8956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8957/* end confdefs.h.  */
8958int i;
8959int
8960main ()
8961{
8962
8963  ;
8964  return 0;
8965}
8966_ACEOF
8967if ac_fn_c_try_link "$LINENO"; then :
8968  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8969else
8970  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8971fi
8972rm -f core conftest.err conftest.$ac_objext \
8973    conftest$ac_exeext conftest.$ac_ext
8974fi
8975
8976
8977		CFLAGS="$xorg_testset_save_CFLAGS"
8978
8979		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8980		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8981$as_echo "$supported" >&6; }
8982		if test "$supported" = "yes" ; then
8983			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
8984			found="yes"
8985		fi
8986	fi
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000xorg_testset_save_CFLAGS="$CFLAGS"
9001
9002if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9003	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9004	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
9005$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
9006if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
9007  $as_echo_n "(cached) " >&6
9008else
9009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9010/* end confdefs.h.  */
9011int i;
9012_ACEOF
9013if ac_fn_c_try_compile "$LINENO"; then :
9014  xorg_cv_compiler_flag_unknown_warning_option=yes
9015else
9016  xorg_cv_compiler_flag_unknown_warning_option=no
9017fi
9018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9019fi
9020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
9021$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
9022	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
9023	CFLAGS="$xorg_testset_save_CFLAGS"
9024fi
9025
9026if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9027	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9028		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9029	fi
9030	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9031	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
9032$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
9033if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
9034  $as_echo_n "(cached) " >&6
9035else
9036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9037/* end confdefs.h.  */
9038int i;
9039_ACEOF
9040if ac_fn_c_try_compile "$LINENO"; then :
9041  xorg_cv_compiler_flag_unused_command_line_argument=yes
9042else
9043  xorg_cv_compiler_flag_unused_command_line_argument=no
9044fi
9045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9046fi
9047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
9048$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
9049	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
9050	CFLAGS="$xorg_testset_save_CFLAGS"
9051fi
9052
9053found="no"
9054
9055	if test $found = "no" ; then
9056		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9057			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9058		fi
9059
9060		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9061			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9062		fi
9063
9064		CFLAGS="$CFLAGS -Wreturn-type"
9065
9066		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9067$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9068		cacheid=`$as_echo xorg_cv_cc_flag_-Wreturn-type`
9069		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9070  $as_echo_n "(cached) " >&6
9071else
9072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9073/* end confdefs.h.  */
9074int i;
9075int
9076main ()
9077{
9078
9079  ;
9080  return 0;
9081}
9082_ACEOF
9083if ac_fn_c_try_link "$LINENO"; then :
9084  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9085else
9086  eval `$as_echo "$cacheid" | $as_tr_sh`=no
9087fi
9088rm -f core conftest.err conftest.$ac_objext \
9089    conftest$ac_exeext conftest.$ac_ext
9090fi
9091
9092
9093		CFLAGS="$xorg_testset_save_CFLAGS"
9094
9095		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9096		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9097$as_echo "$supported" >&6; }
9098		if test "$supported" = "yes" ; then
9099			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9100			found="yes"
9101		fi
9102	fi
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116xorg_testset_save_CFLAGS="$CFLAGS"
9117
9118if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9119	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9120	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
9121$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
9122if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
9123  $as_echo_n "(cached) " >&6
9124else
9125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9126/* end confdefs.h.  */
9127int i;
9128_ACEOF
9129if ac_fn_c_try_compile "$LINENO"; then :
9130  xorg_cv_compiler_flag_unknown_warning_option=yes
9131else
9132  xorg_cv_compiler_flag_unknown_warning_option=no
9133fi
9134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9135fi
9136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
9137$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
9138	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
9139	CFLAGS="$xorg_testset_save_CFLAGS"
9140fi
9141
9142if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9143	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9144		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9145	fi
9146	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9147	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
9148$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
9149if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
9150  $as_echo_n "(cached) " >&6
9151else
9152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9153/* end confdefs.h.  */
9154int i;
9155_ACEOF
9156if ac_fn_c_try_compile "$LINENO"; then :
9157  xorg_cv_compiler_flag_unused_command_line_argument=yes
9158else
9159  xorg_cv_compiler_flag_unused_command_line_argument=no
9160fi
9161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9162fi
9163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
9164$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
9165	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
9166	CFLAGS="$xorg_testset_save_CFLAGS"
9167fi
9168
9169found="no"
9170
9171	if test $found = "no" ; then
9172		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9173			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9174		fi
9175
9176		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9177			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9178		fi
9179
9180		CFLAGS="$CFLAGS -Wtrigraphs"
9181
9182		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9183$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9184		cacheid=`$as_echo xorg_cv_cc_flag_-Wtrigraphs`
9185		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9186  $as_echo_n "(cached) " >&6
9187else
9188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9189/* end confdefs.h.  */
9190int i;
9191int
9192main ()
9193{
9194
9195  ;
9196  return 0;
9197}
9198_ACEOF
9199if ac_fn_c_try_link "$LINENO"; then :
9200  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9201else
9202  eval `$as_echo "$cacheid" | $as_tr_sh`=no
9203fi
9204rm -f core conftest.err conftest.$ac_objext \
9205    conftest$ac_exeext conftest.$ac_ext
9206fi
9207
9208
9209		CFLAGS="$xorg_testset_save_CFLAGS"
9210
9211		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9212		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9213$as_echo "$supported" >&6; }
9214		if test "$supported" = "yes" ; then
9215			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9216			found="yes"
9217		fi
9218	fi
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232xorg_testset_save_CFLAGS="$CFLAGS"
9233
9234if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9235	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9236	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
9237$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
9238if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
9239  $as_echo_n "(cached) " >&6
9240else
9241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9242/* end confdefs.h.  */
9243int i;
9244_ACEOF
9245if ac_fn_c_try_compile "$LINENO"; then :
9246  xorg_cv_compiler_flag_unknown_warning_option=yes
9247else
9248  xorg_cv_compiler_flag_unknown_warning_option=no
9249fi
9250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9251fi
9252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
9253$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
9254	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
9255	CFLAGS="$xorg_testset_save_CFLAGS"
9256fi
9257
9258if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9259	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9260		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9261	fi
9262	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9263	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
9264$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
9265if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
9266  $as_echo_n "(cached) " >&6
9267else
9268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9269/* end confdefs.h.  */
9270int i;
9271_ACEOF
9272if ac_fn_c_try_compile "$LINENO"; then :
9273  xorg_cv_compiler_flag_unused_command_line_argument=yes
9274else
9275  xorg_cv_compiler_flag_unused_command_line_argument=no
9276fi
9277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9278fi
9279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
9280$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
9281	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
9282	CFLAGS="$xorg_testset_save_CFLAGS"
9283fi
9284
9285found="no"
9286
9287	if test $found = "no" ; then
9288		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9289			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9290		fi
9291
9292		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9293			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9294		fi
9295
9296		CFLAGS="$CFLAGS -Warray-bounds"
9297
9298		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9299$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9300		cacheid=`$as_echo xorg_cv_cc_flag_-Warray-bounds`
9301		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9302  $as_echo_n "(cached) " >&6
9303else
9304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9305/* end confdefs.h.  */
9306int i;
9307int
9308main ()
9309{
9310
9311  ;
9312  return 0;
9313}
9314_ACEOF
9315if ac_fn_c_try_link "$LINENO"; then :
9316  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9317else
9318  eval `$as_echo "$cacheid" | $as_tr_sh`=no
9319fi
9320rm -f core conftest.err conftest.$ac_objext \
9321    conftest$ac_exeext conftest.$ac_ext
9322fi
9323
9324
9325		CFLAGS="$xorg_testset_save_CFLAGS"
9326
9327		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9328		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9329$as_echo "$supported" >&6; }
9330		if test "$supported" = "yes" ; then
9331			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9332			found="yes"
9333		fi
9334	fi
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348xorg_testset_save_CFLAGS="$CFLAGS"
9349
9350if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9351	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9352	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
9353$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
9354if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
9355  $as_echo_n "(cached) " >&6
9356else
9357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9358/* end confdefs.h.  */
9359int i;
9360_ACEOF
9361if ac_fn_c_try_compile "$LINENO"; then :
9362  xorg_cv_compiler_flag_unknown_warning_option=yes
9363else
9364  xorg_cv_compiler_flag_unknown_warning_option=no
9365fi
9366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9367fi
9368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
9369$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
9370	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
9371	CFLAGS="$xorg_testset_save_CFLAGS"
9372fi
9373
9374if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9375	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9376		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9377	fi
9378	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9379	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
9380$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
9381if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
9382  $as_echo_n "(cached) " >&6
9383else
9384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9385/* end confdefs.h.  */
9386int i;
9387_ACEOF
9388if ac_fn_c_try_compile "$LINENO"; then :
9389  xorg_cv_compiler_flag_unused_command_line_argument=yes
9390else
9391  xorg_cv_compiler_flag_unused_command_line_argument=no
9392fi
9393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9394fi
9395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
9396$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
9397	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
9398	CFLAGS="$xorg_testset_save_CFLAGS"
9399fi
9400
9401found="no"
9402
9403	if test $found = "no" ; then
9404		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9405			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9406		fi
9407
9408		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9409			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9410		fi
9411
9412		CFLAGS="$CFLAGS -Wwrite-strings"
9413
9414		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9415$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9416		cacheid=`$as_echo xorg_cv_cc_flag_-Wwrite-strings`
9417		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9418  $as_echo_n "(cached) " >&6
9419else
9420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9421/* end confdefs.h.  */
9422int i;
9423int
9424main ()
9425{
9426
9427  ;
9428  return 0;
9429}
9430_ACEOF
9431if ac_fn_c_try_link "$LINENO"; then :
9432  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9433else
9434  eval `$as_echo "$cacheid" | $as_tr_sh`=no
9435fi
9436rm -f core conftest.err conftest.$ac_objext \
9437    conftest$ac_exeext conftest.$ac_ext
9438fi
9439
9440
9441		CFLAGS="$xorg_testset_save_CFLAGS"
9442
9443		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9444		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9445$as_echo "$supported" >&6; }
9446		if test "$supported" = "yes" ; then
9447			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9448			found="yes"
9449		fi
9450	fi
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464xorg_testset_save_CFLAGS="$CFLAGS"
9465
9466if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9467	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9468	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
9469$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
9470if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
9471  $as_echo_n "(cached) " >&6
9472else
9473  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9474/* end confdefs.h.  */
9475int i;
9476_ACEOF
9477if ac_fn_c_try_compile "$LINENO"; then :
9478  xorg_cv_compiler_flag_unknown_warning_option=yes
9479else
9480  xorg_cv_compiler_flag_unknown_warning_option=no
9481fi
9482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9483fi
9484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
9485$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
9486	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
9487	CFLAGS="$xorg_testset_save_CFLAGS"
9488fi
9489
9490if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9491	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9492		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9493	fi
9494	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9495	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
9496$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
9497if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
9498  $as_echo_n "(cached) " >&6
9499else
9500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9501/* end confdefs.h.  */
9502int i;
9503_ACEOF
9504if ac_fn_c_try_compile "$LINENO"; then :
9505  xorg_cv_compiler_flag_unused_command_line_argument=yes
9506else
9507  xorg_cv_compiler_flag_unused_command_line_argument=no
9508fi
9509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9510fi
9511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
9512$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
9513	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
9514	CFLAGS="$xorg_testset_save_CFLAGS"
9515fi
9516
9517found="no"
9518
9519	if test $found = "no" ; then
9520		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9521			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9522		fi
9523
9524		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9525			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9526		fi
9527
9528		CFLAGS="$CFLAGS -Waddress"
9529
9530		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9531$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9532		cacheid=`$as_echo xorg_cv_cc_flag_-Waddress`
9533		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9534  $as_echo_n "(cached) " >&6
9535else
9536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9537/* end confdefs.h.  */
9538int i;
9539int
9540main ()
9541{
9542
9543  ;
9544  return 0;
9545}
9546_ACEOF
9547if ac_fn_c_try_link "$LINENO"; then :
9548  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9549else
9550  eval `$as_echo "$cacheid" | $as_tr_sh`=no
9551fi
9552rm -f core conftest.err conftest.$ac_objext \
9553    conftest$ac_exeext conftest.$ac_ext
9554fi
9555
9556
9557		CFLAGS="$xorg_testset_save_CFLAGS"
9558
9559		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9560		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9561$as_echo "$supported" >&6; }
9562		if test "$supported" = "yes" ; then
9563			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9564			found="yes"
9565		fi
9566	fi
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580xorg_testset_save_CFLAGS="$CFLAGS"
9581
9582if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9583	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9584	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
9585$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
9586if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
9587  $as_echo_n "(cached) " >&6
9588else
9589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9590/* end confdefs.h.  */
9591int i;
9592_ACEOF
9593if ac_fn_c_try_compile "$LINENO"; then :
9594  xorg_cv_compiler_flag_unknown_warning_option=yes
9595else
9596  xorg_cv_compiler_flag_unknown_warning_option=no
9597fi
9598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9599fi
9600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
9601$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
9602	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
9603	CFLAGS="$xorg_testset_save_CFLAGS"
9604fi
9605
9606if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9607	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9608		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9609	fi
9610	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9611	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
9612$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
9613if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
9614  $as_echo_n "(cached) " >&6
9615else
9616  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9617/* end confdefs.h.  */
9618int i;
9619_ACEOF
9620if ac_fn_c_try_compile "$LINENO"; then :
9621  xorg_cv_compiler_flag_unused_command_line_argument=yes
9622else
9623  xorg_cv_compiler_flag_unused_command_line_argument=no
9624fi
9625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9626fi
9627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
9628$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
9629	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
9630	CFLAGS="$xorg_testset_save_CFLAGS"
9631fi
9632
9633found="no"
9634
9635	if test $found = "no" ; then
9636		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9637			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9638		fi
9639
9640		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9641			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9642		fi
9643
9644		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9645
9646		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9647$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9648		cacheid=`$as_echo xorg_cv_cc_flag_-Wint-to-pointer-cast`
9649		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9650  $as_echo_n "(cached) " >&6
9651else
9652  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9653/* end confdefs.h.  */
9654int i;
9655int
9656main ()
9657{
9658
9659  ;
9660  return 0;
9661}
9662_ACEOF
9663if ac_fn_c_try_link "$LINENO"; then :
9664  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9665else
9666  eval `$as_echo "$cacheid" | $as_tr_sh`=no
9667fi
9668rm -f core conftest.err conftest.$ac_objext \
9669    conftest$ac_exeext conftest.$ac_ext
9670fi
9671
9672
9673		CFLAGS="$xorg_testset_save_CFLAGS"
9674
9675		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9676		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9677$as_echo "$supported" >&6; }
9678		if test "$supported" = "yes" ; then
9679			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9680			found="yes"
9681		fi
9682	fi
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696xorg_testset_save_CFLAGS="$CFLAGS"
9697
9698if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9699	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9700	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
9701$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
9702if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
9703  $as_echo_n "(cached) " >&6
9704else
9705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9706/* end confdefs.h.  */
9707int i;
9708_ACEOF
9709if ac_fn_c_try_compile "$LINENO"; then :
9710  xorg_cv_compiler_flag_unknown_warning_option=yes
9711else
9712  xorg_cv_compiler_flag_unknown_warning_option=no
9713fi
9714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9715fi
9716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
9717$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
9718	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
9719	CFLAGS="$xorg_testset_save_CFLAGS"
9720fi
9721
9722if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9723	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9724		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9725	fi
9726	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9727	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
9728$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
9729if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
9730  $as_echo_n "(cached) " >&6
9731else
9732  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9733/* end confdefs.h.  */
9734int i;
9735_ACEOF
9736if ac_fn_c_try_compile "$LINENO"; then :
9737  xorg_cv_compiler_flag_unused_command_line_argument=yes
9738else
9739  xorg_cv_compiler_flag_unused_command_line_argument=no
9740fi
9741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9742fi
9743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
9744$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
9745	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
9746	CFLAGS="$xorg_testset_save_CFLAGS"
9747fi
9748
9749found="no"
9750
9751	if test $found = "no" ; then
9752		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9753			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9754		fi
9755
9756		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9757			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9758		fi
9759
9760		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9761
9762		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9763$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9764		cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-to-int-cast`
9765		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9766  $as_echo_n "(cached) " >&6
9767else
9768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9769/* end confdefs.h.  */
9770int i;
9771int
9772main ()
9773{
9774
9775  ;
9776  return 0;
9777}
9778_ACEOF
9779if ac_fn_c_try_link "$LINENO"; then :
9780  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9781else
9782  eval `$as_echo "$cacheid" | $as_tr_sh`=no
9783fi
9784rm -f core conftest.err conftest.$ac_objext \
9785    conftest$ac_exeext conftest.$ac_ext
9786fi
9787
9788
9789		CFLAGS="$xorg_testset_save_CFLAGS"
9790
9791		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9792		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9793$as_echo "$supported" >&6; }
9794		if test "$supported" = "yes" ; then
9795			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9796			found="yes"
9797		fi
9798	fi
9799
9800
9801fi
9802
9803
9804
9805
9806
9807
9808
9809		CWARNFLAGS="$BASE_CFLAGS"
9810		if  test "x$GCC" = xyes ; then
9811		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9812		fi
9813
9814
9815
9816
9817
9818
9819
9820
9821# Check whether --enable-strict-compilation was given.
9822if test "${enable_strict_compilation+set}" = set; then :
9823  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9824else
9825  STRICT_COMPILE=no
9826fi
9827
9828
9829
9830
9831
9832
9833STRICT_CFLAGS=""
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845xorg_testset_save_CFLAGS="$CFLAGS"
9846
9847if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9848	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9849	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
9850$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
9851if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
9852  $as_echo_n "(cached) " >&6
9853else
9854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9855/* end confdefs.h.  */
9856int i;
9857_ACEOF
9858if ac_fn_c_try_compile "$LINENO"; then :
9859  xorg_cv_compiler_flag_unknown_warning_option=yes
9860else
9861  xorg_cv_compiler_flag_unknown_warning_option=no
9862fi
9863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9864fi
9865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
9866$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
9867	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
9868	CFLAGS="$xorg_testset_save_CFLAGS"
9869fi
9870
9871if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9872	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9873		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9874	fi
9875	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9876	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
9877$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
9878if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
9879  $as_echo_n "(cached) " >&6
9880else
9881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9882/* end confdefs.h.  */
9883int i;
9884_ACEOF
9885if ac_fn_c_try_compile "$LINENO"; then :
9886  xorg_cv_compiler_flag_unused_command_line_argument=yes
9887else
9888  xorg_cv_compiler_flag_unused_command_line_argument=no
9889fi
9890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9891fi
9892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
9893$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
9894	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
9895	CFLAGS="$xorg_testset_save_CFLAGS"
9896fi
9897
9898found="no"
9899
9900	if test $found = "no" ; then
9901		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9902			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9903		fi
9904
9905		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9906			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9907		fi
9908
9909		CFLAGS="$CFLAGS -pedantic"
9910
9911		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
9912$as_echo_n "checking if $CC supports -pedantic... " >&6; }
9913		cacheid=`$as_echo xorg_cv_cc_flag_-pedantic`
9914		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9915  $as_echo_n "(cached) " >&6
9916else
9917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9918/* end confdefs.h.  */
9919int i;
9920int
9921main ()
9922{
9923
9924  ;
9925  return 0;
9926}
9927_ACEOF
9928if ac_fn_c_try_link "$LINENO"; then :
9929  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9930else
9931  eval `$as_echo "$cacheid" | $as_tr_sh`=no
9932fi
9933rm -f core conftest.err conftest.$ac_objext \
9934    conftest$ac_exeext conftest.$ac_ext
9935fi
9936
9937
9938		CFLAGS="$xorg_testset_save_CFLAGS"
9939
9940		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9941		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9942$as_echo "$supported" >&6; }
9943		if test "$supported" = "yes" ; then
9944			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
9945			found="yes"
9946		fi
9947	fi
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961xorg_testset_save_CFLAGS="$CFLAGS"
9962
9963if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9964	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9965	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
9966$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
9967if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
9968  $as_echo_n "(cached) " >&6
9969else
9970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9971/* end confdefs.h.  */
9972int i;
9973_ACEOF
9974if ac_fn_c_try_compile "$LINENO"; then :
9975  xorg_cv_compiler_flag_unknown_warning_option=yes
9976else
9977  xorg_cv_compiler_flag_unknown_warning_option=no
9978fi
9979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9980fi
9981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
9982$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
9983	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
9984	CFLAGS="$xorg_testset_save_CFLAGS"
9985fi
9986
9987if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9988	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9989		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9990	fi
9991	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9992	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
9993$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
9994if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
9995  $as_echo_n "(cached) " >&6
9996else
9997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9998/* end confdefs.h.  */
9999int i;
10000_ACEOF
10001if ac_fn_c_try_compile "$LINENO"; then :
10002  xorg_cv_compiler_flag_unused_command_line_argument=yes
10003else
10004  xorg_cv_compiler_flag_unused_command_line_argument=no
10005fi
10006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10007fi
10008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
10009$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
10010	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
10011	CFLAGS="$xorg_testset_save_CFLAGS"
10012fi
10013
10014found="no"
10015
10016	if test $found = "no" ; then
10017		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10018			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10019		fi
10020
10021		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10022			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10023		fi
10024
10025		CFLAGS="$CFLAGS -Werror"
10026
10027		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10028$as_echo_n "checking if $CC supports -Werror... " >&6; }
10029		cacheid=`$as_echo xorg_cv_cc_flag_-Werror`
10030		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
10031  $as_echo_n "(cached) " >&6
10032else
10033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10034/* end confdefs.h.  */
10035int i;
10036int
10037main ()
10038{
10039
10040  ;
10041  return 0;
10042}
10043_ACEOF
10044if ac_fn_c_try_link "$LINENO"; then :
10045  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
10046else
10047  eval `$as_echo "$cacheid" | $as_tr_sh`=no
10048fi
10049rm -f core conftest.err conftest.$ac_objext \
10050    conftest$ac_exeext conftest.$ac_ext
10051fi
10052
10053
10054		CFLAGS="$xorg_testset_save_CFLAGS"
10055
10056		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
10057		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10058$as_echo "$supported" >&6; }
10059		if test "$supported" = "yes" ; then
10060			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10061			found="yes"
10062		fi
10063	fi
10064
10065	if test $found = "no" ; then
10066		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10067			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10068		fi
10069
10070		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10071			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10072		fi
10073
10074		CFLAGS="$CFLAGS -errwarn"
10075
10076		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10077$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10078		cacheid=`$as_echo xorg_cv_cc_flag_-errwarn`
10079		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
10080  $as_echo_n "(cached) " >&6
10081else
10082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10083/* end confdefs.h.  */
10084int i;
10085int
10086main ()
10087{
10088
10089  ;
10090  return 0;
10091}
10092_ACEOF
10093if ac_fn_c_try_link "$LINENO"; then :
10094  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
10095else
10096  eval `$as_echo "$cacheid" | $as_tr_sh`=no
10097fi
10098rm -f core conftest.err conftest.$ac_objext \
10099    conftest$ac_exeext conftest.$ac_ext
10100fi
10101
10102
10103		CFLAGS="$xorg_testset_save_CFLAGS"
10104
10105		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
10106		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10107$as_echo "$supported" >&6; }
10108		if test "$supported" = "yes" ; then
10109			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10110			found="yes"
10111		fi
10112	fi
10113
10114
10115
10116# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10117# activate it with -Werror, so we add it here explicitly.
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129xorg_testset_save_CFLAGS="$CFLAGS"
10130
10131if test "x$xorg_testset_unknown_warning_option" = "x" ; then
10132	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10133	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
10134$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
10135if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
10136  $as_echo_n "(cached) " >&6
10137else
10138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10139/* end confdefs.h.  */
10140int i;
10141_ACEOF
10142if ac_fn_c_try_compile "$LINENO"; then :
10143  xorg_cv_compiler_flag_unknown_warning_option=yes
10144else
10145  xorg_cv_compiler_flag_unknown_warning_option=no
10146fi
10147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10148fi
10149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
10150$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
10151	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
10152	CFLAGS="$xorg_testset_save_CFLAGS"
10153fi
10154
10155if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
10156	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10157		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10158	fi
10159	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10160	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
10161$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
10162if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
10163  $as_echo_n "(cached) " >&6
10164else
10165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10166/* end confdefs.h.  */
10167int i;
10168_ACEOF
10169if ac_fn_c_try_compile "$LINENO"; then :
10170  xorg_cv_compiler_flag_unused_command_line_argument=yes
10171else
10172  xorg_cv_compiler_flag_unused_command_line_argument=no
10173fi
10174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10175fi
10176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
10177$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
10178	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
10179	CFLAGS="$xorg_testset_save_CFLAGS"
10180fi
10181
10182found="no"
10183
10184	if test $found = "no" ; then
10185		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10186			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10187		fi
10188
10189		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10190			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10191		fi
10192
10193		CFLAGS="$CFLAGS -Werror=attributes"
10194
10195		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10196$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10197		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=attributes`
10198		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
10199  $as_echo_n "(cached) " >&6
10200else
10201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10202/* end confdefs.h.  */
10203int i;
10204int
10205main ()
10206{
10207
10208  ;
10209  return 0;
10210}
10211_ACEOF
10212if ac_fn_c_try_link "$LINENO"; then :
10213  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
10214else
10215  eval `$as_echo "$cacheid" | $as_tr_sh`=no
10216fi
10217rm -f core conftest.err conftest.$ac_objext \
10218    conftest$ac_exeext conftest.$ac_ext
10219fi
10220
10221
10222		CFLAGS="$xorg_testset_save_CFLAGS"
10223
10224		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
10225		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10226$as_echo "$supported" >&6; }
10227		if test "$supported" = "yes" ; then
10228			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10229			found="yes"
10230		fi
10231	fi
10232
10233
10234
10235if test "x$STRICT_COMPILE" = "xyes"; then
10236    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10237    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10238fi
10239
10240
10241
10242
10243
10244
10245cat >>confdefs.h <<_ACEOF
10246#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10247_ACEOF
10248
10249	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10250	if test "x$PVM" = "x"; then
10251		PVM="0"
10252	fi
10253
10254cat >>confdefs.h <<_ACEOF
10255#define PACKAGE_VERSION_MINOR $PVM
10256_ACEOF
10257
10258	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10259	if test "x$PVP" = "x"; then
10260		PVP="0"
10261	fi
10262
10263cat >>confdefs.h <<_ACEOF
10264#define PACKAGE_VERSION_PATCHLEVEL $PVP
10265_ACEOF
10266
10267
10268
10269CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10270mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10271|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10272echo 'git directory not found: installing possibly empty changelog.' >&2)"
10273
10274
10275
10276
10277macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10278INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10279mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10280|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10281echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10282
10283
10284
10285
10286
10287
10288if test x$APP_MAN_SUFFIX = x    ; then
10289    APP_MAN_SUFFIX=1
10290fi
10291if test x$APP_MAN_DIR = x    ; then
10292    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10293fi
10294
10295if test x$LIB_MAN_SUFFIX = x    ; then
10296    LIB_MAN_SUFFIX=3
10297fi
10298if test x$LIB_MAN_DIR = x    ; then
10299    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10300fi
10301
10302if test x$FILE_MAN_SUFFIX = x    ; then
10303    case $host_os in
10304	solaris*)	FILE_MAN_SUFFIX=4  ;;
10305	*)		FILE_MAN_SUFFIX=5  ;;
10306    esac
10307fi
10308if test x$FILE_MAN_DIR = x    ; then
10309    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10310fi
10311
10312if test x$MISC_MAN_SUFFIX = x    ; then
10313    case $host_os in
10314	solaris*)	MISC_MAN_SUFFIX=5  ;;
10315	*)		MISC_MAN_SUFFIX=7  ;;
10316    esac
10317fi
10318if test x$MISC_MAN_DIR = x    ; then
10319    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10320fi
10321
10322if test x$DRIVER_MAN_SUFFIX = x    ; then
10323    case $host_os in
10324	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10325	*)		DRIVER_MAN_SUFFIX=4  ;;
10326    esac
10327fi
10328if test x$DRIVER_MAN_DIR = x    ; then
10329    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10330fi
10331
10332if test x$ADMIN_MAN_SUFFIX = x    ; then
10333    case $host_os in
10334	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10335	*)		ADMIN_MAN_SUFFIX=8  ;;
10336    esac
10337fi
10338if test x$ADMIN_MAN_DIR = x    ; then
10339    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10340fi
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356XORG_MAN_PAGE="X Version 11"
10357
10358MAN_SUBSTS="\
10359	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10360	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10361	-e 's|__xservername__|Xorg|g' \
10362	-e 's|__xconfigfile__|xorg.conf|g' \
10363	-e 's|__projectroot__|\$(prefix)|g' \
10364	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10365	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10366	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10367	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10368	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10369	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10370	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10371
10372
10373
10374# Check whether --enable-silent-rules was given.
10375if test "${enable_silent_rules+set}" = set; then :
10376  enableval=$enable_silent_rules;
10377fi
10378
10379case $enable_silent_rules in
10380yes) AM_DEFAULT_VERBOSITY=0;;
10381no)  AM_DEFAULT_VERBOSITY=1;;
10382*)   AM_DEFAULT_VERBOSITY=0;;
10383esac
10384AM_BACKSLASH='\'
10385
10386
10387
10388ac_ext=c
10389ac_cpp='$CPP $CPPFLAGS'
10390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10392ac_compiler_gnu=$ac_cv_c_compiler_gnu
10393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
10394$as_echo_n "checking how to run the C preprocessor... " >&6; }
10395# On Suns, sometimes $CPP names a directory.
10396if test -n "$CPP" && test -d "$CPP"; then
10397  CPP=
10398fi
10399if test -z "$CPP"; then
10400  if ${ac_cv_prog_CPP+:} false; then :
10401  $as_echo_n "(cached) " >&6
10402else
10403      # Double quotes because CPP needs to be expanded
10404    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10405    do
10406      ac_preproc_ok=false
10407for ac_c_preproc_warn_flag in '' yes
10408do
10409  # Use a header file that comes with gcc, so configuring glibc
10410  # with a fresh cross-compiler works.
10411  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10412  # <limits.h> exists even on freestanding compilers.
10413  # On the NeXT, cc -E runs the code through the compiler's parser,
10414  # not just through cpp. "Syntax error" is here to catch this case.
10415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10416/* end confdefs.h.  */
10417#ifdef __STDC__
10418# include <limits.h>
10419#else
10420# include <assert.h>
10421#endif
10422		     Syntax error
10423_ACEOF
10424if ac_fn_c_try_cpp "$LINENO"; then :
10425
10426else
10427  # Broken: fails on valid input.
10428continue
10429fi
10430rm -f conftest.err conftest.i conftest.$ac_ext
10431
10432  # OK, works on sane cases.  Now check whether nonexistent headers
10433  # can be detected and how.
10434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10435/* end confdefs.h.  */
10436#include <ac_nonexistent.h>
10437_ACEOF
10438if ac_fn_c_try_cpp "$LINENO"; then :
10439  # Broken: success on invalid input.
10440continue
10441else
10442  # Passes both tests.
10443ac_preproc_ok=:
10444break
10445fi
10446rm -f conftest.err conftest.i conftest.$ac_ext
10447
10448done
10449# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10450rm -f conftest.i conftest.err conftest.$ac_ext
10451if $ac_preproc_ok; then :
10452  break
10453fi
10454
10455    done
10456    ac_cv_prog_CPP=$CPP
10457
10458fi
10459  CPP=$ac_cv_prog_CPP
10460else
10461  ac_cv_prog_CPP=$CPP
10462fi
10463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
10464$as_echo "$CPP" >&6; }
10465ac_preproc_ok=false
10466for ac_c_preproc_warn_flag in '' yes
10467do
10468  # Use a header file that comes with gcc, so configuring glibc
10469  # with a fresh cross-compiler works.
10470  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10471  # <limits.h> exists even on freestanding compilers.
10472  # On the NeXT, cc -E runs the code through the compiler's parser,
10473  # not just through cpp. "Syntax error" is here to catch this case.
10474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10475/* end confdefs.h.  */
10476#ifdef __STDC__
10477# include <limits.h>
10478#else
10479# include <assert.h>
10480#endif
10481		     Syntax error
10482_ACEOF
10483if ac_fn_c_try_cpp "$LINENO"; then :
10484
10485else
10486  # Broken: fails on valid input.
10487continue
10488fi
10489rm -f conftest.err conftest.i conftest.$ac_ext
10490
10491  # OK, works on sane cases.  Now check whether nonexistent headers
10492  # can be detected and how.
10493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10494/* end confdefs.h.  */
10495#include <ac_nonexistent.h>
10496_ACEOF
10497if ac_fn_c_try_cpp "$LINENO"; then :
10498  # Broken: success on invalid input.
10499continue
10500else
10501  # Passes both tests.
10502ac_preproc_ok=:
10503break
10504fi
10505rm -f conftest.err conftest.i conftest.$ac_ext
10506
10507done
10508# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10509rm -f conftest.i conftest.err conftest.$ac_ext
10510if $ac_preproc_ok; then :
10511
10512else
10513  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10514$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10515as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
10516See \`config.log' for more details" "$LINENO" 5; }
10517fi
10518
10519ac_ext=c
10520ac_cpp='$CPP $CPPFLAGS'
10521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10523ac_compiler_gnu=$ac_cv_c_compiler_gnu
10524
10525
10526
10527for ac_prog in cpp
10528do
10529  # Extract the first word of "$ac_prog", so it can be a program name with args.
10530set dummy $ac_prog; ac_word=$2
10531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10532$as_echo_n "checking for $ac_word... " >&6; }
10533if ${ac_cv_path_RAWCPP+:} false; then :
10534  $as_echo_n "(cached) " >&6
10535else
10536  case $RAWCPP in
10537  [\\/]* | ?:[\\/]*)
10538  ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
10539  ;;
10540  *)
10541  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10542as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
10543for as_dir in $as_dummy
10544do
10545  IFS=$as_save_IFS
10546  test -z "$as_dir" && as_dir=.
10547    for ac_exec_ext in '' $ac_executable_extensions; do
10548  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10549    ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext"
10550    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10551    break 2
10552  fi
10553done
10554  done
10555IFS=$as_save_IFS
10556
10557  ;;
10558esac
10559fi
10560RAWCPP=$ac_cv_path_RAWCPP
10561if test -n "$RAWCPP"; then
10562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5
10563$as_echo "$RAWCPP" >&6; }
10564else
10565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10566$as_echo "no" >&6; }
10567fi
10568
10569
10570  test -n "$RAWCPP" && break
10571done
10572test -n "$RAWCPP" || RAWCPP="${CPP}"
10573
10574
10575# Check for flag to avoid builtin definitions - assumes unix is predefined,
10576# which is not the best choice for supporting other OS'es, but covers most
10577# of the ones we need for now.
10578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5
10579$as_echo_n "checking if $RAWCPP requires -undef... " >&6; }
10580cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10581/* end confdefs.h.  */
10582Does cpp redefine unix ?
10583_ACEOF
10584if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
10585	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10586$as_echo "no" >&6; }
10587else
10588	if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
10589		RAWCPPFLAGS=-undef
10590		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10591$as_echo "yes" >&6; }
10592	# under Cygwin unix is still defined even with -undef
10593	elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
10594		RAWCPPFLAGS="-undef -ansi"
10595		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5
10596$as_echo "yes, with -ansi" >&6; }
10597	else
10598		as_fn_error $? "${RAWCPP} defines unix with or without -undef.  I don't know what to do." "$LINENO" 5
10599	fi
10600fi
10601rm -f conftest.$ac_ext
10602
10603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5
10604$as_echo_n "checking if $RAWCPP requires -traditional... " >&6; }
10605cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10606/* end confdefs.h.  */
10607Does cpp preserve   "whitespace"?
10608_ACEOF
10609if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
10610	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10611$as_echo "no" >&6; }
10612else
10613	if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
10614		RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
10615		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10616$as_echo "yes" >&6; }
10617	else
10618		as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." "$LINENO" 5
10619	fi
10620fi
10621rm -f conftest.$ac_ext
10622
10623
10624CPP_PROGRAM=${RAWCPP}
10625
10626
10627for ac_func in mkstemp
10628do :
10629  ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
10630if test "x$ac_cv_func_mkstemp" = xyes; then :
10631  cat >>confdefs.h <<_ACEOF
10632#define HAVE_MKSTEMP 1
10633_ACEOF
10634
10635fi
10636done
10637
10638
10639# Extract the first word of "perl", so it can be a program name with args.
10640set dummy perl; ac_word=$2
10641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10642$as_echo_n "checking for $ac_word... " >&6; }
10643if ${ac_cv_prog_HAS_PERL+:} false; then :
10644  $as_echo_n "(cached) " >&6
10645else
10646  if test -n "$HAS_PERL"; then
10647  ac_cv_prog_HAS_PERL="$HAS_PERL" # Let the user override the test.
10648else
10649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10650for as_dir in $PATH
10651do
10652  IFS=$as_save_IFS
10653  test -z "$as_dir" && as_dir=.
10654    for ac_exec_ext in '' $ac_executable_extensions; do
10655  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10656    ac_cv_prog_HAS_PERL="yes"
10657    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10658    break 2
10659  fi
10660done
10661  done
10662IFS=$as_save_IFS
10663
10664fi
10665fi
10666HAS_PERL=$ac_cv_prog_HAS_PERL
10667if test -n "$HAS_PERL"; then
10668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_PERL" >&5
10669$as_echo "$HAS_PERL" >&6; }
10670else
10671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10672$as_echo "no" >&6; }
10673fi
10674
10675
10676 if test "x$HAS_PERL" = xyes; then
10677  HAS_PERL_TRUE=
10678  HAS_PERL_FALSE='#'
10679else
10680  HAS_PERL_TRUE='#'
10681  HAS_PERL_FALSE=
10682fi
10683
10684
10685
10686
10687DEFAULT_XCONFDIR="${libdir}/X11/config"
10688
10689# Check whether --with-config-dir was given.
10690if test "${with_config_dir+set}" = set; then :
10691  withval=$with_config_dir; XCONFDIR="$withval"
10692else
10693  XCONFDIR="$DEFAULT_XCONFDIR"
10694fi
10695
10696
10697
10698DEFAULT_PREPROCESSCMD_MKDEPEND="gcc -E"
10699
10700# Check whether --with-script-preproc-cmd was given.
10701if test "${with_script_preproc_cmd+set}" = set; then :
10702  withval=$with_script_preproc_cmd; PREPROCESSCMD_MKDEPEND="$withval"
10703else
10704  PREPROCESSCMD_MKDEPEND="$DEFAULT_PREPROCESSCMD_MKDEPEND"
10705fi
10706
10707
10708
10709DEFAULT_ARCMD="ar clq"
10710
10711# Check whether --with-create-lib-cmd was given.
10712if test "${with_create_lib_cmd+set}" = set; then :
10713  withval=$with_create_lib_cmd; ARCMD="$withval"
10714else
10715  ARCMD="$DEFAULT_ARCMD"
10716fi
10717
10718
10719
10720DEFAULT_RANLIB="ranlib"
10721
10722# Check whether --with-clean-lib-cmd was given.
10723if test "${with_clean_lib_cmd+set}" = set; then :
10724  withval=$with_clean_lib_cmd; RANLIB="$withval"
10725else
10726  RANLIB="$DEFAULT_RANLIB"
10727fi
10728
10729
10730
10731# Check whether --enable-revpath was given.
10732if test "${enable_revpath+set}" = set; then :
10733  enableval=$enable_revpath; BUILD_REVPATH="$enableval"
10734else
10735  BUILD_REVPATH=yes
10736fi
10737
10738 if test "x$BUILD_REVPATH" = xyes; then
10739  BUILD_REVPATH_TRUE=
10740  BUILD_REVPATH_FALSE='#'
10741else
10742  BUILD_REVPATH_TRUE='#'
10743  BUILD_REVPATH_FALSE=
10744fi
10745
10746
10747# Check whether --enable-makeg was given.
10748if test "${enable_makeg+set}" = set; then :
10749  enableval=$enable_makeg; BUILD_MAKEG="$enableval"
10750else
10751  BUILD_MAKEG=yes
10752fi
10753
10754 if test "x$BUILD_MAKEG" = xyes; then
10755  BUILD_MAKEG_TRUE=
10756  BUILD_MAKEG_FALSE='#'
10757else
10758  BUILD_MAKEG_TRUE='#'
10759  BUILD_MAKEG_FALSE=
10760fi
10761
10762
10763# Check whether --enable-xmkmf was given.
10764if test "${enable_xmkmf+set}" = set; then :
10765  enableval=$enable_xmkmf; BUILD_XMKMF="$enableval"
10766else
10767  BUILD_XMKMF=yes
10768fi
10769
10770 if test "x$BUILD_XMKMF" = xyes; then
10771  BUILD_XMKMF_TRUE=
10772  BUILD_XMKMF_FALSE='#'
10773else
10774  BUILD_XMKMF_TRUE='#'
10775  BUILD_XMKMF_FALSE=
10776fi
10777
10778
10779# Check whether --enable-ccmakedep was given.
10780if test "${enable_ccmakedep+set}" = set; then :
10781  enableval=$enable_ccmakedep; BUILD_CCMAKEDEP="$enableval"
10782else
10783  BUILD_CCMAKEDEP=yes
10784fi
10785
10786 if test "x$BUILD_CCMAKEDEP" = xyes; then
10787  BUILD_CCMAKEDEP_TRUE=
10788  BUILD_CCMAKEDEP_FALSE='#'
10789else
10790  BUILD_CCMAKEDEP_TRUE='#'
10791  BUILD_CCMAKEDEP_FALSE=
10792fi
10793
10794
10795# Check whether --enable-mergelib was given.
10796if test "${enable_mergelib+set}" = set; then :
10797  enableval=$enable_mergelib; BUILD_MERGELIB="$enableval"
10798else
10799  BUILD_MERGELIB=yes
10800fi
10801
10802 if test "x$BUILD_MERGELIB" = xyes; then
10803  BUILD_MERGELIB_TRUE=
10804  BUILD_MERGELIB_FALSE='#'
10805else
10806  BUILD_MERGELIB_TRUE='#'
10807  BUILD_MERGELIB_FALSE=
10808fi
10809
10810
10811# Check whether --enable-mkdirhier was given.
10812if test "${enable_mkdirhier+set}" = set; then :
10813  enableval=$enable_mkdirhier; BUILD_MKDIRHIER="$enableval"
10814else
10815  BUILD_MKDIRHIER=yes
10816fi
10817
10818 if test "x$BUILD_MKDIRHIER" = xyes; then
10819  BUILD_MKDIRHIER_TRUE=
10820  BUILD_MKDIRHIER_FALSE='#'
10821else
10822  BUILD_MKDIRHIER_TRUE='#'
10823  BUILD_MKDIRHIER_FALSE=
10824fi
10825
10826
10827# Check whether --enable-cleanlinks was given.
10828if test "${enable_cleanlinks+set}" = set; then :
10829  enableval=$enable_cleanlinks; BUILD_CLEANLINKS="$enableval"
10830else
10831  BUILD_CLEANLINKS=yes
10832fi
10833
10834 if test "x$BUILD_CLEANLINKS" = xyes; then
10835  BUILD_CLEANLINKS_TRUE=
10836  BUILD_CLEANLINKS_FALSE='#'
10837else
10838  BUILD_CLEANLINKS_TRUE='#'
10839  BUILD_CLEANLINKS_FALSE=
10840fi
10841
10842
10843# Check whether --enable-mkhtmlindex was given.
10844if test "${enable_mkhtmlindex+set}" = set; then :
10845  enableval=$enable_mkhtmlindex; BUILD_MKHTMLINDEX="$enableval"
10846else
10847  BUILD_MKHTMLINDEX=yes
10848fi
10849
10850 if test "x$BUILD_MKHTMLINDEX" = xyes; then
10851  BUILD_MKHTMLINDEX_TRUE=
10852  BUILD_MKHTMLINDEX_FALSE='#'
10853else
10854  BUILD_MKHTMLINDEX_TRUE='#'
10855  BUILD_MKHTMLINDEX_FALSE=
10856fi
10857
10858
10859# Checks for pkg-config packages
10860
10861pkg_failed=no
10862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPROTO" >&5
10863$as_echo_n "checking for XPROTO... " >&6; }
10864
10865if test -n "$XPROTO_CFLAGS"; then
10866    pkg_cv_XPROTO_CFLAGS="$XPROTO_CFLAGS"
10867 elif test -n "$PKG_CONFIG"; then
10868    if test -n "$PKG_CONFIG" && \
10869    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
10870  ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
10871  ac_status=$?
10872  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10873  test $ac_status = 0; }; then
10874  pkg_cv_XPROTO_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null`
10875else
10876  pkg_failed=yes
10877fi
10878 else
10879    pkg_failed=untried
10880fi
10881if test -n "$XPROTO_LIBS"; then
10882    pkg_cv_XPROTO_LIBS="$XPROTO_LIBS"
10883 elif test -n "$PKG_CONFIG"; then
10884    if test -n "$PKG_CONFIG" && \
10885    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
10886  ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
10887  ac_status=$?
10888  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10889  test $ac_status = 0; }; then
10890  pkg_cv_XPROTO_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null`
10891else
10892  pkg_failed=yes
10893fi
10894 else
10895    pkg_failed=untried
10896fi
10897
10898
10899
10900if test $pkg_failed = yes; then
10901
10902if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10903        _pkg_short_errors_supported=yes
10904else
10905        _pkg_short_errors_supported=no
10906fi
10907        if test $_pkg_short_errors_supported = yes; then
10908	        XPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto" 2>&1`
10909        else
10910	        XPROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto" 2>&1`
10911        fi
10912	# Put the nasty error message in config.log where it belongs
10913	echo "$XPROTO_PKG_ERRORS" >&5
10914
10915	as_fn_error $? "Package requirements (xproto) were not met:
10916
10917$XPROTO_PKG_ERRORS
10918
10919Consider adjusting the PKG_CONFIG_PATH environment variable if you
10920installed software in a non-standard prefix.
10921
10922Alternatively, you may set the environment variables XPROTO_CFLAGS
10923and XPROTO_LIBS to avoid the need to call pkg-config.
10924See the pkg-config man page for more details.
10925" "$LINENO" 5
10926elif test $pkg_failed = untried; then
10927	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10928$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10929as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10930is in your PATH or set the PKG_CONFIG environment variable to the full
10931path to pkg-config.
10932
10933Alternatively, you may set the environment variables XPROTO_CFLAGS
10934and XPROTO_LIBS to avoid the need to call pkg-config.
10935See the pkg-config man page for more details.
10936
10937To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10938See \`config.log' for more details" "$LINENO" 5; }
10939else
10940	XPROTO_CFLAGS=$pkg_cv_XPROTO_CFLAGS
10941	XPROTO_LIBS=$pkg_cv_XPROTO_LIBS
10942        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10943$as_echo "yes" >&6; }
10944	:
10945fi
10946
10947ac_config_files="$ac_config_files Makefile"
10948
10949cat >confcache <<\_ACEOF
10950# This file is a shell script that caches the results of configure
10951# tests run on this system so they can be shared between configure
10952# scripts and configure runs, see configure's option --config-cache.
10953# It is not useful on other systems.  If it contains results you don't
10954# want to keep, you may remove or edit it.
10955#
10956# config.status only pays attention to the cache file if you give it
10957# the --recheck option to rerun configure.
10958#
10959# `ac_cv_env_foo' variables (set or unset) will be overridden when
10960# loading this file, other *unset* `ac_cv_foo' will be assigned the
10961# following values.
10962
10963_ACEOF
10964
10965# The following way of writing the cache mishandles newlines in values,
10966# but we know of no workaround that is simple, portable, and efficient.
10967# So, we kill variables containing newlines.
10968# Ultrix sh set writes to stderr and can't be redirected directly,
10969# and sets the high bit in the cache file unless we assign to the vars.
10970(
10971  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10972    eval ac_val=\$$ac_var
10973    case $ac_val in #(
10974    *${as_nl}*)
10975      case $ac_var in #(
10976      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10977$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10978      esac
10979      case $ac_var in #(
10980      _ | IFS | as_nl) ;; #(
10981      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10982      *) { eval $ac_var=; unset $ac_var;} ;;
10983      esac ;;
10984    esac
10985  done
10986
10987  (set) 2>&1 |
10988    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10989    *${as_nl}ac_space=\ *)
10990      # `set' does not quote correctly, so add quotes: double-quote
10991      # substitution turns \\\\ into \\, and sed turns \\ into \.
10992      sed -n \
10993	"s/'/'\\\\''/g;
10994	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10995      ;; #(
10996    *)
10997      # `set' quotes correctly as required by POSIX, so do not add quotes.
10998      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10999      ;;
11000    esac |
11001    sort
11002) |
11003  sed '
11004     /^ac_cv_env_/b end
11005     t clear
11006     :clear
11007     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11008     t end
11009     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11010     :end' >>confcache
11011if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11012  if test -w "$cache_file"; then
11013    if test "x$cache_file" != "x/dev/null"; then
11014      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11015$as_echo "$as_me: updating cache $cache_file" >&6;}
11016      if test ! -f "$cache_file" || test -h "$cache_file"; then
11017	cat confcache >"$cache_file"
11018      else
11019        case $cache_file in #(
11020        */* | ?:*)
11021	  mv -f confcache "$cache_file"$$ &&
11022	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11023        *)
11024	  mv -f confcache "$cache_file" ;;
11025	esac
11026      fi
11027    fi
11028  else
11029    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11030$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11031  fi
11032fi
11033rm -f confcache
11034
11035test "x$prefix" = xNONE && prefix=$ac_default_prefix
11036# Let make expand exec_prefix.
11037test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11038
11039DEFS=-DHAVE_CONFIG_H
11040
11041ac_libobjs=
11042ac_ltlibobjs=
11043U=
11044for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11045  # 1. Remove the extension, and $U if already installed.
11046  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11047  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11048  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11049  #    will be set to the directory where LIBOBJS objects are built.
11050  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11051  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11052done
11053LIBOBJS=$ac_libobjs
11054
11055LTLIBOBJS=$ac_ltlibobjs
11056
11057
11058 if test -n "$EXEEXT"; then
11059  am__EXEEXT_TRUE=
11060  am__EXEEXT_FALSE='#'
11061else
11062  am__EXEEXT_TRUE='#'
11063  am__EXEEXT_FALSE=
11064fi
11065
11066if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11067  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11068Usually this means the macro was only invoked conditionally." "$LINENO" 5
11069fi
11070if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11071  as_fn_error $? "conditional \"AMDEP\" was never defined.
11072Usually this means the macro was only invoked conditionally." "$LINENO" 5
11073fi
11074if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11075  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11076Usually this means the macro was only invoked conditionally." "$LINENO" 5
11077fi
11078if test -z "${HAS_PERL_TRUE}" && test -z "${HAS_PERL_FALSE}"; then
11079  as_fn_error $? "conditional \"HAS_PERL\" was never defined.
11080Usually this means the macro was only invoked conditionally." "$LINENO" 5
11081fi
11082if test -z "${BUILD_REVPATH_TRUE}" && test -z "${BUILD_REVPATH_FALSE}"; then
11083  as_fn_error $? "conditional \"BUILD_REVPATH\" was never defined.
11084Usually this means the macro was only invoked conditionally." "$LINENO" 5
11085fi
11086if test -z "${BUILD_MAKEG_TRUE}" && test -z "${BUILD_MAKEG_FALSE}"; then
11087  as_fn_error $? "conditional \"BUILD_MAKEG\" was never defined.
11088Usually this means the macro was only invoked conditionally." "$LINENO" 5
11089fi
11090if test -z "${BUILD_XMKMF_TRUE}" && test -z "${BUILD_XMKMF_FALSE}"; then
11091  as_fn_error $? "conditional \"BUILD_XMKMF\" was never defined.
11092Usually this means the macro was only invoked conditionally." "$LINENO" 5
11093fi
11094if test -z "${BUILD_CCMAKEDEP_TRUE}" && test -z "${BUILD_CCMAKEDEP_FALSE}"; then
11095  as_fn_error $? "conditional \"BUILD_CCMAKEDEP\" was never defined.
11096Usually this means the macro was only invoked conditionally." "$LINENO" 5
11097fi
11098if test -z "${BUILD_MERGELIB_TRUE}" && test -z "${BUILD_MERGELIB_FALSE}"; then
11099  as_fn_error $? "conditional \"BUILD_MERGELIB\" was never defined.
11100Usually this means the macro was only invoked conditionally." "$LINENO" 5
11101fi
11102if test -z "${BUILD_MKDIRHIER_TRUE}" && test -z "${BUILD_MKDIRHIER_FALSE}"; then
11103  as_fn_error $? "conditional \"BUILD_MKDIRHIER\" was never defined.
11104Usually this means the macro was only invoked conditionally." "$LINENO" 5
11105fi
11106if test -z "${BUILD_CLEANLINKS_TRUE}" && test -z "${BUILD_CLEANLINKS_FALSE}"; then
11107  as_fn_error $? "conditional \"BUILD_CLEANLINKS\" was never defined.
11108Usually this means the macro was only invoked conditionally." "$LINENO" 5
11109fi
11110if test -z "${BUILD_MKHTMLINDEX_TRUE}" && test -z "${BUILD_MKHTMLINDEX_FALSE}"; then
11111  as_fn_error $? "conditional \"BUILD_MKHTMLINDEX\" was never defined.
11112Usually this means the macro was only invoked conditionally." "$LINENO" 5
11113fi
11114
11115: "${CONFIG_STATUS=./config.status}"
11116ac_write_fail=0
11117ac_clean_files_save=$ac_clean_files
11118ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11119{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11120$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11121as_write_fail=0
11122cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11123#! $SHELL
11124# Generated by $as_me.
11125# Run this file to recreate the current configuration.
11126# Compiler output produced by configure, useful for debugging
11127# configure, is in config.log if it exists.
11128
11129debug=false
11130ac_cs_recheck=false
11131ac_cs_silent=false
11132
11133SHELL=\${CONFIG_SHELL-$SHELL}
11134export SHELL
11135_ASEOF
11136cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11137## -------------------- ##
11138## M4sh Initialization. ##
11139## -------------------- ##
11140
11141# Be more Bourne compatible
11142DUALCASE=1; export DUALCASE # for MKS sh
11143if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11144  emulate sh
11145  NULLCMD=:
11146  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11147  # is contrary to our usage.  Disable this feature.
11148  alias -g '${1+"$@"}'='"$@"'
11149  setopt NO_GLOB_SUBST
11150else
11151  case `(set -o) 2>/dev/null` in #(
11152  *posix*) :
11153    set -o posix ;; #(
11154  *) :
11155     ;;
11156esac
11157fi
11158
11159
11160as_nl='
11161'
11162export as_nl
11163# Printing a long string crashes Solaris 7 /usr/bin/printf.
11164as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11165as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11166as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11167# Prefer a ksh shell builtin over an external printf program on Solaris,
11168# but without wasting forks for bash or zsh.
11169if test -z "$BASH_VERSION$ZSH_VERSION" \
11170    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11171  as_echo='print -r --'
11172  as_echo_n='print -rn --'
11173elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11174  as_echo='printf %s\n'
11175  as_echo_n='printf %s'
11176else
11177  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11178    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11179    as_echo_n='/usr/ucb/echo -n'
11180  else
11181    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11182    as_echo_n_body='eval
11183      arg=$1;
11184      case $arg in #(
11185      *"$as_nl"*)
11186	expr "X$arg" : "X\\(.*\\)$as_nl";
11187	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11188      esac;
11189      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11190    '
11191    export as_echo_n_body
11192    as_echo_n='sh -c $as_echo_n_body as_echo'
11193  fi
11194  export as_echo_body
11195  as_echo='sh -c $as_echo_body as_echo'
11196fi
11197
11198# The user is always right.
11199if test "${PATH_SEPARATOR+set}" != set; then
11200  PATH_SEPARATOR=:
11201  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11202    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11203      PATH_SEPARATOR=';'
11204  }
11205fi
11206
11207
11208# IFS
11209# We need space, tab and new line, in precisely that order.  Quoting is
11210# there to prevent editors from complaining about space-tab.
11211# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11212# splitting by setting IFS to empty value.)
11213IFS=" ""	$as_nl"
11214
11215# Find who we are.  Look in the path if we contain no directory separator.
11216as_myself=
11217case $0 in #((
11218  *[\\/]* ) as_myself=$0 ;;
11219  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11220for as_dir in $PATH
11221do
11222  IFS=$as_save_IFS
11223  test -z "$as_dir" && as_dir=.
11224    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11225  done
11226IFS=$as_save_IFS
11227
11228     ;;
11229esac
11230# We did not find ourselves, most probably we were run as `sh COMMAND'
11231# in which case we are not to be found in the path.
11232if test "x$as_myself" = x; then
11233  as_myself=$0
11234fi
11235if test ! -f "$as_myself"; then
11236  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11237  exit 1
11238fi
11239
11240# Unset variables that we do not need and which cause bugs (e.g. in
11241# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11242# suppresses any "Segmentation fault" message there.  '((' could
11243# trigger a bug in pdksh 5.2.14.
11244for as_var in BASH_ENV ENV MAIL MAILPATH
11245do eval test x\${$as_var+set} = xset \
11246  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11247done
11248PS1='$ '
11249PS2='> '
11250PS4='+ '
11251
11252# NLS nuisances.
11253LC_ALL=C
11254export LC_ALL
11255LANGUAGE=C
11256export LANGUAGE
11257
11258# CDPATH.
11259(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11260
11261
11262# as_fn_error STATUS ERROR [LINENO LOG_FD]
11263# ----------------------------------------
11264# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11265# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11266# script with STATUS, using 1 if that was 0.
11267as_fn_error ()
11268{
11269  as_status=$1; test $as_status -eq 0 && as_status=1
11270  if test "$4"; then
11271    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11272    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11273  fi
11274  $as_echo "$as_me: error: $2" >&2
11275  as_fn_exit $as_status
11276} # as_fn_error
11277
11278
11279# as_fn_set_status STATUS
11280# -----------------------
11281# Set $? to STATUS, without forking.
11282as_fn_set_status ()
11283{
11284  return $1
11285} # as_fn_set_status
11286
11287# as_fn_exit STATUS
11288# -----------------
11289# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11290as_fn_exit ()
11291{
11292  set +e
11293  as_fn_set_status $1
11294  exit $1
11295} # as_fn_exit
11296
11297# as_fn_unset VAR
11298# ---------------
11299# Portably unset VAR.
11300as_fn_unset ()
11301{
11302  { eval $1=; unset $1;}
11303}
11304as_unset=as_fn_unset
11305# as_fn_append VAR VALUE
11306# ----------------------
11307# Append the text in VALUE to the end of the definition contained in VAR. Take
11308# advantage of any shell optimizations that allow amortized linear growth over
11309# repeated appends, instead of the typical quadratic growth present in naive
11310# implementations.
11311if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11312  eval 'as_fn_append ()
11313  {
11314    eval $1+=\$2
11315  }'
11316else
11317  as_fn_append ()
11318  {
11319    eval $1=\$$1\$2
11320  }
11321fi # as_fn_append
11322
11323# as_fn_arith ARG...
11324# ------------------
11325# Perform arithmetic evaluation on the ARGs, and store the result in the
11326# global $as_val. Take advantage of shells that can avoid forks. The arguments
11327# must be portable across $(()) and expr.
11328if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11329  eval 'as_fn_arith ()
11330  {
11331    as_val=$(( $* ))
11332  }'
11333else
11334  as_fn_arith ()
11335  {
11336    as_val=`expr "$@" || test $? -eq 1`
11337  }
11338fi # as_fn_arith
11339
11340
11341if expr a : '\(a\)' >/dev/null 2>&1 &&
11342   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11343  as_expr=expr
11344else
11345  as_expr=false
11346fi
11347
11348if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11349  as_basename=basename
11350else
11351  as_basename=false
11352fi
11353
11354if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11355  as_dirname=dirname
11356else
11357  as_dirname=false
11358fi
11359
11360as_me=`$as_basename -- "$0" ||
11361$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11362	 X"$0" : 'X\(//\)$' \| \
11363	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11364$as_echo X/"$0" |
11365    sed '/^.*\/\([^/][^/]*\)\/*$/{
11366	    s//\1/
11367	    q
11368	  }
11369	  /^X\/\(\/\/\)$/{
11370	    s//\1/
11371	    q
11372	  }
11373	  /^X\/\(\/\).*/{
11374	    s//\1/
11375	    q
11376	  }
11377	  s/.*/./; q'`
11378
11379# Avoid depending upon Character Ranges.
11380as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11381as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11382as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11383as_cr_digits='0123456789'
11384as_cr_alnum=$as_cr_Letters$as_cr_digits
11385
11386ECHO_C= ECHO_N= ECHO_T=
11387case `echo -n x` in #(((((
11388-n*)
11389  case `echo 'xy\c'` in
11390  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11391  xy)  ECHO_C='\c';;
11392  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11393       ECHO_T='	';;
11394  esac;;
11395*)
11396  ECHO_N='-n';;
11397esac
11398
11399rm -f conf$$ conf$$.exe conf$$.file
11400if test -d conf$$.dir; then
11401  rm -f conf$$.dir/conf$$.file
11402else
11403  rm -f conf$$.dir
11404  mkdir conf$$.dir 2>/dev/null
11405fi
11406if (echo >conf$$.file) 2>/dev/null; then
11407  if ln -s conf$$.file conf$$ 2>/dev/null; then
11408    as_ln_s='ln -s'
11409    # ... but there are two gotchas:
11410    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11411    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11412    # In both cases, we have to default to `cp -p'.
11413    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11414      as_ln_s='cp -p'
11415  elif ln conf$$.file conf$$ 2>/dev/null; then
11416    as_ln_s=ln
11417  else
11418    as_ln_s='cp -p'
11419  fi
11420else
11421  as_ln_s='cp -p'
11422fi
11423rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11424rmdir conf$$.dir 2>/dev/null
11425
11426
11427# as_fn_mkdir_p
11428# -------------
11429# Create "$as_dir" as a directory, including parents if necessary.
11430as_fn_mkdir_p ()
11431{
11432
11433  case $as_dir in #(
11434  -*) as_dir=./$as_dir;;
11435  esac
11436  test -d "$as_dir" || eval $as_mkdir_p || {
11437    as_dirs=
11438    while :; do
11439      case $as_dir in #(
11440      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11441      *) as_qdir=$as_dir;;
11442      esac
11443      as_dirs="'$as_qdir' $as_dirs"
11444      as_dir=`$as_dirname -- "$as_dir" ||
11445$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11446	 X"$as_dir" : 'X\(//\)[^/]' \| \
11447	 X"$as_dir" : 'X\(//\)$' \| \
11448	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11449$as_echo X"$as_dir" |
11450    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11451	    s//\1/
11452	    q
11453	  }
11454	  /^X\(\/\/\)[^/].*/{
11455	    s//\1/
11456	    q
11457	  }
11458	  /^X\(\/\/\)$/{
11459	    s//\1/
11460	    q
11461	  }
11462	  /^X\(\/\).*/{
11463	    s//\1/
11464	    q
11465	  }
11466	  s/.*/./; q'`
11467      test -d "$as_dir" && break
11468    done
11469    test -z "$as_dirs" || eval "mkdir $as_dirs"
11470  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11471
11472
11473} # as_fn_mkdir_p
11474if mkdir -p . 2>/dev/null; then
11475  as_mkdir_p='mkdir -p "$as_dir"'
11476else
11477  test -d ./-p && rmdir ./-p
11478  as_mkdir_p=false
11479fi
11480
11481if test -x / >/dev/null 2>&1; then
11482  as_test_x='test -x'
11483else
11484  if ls -dL / >/dev/null 2>&1; then
11485    as_ls_L_option=L
11486  else
11487    as_ls_L_option=
11488  fi
11489  as_test_x='
11490    eval sh -c '\''
11491      if test -d "$1"; then
11492	test -d "$1/.";
11493      else
11494	case $1 in #(
11495	-*)set "./$1";;
11496	esac;
11497	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11498	???[sx]*):;;*)false;;esac;fi
11499    '\'' sh
11500  '
11501fi
11502as_executable_p=$as_test_x
11503
11504# Sed expression to map a string onto a valid CPP name.
11505as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11506
11507# Sed expression to map a string onto a valid variable name.
11508as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11509
11510
11511exec 6>&1
11512## ----------------------------------- ##
11513## Main body of $CONFIG_STATUS script. ##
11514## ----------------------------------- ##
11515_ASEOF
11516test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11517
11518cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11519# Save the log message, to keep $0 and so on meaningful, and to
11520# report actual input values of CONFIG_FILES etc. instead of their
11521# values after options handling.
11522ac_log="
11523This file was extended by imake $as_me 1.0.5, which was
11524generated by GNU Autoconf 2.68.  Invocation command line was
11525
11526  CONFIG_FILES    = $CONFIG_FILES
11527  CONFIG_HEADERS  = $CONFIG_HEADERS
11528  CONFIG_LINKS    = $CONFIG_LINKS
11529  CONFIG_COMMANDS = $CONFIG_COMMANDS
11530  $ $0 $@
11531
11532on `(hostname || uname -n) 2>/dev/null | sed 1q`
11533"
11534
11535_ACEOF
11536
11537case $ac_config_files in *"
11538"*) set x $ac_config_files; shift; ac_config_files=$*;;
11539esac
11540
11541case $ac_config_headers in *"
11542"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11543esac
11544
11545
11546cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11547# Files that config.status was made for.
11548config_files="$ac_config_files"
11549config_headers="$ac_config_headers"
11550config_commands="$ac_config_commands"
11551
11552_ACEOF
11553
11554cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11555ac_cs_usage="\
11556\`$as_me' instantiates files and other configuration actions
11557from templates according to the current configuration.  Unless the files
11558and actions are specified as TAGs, all are instantiated by default.
11559
11560Usage: $0 [OPTION]... [TAG]...
11561
11562  -h, --help       print this help, then exit
11563  -V, --version    print version number and configuration settings, then exit
11564      --config     print configuration, then exit
11565  -q, --quiet, --silent
11566                   do not print progress messages
11567  -d, --debug      don't remove temporary files
11568      --recheck    update $as_me by reconfiguring in the same conditions
11569      --file=FILE[:TEMPLATE]
11570                   instantiate the configuration file FILE
11571      --header=FILE[:TEMPLATE]
11572                   instantiate the configuration header FILE
11573
11574Configuration files:
11575$config_files
11576
11577Configuration headers:
11578$config_headers
11579
11580Configuration commands:
11581$config_commands
11582
11583Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11584
11585_ACEOF
11586cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11587ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11588ac_cs_version="\\
11589imake config.status 1.0.5
11590configured by $0, generated by GNU Autoconf 2.68,
11591  with options \\"\$ac_cs_config\\"
11592
11593Copyright (C) 2010 Free Software Foundation, Inc.
11594This config.status script is free software; the Free Software Foundation
11595gives unlimited permission to copy, distribute and modify it."
11596
11597ac_pwd='$ac_pwd'
11598srcdir='$srcdir'
11599INSTALL='$INSTALL'
11600MKDIR_P='$MKDIR_P'
11601AWK='$AWK'
11602test -n "\$AWK" || AWK=awk
11603_ACEOF
11604
11605cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11606# The default lists apply if the user does not specify any file.
11607ac_need_defaults=:
11608while test $# != 0
11609do
11610  case $1 in
11611  --*=?*)
11612    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11613    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11614    ac_shift=:
11615    ;;
11616  --*=)
11617    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11618    ac_optarg=
11619    ac_shift=:
11620    ;;
11621  *)
11622    ac_option=$1
11623    ac_optarg=$2
11624    ac_shift=shift
11625    ;;
11626  esac
11627
11628  case $ac_option in
11629  # Handling of the options.
11630  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11631    ac_cs_recheck=: ;;
11632  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11633    $as_echo "$ac_cs_version"; exit ;;
11634  --config | --confi | --conf | --con | --co | --c )
11635    $as_echo "$ac_cs_config"; exit ;;
11636  --debug | --debu | --deb | --de | --d | -d )
11637    debug=: ;;
11638  --file | --fil | --fi | --f )
11639    $ac_shift
11640    case $ac_optarg in
11641    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11642    '') as_fn_error $? "missing file argument" ;;
11643    esac
11644    as_fn_append CONFIG_FILES " '$ac_optarg'"
11645    ac_need_defaults=false;;
11646  --header | --heade | --head | --hea )
11647    $ac_shift
11648    case $ac_optarg in
11649    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11650    esac
11651    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11652    ac_need_defaults=false;;
11653  --he | --h)
11654    # Conflict between --help and --header
11655    as_fn_error $? "ambiguous option: \`$1'
11656Try \`$0 --help' for more information.";;
11657  --help | --hel | -h )
11658    $as_echo "$ac_cs_usage"; exit ;;
11659  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11660  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11661    ac_cs_silent=: ;;
11662
11663  # This is an error.
11664  -*) as_fn_error $? "unrecognized option: \`$1'
11665Try \`$0 --help' for more information." ;;
11666
11667  *) as_fn_append ac_config_targets " $1"
11668     ac_need_defaults=false ;;
11669
11670  esac
11671  shift
11672done
11673
11674ac_configure_extra_args=
11675
11676if $ac_cs_silent; then
11677  exec 6>/dev/null
11678  ac_configure_extra_args="$ac_configure_extra_args --silent"
11679fi
11680
11681_ACEOF
11682cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11683if \$ac_cs_recheck; then
11684  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11685  shift
11686  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11687  CONFIG_SHELL='$SHELL'
11688  export CONFIG_SHELL
11689  exec "\$@"
11690fi
11691
11692_ACEOF
11693cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11694exec 5>>config.log
11695{
11696  echo
11697  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11698## Running $as_me. ##
11699_ASBOX
11700  $as_echo "$ac_log"
11701} >&5
11702
11703_ACEOF
11704cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11705#
11706# INIT-COMMANDS
11707#
11708AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11709
11710_ACEOF
11711
11712cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11713
11714# Handling of arguments.
11715for ac_config_target in $ac_config_targets
11716do
11717  case $ac_config_target in
11718    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11719    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11720    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11721
11722  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11723  esac
11724done
11725
11726
11727# If the user did not use the arguments to specify the items to instantiate,
11728# then the envvar interface is used.  Set only those that are not.
11729# We use the long form for the default assignment because of an extremely
11730# bizarre bug on SunOS 4.1.3.
11731if $ac_need_defaults; then
11732  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11733  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11734  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11735fi
11736
11737# Have a temporary directory for convenience.  Make it in the build tree
11738# simply because there is no reason against having it here, and in addition,
11739# creating and moving files from /tmp can sometimes cause problems.
11740# Hook for its removal unless debugging.
11741# Note that there is a small window in which the directory will not be cleaned:
11742# after its creation but before its name has been assigned to `$tmp'.
11743$debug ||
11744{
11745  tmp= ac_tmp=
11746  trap 'exit_status=$?
11747  : "${ac_tmp:=$tmp}"
11748  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11749' 0
11750  trap 'as_fn_exit 1' 1 2 13 15
11751}
11752# Create a (secure) tmp directory for tmp files.
11753
11754{
11755  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11756  test -d "$tmp"
11757}  ||
11758{
11759  tmp=./conf$$-$RANDOM
11760  (umask 077 && mkdir "$tmp")
11761} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11762ac_tmp=$tmp
11763
11764# Set up the scripts for CONFIG_FILES section.
11765# No need to generate them if there are no CONFIG_FILES.
11766# This happens for instance with `./config.status config.h'.
11767if test -n "$CONFIG_FILES"; then
11768
11769
11770ac_cr=`echo X | tr X '\015'`
11771# On cygwin, bash can eat \r inside `` if the user requested igncr.
11772# But we know of no other shell where ac_cr would be empty at this
11773# point, so we can use a bashism as a fallback.
11774if test "x$ac_cr" = x; then
11775  eval ac_cr=\$\'\\r\'
11776fi
11777ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11778if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11779  ac_cs_awk_cr='\\r'
11780else
11781  ac_cs_awk_cr=$ac_cr
11782fi
11783
11784echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11785_ACEOF
11786
11787
11788{
11789  echo "cat >conf$$subs.awk <<_ACEOF" &&
11790  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11791  echo "_ACEOF"
11792} >conf$$subs.sh ||
11793  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11794ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11795ac_delim='%!_!# '
11796for ac_last_try in false false false false false :; do
11797  . ./conf$$subs.sh ||
11798    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11799
11800  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11801  if test $ac_delim_n = $ac_delim_num; then
11802    break
11803  elif $ac_last_try; then
11804    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11805  else
11806    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11807  fi
11808done
11809rm -f conf$$subs.sh
11810
11811cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11812cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11813_ACEOF
11814sed -n '
11815h
11816s/^/S["/; s/!.*/"]=/
11817p
11818g
11819s/^[^!]*!//
11820:repl
11821t repl
11822s/'"$ac_delim"'$//
11823t delim
11824:nl
11825h
11826s/\(.\{148\}\)..*/\1/
11827t more1
11828s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11829p
11830n
11831b repl
11832:more1
11833s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11834p
11835g
11836s/.\{148\}//
11837t nl
11838:delim
11839h
11840s/\(.\{148\}\)..*/\1/
11841t more2
11842s/["\\]/\\&/g; s/^/"/; s/$/"/
11843p
11844b
11845:more2
11846s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11847p
11848g
11849s/.\{148\}//
11850t delim
11851' <conf$$subs.awk | sed '
11852/^[^""]/{
11853  N
11854  s/\n//
11855}
11856' >>$CONFIG_STATUS || ac_write_fail=1
11857rm -f conf$$subs.awk
11858cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11859_ACAWK
11860cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11861  for (key in S) S_is_set[key] = 1
11862  FS = ""
11863
11864}
11865{
11866  line = $ 0
11867  nfields = split(line, field, "@")
11868  substed = 0
11869  len = length(field[1])
11870  for (i = 2; i < nfields; i++) {
11871    key = field[i]
11872    keylen = length(key)
11873    if (S_is_set[key]) {
11874      value = S[key]
11875      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11876      len += length(value) + length(field[++i])
11877      substed = 1
11878    } else
11879      len += 1 + keylen
11880  }
11881
11882  print line
11883}
11884
11885_ACAWK
11886_ACEOF
11887cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11888if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11889  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11890else
11891  cat
11892fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11893  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11894_ACEOF
11895
11896# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11897# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11898# trailing colons and then remove the whole line if VPATH becomes empty
11899# (actually we leave an empty line to preserve line numbers).
11900if test "x$srcdir" = x.; then
11901  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
11902h
11903s///
11904s/^/:/
11905s/[	 ]*$/:/
11906s/:\$(srcdir):/:/g
11907s/:\${srcdir}:/:/g
11908s/:@srcdir@:/:/g
11909s/^:*//
11910s/:*$//
11911x
11912s/\(=[	 ]*\).*/\1/
11913G
11914s/\n//
11915s/^[^=]*=[	 ]*$//
11916}'
11917fi
11918
11919cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11920fi # test -n "$CONFIG_FILES"
11921
11922# Set up the scripts for CONFIG_HEADERS section.
11923# No need to generate them if there are no CONFIG_HEADERS.
11924# This happens for instance with `./config.status Makefile'.
11925if test -n "$CONFIG_HEADERS"; then
11926cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11927BEGIN {
11928_ACEOF
11929
11930# Transform confdefs.h into an awk script `defines.awk', embedded as
11931# here-document in config.status, that substitutes the proper values into
11932# config.h.in to produce config.h.
11933
11934# Create a delimiter string that does not exist in confdefs.h, to ease
11935# handling of long lines.
11936ac_delim='%!_!# '
11937for ac_last_try in false false :; do
11938  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11939  if test -z "$ac_tt"; then
11940    break
11941  elif $ac_last_try; then
11942    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11943  else
11944    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11945  fi
11946done
11947
11948# For the awk script, D is an array of macro values keyed by name,
11949# likewise P contains macro parameters if any.  Preserve backslash
11950# newline sequences.
11951
11952ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11953sed -n '
11954s/.\{148\}/&'"$ac_delim"'/g
11955t rset
11956:rset
11957s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
11958t def
11959d
11960:def
11961s/\\$//
11962t bsnl
11963s/["\\]/\\&/g
11964s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11965D["\1"]=" \3"/p
11966s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
11967d
11968:bsnl
11969s/["\\]/\\&/g
11970s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11971D["\1"]=" \3\\\\\\n"\\/p
11972t cont
11973s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11974t cont
11975d
11976:cont
11977n
11978s/.\{148\}/&'"$ac_delim"'/g
11979t clear
11980:clear
11981s/\\$//
11982t bsnlc
11983s/["\\]/\\&/g; s/^/"/; s/$/"/p
11984d
11985:bsnlc
11986s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11987b cont
11988' <confdefs.h | sed '
11989s/'"$ac_delim"'/"\\\
11990"/g' >>$CONFIG_STATUS || ac_write_fail=1
11991
11992cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11993  for (key in D) D_is_set[key] = 1
11994  FS = ""
11995}
11996/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11997  line = \$ 0
11998  split(line, arg, " ")
11999  if (arg[1] == "#") {
12000    defundef = arg[2]
12001    mac1 = arg[3]
12002  } else {
12003    defundef = substr(arg[1], 2)
12004    mac1 = arg[2]
12005  }
12006  split(mac1, mac2, "(") #)
12007  macro = mac2[1]
12008  prefix = substr(line, 1, index(line, defundef) - 1)
12009  if (D_is_set[macro]) {
12010    # Preserve the white space surrounding the "#".
12011    print prefix "define", macro P[macro] D[macro]
12012    next
12013  } else {
12014    # Replace #undef with comments.  This is necessary, for example,
12015    # in the case of _POSIX_SOURCE, which is predefined and required
12016    # on some systems where configure will not decide to define it.
12017    if (defundef == "undef") {
12018      print "/*", prefix defundef, macro, "*/"
12019      next
12020    }
12021  }
12022}
12023{ print }
12024_ACAWK
12025_ACEOF
12026cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12027  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12028fi # test -n "$CONFIG_HEADERS"
12029
12030
12031eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12032shift
12033for ac_tag
12034do
12035  case $ac_tag in
12036  :[FHLC]) ac_mode=$ac_tag; continue;;
12037  esac
12038  case $ac_mode$ac_tag in
12039  :[FHL]*:*);;
12040  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12041  :[FH]-) ac_tag=-:-;;
12042  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12043  esac
12044  ac_save_IFS=$IFS
12045  IFS=:
12046  set x $ac_tag
12047  IFS=$ac_save_IFS
12048  shift
12049  ac_file=$1
12050  shift
12051
12052  case $ac_mode in
12053  :L) ac_source=$1;;
12054  :[FH])
12055    ac_file_inputs=
12056    for ac_f
12057    do
12058      case $ac_f in
12059      -) ac_f="$ac_tmp/stdin";;
12060      *) # Look for the file first in the build tree, then in the source tree
12061	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12062	 # because $ac_f cannot contain `:'.
12063	 test -f "$ac_f" ||
12064	   case $ac_f in
12065	   [\\/$]*) false;;
12066	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12067	   esac ||
12068	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12069      esac
12070      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12071      as_fn_append ac_file_inputs " '$ac_f'"
12072    done
12073
12074    # Let's still pretend it is `configure' which instantiates (i.e., don't
12075    # use $as_me), people would be surprised to read:
12076    #    /* config.h.  Generated by config.status.  */
12077    configure_input='Generated from '`
12078	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12079	`' by configure.'
12080    if test x"$ac_file" != x-; then
12081      configure_input="$ac_file.  $configure_input"
12082      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12083$as_echo "$as_me: creating $ac_file" >&6;}
12084    fi
12085    # Neutralize special characters interpreted by sed in replacement strings.
12086    case $configure_input in #(
12087    *\&* | *\|* | *\\* )
12088       ac_sed_conf_input=`$as_echo "$configure_input" |
12089       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12090    *) ac_sed_conf_input=$configure_input;;
12091    esac
12092
12093    case $ac_tag in
12094    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12095      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12096    esac
12097    ;;
12098  esac
12099
12100  ac_dir=`$as_dirname -- "$ac_file" ||
12101$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12102	 X"$ac_file" : 'X\(//\)[^/]' \| \
12103	 X"$ac_file" : 'X\(//\)$' \| \
12104	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12105$as_echo X"$ac_file" |
12106    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12107	    s//\1/
12108	    q
12109	  }
12110	  /^X\(\/\/\)[^/].*/{
12111	    s//\1/
12112	    q
12113	  }
12114	  /^X\(\/\/\)$/{
12115	    s//\1/
12116	    q
12117	  }
12118	  /^X\(\/\).*/{
12119	    s//\1/
12120	    q
12121	  }
12122	  s/.*/./; q'`
12123  as_dir="$ac_dir"; as_fn_mkdir_p
12124  ac_builddir=.
12125
12126case "$ac_dir" in
12127.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12128*)
12129  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12130  # A ".." for each directory in $ac_dir_suffix.
12131  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12132  case $ac_top_builddir_sub in
12133  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12134  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12135  esac ;;
12136esac
12137ac_abs_top_builddir=$ac_pwd
12138ac_abs_builddir=$ac_pwd$ac_dir_suffix
12139# for backward compatibility:
12140ac_top_builddir=$ac_top_build_prefix
12141
12142case $srcdir in
12143  .)  # We are building in place.
12144    ac_srcdir=.
12145    ac_top_srcdir=$ac_top_builddir_sub
12146    ac_abs_top_srcdir=$ac_pwd ;;
12147  [\\/]* | ?:[\\/]* )  # Absolute name.
12148    ac_srcdir=$srcdir$ac_dir_suffix;
12149    ac_top_srcdir=$srcdir
12150    ac_abs_top_srcdir=$srcdir ;;
12151  *) # Relative name.
12152    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12153    ac_top_srcdir=$ac_top_build_prefix$srcdir
12154    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12155esac
12156ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12157
12158
12159  case $ac_mode in
12160  :F)
12161  #
12162  # CONFIG_FILE
12163  #
12164
12165  case $INSTALL in
12166  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12167  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12168  esac
12169  ac_MKDIR_P=$MKDIR_P
12170  case $MKDIR_P in
12171  [\\/$]* | ?:[\\/]* ) ;;
12172  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12173  esac
12174_ACEOF
12175
12176cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12177# If the template does not know about datarootdir, expand it.
12178# FIXME: This hack should be removed a few years after 2.60.
12179ac_datarootdir_hack=; ac_datarootdir_seen=
12180ac_sed_dataroot='
12181/datarootdir/ {
12182  p
12183  q
12184}
12185/@datadir@/p
12186/@docdir@/p
12187/@infodir@/p
12188/@localedir@/p
12189/@mandir@/p'
12190case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12191*datarootdir*) ac_datarootdir_seen=yes;;
12192*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12193  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12194$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12195_ACEOF
12196cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12197  ac_datarootdir_hack='
12198  s&@datadir@&$datadir&g
12199  s&@docdir@&$docdir&g
12200  s&@infodir@&$infodir&g
12201  s&@localedir@&$localedir&g
12202  s&@mandir@&$mandir&g
12203  s&\\\${datarootdir}&$datarootdir&g' ;;
12204esac
12205_ACEOF
12206
12207# Neutralize VPATH when `$srcdir' = `.'.
12208# Shell code in configure.ac might set extrasub.
12209# FIXME: do we really want to maintain this feature?
12210cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12211ac_sed_extra="$ac_vpsub
12212$extrasub
12213_ACEOF
12214cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12215:t
12216/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12217s|@configure_input@|$ac_sed_conf_input|;t t
12218s&@top_builddir@&$ac_top_builddir_sub&;t t
12219s&@top_build_prefix@&$ac_top_build_prefix&;t t
12220s&@srcdir@&$ac_srcdir&;t t
12221s&@abs_srcdir@&$ac_abs_srcdir&;t t
12222s&@top_srcdir@&$ac_top_srcdir&;t t
12223s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12224s&@builddir@&$ac_builddir&;t t
12225s&@abs_builddir@&$ac_abs_builddir&;t t
12226s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12227s&@INSTALL@&$ac_INSTALL&;t t
12228s&@MKDIR_P@&$ac_MKDIR_P&;t t
12229$ac_datarootdir_hack
12230"
12231eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12232  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12233
12234test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12235  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12236  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12237      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12238  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12239which seems to be undefined.  Please make sure it is defined" >&5
12240$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12241which seems to be undefined.  Please make sure it is defined" >&2;}
12242
12243  rm -f "$ac_tmp/stdin"
12244  case $ac_file in
12245  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12246  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12247  esac \
12248  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12249 ;;
12250  :H)
12251  #
12252  # CONFIG_HEADER
12253  #
12254  if test x"$ac_file" != x-; then
12255    {
12256      $as_echo "/* $configure_input  */" \
12257      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12258    } >"$ac_tmp/config.h" \
12259      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12260    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12261      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12262$as_echo "$as_me: $ac_file is unchanged" >&6;}
12263    else
12264      rm -f "$ac_file"
12265      mv "$ac_tmp/config.h" "$ac_file" \
12266	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12267    fi
12268  else
12269    $as_echo "/* $configure_input  */" \
12270      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12271      || as_fn_error $? "could not create -" "$LINENO" 5
12272  fi
12273# Compute "$ac_file"'s index in $config_headers.
12274_am_arg="$ac_file"
12275_am_stamp_count=1
12276for _am_header in $config_headers :; do
12277  case $_am_header in
12278    $_am_arg | $_am_arg:* )
12279      break ;;
12280    * )
12281      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12282  esac
12283done
12284echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12285$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12286	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12287	 X"$_am_arg" : 'X\(//\)$' \| \
12288	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12289$as_echo X"$_am_arg" |
12290    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12291	    s//\1/
12292	    q
12293	  }
12294	  /^X\(\/\/\)[^/].*/{
12295	    s//\1/
12296	    q
12297	  }
12298	  /^X\(\/\/\)$/{
12299	    s//\1/
12300	    q
12301	  }
12302	  /^X\(\/\).*/{
12303	    s//\1/
12304	    q
12305	  }
12306	  s/.*/./; q'`/stamp-h$_am_stamp_count
12307 ;;
12308
12309  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12310$as_echo "$as_me: executing $ac_file commands" >&6;}
12311 ;;
12312  esac
12313
12314
12315  case $ac_file$ac_mode in
12316    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12317  # Autoconf 2.62 quotes --file arguments for eval, but not when files
12318  # are listed without --file.  Let's play safe and only enable the eval
12319  # if we detect the quoting.
12320  case $CONFIG_FILES in
12321  *\'*) eval set x "$CONFIG_FILES" ;;
12322  *)   set x $CONFIG_FILES ;;
12323  esac
12324  shift
12325  for mf
12326  do
12327    # Strip MF so we end up with the name of the file.
12328    mf=`echo "$mf" | sed -e 's/:.*$//'`
12329    # Check whether this is an Automake generated Makefile or not.
12330    # We used to match only the files named `Makefile.in', but
12331    # some people rename them; so instead we look at the file content.
12332    # Grep'ing the first line is not enough: some people post-process
12333    # each Makefile.in and add a new line on top of each file to say so.
12334    # Grep'ing the whole file is not good either: AIX grep has a line
12335    # limit of 2048, but all sed's we know have understand at least 4000.
12336    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12337      dirpart=`$as_dirname -- "$mf" ||
12338$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12339	 X"$mf" : 'X\(//\)[^/]' \| \
12340	 X"$mf" : 'X\(//\)$' \| \
12341	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12342$as_echo X"$mf" |
12343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12344	    s//\1/
12345	    q
12346	  }
12347	  /^X\(\/\/\)[^/].*/{
12348	    s//\1/
12349	    q
12350	  }
12351	  /^X\(\/\/\)$/{
12352	    s//\1/
12353	    q
12354	  }
12355	  /^X\(\/\).*/{
12356	    s//\1/
12357	    q
12358	  }
12359	  s/.*/./; q'`
12360    else
12361      continue
12362    fi
12363    # Extract the definition of DEPDIR, am__include, and am__quote
12364    # from the Makefile without running `make'.
12365    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12366    test -z "$DEPDIR" && continue
12367    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12368    test -z "am__include" && continue
12369    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12370    # When using ansi2knr, U may be empty or an underscore; expand it
12371    U=`sed -n 's/^U = //p' < "$mf"`
12372    # Find all dependency output files, they are included files with
12373    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12374    # simplest approach to changing $(DEPDIR) to its actual value in the
12375    # expansion.
12376    for file in `sed -n "
12377      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12378	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12379      # Make sure the directory exists.
12380      test -f "$dirpart/$file" && continue
12381      fdir=`$as_dirname -- "$file" ||
12382$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12383	 X"$file" : 'X\(//\)[^/]' \| \
12384	 X"$file" : 'X\(//\)$' \| \
12385	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12386$as_echo X"$file" |
12387    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12388	    s//\1/
12389	    q
12390	  }
12391	  /^X\(\/\/\)[^/].*/{
12392	    s//\1/
12393	    q
12394	  }
12395	  /^X\(\/\/\)$/{
12396	    s//\1/
12397	    q
12398	  }
12399	  /^X\(\/\).*/{
12400	    s//\1/
12401	    q
12402	  }
12403	  s/.*/./; q'`
12404      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12405      # echo "creating $dirpart/$file"
12406      echo '# dummy' > "$dirpart/$file"
12407    done
12408  done
12409}
12410 ;;
12411
12412  esac
12413done # for ac_tag
12414
12415
12416as_fn_exit 0
12417_ACEOF
12418ac_clean_files=$ac_clean_files_save
12419
12420test $ac_write_fail = 0 ||
12421  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12422
12423
12424# configure is writing to config.log, and then calls config.status.
12425# config.status does its own redirection, appending to config.log.
12426# Unfortunately, on DOS this fails, as config.log is still kept open
12427# by configure, so config.status won't be able to write to it; its
12428# output is simply discarded.  So we exec the FD to /dev/null,
12429# effectively closing config.log, so it can be properly (re)opened and
12430# appended to by config.status.  When coming back to configure, we
12431# need to make the FD available again.
12432if test "$no_create" != yes; then
12433  ac_cs_success=:
12434  ac_config_status_args=
12435  test "$silent" = yes &&
12436    ac_config_status_args="$ac_config_status_args --quiet"
12437  exec 5>/dev/null
12438  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12439  exec 5>>config.log
12440  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12441  # would make configure fail if this is the last instruction.
12442  $ac_cs_success || as_fn_exit 1
12443fi
12444if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12445  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12446$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12447fi
12448
12449