configure revision 21212451
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for xinit 1.3.2.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18  emulate sh
19  NULLCMD=:
20  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in
26  *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42# The user is always right.
43if test "${PATH_SEPARATOR+set}" != set; then
44  echo "#! /bin/sh" >conf$$.sh
45  echo  "exit 0"   >>conf$$.sh
46  chmod +x conf$$.sh
47  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48    PATH_SEPARATOR=';'
49  else
50    PATH_SEPARATOR=:
51  fi
52  rm -f conf$$.sh
53fi
54
55# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57  as_unset=unset
58else
59  as_unset=false
60fi
61
62
63# IFS
64# We need space, tab and new line, in precisely that order.  Quoting is
65# there to prevent editors from complaining about space-tab.
66# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67# splitting by setting IFS to empty value.)
68as_nl='
69'
70IFS=" ""	$as_nl"
71
72# Find who we are.  Look in the path if we contain no directory separator.
73case $0 in
74  *[\\/]* ) as_myself=$0 ;;
75  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76for as_dir in $PATH
77do
78  IFS=$as_save_IFS
79  test -z "$as_dir" && as_dir=.
80  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
82IFS=$as_save_IFS
83
84     ;;
85esac
86# We did not find ourselves, most probably we were run as `sh COMMAND'
87# in which case we are not to be found in the path.
88if test "x$as_myself" = x; then
89  as_myself=$0
90fi
91if test ! -f "$as_myself"; then
92  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93  { (exit 1); exit 1; }
94fi
95
96# Work around bugs in pre-3.0 UWIN ksh.
97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
105for as_var in \
106  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108  LC_TELEPHONE LC_TIME
109do
110  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111    eval $as_var=C; export $as_var
112  else
113    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114  fi
115done
116
117# Required to use basename.
118if expr a : '\(a\)' >/dev/null 2>&1 &&
119   test "X`expr 00001 : '.*\(...\)'`" = X001; then
120  as_expr=expr
121else
122  as_expr=false
123fi
124
125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126  as_basename=basename
127else
128  as_basename=false
129fi
130
131
132# Name of the executable.
133as_me=`$as_basename -- "$0" ||
134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135	 X"$0" : 'X\(//\)$' \| \
136	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137echo X/"$0" |
138    sed '/^.*\/\([^/][^/]*\)\/*$/{
139	    s//\1/
140	    q
141	  }
142	  /^X\/\(\/\/\)$/{
143	    s//\1/
144	    q
145	  }
146	  /^X\/\(\/\).*/{
147	    s//\1/
148	    q
149	  }
150	  s/.*/./; q'`
151
152# CDPATH.
153$as_unset CDPATH
154
155
156if test "x$CONFIG_SHELL" = x; then
157  if (eval ":") 2>/dev/null; then
158  as_have_required=yes
159else
160  as_have_required=no
161fi
162
163  if test $as_have_required = yes && 	 (eval ":
164(as_func_return () {
165  (exit \$1)
166}
167as_func_success () {
168  as_func_return 0
169}
170as_func_failure () {
171  as_func_return 1
172}
173as_func_ret_success () {
174  return 0
175}
176as_func_ret_failure () {
177  return 1
178}
179
180exitcode=0
181if as_func_success; then
182  :
183else
184  exitcode=1
185  echo as_func_success failed.
186fi
187
188if as_func_failure; then
189  exitcode=1
190  echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194  :
195else
196  exitcode=1
197  echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201  exitcode=1
202  echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206  :
207else
208  exitcode=1
209  echo positional parameters were not saved.
210fi
211
212test \$exitcode = 0) || { (exit 1); exit 1; }
213
214(
215  as_lineno_1=\$LINENO
216  as_lineno_2=\$LINENO
217  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219") 2> /dev/null; then
220  :
221else
222  as_candidate_shells=
223    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225do
226  IFS=$as_save_IFS
227  test -z "$as_dir" && as_dir=.
228  case $as_dir in
229	 /*)
230	   for as_base in sh bash ksh sh5; do
231	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232	   done;;
233       esac
234done
235IFS=$as_save_IFS
236
237
238      for as_shell in $as_candidate_shells $SHELL; do
239	 # Try only shells that exist, to save several forks.
240	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241		{ ("$as_shell") 2> /dev/null <<\_ASEOF
242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243  emulate sh
244  NULLCMD=:
245  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246  # is contrary to our usage.  Disable this feature.
247  alias -g '${1+"$@"}'='"$@"'
248  setopt NO_GLOB_SUBST
249else
250  case `(set -o) 2>/dev/null` in
251  *posix*) set -o posix ;;
252esac
253
254fi
255
256
257:
258_ASEOF
259}; then
260  CONFIG_SHELL=$as_shell
261	       as_have_required=yes
262	       if { "$as_shell" 2> /dev/null <<\_ASEOF
263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264  emulate sh
265  NULLCMD=:
266  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267  # is contrary to our usage.  Disable this feature.
268  alias -g '${1+"$@"}'='"$@"'
269  setopt NO_GLOB_SUBST
270else
271  case `(set -o) 2>/dev/null` in
272  *posix*) set -o posix ;;
273esac
274
275fi
276
277
278:
279(as_func_return () {
280  (exit $1)
281}
282as_func_success () {
283  as_func_return 0
284}
285as_func_failure () {
286  as_func_return 1
287}
288as_func_ret_success () {
289  return 0
290}
291as_func_ret_failure () {
292  return 1
293}
294
295exitcode=0
296if as_func_success; then
297  :
298else
299  exitcode=1
300  echo as_func_success failed.
301fi
302
303if as_func_failure; then
304  exitcode=1
305  echo as_func_failure succeeded.
306fi
307
308if as_func_ret_success; then
309  :
310else
311  exitcode=1
312  echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316  exitcode=1
317  echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321  :
322else
323  exitcode=1
324  echo positional parameters were not saved.
325fi
326
327test $exitcode = 0) || { (exit 1); exit 1; }
328
329(
330  as_lineno_1=$LINENO
331  as_lineno_2=$LINENO
332  test "x$as_lineno_1" != "x$as_lineno_2" &&
333  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335_ASEOF
336}; then
337  break
338fi
339
340fi
341
342      done
343
344      if test "x$CONFIG_SHELL" != x; then
345  for as_var in BASH_ENV ENV
346        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347        done
348        export CONFIG_SHELL
349        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350fi
351
352
353    if test $as_have_required = no; then
354  echo This script requires a shell more modern than all the
355      echo shells that I found on your system.  Please install a
356      echo modern shell, or manually run the script under such a
357      echo shell if you do have one.
358      { (exit 1); exit 1; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369  (exit \$1)
370}
371as_func_success () {
372  as_func_return 0
373}
374as_func_failure () {
375  as_func_return 1
376}
377as_func_ret_success () {
378  return 0
379}
380as_func_ret_failure () {
381  return 1
382}
383
384exitcode=0
385if as_func_success; then
386  :
387else
388  exitcode=1
389  echo as_func_success failed.
390fi
391
392if as_func_failure; then
393  exitcode=1
394  echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398  :
399else
400  exitcode=1
401  echo as_func_ret_success failed.
402fi
403
404if as_func_ret_failure; then
405  exitcode=1
406  echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410  :
411else
412  exitcode=1
413  echo positional parameters were not saved.
414fi
415
416test \$exitcode = 0") || {
417  echo No shell found that supports shell functions.
418  echo Please tell autoconf@gnu.org about your system,
419  echo including any error possibly output before this
420  echo message
421}
422
423
424
425  as_lineno_1=$LINENO
426  as_lineno_2=$LINENO
427  test "x$as_lineno_1" != "x$as_lineno_2" &&
428  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431  # uniformly replaced by the line number.  The first 'sed' inserts a
432  # line-number line after each line using $LINENO; the second 'sed'
433  # does the real work.  The second script uses 'N' to pair each
434  # line-number line with the line containing $LINENO, and appends
435  # trailing '-' during substitution so that $LINENO is not a special
436  # case at line end.
437  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438  # scripts with optimization help from Paolo Bonzini.  Blame Lee
439  # E. McMahon (1931-1989) for sed's syntax.  :-)
440  sed -n '
441    p
442    /[$]LINENO/=
443  ' <$as_myself |
444    sed '
445      s/[$]LINENO.*/&-/
446      t lineno
447      b
448      :lineno
449      N
450      :loop
451      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452      t loop
453      s/-\n.*//
454    ' >$as_me.lineno &&
455  chmod +x "$as_me.lineno" ||
456    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457   { (exit 1); exit 1; }; }
458
459  # Don't try to exec as it changes $[0], causing all sort of problems
460  # (the dirname of $[0] is not the place where we might find the
461  # original and so on.  Autoconf is especially sensitive to this).
462  . "./$as_me.lineno"
463  # Exit status is that of the last command.
464  exit
465}
466
467
468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469  as_dirname=dirname
470else
471  as_dirname=false
472fi
473
474ECHO_C= ECHO_N= ECHO_T=
475case `echo -n x` in
476-n*)
477  case `echo 'x\c'` in
478  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
479  *)   ECHO_C='\c';;
480  esac;;
481*)
482  ECHO_N='-n';;
483esac
484
485if expr a : '\(a\)' >/dev/null 2>&1 &&
486   test "X`expr 00001 : '.*\(...\)'`" = X001; then
487  as_expr=expr
488else
489  as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
493if test -d conf$$.dir; then
494  rm -f conf$$.dir/conf$$.file
495else
496  rm -f conf$$.dir
497  mkdir conf$$.dir
498fi
499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
501  as_ln_s='ln -s'
502  # ... but there are two gotchas:
503  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505  # In both cases, we have to default to `cp -p'.
506  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507    as_ln_s='cp -p'
508elif ln conf$$.file conf$$ 2>/dev/null; then
509  as_ln_s=ln
510else
511  as_ln_s='cp -p'
512fi
513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
515
516if mkdir -p . 2>/dev/null; then
517  as_mkdir_p=:
518else
519  test -d ./-p && rmdir ./-p
520  as_mkdir_p=false
521fi
522
523if test -x / >/dev/null 2>&1; then
524  as_test_x='test -x'
525else
526  if ls -dL / >/dev/null 2>&1; then
527    as_ls_L_option=L
528  else
529    as_ls_L_option=
530  fi
531  as_test_x='
532    eval sh -c '\''
533      if test -d "$1"; then
534        test -d "$1/.";
535      else
536	case $1 in
537        -*)set "./$1";;
538	esac;
539	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540	???[sx]*):;;*)false;;esac;fi
541    '\'' sh
542  '
543fi
544as_executable_p=$as_test_x
545
546# Sed expression to map a string onto a valid CPP name.
547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549# Sed expression to map a string onto a valid variable name.
550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554exec 7<&0 </dev/null 6>&1
555
556# Name of the host.
557# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558# so uname gets run too.
559ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560
561#
562# Initializations.
563#
564ac_default_prefix=/usr/local
565ac_clean_files=
566ac_config_libobj_dir=.
567LIBOBJS=
568cross_compiling=no
569subdirs=
570MFLAGS=
571MAKEFLAGS=
572SHELL=${CONFIG_SHELL-/bin/sh}
573
574# Identity of this package.
575PACKAGE_NAME='xinit'
576PACKAGE_TARNAME='xinit'
577PACKAGE_VERSION='1.3.2'
578PACKAGE_STRING='xinit 1.3.2'
579PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
580
581ac_unique_file="Makefile.am"
582# Factoring default headers for most tests.
583ac_includes_default="\
584#include <stdio.h>
585#ifdef HAVE_SYS_TYPES_H
586# include <sys/types.h>
587#endif
588#ifdef HAVE_SYS_STAT_H
589# include <sys/stat.h>
590#endif
591#ifdef STDC_HEADERS
592# include <stdlib.h>
593# include <stddef.h>
594#else
595# ifdef HAVE_STDLIB_H
596#  include <stdlib.h>
597# endif
598#endif
599#ifdef HAVE_STRING_H
600# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601#  include <memory.h>
602# endif
603# include <string.h>
604#endif
605#ifdef HAVE_STRINGS_H
606# include <strings.h>
607#endif
608#ifdef HAVE_INTTYPES_H
609# include <inttypes.h>
610#endif
611#ifdef HAVE_STDINT_H
612# include <stdint.h>
613#endif
614#ifdef HAVE_UNISTD_H
615# include <unistd.h>
616#endif"
617
618ac_subst_vars='SHELL
619PATH_SEPARATOR
620PACKAGE_NAME
621PACKAGE_TARNAME
622PACKAGE_VERSION
623PACKAGE_STRING
624PACKAGE_BUGREPORT
625exec_prefix
626prefix
627program_transform_name
628bindir
629sbindir
630libexecdir
631datarootdir
632datadir
633sysconfdir
634sharedstatedir
635localstatedir
636includedir
637oldincludedir
638docdir
639infodir
640htmldir
641dvidir
642pdfdir
643psdir
644libdir
645localedir
646mandir
647DEFS
648ECHO_C
649ECHO_N
650ECHO_T
651LIBS
652build_alias
653host_alias
654target_alias
655INSTALL_PROGRAM
656INSTALL_SCRIPT
657INSTALL_DATA
658am__isrc
659CYGPATH_W
660PACKAGE
661VERSION
662ACLOCAL
663AUTOCONF
664AUTOMAKE
665AUTOHEADER
666MAKEINFO
667install_sh
668STRIP
669INSTALL_STRIP_PROGRAM
670mkdir_p
671AWK
672SET_MAKE
673am__leading_dot
674AMTAR
675am__tar
676am__untar
677MAINTAINER_MODE_TRUE
678MAINTAINER_MODE_FALSE
679MAINT
680CC
681CFLAGS
682LDFLAGS
683CPPFLAGS
684ac_ct_CC
685EXEEXT
686OBJEXT
687DEPDIR
688am__include
689am__quote
690AMDEP_TRUE
691AMDEP_FALSE
692AMDEPBACKSLASH
693CCDEPMODE
694am__fastdepCC_TRUE
695am__fastdepCC_FALSE
696CPP
697GREP
698EGREP
699BASE_CFLAGS
700CWARNFLAGS
701STRICT_CFLAGS
702CHANGELOG_CMD
703PKG_CONFIG
704PKG_CONFIG_PATH
705PKG_CONFIG_LIBDIR
706INSTALL_CMD
707build
708build_cpu
709build_vendor
710build_os
711host
712host_cpu
713host_vendor
714host_os
715SED
716APP_MAN_SUFFIX
717LIB_MAN_SUFFIX
718FILE_MAN_SUFFIX
719MISC_MAN_SUFFIX
720DRIVER_MAN_SUFFIX
721ADMIN_MAN_SUFFIX
722APP_MAN_DIR
723LIB_MAN_DIR
724FILE_MAN_DIR
725MISC_MAN_DIR
726DRIVER_MAN_DIR
727ADMIN_MAN_DIR
728XORG_MAN_PAGE
729MAN_SUBSTS
730AM_DEFAULT_VERBOSITY
731RAWCPP
732RAWCPPFLAGS
733LAUNCHD
734launchagentsdir
735launchdaemonsdir
736bundleidprefix
737launchagentxserver
738LAUNCHD_TRUE
739LAUNCHD_FALSE
740TIGER_LAUNCHD_TRUE
741TIGER_LAUNCHD_FALSE
742LAUNCHAGENT_XSERVER_TRUE
743LAUNCHAGENT_XSERVER_FALSE
744XINIT_CFLAGS
745XINIT_LIBS
746MCOOKIE
747STARTX_COOKIE_FLAGS
748SHELL_CMD
749SCOMAN
750XSERVERNAME
751XCONFIGFILE
752XCONFIGFILEMAN
753XRDB
754XMODMAP
755TWM
756XCLOCK
757XTERM
758XSERVER
759XAUTH
760XINIT
761XINITDIR
762LIBOBJS
763LTLIBOBJS'
764ac_subst_files=''
765      ac_precious_vars='build_alias
766host_alias
767target_alias
768CC
769CFLAGS
770LDFLAGS
771LIBS
772CPPFLAGS
773CPP
774PKG_CONFIG
775PKG_CONFIG_PATH
776PKG_CONFIG_LIBDIR
777XINIT_CFLAGS
778XINIT_LIBS'
779
780
781# Initialize some variables set by options.
782ac_init_help=
783ac_init_version=false
784# The variables have the same names as the options, with
785# dashes changed to underlines.
786cache_file=/dev/null
787exec_prefix=NONE
788no_create=
789no_recursion=
790prefix=NONE
791program_prefix=NONE
792program_suffix=NONE
793program_transform_name=s,x,x,
794silent=
795site=
796srcdir=
797verbose=
798x_includes=NONE
799x_libraries=NONE
800
801# Installation directory options.
802# These are left unexpanded so users can "make install exec_prefix=/foo"
803# and all the variables that are supposed to be based on exec_prefix
804# by default will actually change.
805# Use braces instead of parens because sh, perl, etc. also accept them.
806# (The list follows the same order as the GNU Coding Standards.)
807bindir='${exec_prefix}/bin'
808sbindir='${exec_prefix}/sbin'
809libexecdir='${exec_prefix}/libexec'
810datarootdir='${prefix}/share'
811datadir='${datarootdir}'
812sysconfdir='${prefix}/etc'
813sharedstatedir='${prefix}/com'
814localstatedir='${prefix}/var'
815includedir='${prefix}/include'
816oldincludedir='/usr/include'
817docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
818infodir='${datarootdir}/info'
819htmldir='${docdir}'
820dvidir='${docdir}'
821pdfdir='${docdir}'
822psdir='${docdir}'
823libdir='${exec_prefix}/lib'
824localedir='${datarootdir}/locale'
825mandir='${datarootdir}/man'
826
827ac_prev=
828ac_dashdash=
829for ac_option
830do
831  # If the previous option needs an argument, assign it.
832  if test -n "$ac_prev"; then
833    eval $ac_prev=\$ac_option
834    ac_prev=
835    continue
836  fi
837
838  case $ac_option in
839  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
840  *)	ac_optarg=yes ;;
841  esac
842
843  # Accept the important Cygnus configure options, so we can diagnose typos.
844
845  case $ac_dashdash$ac_option in
846  --)
847    ac_dashdash=yes ;;
848
849  -bindir | --bindir | --bindi | --bind | --bin | --bi)
850    ac_prev=bindir ;;
851  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
852    bindir=$ac_optarg ;;
853
854  -build | --build | --buil | --bui | --bu)
855    ac_prev=build_alias ;;
856  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
857    build_alias=$ac_optarg ;;
858
859  -cache-file | --cache-file | --cache-fil | --cache-fi \
860  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
861    ac_prev=cache_file ;;
862  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
863  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
864    cache_file=$ac_optarg ;;
865
866  --config-cache | -C)
867    cache_file=config.cache ;;
868
869  -datadir | --datadir | --datadi | --datad)
870    ac_prev=datadir ;;
871  -datadir=* | --datadir=* | --datadi=* | --datad=*)
872    datadir=$ac_optarg ;;
873
874  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
875  | --dataroo | --dataro | --datar)
876    ac_prev=datarootdir ;;
877  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
878  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
879    datarootdir=$ac_optarg ;;
880
881  -disable-* | --disable-*)
882    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
883    # Reject names that are not valid shell variable names.
884    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
885      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
886   { (exit 1); exit 1; }; }
887    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
888    eval enable_$ac_feature=no ;;
889
890  -docdir | --docdir | --docdi | --doc | --do)
891    ac_prev=docdir ;;
892  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
893    docdir=$ac_optarg ;;
894
895  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
896    ac_prev=dvidir ;;
897  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
898    dvidir=$ac_optarg ;;
899
900  -enable-* | --enable-*)
901    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
902    # Reject names that are not valid shell variable names.
903    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
904      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
905   { (exit 1); exit 1; }; }
906    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
907    eval enable_$ac_feature=\$ac_optarg ;;
908
909  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
910  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
911  | --exec | --exe | --ex)
912    ac_prev=exec_prefix ;;
913  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
914  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
915  | --exec=* | --exe=* | --ex=*)
916    exec_prefix=$ac_optarg ;;
917
918  -gas | --gas | --ga | --g)
919    # Obsolete; use --with-gas.
920    with_gas=yes ;;
921
922  -help | --help | --hel | --he | -h)
923    ac_init_help=long ;;
924  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
925    ac_init_help=recursive ;;
926  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
927    ac_init_help=short ;;
928
929  -host | --host | --hos | --ho)
930    ac_prev=host_alias ;;
931  -host=* | --host=* | --hos=* | --ho=*)
932    host_alias=$ac_optarg ;;
933
934  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
935    ac_prev=htmldir ;;
936  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
937  | --ht=*)
938    htmldir=$ac_optarg ;;
939
940  -includedir | --includedir | --includedi | --included | --include \
941  | --includ | --inclu | --incl | --inc)
942    ac_prev=includedir ;;
943  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
944  | --includ=* | --inclu=* | --incl=* | --inc=*)
945    includedir=$ac_optarg ;;
946
947  -infodir | --infodir | --infodi | --infod | --info | --inf)
948    ac_prev=infodir ;;
949  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
950    infodir=$ac_optarg ;;
951
952  -libdir | --libdir | --libdi | --libd)
953    ac_prev=libdir ;;
954  -libdir=* | --libdir=* | --libdi=* | --libd=*)
955    libdir=$ac_optarg ;;
956
957  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
958  | --libexe | --libex | --libe)
959    ac_prev=libexecdir ;;
960  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
961  | --libexe=* | --libex=* | --libe=*)
962    libexecdir=$ac_optarg ;;
963
964  -localedir | --localedir | --localedi | --localed | --locale)
965    ac_prev=localedir ;;
966  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
967    localedir=$ac_optarg ;;
968
969  -localstatedir | --localstatedir | --localstatedi | --localstated \
970  | --localstate | --localstat | --localsta | --localst | --locals)
971    ac_prev=localstatedir ;;
972  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
973  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
974    localstatedir=$ac_optarg ;;
975
976  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
977    ac_prev=mandir ;;
978  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
979    mandir=$ac_optarg ;;
980
981  -nfp | --nfp | --nf)
982    # Obsolete; use --without-fp.
983    with_fp=no ;;
984
985  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
986  | --no-cr | --no-c | -n)
987    no_create=yes ;;
988
989  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
990  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
991    no_recursion=yes ;;
992
993  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
994  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
995  | --oldin | --oldi | --old | --ol | --o)
996    ac_prev=oldincludedir ;;
997  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
998  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
999  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1000    oldincludedir=$ac_optarg ;;
1001
1002  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1003    ac_prev=prefix ;;
1004  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1005    prefix=$ac_optarg ;;
1006
1007  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1008  | --program-pre | --program-pr | --program-p)
1009    ac_prev=program_prefix ;;
1010  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1011  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1012    program_prefix=$ac_optarg ;;
1013
1014  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1015  | --program-suf | --program-su | --program-s)
1016    ac_prev=program_suffix ;;
1017  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1018  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1019    program_suffix=$ac_optarg ;;
1020
1021  -program-transform-name | --program-transform-name \
1022  | --program-transform-nam | --program-transform-na \
1023  | --program-transform-n | --program-transform- \
1024  | --program-transform | --program-transfor \
1025  | --program-transfo | --program-transf \
1026  | --program-trans | --program-tran \
1027  | --progr-tra | --program-tr | --program-t)
1028    ac_prev=program_transform_name ;;
1029  -program-transform-name=* | --program-transform-name=* \
1030  | --program-transform-nam=* | --program-transform-na=* \
1031  | --program-transform-n=* | --program-transform-=* \
1032  | --program-transform=* | --program-transfor=* \
1033  | --program-transfo=* | --program-transf=* \
1034  | --program-trans=* | --program-tran=* \
1035  | --progr-tra=* | --program-tr=* | --program-t=*)
1036    program_transform_name=$ac_optarg ;;
1037
1038  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1039    ac_prev=pdfdir ;;
1040  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1041    pdfdir=$ac_optarg ;;
1042
1043  -psdir | --psdir | --psdi | --psd | --ps)
1044    ac_prev=psdir ;;
1045  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1046    psdir=$ac_optarg ;;
1047
1048  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049  | -silent | --silent | --silen | --sile | --sil)
1050    silent=yes ;;
1051
1052  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1053    ac_prev=sbindir ;;
1054  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1055  | --sbi=* | --sb=*)
1056    sbindir=$ac_optarg ;;
1057
1058  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1059  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1060  | --sharedst | --shareds | --shared | --share | --shar \
1061  | --sha | --sh)
1062    ac_prev=sharedstatedir ;;
1063  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1064  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1065  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1066  | --sha=* | --sh=*)
1067    sharedstatedir=$ac_optarg ;;
1068
1069  -site | --site | --sit)
1070    ac_prev=site ;;
1071  -site=* | --site=* | --sit=*)
1072    site=$ac_optarg ;;
1073
1074  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1075    ac_prev=srcdir ;;
1076  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1077    srcdir=$ac_optarg ;;
1078
1079  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1080  | --syscon | --sysco | --sysc | --sys | --sy)
1081    ac_prev=sysconfdir ;;
1082  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1083  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1084    sysconfdir=$ac_optarg ;;
1085
1086  -target | --target | --targe | --targ | --tar | --ta | --t)
1087    ac_prev=target_alias ;;
1088  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1089    target_alias=$ac_optarg ;;
1090
1091  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1092    verbose=yes ;;
1093
1094  -version | --version | --versio | --versi | --vers | -V)
1095    ac_init_version=: ;;
1096
1097  -with-* | --with-*)
1098    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1099    # Reject names that are not valid shell variable names.
1100    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1101      { echo "$as_me: error: invalid package name: $ac_package" >&2
1102   { (exit 1); exit 1; }; }
1103    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1104    eval with_$ac_package=\$ac_optarg ;;
1105
1106  -without-* | --without-*)
1107    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1108    # Reject names that are not valid shell variable names.
1109    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1110      { echo "$as_me: error: invalid package name: $ac_package" >&2
1111   { (exit 1); exit 1; }; }
1112    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1113    eval with_$ac_package=no ;;
1114
1115  --x)
1116    # Obsolete; use --with-x.
1117    with_x=yes ;;
1118
1119  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1120  | --x-incl | --x-inc | --x-in | --x-i)
1121    ac_prev=x_includes ;;
1122  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1123  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1124    x_includes=$ac_optarg ;;
1125
1126  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1127  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1128    ac_prev=x_libraries ;;
1129  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1130  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1131    x_libraries=$ac_optarg ;;
1132
1133  -*) { echo "$as_me: error: unrecognized option: $ac_option
1134Try \`$0 --help' for more information." >&2
1135   { (exit 1); exit 1; }; }
1136    ;;
1137
1138  *=*)
1139    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1140    # Reject names that are not valid shell variable names.
1141    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1142      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1143   { (exit 1); exit 1; }; }
1144    eval $ac_envvar=\$ac_optarg
1145    export $ac_envvar ;;
1146
1147  *)
1148    # FIXME: should be removed in autoconf 3.0.
1149    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1150    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1151      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1152    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1153    ;;
1154
1155  esac
1156done
1157
1158if test -n "$ac_prev"; then
1159  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1160  { echo "$as_me: error: missing argument to $ac_option" >&2
1161   { (exit 1); exit 1; }; }
1162fi
1163
1164# Be sure to have absolute directory names.
1165for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1166		datadir sysconfdir sharedstatedir localstatedir includedir \
1167		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1168		libdir localedir mandir
1169do
1170  eval ac_val=\$$ac_var
1171  case $ac_val in
1172    [\\/$]* | ?:[\\/]* )  continue;;
1173    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1174  esac
1175  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1176   { (exit 1); exit 1; }; }
1177done
1178
1179# There might be people who depend on the old broken behavior: `$host'
1180# used to hold the argument of --host etc.
1181# FIXME: To remove some day.
1182build=$build_alias
1183host=$host_alias
1184target=$target_alias
1185
1186# FIXME: To remove some day.
1187if test "x$host_alias" != x; then
1188  if test "x$build_alias" = x; then
1189    cross_compiling=maybe
1190    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1191    If a cross compiler is detected then cross compile mode will be used." >&2
1192  elif test "x$build_alias" != "x$host_alias"; then
1193    cross_compiling=yes
1194  fi
1195fi
1196
1197ac_tool_prefix=
1198test -n "$host_alias" && ac_tool_prefix=$host_alias-
1199
1200test "$silent" = yes && exec 6>/dev/null
1201
1202
1203ac_pwd=`pwd` && test -n "$ac_pwd" &&
1204ac_ls_di=`ls -di .` &&
1205ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1206  { echo "$as_me: error: Working directory cannot be determined" >&2
1207   { (exit 1); exit 1; }; }
1208test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1209  { echo "$as_me: error: pwd does not report name of working directory" >&2
1210   { (exit 1); exit 1; }; }
1211
1212
1213# Find the source files, if location was not specified.
1214if test -z "$srcdir"; then
1215  ac_srcdir_defaulted=yes
1216  # Try the directory containing this script, then the parent directory.
1217  ac_confdir=`$as_dirname -- "$0" ||
1218$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1219	 X"$0" : 'X\(//\)[^/]' \| \
1220	 X"$0" : 'X\(//\)$' \| \
1221	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1222echo X"$0" |
1223    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1224	    s//\1/
1225	    q
1226	  }
1227	  /^X\(\/\/\)[^/].*/{
1228	    s//\1/
1229	    q
1230	  }
1231	  /^X\(\/\/\)$/{
1232	    s//\1/
1233	    q
1234	  }
1235	  /^X\(\/\).*/{
1236	    s//\1/
1237	    q
1238	  }
1239	  s/.*/./; q'`
1240  srcdir=$ac_confdir
1241  if test ! -r "$srcdir/$ac_unique_file"; then
1242    srcdir=..
1243  fi
1244else
1245  ac_srcdir_defaulted=no
1246fi
1247if test ! -r "$srcdir/$ac_unique_file"; then
1248  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1249  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1250   { (exit 1); exit 1; }; }
1251fi
1252ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1253ac_abs_confdir=`(
1254	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1255   { (exit 1); exit 1; }; }
1256	pwd)`
1257# When building in place, set srcdir=.
1258if test "$ac_abs_confdir" = "$ac_pwd"; then
1259  srcdir=.
1260fi
1261# Remove unnecessary trailing slashes from srcdir.
1262# Double slashes in file names in object file debugging info
1263# mess up M-x gdb in Emacs.
1264case $srcdir in
1265*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1266esac
1267for ac_var in $ac_precious_vars; do
1268  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1269  eval ac_env_${ac_var}_value=\$${ac_var}
1270  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1271  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1272done
1273
1274#
1275# Report the --help message.
1276#
1277if test "$ac_init_help" = "long"; then
1278  # Omit some internal or obsolete options to make the list less imposing.
1279  # This message is too long to be a string in the A/UX 3.1 sh.
1280  cat <<_ACEOF
1281\`configure' configures xinit 1.3.2 to adapt to many kinds of systems.
1282
1283Usage: $0 [OPTION]... [VAR=VALUE]...
1284
1285To assign environment variables (e.g., CC, CFLAGS...), specify them as
1286VAR=VALUE.  See below for descriptions of some of the useful variables.
1287
1288Defaults for the options are specified in brackets.
1289
1290Configuration:
1291  -h, --help              display this help and exit
1292      --help=short        display options specific to this package
1293      --help=recursive    display the short help of all the included packages
1294  -V, --version           display version information and exit
1295  -q, --quiet, --silent   do not print \`checking...' messages
1296      --cache-file=FILE   cache test results in FILE [disabled]
1297  -C, --config-cache      alias for \`--cache-file=config.cache'
1298  -n, --no-create         do not create output files
1299      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1300
1301Installation directories:
1302  --prefix=PREFIX         install architecture-independent files in PREFIX
1303			  [$ac_default_prefix]
1304  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1305			  [PREFIX]
1306
1307By default, \`make install' will install all the files in
1308\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1309an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1310for instance \`--prefix=\$HOME'.
1311
1312For better control, use the options below.
1313
1314Fine tuning of the installation directories:
1315  --bindir=DIR           user executables [EPREFIX/bin]
1316  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1317  --libexecdir=DIR       program executables [EPREFIX/libexec]
1318  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1319  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1320  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1321  --libdir=DIR           object code libraries [EPREFIX/lib]
1322  --includedir=DIR       C header files [PREFIX/include]
1323  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1324  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1325  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1326  --infodir=DIR          info documentation [DATAROOTDIR/info]
1327  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1328  --mandir=DIR           man documentation [DATAROOTDIR/man]
1329  --docdir=DIR           documentation root [DATAROOTDIR/doc/xinit]
1330  --htmldir=DIR          html documentation [DOCDIR]
1331  --dvidir=DIR           dvi documentation [DOCDIR]
1332  --pdfdir=DIR           pdf documentation [DOCDIR]
1333  --psdir=DIR            ps documentation [DOCDIR]
1334_ACEOF
1335
1336  cat <<\_ACEOF
1337
1338Program names:
1339  --program-prefix=PREFIX            prepend PREFIX to installed program names
1340  --program-suffix=SUFFIX            append SUFFIX to installed program names
1341  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1342
1343System types:
1344  --build=BUILD     configure for building on BUILD [guessed]
1345  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1346_ACEOF
1347fi
1348
1349if test -n "$ac_init_help"; then
1350  case $ac_init_help in
1351     short | recursive ) echo "Configuration of xinit 1.3.2:";;
1352   esac
1353  cat <<\_ACEOF
1354
1355Optional Features:
1356  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1357  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1358  --enable-maintainer-mode  enable make rules and dependencies not useful
1359			  (and sometimes confusing) to the casual installer
1360  --disable-dependency-tracking  speeds up one-time build
1361  --enable-dependency-tracking   do not reject slow dependency extractors
1362  --disable-selective-werror
1363                          Turn off selective compiler errors. (default:
1364                          enabled)
1365  --enable-strict-compilation
1366                          Enable all warnings from compiler and make them
1367                          errors (default: disabled)
1368
1369Optional Packages:
1370  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1371  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1372  --with-xrdb=XRDB        Path to xrdb
1373  --with-xmodmap=XMODMAP  Path to xmodmap
1374  --with-twm=TWM          Path to twm
1375  --with-xclock=XCLOCK    Path to xclock
1376  --with-xterm=XTERM      Path to xterm
1377  --with-xserver=XSERVER  Path to default X server
1378  --with-xauth=XAUTH      Path to xauth
1379  --with-xinit=XINIT      Path to xinit
1380  --with-xinitdir=XINITDIR
1381                          Path to xinitdir
1382  --with-launchd          Build with support for Apple's launchd (default:
1383                          auto)
1384  --with-launchagents-dir=PATH
1385                          Path to launchd's LaunchAgents directory (default:
1386                          /Library/LaunchAgents)
1387  --with-launchagent-xserver=PATH
1388                          Path to the X server which the LaunchAgent should
1389                          start (if not provided, let startx decide)"
1390  --with-launchdaemons-dir=PATH
1391                          Path to launchd's LaunchDaemonss directory (default:
1392                          /Library/LaunchDaemons)
1393  --with-launchd-id-prefix=PATH
1394                          Deprecated: Use --with-bundle-id-prefix.
1395  --with-bundle-id-prefix=PATH
1396                          Prefix to use for bundle identifiers (default:
1397                          org.x)
1398
1399Some influential environment variables:
1400  CC          C compiler command
1401  CFLAGS      C compiler flags
1402  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1403              nonstandard directory <lib dir>
1404  LIBS        libraries to pass to the linker, e.g. -l<library>
1405  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1406              you have headers in a nonstandard directory <include dir>
1407  CPP         C preprocessor
1408  PKG_CONFIG  path to pkg-config utility
1409  PKG_CONFIG_PATH
1410              directories to add to pkg-config's search path
1411  PKG_CONFIG_LIBDIR
1412              path overriding pkg-config's built-in search path
1413  XINIT_CFLAGS
1414              C compiler flags for XINIT, overriding pkg-config
1415  XINIT_LIBS  linker flags for XINIT, overriding pkg-config
1416
1417Use these variables to override the choices made by `configure' or to help
1418it to find libraries and programs with nonstandard names/locations.
1419
1420Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1421_ACEOF
1422ac_status=$?
1423fi
1424
1425if test "$ac_init_help" = "recursive"; then
1426  # If there are subdirs, report their specific --help.
1427  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1428    test -d "$ac_dir" || continue
1429    ac_builddir=.
1430
1431case "$ac_dir" in
1432.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1433*)
1434  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1435  # A ".." for each directory in $ac_dir_suffix.
1436  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1437  case $ac_top_builddir_sub in
1438  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1439  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1440  esac ;;
1441esac
1442ac_abs_top_builddir=$ac_pwd
1443ac_abs_builddir=$ac_pwd$ac_dir_suffix
1444# for backward compatibility:
1445ac_top_builddir=$ac_top_build_prefix
1446
1447case $srcdir in
1448  .)  # We are building in place.
1449    ac_srcdir=.
1450    ac_top_srcdir=$ac_top_builddir_sub
1451    ac_abs_top_srcdir=$ac_pwd ;;
1452  [\\/]* | ?:[\\/]* )  # Absolute name.
1453    ac_srcdir=$srcdir$ac_dir_suffix;
1454    ac_top_srcdir=$srcdir
1455    ac_abs_top_srcdir=$srcdir ;;
1456  *) # Relative name.
1457    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1458    ac_top_srcdir=$ac_top_build_prefix$srcdir
1459    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1460esac
1461ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1462
1463    cd "$ac_dir" || { ac_status=$?; continue; }
1464    # Check for guested configure.
1465    if test -f "$ac_srcdir/configure.gnu"; then
1466      echo &&
1467      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1468    elif test -f "$ac_srcdir/configure"; then
1469      echo &&
1470      $SHELL "$ac_srcdir/configure" --help=recursive
1471    else
1472      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1473    fi || ac_status=$?
1474    cd "$ac_pwd" || { ac_status=$?; break; }
1475  done
1476fi
1477
1478test -n "$ac_init_help" && exit $ac_status
1479if $ac_init_version; then
1480  cat <<\_ACEOF
1481xinit configure 1.3.2
1482generated by GNU Autoconf 2.61
1483
1484Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14852002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1486This configure script is free software; the Free Software Foundation
1487gives unlimited permission to copy, distribute and modify it.
1488_ACEOF
1489  exit
1490fi
1491cat >config.log <<_ACEOF
1492This file contains any messages produced by compilers while
1493running configure, to aid debugging if configure makes a mistake.
1494
1495It was created by xinit $as_me 1.3.2, which was
1496generated by GNU Autoconf 2.61.  Invocation command line was
1497
1498  $ $0 $@
1499
1500_ACEOF
1501exec 5>>config.log
1502{
1503cat <<_ASUNAME
1504## --------- ##
1505## Platform. ##
1506## --------- ##
1507
1508hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1509uname -m = `(uname -m) 2>/dev/null || echo unknown`
1510uname -r = `(uname -r) 2>/dev/null || echo unknown`
1511uname -s = `(uname -s) 2>/dev/null || echo unknown`
1512uname -v = `(uname -v) 2>/dev/null || echo unknown`
1513
1514/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1515/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1516
1517/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1518/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1519/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1520/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1521/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1522/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1523/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1524
1525_ASUNAME
1526
1527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1528for as_dir in $PATH
1529do
1530  IFS=$as_save_IFS
1531  test -z "$as_dir" && as_dir=.
1532  echo "PATH: $as_dir"
1533done
1534IFS=$as_save_IFS
1535
1536} >&5
1537
1538cat >&5 <<_ACEOF
1539
1540
1541## ----------- ##
1542## Core tests. ##
1543## ----------- ##
1544
1545_ACEOF
1546
1547
1548# Keep a trace of the command line.
1549# Strip out --no-create and --no-recursion so they do not pile up.
1550# Strip out --silent because we don't want to record it for future runs.
1551# Also quote any args containing shell meta-characters.
1552# Make two passes to allow for proper duplicate-argument suppression.
1553ac_configure_args=
1554ac_configure_args0=
1555ac_configure_args1=
1556ac_must_keep_next=false
1557for ac_pass in 1 2
1558do
1559  for ac_arg
1560  do
1561    case $ac_arg in
1562    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1563    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1564    | -silent | --silent | --silen | --sile | --sil)
1565      continue ;;
1566    *\'*)
1567      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1568    esac
1569    case $ac_pass in
1570    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1571    2)
1572      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1573      if test $ac_must_keep_next = true; then
1574	ac_must_keep_next=false # Got value, back to normal.
1575      else
1576	case $ac_arg in
1577	  *=* | --config-cache | -C | -disable-* | --disable-* \
1578	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1579	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1580	  | -with-* | --with-* | -without-* | --without-* | --x)
1581	    case "$ac_configure_args0 " in
1582	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1583	    esac
1584	    ;;
1585	  -* ) ac_must_keep_next=true ;;
1586	esac
1587      fi
1588      ac_configure_args="$ac_configure_args '$ac_arg'"
1589      ;;
1590    esac
1591  done
1592done
1593$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1594$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1595
1596# When interrupted or exit'd, cleanup temporary files, and complete
1597# config.log.  We remove comments because anyway the quotes in there
1598# would cause problems or look ugly.
1599# WARNING: Use '\'' to represent an apostrophe within the trap.
1600# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1601trap 'exit_status=$?
1602  # Save into config.log some information that might help in debugging.
1603  {
1604    echo
1605
1606    cat <<\_ASBOX
1607## ---------------- ##
1608## Cache variables. ##
1609## ---------------- ##
1610_ASBOX
1611    echo
1612    # The following way of writing the cache mishandles newlines in values,
1613(
1614  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1615    eval ac_val=\$$ac_var
1616    case $ac_val in #(
1617    *${as_nl}*)
1618      case $ac_var in #(
1619      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1620echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1621      esac
1622      case $ac_var in #(
1623      _ | IFS | as_nl) ;; #(
1624      *) $as_unset $ac_var ;;
1625      esac ;;
1626    esac
1627  done
1628  (set) 2>&1 |
1629    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1630    *${as_nl}ac_space=\ *)
1631      sed -n \
1632	"s/'\''/'\''\\\\'\'''\''/g;
1633	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1634      ;; #(
1635    *)
1636      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1637      ;;
1638    esac |
1639    sort
1640)
1641    echo
1642
1643    cat <<\_ASBOX
1644## ----------------- ##
1645## Output variables. ##
1646## ----------------- ##
1647_ASBOX
1648    echo
1649    for ac_var in $ac_subst_vars
1650    do
1651      eval ac_val=\$$ac_var
1652      case $ac_val in
1653      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1654      esac
1655      echo "$ac_var='\''$ac_val'\''"
1656    done | sort
1657    echo
1658
1659    if test -n "$ac_subst_files"; then
1660      cat <<\_ASBOX
1661## ------------------- ##
1662## File substitutions. ##
1663## ------------------- ##
1664_ASBOX
1665      echo
1666      for ac_var in $ac_subst_files
1667      do
1668	eval ac_val=\$$ac_var
1669	case $ac_val in
1670	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1671	esac
1672	echo "$ac_var='\''$ac_val'\''"
1673      done | sort
1674      echo
1675    fi
1676
1677    if test -s confdefs.h; then
1678      cat <<\_ASBOX
1679## ----------- ##
1680## confdefs.h. ##
1681## ----------- ##
1682_ASBOX
1683      echo
1684      cat confdefs.h
1685      echo
1686    fi
1687    test "$ac_signal" != 0 &&
1688      echo "$as_me: caught signal $ac_signal"
1689    echo "$as_me: exit $exit_status"
1690  } >&5
1691  rm -f core *.core core.conftest.* &&
1692    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1693    exit $exit_status
1694' 0
1695for ac_signal in 1 2 13 15; do
1696  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1697done
1698ac_signal=0
1699
1700# confdefs.h avoids OS command line length limits that DEFS can exceed.
1701rm -f -r conftest* confdefs.h
1702
1703# Predefined preprocessor variables.
1704
1705cat >>confdefs.h <<_ACEOF
1706#define PACKAGE_NAME "$PACKAGE_NAME"
1707_ACEOF
1708
1709
1710cat >>confdefs.h <<_ACEOF
1711#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1712_ACEOF
1713
1714
1715cat >>confdefs.h <<_ACEOF
1716#define PACKAGE_VERSION "$PACKAGE_VERSION"
1717_ACEOF
1718
1719
1720cat >>confdefs.h <<_ACEOF
1721#define PACKAGE_STRING "$PACKAGE_STRING"
1722_ACEOF
1723
1724
1725cat >>confdefs.h <<_ACEOF
1726#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1727_ACEOF
1728
1729
1730# Let the site file select an alternate cache file if it wants to.
1731# Prefer explicitly selected file to automatically selected ones.
1732if test -n "$CONFIG_SITE"; then
1733  set x "$CONFIG_SITE"
1734elif test "x$prefix" != xNONE; then
1735  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1736else
1737  set x "$ac_default_prefix/share/config.site" \
1738	"$ac_default_prefix/etc/config.site"
1739fi
1740shift
1741for ac_site_file
1742do
1743  if test -r "$ac_site_file"; then
1744    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1745echo "$as_me: loading site script $ac_site_file" >&6;}
1746    sed 's/^/| /' "$ac_site_file" >&5
1747    . "$ac_site_file"
1748  fi
1749done
1750
1751if test -r "$cache_file"; then
1752  # Some versions of bash will fail to source /dev/null (special
1753  # files actually), so we avoid doing that.
1754  if test -f "$cache_file"; then
1755    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1756echo "$as_me: loading cache $cache_file" >&6;}
1757    case $cache_file in
1758      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1759      *)                      . "./$cache_file";;
1760    esac
1761  fi
1762else
1763  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1764echo "$as_me: creating cache $cache_file" >&6;}
1765  >$cache_file
1766fi
1767
1768# Check that the precious variables saved in the cache have kept the same
1769# value.
1770ac_cache_corrupted=false
1771for ac_var in $ac_precious_vars; do
1772  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1773  eval ac_new_set=\$ac_env_${ac_var}_set
1774  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1775  eval ac_new_val=\$ac_env_${ac_var}_value
1776  case $ac_old_set,$ac_new_set in
1777    set,)
1778      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1779echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1780      ac_cache_corrupted=: ;;
1781    ,set)
1782      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1783echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1784      ac_cache_corrupted=: ;;
1785    ,);;
1786    *)
1787      if test "x$ac_old_val" != "x$ac_new_val"; then
1788	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1789echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1790	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1791echo "$as_me:   former value:  $ac_old_val" >&2;}
1792	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1793echo "$as_me:   current value: $ac_new_val" >&2;}
1794	ac_cache_corrupted=:
1795      fi;;
1796  esac
1797  # Pass precious variables to config.status.
1798  if test "$ac_new_set" = set; then
1799    case $ac_new_val in
1800    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1801    *) ac_arg=$ac_var=$ac_new_val ;;
1802    esac
1803    case " $ac_configure_args " in
1804      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1805      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1806    esac
1807  fi
1808done
1809if $ac_cache_corrupted; then
1810  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1811echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1812  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1813echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1814   { (exit 1); exit 1; }; }
1815fi
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841ac_ext=c
1842ac_cpp='$CPP $CPPFLAGS'
1843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1845ac_compiler_gnu=$ac_cv_c_compiler_gnu
1846
1847
1848
1849ac_config_headers="$ac_config_headers config.h"
1850
1851
1852# Initialize Automake
1853am__api_version='1.10'
1854
1855ac_aux_dir=
1856for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1857  if test -f "$ac_dir/install-sh"; then
1858    ac_aux_dir=$ac_dir
1859    ac_install_sh="$ac_aux_dir/install-sh -c"
1860    break
1861  elif test -f "$ac_dir/install.sh"; then
1862    ac_aux_dir=$ac_dir
1863    ac_install_sh="$ac_aux_dir/install.sh -c"
1864    break
1865  elif test -f "$ac_dir/shtool"; then
1866    ac_aux_dir=$ac_dir
1867    ac_install_sh="$ac_aux_dir/shtool install -c"
1868    break
1869  fi
1870done
1871if test -z "$ac_aux_dir"; then
1872  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1873echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1874   { (exit 1); exit 1; }; }
1875fi
1876
1877# These three variables are undocumented and unsupported,
1878# and are intended to be withdrawn in a future Autoconf release.
1879# They can cause serious problems if a builder's source tree is in a directory
1880# whose full name contains unusual characters.
1881ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1882ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1883ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1884
1885
1886# Find a good install program.  We prefer a C program (faster),
1887# so one script is as good as another.  But avoid the broken or
1888# incompatible versions:
1889# SysV /etc/install, /usr/sbin/install
1890# SunOS /usr/etc/install
1891# IRIX /sbin/install
1892# AIX /bin/install
1893# AmigaOS /C/install, which installs bootblocks on floppy discs
1894# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1895# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1896# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1897# OS/2's system install, which has a completely different semantic
1898# ./install, which can be erroneously created by make from ./install.sh.
1899{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1900echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1901if test -z "$INSTALL"; then
1902if test "${ac_cv_path_install+set}" = set; then
1903  echo $ECHO_N "(cached) $ECHO_C" >&6
1904else
1905  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1906for as_dir in $PATH
1907do
1908  IFS=$as_save_IFS
1909  test -z "$as_dir" && as_dir=.
1910  # Account for people who put trailing slashes in PATH elements.
1911case $as_dir/ in
1912  ./ | .// | /cC/* | \
1913  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1914  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1915  /usr/ucb/* ) ;;
1916  *)
1917    # OSF1 and SCO ODT 3.0 have their own names for install.
1918    # Don't use installbsd from OSF since it installs stuff as root
1919    # by default.
1920    for ac_prog in ginstall scoinst install; do
1921      for ac_exec_ext in '' $ac_executable_extensions; do
1922	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1923	  if test $ac_prog = install &&
1924	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1925	    # AIX install.  It has an incompatible calling convention.
1926	    :
1927	  elif test $ac_prog = install &&
1928	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1929	    # program-specific install script used by HP pwplus--don't use.
1930	    :
1931	  else
1932	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1933	    break 3
1934	  fi
1935	fi
1936      done
1937    done
1938    ;;
1939esac
1940done
1941IFS=$as_save_IFS
1942
1943
1944fi
1945  if test "${ac_cv_path_install+set}" = set; then
1946    INSTALL=$ac_cv_path_install
1947  else
1948    # As a last resort, use the slow shell script.  Don't cache a
1949    # value for INSTALL within a source directory, because that will
1950    # break other packages using the cache if that directory is
1951    # removed, or if the value is a relative name.
1952    INSTALL=$ac_install_sh
1953  fi
1954fi
1955{ echo "$as_me:$LINENO: result: $INSTALL" >&5
1956echo "${ECHO_T}$INSTALL" >&6; }
1957
1958# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1959# It thinks the first close brace ends the variable substitution.
1960test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1961
1962test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1963
1964test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1965
1966{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1967echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1968# Just in case
1969sleep 1
1970echo timestamp > conftest.file
1971# Do `set' in a subshell so we don't clobber the current shell's
1972# arguments.  Must try -L first in case configure is actually a
1973# symlink; some systems play weird games with the mod time of symlinks
1974# (eg FreeBSD returns the mod time of the symlink's containing
1975# directory).
1976if (
1977   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1978   if test "$*" = "X"; then
1979      # -L didn't work.
1980      set X `ls -t $srcdir/configure conftest.file`
1981   fi
1982   rm -f conftest.file
1983   if test "$*" != "X $srcdir/configure conftest.file" \
1984      && test "$*" != "X conftest.file $srcdir/configure"; then
1985
1986      # If neither matched, then we have a broken ls.  This can happen
1987      # if, for instance, CONFIG_SHELL is bash and it inherits a
1988      # broken ls alias from the environment.  This has actually
1989      # happened.  Such a system could not be considered "sane".
1990      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1991alias in your environment" >&5
1992echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1993alias in your environment" >&2;}
1994   { (exit 1); exit 1; }; }
1995   fi
1996
1997   test "$2" = conftest.file
1998   )
1999then
2000   # Ok.
2001   :
2002else
2003   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2004Check your system clock" >&5
2005echo "$as_me: error: newly created file is older than distributed files!
2006Check your system clock" >&2;}
2007   { (exit 1); exit 1; }; }
2008fi
2009{ echo "$as_me:$LINENO: result: yes" >&5
2010echo "${ECHO_T}yes" >&6; }
2011test "$program_prefix" != NONE &&
2012  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2013# Use a double $ so make ignores it.
2014test "$program_suffix" != NONE &&
2015  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2016# Double any \ or $.  echo might interpret backslashes.
2017# By default was `s,x,x', remove it if useless.
2018cat <<\_ACEOF >conftest.sed
2019s/[\\$]/&&/g;s/;s,x,x,$//
2020_ACEOF
2021program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2022rm -f conftest.sed
2023
2024# expand $ac_aux_dir to an absolute path
2025am_aux_dir=`cd $ac_aux_dir && pwd`
2026
2027test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2028# Use eval to expand $SHELL
2029if eval "$MISSING --run true"; then
2030  am_missing_run="$MISSING --run "
2031else
2032  am_missing_run=
2033  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2034echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2035fi
2036
2037{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2038echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2039if test -z "$MKDIR_P"; then
2040  if test "${ac_cv_path_mkdir+set}" = set; then
2041  echo $ECHO_N "(cached) $ECHO_C" >&6
2042else
2043  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2045do
2046  IFS=$as_save_IFS
2047  test -z "$as_dir" && as_dir=.
2048  for ac_prog in mkdir gmkdir; do
2049	 for ac_exec_ext in '' $ac_executable_extensions; do
2050	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2051	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2052	     'mkdir (GNU coreutils) '* | \
2053	     'mkdir (coreutils) '* | \
2054	     'mkdir (fileutils) '4.1*)
2055	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2056	       break 3;;
2057	   esac
2058	 done
2059       done
2060done
2061IFS=$as_save_IFS
2062
2063fi
2064
2065  if test "${ac_cv_path_mkdir+set}" = set; then
2066    MKDIR_P="$ac_cv_path_mkdir -p"
2067  else
2068    # As a last resort, use the slow shell script.  Don't cache a
2069    # value for MKDIR_P within a source directory, because that will
2070    # break other packages using the cache if that directory is
2071    # removed, or if the value is a relative name.
2072    test -d ./--version && rmdir ./--version
2073    MKDIR_P="$ac_install_sh -d"
2074  fi
2075fi
2076{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2077echo "${ECHO_T}$MKDIR_P" >&6; }
2078
2079mkdir_p="$MKDIR_P"
2080case $mkdir_p in
2081  [\\/$]* | ?:[\\/]*) ;;
2082  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2083esac
2084
2085for ac_prog in gawk mawk nawk awk
2086do
2087  # Extract the first word of "$ac_prog", so it can be a program name with args.
2088set dummy $ac_prog; ac_word=$2
2089{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2091if test "${ac_cv_prog_AWK+set}" = set; then
2092  echo $ECHO_N "(cached) $ECHO_C" >&6
2093else
2094  if test -n "$AWK"; then
2095  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2096else
2097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2098for as_dir in $PATH
2099do
2100  IFS=$as_save_IFS
2101  test -z "$as_dir" && as_dir=.
2102  for ac_exec_ext in '' $ac_executable_extensions; do
2103  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2104    ac_cv_prog_AWK="$ac_prog"
2105    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2106    break 2
2107  fi
2108done
2109done
2110IFS=$as_save_IFS
2111
2112fi
2113fi
2114AWK=$ac_cv_prog_AWK
2115if test -n "$AWK"; then
2116  { echo "$as_me:$LINENO: result: $AWK" >&5
2117echo "${ECHO_T}$AWK" >&6; }
2118else
2119  { echo "$as_me:$LINENO: result: no" >&5
2120echo "${ECHO_T}no" >&6; }
2121fi
2122
2123
2124  test -n "$AWK" && break
2125done
2126
2127{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2128echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2129set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2130if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2131  echo $ECHO_N "(cached) $ECHO_C" >&6
2132else
2133  cat >conftest.make <<\_ACEOF
2134SHELL = /bin/sh
2135all:
2136	@echo '@@@%%%=$(MAKE)=@@@%%%'
2137_ACEOF
2138# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2139case `${MAKE-make} -f conftest.make 2>/dev/null` in
2140  *@@@%%%=?*=@@@%%%*)
2141    eval ac_cv_prog_make_${ac_make}_set=yes;;
2142  *)
2143    eval ac_cv_prog_make_${ac_make}_set=no;;
2144esac
2145rm -f conftest.make
2146fi
2147if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2148  { echo "$as_me:$LINENO: result: yes" >&5
2149echo "${ECHO_T}yes" >&6; }
2150  SET_MAKE=
2151else
2152  { echo "$as_me:$LINENO: result: no" >&5
2153echo "${ECHO_T}no" >&6; }
2154  SET_MAKE="MAKE=${MAKE-make}"
2155fi
2156
2157rm -rf .tst 2>/dev/null
2158mkdir .tst 2>/dev/null
2159if test -d .tst; then
2160  am__leading_dot=.
2161else
2162  am__leading_dot=_
2163fi
2164rmdir .tst 2>/dev/null
2165
2166if test "`cd $srcdir && pwd`" != "`pwd`"; then
2167  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2168  # is not polluted with repeated "-I."
2169  am__isrc=' -I$(srcdir)'
2170  # test to see if srcdir already configured
2171  if test -f $srcdir/config.status; then
2172    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2173echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2174   { (exit 1); exit 1; }; }
2175  fi
2176fi
2177
2178# test whether we have cygpath
2179if test -z "$CYGPATH_W"; then
2180  if (cygpath --version) >/dev/null 2>/dev/null; then
2181    CYGPATH_W='cygpath -w'
2182  else
2183    CYGPATH_W=echo
2184  fi
2185fi
2186
2187
2188# Define the identity of the package.
2189 PACKAGE='xinit'
2190 VERSION='1.3.2'
2191
2192
2193cat >>confdefs.h <<_ACEOF
2194#define PACKAGE "$PACKAGE"
2195_ACEOF
2196
2197
2198cat >>confdefs.h <<_ACEOF
2199#define VERSION "$VERSION"
2200_ACEOF
2201
2202# Some tools Automake needs.
2203
2204ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2205
2206
2207AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2208
2209
2210AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2211
2212
2213AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2214
2215
2216MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2217
2218install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2219
2220# Installed binaries are usually stripped using `strip' when the user
2221# run `make install-strip'.  However `strip' might not be the right
2222# tool to use in cross-compilation environments, therefore Automake
2223# will honor the `STRIP' environment variable to overrule this program.
2224if test "$cross_compiling" != no; then
2225  if test -n "$ac_tool_prefix"; then
2226  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2227set dummy ${ac_tool_prefix}strip; ac_word=$2
2228{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2230if test "${ac_cv_prog_STRIP+set}" = set; then
2231  echo $ECHO_N "(cached) $ECHO_C" >&6
2232else
2233  if test -n "$STRIP"; then
2234  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2235else
2236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2237for as_dir in $PATH
2238do
2239  IFS=$as_save_IFS
2240  test -z "$as_dir" && as_dir=.
2241  for ac_exec_ext in '' $ac_executable_extensions; do
2242  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2243    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2244    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2245    break 2
2246  fi
2247done
2248done
2249IFS=$as_save_IFS
2250
2251fi
2252fi
2253STRIP=$ac_cv_prog_STRIP
2254if test -n "$STRIP"; then
2255  { echo "$as_me:$LINENO: result: $STRIP" >&5
2256echo "${ECHO_T}$STRIP" >&6; }
2257else
2258  { echo "$as_me:$LINENO: result: no" >&5
2259echo "${ECHO_T}no" >&6; }
2260fi
2261
2262
2263fi
2264if test -z "$ac_cv_prog_STRIP"; then
2265  ac_ct_STRIP=$STRIP
2266  # Extract the first word of "strip", so it can be a program name with args.
2267set dummy strip; ac_word=$2
2268{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2270if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2271  echo $ECHO_N "(cached) $ECHO_C" >&6
2272else
2273  if test -n "$ac_ct_STRIP"; then
2274  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2275else
2276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2277for as_dir in $PATH
2278do
2279  IFS=$as_save_IFS
2280  test -z "$as_dir" && as_dir=.
2281  for ac_exec_ext in '' $ac_executable_extensions; do
2282  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2283    ac_cv_prog_ac_ct_STRIP="strip"
2284    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2285    break 2
2286  fi
2287done
2288done
2289IFS=$as_save_IFS
2290
2291fi
2292fi
2293ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2294if test -n "$ac_ct_STRIP"; then
2295  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2296echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2297else
2298  { echo "$as_me:$LINENO: result: no" >&5
2299echo "${ECHO_T}no" >&6; }
2300fi
2301
2302  if test "x$ac_ct_STRIP" = x; then
2303    STRIP=":"
2304  else
2305    case $cross_compiling:$ac_tool_warned in
2306yes:)
2307{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2308whose name does not start with the host triplet.  If you think this
2309configuration is useful to you, please write to autoconf@gnu.org." >&5
2310echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2311whose name does not start with the host triplet.  If you think this
2312configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2313ac_tool_warned=yes ;;
2314esac
2315    STRIP=$ac_ct_STRIP
2316  fi
2317else
2318  STRIP="$ac_cv_prog_STRIP"
2319fi
2320
2321fi
2322INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2323
2324# We need awk for the "check" target.  The system "awk" is bad on
2325# some platforms.
2326# Always define AMTAR for backward compatibility.
2327
2328AMTAR=${AMTAR-"${am_missing_run}tar"}
2329
2330am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2331
2332
2333
2334
2335
2336{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2337echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2338    # Check whether --enable-maintainer-mode was given.
2339if test "${enable_maintainer_mode+set}" = set; then
2340  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2341else
2342  USE_MAINTAINER_MODE=no
2343fi
2344
2345  { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2346echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2347   if test $USE_MAINTAINER_MODE = yes; then
2348  MAINTAINER_MODE_TRUE=
2349  MAINTAINER_MODE_FALSE='#'
2350else
2351  MAINTAINER_MODE_TRUE='#'
2352  MAINTAINER_MODE_FALSE=
2353fi
2354
2355  MAINT=$MAINTAINER_MODE_TRUE
2356
2357
2358
2359# Require X.Org macros 1.8 or later for AC_PROG_SED in XORG_DEFAULT_OPTIONS
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371DEPDIR="${am__leading_dot}deps"
2372
2373ac_config_commands="$ac_config_commands depfiles"
2374
2375
2376am_make=${MAKE-make}
2377cat > confinc << 'END'
2378am__doit:
2379	@echo done
2380.PHONY: am__doit
2381END
2382# If we don't find an include directive, just comment out the code.
2383{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2384echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2385am__include="#"
2386am__quote=
2387_am_result=none
2388# First try GNU make style include.
2389echo "include confinc" > confmf
2390# We grep out `Entering directory' and `Leaving directory'
2391# messages which can occur if `w' ends up in MAKEFLAGS.
2392# In particular we don't look at `^make:' because GNU make might
2393# be invoked under some other name (usually "gmake"), in which
2394# case it prints its new name instead of `make'.
2395if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2396   am__include=include
2397   am__quote=
2398   _am_result=GNU
2399fi
2400# Now try BSD make style include.
2401if test "$am__include" = "#"; then
2402   echo '.include "confinc"' > confmf
2403   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2404      am__include=.include
2405      am__quote="\""
2406      _am_result=BSD
2407   fi
2408fi
2409
2410
2411{ echo "$as_me:$LINENO: result: $_am_result" >&5
2412echo "${ECHO_T}$_am_result" >&6; }
2413rm -f confinc confmf
2414
2415# Check whether --enable-dependency-tracking was given.
2416if test "${enable_dependency_tracking+set}" = set; then
2417  enableval=$enable_dependency_tracking;
2418fi
2419
2420if test "x$enable_dependency_tracking" != xno; then
2421  am_depcomp="$ac_aux_dir/depcomp"
2422  AMDEPBACKSLASH='\'
2423fi
2424 if test "x$enable_dependency_tracking" != xno; then
2425  AMDEP_TRUE=
2426  AMDEP_FALSE='#'
2427else
2428  AMDEP_TRUE='#'
2429  AMDEP_FALSE=
2430fi
2431
2432
2433ac_ext=c
2434ac_cpp='$CPP $CPPFLAGS'
2435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2437ac_compiler_gnu=$ac_cv_c_compiler_gnu
2438if test -n "$ac_tool_prefix"; then
2439  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2440set dummy ${ac_tool_prefix}gcc; ac_word=$2
2441{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2442echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2443if test "${ac_cv_prog_CC+set}" = set; then
2444  echo $ECHO_N "(cached) $ECHO_C" >&6
2445else
2446  if test -n "$CC"; then
2447  ac_cv_prog_CC="$CC" # Let the user override the test.
2448else
2449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450for as_dir in $PATH
2451do
2452  IFS=$as_save_IFS
2453  test -z "$as_dir" && as_dir=.
2454  for ac_exec_ext in '' $ac_executable_extensions; do
2455  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2456    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2457    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2458    break 2
2459  fi
2460done
2461done
2462IFS=$as_save_IFS
2463
2464fi
2465fi
2466CC=$ac_cv_prog_CC
2467if test -n "$CC"; then
2468  { echo "$as_me:$LINENO: result: $CC" >&5
2469echo "${ECHO_T}$CC" >&6; }
2470else
2471  { echo "$as_me:$LINENO: result: no" >&5
2472echo "${ECHO_T}no" >&6; }
2473fi
2474
2475
2476fi
2477if test -z "$ac_cv_prog_CC"; then
2478  ac_ct_CC=$CC
2479  # Extract the first word of "gcc", so it can be a program name with args.
2480set dummy gcc; ac_word=$2
2481{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2483if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2484  echo $ECHO_N "(cached) $ECHO_C" >&6
2485else
2486  if test -n "$ac_ct_CC"; then
2487  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2488else
2489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490for as_dir in $PATH
2491do
2492  IFS=$as_save_IFS
2493  test -z "$as_dir" && as_dir=.
2494  for ac_exec_ext in '' $ac_executable_extensions; do
2495  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2496    ac_cv_prog_ac_ct_CC="gcc"
2497    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2498    break 2
2499  fi
2500done
2501done
2502IFS=$as_save_IFS
2503
2504fi
2505fi
2506ac_ct_CC=$ac_cv_prog_ac_ct_CC
2507if test -n "$ac_ct_CC"; then
2508  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2509echo "${ECHO_T}$ac_ct_CC" >&6; }
2510else
2511  { echo "$as_me:$LINENO: result: no" >&5
2512echo "${ECHO_T}no" >&6; }
2513fi
2514
2515  if test "x$ac_ct_CC" = x; then
2516    CC=""
2517  else
2518    case $cross_compiling:$ac_tool_warned in
2519yes:)
2520{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2521whose name does not start with the host triplet.  If you think this
2522configuration is useful to you, please write to autoconf@gnu.org." >&5
2523echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2524whose name does not start with the host triplet.  If you think this
2525configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2526ac_tool_warned=yes ;;
2527esac
2528    CC=$ac_ct_CC
2529  fi
2530else
2531  CC="$ac_cv_prog_CC"
2532fi
2533
2534if test -z "$CC"; then
2535          if test -n "$ac_tool_prefix"; then
2536    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2537set dummy ${ac_tool_prefix}cc; ac_word=$2
2538{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2540if test "${ac_cv_prog_CC+set}" = set; then
2541  echo $ECHO_N "(cached) $ECHO_C" >&6
2542else
2543  if test -n "$CC"; then
2544  ac_cv_prog_CC="$CC" # Let the user override the test.
2545else
2546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547for as_dir in $PATH
2548do
2549  IFS=$as_save_IFS
2550  test -z "$as_dir" && as_dir=.
2551  for ac_exec_ext in '' $ac_executable_extensions; do
2552  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2553    ac_cv_prog_CC="${ac_tool_prefix}cc"
2554    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2555    break 2
2556  fi
2557done
2558done
2559IFS=$as_save_IFS
2560
2561fi
2562fi
2563CC=$ac_cv_prog_CC
2564if test -n "$CC"; then
2565  { echo "$as_me:$LINENO: result: $CC" >&5
2566echo "${ECHO_T}$CC" >&6; }
2567else
2568  { echo "$as_me:$LINENO: result: no" >&5
2569echo "${ECHO_T}no" >&6; }
2570fi
2571
2572
2573  fi
2574fi
2575if test -z "$CC"; then
2576  # Extract the first word of "cc", so it can be a program name with args.
2577set dummy cc; ac_word=$2
2578{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2580if test "${ac_cv_prog_CC+set}" = set; then
2581  echo $ECHO_N "(cached) $ECHO_C" >&6
2582else
2583  if test -n "$CC"; then
2584  ac_cv_prog_CC="$CC" # Let the user override the test.
2585else
2586  ac_prog_rejected=no
2587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588for as_dir in $PATH
2589do
2590  IFS=$as_save_IFS
2591  test -z "$as_dir" && as_dir=.
2592  for ac_exec_ext in '' $ac_executable_extensions; do
2593  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2594    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2595       ac_prog_rejected=yes
2596       continue
2597     fi
2598    ac_cv_prog_CC="cc"
2599    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2600    break 2
2601  fi
2602done
2603done
2604IFS=$as_save_IFS
2605
2606if test $ac_prog_rejected = yes; then
2607  # We found a bogon in the path, so make sure we never use it.
2608  set dummy $ac_cv_prog_CC
2609  shift
2610  if test $# != 0; then
2611    # We chose a different compiler from the bogus one.
2612    # However, it has the same basename, so the bogon will be chosen
2613    # first if we set CC to just the basename; use the full file name.
2614    shift
2615    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2616  fi
2617fi
2618fi
2619fi
2620CC=$ac_cv_prog_CC
2621if test -n "$CC"; then
2622  { echo "$as_me:$LINENO: result: $CC" >&5
2623echo "${ECHO_T}$CC" >&6; }
2624else
2625  { echo "$as_me:$LINENO: result: no" >&5
2626echo "${ECHO_T}no" >&6; }
2627fi
2628
2629
2630fi
2631if test -z "$CC"; then
2632  if test -n "$ac_tool_prefix"; then
2633  for ac_prog in cl.exe
2634  do
2635    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2636set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2637{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2639if test "${ac_cv_prog_CC+set}" = set; then
2640  echo $ECHO_N "(cached) $ECHO_C" >&6
2641else
2642  if test -n "$CC"; then
2643  ac_cv_prog_CC="$CC" # Let the user override the test.
2644else
2645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646for as_dir in $PATH
2647do
2648  IFS=$as_save_IFS
2649  test -z "$as_dir" && as_dir=.
2650  for ac_exec_ext in '' $ac_executable_extensions; do
2651  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2652    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2653    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2654    break 2
2655  fi
2656done
2657done
2658IFS=$as_save_IFS
2659
2660fi
2661fi
2662CC=$ac_cv_prog_CC
2663if test -n "$CC"; then
2664  { echo "$as_me:$LINENO: result: $CC" >&5
2665echo "${ECHO_T}$CC" >&6; }
2666else
2667  { echo "$as_me:$LINENO: result: no" >&5
2668echo "${ECHO_T}no" >&6; }
2669fi
2670
2671
2672    test -n "$CC" && break
2673  done
2674fi
2675if test -z "$CC"; then
2676  ac_ct_CC=$CC
2677  for ac_prog in cl.exe
2678do
2679  # Extract the first word of "$ac_prog", so it can be a program name with args.
2680set dummy $ac_prog; ac_word=$2
2681{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2683if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2684  echo $ECHO_N "(cached) $ECHO_C" >&6
2685else
2686  if test -n "$ac_ct_CC"; then
2687  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2688else
2689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690for as_dir in $PATH
2691do
2692  IFS=$as_save_IFS
2693  test -z "$as_dir" && as_dir=.
2694  for ac_exec_ext in '' $ac_executable_extensions; do
2695  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2696    ac_cv_prog_ac_ct_CC="$ac_prog"
2697    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2698    break 2
2699  fi
2700done
2701done
2702IFS=$as_save_IFS
2703
2704fi
2705fi
2706ac_ct_CC=$ac_cv_prog_ac_ct_CC
2707if test -n "$ac_ct_CC"; then
2708  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2709echo "${ECHO_T}$ac_ct_CC" >&6; }
2710else
2711  { echo "$as_me:$LINENO: result: no" >&5
2712echo "${ECHO_T}no" >&6; }
2713fi
2714
2715
2716  test -n "$ac_ct_CC" && break
2717done
2718
2719  if test "x$ac_ct_CC" = x; then
2720    CC=""
2721  else
2722    case $cross_compiling:$ac_tool_warned in
2723yes:)
2724{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2725whose name does not start with the host triplet.  If you think this
2726configuration is useful to you, please write to autoconf@gnu.org." >&5
2727echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2728whose name does not start with the host triplet.  If you think this
2729configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2730ac_tool_warned=yes ;;
2731esac
2732    CC=$ac_ct_CC
2733  fi
2734fi
2735
2736fi
2737
2738
2739test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2740See \`config.log' for more details." >&5
2741echo "$as_me: error: no acceptable C compiler found in \$PATH
2742See \`config.log' for more details." >&2;}
2743   { (exit 1); exit 1; }; }
2744
2745# Provide some information about the compiler.
2746echo "$as_me:$LINENO: checking for C compiler version" >&5
2747ac_compiler=`set X $ac_compile; echo $2`
2748{ (ac_try="$ac_compiler --version >&5"
2749case "(($ac_try" in
2750  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751  *) ac_try_echo=$ac_try;;
2752esac
2753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2754  (eval "$ac_compiler --version >&5") 2>&5
2755  ac_status=$?
2756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757  (exit $ac_status); }
2758{ (ac_try="$ac_compiler -v >&5"
2759case "(($ac_try" in
2760  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761  *) ac_try_echo=$ac_try;;
2762esac
2763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2764  (eval "$ac_compiler -v >&5") 2>&5
2765  ac_status=$?
2766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767  (exit $ac_status); }
2768{ (ac_try="$ac_compiler -V >&5"
2769case "(($ac_try" in
2770  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2771  *) ac_try_echo=$ac_try;;
2772esac
2773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2774  (eval "$ac_compiler -V >&5") 2>&5
2775  ac_status=$?
2776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777  (exit $ac_status); }
2778
2779cat >conftest.$ac_ext <<_ACEOF
2780/* confdefs.h.  */
2781_ACEOF
2782cat confdefs.h >>conftest.$ac_ext
2783cat >>conftest.$ac_ext <<_ACEOF
2784/* end confdefs.h.  */
2785
2786int
2787main ()
2788{
2789
2790  ;
2791  return 0;
2792}
2793_ACEOF
2794ac_clean_files_save=$ac_clean_files
2795ac_clean_files="$ac_clean_files a.out a.exe b.out"
2796# Try to create an executable without -o first, disregard a.out.
2797# It will help us diagnose broken compilers, and finding out an intuition
2798# of exeext.
2799{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2800echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2801ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2802#
2803# List of possible output files, starting from the most likely.
2804# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2805# only as a last resort.  b.out is created by i960 compilers.
2806ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2807#
2808# The IRIX 6 linker writes into existing files which may not be
2809# executable, retaining their permissions.  Remove them first so a
2810# subsequent execution test works.
2811ac_rmfiles=
2812for ac_file in $ac_files
2813do
2814  case $ac_file in
2815    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2816    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2817  esac
2818done
2819rm -f $ac_rmfiles
2820
2821if { (ac_try="$ac_link_default"
2822case "(($ac_try" in
2823  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2824  *) ac_try_echo=$ac_try;;
2825esac
2826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2827  (eval "$ac_link_default") 2>&5
2828  ac_status=$?
2829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830  (exit $ac_status); }; then
2831  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2832# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2833# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2834# so that the user can short-circuit this test for compilers unknown to
2835# Autoconf.
2836for ac_file in $ac_files ''
2837do
2838  test -f "$ac_file" || continue
2839  case $ac_file in
2840    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2841	;;
2842    [ab].out )
2843	# We found the default executable, but exeext='' is most
2844	# certainly right.
2845	break;;
2846    *.* )
2847        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2848	then :; else
2849	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2850	fi
2851	# We set ac_cv_exeext here because the later test for it is not
2852	# safe: cross compilers may not add the suffix if given an `-o'
2853	# argument, so we may need to know it at that point already.
2854	# Even if this section looks crufty: it has the advantage of
2855	# actually working.
2856	break;;
2857    * )
2858	break;;
2859  esac
2860done
2861test "$ac_cv_exeext" = no && ac_cv_exeext=
2862
2863else
2864  ac_file=''
2865fi
2866
2867{ echo "$as_me:$LINENO: result: $ac_file" >&5
2868echo "${ECHO_T}$ac_file" >&6; }
2869if test -z "$ac_file"; then
2870  echo "$as_me: failed program was:" >&5
2871sed 's/^/| /' conftest.$ac_ext >&5
2872
2873{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2874See \`config.log' for more details." >&5
2875echo "$as_me: error: C compiler cannot create executables
2876See \`config.log' for more details." >&2;}
2877   { (exit 77); exit 77; }; }
2878fi
2879
2880ac_exeext=$ac_cv_exeext
2881
2882# Check that the compiler produces executables we can run.  If not, either
2883# the compiler is broken, or we cross compile.
2884{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2885echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2886# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2887# If not cross compiling, check that we can run a simple program.
2888if test "$cross_compiling" != yes; then
2889  if { ac_try='./$ac_file'
2890  { (case "(($ac_try" in
2891  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892  *) ac_try_echo=$ac_try;;
2893esac
2894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2895  (eval "$ac_try") 2>&5
2896  ac_status=$?
2897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898  (exit $ac_status); }; }; then
2899    cross_compiling=no
2900  else
2901    if test "$cross_compiling" = maybe; then
2902	cross_compiling=yes
2903    else
2904	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2905If you meant to cross compile, use \`--host'.
2906See \`config.log' for more details." >&5
2907echo "$as_me: error: cannot run C compiled programs.
2908If you meant to cross compile, use \`--host'.
2909See \`config.log' for more details." >&2;}
2910   { (exit 1); exit 1; }; }
2911    fi
2912  fi
2913fi
2914{ echo "$as_me:$LINENO: result: yes" >&5
2915echo "${ECHO_T}yes" >&6; }
2916
2917rm -f a.out a.exe conftest$ac_cv_exeext b.out
2918ac_clean_files=$ac_clean_files_save
2919# Check that the compiler produces executables we can run.  If not, either
2920# the compiler is broken, or we cross compile.
2921{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2922echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2923{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2924echo "${ECHO_T}$cross_compiling" >&6; }
2925
2926{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2927echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2928if { (ac_try="$ac_link"
2929case "(($ac_try" in
2930  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931  *) ac_try_echo=$ac_try;;
2932esac
2933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2934  (eval "$ac_link") 2>&5
2935  ac_status=$?
2936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937  (exit $ac_status); }; then
2938  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2939# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2940# work properly (i.e., refer to `conftest.exe'), while it won't with
2941# `rm'.
2942for ac_file in conftest.exe conftest conftest.*; do
2943  test -f "$ac_file" || continue
2944  case $ac_file in
2945    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2946    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2947	  break;;
2948    * ) break;;
2949  esac
2950done
2951else
2952  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2953See \`config.log' for more details." >&5
2954echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2955See \`config.log' for more details." >&2;}
2956   { (exit 1); exit 1; }; }
2957fi
2958
2959rm -f conftest$ac_cv_exeext
2960{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2961echo "${ECHO_T}$ac_cv_exeext" >&6; }
2962
2963rm -f conftest.$ac_ext
2964EXEEXT=$ac_cv_exeext
2965ac_exeext=$EXEEXT
2966{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2967echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2968if test "${ac_cv_objext+set}" = set; then
2969  echo $ECHO_N "(cached) $ECHO_C" >&6
2970else
2971  cat >conftest.$ac_ext <<_ACEOF
2972/* confdefs.h.  */
2973_ACEOF
2974cat confdefs.h >>conftest.$ac_ext
2975cat >>conftest.$ac_ext <<_ACEOF
2976/* end confdefs.h.  */
2977
2978int
2979main ()
2980{
2981
2982  ;
2983  return 0;
2984}
2985_ACEOF
2986rm -f conftest.o conftest.obj
2987if { (ac_try="$ac_compile"
2988case "(($ac_try" in
2989  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990  *) ac_try_echo=$ac_try;;
2991esac
2992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993  (eval "$ac_compile") 2>&5
2994  ac_status=$?
2995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996  (exit $ac_status); }; then
2997  for ac_file in conftest.o conftest.obj conftest.*; do
2998  test -f "$ac_file" || continue;
2999  case $ac_file in
3000    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3001    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3002       break;;
3003  esac
3004done
3005else
3006  echo "$as_me: failed program was:" >&5
3007sed 's/^/| /' conftest.$ac_ext >&5
3008
3009{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3010See \`config.log' for more details." >&5
3011echo "$as_me: error: cannot compute suffix of object files: cannot compile
3012See \`config.log' for more details." >&2;}
3013   { (exit 1); exit 1; }; }
3014fi
3015
3016rm -f conftest.$ac_cv_objext conftest.$ac_ext
3017fi
3018{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3019echo "${ECHO_T}$ac_cv_objext" >&6; }
3020OBJEXT=$ac_cv_objext
3021ac_objext=$OBJEXT
3022{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3023echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3024if test "${ac_cv_c_compiler_gnu+set}" = set; then
3025  echo $ECHO_N "(cached) $ECHO_C" >&6
3026else
3027  cat >conftest.$ac_ext <<_ACEOF
3028/* confdefs.h.  */
3029_ACEOF
3030cat confdefs.h >>conftest.$ac_ext
3031cat >>conftest.$ac_ext <<_ACEOF
3032/* end confdefs.h.  */
3033
3034int
3035main ()
3036{
3037#ifndef __GNUC__
3038       choke me
3039#endif
3040
3041  ;
3042  return 0;
3043}
3044_ACEOF
3045rm -f conftest.$ac_objext
3046if { (ac_try="$ac_compile"
3047case "(($ac_try" in
3048  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049  *) ac_try_echo=$ac_try;;
3050esac
3051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3052  (eval "$ac_compile") 2>conftest.er1
3053  ac_status=$?
3054  grep -v '^ *+' conftest.er1 >conftest.err
3055  rm -f conftest.er1
3056  cat conftest.err >&5
3057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058  (exit $ac_status); } && {
3059	 test -z "$ac_c_werror_flag" ||
3060	 test ! -s conftest.err
3061       } && test -s conftest.$ac_objext; then
3062  ac_compiler_gnu=yes
3063else
3064  echo "$as_me: failed program was:" >&5
3065sed 's/^/| /' conftest.$ac_ext >&5
3066
3067	ac_compiler_gnu=no
3068fi
3069
3070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3071ac_cv_c_compiler_gnu=$ac_compiler_gnu
3072
3073fi
3074{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3075echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3076GCC=`test $ac_compiler_gnu = yes && echo yes`
3077ac_test_CFLAGS=${CFLAGS+set}
3078ac_save_CFLAGS=$CFLAGS
3079{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3080echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3081if test "${ac_cv_prog_cc_g+set}" = set; then
3082  echo $ECHO_N "(cached) $ECHO_C" >&6
3083else
3084  ac_save_c_werror_flag=$ac_c_werror_flag
3085   ac_c_werror_flag=yes
3086   ac_cv_prog_cc_g=no
3087   CFLAGS="-g"
3088   cat >conftest.$ac_ext <<_ACEOF
3089/* confdefs.h.  */
3090_ACEOF
3091cat confdefs.h >>conftest.$ac_ext
3092cat >>conftest.$ac_ext <<_ACEOF
3093/* end confdefs.h.  */
3094
3095int
3096main ()
3097{
3098
3099  ;
3100  return 0;
3101}
3102_ACEOF
3103rm -f conftest.$ac_objext
3104if { (ac_try="$ac_compile"
3105case "(($ac_try" in
3106  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107  *) ac_try_echo=$ac_try;;
3108esac
3109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110  (eval "$ac_compile") 2>conftest.er1
3111  ac_status=$?
3112  grep -v '^ *+' conftest.er1 >conftest.err
3113  rm -f conftest.er1
3114  cat conftest.err >&5
3115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116  (exit $ac_status); } && {
3117	 test -z "$ac_c_werror_flag" ||
3118	 test ! -s conftest.err
3119       } && test -s conftest.$ac_objext; then
3120  ac_cv_prog_cc_g=yes
3121else
3122  echo "$as_me: failed program was:" >&5
3123sed 's/^/| /' conftest.$ac_ext >&5
3124
3125	CFLAGS=""
3126      cat >conftest.$ac_ext <<_ACEOF
3127/* confdefs.h.  */
3128_ACEOF
3129cat confdefs.h >>conftest.$ac_ext
3130cat >>conftest.$ac_ext <<_ACEOF
3131/* end confdefs.h.  */
3132
3133int
3134main ()
3135{
3136
3137  ;
3138  return 0;
3139}
3140_ACEOF
3141rm -f conftest.$ac_objext
3142if { (ac_try="$ac_compile"
3143case "(($ac_try" in
3144  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145  *) ac_try_echo=$ac_try;;
3146esac
3147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148  (eval "$ac_compile") 2>conftest.er1
3149  ac_status=$?
3150  grep -v '^ *+' conftest.er1 >conftest.err
3151  rm -f conftest.er1
3152  cat conftest.err >&5
3153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154  (exit $ac_status); } && {
3155	 test -z "$ac_c_werror_flag" ||
3156	 test ! -s conftest.err
3157       } && test -s conftest.$ac_objext; then
3158  :
3159else
3160  echo "$as_me: failed program was:" >&5
3161sed 's/^/| /' conftest.$ac_ext >&5
3162
3163	ac_c_werror_flag=$ac_save_c_werror_flag
3164	 CFLAGS="-g"
3165	 cat >conftest.$ac_ext <<_ACEOF
3166/* confdefs.h.  */
3167_ACEOF
3168cat confdefs.h >>conftest.$ac_ext
3169cat >>conftest.$ac_ext <<_ACEOF
3170/* end confdefs.h.  */
3171
3172int
3173main ()
3174{
3175
3176  ;
3177  return 0;
3178}
3179_ACEOF
3180rm -f conftest.$ac_objext
3181if { (ac_try="$ac_compile"
3182case "(($ac_try" in
3183  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184  *) ac_try_echo=$ac_try;;
3185esac
3186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187  (eval "$ac_compile") 2>conftest.er1
3188  ac_status=$?
3189  grep -v '^ *+' conftest.er1 >conftest.err
3190  rm -f conftest.er1
3191  cat conftest.err >&5
3192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193  (exit $ac_status); } && {
3194	 test -z "$ac_c_werror_flag" ||
3195	 test ! -s conftest.err
3196       } && test -s conftest.$ac_objext; then
3197  ac_cv_prog_cc_g=yes
3198else
3199  echo "$as_me: failed program was:" >&5
3200sed 's/^/| /' conftest.$ac_ext >&5
3201
3202
3203fi
3204
3205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206fi
3207
3208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3209fi
3210
3211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3212   ac_c_werror_flag=$ac_save_c_werror_flag
3213fi
3214{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3215echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3216if test "$ac_test_CFLAGS" = set; then
3217  CFLAGS=$ac_save_CFLAGS
3218elif test $ac_cv_prog_cc_g = yes; then
3219  if test "$GCC" = yes; then
3220    CFLAGS="-g -O2"
3221  else
3222    CFLAGS="-g"
3223  fi
3224else
3225  if test "$GCC" = yes; then
3226    CFLAGS="-O2"
3227  else
3228    CFLAGS=
3229  fi
3230fi
3231{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3232echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3233if test "${ac_cv_prog_cc_c89+set}" = set; then
3234  echo $ECHO_N "(cached) $ECHO_C" >&6
3235else
3236  ac_cv_prog_cc_c89=no
3237ac_save_CC=$CC
3238cat >conftest.$ac_ext <<_ACEOF
3239/* confdefs.h.  */
3240_ACEOF
3241cat confdefs.h >>conftest.$ac_ext
3242cat >>conftest.$ac_ext <<_ACEOF
3243/* end confdefs.h.  */
3244#include <stdarg.h>
3245#include <stdio.h>
3246#include <sys/types.h>
3247#include <sys/stat.h>
3248/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3249struct buf { int x; };
3250FILE * (*rcsopen) (struct buf *, struct stat *, int);
3251static char *e (p, i)
3252     char **p;
3253     int i;
3254{
3255  return p[i];
3256}
3257static char *f (char * (*g) (char **, int), char **p, ...)
3258{
3259  char *s;
3260  va_list v;
3261  va_start (v,p);
3262  s = g (p, va_arg (v,int));
3263  va_end (v);
3264  return s;
3265}
3266
3267/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3268   function prototypes and stuff, but not '\xHH' hex character constants.
3269   These don't provoke an error unfortunately, instead are silently treated
3270   as 'x'.  The following induces an error, until -std is added to get
3271   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3272   array size at least.  It's necessary to write '\x00'==0 to get something
3273   that's true only with -std.  */
3274int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3275
3276/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3277   inside strings and character constants.  */
3278#define FOO(x) 'x'
3279int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3280
3281int test (int i, double x);
3282struct s1 {int (*f) (int a);};
3283struct s2 {int (*f) (double a);};
3284int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3285int argc;
3286char **argv;
3287int
3288main ()
3289{
3290return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3291  ;
3292  return 0;
3293}
3294_ACEOF
3295for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3296	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3297do
3298  CC="$ac_save_CC $ac_arg"
3299  rm -f conftest.$ac_objext
3300if { (ac_try="$ac_compile"
3301case "(($ac_try" in
3302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303  *) ac_try_echo=$ac_try;;
3304esac
3305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3306  (eval "$ac_compile") 2>conftest.er1
3307  ac_status=$?
3308  grep -v '^ *+' conftest.er1 >conftest.err
3309  rm -f conftest.er1
3310  cat conftest.err >&5
3311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312  (exit $ac_status); } && {
3313	 test -z "$ac_c_werror_flag" ||
3314	 test ! -s conftest.err
3315       } && test -s conftest.$ac_objext; then
3316  ac_cv_prog_cc_c89=$ac_arg
3317else
3318  echo "$as_me: failed program was:" >&5
3319sed 's/^/| /' conftest.$ac_ext >&5
3320
3321
3322fi
3323
3324rm -f core conftest.err conftest.$ac_objext
3325  test "x$ac_cv_prog_cc_c89" != "xno" && break
3326done
3327rm -f conftest.$ac_ext
3328CC=$ac_save_CC
3329
3330fi
3331# AC_CACHE_VAL
3332case "x$ac_cv_prog_cc_c89" in
3333  x)
3334    { echo "$as_me:$LINENO: result: none needed" >&5
3335echo "${ECHO_T}none needed" >&6; } ;;
3336  xno)
3337    { echo "$as_me:$LINENO: result: unsupported" >&5
3338echo "${ECHO_T}unsupported" >&6; } ;;
3339  *)
3340    CC="$CC $ac_cv_prog_cc_c89"
3341    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3342echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3343esac
3344
3345
3346ac_ext=c
3347ac_cpp='$CPP $CPPFLAGS'
3348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3350ac_compiler_gnu=$ac_cv_c_compiler_gnu
3351
3352depcc="$CC"   am_compiler_list=
3353
3354{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3355echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3356if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3357  echo $ECHO_N "(cached) $ECHO_C" >&6
3358else
3359  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3360  # We make a subdir and do the tests there.  Otherwise we can end up
3361  # making bogus files that we don't know about and never remove.  For
3362  # instance it was reported that on HP-UX the gcc test will end up
3363  # making a dummy file named `D' -- because `-MD' means `put the output
3364  # in D'.
3365  mkdir conftest.dir
3366  # Copy depcomp to subdir because otherwise we won't find it if we're
3367  # using a relative directory.
3368  cp "$am_depcomp" conftest.dir
3369  cd conftest.dir
3370  # We will build objects and dependencies in a subdirectory because
3371  # it helps to detect inapplicable dependency modes.  For instance
3372  # both Tru64's cc and ICC support -MD to output dependencies as a
3373  # side effect of compilation, but ICC will put the dependencies in
3374  # the current directory while Tru64 will put them in the object
3375  # directory.
3376  mkdir sub
3377
3378  am_cv_CC_dependencies_compiler_type=none
3379  if test "$am_compiler_list" = ""; then
3380     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3381  fi
3382  for depmode in $am_compiler_list; do
3383    # Setup a source with many dependencies, because some compilers
3384    # like to wrap large dependency lists on column 80 (with \), and
3385    # we should not choose a depcomp mode which is confused by this.
3386    #
3387    # We need to recreate these files for each test, as the compiler may
3388    # overwrite some of them when testing with obscure command lines.
3389    # This happens at least with the AIX C compiler.
3390    : > sub/conftest.c
3391    for i in 1 2 3 4 5 6; do
3392      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3393      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3394      # Solaris 8's {/usr,}/bin/sh.
3395      touch sub/conftst$i.h
3396    done
3397    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3398
3399    case $depmode in
3400    nosideeffect)
3401      # after this tag, mechanisms are not by side-effect, so they'll
3402      # only be used when explicitly requested
3403      if test "x$enable_dependency_tracking" = xyes; then
3404	continue
3405      else
3406	break
3407      fi
3408      ;;
3409    none) break ;;
3410    esac
3411    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3412    # mode.  It turns out that the SunPro C++ compiler does not properly
3413    # handle `-M -o', and we need to detect this.
3414    if depmode=$depmode \
3415       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3416       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3417       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3418         >/dev/null 2>conftest.err &&
3419       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3420       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3421       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3422       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3423      # icc doesn't choke on unknown options, it will just issue warnings
3424      # or remarks (even with -Werror).  So we grep stderr for any message
3425      # that says an option was ignored or not supported.
3426      # When given -MP, icc 7.0 and 7.1 complain thusly:
3427      #   icc: Command line warning: ignoring option '-M'; no argument required
3428      # The diagnosis changed in icc 8.0:
3429      #   icc: Command line remark: option '-MP' not supported
3430      if (grep 'ignoring option' conftest.err ||
3431          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3432        am_cv_CC_dependencies_compiler_type=$depmode
3433        break
3434      fi
3435    fi
3436  done
3437
3438  cd ..
3439  rm -rf conftest.dir
3440else
3441  am_cv_CC_dependencies_compiler_type=none
3442fi
3443
3444fi
3445{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3446echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3447CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3448
3449 if
3450  test "x$enable_dependency_tracking" != xno \
3451  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3452  am__fastdepCC_TRUE=
3453  am__fastdepCC_FALSE='#'
3454else
3455  am__fastdepCC_TRUE='#'
3456  am__fastdepCC_FALSE=
3457fi
3458
3459
3460   { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3461echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
3462if test "${ac_cv_prog_cc_c99+set}" = set; then
3463  echo $ECHO_N "(cached) $ECHO_C" >&6
3464else
3465  ac_cv_prog_cc_c99=no
3466ac_save_CC=$CC
3467cat >conftest.$ac_ext <<_ACEOF
3468/* confdefs.h.  */
3469_ACEOF
3470cat confdefs.h >>conftest.$ac_ext
3471cat >>conftest.$ac_ext <<_ACEOF
3472/* end confdefs.h.  */
3473#include <stdarg.h>
3474#include <stdbool.h>
3475#include <stdlib.h>
3476#include <wchar.h>
3477#include <stdio.h>
3478
3479// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3480#define debug(...) fprintf (stderr, __VA_ARGS__)
3481#define showlist(...) puts (#__VA_ARGS__)
3482#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3483static void
3484test_varargs_macros (void)
3485{
3486  int x = 1234;
3487  int y = 5678;
3488  debug ("Flag");
3489  debug ("X = %d\n", x);
3490  showlist (The first, second, and third items.);
3491  report (x>y, "x is %d but y is %d", x, y);
3492}
3493
3494// Check long long types.
3495#define BIG64 18446744073709551615ull
3496#define BIG32 4294967295ul
3497#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3498#if !BIG_OK
3499  your preprocessor is broken;
3500#endif
3501#if BIG_OK
3502#else
3503  your preprocessor is broken;
3504#endif
3505static long long int bignum = -9223372036854775807LL;
3506static unsigned long long int ubignum = BIG64;
3507
3508struct incomplete_array
3509{
3510  int datasize;
3511  double data[];
3512};
3513
3514struct named_init {
3515  int number;
3516  const wchar_t *name;
3517  double average;
3518};
3519
3520typedef const char *ccp;
3521
3522static inline int
3523test_restrict (ccp restrict text)
3524{
3525  // See if C++-style comments work.
3526  // Iterate through items via the restricted pointer.
3527  // Also check for declarations in for loops.
3528  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3529    continue;
3530  return 0;
3531}
3532
3533// Check varargs and va_copy.
3534static void
3535test_varargs (const char *format, ...)
3536{
3537  va_list args;
3538  va_start (args, format);
3539  va_list args_copy;
3540  va_copy (args_copy, args);
3541
3542  const char *str;
3543  int number;
3544  float fnumber;
3545
3546  while (*format)
3547    {
3548      switch (*format++)
3549	{
3550	case 's': // string
3551	  str = va_arg (args_copy, const char *);
3552	  break;
3553	case 'd': // int
3554	  number = va_arg (args_copy, int);
3555	  break;
3556	case 'f': // float
3557	  fnumber = va_arg (args_copy, double);
3558	  break;
3559	default:
3560	  break;
3561	}
3562    }
3563  va_end (args_copy);
3564  va_end (args);
3565}
3566
3567int
3568main ()
3569{
3570
3571  // Check bool.
3572  _Bool success = false;
3573
3574  // Check restrict.
3575  if (test_restrict ("String literal") == 0)
3576    success = true;
3577  char *restrict newvar = "Another string";
3578
3579  // Check varargs.
3580  test_varargs ("s, d' f .", "string", 65, 34.234);
3581  test_varargs_macros ();
3582
3583  // Check flexible array members.
3584  struct incomplete_array *ia =
3585    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3586  ia->datasize = 10;
3587  for (int i = 0; i < ia->datasize; ++i)
3588    ia->data[i] = i * 1.234;
3589
3590  // Check named initializers.
3591  struct named_init ni = {
3592    .number = 34,
3593    .name = L"Test wide string",
3594    .average = 543.34343,
3595  };
3596
3597  ni.number = 58;
3598
3599  int dynamic_array[ni.number];
3600  dynamic_array[ni.number - 1] = 543;
3601
3602  // work around unused variable warnings
3603  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3604	  || dynamic_array[ni.number - 1] != 543);
3605
3606  ;
3607  return 0;
3608}
3609_ACEOF
3610for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
3611do
3612  CC="$ac_save_CC $ac_arg"
3613  rm -f conftest.$ac_objext
3614if { (ac_try="$ac_compile"
3615case "(($ac_try" in
3616  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617  *) ac_try_echo=$ac_try;;
3618esac
3619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3620  (eval "$ac_compile") 2>conftest.er1
3621  ac_status=$?
3622  grep -v '^ *+' conftest.er1 >conftest.err
3623  rm -f conftest.er1
3624  cat conftest.err >&5
3625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626  (exit $ac_status); } && {
3627	 test -z "$ac_c_werror_flag" ||
3628	 test ! -s conftest.err
3629       } && test -s conftest.$ac_objext; then
3630  ac_cv_prog_cc_c99=$ac_arg
3631else
3632  echo "$as_me: failed program was:" >&5
3633sed 's/^/| /' conftest.$ac_ext >&5
3634
3635
3636fi
3637
3638rm -f core conftest.err conftest.$ac_objext
3639  test "x$ac_cv_prog_cc_c99" != "xno" && break
3640done
3641rm -f conftest.$ac_ext
3642CC=$ac_save_CC
3643
3644fi
3645# AC_CACHE_VAL
3646case "x$ac_cv_prog_cc_c99" in
3647  x)
3648    { echo "$as_me:$LINENO: result: none needed" >&5
3649echo "${ECHO_T}none needed" >&6; } ;;
3650  xno)
3651    { echo "$as_me:$LINENO: result: unsupported" >&5
3652echo "${ECHO_T}unsupported" >&6; } ;;
3653  *)
3654    CC="$CC $ac_cv_prog_cc_c99"
3655    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3656echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3657esac
3658
3659
3660
3661
3662ac_ext=c
3663ac_cpp='$CPP $CPPFLAGS'
3664ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3665ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3666ac_compiler_gnu=$ac_cv_c_compiler_gnu
3667{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3668echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3669# On Suns, sometimes $CPP names a directory.
3670if test -n "$CPP" && test -d "$CPP"; then
3671  CPP=
3672fi
3673if test -z "$CPP"; then
3674  if test "${ac_cv_prog_CPP+set}" = set; then
3675  echo $ECHO_N "(cached) $ECHO_C" >&6
3676else
3677      # Double quotes because CPP needs to be expanded
3678    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3679    do
3680      ac_preproc_ok=false
3681for ac_c_preproc_warn_flag in '' yes
3682do
3683  # Use a header file that comes with gcc, so configuring glibc
3684  # with a fresh cross-compiler works.
3685  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3686  # <limits.h> exists even on freestanding compilers.
3687  # On the NeXT, cc -E runs the code through the compiler's parser,
3688  # not just through cpp. "Syntax error" is here to catch this case.
3689  cat >conftest.$ac_ext <<_ACEOF
3690/* confdefs.h.  */
3691_ACEOF
3692cat confdefs.h >>conftest.$ac_ext
3693cat >>conftest.$ac_ext <<_ACEOF
3694/* end confdefs.h.  */
3695#ifdef __STDC__
3696# include <limits.h>
3697#else
3698# include <assert.h>
3699#endif
3700		     Syntax error
3701_ACEOF
3702if { (ac_try="$ac_cpp conftest.$ac_ext"
3703case "(($ac_try" in
3704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705  *) ac_try_echo=$ac_try;;
3706esac
3707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3708  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3709  ac_status=$?
3710  grep -v '^ *+' conftest.er1 >conftest.err
3711  rm -f conftest.er1
3712  cat conftest.err >&5
3713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714  (exit $ac_status); } >/dev/null && {
3715	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3716	 test ! -s conftest.err
3717       }; then
3718  :
3719else
3720  echo "$as_me: failed program was:" >&5
3721sed 's/^/| /' conftest.$ac_ext >&5
3722
3723  # Broken: fails on valid input.
3724continue
3725fi
3726
3727rm -f conftest.err conftest.$ac_ext
3728
3729  # OK, works on sane cases.  Now check whether nonexistent headers
3730  # can be detected and how.
3731  cat >conftest.$ac_ext <<_ACEOF
3732/* confdefs.h.  */
3733_ACEOF
3734cat confdefs.h >>conftest.$ac_ext
3735cat >>conftest.$ac_ext <<_ACEOF
3736/* end confdefs.h.  */
3737#include <ac_nonexistent.h>
3738_ACEOF
3739if { (ac_try="$ac_cpp conftest.$ac_ext"
3740case "(($ac_try" in
3741  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3742  *) ac_try_echo=$ac_try;;
3743esac
3744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3745  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3746  ac_status=$?
3747  grep -v '^ *+' conftest.er1 >conftest.err
3748  rm -f conftest.er1
3749  cat conftest.err >&5
3750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751  (exit $ac_status); } >/dev/null && {
3752	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3753	 test ! -s conftest.err
3754       }; then
3755  # Broken: success on invalid input.
3756continue
3757else
3758  echo "$as_me: failed program was:" >&5
3759sed 's/^/| /' conftest.$ac_ext >&5
3760
3761  # Passes both tests.
3762ac_preproc_ok=:
3763break
3764fi
3765
3766rm -f conftest.err conftest.$ac_ext
3767
3768done
3769# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3770rm -f conftest.err conftest.$ac_ext
3771if $ac_preproc_ok; then
3772  break
3773fi
3774
3775    done
3776    ac_cv_prog_CPP=$CPP
3777
3778fi
3779  CPP=$ac_cv_prog_CPP
3780else
3781  ac_cv_prog_CPP=$CPP
3782fi
3783{ echo "$as_me:$LINENO: result: $CPP" >&5
3784echo "${ECHO_T}$CPP" >&6; }
3785ac_preproc_ok=false
3786for ac_c_preproc_warn_flag in '' yes
3787do
3788  # Use a header file that comes with gcc, so configuring glibc
3789  # with a fresh cross-compiler works.
3790  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3791  # <limits.h> exists even on freestanding compilers.
3792  # On the NeXT, cc -E runs the code through the compiler's parser,
3793  # not just through cpp. "Syntax error" is here to catch this case.
3794  cat >conftest.$ac_ext <<_ACEOF
3795/* confdefs.h.  */
3796_ACEOF
3797cat confdefs.h >>conftest.$ac_ext
3798cat >>conftest.$ac_ext <<_ACEOF
3799/* end confdefs.h.  */
3800#ifdef __STDC__
3801# include <limits.h>
3802#else
3803# include <assert.h>
3804#endif
3805		     Syntax error
3806_ACEOF
3807if { (ac_try="$ac_cpp conftest.$ac_ext"
3808case "(($ac_try" in
3809  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3810  *) ac_try_echo=$ac_try;;
3811esac
3812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3813  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3814  ac_status=$?
3815  grep -v '^ *+' conftest.er1 >conftest.err
3816  rm -f conftest.er1
3817  cat conftest.err >&5
3818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819  (exit $ac_status); } >/dev/null && {
3820	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3821	 test ! -s conftest.err
3822       }; then
3823  :
3824else
3825  echo "$as_me: failed program was:" >&5
3826sed 's/^/| /' conftest.$ac_ext >&5
3827
3828  # Broken: fails on valid input.
3829continue
3830fi
3831
3832rm -f conftest.err conftest.$ac_ext
3833
3834  # OK, works on sane cases.  Now check whether nonexistent headers
3835  # can be detected and how.
3836  cat >conftest.$ac_ext <<_ACEOF
3837/* confdefs.h.  */
3838_ACEOF
3839cat confdefs.h >>conftest.$ac_ext
3840cat >>conftest.$ac_ext <<_ACEOF
3841/* end confdefs.h.  */
3842#include <ac_nonexistent.h>
3843_ACEOF
3844if { (ac_try="$ac_cpp conftest.$ac_ext"
3845case "(($ac_try" in
3846  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847  *) ac_try_echo=$ac_try;;
3848esac
3849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3850  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3851  ac_status=$?
3852  grep -v '^ *+' conftest.er1 >conftest.err
3853  rm -f conftest.er1
3854  cat conftest.err >&5
3855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856  (exit $ac_status); } >/dev/null && {
3857	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3858	 test ! -s conftest.err
3859       }; then
3860  # Broken: success on invalid input.
3861continue
3862else
3863  echo "$as_me: failed program was:" >&5
3864sed 's/^/| /' conftest.$ac_ext >&5
3865
3866  # Passes both tests.
3867ac_preproc_ok=:
3868break
3869fi
3870
3871rm -f conftest.err conftest.$ac_ext
3872
3873done
3874# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3875rm -f conftest.err conftest.$ac_ext
3876if $ac_preproc_ok; then
3877  :
3878else
3879  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3880See \`config.log' for more details." >&5
3881echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3882See \`config.log' for more details." >&2;}
3883   { (exit 1); exit 1; }; }
3884fi
3885
3886ac_ext=c
3887ac_cpp='$CPP $CPPFLAGS'
3888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3890ac_compiler_gnu=$ac_cv_c_compiler_gnu
3891
3892
3893{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3894echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3895if test "${ac_cv_path_GREP+set}" = set; then
3896  echo $ECHO_N "(cached) $ECHO_C" >&6
3897else
3898  # Extract the first word of "grep ggrep" to use in msg output
3899if test -z "$GREP"; then
3900set dummy grep ggrep; ac_prog_name=$2
3901if test "${ac_cv_path_GREP+set}" = set; then
3902  echo $ECHO_N "(cached) $ECHO_C" >&6
3903else
3904  ac_path_GREP_found=false
3905# Loop through the user's path and test for each of PROGNAME-LIST
3906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3908do
3909  IFS=$as_save_IFS
3910  test -z "$as_dir" && as_dir=.
3911  for ac_prog in grep ggrep; do
3912  for ac_exec_ext in '' $ac_executable_extensions; do
3913    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3914    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3915    # Check for GNU ac_path_GREP and select it if it is found.
3916  # Check for GNU $ac_path_GREP
3917case `"$ac_path_GREP" --version 2>&1` in
3918*GNU*)
3919  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3920*)
3921  ac_count=0
3922  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3923  while :
3924  do
3925    cat "conftest.in" "conftest.in" >"conftest.tmp"
3926    mv "conftest.tmp" "conftest.in"
3927    cp "conftest.in" "conftest.nl"
3928    echo 'GREP' >> "conftest.nl"
3929    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3930    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3931    ac_count=`expr $ac_count + 1`
3932    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3933      # Best one so far, save it but keep looking for a better one
3934      ac_cv_path_GREP="$ac_path_GREP"
3935      ac_path_GREP_max=$ac_count
3936    fi
3937    # 10*(2^10) chars as input seems more than enough
3938    test $ac_count -gt 10 && break
3939  done
3940  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3941esac
3942
3943
3944    $ac_path_GREP_found && break 3
3945  done
3946done
3947
3948done
3949IFS=$as_save_IFS
3950
3951
3952fi
3953
3954GREP="$ac_cv_path_GREP"
3955if test -z "$GREP"; then
3956  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3957echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3958   { (exit 1); exit 1; }; }
3959fi
3960
3961else
3962  ac_cv_path_GREP=$GREP
3963fi
3964
3965
3966fi
3967{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3968echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3969 GREP="$ac_cv_path_GREP"
3970
3971
3972{ echo "$as_me:$LINENO: checking for egrep" >&5
3973echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3974if test "${ac_cv_path_EGREP+set}" = set; then
3975  echo $ECHO_N "(cached) $ECHO_C" >&6
3976else
3977  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3978   then ac_cv_path_EGREP="$GREP -E"
3979   else
3980     # Extract the first word of "egrep" to use in msg output
3981if test -z "$EGREP"; then
3982set dummy egrep; ac_prog_name=$2
3983if test "${ac_cv_path_EGREP+set}" = set; then
3984  echo $ECHO_N "(cached) $ECHO_C" >&6
3985else
3986  ac_path_EGREP_found=false
3987# Loop through the user's path and test for each of PROGNAME-LIST
3988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3990do
3991  IFS=$as_save_IFS
3992  test -z "$as_dir" && as_dir=.
3993  for ac_prog in egrep; do
3994  for ac_exec_ext in '' $ac_executable_extensions; do
3995    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3996    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3997    # Check for GNU ac_path_EGREP and select it if it is found.
3998  # Check for GNU $ac_path_EGREP
3999case `"$ac_path_EGREP" --version 2>&1` in
4000*GNU*)
4001  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4002*)
4003  ac_count=0
4004  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4005  while :
4006  do
4007    cat "conftest.in" "conftest.in" >"conftest.tmp"
4008    mv "conftest.tmp" "conftest.in"
4009    cp "conftest.in" "conftest.nl"
4010    echo 'EGREP' >> "conftest.nl"
4011    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4012    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4013    ac_count=`expr $ac_count + 1`
4014    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4015      # Best one so far, save it but keep looking for a better one
4016      ac_cv_path_EGREP="$ac_path_EGREP"
4017      ac_path_EGREP_max=$ac_count
4018    fi
4019    # 10*(2^10) chars as input seems more than enough
4020    test $ac_count -gt 10 && break
4021  done
4022  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4023esac
4024
4025
4026    $ac_path_EGREP_found && break 3
4027  done
4028done
4029
4030done
4031IFS=$as_save_IFS
4032
4033
4034fi
4035
4036EGREP="$ac_cv_path_EGREP"
4037if test -z "$EGREP"; then
4038  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4039echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4040   { (exit 1); exit 1; }; }
4041fi
4042
4043else
4044  ac_cv_path_EGREP=$EGREP
4045fi
4046
4047
4048   fi
4049fi
4050{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4051echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4052 EGREP="$ac_cv_path_EGREP"
4053
4054
4055{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4056echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4057if test "${ac_cv_header_stdc+set}" = set; then
4058  echo $ECHO_N "(cached) $ECHO_C" >&6
4059else
4060  cat >conftest.$ac_ext <<_ACEOF
4061/* confdefs.h.  */
4062_ACEOF
4063cat confdefs.h >>conftest.$ac_ext
4064cat >>conftest.$ac_ext <<_ACEOF
4065/* end confdefs.h.  */
4066#include <stdlib.h>
4067#include <stdarg.h>
4068#include <string.h>
4069#include <float.h>
4070
4071int
4072main ()
4073{
4074
4075  ;
4076  return 0;
4077}
4078_ACEOF
4079rm -f conftest.$ac_objext
4080if { (ac_try="$ac_compile"
4081case "(($ac_try" in
4082  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4083  *) ac_try_echo=$ac_try;;
4084esac
4085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4086  (eval "$ac_compile") 2>conftest.er1
4087  ac_status=$?
4088  grep -v '^ *+' conftest.er1 >conftest.err
4089  rm -f conftest.er1
4090  cat conftest.err >&5
4091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092  (exit $ac_status); } && {
4093	 test -z "$ac_c_werror_flag" ||
4094	 test ! -s conftest.err
4095       } && test -s conftest.$ac_objext; then
4096  ac_cv_header_stdc=yes
4097else
4098  echo "$as_me: failed program was:" >&5
4099sed 's/^/| /' conftest.$ac_ext >&5
4100
4101	ac_cv_header_stdc=no
4102fi
4103
4104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4105
4106if test $ac_cv_header_stdc = yes; then
4107  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4108  cat >conftest.$ac_ext <<_ACEOF
4109/* confdefs.h.  */
4110_ACEOF
4111cat confdefs.h >>conftest.$ac_ext
4112cat >>conftest.$ac_ext <<_ACEOF
4113/* end confdefs.h.  */
4114#include <string.h>
4115
4116_ACEOF
4117if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4118  $EGREP "memchr" >/dev/null 2>&1; then
4119  :
4120else
4121  ac_cv_header_stdc=no
4122fi
4123rm -f -r conftest*
4124
4125fi
4126
4127if test $ac_cv_header_stdc = yes; then
4128  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4129  cat >conftest.$ac_ext <<_ACEOF
4130/* confdefs.h.  */
4131_ACEOF
4132cat confdefs.h >>conftest.$ac_ext
4133cat >>conftest.$ac_ext <<_ACEOF
4134/* end confdefs.h.  */
4135#include <stdlib.h>
4136
4137_ACEOF
4138if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4139  $EGREP "free" >/dev/null 2>&1; then
4140  :
4141else
4142  ac_cv_header_stdc=no
4143fi
4144rm -f -r conftest*
4145
4146fi
4147
4148if test $ac_cv_header_stdc = yes; then
4149  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4150  if test "$cross_compiling" = yes; then
4151  :
4152else
4153  cat >conftest.$ac_ext <<_ACEOF
4154/* confdefs.h.  */
4155_ACEOF
4156cat confdefs.h >>conftest.$ac_ext
4157cat >>conftest.$ac_ext <<_ACEOF
4158/* end confdefs.h.  */
4159#include <ctype.h>
4160#include <stdlib.h>
4161#if ((' ' & 0x0FF) == 0x020)
4162# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4163# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4164#else
4165# define ISLOWER(c) \
4166		   (('a' <= (c) && (c) <= 'i') \
4167		     || ('j' <= (c) && (c) <= 'r') \
4168		     || ('s' <= (c) && (c) <= 'z'))
4169# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4170#endif
4171
4172#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4173int
4174main ()
4175{
4176  int i;
4177  for (i = 0; i < 256; i++)
4178    if (XOR (islower (i), ISLOWER (i))
4179	|| toupper (i) != TOUPPER (i))
4180      return 2;
4181  return 0;
4182}
4183_ACEOF
4184rm -f conftest$ac_exeext
4185if { (ac_try="$ac_link"
4186case "(($ac_try" in
4187  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4188  *) ac_try_echo=$ac_try;;
4189esac
4190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4191  (eval "$ac_link") 2>&5
4192  ac_status=$?
4193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4195  { (case "(($ac_try" in
4196  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4197  *) ac_try_echo=$ac_try;;
4198esac
4199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4200  (eval "$ac_try") 2>&5
4201  ac_status=$?
4202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203  (exit $ac_status); }; }; then
4204  :
4205else
4206  echo "$as_me: program exited with status $ac_status" >&5
4207echo "$as_me: failed program was:" >&5
4208sed 's/^/| /' conftest.$ac_ext >&5
4209
4210( exit $ac_status )
4211ac_cv_header_stdc=no
4212fi
4213rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4214fi
4215
4216
4217fi
4218fi
4219{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4220echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4221if test $ac_cv_header_stdc = yes; then
4222
4223cat >>confdefs.h <<\_ACEOF
4224#define STDC_HEADERS 1
4225_ACEOF
4226
4227fi
4228
4229# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4240		  inttypes.h stdint.h unistd.h
4241do
4242as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4243{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4244echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4245if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4246  echo $ECHO_N "(cached) $ECHO_C" >&6
4247else
4248  cat >conftest.$ac_ext <<_ACEOF
4249/* confdefs.h.  */
4250_ACEOF
4251cat confdefs.h >>conftest.$ac_ext
4252cat >>conftest.$ac_ext <<_ACEOF
4253/* end confdefs.h.  */
4254$ac_includes_default
4255
4256#include <$ac_header>
4257_ACEOF
4258rm -f conftest.$ac_objext
4259if { (ac_try="$ac_compile"
4260case "(($ac_try" in
4261  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262  *) ac_try_echo=$ac_try;;
4263esac
4264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4265  (eval "$ac_compile") 2>conftest.er1
4266  ac_status=$?
4267  grep -v '^ *+' conftest.er1 >conftest.err
4268  rm -f conftest.er1
4269  cat conftest.err >&5
4270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271  (exit $ac_status); } && {
4272	 test -z "$ac_c_werror_flag" ||
4273	 test ! -s conftest.err
4274       } && test -s conftest.$ac_objext; then
4275  eval "$as_ac_Header=yes"
4276else
4277  echo "$as_me: failed program was:" >&5
4278sed 's/^/| /' conftest.$ac_ext >&5
4279
4280	eval "$as_ac_Header=no"
4281fi
4282
4283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4284fi
4285ac_res=`eval echo '${'$as_ac_Header'}'`
4286	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4287echo "${ECHO_T}$ac_res" >&6; }
4288if test `eval echo '${'$as_ac_Header'}'` = yes; then
4289  cat >>confdefs.h <<_ACEOF
4290#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4291_ACEOF
4292
4293fi
4294
4295done
4296
4297
4298
4299
4300{ echo "$as_me:$LINENO: checking whether __clang__ is declared" >&5
4301echo $ECHO_N "checking whether __clang__ is declared... $ECHO_C" >&6; }
4302if test "${ac_cv_have_decl___clang__+set}" = set; then
4303  echo $ECHO_N "(cached) $ECHO_C" >&6
4304else
4305  cat >conftest.$ac_ext <<_ACEOF
4306/* confdefs.h.  */
4307_ACEOF
4308cat confdefs.h >>conftest.$ac_ext
4309cat >>conftest.$ac_ext <<_ACEOF
4310/* end confdefs.h.  */
4311$ac_includes_default
4312int
4313main ()
4314{
4315#ifndef __clang__
4316  (void) __clang__;
4317#endif
4318
4319  ;
4320  return 0;
4321}
4322_ACEOF
4323rm -f conftest.$ac_objext
4324if { (ac_try="$ac_compile"
4325case "(($ac_try" in
4326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4327  *) ac_try_echo=$ac_try;;
4328esac
4329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4330  (eval "$ac_compile") 2>conftest.er1
4331  ac_status=$?
4332  grep -v '^ *+' conftest.er1 >conftest.err
4333  rm -f conftest.er1
4334  cat conftest.err >&5
4335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336  (exit $ac_status); } && {
4337	 test -z "$ac_c_werror_flag" ||
4338	 test ! -s conftest.err
4339       } && test -s conftest.$ac_objext; then
4340  ac_cv_have_decl___clang__=yes
4341else
4342  echo "$as_me: failed program was:" >&5
4343sed 's/^/| /' conftest.$ac_ext >&5
4344
4345	ac_cv_have_decl___clang__=no
4346fi
4347
4348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4349fi
4350{ echo "$as_me:$LINENO: result: $ac_cv_have_decl___clang__" >&5
4351echo "${ECHO_T}$ac_cv_have_decl___clang__" >&6; }
4352if test $ac_cv_have_decl___clang__ = yes; then
4353  CLANGCC="yes"
4354else
4355  CLANGCC="no"
4356fi
4357
4358{ echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5
4359echo $ECHO_N "checking whether __INTEL_COMPILER is declared... $ECHO_C" >&6; }
4360if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then
4361  echo $ECHO_N "(cached) $ECHO_C" >&6
4362else
4363  cat >conftest.$ac_ext <<_ACEOF
4364/* confdefs.h.  */
4365_ACEOF
4366cat confdefs.h >>conftest.$ac_ext
4367cat >>conftest.$ac_ext <<_ACEOF
4368/* end confdefs.h.  */
4369$ac_includes_default
4370int
4371main ()
4372{
4373#ifndef __INTEL_COMPILER
4374  (void) __INTEL_COMPILER;
4375#endif
4376
4377  ;
4378  return 0;
4379}
4380_ACEOF
4381rm -f conftest.$ac_objext
4382if { (ac_try="$ac_compile"
4383case "(($ac_try" in
4384  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4385  *) ac_try_echo=$ac_try;;
4386esac
4387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4388  (eval "$ac_compile") 2>conftest.er1
4389  ac_status=$?
4390  grep -v '^ *+' conftest.er1 >conftest.err
4391  rm -f conftest.er1
4392  cat conftest.err >&5
4393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394  (exit $ac_status); } && {
4395	 test -z "$ac_c_werror_flag" ||
4396	 test ! -s conftest.err
4397       } && test -s conftest.$ac_objext; then
4398  ac_cv_have_decl___INTEL_COMPILER=yes
4399else
4400  echo "$as_me: failed program was:" >&5
4401sed 's/^/| /' conftest.$ac_ext >&5
4402
4403	ac_cv_have_decl___INTEL_COMPILER=no
4404fi
4405
4406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4407fi
4408{ echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5
4409echo "${ECHO_T}$ac_cv_have_decl___INTEL_COMPILER" >&6; }
4410if test $ac_cv_have_decl___INTEL_COMPILER = yes; then
4411  INTELCC="yes"
4412else
4413  INTELCC="no"
4414fi
4415
4416{ echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
4417echo $ECHO_N "checking whether __SUNPRO_C is declared... $ECHO_C" >&6; }
4418if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
4419  echo $ECHO_N "(cached) $ECHO_C" >&6
4420else
4421  cat >conftest.$ac_ext <<_ACEOF
4422/* confdefs.h.  */
4423_ACEOF
4424cat confdefs.h >>conftest.$ac_ext
4425cat >>conftest.$ac_ext <<_ACEOF
4426/* end confdefs.h.  */
4427$ac_includes_default
4428int
4429main ()
4430{
4431#ifndef __SUNPRO_C
4432  (void) __SUNPRO_C;
4433#endif
4434
4435  ;
4436  return 0;
4437}
4438_ACEOF
4439rm -f conftest.$ac_objext
4440if { (ac_try="$ac_compile"
4441case "(($ac_try" in
4442  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4443  *) ac_try_echo=$ac_try;;
4444esac
4445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4446  (eval "$ac_compile") 2>conftest.er1
4447  ac_status=$?
4448  grep -v '^ *+' conftest.er1 >conftest.err
4449  rm -f conftest.er1
4450  cat conftest.err >&5
4451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452  (exit $ac_status); } && {
4453	 test -z "$ac_c_werror_flag" ||
4454	 test ! -s conftest.err
4455       } && test -s conftest.$ac_objext; then
4456  ac_cv_have_decl___SUNPRO_C=yes
4457else
4458  echo "$as_me: failed program was:" >&5
4459sed 's/^/| /' conftest.$ac_ext >&5
4460
4461	ac_cv_have_decl___SUNPRO_C=no
4462fi
4463
4464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4465fi
4466{ echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
4467echo "${ECHO_T}$ac_cv_have_decl___SUNPRO_C" >&6; }
4468if test $ac_cv_have_decl___SUNPRO_C = yes; then
4469  SUNCC="yes"
4470else
4471  SUNCC="no"
4472fi
4473
4474
4475
4476
4477
4478
4479
4480
4481if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4482	if test -n "$ac_tool_prefix"; then
4483  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4484set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4485{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4486echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4487if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4488  echo $ECHO_N "(cached) $ECHO_C" >&6
4489else
4490  case $PKG_CONFIG in
4491  [\\/]* | ?:[\\/]*)
4492  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4493  ;;
4494  *)
4495  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496for as_dir in $PATH
4497do
4498  IFS=$as_save_IFS
4499  test -z "$as_dir" && as_dir=.
4500  for ac_exec_ext in '' $ac_executable_extensions; do
4501  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4502    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4503    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4504    break 2
4505  fi
4506done
4507done
4508IFS=$as_save_IFS
4509
4510  ;;
4511esac
4512fi
4513PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4514if test -n "$PKG_CONFIG"; then
4515  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4516echo "${ECHO_T}$PKG_CONFIG" >&6; }
4517else
4518  { echo "$as_me:$LINENO: result: no" >&5
4519echo "${ECHO_T}no" >&6; }
4520fi
4521
4522
4523fi
4524if test -z "$ac_cv_path_PKG_CONFIG"; then
4525  ac_pt_PKG_CONFIG=$PKG_CONFIG
4526  # Extract the first word of "pkg-config", so it can be a program name with args.
4527set dummy pkg-config; ac_word=$2
4528{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4530if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4531  echo $ECHO_N "(cached) $ECHO_C" >&6
4532else
4533  case $ac_pt_PKG_CONFIG in
4534  [\\/]* | ?:[\\/]*)
4535  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4536  ;;
4537  *)
4538  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539for as_dir in $PATH
4540do
4541  IFS=$as_save_IFS
4542  test -z "$as_dir" && as_dir=.
4543  for ac_exec_ext in '' $ac_executable_extensions; do
4544  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4545    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4546    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4547    break 2
4548  fi
4549done
4550done
4551IFS=$as_save_IFS
4552
4553  ;;
4554esac
4555fi
4556ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4557if test -n "$ac_pt_PKG_CONFIG"; then
4558  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4559echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
4560else
4561  { echo "$as_me:$LINENO: result: no" >&5
4562echo "${ECHO_T}no" >&6; }
4563fi
4564
4565  if test "x$ac_pt_PKG_CONFIG" = x; then
4566    PKG_CONFIG=""
4567  else
4568    case $cross_compiling:$ac_tool_warned in
4569yes:)
4570{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4571whose name does not start with the host triplet.  If you think this
4572configuration is useful to you, please write to autoconf@gnu.org." >&5
4573echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4574whose name does not start with the host triplet.  If you think this
4575configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4576ac_tool_warned=yes ;;
4577esac
4578    PKG_CONFIG=$ac_pt_PKG_CONFIG
4579  fi
4580else
4581  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4582fi
4583
4584fi
4585if test -n "$PKG_CONFIG"; then
4586	_pkg_min_version=0.9.0
4587	{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4588echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
4589	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4590		{ echo "$as_me:$LINENO: result: yes" >&5
4591echo "${ECHO_T}yes" >&6; }
4592	else
4593		{ echo "$as_me:$LINENO: result: no" >&5
4594echo "${ECHO_T}no" >&6; }
4595		PKG_CONFIG=""
4596	fi
4597fi
4598# Make sure we can run config.sub.
4599$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4600  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4601echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4602   { (exit 1); exit 1; }; }
4603
4604{ echo "$as_me:$LINENO: checking build system type" >&5
4605echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4606if test "${ac_cv_build+set}" = set; then
4607  echo $ECHO_N "(cached) $ECHO_C" >&6
4608else
4609  ac_build_alias=$build_alias
4610test "x$ac_build_alias" = x &&
4611  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4612test "x$ac_build_alias" = x &&
4613  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4614echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4615   { (exit 1); exit 1; }; }
4616ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4617  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4618echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4619   { (exit 1); exit 1; }; }
4620
4621fi
4622{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4623echo "${ECHO_T}$ac_cv_build" >&6; }
4624case $ac_cv_build in
4625*-*-*) ;;
4626*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4627echo "$as_me: error: invalid value of canonical build" >&2;}
4628   { (exit 1); exit 1; }; };;
4629esac
4630build=$ac_cv_build
4631ac_save_IFS=$IFS; IFS='-'
4632set x $ac_cv_build
4633shift
4634build_cpu=$1
4635build_vendor=$2
4636shift; shift
4637# Remember, the first character of IFS is used to create $*,
4638# except with old shells:
4639build_os=$*
4640IFS=$ac_save_IFS
4641case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4642
4643
4644{ echo "$as_me:$LINENO: checking host system type" >&5
4645echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4646if test "${ac_cv_host+set}" = set; then
4647  echo $ECHO_N "(cached) $ECHO_C" >&6
4648else
4649  if test "x$host_alias" = x; then
4650  ac_cv_host=$ac_cv_build
4651else
4652  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4653    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4654echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4655   { (exit 1); exit 1; }; }
4656fi
4657
4658fi
4659{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4660echo "${ECHO_T}$ac_cv_host" >&6; }
4661case $ac_cv_host in
4662*-*-*) ;;
4663*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4664echo "$as_me: error: invalid value of canonical host" >&2;}
4665   { (exit 1); exit 1; }; };;
4666esac
4667host=$ac_cv_host
4668ac_save_IFS=$IFS; IFS='-'
4669set x $ac_cv_host
4670shift
4671host_cpu=$1
4672host_vendor=$2
4673shift; shift
4674# Remember, the first character of IFS is used to create $*,
4675# except with old shells:
4676host_os=$*
4677IFS=$ac_save_IFS
4678case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4679
4680
4681{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4682echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4683if test "${ac_cv_path_SED+set}" = set; then
4684  echo $ECHO_N "(cached) $ECHO_C" >&6
4685else
4686            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4687     for ac_i in 1 2 3 4 5 6 7; do
4688       ac_script="$ac_script$as_nl$ac_script"
4689     done
4690     echo "$ac_script" | sed 99q >conftest.sed
4691     $as_unset ac_script || ac_script=
4692     # Extract the first word of "sed gsed" to use in msg output
4693if test -z "$SED"; then
4694set dummy sed gsed; ac_prog_name=$2
4695if test "${ac_cv_path_SED+set}" = set; then
4696  echo $ECHO_N "(cached) $ECHO_C" >&6
4697else
4698  ac_path_SED_found=false
4699# Loop through the user's path and test for each of PROGNAME-LIST
4700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701for as_dir in $PATH
4702do
4703  IFS=$as_save_IFS
4704  test -z "$as_dir" && as_dir=.
4705  for ac_prog in sed gsed; do
4706  for ac_exec_ext in '' $ac_executable_extensions; do
4707    ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4708    { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4709    # Check for GNU ac_path_SED and select it if it is found.
4710  # Check for GNU $ac_path_SED
4711case `"$ac_path_SED" --version 2>&1` in
4712*GNU*)
4713  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4714*)
4715  ac_count=0
4716  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4717  while :
4718  do
4719    cat "conftest.in" "conftest.in" >"conftest.tmp"
4720    mv "conftest.tmp" "conftest.in"
4721    cp "conftest.in" "conftest.nl"
4722    echo '' >> "conftest.nl"
4723    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4724    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4725    ac_count=`expr $ac_count + 1`
4726    if test $ac_count -gt ${ac_path_SED_max-0}; then
4727      # Best one so far, save it but keep looking for a better one
4728      ac_cv_path_SED="$ac_path_SED"
4729      ac_path_SED_max=$ac_count
4730    fi
4731    # 10*(2^10) chars as input seems more than enough
4732    test $ac_count -gt 10 && break
4733  done
4734  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4735esac
4736
4737
4738    $ac_path_SED_found && break 3
4739  done
4740done
4741
4742done
4743IFS=$as_save_IFS
4744
4745
4746fi
4747
4748SED="$ac_cv_path_SED"
4749if test -z "$SED"; then
4750  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
4751echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
4752   { (exit 1); exit 1; }; }
4753fi
4754
4755else
4756  ac_cv_path_SED=$SED
4757fi
4758
4759fi
4760{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4761echo "${ECHO_T}$ac_cv_path_SED" >&6; }
4762 SED="$ac_cv_path_SED"
4763  rm -f conftest.sed
4764
4765
4766
4767
4768
4769
4770# Check whether --enable-selective-werror was given.
4771if test "${enable_selective_werror+set}" = set; then
4772  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4773else
4774  SELECTIVE_WERROR=yes
4775fi
4776
4777
4778# -v is too short to test reliably with XORG_TESTSET_CFLAG
4779if test "x$SUNCC" = "xyes"; then
4780    BASE_CFLAGS="-v"
4781else
4782    BASE_CFLAGS=""
4783fi
4784
4785# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4786
4787
4788
4789
4790
4791xorg_testset_save_CFLAGS="$CFLAGS"
4792
4793if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4794	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4795	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
4796echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
4797	cat >conftest.$ac_ext <<_ACEOF
4798/* confdefs.h.  */
4799_ACEOF
4800cat confdefs.h >>conftest.$ac_ext
4801cat >>conftest.$ac_ext <<_ACEOF
4802/* end confdefs.h.  */
4803int i;
4804_ACEOF
4805rm -f conftest.$ac_objext
4806if { (ac_try="$ac_compile"
4807case "(($ac_try" in
4808  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4809  *) ac_try_echo=$ac_try;;
4810esac
4811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4812  (eval "$ac_compile") 2>conftest.er1
4813  ac_status=$?
4814  grep -v '^ *+' conftest.er1 >conftest.err
4815  rm -f conftest.er1
4816  cat conftest.err >&5
4817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818  (exit $ac_status); } && {
4819	 test -z "$ac_c_werror_flag" ||
4820	 test ! -s conftest.err
4821       } && test -s conftest.$ac_objext; then
4822  xorg_testset_unknown_warning_option=yes
4823else
4824  echo "$as_me: failed program was:" >&5
4825sed 's/^/| /' conftest.$ac_ext >&5
4826
4827	xorg_testset_unknown_warning_option=no
4828fi
4829
4830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4831	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
4832echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
4833	CFLAGS="$xorg_testset_save_CFLAGS"
4834fi
4835
4836if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4837	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4838		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4839	fi
4840	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4841	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
4842echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
4843	cat >conftest.$ac_ext <<_ACEOF
4844/* confdefs.h.  */
4845_ACEOF
4846cat confdefs.h >>conftest.$ac_ext
4847cat >>conftest.$ac_ext <<_ACEOF
4848/* end confdefs.h.  */
4849int i;
4850_ACEOF
4851rm -f conftest.$ac_objext
4852if { (ac_try="$ac_compile"
4853case "(($ac_try" in
4854  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4855  *) ac_try_echo=$ac_try;;
4856esac
4857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4858  (eval "$ac_compile") 2>conftest.er1
4859  ac_status=$?
4860  grep -v '^ *+' conftest.er1 >conftest.err
4861  rm -f conftest.er1
4862  cat conftest.err >&5
4863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864  (exit $ac_status); } && {
4865	 test -z "$ac_c_werror_flag" ||
4866	 test ! -s conftest.err
4867       } && test -s conftest.$ac_objext; then
4868  xorg_testset_unused_command_line_argument=yes
4869else
4870  echo "$as_me: failed program was:" >&5
4871sed 's/^/| /' conftest.$ac_ext >&5
4872
4873	xorg_testset_unused_command_line_argument=no
4874fi
4875
4876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4877	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
4878echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
4879	CFLAGS="$xorg_testset_save_CFLAGS"
4880fi
4881
4882found="no"
4883
4884	if test $found = "no" ; then
4885		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4886			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4887		fi
4888
4889		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4890			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4891		fi
4892
4893		CFLAGS="$CFLAGS -Wall"
4894
4895		{ echo "$as_me:$LINENO: checking if $CC supports -Wall" >&5
4896echo $ECHO_N "checking if $CC supports -Wall... $ECHO_C" >&6; }
4897		cat >conftest.$ac_ext <<_ACEOF
4898/* confdefs.h.  */
4899_ACEOF
4900cat confdefs.h >>conftest.$ac_ext
4901cat >>conftest.$ac_ext <<_ACEOF
4902/* end confdefs.h.  */
4903int i;
4904int
4905main ()
4906{
4907
4908  ;
4909  return 0;
4910}
4911_ACEOF
4912rm -f conftest.$ac_objext conftest$ac_exeext
4913if { (ac_try="$ac_link"
4914case "(($ac_try" in
4915  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4916  *) ac_try_echo=$ac_try;;
4917esac
4918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4919  (eval "$ac_link") 2>conftest.er1
4920  ac_status=$?
4921  grep -v '^ *+' conftest.er1 >conftest.err
4922  rm -f conftest.er1
4923  cat conftest.err >&5
4924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925  (exit $ac_status); } && {
4926	 test -z "$ac_c_werror_flag" ||
4927	 test ! -s conftest.err
4928       } && test -s conftest$ac_exeext &&
4929       $as_test_x conftest$ac_exeext; then
4930  supported=yes
4931else
4932  echo "$as_me: failed program was:" >&5
4933sed 's/^/| /' conftest.$ac_ext >&5
4934
4935	supported=no
4936fi
4937
4938rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4939      conftest$ac_exeext conftest.$ac_ext
4940		{ echo "$as_me:$LINENO: result: $supported" >&5
4941echo "${ECHO_T}$supported" >&6; }
4942		CFLAGS="$xorg_testset_save_CFLAGS"
4943
4944		if test "$supported" = "yes" ; then
4945			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4946			found="yes"
4947		fi
4948	fi
4949
4950
4951
4952
4953
4954
4955
4956xorg_testset_save_CFLAGS="$CFLAGS"
4957
4958if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4959	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4960	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
4961echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
4962	cat >conftest.$ac_ext <<_ACEOF
4963/* confdefs.h.  */
4964_ACEOF
4965cat confdefs.h >>conftest.$ac_ext
4966cat >>conftest.$ac_ext <<_ACEOF
4967/* end confdefs.h.  */
4968int i;
4969_ACEOF
4970rm -f conftest.$ac_objext
4971if { (ac_try="$ac_compile"
4972case "(($ac_try" in
4973  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4974  *) ac_try_echo=$ac_try;;
4975esac
4976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4977  (eval "$ac_compile") 2>conftest.er1
4978  ac_status=$?
4979  grep -v '^ *+' conftest.er1 >conftest.err
4980  rm -f conftest.er1
4981  cat conftest.err >&5
4982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983  (exit $ac_status); } && {
4984	 test -z "$ac_c_werror_flag" ||
4985	 test ! -s conftest.err
4986       } && test -s conftest.$ac_objext; then
4987  xorg_testset_unknown_warning_option=yes
4988else
4989  echo "$as_me: failed program was:" >&5
4990sed 's/^/| /' conftest.$ac_ext >&5
4991
4992	xorg_testset_unknown_warning_option=no
4993fi
4994
4995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4996	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
4997echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
4998	CFLAGS="$xorg_testset_save_CFLAGS"
4999fi
5000
5001if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5002	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5003		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5004	fi
5005	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5006	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
5007echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
5008	cat >conftest.$ac_ext <<_ACEOF
5009/* confdefs.h.  */
5010_ACEOF
5011cat confdefs.h >>conftest.$ac_ext
5012cat >>conftest.$ac_ext <<_ACEOF
5013/* end confdefs.h.  */
5014int i;
5015_ACEOF
5016rm -f conftest.$ac_objext
5017if { (ac_try="$ac_compile"
5018case "(($ac_try" in
5019  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5020  *) ac_try_echo=$ac_try;;
5021esac
5022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5023  (eval "$ac_compile") 2>conftest.er1
5024  ac_status=$?
5025  grep -v '^ *+' conftest.er1 >conftest.err
5026  rm -f conftest.er1
5027  cat conftest.err >&5
5028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029  (exit $ac_status); } && {
5030	 test -z "$ac_c_werror_flag" ||
5031	 test ! -s conftest.err
5032       } && test -s conftest.$ac_objext; then
5033  xorg_testset_unused_command_line_argument=yes
5034else
5035  echo "$as_me: failed program was:" >&5
5036sed 's/^/| /' conftest.$ac_ext >&5
5037
5038	xorg_testset_unused_command_line_argument=no
5039fi
5040
5041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5042	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
5043echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
5044	CFLAGS="$xorg_testset_save_CFLAGS"
5045fi
5046
5047found="no"
5048
5049	if test $found = "no" ; then
5050		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5051			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5052		fi
5053
5054		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5055			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5056		fi
5057
5058		CFLAGS="$CFLAGS -Wpointer-arith"
5059
5060		{ echo "$as_me:$LINENO: checking if $CC supports -Wpointer-arith" >&5
5061echo $ECHO_N "checking if $CC supports -Wpointer-arith... $ECHO_C" >&6; }
5062		cat >conftest.$ac_ext <<_ACEOF
5063/* confdefs.h.  */
5064_ACEOF
5065cat confdefs.h >>conftest.$ac_ext
5066cat >>conftest.$ac_ext <<_ACEOF
5067/* end confdefs.h.  */
5068int i;
5069int
5070main ()
5071{
5072
5073  ;
5074  return 0;
5075}
5076_ACEOF
5077rm -f conftest.$ac_objext conftest$ac_exeext
5078if { (ac_try="$ac_link"
5079case "(($ac_try" in
5080  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5081  *) ac_try_echo=$ac_try;;
5082esac
5083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5084  (eval "$ac_link") 2>conftest.er1
5085  ac_status=$?
5086  grep -v '^ *+' conftest.er1 >conftest.err
5087  rm -f conftest.er1
5088  cat conftest.err >&5
5089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090  (exit $ac_status); } && {
5091	 test -z "$ac_c_werror_flag" ||
5092	 test ! -s conftest.err
5093       } && test -s conftest$ac_exeext &&
5094       $as_test_x conftest$ac_exeext; then
5095  supported=yes
5096else
5097  echo "$as_me: failed program was:" >&5
5098sed 's/^/| /' conftest.$ac_ext >&5
5099
5100	supported=no
5101fi
5102
5103rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5104      conftest$ac_exeext conftest.$ac_ext
5105		{ echo "$as_me:$LINENO: result: $supported" >&5
5106echo "${ECHO_T}$supported" >&6; }
5107		CFLAGS="$xorg_testset_save_CFLAGS"
5108
5109		if test "$supported" = "yes" ; then
5110			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5111			found="yes"
5112		fi
5113	fi
5114
5115
5116
5117
5118
5119
5120
5121xorg_testset_save_CFLAGS="$CFLAGS"
5122
5123if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5124	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5125	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
5126echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
5127	cat >conftest.$ac_ext <<_ACEOF
5128/* confdefs.h.  */
5129_ACEOF
5130cat confdefs.h >>conftest.$ac_ext
5131cat >>conftest.$ac_ext <<_ACEOF
5132/* end confdefs.h.  */
5133int i;
5134_ACEOF
5135rm -f conftest.$ac_objext
5136if { (ac_try="$ac_compile"
5137case "(($ac_try" in
5138  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5139  *) ac_try_echo=$ac_try;;
5140esac
5141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5142  (eval "$ac_compile") 2>conftest.er1
5143  ac_status=$?
5144  grep -v '^ *+' conftest.er1 >conftest.err
5145  rm -f conftest.er1
5146  cat conftest.err >&5
5147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148  (exit $ac_status); } && {
5149	 test -z "$ac_c_werror_flag" ||
5150	 test ! -s conftest.err
5151       } && test -s conftest.$ac_objext; then
5152  xorg_testset_unknown_warning_option=yes
5153else
5154  echo "$as_me: failed program was:" >&5
5155sed 's/^/| /' conftest.$ac_ext >&5
5156
5157	xorg_testset_unknown_warning_option=no
5158fi
5159
5160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5161	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
5162echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
5163	CFLAGS="$xorg_testset_save_CFLAGS"
5164fi
5165
5166if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5167	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5168		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5169	fi
5170	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5171	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
5172echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
5173	cat >conftest.$ac_ext <<_ACEOF
5174/* confdefs.h.  */
5175_ACEOF
5176cat confdefs.h >>conftest.$ac_ext
5177cat >>conftest.$ac_ext <<_ACEOF
5178/* end confdefs.h.  */
5179int i;
5180_ACEOF
5181rm -f conftest.$ac_objext
5182if { (ac_try="$ac_compile"
5183case "(($ac_try" in
5184  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5185  *) ac_try_echo=$ac_try;;
5186esac
5187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5188  (eval "$ac_compile") 2>conftest.er1
5189  ac_status=$?
5190  grep -v '^ *+' conftest.er1 >conftest.err
5191  rm -f conftest.er1
5192  cat conftest.err >&5
5193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194  (exit $ac_status); } && {
5195	 test -z "$ac_c_werror_flag" ||
5196	 test ! -s conftest.err
5197       } && test -s conftest.$ac_objext; then
5198  xorg_testset_unused_command_line_argument=yes
5199else
5200  echo "$as_me: failed program was:" >&5
5201sed 's/^/| /' conftest.$ac_ext >&5
5202
5203	xorg_testset_unused_command_line_argument=no
5204fi
5205
5206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5207	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
5208echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
5209	CFLAGS="$xorg_testset_save_CFLAGS"
5210fi
5211
5212found="no"
5213
5214	if test $found = "no" ; then
5215		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5216			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5217		fi
5218
5219		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5220			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5221		fi
5222
5223		CFLAGS="$CFLAGS -Wstrict-prototypes"
5224
5225		{ echo "$as_me:$LINENO: checking if $CC supports -Wstrict-prototypes" >&5
5226echo $ECHO_N "checking if $CC supports -Wstrict-prototypes... $ECHO_C" >&6; }
5227		cat >conftest.$ac_ext <<_ACEOF
5228/* confdefs.h.  */
5229_ACEOF
5230cat confdefs.h >>conftest.$ac_ext
5231cat >>conftest.$ac_ext <<_ACEOF
5232/* end confdefs.h.  */
5233int i;
5234int
5235main ()
5236{
5237
5238  ;
5239  return 0;
5240}
5241_ACEOF
5242rm -f conftest.$ac_objext conftest$ac_exeext
5243if { (ac_try="$ac_link"
5244case "(($ac_try" in
5245  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5246  *) ac_try_echo=$ac_try;;
5247esac
5248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5249  (eval "$ac_link") 2>conftest.er1
5250  ac_status=$?
5251  grep -v '^ *+' conftest.er1 >conftest.err
5252  rm -f conftest.er1
5253  cat conftest.err >&5
5254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255  (exit $ac_status); } && {
5256	 test -z "$ac_c_werror_flag" ||
5257	 test ! -s conftest.err
5258       } && test -s conftest$ac_exeext &&
5259       $as_test_x conftest$ac_exeext; then
5260  supported=yes
5261else
5262  echo "$as_me: failed program was:" >&5
5263sed 's/^/| /' conftest.$ac_ext >&5
5264
5265	supported=no
5266fi
5267
5268rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5269      conftest$ac_exeext conftest.$ac_ext
5270		{ echo "$as_me:$LINENO: result: $supported" >&5
5271echo "${ECHO_T}$supported" >&6; }
5272		CFLAGS="$xorg_testset_save_CFLAGS"
5273
5274		if test "$supported" = "yes" ; then
5275			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5276			found="yes"
5277		fi
5278	fi
5279
5280
5281
5282
5283
5284
5285
5286xorg_testset_save_CFLAGS="$CFLAGS"
5287
5288if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5289	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5290	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
5291echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
5292	cat >conftest.$ac_ext <<_ACEOF
5293/* confdefs.h.  */
5294_ACEOF
5295cat confdefs.h >>conftest.$ac_ext
5296cat >>conftest.$ac_ext <<_ACEOF
5297/* end confdefs.h.  */
5298int i;
5299_ACEOF
5300rm -f conftest.$ac_objext
5301if { (ac_try="$ac_compile"
5302case "(($ac_try" in
5303  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5304  *) ac_try_echo=$ac_try;;
5305esac
5306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5307  (eval "$ac_compile") 2>conftest.er1
5308  ac_status=$?
5309  grep -v '^ *+' conftest.er1 >conftest.err
5310  rm -f conftest.er1
5311  cat conftest.err >&5
5312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313  (exit $ac_status); } && {
5314	 test -z "$ac_c_werror_flag" ||
5315	 test ! -s conftest.err
5316       } && test -s conftest.$ac_objext; then
5317  xorg_testset_unknown_warning_option=yes
5318else
5319  echo "$as_me: failed program was:" >&5
5320sed 's/^/| /' conftest.$ac_ext >&5
5321
5322	xorg_testset_unknown_warning_option=no
5323fi
5324
5325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5326	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
5327echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
5328	CFLAGS="$xorg_testset_save_CFLAGS"
5329fi
5330
5331if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5332	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5333		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5334	fi
5335	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5336	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
5337echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
5338	cat >conftest.$ac_ext <<_ACEOF
5339/* confdefs.h.  */
5340_ACEOF
5341cat confdefs.h >>conftest.$ac_ext
5342cat >>conftest.$ac_ext <<_ACEOF
5343/* end confdefs.h.  */
5344int i;
5345_ACEOF
5346rm -f conftest.$ac_objext
5347if { (ac_try="$ac_compile"
5348case "(($ac_try" in
5349  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5350  *) ac_try_echo=$ac_try;;
5351esac
5352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5353  (eval "$ac_compile") 2>conftest.er1
5354  ac_status=$?
5355  grep -v '^ *+' conftest.er1 >conftest.err
5356  rm -f conftest.er1
5357  cat conftest.err >&5
5358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359  (exit $ac_status); } && {
5360	 test -z "$ac_c_werror_flag" ||
5361	 test ! -s conftest.err
5362       } && test -s conftest.$ac_objext; then
5363  xorg_testset_unused_command_line_argument=yes
5364else
5365  echo "$as_me: failed program was:" >&5
5366sed 's/^/| /' conftest.$ac_ext >&5
5367
5368	xorg_testset_unused_command_line_argument=no
5369fi
5370
5371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5372	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
5373echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
5374	CFLAGS="$xorg_testset_save_CFLAGS"
5375fi
5376
5377found="no"
5378
5379	if test $found = "no" ; then
5380		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5381			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5382		fi
5383
5384		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5385			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5386		fi
5387
5388		CFLAGS="$CFLAGS -Wmissing-prototypes"
5389
5390		{ echo "$as_me:$LINENO: checking if $CC supports -Wmissing-prototypes" >&5
5391echo $ECHO_N "checking if $CC supports -Wmissing-prototypes... $ECHO_C" >&6; }
5392		cat >conftest.$ac_ext <<_ACEOF
5393/* confdefs.h.  */
5394_ACEOF
5395cat confdefs.h >>conftest.$ac_ext
5396cat >>conftest.$ac_ext <<_ACEOF
5397/* end confdefs.h.  */
5398int i;
5399int
5400main ()
5401{
5402
5403  ;
5404  return 0;
5405}
5406_ACEOF
5407rm -f conftest.$ac_objext conftest$ac_exeext
5408if { (ac_try="$ac_link"
5409case "(($ac_try" in
5410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5411  *) ac_try_echo=$ac_try;;
5412esac
5413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5414  (eval "$ac_link") 2>conftest.er1
5415  ac_status=$?
5416  grep -v '^ *+' conftest.er1 >conftest.err
5417  rm -f conftest.er1
5418  cat conftest.err >&5
5419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420  (exit $ac_status); } && {
5421	 test -z "$ac_c_werror_flag" ||
5422	 test ! -s conftest.err
5423       } && test -s conftest$ac_exeext &&
5424       $as_test_x conftest$ac_exeext; then
5425  supported=yes
5426else
5427  echo "$as_me: failed program was:" >&5
5428sed 's/^/| /' conftest.$ac_ext >&5
5429
5430	supported=no
5431fi
5432
5433rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5434      conftest$ac_exeext conftest.$ac_ext
5435		{ echo "$as_me:$LINENO: result: $supported" >&5
5436echo "${ECHO_T}$supported" >&6; }
5437		CFLAGS="$xorg_testset_save_CFLAGS"
5438
5439		if test "$supported" = "yes" ; then
5440			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5441			found="yes"
5442		fi
5443	fi
5444
5445
5446
5447
5448
5449
5450
5451xorg_testset_save_CFLAGS="$CFLAGS"
5452
5453if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5454	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5455	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
5456echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
5457	cat >conftest.$ac_ext <<_ACEOF
5458/* confdefs.h.  */
5459_ACEOF
5460cat confdefs.h >>conftest.$ac_ext
5461cat >>conftest.$ac_ext <<_ACEOF
5462/* end confdefs.h.  */
5463int i;
5464_ACEOF
5465rm -f conftest.$ac_objext
5466if { (ac_try="$ac_compile"
5467case "(($ac_try" in
5468  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5469  *) ac_try_echo=$ac_try;;
5470esac
5471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5472  (eval "$ac_compile") 2>conftest.er1
5473  ac_status=$?
5474  grep -v '^ *+' conftest.er1 >conftest.err
5475  rm -f conftest.er1
5476  cat conftest.err >&5
5477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478  (exit $ac_status); } && {
5479	 test -z "$ac_c_werror_flag" ||
5480	 test ! -s conftest.err
5481       } && test -s conftest.$ac_objext; then
5482  xorg_testset_unknown_warning_option=yes
5483else
5484  echo "$as_me: failed program was:" >&5
5485sed 's/^/| /' conftest.$ac_ext >&5
5486
5487	xorg_testset_unknown_warning_option=no
5488fi
5489
5490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5491	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
5492echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
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	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
5502echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
5503	cat >conftest.$ac_ext <<_ACEOF
5504/* confdefs.h.  */
5505_ACEOF
5506cat confdefs.h >>conftest.$ac_ext
5507cat >>conftest.$ac_ext <<_ACEOF
5508/* end confdefs.h.  */
5509int i;
5510_ACEOF
5511rm -f conftest.$ac_objext
5512if { (ac_try="$ac_compile"
5513case "(($ac_try" in
5514  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5515  *) ac_try_echo=$ac_try;;
5516esac
5517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5518  (eval "$ac_compile") 2>conftest.er1
5519  ac_status=$?
5520  grep -v '^ *+' conftest.er1 >conftest.err
5521  rm -f conftest.er1
5522  cat conftest.err >&5
5523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524  (exit $ac_status); } && {
5525	 test -z "$ac_c_werror_flag" ||
5526	 test ! -s conftest.err
5527       } && test -s conftest.$ac_objext; then
5528  xorg_testset_unused_command_line_argument=yes
5529else
5530  echo "$as_me: failed program was:" >&5
5531sed 's/^/| /' conftest.$ac_ext >&5
5532
5533	xorg_testset_unused_command_line_argument=no
5534fi
5535
5536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
5538echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
5539	CFLAGS="$xorg_testset_save_CFLAGS"
5540fi
5541
5542found="no"
5543
5544	if test $found = "no" ; then
5545		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5546			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5547		fi
5548
5549		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5550			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5551		fi
5552
5553		CFLAGS="$CFLAGS -Wmissing-declarations"
5554
5555		{ echo "$as_me:$LINENO: checking if $CC supports -Wmissing-declarations" >&5
5556echo $ECHO_N "checking if $CC supports -Wmissing-declarations... $ECHO_C" >&6; }
5557		cat >conftest.$ac_ext <<_ACEOF
5558/* confdefs.h.  */
5559_ACEOF
5560cat confdefs.h >>conftest.$ac_ext
5561cat >>conftest.$ac_ext <<_ACEOF
5562/* end confdefs.h.  */
5563int i;
5564int
5565main ()
5566{
5567
5568  ;
5569  return 0;
5570}
5571_ACEOF
5572rm -f conftest.$ac_objext conftest$ac_exeext
5573if { (ac_try="$ac_link"
5574case "(($ac_try" in
5575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5576  *) ac_try_echo=$ac_try;;
5577esac
5578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5579  (eval "$ac_link") 2>conftest.er1
5580  ac_status=$?
5581  grep -v '^ *+' conftest.er1 >conftest.err
5582  rm -f conftest.er1
5583  cat conftest.err >&5
5584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585  (exit $ac_status); } && {
5586	 test -z "$ac_c_werror_flag" ||
5587	 test ! -s conftest.err
5588       } && test -s conftest$ac_exeext &&
5589       $as_test_x conftest$ac_exeext; then
5590  supported=yes
5591else
5592  echo "$as_me: failed program was:" >&5
5593sed 's/^/| /' conftest.$ac_ext >&5
5594
5595	supported=no
5596fi
5597
5598rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5599      conftest$ac_exeext conftest.$ac_ext
5600		{ echo "$as_me:$LINENO: result: $supported" >&5
5601echo "${ECHO_T}$supported" >&6; }
5602		CFLAGS="$xorg_testset_save_CFLAGS"
5603
5604		if test "$supported" = "yes" ; then
5605			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5606			found="yes"
5607		fi
5608	fi
5609
5610
5611
5612
5613
5614
5615
5616xorg_testset_save_CFLAGS="$CFLAGS"
5617
5618if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5619	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5620	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
5621echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
5622	cat >conftest.$ac_ext <<_ACEOF
5623/* confdefs.h.  */
5624_ACEOF
5625cat confdefs.h >>conftest.$ac_ext
5626cat >>conftest.$ac_ext <<_ACEOF
5627/* end confdefs.h.  */
5628int i;
5629_ACEOF
5630rm -f conftest.$ac_objext
5631if { (ac_try="$ac_compile"
5632case "(($ac_try" in
5633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5634  *) ac_try_echo=$ac_try;;
5635esac
5636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5637  (eval "$ac_compile") 2>conftest.er1
5638  ac_status=$?
5639  grep -v '^ *+' conftest.er1 >conftest.err
5640  rm -f conftest.er1
5641  cat conftest.err >&5
5642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643  (exit $ac_status); } && {
5644	 test -z "$ac_c_werror_flag" ||
5645	 test ! -s conftest.err
5646       } && test -s conftest.$ac_objext; then
5647  xorg_testset_unknown_warning_option=yes
5648else
5649  echo "$as_me: failed program was:" >&5
5650sed 's/^/| /' conftest.$ac_ext >&5
5651
5652	xorg_testset_unknown_warning_option=no
5653fi
5654
5655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5656	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
5657echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
5658	CFLAGS="$xorg_testset_save_CFLAGS"
5659fi
5660
5661if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5662	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5663		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5664	fi
5665	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5666	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
5667echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
5668	cat >conftest.$ac_ext <<_ACEOF
5669/* confdefs.h.  */
5670_ACEOF
5671cat confdefs.h >>conftest.$ac_ext
5672cat >>conftest.$ac_ext <<_ACEOF
5673/* end confdefs.h.  */
5674int i;
5675_ACEOF
5676rm -f conftest.$ac_objext
5677if { (ac_try="$ac_compile"
5678case "(($ac_try" in
5679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5680  *) ac_try_echo=$ac_try;;
5681esac
5682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5683  (eval "$ac_compile") 2>conftest.er1
5684  ac_status=$?
5685  grep -v '^ *+' conftest.er1 >conftest.err
5686  rm -f conftest.er1
5687  cat conftest.err >&5
5688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689  (exit $ac_status); } && {
5690	 test -z "$ac_c_werror_flag" ||
5691	 test ! -s conftest.err
5692       } && test -s conftest.$ac_objext; then
5693  xorg_testset_unused_command_line_argument=yes
5694else
5695  echo "$as_me: failed program was:" >&5
5696sed 's/^/| /' conftest.$ac_ext >&5
5697
5698	xorg_testset_unused_command_line_argument=no
5699fi
5700
5701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5702	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
5703echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
5704	CFLAGS="$xorg_testset_save_CFLAGS"
5705fi
5706
5707found="no"
5708
5709	if test $found = "no" ; then
5710		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5711			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5712		fi
5713
5714		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5715			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5716		fi
5717
5718		CFLAGS="$CFLAGS -Wnested-externs"
5719
5720		{ echo "$as_me:$LINENO: checking if $CC supports -Wnested-externs" >&5
5721echo $ECHO_N "checking if $CC supports -Wnested-externs... $ECHO_C" >&6; }
5722		cat >conftest.$ac_ext <<_ACEOF
5723/* confdefs.h.  */
5724_ACEOF
5725cat confdefs.h >>conftest.$ac_ext
5726cat >>conftest.$ac_ext <<_ACEOF
5727/* end confdefs.h.  */
5728int i;
5729int
5730main ()
5731{
5732
5733  ;
5734  return 0;
5735}
5736_ACEOF
5737rm -f conftest.$ac_objext conftest$ac_exeext
5738if { (ac_try="$ac_link"
5739case "(($ac_try" in
5740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741  *) ac_try_echo=$ac_try;;
5742esac
5743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5744  (eval "$ac_link") 2>conftest.er1
5745  ac_status=$?
5746  grep -v '^ *+' conftest.er1 >conftest.err
5747  rm -f conftest.er1
5748  cat conftest.err >&5
5749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750  (exit $ac_status); } && {
5751	 test -z "$ac_c_werror_flag" ||
5752	 test ! -s conftest.err
5753       } && test -s conftest$ac_exeext &&
5754       $as_test_x conftest$ac_exeext; then
5755  supported=yes
5756else
5757  echo "$as_me: failed program was:" >&5
5758sed 's/^/| /' conftest.$ac_ext >&5
5759
5760	supported=no
5761fi
5762
5763rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5764      conftest$ac_exeext conftest.$ac_ext
5765		{ echo "$as_me:$LINENO: result: $supported" >&5
5766echo "${ECHO_T}$supported" >&6; }
5767		CFLAGS="$xorg_testset_save_CFLAGS"
5768
5769		if test "$supported" = "yes" ; then
5770			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5771			found="yes"
5772		fi
5773	fi
5774
5775
5776
5777
5778
5779
5780
5781xorg_testset_save_CFLAGS="$CFLAGS"
5782
5783if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5784	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5785	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
5786echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
5787	cat >conftest.$ac_ext <<_ACEOF
5788/* confdefs.h.  */
5789_ACEOF
5790cat confdefs.h >>conftest.$ac_ext
5791cat >>conftest.$ac_ext <<_ACEOF
5792/* end confdefs.h.  */
5793int i;
5794_ACEOF
5795rm -f conftest.$ac_objext
5796if { (ac_try="$ac_compile"
5797case "(($ac_try" in
5798  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5799  *) ac_try_echo=$ac_try;;
5800esac
5801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5802  (eval "$ac_compile") 2>conftest.er1
5803  ac_status=$?
5804  grep -v '^ *+' conftest.er1 >conftest.err
5805  rm -f conftest.er1
5806  cat conftest.err >&5
5807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808  (exit $ac_status); } && {
5809	 test -z "$ac_c_werror_flag" ||
5810	 test ! -s conftest.err
5811       } && test -s conftest.$ac_objext; then
5812  xorg_testset_unknown_warning_option=yes
5813else
5814  echo "$as_me: failed program was:" >&5
5815sed 's/^/| /' conftest.$ac_ext >&5
5816
5817	xorg_testset_unknown_warning_option=no
5818fi
5819
5820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5821	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
5822echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
5823	CFLAGS="$xorg_testset_save_CFLAGS"
5824fi
5825
5826if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5827	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5828		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5829	fi
5830	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5831	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
5832echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
5833	cat >conftest.$ac_ext <<_ACEOF
5834/* confdefs.h.  */
5835_ACEOF
5836cat confdefs.h >>conftest.$ac_ext
5837cat >>conftest.$ac_ext <<_ACEOF
5838/* end confdefs.h.  */
5839int i;
5840_ACEOF
5841rm -f conftest.$ac_objext
5842if { (ac_try="$ac_compile"
5843case "(($ac_try" in
5844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5845  *) ac_try_echo=$ac_try;;
5846esac
5847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5848  (eval "$ac_compile") 2>conftest.er1
5849  ac_status=$?
5850  grep -v '^ *+' conftest.er1 >conftest.err
5851  rm -f conftest.er1
5852  cat conftest.err >&5
5853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854  (exit $ac_status); } && {
5855	 test -z "$ac_c_werror_flag" ||
5856	 test ! -s conftest.err
5857       } && test -s conftest.$ac_objext; then
5858  xorg_testset_unused_command_line_argument=yes
5859else
5860  echo "$as_me: failed program was:" >&5
5861sed 's/^/| /' conftest.$ac_ext >&5
5862
5863	xorg_testset_unused_command_line_argument=no
5864fi
5865
5866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5867	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
5868echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
5869	CFLAGS="$xorg_testset_save_CFLAGS"
5870fi
5871
5872found="no"
5873
5874	if test $found = "no" ; then
5875		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5876			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5877		fi
5878
5879		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5880			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5881		fi
5882
5883		CFLAGS="$CFLAGS -Wbad-function-cast"
5884
5885		{ echo "$as_me:$LINENO: checking if $CC supports -Wbad-function-cast" >&5
5886echo $ECHO_N "checking if $CC supports -Wbad-function-cast... $ECHO_C" >&6; }
5887		cat >conftest.$ac_ext <<_ACEOF
5888/* confdefs.h.  */
5889_ACEOF
5890cat confdefs.h >>conftest.$ac_ext
5891cat >>conftest.$ac_ext <<_ACEOF
5892/* end confdefs.h.  */
5893int i;
5894int
5895main ()
5896{
5897
5898  ;
5899  return 0;
5900}
5901_ACEOF
5902rm -f conftest.$ac_objext conftest$ac_exeext
5903if { (ac_try="$ac_link"
5904case "(($ac_try" in
5905  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5906  *) ac_try_echo=$ac_try;;
5907esac
5908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5909  (eval "$ac_link") 2>conftest.er1
5910  ac_status=$?
5911  grep -v '^ *+' conftest.er1 >conftest.err
5912  rm -f conftest.er1
5913  cat conftest.err >&5
5914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915  (exit $ac_status); } && {
5916	 test -z "$ac_c_werror_flag" ||
5917	 test ! -s conftest.err
5918       } && test -s conftest$ac_exeext &&
5919       $as_test_x conftest$ac_exeext; then
5920  supported=yes
5921else
5922  echo "$as_me: failed program was:" >&5
5923sed 's/^/| /' conftest.$ac_ext >&5
5924
5925	supported=no
5926fi
5927
5928rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5929      conftest$ac_exeext conftest.$ac_ext
5930		{ echo "$as_me:$LINENO: result: $supported" >&5
5931echo "${ECHO_T}$supported" >&6; }
5932		CFLAGS="$xorg_testset_save_CFLAGS"
5933
5934		if test "$supported" = "yes" ; then
5935			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5936			found="yes"
5937		fi
5938	fi
5939
5940
5941
5942
5943
5944
5945
5946xorg_testset_save_CFLAGS="$CFLAGS"
5947
5948if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5949	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5950	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
5951echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
5952	cat >conftest.$ac_ext <<_ACEOF
5953/* confdefs.h.  */
5954_ACEOF
5955cat confdefs.h >>conftest.$ac_ext
5956cat >>conftest.$ac_ext <<_ACEOF
5957/* end confdefs.h.  */
5958int i;
5959_ACEOF
5960rm -f conftest.$ac_objext
5961if { (ac_try="$ac_compile"
5962case "(($ac_try" in
5963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5964  *) ac_try_echo=$ac_try;;
5965esac
5966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5967  (eval "$ac_compile") 2>conftest.er1
5968  ac_status=$?
5969  grep -v '^ *+' conftest.er1 >conftest.err
5970  rm -f conftest.er1
5971  cat conftest.err >&5
5972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973  (exit $ac_status); } && {
5974	 test -z "$ac_c_werror_flag" ||
5975	 test ! -s conftest.err
5976       } && test -s conftest.$ac_objext; then
5977  xorg_testset_unknown_warning_option=yes
5978else
5979  echo "$as_me: failed program was:" >&5
5980sed 's/^/| /' conftest.$ac_ext >&5
5981
5982	xorg_testset_unknown_warning_option=no
5983fi
5984
5985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5986	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
5987echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
5988	CFLAGS="$xorg_testset_save_CFLAGS"
5989fi
5990
5991if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5992	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5993		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5994	fi
5995	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5996	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
5997echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
5998	cat >conftest.$ac_ext <<_ACEOF
5999/* confdefs.h.  */
6000_ACEOF
6001cat confdefs.h >>conftest.$ac_ext
6002cat >>conftest.$ac_ext <<_ACEOF
6003/* end confdefs.h.  */
6004int i;
6005_ACEOF
6006rm -f conftest.$ac_objext
6007if { (ac_try="$ac_compile"
6008case "(($ac_try" in
6009  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6010  *) ac_try_echo=$ac_try;;
6011esac
6012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6013  (eval "$ac_compile") 2>conftest.er1
6014  ac_status=$?
6015  grep -v '^ *+' conftest.er1 >conftest.err
6016  rm -f conftest.er1
6017  cat conftest.err >&5
6018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019  (exit $ac_status); } && {
6020	 test -z "$ac_c_werror_flag" ||
6021	 test ! -s conftest.err
6022       } && test -s conftest.$ac_objext; then
6023  xorg_testset_unused_command_line_argument=yes
6024else
6025  echo "$as_me: failed program was:" >&5
6026sed 's/^/| /' conftest.$ac_ext >&5
6027
6028	xorg_testset_unused_command_line_argument=no
6029fi
6030
6031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6032	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
6033echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
6034	CFLAGS="$xorg_testset_save_CFLAGS"
6035fi
6036
6037found="no"
6038
6039	if test $found = "no" ; then
6040		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6041			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6042		fi
6043
6044		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6045			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6046		fi
6047
6048		CFLAGS="$CFLAGS -Wformat=2"
6049
6050		{ echo "$as_me:$LINENO: checking if $CC supports -Wformat=2" >&5
6051echo $ECHO_N "checking if $CC supports -Wformat=2... $ECHO_C" >&6; }
6052		cat >conftest.$ac_ext <<_ACEOF
6053/* confdefs.h.  */
6054_ACEOF
6055cat confdefs.h >>conftest.$ac_ext
6056cat >>conftest.$ac_ext <<_ACEOF
6057/* end confdefs.h.  */
6058int i;
6059int
6060main ()
6061{
6062
6063  ;
6064  return 0;
6065}
6066_ACEOF
6067rm -f conftest.$ac_objext conftest$ac_exeext
6068if { (ac_try="$ac_link"
6069case "(($ac_try" in
6070  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6071  *) ac_try_echo=$ac_try;;
6072esac
6073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6074  (eval "$ac_link") 2>conftest.er1
6075  ac_status=$?
6076  grep -v '^ *+' conftest.er1 >conftest.err
6077  rm -f conftest.er1
6078  cat conftest.err >&5
6079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080  (exit $ac_status); } && {
6081	 test -z "$ac_c_werror_flag" ||
6082	 test ! -s conftest.err
6083       } && test -s conftest$ac_exeext &&
6084       $as_test_x conftest$ac_exeext; then
6085  supported=yes
6086else
6087  echo "$as_me: failed program was:" >&5
6088sed 's/^/| /' conftest.$ac_ext >&5
6089
6090	supported=no
6091fi
6092
6093rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6094      conftest$ac_exeext conftest.$ac_ext
6095		{ echo "$as_me:$LINENO: result: $supported" >&5
6096echo "${ECHO_T}$supported" >&6; }
6097		CFLAGS="$xorg_testset_save_CFLAGS"
6098
6099		if test "$supported" = "yes" ; then
6100			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
6101			found="yes"
6102		fi
6103	fi
6104
6105	if test $found = "no" ; then
6106		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6107			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6108		fi
6109
6110		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6111			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6112		fi
6113
6114		CFLAGS="$CFLAGS -Wformat"
6115
6116		{ echo "$as_me:$LINENO: checking if $CC supports -Wformat" >&5
6117echo $ECHO_N "checking if $CC supports -Wformat... $ECHO_C" >&6; }
6118		cat >conftest.$ac_ext <<_ACEOF
6119/* confdefs.h.  */
6120_ACEOF
6121cat confdefs.h >>conftest.$ac_ext
6122cat >>conftest.$ac_ext <<_ACEOF
6123/* end confdefs.h.  */
6124int i;
6125int
6126main ()
6127{
6128
6129  ;
6130  return 0;
6131}
6132_ACEOF
6133rm -f conftest.$ac_objext conftest$ac_exeext
6134if { (ac_try="$ac_link"
6135case "(($ac_try" in
6136  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6137  *) ac_try_echo=$ac_try;;
6138esac
6139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6140  (eval "$ac_link") 2>conftest.er1
6141  ac_status=$?
6142  grep -v '^ *+' conftest.er1 >conftest.err
6143  rm -f conftest.er1
6144  cat conftest.err >&5
6145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146  (exit $ac_status); } && {
6147	 test -z "$ac_c_werror_flag" ||
6148	 test ! -s conftest.err
6149       } && test -s conftest$ac_exeext &&
6150       $as_test_x conftest$ac_exeext; then
6151  supported=yes
6152else
6153  echo "$as_me: failed program was:" >&5
6154sed 's/^/| /' conftest.$ac_ext >&5
6155
6156	supported=no
6157fi
6158
6159rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6160      conftest$ac_exeext conftest.$ac_ext
6161		{ echo "$as_me:$LINENO: result: $supported" >&5
6162echo "${ECHO_T}$supported" >&6; }
6163		CFLAGS="$xorg_testset_save_CFLAGS"
6164
6165		if test "$supported" = "yes" ; then
6166			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
6167			found="yes"
6168		fi
6169	fi
6170
6171
6172
6173
6174
6175
6176
6177xorg_testset_save_CFLAGS="$CFLAGS"
6178
6179if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6180	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6181	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
6182echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
6183	cat >conftest.$ac_ext <<_ACEOF
6184/* confdefs.h.  */
6185_ACEOF
6186cat confdefs.h >>conftest.$ac_ext
6187cat >>conftest.$ac_ext <<_ACEOF
6188/* end confdefs.h.  */
6189int i;
6190_ACEOF
6191rm -f conftest.$ac_objext
6192if { (ac_try="$ac_compile"
6193case "(($ac_try" in
6194  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6195  *) ac_try_echo=$ac_try;;
6196esac
6197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6198  (eval "$ac_compile") 2>conftest.er1
6199  ac_status=$?
6200  grep -v '^ *+' conftest.er1 >conftest.err
6201  rm -f conftest.er1
6202  cat conftest.err >&5
6203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204  (exit $ac_status); } && {
6205	 test -z "$ac_c_werror_flag" ||
6206	 test ! -s conftest.err
6207       } && test -s conftest.$ac_objext; then
6208  xorg_testset_unknown_warning_option=yes
6209else
6210  echo "$as_me: failed program was:" >&5
6211sed 's/^/| /' conftest.$ac_ext >&5
6212
6213	xorg_testset_unknown_warning_option=no
6214fi
6215
6216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6217	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
6218echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
6219	CFLAGS="$xorg_testset_save_CFLAGS"
6220fi
6221
6222if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6223	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6224		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6225	fi
6226	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6227	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
6228echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
6229	cat >conftest.$ac_ext <<_ACEOF
6230/* confdefs.h.  */
6231_ACEOF
6232cat confdefs.h >>conftest.$ac_ext
6233cat >>conftest.$ac_ext <<_ACEOF
6234/* end confdefs.h.  */
6235int i;
6236_ACEOF
6237rm -f conftest.$ac_objext
6238if { (ac_try="$ac_compile"
6239case "(($ac_try" in
6240  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6241  *) ac_try_echo=$ac_try;;
6242esac
6243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6244  (eval "$ac_compile") 2>conftest.er1
6245  ac_status=$?
6246  grep -v '^ *+' conftest.er1 >conftest.err
6247  rm -f conftest.er1
6248  cat conftest.err >&5
6249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250  (exit $ac_status); } && {
6251	 test -z "$ac_c_werror_flag" ||
6252	 test ! -s conftest.err
6253       } && test -s conftest.$ac_objext; then
6254  xorg_testset_unused_command_line_argument=yes
6255else
6256  echo "$as_me: failed program was:" >&5
6257sed 's/^/| /' conftest.$ac_ext >&5
6258
6259	xorg_testset_unused_command_line_argument=no
6260fi
6261
6262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6263	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
6264echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
6265	CFLAGS="$xorg_testset_save_CFLAGS"
6266fi
6267
6268found="no"
6269
6270	if test $found = "no" ; then
6271		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6272			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6273		fi
6274
6275		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6276			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6277		fi
6278
6279		CFLAGS="$CFLAGS -Wold-style-definition"
6280
6281		{ echo "$as_me:$LINENO: checking if $CC supports -Wold-style-definition" >&5
6282echo $ECHO_N "checking if $CC supports -Wold-style-definition... $ECHO_C" >&6; }
6283		cat >conftest.$ac_ext <<_ACEOF
6284/* confdefs.h.  */
6285_ACEOF
6286cat confdefs.h >>conftest.$ac_ext
6287cat >>conftest.$ac_ext <<_ACEOF
6288/* end confdefs.h.  */
6289int i;
6290int
6291main ()
6292{
6293
6294  ;
6295  return 0;
6296}
6297_ACEOF
6298rm -f conftest.$ac_objext conftest$ac_exeext
6299if { (ac_try="$ac_link"
6300case "(($ac_try" in
6301  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6302  *) ac_try_echo=$ac_try;;
6303esac
6304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6305  (eval "$ac_link") 2>conftest.er1
6306  ac_status=$?
6307  grep -v '^ *+' conftest.er1 >conftest.err
6308  rm -f conftest.er1
6309  cat conftest.err >&5
6310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311  (exit $ac_status); } && {
6312	 test -z "$ac_c_werror_flag" ||
6313	 test ! -s conftest.err
6314       } && test -s conftest$ac_exeext &&
6315       $as_test_x conftest$ac_exeext; then
6316  supported=yes
6317else
6318  echo "$as_me: failed program was:" >&5
6319sed 's/^/| /' conftest.$ac_ext >&5
6320
6321	supported=no
6322fi
6323
6324rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6325      conftest$ac_exeext conftest.$ac_ext
6326		{ echo "$as_me:$LINENO: result: $supported" >&5
6327echo "${ECHO_T}$supported" >&6; }
6328		CFLAGS="$xorg_testset_save_CFLAGS"
6329
6330		if test "$supported" = "yes" ; then
6331			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6332			found="yes"
6333		fi
6334	fi
6335
6336
6337
6338
6339
6340
6341
6342xorg_testset_save_CFLAGS="$CFLAGS"
6343
6344if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6345	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6346	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
6347echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
6348	cat >conftest.$ac_ext <<_ACEOF
6349/* confdefs.h.  */
6350_ACEOF
6351cat confdefs.h >>conftest.$ac_ext
6352cat >>conftest.$ac_ext <<_ACEOF
6353/* end confdefs.h.  */
6354int i;
6355_ACEOF
6356rm -f conftest.$ac_objext
6357if { (ac_try="$ac_compile"
6358case "(($ac_try" in
6359  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6360  *) ac_try_echo=$ac_try;;
6361esac
6362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6363  (eval "$ac_compile") 2>conftest.er1
6364  ac_status=$?
6365  grep -v '^ *+' conftest.er1 >conftest.err
6366  rm -f conftest.er1
6367  cat conftest.err >&5
6368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369  (exit $ac_status); } && {
6370	 test -z "$ac_c_werror_flag" ||
6371	 test ! -s conftest.err
6372       } && test -s conftest.$ac_objext; then
6373  xorg_testset_unknown_warning_option=yes
6374else
6375  echo "$as_me: failed program was:" >&5
6376sed 's/^/| /' conftest.$ac_ext >&5
6377
6378	xorg_testset_unknown_warning_option=no
6379fi
6380
6381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6382	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
6383echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
6384	CFLAGS="$xorg_testset_save_CFLAGS"
6385fi
6386
6387if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6388	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6389		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6390	fi
6391	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6392	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
6393echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
6394	cat >conftest.$ac_ext <<_ACEOF
6395/* confdefs.h.  */
6396_ACEOF
6397cat confdefs.h >>conftest.$ac_ext
6398cat >>conftest.$ac_ext <<_ACEOF
6399/* end confdefs.h.  */
6400int i;
6401_ACEOF
6402rm -f conftest.$ac_objext
6403if { (ac_try="$ac_compile"
6404case "(($ac_try" in
6405  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6406  *) ac_try_echo=$ac_try;;
6407esac
6408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6409  (eval "$ac_compile") 2>conftest.er1
6410  ac_status=$?
6411  grep -v '^ *+' conftest.er1 >conftest.err
6412  rm -f conftest.er1
6413  cat conftest.err >&5
6414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415  (exit $ac_status); } && {
6416	 test -z "$ac_c_werror_flag" ||
6417	 test ! -s conftest.err
6418       } && test -s conftest.$ac_objext; then
6419  xorg_testset_unused_command_line_argument=yes
6420else
6421  echo "$as_me: failed program was:" >&5
6422sed 's/^/| /' conftest.$ac_ext >&5
6423
6424	xorg_testset_unused_command_line_argument=no
6425fi
6426
6427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6428	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
6429echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
6430	CFLAGS="$xorg_testset_save_CFLAGS"
6431fi
6432
6433found="no"
6434
6435	if test $found = "no" ; then
6436		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6437			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6438		fi
6439
6440		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6441			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6442		fi
6443
6444		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6445
6446		{ echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
6447echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
6448		cat >conftest.$ac_ext <<_ACEOF
6449/* confdefs.h.  */
6450_ACEOF
6451cat confdefs.h >>conftest.$ac_ext
6452cat >>conftest.$ac_ext <<_ACEOF
6453/* end confdefs.h.  */
6454int i;
6455int
6456main ()
6457{
6458
6459  ;
6460  return 0;
6461}
6462_ACEOF
6463rm -f conftest.$ac_objext conftest$ac_exeext
6464if { (ac_try="$ac_link"
6465case "(($ac_try" in
6466  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6467  *) ac_try_echo=$ac_try;;
6468esac
6469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6470  (eval "$ac_link") 2>conftest.er1
6471  ac_status=$?
6472  grep -v '^ *+' conftest.er1 >conftest.err
6473  rm -f conftest.er1
6474  cat conftest.err >&5
6475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476  (exit $ac_status); } && {
6477	 test -z "$ac_c_werror_flag" ||
6478	 test ! -s conftest.err
6479       } && test -s conftest$ac_exeext &&
6480       $as_test_x conftest$ac_exeext; then
6481  supported=yes
6482else
6483  echo "$as_me: failed program was:" >&5
6484sed 's/^/| /' conftest.$ac_ext >&5
6485
6486	supported=no
6487fi
6488
6489rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6490      conftest$ac_exeext conftest.$ac_ext
6491		{ echo "$as_me:$LINENO: result: $supported" >&5
6492echo "${ECHO_T}$supported" >&6; }
6493		CFLAGS="$xorg_testset_save_CFLAGS"
6494
6495		if test "$supported" = "yes" ; then
6496			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6497			found="yes"
6498		fi
6499	fi
6500
6501
6502
6503# This chunk adds additional warnings that could catch undesired effects.
6504
6505
6506
6507
6508
6509xorg_testset_save_CFLAGS="$CFLAGS"
6510
6511if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6512	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6513	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
6514echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
6515	cat >conftest.$ac_ext <<_ACEOF
6516/* confdefs.h.  */
6517_ACEOF
6518cat confdefs.h >>conftest.$ac_ext
6519cat >>conftest.$ac_ext <<_ACEOF
6520/* end confdefs.h.  */
6521int i;
6522_ACEOF
6523rm -f conftest.$ac_objext
6524if { (ac_try="$ac_compile"
6525case "(($ac_try" in
6526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6527  *) ac_try_echo=$ac_try;;
6528esac
6529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6530  (eval "$ac_compile") 2>conftest.er1
6531  ac_status=$?
6532  grep -v '^ *+' conftest.er1 >conftest.err
6533  rm -f conftest.er1
6534  cat conftest.err >&5
6535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536  (exit $ac_status); } && {
6537	 test -z "$ac_c_werror_flag" ||
6538	 test ! -s conftest.err
6539       } && test -s conftest.$ac_objext; then
6540  xorg_testset_unknown_warning_option=yes
6541else
6542  echo "$as_me: failed program was:" >&5
6543sed 's/^/| /' conftest.$ac_ext >&5
6544
6545	xorg_testset_unknown_warning_option=no
6546fi
6547
6548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6549	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
6550echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
6551	CFLAGS="$xorg_testset_save_CFLAGS"
6552fi
6553
6554if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6555	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6556		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6557	fi
6558	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6559	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
6560echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
6561	cat >conftest.$ac_ext <<_ACEOF
6562/* confdefs.h.  */
6563_ACEOF
6564cat confdefs.h >>conftest.$ac_ext
6565cat >>conftest.$ac_ext <<_ACEOF
6566/* end confdefs.h.  */
6567int i;
6568_ACEOF
6569rm -f conftest.$ac_objext
6570if { (ac_try="$ac_compile"
6571case "(($ac_try" in
6572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6573  *) ac_try_echo=$ac_try;;
6574esac
6575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6576  (eval "$ac_compile") 2>conftest.er1
6577  ac_status=$?
6578  grep -v '^ *+' conftest.er1 >conftest.err
6579  rm -f conftest.er1
6580  cat conftest.err >&5
6581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582  (exit $ac_status); } && {
6583	 test -z "$ac_c_werror_flag" ||
6584	 test ! -s conftest.err
6585       } && test -s conftest.$ac_objext; then
6586  xorg_testset_unused_command_line_argument=yes
6587else
6588  echo "$as_me: failed program was:" >&5
6589sed 's/^/| /' conftest.$ac_ext >&5
6590
6591	xorg_testset_unused_command_line_argument=no
6592fi
6593
6594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6595	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
6596echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
6597	CFLAGS="$xorg_testset_save_CFLAGS"
6598fi
6599
6600found="no"
6601
6602	if test $found = "no" ; then
6603		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6604			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6605		fi
6606
6607		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6608			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6609		fi
6610
6611		CFLAGS="$CFLAGS -Wunused"
6612
6613		{ echo "$as_me:$LINENO: checking if $CC supports -Wunused" >&5
6614echo $ECHO_N "checking if $CC supports -Wunused... $ECHO_C" >&6; }
6615		cat >conftest.$ac_ext <<_ACEOF
6616/* confdefs.h.  */
6617_ACEOF
6618cat confdefs.h >>conftest.$ac_ext
6619cat >>conftest.$ac_ext <<_ACEOF
6620/* end confdefs.h.  */
6621int i;
6622int
6623main ()
6624{
6625
6626  ;
6627  return 0;
6628}
6629_ACEOF
6630rm -f conftest.$ac_objext conftest$ac_exeext
6631if { (ac_try="$ac_link"
6632case "(($ac_try" in
6633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6634  *) ac_try_echo=$ac_try;;
6635esac
6636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6637  (eval "$ac_link") 2>conftest.er1
6638  ac_status=$?
6639  grep -v '^ *+' conftest.er1 >conftest.err
6640  rm -f conftest.er1
6641  cat conftest.err >&5
6642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643  (exit $ac_status); } && {
6644	 test -z "$ac_c_werror_flag" ||
6645	 test ! -s conftest.err
6646       } && test -s conftest$ac_exeext &&
6647       $as_test_x conftest$ac_exeext; then
6648  supported=yes
6649else
6650  echo "$as_me: failed program was:" >&5
6651sed 's/^/| /' conftest.$ac_ext >&5
6652
6653	supported=no
6654fi
6655
6656rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6657      conftest$ac_exeext conftest.$ac_ext
6658		{ echo "$as_me:$LINENO: result: $supported" >&5
6659echo "${ECHO_T}$supported" >&6; }
6660		CFLAGS="$xorg_testset_save_CFLAGS"
6661
6662		if test "$supported" = "yes" ; then
6663			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6664			found="yes"
6665		fi
6666	fi
6667
6668
6669
6670
6671
6672
6673
6674xorg_testset_save_CFLAGS="$CFLAGS"
6675
6676if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6677	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6678	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
6679echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
6680	cat >conftest.$ac_ext <<_ACEOF
6681/* confdefs.h.  */
6682_ACEOF
6683cat confdefs.h >>conftest.$ac_ext
6684cat >>conftest.$ac_ext <<_ACEOF
6685/* end confdefs.h.  */
6686int i;
6687_ACEOF
6688rm -f conftest.$ac_objext
6689if { (ac_try="$ac_compile"
6690case "(($ac_try" in
6691  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6692  *) ac_try_echo=$ac_try;;
6693esac
6694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6695  (eval "$ac_compile") 2>conftest.er1
6696  ac_status=$?
6697  grep -v '^ *+' conftest.er1 >conftest.err
6698  rm -f conftest.er1
6699  cat conftest.err >&5
6700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701  (exit $ac_status); } && {
6702	 test -z "$ac_c_werror_flag" ||
6703	 test ! -s conftest.err
6704       } && test -s conftest.$ac_objext; then
6705  xorg_testset_unknown_warning_option=yes
6706else
6707  echo "$as_me: failed program was:" >&5
6708sed 's/^/| /' conftest.$ac_ext >&5
6709
6710	xorg_testset_unknown_warning_option=no
6711fi
6712
6713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6714	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
6715echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
6716	CFLAGS="$xorg_testset_save_CFLAGS"
6717fi
6718
6719if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6720	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6721		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6722	fi
6723	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6724	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
6725echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
6726	cat >conftest.$ac_ext <<_ACEOF
6727/* confdefs.h.  */
6728_ACEOF
6729cat confdefs.h >>conftest.$ac_ext
6730cat >>conftest.$ac_ext <<_ACEOF
6731/* end confdefs.h.  */
6732int i;
6733_ACEOF
6734rm -f conftest.$ac_objext
6735if { (ac_try="$ac_compile"
6736case "(($ac_try" in
6737  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6738  *) ac_try_echo=$ac_try;;
6739esac
6740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6741  (eval "$ac_compile") 2>conftest.er1
6742  ac_status=$?
6743  grep -v '^ *+' conftest.er1 >conftest.err
6744  rm -f conftest.er1
6745  cat conftest.err >&5
6746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747  (exit $ac_status); } && {
6748	 test -z "$ac_c_werror_flag" ||
6749	 test ! -s conftest.err
6750       } && test -s conftest.$ac_objext; then
6751  xorg_testset_unused_command_line_argument=yes
6752else
6753  echo "$as_me: failed program was:" >&5
6754sed 's/^/| /' conftest.$ac_ext >&5
6755
6756	xorg_testset_unused_command_line_argument=no
6757fi
6758
6759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6760	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
6761echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
6762	CFLAGS="$xorg_testset_save_CFLAGS"
6763fi
6764
6765found="no"
6766
6767	if test $found = "no" ; then
6768		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6769			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6770		fi
6771
6772		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6773			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6774		fi
6775
6776		CFLAGS="$CFLAGS -Wuninitialized"
6777
6778		{ echo "$as_me:$LINENO: checking if $CC supports -Wuninitialized" >&5
6779echo $ECHO_N "checking if $CC supports -Wuninitialized... $ECHO_C" >&6; }
6780		cat >conftest.$ac_ext <<_ACEOF
6781/* confdefs.h.  */
6782_ACEOF
6783cat confdefs.h >>conftest.$ac_ext
6784cat >>conftest.$ac_ext <<_ACEOF
6785/* end confdefs.h.  */
6786int i;
6787int
6788main ()
6789{
6790
6791  ;
6792  return 0;
6793}
6794_ACEOF
6795rm -f conftest.$ac_objext conftest$ac_exeext
6796if { (ac_try="$ac_link"
6797case "(($ac_try" in
6798  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6799  *) ac_try_echo=$ac_try;;
6800esac
6801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6802  (eval "$ac_link") 2>conftest.er1
6803  ac_status=$?
6804  grep -v '^ *+' conftest.er1 >conftest.err
6805  rm -f conftest.er1
6806  cat conftest.err >&5
6807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808  (exit $ac_status); } && {
6809	 test -z "$ac_c_werror_flag" ||
6810	 test ! -s conftest.err
6811       } && test -s conftest$ac_exeext &&
6812       $as_test_x conftest$ac_exeext; then
6813  supported=yes
6814else
6815  echo "$as_me: failed program was:" >&5
6816sed 's/^/| /' conftest.$ac_ext >&5
6817
6818	supported=no
6819fi
6820
6821rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6822      conftest$ac_exeext conftest.$ac_ext
6823		{ echo "$as_me:$LINENO: result: $supported" >&5
6824echo "${ECHO_T}$supported" >&6; }
6825		CFLAGS="$xorg_testset_save_CFLAGS"
6826
6827		if test "$supported" = "yes" ; then
6828			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6829			found="yes"
6830		fi
6831	fi
6832
6833
6834
6835
6836
6837
6838
6839xorg_testset_save_CFLAGS="$CFLAGS"
6840
6841if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6842	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6843	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
6844echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
6845	cat >conftest.$ac_ext <<_ACEOF
6846/* confdefs.h.  */
6847_ACEOF
6848cat confdefs.h >>conftest.$ac_ext
6849cat >>conftest.$ac_ext <<_ACEOF
6850/* end confdefs.h.  */
6851int i;
6852_ACEOF
6853rm -f conftest.$ac_objext
6854if { (ac_try="$ac_compile"
6855case "(($ac_try" in
6856  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6857  *) ac_try_echo=$ac_try;;
6858esac
6859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6860  (eval "$ac_compile") 2>conftest.er1
6861  ac_status=$?
6862  grep -v '^ *+' conftest.er1 >conftest.err
6863  rm -f conftest.er1
6864  cat conftest.err >&5
6865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866  (exit $ac_status); } && {
6867	 test -z "$ac_c_werror_flag" ||
6868	 test ! -s conftest.err
6869       } && test -s conftest.$ac_objext; then
6870  xorg_testset_unknown_warning_option=yes
6871else
6872  echo "$as_me: failed program was:" >&5
6873sed 's/^/| /' conftest.$ac_ext >&5
6874
6875	xorg_testset_unknown_warning_option=no
6876fi
6877
6878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6879	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
6880echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
6881	CFLAGS="$xorg_testset_save_CFLAGS"
6882fi
6883
6884if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6885	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6886		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6887	fi
6888	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6889	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
6890echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
6891	cat >conftest.$ac_ext <<_ACEOF
6892/* confdefs.h.  */
6893_ACEOF
6894cat confdefs.h >>conftest.$ac_ext
6895cat >>conftest.$ac_ext <<_ACEOF
6896/* end confdefs.h.  */
6897int i;
6898_ACEOF
6899rm -f conftest.$ac_objext
6900if { (ac_try="$ac_compile"
6901case "(($ac_try" in
6902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6903  *) ac_try_echo=$ac_try;;
6904esac
6905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6906  (eval "$ac_compile") 2>conftest.er1
6907  ac_status=$?
6908  grep -v '^ *+' conftest.er1 >conftest.err
6909  rm -f conftest.er1
6910  cat conftest.err >&5
6911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912  (exit $ac_status); } && {
6913	 test -z "$ac_c_werror_flag" ||
6914	 test ! -s conftest.err
6915       } && test -s conftest.$ac_objext; then
6916  xorg_testset_unused_command_line_argument=yes
6917else
6918  echo "$as_me: failed program was:" >&5
6919sed 's/^/| /' conftest.$ac_ext >&5
6920
6921	xorg_testset_unused_command_line_argument=no
6922fi
6923
6924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6925	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
6926echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
6927	CFLAGS="$xorg_testset_save_CFLAGS"
6928fi
6929
6930found="no"
6931
6932	if test $found = "no" ; then
6933		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6934			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6935		fi
6936
6937		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6938			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6939		fi
6940
6941		CFLAGS="$CFLAGS -Wshadow"
6942
6943		{ echo "$as_me:$LINENO: checking if $CC supports -Wshadow" >&5
6944echo $ECHO_N "checking if $CC supports -Wshadow... $ECHO_C" >&6; }
6945		cat >conftest.$ac_ext <<_ACEOF
6946/* confdefs.h.  */
6947_ACEOF
6948cat confdefs.h >>conftest.$ac_ext
6949cat >>conftest.$ac_ext <<_ACEOF
6950/* end confdefs.h.  */
6951int i;
6952int
6953main ()
6954{
6955
6956  ;
6957  return 0;
6958}
6959_ACEOF
6960rm -f conftest.$ac_objext conftest$ac_exeext
6961if { (ac_try="$ac_link"
6962case "(($ac_try" in
6963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6964  *) ac_try_echo=$ac_try;;
6965esac
6966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6967  (eval "$ac_link") 2>conftest.er1
6968  ac_status=$?
6969  grep -v '^ *+' conftest.er1 >conftest.err
6970  rm -f conftest.er1
6971  cat conftest.err >&5
6972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973  (exit $ac_status); } && {
6974	 test -z "$ac_c_werror_flag" ||
6975	 test ! -s conftest.err
6976       } && test -s conftest$ac_exeext &&
6977       $as_test_x conftest$ac_exeext; then
6978  supported=yes
6979else
6980  echo "$as_me: failed program was:" >&5
6981sed 's/^/| /' conftest.$ac_ext >&5
6982
6983	supported=no
6984fi
6985
6986rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6987      conftest$ac_exeext conftest.$ac_ext
6988		{ echo "$as_me:$LINENO: result: $supported" >&5
6989echo "${ECHO_T}$supported" >&6; }
6990		CFLAGS="$xorg_testset_save_CFLAGS"
6991
6992		if test "$supported" = "yes" ; then
6993			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6994			found="yes"
6995		fi
6996	fi
6997
6998
6999
7000
7001
7002
7003
7004xorg_testset_save_CFLAGS="$CFLAGS"
7005
7006if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7007	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7008	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
7009echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
7010	cat >conftest.$ac_ext <<_ACEOF
7011/* confdefs.h.  */
7012_ACEOF
7013cat confdefs.h >>conftest.$ac_ext
7014cat >>conftest.$ac_ext <<_ACEOF
7015/* end confdefs.h.  */
7016int i;
7017_ACEOF
7018rm -f conftest.$ac_objext
7019if { (ac_try="$ac_compile"
7020case "(($ac_try" in
7021  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7022  *) ac_try_echo=$ac_try;;
7023esac
7024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7025  (eval "$ac_compile") 2>conftest.er1
7026  ac_status=$?
7027  grep -v '^ *+' conftest.er1 >conftest.err
7028  rm -f conftest.er1
7029  cat conftest.err >&5
7030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031  (exit $ac_status); } && {
7032	 test -z "$ac_c_werror_flag" ||
7033	 test ! -s conftest.err
7034       } && test -s conftest.$ac_objext; then
7035  xorg_testset_unknown_warning_option=yes
7036else
7037  echo "$as_me: failed program was:" >&5
7038sed 's/^/| /' conftest.$ac_ext >&5
7039
7040	xorg_testset_unknown_warning_option=no
7041fi
7042
7043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7044	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
7045echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
7046	CFLAGS="$xorg_testset_save_CFLAGS"
7047fi
7048
7049if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7050	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7051		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7052	fi
7053	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7054	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
7055echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
7056	cat >conftest.$ac_ext <<_ACEOF
7057/* confdefs.h.  */
7058_ACEOF
7059cat confdefs.h >>conftest.$ac_ext
7060cat >>conftest.$ac_ext <<_ACEOF
7061/* end confdefs.h.  */
7062int i;
7063_ACEOF
7064rm -f conftest.$ac_objext
7065if { (ac_try="$ac_compile"
7066case "(($ac_try" in
7067  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7068  *) ac_try_echo=$ac_try;;
7069esac
7070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7071  (eval "$ac_compile") 2>conftest.er1
7072  ac_status=$?
7073  grep -v '^ *+' conftest.er1 >conftest.err
7074  rm -f conftest.er1
7075  cat conftest.err >&5
7076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077  (exit $ac_status); } && {
7078	 test -z "$ac_c_werror_flag" ||
7079	 test ! -s conftest.err
7080       } && test -s conftest.$ac_objext; then
7081  xorg_testset_unused_command_line_argument=yes
7082else
7083  echo "$as_me: failed program was:" >&5
7084sed 's/^/| /' conftest.$ac_ext >&5
7085
7086	xorg_testset_unused_command_line_argument=no
7087fi
7088
7089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7090	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
7091echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
7092	CFLAGS="$xorg_testset_save_CFLAGS"
7093fi
7094
7095found="no"
7096
7097	if test $found = "no" ; then
7098		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7099			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7100		fi
7101
7102		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7103			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7104		fi
7105
7106		CFLAGS="$CFLAGS -Wcast-qual"
7107
7108		{ echo "$as_me:$LINENO: checking if $CC supports -Wcast-qual" >&5
7109echo $ECHO_N "checking if $CC supports -Wcast-qual... $ECHO_C" >&6; }
7110		cat >conftest.$ac_ext <<_ACEOF
7111/* confdefs.h.  */
7112_ACEOF
7113cat confdefs.h >>conftest.$ac_ext
7114cat >>conftest.$ac_ext <<_ACEOF
7115/* end confdefs.h.  */
7116int i;
7117int
7118main ()
7119{
7120
7121  ;
7122  return 0;
7123}
7124_ACEOF
7125rm -f conftest.$ac_objext conftest$ac_exeext
7126if { (ac_try="$ac_link"
7127case "(($ac_try" in
7128  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7129  *) ac_try_echo=$ac_try;;
7130esac
7131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7132  (eval "$ac_link") 2>conftest.er1
7133  ac_status=$?
7134  grep -v '^ *+' conftest.er1 >conftest.err
7135  rm -f conftest.er1
7136  cat conftest.err >&5
7137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138  (exit $ac_status); } && {
7139	 test -z "$ac_c_werror_flag" ||
7140	 test ! -s conftest.err
7141       } && test -s conftest$ac_exeext &&
7142       $as_test_x conftest$ac_exeext; then
7143  supported=yes
7144else
7145  echo "$as_me: failed program was:" >&5
7146sed 's/^/| /' conftest.$ac_ext >&5
7147
7148	supported=no
7149fi
7150
7151rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7152      conftest$ac_exeext conftest.$ac_ext
7153		{ echo "$as_me:$LINENO: result: $supported" >&5
7154echo "${ECHO_T}$supported" >&6; }
7155		CFLAGS="$xorg_testset_save_CFLAGS"
7156
7157		if test "$supported" = "yes" ; then
7158			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
7159			found="yes"
7160		fi
7161	fi
7162
7163
7164
7165
7166
7167
7168
7169xorg_testset_save_CFLAGS="$CFLAGS"
7170
7171if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7172	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7173	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
7174echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
7175	cat >conftest.$ac_ext <<_ACEOF
7176/* confdefs.h.  */
7177_ACEOF
7178cat confdefs.h >>conftest.$ac_ext
7179cat >>conftest.$ac_ext <<_ACEOF
7180/* end confdefs.h.  */
7181int i;
7182_ACEOF
7183rm -f conftest.$ac_objext
7184if { (ac_try="$ac_compile"
7185case "(($ac_try" in
7186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7187  *) ac_try_echo=$ac_try;;
7188esac
7189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7190  (eval "$ac_compile") 2>conftest.er1
7191  ac_status=$?
7192  grep -v '^ *+' conftest.er1 >conftest.err
7193  rm -f conftest.er1
7194  cat conftest.err >&5
7195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196  (exit $ac_status); } && {
7197	 test -z "$ac_c_werror_flag" ||
7198	 test ! -s conftest.err
7199       } && test -s conftest.$ac_objext; then
7200  xorg_testset_unknown_warning_option=yes
7201else
7202  echo "$as_me: failed program was:" >&5
7203sed 's/^/| /' conftest.$ac_ext >&5
7204
7205	xorg_testset_unknown_warning_option=no
7206fi
7207
7208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7209	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
7210echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
7211	CFLAGS="$xorg_testset_save_CFLAGS"
7212fi
7213
7214if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7215	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7216		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7217	fi
7218	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7219	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
7220echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
7221	cat >conftest.$ac_ext <<_ACEOF
7222/* confdefs.h.  */
7223_ACEOF
7224cat confdefs.h >>conftest.$ac_ext
7225cat >>conftest.$ac_ext <<_ACEOF
7226/* end confdefs.h.  */
7227int i;
7228_ACEOF
7229rm -f conftest.$ac_objext
7230if { (ac_try="$ac_compile"
7231case "(($ac_try" in
7232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7233  *) ac_try_echo=$ac_try;;
7234esac
7235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7236  (eval "$ac_compile") 2>conftest.er1
7237  ac_status=$?
7238  grep -v '^ *+' conftest.er1 >conftest.err
7239  rm -f conftest.er1
7240  cat conftest.err >&5
7241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242  (exit $ac_status); } && {
7243	 test -z "$ac_c_werror_flag" ||
7244	 test ! -s conftest.err
7245       } && test -s conftest.$ac_objext; then
7246  xorg_testset_unused_command_line_argument=yes
7247else
7248  echo "$as_me: failed program was:" >&5
7249sed 's/^/| /' conftest.$ac_ext >&5
7250
7251	xorg_testset_unused_command_line_argument=no
7252fi
7253
7254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7255	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
7256echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
7257	CFLAGS="$xorg_testset_save_CFLAGS"
7258fi
7259
7260found="no"
7261
7262	if test $found = "no" ; then
7263		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7264			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7265		fi
7266
7267		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7268			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7269		fi
7270
7271		CFLAGS="$CFLAGS -Wmissing-noreturn"
7272
7273		{ echo "$as_me:$LINENO: checking if $CC supports -Wmissing-noreturn" >&5
7274echo $ECHO_N "checking if $CC supports -Wmissing-noreturn... $ECHO_C" >&6; }
7275		cat >conftest.$ac_ext <<_ACEOF
7276/* confdefs.h.  */
7277_ACEOF
7278cat confdefs.h >>conftest.$ac_ext
7279cat >>conftest.$ac_ext <<_ACEOF
7280/* end confdefs.h.  */
7281int i;
7282int
7283main ()
7284{
7285
7286  ;
7287  return 0;
7288}
7289_ACEOF
7290rm -f conftest.$ac_objext conftest$ac_exeext
7291if { (ac_try="$ac_link"
7292case "(($ac_try" in
7293  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7294  *) ac_try_echo=$ac_try;;
7295esac
7296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7297  (eval "$ac_link") 2>conftest.er1
7298  ac_status=$?
7299  grep -v '^ *+' conftest.er1 >conftest.err
7300  rm -f conftest.er1
7301  cat conftest.err >&5
7302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303  (exit $ac_status); } && {
7304	 test -z "$ac_c_werror_flag" ||
7305	 test ! -s conftest.err
7306       } && test -s conftest$ac_exeext &&
7307       $as_test_x conftest$ac_exeext; then
7308  supported=yes
7309else
7310  echo "$as_me: failed program was:" >&5
7311sed 's/^/| /' conftest.$ac_ext >&5
7312
7313	supported=no
7314fi
7315
7316rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7317      conftest$ac_exeext conftest.$ac_ext
7318		{ echo "$as_me:$LINENO: result: $supported" >&5
7319echo "${ECHO_T}$supported" >&6; }
7320		CFLAGS="$xorg_testset_save_CFLAGS"
7321
7322		if test "$supported" = "yes" ; then
7323			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
7324			found="yes"
7325		fi
7326	fi
7327
7328
7329
7330
7331
7332
7333
7334xorg_testset_save_CFLAGS="$CFLAGS"
7335
7336if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7337	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7338	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
7339echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
7340	cat >conftest.$ac_ext <<_ACEOF
7341/* confdefs.h.  */
7342_ACEOF
7343cat confdefs.h >>conftest.$ac_ext
7344cat >>conftest.$ac_ext <<_ACEOF
7345/* end confdefs.h.  */
7346int i;
7347_ACEOF
7348rm -f conftest.$ac_objext
7349if { (ac_try="$ac_compile"
7350case "(($ac_try" in
7351  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7352  *) ac_try_echo=$ac_try;;
7353esac
7354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7355  (eval "$ac_compile") 2>conftest.er1
7356  ac_status=$?
7357  grep -v '^ *+' conftest.er1 >conftest.err
7358  rm -f conftest.er1
7359  cat conftest.err >&5
7360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361  (exit $ac_status); } && {
7362	 test -z "$ac_c_werror_flag" ||
7363	 test ! -s conftest.err
7364       } && test -s conftest.$ac_objext; then
7365  xorg_testset_unknown_warning_option=yes
7366else
7367  echo "$as_me: failed program was:" >&5
7368sed 's/^/| /' conftest.$ac_ext >&5
7369
7370	xorg_testset_unknown_warning_option=no
7371fi
7372
7373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7374	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
7375echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
7376	CFLAGS="$xorg_testset_save_CFLAGS"
7377fi
7378
7379if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7380	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7381		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7382	fi
7383	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7384	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
7385echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
7386	cat >conftest.$ac_ext <<_ACEOF
7387/* confdefs.h.  */
7388_ACEOF
7389cat confdefs.h >>conftest.$ac_ext
7390cat >>conftest.$ac_ext <<_ACEOF
7391/* end confdefs.h.  */
7392int i;
7393_ACEOF
7394rm -f conftest.$ac_objext
7395if { (ac_try="$ac_compile"
7396case "(($ac_try" in
7397  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7398  *) ac_try_echo=$ac_try;;
7399esac
7400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7401  (eval "$ac_compile") 2>conftest.er1
7402  ac_status=$?
7403  grep -v '^ *+' conftest.er1 >conftest.err
7404  rm -f conftest.er1
7405  cat conftest.err >&5
7406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407  (exit $ac_status); } && {
7408	 test -z "$ac_c_werror_flag" ||
7409	 test ! -s conftest.err
7410       } && test -s conftest.$ac_objext; then
7411  xorg_testset_unused_command_line_argument=yes
7412else
7413  echo "$as_me: failed program was:" >&5
7414sed 's/^/| /' conftest.$ac_ext >&5
7415
7416	xorg_testset_unused_command_line_argument=no
7417fi
7418
7419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7420	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
7421echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
7422	CFLAGS="$xorg_testset_save_CFLAGS"
7423fi
7424
7425found="no"
7426
7427	if test $found = "no" ; then
7428		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7429			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7430		fi
7431
7432		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7433			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7434		fi
7435
7436		CFLAGS="$CFLAGS -Wmissing-format-attribute"
7437
7438		{ echo "$as_me:$LINENO: checking if $CC supports -Wmissing-format-attribute" >&5
7439echo $ECHO_N "checking if $CC supports -Wmissing-format-attribute... $ECHO_C" >&6; }
7440		cat >conftest.$ac_ext <<_ACEOF
7441/* confdefs.h.  */
7442_ACEOF
7443cat confdefs.h >>conftest.$ac_ext
7444cat >>conftest.$ac_ext <<_ACEOF
7445/* end confdefs.h.  */
7446int i;
7447int
7448main ()
7449{
7450
7451  ;
7452  return 0;
7453}
7454_ACEOF
7455rm -f conftest.$ac_objext conftest$ac_exeext
7456if { (ac_try="$ac_link"
7457case "(($ac_try" in
7458  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7459  *) ac_try_echo=$ac_try;;
7460esac
7461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7462  (eval "$ac_link") 2>conftest.er1
7463  ac_status=$?
7464  grep -v '^ *+' conftest.er1 >conftest.err
7465  rm -f conftest.er1
7466  cat conftest.err >&5
7467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468  (exit $ac_status); } && {
7469	 test -z "$ac_c_werror_flag" ||
7470	 test ! -s conftest.err
7471       } && test -s conftest$ac_exeext &&
7472       $as_test_x conftest$ac_exeext; then
7473  supported=yes
7474else
7475  echo "$as_me: failed program was:" >&5
7476sed 's/^/| /' conftest.$ac_ext >&5
7477
7478	supported=no
7479fi
7480
7481rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7482      conftest$ac_exeext conftest.$ac_ext
7483		{ echo "$as_me:$LINENO: result: $supported" >&5
7484echo "${ECHO_T}$supported" >&6; }
7485		CFLAGS="$xorg_testset_save_CFLAGS"
7486
7487		if test "$supported" = "yes" ; then
7488			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7489			found="yes"
7490		fi
7491	fi
7492
7493
7494
7495
7496
7497
7498
7499xorg_testset_save_CFLAGS="$CFLAGS"
7500
7501if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7502	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7503	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
7504echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
7505	cat >conftest.$ac_ext <<_ACEOF
7506/* confdefs.h.  */
7507_ACEOF
7508cat confdefs.h >>conftest.$ac_ext
7509cat >>conftest.$ac_ext <<_ACEOF
7510/* end confdefs.h.  */
7511int i;
7512_ACEOF
7513rm -f conftest.$ac_objext
7514if { (ac_try="$ac_compile"
7515case "(($ac_try" in
7516  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7517  *) ac_try_echo=$ac_try;;
7518esac
7519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7520  (eval "$ac_compile") 2>conftest.er1
7521  ac_status=$?
7522  grep -v '^ *+' conftest.er1 >conftest.err
7523  rm -f conftest.er1
7524  cat conftest.err >&5
7525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526  (exit $ac_status); } && {
7527	 test -z "$ac_c_werror_flag" ||
7528	 test ! -s conftest.err
7529       } && test -s conftest.$ac_objext; then
7530  xorg_testset_unknown_warning_option=yes
7531else
7532  echo "$as_me: failed program was:" >&5
7533sed 's/^/| /' conftest.$ac_ext >&5
7534
7535	xorg_testset_unknown_warning_option=no
7536fi
7537
7538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7539	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
7540echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
7541	CFLAGS="$xorg_testset_save_CFLAGS"
7542fi
7543
7544if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7545	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7546		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7547	fi
7548	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7549	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
7550echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
7551	cat >conftest.$ac_ext <<_ACEOF
7552/* confdefs.h.  */
7553_ACEOF
7554cat confdefs.h >>conftest.$ac_ext
7555cat >>conftest.$ac_ext <<_ACEOF
7556/* end confdefs.h.  */
7557int i;
7558_ACEOF
7559rm -f conftest.$ac_objext
7560if { (ac_try="$ac_compile"
7561case "(($ac_try" in
7562  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7563  *) ac_try_echo=$ac_try;;
7564esac
7565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7566  (eval "$ac_compile") 2>conftest.er1
7567  ac_status=$?
7568  grep -v '^ *+' conftest.er1 >conftest.err
7569  rm -f conftest.er1
7570  cat conftest.err >&5
7571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572  (exit $ac_status); } && {
7573	 test -z "$ac_c_werror_flag" ||
7574	 test ! -s conftest.err
7575       } && test -s conftest.$ac_objext; then
7576  xorg_testset_unused_command_line_argument=yes
7577else
7578  echo "$as_me: failed program was:" >&5
7579sed 's/^/| /' conftest.$ac_ext >&5
7580
7581	xorg_testset_unused_command_line_argument=no
7582fi
7583
7584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7585	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
7586echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
7587	CFLAGS="$xorg_testset_save_CFLAGS"
7588fi
7589
7590found="no"
7591
7592	if test $found = "no" ; then
7593		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7594			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7595		fi
7596
7597		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7598			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7599		fi
7600
7601		CFLAGS="$CFLAGS -Wredundant-decls"
7602
7603		{ echo "$as_me:$LINENO: checking if $CC supports -Wredundant-decls" >&5
7604echo $ECHO_N "checking if $CC supports -Wredundant-decls... $ECHO_C" >&6; }
7605		cat >conftest.$ac_ext <<_ACEOF
7606/* confdefs.h.  */
7607_ACEOF
7608cat confdefs.h >>conftest.$ac_ext
7609cat >>conftest.$ac_ext <<_ACEOF
7610/* end confdefs.h.  */
7611int i;
7612int
7613main ()
7614{
7615
7616  ;
7617  return 0;
7618}
7619_ACEOF
7620rm -f conftest.$ac_objext conftest$ac_exeext
7621if { (ac_try="$ac_link"
7622case "(($ac_try" in
7623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7624  *) ac_try_echo=$ac_try;;
7625esac
7626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7627  (eval "$ac_link") 2>conftest.er1
7628  ac_status=$?
7629  grep -v '^ *+' conftest.er1 >conftest.err
7630  rm -f conftest.er1
7631  cat conftest.err >&5
7632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633  (exit $ac_status); } && {
7634	 test -z "$ac_c_werror_flag" ||
7635	 test ! -s conftest.err
7636       } && test -s conftest$ac_exeext &&
7637       $as_test_x conftest$ac_exeext; then
7638  supported=yes
7639else
7640  echo "$as_me: failed program was:" >&5
7641sed 's/^/| /' conftest.$ac_ext >&5
7642
7643	supported=no
7644fi
7645
7646rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7647      conftest$ac_exeext conftest.$ac_ext
7648		{ echo "$as_me:$LINENO: result: $supported" >&5
7649echo "${ECHO_T}$supported" >&6; }
7650		CFLAGS="$xorg_testset_save_CFLAGS"
7651
7652		if test "$supported" = "yes" ; then
7653			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7654			found="yes"
7655		fi
7656	fi
7657
7658
7659
7660# These are currently disabled because they are noisy.  They will be enabled
7661# in the future once the codebase is sufficiently modernized to silence
7662# them.  For now, I don't want them to drown out the other warnings.
7663# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wlogical-op])
7664# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wparentheses])
7665# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wcast-align])
7666
7667# Turn some warnings into errors, so we don't accidently get successful builds
7668# when there are problems that should be fixed.
7669
7670if test "x$SELECTIVE_WERROR" = "xyes" ; then
7671
7672
7673
7674
7675
7676xorg_testset_save_CFLAGS="$CFLAGS"
7677
7678if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7679	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7680	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
7681echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
7682	cat >conftest.$ac_ext <<_ACEOF
7683/* confdefs.h.  */
7684_ACEOF
7685cat confdefs.h >>conftest.$ac_ext
7686cat >>conftest.$ac_ext <<_ACEOF
7687/* end confdefs.h.  */
7688int i;
7689_ACEOF
7690rm -f conftest.$ac_objext
7691if { (ac_try="$ac_compile"
7692case "(($ac_try" in
7693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7694  *) ac_try_echo=$ac_try;;
7695esac
7696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7697  (eval "$ac_compile") 2>conftest.er1
7698  ac_status=$?
7699  grep -v '^ *+' conftest.er1 >conftest.err
7700  rm -f conftest.er1
7701  cat conftest.err >&5
7702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703  (exit $ac_status); } && {
7704	 test -z "$ac_c_werror_flag" ||
7705	 test ! -s conftest.err
7706       } && test -s conftest.$ac_objext; then
7707  xorg_testset_unknown_warning_option=yes
7708else
7709  echo "$as_me: failed program was:" >&5
7710sed 's/^/| /' conftest.$ac_ext >&5
7711
7712	xorg_testset_unknown_warning_option=no
7713fi
7714
7715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7716	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
7717echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
7718	CFLAGS="$xorg_testset_save_CFLAGS"
7719fi
7720
7721if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7722	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7723		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7724	fi
7725	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7726	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
7727echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
7728	cat >conftest.$ac_ext <<_ACEOF
7729/* confdefs.h.  */
7730_ACEOF
7731cat confdefs.h >>conftest.$ac_ext
7732cat >>conftest.$ac_ext <<_ACEOF
7733/* end confdefs.h.  */
7734int i;
7735_ACEOF
7736rm -f conftest.$ac_objext
7737if { (ac_try="$ac_compile"
7738case "(($ac_try" in
7739  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7740  *) ac_try_echo=$ac_try;;
7741esac
7742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7743  (eval "$ac_compile") 2>conftest.er1
7744  ac_status=$?
7745  grep -v '^ *+' conftest.er1 >conftest.err
7746  rm -f conftest.er1
7747  cat conftest.err >&5
7748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749  (exit $ac_status); } && {
7750	 test -z "$ac_c_werror_flag" ||
7751	 test ! -s conftest.err
7752       } && test -s conftest.$ac_objext; then
7753  xorg_testset_unused_command_line_argument=yes
7754else
7755  echo "$as_me: failed program was:" >&5
7756sed 's/^/| /' conftest.$ac_ext >&5
7757
7758	xorg_testset_unused_command_line_argument=no
7759fi
7760
7761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7762	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
7763echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
7764	CFLAGS="$xorg_testset_save_CFLAGS"
7765fi
7766
7767found="no"
7768
7769	if test $found = "no" ; then
7770		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7771			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7772		fi
7773
7774		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7775			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7776		fi
7777
7778		CFLAGS="$CFLAGS -Werror=implicit"
7779
7780		{ echo "$as_me:$LINENO: checking if $CC supports -Werror=implicit" >&5
7781echo $ECHO_N "checking if $CC supports -Werror=implicit... $ECHO_C" >&6; }
7782		cat >conftest.$ac_ext <<_ACEOF
7783/* confdefs.h.  */
7784_ACEOF
7785cat confdefs.h >>conftest.$ac_ext
7786cat >>conftest.$ac_ext <<_ACEOF
7787/* end confdefs.h.  */
7788int i;
7789int
7790main ()
7791{
7792
7793  ;
7794  return 0;
7795}
7796_ACEOF
7797rm -f conftest.$ac_objext conftest$ac_exeext
7798if { (ac_try="$ac_link"
7799case "(($ac_try" in
7800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7801  *) ac_try_echo=$ac_try;;
7802esac
7803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7804  (eval "$ac_link") 2>conftest.er1
7805  ac_status=$?
7806  grep -v '^ *+' conftest.er1 >conftest.err
7807  rm -f conftest.er1
7808  cat conftest.err >&5
7809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810  (exit $ac_status); } && {
7811	 test -z "$ac_c_werror_flag" ||
7812	 test ! -s conftest.err
7813       } && test -s conftest$ac_exeext &&
7814       $as_test_x conftest$ac_exeext; then
7815  supported=yes
7816else
7817  echo "$as_me: failed program was:" >&5
7818sed 's/^/| /' conftest.$ac_ext >&5
7819
7820	supported=no
7821fi
7822
7823rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7824      conftest$ac_exeext conftest.$ac_ext
7825		{ echo "$as_me:$LINENO: result: $supported" >&5
7826echo "${ECHO_T}$supported" >&6; }
7827		CFLAGS="$xorg_testset_save_CFLAGS"
7828
7829		if test "$supported" = "yes" ; then
7830			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7831			found="yes"
7832		fi
7833	fi
7834
7835	if test $found = "no" ; then
7836		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7837			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7838		fi
7839
7840		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7841			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7842		fi
7843
7844		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7845
7846		{ echo "$as_me:$LINENO: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7847echo $ECHO_N "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... $ECHO_C" >&6; }
7848		cat >conftest.$ac_ext <<_ACEOF
7849/* confdefs.h.  */
7850_ACEOF
7851cat confdefs.h >>conftest.$ac_ext
7852cat >>conftest.$ac_ext <<_ACEOF
7853/* end confdefs.h.  */
7854int i;
7855int
7856main ()
7857{
7858
7859  ;
7860  return 0;
7861}
7862_ACEOF
7863rm -f conftest.$ac_objext conftest$ac_exeext
7864if { (ac_try="$ac_link"
7865case "(($ac_try" in
7866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7867  *) ac_try_echo=$ac_try;;
7868esac
7869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7870  (eval "$ac_link") 2>conftest.er1
7871  ac_status=$?
7872  grep -v '^ *+' conftest.er1 >conftest.err
7873  rm -f conftest.er1
7874  cat conftest.err >&5
7875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876  (exit $ac_status); } && {
7877	 test -z "$ac_c_werror_flag" ||
7878	 test ! -s conftest.err
7879       } && test -s conftest$ac_exeext &&
7880       $as_test_x conftest$ac_exeext; then
7881  supported=yes
7882else
7883  echo "$as_me: failed program was:" >&5
7884sed 's/^/| /' conftest.$ac_ext >&5
7885
7886	supported=no
7887fi
7888
7889rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7890      conftest$ac_exeext conftest.$ac_ext
7891		{ echo "$as_me:$LINENO: result: $supported" >&5
7892echo "${ECHO_T}$supported" >&6; }
7893		CFLAGS="$xorg_testset_save_CFLAGS"
7894
7895		if test "$supported" = "yes" ; then
7896			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7897			found="yes"
7898		fi
7899	fi
7900
7901
7902
7903
7904
7905
7906
7907xorg_testset_save_CFLAGS="$CFLAGS"
7908
7909if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7910	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7911	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
7912echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
7913	cat >conftest.$ac_ext <<_ACEOF
7914/* confdefs.h.  */
7915_ACEOF
7916cat confdefs.h >>conftest.$ac_ext
7917cat >>conftest.$ac_ext <<_ACEOF
7918/* end confdefs.h.  */
7919int i;
7920_ACEOF
7921rm -f conftest.$ac_objext
7922if { (ac_try="$ac_compile"
7923case "(($ac_try" in
7924  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7925  *) ac_try_echo=$ac_try;;
7926esac
7927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7928  (eval "$ac_compile") 2>conftest.er1
7929  ac_status=$?
7930  grep -v '^ *+' conftest.er1 >conftest.err
7931  rm -f conftest.er1
7932  cat conftest.err >&5
7933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934  (exit $ac_status); } && {
7935	 test -z "$ac_c_werror_flag" ||
7936	 test ! -s conftest.err
7937       } && test -s conftest.$ac_objext; then
7938  xorg_testset_unknown_warning_option=yes
7939else
7940  echo "$as_me: failed program was:" >&5
7941sed 's/^/| /' conftest.$ac_ext >&5
7942
7943	xorg_testset_unknown_warning_option=no
7944fi
7945
7946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7947	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
7948echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
7949	CFLAGS="$xorg_testset_save_CFLAGS"
7950fi
7951
7952if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7953	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7954		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7955	fi
7956	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7957	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
7958echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
7959	cat >conftest.$ac_ext <<_ACEOF
7960/* confdefs.h.  */
7961_ACEOF
7962cat confdefs.h >>conftest.$ac_ext
7963cat >>conftest.$ac_ext <<_ACEOF
7964/* end confdefs.h.  */
7965int i;
7966_ACEOF
7967rm -f conftest.$ac_objext
7968if { (ac_try="$ac_compile"
7969case "(($ac_try" in
7970  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7971  *) ac_try_echo=$ac_try;;
7972esac
7973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7974  (eval "$ac_compile") 2>conftest.er1
7975  ac_status=$?
7976  grep -v '^ *+' conftest.er1 >conftest.err
7977  rm -f conftest.er1
7978  cat conftest.err >&5
7979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980  (exit $ac_status); } && {
7981	 test -z "$ac_c_werror_flag" ||
7982	 test ! -s conftest.err
7983       } && test -s conftest.$ac_objext; then
7984  xorg_testset_unused_command_line_argument=yes
7985else
7986  echo "$as_me: failed program was:" >&5
7987sed 's/^/| /' conftest.$ac_ext >&5
7988
7989	xorg_testset_unused_command_line_argument=no
7990fi
7991
7992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7993	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
7994echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
7995	CFLAGS="$xorg_testset_save_CFLAGS"
7996fi
7997
7998found="no"
7999
8000	if test $found = "no" ; then
8001		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8002			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8003		fi
8004
8005		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8006			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8007		fi
8008
8009		CFLAGS="$CFLAGS -Werror=nonnull"
8010
8011		{ echo "$as_me:$LINENO: checking if $CC supports -Werror=nonnull" >&5
8012echo $ECHO_N "checking if $CC supports -Werror=nonnull... $ECHO_C" >&6; }
8013		cat >conftest.$ac_ext <<_ACEOF
8014/* confdefs.h.  */
8015_ACEOF
8016cat confdefs.h >>conftest.$ac_ext
8017cat >>conftest.$ac_ext <<_ACEOF
8018/* end confdefs.h.  */
8019int i;
8020int
8021main ()
8022{
8023
8024  ;
8025  return 0;
8026}
8027_ACEOF
8028rm -f conftest.$ac_objext conftest$ac_exeext
8029if { (ac_try="$ac_link"
8030case "(($ac_try" in
8031  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8032  *) ac_try_echo=$ac_try;;
8033esac
8034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8035  (eval "$ac_link") 2>conftest.er1
8036  ac_status=$?
8037  grep -v '^ *+' conftest.er1 >conftest.err
8038  rm -f conftest.er1
8039  cat conftest.err >&5
8040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041  (exit $ac_status); } && {
8042	 test -z "$ac_c_werror_flag" ||
8043	 test ! -s conftest.err
8044       } && test -s conftest$ac_exeext &&
8045       $as_test_x conftest$ac_exeext; then
8046  supported=yes
8047else
8048  echo "$as_me: failed program was:" >&5
8049sed 's/^/| /' conftest.$ac_ext >&5
8050
8051	supported=no
8052fi
8053
8054rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8055      conftest$ac_exeext conftest.$ac_ext
8056		{ echo "$as_me:$LINENO: result: $supported" >&5
8057echo "${ECHO_T}$supported" >&6; }
8058		CFLAGS="$xorg_testset_save_CFLAGS"
8059
8060		if test "$supported" = "yes" ; then
8061			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
8062			found="yes"
8063		fi
8064	fi
8065
8066
8067
8068
8069
8070
8071
8072xorg_testset_save_CFLAGS="$CFLAGS"
8073
8074if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8075	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8076	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
8077echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
8078	cat >conftest.$ac_ext <<_ACEOF
8079/* confdefs.h.  */
8080_ACEOF
8081cat confdefs.h >>conftest.$ac_ext
8082cat >>conftest.$ac_ext <<_ACEOF
8083/* end confdefs.h.  */
8084int i;
8085_ACEOF
8086rm -f conftest.$ac_objext
8087if { (ac_try="$ac_compile"
8088case "(($ac_try" in
8089  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8090  *) ac_try_echo=$ac_try;;
8091esac
8092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8093  (eval "$ac_compile") 2>conftest.er1
8094  ac_status=$?
8095  grep -v '^ *+' conftest.er1 >conftest.err
8096  rm -f conftest.er1
8097  cat conftest.err >&5
8098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099  (exit $ac_status); } && {
8100	 test -z "$ac_c_werror_flag" ||
8101	 test ! -s conftest.err
8102       } && test -s conftest.$ac_objext; then
8103  xorg_testset_unknown_warning_option=yes
8104else
8105  echo "$as_me: failed program was:" >&5
8106sed 's/^/| /' conftest.$ac_ext >&5
8107
8108	xorg_testset_unknown_warning_option=no
8109fi
8110
8111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8112	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
8113echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
8114	CFLAGS="$xorg_testset_save_CFLAGS"
8115fi
8116
8117if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8118	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8119		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8120	fi
8121	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8122	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
8123echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
8124	cat >conftest.$ac_ext <<_ACEOF
8125/* confdefs.h.  */
8126_ACEOF
8127cat confdefs.h >>conftest.$ac_ext
8128cat >>conftest.$ac_ext <<_ACEOF
8129/* end confdefs.h.  */
8130int i;
8131_ACEOF
8132rm -f conftest.$ac_objext
8133if { (ac_try="$ac_compile"
8134case "(($ac_try" in
8135  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8136  *) ac_try_echo=$ac_try;;
8137esac
8138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8139  (eval "$ac_compile") 2>conftest.er1
8140  ac_status=$?
8141  grep -v '^ *+' conftest.er1 >conftest.err
8142  rm -f conftest.er1
8143  cat conftest.err >&5
8144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145  (exit $ac_status); } && {
8146	 test -z "$ac_c_werror_flag" ||
8147	 test ! -s conftest.err
8148       } && test -s conftest.$ac_objext; then
8149  xorg_testset_unused_command_line_argument=yes
8150else
8151  echo "$as_me: failed program was:" >&5
8152sed 's/^/| /' conftest.$ac_ext >&5
8153
8154	xorg_testset_unused_command_line_argument=no
8155fi
8156
8157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8158	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
8159echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
8160	CFLAGS="$xorg_testset_save_CFLAGS"
8161fi
8162
8163found="no"
8164
8165	if test $found = "no" ; then
8166		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8167			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8168		fi
8169
8170		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8171			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8172		fi
8173
8174		CFLAGS="$CFLAGS -Werror=init-self"
8175
8176		{ echo "$as_me:$LINENO: checking if $CC supports -Werror=init-self" >&5
8177echo $ECHO_N "checking if $CC supports -Werror=init-self... $ECHO_C" >&6; }
8178		cat >conftest.$ac_ext <<_ACEOF
8179/* confdefs.h.  */
8180_ACEOF
8181cat confdefs.h >>conftest.$ac_ext
8182cat >>conftest.$ac_ext <<_ACEOF
8183/* end confdefs.h.  */
8184int i;
8185int
8186main ()
8187{
8188
8189  ;
8190  return 0;
8191}
8192_ACEOF
8193rm -f conftest.$ac_objext conftest$ac_exeext
8194if { (ac_try="$ac_link"
8195case "(($ac_try" in
8196  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8197  *) ac_try_echo=$ac_try;;
8198esac
8199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8200  (eval "$ac_link") 2>conftest.er1
8201  ac_status=$?
8202  grep -v '^ *+' conftest.er1 >conftest.err
8203  rm -f conftest.er1
8204  cat conftest.err >&5
8205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206  (exit $ac_status); } && {
8207	 test -z "$ac_c_werror_flag" ||
8208	 test ! -s conftest.err
8209       } && test -s conftest$ac_exeext &&
8210       $as_test_x conftest$ac_exeext; then
8211  supported=yes
8212else
8213  echo "$as_me: failed program was:" >&5
8214sed 's/^/| /' conftest.$ac_ext >&5
8215
8216	supported=no
8217fi
8218
8219rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8220      conftest$ac_exeext conftest.$ac_ext
8221		{ echo "$as_me:$LINENO: result: $supported" >&5
8222echo "${ECHO_T}$supported" >&6; }
8223		CFLAGS="$xorg_testset_save_CFLAGS"
8224
8225		if test "$supported" = "yes" ; then
8226			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
8227			found="yes"
8228		fi
8229	fi
8230
8231
8232
8233
8234
8235
8236
8237xorg_testset_save_CFLAGS="$CFLAGS"
8238
8239if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8240	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8241	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
8242echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
8243	cat >conftest.$ac_ext <<_ACEOF
8244/* confdefs.h.  */
8245_ACEOF
8246cat confdefs.h >>conftest.$ac_ext
8247cat >>conftest.$ac_ext <<_ACEOF
8248/* end confdefs.h.  */
8249int i;
8250_ACEOF
8251rm -f conftest.$ac_objext
8252if { (ac_try="$ac_compile"
8253case "(($ac_try" in
8254  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8255  *) ac_try_echo=$ac_try;;
8256esac
8257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8258  (eval "$ac_compile") 2>conftest.er1
8259  ac_status=$?
8260  grep -v '^ *+' conftest.er1 >conftest.err
8261  rm -f conftest.er1
8262  cat conftest.err >&5
8263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264  (exit $ac_status); } && {
8265	 test -z "$ac_c_werror_flag" ||
8266	 test ! -s conftest.err
8267       } && test -s conftest.$ac_objext; then
8268  xorg_testset_unknown_warning_option=yes
8269else
8270  echo "$as_me: failed program was:" >&5
8271sed 's/^/| /' conftest.$ac_ext >&5
8272
8273	xorg_testset_unknown_warning_option=no
8274fi
8275
8276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8277	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
8278echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
8279	CFLAGS="$xorg_testset_save_CFLAGS"
8280fi
8281
8282if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8283	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8284		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8285	fi
8286	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8287	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
8288echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
8289	cat >conftest.$ac_ext <<_ACEOF
8290/* confdefs.h.  */
8291_ACEOF
8292cat confdefs.h >>conftest.$ac_ext
8293cat >>conftest.$ac_ext <<_ACEOF
8294/* end confdefs.h.  */
8295int i;
8296_ACEOF
8297rm -f conftest.$ac_objext
8298if { (ac_try="$ac_compile"
8299case "(($ac_try" in
8300  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8301  *) ac_try_echo=$ac_try;;
8302esac
8303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8304  (eval "$ac_compile") 2>conftest.er1
8305  ac_status=$?
8306  grep -v '^ *+' conftest.er1 >conftest.err
8307  rm -f conftest.er1
8308  cat conftest.err >&5
8309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310  (exit $ac_status); } && {
8311	 test -z "$ac_c_werror_flag" ||
8312	 test ! -s conftest.err
8313       } && test -s conftest.$ac_objext; then
8314  xorg_testset_unused_command_line_argument=yes
8315else
8316  echo "$as_me: failed program was:" >&5
8317sed 's/^/| /' conftest.$ac_ext >&5
8318
8319	xorg_testset_unused_command_line_argument=no
8320fi
8321
8322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8323	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
8324echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
8325	CFLAGS="$xorg_testset_save_CFLAGS"
8326fi
8327
8328found="no"
8329
8330	if test $found = "no" ; then
8331		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8332			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8333		fi
8334
8335		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8336			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8337		fi
8338
8339		CFLAGS="$CFLAGS -Werror=main"
8340
8341		{ echo "$as_me:$LINENO: checking if $CC supports -Werror=main" >&5
8342echo $ECHO_N "checking if $CC supports -Werror=main... $ECHO_C" >&6; }
8343		cat >conftest.$ac_ext <<_ACEOF
8344/* confdefs.h.  */
8345_ACEOF
8346cat confdefs.h >>conftest.$ac_ext
8347cat >>conftest.$ac_ext <<_ACEOF
8348/* end confdefs.h.  */
8349int i;
8350int
8351main ()
8352{
8353
8354  ;
8355  return 0;
8356}
8357_ACEOF
8358rm -f conftest.$ac_objext conftest$ac_exeext
8359if { (ac_try="$ac_link"
8360case "(($ac_try" in
8361  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8362  *) ac_try_echo=$ac_try;;
8363esac
8364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8365  (eval "$ac_link") 2>conftest.er1
8366  ac_status=$?
8367  grep -v '^ *+' conftest.er1 >conftest.err
8368  rm -f conftest.er1
8369  cat conftest.err >&5
8370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371  (exit $ac_status); } && {
8372	 test -z "$ac_c_werror_flag" ||
8373	 test ! -s conftest.err
8374       } && test -s conftest$ac_exeext &&
8375       $as_test_x conftest$ac_exeext; then
8376  supported=yes
8377else
8378  echo "$as_me: failed program was:" >&5
8379sed 's/^/| /' conftest.$ac_ext >&5
8380
8381	supported=no
8382fi
8383
8384rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8385      conftest$ac_exeext conftest.$ac_ext
8386		{ echo "$as_me:$LINENO: result: $supported" >&5
8387echo "${ECHO_T}$supported" >&6; }
8388		CFLAGS="$xorg_testset_save_CFLAGS"
8389
8390		if test "$supported" = "yes" ; then
8391			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
8392			found="yes"
8393		fi
8394	fi
8395
8396
8397
8398
8399
8400
8401
8402xorg_testset_save_CFLAGS="$CFLAGS"
8403
8404if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8405	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8406	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
8407echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
8408	cat >conftest.$ac_ext <<_ACEOF
8409/* confdefs.h.  */
8410_ACEOF
8411cat confdefs.h >>conftest.$ac_ext
8412cat >>conftest.$ac_ext <<_ACEOF
8413/* end confdefs.h.  */
8414int i;
8415_ACEOF
8416rm -f conftest.$ac_objext
8417if { (ac_try="$ac_compile"
8418case "(($ac_try" in
8419  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8420  *) ac_try_echo=$ac_try;;
8421esac
8422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8423  (eval "$ac_compile") 2>conftest.er1
8424  ac_status=$?
8425  grep -v '^ *+' conftest.er1 >conftest.err
8426  rm -f conftest.er1
8427  cat conftest.err >&5
8428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429  (exit $ac_status); } && {
8430	 test -z "$ac_c_werror_flag" ||
8431	 test ! -s conftest.err
8432       } && test -s conftest.$ac_objext; then
8433  xorg_testset_unknown_warning_option=yes
8434else
8435  echo "$as_me: failed program was:" >&5
8436sed 's/^/| /' conftest.$ac_ext >&5
8437
8438	xorg_testset_unknown_warning_option=no
8439fi
8440
8441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8442	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
8443echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
8444	CFLAGS="$xorg_testset_save_CFLAGS"
8445fi
8446
8447if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8448	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8449		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8450	fi
8451	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8452	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
8453echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
8454	cat >conftest.$ac_ext <<_ACEOF
8455/* confdefs.h.  */
8456_ACEOF
8457cat confdefs.h >>conftest.$ac_ext
8458cat >>conftest.$ac_ext <<_ACEOF
8459/* end confdefs.h.  */
8460int i;
8461_ACEOF
8462rm -f conftest.$ac_objext
8463if { (ac_try="$ac_compile"
8464case "(($ac_try" in
8465  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8466  *) ac_try_echo=$ac_try;;
8467esac
8468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8469  (eval "$ac_compile") 2>conftest.er1
8470  ac_status=$?
8471  grep -v '^ *+' conftest.er1 >conftest.err
8472  rm -f conftest.er1
8473  cat conftest.err >&5
8474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475  (exit $ac_status); } && {
8476	 test -z "$ac_c_werror_flag" ||
8477	 test ! -s conftest.err
8478       } && test -s conftest.$ac_objext; then
8479  xorg_testset_unused_command_line_argument=yes
8480else
8481  echo "$as_me: failed program was:" >&5
8482sed 's/^/| /' conftest.$ac_ext >&5
8483
8484	xorg_testset_unused_command_line_argument=no
8485fi
8486
8487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8488	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
8489echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
8490	CFLAGS="$xorg_testset_save_CFLAGS"
8491fi
8492
8493found="no"
8494
8495	if test $found = "no" ; then
8496		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8497			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8498		fi
8499
8500		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8501			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8502		fi
8503
8504		CFLAGS="$CFLAGS -Werror=missing-braces"
8505
8506		{ echo "$as_me:$LINENO: checking if $CC supports -Werror=missing-braces" >&5
8507echo $ECHO_N "checking if $CC supports -Werror=missing-braces... $ECHO_C" >&6; }
8508		cat >conftest.$ac_ext <<_ACEOF
8509/* confdefs.h.  */
8510_ACEOF
8511cat confdefs.h >>conftest.$ac_ext
8512cat >>conftest.$ac_ext <<_ACEOF
8513/* end confdefs.h.  */
8514int i;
8515int
8516main ()
8517{
8518
8519  ;
8520  return 0;
8521}
8522_ACEOF
8523rm -f conftest.$ac_objext conftest$ac_exeext
8524if { (ac_try="$ac_link"
8525case "(($ac_try" in
8526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8527  *) ac_try_echo=$ac_try;;
8528esac
8529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8530  (eval "$ac_link") 2>conftest.er1
8531  ac_status=$?
8532  grep -v '^ *+' conftest.er1 >conftest.err
8533  rm -f conftest.er1
8534  cat conftest.err >&5
8535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536  (exit $ac_status); } && {
8537	 test -z "$ac_c_werror_flag" ||
8538	 test ! -s conftest.err
8539       } && test -s conftest$ac_exeext &&
8540       $as_test_x conftest$ac_exeext; then
8541  supported=yes
8542else
8543  echo "$as_me: failed program was:" >&5
8544sed 's/^/| /' conftest.$ac_ext >&5
8545
8546	supported=no
8547fi
8548
8549rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8550      conftest$ac_exeext conftest.$ac_ext
8551		{ echo "$as_me:$LINENO: result: $supported" >&5
8552echo "${ECHO_T}$supported" >&6; }
8553		CFLAGS="$xorg_testset_save_CFLAGS"
8554
8555		if test "$supported" = "yes" ; then
8556			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
8557			found="yes"
8558		fi
8559	fi
8560
8561
8562
8563
8564
8565
8566
8567xorg_testset_save_CFLAGS="$CFLAGS"
8568
8569if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8570	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8571	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
8572echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
8573	cat >conftest.$ac_ext <<_ACEOF
8574/* confdefs.h.  */
8575_ACEOF
8576cat confdefs.h >>conftest.$ac_ext
8577cat >>conftest.$ac_ext <<_ACEOF
8578/* end confdefs.h.  */
8579int i;
8580_ACEOF
8581rm -f conftest.$ac_objext
8582if { (ac_try="$ac_compile"
8583case "(($ac_try" in
8584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8585  *) ac_try_echo=$ac_try;;
8586esac
8587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8588  (eval "$ac_compile") 2>conftest.er1
8589  ac_status=$?
8590  grep -v '^ *+' conftest.er1 >conftest.err
8591  rm -f conftest.er1
8592  cat conftest.err >&5
8593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594  (exit $ac_status); } && {
8595	 test -z "$ac_c_werror_flag" ||
8596	 test ! -s conftest.err
8597       } && test -s conftest.$ac_objext; then
8598  xorg_testset_unknown_warning_option=yes
8599else
8600  echo "$as_me: failed program was:" >&5
8601sed 's/^/| /' conftest.$ac_ext >&5
8602
8603	xorg_testset_unknown_warning_option=no
8604fi
8605
8606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8607	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
8608echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
8609	CFLAGS="$xorg_testset_save_CFLAGS"
8610fi
8611
8612if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8613	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8614		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8615	fi
8616	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8617	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
8618echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
8619	cat >conftest.$ac_ext <<_ACEOF
8620/* confdefs.h.  */
8621_ACEOF
8622cat confdefs.h >>conftest.$ac_ext
8623cat >>conftest.$ac_ext <<_ACEOF
8624/* end confdefs.h.  */
8625int i;
8626_ACEOF
8627rm -f conftest.$ac_objext
8628if { (ac_try="$ac_compile"
8629case "(($ac_try" in
8630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8631  *) ac_try_echo=$ac_try;;
8632esac
8633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8634  (eval "$ac_compile") 2>conftest.er1
8635  ac_status=$?
8636  grep -v '^ *+' conftest.er1 >conftest.err
8637  rm -f conftest.er1
8638  cat conftest.err >&5
8639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640  (exit $ac_status); } && {
8641	 test -z "$ac_c_werror_flag" ||
8642	 test ! -s conftest.err
8643       } && test -s conftest.$ac_objext; then
8644  xorg_testset_unused_command_line_argument=yes
8645else
8646  echo "$as_me: failed program was:" >&5
8647sed 's/^/| /' conftest.$ac_ext >&5
8648
8649	xorg_testset_unused_command_line_argument=no
8650fi
8651
8652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8653	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
8654echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
8655	CFLAGS="$xorg_testset_save_CFLAGS"
8656fi
8657
8658found="no"
8659
8660	if test $found = "no" ; then
8661		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8662			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8663		fi
8664
8665		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8666			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8667		fi
8668
8669		CFLAGS="$CFLAGS -Werror=sequence-point"
8670
8671		{ echo "$as_me:$LINENO: checking if $CC supports -Werror=sequence-point" >&5
8672echo $ECHO_N "checking if $CC supports -Werror=sequence-point... $ECHO_C" >&6; }
8673		cat >conftest.$ac_ext <<_ACEOF
8674/* confdefs.h.  */
8675_ACEOF
8676cat confdefs.h >>conftest.$ac_ext
8677cat >>conftest.$ac_ext <<_ACEOF
8678/* end confdefs.h.  */
8679int i;
8680int
8681main ()
8682{
8683
8684  ;
8685  return 0;
8686}
8687_ACEOF
8688rm -f conftest.$ac_objext conftest$ac_exeext
8689if { (ac_try="$ac_link"
8690case "(($ac_try" in
8691  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8692  *) ac_try_echo=$ac_try;;
8693esac
8694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8695  (eval "$ac_link") 2>conftest.er1
8696  ac_status=$?
8697  grep -v '^ *+' conftest.er1 >conftest.err
8698  rm -f conftest.er1
8699  cat conftest.err >&5
8700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701  (exit $ac_status); } && {
8702	 test -z "$ac_c_werror_flag" ||
8703	 test ! -s conftest.err
8704       } && test -s conftest$ac_exeext &&
8705       $as_test_x conftest$ac_exeext; then
8706  supported=yes
8707else
8708  echo "$as_me: failed program was:" >&5
8709sed 's/^/| /' conftest.$ac_ext >&5
8710
8711	supported=no
8712fi
8713
8714rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8715      conftest$ac_exeext conftest.$ac_ext
8716		{ echo "$as_me:$LINENO: result: $supported" >&5
8717echo "${ECHO_T}$supported" >&6; }
8718		CFLAGS="$xorg_testset_save_CFLAGS"
8719
8720		if test "$supported" = "yes" ; then
8721			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8722			found="yes"
8723		fi
8724	fi
8725
8726
8727
8728
8729
8730
8731
8732xorg_testset_save_CFLAGS="$CFLAGS"
8733
8734if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8735	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8736	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
8737echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
8738	cat >conftest.$ac_ext <<_ACEOF
8739/* confdefs.h.  */
8740_ACEOF
8741cat confdefs.h >>conftest.$ac_ext
8742cat >>conftest.$ac_ext <<_ACEOF
8743/* end confdefs.h.  */
8744int i;
8745_ACEOF
8746rm -f conftest.$ac_objext
8747if { (ac_try="$ac_compile"
8748case "(($ac_try" in
8749  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8750  *) ac_try_echo=$ac_try;;
8751esac
8752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8753  (eval "$ac_compile") 2>conftest.er1
8754  ac_status=$?
8755  grep -v '^ *+' conftest.er1 >conftest.err
8756  rm -f conftest.er1
8757  cat conftest.err >&5
8758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759  (exit $ac_status); } && {
8760	 test -z "$ac_c_werror_flag" ||
8761	 test ! -s conftest.err
8762       } && test -s conftest.$ac_objext; then
8763  xorg_testset_unknown_warning_option=yes
8764else
8765  echo "$as_me: failed program was:" >&5
8766sed 's/^/| /' conftest.$ac_ext >&5
8767
8768	xorg_testset_unknown_warning_option=no
8769fi
8770
8771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8772	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
8773echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
8774	CFLAGS="$xorg_testset_save_CFLAGS"
8775fi
8776
8777if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8778	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8779		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8780	fi
8781	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8782	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
8783echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
8784	cat >conftest.$ac_ext <<_ACEOF
8785/* confdefs.h.  */
8786_ACEOF
8787cat confdefs.h >>conftest.$ac_ext
8788cat >>conftest.$ac_ext <<_ACEOF
8789/* end confdefs.h.  */
8790int i;
8791_ACEOF
8792rm -f conftest.$ac_objext
8793if { (ac_try="$ac_compile"
8794case "(($ac_try" in
8795  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8796  *) ac_try_echo=$ac_try;;
8797esac
8798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8799  (eval "$ac_compile") 2>conftest.er1
8800  ac_status=$?
8801  grep -v '^ *+' conftest.er1 >conftest.err
8802  rm -f conftest.er1
8803  cat conftest.err >&5
8804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805  (exit $ac_status); } && {
8806	 test -z "$ac_c_werror_flag" ||
8807	 test ! -s conftest.err
8808       } && test -s conftest.$ac_objext; then
8809  xorg_testset_unused_command_line_argument=yes
8810else
8811  echo "$as_me: failed program was:" >&5
8812sed 's/^/| /' conftest.$ac_ext >&5
8813
8814	xorg_testset_unused_command_line_argument=no
8815fi
8816
8817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8818	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
8819echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
8820	CFLAGS="$xorg_testset_save_CFLAGS"
8821fi
8822
8823found="no"
8824
8825	if test $found = "no" ; then
8826		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8827			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8828		fi
8829
8830		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8831			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8832		fi
8833
8834		CFLAGS="$CFLAGS -Werror=return-type"
8835
8836		{ echo "$as_me:$LINENO: checking if $CC supports -Werror=return-type" >&5
8837echo $ECHO_N "checking if $CC supports -Werror=return-type... $ECHO_C" >&6; }
8838		cat >conftest.$ac_ext <<_ACEOF
8839/* confdefs.h.  */
8840_ACEOF
8841cat confdefs.h >>conftest.$ac_ext
8842cat >>conftest.$ac_ext <<_ACEOF
8843/* end confdefs.h.  */
8844int i;
8845int
8846main ()
8847{
8848
8849  ;
8850  return 0;
8851}
8852_ACEOF
8853rm -f conftest.$ac_objext conftest$ac_exeext
8854if { (ac_try="$ac_link"
8855case "(($ac_try" in
8856  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8857  *) ac_try_echo=$ac_try;;
8858esac
8859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8860  (eval "$ac_link") 2>conftest.er1
8861  ac_status=$?
8862  grep -v '^ *+' conftest.er1 >conftest.err
8863  rm -f conftest.er1
8864  cat conftest.err >&5
8865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866  (exit $ac_status); } && {
8867	 test -z "$ac_c_werror_flag" ||
8868	 test ! -s conftest.err
8869       } && test -s conftest$ac_exeext &&
8870       $as_test_x conftest$ac_exeext; then
8871  supported=yes
8872else
8873  echo "$as_me: failed program was:" >&5
8874sed 's/^/| /' conftest.$ac_ext >&5
8875
8876	supported=no
8877fi
8878
8879rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8880      conftest$ac_exeext conftest.$ac_ext
8881		{ echo "$as_me:$LINENO: result: $supported" >&5
8882echo "${ECHO_T}$supported" >&6; }
8883		CFLAGS="$xorg_testset_save_CFLAGS"
8884
8885		if test "$supported" = "yes" ; then
8886			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8887			found="yes"
8888		fi
8889	fi
8890
8891	if test $found = "no" ; then
8892		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8893			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8894		fi
8895
8896		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8897			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8898		fi
8899
8900		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8901
8902		{ echo "$as_me:$LINENO: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8903echo $ECHO_N "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... $ECHO_C" >&6; }
8904		cat >conftest.$ac_ext <<_ACEOF
8905/* confdefs.h.  */
8906_ACEOF
8907cat confdefs.h >>conftest.$ac_ext
8908cat >>conftest.$ac_ext <<_ACEOF
8909/* end confdefs.h.  */
8910int i;
8911int
8912main ()
8913{
8914
8915  ;
8916  return 0;
8917}
8918_ACEOF
8919rm -f conftest.$ac_objext conftest$ac_exeext
8920if { (ac_try="$ac_link"
8921case "(($ac_try" in
8922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8923  *) ac_try_echo=$ac_try;;
8924esac
8925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8926  (eval "$ac_link") 2>conftest.er1
8927  ac_status=$?
8928  grep -v '^ *+' conftest.er1 >conftest.err
8929  rm -f conftest.er1
8930  cat conftest.err >&5
8931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932  (exit $ac_status); } && {
8933	 test -z "$ac_c_werror_flag" ||
8934	 test ! -s conftest.err
8935       } && test -s conftest$ac_exeext &&
8936       $as_test_x conftest$ac_exeext; then
8937  supported=yes
8938else
8939  echo "$as_me: failed program was:" >&5
8940sed 's/^/| /' conftest.$ac_ext >&5
8941
8942	supported=no
8943fi
8944
8945rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8946      conftest$ac_exeext conftest.$ac_ext
8947		{ echo "$as_me:$LINENO: result: $supported" >&5
8948echo "${ECHO_T}$supported" >&6; }
8949		CFLAGS="$xorg_testset_save_CFLAGS"
8950
8951		if test "$supported" = "yes" ; then
8952			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8953			found="yes"
8954		fi
8955	fi
8956
8957
8958
8959
8960
8961
8962
8963xorg_testset_save_CFLAGS="$CFLAGS"
8964
8965if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8966	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8967	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
8968echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
8969	cat >conftest.$ac_ext <<_ACEOF
8970/* confdefs.h.  */
8971_ACEOF
8972cat confdefs.h >>conftest.$ac_ext
8973cat >>conftest.$ac_ext <<_ACEOF
8974/* end confdefs.h.  */
8975int i;
8976_ACEOF
8977rm -f conftest.$ac_objext
8978if { (ac_try="$ac_compile"
8979case "(($ac_try" in
8980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8981  *) ac_try_echo=$ac_try;;
8982esac
8983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8984  (eval "$ac_compile") 2>conftest.er1
8985  ac_status=$?
8986  grep -v '^ *+' conftest.er1 >conftest.err
8987  rm -f conftest.er1
8988  cat conftest.err >&5
8989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990  (exit $ac_status); } && {
8991	 test -z "$ac_c_werror_flag" ||
8992	 test ! -s conftest.err
8993       } && test -s conftest.$ac_objext; then
8994  xorg_testset_unknown_warning_option=yes
8995else
8996  echo "$as_me: failed program was:" >&5
8997sed 's/^/| /' conftest.$ac_ext >&5
8998
8999	xorg_testset_unknown_warning_option=no
9000fi
9001
9002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9003	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
9004echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
9005	CFLAGS="$xorg_testset_save_CFLAGS"
9006fi
9007
9008if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9009	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9010		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9011	fi
9012	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9013	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
9014echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
9015	cat >conftest.$ac_ext <<_ACEOF
9016/* confdefs.h.  */
9017_ACEOF
9018cat confdefs.h >>conftest.$ac_ext
9019cat >>conftest.$ac_ext <<_ACEOF
9020/* end confdefs.h.  */
9021int i;
9022_ACEOF
9023rm -f conftest.$ac_objext
9024if { (ac_try="$ac_compile"
9025case "(($ac_try" in
9026  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9027  *) ac_try_echo=$ac_try;;
9028esac
9029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9030  (eval "$ac_compile") 2>conftest.er1
9031  ac_status=$?
9032  grep -v '^ *+' conftest.er1 >conftest.err
9033  rm -f conftest.er1
9034  cat conftest.err >&5
9035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036  (exit $ac_status); } && {
9037	 test -z "$ac_c_werror_flag" ||
9038	 test ! -s conftest.err
9039       } && test -s conftest.$ac_objext; then
9040  xorg_testset_unused_command_line_argument=yes
9041else
9042  echo "$as_me: failed program was:" >&5
9043sed 's/^/| /' conftest.$ac_ext >&5
9044
9045	xorg_testset_unused_command_line_argument=no
9046fi
9047
9048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9049	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
9050echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
9051	CFLAGS="$xorg_testset_save_CFLAGS"
9052fi
9053
9054found="no"
9055
9056	if test $found = "no" ; then
9057		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9058			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9059		fi
9060
9061		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9062			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9063		fi
9064
9065		CFLAGS="$CFLAGS -Werror=trigraphs"
9066
9067		{ echo "$as_me:$LINENO: checking if $CC supports -Werror=trigraphs" >&5
9068echo $ECHO_N "checking if $CC supports -Werror=trigraphs... $ECHO_C" >&6; }
9069		cat >conftest.$ac_ext <<_ACEOF
9070/* confdefs.h.  */
9071_ACEOF
9072cat confdefs.h >>conftest.$ac_ext
9073cat >>conftest.$ac_ext <<_ACEOF
9074/* end confdefs.h.  */
9075int i;
9076int
9077main ()
9078{
9079
9080  ;
9081  return 0;
9082}
9083_ACEOF
9084rm -f conftest.$ac_objext conftest$ac_exeext
9085if { (ac_try="$ac_link"
9086case "(($ac_try" in
9087  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9088  *) ac_try_echo=$ac_try;;
9089esac
9090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9091  (eval "$ac_link") 2>conftest.er1
9092  ac_status=$?
9093  grep -v '^ *+' conftest.er1 >conftest.err
9094  rm -f conftest.er1
9095  cat conftest.err >&5
9096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097  (exit $ac_status); } && {
9098	 test -z "$ac_c_werror_flag" ||
9099	 test ! -s conftest.err
9100       } && test -s conftest$ac_exeext &&
9101       $as_test_x conftest$ac_exeext; then
9102  supported=yes
9103else
9104  echo "$as_me: failed program was:" >&5
9105sed 's/^/| /' conftest.$ac_ext >&5
9106
9107	supported=no
9108fi
9109
9110rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9111      conftest$ac_exeext conftest.$ac_ext
9112		{ echo "$as_me:$LINENO: result: $supported" >&5
9113echo "${ECHO_T}$supported" >&6; }
9114		CFLAGS="$xorg_testset_save_CFLAGS"
9115
9116		if test "$supported" = "yes" ; then
9117			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
9118			found="yes"
9119		fi
9120	fi
9121
9122
9123
9124
9125
9126
9127
9128xorg_testset_save_CFLAGS="$CFLAGS"
9129
9130if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9131	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9132	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
9133echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
9134	cat >conftest.$ac_ext <<_ACEOF
9135/* confdefs.h.  */
9136_ACEOF
9137cat confdefs.h >>conftest.$ac_ext
9138cat >>conftest.$ac_ext <<_ACEOF
9139/* end confdefs.h.  */
9140int i;
9141_ACEOF
9142rm -f conftest.$ac_objext
9143if { (ac_try="$ac_compile"
9144case "(($ac_try" in
9145  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9146  *) ac_try_echo=$ac_try;;
9147esac
9148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9149  (eval "$ac_compile") 2>conftest.er1
9150  ac_status=$?
9151  grep -v '^ *+' conftest.er1 >conftest.err
9152  rm -f conftest.er1
9153  cat conftest.err >&5
9154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155  (exit $ac_status); } && {
9156	 test -z "$ac_c_werror_flag" ||
9157	 test ! -s conftest.err
9158       } && test -s conftest.$ac_objext; then
9159  xorg_testset_unknown_warning_option=yes
9160else
9161  echo "$as_me: failed program was:" >&5
9162sed 's/^/| /' conftest.$ac_ext >&5
9163
9164	xorg_testset_unknown_warning_option=no
9165fi
9166
9167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9168	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
9169echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
9170	CFLAGS="$xorg_testset_save_CFLAGS"
9171fi
9172
9173if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9174	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9175		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9176	fi
9177	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9178	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
9179echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
9180	cat >conftest.$ac_ext <<_ACEOF
9181/* confdefs.h.  */
9182_ACEOF
9183cat confdefs.h >>conftest.$ac_ext
9184cat >>conftest.$ac_ext <<_ACEOF
9185/* end confdefs.h.  */
9186int i;
9187_ACEOF
9188rm -f conftest.$ac_objext
9189if { (ac_try="$ac_compile"
9190case "(($ac_try" in
9191  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9192  *) ac_try_echo=$ac_try;;
9193esac
9194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9195  (eval "$ac_compile") 2>conftest.er1
9196  ac_status=$?
9197  grep -v '^ *+' conftest.er1 >conftest.err
9198  rm -f conftest.er1
9199  cat conftest.err >&5
9200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201  (exit $ac_status); } && {
9202	 test -z "$ac_c_werror_flag" ||
9203	 test ! -s conftest.err
9204       } && test -s conftest.$ac_objext; then
9205  xorg_testset_unused_command_line_argument=yes
9206else
9207  echo "$as_me: failed program was:" >&5
9208sed 's/^/| /' conftest.$ac_ext >&5
9209
9210	xorg_testset_unused_command_line_argument=no
9211fi
9212
9213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9214	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
9215echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
9216	CFLAGS="$xorg_testset_save_CFLAGS"
9217fi
9218
9219found="no"
9220
9221	if test $found = "no" ; then
9222		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9223			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9224		fi
9225
9226		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9227			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9228		fi
9229
9230		CFLAGS="$CFLAGS -Werror=array-bounds"
9231
9232		{ echo "$as_me:$LINENO: checking if $CC supports -Werror=array-bounds" >&5
9233echo $ECHO_N "checking if $CC supports -Werror=array-bounds... $ECHO_C" >&6; }
9234		cat >conftest.$ac_ext <<_ACEOF
9235/* confdefs.h.  */
9236_ACEOF
9237cat confdefs.h >>conftest.$ac_ext
9238cat >>conftest.$ac_ext <<_ACEOF
9239/* end confdefs.h.  */
9240int i;
9241int
9242main ()
9243{
9244
9245  ;
9246  return 0;
9247}
9248_ACEOF
9249rm -f conftest.$ac_objext conftest$ac_exeext
9250if { (ac_try="$ac_link"
9251case "(($ac_try" in
9252  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9253  *) ac_try_echo=$ac_try;;
9254esac
9255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9256  (eval "$ac_link") 2>conftest.er1
9257  ac_status=$?
9258  grep -v '^ *+' conftest.er1 >conftest.err
9259  rm -f conftest.er1
9260  cat conftest.err >&5
9261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262  (exit $ac_status); } && {
9263	 test -z "$ac_c_werror_flag" ||
9264	 test ! -s conftest.err
9265       } && test -s conftest$ac_exeext &&
9266       $as_test_x conftest$ac_exeext; then
9267  supported=yes
9268else
9269  echo "$as_me: failed program was:" >&5
9270sed 's/^/| /' conftest.$ac_ext >&5
9271
9272	supported=no
9273fi
9274
9275rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9276      conftest$ac_exeext conftest.$ac_ext
9277		{ echo "$as_me:$LINENO: result: $supported" >&5
9278echo "${ECHO_T}$supported" >&6; }
9279		CFLAGS="$xorg_testset_save_CFLAGS"
9280
9281		if test "$supported" = "yes" ; then
9282			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
9283			found="yes"
9284		fi
9285	fi
9286
9287
9288
9289
9290
9291
9292
9293xorg_testset_save_CFLAGS="$CFLAGS"
9294
9295if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9296	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9297	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
9298echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
9299	cat >conftest.$ac_ext <<_ACEOF
9300/* confdefs.h.  */
9301_ACEOF
9302cat confdefs.h >>conftest.$ac_ext
9303cat >>conftest.$ac_ext <<_ACEOF
9304/* end confdefs.h.  */
9305int i;
9306_ACEOF
9307rm -f conftest.$ac_objext
9308if { (ac_try="$ac_compile"
9309case "(($ac_try" in
9310  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9311  *) ac_try_echo=$ac_try;;
9312esac
9313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9314  (eval "$ac_compile") 2>conftest.er1
9315  ac_status=$?
9316  grep -v '^ *+' conftest.er1 >conftest.err
9317  rm -f conftest.er1
9318  cat conftest.err >&5
9319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320  (exit $ac_status); } && {
9321	 test -z "$ac_c_werror_flag" ||
9322	 test ! -s conftest.err
9323       } && test -s conftest.$ac_objext; then
9324  xorg_testset_unknown_warning_option=yes
9325else
9326  echo "$as_me: failed program was:" >&5
9327sed 's/^/| /' conftest.$ac_ext >&5
9328
9329	xorg_testset_unknown_warning_option=no
9330fi
9331
9332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9333	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
9334echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
9335	CFLAGS="$xorg_testset_save_CFLAGS"
9336fi
9337
9338if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9339	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9340		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9341	fi
9342	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9343	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
9344echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
9345	cat >conftest.$ac_ext <<_ACEOF
9346/* confdefs.h.  */
9347_ACEOF
9348cat confdefs.h >>conftest.$ac_ext
9349cat >>conftest.$ac_ext <<_ACEOF
9350/* end confdefs.h.  */
9351int i;
9352_ACEOF
9353rm -f conftest.$ac_objext
9354if { (ac_try="$ac_compile"
9355case "(($ac_try" in
9356  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9357  *) ac_try_echo=$ac_try;;
9358esac
9359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9360  (eval "$ac_compile") 2>conftest.er1
9361  ac_status=$?
9362  grep -v '^ *+' conftest.er1 >conftest.err
9363  rm -f conftest.er1
9364  cat conftest.err >&5
9365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366  (exit $ac_status); } && {
9367	 test -z "$ac_c_werror_flag" ||
9368	 test ! -s conftest.err
9369       } && test -s conftest.$ac_objext; then
9370  xorg_testset_unused_command_line_argument=yes
9371else
9372  echo "$as_me: failed program was:" >&5
9373sed 's/^/| /' conftest.$ac_ext >&5
9374
9375	xorg_testset_unused_command_line_argument=no
9376fi
9377
9378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9379	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
9380echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
9381	CFLAGS="$xorg_testset_save_CFLAGS"
9382fi
9383
9384found="no"
9385
9386	if test $found = "no" ; then
9387		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9388			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9389		fi
9390
9391		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9392			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9393		fi
9394
9395		CFLAGS="$CFLAGS -Werror=write-strings"
9396
9397		{ echo "$as_me:$LINENO: checking if $CC supports -Werror=write-strings" >&5
9398echo $ECHO_N "checking if $CC supports -Werror=write-strings... $ECHO_C" >&6; }
9399		cat >conftest.$ac_ext <<_ACEOF
9400/* confdefs.h.  */
9401_ACEOF
9402cat confdefs.h >>conftest.$ac_ext
9403cat >>conftest.$ac_ext <<_ACEOF
9404/* end confdefs.h.  */
9405int i;
9406int
9407main ()
9408{
9409
9410  ;
9411  return 0;
9412}
9413_ACEOF
9414rm -f conftest.$ac_objext conftest$ac_exeext
9415if { (ac_try="$ac_link"
9416case "(($ac_try" in
9417  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9418  *) ac_try_echo=$ac_try;;
9419esac
9420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9421  (eval "$ac_link") 2>conftest.er1
9422  ac_status=$?
9423  grep -v '^ *+' conftest.er1 >conftest.err
9424  rm -f conftest.er1
9425  cat conftest.err >&5
9426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427  (exit $ac_status); } && {
9428	 test -z "$ac_c_werror_flag" ||
9429	 test ! -s conftest.err
9430       } && test -s conftest$ac_exeext &&
9431       $as_test_x conftest$ac_exeext; then
9432  supported=yes
9433else
9434  echo "$as_me: failed program was:" >&5
9435sed 's/^/| /' conftest.$ac_ext >&5
9436
9437	supported=no
9438fi
9439
9440rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9441      conftest$ac_exeext conftest.$ac_ext
9442		{ echo "$as_me:$LINENO: result: $supported" >&5
9443echo "${ECHO_T}$supported" >&6; }
9444		CFLAGS="$xorg_testset_save_CFLAGS"
9445
9446		if test "$supported" = "yes" ; then
9447			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
9448			found="yes"
9449		fi
9450	fi
9451
9452
9453
9454
9455
9456
9457
9458xorg_testset_save_CFLAGS="$CFLAGS"
9459
9460if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9461	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9462	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
9463echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
9464	cat >conftest.$ac_ext <<_ACEOF
9465/* confdefs.h.  */
9466_ACEOF
9467cat confdefs.h >>conftest.$ac_ext
9468cat >>conftest.$ac_ext <<_ACEOF
9469/* end confdefs.h.  */
9470int i;
9471_ACEOF
9472rm -f conftest.$ac_objext
9473if { (ac_try="$ac_compile"
9474case "(($ac_try" in
9475  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9476  *) ac_try_echo=$ac_try;;
9477esac
9478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9479  (eval "$ac_compile") 2>conftest.er1
9480  ac_status=$?
9481  grep -v '^ *+' conftest.er1 >conftest.err
9482  rm -f conftest.er1
9483  cat conftest.err >&5
9484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485  (exit $ac_status); } && {
9486	 test -z "$ac_c_werror_flag" ||
9487	 test ! -s conftest.err
9488       } && test -s conftest.$ac_objext; then
9489  xorg_testset_unknown_warning_option=yes
9490else
9491  echo "$as_me: failed program was:" >&5
9492sed 's/^/| /' conftest.$ac_ext >&5
9493
9494	xorg_testset_unknown_warning_option=no
9495fi
9496
9497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9498	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
9499echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
9500	CFLAGS="$xorg_testset_save_CFLAGS"
9501fi
9502
9503if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9504	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9505		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9506	fi
9507	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9508	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
9509echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
9510	cat >conftest.$ac_ext <<_ACEOF
9511/* confdefs.h.  */
9512_ACEOF
9513cat confdefs.h >>conftest.$ac_ext
9514cat >>conftest.$ac_ext <<_ACEOF
9515/* end confdefs.h.  */
9516int i;
9517_ACEOF
9518rm -f conftest.$ac_objext
9519if { (ac_try="$ac_compile"
9520case "(($ac_try" in
9521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9522  *) ac_try_echo=$ac_try;;
9523esac
9524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9525  (eval "$ac_compile") 2>conftest.er1
9526  ac_status=$?
9527  grep -v '^ *+' conftest.er1 >conftest.err
9528  rm -f conftest.er1
9529  cat conftest.err >&5
9530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531  (exit $ac_status); } && {
9532	 test -z "$ac_c_werror_flag" ||
9533	 test ! -s conftest.err
9534       } && test -s conftest.$ac_objext; then
9535  xorg_testset_unused_command_line_argument=yes
9536else
9537  echo "$as_me: failed program was:" >&5
9538sed 's/^/| /' conftest.$ac_ext >&5
9539
9540	xorg_testset_unused_command_line_argument=no
9541fi
9542
9543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9544	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
9545echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
9546	CFLAGS="$xorg_testset_save_CFLAGS"
9547fi
9548
9549found="no"
9550
9551	if test $found = "no" ; then
9552		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9553			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9554		fi
9555
9556		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9557			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9558		fi
9559
9560		CFLAGS="$CFLAGS -Werror=address"
9561
9562		{ echo "$as_me:$LINENO: checking if $CC supports -Werror=address" >&5
9563echo $ECHO_N "checking if $CC supports -Werror=address... $ECHO_C" >&6; }
9564		cat >conftest.$ac_ext <<_ACEOF
9565/* confdefs.h.  */
9566_ACEOF
9567cat confdefs.h >>conftest.$ac_ext
9568cat >>conftest.$ac_ext <<_ACEOF
9569/* end confdefs.h.  */
9570int i;
9571int
9572main ()
9573{
9574
9575  ;
9576  return 0;
9577}
9578_ACEOF
9579rm -f conftest.$ac_objext conftest$ac_exeext
9580if { (ac_try="$ac_link"
9581case "(($ac_try" in
9582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9583  *) ac_try_echo=$ac_try;;
9584esac
9585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9586  (eval "$ac_link") 2>conftest.er1
9587  ac_status=$?
9588  grep -v '^ *+' conftest.er1 >conftest.err
9589  rm -f conftest.er1
9590  cat conftest.err >&5
9591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592  (exit $ac_status); } && {
9593	 test -z "$ac_c_werror_flag" ||
9594	 test ! -s conftest.err
9595       } && test -s conftest$ac_exeext &&
9596       $as_test_x conftest$ac_exeext; then
9597  supported=yes
9598else
9599  echo "$as_me: failed program was:" >&5
9600sed 's/^/| /' conftest.$ac_ext >&5
9601
9602	supported=no
9603fi
9604
9605rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9606      conftest$ac_exeext conftest.$ac_ext
9607		{ echo "$as_me:$LINENO: result: $supported" >&5
9608echo "${ECHO_T}$supported" >&6; }
9609		CFLAGS="$xorg_testset_save_CFLAGS"
9610
9611		if test "$supported" = "yes" ; then
9612			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
9613			found="yes"
9614		fi
9615	fi
9616
9617
9618
9619
9620
9621
9622
9623xorg_testset_save_CFLAGS="$CFLAGS"
9624
9625if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9626	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9627	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
9628echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
9629	cat >conftest.$ac_ext <<_ACEOF
9630/* confdefs.h.  */
9631_ACEOF
9632cat confdefs.h >>conftest.$ac_ext
9633cat >>conftest.$ac_ext <<_ACEOF
9634/* end confdefs.h.  */
9635int i;
9636_ACEOF
9637rm -f conftest.$ac_objext
9638if { (ac_try="$ac_compile"
9639case "(($ac_try" in
9640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9641  *) ac_try_echo=$ac_try;;
9642esac
9643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9644  (eval "$ac_compile") 2>conftest.er1
9645  ac_status=$?
9646  grep -v '^ *+' conftest.er1 >conftest.err
9647  rm -f conftest.er1
9648  cat conftest.err >&5
9649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650  (exit $ac_status); } && {
9651	 test -z "$ac_c_werror_flag" ||
9652	 test ! -s conftest.err
9653       } && test -s conftest.$ac_objext; then
9654  xorg_testset_unknown_warning_option=yes
9655else
9656  echo "$as_me: failed program was:" >&5
9657sed 's/^/| /' conftest.$ac_ext >&5
9658
9659	xorg_testset_unknown_warning_option=no
9660fi
9661
9662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9663	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
9664echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
9665	CFLAGS="$xorg_testset_save_CFLAGS"
9666fi
9667
9668if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9669	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9670		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9671	fi
9672	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9673	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
9674echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
9675	cat >conftest.$ac_ext <<_ACEOF
9676/* confdefs.h.  */
9677_ACEOF
9678cat confdefs.h >>conftest.$ac_ext
9679cat >>conftest.$ac_ext <<_ACEOF
9680/* end confdefs.h.  */
9681int i;
9682_ACEOF
9683rm -f conftest.$ac_objext
9684if { (ac_try="$ac_compile"
9685case "(($ac_try" in
9686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9687  *) ac_try_echo=$ac_try;;
9688esac
9689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9690  (eval "$ac_compile") 2>conftest.er1
9691  ac_status=$?
9692  grep -v '^ *+' conftest.er1 >conftest.err
9693  rm -f conftest.er1
9694  cat conftest.err >&5
9695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696  (exit $ac_status); } && {
9697	 test -z "$ac_c_werror_flag" ||
9698	 test ! -s conftest.err
9699       } && test -s conftest.$ac_objext; then
9700  xorg_testset_unused_command_line_argument=yes
9701else
9702  echo "$as_me: failed program was:" >&5
9703sed 's/^/| /' conftest.$ac_ext >&5
9704
9705	xorg_testset_unused_command_line_argument=no
9706fi
9707
9708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9709	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
9710echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
9711	CFLAGS="$xorg_testset_save_CFLAGS"
9712fi
9713
9714found="no"
9715
9716	if test $found = "no" ; then
9717		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9718			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9719		fi
9720
9721		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9722			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9723		fi
9724
9725		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
9726
9727		{ echo "$as_me:$LINENO: checking if $CC supports -Werror=int-to-pointer-cast" >&5
9728echo $ECHO_N "checking if $CC supports -Werror=int-to-pointer-cast... $ECHO_C" >&6; }
9729		cat >conftest.$ac_ext <<_ACEOF
9730/* confdefs.h.  */
9731_ACEOF
9732cat confdefs.h >>conftest.$ac_ext
9733cat >>conftest.$ac_ext <<_ACEOF
9734/* end confdefs.h.  */
9735int i;
9736int
9737main ()
9738{
9739
9740  ;
9741  return 0;
9742}
9743_ACEOF
9744rm -f conftest.$ac_objext conftest$ac_exeext
9745if { (ac_try="$ac_link"
9746case "(($ac_try" in
9747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9748  *) ac_try_echo=$ac_try;;
9749esac
9750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9751  (eval "$ac_link") 2>conftest.er1
9752  ac_status=$?
9753  grep -v '^ *+' conftest.er1 >conftest.err
9754  rm -f conftest.er1
9755  cat conftest.err >&5
9756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757  (exit $ac_status); } && {
9758	 test -z "$ac_c_werror_flag" ||
9759	 test ! -s conftest.err
9760       } && test -s conftest$ac_exeext &&
9761       $as_test_x conftest$ac_exeext; then
9762  supported=yes
9763else
9764  echo "$as_me: failed program was:" >&5
9765sed 's/^/| /' conftest.$ac_ext >&5
9766
9767	supported=no
9768fi
9769
9770rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9771      conftest$ac_exeext conftest.$ac_ext
9772		{ echo "$as_me:$LINENO: result: $supported" >&5
9773echo "${ECHO_T}$supported" >&6; }
9774		CFLAGS="$xorg_testset_save_CFLAGS"
9775
9776		if test "$supported" = "yes" ; then
9777			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
9778			found="yes"
9779		fi
9780	fi
9781
9782	if test $found = "no" ; then
9783		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9784			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9785		fi
9786
9787		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9788			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9789		fi
9790
9791		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9792
9793		{ echo "$as_me:$LINENO: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
9794echo $ECHO_N "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... $ECHO_C" >&6; }
9795		cat >conftest.$ac_ext <<_ACEOF
9796/* confdefs.h.  */
9797_ACEOF
9798cat confdefs.h >>conftest.$ac_ext
9799cat >>conftest.$ac_ext <<_ACEOF
9800/* end confdefs.h.  */
9801int i;
9802int
9803main ()
9804{
9805
9806  ;
9807  return 0;
9808}
9809_ACEOF
9810rm -f conftest.$ac_objext conftest$ac_exeext
9811if { (ac_try="$ac_link"
9812case "(($ac_try" in
9813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9814  *) ac_try_echo=$ac_try;;
9815esac
9816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9817  (eval "$ac_link") 2>conftest.er1
9818  ac_status=$?
9819  grep -v '^ *+' conftest.er1 >conftest.err
9820  rm -f conftest.er1
9821  cat conftest.err >&5
9822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823  (exit $ac_status); } && {
9824	 test -z "$ac_c_werror_flag" ||
9825	 test ! -s conftest.err
9826       } && test -s conftest$ac_exeext &&
9827       $as_test_x conftest$ac_exeext; then
9828  supported=yes
9829else
9830  echo "$as_me: failed program was:" >&5
9831sed 's/^/| /' conftest.$ac_ext >&5
9832
9833	supported=no
9834fi
9835
9836rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9837      conftest$ac_exeext conftest.$ac_ext
9838		{ echo "$as_me:$LINENO: result: $supported" >&5
9839echo "${ECHO_T}$supported" >&6; }
9840		CFLAGS="$xorg_testset_save_CFLAGS"
9841
9842		if test "$supported" = "yes" ; then
9843			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9844			found="yes"
9845		fi
9846	fi
9847
9848
9849
9850
9851
9852
9853
9854xorg_testset_save_CFLAGS="$CFLAGS"
9855
9856if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9857	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9858	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
9859echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
9860	cat >conftest.$ac_ext <<_ACEOF
9861/* confdefs.h.  */
9862_ACEOF
9863cat confdefs.h >>conftest.$ac_ext
9864cat >>conftest.$ac_ext <<_ACEOF
9865/* end confdefs.h.  */
9866int i;
9867_ACEOF
9868rm -f conftest.$ac_objext
9869if { (ac_try="$ac_compile"
9870case "(($ac_try" in
9871  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9872  *) ac_try_echo=$ac_try;;
9873esac
9874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9875  (eval "$ac_compile") 2>conftest.er1
9876  ac_status=$?
9877  grep -v '^ *+' conftest.er1 >conftest.err
9878  rm -f conftest.er1
9879  cat conftest.err >&5
9880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881  (exit $ac_status); } && {
9882	 test -z "$ac_c_werror_flag" ||
9883	 test ! -s conftest.err
9884       } && test -s conftest.$ac_objext; then
9885  xorg_testset_unknown_warning_option=yes
9886else
9887  echo "$as_me: failed program was:" >&5
9888sed 's/^/| /' conftest.$ac_ext >&5
9889
9890	xorg_testset_unknown_warning_option=no
9891fi
9892
9893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9894	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
9895echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
9896	CFLAGS="$xorg_testset_save_CFLAGS"
9897fi
9898
9899if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9900	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9901		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9902	fi
9903	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9904	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
9905echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
9906	cat >conftest.$ac_ext <<_ACEOF
9907/* confdefs.h.  */
9908_ACEOF
9909cat confdefs.h >>conftest.$ac_ext
9910cat >>conftest.$ac_ext <<_ACEOF
9911/* end confdefs.h.  */
9912int i;
9913_ACEOF
9914rm -f conftest.$ac_objext
9915if { (ac_try="$ac_compile"
9916case "(($ac_try" in
9917  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9918  *) ac_try_echo=$ac_try;;
9919esac
9920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9921  (eval "$ac_compile") 2>conftest.er1
9922  ac_status=$?
9923  grep -v '^ *+' conftest.er1 >conftest.err
9924  rm -f conftest.er1
9925  cat conftest.err >&5
9926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927  (exit $ac_status); } && {
9928	 test -z "$ac_c_werror_flag" ||
9929	 test ! -s conftest.err
9930       } && test -s conftest.$ac_objext; then
9931  xorg_testset_unused_command_line_argument=yes
9932else
9933  echo "$as_me: failed program was:" >&5
9934sed 's/^/| /' conftest.$ac_ext >&5
9935
9936	xorg_testset_unused_command_line_argument=no
9937fi
9938
9939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9940	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
9941echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
9942	CFLAGS="$xorg_testset_save_CFLAGS"
9943fi
9944
9945found="no"
9946
9947	if test $found = "no" ; then
9948		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9949			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9950		fi
9951
9952		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9953			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9954		fi
9955
9956		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9957
9958		{ echo "$as_me:$LINENO: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9959echo $ECHO_N "checking if $CC supports -Werror=pointer-to-int-cast... $ECHO_C" >&6; }
9960		cat >conftest.$ac_ext <<_ACEOF
9961/* confdefs.h.  */
9962_ACEOF
9963cat confdefs.h >>conftest.$ac_ext
9964cat >>conftest.$ac_ext <<_ACEOF
9965/* end confdefs.h.  */
9966int i;
9967int
9968main ()
9969{
9970
9971  ;
9972  return 0;
9973}
9974_ACEOF
9975rm -f conftest.$ac_objext conftest$ac_exeext
9976if { (ac_try="$ac_link"
9977case "(($ac_try" in
9978  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9979  *) ac_try_echo=$ac_try;;
9980esac
9981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9982  (eval "$ac_link") 2>conftest.er1
9983  ac_status=$?
9984  grep -v '^ *+' conftest.er1 >conftest.err
9985  rm -f conftest.er1
9986  cat conftest.err >&5
9987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988  (exit $ac_status); } && {
9989	 test -z "$ac_c_werror_flag" ||
9990	 test ! -s conftest.err
9991       } && test -s conftest$ac_exeext &&
9992       $as_test_x conftest$ac_exeext; then
9993  supported=yes
9994else
9995  echo "$as_me: failed program was:" >&5
9996sed 's/^/| /' conftest.$ac_ext >&5
9997
9998	supported=no
9999fi
10000
10001rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10002      conftest$ac_exeext conftest.$ac_ext
10003		{ echo "$as_me:$LINENO: result: $supported" >&5
10004echo "${ECHO_T}$supported" >&6; }
10005		CFLAGS="$xorg_testset_save_CFLAGS"
10006
10007		if test "$supported" = "yes" ; then
10008			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
10009			found="yes"
10010		fi
10011	fi
10012
10013 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
10014else
10015{ echo "$as_me:$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
10016echo "$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;}
10017
10018
10019
10020
10021
10022xorg_testset_save_CFLAGS="$CFLAGS"
10023
10024if test "x$xorg_testset_unknown_warning_option" = "x" ; then
10025	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10026	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
10027echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
10028	cat >conftest.$ac_ext <<_ACEOF
10029/* confdefs.h.  */
10030_ACEOF
10031cat confdefs.h >>conftest.$ac_ext
10032cat >>conftest.$ac_ext <<_ACEOF
10033/* end confdefs.h.  */
10034int i;
10035_ACEOF
10036rm -f conftest.$ac_objext
10037if { (ac_try="$ac_compile"
10038case "(($ac_try" in
10039  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10040  *) ac_try_echo=$ac_try;;
10041esac
10042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10043  (eval "$ac_compile") 2>conftest.er1
10044  ac_status=$?
10045  grep -v '^ *+' conftest.er1 >conftest.err
10046  rm -f conftest.er1
10047  cat conftest.err >&5
10048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049  (exit $ac_status); } && {
10050	 test -z "$ac_c_werror_flag" ||
10051	 test ! -s conftest.err
10052       } && test -s conftest.$ac_objext; then
10053  xorg_testset_unknown_warning_option=yes
10054else
10055  echo "$as_me: failed program was:" >&5
10056sed 's/^/| /' conftest.$ac_ext >&5
10057
10058	xorg_testset_unknown_warning_option=no
10059fi
10060
10061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10062	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
10063echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
10064	CFLAGS="$xorg_testset_save_CFLAGS"
10065fi
10066
10067if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
10068	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10069		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10070	fi
10071	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10072	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
10073echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
10074	cat >conftest.$ac_ext <<_ACEOF
10075/* confdefs.h.  */
10076_ACEOF
10077cat confdefs.h >>conftest.$ac_ext
10078cat >>conftest.$ac_ext <<_ACEOF
10079/* end confdefs.h.  */
10080int i;
10081_ACEOF
10082rm -f conftest.$ac_objext
10083if { (ac_try="$ac_compile"
10084case "(($ac_try" in
10085  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10086  *) ac_try_echo=$ac_try;;
10087esac
10088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10089  (eval "$ac_compile") 2>conftest.er1
10090  ac_status=$?
10091  grep -v '^ *+' conftest.er1 >conftest.err
10092  rm -f conftest.er1
10093  cat conftest.err >&5
10094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095  (exit $ac_status); } && {
10096	 test -z "$ac_c_werror_flag" ||
10097	 test ! -s conftest.err
10098       } && test -s conftest.$ac_objext; then
10099  xorg_testset_unused_command_line_argument=yes
10100else
10101  echo "$as_me: failed program was:" >&5
10102sed 's/^/| /' conftest.$ac_ext >&5
10103
10104	xorg_testset_unused_command_line_argument=no
10105fi
10106
10107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10108	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
10109echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
10110	CFLAGS="$xorg_testset_save_CFLAGS"
10111fi
10112
10113found="no"
10114
10115	if test $found = "no" ; then
10116		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10117			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10118		fi
10119
10120		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10121			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10122		fi
10123
10124		CFLAGS="$CFLAGS -Wimplicit"
10125
10126		{ echo "$as_me:$LINENO: checking if $CC supports -Wimplicit" >&5
10127echo $ECHO_N "checking if $CC supports -Wimplicit... $ECHO_C" >&6; }
10128		cat >conftest.$ac_ext <<_ACEOF
10129/* confdefs.h.  */
10130_ACEOF
10131cat confdefs.h >>conftest.$ac_ext
10132cat >>conftest.$ac_ext <<_ACEOF
10133/* end confdefs.h.  */
10134int i;
10135int
10136main ()
10137{
10138
10139  ;
10140  return 0;
10141}
10142_ACEOF
10143rm -f conftest.$ac_objext conftest$ac_exeext
10144if { (ac_try="$ac_link"
10145case "(($ac_try" in
10146  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10147  *) ac_try_echo=$ac_try;;
10148esac
10149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10150  (eval "$ac_link") 2>conftest.er1
10151  ac_status=$?
10152  grep -v '^ *+' conftest.er1 >conftest.err
10153  rm -f conftest.er1
10154  cat conftest.err >&5
10155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156  (exit $ac_status); } && {
10157	 test -z "$ac_c_werror_flag" ||
10158	 test ! -s conftest.err
10159       } && test -s conftest$ac_exeext &&
10160       $as_test_x conftest$ac_exeext; then
10161  supported=yes
10162else
10163  echo "$as_me: failed program was:" >&5
10164sed 's/^/| /' conftest.$ac_ext >&5
10165
10166	supported=no
10167fi
10168
10169rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10170      conftest$ac_exeext conftest.$ac_ext
10171		{ echo "$as_me:$LINENO: result: $supported" >&5
10172echo "${ECHO_T}$supported" >&6; }
10173		CFLAGS="$xorg_testset_save_CFLAGS"
10174
10175		if test "$supported" = "yes" ; then
10176			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
10177			found="yes"
10178		fi
10179	fi
10180
10181
10182
10183
10184
10185
10186
10187xorg_testset_save_CFLAGS="$CFLAGS"
10188
10189if test "x$xorg_testset_unknown_warning_option" = "x" ; then
10190	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10191	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
10192echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
10193	cat >conftest.$ac_ext <<_ACEOF
10194/* confdefs.h.  */
10195_ACEOF
10196cat confdefs.h >>conftest.$ac_ext
10197cat >>conftest.$ac_ext <<_ACEOF
10198/* end confdefs.h.  */
10199int i;
10200_ACEOF
10201rm -f conftest.$ac_objext
10202if { (ac_try="$ac_compile"
10203case "(($ac_try" in
10204  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10205  *) ac_try_echo=$ac_try;;
10206esac
10207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10208  (eval "$ac_compile") 2>conftest.er1
10209  ac_status=$?
10210  grep -v '^ *+' conftest.er1 >conftest.err
10211  rm -f conftest.er1
10212  cat conftest.err >&5
10213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214  (exit $ac_status); } && {
10215	 test -z "$ac_c_werror_flag" ||
10216	 test ! -s conftest.err
10217       } && test -s conftest.$ac_objext; then
10218  xorg_testset_unknown_warning_option=yes
10219else
10220  echo "$as_me: failed program was:" >&5
10221sed 's/^/| /' conftest.$ac_ext >&5
10222
10223	xorg_testset_unknown_warning_option=no
10224fi
10225
10226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10227	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
10228echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
10229	CFLAGS="$xorg_testset_save_CFLAGS"
10230fi
10231
10232if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
10233	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10234		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10235	fi
10236	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10237	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
10238echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
10239	cat >conftest.$ac_ext <<_ACEOF
10240/* confdefs.h.  */
10241_ACEOF
10242cat confdefs.h >>conftest.$ac_ext
10243cat >>conftest.$ac_ext <<_ACEOF
10244/* end confdefs.h.  */
10245int i;
10246_ACEOF
10247rm -f conftest.$ac_objext
10248if { (ac_try="$ac_compile"
10249case "(($ac_try" in
10250  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10251  *) ac_try_echo=$ac_try;;
10252esac
10253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10254  (eval "$ac_compile") 2>conftest.er1
10255  ac_status=$?
10256  grep -v '^ *+' conftest.er1 >conftest.err
10257  rm -f conftest.er1
10258  cat conftest.err >&5
10259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260  (exit $ac_status); } && {
10261	 test -z "$ac_c_werror_flag" ||
10262	 test ! -s conftest.err
10263       } && test -s conftest.$ac_objext; then
10264  xorg_testset_unused_command_line_argument=yes
10265else
10266  echo "$as_me: failed program was:" >&5
10267sed 's/^/| /' conftest.$ac_ext >&5
10268
10269	xorg_testset_unused_command_line_argument=no
10270fi
10271
10272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10273	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
10274echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
10275	CFLAGS="$xorg_testset_save_CFLAGS"
10276fi
10277
10278found="no"
10279
10280	if test $found = "no" ; then
10281		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10282			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10283		fi
10284
10285		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10286			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10287		fi
10288
10289		CFLAGS="$CFLAGS -Wnonnull"
10290
10291		{ echo "$as_me:$LINENO: checking if $CC supports -Wnonnull" >&5
10292echo $ECHO_N "checking if $CC supports -Wnonnull... $ECHO_C" >&6; }
10293		cat >conftest.$ac_ext <<_ACEOF
10294/* confdefs.h.  */
10295_ACEOF
10296cat confdefs.h >>conftest.$ac_ext
10297cat >>conftest.$ac_ext <<_ACEOF
10298/* end confdefs.h.  */
10299int i;
10300int
10301main ()
10302{
10303
10304  ;
10305  return 0;
10306}
10307_ACEOF
10308rm -f conftest.$ac_objext conftest$ac_exeext
10309if { (ac_try="$ac_link"
10310case "(($ac_try" in
10311  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10312  *) ac_try_echo=$ac_try;;
10313esac
10314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10315  (eval "$ac_link") 2>conftest.er1
10316  ac_status=$?
10317  grep -v '^ *+' conftest.er1 >conftest.err
10318  rm -f conftest.er1
10319  cat conftest.err >&5
10320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321  (exit $ac_status); } && {
10322	 test -z "$ac_c_werror_flag" ||
10323	 test ! -s conftest.err
10324       } && test -s conftest$ac_exeext &&
10325       $as_test_x conftest$ac_exeext; then
10326  supported=yes
10327else
10328  echo "$as_me: failed program was:" >&5
10329sed 's/^/| /' conftest.$ac_ext >&5
10330
10331	supported=no
10332fi
10333
10334rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10335      conftest$ac_exeext conftest.$ac_ext
10336		{ echo "$as_me:$LINENO: result: $supported" >&5
10337echo "${ECHO_T}$supported" >&6; }
10338		CFLAGS="$xorg_testset_save_CFLAGS"
10339
10340		if test "$supported" = "yes" ; then
10341			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
10342			found="yes"
10343		fi
10344	fi
10345
10346
10347
10348
10349
10350
10351
10352xorg_testset_save_CFLAGS="$CFLAGS"
10353
10354if test "x$xorg_testset_unknown_warning_option" = "x" ; then
10355	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10356	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
10357echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
10358	cat >conftest.$ac_ext <<_ACEOF
10359/* confdefs.h.  */
10360_ACEOF
10361cat confdefs.h >>conftest.$ac_ext
10362cat >>conftest.$ac_ext <<_ACEOF
10363/* end confdefs.h.  */
10364int i;
10365_ACEOF
10366rm -f conftest.$ac_objext
10367if { (ac_try="$ac_compile"
10368case "(($ac_try" in
10369  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10370  *) ac_try_echo=$ac_try;;
10371esac
10372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10373  (eval "$ac_compile") 2>conftest.er1
10374  ac_status=$?
10375  grep -v '^ *+' conftest.er1 >conftest.err
10376  rm -f conftest.er1
10377  cat conftest.err >&5
10378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379  (exit $ac_status); } && {
10380	 test -z "$ac_c_werror_flag" ||
10381	 test ! -s conftest.err
10382       } && test -s conftest.$ac_objext; then
10383  xorg_testset_unknown_warning_option=yes
10384else
10385  echo "$as_me: failed program was:" >&5
10386sed 's/^/| /' conftest.$ac_ext >&5
10387
10388	xorg_testset_unknown_warning_option=no
10389fi
10390
10391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10392	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
10393echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
10394	CFLAGS="$xorg_testset_save_CFLAGS"
10395fi
10396
10397if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
10398	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10399		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10400	fi
10401	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10402	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
10403echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
10404	cat >conftest.$ac_ext <<_ACEOF
10405/* confdefs.h.  */
10406_ACEOF
10407cat confdefs.h >>conftest.$ac_ext
10408cat >>conftest.$ac_ext <<_ACEOF
10409/* end confdefs.h.  */
10410int i;
10411_ACEOF
10412rm -f conftest.$ac_objext
10413if { (ac_try="$ac_compile"
10414case "(($ac_try" in
10415  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10416  *) ac_try_echo=$ac_try;;
10417esac
10418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10419  (eval "$ac_compile") 2>conftest.er1
10420  ac_status=$?
10421  grep -v '^ *+' conftest.er1 >conftest.err
10422  rm -f conftest.er1
10423  cat conftest.err >&5
10424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425  (exit $ac_status); } && {
10426	 test -z "$ac_c_werror_flag" ||
10427	 test ! -s conftest.err
10428       } && test -s conftest.$ac_objext; then
10429  xorg_testset_unused_command_line_argument=yes
10430else
10431  echo "$as_me: failed program was:" >&5
10432sed 's/^/| /' conftest.$ac_ext >&5
10433
10434	xorg_testset_unused_command_line_argument=no
10435fi
10436
10437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10438	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
10439echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
10440	CFLAGS="$xorg_testset_save_CFLAGS"
10441fi
10442
10443found="no"
10444
10445	if test $found = "no" ; then
10446		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10447			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10448		fi
10449
10450		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10451			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10452		fi
10453
10454		CFLAGS="$CFLAGS -Winit-self"
10455
10456		{ echo "$as_me:$LINENO: checking if $CC supports -Winit-self" >&5
10457echo $ECHO_N "checking if $CC supports -Winit-self... $ECHO_C" >&6; }
10458		cat >conftest.$ac_ext <<_ACEOF
10459/* confdefs.h.  */
10460_ACEOF
10461cat confdefs.h >>conftest.$ac_ext
10462cat >>conftest.$ac_ext <<_ACEOF
10463/* end confdefs.h.  */
10464int i;
10465int
10466main ()
10467{
10468
10469  ;
10470  return 0;
10471}
10472_ACEOF
10473rm -f conftest.$ac_objext conftest$ac_exeext
10474if { (ac_try="$ac_link"
10475case "(($ac_try" in
10476  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10477  *) ac_try_echo=$ac_try;;
10478esac
10479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10480  (eval "$ac_link") 2>conftest.er1
10481  ac_status=$?
10482  grep -v '^ *+' conftest.er1 >conftest.err
10483  rm -f conftest.er1
10484  cat conftest.err >&5
10485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486  (exit $ac_status); } && {
10487	 test -z "$ac_c_werror_flag" ||
10488	 test ! -s conftest.err
10489       } && test -s conftest$ac_exeext &&
10490       $as_test_x conftest$ac_exeext; then
10491  supported=yes
10492else
10493  echo "$as_me: failed program was:" >&5
10494sed 's/^/| /' conftest.$ac_ext >&5
10495
10496	supported=no
10497fi
10498
10499rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10500      conftest$ac_exeext conftest.$ac_ext
10501		{ echo "$as_me:$LINENO: result: $supported" >&5
10502echo "${ECHO_T}$supported" >&6; }
10503		CFLAGS="$xorg_testset_save_CFLAGS"
10504
10505		if test "$supported" = "yes" ; then
10506			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
10507			found="yes"
10508		fi
10509	fi
10510
10511
10512
10513
10514
10515
10516
10517xorg_testset_save_CFLAGS="$CFLAGS"
10518
10519if test "x$xorg_testset_unknown_warning_option" = "x" ; then
10520	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10521	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
10522echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
10523	cat >conftest.$ac_ext <<_ACEOF
10524/* confdefs.h.  */
10525_ACEOF
10526cat confdefs.h >>conftest.$ac_ext
10527cat >>conftest.$ac_ext <<_ACEOF
10528/* end confdefs.h.  */
10529int i;
10530_ACEOF
10531rm -f conftest.$ac_objext
10532if { (ac_try="$ac_compile"
10533case "(($ac_try" in
10534  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10535  *) ac_try_echo=$ac_try;;
10536esac
10537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10538  (eval "$ac_compile") 2>conftest.er1
10539  ac_status=$?
10540  grep -v '^ *+' conftest.er1 >conftest.err
10541  rm -f conftest.er1
10542  cat conftest.err >&5
10543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544  (exit $ac_status); } && {
10545	 test -z "$ac_c_werror_flag" ||
10546	 test ! -s conftest.err
10547       } && test -s conftest.$ac_objext; then
10548  xorg_testset_unknown_warning_option=yes
10549else
10550  echo "$as_me: failed program was:" >&5
10551sed 's/^/| /' conftest.$ac_ext >&5
10552
10553	xorg_testset_unknown_warning_option=no
10554fi
10555
10556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10557	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
10558echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
10559	CFLAGS="$xorg_testset_save_CFLAGS"
10560fi
10561
10562if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
10563	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10564		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10565	fi
10566	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10567	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
10568echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
10569	cat >conftest.$ac_ext <<_ACEOF
10570/* confdefs.h.  */
10571_ACEOF
10572cat confdefs.h >>conftest.$ac_ext
10573cat >>conftest.$ac_ext <<_ACEOF
10574/* end confdefs.h.  */
10575int i;
10576_ACEOF
10577rm -f conftest.$ac_objext
10578if { (ac_try="$ac_compile"
10579case "(($ac_try" in
10580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10581  *) ac_try_echo=$ac_try;;
10582esac
10583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10584  (eval "$ac_compile") 2>conftest.er1
10585  ac_status=$?
10586  grep -v '^ *+' conftest.er1 >conftest.err
10587  rm -f conftest.er1
10588  cat conftest.err >&5
10589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590  (exit $ac_status); } && {
10591	 test -z "$ac_c_werror_flag" ||
10592	 test ! -s conftest.err
10593       } && test -s conftest.$ac_objext; then
10594  xorg_testset_unused_command_line_argument=yes
10595else
10596  echo "$as_me: failed program was:" >&5
10597sed 's/^/| /' conftest.$ac_ext >&5
10598
10599	xorg_testset_unused_command_line_argument=no
10600fi
10601
10602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10603	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
10604echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
10605	CFLAGS="$xorg_testset_save_CFLAGS"
10606fi
10607
10608found="no"
10609
10610	if test $found = "no" ; then
10611		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10612			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10613		fi
10614
10615		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10616			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10617		fi
10618
10619		CFLAGS="$CFLAGS -Wmain"
10620
10621		{ echo "$as_me:$LINENO: checking if $CC supports -Wmain" >&5
10622echo $ECHO_N "checking if $CC supports -Wmain... $ECHO_C" >&6; }
10623		cat >conftest.$ac_ext <<_ACEOF
10624/* confdefs.h.  */
10625_ACEOF
10626cat confdefs.h >>conftest.$ac_ext
10627cat >>conftest.$ac_ext <<_ACEOF
10628/* end confdefs.h.  */
10629int i;
10630int
10631main ()
10632{
10633
10634  ;
10635  return 0;
10636}
10637_ACEOF
10638rm -f conftest.$ac_objext conftest$ac_exeext
10639if { (ac_try="$ac_link"
10640case "(($ac_try" in
10641  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10642  *) ac_try_echo=$ac_try;;
10643esac
10644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10645  (eval "$ac_link") 2>conftest.er1
10646  ac_status=$?
10647  grep -v '^ *+' conftest.er1 >conftest.err
10648  rm -f conftest.er1
10649  cat conftest.err >&5
10650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651  (exit $ac_status); } && {
10652	 test -z "$ac_c_werror_flag" ||
10653	 test ! -s conftest.err
10654       } && test -s conftest$ac_exeext &&
10655       $as_test_x conftest$ac_exeext; then
10656  supported=yes
10657else
10658  echo "$as_me: failed program was:" >&5
10659sed 's/^/| /' conftest.$ac_ext >&5
10660
10661	supported=no
10662fi
10663
10664rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10665      conftest$ac_exeext conftest.$ac_ext
10666		{ echo "$as_me:$LINENO: result: $supported" >&5
10667echo "${ECHO_T}$supported" >&6; }
10668		CFLAGS="$xorg_testset_save_CFLAGS"
10669
10670		if test "$supported" = "yes" ; then
10671			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
10672			found="yes"
10673		fi
10674	fi
10675
10676
10677
10678
10679
10680
10681
10682xorg_testset_save_CFLAGS="$CFLAGS"
10683
10684if test "x$xorg_testset_unknown_warning_option" = "x" ; then
10685	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10686	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
10687echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
10688	cat >conftest.$ac_ext <<_ACEOF
10689/* confdefs.h.  */
10690_ACEOF
10691cat confdefs.h >>conftest.$ac_ext
10692cat >>conftest.$ac_ext <<_ACEOF
10693/* end confdefs.h.  */
10694int i;
10695_ACEOF
10696rm -f conftest.$ac_objext
10697if { (ac_try="$ac_compile"
10698case "(($ac_try" in
10699  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10700  *) ac_try_echo=$ac_try;;
10701esac
10702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10703  (eval "$ac_compile") 2>conftest.er1
10704  ac_status=$?
10705  grep -v '^ *+' conftest.er1 >conftest.err
10706  rm -f conftest.er1
10707  cat conftest.err >&5
10708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709  (exit $ac_status); } && {
10710	 test -z "$ac_c_werror_flag" ||
10711	 test ! -s conftest.err
10712       } && test -s conftest.$ac_objext; then
10713  xorg_testset_unknown_warning_option=yes
10714else
10715  echo "$as_me: failed program was:" >&5
10716sed 's/^/| /' conftest.$ac_ext >&5
10717
10718	xorg_testset_unknown_warning_option=no
10719fi
10720
10721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10722	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
10723echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
10724	CFLAGS="$xorg_testset_save_CFLAGS"
10725fi
10726
10727if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
10728	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10729		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10730	fi
10731	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10732	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
10733echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
10734	cat >conftest.$ac_ext <<_ACEOF
10735/* confdefs.h.  */
10736_ACEOF
10737cat confdefs.h >>conftest.$ac_ext
10738cat >>conftest.$ac_ext <<_ACEOF
10739/* end confdefs.h.  */
10740int i;
10741_ACEOF
10742rm -f conftest.$ac_objext
10743if { (ac_try="$ac_compile"
10744case "(($ac_try" in
10745  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10746  *) ac_try_echo=$ac_try;;
10747esac
10748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10749  (eval "$ac_compile") 2>conftest.er1
10750  ac_status=$?
10751  grep -v '^ *+' conftest.er1 >conftest.err
10752  rm -f conftest.er1
10753  cat conftest.err >&5
10754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755  (exit $ac_status); } && {
10756	 test -z "$ac_c_werror_flag" ||
10757	 test ! -s conftest.err
10758       } && test -s conftest.$ac_objext; then
10759  xorg_testset_unused_command_line_argument=yes
10760else
10761  echo "$as_me: failed program was:" >&5
10762sed 's/^/| /' conftest.$ac_ext >&5
10763
10764	xorg_testset_unused_command_line_argument=no
10765fi
10766
10767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10768	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
10769echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
10770	CFLAGS="$xorg_testset_save_CFLAGS"
10771fi
10772
10773found="no"
10774
10775	if test $found = "no" ; then
10776		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10777			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10778		fi
10779
10780		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10781			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10782		fi
10783
10784		CFLAGS="$CFLAGS -Wmissing-braces"
10785
10786		{ echo "$as_me:$LINENO: checking if $CC supports -Wmissing-braces" >&5
10787echo $ECHO_N "checking if $CC supports -Wmissing-braces... $ECHO_C" >&6; }
10788		cat >conftest.$ac_ext <<_ACEOF
10789/* confdefs.h.  */
10790_ACEOF
10791cat confdefs.h >>conftest.$ac_ext
10792cat >>conftest.$ac_ext <<_ACEOF
10793/* end confdefs.h.  */
10794int i;
10795int
10796main ()
10797{
10798
10799  ;
10800  return 0;
10801}
10802_ACEOF
10803rm -f conftest.$ac_objext conftest$ac_exeext
10804if { (ac_try="$ac_link"
10805case "(($ac_try" in
10806  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10807  *) ac_try_echo=$ac_try;;
10808esac
10809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10810  (eval "$ac_link") 2>conftest.er1
10811  ac_status=$?
10812  grep -v '^ *+' conftest.er1 >conftest.err
10813  rm -f conftest.er1
10814  cat conftest.err >&5
10815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816  (exit $ac_status); } && {
10817	 test -z "$ac_c_werror_flag" ||
10818	 test ! -s conftest.err
10819       } && test -s conftest$ac_exeext &&
10820       $as_test_x conftest$ac_exeext; then
10821  supported=yes
10822else
10823  echo "$as_me: failed program was:" >&5
10824sed 's/^/| /' conftest.$ac_ext >&5
10825
10826	supported=no
10827fi
10828
10829rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10830      conftest$ac_exeext conftest.$ac_ext
10831		{ echo "$as_me:$LINENO: result: $supported" >&5
10832echo "${ECHO_T}$supported" >&6; }
10833		CFLAGS="$xorg_testset_save_CFLAGS"
10834
10835		if test "$supported" = "yes" ; then
10836			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
10837			found="yes"
10838		fi
10839	fi
10840
10841
10842
10843
10844
10845
10846
10847xorg_testset_save_CFLAGS="$CFLAGS"
10848
10849if test "x$xorg_testset_unknown_warning_option" = "x" ; then
10850	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10851	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
10852echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
10853	cat >conftest.$ac_ext <<_ACEOF
10854/* confdefs.h.  */
10855_ACEOF
10856cat confdefs.h >>conftest.$ac_ext
10857cat >>conftest.$ac_ext <<_ACEOF
10858/* end confdefs.h.  */
10859int i;
10860_ACEOF
10861rm -f conftest.$ac_objext
10862if { (ac_try="$ac_compile"
10863case "(($ac_try" in
10864  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10865  *) ac_try_echo=$ac_try;;
10866esac
10867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10868  (eval "$ac_compile") 2>conftest.er1
10869  ac_status=$?
10870  grep -v '^ *+' conftest.er1 >conftest.err
10871  rm -f conftest.er1
10872  cat conftest.err >&5
10873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874  (exit $ac_status); } && {
10875	 test -z "$ac_c_werror_flag" ||
10876	 test ! -s conftest.err
10877       } && test -s conftest.$ac_objext; then
10878  xorg_testset_unknown_warning_option=yes
10879else
10880  echo "$as_me: failed program was:" >&5
10881sed 's/^/| /' conftest.$ac_ext >&5
10882
10883	xorg_testset_unknown_warning_option=no
10884fi
10885
10886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10887	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
10888echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
10889	CFLAGS="$xorg_testset_save_CFLAGS"
10890fi
10891
10892if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
10893	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10894		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10895	fi
10896	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10897	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
10898echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
10899	cat >conftest.$ac_ext <<_ACEOF
10900/* confdefs.h.  */
10901_ACEOF
10902cat confdefs.h >>conftest.$ac_ext
10903cat >>conftest.$ac_ext <<_ACEOF
10904/* end confdefs.h.  */
10905int i;
10906_ACEOF
10907rm -f conftest.$ac_objext
10908if { (ac_try="$ac_compile"
10909case "(($ac_try" in
10910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10911  *) ac_try_echo=$ac_try;;
10912esac
10913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10914  (eval "$ac_compile") 2>conftest.er1
10915  ac_status=$?
10916  grep -v '^ *+' conftest.er1 >conftest.err
10917  rm -f conftest.er1
10918  cat conftest.err >&5
10919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920  (exit $ac_status); } && {
10921	 test -z "$ac_c_werror_flag" ||
10922	 test ! -s conftest.err
10923       } && test -s conftest.$ac_objext; then
10924  xorg_testset_unused_command_line_argument=yes
10925else
10926  echo "$as_me: failed program was:" >&5
10927sed 's/^/| /' conftest.$ac_ext >&5
10928
10929	xorg_testset_unused_command_line_argument=no
10930fi
10931
10932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10933	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
10934echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
10935	CFLAGS="$xorg_testset_save_CFLAGS"
10936fi
10937
10938found="no"
10939
10940	if test $found = "no" ; then
10941		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10942			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10943		fi
10944
10945		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10946			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10947		fi
10948
10949		CFLAGS="$CFLAGS -Wsequence-point"
10950
10951		{ echo "$as_me:$LINENO: checking if $CC supports -Wsequence-point" >&5
10952echo $ECHO_N "checking if $CC supports -Wsequence-point... $ECHO_C" >&6; }
10953		cat >conftest.$ac_ext <<_ACEOF
10954/* confdefs.h.  */
10955_ACEOF
10956cat confdefs.h >>conftest.$ac_ext
10957cat >>conftest.$ac_ext <<_ACEOF
10958/* end confdefs.h.  */
10959int i;
10960int
10961main ()
10962{
10963
10964  ;
10965  return 0;
10966}
10967_ACEOF
10968rm -f conftest.$ac_objext conftest$ac_exeext
10969if { (ac_try="$ac_link"
10970case "(($ac_try" in
10971  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10972  *) ac_try_echo=$ac_try;;
10973esac
10974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10975  (eval "$ac_link") 2>conftest.er1
10976  ac_status=$?
10977  grep -v '^ *+' conftest.er1 >conftest.err
10978  rm -f conftest.er1
10979  cat conftest.err >&5
10980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981  (exit $ac_status); } && {
10982	 test -z "$ac_c_werror_flag" ||
10983	 test ! -s conftest.err
10984       } && test -s conftest$ac_exeext &&
10985       $as_test_x conftest$ac_exeext; then
10986  supported=yes
10987else
10988  echo "$as_me: failed program was:" >&5
10989sed 's/^/| /' conftest.$ac_ext >&5
10990
10991	supported=no
10992fi
10993
10994rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10995      conftest$ac_exeext conftest.$ac_ext
10996		{ echo "$as_me:$LINENO: result: $supported" >&5
10997echo "${ECHO_T}$supported" >&6; }
10998		CFLAGS="$xorg_testset_save_CFLAGS"
10999
11000		if test "$supported" = "yes" ; then
11001			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
11002			found="yes"
11003		fi
11004	fi
11005
11006
11007
11008
11009
11010
11011
11012xorg_testset_save_CFLAGS="$CFLAGS"
11013
11014if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11015	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11016	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
11017echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
11018	cat >conftest.$ac_ext <<_ACEOF
11019/* confdefs.h.  */
11020_ACEOF
11021cat confdefs.h >>conftest.$ac_ext
11022cat >>conftest.$ac_ext <<_ACEOF
11023/* end confdefs.h.  */
11024int i;
11025_ACEOF
11026rm -f conftest.$ac_objext
11027if { (ac_try="$ac_compile"
11028case "(($ac_try" in
11029  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11030  *) ac_try_echo=$ac_try;;
11031esac
11032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11033  (eval "$ac_compile") 2>conftest.er1
11034  ac_status=$?
11035  grep -v '^ *+' conftest.er1 >conftest.err
11036  rm -f conftest.er1
11037  cat conftest.err >&5
11038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039  (exit $ac_status); } && {
11040	 test -z "$ac_c_werror_flag" ||
11041	 test ! -s conftest.err
11042       } && test -s conftest.$ac_objext; then
11043  xorg_testset_unknown_warning_option=yes
11044else
11045  echo "$as_me: failed program was:" >&5
11046sed 's/^/| /' conftest.$ac_ext >&5
11047
11048	xorg_testset_unknown_warning_option=no
11049fi
11050
11051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11052	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
11053echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
11054	CFLAGS="$xorg_testset_save_CFLAGS"
11055fi
11056
11057if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11058	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11059		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11060	fi
11061	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11062	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
11063echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
11064	cat >conftest.$ac_ext <<_ACEOF
11065/* confdefs.h.  */
11066_ACEOF
11067cat confdefs.h >>conftest.$ac_ext
11068cat >>conftest.$ac_ext <<_ACEOF
11069/* end confdefs.h.  */
11070int i;
11071_ACEOF
11072rm -f conftest.$ac_objext
11073if { (ac_try="$ac_compile"
11074case "(($ac_try" in
11075  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11076  *) ac_try_echo=$ac_try;;
11077esac
11078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11079  (eval "$ac_compile") 2>conftest.er1
11080  ac_status=$?
11081  grep -v '^ *+' conftest.er1 >conftest.err
11082  rm -f conftest.er1
11083  cat conftest.err >&5
11084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085  (exit $ac_status); } && {
11086	 test -z "$ac_c_werror_flag" ||
11087	 test ! -s conftest.err
11088       } && test -s conftest.$ac_objext; then
11089  xorg_testset_unused_command_line_argument=yes
11090else
11091  echo "$as_me: failed program was:" >&5
11092sed 's/^/| /' conftest.$ac_ext >&5
11093
11094	xorg_testset_unused_command_line_argument=no
11095fi
11096
11097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11098	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
11099echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
11100	CFLAGS="$xorg_testset_save_CFLAGS"
11101fi
11102
11103found="no"
11104
11105	if test $found = "no" ; then
11106		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11107			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11108		fi
11109
11110		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11111			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11112		fi
11113
11114		CFLAGS="$CFLAGS -Wreturn-type"
11115
11116		{ echo "$as_me:$LINENO: checking if $CC supports -Wreturn-type" >&5
11117echo $ECHO_N "checking if $CC supports -Wreturn-type... $ECHO_C" >&6; }
11118		cat >conftest.$ac_ext <<_ACEOF
11119/* confdefs.h.  */
11120_ACEOF
11121cat confdefs.h >>conftest.$ac_ext
11122cat >>conftest.$ac_ext <<_ACEOF
11123/* end confdefs.h.  */
11124int i;
11125int
11126main ()
11127{
11128
11129  ;
11130  return 0;
11131}
11132_ACEOF
11133rm -f conftest.$ac_objext conftest$ac_exeext
11134if { (ac_try="$ac_link"
11135case "(($ac_try" in
11136  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11137  *) ac_try_echo=$ac_try;;
11138esac
11139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11140  (eval "$ac_link") 2>conftest.er1
11141  ac_status=$?
11142  grep -v '^ *+' conftest.er1 >conftest.err
11143  rm -f conftest.er1
11144  cat conftest.err >&5
11145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146  (exit $ac_status); } && {
11147	 test -z "$ac_c_werror_flag" ||
11148	 test ! -s conftest.err
11149       } && test -s conftest$ac_exeext &&
11150       $as_test_x conftest$ac_exeext; then
11151  supported=yes
11152else
11153  echo "$as_me: failed program was:" >&5
11154sed 's/^/| /' conftest.$ac_ext >&5
11155
11156	supported=no
11157fi
11158
11159rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11160      conftest$ac_exeext conftest.$ac_ext
11161		{ echo "$as_me:$LINENO: result: $supported" >&5
11162echo "${ECHO_T}$supported" >&6; }
11163		CFLAGS="$xorg_testset_save_CFLAGS"
11164
11165		if test "$supported" = "yes" ; then
11166			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
11167			found="yes"
11168		fi
11169	fi
11170
11171
11172
11173
11174
11175
11176
11177xorg_testset_save_CFLAGS="$CFLAGS"
11178
11179if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11180	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11181	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
11182echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
11183	cat >conftest.$ac_ext <<_ACEOF
11184/* confdefs.h.  */
11185_ACEOF
11186cat confdefs.h >>conftest.$ac_ext
11187cat >>conftest.$ac_ext <<_ACEOF
11188/* end confdefs.h.  */
11189int i;
11190_ACEOF
11191rm -f conftest.$ac_objext
11192if { (ac_try="$ac_compile"
11193case "(($ac_try" in
11194  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11195  *) ac_try_echo=$ac_try;;
11196esac
11197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11198  (eval "$ac_compile") 2>conftest.er1
11199  ac_status=$?
11200  grep -v '^ *+' conftest.er1 >conftest.err
11201  rm -f conftest.er1
11202  cat conftest.err >&5
11203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204  (exit $ac_status); } && {
11205	 test -z "$ac_c_werror_flag" ||
11206	 test ! -s conftest.err
11207       } && test -s conftest.$ac_objext; then
11208  xorg_testset_unknown_warning_option=yes
11209else
11210  echo "$as_me: failed program was:" >&5
11211sed 's/^/| /' conftest.$ac_ext >&5
11212
11213	xorg_testset_unknown_warning_option=no
11214fi
11215
11216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11217	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
11218echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
11219	CFLAGS="$xorg_testset_save_CFLAGS"
11220fi
11221
11222if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11223	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11224		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11225	fi
11226	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11227	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
11228echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
11229	cat >conftest.$ac_ext <<_ACEOF
11230/* confdefs.h.  */
11231_ACEOF
11232cat confdefs.h >>conftest.$ac_ext
11233cat >>conftest.$ac_ext <<_ACEOF
11234/* end confdefs.h.  */
11235int i;
11236_ACEOF
11237rm -f conftest.$ac_objext
11238if { (ac_try="$ac_compile"
11239case "(($ac_try" in
11240  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11241  *) ac_try_echo=$ac_try;;
11242esac
11243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11244  (eval "$ac_compile") 2>conftest.er1
11245  ac_status=$?
11246  grep -v '^ *+' conftest.er1 >conftest.err
11247  rm -f conftest.er1
11248  cat conftest.err >&5
11249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250  (exit $ac_status); } && {
11251	 test -z "$ac_c_werror_flag" ||
11252	 test ! -s conftest.err
11253       } && test -s conftest.$ac_objext; then
11254  xorg_testset_unused_command_line_argument=yes
11255else
11256  echo "$as_me: failed program was:" >&5
11257sed 's/^/| /' conftest.$ac_ext >&5
11258
11259	xorg_testset_unused_command_line_argument=no
11260fi
11261
11262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11263	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
11264echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
11265	CFLAGS="$xorg_testset_save_CFLAGS"
11266fi
11267
11268found="no"
11269
11270	if test $found = "no" ; then
11271		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11272			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11273		fi
11274
11275		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11276			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11277		fi
11278
11279		CFLAGS="$CFLAGS -Wtrigraphs"
11280
11281		{ echo "$as_me:$LINENO: checking if $CC supports -Wtrigraphs" >&5
11282echo $ECHO_N "checking if $CC supports -Wtrigraphs... $ECHO_C" >&6; }
11283		cat >conftest.$ac_ext <<_ACEOF
11284/* confdefs.h.  */
11285_ACEOF
11286cat confdefs.h >>conftest.$ac_ext
11287cat >>conftest.$ac_ext <<_ACEOF
11288/* end confdefs.h.  */
11289int i;
11290int
11291main ()
11292{
11293
11294  ;
11295  return 0;
11296}
11297_ACEOF
11298rm -f conftest.$ac_objext conftest$ac_exeext
11299if { (ac_try="$ac_link"
11300case "(($ac_try" in
11301  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11302  *) ac_try_echo=$ac_try;;
11303esac
11304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11305  (eval "$ac_link") 2>conftest.er1
11306  ac_status=$?
11307  grep -v '^ *+' conftest.er1 >conftest.err
11308  rm -f conftest.er1
11309  cat conftest.err >&5
11310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311  (exit $ac_status); } && {
11312	 test -z "$ac_c_werror_flag" ||
11313	 test ! -s conftest.err
11314       } && test -s conftest$ac_exeext &&
11315       $as_test_x conftest$ac_exeext; then
11316  supported=yes
11317else
11318  echo "$as_me: failed program was:" >&5
11319sed 's/^/| /' conftest.$ac_ext >&5
11320
11321	supported=no
11322fi
11323
11324rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11325      conftest$ac_exeext conftest.$ac_ext
11326		{ echo "$as_me:$LINENO: result: $supported" >&5
11327echo "${ECHO_T}$supported" >&6; }
11328		CFLAGS="$xorg_testset_save_CFLAGS"
11329
11330		if test "$supported" = "yes" ; then
11331			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
11332			found="yes"
11333		fi
11334	fi
11335
11336
11337
11338
11339
11340
11341
11342xorg_testset_save_CFLAGS="$CFLAGS"
11343
11344if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11345	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11346	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
11347echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
11348	cat >conftest.$ac_ext <<_ACEOF
11349/* confdefs.h.  */
11350_ACEOF
11351cat confdefs.h >>conftest.$ac_ext
11352cat >>conftest.$ac_ext <<_ACEOF
11353/* end confdefs.h.  */
11354int i;
11355_ACEOF
11356rm -f conftest.$ac_objext
11357if { (ac_try="$ac_compile"
11358case "(($ac_try" in
11359  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11360  *) ac_try_echo=$ac_try;;
11361esac
11362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11363  (eval "$ac_compile") 2>conftest.er1
11364  ac_status=$?
11365  grep -v '^ *+' conftest.er1 >conftest.err
11366  rm -f conftest.er1
11367  cat conftest.err >&5
11368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369  (exit $ac_status); } && {
11370	 test -z "$ac_c_werror_flag" ||
11371	 test ! -s conftest.err
11372       } && test -s conftest.$ac_objext; then
11373  xorg_testset_unknown_warning_option=yes
11374else
11375  echo "$as_me: failed program was:" >&5
11376sed 's/^/| /' conftest.$ac_ext >&5
11377
11378	xorg_testset_unknown_warning_option=no
11379fi
11380
11381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11382	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
11383echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
11384	CFLAGS="$xorg_testset_save_CFLAGS"
11385fi
11386
11387if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11388	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11389		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11390	fi
11391	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11392	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
11393echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
11394	cat >conftest.$ac_ext <<_ACEOF
11395/* confdefs.h.  */
11396_ACEOF
11397cat confdefs.h >>conftest.$ac_ext
11398cat >>conftest.$ac_ext <<_ACEOF
11399/* end confdefs.h.  */
11400int i;
11401_ACEOF
11402rm -f conftest.$ac_objext
11403if { (ac_try="$ac_compile"
11404case "(($ac_try" in
11405  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11406  *) ac_try_echo=$ac_try;;
11407esac
11408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11409  (eval "$ac_compile") 2>conftest.er1
11410  ac_status=$?
11411  grep -v '^ *+' conftest.er1 >conftest.err
11412  rm -f conftest.er1
11413  cat conftest.err >&5
11414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415  (exit $ac_status); } && {
11416	 test -z "$ac_c_werror_flag" ||
11417	 test ! -s conftest.err
11418       } && test -s conftest.$ac_objext; then
11419  xorg_testset_unused_command_line_argument=yes
11420else
11421  echo "$as_me: failed program was:" >&5
11422sed 's/^/| /' conftest.$ac_ext >&5
11423
11424	xorg_testset_unused_command_line_argument=no
11425fi
11426
11427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11428	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
11429echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
11430	CFLAGS="$xorg_testset_save_CFLAGS"
11431fi
11432
11433found="no"
11434
11435	if test $found = "no" ; then
11436		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11437			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11438		fi
11439
11440		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11441			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11442		fi
11443
11444		CFLAGS="$CFLAGS -Warray-bounds"
11445
11446		{ echo "$as_me:$LINENO: checking if $CC supports -Warray-bounds" >&5
11447echo $ECHO_N "checking if $CC supports -Warray-bounds... $ECHO_C" >&6; }
11448		cat >conftest.$ac_ext <<_ACEOF
11449/* confdefs.h.  */
11450_ACEOF
11451cat confdefs.h >>conftest.$ac_ext
11452cat >>conftest.$ac_ext <<_ACEOF
11453/* end confdefs.h.  */
11454int i;
11455int
11456main ()
11457{
11458
11459  ;
11460  return 0;
11461}
11462_ACEOF
11463rm -f conftest.$ac_objext conftest$ac_exeext
11464if { (ac_try="$ac_link"
11465case "(($ac_try" in
11466  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11467  *) ac_try_echo=$ac_try;;
11468esac
11469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11470  (eval "$ac_link") 2>conftest.er1
11471  ac_status=$?
11472  grep -v '^ *+' conftest.er1 >conftest.err
11473  rm -f conftest.er1
11474  cat conftest.err >&5
11475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476  (exit $ac_status); } && {
11477	 test -z "$ac_c_werror_flag" ||
11478	 test ! -s conftest.err
11479       } && test -s conftest$ac_exeext &&
11480       $as_test_x conftest$ac_exeext; then
11481  supported=yes
11482else
11483  echo "$as_me: failed program was:" >&5
11484sed 's/^/| /' conftest.$ac_ext >&5
11485
11486	supported=no
11487fi
11488
11489rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11490      conftest$ac_exeext conftest.$ac_ext
11491		{ echo "$as_me:$LINENO: result: $supported" >&5
11492echo "${ECHO_T}$supported" >&6; }
11493		CFLAGS="$xorg_testset_save_CFLAGS"
11494
11495		if test "$supported" = "yes" ; then
11496			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
11497			found="yes"
11498		fi
11499	fi
11500
11501
11502
11503
11504
11505
11506
11507xorg_testset_save_CFLAGS="$CFLAGS"
11508
11509if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11510	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11511	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
11512echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
11513	cat >conftest.$ac_ext <<_ACEOF
11514/* confdefs.h.  */
11515_ACEOF
11516cat confdefs.h >>conftest.$ac_ext
11517cat >>conftest.$ac_ext <<_ACEOF
11518/* end confdefs.h.  */
11519int i;
11520_ACEOF
11521rm -f conftest.$ac_objext
11522if { (ac_try="$ac_compile"
11523case "(($ac_try" in
11524  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11525  *) ac_try_echo=$ac_try;;
11526esac
11527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11528  (eval "$ac_compile") 2>conftest.er1
11529  ac_status=$?
11530  grep -v '^ *+' conftest.er1 >conftest.err
11531  rm -f conftest.er1
11532  cat conftest.err >&5
11533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534  (exit $ac_status); } && {
11535	 test -z "$ac_c_werror_flag" ||
11536	 test ! -s conftest.err
11537       } && test -s conftest.$ac_objext; then
11538  xorg_testset_unknown_warning_option=yes
11539else
11540  echo "$as_me: failed program was:" >&5
11541sed 's/^/| /' conftest.$ac_ext >&5
11542
11543	xorg_testset_unknown_warning_option=no
11544fi
11545
11546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11547	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
11548echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
11549	CFLAGS="$xorg_testset_save_CFLAGS"
11550fi
11551
11552if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11553	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11554		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11555	fi
11556	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11557	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
11558echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
11559	cat >conftest.$ac_ext <<_ACEOF
11560/* confdefs.h.  */
11561_ACEOF
11562cat confdefs.h >>conftest.$ac_ext
11563cat >>conftest.$ac_ext <<_ACEOF
11564/* end confdefs.h.  */
11565int i;
11566_ACEOF
11567rm -f conftest.$ac_objext
11568if { (ac_try="$ac_compile"
11569case "(($ac_try" in
11570  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11571  *) ac_try_echo=$ac_try;;
11572esac
11573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11574  (eval "$ac_compile") 2>conftest.er1
11575  ac_status=$?
11576  grep -v '^ *+' conftest.er1 >conftest.err
11577  rm -f conftest.er1
11578  cat conftest.err >&5
11579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580  (exit $ac_status); } && {
11581	 test -z "$ac_c_werror_flag" ||
11582	 test ! -s conftest.err
11583       } && test -s conftest.$ac_objext; then
11584  xorg_testset_unused_command_line_argument=yes
11585else
11586  echo "$as_me: failed program was:" >&5
11587sed 's/^/| /' conftest.$ac_ext >&5
11588
11589	xorg_testset_unused_command_line_argument=no
11590fi
11591
11592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11593	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
11594echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
11595	CFLAGS="$xorg_testset_save_CFLAGS"
11596fi
11597
11598found="no"
11599
11600	if test $found = "no" ; then
11601		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11602			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11603		fi
11604
11605		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11606			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11607		fi
11608
11609		CFLAGS="$CFLAGS -Wwrite-strings"
11610
11611		{ echo "$as_me:$LINENO: checking if $CC supports -Wwrite-strings" >&5
11612echo $ECHO_N "checking if $CC supports -Wwrite-strings... $ECHO_C" >&6; }
11613		cat >conftest.$ac_ext <<_ACEOF
11614/* confdefs.h.  */
11615_ACEOF
11616cat confdefs.h >>conftest.$ac_ext
11617cat >>conftest.$ac_ext <<_ACEOF
11618/* end confdefs.h.  */
11619int i;
11620int
11621main ()
11622{
11623
11624  ;
11625  return 0;
11626}
11627_ACEOF
11628rm -f conftest.$ac_objext conftest$ac_exeext
11629if { (ac_try="$ac_link"
11630case "(($ac_try" in
11631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11632  *) ac_try_echo=$ac_try;;
11633esac
11634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11635  (eval "$ac_link") 2>conftest.er1
11636  ac_status=$?
11637  grep -v '^ *+' conftest.er1 >conftest.err
11638  rm -f conftest.er1
11639  cat conftest.err >&5
11640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641  (exit $ac_status); } && {
11642	 test -z "$ac_c_werror_flag" ||
11643	 test ! -s conftest.err
11644       } && test -s conftest$ac_exeext &&
11645       $as_test_x conftest$ac_exeext; then
11646  supported=yes
11647else
11648  echo "$as_me: failed program was:" >&5
11649sed 's/^/| /' conftest.$ac_ext >&5
11650
11651	supported=no
11652fi
11653
11654rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11655      conftest$ac_exeext conftest.$ac_ext
11656		{ echo "$as_me:$LINENO: result: $supported" >&5
11657echo "${ECHO_T}$supported" >&6; }
11658		CFLAGS="$xorg_testset_save_CFLAGS"
11659
11660		if test "$supported" = "yes" ; then
11661			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
11662			found="yes"
11663		fi
11664	fi
11665
11666
11667
11668
11669
11670
11671
11672xorg_testset_save_CFLAGS="$CFLAGS"
11673
11674if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11675	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11676	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
11677echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
11678	cat >conftest.$ac_ext <<_ACEOF
11679/* confdefs.h.  */
11680_ACEOF
11681cat confdefs.h >>conftest.$ac_ext
11682cat >>conftest.$ac_ext <<_ACEOF
11683/* end confdefs.h.  */
11684int i;
11685_ACEOF
11686rm -f conftest.$ac_objext
11687if { (ac_try="$ac_compile"
11688case "(($ac_try" in
11689  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11690  *) ac_try_echo=$ac_try;;
11691esac
11692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11693  (eval "$ac_compile") 2>conftest.er1
11694  ac_status=$?
11695  grep -v '^ *+' conftest.er1 >conftest.err
11696  rm -f conftest.er1
11697  cat conftest.err >&5
11698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699  (exit $ac_status); } && {
11700	 test -z "$ac_c_werror_flag" ||
11701	 test ! -s conftest.err
11702       } && test -s conftest.$ac_objext; then
11703  xorg_testset_unknown_warning_option=yes
11704else
11705  echo "$as_me: failed program was:" >&5
11706sed 's/^/| /' conftest.$ac_ext >&5
11707
11708	xorg_testset_unknown_warning_option=no
11709fi
11710
11711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11712	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
11713echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
11714	CFLAGS="$xorg_testset_save_CFLAGS"
11715fi
11716
11717if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11718	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11719		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11720	fi
11721	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11722	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
11723echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
11724	cat >conftest.$ac_ext <<_ACEOF
11725/* confdefs.h.  */
11726_ACEOF
11727cat confdefs.h >>conftest.$ac_ext
11728cat >>conftest.$ac_ext <<_ACEOF
11729/* end confdefs.h.  */
11730int i;
11731_ACEOF
11732rm -f conftest.$ac_objext
11733if { (ac_try="$ac_compile"
11734case "(($ac_try" in
11735  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11736  *) ac_try_echo=$ac_try;;
11737esac
11738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11739  (eval "$ac_compile") 2>conftest.er1
11740  ac_status=$?
11741  grep -v '^ *+' conftest.er1 >conftest.err
11742  rm -f conftest.er1
11743  cat conftest.err >&5
11744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745  (exit $ac_status); } && {
11746	 test -z "$ac_c_werror_flag" ||
11747	 test ! -s conftest.err
11748       } && test -s conftest.$ac_objext; then
11749  xorg_testset_unused_command_line_argument=yes
11750else
11751  echo "$as_me: failed program was:" >&5
11752sed 's/^/| /' conftest.$ac_ext >&5
11753
11754	xorg_testset_unused_command_line_argument=no
11755fi
11756
11757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11758	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
11759echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
11760	CFLAGS="$xorg_testset_save_CFLAGS"
11761fi
11762
11763found="no"
11764
11765	if test $found = "no" ; then
11766		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11767			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11768		fi
11769
11770		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11771			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11772		fi
11773
11774		CFLAGS="$CFLAGS -Waddress"
11775
11776		{ echo "$as_me:$LINENO: checking if $CC supports -Waddress" >&5
11777echo $ECHO_N "checking if $CC supports -Waddress... $ECHO_C" >&6; }
11778		cat >conftest.$ac_ext <<_ACEOF
11779/* confdefs.h.  */
11780_ACEOF
11781cat confdefs.h >>conftest.$ac_ext
11782cat >>conftest.$ac_ext <<_ACEOF
11783/* end confdefs.h.  */
11784int i;
11785int
11786main ()
11787{
11788
11789  ;
11790  return 0;
11791}
11792_ACEOF
11793rm -f conftest.$ac_objext conftest$ac_exeext
11794if { (ac_try="$ac_link"
11795case "(($ac_try" in
11796  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11797  *) ac_try_echo=$ac_try;;
11798esac
11799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11800  (eval "$ac_link") 2>conftest.er1
11801  ac_status=$?
11802  grep -v '^ *+' conftest.er1 >conftest.err
11803  rm -f conftest.er1
11804  cat conftest.err >&5
11805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806  (exit $ac_status); } && {
11807	 test -z "$ac_c_werror_flag" ||
11808	 test ! -s conftest.err
11809       } && test -s conftest$ac_exeext &&
11810       $as_test_x conftest$ac_exeext; then
11811  supported=yes
11812else
11813  echo "$as_me: failed program was:" >&5
11814sed 's/^/| /' conftest.$ac_ext >&5
11815
11816	supported=no
11817fi
11818
11819rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11820      conftest$ac_exeext conftest.$ac_ext
11821		{ echo "$as_me:$LINENO: result: $supported" >&5
11822echo "${ECHO_T}$supported" >&6; }
11823		CFLAGS="$xorg_testset_save_CFLAGS"
11824
11825		if test "$supported" = "yes" ; then
11826			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
11827			found="yes"
11828		fi
11829	fi
11830
11831
11832
11833
11834
11835
11836
11837xorg_testset_save_CFLAGS="$CFLAGS"
11838
11839if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11840	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11841	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
11842echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
11843	cat >conftest.$ac_ext <<_ACEOF
11844/* confdefs.h.  */
11845_ACEOF
11846cat confdefs.h >>conftest.$ac_ext
11847cat >>conftest.$ac_ext <<_ACEOF
11848/* end confdefs.h.  */
11849int i;
11850_ACEOF
11851rm -f conftest.$ac_objext
11852if { (ac_try="$ac_compile"
11853case "(($ac_try" in
11854  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11855  *) ac_try_echo=$ac_try;;
11856esac
11857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11858  (eval "$ac_compile") 2>conftest.er1
11859  ac_status=$?
11860  grep -v '^ *+' conftest.er1 >conftest.err
11861  rm -f conftest.er1
11862  cat conftest.err >&5
11863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864  (exit $ac_status); } && {
11865	 test -z "$ac_c_werror_flag" ||
11866	 test ! -s conftest.err
11867       } && test -s conftest.$ac_objext; then
11868  xorg_testset_unknown_warning_option=yes
11869else
11870  echo "$as_me: failed program was:" >&5
11871sed 's/^/| /' conftest.$ac_ext >&5
11872
11873	xorg_testset_unknown_warning_option=no
11874fi
11875
11876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11877	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
11878echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
11879	CFLAGS="$xorg_testset_save_CFLAGS"
11880fi
11881
11882if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11883	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11884		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11885	fi
11886	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11887	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
11888echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
11889	cat >conftest.$ac_ext <<_ACEOF
11890/* confdefs.h.  */
11891_ACEOF
11892cat confdefs.h >>conftest.$ac_ext
11893cat >>conftest.$ac_ext <<_ACEOF
11894/* end confdefs.h.  */
11895int i;
11896_ACEOF
11897rm -f conftest.$ac_objext
11898if { (ac_try="$ac_compile"
11899case "(($ac_try" in
11900  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11901  *) ac_try_echo=$ac_try;;
11902esac
11903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11904  (eval "$ac_compile") 2>conftest.er1
11905  ac_status=$?
11906  grep -v '^ *+' conftest.er1 >conftest.err
11907  rm -f conftest.er1
11908  cat conftest.err >&5
11909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910  (exit $ac_status); } && {
11911	 test -z "$ac_c_werror_flag" ||
11912	 test ! -s conftest.err
11913       } && test -s conftest.$ac_objext; then
11914  xorg_testset_unused_command_line_argument=yes
11915else
11916  echo "$as_me: failed program was:" >&5
11917sed 's/^/| /' conftest.$ac_ext >&5
11918
11919	xorg_testset_unused_command_line_argument=no
11920fi
11921
11922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11923	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
11924echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
11925	CFLAGS="$xorg_testset_save_CFLAGS"
11926fi
11927
11928found="no"
11929
11930	if test $found = "no" ; then
11931		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11932			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11933		fi
11934
11935		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11936			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11937		fi
11938
11939		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
11940
11941		{ echo "$as_me:$LINENO: checking if $CC supports -Wint-to-pointer-cast" >&5
11942echo $ECHO_N "checking if $CC supports -Wint-to-pointer-cast... $ECHO_C" >&6; }
11943		cat >conftest.$ac_ext <<_ACEOF
11944/* confdefs.h.  */
11945_ACEOF
11946cat confdefs.h >>conftest.$ac_ext
11947cat >>conftest.$ac_ext <<_ACEOF
11948/* end confdefs.h.  */
11949int i;
11950int
11951main ()
11952{
11953
11954  ;
11955  return 0;
11956}
11957_ACEOF
11958rm -f conftest.$ac_objext conftest$ac_exeext
11959if { (ac_try="$ac_link"
11960case "(($ac_try" in
11961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11962  *) ac_try_echo=$ac_try;;
11963esac
11964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11965  (eval "$ac_link") 2>conftest.er1
11966  ac_status=$?
11967  grep -v '^ *+' conftest.er1 >conftest.err
11968  rm -f conftest.er1
11969  cat conftest.err >&5
11970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971  (exit $ac_status); } && {
11972	 test -z "$ac_c_werror_flag" ||
11973	 test ! -s conftest.err
11974       } && test -s conftest$ac_exeext &&
11975       $as_test_x conftest$ac_exeext; then
11976  supported=yes
11977else
11978  echo "$as_me: failed program was:" >&5
11979sed 's/^/| /' conftest.$ac_ext >&5
11980
11981	supported=no
11982fi
11983
11984rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11985      conftest$ac_exeext conftest.$ac_ext
11986		{ echo "$as_me:$LINENO: result: $supported" >&5
11987echo "${ECHO_T}$supported" >&6; }
11988		CFLAGS="$xorg_testset_save_CFLAGS"
11989
11990		if test "$supported" = "yes" ; then
11991			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
11992			found="yes"
11993		fi
11994	fi
11995
11996
11997
11998
11999
12000
12001
12002xorg_testset_save_CFLAGS="$CFLAGS"
12003
12004if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12005	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12006	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
12007echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
12008	cat >conftest.$ac_ext <<_ACEOF
12009/* confdefs.h.  */
12010_ACEOF
12011cat confdefs.h >>conftest.$ac_ext
12012cat >>conftest.$ac_ext <<_ACEOF
12013/* end confdefs.h.  */
12014int i;
12015_ACEOF
12016rm -f conftest.$ac_objext
12017if { (ac_try="$ac_compile"
12018case "(($ac_try" in
12019  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12020  *) ac_try_echo=$ac_try;;
12021esac
12022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12023  (eval "$ac_compile") 2>conftest.er1
12024  ac_status=$?
12025  grep -v '^ *+' conftest.er1 >conftest.err
12026  rm -f conftest.er1
12027  cat conftest.err >&5
12028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029  (exit $ac_status); } && {
12030	 test -z "$ac_c_werror_flag" ||
12031	 test ! -s conftest.err
12032       } && test -s conftest.$ac_objext; then
12033  xorg_testset_unknown_warning_option=yes
12034else
12035  echo "$as_me: failed program was:" >&5
12036sed 's/^/| /' conftest.$ac_ext >&5
12037
12038	xorg_testset_unknown_warning_option=no
12039fi
12040
12041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12042	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
12043echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
12044	CFLAGS="$xorg_testset_save_CFLAGS"
12045fi
12046
12047if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12048	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12049		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12050	fi
12051	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12052	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
12053echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
12054	cat >conftest.$ac_ext <<_ACEOF
12055/* confdefs.h.  */
12056_ACEOF
12057cat confdefs.h >>conftest.$ac_ext
12058cat >>conftest.$ac_ext <<_ACEOF
12059/* end confdefs.h.  */
12060int i;
12061_ACEOF
12062rm -f conftest.$ac_objext
12063if { (ac_try="$ac_compile"
12064case "(($ac_try" in
12065  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12066  *) ac_try_echo=$ac_try;;
12067esac
12068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12069  (eval "$ac_compile") 2>conftest.er1
12070  ac_status=$?
12071  grep -v '^ *+' conftest.er1 >conftest.err
12072  rm -f conftest.er1
12073  cat conftest.err >&5
12074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075  (exit $ac_status); } && {
12076	 test -z "$ac_c_werror_flag" ||
12077	 test ! -s conftest.err
12078       } && test -s conftest.$ac_objext; then
12079  xorg_testset_unused_command_line_argument=yes
12080else
12081  echo "$as_me: failed program was:" >&5
12082sed 's/^/| /' conftest.$ac_ext >&5
12083
12084	xorg_testset_unused_command_line_argument=no
12085fi
12086
12087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12088	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
12089echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
12090	CFLAGS="$xorg_testset_save_CFLAGS"
12091fi
12092
12093found="no"
12094
12095	if test $found = "no" ; then
12096		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12097			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12098		fi
12099
12100		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12101			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12102		fi
12103
12104		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
12105
12106		{ echo "$as_me:$LINENO: checking if $CC supports -Wpointer-to-int-cast" >&5
12107echo $ECHO_N "checking if $CC supports -Wpointer-to-int-cast... $ECHO_C" >&6; }
12108		cat >conftest.$ac_ext <<_ACEOF
12109/* confdefs.h.  */
12110_ACEOF
12111cat confdefs.h >>conftest.$ac_ext
12112cat >>conftest.$ac_ext <<_ACEOF
12113/* end confdefs.h.  */
12114int i;
12115int
12116main ()
12117{
12118
12119  ;
12120  return 0;
12121}
12122_ACEOF
12123rm -f conftest.$ac_objext conftest$ac_exeext
12124if { (ac_try="$ac_link"
12125case "(($ac_try" in
12126  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12127  *) ac_try_echo=$ac_try;;
12128esac
12129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12130  (eval "$ac_link") 2>conftest.er1
12131  ac_status=$?
12132  grep -v '^ *+' conftest.er1 >conftest.err
12133  rm -f conftest.er1
12134  cat conftest.err >&5
12135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136  (exit $ac_status); } && {
12137	 test -z "$ac_c_werror_flag" ||
12138	 test ! -s conftest.err
12139       } && test -s conftest$ac_exeext &&
12140       $as_test_x conftest$ac_exeext; then
12141  supported=yes
12142else
12143  echo "$as_me: failed program was:" >&5
12144sed 's/^/| /' conftest.$ac_ext >&5
12145
12146	supported=no
12147fi
12148
12149rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12150      conftest$ac_exeext conftest.$ac_ext
12151		{ echo "$as_me:$LINENO: result: $supported" >&5
12152echo "${ECHO_T}$supported" >&6; }
12153		CFLAGS="$xorg_testset_save_CFLAGS"
12154
12155		if test "$supported" = "yes" ; then
12156			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
12157			found="yes"
12158		fi
12159	fi
12160
12161
12162fi
12163
12164
12165
12166
12167
12168
12169CWARNFLAGS="$BASE_CFLAGS"
12170if  test "x$GCC" = xyes ; then
12171    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
12172fi
12173
12174
12175
12176
12177
12178
12179# Check whether --enable-strict-compilation was given.
12180if test "${enable_strict_compilation+set}" = set; then
12181  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
12182else
12183  STRICT_COMPILE=no
12184fi
12185
12186
12187STRICT_CFLAGS=""
12188
12189
12190
12191
12192
12193xorg_testset_save_CFLAGS="$CFLAGS"
12194
12195if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12196	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12197	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
12198echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
12199	cat >conftest.$ac_ext <<_ACEOF
12200/* confdefs.h.  */
12201_ACEOF
12202cat confdefs.h >>conftest.$ac_ext
12203cat >>conftest.$ac_ext <<_ACEOF
12204/* end confdefs.h.  */
12205int i;
12206_ACEOF
12207rm -f conftest.$ac_objext
12208if { (ac_try="$ac_compile"
12209case "(($ac_try" in
12210  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12211  *) ac_try_echo=$ac_try;;
12212esac
12213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12214  (eval "$ac_compile") 2>conftest.er1
12215  ac_status=$?
12216  grep -v '^ *+' conftest.er1 >conftest.err
12217  rm -f conftest.er1
12218  cat conftest.err >&5
12219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220  (exit $ac_status); } && {
12221	 test -z "$ac_c_werror_flag" ||
12222	 test ! -s conftest.err
12223       } && test -s conftest.$ac_objext; then
12224  xorg_testset_unknown_warning_option=yes
12225else
12226  echo "$as_me: failed program was:" >&5
12227sed 's/^/| /' conftest.$ac_ext >&5
12228
12229	xorg_testset_unknown_warning_option=no
12230fi
12231
12232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12233	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
12234echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
12235	CFLAGS="$xorg_testset_save_CFLAGS"
12236fi
12237
12238if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12239	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12240		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12241	fi
12242	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12243	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
12244echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
12245	cat >conftest.$ac_ext <<_ACEOF
12246/* confdefs.h.  */
12247_ACEOF
12248cat confdefs.h >>conftest.$ac_ext
12249cat >>conftest.$ac_ext <<_ACEOF
12250/* end confdefs.h.  */
12251int i;
12252_ACEOF
12253rm -f conftest.$ac_objext
12254if { (ac_try="$ac_compile"
12255case "(($ac_try" in
12256  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12257  *) ac_try_echo=$ac_try;;
12258esac
12259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12260  (eval "$ac_compile") 2>conftest.er1
12261  ac_status=$?
12262  grep -v '^ *+' conftest.er1 >conftest.err
12263  rm -f conftest.er1
12264  cat conftest.err >&5
12265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266  (exit $ac_status); } && {
12267	 test -z "$ac_c_werror_flag" ||
12268	 test ! -s conftest.err
12269       } && test -s conftest.$ac_objext; then
12270  xorg_testset_unused_command_line_argument=yes
12271else
12272  echo "$as_me: failed program was:" >&5
12273sed 's/^/| /' conftest.$ac_ext >&5
12274
12275	xorg_testset_unused_command_line_argument=no
12276fi
12277
12278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12279	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
12280echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
12281	CFLAGS="$xorg_testset_save_CFLAGS"
12282fi
12283
12284found="no"
12285
12286	if test $found = "no" ; then
12287		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12288			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12289		fi
12290
12291		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12292			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12293		fi
12294
12295		CFLAGS="$CFLAGS -pedantic"
12296
12297		{ echo "$as_me:$LINENO: checking if $CC supports -pedantic" >&5
12298echo $ECHO_N "checking if $CC supports -pedantic... $ECHO_C" >&6; }
12299		cat >conftest.$ac_ext <<_ACEOF
12300/* confdefs.h.  */
12301_ACEOF
12302cat confdefs.h >>conftest.$ac_ext
12303cat >>conftest.$ac_ext <<_ACEOF
12304/* end confdefs.h.  */
12305int i;
12306int
12307main ()
12308{
12309
12310  ;
12311  return 0;
12312}
12313_ACEOF
12314rm -f conftest.$ac_objext conftest$ac_exeext
12315if { (ac_try="$ac_link"
12316case "(($ac_try" in
12317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12318  *) ac_try_echo=$ac_try;;
12319esac
12320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12321  (eval "$ac_link") 2>conftest.er1
12322  ac_status=$?
12323  grep -v '^ *+' conftest.er1 >conftest.err
12324  rm -f conftest.er1
12325  cat conftest.err >&5
12326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327  (exit $ac_status); } && {
12328	 test -z "$ac_c_werror_flag" ||
12329	 test ! -s conftest.err
12330       } && test -s conftest$ac_exeext &&
12331       $as_test_x conftest$ac_exeext; then
12332  supported=yes
12333else
12334  echo "$as_me: failed program was:" >&5
12335sed 's/^/| /' conftest.$ac_ext >&5
12336
12337	supported=no
12338fi
12339
12340rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12341      conftest$ac_exeext conftest.$ac_ext
12342		{ echo "$as_me:$LINENO: result: $supported" >&5
12343echo "${ECHO_T}$supported" >&6; }
12344		CFLAGS="$xorg_testset_save_CFLAGS"
12345
12346		if test "$supported" = "yes" ; then
12347			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
12348			found="yes"
12349		fi
12350	fi
12351
12352
12353
12354
12355
12356
12357
12358xorg_testset_save_CFLAGS="$CFLAGS"
12359
12360if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12361	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12362	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
12363echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
12364	cat >conftest.$ac_ext <<_ACEOF
12365/* confdefs.h.  */
12366_ACEOF
12367cat confdefs.h >>conftest.$ac_ext
12368cat >>conftest.$ac_ext <<_ACEOF
12369/* end confdefs.h.  */
12370int i;
12371_ACEOF
12372rm -f conftest.$ac_objext
12373if { (ac_try="$ac_compile"
12374case "(($ac_try" in
12375  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12376  *) ac_try_echo=$ac_try;;
12377esac
12378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12379  (eval "$ac_compile") 2>conftest.er1
12380  ac_status=$?
12381  grep -v '^ *+' conftest.er1 >conftest.err
12382  rm -f conftest.er1
12383  cat conftest.err >&5
12384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385  (exit $ac_status); } && {
12386	 test -z "$ac_c_werror_flag" ||
12387	 test ! -s conftest.err
12388       } && test -s conftest.$ac_objext; then
12389  xorg_testset_unknown_warning_option=yes
12390else
12391  echo "$as_me: failed program was:" >&5
12392sed 's/^/| /' conftest.$ac_ext >&5
12393
12394	xorg_testset_unknown_warning_option=no
12395fi
12396
12397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12398	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
12399echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
12400	CFLAGS="$xorg_testset_save_CFLAGS"
12401fi
12402
12403if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12404	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12405		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12406	fi
12407	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12408	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
12409echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
12410	cat >conftest.$ac_ext <<_ACEOF
12411/* confdefs.h.  */
12412_ACEOF
12413cat confdefs.h >>conftest.$ac_ext
12414cat >>conftest.$ac_ext <<_ACEOF
12415/* end confdefs.h.  */
12416int i;
12417_ACEOF
12418rm -f conftest.$ac_objext
12419if { (ac_try="$ac_compile"
12420case "(($ac_try" in
12421  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12422  *) ac_try_echo=$ac_try;;
12423esac
12424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12425  (eval "$ac_compile") 2>conftest.er1
12426  ac_status=$?
12427  grep -v '^ *+' conftest.er1 >conftest.err
12428  rm -f conftest.er1
12429  cat conftest.err >&5
12430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431  (exit $ac_status); } && {
12432	 test -z "$ac_c_werror_flag" ||
12433	 test ! -s conftest.err
12434       } && test -s conftest.$ac_objext; then
12435  xorg_testset_unused_command_line_argument=yes
12436else
12437  echo "$as_me: failed program was:" >&5
12438sed 's/^/| /' conftest.$ac_ext >&5
12439
12440	xorg_testset_unused_command_line_argument=no
12441fi
12442
12443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12444	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
12445echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
12446	CFLAGS="$xorg_testset_save_CFLAGS"
12447fi
12448
12449found="no"
12450
12451	if test $found = "no" ; then
12452		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12453			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12454		fi
12455
12456		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12457			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12458		fi
12459
12460		CFLAGS="$CFLAGS -Werror"
12461
12462		{ echo "$as_me:$LINENO: checking if $CC supports -Werror" >&5
12463echo $ECHO_N "checking if $CC supports -Werror... $ECHO_C" >&6; }
12464		cat >conftest.$ac_ext <<_ACEOF
12465/* confdefs.h.  */
12466_ACEOF
12467cat confdefs.h >>conftest.$ac_ext
12468cat >>conftest.$ac_ext <<_ACEOF
12469/* end confdefs.h.  */
12470int i;
12471int
12472main ()
12473{
12474
12475  ;
12476  return 0;
12477}
12478_ACEOF
12479rm -f conftest.$ac_objext conftest$ac_exeext
12480if { (ac_try="$ac_link"
12481case "(($ac_try" in
12482  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12483  *) ac_try_echo=$ac_try;;
12484esac
12485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12486  (eval "$ac_link") 2>conftest.er1
12487  ac_status=$?
12488  grep -v '^ *+' conftest.er1 >conftest.err
12489  rm -f conftest.er1
12490  cat conftest.err >&5
12491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492  (exit $ac_status); } && {
12493	 test -z "$ac_c_werror_flag" ||
12494	 test ! -s conftest.err
12495       } && test -s conftest$ac_exeext &&
12496       $as_test_x conftest$ac_exeext; then
12497  supported=yes
12498else
12499  echo "$as_me: failed program was:" >&5
12500sed 's/^/| /' conftest.$ac_ext >&5
12501
12502	supported=no
12503fi
12504
12505rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12506      conftest$ac_exeext conftest.$ac_ext
12507		{ echo "$as_me:$LINENO: result: $supported" >&5
12508echo "${ECHO_T}$supported" >&6; }
12509		CFLAGS="$xorg_testset_save_CFLAGS"
12510
12511		if test "$supported" = "yes" ; then
12512			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
12513			found="yes"
12514		fi
12515	fi
12516
12517	if test $found = "no" ; then
12518		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12519			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12520		fi
12521
12522		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12523			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12524		fi
12525
12526		CFLAGS="$CFLAGS -errwarn"
12527
12528		{ echo "$as_me:$LINENO: checking if $CC supports -errwarn" >&5
12529echo $ECHO_N "checking if $CC supports -errwarn... $ECHO_C" >&6; }
12530		cat >conftest.$ac_ext <<_ACEOF
12531/* confdefs.h.  */
12532_ACEOF
12533cat confdefs.h >>conftest.$ac_ext
12534cat >>conftest.$ac_ext <<_ACEOF
12535/* end confdefs.h.  */
12536int i;
12537int
12538main ()
12539{
12540
12541  ;
12542  return 0;
12543}
12544_ACEOF
12545rm -f conftest.$ac_objext conftest$ac_exeext
12546if { (ac_try="$ac_link"
12547case "(($ac_try" in
12548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12549  *) ac_try_echo=$ac_try;;
12550esac
12551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12552  (eval "$ac_link") 2>conftest.er1
12553  ac_status=$?
12554  grep -v '^ *+' conftest.er1 >conftest.err
12555  rm -f conftest.er1
12556  cat conftest.err >&5
12557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558  (exit $ac_status); } && {
12559	 test -z "$ac_c_werror_flag" ||
12560	 test ! -s conftest.err
12561       } && test -s conftest$ac_exeext &&
12562       $as_test_x conftest$ac_exeext; then
12563  supported=yes
12564else
12565  echo "$as_me: failed program was:" >&5
12566sed 's/^/| /' conftest.$ac_ext >&5
12567
12568	supported=no
12569fi
12570
12571rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12572      conftest$ac_exeext conftest.$ac_ext
12573		{ echo "$as_me:$LINENO: result: $supported" >&5
12574echo "${ECHO_T}$supported" >&6; }
12575		CFLAGS="$xorg_testset_save_CFLAGS"
12576
12577		if test "$supported" = "yes" ; then
12578			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
12579			found="yes"
12580		fi
12581	fi
12582
12583
12584
12585# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
12586# activate it with -Werror, so we add it here explicitly.
12587
12588
12589
12590
12591
12592xorg_testset_save_CFLAGS="$CFLAGS"
12593
12594if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12595	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12596	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
12597echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
12598	cat >conftest.$ac_ext <<_ACEOF
12599/* confdefs.h.  */
12600_ACEOF
12601cat confdefs.h >>conftest.$ac_ext
12602cat >>conftest.$ac_ext <<_ACEOF
12603/* end confdefs.h.  */
12604int i;
12605_ACEOF
12606rm -f conftest.$ac_objext
12607if { (ac_try="$ac_compile"
12608case "(($ac_try" in
12609  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12610  *) ac_try_echo=$ac_try;;
12611esac
12612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12613  (eval "$ac_compile") 2>conftest.er1
12614  ac_status=$?
12615  grep -v '^ *+' conftest.er1 >conftest.err
12616  rm -f conftest.er1
12617  cat conftest.err >&5
12618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619  (exit $ac_status); } && {
12620	 test -z "$ac_c_werror_flag" ||
12621	 test ! -s conftest.err
12622       } && test -s conftest.$ac_objext; then
12623  xorg_testset_unknown_warning_option=yes
12624else
12625  echo "$as_me: failed program was:" >&5
12626sed 's/^/| /' conftest.$ac_ext >&5
12627
12628	xorg_testset_unknown_warning_option=no
12629fi
12630
12631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12632	{ echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
12633echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
12634	CFLAGS="$xorg_testset_save_CFLAGS"
12635fi
12636
12637if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12638	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12639		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12640	fi
12641	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12642	{ echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
12643echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
12644	cat >conftest.$ac_ext <<_ACEOF
12645/* confdefs.h.  */
12646_ACEOF
12647cat confdefs.h >>conftest.$ac_ext
12648cat >>conftest.$ac_ext <<_ACEOF
12649/* end confdefs.h.  */
12650int i;
12651_ACEOF
12652rm -f conftest.$ac_objext
12653if { (ac_try="$ac_compile"
12654case "(($ac_try" in
12655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12656  *) ac_try_echo=$ac_try;;
12657esac
12658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12659  (eval "$ac_compile") 2>conftest.er1
12660  ac_status=$?
12661  grep -v '^ *+' conftest.er1 >conftest.err
12662  rm -f conftest.er1
12663  cat conftest.err >&5
12664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665  (exit $ac_status); } && {
12666	 test -z "$ac_c_werror_flag" ||
12667	 test ! -s conftest.err
12668       } && test -s conftest.$ac_objext; then
12669  xorg_testset_unused_command_line_argument=yes
12670else
12671  echo "$as_me: failed program was:" >&5
12672sed 's/^/| /' conftest.$ac_ext >&5
12673
12674	xorg_testset_unused_command_line_argument=no
12675fi
12676
12677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12678	{ echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
12679echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
12680	CFLAGS="$xorg_testset_save_CFLAGS"
12681fi
12682
12683found="no"
12684
12685	if test $found = "no" ; then
12686		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12687			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12688		fi
12689
12690		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12691			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12692		fi
12693
12694		CFLAGS="$CFLAGS -Werror=attributes"
12695
12696		{ echo "$as_me:$LINENO: checking if $CC supports -Werror=attributes" >&5
12697echo $ECHO_N "checking if $CC supports -Werror=attributes... $ECHO_C" >&6; }
12698		cat >conftest.$ac_ext <<_ACEOF
12699/* confdefs.h.  */
12700_ACEOF
12701cat confdefs.h >>conftest.$ac_ext
12702cat >>conftest.$ac_ext <<_ACEOF
12703/* end confdefs.h.  */
12704int i;
12705int
12706main ()
12707{
12708
12709  ;
12710  return 0;
12711}
12712_ACEOF
12713rm -f conftest.$ac_objext conftest$ac_exeext
12714if { (ac_try="$ac_link"
12715case "(($ac_try" in
12716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12717  *) ac_try_echo=$ac_try;;
12718esac
12719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12720  (eval "$ac_link") 2>conftest.er1
12721  ac_status=$?
12722  grep -v '^ *+' conftest.er1 >conftest.err
12723  rm -f conftest.er1
12724  cat conftest.err >&5
12725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726  (exit $ac_status); } && {
12727	 test -z "$ac_c_werror_flag" ||
12728	 test ! -s conftest.err
12729       } && test -s conftest$ac_exeext &&
12730       $as_test_x conftest$ac_exeext; then
12731  supported=yes
12732else
12733  echo "$as_me: failed program was:" >&5
12734sed 's/^/| /' conftest.$ac_ext >&5
12735
12736	supported=no
12737fi
12738
12739rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12740      conftest$ac_exeext conftest.$ac_ext
12741		{ echo "$as_me:$LINENO: result: $supported" >&5
12742echo "${ECHO_T}$supported" >&6; }
12743		CFLAGS="$xorg_testset_save_CFLAGS"
12744
12745		if test "$supported" = "yes" ; then
12746			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
12747			found="yes"
12748		fi
12749	fi
12750
12751
12752
12753if test "x$STRICT_COMPILE" = "xyes"; then
12754    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
12755    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
12756fi
12757
12758
12759
12760
12761
12762
12763cat >>confdefs.h <<_ACEOF
12764#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
12765_ACEOF
12766
12767	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
12768	if test "x$PVM" = "x"; then
12769		PVM="0"
12770	fi
12771
12772cat >>confdefs.h <<_ACEOF
12773#define PACKAGE_VERSION_MINOR $PVM
12774_ACEOF
12775
12776	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
12777	if test "x$PVP" = "x"; then
12778		PVP="0"
12779	fi
12780
12781cat >>confdefs.h <<_ACEOF
12782#define PACKAGE_VERSION_PATCHLEVEL $PVP
12783_ACEOF
12784
12785
12786
12787CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
12788mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
12789|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
12790echo 'git directory not found: installing possibly empty changelog.' >&2)"
12791
12792
12793
12794
12795macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
12796INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
12797mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
12798|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
12799echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
12800
12801
12802
12803
12804
12805
12806if test x$APP_MAN_SUFFIX = x    ; then
12807    APP_MAN_SUFFIX=1
12808fi
12809if test x$APP_MAN_DIR = x    ; then
12810    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
12811fi
12812
12813if test x$LIB_MAN_SUFFIX = x    ; then
12814    LIB_MAN_SUFFIX=3
12815fi
12816if test x$LIB_MAN_DIR = x    ; then
12817    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
12818fi
12819
12820if test x$FILE_MAN_SUFFIX = x    ; then
12821    case $host_os in
12822	solaris*)	FILE_MAN_SUFFIX=4  ;;
12823	*)		FILE_MAN_SUFFIX=5  ;;
12824    esac
12825fi
12826if test x$FILE_MAN_DIR = x    ; then
12827    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
12828fi
12829
12830if test x$MISC_MAN_SUFFIX = x    ; then
12831    case $host_os in
12832	solaris*)	MISC_MAN_SUFFIX=5  ;;
12833	*)		MISC_MAN_SUFFIX=7  ;;
12834    esac
12835fi
12836if test x$MISC_MAN_DIR = x    ; then
12837    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
12838fi
12839
12840if test x$DRIVER_MAN_SUFFIX = x    ; then
12841    case $host_os in
12842	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
12843	*)		DRIVER_MAN_SUFFIX=4  ;;
12844    esac
12845fi
12846if test x$DRIVER_MAN_DIR = x    ; then
12847    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
12848fi
12849
12850if test x$ADMIN_MAN_SUFFIX = x    ; then
12851    case $host_os in
12852	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
12853	*)		ADMIN_MAN_SUFFIX=8  ;;
12854    esac
12855fi
12856if test x$ADMIN_MAN_DIR = x    ; then
12857    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
12858fi
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874XORG_MAN_PAGE="X Version 11"
12875
12876MAN_SUBSTS="\
12877	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
12878	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
12879	-e 's|__xservername__|Xorg|g' \
12880	-e 's|__xconfigfile__|xorg.conf|g' \
12881	-e 's|__projectroot__|\$(prefix)|g' \
12882	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
12883	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
12884	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
12885	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
12886	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
12887	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
12888	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
12889
12890
12891
12892AM_DEFAULT_VERBOSITY=1
12893
12894
12895
12896
12897
12898for ac_prog in cpp
12899do
12900  # Extract the first word of "$ac_prog", so it can be a program name with args.
12901set dummy $ac_prog; ac_word=$2
12902{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12904if test "${ac_cv_path_RAWCPP+set}" = set; then
12905  echo $ECHO_N "(cached) $ECHO_C" >&6
12906else
12907  case $RAWCPP in
12908  [\\/]* | ?:[\\/]*)
12909  ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
12910  ;;
12911  *)
12912  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12913as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
12914for as_dir in $as_dummy
12915do
12916  IFS=$as_save_IFS
12917  test -z "$as_dir" && as_dir=.
12918  for ac_exec_ext in '' $ac_executable_extensions; do
12919  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12920    ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext"
12921    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12922    break 2
12923  fi
12924done
12925done
12926IFS=$as_save_IFS
12927
12928  ;;
12929esac
12930fi
12931RAWCPP=$ac_cv_path_RAWCPP
12932if test -n "$RAWCPP"; then
12933  { echo "$as_me:$LINENO: result: $RAWCPP" >&5
12934echo "${ECHO_T}$RAWCPP" >&6; }
12935else
12936  { echo "$as_me:$LINENO: result: no" >&5
12937echo "${ECHO_T}no" >&6; }
12938fi
12939
12940
12941  test -n "$RAWCPP" && break
12942done
12943test -n "$RAWCPP" || RAWCPP="${CPP}"
12944
12945
12946# Check for flag to avoid builtin definitions - assumes unix is predefined,
12947# which is not the best choice for supporting other OS'es, but covers most
12948# of the ones we need for now.
12949{ echo "$as_me:$LINENO: checking if $RAWCPP requires -undef" >&5
12950echo $ECHO_N "checking if $RAWCPP requires -undef... $ECHO_C" >&6; }
12951cat >conftest.$ac_ext <<_ACEOF
12952/* confdefs.h.  */
12953_ACEOF
12954cat confdefs.h >>conftest.$ac_ext
12955cat >>conftest.$ac_ext <<_ACEOF
12956/* end confdefs.h.  */
12957Does cpp redefine unix ?
12958_ACEOF
12959if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
12960	{ echo "$as_me:$LINENO: result: no" >&5
12961echo "${ECHO_T}no" >&6; }
12962else
12963	if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
12964		RAWCPPFLAGS=-undef
12965		{ echo "$as_me:$LINENO: result: yes" >&5
12966echo "${ECHO_T}yes" >&6; }
12967	# under Cygwin unix is still defined even with -undef
12968	elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
12969		RAWCPPFLAGS="-undef -ansi"
12970		{ echo "$as_me:$LINENO: result: yes, with -ansi" >&5
12971echo "${ECHO_T}yes, with -ansi" >&6; }
12972	else
12973		{ { echo "$as_me:$LINENO: error: ${RAWCPP} defines unix with or without -undef.  I don't know what to do." >&5
12974echo "$as_me: error: ${RAWCPP} defines unix with or without -undef.  I don't know what to do." >&2;}
12975   { (exit 1); exit 1; }; }
12976	fi
12977fi
12978rm -f conftest.$ac_ext
12979
12980{ echo "$as_me:$LINENO: checking if $RAWCPP requires -traditional" >&5
12981echo $ECHO_N "checking if $RAWCPP requires -traditional... $ECHO_C" >&6; }
12982cat >conftest.$ac_ext <<_ACEOF
12983/* confdefs.h.  */
12984_ACEOF
12985cat confdefs.h >>conftest.$ac_ext
12986cat >>conftest.$ac_ext <<_ACEOF
12987/* end confdefs.h.  */
12988Does cpp preserve   "whitespace"?
12989_ACEOF
12990if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
12991	{ echo "$as_me:$LINENO: result: no" >&5
12992echo "${ECHO_T}no" >&6; }
12993else
12994	if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
12995		RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
12996		{ echo "$as_me:$LINENO: result: yes" >&5
12997echo "${ECHO_T}yes" >&6; }
12998	else
12999		{ { echo "$as_me:$LINENO: error: ${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." >&5
13000echo "$as_me: error: ${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." >&2;}
13001   { (exit 1); exit 1; }; }
13002	fi
13003fi
13004rm -f conftest.$ac_ext
13005
13006
13007{ echo "$as_me:$LINENO: checking host system type" >&5
13008echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
13009if test "${ac_cv_host+set}" = set; then
13010  echo $ECHO_N "(cached) $ECHO_C" >&6
13011else
13012  if test "x$host_alias" = x; then
13013  ac_cv_host=$ac_cv_build
13014else
13015  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
13016    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
13017echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
13018   { (exit 1); exit 1; }; }
13019fi
13020
13021fi
13022{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
13023echo "${ECHO_T}$ac_cv_host" >&6; }
13024case $ac_cv_host in
13025*-*-*) ;;
13026*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
13027echo "$as_me: error: invalid value of canonical host" >&2;}
13028   { (exit 1); exit 1; }; };;
13029esac
13030host=$ac_cv_host
13031ac_save_IFS=$IFS; IFS='-'
13032set x $ac_cv_host
13033shift
13034host_cpu=$1
13035host_vendor=$2
13036shift; shift
13037# Remember, the first character of IFS is used to create $*,
13038# except with old shells:
13039host_os=$*
13040IFS=$ac_save_IFS
13041case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
13042
13043
13044
13045# Build options
13046DEFAULT_XRDB=xrdb
13047DEFAULT_XMODMAP=xmodmap
13048DEFAULT_TWM=twm
13049DEFAULT_XCLOCK=xclock
13050DEFAULT_XTERM=xterm
13051# You always want to specify the full path to the X server
13052DEFAULT_XSERVER=${bindir}/X
13053DEFAULT_XAUTH=xauth
13054DEFAULT_XINIT=xinit
13055DEFAULT_XINITDIR=${libdir}/X11/xinit
13056
13057
13058# Check whether --with-xrdb was given.
13059if test "${with_xrdb+set}" = set; then
13060  withval=$with_xrdb; XRDB="$withval"
13061else
13062  XRDB="$DEFAULT_XRDB"
13063fi
13064
13065
13066
13067# Check whether --with-xmodmap was given.
13068if test "${with_xmodmap+set}" = set; then
13069  withval=$with_xmodmap; XMODMAP="$withval"
13070else
13071  XMODMAP="$DEFAULT_XMODMAP"
13072fi
13073
13074
13075
13076# Check whether --with-twm was given.
13077if test "${with_twm+set}" = set; then
13078  withval=$with_twm; TWM="$withval"
13079else
13080  TWM="$DEFAULT_TWM"
13081fi
13082
13083
13084
13085# Check whether --with-xclock was given.
13086if test "${with_xclock+set}" = set; then
13087  withval=$with_xclock; XCLOCK="$withval"
13088else
13089  XCLOCK="$DEFAULT_XCLOCK"
13090fi
13091
13092
13093
13094# Check whether --with-xterm was given.
13095if test "${with_xterm+set}" = set; then
13096  withval=$with_xterm; XTERM="$withval"
13097else
13098  XTERM="$DEFAULT_XTERM"
13099fi
13100
13101
13102
13103# Check whether --with-xserver was given.
13104if test "${with_xserver+set}" = set; then
13105  withval=$with_xserver; XSERVER="$withval"
13106else
13107  XSERVER="$DEFAULT_XSERVER"
13108fi
13109
13110
13111
13112# Check whether --with-xauth was given.
13113if test "${with_xauth+set}" = set; then
13114  withval=$with_xauth; XAUTH="$withval"
13115else
13116  XAUTH="$DEFAULT_XAUTH"
13117fi
13118
13119
13120
13121# Check whether --with-xinit was given.
13122if test "${with_xinit+set}" = set; then
13123  withval=$with_xinit; XINIT="$withval"
13124else
13125  XINIT="$DEFAULT_XINIT"
13126fi
13127
13128
13129
13130# Check whether --with-xinitdir was given.
13131if test "${with_xinitdir+set}" = set; then
13132  withval=$with_xinitdir; XINITDIR="$withval"
13133else
13134  XINITDIR="$DEFAULT_XINITDIR"
13135fi
13136
13137
13138
13139# Check whether --with-launchd was given.
13140if test "${with_launchd+set}" = set; then
13141  withval=$with_launchd; LAUNCHD=$withval
13142else
13143  LAUNCHD=auto
13144fi
13145
13146
13147# Check whether --with-launchagents-dir was given.
13148if test "${with_launchagents_dir+set}" = set; then
13149  withval=$with_launchagents_dir;  launchagentsdir="${withval}"
13150else
13151   launchagentsdir="/Library/LaunchAgents"
13152fi
13153
13154
13155# Check whether --with-launchagent-xserver was given.
13156if test "${with_launchagent_xserver+set}" = set; then
13157  withval=$with_launchagent_xserver;  launchagentxserver="${withval}"
13158else
13159   launchagentxserver="no"
13160fi
13161
13162
13163# Check whether --with-launchdaemons-dir was given.
13164if test "${with_launchdaemons_dir+set}" = set; then
13165  withval=$with_launchdaemons_dir;  launchdaemonsdir="${withval}"
13166else
13167   launchdaemonsdir="/Library/LaunchDaemons"
13168fi
13169
13170
13171# Check whether --with-launchd-id-prefix was given.
13172if test "${with_launchd_id_prefix+set}" = set; then
13173  withval=$with_launchd_id_prefix;  bundleidprefix="${withval}"
13174else
13175   bundleidprefix="org.x"
13176fi
13177
13178
13179# Check whether --with-bundle-id-prefix was given.
13180if test "${with_bundle_id_prefix+set}" = set; then
13181  withval=$with_bundle_id_prefix;  bundleidprefix="${withval}"
13182fi
13183
13184
13185if test "x$LAUNCHD" = "xauto"; then
13186	unset LAUNCHD
13187	# Extract the first word of "launchd", so it can be a program name with args.
13188set dummy launchd; ac_word=$2
13189{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13191if test "${ac_cv_prog_LAUNCHD+set}" = set; then
13192  echo $ECHO_N "(cached) $ECHO_C" >&6
13193else
13194  if test -n "$LAUNCHD"; then
13195  ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test.
13196else
13197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13198for as_dir in $PATH$PATH_SEPARATOR/sbin
13199do
13200  IFS=$as_save_IFS
13201  test -z "$as_dir" && as_dir=.
13202  for ac_exec_ext in '' $ac_executable_extensions; do
13203  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13204    ac_cv_prog_LAUNCHD="yes"
13205    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13206    break 2
13207  fi
13208done
13209done
13210IFS=$as_save_IFS
13211
13212  test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no"
13213fi
13214fi
13215LAUNCHD=$ac_cv_prog_LAUNCHD
13216if test -n "$LAUNCHD"; then
13217  { echo "$as_me:$LINENO: result: $LAUNCHD" >&5
13218echo "${ECHO_T}$LAUNCHD" >&6; }
13219else
13220  { echo "$as_me:$LINENO: result: no" >&5
13221echo "${ECHO_T}no" >&6; }
13222fi
13223
13224
13225fi
13226
13227TIGER_LAUNCHD=no
13228if test "x$LAUNCHD" = "xyes" ; then
13229
13230cat >>confdefs.h <<\_ACEOF
13231#define HAVE_LAUNCHD 1
13232_ACEOF
13233
13234	case $host_os in
13235		darwin8*)
13236			TIGER_LAUNCHD=yes
13237		;;
13238	esac
13239        { echo "$as_me:$LINENO: checking for dispatch_async" >&5
13240echo $ECHO_N "checking for dispatch_async... $ECHO_C" >&6; }
13241if test "${ac_cv_func_dispatch_async+set}" = set; then
13242  echo $ECHO_N "(cached) $ECHO_C" >&6
13243else
13244  cat >conftest.$ac_ext <<_ACEOF
13245/* confdefs.h.  */
13246_ACEOF
13247cat confdefs.h >>conftest.$ac_ext
13248cat >>conftest.$ac_ext <<_ACEOF
13249/* end confdefs.h.  */
13250/* Define dispatch_async to an innocuous variant, in case <limits.h> declares dispatch_async.
13251   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13252#define dispatch_async innocuous_dispatch_async
13253
13254/* System header to define __stub macros and hopefully few prototypes,
13255    which can conflict with char dispatch_async (); below.
13256    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13257    <limits.h> exists even on freestanding compilers.  */
13258
13259#ifdef __STDC__
13260# include <limits.h>
13261#else
13262# include <assert.h>
13263#endif
13264
13265#undef dispatch_async
13266
13267/* Override any GCC internal prototype to avoid an error.
13268   Use char because int might match the return type of a GCC
13269   builtin and then its argument prototype would still apply.  */
13270#ifdef __cplusplus
13271extern "C"
13272#endif
13273char dispatch_async ();
13274/* The GNU C library defines this for functions which it implements
13275    to always fail with ENOSYS.  Some functions are actually named
13276    something starting with __ and the normal name is an alias.  */
13277#if defined __stub_dispatch_async || defined __stub___dispatch_async
13278choke me
13279#endif
13280
13281int
13282main ()
13283{
13284return dispatch_async ();
13285  ;
13286  return 0;
13287}
13288_ACEOF
13289rm -f conftest.$ac_objext conftest$ac_exeext
13290if { (ac_try="$ac_link"
13291case "(($ac_try" in
13292  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13293  *) ac_try_echo=$ac_try;;
13294esac
13295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13296  (eval "$ac_link") 2>conftest.er1
13297  ac_status=$?
13298  grep -v '^ *+' conftest.er1 >conftest.err
13299  rm -f conftest.er1
13300  cat conftest.err >&5
13301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302  (exit $ac_status); } && {
13303	 test -z "$ac_c_werror_flag" ||
13304	 test ! -s conftest.err
13305       } && test -s conftest$ac_exeext &&
13306       $as_test_x conftest$ac_exeext; then
13307  ac_cv_func_dispatch_async=yes
13308else
13309  echo "$as_me: failed program was:" >&5
13310sed 's/^/| /' conftest.$ac_ext >&5
13311
13312	ac_cv_func_dispatch_async=no
13313fi
13314
13315rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13316      conftest$ac_exeext conftest.$ac_ext
13317fi
13318{ echo "$as_me:$LINENO: result: $ac_cv_func_dispatch_async" >&5
13319echo "${ECHO_T}$ac_cv_func_dispatch_async" >&6; }
13320if test $ac_cv_func_dispatch_async = yes; then
13321
13322cat >>confdefs.h <<\_ACEOF
13323#define HAVE_LIBDISPATCH 1
13324_ACEOF
13325
13326fi
13327
13328fi
13329
13330
13331cat >>confdefs.h <<_ACEOF
13332#define BUNDLE_ID_PREFIX "$bundleidprefix"
13333_ACEOF
13334
13335
13336
13337
13338
13339 if test "x$LAUNCHD" = "xyes"; then
13340  LAUNCHD_TRUE=
13341  LAUNCHD_FALSE='#'
13342else
13343  LAUNCHD_TRUE='#'
13344  LAUNCHD_FALSE=
13345fi
13346
13347 if test "x$TIGER_LAUNCHD" = "xyes"; then
13348  TIGER_LAUNCHD_TRUE=
13349  TIGER_LAUNCHD_FALSE='#'
13350else
13351  TIGER_LAUNCHD_TRUE='#'
13352  TIGER_LAUNCHD_FALSE=
13353fi
13354
13355 if test "x$launchagentxserver" != "xno"; then
13356  LAUNCHAGENT_XSERVER_TRUE=
13357  LAUNCHAGENT_XSERVER_FALSE='#'
13358else
13359  LAUNCHAGENT_XSERVER_TRUE='#'
13360  LAUNCHAGENT_XSERVER_FALSE=
13361fi
13362
13363
13364# Checks for pkg-config packages
13365
13366pkg_failed=no
13367{ echo "$as_me:$LINENO: checking for XINIT" >&5
13368echo $ECHO_N "checking for XINIT... $ECHO_C" >&6; }
13369
13370if test -n "$XINIT_CFLAGS"; then
13371    pkg_cv_XINIT_CFLAGS="$XINIT_CFLAGS"
13372 elif test -n "$PKG_CONFIG"; then
13373    if test -n "$PKG_CONFIG" && \
13374    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
13375  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
13376  ac_status=$?
13377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378  (exit $ac_status); }; then
13379  pkg_cv_XINIT_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
13380else
13381  pkg_failed=yes
13382fi
13383 else
13384    pkg_failed=untried
13385fi
13386if test -n "$XINIT_LIBS"; then
13387    pkg_cv_XINIT_LIBS="$XINIT_LIBS"
13388 elif test -n "$PKG_CONFIG"; then
13389    if test -n "$PKG_CONFIG" && \
13390    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
13391  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
13392  ac_status=$?
13393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394  (exit $ac_status); }; then
13395  pkg_cv_XINIT_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
13396else
13397  pkg_failed=yes
13398fi
13399 else
13400    pkg_failed=untried
13401fi
13402
13403
13404
13405if test $pkg_failed = yes; then
13406   	{ echo "$as_me:$LINENO: result: no" >&5
13407echo "${ECHO_T}no" >&6; }
13408
13409if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13410        _pkg_short_errors_supported=yes
13411else
13412        _pkg_short_errors_supported=no
13413fi
13414        if test $_pkg_short_errors_supported = yes; then
13415	        XINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1`
13416        else
13417	        XINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1`
13418        fi
13419	# Put the nasty error message in config.log where it belongs
13420	echo "$XINIT_PKG_ERRORS" >&5
13421
13422	{ { echo "$as_me:$LINENO: error: Package requirements (x11) were not met:
13423
13424$XINIT_PKG_ERRORS
13425
13426Consider adjusting the PKG_CONFIG_PATH environment variable if you
13427installed software in a non-standard prefix.
13428
13429Alternatively, you may set the environment variables XINIT_CFLAGS
13430and XINIT_LIBS to avoid the need to call pkg-config.
13431See the pkg-config man page for more details." >&5
13432echo "$as_me: error: Package requirements (x11) were not met:
13433
13434$XINIT_PKG_ERRORS
13435
13436Consider adjusting the PKG_CONFIG_PATH environment variable if you
13437installed software in a non-standard prefix.
13438
13439Alternatively, you may set the environment variables XINIT_CFLAGS
13440and XINIT_LIBS to avoid the need to call pkg-config.
13441See the pkg-config man page for more details." >&2;}
13442   { (exit 1); exit 1; }; }
13443elif test $pkg_failed = untried; then
13444     	{ echo "$as_me:$LINENO: result: no" >&5
13445echo "${ECHO_T}no" >&6; }
13446	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
13447is in your PATH or set the PKG_CONFIG environment variable to the full
13448path to pkg-config.
13449
13450Alternatively, you may set the environment variables XINIT_CFLAGS
13451and XINIT_LIBS to avoid the need to call pkg-config.
13452See the pkg-config man page for more details.
13453
13454To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13455See \`config.log' for more details." >&5
13456echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
13457is in your PATH or set the PKG_CONFIG environment variable to the full
13458path to pkg-config.
13459
13460Alternatively, you may set the environment variables XINIT_CFLAGS
13461and XINIT_LIBS to avoid the need to call pkg-config.
13462See the pkg-config man page for more details.
13463
13464To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13465See \`config.log' for more details." >&2;}
13466   { (exit 1); exit 1; }; }
13467else
13468	XINIT_CFLAGS=$pkg_cv_XINIT_CFLAGS
13469	XINIT_LIBS=$pkg_cv_XINIT_LIBS
13470        { echo "$as_me:$LINENO: result: yes" >&5
13471echo "${ECHO_T}yes" >&6; }
13472
13473fi
13474
13475case $host_os in
13476    *bsd*)
13477        XINIT_CFLAGS="$XINIT_CFLAGS -DCSRG_BASED"
13478        ;;
13479esac
13480
13481
13482for ac_prog in mcookie
13483do
13484  # Extract the first word of "$ac_prog", so it can be a program name with args.
13485set dummy $ac_prog; ac_word=$2
13486{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13488if test "${ac_cv_path_MCOOKIE+set}" = set; then
13489  echo $ECHO_N "(cached) $ECHO_C" >&6
13490else
13491  case $MCOOKIE in
13492  [\\/]* | ?:[\\/]*)
13493  ac_cv_path_MCOOKIE="$MCOOKIE" # Let the user override the test with a path.
13494  ;;
13495  *)
13496  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13497as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/local/bin"
13498for as_dir in $as_dummy
13499do
13500  IFS=$as_save_IFS
13501  test -z "$as_dir" && as_dir=.
13502  for ac_exec_ext in '' $ac_executable_extensions; do
13503  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13504    ac_cv_path_MCOOKIE="$as_dir/$ac_word$ac_exec_ext"
13505    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13506    break 2
13507  fi
13508done
13509done
13510IFS=$as_save_IFS
13511
13512  ;;
13513esac
13514fi
13515MCOOKIE=$ac_cv_path_MCOOKIE
13516if test -n "$MCOOKIE"; then
13517  { echo "$as_me:$LINENO: result: $MCOOKIE" >&5
13518echo "${ECHO_T}$MCOOKIE" >&6; }
13519else
13520  { echo "$as_me:$LINENO: result: no" >&5
13521echo "${ECHO_T}no" >&6; }
13522fi
13523
13524
13525  test -n "$MCOOKIE" && break
13526done
13527test -n "$MCOOKIE" || MCOOKIE="$MCOOKIE"
13528
13529
13530case $host_os in
13531	*openbsd*)
13532	MCOOKIE='/usr/sbin/openssl rand -hex 16'
13533	;;
13534	*solaris*)
13535	MCOOKIE="/usr/bin/od -X -A n -N 16 /dev/urandom | /usr/bin/tr -d ' '"
13536	;;
13537esac
13538
13539if test "x$MCOOKIE" != x ; then
13540	STARTX_COOKIE_FLAGS='-DHAS_COOKIE_MAKER -DMK_COOKIE="$(MCOOKIE)"'
13541fi
13542
13543
13544# Additional substitutions in startx, xinitrc & man pages
13545SHELL_CMD="/bin/sh"
13546XSERVERNAME="Xorg"
13547XCONFIGFILE="xorg.conf"
13548XCONFIGFILEMAN='${XCONFIGFILE} (${FILE_MAN_SUFFIX})'
13549case $host_os in
13550    cygwin*)
13551	XSERVERNAME="XWin"
13552	XCONFIGFILE="XWinrc"
13553	;;
13554    darwin*)
13555	XSERVERNAME="Xquartz"
13556	XCONFIGFILE="defaults"
13557	XCONFIGFILEMAN='defaults (1)'
13558	;;
13559    *solaris*)
13560	SHELL_CMD="/bin/ksh"
13561	;;
13562    *sco*)
13563	SHELL_CMD="/bin/ksh"
13564	SCOMAN=1
13565	;;
13566esac
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583ac_config_files="$ac_config_files Makefile man/Makefile launchd/Makefile launchd/privileged_startx/Makefile launchd/user_startx/Makefile"
13584
13585cat >confcache <<\_ACEOF
13586# This file is a shell script that caches the results of configure
13587# tests run on this system so they can be shared between configure
13588# scripts and configure runs, see configure's option --config-cache.
13589# It is not useful on other systems.  If it contains results you don't
13590# want to keep, you may remove or edit it.
13591#
13592# config.status only pays attention to the cache file if you give it
13593# the --recheck option to rerun configure.
13594#
13595# `ac_cv_env_foo' variables (set or unset) will be overridden when
13596# loading this file, other *unset* `ac_cv_foo' will be assigned the
13597# following values.
13598
13599_ACEOF
13600
13601# The following way of writing the cache mishandles newlines in values,
13602# but we know of no workaround that is simple, portable, and efficient.
13603# So, we kill variables containing newlines.
13604# Ultrix sh set writes to stderr and can't be redirected directly,
13605# and sets the high bit in the cache file unless we assign to the vars.
13606(
13607  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13608    eval ac_val=\$$ac_var
13609    case $ac_val in #(
13610    *${as_nl}*)
13611      case $ac_var in #(
13612      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13613echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13614      esac
13615      case $ac_var in #(
13616      _ | IFS | as_nl) ;; #(
13617      *) $as_unset $ac_var ;;
13618      esac ;;
13619    esac
13620  done
13621
13622  (set) 2>&1 |
13623    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13624    *${as_nl}ac_space=\ *)
13625      # `set' does not quote correctly, so add quotes (double-quote
13626      # substitution turns \\\\ into \\, and sed turns \\ into \).
13627      sed -n \
13628	"s/'/'\\\\''/g;
13629	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13630      ;; #(
13631    *)
13632      # `set' quotes correctly as required by POSIX, so do not add quotes.
13633      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13634      ;;
13635    esac |
13636    sort
13637) |
13638  sed '
13639     /^ac_cv_env_/b end
13640     t clear
13641     :clear
13642     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13643     t end
13644     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13645     :end' >>confcache
13646if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13647  if test -w "$cache_file"; then
13648    test "x$cache_file" != "x/dev/null" &&
13649      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
13650echo "$as_me: updating cache $cache_file" >&6;}
13651    cat confcache >$cache_file
13652  else
13653    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13654echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13655  fi
13656fi
13657rm -f confcache
13658
13659test "x$prefix" = xNONE && prefix=$ac_default_prefix
13660# Let make expand exec_prefix.
13661test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13662
13663DEFS=-DHAVE_CONFIG_H
13664
13665ac_libobjs=
13666ac_ltlibobjs=
13667for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13668  # 1. Remove the extension, and $U if already installed.
13669  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13670  ac_i=`echo "$ac_i" | sed "$ac_script"`
13671  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13672  #    will be set to the directory where LIBOBJS objects are built.
13673  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13674  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13675done
13676LIBOBJS=$ac_libobjs
13677
13678LTLIBOBJS=$ac_ltlibobjs
13679
13680
13681if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13682  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13683Usually this means the macro was only invoked conditionally." >&5
13684echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13685Usually this means the macro was only invoked conditionally." >&2;}
13686   { (exit 1); exit 1; }; }
13687fi
13688if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13689  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13690Usually this means the macro was only invoked conditionally." >&5
13691echo "$as_me: error: conditional \"AMDEP\" was never defined.
13692Usually this means the macro was only invoked conditionally." >&2;}
13693   { (exit 1); exit 1; }; }
13694fi
13695if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13696  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13697Usually this means the macro was only invoked conditionally." >&5
13698echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13699Usually this means the macro was only invoked conditionally." >&2;}
13700   { (exit 1); exit 1; }; }
13701fi
13702if test -z "${LAUNCHD_TRUE}" && test -z "${LAUNCHD_FALSE}"; then
13703  { { echo "$as_me:$LINENO: error: conditional \"LAUNCHD\" was never defined.
13704Usually this means the macro was only invoked conditionally." >&5
13705echo "$as_me: error: conditional \"LAUNCHD\" was never defined.
13706Usually this means the macro was only invoked conditionally." >&2;}
13707   { (exit 1); exit 1; }; }
13708fi
13709if test -z "${TIGER_LAUNCHD_TRUE}" && test -z "${TIGER_LAUNCHD_FALSE}"; then
13710  { { echo "$as_me:$LINENO: error: conditional \"TIGER_LAUNCHD\" was never defined.
13711Usually this means the macro was only invoked conditionally." >&5
13712echo "$as_me: error: conditional \"TIGER_LAUNCHD\" was never defined.
13713Usually this means the macro was only invoked conditionally." >&2;}
13714   { (exit 1); exit 1; }; }
13715fi
13716if test -z "${LAUNCHAGENT_XSERVER_TRUE}" && test -z "${LAUNCHAGENT_XSERVER_FALSE}"; then
13717  { { echo "$as_me:$LINENO: error: conditional \"LAUNCHAGENT_XSERVER\" was never defined.
13718Usually this means the macro was only invoked conditionally." >&5
13719echo "$as_me: error: conditional \"LAUNCHAGENT_XSERVER\" was never defined.
13720Usually this means the macro was only invoked conditionally." >&2;}
13721   { (exit 1); exit 1; }; }
13722fi
13723
13724: ${CONFIG_STATUS=./config.status}
13725ac_clean_files_save=$ac_clean_files
13726ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13727{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13728echo "$as_me: creating $CONFIG_STATUS" >&6;}
13729cat >$CONFIG_STATUS <<_ACEOF
13730#! $SHELL
13731# Generated by $as_me.
13732# Run this file to recreate the current configuration.
13733# Compiler output produced by configure, useful for debugging
13734# configure, is in config.log if it exists.
13735
13736debug=false
13737ac_cs_recheck=false
13738ac_cs_silent=false
13739SHELL=\${CONFIG_SHELL-$SHELL}
13740_ACEOF
13741
13742cat >>$CONFIG_STATUS <<\_ACEOF
13743## --------------------- ##
13744## M4sh Initialization.  ##
13745## --------------------- ##
13746
13747# Be more Bourne compatible
13748DUALCASE=1; export DUALCASE # for MKS sh
13749if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13750  emulate sh
13751  NULLCMD=:
13752  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13753  # is contrary to our usage.  Disable this feature.
13754  alias -g '${1+"$@"}'='"$@"'
13755  setopt NO_GLOB_SUBST
13756else
13757  case `(set -o) 2>/dev/null` in
13758  *posix*) set -o posix ;;
13759esac
13760
13761fi
13762
13763
13764
13765
13766# PATH needs CR
13767# Avoid depending upon Character Ranges.
13768as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13769as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13770as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13771as_cr_digits='0123456789'
13772as_cr_alnum=$as_cr_Letters$as_cr_digits
13773
13774# The user is always right.
13775if test "${PATH_SEPARATOR+set}" != set; then
13776  echo "#! /bin/sh" >conf$$.sh
13777  echo  "exit 0"   >>conf$$.sh
13778  chmod +x conf$$.sh
13779  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13780    PATH_SEPARATOR=';'
13781  else
13782    PATH_SEPARATOR=:
13783  fi
13784  rm -f conf$$.sh
13785fi
13786
13787# Support unset when possible.
13788if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13789  as_unset=unset
13790else
13791  as_unset=false
13792fi
13793
13794
13795# IFS
13796# We need space, tab and new line, in precisely that order.  Quoting is
13797# there to prevent editors from complaining about space-tab.
13798# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13799# splitting by setting IFS to empty value.)
13800as_nl='
13801'
13802IFS=" ""	$as_nl"
13803
13804# Find who we are.  Look in the path if we contain no directory separator.
13805case $0 in
13806  *[\\/]* ) as_myself=$0 ;;
13807  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13808for as_dir in $PATH
13809do
13810  IFS=$as_save_IFS
13811  test -z "$as_dir" && as_dir=.
13812  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13813done
13814IFS=$as_save_IFS
13815
13816     ;;
13817esac
13818# We did not find ourselves, most probably we were run as `sh COMMAND'
13819# in which case we are not to be found in the path.
13820if test "x$as_myself" = x; then
13821  as_myself=$0
13822fi
13823if test ! -f "$as_myself"; then
13824  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13825  { (exit 1); exit 1; }
13826fi
13827
13828# Work around bugs in pre-3.0 UWIN ksh.
13829for as_var in ENV MAIL MAILPATH
13830do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13831done
13832PS1='$ '
13833PS2='> '
13834PS4='+ '
13835
13836# NLS nuisances.
13837for as_var in \
13838  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13839  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13840  LC_TELEPHONE LC_TIME
13841do
13842  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13843    eval $as_var=C; export $as_var
13844  else
13845    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13846  fi
13847done
13848
13849# Required to use basename.
13850if expr a : '\(a\)' >/dev/null 2>&1 &&
13851   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13852  as_expr=expr
13853else
13854  as_expr=false
13855fi
13856
13857if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13858  as_basename=basename
13859else
13860  as_basename=false
13861fi
13862
13863
13864# Name of the executable.
13865as_me=`$as_basename -- "$0" ||
13866$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13867	 X"$0" : 'X\(//\)$' \| \
13868	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13869echo X/"$0" |
13870    sed '/^.*\/\([^/][^/]*\)\/*$/{
13871	    s//\1/
13872	    q
13873	  }
13874	  /^X\/\(\/\/\)$/{
13875	    s//\1/
13876	    q
13877	  }
13878	  /^X\/\(\/\).*/{
13879	    s//\1/
13880	    q
13881	  }
13882	  s/.*/./; q'`
13883
13884# CDPATH.
13885$as_unset CDPATH
13886
13887
13888
13889  as_lineno_1=$LINENO
13890  as_lineno_2=$LINENO
13891  test "x$as_lineno_1" != "x$as_lineno_2" &&
13892  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13893
13894  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13895  # uniformly replaced by the line number.  The first 'sed' inserts a
13896  # line-number line after each line using $LINENO; the second 'sed'
13897  # does the real work.  The second script uses 'N' to pair each
13898  # line-number line with the line containing $LINENO, and appends
13899  # trailing '-' during substitution so that $LINENO is not a special
13900  # case at line end.
13901  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13902  # scripts with optimization help from Paolo Bonzini.  Blame Lee
13903  # E. McMahon (1931-1989) for sed's syntax.  :-)
13904  sed -n '
13905    p
13906    /[$]LINENO/=
13907  ' <$as_myself |
13908    sed '
13909      s/[$]LINENO.*/&-/
13910      t lineno
13911      b
13912      :lineno
13913      N
13914      :loop
13915      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13916      t loop
13917      s/-\n.*//
13918    ' >$as_me.lineno &&
13919  chmod +x "$as_me.lineno" ||
13920    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13921   { (exit 1); exit 1; }; }
13922
13923  # Don't try to exec as it changes $[0], causing all sort of problems
13924  # (the dirname of $[0] is not the place where we might find the
13925  # original and so on.  Autoconf is especially sensitive to this).
13926  . "./$as_me.lineno"
13927  # Exit status is that of the last command.
13928  exit
13929}
13930
13931
13932if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13933  as_dirname=dirname
13934else
13935  as_dirname=false
13936fi
13937
13938ECHO_C= ECHO_N= ECHO_T=
13939case `echo -n x` in
13940-n*)
13941  case `echo 'x\c'` in
13942  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13943  *)   ECHO_C='\c';;
13944  esac;;
13945*)
13946  ECHO_N='-n';;
13947esac
13948
13949if expr a : '\(a\)' >/dev/null 2>&1 &&
13950   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13951  as_expr=expr
13952else
13953  as_expr=false
13954fi
13955
13956rm -f conf$$ conf$$.exe conf$$.file
13957if test -d conf$$.dir; then
13958  rm -f conf$$.dir/conf$$.file
13959else
13960  rm -f conf$$.dir
13961  mkdir conf$$.dir
13962fi
13963echo >conf$$.file
13964if ln -s conf$$.file conf$$ 2>/dev/null; then
13965  as_ln_s='ln -s'
13966  # ... but there are two gotchas:
13967  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13968  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13969  # In both cases, we have to default to `cp -p'.
13970  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13971    as_ln_s='cp -p'
13972elif ln conf$$.file conf$$ 2>/dev/null; then
13973  as_ln_s=ln
13974else
13975  as_ln_s='cp -p'
13976fi
13977rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13978rmdir conf$$.dir 2>/dev/null
13979
13980if mkdir -p . 2>/dev/null; then
13981  as_mkdir_p=:
13982else
13983  test -d ./-p && rmdir ./-p
13984  as_mkdir_p=false
13985fi
13986
13987if test -x / >/dev/null 2>&1; then
13988  as_test_x='test -x'
13989else
13990  if ls -dL / >/dev/null 2>&1; then
13991    as_ls_L_option=L
13992  else
13993    as_ls_L_option=
13994  fi
13995  as_test_x='
13996    eval sh -c '\''
13997      if test -d "$1"; then
13998        test -d "$1/.";
13999      else
14000	case $1 in
14001        -*)set "./$1";;
14002	esac;
14003	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14004	???[sx]*):;;*)false;;esac;fi
14005    '\'' sh
14006  '
14007fi
14008as_executable_p=$as_test_x
14009
14010# Sed expression to map a string onto a valid CPP name.
14011as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14012
14013# Sed expression to map a string onto a valid variable name.
14014as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14015
14016
14017exec 6>&1
14018
14019# Save the log message, to keep $[0] and so on meaningful, and to
14020# report actual input values of CONFIG_FILES etc. instead of their
14021# values after options handling.
14022ac_log="
14023This file was extended by xinit $as_me 1.3.2, which was
14024generated by GNU Autoconf 2.61.  Invocation command line was
14025
14026  CONFIG_FILES    = $CONFIG_FILES
14027  CONFIG_HEADERS  = $CONFIG_HEADERS
14028  CONFIG_LINKS    = $CONFIG_LINKS
14029  CONFIG_COMMANDS = $CONFIG_COMMANDS
14030  $ $0 $@
14031
14032on `(hostname || uname -n) 2>/dev/null | sed 1q`
14033"
14034
14035_ACEOF
14036
14037cat >>$CONFIG_STATUS <<_ACEOF
14038# Files that config.status was made for.
14039config_files="$ac_config_files"
14040config_headers="$ac_config_headers"
14041config_commands="$ac_config_commands"
14042
14043_ACEOF
14044
14045cat >>$CONFIG_STATUS <<\_ACEOF
14046ac_cs_usage="\
14047\`$as_me' instantiates files from templates according to the
14048current configuration.
14049
14050Usage: $0 [OPTIONS] [FILE]...
14051
14052  -h, --help       print this help, then exit
14053  -V, --version    print version number and configuration settings, then exit
14054  -q, --quiet      do not print progress messages
14055  -d, --debug      don't remove temporary files
14056      --recheck    update $as_me by reconfiguring in the same conditions
14057  --file=FILE[:TEMPLATE]
14058		   instantiate the configuration file FILE
14059  --header=FILE[:TEMPLATE]
14060		   instantiate the configuration header FILE
14061
14062Configuration files:
14063$config_files
14064
14065Configuration headers:
14066$config_headers
14067
14068Configuration commands:
14069$config_commands
14070
14071Report bugs to <bug-autoconf@gnu.org>."
14072
14073_ACEOF
14074cat >>$CONFIG_STATUS <<_ACEOF
14075ac_cs_version="\\
14076xinit config.status 1.3.2
14077configured by $0, generated by GNU Autoconf 2.61,
14078  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14079
14080Copyright (C) 2006 Free Software Foundation, Inc.
14081This config.status script is free software; the Free Software Foundation
14082gives unlimited permission to copy, distribute and modify it."
14083
14084ac_pwd='$ac_pwd'
14085srcdir='$srcdir'
14086INSTALL='$INSTALL'
14087MKDIR_P='$MKDIR_P'
14088_ACEOF
14089
14090cat >>$CONFIG_STATUS <<\_ACEOF
14091# If no file are specified by the user, then we need to provide default
14092# value.  By we need to know if files were specified by the user.
14093ac_need_defaults=:
14094while test $# != 0
14095do
14096  case $1 in
14097  --*=*)
14098    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14099    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14100    ac_shift=:
14101    ;;
14102  *)
14103    ac_option=$1
14104    ac_optarg=$2
14105    ac_shift=shift
14106    ;;
14107  esac
14108
14109  case $ac_option in
14110  # Handling of the options.
14111  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14112    ac_cs_recheck=: ;;
14113  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14114    echo "$ac_cs_version"; exit ;;
14115  --debug | --debu | --deb | --de | --d | -d )
14116    debug=: ;;
14117  --file | --fil | --fi | --f )
14118    $ac_shift
14119    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14120    ac_need_defaults=false;;
14121  --header | --heade | --head | --hea )
14122    $ac_shift
14123    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14124    ac_need_defaults=false;;
14125  --he | --h)
14126    # Conflict between --help and --header
14127    { echo "$as_me: error: ambiguous option: $1
14128Try \`$0 --help' for more information." >&2
14129   { (exit 1); exit 1; }; };;
14130  --help | --hel | -h )
14131    echo "$ac_cs_usage"; exit ;;
14132  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14133  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14134    ac_cs_silent=: ;;
14135
14136  # This is an error.
14137  -*) { echo "$as_me: error: unrecognized option: $1
14138Try \`$0 --help' for more information." >&2
14139   { (exit 1); exit 1; }; } ;;
14140
14141  *) ac_config_targets="$ac_config_targets $1"
14142     ac_need_defaults=false ;;
14143
14144  esac
14145  shift
14146done
14147
14148ac_configure_extra_args=
14149
14150if $ac_cs_silent; then
14151  exec 6>/dev/null
14152  ac_configure_extra_args="$ac_configure_extra_args --silent"
14153fi
14154
14155_ACEOF
14156cat >>$CONFIG_STATUS <<_ACEOF
14157if \$ac_cs_recheck; then
14158  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14159  CONFIG_SHELL=$SHELL
14160  export CONFIG_SHELL
14161  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14162fi
14163
14164_ACEOF
14165cat >>$CONFIG_STATUS <<\_ACEOF
14166exec 5>>config.log
14167{
14168  echo
14169  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14170## Running $as_me. ##
14171_ASBOX
14172  echo "$ac_log"
14173} >&5
14174
14175_ACEOF
14176cat >>$CONFIG_STATUS <<_ACEOF
14177#
14178# INIT-COMMANDS
14179#
14180AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14181
14182_ACEOF
14183
14184cat >>$CONFIG_STATUS <<\_ACEOF
14185
14186# Handling of arguments.
14187for ac_config_target in $ac_config_targets
14188do
14189  case $ac_config_target in
14190    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14191    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14192    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14193    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
14194    "launchd/Makefile") CONFIG_FILES="$CONFIG_FILES launchd/Makefile" ;;
14195    "launchd/privileged_startx/Makefile") CONFIG_FILES="$CONFIG_FILES launchd/privileged_startx/Makefile" ;;
14196    "launchd/user_startx/Makefile") CONFIG_FILES="$CONFIG_FILES launchd/user_startx/Makefile" ;;
14197
14198  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14199echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14200   { (exit 1); exit 1; }; };;
14201  esac
14202done
14203
14204
14205# If the user did not use the arguments to specify the items to instantiate,
14206# then the envvar interface is used.  Set only those that are not.
14207# We use the long form for the default assignment because of an extremely
14208# bizarre bug on SunOS 4.1.3.
14209if $ac_need_defaults; then
14210  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14211  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14212  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14213fi
14214
14215# Have a temporary directory for convenience.  Make it in the build tree
14216# simply because there is no reason against having it here, and in addition,
14217# creating and moving files from /tmp can sometimes cause problems.
14218# Hook for its removal unless debugging.
14219# Note that there is a small window in which the directory will not be cleaned:
14220# after its creation but before its name has been assigned to `$tmp'.
14221$debug ||
14222{
14223  tmp=
14224  trap 'exit_status=$?
14225  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14226' 0
14227  trap '{ (exit 1); exit 1; }' 1 2 13 15
14228}
14229# Create a (secure) tmp directory for tmp files.
14230
14231{
14232  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14233  test -n "$tmp" && test -d "$tmp"
14234}  ||
14235{
14236  tmp=./conf$$-$RANDOM
14237  (umask 077 && mkdir "$tmp")
14238} ||
14239{
14240   echo "$me: cannot create a temporary directory in ." >&2
14241   { (exit 1); exit 1; }
14242}
14243
14244#
14245# Set up the sed scripts for CONFIG_FILES section.
14246#
14247
14248# No need to generate the scripts if there are no CONFIG_FILES.
14249# This happens for instance when ./config.status config.h
14250if test -n "$CONFIG_FILES"; then
14251
14252_ACEOF
14253
14254
14255
14256ac_delim='%!_!# '
14257for ac_last_try in false false false false false :; do
14258  cat >conf$$subs.sed <<_ACEOF
14259SHELL!$SHELL$ac_delim
14260PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
14261PACKAGE_NAME!$PACKAGE_NAME$ac_delim
14262PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
14263PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
14264PACKAGE_STRING!$PACKAGE_STRING$ac_delim
14265PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
14266exec_prefix!$exec_prefix$ac_delim
14267prefix!$prefix$ac_delim
14268program_transform_name!$program_transform_name$ac_delim
14269bindir!$bindir$ac_delim
14270sbindir!$sbindir$ac_delim
14271libexecdir!$libexecdir$ac_delim
14272datarootdir!$datarootdir$ac_delim
14273datadir!$datadir$ac_delim
14274sysconfdir!$sysconfdir$ac_delim
14275sharedstatedir!$sharedstatedir$ac_delim
14276localstatedir!$localstatedir$ac_delim
14277includedir!$includedir$ac_delim
14278oldincludedir!$oldincludedir$ac_delim
14279docdir!$docdir$ac_delim
14280infodir!$infodir$ac_delim
14281htmldir!$htmldir$ac_delim
14282dvidir!$dvidir$ac_delim
14283pdfdir!$pdfdir$ac_delim
14284psdir!$psdir$ac_delim
14285libdir!$libdir$ac_delim
14286localedir!$localedir$ac_delim
14287mandir!$mandir$ac_delim
14288DEFS!$DEFS$ac_delim
14289ECHO_C!$ECHO_C$ac_delim
14290ECHO_N!$ECHO_N$ac_delim
14291ECHO_T!$ECHO_T$ac_delim
14292LIBS!$LIBS$ac_delim
14293build_alias!$build_alias$ac_delim
14294host_alias!$host_alias$ac_delim
14295target_alias!$target_alias$ac_delim
14296INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
14297INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14298INSTALL_DATA!$INSTALL_DATA$ac_delim
14299am__isrc!$am__isrc$ac_delim
14300CYGPATH_W!$CYGPATH_W$ac_delim
14301PACKAGE!$PACKAGE$ac_delim
14302VERSION!$VERSION$ac_delim
14303ACLOCAL!$ACLOCAL$ac_delim
14304AUTOCONF!$AUTOCONF$ac_delim
14305AUTOMAKE!$AUTOMAKE$ac_delim
14306AUTOHEADER!$AUTOHEADER$ac_delim
14307MAKEINFO!$MAKEINFO$ac_delim
14308install_sh!$install_sh$ac_delim
14309STRIP!$STRIP$ac_delim
14310INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
14311mkdir_p!$mkdir_p$ac_delim
14312AWK!$AWK$ac_delim
14313SET_MAKE!$SET_MAKE$ac_delim
14314am__leading_dot!$am__leading_dot$ac_delim
14315AMTAR!$AMTAR$ac_delim
14316am__tar!$am__tar$ac_delim
14317am__untar!$am__untar$ac_delim
14318MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
14319MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
14320MAINT!$MAINT$ac_delim
14321CC!$CC$ac_delim
14322CFLAGS!$CFLAGS$ac_delim
14323LDFLAGS!$LDFLAGS$ac_delim
14324CPPFLAGS!$CPPFLAGS$ac_delim
14325ac_ct_CC!$ac_ct_CC$ac_delim
14326EXEEXT!$EXEEXT$ac_delim
14327OBJEXT!$OBJEXT$ac_delim
14328DEPDIR!$DEPDIR$ac_delim
14329am__include!$am__include$ac_delim
14330am__quote!$am__quote$ac_delim
14331AMDEP_TRUE!$AMDEP_TRUE$ac_delim
14332AMDEP_FALSE!$AMDEP_FALSE$ac_delim
14333AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
14334CCDEPMODE!$CCDEPMODE$ac_delim
14335am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
14336am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
14337CPP!$CPP$ac_delim
14338GREP!$GREP$ac_delim
14339EGREP!$EGREP$ac_delim
14340BASE_CFLAGS!$BASE_CFLAGS$ac_delim
14341CWARNFLAGS!$CWARNFLAGS$ac_delim
14342STRICT_CFLAGS!$STRICT_CFLAGS$ac_delim
14343CHANGELOG_CMD!$CHANGELOG_CMD$ac_delim
14344PKG_CONFIG!$PKG_CONFIG$ac_delim
14345PKG_CONFIG_PATH!$PKG_CONFIG_PATH$ac_delim
14346PKG_CONFIG_LIBDIR!$PKG_CONFIG_LIBDIR$ac_delim
14347INSTALL_CMD!$INSTALL_CMD$ac_delim
14348build!$build$ac_delim
14349build_cpu!$build_cpu$ac_delim
14350build_vendor!$build_vendor$ac_delim
14351build_os!$build_os$ac_delim
14352host!$host$ac_delim
14353host_cpu!$host_cpu$ac_delim
14354host_vendor!$host_vendor$ac_delim
14355host_os!$host_os$ac_delim
14356_ACEOF
14357
14358  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
14359    break
14360  elif $ac_last_try; then
14361    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14362echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14363   { (exit 1); exit 1; }; }
14364  else
14365    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14366  fi
14367done
14368
14369ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14370if test -n "$ac_eof"; then
14371  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14372  ac_eof=`expr $ac_eof + 1`
14373fi
14374
14375cat >>$CONFIG_STATUS <<_ACEOF
14376cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14377/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14378_ACEOF
14379sed '
14380s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14381s/^/s,@/; s/!/@,|#_!!_#|/
14382:n
14383t n
14384s/'"$ac_delim"'$/,g/; t
14385s/$/\\/; p
14386N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14387' >>$CONFIG_STATUS <conf$$subs.sed
14388rm -f conf$$subs.sed
14389cat >>$CONFIG_STATUS <<_ACEOF
14390CEOF$ac_eof
14391_ACEOF
14392
14393
14394ac_delim='%!_!# '
14395for ac_last_try in false false false false false :; do
14396  cat >conf$$subs.sed <<_ACEOF
14397SED!$SED$ac_delim
14398APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim
14399LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim
14400FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim
14401MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim
14402DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim
14403ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim
14404APP_MAN_DIR!$APP_MAN_DIR$ac_delim
14405LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim
14406FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim
14407MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim
14408DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim
14409ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim
14410XORG_MAN_PAGE!$XORG_MAN_PAGE$ac_delim
14411MAN_SUBSTS!$MAN_SUBSTS$ac_delim
14412AM_DEFAULT_VERBOSITY!$AM_DEFAULT_VERBOSITY$ac_delim
14413RAWCPP!$RAWCPP$ac_delim
14414RAWCPPFLAGS!$RAWCPPFLAGS$ac_delim
14415LAUNCHD!$LAUNCHD$ac_delim
14416launchagentsdir!$launchagentsdir$ac_delim
14417launchdaemonsdir!$launchdaemonsdir$ac_delim
14418bundleidprefix!$bundleidprefix$ac_delim
14419launchagentxserver!$launchagentxserver$ac_delim
14420LAUNCHD_TRUE!$LAUNCHD_TRUE$ac_delim
14421LAUNCHD_FALSE!$LAUNCHD_FALSE$ac_delim
14422TIGER_LAUNCHD_TRUE!$TIGER_LAUNCHD_TRUE$ac_delim
14423TIGER_LAUNCHD_FALSE!$TIGER_LAUNCHD_FALSE$ac_delim
14424LAUNCHAGENT_XSERVER_TRUE!$LAUNCHAGENT_XSERVER_TRUE$ac_delim
14425LAUNCHAGENT_XSERVER_FALSE!$LAUNCHAGENT_XSERVER_FALSE$ac_delim
14426XINIT_CFLAGS!$XINIT_CFLAGS$ac_delim
14427XINIT_LIBS!$XINIT_LIBS$ac_delim
14428MCOOKIE!$MCOOKIE$ac_delim
14429STARTX_COOKIE_FLAGS!$STARTX_COOKIE_FLAGS$ac_delim
14430SHELL_CMD!$SHELL_CMD$ac_delim
14431SCOMAN!$SCOMAN$ac_delim
14432XSERVERNAME!$XSERVERNAME$ac_delim
14433XCONFIGFILE!$XCONFIGFILE$ac_delim
14434XCONFIGFILEMAN!$XCONFIGFILEMAN$ac_delim
14435XRDB!$XRDB$ac_delim
14436XMODMAP!$XMODMAP$ac_delim
14437TWM!$TWM$ac_delim
14438XCLOCK!$XCLOCK$ac_delim
14439XTERM!$XTERM$ac_delim
14440XSERVER!$XSERVER$ac_delim
14441XAUTH!$XAUTH$ac_delim
14442XINIT!$XINIT$ac_delim
14443XINITDIR!$XINITDIR$ac_delim
14444LIBOBJS!$LIBOBJS$ac_delim
14445LTLIBOBJS!$LTLIBOBJS$ac_delim
14446_ACEOF
14447
14448  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 49; then
14449    break
14450  elif $ac_last_try; then
14451    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14452echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14453   { (exit 1); exit 1; }; }
14454  else
14455    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14456  fi
14457done
14458
14459ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14460if test -n "$ac_eof"; then
14461  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14462  ac_eof=`expr $ac_eof + 1`
14463fi
14464
14465cat >>$CONFIG_STATUS <<_ACEOF
14466cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
14467/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14468_ACEOF
14469sed '
14470s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14471s/^/s,@/; s/!/@,|#_!!_#|/
14472:n
14473t n
14474s/'"$ac_delim"'$/,g/; t
14475s/$/\\/; p
14476N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14477' >>$CONFIG_STATUS <conf$$subs.sed
14478rm -f conf$$subs.sed
14479cat >>$CONFIG_STATUS <<_ACEOF
14480:end
14481s/|#_!!_#|//g
14482CEOF$ac_eof
14483_ACEOF
14484
14485
14486# VPATH may cause trouble with some makes, so we remove $(srcdir),
14487# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14488# trailing colons and then remove the whole line if VPATH becomes empty
14489# (actually we leave an empty line to preserve line numbers).
14490if test "x$srcdir" = x.; then
14491  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
14492s/:*\$(srcdir):*/:/
14493s/:*\${srcdir}:*/:/
14494s/:*@srcdir@:*/:/
14495s/^\([^=]*=[	 ]*\):*/\1/
14496s/:*$//
14497s/^[^=]*=[	 ]*$//
14498}'
14499fi
14500
14501cat >>$CONFIG_STATUS <<\_ACEOF
14502fi # test -n "$CONFIG_FILES"
14503
14504
14505for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
14506do
14507  case $ac_tag in
14508  :[FHLC]) ac_mode=$ac_tag; continue;;
14509  esac
14510  case $ac_mode$ac_tag in
14511  :[FHL]*:*);;
14512  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14513echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14514   { (exit 1); exit 1; }; };;
14515  :[FH]-) ac_tag=-:-;;
14516  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14517  esac
14518  ac_save_IFS=$IFS
14519  IFS=:
14520  set x $ac_tag
14521  IFS=$ac_save_IFS
14522  shift
14523  ac_file=$1
14524  shift
14525
14526  case $ac_mode in
14527  :L) ac_source=$1;;
14528  :[FH])
14529    ac_file_inputs=
14530    for ac_f
14531    do
14532      case $ac_f in
14533      -) ac_f="$tmp/stdin";;
14534      *) # Look for the file first in the build tree, then in the source tree
14535	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14536	 # because $ac_f cannot contain `:'.
14537	 test -f "$ac_f" ||
14538	   case $ac_f in
14539	   [\\/$]*) false;;
14540	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14541	   esac ||
14542	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14543echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14544   { (exit 1); exit 1; }; };;
14545      esac
14546      ac_file_inputs="$ac_file_inputs $ac_f"
14547    done
14548
14549    # Let's still pretend it is `configure' which instantiates (i.e., don't
14550    # use $as_me), people would be surprised to read:
14551    #    /* config.h.  Generated by config.status.  */
14552    configure_input="Generated from "`IFS=:
14553	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
14554    if test x"$ac_file" != x-; then
14555      configure_input="$ac_file.  $configure_input"
14556      { echo "$as_me:$LINENO: creating $ac_file" >&5
14557echo "$as_me: creating $ac_file" >&6;}
14558    fi
14559
14560    case $ac_tag in
14561    *:-:* | *:-) cat >"$tmp/stdin";;
14562    esac
14563    ;;
14564  esac
14565
14566  ac_dir=`$as_dirname -- "$ac_file" ||
14567$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14568	 X"$ac_file" : 'X\(//\)[^/]' \| \
14569	 X"$ac_file" : 'X\(//\)$' \| \
14570	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14571echo X"$ac_file" |
14572    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14573	    s//\1/
14574	    q
14575	  }
14576	  /^X\(\/\/\)[^/].*/{
14577	    s//\1/
14578	    q
14579	  }
14580	  /^X\(\/\/\)$/{
14581	    s//\1/
14582	    q
14583	  }
14584	  /^X\(\/\).*/{
14585	    s//\1/
14586	    q
14587	  }
14588	  s/.*/./; q'`
14589  { as_dir="$ac_dir"
14590  case $as_dir in #(
14591  -*) as_dir=./$as_dir;;
14592  esac
14593  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14594    as_dirs=
14595    while :; do
14596      case $as_dir in #(
14597      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14598      *) as_qdir=$as_dir;;
14599      esac
14600      as_dirs="'$as_qdir' $as_dirs"
14601      as_dir=`$as_dirname -- "$as_dir" ||
14602$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14603	 X"$as_dir" : 'X\(//\)[^/]' \| \
14604	 X"$as_dir" : 'X\(//\)$' \| \
14605	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14606echo X"$as_dir" |
14607    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14608	    s//\1/
14609	    q
14610	  }
14611	  /^X\(\/\/\)[^/].*/{
14612	    s//\1/
14613	    q
14614	  }
14615	  /^X\(\/\/\)$/{
14616	    s//\1/
14617	    q
14618	  }
14619	  /^X\(\/\).*/{
14620	    s//\1/
14621	    q
14622	  }
14623	  s/.*/./; q'`
14624      test -d "$as_dir" && break
14625    done
14626    test -z "$as_dirs" || eval "mkdir $as_dirs"
14627  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14628echo "$as_me: error: cannot create directory $as_dir" >&2;}
14629   { (exit 1); exit 1; }; }; }
14630  ac_builddir=.
14631
14632case "$ac_dir" in
14633.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14634*)
14635  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14636  # A ".." for each directory in $ac_dir_suffix.
14637  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
14638  case $ac_top_builddir_sub in
14639  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14640  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14641  esac ;;
14642esac
14643ac_abs_top_builddir=$ac_pwd
14644ac_abs_builddir=$ac_pwd$ac_dir_suffix
14645# for backward compatibility:
14646ac_top_builddir=$ac_top_build_prefix
14647
14648case $srcdir in
14649  .)  # We are building in place.
14650    ac_srcdir=.
14651    ac_top_srcdir=$ac_top_builddir_sub
14652    ac_abs_top_srcdir=$ac_pwd ;;
14653  [\\/]* | ?:[\\/]* )  # Absolute name.
14654    ac_srcdir=$srcdir$ac_dir_suffix;
14655    ac_top_srcdir=$srcdir
14656    ac_abs_top_srcdir=$srcdir ;;
14657  *) # Relative name.
14658    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14659    ac_top_srcdir=$ac_top_build_prefix$srcdir
14660    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14661esac
14662ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14663
14664
14665  case $ac_mode in
14666  :F)
14667  #
14668  # CONFIG_FILE
14669  #
14670
14671  case $INSTALL in
14672  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14673  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14674  esac
14675  ac_MKDIR_P=$MKDIR_P
14676  case $MKDIR_P in
14677  [\\/$]* | ?:[\\/]* ) ;;
14678  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14679  esac
14680_ACEOF
14681
14682cat >>$CONFIG_STATUS <<\_ACEOF
14683# If the template does not know about datarootdir, expand it.
14684# FIXME: This hack should be removed a few years after 2.60.
14685ac_datarootdir_hack=; ac_datarootdir_seen=
14686
14687case `sed -n '/datarootdir/ {
14688  p
14689  q
14690}
14691/@datadir@/p
14692/@docdir@/p
14693/@infodir@/p
14694/@localedir@/p
14695/@mandir@/p
14696' $ac_file_inputs` in
14697*datarootdir*) ac_datarootdir_seen=yes;;
14698*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14699  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14700echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14701_ACEOF
14702cat >>$CONFIG_STATUS <<_ACEOF
14703  ac_datarootdir_hack='
14704  s&@datadir@&$datadir&g
14705  s&@docdir@&$docdir&g
14706  s&@infodir@&$infodir&g
14707  s&@localedir@&$localedir&g
14708  s&@mandir@&$mandir&g
14709    s&\\\${datarootdir}&$datarootdir&g' ;;
14710esac
14711_ACEOF
14712
14713# Neutralize VPATH when `$srcdir' = `.'.
14714# Shell code in configure.ac might set extrasub.
14715# FIXME: do we really want to maintain this feature?
14716cat >>$CONFIG_STATUS <<_ACEOF
14717  sed "$ac_vpsub
14718$extrasub
14719_ACEOF
14720cat >>$CONFIG_STATUS <<\_ACEOF
14721:t
14722/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14723s&@configure_input@&$configure_input&;t t
14724s&@top_builddir@&$ac_top_builddir_sub&;t t
14725s&@srcdir@&$ac_srcdir&;t t
14726s&@abs_srcdir@&$ac_abs_srcdir&;t t
14727s&@top_srcdir@&$ac_top_srcdir&;t t
14728s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14729s&@builddir@&$ac_builddir&;t t
14730s&@abs_builddir@&$ac_abs_builddir&;t t
14731s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14732s&@INSTALL@&$ac_INSTALL&;t t
14733s&@MKDIR_P@&$ac_MKDIR_P&;t t
14734$ac_datarootdir_hack
14735" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
14736
14737test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14738  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14739  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14740  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14741which seems to be undefined.  Please make sure it is defined." >&5
14742echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14743which seems to be undefined.  Please make sure it is defined." >&2;}
14744
14745  rm -f "$tmp/stdin"
14746  case $ac_file in
14747  -) cat "$tmp/out"; rm -f "$tmp/out";;
14748  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
14749  esac
14750 ;;
14751  :H)
14752  #
14753  # CONFIG_HEADER
14754  #
14755_ACEOF
14756
14757# Transform confdefs.h into a sed script `conftest.defines', that
14758# substitutes the proper values into config.h.in to produce config.h.
14759rm -f conftest.defines conftest.tail
14760# First, append a space to every undef/define line, to ease matching.
14761echo 's/$/ /' >conftest.defines
14762# Then, protect against being on the right side of a sed subst, or in
14763# an unquoted here document, in config.status.  If some macros were
14764# called several times there might be several #defines for the same
14765# symbol, which is useless.  But do not sort them, since the last
14766# AC_DEFINE must be honored.
14767ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14768# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
14769# NAME is the cpp macro being defined, VALUE is the value it is being given.
14770# PARAMS is the parameter list in the macro definition--in most cases, it's
14771# just an empty string.
14772ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
14773ac_dB='\\)[	 (].*,\\1define\\2'
14774ac_dC=' '
14775ac_dD=' ,'
14776
14777uniq confdefs.h |
14778  sed -n '
14779	t rset
14780	:rset
14781	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
14782	t ok
14783	d
14784	:ok
14785	s/[\\&,]/\\&/g
14786	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
14787	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
14788  ' >>conftest.defines
14789
14790# Remove the space that was appended to ease matching.
14791# Then replace #undef with comments.  This is necessary, for
14792# example, in the case of _POSIX_SOURCE, which is predefined and required
14793# on some systems where configure will not decide to define it.
14794# (The regexp can be short, since the line contains either #define or #undef.)
14795echo 's/ $//
14796s,^[	 #]*u.*,/* & */,' >>conftest.defines
14797
14798# Break up conftest.defines:
14799ac_max_sed_lines=50
14800
14801# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
14802# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
14803# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
14804# et cetera.
14805ac_in='$ac_file_inputs'
14806ac_out='"$tmp/out1"'
14807ac_nxt='"$tmp/out2"'
14808
14809while :
14810do
14811  # Write a here document:
14812    cat >>$CONFIG_STATUS <<_ACEOF
14813    # First, check the format of the line:
14814    cat >"\$tmp/defines.sed" <<\\CEOF
14815/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*/b def
14816/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
14817b
14818:def
14819_ACEOF
14820  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
14821  echo 'CEOF
14822    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
14823  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
14824  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
14825  grep . conftest.tail >/dev/null || break
14826  rm -f conftest.defines
14827  mv conftest.tail conftest.defines
14828done
14829rm -f conftest.defines conftest.tail
14830
14831echo "ac_result=$ac_in" >>$CONFIG_STATUS
14832cat >>$CONFIG_STATUS <<\_ACEOF
14833  if test x"$ac_file" != x-; then
14834    echo "/* $configure_input  */" >"$tmp/config.h"
14835    cat "$ac_result" >>"$tmp/config.h"
14836    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
14837      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14838echo "$as_me: $ac_file is unchanged" >&6;}
14839    else
14840      rm -f $ac_file
14841      mv "$tmp/config.h" $ac_file
14842    fi
14843  else
14844    echo "/* $configure_input  */"
14845    cat "$ac_result"
14846  fi
14847  rm -f "$tmp/out12"
14848# Compute $ac_file's index in $config_headers.
14849_am_stamp_count=1
14850for _am_header in $config_headers :; do
14851  case $_am_header in
14852    $ac_file | $ac_file:* )
14853      break ;;
14854    * )
14855      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14856  esac
14857done
14858echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
14859$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14860	 X$ac_file : 'X\(//\)[^/]' \| \
14861	 X$ac_file : 'X\(//\)$' \| \
14862	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
14863echo X$ac_file |
14864    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14865	    s//\1/
14866	    q
14867	  }
14868	  /^X\(\/\/\)[^/].*/{
14869	    s//\1/
14870	    q
14871	  }
14872	  /^X\(\/\/\)$/{
14873	    s//\1/
14874	    q
14875	  }
14876	  /^X\(\/\).*/{
14877	    s//\1/
14878	    q
14879	  }
14880	  s/.*/./; q'`/stamp-h$_am_stamp_count
14881 ;;
14882
14883  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
14884echo "$as_me: executing $ac_file commands" >&6;}
14885 ;;
14886  esac
14887
14888
14889  case $ac_file$ac_mode in
14890    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14891  # Strip MF so we end up with the name of the file.
14892  mf=`echo "$mf" | sed -e 's/:.*$//'`
14893  # Check whether this is an Automake generated Makefile or not.
14894  # We used to match only the files named `Makefile.in', but
14895  # some people rename them; so instead we look at the file content.
14896  # Grep'ing the first line is not enough: some people post-process
14897  # each Makefile.in and add a new line on top of each file to say so.
14898  # Grep'ing the whole file is not good either: AIX grep has a line
14899  # limit of 2048, but all sed's we know have understand at least 4000.
14900  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
14901    dirpart=`$as_dirname -- "$mf" ||
14902$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14903	 X"$mf" : 'X\(//\)[^/]' \| \
14904	 X"$mf" : 'X\(//\)$' \| \
14905	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14906echo X"$mf" |
14907    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14908	    s//\1/
14909	    q
14910	  }
14911	  /^X\(\/\/\)[^/].*/{
14912	    s//\1/
14913	    q
14914	  }
14915	  /^X\(\/\/\)$/{
14916	    s//\1/
14917	    q
14918	  }
14919	  /^X\(\/\).*/{
14920	    s//\1/
14921	    q
14922	  }
14923	  s/.*/./; q'`
14924  else
14925    continue
14926  fi
14927  # Extract the definition of DEPDIR, am__include, and am__quote
14928  # from the Makefile without running `make'.
14929  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14930  test -z "$DEPDIR" && continue
14931  am__include=`sed -n 's/^am__include = //p' < "$mf"`
14932  test -z "am__include" && continue
14933  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14934  # When using ansi2knr, U may be empty or an underscore; expand it
14935  U=`sed -n 's/^U = //p' < "$mf"`
14936  # Find all dependency output files, they are included files with
14937  # $(DEPDIR) in their names.  We invoke sed twice because it is the
14938  # simplest approach to changing $(DEPDIR) to its actual value in the
14939  # expansion.
14940  for file in `sed -n "
14941    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14942       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14943    # Make sure the directory exists.
14944    test -f "$dirpart/$file" && continue
14945    fdir=`$as_dirname -- "$file" ||
14946$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14947	 X"$file" : 'X\(//\)[^/]' \| \
14948	 X"$file" : 'X\(//\)$' \| \
14949	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14950echo X"$file" |
14951    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14952	    s//\1/
14953	    q
14954	  }
14955	  /^X\(\/\/\)[^/].*/{
14956	    s//\1/
14957	    q
14958	  }
14959	  /^X\(\/\/\)$/{
14960	    s//\1/
14961	    q
14962	  }
14963	  /^X\(\/\).*/{
14964	    s//\1/
14965	    q
14966	  }
14967	  s/.*/./; q'`
14968    { as_dir=$dirpart/$fdir
14969  case $as_dir in #(
14970  -*) as_dir=./$as_dir;;
14971  esac
14972  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14973    as_dirs=
14974    while :; do
14975      case $as_dir in #(
14976      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14977      *) as_qdir=$as_dir;;
14978      esac
14979      as_dirs="'$as_qdir' $as_dirs"
14980      as_dir=`$as_dirname -- "$as_dir" ||
14981$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14982	 X"$as_dir" : 'X\(//\)[^/]' \| \
14983	 X"$as_dir" : 'X\(//\)$' \| \
14984	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14985echo X"$as_dir" |
14986    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14987	    s//\1/
14988	    q
14989	  }
14990	  /^X\(\/\/\)[^/].*/{
14991	    s//\1/
14992	    q
14993	  }
14994	  /^X\(\/\/\)$/{
14995	    s//\1/
14996	    q
14997	  }
14998	  /^X\(\/\).*/{
14999	    s//\1/
15000	    q
15001	  }
15002	  s/.*/./; q'`
15003      test -d "$as_dir" && break
15004    done
15005    test -z "$as_dirs" || eval "mkdir $as_dirs"
15006  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15007echo "$as_me: error: cannot create directory $as_dir" >&2;}
15008   { (exit 1); exit 1; }; }; }
15009    # echo "creating $dirpart/$file"
15010    echo '# dummy' > "$dirpart/$file"
15011  done
15012done
15013 ;;
15014
15015  esac
15016done # for ac_tag
15017
15018
15019{ (exit 0); exit 0; }
15020_ACEOF
15021chmod +x $CONFIG_STATUS
15022ac_clean_files=$ac_clean_files_save
15023
15024
15025# configure is writing to config.log, and then calls config.status.
15026# config.status does its own redirection, appending to config.log.
15027# Unfortunately, on DOS this fails, as config.log is still kept open
15028# by configure, so config.status won't be able to write to it; its
15029# output is simply discarded.  So we exec the FD to /dev/null,
15030# effectively closing config.log, so it can be properly (re)opened and
15031# appended to by config.status.  When coming back to configure, we
15032# need to make the FD available again.
15033if test "$no_create" != yes; then
15034  ac_cs_success=:
15035  ac_config_status_args=
15036  test "$silent" = yes &&
15037    ac_config_status_args="$ac_config_status_args --quiet"
15038  exec 5>/dev/null
15039  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15040  exec 5>>config.log
15041  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15042  # would make configure fail if this is the last instruction.
15043  $ac_cs_success || { (exit 1); exit 1; }
15044fi
15045
15046