configure revision 96402570
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for xauth 1.0.7.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1"
178  if (eval "$as_required") 2>/dev/null; then :
179  as_have_required=yes
180else
181  as_have_required=no
182fi
183  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189do
190  IFS=$as_save_IFS
191  test -z "$as_dir" && as_dir=.
192  as_found=:
193  case $as_dir in #(
194	 /*)
195	   for as_base in sh bash ksh sh5; do
196	     # Try only shells that exist, to save several forks.
197	     as_shell=$as_dir/$as_base
198	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200  CONFIG_SHELL=$as_shell as_have_required=yes
201		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202  break 2
203fi
204fi
205	   done;;
206       esac
207  as_found=false
208done
209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211  CONFIG_SHELL=$SHELL as_have_required=yes
212fi; }
213IFS=$as_save_IFS
214
215
216      if test "x$CONFIG_SHELL" != x; then :
217  # We cannot yet assume a decent shell, so we have to provide a
218	# neutralization value for shells without unset; and this also
219	# works around shells that cannot unset nonexistent variables.
220	# Preserve -v and -x to the replacement shell.
221	BASH_ENV=/dev/null
222	ENV=/dev/null
223	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224	export CONFIG_SHELL
225	case $- in # ((((
226	  *v*x* | *x*v* ) as_opts=-vx ;;
227	  *v* ) as_opts=-v ;;
228	  *x* ) as_opts=-x ;;
229	  * ) as_opts= ;;
230	esac
231	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232fi
233
234    if test x$as_have_required = xno; then :
235  $as_echo "$0: This script requires a shell more modern than all"
236  $as_echo "$0: the shells that I found on your system."
237  if test x${ZSH_VERSION+set} = xset ; then
238    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240  else
241    $as_echo "$0: Please tell bug-autoconf@gnu.org and
242$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243$0: about your system, including any error possibly output
244$0: before this message. Then install a modern shell, or
245$0: manually run the script under such a shell if you do
246$0: have one."
247  fi
248  exit 1
249fi
250fi
251fi
252SHELL=${CONFIG_SHELL-/bin/sh}
253export SHELL
254# Unset more variables known to interfere with behavior of common tools.
255CLICOLOR_FORCE= GREP_OPTIONS=
256unset CLICOLOR_FORCE GREP_OPTIONS
257
258## --------------------- ##
259## M4sh Shell Functions. ##
260## --------------------- ##
261# as_fn_unset VAR
262# ---------------
263# Portably unset VAR.
264as_fn_unset ()
265{
266  { eval $1=; unset $1;}
267}
268as_unset=as_fn_unset
269
270# as_fn_set_status STATUS
271# -----------------------
272# Set $? to STATUS, without forking.
273as_fn_set_status ()
274{
275  return $1
276} # as_fn_set_status
277
278# as_fn_exit STATUS
279# -----------------
280# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281as_fn_exit ()
282{
283  set +e
284  as_fn_set_status $1
285  exit $1
286} # as_fn_exit
287
288# as_fn_mkdir_p
289# -------------
290# Create "$as_dir" as a directory, including parents if necessary.
291as_fn_mkdir_p ()
292{
293
294  case $as_dir in #(
295  -*) as_dir=./$as_dir;;
296  esac
297  test -d "$as_dir" || eval $as_mkdir_p || {
298    as_dirs=
299    while :; do
300      case $as_dir in #(
301      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302      *) as_qdir=$as_dir;;
303      esac
304      as_dirs="'$as_qdir' $as_dirs"
305      as_dir=`$as_dirname -- "$as_dir" ||
306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307	 X"$as_dir" : 'X\(//\)[^/]' \| \
308	 X"$as_dir" : 'X\(//\)$' \| \
309	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310$as_echo X"$as_dir" |
311    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312	    s//\1/
313	    q
314	  }
315	  /^X\(\/\/\)[^/].*/{
316	    s//\1/
317	    q
318	  }
319	  /^X\(\/\/\)$/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\).*/{
324	    s//\1/
325	    q
326	  }
327	  s/.*/./; q'`
328      test -d "$as_dir" && break
329    done
330    test -z "$as_dirs" || eval "mkdir $as_dirs"
331  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334} # as_fn_mkdir_p
335# as_fn_append VAR VALUE
336# ----------------------
337# Append the text in VALUE to the end of the definition contained in VAR. Take
338# advantage of any shell optimizations that allow amortized linear growth over
339# repeated appends, instead of the typical quadratic growth present in naive
340# implementations.
341if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342  eval 'as_fn_append ()
343  {
344    eval $1+=\$2
345  }'
346else
347  as_fn_append ()
348  {
349    eval $1=\$$1\$2
350  }
351fi # as_fn_append
352
353# as_fn_arith ARG...
354# ------------------
355# Perform arithmetic evaluation on the ARGs, and store the result in the
356# global $as_val. Take advantage of shells that can avoid forks. The arguments
357# must be portable across $(()) and expr.
358if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359  eval 'as_fn_arith ()
360  {
361    as_val=$(( $* ))
362  }'
363else
364  as_fn_arith ()
365  {
366    as_val=`expr "$@" || test $? -eq 1`
367  }
368fi # as_fn_arith
369
370
371# as_fn_error STATUS ERROR [LINENO LOG_FD]
372# ----------------------------------------
373# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375# script with STATUS, using 1 if that was 0.
376as_fn_error ()
377{
378  as_status=$1; test $as_status -eq 0 && as_status=1
379  if test "$4"; then
380    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382  fi
383  $as_echo "$as_me: error: $2" >&2
384  as_fn_exit $as_status
385} # as_fn_error
386
387if expr a : '\(a\)' >/dev/null 2>&1 &&
388   test "X`expr 00001 : '.*\(...\)'`" = X001; then
389  as_expr=expr
390else
391  as_expr=false
392fi
393
394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395  as_basename=basename
396else
397  as_basename=false
398fi
399
400if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401  as_dirname=dirname
402else
403  as_dirname=false
404fi
405
406as_me=`$as_basename -- "$0" ||
407$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408	 X"$0" : 'X\(//\)$' \| \
409	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410$as_echo X/"$0" |
411    sed '/^.*\/\([^/][^/]*\)\/*$/{
412	    s//\1/
413	    q
414	  }
415	  /^X\/\(\/\/\)$/{
416	    s//\1/
417	    q
418	  }
419	  /^X\/\(\/\).*/{
420	    s//\1/
421	    q
422	  }
423	  s/.*/./; q'`
424
425# Avoid depending upon Character Ranges.
426as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429as_cr_digits='0123456789'
430as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433  as_lineno_1=$LINENO as_lineno_1a=$LINENO
434  as_lineno_2=$LINENO as_lineno_2a=$LINENO
435  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
438  sed -n '
439    p
440    /[$]LINENO/=
441  ' <$as_myself |
442    sed '
443      s/[$]LINENO.*/&-/
444      t lineno
445      b
446      :lineno
447      N
448      :loop
449      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450      t loop
451      s/-\n.*//
452    ' >$as_me.lineno &&
453  chmod +x "$as_me.lineno" ||
454    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456  # Don't try to exec as it changes $[0], causing all sort of problems
457  # (the dirname of $[0] is not the place where we might find the
458  # original and so on.  Autoconf is especially sensitive to this).
459  . "./$as_me.lineno"
460  # Exit status is that of the last command.
461  exit
462}
463
464ECHO_C= ECHO_N= ECHO_T=
465case `echo -n x` in #(((((
466-n*)
467  case `echo 'xy\c'` in
468  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
469  xy)  ECHO_C='\c';;
470  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
471       ECHO_T='	';;
472  esac;;
473*)
474  ECHO_N='-n';;
475esac
476
477rm -f conf$$ conf$$.exe conf$$.file
478if test -d conf$$.dir; then
479  rm -f conf$$.dir/conf$$.file
480else
481  rm -f conf$$.dir
482  mkdir conf$$.dir 2>/dev/null
483fi
484if (echo >conf$$.file) 2>/dev/null; then
485  if ln -s conf$$.file conf$$ 2>/dev/null; then
486    as_ln_s='ln -s'
487    # ... but there are two gotchas:
488    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490    # In both cases, we have to default to `cp -p'.
491    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492      as_ln_s='cp -p'
493  elif ln conf$$.file conf$$ 2>/dev/null; then
494    as_ln_s=ln
495  else
496    as_ln_s='cp -p'
497  fi
498else
499  as_ln_s='cp -p'
500fi
501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502rmdir conf$$.dir 2>/dev/null
503
504if mkdir -p . 2>/dev/null; then
505  as_mkdir_p='mkdir -p "$as_dir"'
506else
507  test -d ./-p && rmdir ./-p
508  as_mkdir_p=false
509fi
510
511if test -x / >/dev/null 2>&1; then
512  as_test_x='test -x'
513else
514  if ls -dL / >/dev/null 2>&1; then
515    as_ls_L_option=L
516  else
517    as_ls_L_option=
518  fi
519  as_test_x='
520    eval sh -c '\''
521      if test -d "$1"; then
522	test -d "$1/.";
523      else
524	case $1 in #(
525	-*)set "./$1";;
526	esac;
527	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528	???[sx]*):;;*)false;;esac;fi
529    '\'' sh
530  '
531fi
532as_executable_p=$as_test_x
533
534# Sed expression to map a string onto a valid CPP name.
535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537# Sed expression to map a string onto a valid variable name.
538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540
541test -n "$DJDIR" || exec 7<&0 </dev/null
542exec 6>&1
543
544# Name of the host.
545# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546# so uname gets run too.
547ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548
549#
550# Initializations.
551#
552ac_default_prefix=/usr/local
553ac_clean_files=
554ac_config_libobj_dir=.
555LIBOBJS=
556cross_compiling=no
557subdirs=
558MFLAGS=
559MAKEFLAGS=
560
561# Identity of this package.
562PACKAGE_NAME='xauth'
563PACKAGE_TARNAME='xauth'
564PACKAGE_VERSION='1.0.7'
565PACKAGE_STRING='xauth 1.0.7'
566PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567PACKAGE_URL=''
568
569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
572#ifdef HAVE_SYS_TYPES_H
573# include <sys/types.h>
574#endif
575#ifdef HAVE_SYS_STAT_H
576# include <sys/stat.h>
577#endif
578#ifdef STDC_HEADERS
579# include <stdlib.h>
580# include <stddef.h>
581#else
582# ifdef HAVE_STDLIB_H
583#  include <stdlib.h>
584# endif
585#endif
586#ifdef HAVE_STRING_H
587# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588#  include <memory.h>
589# endif
590# include <string.h>
591#endif
592#ifdef HAVE_STRINGS_H
593# include <strings.h>
594#endif
595#ifdef HAVE_INTTYPES_H
596# include <inttypes.h>
597#endif
598#ifdef HAVE_STDINT_H
599# include <stdint.h>
600#endif
601#ifdef HAVE_UNISTD_H
602# include <unistd.h>
603#endif"
604
605ac_subst_vars='am__EXEEXT_FALSE
606am__EXEEXT_TRUE
607LTLIBOBJS
608LIBOBJS
609LINT_FALSE
610LINT_TRUE
611LINT_FLAGS
612LINT
613XAUTH_LIBS
614XAUTH_CFLAGS
615AM_BACKSLASH
616AM_DEFAULT_VERBOSITY
617MAN_SUBSTS
618XORG_MAN_PAGE
619ADMIN_MAN_DIR
620DRIVER_MAN_DIR
621MISC_MAN_DIR
622FILE_MAN_DIR
623LIB_MAN_DIR
624APP_MAN_DIR
625ADMIN_MAN_SUFFIX
626DRIVER_MAN_SUFFIX
627MISC_MAN_SUFFIX
628FILE_MAN_SUFFIX
629LIB_MAN_SUFFIX
630APP_MAN_SUFFIX
631SED
632host_os
633host_vendor
634host_cpu
635host
636build_os
637build_vendor
638build_cpu
639build
640INSTALL_CMD
641PKG_CONFIG
642CHANGELOG_CMD
643STRICT_CFLAGS
644CWARNFLAGS
645BASE_CFLAGS
646EGREP
647GREP
648CPP
649am__fastdepCC_FALSE
650am__fastdepCC_TRUE
651CCDEPMODE
652AMDEPBACKSLASH
653AMDEP_FALSE
654AMDEP_TRUE
655am__quote
656am__include
657DEPDIR
658OBJEXT
659EXEEXT
660ac_ct_CC
661CPPFLAGS
662LDFLAGS
663CFLAGS
664CC
665MAINT
666MAINTAINER_MODE_FALSE
667MAINTAINER_MODE_TRUE
668am__untar
669am__tar
670AMTAR
671am__leading_dot
672SET_MAKE
673AWK
674mkdir_p
675MKDIR_P
676INSTALL_STRIP_PROGRAM
677STRIP
678install_sh
679MAKEINFO
680AUTOHEADER
681AUTOMAKE
682AUTOCONF
683ACLOCAL
684VERSION
685PACKAGE
686CYGPATH_W
687am__isrc
688INSTALL_DATA
689INSTALL_SCRIPT
690INSTALL_PROGRAM
691target_alias
692host_alias
693build_alias
694LIBS
695ECHO_T
696ECHO_N
697ECHO_C
698DEFS
699mandir
700localedir
701libdir
702psdir
703pdfdir
704dvidir
705htmldir
706infodir
707docdir
708oldincludedir
709includedir
710localstatedir
711sharedstatedir
712sysconfdir
713datadir
714datarootdir
715libexecdir
716sbindir
717bindir
718program_transform_name
719prefix
720exec_prefix
721PACKAGE_URL
722PACKAGE_BUGREPORT
723PACKAGE_STRING
724PACKAGE_VERSION
725PACKAGE_TARNAME
726PACKAGE_NAME
727PATH_SEPARATOR
728SHELL'
729ac_subst_files=''
730ac_user_opts='
731enable_option_checking
732enable_maintainer_mode
733enable_dependency_tracking
734enable_selective_werror
735enable_strict_compilation
736enable_silent_rules
737enable_unix_transport
738enable_tcp_transport
739enable_ipv6
740enable_local_transport
741with_lint
742'
743      ac_precious_vars='build_alias
744host_alias
745target_alias
746CC
747CFLAGS
748LDFLAGS
749LIBS
750CPPFLAGS
751CPP
752PKG_CONFIG
753XAUTH_CFLAGS
754XAUTH_LIBS
755LINT
756LINT_FLAGS'
757
758
759# Initialize some variables set by options.
760ac_init_help=
761ac_init_version=false
762ac_unrecognized_opts=
763ac_unrecognized_sep=
764# The variables have the same names as the options, with
765# dashes changed to underlines.
766cache_file=/dev/null
767exec_prefix=NONE
768no_create=
769no_recursion=
770prefix=NONE
771program_prefix=NONE
772program_suffix=NONE
773program_transform_name=s,x,x,
774silent=
775site=
776srcdir=
777verbose=
778x_includes=NONE
779x_libraries=NONE
780
781# Installation directory options.
782# These are left unexpanded so users can "make install exec_prefix=/foo"
783# and all the variables that are supposed to be based on exec_prefix
784# by default will actually change.
785# Use braces instead of parens because sh, perl, etc. also accept them.
786# (The list follows the same order as the GNU Coding Standards.)
787bindir='${exec_prefix}/bin'
788sbindir='${exec_prefix}/sbin'
789libexecdir='${exec_prefix}/libexec'
790datarootdir='${prefix}/share'
791datadir='${datarootdir}'
792sysconfdir='${prefix}/etc'
793sharedstatedir='${prefix}/com'
794localstatedir='${prefix}/var'
795includedir='${prefix}/include'
796oldincludedir='/usr/include'
797docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
798infodir='${datarootdir}/info'
799htmldir='${docdir}'
800dvidir='${docdir}'
801pdfdir='${docdir}'
802psdir='${docdir}'
803libdir='${exec_prefix}/lib'
804localedir='${datarootdir}/locale'
805mandir='${datarootdir}/man'
806
807ac_prev=
808ac_dashdash=
809for ac_option
810do
811  # If the previous option needs an argument, assign it.
812  if test -n "$ac_prev"; then
813    eval $ac_prev=\$ac_option
814    ac_prev=
815    continue
816  fi
817
818  case $ac_option in
819  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
820  *=)   ac_optarg= ;;
821  *)    ac_optarg=yes ;;
822  esac
823
824  # Accept the important Cygnus configure options, so we can diagnose typos.
825
826  case $ac_dashdash$ac_option in
827  --)
828    ac_dashdash=yes ;;
829
830  -bindir | --bindir | --bindi | --bind | --bin | --bi)
831    ac_prev=bindir ;;
832  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
833    bindir=$ac_optarg ;;
834
835  -build | --build | --buil | --bui | --bu)
836    ac_prev=build_alias ;;
837  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
838    build_alias=$ac_optarg ;;
839
840  -cache-file | --cache-file | --cache-fil | --cache-fi \
841  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
842    ac_prev=cache_file ;;
843  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
844  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
845    cache_file=$ac_optarg ;;
846
847  --config-cache | -C)
848    cache_file=config.cache ;;
849
850  -datadir | --datadir | --datadi | --datad)
851    ac_prev=datadir ;;
852  -datadir=* | --datadir=* | --datadi=* | --datad=*)
853    datadir=$ac_optarg ;;
854
855  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
856  | --dataroo | --dataro | --datar)
857    ac_prev=datarootdir ;;
858  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
859  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
860    datarootdir=$ac_optarg ;;
861
862  -disable-* | --disable-*)
863    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
864    # Reject names that are not valid shell variable names.
865    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
866      as_fn_error $? "invalid feature name: $ac_useropt"
867    ac_useropt_orig=$ac_useropt
868    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
869    case $ac_user_opts in
870      *"
871"enable_$ac_useropt"
872"*) ;;
873      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
874	 ac_unrecognized_sep=', ';;
875    esac
876    eval enable_$ac_useropt=no ;;
877
878  -docdir | --docdir | --docdi | --doc | --do)
879    ac_prev=docdir ;;
880  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
881    docdir=$ac_optarg ;;
882
883  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
884    ac_prev=dvidir ;;
885  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
886    dvidir=$ac_optarg ;;
887
888  -enable-* | --enable-*)
889    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
890    # Reject names that are not valid shell variable names.
891    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
892      as_fn_error $? "invalid feature name: $ac_useropt"
893    ac_useropt_orig=$ac_useropt
894    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895    case $ac_user_opts in
896      *"
897"enable_$ac_useropt"
898"*) ;;
899      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
900	 ac_unrecognized_sep=', ';;
901    esac
902    eval enable_$ac_useropt=\$ac_optarg ;;
903
904  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
905  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
906  | --exec | --exe | --ex)
907    ac_prev=exec_prefix ;;
908  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
909  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
910  | --exec=* | --exe=* | --ex=*)
911    exec_prefix=$ac_optarg ;;
912
913  -gas | --gas | --ga | --g)
914    # Obsolete; use --with-gas.
915    with_gas=yes ;;
916
917  -help | --help | --hel | --he | -h)
918    ac_init_help=long ;;
919  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
920    ac_init_help=recursive ;;
921  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
922    ac_init_help=short ;;
923
924  -host | --host | --hos | --ho)
925    ac_prev=host_alias ;;
926  -host=* | --host=* | --hos=* | --ho=*)
927    host_alias=$ac_optarg ;;
928
929  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
930    ac_prev=htmldir ;;
931  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
932  | --ht=*)
933    htmldir=$ac_optarg ;;
934
935  -includedir | --includedir | --includedi | --included | --include \
936  | --includ | --inclu | --incl | --inc)
937    ac_prev=includedir ;;
938  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
939  | --includ=* | --inclu=* | --incl=* | --inc=*)
940    includedir=$ac_optarg ;;
941
942  -infodir | --infodir | --infodi | --infod | --info | --inf)
943    ac_prev=infodir ;;
944  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
945    infodir=$ac_optarg ;;
946
947  -libdir | --libdir | --libdi | --libd)
948    ac_prev=libdir ;;
949  -libdir=* | --libdir=* | --libdi=* | --libd=*)
950    libdir=$ac_optarg ;;
951
952  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
953  | --libexe | --libex | --libe)
954    ac_prev=libexecdir ;;
955  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
956  | --libexe=* | --libex=* | --libe=*)
957    libexecdir=$ac_optarg ;;
958
959  -localedir | --localedir | --localedi | --localed | --locale)
960    ac_prev=localedir ;;
961  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
962    localedir=$ac_optarg ;;
963
964  -localstatedir | --localstatedir | --localstatedi | --localstated \
965  | --localstate | --localstat | --localsta | --localst | --locals)
966    ac_prev=localstatedir ;;
967  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
968  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
969    localstatedir=$ac_optarg ;;
970
971  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
972    ac_prev=mandir ;;
973  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
974    mandir=$ac_optarg ;;
975
976  -nfp | --nfp | --nf)
977    # Obsolete; use --without-fp.
978    with_fp=no ;;
979
980  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
981  | --no-cr | --no-c | -n)
982    no_create=yes ;;
983
984  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
985  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
986    no_recursion=yes ;;
987
988  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
989  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
990  | --oldin | --oldi | --old | --ol | --o)
991    ac_prev=oldincludedir ;;
992  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
993  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
994  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
995    oldincludedir=$ac_optarg ;;
996
997  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
998    ac_prev=prefix ;;
999  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1000    prefix=$ac_optarg ;;
1001
1002  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1003  | --program-pre | --program-pr | --program-p)
1004    ac_prev=program_prefix ;;
1005  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1006  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1007    program_prefix=$ac_optarg ;;
1008
1009  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1010  | --program-suf | --program-su | --program-s)
1011    ac_prev=program_suffix ;;
1012  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1013  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1014    program_suffix=$ac_optarg ;;
1015
1016  -program-transform-name | --program-transform-name \
1017  | --program-transform-nam | --program-transform-na \
1018  | --program-transform-n | --program-transform- \
1019  | --program-transform | --program-transfor \
1020  | --program-transfo | --program-transf \
1021  | --program-trans | --program-tran \
1022  | --progr-tra | --program-tr | --program-t)
1023    ac_prev=program_transform_name ;;
1024  -program-transform-name=* | --program-transform-name=* \
1025  | --program-transform-nam=* | --program-transform-na=* \
1026  | --program-transform-n=* | --program-transform-=* \
1027  | --program-transform=* | --program-transfor=* \
1028  | --program-transfo=* | --program-transf=* \
1029  | --program-trans=* | --program-tran=* \
1030  | --progr-tra=* | --program-tr=* | --program-t=*)
1031    program_transform_name=$ac_optarg ;;
1032
1033  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1034    ac_prev=pdfdir ;;
1035  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1036    pdfdir=$ac_optarg ;;
1037
1038  -psdir | --psdir | --psdi | --psd | --ps)
1039    ac_prev=psdir ;;
1040  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1041    psdir=$ac_optarg ;;
1042
1043  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1044  | -silent | --silent | --silen | --sile | --sil)
1045    silent=yes ;;
1046
1047  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1048    ac_prev=sbindir ;;
1049  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1050  | --sbi=* | --sb=*)
1051    sbindir=$ac_optarg ;;
1052
1053  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1054  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1055  | --sharedst | --shareds | --shared | --share | --shar \
1056  | --sha | --sh)
1057    ac_prev=sharedstatedir ;;
1058  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1059  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1060  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1061  | --sha=* | --sh=*)
1062    sharedstatedir=$ac_optarg ;;
1063
1064  -site | --site | --sit)
1065    ac_prev=site ;;
1066  -site=* | --site=* | --sit=*)
1067    site=$ac_optarg ;;
1068
1069  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1070    ac_prev=srcdir ;;
1071  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1072    srcdir=$ac_optarg ;;
1073
1074  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1075  | --syscon | --sysco | --sysc | --sys | --sy)
1076    ac_prev=sysconfdir ;;
1077  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1078  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1079    sysconfdir=$ac_optarg ;;
1080
1081  -target | --target | --targe | --targ | --tar | --ta | --t)
1082    ac_prev=target_alias ;;
1083  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1084    target_alias=$ac_optarg ;;
1085
1086  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1087    verbose=yes ;;
1088
1089  -version | --version | --versio | --versi | --vers | -V)
1090    ac_init_version=: ;;
1091
1092  -with-* | --with-*)
1093    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1094    # Reject names that are not valid shell variable names.
1095    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1096      as_fn_error $? "invalid package name: $ac_useropt"
1097    ac_useropt_orig=$ac_useropt
1098    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1099    case $ac_user_opts in
1100      *"
1101"with_$ac_useropt"
1102"*) ;;
1103      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1104	 ac_unrecognized_sep=', ';;
1105    esac
1106    eval with_$ac_useropt=\$ac_optarg ;;
1107
1108  -without-* | --without-*)
1109    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1110    # Reject names that are not valid shell variable names.
1111    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1112      as_fn_error $? "invalid package name: $ac_useropt"
1113    ac_useropt_orig=$ac_useropt
1114    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1115    case $ac_user_opts in
1116      *"
1117"with_$ac_useropt"
1118"*) ;;
1119      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1120	 ac_unrecognized_sep=', ';;
1121    esac
1122    eval with_$ac_useropt=no ;;
1123
1124  --x)
1125    # Obsolete; use --with-x.
1126    with_x=yes ;;
1127
1128  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1129  | --x-incl | --x-inc | --x-in | --x-i)
1130    ac_prev=x_includes ;;
1131  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1132  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1133    x_includes=$ac_optarg ;;
1134
1135  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1136  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1137    ac_prev=x_libraries ;;
1138  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1139  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1140    x_libraries=$ac_optarg ;;
1141
1142  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1143Try \`$0 --help' for more information"
1144    ;;
1145
1146  *=*)
1147    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1148    # Reject names that are not valid shell variable names.
1149    case $ac_envvar in #(
1150      '' | [0-9]* | *[!_$as_cr_alnum]* )
1151      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1152    esac
1153    eval $ac_envvar=\$ac_optarg
1154    export $ac_envvar ;;
1155
1156  *)
1157    # FIXME: should be removed in autoconf 3.0.
1158    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1159    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1160      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1161    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1162    ;;
1163
1164  esac
1165done
1166
1167if test -n "$ac_prev"; then
1168  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1169  as_fn_error $? "missing argument to $ac_option"
1170fi
1171
1172if test -n "$ac_unrecognized_opts"; then
1173  case $enable_option_checking in
1174    no) ;;
1175    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1176    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1177  esac
1178fi
1179
1180# Check all directory arguments for consistency.
1181for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1182		datadir sysconfdir sharedstatedir localstatedir includedir \
1183		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1184		libdir localedir mandir
1185do
1186  eval ac_val=\$$ac_var
1187  # Remove trailing slashes.
1188  case $ac_val in
1189    */ )
1190      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1191      eval $ac_var=\$ac_val;;
1192  esac
1193  # Be sure to have absolute directory names.
1194  case $ac_val in
1195    [\\/$]* | ?:[\\/]* )  continue;;
1196    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1197  esac
1198  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1199done
1200
1201# There might be people who depend on the old broken behavior: `$host'
1202# used to hold the argument of --host etc.
1203# FIXME: To remove some day.
1204build=$build_alias
1205host=$host_alias
1206target=$target_alias
1207
1208# FIXME: To remove some day.
1209if test "x$host_alias" != x; then
1210  if test "x$build_alias" = x; then
1211    cross_compiling=maybe
1212    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1213    If a cross compiler is detected then cross compile mode will be used" >&2
1214  elif test "x$build_alias" != "x$host_alias"; then
1215    cross_compiling=yes
1216  fi
1217fi
1218
1219ac_tool_prefix=
1220test -n "$host_alias" && ac_tool_prefix=$host_alias-
1221
1222test "$silent" = yes && exec 6>/dev/null
1223
1224
1225ac_pwd=`pwd` && test -n "$ac_pwd" &&
1226ac_ls_di=`ls -di .` &&
1227ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1228  as_fn_error $? "working directory cannot be determined"
1229test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1230  as_fn_error $? "pwd does not report name of working directory"
1231
1232
1233# Find the source files, if location was not specified.
1234if test -z "$srcdir"; then
1235  ac_srcdir_defaulted=yes
1236  # Try the directory containing this script, then the parent directory.
1237  ac_confdir=`$as_dirname -- "$as_myself" ||
1238$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1239	 X"$as_myself" : 'X\(//\)[^/]' \| \
1240	 X"$as_myself" : 'X\(//\)$' \| \
1241	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1242$as_echo X"$as_myself" |
1243    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1244	    s//\1/
1245	    q
1246	  }
1247	  /^X\(\/\/\)[^/].*/{
1248	    s//\1/
1249	    q
1250	  }
1251	  /^X\(\/\/\)$/{
1252	    s//\1/
1253	    q
1254	  }
1255	  /^X\(\/\).*/{
1256	    s//\1/
1257	    q
1258	  }
1259	  s/.*/./; q'`
1260  srcdir=$ac_confdir
1261  if test ! -r "$srcdir/$ac_unique_file"; then
1262    srcdir=..
1263  fi
1264else
1265  ac_srcdir_defaulted=no
1266fi
1267if test ! -r "$srcdir/$ac_unique_file"; then
1268  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1269  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1270fi
1271ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1272ac_abs_confdir=`(
1273	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1274	pwd)`
1275# When building in place, set srcdir=.
1276if test "$ac_abs_confdir" = "$ac_pwd"; then
1277  srcdir=.
1278fi
1279# Remove unnecessary trailing slashes from srcdir.
1280# Double slashes in file names in object file debugging info
1281# mess up M-x gdb in Emacs.
1282case $srcdir in
1283*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1284esac
1285for ac_var in $ac_precious_vars; do
1286  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1287  eval ac_env_${ac_var}_value=\$${ac_var}
1288  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1289  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1290done
1291
1292#
1293# Report the --help message.
1294#
1295if test "$ac_init_help" = "long"; then
1296  # Omit some internal or obsolete options to make the list less imposing.
1297  # This message is too long to be a string in the A/UX 3.1 sh.
1298  cat <<_ACEOF
1299\`configure' configures xauth 1.0.7 to adapt to many kinds of systems.
1300
1301Usage: $0 [OPTION]... [VAR=VALUE]...
1302
1303To assign environment variables (e.g., CC, CFLAGS...), specify them as
1304VAR=VALUE.  See below for descriptions of some of the useful variables.
1305
1306Defaults for the options are specified in brackets.
1307
1308Configuration:
1309  -h, --help              display this help and exit
1310      --help=short        display options specific to this package
1311      --help=recursive    display the short help of all the included packages
1312  -V, --version           display version information and exit
1313  -q, --quiet, --silent   do not print \`checking ...' messages
1314      --cache-file=FILE   cache test results in FILE [disabled]
1315  -C, --config-cache      alias for \`--cache-file=config.cache'
1316  -n, --no-create         do not create output files
1317      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1318
1319Installation directories:
1320  --prefix=PREFIX         install architecture-independent files in PREFIX
1321                          [$ac_default_prefix]
1322  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1323                          [PREFIX]
1324
1325By default, \`make install' will install all the files in
1326\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1327an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1328for instance \`--prefix=\$HOME'.
1329
1330For better control, use the options below.
1331
1332Fine tuning of the installation directories:
1333  --bindir=DIR            user executables [EPREFIX/bin]
1334  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1335  --libexecdir=DIR        program executables [EPREFIX/libexec]
1336  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1337  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1338  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1339  --libdir=DIR            object code libraries [EPREFIX/lib]
1340  --includedir=DIR        C header files [PREFIX/include]
1341  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1342  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1343  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1344  --infodir=DIR           info documentation [DATAROOTDIR/info]
1345  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1346  --mandir=DIR            man documentation [DATAROOTDIR/man]
1347  --docdir=DIR            documentation root [DATAROOTDIR/doc/xauth]
1348  --htmldir=DIR           html documentation [DOCDIR]
1349  --dvidir=DIR            dvi documentation [DOCDIR]
1350  --pdfdir=DIR            pdf documentation [DOCDIR]
1351  --psdir=DIR             ps documentation [DOCDIR]
1352_ACEOF
1353
1354  cat <<\_ACEOF
1355
1356Program names:
1357  --program-prefix=PREFIX            prepend PREFIX to installed program names
1358  --program-suffix=SUFFIX            append SUFFIX to installed program names
1359  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1360
1361System types:
1362  --build=BUILD     configure for building on BUILD [guessed]
1363  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1364_ACEOF
1365fi
1366
1367if test -n "$ac_init_help"; then
1368  case $ac_init_help in
1369     short | recursive ) echo "Configuration of xauth 1.0.7:";;
1370   esac
1371  cat <<\_ACEOF
1372
1373Optional Features:
1374  --disable-option-checking  ignore unrecognized --enable/--with options
1375  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1376  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1377  --enable-maintainer-mode  enable make rules and dependencies not useful
1378			  (and sometimes confusing) to the casual installer
1379  --disable-dependency-tracking  speeds up one-time build
1380  --enable-dependency-tracking   do not reject slow dependency extractors
1381  --disable-selective-werror
1382                          Turn off selective compiler errors. (default:
1383                          enabled)
1384  --enable-strict-compilation
1385                          Enable all warnings from compiler and make them
1386                          errors (default: disabled)
1387  --enable-silent-rules          less verbose build output (undo: `make V=1')
1388  --disable-silent-rules         verbose build output (undo: `make V=0')
1389  --enable-unix-transport Enable UNIX domain socket transport
1390  --enable-tcp-transport  Enable TCP socket transport
1391  --enable-ipv6           Enable IPv6 support
1392  --enable-local-transport
1393                          Enable os-specific local transport
1394
1395Optional Packages:
1396  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1397  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1398  --with-lint             Use a lint-style source code checker (default:
1399                          disabled)
1400
1401Some influential environment variables:
1402  CC          C compiler command
1403  CFLAGS      C compiler flags
1404  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1405              nonstandard directory <lib dir>
1406  LIBS        libraries to pass to the linker, e.g. -l<library>
1407  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1408              you have headers in a nonstandard directory <include dir>
1409  CPP         C preprocessor
1410  PKG_CONFIG  path to pkg-config utility
1411  XAUTH_CFLAGS
1412              C compiler flags for XAUTH, overriding pkg-config
1413  XAUTH_LIBS  linker flags for XAUTH, overriding pkg-config
1414  LINT        Path to a lint-style command
1415  LINT_FLAGS  Flags for the lint-style command
1416
1417Use these variables to override the choices made by `configure' or to help
1418it to find libraries and programs with nonstandard names/locations.
1419
1420Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1421_ACEOF
1422ac_status=$?
1423fi
1424
1425if test "$ac_init_help" = "recursive"; then
1426  # If there are subdirs, report their specific --help.
1427  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1428    test -d "$ac_dir" ||
1429      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1430      continue
1431    ac_builddir=.
1432
1433case "$ac_dir" in
1434.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1435*)
1436  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1437  # A ".." for each directory in $ac_dir_suffix.
1438  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1439  case $ac_top_builddir_sub in
1440  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1441  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1442  esac ;;
1443esac
1444ac_abs_top_builddir=$ac_pwd
1445ac_abs_builddir=$ac_pwd$ac_dir_suffix
1446# for backward compatibility:
1447ac_top_builddir=$ac_top_build_prefix
1448
1449case $srcdir in
1450  .)  # We are building in place.
1451    ac_srcdir=.
1452    ac_top_srcdir=$ac_top_builddir_sub
1453    ac_abs_top_srcdir=$ac_pwd ;;
1454  [\\/]* | ?:[\\/]* )  # Absolute name.
1455    ac_srcdir=$srcdir$ac_dir_suffix;
1456    ac_top_srcdir=$srcdir
1457    ac_abs_top_srcdir=$srcdir ;;
1458  *) # Relative name.
1459    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1460    ac_top_srcdir=$ac_top_build_prefix$srcdir
1461    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1462esac
1463ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1464
1465    cd "$ac_dir" || { ac_status=$?; continue; }
1466    # Check for guested configure.
1467    if test -f "$ac_srcdir/configure.gnu"; then
1468      echo &&
1469      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1470    elif test -f "$ac_srcdir/configure"; then
1471      echo &&
1472      $SHELL "$ac_srcdir/configure" --help=recursive
1473    else
1474      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1475    fi || ac_status=$?
1476    cd "$ac_pwd" || { ac_status=$?; break; }
1477  done
1478fi
1479
1480test -n "$ac_init_help" && exit $ac_status
1481if $ac_init_version; then
1482  cat <<\_ACEOF
1483xauth configure 1.0.7
1484generated by GNU Autoconf 2.68
1485
1486Copyright (C) 2010 Free Software Foundation, Inc.
1487This configure script is free software; the Free Software Foundation
1488gives unlimited permission to copy, distribute and modify it.
1489_ACEOF
1490  exit
1491fi
1492
1493## ------------------------ ##
1494## Autoconf initialization. ##
1495## ------------------------ ##
1496
1497# ac_fn_c_try_compile LINENO
1498# --------------------------
1499# Try to compile conftest.$ac_ext, and return whether this succeeded.
1500ac_fn_c_try_compile ()
1501{
1502  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1503  rm -f conftest.$ac_objext
1504  if { { ac_try="$ac_compile"
1505case "(($ac_try" in
1506  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1507  *) ac_try_echo=$ac_try;;
1508esac
1509eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1510$as_echo "$ac_try_echo"; } >&5
1511  (eval "$ac_compile") 2>conftest.err
1512  ac_status=$?
1513  if test -s conftest.err; then
1514    grep -v '^ *+' conftest.err >conftest.er1
1515    cat conftest.er1 >&5
1516    mv -f conftest.er1 conftest.err
1517  fi
1518  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1519  test $ac_status = 0; } && {
1520	 test -z "$ac_c_werror_flag" ||
1521	 test ! -s conftest.err
1522       } && test -s conftest.$ac_objext; then :
1523  ac_retval=0
1524else
1525  $as_echo "$as_me: failed program was:" >&5
1526sed 's/^/| /' conftest.$ac_ext >&5
1527
1528	ac_retval=1
1529fi
1530  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1531  as_fn_set_status $ac_retval
1532
1533} # ac_fn_c_try_compile
1534
1535# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1536# ---------------------------------------------
1537# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1538# accordingly.
1539ac_fn_c_check_decl ()
1540{
1541  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1542  as_decl_name=`echo $2|sed 's/ *(.*//'`
1543  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1544  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1545$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1546if eval \${$3+:} false; then :
1547  $as_echo_n "(cached) " >&6
1548else
1549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1550/* end confdefs.h.  */
1551$4
1552int
1553main ()
1554{
1555#ifndef $as_decl_name
1556#ifdef __cplusplus
1557  (void) $as_decl_use;
1558#else
1559  (void) $as_decl_name;
1560#endif
1561#endif
1562
1563  ;
1564  return 0;
1565}
1566_ACEOF
1567if ac_fn_c_try_compile "$LINENO"; then :
1568  eval "$3=yes"
1569else
1570  eval "$3=no"
1571fi
1572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1573fi
1574eval ac_res=\$$3
1575	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1576$as_echo "$ac_res" >&6; }
1577  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1578
1579} # ac_fn_c_check_decl
1580
1581# ac_fn_c_try_cpp LINENO
1582# ----------------------
1583# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1584ac_fn_c_try_cpp ()
1585{
1586  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587  if { { ac_try="$ac_cpp conftest.$ac_ext"
1588case "(($ac_try" in
1589  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1590  *) ac_try_echo=$ac_try;;
1591esac
1592eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593$as_echo "$ac_try_echo"; } >&5
1594  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1595  ac_status=$?
1596  if test -s conftest.err; then
1597    grep -v '^ *+' conftest.err >conftest.er1
1598    cat conftest.er1 >&5
1599    mv -f conftest.er1 conftest.err
1600  fi
1601  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602  test $ac_status = 0; } > conftest.i && {
1603	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1604	 test ! -s conftest.err
1605       }; then :
1606  ac_retval=0
1607else
1608  $as_echo "$as_me: failed program was:" >&5
1609sed 's/^/| /' conftest.$ac_ext >&5
1610
1611    ac_retval=1
1612fi
1613  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1614  as_fn_set_status $ac_retval
1615
1616} # ac_fn_c_try_cpp
1617
1618# ac_fn_c_try_run LINENO
1619# ----------------------
1620# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1621# that executables *can* be run.
1622ac_fn_c_try_run ()
1623{
1624  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625  if { { ac_try="$ac_link"
1626case "(($ac_try" in
1627  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628  *) ac_try_echo=$ac_try;;
1629esac
1630eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631$as_echo "$ac_try_echo"; } >&5
1632  (eval "$ac_link") 2>&5
1633  ac_status=$?
1634  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1636  { { case "(($ac_try" in
1637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638  *) ac_try_echo=$ac_try;;
1639esac
1640eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641$as_echo "$ac_try_echo"; } >&5
1642  (eval "$ac_try") 2>&5
1643  ac_status=$?
1644  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645  test $ac_status = 0; }; }; then :
1646  ac_retval=0
1647else
1648  $as_echo "$as_me: program exited with status $ac_status" >&5
1649       $as_echo "$as_me: failed program was:" >&5
1650sed 's/^/| /' conftest.$ac_ext >&5
1651
1652       ac_retval=$ac_status
1653fi
1654  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1655  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656  as_fn_set_status $ac_retval
1657
1658} # ac_fn_c_try_run
1659
1660# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1661# -------------------------------------------------------
1662# Tests whether HEADER exists and can be compiled using the include files in
1663# INCLUDES, setting the cache variable VAR accordingly.
1664ac_fn_c_check_header_compile ()
1665{
1666  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1668$as_echo_n "checking for $2... " >&6; }
1669if eval \${$3+:} false; then :
1670  $as_echo_n "(cached) " >&6
1671else
1672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1673/* end confdefs.h.  */
1674$4
1675#include <$2>
1676_ACEOF
1677if ac_fn_c_try_compile "$LINENO"; then :
1678  eval "$3=yes"
1679else
1680  eval "$3=no"
1681fi
1682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1683fi
1684eval ac_res=\$$3
1685	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1686$as_echo "$ac_res" >&6; }
1687  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688
1689} # ac_fn_c_check_header_compile
1690
1691# ac_fn_c_try_link LINENO
1692# -----------------------
1693# Try to link conftest.$ac_ext, and return whether this succeeded.
1694ac_fn_c_try_link ()
1695{
1696  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697  rm -f conftest.$ac_objext conftest$ac_exeext
1698  if { { ac_try="$ac_link"
1699case "(($ac_try" in
1700  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701  *) ac_try_echo=$ac_try;;
1702esac
1703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704$as_echo "$ac_try_echo"; } >&5
1705  (eval "$ac_link") 2>conftest.err
1706  ac_status=$?
1707  if test -s conftest.err; then
1708    grep -v '^ *+' conftest.err >conftest.er1
1709    cat conftest.er1 >&5
1710    mv -f conftest.er1 conftest.err
1711  fi
1712  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713  test $ac_status = 0; } && {
1714	 test -z "$ac_c_werror_flag" ||
1715	 test ! -s conftest.err
1716       } && test -s conftest$ac_exeext && {
1717	 test "$cross_compiling" = yes ||
1718	 $as_test_x conftest$ac_exeext
1719       }; then :
1720  ac_retval=0
1721else
1722  $as_echo "$as_me: failed program was:" >&5
1723sed 's/^/| /' conftest.$ac_ext >&5
1724
1725	ac_retval=1
1726fi
1727  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1728  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1729  # interfere with the next link command; also delete a directory that is
1730  # left behind by Apple's compiler.  We do this before executing the actions.
1731  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1732  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733  as_fn_set_status $ac_retval
1734
1735} # ac_fn_c_try_link
1736
1737# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1738# -------------------------------------------------------
1739# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1740# the include files in INCLUDES and setting the cache variable VAR
1741# accordingly.
1742ac_fn_c_check_header_mongrel ()
1743{
1744  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745  if eval \${$3+:} false; then :
1746  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1747$as_echo_n "checking for $2... " >&6; }
1748if eval \${$3+:} false; then :
1749  $as_echo_n "(cached) " >&6
1750fi
1751eval ac_res=\$$3
1752	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1753$as_echo "$ac_res" >&6; }
1754else
1755  # Is the header compilable?
1756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1757$as_echo_n "checking $2 usability... " >&6; }
1758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759/* end confdefs.h.  */
1760$4
1761#include <$2>
1762_ACEOF
1763if ac_fn_c_try_compile "$LINENO"; then :
1764  ac_header_compiler=yes
1765else
1766  ac_header_compiler=no
1767fi
1768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1770$as_echo "$ac_header_compiler" >&6; }
1771
1772# Is the header present?
1773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1774$as_echo_n "checking $2 presence... " >&6; }
1775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776/* end confdefs.h.  */
1777#include <$2>
1778_ACEOF
1779if ac_fn_c_try_cpp "$LINENO"; then :
1780  ac_header_preproc=yes
1781else
1782  ac_header_preproc=no
1783fi
1784rm -f conftest.err conftest.i conftest.$ac_ext
1785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1786$as_echo "$ac_header_preproc" >&6; }
1787
1788# So?  What about this header?
1789case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1790  yes:no: )
1791    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1792$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1793    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1794$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1795    ;;
1796  no:yes:* )
1797    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1798$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1799    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1800$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1801    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1802$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1803    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1804$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1805    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1806$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1807( $as_echo "## ---------------------------------------------------------------------- ##
1808## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1809## ---------------------------------------------------------------------- ##"
1810     ) | sed "s/^/$as_me: WARNING:     /" >&2
1811    ;;
1812esac
1813  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814$as_echo_n "checking for $2... " >&6; }
1815if eval \${$3+:} false; then :
1816  $as_echo_n "(cached) " >&6
1817else
1818  eval "$3=\$ac_header_compiler"
1819fi
1820eval ac_res=\$$3
1821	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822$as_echo "$ac_res" >&6; }
1823fi
1824  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825
1826} # ac_fn_c_check_header_mongrel
1827
1828# ac_fn_c_check_func LINENO FUNC VAR
1829# ----------------------------------
1830# Tests whether FUNC exists, setting the cache variable VAR accordingly
1831ac_fn_c_check_func ()
1832{
1833  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1835$as_echo_n "checking for $2... " >&6; }
1836if eval \${$3+:} false; then :
1837  $as_echo_n "(cached) " >&6
1838else
1839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840/* end confdefs.h.  */
1841/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1842   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1843#define $2 innocuous_$2
1844
1845/* System header to define __stub macros and hopefully few prototypes,
1846    which can conflict with char $2 (); below.
1847    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1848    <limits.h> exists even on freestanding compilers.  */
1849
1850#ifdef __STDC__
1851# include <limits.h>
1852#else
1853# include <assert.h>
1854#endif
1855
1856#undef $2
1857
1858/* Override any GCC internal prototype to avoid an error.
1859   Use char because int might match the return type of a GCC
1860   builtin and then its argument prototype would still apply.  */
1861#ifdef __cplusplus
1862extern "C"
1863#endif
1864char $2 ();
1865/* The GNU C library defines this for functions which it implements
1866    to always fail with ENOSYS.  Some functions are actually named
1867    something starting with __ and the normal name is an alias.  */
1868#if defined __stub_$2 || defined __stub___$2
1869choke me
1870#endif
1871
1872int
1873main ()
1874{
1875return $2 ();
1876  ;
1877  return 0;
1878}
1879_ACEOF
1880if ac_fn_c_try_link "$LINENO"; then :
1881  eval "$3=yes"
1882else
1883  eval "$3=no"
1884fi
1885rm -f core conftest.err conftest.$ac_objext \
1886    conftest$ac_exeext conftest.$ac_ext
1887fi
1888eval ac_res=\$$3
1889	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1890$as_echo "$ac_res" >&6; }
1891  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892
1893} # ac_fn_c_check_func
1894
1895# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1896# ----------------------------------------------------
1897# Tries to find if the field MEMBER exists in type AGGR, after including
1898# INCLUDES, setting cache variable VAR accordingly.
1899ac_fn_c_check_member ()
1900{
1901  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1903$as_echo_n "checking for $2.$3... " >&6; }
1904if eval \${$4+:} false; then :
1905  $as_echo_n "(cached) " >&6
1906else
1907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908/* end confdefs.h.  */
1909$5
1910int
1911main ()
1912{
1913static $2 ac_aggr;
1914if (ac_aggr.$3)
1915return 0;
1916  ;
1917  return 0;
1918}
1919_ACEOF
1920if ac_fn_c_try_compile "$LINENO"; then :
1921  eval "$4=yes"
1922else
1923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924/* end confdefs.h.  */
1925$5
1926int
1927main ()
1928{
1929static $2 ac_aggr;
1930if (sizeof ac_aggr.$3)
1931return 0;
1932  ;
1933  return 0;
1934}
1935_ACEOF
1936if ac_fn_c_try_compile "$LINENO"; then :
1937  eval "$4=yes"
1938else
1939  eval "$4=no"
1940fi
1941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1942fi
1943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944fi
1945eval ac_res=\$$4
1946	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1947$as_echo "$ac_res" >&6; }
1948  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1949
1950} # ac_fn_c_check_member
1951
1952# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1953# -------------------------------------------
1954# Tests whether TYPE exists after having included INCLUDES, setting cache
1955# variable VAR accordingly.
1956ac_fn_c_check_type ()
1957{
1958  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1959  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1960$as_echo_n "checking for $2... " >&6; }
1961if eval \${$3+:} false; then :
1962  $as_echo_n "(cached) " >&6
1963else
1964  eval "$3=no"
1965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1966/* end confdefs.h.  */
1967$4
1968int
1969main ()
1970{
1971if (sizeof ($2))
1972	 return 0;
1973  ;
1974  return 0;
1975}
1976_ACEOF
1977if ac_fn_c_try_compile "$LINENO"; then :
1978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979/* end confdefs.h.  */
1980$4
1981int
1982main ()
1983{
1984if (sizeof (($2)))
1985	    return 0;
1986  ;
1987  return 0;
1988}
1989_ACEOF
1990if ac_fn_c_try_compile "$LINENO"; then :
1991
1992else
1993  eval "$3=yes"
1994fi
1995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996fi
1997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998fi
1999eval ac_res=\$$3
2000	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001$as_echo "$ac_res" >&6; }
2002  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003
2004} # ac_fn_c_check_type
2005cat >config.log <<_ACEOF
2006This file contains any messages produced by compilers while
2007running configure, to aid debugging if configure makes a mistake.
2008
2009It was created by xauth $as_me 1.0.7, which was
2010generated by GNU Autoconf 2.68.  Invocation command line was
2011
2012  $ $0 $@
2013
2014_ACEOF
2015exec 5>>config.log
2016{
2017cat <<_ASUNAME
2018## --------- ##
2019## Platform. ##
2020## --------- ##
2021
2022hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2023uname -m = `(uname -m) 2>/dev/null || echo unknown`
2024uname -r = `(uname -r) 2>/dev/null || echo unknown`
2025uname -s = `(uname -s) 2>/dev/null || echo unknown`
2026uname -v = `(uname -v) 2>/dev/null || echo unknown`
2027
2028/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2029/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2030
2031/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2032/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2033/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2034/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2035/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2036/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2037/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2038
2039_ASUNAME
2040
2041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042for as_dir in $PATH
2043do
2044  IFS=$as_save_IFS
2045  test -z "$as_dir" && as_dir=.
2046    $as_echo "PATH: $as_dir"
2047  done
2048IFS=$as_save_IFS
2049
2050} >&5
2051
2052cat >&5 <<_ACEOF
2053
2054
2055## ----------- ##
2056## Core tests. ##
2057## ----------- ##
2058
2059_ACEOF
2060
2061
2062# Keep a trace of the command line.
2063# Strip out --no-create and --no-recursion so they do not pile up.
2064# Strip out --silent because we don't want to record it for future runs.
2065# Also quote any args containing shell meta-characters.
2066# Make two passes to allow for proper duplicate-argument suppression.
2067ac_configure_args=
2068ac_configure_args0=
2069ac_configure_args1=
2070ac_must_keep_next=false
2071for ac_pass in 1 2
2072do
2073  for ac_arg
2074  do
2075    case $ac_arg in
2076    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2077    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2078    | -silent | --silent | --silen | --sile | --sil)
2079      continue ;;
2080    *\'*)
2081      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2082    esac
2083    case $ac_pass in
2084    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2085    2)
2086      as_fn_append ac_configure_args1 " '$ac_arg'"
2087      if test $ac_must_keep_next = true; then
2088	ac_must_keep_next=false # Got value, back to normal.
2089      else
2090	case $ac_arg in
2091	  *=* | --config-cache | -C | -disable-* | --disable-* \
2092	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2093	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2094	  | -with-* | --with-* | -without-* | --without-* | --x)
2095	    case "$ac_configure_args0 " in
2096	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2097	    esac
2098	    ;;
2099	  -* ) ac_must_keep_next=true ;;
2100	esac
2101      fi
2102      as_fn_append ac_configure_args " '$ac_arg'"
2103      ;;
2104    esac
2105  done
2106done
2107{ ac_configure_args0=; unset ac_configure_args0;}
2108{ ac_configure_args1=; unset ac_configure_args1;}
2109
2110# When interrupted or exit'd, cleanup temporary files, and complete
2111# config.log.  We remove comments because anyway the quotes in there
2112# would cause problems or look ugly.
2113# WARNING: Use '\'' to represent an apostrophe within the trap.
2114# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2115trap 'exit_status=$?
2116  # Save into config.log some information that might help in debugging.
2117  {
2118    echo
2119
2120    $as_echo "## ---------------- ##
2121## Cache variables. ##
2122## ---------------- ##"
2123    echo
2124    # The following way of writing the cache mishandles newlines in values,
2125(
2126  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2127    eval ac_val=\$$ac_var
2128    case $ac_val in #(
2129    *${as_nl}*)
2130      case $ac_var in #(
2131      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2132$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2133      esac
2134      case $ac_var in #(
2135      _ | IFS | as_nl) ;; #(
2136      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2137      *) { eval $ac_var=; unset $ac_var;} ;;
2138      esac ;;
2139    esac
2140  done
2141  (set) 2>&1 |
2142    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2143    *${as_nl}ac_space=\ *)
2144      sed -n \
2145	"s/'\''/'\''\\\\'\'''\''/g;
2146	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2147      ;; #(
2148    *)
2149      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2150      ;;
2151    esac |
2152    sort
2153)
2154    echo
2155
2156    $as_echo "## ----------------- ##
2157## Output variables. ##
2158## ----------------- ##"
2159    echo
2160    for ac_var in $ac_subst_vars
2161    do
2162      eval ac_val=\$$ac_var
2163      case $ac_val in
2164      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2165      esac
2166      $as_echo "$ac_var='\''$ac_val'\''"
2167    done | sort
2168    echo
2169
2170    if test -n "$ac_subst_files"; then
2171      $as_echo "## ------------------- ##
2172## File substitutions. ##
2173## ------------------- ##"
2174      echo
2175      for ac_var in $ac_subst_files
2176      do
2177	eval ac_val=\$$ac_var
2178	case $ac_val in
2179	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2180	esac
2181	$as_echo "$ac_var='\''$ac_val'\''"
2182      done | sort
2183      echo
2184    fi
2185
2186    if test -s confdefs.h; then
2187      $as_echo "## ----------- ##
2188## confdefs.h. ##
2189## ----------- ##"
2190      echo
2191      cat confdefs.h
2192      echo
2193    fi
2194    test "$ac_signal" != 0 &&
2195      $as_echo "$as_me: caught signal $ac_signal"
2196    $as_echo "$as_me: exit $exit_status"
2197  } >&5
2198  rm -f core *.core core.conftest.* &&
2199    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2200    exit $exit_status
2201' 0
2202for ac_signal in 1 2 13 15; do
2203  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2204done
2205ac_signal=0
2206
2207# confdefs.h avoids OS command line length limits that DEFS can exceed.
2208rm -f -r conftest* confdefs.h
2209
2210$as_echo "/* confdefs.h */" > confdefs.h
2211
2212# Predefined preprocessor variables.
2213
2214cat >>confdefs.h <<_ACEOF
2215#define PACKAGE_NAME "$PACKAGE_NAME"
2216_ACEOF
2217
2218cat >>confdefs.h <<_ACEOF
2219#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2220_ACEOF
2221
2222cat >>confdefs.h <<_ACEOF
2223#define PACKAGE_VERSION "$PACKAGE_VERSION"
2224_ACEOF
2225
2226cat >>confdefs.h <<_ACEOF
2227#define PACKAGE_STRING "$PACKAGE_STRING"
2228_ACEOF
2229
2230cat >>confdefs.h <<_ACEOF
2231#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2232_ACEOF
2233
2234cat >>confdefs.h <<_ACEOF
2235#define PACKAGE_URL "$PACKAGE_URL"
2236_ACEOF
2237
2238
2239# Let the site file select an alternate cache file if it wants to.
2240# Prefer an explicitly selected file to automatically selected ones.
2241ac_site_file1=NONE
2242ac_site_file2=NONE
2243if test -n "$CONFIG_SITE"; then
2244  # We do not want a PATH search for config.site.
2245  case $CONFIG_SITE in #((
2246    -*)  ac_site_file1=./$CONFIG_SITE;;
2247    */*) ac_site_file1=$CONFIG_SITE;;
2248    *)   ac_site_file1=./$CONFIG_SITE;;
2249  esac
2250elif test "x$prefix" != xNONE; then
2251  ac_site_file1=$prefix/share/config.site
2252  ac_site_file2=$prefix/etc/config.site
2253else
2254  ac_site_file1=$ac_default_prefix/share/config.site
2255  ac_site_file2=$ac_default_prefix/etc/config.site
2256fi
2257for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2258do
2259  test "x$ac_site_file" = xNONE && continue
2260  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2261    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2262$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2263    sed 's/^/| /' "$ac_site_file" >&5
2264    . "$ac_site_file" \
2265      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2266$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2267as_fn_error $? "failed to load site script $ac_site_file
2268See \`config.log' for more details" "$LINENO" 5; }
2269  fi
2270done
2271
2272if test -r "$cache_file"; then
2273  # Some versions of bash will fail to source /dev/null (special files
2274  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2275  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2276    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2277$as_echo "$as_me: loading cache $cache_file" >&6;}
2278    case $cache_file in
2279      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2280      *)                      . "./$cache_file";;
2281    esac
2282  fi
2283else
2284  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2285$as_echo "$as_me: creating cache $cache_file" >&6;}
2286  >$cache_file
2287fi
2288
2289# Check that the precious variables saved in the cache have kept the same
2290# value.
2291ac_cache_corrupted=false
2292for ac_var in $ac_precious_vars; do
2293  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2294  eval ac_new_set=\$ac_env_${ac_var}_set
2295  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2296  eval ac_new_val=\$ac_env_${ac_var}_value
2297  case $ac_old_set,$ac_new_set in
2298    set,)
2299      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2300$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2301      ac_cache_corrupted=: ;;
2302    ,set)
2303      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2304$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2305      ac_cache_corrupted=: ;;
2306    ,);;
2307    *)
2308      if test "x$ac_old_val" != "x$ac_new_val"; then
2309	# differences in whitespace do not lead to failure.
2310	ac_old_val_w=`echo x $ac_old_val`
2311	ac_new_val_w=`echo x $ac_new_val`
2312	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2313	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2314$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2315	  ac_cache_corrupted=:
2316	else
2317	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2318$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2319	  eval $ac_var=\$ac_old_val
2320	fi
2321	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2322$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2323	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2324$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2325      fi;;
2326  esac
2327  # Pass precious variables to config.status.
2328  if test "$ac_new_set" = set; then
2329    case $ac_new_val in
2330    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2331    *) ac_arg=$ac_var=$ac_new_val ;;
2332    esac
2333    case " $ac_configure_args " in
2334      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2335      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2336    esac
2337  fi
2338done
2339if $ac_cache_corrupted; then
2340  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2341$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2342  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2343$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2344  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2345fi
2346## -------------------- ##
2347## Main body of script. ##
2348## -------------------- ##
2349
2350ac_ext=c
2351ac_cpp='$CPP $CPPFLAGS'
2352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2354ac_compiler_gnu=$ac_cv_c_compiler_gnu
2355
2356
2357am__api_version='1.11'
2358
2359ac_aux_dir=
2360for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2361  if test -f "$ac_dir/install-sh"; then
2362    ac_aux_dir=$ac_dir
2363    ac_install_sh="$ac_aux_dir/install-sh -c"
2364    break
2365  elif test -f "$ac_dir/install.sh"; then
2366    ac_aux_dir=$ac_dir
2367    ac_install_sh="$ac_aux_dir/install.sh -c"
2368    break
2369  elif test -f "$ac_dir/shtool"; then
2370    ac_aux_dir=$ac_dir
2371    ac_install_sh="$ac_aux_dir/shtool install -c"
2372    break
2373  fi
2374done
2375if test -z "$ac_aux_dir"; then
2376  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2377fi
2378
2379# These three variables are undocumented and unsupported,
2380# and are intended to be withdrawn in a future Autoconf release.
2381# They can cause serious problems if a builder's source tree is in a directory
2382# whose full name contains unusual characters.
2383ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2384ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2385ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2386
2387
2388# Find a good install program.  We prefer a C program (faster),
2389# so one script is as good as another.  But avoid the broken or
2390# incompatible versions:
2391# SysV /etc/install, /usr/sbin/install
2392# SunOS /usr/etc/install
2393# IRIX /sbin/install
2394# AIX /bin/install
2395# AmigaOS /C/install, which installs bootblocks on floppy discs
2396# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2397# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2398# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2399# OS/2's system install, which has a completely different semantic
2400# ./install, which can be erroneously created by make from ./install.sh.
2401# Reject install programs that cannot install multiple files.
2402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2403$as_echo_n "checking for a BSD-compatible install... " >&6; }
2404if test -z "$INSTALL"; then
2405if ${ac_cv_path_install+:} false; then :
2406  $as_echo_n "(cached) " >&6
2407else
2408  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2409for as_dir in $PATH
2410do
2411  IFS=$as_save_IFS
2412  test -z "$as_dir" && as_dir=.
2413    # Account for people who put trailing slashes in PATH elements.
2414case $as_dir/ in #((
2415  ./ | .// | /[cC]/* | \
2416  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2417  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2418  /usr/ucb/* ) ;;
2419  *)
2420    # OSF1 and SCO ODT 3.0 have their own names for install.
2421    # Don't use installbsd from OSF since it installs stuff as root
2422    # by default.
2423    for ac_prog in ginstall scoinst install; do
2424      for ac_exec_ext in '' $ac_executable_extensions; do
2425	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2426	  if test $ac_prog = install &&
2427	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2428	    # AIX install.  It has an incompatible calling convention.
2429	    :
2430	  elif test $ac_prog = install &&
2431	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2432	    # program-specific install script used by HP pwplus--don't use.
2433	    :
2434	  else
2435	    rm -rf conftest.one conftest.two conftest.dir
2436	    echo one > conftest.one
2437	    echo two > conftest.two
2438	    mkdir conftest.dir
2439	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2440	      test -s conftest.one && test -s conftest.two &&
2441	      test -s conftest.dir/conftest.one &&
2442	      test -s conftest.dir/conftest.two
2443	    then
2444	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2445	      break 3
2446	    fi
2447	  fi
2448	fi
2449      done
2450    done
2451    ;;
2452esac
2453
2454  done
2455IFS=$as_save_IFS
2456
2457rm -rf conftest.one conftest.two conftest.dir
2458
2459fi
2460  if test "${ac_cv_path_install+set}" = set; then
2461    INSTALL=$ac_cv_path_install
2462  else
2463    # As a last resort, use the slow shell script.  Don't cache a
2464    # value for INSTALL within a source directory, because that will
2465    # break other packages using the cache if that directory is
2466    # removed, or if the value is a relative name.
2467    INSTALL=$ac_install_sh
2468  fi
2469fi
2470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2471$as_echo "$INSTALL" >&6; }
2472
2473# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2474# It thinks the first close brace ends the variable substitution.
2475test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2476
2477test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2478
2479test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2480
2481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2482$as_echo_n "checking whether build environment is sane... " >&6; }
2483# Just in case
2484sleep 1
2485echo timestamp > conftest.file
2486# Reject unsafe characters in $srcdir or the absolute working directory
2487# name.  Accept space and tab only in the latter.
2488am_lf='
2489'
2490case `pwd` in
2491  *[\\\"\#\$\&\'\`$am_lf]*)
2492    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2493esac
2494case $srcdir in
2495  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2496    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2497esac
2498
2499# Do `set' in a subshell so we don't clobber the current shell's
2500# arguments.  Must try -L first in case configure is actually a
2501# symlink; some systems play weird games with the mod time of symlinks
2502# (eg FreeBSD returns the mod time of the symlink's containing
2503# directory).
2504if (
2505   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2506   if test "$*" = "X"; then
2507      # -L didn't work.
2508      set X `ls -t "$srcdir/configure" conftest.file`
2509   fi
2510   rm -f conftest.file
2511   if test "$*" != "X $srcdir/configure conftest.file" \
2512      && test "$*" != "X conftest.file $srcdir/configure"; then
2513
2514      # If neither matched, then we have a broken ls.  This can happen
2515      # if, for instance, CONFIG_SHELL is bash and it inherits a
2516      # broken ls alias from the environment.  This has actually
2517      # happened.  Such a system could not be considered "sane".
2518      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2519alias in your environment" "$LINENO" 5
2520   fi
2521
2522   test "$2" = conftest.file
2523   )
2524then
2525   # Ok.
2526   :
2527else
2528   as_fn_error $? "newly created file is older than distributed files!
2529Check your system clock" "$LINENO" 5
2530fi
2531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2532$as_echo "yes" >&6; }
2533test "$program_prefix" != NONE &&
2534  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2535# Use a double $ so make ignores it.
2536test "$program_suffix" != NONE &&
2537  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2538# Double any \ or $.
2539# By default was `s,x,x', remove it if useless.
2540ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2541program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2542
2543# expand $ac_aux_dir to an absolute path
2544am_aux_dir=`cd $ac_aux_dir && pwd`
2545
2546if test x"${MISSING+set}" != xset; then
2547  case $am_aux_dir in
2548  *\ * | *\	*)
2549    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2550  *)
2551    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2552  esac
2553fi
2554# Use eval to expand $SHELL
2555if eval "$MISSING --run true"; then
2556  am_missing_run="$MISSING --run "
2557else
2558  am_missing_run=
2559  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2560$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2561fi
2562
2563if test x"${install_sh}" != xset; then
2564  case $am_aux_dir in
2565  *\ * | *\	*)
2566    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2567  *)
2568    install_sh="\${SHELL} $am_aux_dir/install-sh"
2569  esac
2570fi
2571
2572# Installed binaries are usually stripped using `strip' when the user
2573# run `make install-strip'.  However `strip' might not be the right
2574# tool to use in cross-compilation environments, therefore Automake
2575# will honor the `STRIP' environment variable to overrule this program.
2576if test "$cross_compiling" != no; then
2577  if test -n "$ac_tool_prefix"; then
2578  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2579set dummy ${ac_tool_prefix}strip; ac_word=$2
2580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2581$as_echo_n "checking for $ac_word... " >&6; }
2582if ${ac_cv_prog_STRIP+:} false; then :
2583  $as_echo_n "(cached) " >&6
2584else
2585  if test -n "$STRIP"; then
2586  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2587else
2588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589for as_dir in $PATH
2590do
2591  IFS=$as_save_IFS
2592  test -z "$as_dir" && as_dir=.
2593    for ac_exec_ext in '' $ac_executable_extensions; do
2594  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2595    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2596    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2597    break 2
2598  fi
2599done
2600  done
2601IFS=$as_save_IFS
2602
2603fi
2604fi
2605STRIP=$ac_cv_prog_STRIP
2606if test -n "$STRIP"; then
2607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2608$as_echo "$STRIP" >&6; }
2609else
2610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2611$as_echo "no" >&6; }
2612fi
2613
2614
2615fi
2616if test -z "$ac_cv_prog_STRIP"; then
2617  ac_ct_STRIP=$STRIP
2618  # Extract the first word of "strip", so it can be a program name with args.
2619set dummy strip; ac_word=$2
2620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2621$as_echo_n "checking for $ac_word... " >&6; }
2622if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2623  $as_echo_n "(cached) " >&6
2624else
2625  if test -n "$ac_ct_STRIP"; then
2626  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2627else
2628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629for as_dir in $PATH
2630do
2631  IFS=$as_save_IFS
2632  test -z "$as_dir" && as_dir=.
2633    for ac_exec_ext in '' $ac_executable_extensions; do
2634  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2635    ac_cv_prog_ac_ct_STRIP="strip"
2636    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2637    break 2
2638  fi
2639done
2640  done
2641IFS=$as_save_IFS
2642
2643fi
2644fi
2645ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2646if test -n "$ac_ct_STRIP"; then
2647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2648$as_echo "$ac_ct_STRIP" >&6; }
2649else
2650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2651$as_echo "no" >&6; }
2652fi
2653
2654  if test "x$ac_ct_STRIP" = x; then
2655    STRIP=":"
2656  else
2657    case $cross_compiling:$ac_tool_warned in
2658yes:)
2659{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2660$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2661ac_tool_warned=yes ;;
2662esac
2663    STRIP=$ac_ct_STRIP
2664  fi
2665else
2666  STRIP="$ac_cv_prog_STRIP"
2667fi
2668
2669fi
2670INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2671
2672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2673$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2674if test -z "$MKDIR_P"; then
2675  if ${ac_cv_path_mkdir+:} false; then :
2676  $as_echo_n "(cached) " >&6
2677else
2678  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2680do
2681  IFS=$as_save_IFS
2682  test -z "$as_dir" && as_dir=.
2683    for ac_prog in mkdir gmkdir; do
2684	 for ac_exec_ext in '' $ac_executable_extensions; do
2685	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2686	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2687	     'mkdir (GNU coreutils) '* | \
2688	     'mkdir (coreutils) '* | \
2689	     'mkdir (fileutils) '4.1*)
2690	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2691	       break 3;;
2692	   esac
2693	 done
2694       done
2695  done
2696IFS=$as_save_IFS
2697
2698fi
2699
2700  test -d ./--version && rmdir ./--version
2701  if test "${ac_cv_path_mkdir+set}" = set; then
2702    MKDIR_P="$ac_cv_path_mkdir -p"
2703  else
2704    # As a last resort, use the slow shell script.  Don't cache a
2705    # value for MKDIR_P within a source directory, because that will
2706    # break other packages using the cache if that directory is
2707    # removed, or if the value is a relative name.
2708    MKDIR_P="$ac_install_sh -d"
2709  fi
2710fi
2711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2712$as_echo "$MKDIR_P" >&6; }
2713
2714mkdir_p="$MKDIR_P"
2715case $mkdir_p in
2716  [\\/$]* | ?:[\\/]*) ;;
2717  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2718esac
2719
2720for ac_prog in gawk mawk nawk awk
2721do
2722  # Extract the first word of "$ac_prog", so it can be a program name with args.
2723set dummy $ac_prog; ac_word=$2
2724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2725$as_echo_n "checking for $ac_word... " >&6; }
2726if ${ac_cv_prog_AWK+:} false; then :
2727  $as_echo_n "(cached) " >&6
2728else
2729  if test -n "$AWK"; then
2730  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2731else
2732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733for as_dir in $PATH
2734do
2735  IFS=$as_save_IFS
2736  test -z "$as_dir" && as_dir=.
2737    for ac_exec_ext in '' $ac_executable_extensions; do
2738  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2739    ac_cv_prog_AWK="$ac_prog"
2740    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2741    break 2
2742  fi
2743done
2744  done
2745IFS=$as_save_IFS
2746
2747fi
2748fi
2749AWK=$ac_cv_prog_AWK
2750if test -n "$AWK"; then
2751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2752$as_echo "$AWK" >&6; }
2753else
2754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2755$as_echo "no" >&6; }
2756fi
2757
2758
2759  test -n "$AWK" && break
2760done
2761
2762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2763$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2764set x ${MAKE-make}
2765ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2766if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2767  $as_echo_n "(cached) " >&6
2768else
2769  cat >conftest.make <<\_ACEOF
2770SHELL = /bin/sh
2771all:
2772	@echo '@@@%%%=$(MAKE)=@@@%%%'
2773_ACEOF
2774# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2775case `${MAKE-make} -f conftest.make 2>/dev/null` in
2776  *@@@%%%=?*=@@@%%%*)
2777    eval ac_cv_prog_make_${ac_make}_set=yes;;
2778  *)
2779    eval ac_cv_prog_make_${ac_make}_set=no;;
2780esac
2781rm -f conftest.make
2782fi
2783if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2785$as_echo "yes" >&6; }
2786  SET_MAKE=
2787else
2788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2789$as_echo "no" >&6; }
2790  SET_MAKE="MAKE=${MAKE-make}"
2791fi
2792
2793rm -rf .tst 2>/dev/null
2794mkdir .tst 2>/dev/null
2795if test -d .tst; then
2796  am__leading_dot=.
2797else
2798  am__leading_dot=_
2799fi
2800rmdir .tst 2>/dev/null
2801
2802if test "`cd $srcdir && pwd`" != "`pwd`"; then
2803  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2804  # is not polluted with repeated "-I."
2805  am__isrc=' -I$(srcdir)'
2806  # test to see if srcdir already configured
2807  if test -f $srcdir/config.status; then
2808    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2809  fi
2810fi
2811
2812# test whether we have cygpath
2813if test -z "$CYGPATH_W"; then
2814  if (cygpath --version) >/dev/null 2>/dev/null; then
2815    CYGPATH_W='cygpath -w'
2816  else
2817    CYGPATH_W=echo
2818  fi
2819fi
2820
2821
2822# Define the identity of the package.
2823 PACKAGE='xauth'
2824 VERSION='1.0.7'
2825
2826
2827cat >>confdefs.h <<_ACEOF
2828#define PACKAGE "$PACKAGE"
2829_ACEOF
2830
2831
2832cat >>confdefs.h <<_ACEOF
2833#define VERSION "$VERSION"
2834_ACEOF
2835
2836# Some tools Automake needs.
2837
2838ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2839
2840
2841AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2842
2843
2844AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2845
2846
2847AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2848
2849
2850MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2851
2852# We need awk for the "check" target.  The system "awk" is bad on
2853# some platforms.
2854# Always define AMTAR for backward compatibility.
2855
2856AMTAR=${AMTAR-"${am_missing_run}tar"}
2857
2858am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2859
2860
2861
2862
2863
2864
2865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2866$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2867    # Check whether --enable-maintainer-mode was given.
2868if test "${enable_maintainer_mode+set}" = set; then :
2869  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2870else
2871  USE_MAINTAINER_MODE=no
2872fi
2873
2874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2875$as_echo "$USE_MAINTAINER_MODE" >&6; }
2876   if test $USE_MAINTAINER_MODE = yes; then
2877  MAINTAINER_MODE_TRUE=
2878  MAINTAINER_MODE_FALSE='#'
2879else
2880  MAINTAINER_MODE_TRUE='#'
2881  MAINTAINER_MODE_FALSE=
2882fi
2883
2884  MAINT=$MAINTAINER_MODE_TRUE
2885
2886
2887
2888ac_config_headers="$ac_config_headers config.h"
2889
2890
2891# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903DEPDIR="${am__leading_dot}deps"
2904
2905ac_config_commands="$ac_config_commands depfiles"
2906
2907
2908am_make=${MAKE-make}
2909cat > confinc << 'END'
2910am__doit:
2911	@echo this is the am__doit target
2912.PHONY: am__doit
2913END
2914# If we don't find an include directive, just comment out the code.
2915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2916$as_echo_n "checking for style of include used by $am_make... " >&6; }
2917am__include="#"
2918am__quote=
2919_am_result=none
2920# First try GNU make style include.
2921echo "include confinc" > confmf
2922# Ignore all kinds of additional output from `make'.
2923case `$am_make -s -f confmf 2> /dev/null` in #(
2924*the\ am__doit\ target*)
2925  am__include=include
2926  am__quote=
2927  _am_result=GNU
2928  ;;
2929esac
2930# Now try BSD make style include.
2931if test "$am__include" = "#"; then
2932   echo '.include "confinc"' > confmf
2933   case `$am_make -s -f confmf 2> /dev/null` in #(
2934   *the\ am__doit\ target*)
2935     am__include=.include
2936     am__quote="\""
2937     _am_result=BSD
2938     ;;
2939   esac
2940fi
2941
2942
2943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2944$as_echo "$_am_result" >&6; }
2945rm -f confinc confmf
2946
2947# Check whether --enable-dependency-tracking was given.
2948if test "${enable_dependency_tracking+set}" = set; then :
2949  enableval=$enable_dependency_tracking;
2950fi
2951
2952if test "x$enable_dependency_tracking" != xno; then
2953  am_depcomp="$ac_aux_dir/depcomp"
2954  AMDEPBACKSLASH='\'
2955fi
2956 if test "x$enable_dependency_tracking" != xno; then
2957  AMDEP_TRUE=
2958  AMDEP_FALSE='#'
2959else
2960  AMDEP_TRUE='#'
2961  AMDEP_FALSE=
2962fi
2963
2964
2965ac_ext=c
2966ac_cpp='$CPP $CPPFLAGS'
2967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2969ac_compiler_gnu=$ac_cv_c_compiler_gnu
2970if test -n "$ac_tool_prefix"; then
2971  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2972set dummy ${ac_tool_prefix}gcc; ac_word=$2
2973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2974$as_echo_n "checking for $ac_word... " >&6; }
2975if ${ac_cv_prog_CC+:} false; then :
2976  $as_echo_n "(cached) " >&6
2977else
2978  if test -n "$CC"; then
2979  ac_cv_prog_CC="$CC" # Let the user override the test.
2980else
2981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982for as_dir in $PATH
2983do
2984  IFS=$as_save_IFS
2985  test -z "$as_dir" && as_dir=.
2986    for ac_exec_ext in '' $ac_executable_extensions; do
2987  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2988    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2989    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2990    break 2
2991  fi
2992done
2993  done
2994IFS=$as_save_IFS
2995
2996fi
2997fi
2998CC=$ac_cv_prog_CC
2999if test -n "$CC"; then
3000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3001$as_echo "$CC" >&6; }
3002else
3003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3004$as_echo "no" >&6; }
3005fi
3006
3007
3008fi
3009if test -z "$ac_cv_prog_CC"; then
3010  ac_ct_CC=$CC
3011  # Extract the first word of "gcc", so it can be a program name with args.
3012set dummy gcc; ac_word=$2
3013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3014$as_echo_n "checking for $ac_word... " >&6; }
3015if ${ac_cv_prog_ac_ct_CC+:} false; then :
3016  $as_echo_n "(cached) " >&6
3017else
3018  if test -n "$ac_ct_CC"; then
3019  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3020else
3021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3022for as_dir in $PATH
3023do
3024  IFS=$as_save_IFS
3025  test -z "$as_dir" && as_dir=.
3026    for ac_exec_ext in '' $ac_executable_extensions; do
3027  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3028    ac_cv_prog_ac_ct_CC="gcc"
3029    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3030    break 2
3031  fi
3032done
3033  done
3034IFS=$as_save_IFS
3035
3036fi
3037fi
3038ac_ct_CC=$ac_cv_prog_ac_ct_CC
3039if test -n "$ac_ct_CC"; then
3040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3041$as_echo "$ac_ct_CC" >&6; }
3042else
3043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3044$as_echo "no" >&6; }
3045fi
3046
3047  if test "x$ac_ct_CC" = x; then
3048    CC=""
3049  else
3050    case $cross_compiling:$ac_tool_warned in
3051yes:)
3052{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3053$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3054ac_tool_warned=yes ;;
3055esac
3056    CC=$ac_ct_CC
3057  fi
3058else
3059  CC="$ac_cv_prog_CC"
3060fi
3061
3062if test -z "$CC"; then
3063          if test -n "$ac_tool_prefix"; then
3064    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3065set dummy ${ac_tool_prefix}cc; ac_word=$2
3066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3067$as_echo_n "checking for $ac_word... " >&6; }
3068if ${ac_cv_prog_CC+:} false; then :
3069  $as_echo_n "(cached) " >&6
3070else
3071  if test -n "$CC"; then
3072  ac_cv_prog_CC="$CC" # Let the user override the test.
3073else
3074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075for as_dir in $PATH
3076do
3077  IFS=$as_save_IFS
3078  test -z "$as_dir" && as_dir=.
3079    for ac_exec_ext in '' $ac_executable_extensions; do
3080  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3081    ac_cv_prog_CC="${ac_tool_prefix}cc"
3082    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3083    break 2
3084  fi
3085done
3086  done
3087IFS=$as_save_IFS
3088
3089fi
3090fi
3091CC=$ac_cv_prog_CC
3092if test -n "$CC"; then
3093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3094$as_echo "$CC" >&6; }
3095else
3096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3097$as_echo "no" >&6; }
3098fi
3099
3100
3101  fi
3102fi
3103if test -z "$CC"; then
3104  # Extract the first word of "cc", so it can be a program name with args.
3105set dummy cc; ac_word=$2
3106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3107$as_echo_n "checking for $ac_word... " >&6; }
3108if ${ac_cv_prog_CC+:} false; then :
3109  $as_echo_n "(cached) " >&6
3110else
3111  if test -n "$CC"; then
3112  ac_cv_prog_CC="$CC" # Let the user override the test.
3113else
3114  ac_prog_rejected=no
3115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116for as_dir in $PATH
3117do
3118  IFS=$as_save_IFS
3119  test -z "$as_dir" && as_dir=.
3120    for ac_exec_ext in '' $ac_executable_extensions; do
3121  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3122    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3123       ac_prog_rejected=yes
3124       continue
3125     fi
3126    ac_cv_prog_CC="cc"
3127    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3128    break 2
3129  fi
3130done
3131  done
3132IFS=$as_save_IFS
3133
3134if test $ac_prog_rejected = yes; then
3135  # We found a bogon in the path, so make sure we never use it.
3136  set dummy $ac_cv_prog_CC
3137  shift
3138  if test $# != 0; then
3139    # We chose a different compiler from the bogus one.
3140    # However, it has the same basename, so the bogon will be chosen
3141    # first if we set CC to just the basename; use the full file name.
3142    shift
3143    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3144  fi
3145fi
3146fi
3147fi
3148CC=$ac_cv_prog_CC
3149if test -n "$CC"; then
3150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3151$as_echo "$CC" >&6; }
3152else
3153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154$as_echo "no" >&6; }
3155fi
3156
3157
3158fi
3159if test -z "$CC"; then
3160  if test -n "$ac_tool_prefix"; then
3161  for ac_prog in cl.exe
3162  do
3163    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3164set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3166$as_echo_n "checking for $ac_word... " >&6; }
3167if ${ac_cv_prog_CC+:} false; then :
3168  $as_echo_n "(cached) " >&6
3169else
3170  if test -n "$CC"; then
3171  ac_cv_prog_CC="$CC" # Let the user override the test.
3172else
3173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174for as_dir in $PATH
3175do
3176  IFS=$as_save_IFS
3177  test -z "$as_dir" && as_dir=.
3178    for ac_exec_ext in '' $ac_executable_extensions; do
3179  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3180    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3181    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3182    break 2
3183  fi
3184done
3185  done
3186IFS=$as_save_IFS
3187
3188fi
3189fi
3190CC=$ac_cv_prog_CC
3191if test -n "$CC"; then
3192  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3193$as_echo "$CC" >&6; }
3194else
3195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196$as_echo "no" >&6; }
3197fi
3198
3199
3200    test -n "$CC" && break
3201  done
3202fi
3203if test -z "$CC"; then
3204  ac_ct_CC=$CC
3205  for ac_prog in cl.exe
3206do
3207  # Extract the first word of "$ac_prog", so it can be a program name with args.
3208set dummy $ac_prog; ac_word=$2
3209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3210$as_echo_n "checking for $ac_word... " >&6; }
3211if ${ac_cv_prog_ac_ct_CC+:} false; then :
3212  $as_echo_n "(cached) " >&6
3213else
3214  if test -n "$ac_ct_CC"; then
3215  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3216else
3217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218for as_dir in $PATH
3219do
3220  IFS=$as_save_IFS
3221  test -z "$as_dir" && as_dir=.
3222    for ac_exec_ext in '' $ac_executable_extensions; do
3223  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3224    ac_cv_prog_ac_ct_CC="$ac_prog"
3225    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3226    break 2
3227  fi
3228done
3229  done
3230IFS=$as_save_IFS
3231
3232fi
3233fi
3234ac_ct_CC=$ac_cv_prog_ac_ct_CC
3235if test -n "$ac_ct_CC"; then
3236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3237$as_echo "$ac_ct_CC" >&6; }
3238else
3239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240$as_echo "no" >&6; }
3241fi
3242
3243
3244  test -n "$ac_ct_CC" && break
3245done
3246
3247  if test "x$ac_ct_CC" = x; then
3248    CC=""
3249  else
3250    case $cross_compiling:$ac_tool_warned in
3251yes:)
3252{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3253$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3254ac_tool_warned=yes ;;
3255esac
3256    CC=$ac_ct_CC
3257  fi
3258fi
3259
3260fi
3261
3262
3263test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3264$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3265as_fn_error $? "no acceptable C compiler found in \$PATH
3266See \`config.log' for more details" "$LINENO" 5; }
3267
3268# Provide some information about the compiler.
3269$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3270set X $ac_compile
3271ac_compiler=$2
3272for ac_option in --version -v -V -qversion; do
3273  { { ac_try="$ac_compiler $ac_option >&5"
3274case "(($ac_try" in
3275  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276  *) ac_try_echo=$ac_try;;
3277esac
3278eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3279$as_echo "$ac_try_echo"; } >&5
3280  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3281  ac_status=$?
3282  if test -s conftest.err; then
3283    sed '10a\
3284... rest of stderr output deleted ...
3285         10q' conftest.err >conftest.er1
3286    cat conftest.er1 >&5
3287  fi
3288  rm -f conftest.er1 conftest.err
3289  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3290  test $ac_status = 0; }
3291done
3292
3293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3294/* end confdefs.h.  */
3295
3296int
3297main ()
3298{
3299
3300  ;
3301  return 0;
3302}
3303_ACEOF
3304ac_clean_files_save=$ac_clean_files
3305ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3306# Try to create an executable without -o first, disregard a.out.
3307# It will help us diagnose broken compilers, and finding out an intuition
3308# of exeext.
3309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3310$as_echo_n "checking whether the C compiler works... " >&6; }
3311ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3312
3313# The possible output files:
3314ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3315
3316ac_rmfiles=
3317for ac_file in $ac_files
3318do
3319  case $ac_file in
3320    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3321    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3322  esac
3323done
3324rm -f $ac_rmfiles
3325
3326if { { ac_try="$ac_link_default"
3327case "(($ac_try" in
3328  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329  *) ac_try_echo=$ac_try;;
3330esac
3331eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3332$as_echo "$ac_try_echo"; } >&5
3333  (eval "$ac_link_default") 2>&5
3334  ac_status=$?
3335  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3336  test $ac_status = 0; }; then :
3337  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3338# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3339# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3340# so that the user can short-circuit this test for compilers unknown to
3341# Autoconf.
3342for ac_file in $ac_files ''
3343do
3344  test -f "$ac_file" || continue
3345  case $ac_file in
3346    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3347	;;
3348    [ab].out )
3349	# We found the default executable, but exeext='' is most
3350	# certainly right.
3351	break;;
3352    *.* )
3353	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3354	then :; else
3355	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3356	fi
3357	# We set ac_cv_exeext here because the later test for it is not
3358	# safe: cross compilers may not add the suffix if given an `-o'
3359	# argument, so we may need to know it at that point already.
3360	# Even if this section looks crufty: it has the advantage of
3361	# actually working.
3362	break;;
3363    * )
3364	break;;
3365  esac
3366done
3367test "$ac_cv_exeext" = no && ac_cv_exeext=
3368
3369else
3370  ac_file=''
3371fi
3372if test -z "$ac_file"; then :
3373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3374$as_echo "no" >&6; }
3375$as_echo "$as_me: failed program was:" >&5
3376sed 's/^/| /' conftest.$ac_ext >&5
3377
3378{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3379$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3380as_fn_error 77 "C compiler cannot create executables
3381See \`config.log' for more details" "$LINENO" 5; }
3382else
3383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3384$as_echo "yes" >&6; }
3385fi
3386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3387$as_echo_n "checking for C compiler default output file name... " >&6; }
3388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3389$as_echo "$ac_file" >&6; }
3390ac_exeext=$ac_cv_exeext
3391
3392rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3393ac_clean_files=$ac_clean_files_save
3394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3395$as_echo_n "checking for suffix of executables... " >&6; }
3396if { { ac_try="$ac_link"
3397case "(($ac_try" in
3398  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399  *) ac_try_echo=$ac_try;;
3400esac
3401eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3402$as_echo "$ac_try_echo"; } >&5
3403  (eval "$ac_link") 2>&5
3404  ac_status=$?
3405  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3406  test $ac_status = 0; }; then :
3407  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3408# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3409# work properly (i.e., refer to `conftest.exe'), while it won't with
3410# `rm'.
3411for ac_file in conftest.exe conftest conftest.*; do
3412  test -f "$ac_file" || continue
3413  case $ac_file in
3414    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3415    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3416	  break;;
3417    * ) break;;
3418  esac
3419done
3420else
3421  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3422$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3423as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3424See \`config.log' for more details" "$LINENO" 5; }
3425fi
3426rm -f conftest conftest$ac_cv_exeext
3427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3428$as_echo "$ac_cv_exeext" >&6; }
3429
3430rm -f conftest.$ac_ext
3431EXEEXT=$ac_cv_exeext
3432ac_exeext=$EXEEXT
3433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3434/* end confdefs.h.  */
3435#include <stdio.h>
3436int
3437main ()
3438{
3439FILE *f = fopen ("conftest.out", "w");
3440 return ferror (f) || fclose (f) != 0;
3441
3442  ;
3443  return 0;
3444}
3445_ACEOF
3446ac_clean_files="$ac_clean_files conftest.out"
3447# Check that the compiler produces executables we can run.  If not, either
3448# the compiler is broken, or we cross compile.
3449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3450$as_echo_n "checking whether we are cross compiling... " >&6; }
3451if test "$cross_compiling" != yes; then
3452  { { ac_try="$ac_link"
3453case "(($ac_try" in
3454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455  *) ac_try_echo=$ac_try;;
3456esac
3457eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3458$as_echo "$ac_try_echo"; } >&5
3459  (eval "$ac_link") 2>&5
3460  ac_status=$?
3461  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3462  test $ac_status = 0; }
3463  if { ac_try='./conftest$ac_cv_exeext'
3464  { { case "(($ac_try" in
3465  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466  *) ac_try_echo=$ac_try;;
3467esac
3468eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3469$as_echo "$ac_try_echo"; } >&5
3470  (eval "$ac_try") 2>&5
3471  ac_status=$?
3472  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3473  test $ac_status = 0; }; }; then
3474    cross_compiling=no
3475  else
3476    if test "$cross_compiling" = maybe; then
3477	cross_compiling=yes
3478    else
3479	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3480$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3481as_fn_error $? "cannot run C compiled programs.
3482If you meant to cross compile, use \`--host'.
3483See \`config.log' for more details" "$LINENO" 5; }
3484    fi
3485  fi
3486fi
3487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3488$as_echo "$cross_compiling" >&6; }
3489
3490rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3491ac_clean_files=$ac_clean_files_save
3492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3493$as_echo_n "checking for suffix of object files... " >&6; }
3494if ${ac_cv_objext+:} false; then :
3495  $as_echo_n "(cached) " >&6
3496else
3497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498/* end confdefs.h.  */
3499
3500int
3501main ()
3502{
3503
3504  ;
3505  return 0;
3506}
3507_ACEOF
3508rm -f conftest.o conftest.obj
3509if { { ac_try="$ac_compile"
3510case "(($ac_try" in
3511  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3512  *) ac_try_echo=$ac_try;;
3513esac
3514eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3515$as_echo "$ac_try_echo"; } >&5
3516  (eval "$ac_compile") 2>&5
3517  ac_status=$?
3518  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3519  test $ac_status = 0; }; then :
3520  for ac_file in conftest.o conftest.obj conftest.*; do
3521  test -f "$ac_file" || continue;
3522  case $ac_file in
3523    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3524    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3525       break;;
3526  esac
3527done
3528else
3529  $as_echo "$as_me: failed program was:" >&5
3530sed 's/^/| /' conftest.$ac_ext >&5
3531
3532{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3533$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3534as_fn_error $? "cannot compute suffix of object files: cannot compile
3535See \`config.log' for more details" "$LINENO" 5; }
3536fi
3537rm -f conftest.$ac_cv_objext conftest.$ac_ext
3538fi
3539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3540$as_echo "$ac_cv_objext" >&6; }
3541OBJEXT=$ac_cv_objext
3542ac_objext=$OBJEXT
3543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3544$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3545if ${ac_cv_c_compiler_gnu+:} false; then :
3546  $as_echo_n "(cached) " >&6
3547else
3548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549/* end confdefs.h.  */
3550
3551int
3552main ()
3553{
3554#ifndef __GNUC__
3555       choke me
3556#endif
3557
3558  ;
3559  return 0;
3560}
3561_ACEOF
3562if ac_fn_c_try_compile "$LINENO"; then :
3563  ac_compiler_gnu=yes
3564else
3565  ac_compiler_gnu=no
3566fi
3567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568ac_cv_c_compiler_gnu=$ac_compiler_gnu
3569
3570fi
3571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3572$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3573if test $ac_compiler_gnu = yes; then
3574  GCC=yes
3575else
3576  GCC=
3577fi
3578ac_test_CFLAGS=${CFLAGS+set}
3579ac_save_CFLAGS=$CFLAGS
3580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3581$as_echo_n "checking whether $CC accepts -g... " >&6; }
3582if ${ac_cv_prog_cc_g+:} false; then :
3583  $as_echo_n "(cached) " >&6
3584else
3585  ac_save_c_werror_flag=$ac_c_werror_flag
3586   ac_c_werror_flag=yes
3587   ac_cv_prog_cc_g=no
3588   CFLAGS="-g"
3589   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590/* end confdefs.h.  */
3591
3592int
3593main ()
3594{
3595
3596  ;
3597  return 0;
3598}
3599_ACEOF
3600if ac_fn_c_try_compile "$LINENO"; then :
3601  ac_cv_prog_cc_g=yes
3602else
3603  CFLAGS=""
3604      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605/* end confdefs.h.  */
3606
3607int
3608main ()
3609{
3610
3611  ;
3612  return 0;
3613}
3614_ACEOF
3615if ac_fn_c_try_compile "$LINENO"; then :
3616
3617else
3618  ac_c_werror_flag=$ac_save_c_werror_flag
3619	 CFLAGS="-g"
3620	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621/* end confdefs.h.  */
3622
3623int
3624main ()
3625{
3626
3627  ;
3628  return 0;
3629}
3630_ACEOF
3631if ac_fn_c_try_compile "$LINENO"; then :
3632  ac_cv_prog_cc_g=yes
3633fi
3634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3635fi
3636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3637fi
3638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3639   ac_c_werror_flag=$ac_save_c_werror_flag
3640fi
3641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3642$as_echo "$ac_cv_prog_cc_g" >&6; }
3643if test "$ac_test_CFLAGS" = set; then
3644  CFLAGS=$ac_save_CFLAGS
3645elif test $ac_cv_prog_cc_g = yes; then
3646  if test "$GCC" = yes; then
3647    CFLAGS="-g -O2"
3648  else
3649    CFLAGS="-g"
3650  fi
3651else
3652  if test "$GCC" = yes; then
3653    CFLAGS="-O2"
3654  else
3655    CFLAGS=
3656  fi
3657fi
3658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3659$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3660if ${ac_cv_prog_cc_c89+:} false; then :
3661  $as_echo_n "(cached) " >&6
3662else
3663  ac_cv_prog_cc_c89=no
3664ac_save_CC=$CC
3665cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666/* end confdefs.h.  */
3667#include <stdarg.h>
3668#include <stdio.h>
3669#include <sys/types.h>
3670#include <sys/stat.h>
3671/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3672struct buf { int x; };
3673FILE * (*rcsopen) (struct buf *, struct stat *, int);
3674static char *e (p, i)
3675     char **p;
3676     int i;
3677{
3678  return p[i];
3679}
3680static char *f (char * (*g) (char **, int), char **p, ...)
3681{
3682  char *s;
3683  va_list v;
3684  va_start (v,p);
3685  s = g (p, va_arg (v,int));
3686  va_end (v);
3687  return s;
3688}
3689
3690/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3691   function prototypes and stuff, but not '\xHH' hex character constants.
3692   These don't provoke an error unfortunately, instead are silently treated
3693   as 'x'.  The following induces an error, until -std is added to get
3694   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3695   array size at least.  It's necessary to write '\x00'==0 to get something
3696   that's true only with -std.  */
3697int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3698
3699/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3700   inside strings and character constants.  */
3701#define FOO(x) 'x'
3702int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3703
3704int test (int i, double x);
3705struct s1 {int (*f) (int a);};
3706struct s2 {int (*f) (double a);};
3707int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3708int argc;
3709char **argv;
3710int
3711main ()
3712{
3713return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3714  ;
3715  return 0;
3716}
3717_ACEOF
3718for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3719	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3720do
3721  CC="$ac_save_CC $ac_arg"
3722  if ac_fn_c_try_compile "$LINENO"; then :
3723  ac_cv_prog_cc_c89=$ac_arg
3724fi
3725rm -f core conftest.err conftest.$ac_objext
3726  test "x$ac_cv_prog_cc_c89" != "xno" && break
3727done
3728rm -f conftest.$ac_ext
3729CC=$ac_save_CC
3730
3731fi
3732# AC_CACHE_VAL
3733case "x$ac_cv_prog_cc_c89" in
3734  x)
3735    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3736$as_echo "none needed" >&6; } ;;
3737  xno)
3738    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3739$as_echo "unsupported" >&6; } ;;
3740  *)
3741    CC="$CC $ac_cv_prog_cc_c89"
3742    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3743$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3744esac
3745if test "x$ac_cv_prog_cc_c89" != xno; then :
3746
3747fi
3748
3749ac_ext=c
3750ac_cpp='$CPP $CPPFLAGS'
3751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3753ac_compiler_gnu=$ac_cv_c_compiler_gnu
3754
3755depcc="$CC"   am_compiler_list=
3756
3757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3758$as_echo_n "checking dependency style of $depcc... " >&6; }
3759if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3760  $as_echo_n "(cached) " >&6
3761else
3762  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3763  # We make a subdir and do the tests there.  Otherwise we can end up
3764  # making bogus files that we don't know about and never remove.  For
3765  # instance it was reported that on HP-UX the gcc test will end up
3766  # making a dummy file named `D' -- because `-MD' means `put the output
3767  # in D'.
3768  mkdir conftest.dir
3769  # Copy depcomp to subdir because otherwise we won't find it if we're
3770  # using a relative directory.
3771  cp "$am_depcomp" conftest.dir
3772  cd conftest.dir
3773  # We will build objects and dependencies in a subdirectory because
3774  # it helps to detect inapplicable dependency modes.  For instance
3775  # both Tru64's cc and ICC support -MD to output dependencies as a
3776  # side effect of compilation, but ICC will put the dependencies in
3777  # the current directory while Tru64 will put them in the object
3778  # directory.
3779  mkdir sub
3780
3781  am_cv_CC_dependencies_compiler_type=none
3782  if test "$am_compiler_list" = ""; then
3783     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3784  fi
3785  am__universal=false
3786  case " $depcc " in #(
3787     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3788     esac
3789
3790  for depmode in $am_compiler_list; do
3791    # Setup a source with many dependencies, because some compilers
3792    # like to wrap large dependency lists on column 80 (with \), and
3793    # we should not choose a depcomp mode which is confused by this.
3794    #
3795    # We need to recreate these files for each test, as the compiler may
3796    # overwrite some of them when testing with obscure command lines.
3797    # This happens at least with the AIX C compiler.
3798    : > sub/conftest.c
3799    for i in 1 2 3 4 5 6; do
3800      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3801      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3802      # Solaris 8's {/usr,}/bin/sh.
3803      touch sub/conftst$i.h
3804    done
3805    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3806
3807    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3808    # mode.  It turns out that the SunPro C++ compiler does not properly
3809    # handle `-M -o', and we need to detect this.  Also, some Intel
3810    # versions had trouble with output in subdirs
3811    am__obj=sub/conftest.${OBJEXT-o}
3812    am__minus_obj="-o $am__obj"
3813    case $depmode in
3814    gcc)
3815      # This depmode causes a compiler race in universal mode.
3816      test "$am__universal" = false || continue
3817      ;;
3818    nosideeffect)
3819      # after this tag, mechanisms are not by side-effect, so they'll
3820      # only be used when explicitly requested
3821      if test "x$enable_dependency_tracking" = xyes; then
3822	continue
3823      else
3824	break
3825      fi
3826      ;;
3827    msvisualcpp | msvcmsys)
3828      # This compiler won't grok `-c -o', but also, the minuso test has
3829      # not run yet.  These depmodes are late enough in the game, and
3830      # so weak that their functioning should not be impacted.
3831      am__obj=conftest.${OBJEXT-o}
3832      am__minus_obj=
3833      ;;
3834    none) break ;;
3835    esac
3836    if depmode=$depmode \
3837       source=sub/conftest.c object=$am__obj \
3838       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3839       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3840         >/dev/null 2>conftest.err &&
3841       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3842       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3843       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3844       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3845      # icc doesn't choke on unknown options, it will just issue warnings
3846      # or remarks (even with -Werror).  So we grep stderr for any message
3847      # that says an option was ignored or not supported.
3848      # When given -MP, icc 7.0 and 7.1 complain thusly:
3849      #   icc: Command line warning: ignoring option '-M'; no argument required
3850      # The diagnosis changed in icc 8.0:
3851      #   icc: Command line remark: option '-MP' not supported
3852      if (grep 'ignoring option' conftest.err ||
3853          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3854        am_cv_CC_dependencies_compiler_type=$depmode
3855        break
3856      fi
3857    fi
3858  done
3859
3860  cd ..
3861  rm -rf conftest.dir
3862else
3863  am_cv_CC_dependencies_compiler_type=none
3864fi
3865
3866fi
3867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3868$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3869CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3870
3871 if
3872  test "x$enable_dependency_tracking" != xno \
3873  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3874  am__fastdepCC_TRUE=
3875  am__fastdepCC_FALSE='#'
3876else
3877  am__fastdepCC_TRUE='#'
3878  am__fastdepCC_FALSE=
3879fi
3880
3881
3882   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3883$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3884if ${ac_cv_prog_cc_c99+:} false; then :
3885  $as_echo_n "(cached) " >&6
3886else
3887  ac_cv_prog_cc_c99=no
3888ac_save_CC=$CC
3889cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890/* end confdefs.h.  */
3891#include <stdarg.h>
3892#include <stdbool.h>
3893#include <stdlib.h>
3894#include <wchar.h>
3895#include <stdio.h>
3896
3897// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3898#define debug(...) fprintf (stderr, __VA_ARGS__)
3899#define showlist(...) puts (#__VA_ARGS__)
3900#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3901static void
3902test_varargs_macros (void)
3903{
3904  int x = 1234;
3905  int y = 5678;
3906  debug ("Flag");
3907  debug ("X = %d\n", x);
3908  showlist (The first, second, and third items.);
3909  report (x>y, "x is %d but y is %d", x, y);
3910}
3911
3912// Check long long types.
3913#define BIG64 18446744073709551615ull
3914#define BIG32 4294967295ul
3915#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3916#if !BIG_OK
3917  your preprocessor is broken;
3918#endif
3919#if BIG_OK
3920#else
3921  your preprocessor is broken;
3922#endif
3923static long long int bignum = -9223372036854775807LL;
3924static unsigned long long int ubignum = BIG64;
3925
3926struct incomplete_array
3927{
3928  int datasize;
3929  double data[];
3930};
3931
3932struct named_init {
3933  int number;
3934  const wchar_t *name;
3935  double average;
3936};
3937
3938typedef const char *ccp;
3939
3940static inline int
3941test_restrict (ccp restrict text)
3942{
3943  // See if C++-style comments work.
3944  // Iterate through items via the restricted pointer.
3945  // Also check for declarations in for loops.
3946  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3947    continue;
3948  return 0;
3949}
3950
3951// Check varargs and va_copy.
3952static void
3953test_varargs (const char *format, ...)
3954{
3955  va_list args;
3956  va_start (args, format);
3957  va_list args_copy;
3958  va_copy (args_copy, args);
3959
3960  const char *str;
3961  int number;
3962  float fnumber;
3963
3964  while (*format)
3965    {
3966      switch (*format++)
3967	{
3968	case 's': // string
3969	  str = va_arg (args_copy, const char *);
3970	  break;
3971	case 'd': // int
3972	  number = va_arg (args_copy, int);
3973	  break;
3974	case 'f': // float
3975	  fnumber = va_arg (args_copy, double);
3976	  break;
3977	default:
3978	  break;
3979	}
3980    }
3981  va_end (args_copy);
3982  va_end (args);
3983}
3984
3985int
3986main ()
3987{
3988
3989  // Check bool.
3990  _Bool success = false;
3991
3992  // Check restrict.
3993  if (test_restrict ("String literal") == 0)
3994    success = true;
3995  char *restrict newvar = "Another string";
3996
3997  // Check varargs.
3998  test_varargs ("s, d' f .", "string", 65, 34.234);
3999  test_varargs_macros ();
4000
4001  // Check flexible array members.
4002  struct incomplete_array *ia =
4003    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4004  ia->datasize = 10;
4005  for (int i = 0; i < ia->datasize; ++i)
4006    ia->data[i] = i * 1.234;
4007
4008  // Check named initializers.
4009  struct named_init ni = {
4010    .number = 34,
4011    .name = L"Test wide string",
4012    .average = 543.34343,
4013  };
4014
4015  ni.number = 58;
4016
4017  int dynamic_array[ni.number];
4018  dynamic_array[ni.number - 1] = 543;
4019
4020  // work around unused variable warnings
4021  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4022	  || dynamic_array[ni.number - 1] != 543);
4023
4024  ;
4025  return 0;
4026}
4027_ACEOF
4028for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4029do
4030  CC="$ac_save_CC $ac_arg"
4031  if ac_fn_c_try_compile "$LINENO"; then :
4032  ac_cv_prog_cc_c99=$ac_arg
4033fi
4034rm -f core conftest.err conftest.$ac_objext
4035  test "x$ac_cv_prog_cc_c99" != "xno" && break
4036done
4037rm -f conftest.$ac_ext
4038CC=$ac_save_CC
4039
4040fi
4041# AC_CACHE_VAL
4042case "x$ac_cv_prog_cc_c99" in
4043  x)
4044    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4045$as_echo "none needed" >&6; } ;;
4046  xno)
4047    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4048$as_echo "unsupported" >&6; } ;;
4049  *)
4050    CC="$CC $ac_cv_prog_cc_c99"
4051    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4052$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4053esac
4054if test "x$ac_cv_prog_cc_c99" != xno; then :
4055
4056fi
4057
4058
4059
4060ac_ext=c
4061ac_cpp='$CPP $CPPFLAGS'
4062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4064ac_compiler_gnu=$ac_cv_c_compiler_gnu
4065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4066$as_echo_n "checking how to run the C preprocessor... " >&6; }
4067# On Suns, sometimes $CPP names a directory.
4068if test -n "$CPP" && test -d "$CPP"; then
4069  CPP=
4070fi
4071if test -z "$CPP"; then
4072  if ${ac_cv_prog_CPP+:} false; then :
4073  $as_echo_n "(cached) " >&6
4074else
4075      # Double quotes because CPP needs to be expanded
4076    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4077    do
4078      ac_preproc_ok=false
4079for ac_c_preproc_warn_flag in '' yes
4080do
4081  # Use a header file that comes with gcc, so configuring glibc
4082  # with a fresh cross-compiler works.
4083  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4084  # <limits.h> exists even on freestanding compilers.
4085  # On the NeXT, cc -E runs the code through the compiler's parser,
4086  # not just through cpp. "Syntax error" is here to catch this case.
4087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088/* end confdefs.h.  */
4089#ifdef __STDC__
4090# include <limits.h>
4091#else
4092# include <assert.h>
4093#endif
4094		     Syntax error
4095_ACEOF
4096if ac_fn_c_try_cpp "$LINENO"; then :
4097
4098else
4099  # Broken: fails on valid input.
4100continue
4101fi
4102rm -f conftest.err conftest.i conftest.$ac_ext
4103
4104  # OK, works on sane cases.  Now check whether nonexistent headers
4105  # can be detected and how.
4106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107/* end confdefs.h.  */
4108#include <ac_nonexistent.h>
4109_ACEOF
4110if ac_fn_c_try_cpp "$LINENO"; then :
4111  # Broken: success on invalid input.
4112continue
4113else
4114  # Passes both tests.
4115ac_preproc_ok=:
4116break
4117fi
4118rm -f conftest.err conftest.i conftest.$ac_ext
4119
4120done
4121# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4122rm -f conftest.i conftest.err conftest.$ac_ext
4123if $ac_preproc_ok; then :
4124  break
4125fi
4126
4127    done
4128    ac_cv_prog_CPP=$CPP
4129
4130fi
4131  CPP=$ac_cv_prog_CPP
4132else
4133  ac_cv_prog_CPP=$CPP
4134fi
4135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4136$as_echo "$CPP" >&6; }
4137ac_preproc_ok=false
4138for ac_c_preproc_warn_flag in '' yes
4139do
4140  # Use a header file that comes with gcc, so configuring glibc
4141  # with a fresh cross-compiler works.
4142  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4143  # <limits.h> exists even on freestanding compilers.
4144  # On the NeXT, cc -E runs the code through the compiler's parser,
4145  # not just through cpp. "Syntax error" is here to catch this case.
4146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4147/* end confdefs.h.  */
4148#ifdef __STDC__
4149# include <limits.h>
4150#else
4151# include <assert.h>
4152#endif
4153		     Syntax error
4154_ACEOF
4155if ac_fn_c_try_cpp "$LINENO"; then :
4156
4157else
4158  # Broken: fails on valid input.
4159continue
4160fi
4161rm -f conftest.err conftest.i conftest.$ac_ext
4162
4163  # OK, works on sane cases.  Now check whether nonexistent headers
4164  # can be detected and how.
4165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4166/* end confdefs.h.  */
4167#include <ac_nonexistent.h>
4168_ACEOF
4169if ac_fn_c_try_cpp "$LINENO"; then :
4170  # Broken: success on invalid input.
4171continue
4172else
4173  # Passes both tests.
4174ac_preproc_ok=:
4175break
4176fi
4177rm -f conftest.err conftest.i conftest.$ac_ext
4178
4179done
4180# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4181rm -f conftest.i conftest.err conftest.$ac_ext
4182if $ac_preproc_ok; then :
4183
4184else
4185  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4186$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4187as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4188See \`config.log' for more details" "$LINENO" 5; }
4189fi
4190
4191ac_ext=c
4192ac_cpp='$CPP $CPPFLAGS'
4193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4195ac_compiler_gnu=$ac_cv_c_compiler_gnu
4196
4197
4198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4199$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4200if ${ac_cv_path_GREP+:} false; then :
4201  $as_echo_n "(cached) " >&6
4202else
4203  if test -z "$GREP"; then
4204  ac_path_GREP_found=false
4205  # Loop through the user's path and test for each of PROGNAME-LIST
4206  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4208do
4209  IFS=$as_save_IFS
4210  test -z "$as_dir" && as_dir=.
4211    for ac_prog in grep ggrep; do
4212    for ac_exec_ext in '' $ac_executable_extensions; do
4213      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4214      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4215# Check for GNU ac_path_GREP and select it if it is found.
4216  # Check for GNU $ac_path_GREP
4217case `"$ac_path_GREP" --version 2>&1` in
4218*GNU*)
4219  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4220*)
4221  ac_count=0
4222  $as_echo_n 0123456789 >"conftest.in"
4223  while :
4224  do
4225    cat "conftest.in" "conftest.in" >"conftest.tmp"
4226    mv "conftest.tmp" "conftest.in"
4227    cp "conftest.in" "conftest.nl"
4228    $as_echo 'GREP' >> "conftest.nl"
4229    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4230    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4231    as_fn_arith $ac_count + 1 && ac_count=$as_val
4232    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4233      # Best one so far, save it but keep looking for a better one
4234      ac_cv_path_GREP="$ac_path_GREP"
4235      ac_path_GREP_max=$ac_count
4236    fi
4237    # 10*(2^10) chars as input seems more than enough
4238    test $ac_count -gt 10 && break
4239  done
4240  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4241esac
4242
4243      $ac_path_GREP_found && break 3
4244    done
4245  done
4246  done
4247IFS=$as_save_IFS
4248  if test -z "$ac_cv_path_GREP"; then
4249    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4250  fi
4251else
4252  ac_cv_path_GREP=$GREP
4253fi
4254
4255fi
4256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4257$as_echo "$ac_cv_path_GREP" >&6; }
4258 GREP="$ac_cv_path_GREP"
4259
4260
4261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4262$as_echo_n "checking for egrep... " >&6; }
4263if ${ac_cv_path_EGREP+:} false; then :
4264  $as_echo_n "(cached) " >&6
4265else
4266  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4267   then ac_cv_path_EGREP="$GREP -E"
4268   else
4269     if test -z "$EGREP"; then
4270  ac_path_EGREP_found=false
4271  # Loop through the user's path and test for each of PROGNAME-LIST
4272  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4274do
4275  IFS=$as_save_IFS
4276  test -z "$as_dir" && as_dir=.
4277    for ac_prog in egrep; do
4278    for ac_exec_ext in '' $ac_executable_extensions; do
4279      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4280      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4281# Check for GNU ac_path_EGREP and select it if it is found.
4282  # Check for GNU $ac_path_EGREP
4283case `"$ac_path_EGREP" --version 2>&1` in
4284*GNU*)
4285  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4286*)
4287  ac_count=0
4288  $as_echo_n 0123456789 >"conftest.in"
4289  while :
4290  do
4291    cat "conftest.in" "conftest.in" >"conftest.tmp"
4292    mv "conftest.tmp" "conftest.in"
4293    cp "conftest.in" "conftest.nl"
4294    $as_echo 'EGREP' >> "conftest.nl"
4295    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4296    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4297    as_fn_arith $ac_count + 1 && ac_count=$as_val
4298    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4299      # Best one so far, save it but keep looking for a better one
4300      ac_cv_path_EGREP="$ac_path_EGREP"
4301      ac_path_EGREP_max=$ac_count
4302    fi
4303    # 10*(2^10) chars as input seems more than enough
4304    test $ac_count -gt 10 && break
4305  done
4306  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4307esac
4308
4309      $ac_path_EGREP_found && break 3
4310    done
4311  done
4312  done
4313IFS=$as_save_IFS
4314  if test -z "$ac_cv_path_EGREP"; then
4315    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4316  fi
4317else
4318  ac_cv_path_EGREP=$EGREP
4319fi
4320
4321   fi
4322fi
4323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4324$as_echo "$ac_cv_path_EGREP" >&6; }
4325 EGREP="$ac_cv_path_EGREP"
4326
4327
4328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4329$as_echo_n "checking for ANSI C header files... " >&6; }
4330if ${ac_cv_header_stdc+:} false; then :
4331  $as_echo_n "(cached) " >&6
4332else
4333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4334/* end confdefs.h.  */
4335#include <stdlib.h>
4336#include <stdarg.h>
4337#include <string.h>
4338#include <float.h>
4339
4340int
4341main ()
4342{
4343
4344  ;
4345  return 0;
4346}
4347_ACEOF
4348if ac_fn_c_try_compile "$LINENO"; then :
4349  ac_cv_header_stdc=yes
4350else
4351  ac_cv_header_stdc=no
4352fi
4353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4354
4355if test $ac_cv_header_stdc = yes; then
4356  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4358/* end confdefs.h.  */
4359#include <string.h>
4360
4361_ACEOF
4362if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4363  $EGREP "memchr" >/dev/null 2>&1; then :
4364
4365else
4366  ac_cv_header_stdc=no
4367fi
4368rm -f conftest*
4369
4370fi
4371
4372if test $ac_cv_header_stdc = yes; then
4373  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4375/* end confdefs.h.  */
4376#include <stdlib.h>
4377
4378_ACEOF
4379if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4380  $EGREP "free" >/dev/null 2>&1; then :
4381
4382else
4383  ac_cv_header_stdc=no
4384fi
4385rm -f conftest*
4386
4387fi
4388
4389if test $ac_cv_header_stdc = yes; then
4390  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4391  if test "$cross_compiling" = yes; then :
4392  :
4393else
4394  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4395/* end confdefs.h.  */
4396#include <ctype.h>
4397#include <stdlib.h>
4398#if ((' ' & 0x0FF) == 0x020)
4399# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4400# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4401#else
4402# define ISLOWER(c) \
4403		   (('a' <= (c) && (c) <= 'i') \
4404		     || ('j' <= (c) && (c) <= 'r') \
4405		     || ('s' <= (c) && (c) <= 'z'))
4406# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4407#endif
4408
4409#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4410int
4411main ()
4412{
4413  int i;
4414  for (i = 0; i < 256; i++)
4415    if (XOR (islower (i), ISLOWER (i))
4416	|| toupper (i) != TOUPPER (i))
4417      return 2;
4418  return 0;
4419}
4420_ACEOF
4421if ac_fn_c_try_run "$LINENO"; then :
4422
4423else
4424  ac_cv_header_stdc=no
4425fi
4426rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4427  conftest.$ac_objext conftest.beam conftest.$ac_ext
4428fi
4429
4430fi
4431fi
4432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4433$as_echo "$ac_cv_header_stdc" >&6; }
4434if test $ac_cv_header_stdc = yes; then
4435
4436$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4437
4438fi
4439
4440# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4441for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4442		  inttypes.h stdint.h unistd.h
4443do :
4444  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4445ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4446"
4447if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4448  cat >>confdefs.h <<_ACEOF
4449#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4450_ACEOF
4451
4452fi
4453
4454done
4455
4456
4457
4458
4459
4460
4461ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4462if test "x$ac_cv_have_decl___clang__" = xyes; then :
4463  CLANGCC="yes"
4464else
4465  CLANGCC="no"
4466fi
4467
4468ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4469if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4470  INTELCC="yes"
4471else
4472  INTELCC="no"
4473fi
4474
4475ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4476if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4477  SUNCC="yes"
4478else
4479  SUNCC="no"
4480fi
4481
4482
4483
4484
4485if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4486	if test -n "$ac_tool_prefix"; then
4487  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4488set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4490$as_echo_n "checking for $ac_word... " >&6; }
4491if ${ac_cv_path_PKG_CONFIG+:} false; then :
4492  $as_echo_n "(cached) " >&6
4493else
4494  case $PKG_CONFIG in
4495  [\\/]* | ?:[\\/]*)
4496  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4497  ;;
4498  *)
4499  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4500for as_dir in $PATH
4501do
4502  IFS=$as_save_IFS
4503  test -z "$as_dir" && as_dir=.
4504    for ac_exec_ext in '' $ac_executable_extensions; do
4505  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4506    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4507    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4508    break 2
4509  fi
4510done
4511  done
4512IFS=$as_save_IFS
4513
4514  ;;
4515esac
4516fi
4517PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4518if test -n "$PKG_CONFIG"; then
4519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4520$as_echo "$PKG_CONFIG" >&6; }
4521else
4522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4523$as_echo "no" >&6; }
4524fi
4525
4526
4527fi
4528if test -z "$ac_cv_path_PKG_CONFIG"; then
4529  ac_pt_PKG_CONFIG=$PKG_CONFIG
4530  # Extract the first word of "pkg-config", so it can be a program name with args.
4531set dummy pkg-config; ac_word=$2
4532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4533$as_echo_n "checking for $ac_word... " >&6; }
4534if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4535  $as_echo_n "(cached) " >&6
4536else
4537  case $ac_pt_PKG_CONFIG in
4538  [\\/]* | ?:[\\/]*)
4539  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4540  ;;
4541  *)
4542  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4543for as_dir in $PATH
4544do
4545  IFS=$as_save_IFS
4546  test -z "$as_dir" && as_dir=.
4547    for ac_exec_ext in '' $ac_executable_extensions; do
4548  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4549    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4550    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4551    break 2
4552  fi
4553done
4554  done
4555IFS=$as_save_IFS
4556
4557  ;;
4558esac
4559fi
4560ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4561if test -n "$ac_pt_PKG_CONFIG"; then
4562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4563$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4564else
4565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4566$as_echo "no" >&6; }
4567fi
4568
4569  if test "x$ac_pt_PKG_CONFIG" = x; then
4570    PKG_CONFIG=""
4571  else
4572    case $cross_compiling:$ac_tool_warned in
4573yes:)
4574{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4575$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&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	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4588$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4589	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4590		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4591$as_echo "yes" >&6; }
4592	else
4593		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4594$as_echo "no" >&6; }
4595		PKG_CONFIG=""
4596	fi
4597
4598fi
4599# Make sure we can run config.sub.
4600$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4601  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4602
4603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4604$as_echo_n "checking build system type... " >&6; }
4605if ${ac_cv_build+:} false; then :
4606  $as_echo_n "(cached) " >&6
4607else
4608  ac_build_alias=$build_alias
4609test "x$ac_build_alias" = x &&
4610  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4611test "x$ac_build_alias" = x &&
4612  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4613ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4614  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4615
4616fi
4617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4618$as_echo "$ac_cv_build" >&6; }
4619case $ac_cv_build in
4620*-*-*) ;;
4621*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4622esac
4623build=$ac_cv_build
4624ac_save_IFS=$IFS; IFS='-'
4625set x $ac_cv_build
4626shift
4627build_cpu=$1
4628build_vendor=$2
4629shift; shift
4630# Remember, the first character of IFS is used to create $*,
4631# except with old shells:
4632build_os=$*
4633IFS=$ac_save_IFS
4634case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4635
4636
4637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4638$as_echo_n "checking host system type... " >&6; }
4639if ${ac_cv_host+:} false; then :
4640  $as_echo_n "(cached) " >&6
4641else
4642  if test "x$host_alias" = x; then
4643  ac_cv_host=$ac_cv_build
4644else
4645  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4646    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4647fi
4648
4649fi
4650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4651$as_echo "$ac_cv_host" >&6; }
4652case $ac_cv_host in
4653*-*-*) ;;
4654*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4655esac
4656host=$ac_cv_host
4657ac_save_IFS=$IFS; IFS='-'
4658set x $ac_cv_host
4659shift
4660host_cpu=$1
4661host_vendor=$2
4662shift; shift
4663# Remember, the first character of IFS is used to create $*,
4664# except with old shells:
4665host_os=$*
4666IFS=$ac_save_IFS
4667case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4668
4669
4670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4671$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4672if ${ac_cv_path_SED+:} false; then :
4673  $as_echo_n "(cached) " >&6
4674else
4675            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4676     for ac_i in 1 2 3 4 5 6 7; do
4677       ac_script="$ac_script$as_nl$ac_script"
4678     done
4679     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4680     { ac_script=; unset ac_script;}
4681     if test -z "$SED"; then
4682  ac_path_SED_found=false
4683  # Loop through the user's path and test for each of PROGNAME-LIST
4684  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685for as_dir in $PATH
4686do
4687  IFS=$as_save_IFS
4688  test -z "$as_dir" && as_dir=.
4689    for ac_prog in sed gsed; do
4690    for ac_exec_ext in '' $ac_executable_extensions; do
4691      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4692      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4693# Check for GNU ac_path_SED and select it if it is found.
4694  # Check for GNU $ac_path_SED
4695case `"$ac_path_SED" --version 2>&1` in
4696*GNU*)
4697  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4698*)
4699  ac_count=0
4700  $as_echo_n 0123456789 >"conftest.in"
4701  while :
4702  do
4703    cat "conftest.in" "conftest.in" >"conftest.tmp"
4704    mv "conftest.tmp" "conftest.in"
4705    cp "conftest.in" "conftest.nl"
4706    $as_echo '' >> "conftest.nl"
4707    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4708    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4709    as_fn_arith $ac_count + 1 && ac_count=$as_val
4710    if test $ac_count -gt ${ac_path_SED_max-0}; then
4711      # Best one so far, save it but keep looking for a better one
4712      ac_cv_path_SED="$ac_path_SED"
4713      ac_path_SED_max=$ac_count
4714    fi
4715    # 10*(2^10) chars as input seems more than enough
4716    test $ac_count -gt 10 && break
4717  done
4718  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4719esac
4720
4721      $ac_path_SED_found && break 3
4722    done
4723  done
4724  done
4725IFS=$as_save_IFS
4726  if test -z "$ac_cv_path_SED"; then
4727    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4728  fi
4729else
4730  ac_cv_path_SED=$SED
4731fi
4732
4733fi
4734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4735$as_echo "$ac_cv_path_SED" >&6; }
4736 SED="$ac_cv_path_SED"
4737  rm -f conftest.sed
4738
4739
4740
4741
4742
4743
4744# Check whether --enable-selective-werror was given.
4745if test "${enable_selective_werror+set}" = set; then :
4746  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4747else
4748  SELECTIVE_WERROR=yes
4749fi
4750
4751
4752
4753
4754
4755# -v is too short to test reliably with XORG_TESTSET_CFLAG
4756if test "x$SUNCC" = "xyes"; then
4757    BASE_CFLAGS="-v"
4758else
4759    BASE_CFLAGS=""
4760fi
4761
4762# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776xorg_testset_save_CFLAGS="$CFLAGS"
4777
4778if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4779	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4780	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4781$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4782if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4783  $as_echo_n "(cached) " >&6
4784else
4785  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4786/* end confdefs.h.  */
4787int i;
4788_ACEOF
4789if ac_fn_c_try_compile "$LINENO"; then :
4790  xorg_cv_cc_flag_unknown_warning_option=yes
4791else
4792  xorg_cv_cc_flag_unknown_warning_option=no
4793fi
4794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4795fi
4796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4797$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4798	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4799	CFLAGS="$xorg_testset_save_CFLAGS"
4800fi
4801
4802if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4803	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4804		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4805	fi
4806	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4807	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4808$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4809if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4810  $as_echo_n "(cached) " >&6
4811else
4812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4813/* end confdefs.h.  */
4814int i;
4815_ACEOF
4816if ac_fn_c_try_compile "$LINENO"; then :
4817  xorg_cv_cc_flag_unused_command_line_argument=yes
4818else
4819  xorg_cv_cc_flag_unused_command_line_argument=no
4820fi
4821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4822fi
4823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4824$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4825	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4826	CFLAGS="$xorg_testset_save_CFLAGS"
4827fi
4828
4829found="no"
4830
4831	if test $found = "no" ; then
4832		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4833			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4834		fi
4835
4836		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4837			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4838		fi
4839
4840		CFLAGS="$CFLAGS -Wall"
4841
4842		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5
4843$as_echo_n "checking if $CC supports-Wall... " >&6; }
4844		cacheid=xorg_cv_cc_flag__Wall
4845		if eval \${$cacheid+:} false; then :
4846  $as_echo_n "(cached) " >&6
4847else
4848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4849/* end confdefs.h.  */
4850int i;
4851int
4852main ()
4853{
4854
4855  ;
4856  return 0;
4857}
4858_ACEOF
4859if ac_fn_c_try_link "$LINENO"; then :
4860  eval $cacheid=yes
4861else
4862  eval $cacheid=no
4863fi
4864rm -f core conftest.err conftest.$ac_objext \
4865    conftest$ac_exeext conftest.$ac_ext
4866fi
4867
4868
4869		CFLAGS="$xorg_testset_save_CFLAGS"
4870
4871		eval supported=\$$cacheid
4872		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4873$as_echo "$supported" >&6; }
4874		if test "$supported" = "yes" ; then
4875			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4876			found="yes"
4877		fi
4878	fi
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894xorg_testset_save_CFLAGS="$CFLAGS"
4895
4896if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4897	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4898	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4899$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4900if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4901  $as_echo_n "(cached) " >&6
4902else
4903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4904/* end confdefs.h.  */
4905int i;
4906_ACEOF
4907if ac_fn_c_try_compile "$LINENO"; then :
4908  xorg_cv_cc_flag_unknown_warning_option=yes
4909else
4910  xorg_cv_cc_flag_unknown_warning_option=no
4911fi
4912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4913fi
4914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4915$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4916	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4917	CFLAGS="$xorg_testset_save_CFLAGS"
4918fi
4919
4920if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4921	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4922		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4923	fi
4924	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4925	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4926$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4927if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4928  $as_echo_n "(cached) " >&6
4929else
4930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4931/* end confdefs.h.  */
4932int i;
4933_ACEOF
4934if ac_fn_c_try_compile "$LINENO"; then :
4935  xorg_cv_cc_flag_unused_command_line_argument=yes
4936else
4937  xorg_cv_cc_flag_unused_command_line_argument=no
4938fi
4939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4940fi
4941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4942$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4943	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4944	CFLAGS="$xorg_testset_save_CFLAGS"
4945fi
4946
4947found="no"
4948
4949	if test $found = "no" ; then
4950		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4951			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4952		fi
4953
4954		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4955			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4956		fi
4957
4958		CFLAGS="$CFLAGS -Wpointer-arith"
4959
4960		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5
4961$as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; }
4962		cacheid=xorg_cv_cc_flag__Wpointer_arith
4963		if eval \${$cacheid+:} false; then :
4964  $as_echo_n "(cached) " >&6
4965else
4966  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4967/* end confdefs.h.  */
4968int i;
4969int
4970main ()
4971{
4972
4973  ;
4974  return 0;
4975}
4976_ACEOF
4977if ac_fn_c_try_link "$LINENO"; then :
4978  eval $cacheid=yes
4979else
4980  eval $cacheid=no
4981fi
4982rm -f core conftest.err conftest.$ac_objext \
4983    conftest$ac_exeext conftest.$ac_ext
4984fi
4985
4986
4987		CFLAGS="$xorg_testset_save_CFLAGS"
4988
4989		eval supported=\$$cacheid
4990		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4991$as_echo "$supported" >&6; }
4992		if test "$supported" = "yes" ; then
4993			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4994			found="yes"
4995		fi
4996	fi
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012xorg_testset_save_CFLAGS="$CFLAGS"
5013
5014if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5015	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5016	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5017$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5018if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5019  $as_echo_n "(cached) " >&6
5020else
5021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5022/* end confdefs.h.  */
5023int i;
5024_ACEOF
5025if ac_fn_c_try_compile "$LINENO"; then :
5026  xorg_cv_cc_flag_unknown_warning_option=yes
5027else
5028  xorg_cv_cc_flag_unknown_warning_option=no
5029fi
5030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5031fi
5032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5033$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5034	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5035	CFLAGS="$xorg_testset_save_CFLAGS"
5036fi
5037
5038if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5039	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5040		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5041	fi
5042	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5043	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5044$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5045if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5046  $as_echo_n "(cached) " >&6
5047else
5048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5049/* end confdefs.h.  */
5050int i;
5051_ACEOF
5052if ac_fn_c_try_compile "$LINENO"; then :
5053  xorg_cv_cc_flag_unused_command_line_argument=yes
5054else
5055  xorg_cv_cc_flag_unused_command_line_argument=no
5056fi
5057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5058fi
5059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5060$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5061	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5062	CFLAGS="$xorg_testset_save_CFLAGS"
5063fi
5064
5065found="no"
5066
5067	if test $found = "no" ; then
5068		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5069			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5070		fi
5071
5072		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5073			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5074		fi
5075
5076		CFLAGS="$CFLAGS -Wmissing-declarations"
5077
5078		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5
5079$as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; }
5080		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5081		if eval \${$cacheid+:} false; then :
5082  $as_echo_n "(cached) " >&6
5083else
5084  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5085/* end confdefs.h.  */
5086int i;
5087int
5088main ()
5089{
5090
5091  ;
5092  return 0;
5093}
5094_ACEOF
5095if ac_fn_c_try_link "$LINENO"; then :
5096  eval $cacheid=yes
5097else
5098  eval $cacheid=no
5099fi
5100rm -f core conftest.err conftest.$ac_objext \
5101    conftest$ac_exeext conftest.$ac_ext
5102fi
5103
5104
5105		CFLAGS="$xorg_testset_save_CFLAGS"
5106
5107		eval supported=\$$cacheid
5108		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5109$as_echo "$supported" >&6; }
5110		if test "$supported" = "yes" ; then
5111			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5112			found="yes"
5113		fi
5114	fi
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130xorg_testset_save_CFLAGS="$CFLAGS"
5131
5132if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5133	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5134	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5135$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5136if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5137  $as_echo_n "(cached) " >&6
5138else
5139  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5140/* end confdefs.h.  */
5141int i;
5142_ACEOF
5143if ac_fn_c_try_compile "$LINENO"; then :
5144  xorg_cv_cc_flag_unknown_warning_option=yes
5145else
5146  xorg_cv_cc_flag_unknown_warning_option=no
5147fi
5148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5149fi
5150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5151$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5152	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5153	CFLAGS="$xorg_testset_save_CFLAGS"
5154fi
5155
5156if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5157	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5158		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5159	fi
5160	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5161	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5162$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5163if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5164  $as_echo_n "(cached) " >&6
5165else
5166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5167/* end confdefs.h.  */
5168int i;
5169_ACEOF
5170if ac_fn_c_try_compile "$LINENO"; then :
5171  xorg_cv_cc_flag_unused_command_line_argument=yes
5172else
5173  xorg_cv_cc_flag_unused_command_line_argument=no
5174fi
5175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5176fi
5177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5178$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5179	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5180	CFLAGS="$xorg_testset_save_CFLAGS"
5181fi
5182
5183found="no"
5184
5185	if test $found = "no" ; then
5186		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5187			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5188		fi
5189
5190		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5191			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5192		fi
5193
5194		CFLAGS="$CFLAGS -Wformat=2"
5195
5196		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5
5197$as_echo_n "checking if $CC supports-Wformat=2... " >&6; }
5198		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5199		if eval \${$cacheid+:} false; then :
5200  $as_echo_n "(cached) " >&6
5201else
5202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5203/* end confdefs.h.  */
5204int i;
5205int
5206main ()
5207{
5208
5209  ;
5210  return 0;
5211}
5212_ACEOF
5213if ac_fn_c_try_link "$LINENO"; then :
5214  eval $cacheid=yes
5215else
5216  eval $cacheid=no
5217fi
5218rm -f core conftest.err conftest.$ac_objext \
5219    conftest$ac_exeext conftest.$ac_ext
5220fi
5221
5222
5223		CFLAGS="$xorg_testset_save_CFLAGS"
5224
5225		eval supported=\$$cacheid
5226		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5227$as_echo "$supported" >&6; }
5228		if test "$supported" = "yes" ; then
5229			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5230			found="yes"
5231		fi
5232	fi
5233
5234	if test $found = "no" ; then
5235		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5236			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5237		fi
5238
5239		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5240			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5241		fi
5242
5243		CFLAGS="$CFLAGS -Wformat"
5244
5245		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5
5246$as_echo_n "checking if $CC supports-Wformat... " >&6; }
5247		cacheid=xorg_cv_cc_flag__Wformat
5248		if eval \${$cacheid+:} false; then :
5249  $as_echo_n "(cached) " >&6
5250else
5251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5252/* end confdefs.h.  */
5253int i;
5254int
5255main ()
5256{
5257
5258  ;
5259  return 0;
5260}
5261_ACEOF
5262if ac_fn_c_try_link "$LINENO"; then :
5263  eval $cacheid=yes
5264else
5265  eval $cacheid=no
5266fi
5267rm -f core conftest.err conftest.$ac_objext \
5268    conftest$ac_exeext conftest.$ac_ext
5269fi
5270
5271
5272		CFLAGS="$xorg_testset_save_CFLAGS"
5273
5274		eval supported=\$$cacheid
5275		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5276$as_echo "$supported" >&6; }
5277		if test "$supported" = "yes" ; then
5278			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5279			found="yes"
5280		fi
5281	fi
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299xorg_testset_save_CFLAGS="$CFLAGS"
5300
5301if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5302	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5303	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5304$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5305if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5306  $as_echo_n "(cached) " >&6
5307else
5308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5309/* end confdefs.h.  */
5310int i;
5311_ACEOF
5312if ac_fn_c_try_compile "$LINENO"; then :
5313  xorg_cv_cc_flag_unknown_warning_option=yes
5314else
5315  xorg_cv_cc_flag_unknown_warning_option=no
5316fi
5317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5318fi
5319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5320$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5321	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5322	CFLAGS="$xorg_testset_save_CFLAGS"
5323fi
5324
5325if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5326	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5327		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5328	fi
5329	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5330	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5331$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5332if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5333  $as_echo_n "(cached) " >&6
5334else
5335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5336/* end confdefs.h.  */
5337int i;
5338_ACEOF
5339if ac_fn_c_try_compile "$LINENO"; then :
5340  xorg_cv_cc_flag_unused_command_line_argument=yes
5341else
5342  xorg_cv_cc_flag_unused_command_line_argument=no
5343fi
5344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5345fi
5346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5347$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5348	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5349	CFLAGS="$xorg_testset_save_CFLAGS"
5350fi
5351
5352found="no"
5353
5354	if test $found = "no" ; then
5355		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5356			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5357		fi
5358
5359		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5360			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5361		fi
5362
5363		CFLAGS="$CFLAGS -Wstrict-prototypes"
5364
5365		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5
5366$as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; }
5367		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5368		if eval \${$cacheid+:} false; then :
5369  $as_echo_n "(cached) " >&6
5370else
5371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5372/* end confdefs.h.  */
5373int i;
5374int
5375main ()
5376{
5377
5378  ;
5379  return 0;
5380}
5381_ACEOF
5382if ac_fn_c_try_link "$LINENO"; then :
5383  eval $cacheid=yes
5384else
5385  eval $cacheid=no
5386fi
5387rm -f core conftest.err conftest.$ac_objext \
5388    conftest$ac_exeext conftest.$ac_ext
5389fi
5390
5391
5392		CFLAGS="$xorg_testset_save_CFLAGS"
5393
5394		eval supported=\$$cacheid
5395		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5396$as_echo "$supported" >&6; }
5397		if test "$supported" = "yes" ; then
5398			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5399			found="yes"
5400		fi
5401	fi
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417xorg_testset_save_CFLAGS="$CFLAGS"
5418
5419if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5420	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5421	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5422$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5423if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5424  $as_echo_n "(cached) " >&6
5425else
5426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5427/* end confdefs.h.  */
5428int i;
5429_ACEOF
5430if ac_fn_c_try_compile "$LINENO"; then :
5431  xorg_cv_cc_flag_unknown_warning_option=yes
5432else
5433  xorg_cv_cc_flag_unknown_warning_option=no
5434fi
5435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5436fi
5437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5438$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5439	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5440	CFLAGS="$xorg_testset_save_CFLAGS"
5441fi
5442
5443if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5444	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5445		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5446	fi
5447	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5448	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5449$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5450if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5451  $as_echo_n "(cached) " >&6
5452else
5453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5454/* end confdefs.h.  */
5455int i;
5456_ACEOF
5457if ac_fn_c_try_compile "$LINENO"; then :
5458  xorg_cv_cc_flag_unused_command_line_argument=yes
5459else
5460  xorg_cv_cc_flag_unused_command_line_argument=no
5461fi
5462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5463fi
5464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5465$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5466	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5467	CFLAGS="$xorg_testset_save_CFLAGS"
5468fi
5469
5470found="no"
5471
5472	if test $found = "no" ; then
5473		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5474			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5475		fi
5476
5477		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5478			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5479		fi
5480
5481		CFLAGS="$CFLAGS -Wmissing-prototypes"
5482
5483		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5
5484$as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; }
5485		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5486		if eval \${$cacheid+:} false; then :
5487  $as_echo_n "(cached) " >&6
5488else
5489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5490/* end confdefs.h.  */
5491int i;
5492int
5493main ()
5494{
5495
5496  ;
5497  return 0;
5498}
5499_ACEOF
5500if ac_fn_c_try_link "$LINENO"; then :
5501  eval $cacheid=yes
5502else
5503  eval $cacheid=no
5504fi
5505rm -f core conftest.err conftest.$ac_objext \
5506    conftest$ac_exeext conftest.$ac_ext
5507fi
5508
5509
5510		CFLAGS="$xorg_testset_save_CFLAGS"
5511
5512		eval supported=\$$cacheid
5513		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5514$as_echo "$supported" >&6; }
5515		if test "$supported" = "yes" ; then
5516			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5517			found="yes"
5518		fi
5519	fi
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535xorg_testset_save_CFLAGS="$CFLAGS"
5536
5537if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5538	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5539	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5540$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5541if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5542  $as_echo_n "(cached) " >&6
5543else
5544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5545/* end confdefs.h.  */
5546int i;
5547_ACEOF
5548if ac_fn_c_try_compile "$LINENO"; then :
5549  xorg_cv_cc_flag_unknown_warning_option=yes
5550else
5551  xorg_cv_cc_flag_unknown_warning_option=no
5552fi
5553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5554fi
5555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5556$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5557	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5558	CFLAGS="$xorg_testset_save_CFLAGS"
5559fi
5560
5561if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5562	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5563		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5564	fi
5565	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5566	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5567$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5568if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5569  $as_echo_n "(cached) " >&6
5570else
5571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5572/* end confdefs.h.  */
5573int i;
5574_ACEOF
5575if ac_fn_c_try_compile "$LINENO"; then :
5576  xorg_cv_cc_flag_unused_command_line_argument=yes
5577else
5578  xorg_cv_cc_flag_unused_command_line_argument=no
5579fi
5580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5581fi
5582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5583$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5584	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5585	CFLAGS="$xorg_testset_save_CFLAGS"
5586fi
5587
5588found="no"
5589
5590	if test $found = "no" ; then
5591		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5592			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5593		fi
5594
5595		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5596			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5597		fi
5598
5599		CFLAGS="$CFLAGS -Wnested-externs"
5600
5601		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5
5602$as_echo_n "checking if $CC supports-Wnested-externs... " >&6; }
5603		cacheid=xorg_cv_cc_flag__Wnested_externs
5604		if eval \${$cacheid+:} false; then :
5605  $as_echo_n "(cached) " >&6
5606else
5607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608/* end confdefs.h.  */
5609int i;
5610int
5611main ()
5612{
5613
5614  ;
5615  return 0;
5616}
5617_ACEOF
5618if ac_fn_c_try_link "$LINENO"; then :
5619  eval $cacheid=yes
5620else
5621  eval $cacheid=no
5622fi
5623rm -f core conftest.err conftest.$ac_objext \
5624    conftest$ac_exeext conftest.$ac_ext
5625fi
5626
5627
5628		CFLAGS="$xorg_testset_save_CFLAGS"
5629
5630		eval supported=\$$cacheid
5631		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5632$as_echo "$supported" >&6; }
5633		if test "$supported" = "yes" ; then
5634			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5635			found="yes"
5636		fi
5637	fi
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653xorg_testset_save_CFLAGS="$CFLAGS"
5654
5655if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5656	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5657	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5658$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5659if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5660  $as_echo_n "(cached) " >&6
5661else
5662  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5663/* end confdefs.h.  */
5664int i;
5665_ACEOF
5666if ac_fn_c_try_compile "$LINENO"; then :
5667  xorg_cv_cc_flag_unknown_warning_option=yes
5668else
5669  xorg_cv_cc_flag_unknown_warning_option=no
5670fi
5671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5672fi
5673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5674$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5675	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5676	CFLAGS="$xorg_testset_save_CFLAGS"
5677fi
5678
5679if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5680	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5681		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5682	fi
5683	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5684	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5685$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5686if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5687  $as_echo_n "(cached) " >&6
5688else
5689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5690/* end confdefs.h.  */
5691int i;
5692_ACEOF
5693if ac_fn_c_try_compile "$LINENO"; then :
5694  xorg_cv_cc_flag_unused_command_line_argument=yes
5695else
5696  xorg_cv_cc_flag_unused_command_line_argument=no
5697fi
5698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5699fi
5700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5701$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5702	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5703	CFLAGS="$xorg_testset_save_CFLAGS"
5704fi
5705
5706found="no"
5707
5708	if test $found = "no" ; then
5709		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5710			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5711		fi
5712
5713		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5714			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5715		fi
5716
5717		CFLAGS="$CFLAGS -Wbad-function-cast"
5718
5719		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5
5720$as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; }
5721		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5722		if eval \${$cacheid+:} false; then :
5723  $as_echo_n "(cached) " >&6
5724else
5725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5726/* end confdefs.h.  */
5727int i;
5728int
5729main ()
5730{
5731
5732  ;
5733  return 0;
5734}
5735_ACEOF
5736if ac_fn_c_try_link "$LINENO"; then :
5737  eval $cacheid=yes
5738else
5739  eval $cacheid=no
5740fi
5741rm -f core conftest.err conftest.$ac_objext \
5742    conftest$ac_exeext conftest.$ac_ext
5743fi
5744
5745
5746		CFLAGS="$xorg_testset_save_CFLAGS"
5747
5748		eval supported=\$$cacheid
5749		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5750$as_echo "$supported" >&6; }
5751		if test "$supported" = "yes" ; then
5752			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5753			found="yes"
5754		fi
5755	fi
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771xorg_testset_save_CFLAGS="$CFLAGS"
5772
5773if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5774	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5775	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5776$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5777if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5778  $as_echo_n "(cached) " >&6
5779else
5780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5781/* end confdefs.h.  */
5782int i;
5783_ACEOF
5784if ac_fn_c_try_compile "$LINENO"; then :
5785  xorg_cv_cc_flag_unknown_warning_option=yes
5786else
5787  xorg_cv_cc_flag_unknown_warning_option=no
5788fi
5789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5790fi
5791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5792$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5793	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5794	CFLAGS="$xorg_testset_save_CFLAGS"
5795fi
5796
5797if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5798	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5799		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5800	fi
5801	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5802	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5803$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5804if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5805  $as_echo_n "(cached) " >&6
5806else
5807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5808/* end confdefs.h.  */
5809int i;
5810_ACEOF
5811if ac_fn_c_try_compile "$LINENO"; then :
5812  xorg_cv_cc_flag_unused_command_line_argument=yes
5813else
5814  xorg_cv_cc_flag_unused_command_line_argument=no
5815fi
5816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5817fi
5818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5819$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5820	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5821	CFLAGS="$xorg_testset_save_CFLAGS"
5822fi
5823
5824found="no"
5825
5826	if test $found = "no" ; then
5827		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5828			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5829		fi
5830
5831		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5832			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5833		fi
5834
5835		CFLAGS="$CFLAGS -Wold-style-definition"
5836
5837		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5
5838$as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; }
5839		cacheid=xorg_cv_cc_flag__Wold_style_definition
5840		if eval \${$cacheid+:} false; then :
5841  $as_echo_n "(cached) " >&6
5842else
5843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5844/* end confdefs.h.  */
5845int i;
5846int
5847main ()
5848{
5849
5850  ;
5851  return 0;
5852}
5853_ACEOF
5854if ac_fn_c_try_link "$LINENO"; then :
5855  eval $cacheid=yes
5856else
5857  eval $cacheid=no
5858fi
5859rm -f core conftest.err conftest.$ac_objext \
5860    conftest$ac_exeext conftest.$ac_ext
5861fi
5862
5863
5864		CFLAGS="$xorg_testset_save_CFLAGS"
5865
5866		eval supported=\$$cacheid
5867		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5868$as_echo "$supported" >&6; }
5869		if test "$supported" = "yes" ; then
5870			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5871			found="yes"
5872		fi
5873	fi
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889xorg_testset_save_CFLAGS="$CFLAGS"
5890
5891if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5892	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5893	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5894$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5895if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5896  $as_echo_n "(cached) " >&6
5897else
5898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5899/* end confdefs.h.  */
5900int i;
5901_ACEOF
5902if ac_fn_c_try_compile "$LINENO"; then :
5903  xorg_cv_cc_flag_unknown_warning_option=yes
5904else
5905  xorg_cv_cc_flag_unknown_warning_option=no
5906fi
5907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5908fi
5909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5910$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5911	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5912	CFLAGS="$xorg_testset_save_CFLAGS"
5913fi
5914
5915if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5916	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5917		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5918	fi
5919	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5920	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5921$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5922if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5923  $as_echo_n "(cached) " >&6
5924else
5925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5926/* end confdefs.h.  */
5927int i;
5928_ACEOF
5929if ac_fn_c_try_compile "$LINENO"; then :
5930  xorg_cv_cc_flag_unused_command_line_argument=yes
5931else
5932  xorg_cv_cc_flag_unused_command_line_argument=no
5933fi
5934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5935fi
5936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5937$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5938	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5939	CFLAGS="$xorg_testset_save_CFLAGS"
5940fi
5941
5942found="no"
5943
5944	if test $found = "no" ; then
5945		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5946			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5947		fi
5948
5949		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5950			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5951		fi
5952
5953		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5954
5955		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5
5956$as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; }
5957		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5958		if eval \${$cacheid+:} false; then :
5959  $as_echo_n "(cached) " >&6
5960else
5961  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5962/* end confdefs.h.  */
5963int i;
5964int
5965main ()
5966{
5967
5968  ;
5969  return 0;
5970}
5971_ACEOF
5972if ac_fn_c_try_link "$LINENO"; then :
5973  eval $cacheid=yes
5974else
5975  eval $cacheid=no
5976fi
5977rm -f core conftest.err conftest.$ac_objext \
5978    conftest$ac_exeext conftest.$ac_ext
5979fi
5980
5981
5982		CFLAGS="$xorg_testset_save_CFLAGS"
5983
5984		eval supported=\$$cacheid
5985		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5986$as_echo "$supported" >&6; }
5987		if test "$supported" = "yes" ; then
5988			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5989			found="yes"
5990		fi
5991	fi
5992
5993
5994
5995
5996
5997# This chunk adds additional warnings that could catch undesired effects.
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011xorg_testset_save_CFLAGS="$CFLAGS"
6012
6013if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6014	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6015	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6016$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6017if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6018  $as_echo_n "(cached) " >&6
6019else
6020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6021/* end confdefs.h.  */
6022int i;
6023_ACEOF
6024if ac_fn_c_try_compile "$LINENO"; then :
6025  xorg_cv_cc_flag_unknown_warning_option=yes
6026else
6027  xorg_cv_cc_flag_unknown_warning_option=no
6028fi
6029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6030fi
6031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6032$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6033	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6034	CFLAGS="$xorg_testset_save_CFLAGS"
6035fi
6036
6037if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6038	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6039		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6040	fi
6041	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6042	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6043$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6044if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6045  $as_echo_n "(cached) " >&6
6046else
6047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6048/* end confdefs.h.  */
6049int i;
6050_ACEOF
6051if ac_fn_c_try_compile "$LINENO"; then :
6052  xorg_cv_cc_flag_unused_command_line_argument=yes
6053else
6054  xorg_cv_cc_flag_unused_command_line_argument=no
6055fi
6056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6057fi
6058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6059$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6060	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6061	CFLAGS="$xorg_testset_save_CFLAGS"
6062fi
6063
6064found="no"
6065
6066	if test $found = "no" ; then
6067		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6068			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6069		fi
6070
6071		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6072			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6073		fi
6074
6075		CFLAGS="$CFLAGS -Wunused"
6076
6077		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5
6078$as_echo_n "checking if $CC supports-Wunused... " >&6; }
6079		cacheid=xorg_cv_cc_flag__Wunused
6080		if eval \${$cacheid+:} false; then :
6081  $as_echo_n "(cached) " >&6
6082else
6083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6084/* end confdefs.h.  */
6085int i;
6086int
6087main ()
6088{
6089
6090  ;
6091  return 0;
6092}
6093_ACEOF
6094if ac_fn_c_try_link "$LINENO"; then :
6095  eval $cacheid=yes
6096else
6097  eval $cacheid=no
6098fi
6099rm -f core conftest.err conftest.$ac_objext \
6100    conftest$ac_exeext conftest.$ac_ext
6101fi
6102
6103
6104		CFLAGS="$xorg_testset_save_CFLAGS"
6105
6106		eval supported=\$$cacheid
6107		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6108$as_echo "$supported" >&6; }
6109		if test "$supported" = "yes" ; then
6110			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6111			found="yes"
6112		fi
6113	fi
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129xorg_testset_save_CFLAGS="$CFLAGS"
6130
6131if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6132	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6133	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6134$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6135if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6136  $as_echo_n "(cached) " >&6
6137else
6138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6139/* end confdefs.h.  */
6140int i;
6141_ACEOF
6142if ac_fn_c_try_compile "$LINENO"; then :
6143  xorg_cv_cc_flag_unknown_warning_option=yes
6144else
6145  xorg_cv_cc_flag_unknown_warning_option=no
6146fi
6147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6148fi
6149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6150$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6151	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6152	CFLAGS="$xorg_testset_save_CFLAGS"
6153fi
6154
6155if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6156	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6157		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6158	fi
6159	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6160	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6161$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6162if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6163  $as_echo_n "(cached) " >&6
6164else
6165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6166/* end confdefs.h.  */
6167int i;
6168_ACEOF
6169if ac_fn_c_try_compile "$LINENO"; then :
6170  xorg_cv_cc_flag_unused_command_line_argument=yes
6171else
6172  xorg_cv_cc_flag_unused_command_line_argument=no
6173fi
6174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6175fi
6176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6177$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6178	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6179	CFLAGS="$xorg_testset_save_CFLAGS"
6180fi
6181
6182found="no"
6183
6184	if test $found = "no" ; then
6185		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6186			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6187		fi
6188
6189		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6190			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6191		fi
6192
6193		CFLAGS="$CFLAGS -Wuninitialized"
6194
6195		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5
6196$as_echo_n "checking if $CC supports-Wuninitialized... " >&6; }
6197		cacheid=xorg_cv_cc_flag__Wuninitialized
6198		if eval \${$cacheid+:} false; then :
6199  $as_echo_n "(cached) " >&6
6200else
6201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6202/* end confdefs.h.  */
6203int i;
6204int
6205main ()
6206{
6207
6208  ;
6209  return 0;
6210}
6211_ACEOF
6212if ac_fn_c_try_link "$LINENO"; then :
6213  eval $cacheid=yes
6214else
6215  eval $cacheid=no
6216fi
6217rm -f core conftest.err conftest.$ac_objext \
6218    conftest$ac_exeext conftest.$ac_ext
6219fi
6220
6221
6222		CFLAGS="$xorg_testset_save_CFLAGS"
6223
6224		eval supported=\$$cacheid
6225		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6226$as_echo "$supported" >&6; }
6227		if test "$supported" = "yes" ; then
6228			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6229			found="yes"
6230		fi
6231	fi
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247xorg_testset_save_CFLAGS="$CFLAGS"
6248
6249if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6250	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6251	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6252$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6253if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6254  $as_echo_n "(cached) " >&6
6255else
6256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6257/* end confdefs.h.  */
6258int i;
6259_ACEOF
6260if ac_fn_c_try_compile "$LINENO"; then :
6261  xorg_cv_cc_flag_unknown_warning_option=yes
6262else
6263  xorg_cv_cc_flag_unknown_warning_option=no
6264fi
6265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6266fi
6267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6268$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6269	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6270	CFLAGS="$xorg_testset_save_CFLAGS"
6271fi
6272
6273if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6274	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6275		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6276	fi
6277	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6278	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6279$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6280if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6281  $as_echo_n "(cached) " >&6
6282else
6283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6284/* end confdefs.h.  */
6285int i;
6286_ACEOF
6287if ac_fn_c_try_compile "$LINENO"; then :
6288  xorg_cv_cc_flag_unused_command_line_argument=yes
6289else
6290  xorg_cv_cc_flag_unused_command_line_argument=no
6291fi
6292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6293fi
6294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6295$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6296	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6297	CFLAGS="$xorg_testset_save_CFLAGS"
6298fi
6299
6300found="no"
6301
6302	if test $found = "no" ; then
6303		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6304			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6305		fi
6306
6307		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6308			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6309		fi
6310
6311		CFLAGS="$CFLAGS -Wshadow"
6312
6313		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5
6314$as_echo_n "checking if $CC supports-Wshadow... " >&6; }
6315		cacheid=xorg_cv_cc_flag__Wshadow
6316		if eval \${$cacheid+:} false; then :
6317  $as_echo_n "(cached) " >&6
6318else
6319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6320/* end confdefs.h.  */
6321int i;
6322int
6323main ()
6324{
6325
6326  ;
6327  return 0;
6328}
6329_ACEOF
6330if ac_fn_c_try_link "$LINENO"; then :
6331  eval $cacheid=yes
6332else
6333  eval $cacheid=no
6334fi
6335rm -f core conftest.err conftest.$ac_objext \
6336    conftest$ac_exeext conftest.$ac_ext
6337fi
6338
6339
6340		CFLAGS="$xorg_testset_save_CFLAGS"
6341
6342		eval supported=\$$cacheid
6343		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6344$as_echo "$supported" >&6; }
6345		if test "$supported" = "yes" ; then
6346			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6347			found="yes"
6348		fi
6349	fi
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365xorg_testset_save_CFLAGS="$CFLAGS"
6366
6367if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6368	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6369	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6370$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6371if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6372  $as_echo_n "(cached) " >&6
6373else
6374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6375/* end confdefs.h.  */
6376int i;
6377_ACEOF
6378if ac_fn_c_try_compile "$LINENO"; then :
6379  xorg_cv_cc_flag_unknown_warning_option=yes
6380else
6381  xorg_cv_cc_flag_unknown_warning_option=no
6382fi
6383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6384fi
6385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6386$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6387	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6388	CFLAGS="$xorg_testset_save_CFLAGS"
6389fi
6390
6391if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6392	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6393		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6394	fi
6395	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6396	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6397$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6398if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6399  $as_echo_n "(cached) " >&6
6400else
6401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6402/* end confdefs.h.  */
6403int i;
6404_ACEOF
6405if ac_fn_c_try_compile "$LINENO"; then :
6406  xorg_cv_cc_flag_unused_command_line_argument=yes
6407else
6408  xorg_cv_cc_flag_unused_command_line_argument=no
6409fi
6410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6411fi
6412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6413$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6414	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6415	CFLAGS="$xorg_testset_save_CFLAGS"
6416fi
6417
6418found="no"
6419
6420	if test $found = "no" ; then
6421		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6422			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6423		fi
6424
6425		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6426			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6427		fi
6428
6429		CFLAGS="$CFLAGS -Wcast-qual"
6430
6431		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5
6432$as_echo_n "checking if $CC supports-Wcast-qual... " >&6; }
6433		cacheid=xorg_cv_cc_flag__Wcast_qual
6434		if eval \${$cacheid+:} false; then :
6435  $as_echo_n "(cached) " >&6
6436else
6437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6438/* end confdefs.h.  */
6439int i;
6440int
6441main ()
6442{
6443
6444  ;
6445  return 0;
6446}
6447_ACEOF
6448if ac_fn_c_try_link "$LINENO"; then :
6449  eval $cacheid=yes
6450else
6451  eval $cacheid=no
6452fi
6453rm -f core conftest.err conftest.$ac_objext \
6454    conftest$ac_exeext conftest.$ac_ext
6455fi
6456
6457
6458		CFLAGS="$xorg_testset_save_CFLAGS"
6459
6460		eval supported=\$$cacheid
6461		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6462$as_echo "$supported" >&6; }
6463		if test "$supported" = "yes" ; then
6464			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6465			found="yes"
6466		fi
6467	fi
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483xorg_testset_save_CFLAGS="$CFLAGS"
6484
6485if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6486	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6487	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6488$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6489if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6490  $as_echo_n "(cached) " >&6
6491else
6492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6493/* end confdefs.h.  */
6494int i;
6495_ACEOF
6496if ac_fn_c_try_compile "$LINENO"; then :
6497  xorg_cv_cc_flag_unknown_warning_option=yes
6498else
6499  xorg_cv_cc_flag_unknown_warning_option=no
6500fi
6501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6502fi
6503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6504$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6505	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6506	CFLAGS="$xorg_testset_save_CFLAGS"
6507fi
6508
6509if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6510	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6511		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6512	fi
6513	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6514	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6515$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6516if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6517  $as_echo_n "(cached) " >&6
6518else
6519  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6520/* end confdefs.h.  */
6521int i;
6522_ACEOF
6523if ac_fn_c_try_compile "$LINENO"; then :
6524  xorg_cv_cc_flag_unused_command_line_argument=yes
6525else
6526  xorg_cv_cc_flag_unused_command_line_argument=no
6527fi
6528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6529fi
6530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6531$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6532	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6533	CFLAGS="$xorg_testset_save_CFLAGS"
6534fi
6535
6536found="no"
6537
6538	if test $found = "no" ; then
6539		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6540			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6541		fi
6542
6543		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6544			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6545		fi
6546
6547		CFLAGS="$CFLAGS -Wmissing-noreturn"
6548
6549		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5
6550$as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; }
6551		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6552		if eval \${$cacheid+:} false; then :
6553  $as_echo_n "(cached) " >&6
6554else
6555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6556/* end confdefs.h.  */
6557int i;
6558int
6559main ()
6560{
6561
6562  ;
6563  return 0;
6564}
6565_ACEOF
6566if ac_fn_c_try_link "$LINENO"; then :
6567  eval $cacheid=yes
6568else
6569  eval $cacheid=no
6570fi
6571rm -f core conftest.err conftest.$ac_objext \
6572    conftest$ac_exeext conftest.$ac_ext
6573fi
6574
6575
6576		CFLAGS="$xorg_testset_save_CFLAGS"
6577
6578		eval supported=\$$cacheid
6579		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6580$as_echo "$supported" >&6; }
6581		if test "$supported" = "yes" ; then
6582			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6583			found="yes"
6584		fi
6585	fi
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601xorg_testset_save_CFLAGS="$CFLAGS"
6602
6603if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6604	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6605	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6606$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6607if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6608  $as_echo_n "(cached) " >&6
6609else
6610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6611/* end confdefs.h.  */
6612int i;
6613_ACEOF
6614if ac_fn_c_try_compile "$LINENO"; then :
6615  xorg_cv_cc_flag_unknown_warning_option=yes
6616else
6617  xorg_cv_cc_flag_unknown_warning_option=no
6618fi
6619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6620fi
6621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6622$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6623	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6624	CFLAGS="$xorg_testset_save_CFLAGS"
6625fi
6626
6627if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6628	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6629		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6630	fi
6631	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6632	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6633$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6634if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6635  $as_echo_n "(cached) " >&6
6636else
6637  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638/* end confdefs.h.  */
6639int i;
6640_ACEOF
6641if ac_fn_c_try_compile "$LINENO"; then :
6642  xorg_cv_cc_flag_unused_command_line_argument=yes
6643else
6644  xorg_cv_cc_flag_unused_command_line_argument=no
6645fi
6646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6647fi
6648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6649$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6650	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6651	CFLAGS="$xorg_testset_save_CFLAGS"
6652fi
6653
6654found="no"
6655
6656	if test $found = "no" ; then
6657		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6658			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6659		fi
6660
6661		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6662			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6663		fi
6664
6665		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6666
6667		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5
6668$as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; }
6669		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6670		if eval \${$cacheid+:} false; then :
6671  $as_echo_n "(cached) " >&6
6672else
6673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6674/* end confdefs.h.  */
6675int i;
6676int
6677main ()
6678{
6679
6680  ;
6681  return 0;
6682}
6683_ACEOF
6684if ac_fn_c_try_link "$LINENO"; then :
6685  eval $cacheid=yes
6686else
6687  eval $cacheid=no
6688fi
6689rm -f core conftest.err conftest.$ac_objext \
6690    conftest$ac_exeext conftest.$ac_ext
6691fi
6692
6693
6694		CFLAGS="$xorg_testset_save_CFLAGS"
6695
6696		eval supported=\$$cacheid
6697		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6698$as_echo "$supported" >&6; }
6699		if test "$supported" = "yes" ; then
6700			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6701			found="yes"
6702		fi
6703	fi
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719xorg_testset_save_CFLAGS="$CFLAGS"
6720
6721if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6722	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6723	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6724$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6725if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6726  $as_echo_n "(cached) " >&6
6727else
6728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6729/* end confdefs.h.  */
6730int i;
6731_ACEOF
6732if ac_fn_c_try_compile "$LINENO"; then :
6733  xorg_cv_cc_flag_unknown_warning_option=yes
6734else
6735  xorg_cv_cc_flag_unknown_warning_option=no
6736fi
6737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6738fi
6739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6740$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6741	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6742	CFLAGS="$xorg_testset_save_CFLAGS"
6743fi
6744
6745if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6746	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6747		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6748	fi
6749	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6750	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6751$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6752if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6753  $as_echo_n "(cached) " >&6
6754else
6755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6756/* end confdefs.h.  */
6757int i;
6758_ACEOF
6759if ac_fn_c_try_compile "$LINENO"; then :
6760  xorg_cv_cc_flag_unused_command_line_argument=yes
6761else
6762  xorg_cv_cc_flag_unused_command_line_argument=no
6763fi
6764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6765fi
6766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6767$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6768	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6769	CFLAGS="$xorg_testset_save_CFLAGS"
6770fi
6771
6772found="no"
6773
6774	if test $found = "no" ; then
6775		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6776			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6777		fi
6778
6779		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6780			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6781		fi
6782
6783		CFLAGS="$CFLAGS -Wredundant-decls"
6784
6785		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5
6786$as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; }
6787		cacheid=xorg_cv_cc_flag__Wredundant_decls
6788		if eval \${$cacheid+:} false; then :
6789  $as_echo_n "(cached) " >&6
6790else
6791  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6792/* end confdefs.h.  */
6793int i;
6794int
6795main ()
6796{
6797
6798  ;
6799  return 0;
6800}
6801_ACEOF
6802if ac_fn_c_try_link "$LINENO"; then :
6803  eval $cacheid=yes
6804else
6805  eval $cacheid=no
6806fi
6807rm -f core conftest.err conftest.$ac_objext \
6808    conftest$ac_exeext conftest.$ac_ext
6809fi
6810
6811
6812		CFLAGS="$xorg_testset_save_CFLAGS"
6813
6814		eval supported=\$$cacheid
6815		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6816$as_echo "$supported" >&6; }
6817		if test "$supported" = "yes" ; then
6818			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6819			found="yes"
6820		fi
6821	fi
6822
6823
6824
6825# These are currently disabled because they are noisy.  They will be enabled
6826# in the future once the codebase is sufficiently modernized to silence
6827# them.  For now, I don't want them to drown out the other warnings.
6828# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6829# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6830# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6831
6832# Turn some warnings into errors, so we don't accidently get successful builds
6833# when there are problems that should be fixed.
6834
6835if test "x$SELECTIVE_WERROR" = "xyes" ; then
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849xorg_testset_save_CFLAGS="$CFLAGS"
6850
6851if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6852	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6853	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6854$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6855if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6856  $as_echo_n "(cached) " >&6
6857else
6858  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6859/* end confdefs.h.  */
6860int i;
6861_ACEOF
6862if ac_fn_c_try_compile "$LINENO"; then :
6863  xorg_cv_cc_flag_unknown_warning_option=yes
6864else
6865  xorg_cv_cc_flag_unknown_warning_option=no
6866fi
6867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6868fi
6869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6870$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6871	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6872	CFLAGS="$xorg_testset_save_CFLAGS"
6873fi
6874
6875if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6876	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6877		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6878	fi
6879	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6880	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6881$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6882if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6883  $as_echo_n "(cached) " >&6
6884else
6885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6886/* end confdefs.h.  */
6887int i;
6888_ACEOF
6889if ac_fn_c_try_compile "$LINENO"; then :
6890  xorg_cv_cc_flag_unused_command_line_argument=yes
6891else
6892  xorg_cv_cc_flag_unused_command_line_argument=no
6893fi
6894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6895fi
6896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6897$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6898	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6899	CFLAGS="$xorg_testset_save_CFLAGS"
6900fi
6901
6902found="no"
6903
6904	if test $found = "no" ; then
6905		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6906			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6907		fi
6908
6909		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6910			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6911		fi
6912
6913		CFLAGS="$CFLAGS -Werror=implicit"
6914
6915		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5
6916$as_echo_n "checking if $CC supports-Werror=implicit... " >&6; }
6917		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6918		if eval \${$cacheid+:} false; then :
6919  $as_echo_n "(cached) " >&6
6920else
6921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6922/* end confdefs.h.  */
6923int i;
6924int
6925main ()
6926{
6927
6928  ;
6929  return 0;
6930}
6931_ACEOF
6932if ac_fn_c_try_link "$LINENO"; then :
6933  eval $cacheid=yes
6934else
6935  eval $cacheid=no
6936fi
6937rm -f core conftest.err conftest.$ac_objext \
6938    conftest$ac_exeext conftest.$ac_ext
6939fi
6940
6941
6942		CFLAGS="$xorg_testset_save_CFLAGS"
6943
6944		eval supported=\$$cacheid
6945		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6946$as_echo "$supported" >&6; }
6947		if test "$supported" = "yes" ; then
6948			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6949			found="yes"
6950		fi
6951	fi
6952
6953	if test $found = "no" ; then
6954		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6955			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6956		fi
6957
6958		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6959			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6960		fi
6961
6962		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6963
6964		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6965$as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6966		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6967		if eval \${$cacheid+:} false; then :
6968  $as_echo_n "(cached) " >&6
6969else
6970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6971/* end confdefs.h.  */
6972int i;
6973int
6974main ()
6975{
6976
6977  ;
6978  return 0;
6979}
6980_ACEOF
6981if ac_fn_c_try_link "$LINENO"; then :
6982  eval $cacheid=yes
6983else
6984  eval $cacheid=no
6985fi
6986rm -f core conftest.err conftest.$ac_objext \
6987    conftest$ac_exeext conftest.$ac_ext
6988fi
6989
6990
6991		CFLAGS="$xorg_testset_save_CFLAGS"
6992
6993		eval supported=\$$cacheid
6994		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6995$as_echo "$supported" >&6; }
6996		if test "$supported" = "yes" ; then
6997			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6998			found="yes"
6999		fi
7000	fi
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016xorg_testset_save_CFLAGS="$CFLAGS"
7017
7018if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7019	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7020	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7021$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7022if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7023  $as_echo_n "(cached) " >&6
7024else
7025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7026/* end confdefs.h.  */
7027int i;
7028_ACEOF
7029if ac_fn_c_try_compile "$LINENO"; then :
7030  xorg_cv_cc_flag_unknown_warning_option=yes
7031else
7032  xorg_cv_cc_flag_unknown_warning_option=no
7033fi
7034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7035fi
7036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7037$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7038	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7039	CFLAGS="$xorg_testset_save_CFLAGS"
7040fi
7041
7042if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7043	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7044		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7045	fi
7046	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7047	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7048$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7049if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7050  $as_echo_n "(cached) " >&6
7051else
7052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7053/* end confdefs.h.  */
7054int i;
7055_ACEOF
7056if ac_fn_c_try_compile "$LINENO"; then :
7057  xorg_cv_cc_flag_unused_command_line_argument=yes
7058else
7059  xorg_cv_cc_flag_unused_command_line_argument=no
7060fi
7061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7062fi
7063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7064$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7065	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7066	CFLAGS="$xorg_testset_save_CFLAGS"
7067fi
7068
7069found="no"
7070
7071	if test $found = "no" ; then
7072		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7073			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7074		fi
7075
7076		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7077			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7078		fi
7079
7080		CFLAGS="$CFLAGS -Werror=nonnull"
7081
7082		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5
7083$as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; }
7084		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
7085		if eval \${$cacheid+:} false; then :
7086  $as_echo_n "(cached) " >&6
7087else
7088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7089/* end confdefs.h.  */
7090int i;
7091int
7092main ()
7093{
7094
7095  ;
7096  return 0;
7097}
7098_ACEOF
7099if ac_fn_c_try_link "$LINENO"; then :
7100  eval $cacheid=yes
7101else
7102  eval $cacheid=no
7103fi
7104rm -f core conftest.err conftest.$ac_objext \
7105    conftest$ac_exeext conftest.$ac_ext
7106fi
7107
7108
7109		CFLAGS="$xorg_testset_save_CFLAGS"
7110
7111		eval supported=\$$cacheid
7112		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7113$as_echo "$supported" >&6; }
7114		if test "$supported" = "yes" ; then
7115			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7116			found="yes"
7117		fi
7118	fi
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134xorg_testset_save_CFLAGS="$CFLAGS"
7135
7136if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7137	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7138	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7139$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7140if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7141  $as_echo_n "(cached) " >&6
7142else
7143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7144/* end confdefs.h.  */
7145int i;
7146_ACEOF
7147if ac_fn_c_try_compile "$LINENO"; then :
7148  xorg_cv_cc_flag_unknown_warning_option=yes
7149else
7150  xorg_cv_cc_flag_unknown_warning_option=no
7151fi
7152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7153fi
7154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7155$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7156	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7157	CFLAGS="$xorg_testset_save_CFLAGS"
7158fi
7159
7160if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7161	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7162		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7163	fi
7164	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7165	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7166$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7167if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7168  $as_echo_n "(cached) " >&6
7169else
7170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7171/* end confdefs.h.  */
7172int i;
7173_ACEOF
7174if ac_fn_c_try_compile "$LINENO"; then :
7175  xorg_cv_cc_flag_unused_command_line_argument=yes
7176else
7177  xorg_cv_cc_flag_unused_command_line_argument=no
7178fi
7179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7180fi
7181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7182$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7183	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7184	CFLAGS="$xorg_testset_save_CFLAGS"
7185fi
7186
7187found="no"
7188
7189	if test $found = "no" ; then
7190		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7191			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7192		fi
7193
7194		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7195			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7196		fi
7197
7198		CFLAGS="$CFLAGS -Werror=init-self"
7199
7200		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5
7201$as_echo_n "checking if $CC supports-Werror=init-self... " >&6; }
7202		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7203		if eval \${$cacheid+:} false; then :
7204  $as_echo_n "(cached) " >&6
7205else
7206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7207/* end confdefs.h.  */
7208int i;
7209int
7210main ()
7211{
7212
7213  ;
7214  return 0;
7215}
7216_ACEOF
7217if ac_fn_c_try_link "$LINENO"; then :
7218  eval $cacheid=yes
7219else
7220  eval $cacheid=no
7221fi
7222rm -f core conftest.err conftest.$ac_objext \
7223    conftest$ac_exeext conftest.$ac_ext
7224fi
7225
7226
7227		CFLAGS="$xorg_testset_save_CFLAGS"
7228
7229		eval supported=\$$cacheid
7230		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7231$as_echo "$supported" >&6; }
7232		if test "$supported" = "yes" ; then
7233			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7234			found="yes"
7235		fi
7236	fi
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252xorg_testset_save_CFLAGS="$CFLAGS"
7253
7254if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7255	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7256	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7257$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7258if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7259  $as_echo_n "(cached) " >&6
7260else
7261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7262/* end confdefs.h.  */
7263int i;
7264_ACEOF
7265if ac_fn_c_try_compile "$LINENO"; then :
7266  xorg_cv_cc_flag_unknown_warning_option=yes
7267else
7268  xorg_cv_cc_flag_unknown_warning_option=no
7269fi
7270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7271fi
7272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7273$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7274	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7275	CFLAGS="$xorg_testset_save_CFLAGS"
7276fi
7277
7278if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7279	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7280		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7281	fi
7282	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7283	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7284$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7285if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7286  $as_echo_n "(cached) " >&6
7287else
7288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7289/* end confdefs.h.  */
7290int i;
7291_ACEOF
7292if ac_fn_c_try_compile "$LINENO"; then :
7293  xorg_cv_cc_flag_unused_command_line_argument=yes
7294else
7295  xorg_cv_cc_flag_unused_command_line_argument=no
7296fi
7297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7298fi
7299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7300$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7301	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7302	CFLAGS="$xorg_testset_save_CFLAGS"
7303fi
7304
7305found="no"
7306
7307	if test $found = "no" ; then
7308		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7309			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7310		fi
7311
7312		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7313			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7314		fi
7315
7316		CFLAGS="$CFLAGS -Werror=main"
7317
7318		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5
7319$as_echo_n "checking if $CC supports-Werror=main... " >&6; }
7320		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7321		if eval \${$cacheid+:} false; then :
7322  $as_echo_n "(cached) " >&6
7323else
7324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7325/* end confdefs.h.  */
7326int i;
7327int
7328main ()
7329{
7330
7331  ;
7332  return 0;
7333}
7334_ACEOF
7335if ac_fn_c_try_link "$LINENO"; then :
7336  eval $cacheid=yes
7337else
7338  eval $cacheid=no
7339fi
7340rm -f core conftest.err conftest.$ac_objext \
7341    conftest$ac_exeext conftest.$ac_ext
7342fi
7343
7344
7345		CFLAGS="$xorg_testset_save_CFLAGS"
7346
7347		eval supported=\$$cacheid
7348		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7349$as_echo "$supported" >&6; }
7350		if test "$supported" = "yes" ; then
7351			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7352			found="yes"
7353		fi
7354	fi
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370xorg_testset_save_CFLAGS="$CFLAGS"
7371
7372if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7373	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7374	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7375$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7376if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7377  $as_echo_n "(cached) " >&6
7378else
7379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7380/* end confdefs.h.  */
7381int i;
7382_ACEOF
7383if ac_fn_c_try_compile "$LINENO"; then :
7384  xorg_cv_cc_flag_unknown_warning_option=yes
7385else
7386  xorg_cv_cc_flag_unknown_warning_option=no
7387fi
7388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7389fi
7390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7391$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7392	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7393	CFLAGS="$xorg_testset_save_CFLAGS"
7394fi
7395
7396if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7397	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7398		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7399	fi
7400	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7401	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7402$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7403if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7404  $as_echo_n "(cached) " >&6
7405else
7406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7407/* end confdefs.h.  */
7408int i;
7409_ACEOF
7410if ac_fn_c_try_compile "$LINENO"; then :
7411  xorg_cv_cc_flag_unused_command_line_argument=yes
7412else
7413  xorg_cv_cc_flag_unused_command_line_argument=no
7414fi
7415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7416fi
7417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7418$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7419	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7420	CFLAGS="$xorg_testset_save_CFLAGS"
7421fi
7422
7423found="no"
7424
7425	if test $found = "no" ; then
7426		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7427			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7428		fi
7429
7430		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7431			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7432		fi
7433
7434		CFLAGS="$CFLAGS -Werror=missing-braces"
7435
7436		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5
7437$as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; }
7438		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7439		if eval \${$cacheid+:} false; then :
7440  $as_echo_n "(cached) " >&6
7441else
7442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7443/* end confdefs.h.  */
7444int i;
7445int
7446main ()
7447{
7448
7449  ;
7450  return 0;
7451}
7452_ACEOF
7453if ac_fn_c_try_link "$LINENO"; then :
7454  eval $cacheid=yes
7455else
7456  eval $cacheid=no
7457fi
7458rm -f core conftest.err conftest.$ac_objext \
7459    conftest$ac_exeext conftest.$ac_ext
7460fi
7461
7462
7463		CFLAGS="$xorg_testset_save_CFLAGS"
7464
7465		eval supported=\$$cacheid
7466		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7467$as_echo "$supported" >&6; }
7468		if test "$supported" = "yes" ; then
7469			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7470			found="yes"
7471		fi
7472	fi
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488xorg_testset_save_CFLAGS="$CFLAGS"
7489
7490if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7491	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7492	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7493$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7494if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7495  $as_echo_n "(cached) " >&6
7496else
7497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7498/* end confdefs.h.  */
7499int i;
7500_ACEOF
7501if ac_fn_c_try_compile "$LINENO"; then :
7502  xorg_cv_cc_flag_unknown_warning_option=yes
7503else
7504  xorg_cv_cc_flag_unknown_warning_option=no
7505fi
7506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7507fi
7508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7509$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7510	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7511	CFLAGS="$xorg_testset_save_CFLAGS"
7512fi
7513
7514if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7515	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7516		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7517	fi
7518	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7519	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7520$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7521if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7522  $as_echo_n "(cached) " >&6
7523else
7524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7525/* end confdefs.h.  */
7526int i;
7527_ACEOF
7528if ac_fn_c_try_compile "$LINENO"; then :
7529  xorg_cv_cc_flag_unused_command_line_argument=yes
7530else
7531  xorg_cv_cc_flag_unused_command_line_argument=no
7532fi
7533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7534fi
7535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7536$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7537	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7538	CFLAGS="$xorg_testset_save_CFLAGS"
7539fi
7540
7541found="no"
7542
7543	if test $found = "no" ; then
7544		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7545			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7546		fi
7547
7548		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7549			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7550		fi
7551
7552		CFLAGS="$CFLAGS -Werror=sequence-point"
7553
7554		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5
7555$as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; }
7556		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7557		if eval \${$cacheid+:} false; then :
7558  $as_echo_n "(cached) " >&6
7559else
7560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7561/* end confdefs.h.  */
7562int i;
7563int
7564main ()
7565{
7566
7567  ;
7568  return 0;
7569}
7570_ACEOF
7571if ac_fn_c_try_link "$LINENO"; then :
7572  eval $cacheid=yes
7573else
7574  eval $cacheid=no
7575fi
7576rm -f core conftest.err conftest.$ac_objext \
7577    conftest$ac_exeext conftest.$ac_ext
7578fi
7579
7580
7581		CFLAGS="$xorg_testset_save_CFLAGS"
7582
7583		eval supported=\$$cacheid
7584		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7585$as_echo "$supported" >&6; }
7586		if test "$supported" = "yes" ; then
7587			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7588			found="yes"
7589		fi
7590	fi
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606xorg_testset_save_CFLAGS="$CFLAGS"
7607
7608if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7609	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7610	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7611$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7612if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7613  $as_echo_n "(cached) " >&6
7614else
7615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7616/* end confdefs.h.  */
7617int i;
7618_ACEOF
7619if ac_fn_c_try_compile "$LINENO"; then :
7620  xorg_cv_cc_flag_unknown_warning_option=yes
7621else
7622  xorg_cv_cc_flag_unknown_warning_option=no
7623fi
7624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7625fi
7626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7627$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7628	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7629	CFLAGS="$xorg_testset_save_CFLAGS"
7630fi
7631
7632if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7633	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7634		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7635	fi
7636	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7637	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7638$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7639if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7640  $as_echo_n "(cached) " >&6
7641else
7642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7643/* end confdefs.h.  */
7644int i;
7645_ACEOF
7646if ac_fn_c_try_compile "$LINENO"; then :
7647  xorg_cv_cc_flag_unused_command_line_argument=yes
7648else
7649  xorg_cv_cc_flag_unused_command_line_argument=no
7650fi
7651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7652fi
7653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7654$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7655	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7656	CFLAGS="$xorg_testset_save_CFLAGS"
7657fi
7658
7659found="no"
7660
7661	if test $found = "no" ; then
7662		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7663			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7664		fi
7665
7666		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7667			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7668		fi
7669
7670		CFLAGS="$CFLAGS -Werror=return-type"
7671
7672		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5
7673$as_echo_n "checking if $CC supports-Werror=return-type... " >&6; }
7674		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7675		if eval \${$cacheid+:} false; then :
7676  $as_echo_n "(cached) " >&6
7677else
7678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7679/* end confdefs.h.  */
7680int i;
7681int
7682main ()
7683{
7684
7685  ;
7686  return 0;
7687}
7688_ACEOF
7689if ac_fn_c_try_link "$LINENO"; then :
7690  eval $cacheid=yes
7691else
7692  eval $cacheid=no
7693fi
7694rm -f core conftest.err conftest.$ac_objext \
7695    conftest$ac_exeext conftest.$ac_ext
7696fi
7697
7698
7699		CFLAGS="$xorg_testset_save_CFLAGS"
7700
7701		eval supported=\$$cacheid
7702		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7703$as_echo "$supported" >&6; }
7704		if test "$supported" = "yes" ; then
7705			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7706			found="yes"
7707		fi
7708	fi
7709
7710	if test $found = "no" ; then
7711		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7712			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7713		fi
7714
7715		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7716			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7717		fi
7718
7719		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7720
7721		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7722$as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7723		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7724		if eval \${$cacheid+:} false; then :
7725  $as_echo_n "(cached) " >&6
7726else
7727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7728/* end confdefs.h.  */
7729int i;
7730int
7731main ()
7732{
7733
7734  ;
7735  return 0;
7736}
7737_ACEOF
7738if ac_fn_c_try_link "$LINENO"; then :
7739  eval $cacheid=yes
7740else
7741  eval $cacheid=no
7742fi
7743rm -f core conftest.err conftest.$ac_objext \
7744    conftest$ac_exeext conftest.$ac_ext
7745fi
7746
7747
7748		CFLAGS="$xorg_testset_save_CFLAGS"
7749
7750		eval supported=\$$cacheid
7751		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7752$as_echo "$supported" >&6; }
7753		if test "$supported" = "yes" ; then
7754			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7755			found="yes"
7756		fi
7757	fi
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773xorg_testset_save_CFLAGS="$CFLAGS"
7774
7775if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7776	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7777	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7778$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7779if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7780  $as_echo_n "(cached) " >&6
7781else
7782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7783/* end confdefs.h.  */
7784int i;
7785_ACEOF
7786if ac_fn_c_try_compile "$LINENO"; then :
7787  xorg_cv_cc_flag_unknown_warning_option=yes
7788else
7789  xorg_cv_cc_flag_unknown_warning_option=no
7790fi
7791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7792fi
7793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7794$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7795	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7796	CFLAGS="$xorg_testset_save_CFLAGS"
7797fi
7798
7799if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7800	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7801		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7802	fi
7803	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7804	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7805$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7806if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7807  $as_echo_n "(cached) " >&6
7808else
7809  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7810/* end confdefs.h.  */
7811int i;
7812_ACEOF
7813if ac_fn_c_try_compile "$LINENO"; then :
7814  xorg_cv_cc_flag_unused_command_line_argument=yes
7815else
7816  xorg_cv_cc_flag_unused_command_line_argument=no
7817fi
7818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7819fi
7820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7821$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7822	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7823	CFLAGS="$xorg_testset_save_CFLAGS"
7824fi
7825
7826found="no"
7827
7828	if test $found = "no" ; then
7829		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7830			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7831		fi
7832
7833		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7834			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7835		fi
7836
7837		CFLAGS="$CFLAGS -Werror=trigraphs"
7838
7839		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5
7840$as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; }
7841		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7842		if eval \${$cacheid+:} false; then :
7843  $as_echo_n "(cached) " >&6
7844else
7845  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7846/* end confdefs.h.  */
7847int i;
7848int
7849main ()
7850{
7851
7852  ;
7853  return 0;
7854}
7855_ACEOF
7856if ac_fn_c_try_link "$LINENO"; then :
7857  eval $cacheid=yes
7858else
7859  eval $cacheid=no
7860fi
7861rm -f core conftest.err conftest.$ac_objext \
7862    conftest$ac_exeext conftest.$ac_ext
7863fi
7864
7865
7866		CFLAGS="$xorg_testset_save_CFLAGS"
7867
7868		eval supported=\$$cacheid
7869		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7870$as_echo "$supported" >&6; }
7871		if test "$supported" = "yes" ; then
7872			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7873			found="yes"
7874		fi
7875	fi
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891xorg_testset_save_CFLAGS="$CFLAGS"
7892
7893if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7894	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7895	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7896$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7897if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7898  $as_echo_n "(cached) " >&6
7899else
7900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7901/* end confdefs.h.  */
7902int i;
7903_ACEOF
7904if ac_fn_c_try_compile "$LINENO"; then :
7905  xorg_cv_cc_flag_unknown_warning_option=yes
7906else
7907  xorg_cv_cc_flag_unknown_warning_option=no
7908fi
7909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7910fi
7911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7912$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7913	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7914	CFLAGS="$xorg_testset_save_CFLAGS"
7915fi
7916
7917if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7918	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7919		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7920	fi
7921	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7922	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7923$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7924if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7925  $as_echo_n "(cached) " >&6
7926else
7927  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7928/* end confdefs.h.  */
7929int i;
7930_ACEOF
7931if ac_fn_c_try_compile "$LINENO"; then :
7932  xorg_cv_cc_flag_unused_command_line_argument=yes
7933else
7934  xorg_cv_cc_flag_unused_command_line_argument=no
7935fi
7936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7937fi
7938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7939$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7940	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7941	CFLAGS="$xorg_testset_save_CFLAGS"
7942fi
7943
7944found="no"
7945
7946	if test $found = "no" ; then
7947		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7948			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7949		fi
7950
7951		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7952			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7953		fi
7954
7955		CFLAGS="$CFLAGS -Werror=array-bounds"
7956
7957		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5
7958$as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; }
7959		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7960		if eval \${$cacheid+:} false; then :
7961  $as_echo_n "(cached) " >&6
7962else
7963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7964/* end confdefs.h.  */
7965int i;
7966int
7967main ()
7968{
7969
7970  ;
7971  return 0;
7972}
7973_ACEOF
7974if ac_fn_c_try_link "$LINENO"; then :
7975  eval $cacheid=yes
7976else
7977  eval $cacheid=no
7978fi
7979rm -f core conftest.err conftest.$ac_objext \
7980    conftest$ac_exeext conftest.$ac_ext
7981fi
7982
7983
7984		CFLAGS="$xorg_testset_save_CFLAGS"
7985
7986		eval supported=\$$cacheid
7987		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7988$as_echo "$supported" >&6; }
7989		if test "$supported" = "yes" ; then
7990			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7991			found="yes"
7992		fi
7993	fi
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009xorg_testset_save_CFLAGS="$CFLAGS"
8010
8011if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8012	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8013	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8014$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8015if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8016  $as_echo_n "(cached) " >&6
8017else
8018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8019/* end confdefs.h.  */
8020int i;
8021_ACEOF
8022if ac_fn_c_try_compile "$LINENO"; then :
8023  xorg_cv_cc_flag_unknown_warning_option=yes
8024else
8025  xorg_cv_cc_flag_unknown_warning_option=no
8026fi
8027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8028fi
8029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8030$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8031	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8032	CFLAGS="$xorg_testset_save_CFLAGS"
8033fi
8034
8035if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8036	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8037		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8038	fi
8039	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8040	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8041$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8042if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8043  $as_echo_n "(cached) " >&6
8044else
8045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8046/* end confdefs.h.  */
8047int i;
8048_ACEOF
8049if ac_fn_c_try_compile "$LINENO"; then :
8050  xorg_cv_cc_flag_unused_command_line_argument=yes
8051else
8052  xorg_cv_cc_flag_unused_command_line_argument=no
8053fi
8054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8055fi
8056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8057$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8058	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8059	CFLAGS="$xorg_testset_save_CFLAGS"
8060fi
8061
8062found="no"
8063
8064	if test $found = "no" ; then
8065		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8066			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8067		fi
8068
8069		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8070			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8071		fi
8072
8073		CFLAGS="$CFLAGS -Werror=write-strings"
8074
8075		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5
8076$as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; }
8077		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
8078		if eval \${$cacheid+:} false; then :
8079  $as_echo_n "(cached) " >&6
8080else
8081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8082/* end confdefs.h.  */
8083int i;
8084int
8085main ()
8086{
8087
8088  ;
8089  return 0;
8090}
8091_ACEOF
8092if ac_fn_c_try_link "$LINENO"; then :
8093  eval $cacheid=yes
8094else
8095  eval $cacheid=no
8096fi
8097rm -f core conftest.err conftest.$ac_objext \
8098    conftest$ac_exeext conftest.$ac_ext
8099fi
8100
8101
8102		CFLAGS="$xorg_testset_save_CFLAGS"
8103
8104		eval supported=\$$cacheid
8105		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8106$as_echo "$supported" >&6; }
8107		if test "$supported" = "yes" ; then
8108			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8109			found="yes"
8110		fi
8111	fi
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127xorg_testset_save_CFLAGS="$CFLAGS"
8128
8129if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8130	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8131	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8132$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8133if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8134  $as_echo_n "(cached) " >&6
8135else
8136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8137/* end confdefs.h.  */
8138int i;
8139_ACEOF
8140if ac_fn_c_try_compile "$LINENO"; then :
8141  xorg_cv_cc_flag_unknown_warning_option=yes
8142else
8143  xorg_cv_cc_flag_unknown_warning_option=no
8144fi
8145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8146fi
8147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8148$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8149	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8150	CFLAGS="$xorg_testset_save_CFLAGS"
8151fi
8152
8153if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8154	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8155		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8156	fi
8157	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8158	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8159$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8160if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8161  $as_echo_n "(cached) " >&6
8162else
8163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8164/* end confdefs.h.  */
8165int i;
8166_ACEOF
8167if ac_fn_c_try_compile "$LINENO"; then :
8168  xorg_cv_cc_flag_unused_command_line_argument=yes
8169else
8170  xorg_cv_cc_flag_unused_command_line_argument=no
8171fi
8172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8173fi
8174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8175$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8176	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8177	CFLAGS="$xorg_testset_save_CFLAGS"
8178fi
8179
8180found="no"
8181
8182	if test $found = "no" ; then
8183		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8184			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8185		fi
8186
8187		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8188			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8189		fi
8190
8191		CFLAGS="$CFLAGS -Werror=address"
8192
8193		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5
8194$as_echo_n "checking if $CC supports-Werror=address... " >&6; }
8195		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8196		if eval \${$cacheid+:} false; then :
8197  $as_echo_n "(cached) " >&6
8198else
8199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8200/* end confdefs.h.  */
8201int i;
8202int
8203main ()
8204{
8205
8206  ;
8207  return 0;
8208}
8209_ACEOF
8210if ac_fn_c_try_link "$LINENO"; then :
8211  eval $cacheid=yes
8212else
8213  eval $cacheid=no
8214fi
8215rm -f core conftest.err conftest.$ac_objext \
8216    conftest$ac_exeext conftest.$ac_ext
8217fi
8218
8219
8220		CFLAGS="$xorg_testset_save_CFLAGS"
8221
8222		eval supported=\$$cacheid
8223		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8224$as_echo "$supported" >&6; }
8225		if test "$supported" = "yes" ; then
8226			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8227			found="yes"
8228		fi
8229	fi
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245xorg_testset_save_CFLAGS="$CFLAGS"
8246
8247if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8248	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8249	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8250$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8251if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8252  $as_echo_n "(cached) " >&6
8253else
8254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8255/* end confdefs.h.  */
8256int i;
8257_ACEOF
8258if ac_fn_c_try_compile "$LINENO"; then :
8259  xorg_cv_cc_flag_unknown_warning_option=yes
8260else
8261  xorg_cv_cc_flag_unknown_warning_option=no
8262fi
8263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8264fi
8265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8266$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8267	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8268	CFLAGS="$xorg_testset_save_CFLAGS"
8269fi
8270
8271if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8272	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8273		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8274	fi
8275	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8276	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8277$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8278if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8279  $as_echo_n "(cached) " >&6
8280else
8281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8282/* end confdefs.h.  */
8283int i;
8284_ACEOF
8285if ac_fn_c_try_compile "$LINENO"; then :
8286  xorg_cv_cc_flag_unused_command_line_argument=yes
8287else
8288  xorg_cv_cc_flag_unused_command_line_argument=no
8289fi
8290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8291fi
8292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8293$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8294	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8295	CFLAGS="$xorg_testset_save_CFLAGS"
8296fi
8297
8298found="no"
8299
8300	if test $found = "no" ; then
8301		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8302			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8303		fi
8304
8305		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8306			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8307		fi
8308
8309		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8310
8311		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5
8312$as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; }
8313		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8314		if eval \${$cacheid+:} false; then :
8315  $as_echo_n "(cached) " >&6
8316else
8317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8318/* end confdefs.h.  */
8319int i;
8320int
8321main ()
8322{
8323
8324  ;
8325  return 0;
8326}
8327_ACEOF
8328if ac_fn_c_try_link "$LINENO"; then :
8329  eval $cacheid=yes
8330else
8331  eval $cacheid=no
8332fi
8333rm -f core conftest.err conftest.$ac_objext \
8334    conftest$ac_exeext conftest.$ac_ext
8335fi
8336
8337
8338		CFLAGS="$xorg_testset_save_CFLAGS"
8339
8340		eval supported=\$$cacheid
8341		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8342$as_echo "$supported" >&6; }
8343		if test "$supported" = "yes" ; then
8344			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8345			found="yes"
8346		fi
8347	fi
8348
8349	if test $found = "no" ; then
8350		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8351			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8352		fi
8353
8354		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8355			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8356		fi
8357
8358		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8359
8360		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8361$as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8362		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8363		if eval \${$cacheid+:} false; then :
8364  $as_echo_n "(cached) " >&6
8365else
8366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8367/* end confdefs.h.  */
8368int i;
8369int
8370main ()
8371{
8372
8373  ;
8374  return 0;
8375}
8376_ACEOF
8377if ac_fn_c_try_link "$LINENO"; then :
8378  eval $cacheid=yes
8379else
8380  eval $cacheid=no
8381fi
8382rm -f core conftest.err conftest.$ac_objext \
8383    conftest$ac_exeext conftest.$ac_ext
8384fi
8385
8386
8387		CFLAGS="$xorg_testset_save_CFLAGS"
8388
8389		eval supported=\$$cacheid
8390		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8391$as_echo "$supported" >&6; }
8392		if test "$supported" = "yes" ; then
8393			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8394			found="yes"
8395		fi
8396	fi
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412xorg_testset_save_CFLAGS="$CFLAGS"
8413
8414if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8415	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8416	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8417$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8418if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8419  $as_echo_n "(cached) " >&6
8420else
8421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8422/* end confdefs.h.  */
8423int i;
8424_ACEOF
8425if ac_fn_c_try_compile "$LINENO"; then :
8426  xorg_cv_cc_flag_unknown_warning_option=yes
8427else
8428  xorg_cv_cc_flag_unknown_warning_option=no
8429fi
8430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8431fi
8432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8433$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8434	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8435	CFLAGS="$xorg_testset_save_CFLAGS"
8436fi
8437
8438if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8439	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8440		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8441	fi
8442	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8443	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8444$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8445if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8446  $as_echo_n "(cached) " >&6
8447else
8448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8449/* end confdefs.h.  */
8450int i;
8451_ACEOF
8452if ac_fn_c_try_compile "$LINENO"; then :
8453  xorg_cv_cc_flag_unused_command_line_argument=yes
8454else
8455  xorg_cv_cc_flag_unused_command_line_argument=no
8456fi
8457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8458fi
8459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8460$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8461	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8462	CFLAGS="$xorg_testset_save_CFLAGS"
8463fi
8464
8465found="no"
8466
8467	if test $found = "no" ; then
8468		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8469			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8470		fi
8471
8472		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8473			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8474		fi
8475
8476		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8477
8478		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5
8479$as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; }
8480		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8481		if eval \${$cacheid+:} false; then :
8482  $as_echo_n "(cached) " >&6
8483else
8484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8485/* end confdefs.h.  */
8486int i;
8487int
8488main ()
8489{
8490
8491  ;
8492  return 0;
8493}
8494_ACEOF
8495if ac_fn_c_try_link "$LINENO"; then :
8496  eval $cacheid=yes
8497else
8498  eval $cacheid=no
8499fi
8500rm -f core conftest.err conftest.$ac_objext \
8501    conftest$ac_exeext conftest.$ac_ext
8502fi
8503
8504
8505		CFLAGS="$xorg_testset_save_CFLAGS"
8506
8507		eval supported=\$$cacheid
8508		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8509$as_echo "$supported" >&6; }
8510		if test "$supported" = "yes" ; then
8511			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8512			found="yes"
8513		fi
8514	fi
8515
8516 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8517else
8518{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
8519$as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;}
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533xorg_testset_save_CFLAGS="$CFLAGS"
8534
8535if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8536	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8537	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8538$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8539if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8540  $as_echo_n "(cached) " >&6
8541else
8542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8543/* end confdefs.h.  */
8544int i;
8545_ACEOF
8546if ac_fn_c_try_compile "$LINENO"; then :
8547  xorg_cv_cc_flag_unknown_warning_option=yes
8548else
8549  xorg_cv_cc_flag_unknown_warning_option=no
8550fi
8551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8552fi
8553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8554$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8555	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8556	CFLAGS="$xorg_testset_save_CFLAGS"
8557fi
8558
8559if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8560	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8561		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8562	fi
8563	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8564	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8565$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8566if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8567  $as_echo_n "(cached) " >&6
8568else
8569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8570/* end confdefs.h.  */
8571int i;
8572_ACEOF
8573if ac_fn_c_try_compile "$LINENO"; then :
8574  xorg_cv_cc_flag_unused_command_line_argument=yes
8575else
8576  xorg_cv_cc_flag_unused_command_line_argument=no
8577fi
8578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8579fi
8580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8581$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8582	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8583	CFLAGS="$xorg_testset_save_CFLAGS"
8584fi
8585
8586found="no"
8587
8588	if test $found = "no" ; then
8589		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8590			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8591		fi
8592
8593		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8594			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8595		fi
8596
8597		CFLAGS="$CFLAGS -Wimplicit"
8598
8599		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5
8600$as_echo_n "checking if $CC supports-Wimplicit... " >&6; }
8601		cacheid=xorg_cv_cc_flag__Wimplicit
8602		if eval \${$cacheid+:} false; then :
8603  $as_echo_n "(cached) " >&6
8604else
8605  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8606/* end confdefs.h.  */
8607int i;
8608int
8609main ()
8610{
8611
8612  ;
8613  return 0;
8614}
8615_ACEOF
8616if ac_fn_c_try_link "$LINENO"; then :
8617  eval $cacheid=yes
8618else
8619  eval $cacheid=no
8620fi
8621rm -f core conftest.err conftest.$ac_objext \
8622    conftest$ac_exeext conftest.$ac_ext
8623fi
8624
8625
8626		CFLAGS="$xorg_testset_save_CFLAGS"
8627
8628		eval supported=\$$cacheid
8629		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8630$as_echo "$supported" >&6; }
8631		if test "$supported" = "yes" ; then
8632			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8633			found="yes"
8634		fi
8635	fi
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651xorg_testset_save_CFLAGS="$CFLAGS"
8652
8653if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8654	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8655	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8656$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8657if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8658  $as_echo_n "(cached) " >&6
8659else
8660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8661/* end confdefs.h.  */
8662int i;
8663_ACEOF
8664if ac_fn_c_try_compile "$LINENO"; then :
8665  xorg_cv_cc_flag_unknown_warning_option=yes
8666else
8667  xorg_cv_cc_flag_unknown_warning_option=no
8668fi
8669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8670fi
8671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8672$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8673	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8674	CFLAGS="$xorg_testset_save_CFLAGS"
8675fi
8676
8677if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8678	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8679		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8680	fi
8681	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8682	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8683$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8684if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8685  $as_echo_n "(cached) " >&6
8686else
8687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8688/* end confdefs.h.  */
8689int i;
8690_ACEOF
8691if ac_fn_c_try_compile "$LINENO"; then :
8692  xorg_cv_cc_flag_unused_command_line_argument=yes
8693else
8694  xorg_cv_cc_flag_unused_command_line_argument=no
8695fi
8696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8697fi
8698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8699$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8700	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8701	CFLAGS="$xorg_testset_save_CFLAGS"
8702fi
8703
8704found="no"
8705
8706	if test $found = "no" ; then
8707		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8708			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8709		fi
8710
8711		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8712			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8713		fi
8714
8715		CFLAGS="$CFLAGS -Wnonnull"
8716
8717		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5
8718$as_echo_n "checking if $CC supports-Wnonnull... " >&6; }
8719		cacheid=xorg_cv_cc_flag__Wnonnull
8720		if eval \${$cacheid+:} false; then :
8721  $as_echo_n "(cached) " >&6
8722else
8723  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8724/* end confdefs.h.  */
8725int i;
8726int
8727main ()
8728{
8729
8730  ;
8731  return 0;
8732}
8733_ACEOF
8734if ac_fn_c_try_link "$LINENO"; then :
8735  eval $cacheid=yes
8736else
8737  eval $cacheid=no
8738fi
8739rm -f core conftest.err conftest.$ac_objext \
8740    conftest$ac_exeext conftest.$ac_ext
8741fi
8742
8743
8744		CFLAGS="$xorg_testset_save_CFLAGS"
8745
8746		eval supported=\$$cacheid
8747		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8748$as_echo "$supported" >&6; }
8749		if test "$supported" = "yes" ; then
8750			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8751			found="yes"
8752		fi
8753	fi
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769xorg_testset_save_CFLAGS="$CFLAGS"
8770
8771if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8772	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8773	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8774$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8775if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8776  $as_echo_n "(cached) " >&6
8777else
8778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8779/* end confdefs.h.  */
8780int i;
8781_ACEOF
8782if ac_fn_c_try_compile "$LINENO"; then :
8783  xorg_cv_cc_flag_unknown_warning_option=yes
8784else
8785  xorg_cv_cc_flag_unknown_warning_option=no
8786fi
8787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8788fi
8789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8790$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8791	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8792	CFLAGS="$xorg_testset_save_CFLAGS"
8793fi
8794
8795if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8796	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8797		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8798	fi
8799	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8800	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8801$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8802if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8803  $as_echo_n "(cached) " >&6
8804else
8805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8806/* end confdefs.h.  */
8807int i;
8808_ACEOF
8809if ac_fn_c_try_compile "$LINENO"; then :
8810  xorg_cv_cc_flag_unused_command_line_argument=yes
8811else
8812  xorg_cv_cc_flag_unused_command_line_argument=no
8813fi
8814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8815fi
8816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8817$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8818	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8819	CFLAGS="$xorg_testset_save_CFLAGS"
8820fi
8821
8822found="no"
8823
8824	if test $found = "no" ; then
8825		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8826			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8827		fi
8828
8829		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8830			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8831		fi
8832
8833		CFLAGS="$CFLAGS -Winit-self"
8834
8835		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5
8836$as_echo_n "checking if $CC supports-Winit-self... " >&6; }
8837		cacheid=xorg_cv_cc_flag__Winit_self
8838		if eval \${$cacheid+:} false; then :
8839  $as_echo_n "(cached) " >&6
8840else
8841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8842/* end confdefs.h.  */
8843int i;
8844int
8845main ()
8846{
8847
8848  ;
8849  return 0;
8850}
8851_ACEOF
8852if ac_fn_c_try_link "$LINENO"; then :
8853  eval $cacheid=yes
8854else
8855  eval $cacheid=no
8856fi
8857rm -f core conftest.err conftest.$ac_objext \
8858    conftest$ac_exeext conftest.$ac_ext
8859fi
8860
8861
8862		CFLAGS="$xorg_testset_save_CFLAGS"
8863
8864		eval supported=\$$cacheid
8865		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8866$as_echo "$supported" >&6; }
8867		if test "$supported" = "yes" ; then
8868			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8869			found="yes"
8870		fi
8871	fi
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887xorg_testset_save_CFLAGS="$CFLAGS"
8888
8889if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8890	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8891	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8892$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8893if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8894  $as_echo_n "(cached) " >&6
8895else
8896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8897/* end confdefs.h.  */
8898int i;
8899_ACEOF
8900if ac_fn_c_try_compile "$LINENO"; then :
8901  xorg_cv_cc_flag_unknown_warning_option=yes
8902else
8903  xorg_cv_cc_flag_unknown_warning_option=no
8904fi
8905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8906fi
8907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8908$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8909	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8910	CFLAGS="$xorg_testset_save_CFLAGS"
8911fi
8912
8913if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8914	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8915		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8916	fi
8917	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8918	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8919$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8920if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8921  $as_echo_n "(cached) " >&6
8922else
8923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8924/* end confdefs.h.  */
8925int i;
8926_ACEOF
8927if ac_fn_c_try_compile "$LINENO"; then :
8928  xorg_cv_cc_flag_unused_command_line_argument=yes
8929else
8930  xorg_cv_cc_flag_unused_command_line_argument=no
8931fi
8932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8933fi
8934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8935$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8936	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8937	CFLAGS="$xorg_testset_save_CFLAGS"
8938fi
8939
8940found="no"
8941
8942	if test $found = "no" ; then
8943		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8944			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8945		fi
8946
8947		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8948			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8949		fi
8950
8951		CFLAGS="$CFLAGS -Wmain"
8952
8953		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5
8954$as_echo_n "checking if $CC supports-Wmain... " >&6; }
8955		cacheid=xorg_cv_cc_flag__Wmain
8956		if eval \${$cacheid+:} false; then :
8957  $as_echo_n "(cached) " >&6
8958else
8959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8960/* end confdefs.h.  */
8961int i;
8962int
8963main ()
8964{
8965
8966  ;
8967  return 0;
8968}
8969_ACEOF
8970if ac_fn_c_try_link "$LINENO"; then :
8971  eval $cacheid=yes
8972else
8973  eval $cacheid=no
8974fi
8975rm -f core conftest.err conftest.$ac_objext \
8976    conftest$ac_exeext conftest.$ac_ext
8977fi
8978
8979
8980		CFLAGS="$xorg_testset_save_CFLAGS"
8981
8982		eval supported=\$$cacheid
8983		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8984$as_echo "$supported" >&6; }
8985		if test "$supported" = "yes" ; then
8986			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8987			found="yes"
8988		fi
8989	fi
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005xorg_testset_save_CFLAGS="$CFLAGS"
9006
9007if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9008	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9009	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9010$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9011if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9012  $as_echo_n "(cached) " >&6
9013else
9014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9015/* end confdefs.h.  */
9016int i;
9017_ACEOF
9018if ac_fn_c_try_compile "$LINENO"; then :
9019  xorg_cv_cc_flag_unknown_warning_option=yes
9020else
9021  xorg_cv_cc_flag_unknown_warning_option=no
9022fi
9023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9024fi
9025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9026$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9027	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9028	CFLAGS="$xorg_testset_save_CFLAGS"
9029fi
9030
9031if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9032	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9033		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9034	fi
9035	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9036	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9037$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9038if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9039  $as_echo_n "(cached) " >&6
9040else
9041  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9042/* end confdefs.h.  */
9043int i;
9044_ACEOF
9045if ac_fn_c_try_compile "$LINENO"; then :
9046  xorg_cv_cc_flag_unused_command_line_argument=yes
9047else
9048  xorg_cv_cc_flag_unused_command_line_argument=no
9049fi
9050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9051fi
9052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9053$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9054	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9055	CFLAGS="$xorg_testset_save_CFLAGS"
9056fi
9057
9058found="no"
9059
9060	if test $found = "no" ; then
9061		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9062			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9063		fi
9064
9065		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9066			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9067		fi
9068
9069		CFLAGS="$CFLAGS -Wmissing-braces"
9070
9071		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5
9072$as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; }
9073		cacheid=xorg_cv_cc_flag__Wmissing_braces
9074		if eval \${$cacheid+:} false; then :
9075  $as_echo_n "(cached) " >&6
9076else
9077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9078/* end confdefs.h.  */
9079int i;
9080int
9081main ()
9082{
9083
9084  ;
9085  return 0;
9086}
9087_ACEOF
9088if ac_fn_c_try_link "$LINENO"; then :
9089  eval $cacheid=yes
9090else
9091  eval $cacheid=no
9092fi
9093rm -f core conftest.err conftest.$ac_objext \
9094    conftest$ac_exeext conftest.$ac_ext
9095fi
9096
9097
9098		CFLAGS="$xorg_testset_save_CFLAGS"
9099
9100		eval supported=\$$cacheid
9101		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9102$as_echo "$supported" >&6; }
9103		if test "$supported" = "yes" ; then
9104			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9105			found="yes"
9106		fi
9107	fi
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123xorg_testset_save_CFLAGS="$CFLAGS"
9124
9125if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9126	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9127	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9128$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9129if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9130  $as_echo_n "(cached) " >&6
9131else
9132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9133/* end confdefs.h.  */
9134int i;
9135_ACEOF
9136if ac_fn_c_try_compile "$LINENO"; then :
9137  xorg_cv_cc_flag_unknown_warning_option=yes
9138else
9139  xorg_cv_cc_flag_unknown_warning_option=no
9140fi
9141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9142fi
9143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9144$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9145	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9146	CFLAGS="$xorg_testset_save_CFLAGS"
9147fi
9148
9149if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9150	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9151		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9152	fi
9153	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9154	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9155$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9156if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9157  $as_echo_n "(cached) " >&6
9158else
9159  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9160/* end confdefs.h.  */
9161int i;
9162_ACEOF
9163if ac_fn_c_try_compile "$LINENO"; then :
9164  xorg_cv_cc_flag_unused_command_line_argument=yes
9165else
9166  xorg_cv_cc_flag_unused_command_line_argument=no
9167fi
9168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9169fi
9170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9171$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9172	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9173	CFLAGS="$xorg_testset_save_CFLAGS"
9174fi
9175
9176found="no"
9177
9178	if test $found = "no" ; then
9179		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9180			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9181		fi
9182
9183		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9184			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9185		fi
9186
9187		CFLAGS="$CFLAGS -Wsequence-point"
9188
9189		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5
9190$as_echo_n "checking if $CC supports-Wsequence-point... " >&6; }
9191		cacheid=xorg_cv_cc_flag__Wsequence_point
9192		if eval \${$cacheid+:} false; then :
9193  $as_echo_n "(cached) " >&6
9194else
9195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9196/* end confdefs.h.  */
9197int i;
9198int
9199main ()
9200{
9201
9202  ;
9203  return 0;
9204}
9205_ACEOF
9206if ac_fn_c_try_link "$LINENO"; then :
9207  eval $cacheid=yes
9208else
9209  eval $cacheid=no
9210fi
9211rm -f core conftest.err conftest.$ac_objext \
9212    conftest$ac_exeext conftest.$ac_ext
9213fi
9214
9215
9216		CFLAGS="$xorg_testset_save_CFLAGS"
9217
9218		eval supported=\$$cacheid
9219		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9220$as_echo "$supported" >&6; }
9221		if test "$supported" = "yes" ; then
9222			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9223			found="yes"
9224		fi
9225	fi
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241xorg_testset_save_CFLAGS="$CFLAGS"
9242
9243if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9244	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9245	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9246$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9247if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9248  $as_echo_n "(cached) " >&6
9249else
9250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9251/* end confdefs.h.  */
9252int i;
9253_ACEOF
9254if ac_fn_c_try_compile "$LINENO"; then :
9255  xorg_cv_cc_flag_unknown_warning_option=yes
9256else
9257  xorg_cv_cc_flag_unknown_warning_option=no
9258fi
9259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9260fi
9261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9262$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9263	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9264	CFLAGS="$xorg_testset_save_CFLAGS"
9265fi
9266
9267if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9268	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9269		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9270	fi
9271	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9272	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9273$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9274if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9275  $as_echo_n "(cached) " >&6
9276else
9277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9278/* end confdefs.h.  */
9279int i;
9280_ACEOF
9281if ac_fn_c_try_compile "$LINENO"; then :
9282  xorg_cv_cc_flag_unused_command_line_argument=yes
9283else
9284  xorg_cv_cc_flag_unused_command_line_argument=no
9285fi
9286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9287fi
9288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9289$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9290	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9291	CFLAGS="$xorg_testset_save_CFLAGS"
9292fi
9293
9294found="no"
9295
9296	if test $found = "no" ; then
9297		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9298			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9299		fi
9300
9301		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9302			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9303		fi
9304
9305		CFLAGS="$CFLAGS -Wreturn-type"
9306
9307		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5
9308$as_echo_n "checking if $CC supports-Wreturn-type... " >&6; }
9309		cacheid=xorg_cv_cc_flag__Wreturn_type
9310		if eval \${$cacheid+:} false; then :
9311  $as_echo_n "(cached) " >&6
9312else
9313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9314/* end confdefs.h.  */
9315int i;
9316int
9317main ()
9318{
9319
9320  ;
9321  return 0;
9322}
9323_ACEOF
9324if ac_fn_c_try_link "$LINENO"; then :
9325  eval $cacheid=yes
9326else
9327  eval $cacheid=no
9328fi
9329rm -f core conftest.err conftest.$ac_objext \
9330    conftest$ac_exeext conftest.$ac_ext
9331fi
9332
9333
9334		CFLAGS="$xorg_testset_save_CFLAGS"
9335
9336		eval supported=\$$cacheid
9337		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9338$as_echo "$supported" >&6; }
9339		if test "$supported" = "yes" ; then
9340			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9341			found="yes"
9342		fi
9343	fi
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359xorg_testset_save_CFLAGS="$CFLAGS"
9360
9361if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9362	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9363	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9364$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9365if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9366  $as_echo_n "(cached) " >&6
9367else
9368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9369/* end confdefs.h.  */
9370int i;
9371_ACEOF
9372if ac_fn_c_try_compile "$LINENO"; then :
9373  xorg_cv_cc_flag_unknown_warning_option=yes
9374else
9375  xorg_cv_cc_flag_unknown_warning_option=no
9376fi
9377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9378fi
9379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9380$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9381	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9382	CFLAGS="$xorg_testset_save_CFLAGS"
9383fi
9384
9385if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9386	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9387		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9388	fi
9389	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9390	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9391$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9392if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9393  $as_echo_n "(cached) " >&6
9394else
9395  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9396/* end confdefs.h.  */
9397int i;
9398_ACEOF
9399if ac_fn_c_try_compile "$LINENO"; then :
9400  xorg_cv_cc_flag_unused_command_line_argument=yes
9401else
9402  xorg_cv_cc_flag_unused_command_line_argument=no
9403fi
9404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9405fi
9406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9407$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9408	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9409	CFLAGS="$xorg_testset_save_CFLAGS"
9410fi
9411
9412found="no"
9413
9414	if test $found = "no" ; then
9415		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9416			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9417		fi
9418
9419		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9420			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9421		fi
9422
9423		CFLAGS="$CFLAGS -Wtrigraphs"
9424
9425		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5
9426$as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; }
9427		cacheid=xorg_cv_cc_flag__Wtrigraphs
9428		if eval \${$cacheid+:} false; then :
9429  $as_echo_n "(cached) " >&6
9430else
9431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9432/* end confdefs.h.  */
9433int i;
9434int
9435main ()
9436{
9437
9438  ;
9439  return 0;
9440}
9441_ACEOF
9442if ac_fn_c_try_link "$LINENO"; then :
9443  eval $cacheid=yes
9444else
9445  eval $cacheid=no
9446fi
9447rm -f core conftest.err conftest.$ac_objext \
9448    conftest$ac_exeext conftest.$ac_ext
9449fi
9450
9451
9452		CFLAGS="$xorg_testset_save_CFLAGS"
9453
9454		eval supported=\$$cacheid
9455		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9456$as_echo "$supported" >&6; }
9457		if test "$supported" = "yes" ; then
9458			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9459			found="yes"
9460		fi
9461	fi
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477xorg_testset_save_CFLAGS="$CFLAGS"
9478
9479if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9480	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9481	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9482$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9483if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9484  $as_echo_n "(cached) " >&6
9485else
9486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9487/* end confdefs.h.  */
9488int i;
9489_ACEOF
9490if ac_fn_c_try_compile "$LINENO"; then :
9491  xorg_cv_cc_flag_unknown_warning_option=yes
9492else
9493  xorg_cv_cc_flag_unknown_warning_option=no
9494fi
9495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9496fi
9497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9498$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9499	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9500	CFLAGS="$xorg_testset_save_CFLAGS"
9501fi
9502
9503if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9504	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9505		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9506	fi
9507	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9508	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9509$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9510if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9511  $as_echo_n "(cached) " >&6
9512else
9513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9514/* end confdefs.h.  */
9515int i;
9516_ACEOF
9517if ac_fn_c_try_compile "$LINENO"; then :
9518  xorg_cv_cc_flag_unused_command_line_argument=yes
9519else
9520  xorg_cv_cc_flag_unused_command_line_argument=no
9521fi
9522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9523fi
9524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9525$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9526	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9527	CFLAGS="$xorg_testset_save_CFLAGS"
9528fi
9529
9530found="no"
9531
9532	if test $found = "no" ; then
9533		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9534			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9535		fi
9536
9537		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9538			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9539		fi
9540
9541		CFLAGS="$CFLAGS -Warray-bounds"
9542
9543		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5
9544$as_echo_n "checking if $CC supports-Warray-bounds... " >&6; }
9545		cacheid=xorg_cv_cc_flag__Warray_bounds
9546		if eval \${$cacheid+:} false; then :
9547  $as_echo_n "(cached) " >&6
9548else
9549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9550/* end confdefs.h.  */
9551int i;
9552int
9553main ()
9554{
9555
9556  ;
9557  return 0;
9558}
9559_ACEOF
9560if ac_fn_c_try_link "$LINENO"; then :
9561  eval $cacheid=yes
9562else
9563  eval $cacheid=no
9564fi
9565rm -f core conftest.err conftest.$ac_objext \
9566    conftest$ac_exeext conftest.$ac_ext
9567fi
9568
9569
9570		CFLAGS="$xorg_testset_save_CFLAGS"
9571
9572		eval supported=\$$cacheid
9573		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9574$as_echo "$supported" >&6; }
9575		if test "$supported" = "yes" ; then
9576			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9577			found="yes"
9578		fi
9579	fi
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595xorg_testset_save_CFLAGS="$CFLAGS"
9596
9597if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9598	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9599	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9600$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9601if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9602  $as_echo_n "(cached) " >&6
9603else
9604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9605/* end confdefs.h.  */
9606int i;
9607_ACEOF
9608if ac_fn_c_try_compile "$LINENO"; then :
9609  xorg_cv_cc_flag_unknown_warning_option=yes
9610else
9611  xorg_cv_cc_flag_unknown_warning_option=no
9612fi
9613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9614fi
9615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9616$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9617	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9618	CFLAGS="$xorg_testset_save_CFLAGS"
9619fi
9620
9621if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9622	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9623		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9624	fi
9625	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9626	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9627$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9628if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9629  $as_echo_n "(cached) " >&6
9630else
9631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9632/* end confdefs.h.  */
9633int i;
9634_ACEOF
9635if ac_fn_c_try_compile "$LINENO"; then :
9636  xorg_cv_cc_flag_unused_command_line_argument=yes
9637else
9638  xorg_cv_cc_flag_unused_command_line_argument=no
9639fi
9640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9641fi
9642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9643$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9644	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9645	CFLAGS="$xorg_testset_save_CFLAGS"
9646fi
9647
9648found="no"
9649
9650	if test $found = "no" ; then
9651		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9652			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9653		fi
9654
9655		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9656			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9657		fi
9658
9659		CFLAGS="$CFLAGS -Wwrite-strings"
9660
9661		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5
9662$as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; }
9663		cacheid=xorg_cv_cc_flag__Wwrite_strings
9664		if eval \${$cacheid+:} false; then :
9665  $as_echo_n "(cached) " >&6
9666else
9667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9668/* end confdefs.h.  */
9669int i;
9670int
9671main ()
9672{
9673
9674  ;
9675  return 0;
9676}
9677_ACEOF
9678if ac_fn_c_try_link "$LINENO"; then :
9679  eval $cacheid=yes
9680else
9681  eval $cacheid=no
9682fi
9683rm -f core conftest.err conftest.$ac_objext \
9684    conftest$ac_exeext conftest.$ac_ext
9685fi
9686
9687
9688		CFLAGS="$xorg_testset_save_CFLAGS"
9689
9690		eval supported=\$$cacheid
9691		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9692$as_echo "$supported" >&6; }
9693		if test "$supported" = "yes" ; then
9694			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9695			found="yes"
9696		fi
9697	fi
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713xorg_testset_save_CFLAGS="$CFLAGS"
9714
9715if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9716	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9717	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9718$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9719if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9720  $as_echo_n "(cached) " >&6
9721else
9722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9723/* end confdefs.h.  */
9724int i;
9725_ACEOF
9726if ac_fn_c_try_compile "$LINENO"; then :
9727  xorg_cv_cc_flag_unknown_warning_option=yes
9728else
9729  xorg_cv_cc_flag_unknown_warning_option=no
9730fi
9731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9732fi
9733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9734$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9735	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9736	CFLAGS="$xorg_testset_save_CFLAGS"
9737fi
9738
9739if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9740	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9741		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9742	fi
9743	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9744	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9745$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9746if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9747  $as_echo_n "(cached) " >&6
9748else
9749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9750/* end confdefs.h.  */
9751int i;
9752_ACEOF
9753if ac_fn_c_try_compile "$LINENO"; then :
9754  xorg_cv_cc_flag_unused_command_line_argument=yes
9755else
9756  xorg_cv_cc_flag_unused_command_line_argument=no
9757fi
9758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9759fi
9760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9761$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9762	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9763	CFLAGS="$xorg_testset_save_CFLAGS"
9764fi
9765
9766found="no"
9767
9768	if test $found = "no" ; then
9769		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9770			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9771		fi
9772
9773		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9774			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9775		fi
9776
9777		CFLAGS="$CFLAGS -Waddress"
9778
9779		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5
9780$as_echo_n "checking if $CC supports-Waddress... " >&6; }
9781		cacheid=xorg_cv_cc_flag__Waddress
9782		if eval \${$cacheid+:} false; then :
9783  $as_echo_n "(cached) " >&6
9784else
9785  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9786/* end confdefs.h.  */
9787int i;
9788int
9789main ()
9790{
9791
9792  ;
9793  return 0;
9794}
9795_ACEOF
9796if ac_fn_c_try_link "$LINENO"; then :
9797  eval $cacheid=yes
9798else
9799  eval $cacheid=no
9800fi
9801rm -f core conftest.err conftest.$ac_objext \
9802    conftest$ac_exeext conftest.$ac_ext
9803fi
9804
9805
9806		CFLAGS="$xorg_testset_save_CFLAGS"
9807
9808		eval supported=\$$cacheid
9809		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9810$as_echo "$supported" >&6; }
9811		if test "$supported" = "yes" ; then
9812			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9813			found="yes"
9814		fi
9815	fi
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831xorg_testset_save_CFLAGS="$CFLAGS"
9832
9833if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9834	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9835	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9836$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9837if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9838  $as_echo_n "(cached) " >&6
9839else
9840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9841/* end confdefs.h.  */
9842int i;
9843_ACEOF
9844if ac_fn_c_try_compile "$LINENO"; then :
9845  xorg_cv_cc_flag_unknown_warning_option=yes
9846else
9847  xorg_cv_cc_flag_unknown_warning_option=no
9848fi
9849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9850fi
9851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9852$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9853	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9854	CFLAGS="$xorg_testset_save_CFLAGS"
9855fi
9856
9857if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9858	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9859		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9860	fi
9861	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9862	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9863$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9864if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9865  $as_echo_n "(cached) " >&6
9866else
9867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9868/* end confdefs.h.  */
9869int i;
9870_ACEOF
9871if ac_fn_c_try_compile "$LINENO"; then :
9872  xorg_cv_cc_flag_unused_command_line_argument=yes
9873else
9874  xorg_cv_cc_flag_unused_command_line_argument=no
9875fi
9876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9877fi
9878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9879$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9880	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9881	CFLAGS="$xorg_testset_save_CFLAGS"
9882fi
9883
9884found="no"
9885
9886	if test $found = "no" ; then
9887		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9888			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9889		fi
9890
9891		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9892			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9893		fi
9894
9895		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9896
9897		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5
9898$as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; }
9899		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9900		if eval \${$cacheid+:} false; then :
9901  $as_echo_n "(cached) " >&6
9902else
9903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9904/* end confdefs.h.  */
9905int i;
9906int
9907main ()
9908{
9909
9910  ;
9911  return 0;
9912}
9913_ACEOF
9914if ac_fn_c_try_link "$LINENO"; then :
9915  eval $cacheid=yes
9916else
9917  eval $cacheid=no
9918fi
9919rm -f core conftest.err conftest.$ac_objext \
9920    conftest$ac_exeext conftest.$ac_ext
9921fi
9922
9923
9924		CFLAGS="$xorg_testset_save_CFLAGS"
9925
9926		eval supported=\$$cacheid
9927		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9928$as_echo "$supported" >&6; }
9929		if test "$supported" = "yes" ; then
9930			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9931			found="yes"
9932		fi
9933	fi
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949xorg_testset_save_CFLAGS="$CFLAGS"
9950
9951if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9952	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9953	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9954$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9955if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9956  $as_echo_n "(cached) " >&6
9957else
9958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9959/* end confdefs.h.  */
9960int i;
9961_ACEOF
9962if ac_fn_c_try_compile "$LINENO"; then :
9963  xorg_cv_cc_flag_unknown_warning_option=yes
9964else
9965  xorg_cv_cc_flag_unknown_warning_option=no
9966fi
9967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9968fi
9969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9970$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9971	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9972	CFLAGS="$xorg_testset_save_CFLAGS"
9973fi
9974
9975if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9976	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9977		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9978	fi
9979	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9980	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9981$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9982if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9983  $as_echo_n "(cached) " >&6
9984else
9985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9986/* end confdefs.h.  */
9987int i;
9988_ACEOF
9989if ac_fn_c_try_compile "$LINENO"; then :
9990  xorg_cv_cc_flag_unused_command_line_argument=yes
9991else
9992  xorg_cv_cc_flag_unused_command_line_argument=no
9993fi
9994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9995fi
9996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9997$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9998	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9999	CFLAGS="$xorg_testset_save_CFLAGS"
10000fi
10001
10002found="no"
10003
10004	if test $found = "no" ; then
10005		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10006			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10007		fi
10008
10009		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10010			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10011		fi
10012
10013		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10014
10015		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5
10016$as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; }
10017		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10018		if eval \${$cacheid+:} false; then :
10019  $as_echo_n "(cached) " >&6
10020else
10021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10022/* end confdefs.h.  */
10023int i;
10024int
10025main ()
10026{
10027
10028  ;
10029  return 0;
10030}
10031_ACEOF
10032if ac_fn_c_try_link "$LINENO"; then :
10033  eval $cacheid=yes
10034else
10035  eval $cacheid=no
10036fi
10037rm -f core conftest.err conftest.$ac_objext \
10038    conftest$ac_exeext conftest.$ac_ext
10039fi
10040
10041
10042		CFLAGS="$xorg_testset_save_CFLAGS"
10043
10044		eval supported=\$$cacheid
10045		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10046$as_echo "$supported" >&6; }
10047		if test "$supported" = "yes" ; then
10048			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10049			found="yes"
10050		fi
10051	fi
10052
10053
10054fi
10055
10056
10057
10058
10059
10060
10061
10062		CWARNFLAGS="$BASE_CFLAGS"
10063		if  test "x$GCC" = xyes ; then
10064		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10065		fi
10066
10067
10068
10069
10070
10071
10072
10073
10074# Check whether --enable-strict-compilation was given.
10075if test "${enable_strict_compilation+set}" = set; then :
10076  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10077else
10078  STRICT_COMPILE=no
10079fi
10080
10081
10082
10083
10084
10085
10086STRICT_CFLAGS=""
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100xorg_testset_save_CFLAGS="$CFLAGS"
10101
10102if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10103	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10104	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10105$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10106if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10107  $as_echo_n "(cached) " >&6
10108else
10109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10110/* end confdefs.h.  */
10111int i;
10112_ACEOF
10113if ac_fn_c_try_compile "$LINENO"; then :
10114  xorg_cv_cc_flag_unknown_warning_option=yes
10115else
10116  xorg_cv_cc_flag_unknown_warning_option=no
10117fi
10118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10119fi
10120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10121$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10122	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10123	CFLAGS="$xorg_testset_save_CFLAGS"
10124fi
10125
10126if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10127	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10128		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10129	fi
10130	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10131	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10132$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10133if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10134  $as_echo_n "(cached) " >&6
10135else
10136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10137/* end confdefs.h.  */
10138int i;
10139_ACEOF
10140if ac_fn_c_try_compile "$LINENO"; then :
10141  xorg_cv_cc_flag_unused_command_line_argument=yes
10142else
10143  xorg_cv_cc_flag_unused_command_line_argument=no
10144fi
10145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10146fi
10147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10148$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10149	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10150	CFLAGS="$xorg_testset_save_CFLAGS"
10151fi
10152
10153found="no"
10154
10155	if test $found = "no" ; then
10156		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10157			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10158		fi
10159
10160		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10161			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10162		fi
10163
10164		CFLAGS="$CFLAGS -pedantic"
10165
10166		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5
10167$as_echo_n "checking if $CC supports-pedantic... " >&6; }
10168		cacheid=xorg_cv_cc_flag__pedantic
10169		if eval \${$cacheid+:} false; then :
10170  $as_echo_n "(cached) " >&6
10171else
10172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10173/* end confdefs.h.  */
10174int i;
10175int
10176main ()
10177{
10178
10179  ;
10180  return 0;
10181}
10182_ACEOF
10183if ac_fn_c_try_link "$LINENO"; then :
10184  eval $cacheid=yes
10185else
10186  eval $cacheid=no
10187fi
10188rm -f core conftest.err conftest.$ac_objext \
10189    conftest$ac_exeext conftest.$ac_ext
10190fi
10191
10192
10193		CFLAGS="$xorg_testset_save_CFLAGS"
10194
10195		eval supported=\$$cacheid
10196		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10197$as_echo "$supported" >&6; }
10198		if test "$supported" = "yes" ; then
10199			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10200			found="yes"
10201		fi
10202	fi
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218xorg_testset_save_CFLAGS="$CFLAGS"
10219
10220if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10221	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10222	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10223$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10224if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10225  $as_echo_n "(cached) " >&6
10226else
10227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10228/* end confdefs.h.  */
10229int i;
10230_ACEOF
10231if ac_fn_c_try_compile "$LINENO"; then :
10232  xorg_cv_cc_flag_unknown_warning_option=yes
10233else
10234  xorg_cv_cc_flag_unknown_warning_option=no
10235fi
10236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10237fi
10238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10239$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10240	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10241	CFLAGS="$xorg_testset_save_CFLAGS"
10242fi
10243
10244if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10245	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10246		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10247	fi
10248	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10249	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10250$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10251if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10252  $as_echo_n "(cached) " >&6
10253else
10254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10255/* end confdefs.h.  */
10256int i;
10257_ACEOF
10258if ac_fn_c_try_compile "$LINENO"; then :
10259  xorg_cv_cc_flag_unused_command_line_argument=yes
10260else
10261  xorg_cv_cc_flag_unused_command_line_argument=no
10262fi
10263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10264fi
10265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10266$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10267	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10268	CFLAGS="$xorg_testset_save_CFLAGS"
10269fi
10270
10271found="no"
10272
10273	if test $found = "no" ; then
10274		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10275			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10276		fi
10277
10278		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10279			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10280		fi
10281
10282		CFLAGS="$CFLAGS -Werror"
10283
10284		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5
10285$as_echo_n "checking if $CC supports-Werror... " >&6; }
10286		cacheid=xorg_cv_cc_flag__Werror
10287		if eval \${$cacheid+:} false; then :
10288  $as_echo_n "(cached) " >&6
10289else
10290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10291/* end confdefs.h.  */
10292int i;
10293int
10294main ()
10295{
10296
10297  ;
10298  return 0;
10299}
10300_ACEOF
10301if ac_fn_c_try_link "$LINENO"; then :
10302  eval $cacheid=yes
10303else
10304  eval $cacheid=no
10305fi
10306rm -f core conftest.err conftest.$ac_objext \
10307    conftest$ac_exeext conftest.$ac_ext
10308fi
10309
10310
10311		CFLAGS="$xorg_testset_save_CFLAGS"
10312
10313		eval supported=\$$cacheid
10314		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10315$as_echo "$supported" >&6; }
10316		if test "$supported" = "yes" ; then
10317			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10318			found="yes"
10319		fi
10320	fi
10321
10322	if test $found = "no" ; then
10323		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10324			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10325		fi
10326
10327		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10328			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10329		fi
10330
10331		CFLAGS="$CFLAGS -errwarn"
10332
10333		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5
10334$as_echo_n "checking if $CC supports-errwarn... " >&6; }
10335		cacheid=xorg_cv_cc_flag__errwarn
10336		if eval \${$cacheid+:} false; then :
10337  $as_echo_n "(cached) " >&6
10338else
10339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10340/* end confdefs.h.  */
10341int i;
10342int
10343main ()
10344{
10345
10346  ;
10347  return 0;
10348}
10349_ACEOF
10350if ac_fn_c_try_link "$LINENO"; then :
10351  eval $cacheid=yes
10352else
10353  eval $cacheid=no
10354fi
10355rm -f core conftest.err conftest.$ac_objext \
10356    conftest$ac_exeext conftest.$ac_ext
10357fi
10358
10359
10360		CFLAGS="$xorg_testset_save_CFLAGS"
10361
10362		eval supported=\$$cacheid
10363		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10364$as_echo "$supported" >&6; }
10365		if test "$supported" = "yes" ; then
10366			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10367			found="yes"
10368		fi
10369	fi
10370
10371
10372
10373# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10374# activate it with -Werror, so we add it here explicitly.
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388xorg_testset_save_CFLAGS="$CFLAGS"
10389
10390if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10391	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10392	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10393$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10394if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10395  $as_echo_n "(cached) " >&6
10396else
10397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10398/* end confdefs.h.  */
10399int i;
10400_ACEOF
10401if ac_fn_c_try_compile "$LINENO"; then :
10402  xorg_cv_cc_flag_unknown_warning_option=yes
10403else
10404  xorg_cv_cc_flag_unknown_warning_option=no
10405fi
10406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10407fi
10408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10409$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10410	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10411	CFLAGS="$xorg_testset_save_CFLAGS"
10412fi
10413
10414if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10415	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10416		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10417	fi
10418	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10419	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10420$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10421if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10422  $as_echo_n "(cached) " >&6
10423else
10424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10425/* end confdefs.h.  */
10426int i;
10427_ACEOF
10428if ac_fn_c_try_compile "$LINENO"; then :
10429  xorg_cv_cc_flag_unused_command_line_argument=yes
10430else
10431  xorg_cv_cc_flag_unused_command_line_argument=no
10432fi
10433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10434fi
10435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10436$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10437	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10438	CFLAGS="$xorg_testset_save_CFLAGS"
10439fi
10440
10441found="no"
10442
10443	if test $found = "no" ; then
10444		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10445			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10446		fi
10447
10448		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10449			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10450		fi
10451
10452		CFLAGS="$CFLAGS -Werror=attributes"
10453
10454		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5
10455$as_echo_n "checking if $CC supports-Werror=attributes... " >&6; }
10456		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10457		if eval \${$cacheid+:} false; then :
10458  $as_echo_n "(cached) " >&6
10459else
10460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10461/* end confdefs.h.  */
10462int i;
10463int
10464main ()
10465{
10466
10467  ;
10468  return 0;
10469}
10470_ACEOF
10471if ac_fn_c_try_link "$LINENO"; then :
10472  eval $cacheid=yes
10473else
10474  eval $cacheid=no
10475fi
10476rm -f core conftest.err conftest.$ac_objext \
10477    conftest$ac_exeext conftest.$ac_ext
10478fi
10479
10480
10481		CFLAGS="$xorg_testset_save_CFLAGS"
10482
10483		eval supported=\$$cacheid
10484		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10485$as_echo "$supported" >&6; }
10486		if test "$supported" = "yes" ; then
10487			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10488			found="yes"
10489		fi
10490	fi
10491
10492
10493
10494if test "x$STRICT_COMPILE" = "xyes"; then
10495    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10496    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10497fi
10498
10499
10500
10501
10502
10503
10504cat >>confdefs.h <<_ACEOF
10505#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10506_ACEOF
10507
10508	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10509	if test "x$PVM" = "x"; then
10510		PVM="0"
10511	fi
10512
10513cat >>confdefs.h <<_ACEOF
10514#define PACKAGE_VERSION_MINOR $PVM
10515_ACEOF
10516
10517	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10518	if test "x$PVP" = "x"; then
10519		PVP="0"
10520	fi
10521
10522cat >>confdefs.h <<_ACEOF
10523#define PACKAGE_VERSION_PATCHLEVEL $PVP
10524_ACEOF
10525
10526
10527
10528CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10529mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10530|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10531echo 'git directory not found: installing possibly empty changelog.' >&2)"
10532
10533
10534
10535
10536macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10537INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10538mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10539|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10540echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10541
10542
10543
10544
10545
10546
10547if test x$APP_MAN_SUFFIX = x    ; then
10548    APP_MAN_SUFFIX=1
10549fi
10550if test x$APP_MAN_DIR = x    ; then
10551    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10552fi
10553
10554if test x$LIB_MAN_SUFFIX = x    ; then
10555    LIB_MAN_SUFFIX=3
10556fi
10557if test x$LIB_MAN_DIR = x    ; then
10558    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10559fi
10560
10561if test x$FILE_MAN_SUFFIX = x    ; then
10562    case $host_os in
10563	solaris*)	FILE_MAN_SUFFIX=4  ;;
10564	*)		FILE_MAN_SUFFIX=5  ;;
10565    esac
10566fi
10567if test x$FILE_MAN_DIR = x    ; then
10568    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10569fi
10570
10571if test x$MISC_MAN_SUFFIX = x    ; then
10572    case $host_os in
10573	solaris*)	MISC_MAN_SUFFIX=5  ;;
10574	*)		MISC_MAN_SUFFIX=7  ;;
10575    esac
10576fi
10577if test x$MISC_MAN_DIR = x    ; then
10578    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10579fi
10580
10581if test x$DRIVER_MAN_SUFFIX = x    ; then
10582    case $host_os in
10583	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10584	*)		DRIVER_MAN_SUFFIX=4  ;;
10585    esac
10586fi
10587if test x$DRIVER_MAN_DIR = x    ; then
10588    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10589fi
10590
10591if test x$ADMIN_MAN_SUFFIX = x    ; then
10592    case $host_os in
10593	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10594	*)		ADMIN_MAN_SUFFIX=8  ;;
10595    esac
10596fi
10597if test x$ADMIN_MAN_DIR = x    ; then
10598    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10599fi
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615XORG_MAN_PAGE="X Version 11"
10616
10617MAN_SUBSTS="\
10618	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10619	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10620	-e 's|__xservername__|Xorg|g' \
10621	-e 's|__xconfigfile__|xorg.conf|g' \
10622	-e 's|__projectroot__|\$(prefix)|g' \
10623	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10624	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10625	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10626	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10627	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10628	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10629	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10630
10631
10632
10633# Check whether --enable-silent-rules was given.
10634if test "${enable_silent_rules+set}" = set; then :
10635  enableval=$enable_silent_rules;
10636fi
10637
10638case $enable_silent_rules in
10639yes) AM_DEFAULT_VERBOSITY=0;;
10640no)  AM_DEFAULT_VERBOSITY=1;;
10641*)   AM_DEFAULT_VERBOSITY=0;;
10642esac
10643AM_BACKSLASH='\'
10644
10645
10646
10647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
10648$as_echo_n "checking return type of signal handlers... " >&6; }
10649if ${ac_cv_type_signal+:} false; then :
10650  $as_echo_n "(cached) " >&6
10651else
10652  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10653/* end confdefs.h.  */
10654#include <sys/types.h>
10655#include <signal.h>
10656
10657int
10658main ()
10659{
10660return *(signal (0, 0)) (0) == 1;
10661  ;
10662  return 0;
10663}
10664_ACEOF
10665if ac_fn_c_try_compile "$LINENO"; then :
10666  ac_cv_type_signal=int
10667else
10668  ac_cv_type_signal=void
10669fi
10670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10671fi
10672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
10673$as_echo "$ac_cv_type_signal" >&6; }
10674
10675cat >>confdefs.h <<_ACEOF
10676#define RETSIGTYPE $ac_cv_type_signal
10677_ACEOF
10678
10679
10680
10681for ac_header in net/errno.h
10682do :
10683  ac_fn_c_check_header_mongrel "$LINENO" "net/errno.h" "ac_cv_header_net_errno_h" "$ac_includes_default"
10684if test "x$ac_cv_header_net_errno_h" = xyes; then :
10685  cat >>confdefs.h <<_ACEOF
10686#define HAVE_NET_ERRNO_H 1
10687_ACEOF
10688
10689fi
10690
10691done
10692
10693
10694for ac_func in strlcpy
10695do :
10696  ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
10697if test "x$ac_cv_func_strlcpy" = xyes; then :
10698  cat >>confdefs.h <<_ACEOF
10699#define HAVE_STRLCPY 1
10700_ACEOF
10701
10702fi
10703done
10704
10705
10706# Checks for pkg-config packages
10707
10708pkg_failed=no
10709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XAUTH" >&5
10710$as_echo_n "checking for XAUTH... " >&6; }
10711
10712if test -n "$XAUTH_CFLAGS"; then
10713    pkg_cv_XAUTH_CFLAGS="$XAUTH_CFLAGS"
10714 elif test -n "$PKG_CONFIG"; then
10715    if test -n "$PKG_CONFIG" && \
10716    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xau xext xmuu\""; } >&5
10717  ($PKG_CONFIG --exists --print-errors "x11 xau xext xmuu") 2>&5
10718  ac_status=$?
10719  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10720  test $ac_status = 0; }; then
10721  pkg_cv_XAUTH_CFLAGS=`$PKG_CONFIG --cflags "x11 xau xext xmuu" 2>/dev/null`
10722else
10723  pkg_failed=yes
10724fi
10725 else
10726    pkg_failed=untried
10727fi
10728if test -n "$XAUTH_LIBS"; then
10729    pkg_cv_XAUTH_LIBS="$XAUTH_LIBS"
10730 elif test -n "$PKG_CONFIG"; then
10731    if test -n "$PKG_CONFIG" && \
10732    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xau xext xmuu\""; } >&5
10733  ($PKG_CONFIG --exists --print-errors "x11 xau xext xmuu") 2>&5
10734  ac_status=$?
10735  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10736  test $ac_status = 0; }; then
10737  pkg_cv_XAUTH_LIBS=`$PKG_CONFIG --libs "x11 xau xext xmuu" 2>/dev/null`
10738else
10739  pkg_failed=yes
10740fi
10741 else
10742    pkg_failed=untried
10743fi
10744
10745
10746
10747if test $pkg_failed = yes; then
10748
10749if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10750        _pkg_short_errors_supported=yes
10751else
10752        _pkg_short_errors_supported=no
10753fi
10754        if test $_pkg_short_errors_supported = yes; then
10755	        XAUTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xau xext xmuu" 2>&1`
10756        else
10757	        XAUTH_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xau xext xmuu" 2>&1`
10758        fi
10759	# Put the nasty error message in config.log where it belongs
10760	echo "$XAUTH_PKG_ERRORS" >&5
10761
10762	as_fn_error $? "Package requirements (x11 xau xext xmuu) were not met:
10763
10764$XAUTH_PKG_ERRORS
10765
10766Consider adjusting the PKG_CONFIG_PATH environment variable if you
10767installed software in a non-standard prefix.
10768
10769Alternatively, you may set the environment variables XAUTH_CFLAGS
10770and XAUTH_LIBS to avoid the need to call pkg-config.
10771See the pkg-config man page for more details.
10772" "$LINENO" 5
10773elif test $pkg_failed = untried; then
10774	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10775$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10776as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10777is in your PATH or set the PKG_CONFIG environment variable to the full
10778path to pkg-config.
10779
10780Alternatively, you may set the environment variables XAUTH_CFLAGS
10781and XAUTH_LIBS to avoid the need to call pkg-config.
10782See the pkg-config man page for more details.
10783
10784To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10785See \`config.log' for more details" "$LINENO" 5; }
10786else
10787	XAUTH_CFLAGS=$pkg_cv_XAUTH_CFLAGS
10788	XAUTH_LIBS=$pkg_cv_XAUTH_LIBS
10789        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10790$as_echo "yes" >&6; }
10791	:
10792fi
10793
10794# Transport selection macro from xtrans.m4
10795# Needed to set *CONN defines for gethost.c & parsedpy.c
10796
10797
10798
10799 case $host_os in
10800	mingw*)	unixdef="no"   ;;
10801	*)	unixdef="yes"  ;;
10802 esac
10803 # Check whether --enable-unix-transport was given.
10804if test "${enable_unix_transport+set}" = set; then :
10805  enableval=$enable_unix_transport; UNIXCONN=$enableval
10806else
10807  UNIXCONN=$unixdef
10808fi
10809
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
10811$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
10812 if test "$UNIXCONN" = "yes"; then
10813
10814$as_echo "#define UNIXCONN 1" >>confdefs.h
10815
10816 fi
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
10818$as_echo "$UNIXCONN" >&6; }
10819 # Check whether --enable-tcp-transport was given.
10820if test "${enable_tcp_transport+set}" = set; then :
10821  enableval=$enable_tcp_transport; TCPCONN=$enableval
10822else
10823  TCPCONN=yes
10824fi
10825
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
10827$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
10829$as_echo "$TCPCONN" >&6; }
10830 if test "$TCPCONN" = "yes"; then
10831
10832$as_echo "#define TCPCONN 1" >>confdefs.h
10833
10834
10835 # SVR4 hides these in libraries other than libc
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
10837$as_echo_n "checking for library containing socket... " >&6; }
10838if ${ac_cv_search_socket+:} false; then :
10839  $as_echo_n "(cached) " >&6
10840else
10841  ac_func_search_save_LIBS=$LIBS
10842cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10843/* end confdefs.h.  */
10844
10845/* Override any GCC internal prototype to avoid an error.
10846   Use char because int might match the return type of a GCC
10847   builtin and then its argument prototype would still apply.  */
10848#ifdef __cplusplus
10849extern "C"
10850#endif
10851char socket ();
10852int
10853main ()
10854{
10855return socket ();
10856  ;
10857  return 0;
10858}
10859_ACEOF
10860for ac_lib in '' socket; do
10861  if test -z "$ac_lib"; then
10862    ac_res="none required"
10863  else
10864    ac_res=-l$ac_lib
10865    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10866  fi
10867  if ac_fn_c_try_link "$LINENO"; then :
10868  ac_cv_search_socket=$ac_res
10869fi
10870rm -f core conftest.err conftest.$ac_objext \
10871    conftest$ac_exeext
10872  if ${ac_cv_search_socket+:} false; then :
10873  break
10874fi
10875done
10876if ${ac_cv_search_socket+:} false; then :
10877
10878else
10879  ac_cv_search_socket=no
10880fi
10881rm conftest.$ac_ext
10882LIBS=$ac_func_search_save_LIBS
10883fi
10884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
10885$as_echo "$ac_cv_search_socket" >&6; }
10886ac_res=$ac_cv_search_socket
10887if test "$ac_res" != no; then :
10888  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10889
10890fi
10891
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
10893$as_echo_n "checking for library containing gethostbyname... " >&6; }
10894if ${ac_cv_search_gethostbyname+:} false; then :
10895  $as_echo_n "(cached) " >&6
10896else
10897  ac_func_search_save_LIBS=$LIBS
10898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10899/* end confdefs.h.  */
10900
10901/* Override any GCC internal prototype to avoid an error.
10902   Use char because int might match the return type of a GCC
10903   builtin and then its argument prototype would still apply.  */
10904#ifdef __cplusplus
10905extern "C"
10906#endif
10907char gethostbyname ();
10908int
10909main ()
10910{
10911return gethostbyname ();
10912  ;
10913  return 0;
10914}
10915_ACEOF
10916for ac_lib in '' nsl; do
10917  if test -z "$ac_lib"; then
10918    ac_res="none required"
10919  else
10920    ac_res=-l$ac_lib
10921    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10922  fi
10923  if ac_fn_c_try_link "$LINENO"; then :
10924  ac_cv_search_gethostbyname=$ac_res
10925fi
10926rm -f core conftest.err conftest.$ac_objext \
10927    conftest$ac_exeext
10928  if ${ac_cv_search_gethostbyname+:} false; then :
10929  break
10930fi
10931done
10932if ${ac_cv_search_gethostbyname+:} false; then :
10933
10934else
10935  ac_cv_search_gethostbyname=no
10936fi
10937rm conftest.$ac_ext
10938LIBS=$ac_func_search_save_LIBS
10939fi
10940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
10941$as_echo "$ac_cv_search_gethostbyname" >&6; }
10942ac_res=$ac_cv_search_gethostbyname
10943if test "$ac_res" != no; then :
10944  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10945
10946fi
10947
10948 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
10949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
10950$as_echo_n "checking for main in -lws2_32... " >&6; }
10951if ${ac_cv_lib_ws2_32_main+:} false; then :
10952  $as_echo_n "(cached) " >&6
10953else
10954  ac_check_lib_save_LIBS=$LIBS
10955LIBS="-lws2_32  $LIBS"
10956cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10957/* end confdefs.h.  */
10958
10959
10960int
10961main ()
10962{
10963return main ();
10964  ;
10965  return 0;
10966}
10967_ACEOF
10968if ac_fn_c_try_link "$LINENO"; then :
10969  ac_cv_lib_ws2_32_main=yes
10970else
10971  ac_cv_lib_ws2_32_main=no
10972fi
10973rm -f core conftest.err conftest.$ac_objext \
10974    conftest$ac_exeext conftest.$ac_ext
10975LIBS=$ac_check_lib_save_LIBS
10976fi
10977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
10978$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
10979if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
10980  cat >>confdefs.h <<_ACEOF
10981#define HAVE_LIBWS2_32 1
10982_ACEOF
10983
10984  LIBS="-lws2_32 $LIBS"
10985
10986fi
10987ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main
10988
10989 fi
10990
10991 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
10992 # Check whether --enable-ipv6 was given.
10993if test "${enable_ipv6+set}" = set; then :
10994  enableval=$enable_ipv6; IPV6CONN=$enableval
10995else
10996  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
10997if test "x$ac_cv_func_getaddrinfo" = xyes; then :
10998  IPV6CONN=yes
10999else
11000  IPV6CONN=no
11001fi
11002
11003fi
11004
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
11006$as_echo_n "checking if IPv6 support should be built... " >&6; }
11007 if test "$IPV6CONN" = "yes"; then
11008
11009$as_echo "#define IPv6 1" >>confdefs.h
11010
11011 fi
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
11013$as_echo "$IPV6CONN" >&6; }
11014
11015 # 4.3BSD-Reno added a new member to struct sockaddr_in
11016 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
11017#include <sys/types.h>
11018#include <sys/socket.h>
11019#include <netinet/in.h>
11020
11021"
11022if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
11023
11024$as_echo "#define BSD44SOCKETS 1" >>confdefs.h
11025
11026fi
11027
11028
11029 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
11030 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
11031$ac_includes_default
11032#include <sys/socket.h>
11033"
11034if test "x$ac_cv_type_socklen_t" = xyes; then :
11035
11036cat >>confdefs.h <<_ACEOF
11037#define HAVE_SOCKLEN_T 1
11038_ACEOF
11039
11040
11041fi
11042
11043
11044
11045 fi
11046 case $host_os in
11047	solaris*|sco*|sysv4*)	localdef="yes" ;;
11048	*)			localdef="no"  ;;
11049 esac
11050 # Check whether --enable-local-transport was given.
11051if test "${enable_local_transport+set}" = set; then :
11052  enableval=$enable_local_transport; LOCALCONN=$enableval
11053else
11054  LOCALCONN=$localdef
11055fi
11056
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
11058$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
11060$as_echo "$LOCALCONN" >&6; }
11061 if test "$LOCALCONN" = "yes"; then
11062
11063$as_echo "#define LOCALCONN 1" >>confdefs.h
11064
11065 fi
11066
11067
11068
11069
11070
11071
11072
11073
11074# Check whether --with-lint was given.
11075if test "${with_lint+set}" = set; then :
11076  withval=$with_lint; use_lint=$withval
11077else
11078  use_lint=no
11079fi
11080
11081
11082# Obtain platform specific info like program name and options
11083# The lint program on FreeBSD and NetBSD is different from the one on Solaris
11084case $host_os in
11085  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
11086	lint_name=splint
11087	lint_options="-badflag"
11088	;;
11089  *freebsd* | *netbsd*)
11090	lint_name=lint
11091	lint_options="-u -b"
11092	;;
11093  *solaris*)
11094	lint_name=lint
11095	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
11096	;;
11097esac
11098
11099# Test for the presence of the program (either guessed by the code or spelled out by the user)
11100if test "x$use_lint" = x"yes" ; then
11101   # Extract the first word of "$lint_name", so it can be a program name with args.
11102set dummy $lint_name; ac_word=$2
11103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11104$as_echo_n "checking for $ac_word... " >&6; }
11105if ${ac_cv_path_LINT+:} false; then :
11106  $as_echo_n "(cached) " >&6
11107else
11108  case $LINT in
11109  [\\/]* | ?:[\\/]*)
11110  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
11111  ;;
11112  *)
11113  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11114for as_dir in $PATH
11115do
11116  IFS=$as_save_IFS
11117  test -z "$as_dir" && as_dir=.
11118    for ac_exec_ext in '' $ac_executable_extensions; do
11119  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11120    ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
11121    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11122    break 2
11123  fi
11124done
11125  done
11126IFS=$as_save_IFS
11127
11128  ;;
11129esac
11130fi
11131LINT=$ac_cv_path_LINT
11132if test -n "$LINT"; then
11133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
11134$as_echo "$LINT" >&6; }
11135else
11136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11137$as_echo "no" >&6; }
11138fi
11139
11140
11141   if test "x$LINT" = "x"; then
11142        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
11143   fi
11144elif test "x$use_lint" = x"no" ; then
11145   if test "x$LINT" != "x"; then
11146      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
11147$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
11148   fi
11149else
11150   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
11151fi
11152
11153# User supplied flags override default flags
11154if test "x$LINT_FLAGS" != "x"; then
11155   lint_options=$LINT_FLAGS
11156fi
11157
11158LINT_FLAGS=$lint_options
11159
11160 if test "x$LINT" != x; then
11161  LINT_TRUE=
11162  LINT_FALSE='#'
11163else
11164  LINT_TRUE='#'
11165  LINT_FALSE=
11166fi
11167
11168
11169
11170
11171ac_config_files="$ac_config_files Makefile man/Makefile"
11172
11173cat >confcache <<\_ACEOF
11174# This file is a shell script that caches the results of configure
11175# tests run on this system so they can be shared between configure
11176# scripts and configure runs, see configure's option --config-cache.
11177# It is not useful on other systems.  If it contains results you don't
11178# want to keep, you may remove or edit it.
11179#
11180# config.status only pays attention to the cache file if you give it
11181# the --recheck option to rerun configure.
11182#
11183# `ac_cv_env_foo' variables (set or unset) will be overridden when
11184# loading this file, other *unset* `ac_cv_foo' will be assigned the
11185# following values.
11186
11187_ACEOF
11188
11189# The following way of writing the cache mishandles newlines in values,
11190# but we know of no workaround that is simple, portable, and efficient.
11191# So, we kill variables containing newlines.
11192# Ultrix sh set writes to stderr and can't be redirected directly,
11193# and sets the high bit in the cache file unless we assign to the vars.
11194(
11195  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11196    eval ac_val=\$$ac_var
11197    case $ac_val in #(
11198    *${as_nl}*)
11199      case $ac_var in #(
11200      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11201$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11202      esac
11203      case $ac_var in #(
11204      _ | IFS | as_nl) ;; #(
11205      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11206      *) { eval $ac_var=; unset $ac_var;} ;;
11207      esac ;;
11208    esac
11209  done
11210
11211  (set) 2>&1 |
11212    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11213    *${as_nl}ac_space=\ *)
11214      # `set' does not quote correctly, so add quotes: double-quote
11215      # substitution turns \\\\ into \\, and sed turns \\ into \.
11216      sed -n \
11217	"s/'/'\\\\''/g;
11218	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11219      ;; #(
11220    *)
11221      # `set' quotes correctly as required by POSIX, so do not add quotes.
11222      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11223      ;;
11224    esac |
11225    sort
11226) |
11227  sed '
11228     /^ac_cv_env_/b end
11229     t clear
11230     :clear
11231     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11232     t end
11233     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11234     :end' >>confcache
11235if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11236  if test -w "$cache_file"; then
11237    if test "x$cache_file" != "x/dev/null"; then
11238      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11239$as_echo "$as_me: updating cache $cache_file" >&6;}
11240      if test ! -f "$cache_file" || test -h "$cache_file"; then
11241	cat confcache >"$cache_file"
11242      else
11243        case $cache_file in #(
11244        */* | ?:*)
11245	  mv -f confcache "$cache_file"$$ &&
11246	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11247        *)
11248	  mv -f confcache "$cache_file" ;;
11249	esac
11250      fi
11251    fi
11252  else
11253    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11254$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11255  fi
11256fi
11257rm -f confcache
11258
11259test "x$prefix" = xNONE && prefix=$ac_default_prefix
11260# Let make expand exec_prefix.
11261test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11262
11263DEFS=-DHAVE_CONFIG_H
11264
11265ac_libobjs=
11266ac_ltlibobjs=
11267U=
11268for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11269  # 1. Remove the extension, and $U if already installed.
11270  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11271  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11272  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11273  #    will be set to the directory where LIBOBJS objects are built.
11274  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11275  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11276done
11277LIBOBJS=$ac_libobjs
11278
11279LTLIBOBJS=$ac_ltlibobjs
11280
11281
11282 if test -n "$EXEEXT"; then
11283  am__EXEEXT_TRUE=
11284  am__EXEEXT_FALSE='#'
11285else
11286  am__EXEEXT_TRUE='#'
11287  am__EXEEXT_FALSE=
11288fi
11289
11290if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11291  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11292Usually this means the macro was only invoked conditionally." "$LINENO" 5
11293fi
11294if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11295  as_fn_error $? "conditional \"AMDEP\" was never defined.
11296Usually this means the macro was only invoked conditionally." "$LINENO" 5
11297fi
11298if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11299  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11300Usually this means the macro was only invoked conditionally." "$LINENO" 5
11301fi
11302if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
11303  as_fn_error $? "conditional \"LINT\" was never defined.
11304Usually this means the macro was only invoked conditionally." "$LINENO" 5
11305fi
11306
11307: "${CONFIG_STATUS=./config.status}"
11308ac_write_fail=0
11309ac_clean_files_save=$ac_clean_files
11310ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11311{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11312$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11313as_write_fail=0
11314cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11315#! $SHELL
11316# Generated by $as_me.
11317# Run this file to recreate the current configuration.
11318# Compiler output produced by configure, useful for debugging
11319# configure, is in config.log if it exists.
11320
11321debug=false
11322ac_cs_recheck=false
11323ac_cs_silent=false
11324
11325SHELL=\${CONFIG_SHELL-$SHELL}
11326export SHELL
11327_ASEOF
11328cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11329## -------------------- ##
11330## M4sh Initialization. ##
11331## -------------------- ##
11332
11333# Be more Bourne compatible
11334DUALCASE=1; export DUALCASE # for MKS sh
11335if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11336  emulate sh
11337  NULLCMD=:
11338  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11339  # is contrary to our usage.  Disable this feature.
11340  alias -g '${1+"$@"}'='"$@"'
11341  setopt NO_GLOB_SUBST
11342else
11343  case `(set -o) 2>/dev/null` in #(
11344  *posix*) :
11345    set -o posix ;; #(
11346  *) :
11347     ;;
11348esac
11349fi
11350
11351
11352as_nl='
11353'
11354export as_nl
11355# Printing a long string crashes Solaris 7 /usr/bin/printf.
11356as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11357as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11358as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11359# Prefer a ksh shell builtin over an external printf program on Solaris,
11360# but without wasting forks for bash or zsh.
11361if test -z "$BASH_VERSION$ZSH_VERSION" \
11362    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11363  as_echo='print -r --'
11364  as_echo_n='print -rn --'
11365elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11366  as_echo='printf %s\n'
11367  as_echo_n='printf %s'
11368else
11369  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11370    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11371    as_echo_n='/usr/ucb/echo -n'
11372  else
11373    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11374    as_echo_n_body='eval
11375      arg=$1;
11376      case $arg in #(
11377      *"$as_nl"*)
11378	expr "X$arg" : "X\\(.*\\)$as_nl";
11379	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11380      esac;
11381      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11382    '
11383    export as_echo_n_body
11384    as_echo_n='sh -c $as_echo_n_body as_echo'
11385  fi
11386  export as_echo_body
11387  as_echo='sh -c $as_echo_body as_echo'
11388fi
11389
11390# The user is always right.
11391if test "${PATH_SEPARATOR+set}" != set; then
11392  PATH_SEPARATOR=:
11393  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11394    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11395      PATH_SEPARATOR=';'
11396  }
11397fi
11398
11399
11400# IFS
11401# We need space, tab and new line, in precisely that order.  Quoting is
11402# there to prevent editors from complaining about space-tab.
11403# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11404# splitting by setting IFS to empty value.)
11405IFS=" ""	$as_nl"
11406
11407# Find who we are.  Look in the path if we contain no directory separator.
11408as_myself=
11409case $0 in #((
11410  *[\\/]* ) as_myself=$0 ;;
11411  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11412for as_dir in $PATH
11413do
11414  IFS=$as_save_IFS
11415  test -z "$as_dir" && as_dir=.
11416    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11417  done
11418IFS=$as_save_IFS
11419
11420     ;;
11421esac
11422# We did not find ourselves, most probably we were run as `sh COMMAND'
11423# in which case we are not to be found in the path.
11424if test "x$as_myself" = x; then
11425  as_myself=$0
11426fi
11427if test ! -f "$as_myself"; then
11428  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11429  exit 1
11430fi
11431
11432# Unset variables that we do not need and which cause bugs (e.g. in
11433# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11434# suppresses any "Segmentation fault" message there.  '((' could
11435# trigger a bug in pdksh 5.2.14.
11436for as_var in BASH_ENV ENV MAIL MAILPATH
11437do eval test x\${$as_var+set} = xset \
11438  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11439done
11440PS1='$ '
11441PS2='> '
11442PS4='+ '
11443
11444# NLS nuisances.
11445LC_ALL=C
11446export LC_ALL
11447LANGUAGE=C
11448export LANGUAGE
11449
11450# CDPATH.
11451(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11452
11453
11454# as_fn_error STATUS ERROR [LINENO LOG_FD]
11455# ----------------------------------------
11456# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11457# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11458# script with STATUS, using 1 if that was 0.
11459as_fn_error ()
11460{
11461  as_status=$1; test $as_status -eq 0 && as_status=1
11462  if test "$4"; then
11463    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11464    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11465  fi
11466  $as_echo "$as_me: error: $2" >&2
11467  as_fn_exit $as_status
11468} # as_fn_error
11469
11470
11471# as_fn_set_status STATUS
11472# -----------------------
11473# Set $? to STATUS, without forking.
11474as_fn_set_status ()
11475{
11476  return $1
11477} # as_fn_set_status
11478
11479# as_fn_exit STATUS
11480# -----------------
11481# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11482as_fn_exit ()
11483{
11484  set +e
11485  as_fn_set_status $1
11486  exit $1
11487} # as_fn_exit
11488
11489# as_fn_unset VAR
11490# ---------------
11491# Portably unset VAR.
11492as_fn_unset ()
11493{
11494  { eval $1=; unset $1;}
11495}
11496as_unset=as_fn_unset
11497# as_fn_append VAR VALUE
11498# ----------------------
11499# Append the text in VALUE to the end of the definition contained in VAR. Take
11500# advantage of any shell optimizations that allow amortized linear growth over
11501# repeated appends, instead of the typical quadratic growth present in naive
11502# implementations.
11503if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11504  eval 'as_fn_append ()
11505  {
11506    eval $1+=\$2
11507  }'
11508else
11509  as_fn_append ()
11510  {
11511    eval $1=\$$1\$2
11512  }
11513fi # as_fn_append
11514
11515# as_fn_arith ARG...
11516# ------------------
11517# Perform arithmetic evaluation on the ARGs, and store the result in the
11518# global $as_val. Take advantage of shells that can avoid forks. The arguments
11519# must be portable across $(()) and expr.
11520if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11521  eval 'as_fn_arith ()
11522  {
11523    as_val=$(( $* ))
11524  }'
11525else
11526  as_fn_arith ()
11527  {
11528    as_val=`expr "$@" || test $? -eq 1`
11529  }
11530fi # as_fn_arith
11531
11532
11533if expr a : '\(a\)' >/dev/null 2>&1 &&
11534   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11535  as_expr=expr
11536else
11537  as_expr=false
11538fi
11539
11540if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11541  as_basename=basename
11542else
11543  as_basename=false
11544fi
11545
11546if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11547  as_dirname=dirname
11548else
11549  as_dirname=false
11550fi
11551
11552as_me=`$as_basename -- "$0" ||
11553$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11554	 X"$0" : 'X\(//\)$' \| \
11555	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11556$as_echo X/"$0" |
11557    sed '/^.*\/\([^/][^/]*\)\/*$/{
11558	    s//\1/
11559	    q
11560	  }
11561	  /^X\/\(\/\/\)$/{
11562	    s//\1/
11563	    q
11564	  }
11565	  /^X\/\(\/\).*/{
11566	    s//\1/
11567	    q
11568	  }
11569	  s/.*/./; q'`
11570
11571# Avoid depending upon Character Ranges.
11572as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11573as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11574as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11575as_cr_digits='0123456789'
11576as_cr_alnum=$as_cr_Letters$as_cr_digits
11577
11578ECHO_C= ECHO_N= ECHO_T=
11579case `echo -n x` in #(((((
11580-n*)
11581  case `echo 'xy\c'` in
11582  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11583  xy)  ECHO_C='\c';;
11584  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11585       ECHO_T='	';;
11586  esac;;
11587*)
11588  ECHO_N='-n';;
11589esac
11590
11591rm -f conf$$ conf$$.exe conf$$.file
11592if test -d conf$$.dir; then
11593  rm -f conf$$.dir/conf$$.file
11594else
11595  rm -f conf$$.dir
11596  mkdir conf$$.dir 2>/dev/null
11597fi
11598if (echo >conf$$.file) 2>/dev/null; then
11599  if ln -s conf$$.file conf$$ 2>/dev/null; then
11600    as_ln_s='ln -s'
11601    # ... but there are two gotchas:
11602    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11603    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11604    # In both cases, we have to default to `cp -p'.
11605    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11606      as_ln_s='cp -p'
11607  elif ln conf$$.file conf$$ 2>/dev/null; then
11608    as_ln_s=ln
11609  else
11610    as_ln_s='cp -p'
11611  fi
11612else
11613  as_ln_s='cp -p'
11614fi
11615rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11616rmdir conf$$.dir 2>/dev/null
11617
11618
11619# as_fn_mkdir_p
11620# -------------
11621# Create "$as_dir" as a directory, including parents if necessary.
11622as_fn_mkdir_p ()
11623{
11624
11625  case $as_dir in #(
11626  -*) as_dir=./$as_dir;;
11627  esac
11628  test -d "$as_dir" || eval $as_mkdir_p || {
11629    as_dirs=
11630    while :; do
11631      case $as_dir in #(
11632      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11633      *) as_qdir=$as_dir;;
11634      esac
11635      as_dirs="'$as_qdir' $as_dirs"
11636      as_dir=`$as_dirname -- "$as_dir" ||
11637$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11638	 X"$as_dir" : 'X\(//\)[^/]' \| \
11639	 X"$as_dir" : 'X\(//\)$' \| \
11640	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11641$as_echo X"$as_dir" |
11642    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11643	    s//\1/
11644	    q
11645	  }
11646	  /^X\(\/\/\)[^/].*/{
11647	    s//\1/
11648	    q
11649	  }
11650	  /^X\(\/\/\)$/{
11651	    s//\1/
11652	    q
11653	  }
11654	  /^X\(\/\).*/{
11655	    s//\1/
11656	    q
11657	  }
11658	  s/.*/./; q'`
11659      test -d "$as_dir" && break
11660    done
11661    test -z "$as_dirs" || eval "mkdir $as_dirs"
11662  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11663
11664
11665} # as_fn_mkdir_p
11666if mkdir -p . 2>/dev/null; then
11667  as_mkdir_p='mkdir -p "$as_dir"'
11668else
11669  test -d ./-p && rmdir ./-p
11670  as_mkdir_p=false
11671fi
11672
11673if test -x / >/dev/null 2>&1; then
11674  as_test_x='test -x'
11675else
11676  if ls -dL / >/dev/null 2>&1; then
11677    as_ls_L_option=L
11678  else
11679    as_ls_L_option=
11680  fi
11681  as_test_x='
11682    eval sh -c '\''
11683      if test -d "$1"; then
11684	test -d "$1/.";
11685      else
11686	case $1 in #(
11687	-*)set "./$1";;
11688	esac;
11689	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11690	???[sx]*):;;*)false;;esac;fi
11691    '\'' sh
11692  '
11693fi
11694as_executable_p=$as_test_x
11695
11696# Sed expression to map a string onto a valid CPP name.
11697as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11698
11699# Sed expression to map a string onto a valid variable name.
11700as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11701
11702
11703exec 6>&1
11704## ----------------------------------- ##
11705## Main body of $CONFIG_STATUS script. ##
11706## ----------------------------------- ##
11707_ASEOF
11708test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11709
11710cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11711# Save the log message, to keep $0 and so on meaningful, and to
11712# report actual input values of CONFIG_FILES etc. instead of their
11713# values after options handling.
11714ac_log="
11715This file was extended by xauth $as_me 1.0.7, which was
11716generated by GNU Autoconf 2.68.  Invocation command line was
11717
11718  CONFIG_FILES    = $CONFIG_FILES
11719  CONFIG_HEADERS  = $CONFIG_HEADERS
11720  CONFIG_LINKS    = $CONFIG_LINKS
11721  CONFIG_COMMANDS = $CONFIG_COMMANDS
11722  $ $0 $@
11723
11724on `(hostname || uname -n) 2>/dev/null | sed 1q`
11725"
11726
11727_ACEOF
11728
11729case $ac_config_files in *"
11730"*) set x $ac_config_files; shift; ac_config_files=$*;;
11731esac
11732
11733case $ac_config_headers in *"
11734"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11735esac
11736
11737
11738cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11739# Files that config.status was made for.
11740config_files="$ac_config_files"
11741config_headers="$ac_config_headers"
11742config_commands="$ac_config_commands"
11743
11744_ACEOF
11745
11746cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11747ac_cs_usage="\
11748\`$as_me' instantiates files and other configuration actions
11749from templates according to the current configuration.  Unless the files
11750and actions are specified as TAGs, all are instantiated by default.
11751
11752Usage: $0 [OPTION]... [TAG]...
11753
11754  -h, --help       print this help, then exit
11755  -V, --version    print version number and configuration settings, then exit
11756      --config     print configuration, then exit
11757  -q, --quiet, --silent
11758                   do not print progress messages
11759  -d, --debug      don't remove temporary files
11760      --recheck    update $as_me by reconfiguring in the same conditions
11761      --file=FILE[:TEMPLATE]
11762                   instantiate the configuration file FILE
11763      --header=FILE[:TEMPLATE]
11764                   instantiate the configuration header FILE
11765
11766Configuration files:
11767$config_files
11768
11769Configuration headers:
11770$config_headers
11771
11772Configuration commands:
11773$config_commands
11774
11775Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11776
11777_ACEOF
11778cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11779ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11780ac_cs_version="\\
11781xauth config.status 1.0.7
11782configured by $0, generated by GNU Autoconf 2.68,
11783  with options \\"\$ac_cs_config\\"
11784
11785Copyright (C) 2010 Free Software Foundation, Inc.
11786This config.status script is free software; the Free Software Foundation
11787gives unlimited permission to copy, distribute and modify it."
11788
11789ac_pwd='$ac_pwd'
11790srcdir='$srcdir'
11791INSTALL='$INSTALL'
11792MKDIR_P='$MKDIR_P'
11793AWK='$AWK'
11794test -n "\$AWK" || AWK=awk
11795_ACEOF
11796
11797cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11798# The default lists apply if the user does not specify any file.
11799ac_need_defaults=:
11800while test $# != 0
11801do
11802  case $1 in
11803  --*=?*)
11804    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11805    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11806    ac_shift=:
11807    ;;
11808  --*=)
11809    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11810    ac_optarg=
11811    ac_shift=:
11812    ;;
11813  *)
11814    ac_option=$1
11815    ac_optarg=$2
11816    ac_shift=shift
11817    ;;
11818  esac
11819
11820  case $ac_option in
11821  # Handling of the options.
11822  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11823    ac_cs_recheck=: ;;
11824  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11825    $as_echo "$ac_cs_version"; exit ;;
11826  --config | --confi | --conf | --con | --co | --c )
11827    $as_echo "$ac_cs_config"; exit ;;
11828  --debug | --debu | --deb | --de | --d | -d )
11829    debug=: ;;
11830  --file | --fil | --fi | --f )
11831    $ac_shift
11832    case $ac_optarg in
11833    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11834    '') as_fn_error $? "missing file argument" ;;
11835    esac
11836    as_fn_append CONFIG_FILES " '$ac_optarg'"
11837    ac_need_defaults=false;;
11838  --header | --heade | --head | --hea )
11839    $ac_shift
11840    case $ac_optarg in
11841    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11842    esac
11843    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11844    ac_need_defaults=false;;
11845  --he | --h)
11846    # Conflict between --help and --header
11847    as_fn_error $? "ambiguous option: \`$1'
11848Try \`$0 --help' for more information.";;
11849  --help | --hel | -h )
11850    $as_echo "$ac_cs_usage"; exit ;;
11851  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11852  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11853    ac_cs_silent=: ;;
11854
11855  # This is an error.
11856  -*) as_fn_error $? "unrecognized option: \`$1'
11857Try \`$0 --help' for more information." ;;
11858
11859  *) as_fn_append ac_config_targets " $1"
11860     ac_need_defaults=false ;;
11861
11862  esac
11863  shift
11864done
11865
11866ac_configure_extra_args=
11867
11868if $ac_cs_silent; then
11869  exec 6>/dev/null
11870  ac_configure_extra_args="$ac_configure_extra_args --silent"
11871fi
11872
11873_ACEOF
11874cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11875if \$ac_cs_recheck; then
11876  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11877  shift
11878  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11879  CONFIG_SHELL='$SHELL'
11880  export CONFIG_SHELL
11881  exec "\$@"
11882fi
11883
11884_ACEOF
11885cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11886exec 5>>config.log
11887{
11888  echo
11889  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11890## Running $as_me. ##
11891_ASBOX
11892  $as_echo "$ac_log"
11893} >&5
11894
11895_ACEOF
11896cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11897#
11898# INIT-COMMANDS
11899#
11900AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11901
11902_ACEOF
11903
11904cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11905
11906# Handling of arguments.
11907for ac_config_target in $ac_config_targets
11908do
11909  case $ac_config_target in
11910    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11911    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11912    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11913    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11914
11915  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11916  esac
11917done
11918
11919
11920# If the user did not use the arguments to specify the items to instantiate,
11921# then the envvar interface is used.  Set only those that are not.
11922# We use the long form for the default assignment because of an extremely
11923# bizarre bug on SunOS 4.1.3.
11924if $ac_need_defaults; then
11925  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11926  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11927  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11928fi
11929
11930# Have a temporary directory for convenience.  Make it in the build tree
11931# simply because there is no reason against having it here, and in addition,
11932# creating and moving files from /tmp can sometimes cause problems.
11933# Hook for its removal unless debugging.
11934# Note that there is a small window in which the directory will not be cleaned:
11935# after its creation but before its name has been assigned to `$tmp'.
11936$debug ||
11937{
11938  tmp= ac_tmp=
11939  trap 'exit_status=$?
11940  : "${ac_tmp:=$tmp}"
11941  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11942' 0
11943  trap 'as_fn_exit 1' 1 2 13 15
11944}
11945# Create a (secure) tmp directory for tmp files.
11946
11947{
11948  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11949  test -d "$tmp"
11950}  ||
11951{
11952  tmp=./conf$$-$RANDOM
11953  (umask 077 && mkdir "$tmp")
11954} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11955ac_tmp=$tmp
11956
11957# Set up the scripts for CONFIG_FILES section.
11958# No need to generate them if there are no CONFIG_FILES.
11959# This happens for instance with `./config.status config.h'.
11960if test -n "$CONFIG_FILES"; then
11961
11962
11963ac_cr=`echo X | tr X '\015'`
11964# On cygwin, bash can eat \r inside `` if the user requested igncr.
11965# But we know of no other shell where ac_cr would be empty at this
11966# point, so we can use a bashism as a fallback.
11967if test "x$ac_cr" = x; then
11968  eval ac_cr=\$\'\\r\'
11969fi
11970ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11971if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11972  ac_cs_awk_cr='\\r'
11973else
11974  ac_cs_awk_cr=$ac_cr
11975fi
11976
11977echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11978_ACEOF
11979
11980
11981{
11982  echo "cat >conf$$subs.awk <<_ACEOF" &&
11983  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11984  echo "_ACEOF"
11985} >conf$$subs.sh ||
11986  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11987ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11988ac_delim='%!_!# '
11989for ac_last_try in false false false false false :; do
11990  . ./conf$$subs.sh ||
11991    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11992
11993  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11994  if test $ac_delim_n = $ac_delim_num; then
11995    break
11996  elif $ac_last_try; then
11997    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11998  else
11999    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12000  fi
12001done
12002rm -f conf$$subs.sh
12003
12004cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12005cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12006_ACEOF
12007sed -n '
12008h
12009s/^/S["/; s/!.*/"]=/
12010p
12011g
12012s/^[^!]*!//
12013:repl
12014t repl
12015s/'"$ac_delim"'$//
12016t delim
12017:nl
12018h
12019s/\(.\{148\}\)..*/\1/
12020t more1
12021s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12022p
12023n
12024b repl
12025:more1
12026s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12027p
12028g
12029s/.\{148\}//
12030t nl
12031:delim
12032h
12033s/\(.\{148\}\)..*/\1/
12034t more2
12035s/["\\]/\\&/g; s/^/"/; s/$/"/
12036p
12037b
12038:more2
12039s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12040p
12041g
12042s/.\{148\}//
12043t delim
12044' <conf$$subs.awk | sed '
12045/^[^""]/{
12046  N
12047  s/\n//
12048}
12049' >>$CONFIG_STATUS || ac_write_fail=1
12050rm -f conf$$subs.awk
12051cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12052_ACAWK
12053cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12054  for (key in S) S_is_set[key] = 1
12055  FS = ""
12056
12057}
12058{
12059  line = $ 0
12060  nfields = split(line, field, "@")
12061  substed = 0
12062  len = length(field[1])
12063  for (i = 2; i < nfields; i++) {
12064    key = field[i]
12065    keylen = length(key)
12066    if (S_is_set[key]) {
12067      value = S[key]
12068      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12069      len += length(value) + length(field[++i])
12070      substed = 1
12071    } else
12072      len += 1 + keylen
12073  }
12074
12075  print line
12076}
12077
12078_ACAWK
12079_ACEOF
12080cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12081if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12082  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12083else
12084  cat
12085fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12086  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12087_ACEOF
12088
12089# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12090# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12091# trailing colons and then remove the whole line if VPATH becomes empty
12092# (actually we leave an empty line to preserve line numbers).
12093if test "x$srcdir" = x.; then
12094  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12095h
12096s///
12097s/^/:/
12098s/[	 ]*$/:/
12099s/:\$(srcdir):/:/g
12100s/:\${srcdir}:/:/g
12101s/:@srcdir@:/:/g
12102s/^:*//
12103s/:*$//
12104x
12105s/\(=[	 ]*\).*/\1/
12106G
12107s/\n//
12108s/^[^=]*=[	 ]*$//
12109}'
12110fi
12111
12112cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12113fi # test -n "$CONFIG_FILES"
12114
12115# Set up the scripts for CONFIG_HEADERS section.
12116# No need to generate them if there are no CONFIG_HEADERS.
12117# This happens for instance with `./config.status Makefile'.
12118if test -n "$CONFIG_HEADERS"; then
12119cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12120BEGIN {
12121_ACEOF
12122
12123# Transform confdefs.h into an awk script `defines.awk', embedded as
12124# here-document in config.status, that substitutes the proper values into
12125# config.h.in to produce config.h.
12126
12127# Create a delimiter string that does not exist in confdefs.h, to ease
12128# handling of long lines.
12129ac_delim='%!_!# '
12130for ac_last_try in false false :; do
12131  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12132  if test -z "$ac_tt"; then
12133    break
12134  elif $ac_last_try; then
12135    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12136  else
12137    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12138  fi
12139done
12140
12141# For the awk script, D is an array of macro values keyed by name,
12142# likewise P contains macro parameters if any.  Preserve backslash
12143# newline sequences.
12144
12145ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12146sed -n '
12147s/.\{148\}/&'"$ac_delim"'/g
12148t rset
12149:rset
12150s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12151t def
12152d
12153:def
12154s/\\$//
12155t bsnl
12156s/["\\]/\\&/g
12157s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12158D["\1"]=" \3"/p
12159s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12160d
12161:bsnl
12162s/["\\]/\\&/g
12163s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12164D["\1"]=" \3\\\\\\n"\\/p
12165t cont
12166s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12167t cont
12168d
12169:cont
12170n
12171s/.\{148\}/&'"$ac_delim"'/g
12172t clear
12173:clear
12174s/\\$//
12175t bsnlc
12176s/["\\]/\\&/g; s/^/"/; s/$/"/p
12177d
12178:bsnlc
12179s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12180b cont
12181' <confdefs.h | sed '
12182s/'"$ac_delim"'/"\\\
12183"/g' >>$CONFIG_STATUS || ac_write_fail=1
12184
12185cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12186  for (key in D) D_is_set[key] = 1
12187  FS = ""
12188}
12189/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12190  line = \$ 0
12191  split(line, arg, " ")
12192  if (arg[1] == "#") {
12193    defundef = arg[2]
12194    mac1 = arg[3]
12195  } else {
12196    defundef = substr(arg[1], 2)
12197    mac1 = arg[2]
12198  }
12199  split(mac1, mac2, "(") #)
12200  macro = mac2[1]
12201  prefix = substr(line, 1, index(line, defundef) - 1)
12202  if (D_is_set[macro]) {
12203    # Preserve the white space surrounding the "#".
12204    print prefix "define", macro P[macro] D[macro]
12205    next
12206  } else {
12207    # Replace #undef with comments.  This is necessary, for example,
12208    # in the case of _POSIX_SOURCE, which is predefined and required
12209    # on some systems where configure will not decide to define it.
12210    if (defundef == "undef") {
12211      print "/*", prefix defundef, macro, "*/"
12212      next
12213    }
12214  }
12215}
12216{ print }
12217_ACAWK
12218_ACEOF
12219cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12220  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12221fi # test -n "$CONFIG_HEADERS"
12222
12223
12224eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12225shift
12226for ac_tag
12227do
12228  case $ac_tag in
12229  :[FHLC]) ac_mode=$ac_tag; continue;;
12230  esac
12231  case $ac_mode$ac_tag in
12232  :[FHL]*:*);;
12233  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12234  :[FH]-) ac_tag=-:-;;
12235  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12236  esac
12237  ac_save_IFS=$IFS
12238  IFS=:
12239  set x $ac_tag
12240  IFS=$ac_save_IFS
12241  shift
12242  ac_file=$1
12243  shift
12244
12245  case $ac_mode in
12246  :L) ac_source=$1;;
12247  :[FH])
12248    ac_file_inputs=
12249    for ac_f
12250    do
12251      case $ac_f in
12252      -) ac_f="$ac_tmp/stdin";;
12253      *) # Look for the file first in the build tree, then in the source tree
12254	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12255	 # because $ac_f cannot contain `:'.
12256	 test -f "$ac_f" ||
12257	   case $ac_f in
12258	   [\\/$]*) false;;
12259	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12260	   esac ||
12261	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12262      esac
12263      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12264      as_fn_append ac_file_inputs " '$ac_f'"
12265    done
12266
12267    # Let's still pretend it is `configure' which instantiates (i.e., don't
12268    # use $as_me), people would be surprised to read:
12269    #    /* config.h.  Generated by config.status.  */
12270    configure_input='Generated from '`
12271	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12272	`' by configure.'
12273    if test x"$ac_file" != x-; then
12274      configure_input="$ac_file.  $configure_input"
12275      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12276$as_echo "$as_me: creating $ac_file" >&6;}
12277    fi
12278    # Neutralize special characters interpreted by sed in replacement strings.
12279    case $configure_input in #(
12280    *\&* | *\|* | *\\* )
12281       ac_sed_conf_input=`$as_echo "$configure_input" |
12282       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12283    *) ac_sed_conf_input=$configure_input;;
12284    esac
12285
12286    case $ac_tag in
12287    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12288      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12289    esac
12290    ;;
12291  esac
12292
12293  ac_dir=`$as_dirname -- "$ac_file" ||
12294$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12295	 X"$ac_file" : 'X\(//\)[^/]' \| \
12296	 X"$ac_file" : 'X\(//\)$' \| \
12297	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12298$as_echo X"$ac_file" |
12299    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12300	    s//\1/
12301	    q
12302	  }
12303	  /^X\(\/\/\)[^/].*/{
12304	    s//\1/
12305	    q
12306	  }
12307	  /^X\(\/\/\)$/{
12308	    s//\1/
12309	    q
12310	  }
12311	  /^X\(\/\).*/{
12312	    s//\1/
12313	    q
12314	  }
12315	  s/.*/./; q'`
12316  as_dir="$ac_dir"; as_fn_mkdir_p
12317  ac_builddir=.
12318
12319case "$ac_dir" in
12320.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12321*)
12322  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12323  # A ".." for each directory in $ac_dir_suffix.
12324  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12325  case $ac_top_builddir_sub in
12326  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12327  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12328  esac ;;
12329esac
12330ac_abs_top_builddir=$ac_pwd
12331ac_abs_builddir=$ac_pwd$ac_dir_suffix
12332# for backward compatibility:
12333ac_top_builddir=$ac_top_build_prefix
12334
12335case $srcdir in
12336  .)  # We are building in place.
12337    ac_srcdir=.
12338    ac_top_srcdir=$ac_top_builddir_sub
12339    ac_abs_top_srcdir=$ac_pwd ;;
12340  [\\/]* | ?:[\\/]* )  # Absolute name.
12341    ac_srcdir=$srcdir$ac_dir_suffix;
12342    ac_top_srcdir=$srcdir
12343    ac_abs_top_srcdir=$srcdir ;;
12344  *) # Relative name.
12345    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12346    ac_top_srcdir=$ac_top_build_prefix$srcdir
12347    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12348esac
12349ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12350
12351
12352  case $ac_mode in
12353  :F)
12354  #
12355  # CONFIG_FILE
12356  #
12357
12358  case $INSTALL in
12359  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12360  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12361  esac
12362  ac_MKDIR_P=$MKDIR_P
12363  case $MKDIR_P in
12364  [\\/$]* | ?:[\\/]* ) ;;
12365  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12366  esac
12367_ACEOF
12368
12369cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12370# If the template does not know about datarootdir, expand it.
12371# FIXME: This hack should be removed a few years after 2.60.
12372ac_datarootdir_hack=; ac_datarootdir_seen=
12373ac_sed_dataroot='
12374/datarootdir/ {
12375  p
12376  q
12377}
12378/@datadir@/p
12379/@docdir@/p
12380/@infodir@/p
12381/@localedir@/p
12382/@mandir@/p'
12383case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12384*datarootdir*) ac_datarootdir_seen=yes;;
12385*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12386  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12387$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12388_ACEOF
12389cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12390  ac_datarootdir_hack='
12391  s&@datadir@&$datadir&g
12392  s&@docdir@&$docdir&g
12393  s&@infodir@&$infodir&g
12394  s&@localedir@&$localedir&g
12395  s&@mandir@&$mandir&g
12396  s&\\\${datarootdir}&$datarootdir&g' ;;
12397esac
12398_ACEOF
12399
12400# Neutralize VPATH when `$srcdir' = `.'.
12401# Shell code in configure.ac might set extrasub.
12402# FIXME: do we really want to maintain this feature?
12403cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12404ac_sed_extra="$ac_vpsub
12405$extrasub
12406_ACEOF
12407cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12408:t
12409/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12410s|@configure_input@|$ac_sed_conf_input|;t t
12411s&@top_builddir@&$ac_top_builddir_sub&;t t
12412s&@top_build_prefix@&$ac_top_build_prefix&;t t
12413s&@srcdir@&$ac_srcdir&;t t
12414s&@abs_srcdir@&$ac_abs_srcdir&;t t
12415s&@top_srcdir@&$ac_top_srcdir&;t t
12416s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12417s&@builddir@&$ac_builddir&;t t
12418s&@abs_builddir@&$ac_abs_builddir&;t t
12419s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12420s&@INSTALL@&$ac_INSTALL&;t t
12421s&@MKDIR_P@&$ac_MKDIR_P&;t t
12422$ac_datarootdir_hack
12423"
12424eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12425  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12426
12427test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12428  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12429  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12430      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12431  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12432which seems to be undefined.  Please make sure it is defined" >&5
12433$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12434which seems to be undefined.  Please make sure it is defined" >&2;}
12435
12436  rm -f "$ac_tmp/stdin"
12437  case $ac_file in
12438  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12439  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12440  esac \
12441  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12442 ;;
12443  :H)
12444  #
12445  # CONFIG_HEADER
12446  #
12447  if test x"$ac_file" != x-; then
12448    {
12449      $as_echo "/* $configure_input  */" \
12450      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12451    } >"$ac_tmp/config.h" \
12452      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12453    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12454      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12455$as_echo "$as_me: $ac_file is unchanged" >&6;}
12456    else
12457      rm -f "$ac_file"
12458      mv "$ac_tmp/config.h" "$ac_file" \
12459	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12460    fi
12461  else
12462    $as_echo "/* $configure_input  */" \
12463      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12464      || as_fn_error $? "could not create -" "$LINENO" 5
12465  fi
12466# Compute "$ac_file"'s index in $config_headers.
12467_am_arg="$ac_file"
12468_am_stamp_count=1
12469for _am_header in $config_headers :; do
12470  case $_am_header in
12471    $_am_arg | $_am_arg:* )
12472      break ;;
12473    * )
12474      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12475  esac
12476done
12477echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12478$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12479	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12480	 X"$_am_arg" : 'X\(//\)$' \| \
12481	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12482$as_echo X"$_am_arg" |
12483    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12484	    s//\1/
12485	    q
12486	  }
12487	  /^X\(\/\/\)[^/].*/{
12488	    s//\1/
12489	    q
12490	  }
12491	  /^X\(\/\/\)$/{
12492	    s//\1/
12493	    q
12494	  }
12495	  /^X\(\/\).*/{
12496	    s//\1/
12497	    q
12498	  }
12499	  s/.*/./; q'`/stamp-h$_am_stamp_count
12500 ;;
12501
12502  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12503$as_echo "$as_me: executing $ac_file commands" >&6;}
12504 ;;
12505  esac
12506
12507
12508  case $ac_file$ac_mode in
12509    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12510  # Autoconf 2.62 quotes --file arguments for eval, but not when files
12511  # are listed without --file.  Let's play safe and only enable the eval
12512  # if we detect the quoting.
12513  case $CONFIG_FILES in
12514  *\'*) eval set x "$CONFIG_FILES" ;;
12515  *)   set x $CONFIG_FILES ;;
12516  esac
12517  shift
12518  for mf
12519  do
12520    # Strip MF so we end up with the name of the file.
12521    mf=`echo "$mf" | sed -e 's/:.*$//'`
12522    # Check whether this is an Automake generated Makefile or not.
12523    # We used to match only the files named `Makefile.in', but
12524    # some people rename them; so instead we look at the file content.
12525    # Grep'ing the first line is not enough: some people post-process
12526    # each Makefile.in and add a new line on top of each file to say so.
12527    # Grep'ing the whole file is not good either: AIX grep has a line
12528    # limit of 2048, but all sed's we know have understand at least 4000.
12529    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12530      dirpart=`$as_dirname -- "$mf" ||
12531$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12532	 X"$mf" : 'X\(//\)[^/]' \| \
12533	 X"$mf" : 'X\(//\)$' \| \
12534	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12535$as_echo X"$mf" |
12536    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12537	    s//\1/
12538	    q
12539	  }
12540	  /^X\(\/\/\)[^/].*/{
12541	    s//\1/
12542	    q
12543	  }
12544	  /^X\(\/\/\)$/{
12545	    s//\1/
12546	    q
12547	  }
12548	  /^X\(\/\).*/{
12549	    s//\1/
12550	    q
12551	  }
12552	  s/.*/./; q'`
12553    else
12554      continue
12555    fi
12556    # Extract the definition of DEPDIR, am__include, and am__quote
12557    # from the Makefile without running `make'.
12558    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12559    test -z "$DEPDIR" && continue
12560    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12561    test -z "am__include" && continue
12562    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12563    # When using ansi2knr, U may be empty or an underscore; expand it
12564    U=`sed -n 's/^U = //p' < "$mf"`
12565    # Find all dependency output files, they are included files with
12566    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12567    # simplest approach to changing $(DEPDIR) to its actual value in the
12568    # expansion.
12569    for file in `sed -n "
12570      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12571	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12572      # Make sure the directory exists.
12573      test -f "$dirpart/$file" && continue
12574      fdir=`$as_dirname -- "$file" ||
12575$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12576	 X"$file" : 'X\(//\)[^/]' \| \
12577	 X"$file" : 'X\(//\)$' \| \
12578	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12579$as_echo X"$file" |
12580    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12581	    s//\1/
12582	    q
12583	  }
12584	  /^X\(\/\/\)[^/].*/{
12585	    s//\1/
12586	    q
12587	  }
12588	  /^X\(\/\/\)$/{
12589	    s//\1/
12590	    q
12591	  }
12592	  /^X\(\/\).*/{
12593	    s//\1/
12594	    q
12595	  }
12596	  s/.*/./; q'`
12597      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12598      # echo "creating $dirpart/$file"
12599      echo '# dummy' > "$dirpart/$file"
12600    done
12601  done
12602}
12603 ;;
12604
12605  esac
12606done # for ac_tag
12607
12608
12609as_fn_exit 0
12610_ACEOF
12611ac_clean_files=$ac_clean_files_save
12612
12613test $ac_write_fail = 0 ||
12614  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12615
12616
12617# configure is writing to config.log, and then calls config.status.
12618# config.status does its own redirection, appending to config.log.
12619# Unfortunately, on DOS this fails, as config.log is still kept open
12620# by configure, so config.status won't be able to write to it; its
12621# output is simply discarded.  So we exec the FD to /dev/null,
12622# effectively closing config.log, so it can be properly (re)opened and
12623# appended to by config.status.  When coming back to configure, we
12624# need to make the FD available again.
12625if test "$no_create" != yes; then
12626  ac_cs_success=:
12627  ac_config_status_args=
12628  test "$silent" = yes &&
12629    ac_config_status_args="$ac_config_status_args --quiet"
12630  exec 5>/dev/null
12631  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12632  exec 5>>config.log
12633  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12634  # would make configure fail if this is the last instruction.
12635  $ac_cs_success || as_fn_exit 1
12636fi
12637if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12638  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12639$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12640fi
12641
12642