configure revision 81440437
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for xhost 1.0.6.
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='xhost'
563PACKAGE_TARNAME='xhost'
564PACKAGE_VERSION='1.0.6'
565PACKAGE_STRING='xhost 1.0.6'
566PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567PACKAGE_URL=''
568
569ac_unique_file="Makefile.am"
570# Factoring default headers for most tests.
571ac_includes_default="\
572#include <stdio.h>
573#ifdef HAVE_SYS_TYPES_H
574# include <sys/types.h>
575#endif
576#ifdef HAVE_SYS_STAT_H
577# include <sys/stat.h>
578#endif
579#ifdef STDC_HEADERS
580# include <stdlib.h>
581# include <stddef.h>
582#else
583# ifdef HAVE_STDLIB_H
584#  include <stdlib.h>
585# endif
586#endif
587#ifdef HAVE_STRING_H
588# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589#  include <memory.h>
590# endif
591# include <string.h>
592#endif
593#ifdef HAVE_STRINGS_H
594# include <strings.h>
595#endif
596#ifdef HAVE_INTTYPES_H
597# include <inttypes.h>
598#endif
599#ifdef HAVE_STDINT_H
600# include <stdint.h>
601#endif
602#ifdef HAVE_UNISTD_H
603# include <unistd.h>
604#endif"
605
606ac_subst_vars='am__EXEEXT_FALSE
607am__EXEEXT_TRUE
608LTLIBOBJS
609LIBOBJS
610XAU_LIBS
611XAU_CFLAGS
612XHOST_LIBS
613XHOST_CFLAGS
614MAN_SUBSTS
615XORG_MAN_PAGE
616ADMIN_MAN_DIR
617DRIVER_MAN_DIR
618MISC_MAN_DIR
619FILE_MAN_DIR
620LIB_MAN_DIR
621APP_MAN_DIR
622ADMIN_MAN_SUFFIX
623DRIVER_MAN_SUFFIX
624MISC_MAN_SUFFIX
625FILE_MAN_SUFFIX
626LIB_MAN_SUFFIX
627APP_MAN_SUFFIX
628SED
629host_os
630host_vendor
631host_cpu
632host
633build_os
634build_vendor
635build_cpu
636build
637INSTALL_CMD
638PKG_CONFIG
639CHANGELOG_CMD
640STRICT_CFLAGS
641CWARNFLAGS
642BASE_CFLAGS
643EGREP
644GREP
645CPP
646am__fastdepCC_FALSE
647am__fastdepCC_TRUE
648CCDEPMODE
649am__nodep
650AMDEPBACKSLASH
651AMDEP_FALSE
652AMDEP_TRUE
653am__quote
654am__include
655DEPDIR
656OBJEXT
657EXEEXT
658ac_ct_CC
659CPPFLAGS
660LDFLAGS
661CFLAGS
662CC
663MAINT
664MAINTAINER_MODE_FALSE
665MAINTAINER_MODE_TRUE
666AM_BACKSLASH
667AM_DEFAULT_VERBOSITY
668AM_DEFAULT_V
669AM_V
670am__untar
671am__tar
672AMTAR
673am__leading_dot
674SET_MAKE
675AWK
676mkdir_p
677MKDIR_P
678INSTALL_STRIP_PROGRAM
679STRIP
680install_sh
681MAKEINFO
682AUTOHEADER
683AUTOMAKE
684AUTOCONF
685ACLOCAL
686VERSION
687PACKAGE
688CYGPATH_W
689am__isrc
690INSTALL_DATA
691INSTALL_SCRIPT
692INSTALL_PROGRAM
693target_alias
694host_alias
695build_alias
696LIBS
697ECHO_T
698ECHO_N
699ECHO_C
700DEFS
701mandir
702localedir
703libdir
704psdir
705pdfdir
706dvidir
707htmldir
708infodir
709docdir
710oldincludedir
711includedir
712localstatedir
713sharedstatedir
714sysconfdir
715datadir
716datarootdir
717libexecdir
718sbindir
719bindir
720program_transform_name
721prefix
722exec_prefix
723PACKAGE_URL
724PACKAGE_BUGREPORT
725PACKAGE_STRING
726PACKAGE_VERSION
727PACKAGE_TARNAME
728PACKAGE_NAME
729PATH_SEPARATOR
730SHELL'
731ac_subst_files=''
732ac_user_opts='
733enable_option_checking
734enable_silent_rules
735enable_maintainer_mode
736enable_dependency_tracking
737enable_selective_werror
738enable_strict_compilation
739enable_unix_transport
740enable_tcp_transport
741enable_ipv6
742enable_local_transport
743enable_secure_rpc
744'
745      ac_precious_vars='build_alias
746host_alias
747target_alias
748CC
749CFLAGS
750LDFLAGS
751LIBS
752CPPFLAGS
753CPP
754PKG_CONFIG
755XHOST_CFLAGS
756XHOST_LIBS
757XAU_CFLAGS
758XAU_LIBS'
759
760
761# Initialize some variables set by options.
762ac_init_help=
763ac_init_version=false
764ac_unrecognized_opts=
765ac_unrecognized_sep=
766# The variables have the same names as the options, with
767# dashes changed to underlines.
768cache_file=/dev/null
769exec_prefix=NONE
770no_create=
771no_recursion=
772prefix=NONE
773program_prefix=NONE
774program_suffix=NONE
775program_transform_name=s,x,x,
776silent=
777site=
778srcdir=
779verbose=
780x_includes=NONE
781x_libraries=NONE
782
783# Installation directory options.
784# These are left unexpanded so users can "make install exec_prefix=/foo"
785# and all the variables that are supposed to be based on exec_prefix
786# by default will actually change.
787# Use braces instead of parens because sh, perl, etc. also accept them.
788# (The list follows the same order as the GNU Coding Standards.)
789bindir='${exec_prefix}/bin'
790sbindir='${exec_prefix}/sbin'
791libexecdir='${exec_prefix}/libexec'
792datarootdir='${prefix}/share'
793datadir='${datarootdir}'
794sysconfdir='${prefix}/etc'
795sharedstatedir='${prefix}/com'
796localstatedir='${prefix}/var'
797includedir='${prefix}/include'
798oldincludedir='/usr/include'
799docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
800infodir='${datarootdir}/info'
801htmldir='${docdir}'
802dvidir='${docdir}'
803pdfdir='${docdir}'
804psdir='${docdir}'
805libdir='${exec_prefix}/lib'
806localedir='${datarootdir}/locale'
807mandir='${datarootdir}/man'
808
809ac_prev=
810ac_dashdash=
811for ac_option
812do
813  # If the previous option needs an argument, assign it.
814  if test -n "$ac_prev"; then
815    eval $ac_prev=\$ac_option
816    ac_prev=
817    continue
818  fi
819
820  case $ac_option in
821  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
822  *=)   ac_optarg= ;;
823  *)    ac_optarg=yes ;;
824  esac
825
826  # Accept the important Cygnus configure options, so we can diagnose typos.
827
828  case $ac_dashdash$ac_option in
829  --)
830    ac_dashdash=yes ;;
831
832  -bindir | --bindir | --bindi | --bind | --bin | --bi)
833    ac_prev=bindir ;;
834  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
835    bindir=$ac_optarg ;;
836
837  -build | --build | --buil | --bui | --bu)
838    ac_prev=build_alias ;;
839  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
840    build_alias=$ac_optarg ;;
841
842  -cache-file | --cache-file | --cache-fil | --cache-fi \
843  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
844    ac_prev=cache_file ;;
845  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
846  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
847    cache_file=$ac_optarg ;;
848
849  --config-cache | -C)
850    cache_file=config.cache ;;
851
852  -datadir | --datadir | --datadi | --datad)
853    ac_prev=datadir ;;
854  -datadir=* | --datadir=* | --datadi=* | --datad=*)
855    datadir=$ac_optarg ;;
856
857  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
858  | --dataroo | --dataro | --datar)
859    ac_prev=datarootdir ;;
860  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
861  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
862    datarootdir=$ac_optarg ;;
863
864  -disable-* | --disable-*)
865    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
866    # Reject names that are not valid shell variable names.
867    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
868      as_fn_error $? "invalid feature name: $ac_useropt"
869    ac_useropt_orig=$ac_useropt
870    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
871    case $ac_user_opts in
872      *"
873"enable_$ac_useropt"
874"*) ;;
875      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
876	 ac_unrecognized_sep=', ';;
877    esac
878    eval enable_$ac_useropt=no ;;
879
880  -docdir | --docdir | --docdi | --doc | --do)
881    ac_prev=docdir ;;
882  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
883    docdir=$ac_optarg ;;
884
885  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
886    ac_prev=dvidir ;;
887  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
888    dvidir=$ac_optarg ;;
889
890  -enable-* | --enable-*)
891    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
892    # Reject names that are not valid shell variable names.
893    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
894      as_fn_error $? "invalid feature name: $ac_useropt"
895    ac_useropt_orig=$ac_useropt
896    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
897    case $ac_user_opts in
898      *"
899"enable_$ac_useropt"
900"*) ;;
901      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
902	 ac_unrecognized_sep=', ';;
903    esac
904    eval enable_$ac_useropt=\$ac_optarg ;;
905
906  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
907  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
908  | --exec | --exe | --ex)
909    ac_prev=exec_prefix ;;
910  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
911  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
912  | --exec=* | --exe=* | --ex=*)
913    exec_prefix=$ac_optarg ;;
914
915  -gas | --gas | --ga | --g)
916    # Obsolete; use --with-gas.
917    with_gas=yes ;;
918
919  -help | --help | --hel | --he | -h)
920    ac_init_help=long ;;
921  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
922    ac_init_help=recursive ;;
923  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
924    ac_init_help=short ;;
925
926  -host | --host | --hos | --ho)
927    ac_prev=host_alias ;;
928  -host=* | --host=* | --hos=* | --ho=*)
929    host_alias=$ac_optarg ;;
930
931  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
932    ac_prev=htmldir ;;
933  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
934  | --ht=*)
935    htmldir=$ac_optarg ;;
936
937  -includedir | --includedir | --includedi | --included | --include \
938  | --includ | --inclu | --incl | --inc)
939    ac_prev=includedir ;;
940  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
941  | --includ=* | --inclu=* | --incl=* | --inc=*)
942    includedir=$ac_optarg ;;
943
944  -infodir | --infodir | --infodi | --infod | --info | --inf)
945    ac_prev=infodir ;;
946  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
947    infodir=$ac_optarg ;;
948
949  -libdir | --libdir | --libdi | --libd)
950    ac_prev=libdir ;;
951  -libdir=* | --libdir=* | --libdi=* | --libd=*)
952    libdir=$ac_optarg ;;
953
954  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
955  | --libexe | --libex | --libe)
956    ac_prev=libexecdir ;;
957  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
958  | --libexe=* | --libex=* | --libe=*)
959    libexecdir=$ac_optarg ;;
960
961  -localedir | --localedir | --localedi | --localed | --locale)
962    ac_prev=localedir ;;
963  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
964    localedir=$ac_optarg ;;
965
966  -localstatedir | --localstatedir | --localstatedi | --localstated \
967  | --localstate | --localstat | --localsta | --localst | --locals)
968    ac_prev=localstatedir ;;
969  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
970  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
971    localstatedir=$ac_optarg ;;
972
973  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
974    ac_prev=mandir ;;
975  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
976    mandir=$ac_optarg ;;
977
978  -nfp | --nfp | --nf)
979    # Obsolete; use --without-fp.
980    with_fp=no ;;
981
982  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
983  | --no-cr | --no-c | -n)
984    no_create=yes ;;
985
986  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
987  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
988    no_recursion=yes ;;
989
990  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
991  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
992  | --oldin | --oldi | --old | --ol | --o)
993    ac_prev=oldincludedir ;;
994  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
995  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
996  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
997    oldincludedir=$ac_optarg ;;
998
999  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1000    ac_prev=prefix ;;
1001  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1002    prefix=$ac_optarg ;;
1003
1004  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1005  | --program-pre | --program-pr | --program-p)
1006    ac_prev=program_prefix ;;
1007  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1008  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1009    program_prefix=$ac_optarg ;;
1010
1011  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1012  | --program-suf | --program-su | --program-s)
1013    ac_prev=program_suffix ;;
1014  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1015  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1016    program_suffix=$ac_optarg ;;
1017
1018  -program-transform-name | --program-transform-name \
1019  | --program-transform-nam | --program-transform-na \
1020  | --program-transform-n | --program-transform- \
1021  | --program-transform | --program-transfor \
1022  | --program-transfo | --program-transf \
1023  | --program-trans | --program-tran \
1024  | --progr-tra | --program-tr | --program-t)
1025    ac_prev=program_transform_name ;;
1026  -program-transform-name=* | --program-transform-name=* \
1027  | --program-transform-nam=* | --program-transform-na=* \
1028  | --program-transform-n=* | --program-transform-=* \
1029  | --program-transform=* | --program-transfor=* \
1030  | --program-transfo=* | --program-transf=* \
1031  | --program-trans=* | --program-tran=* \
1032  | --progr-tra=* | --program-tr=* | --program-t=*)
1033    program_transform_name=$ac_optarg ;;
1034
1035  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1036    ac_prev=pdfdir ;;
1037  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1038    pdfdir=$ac_optarg ;;
1039
1040  -psdir | --psdir | --psdi | --psd | --ps)
1041    ac_prev=psdir ;;
1042  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1043    psdir=$ac_optarg ;;
1044
1045  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1046  | -silent | --silent | --silen | --sile | --sil)
1047    silent=yes ;;
1048
1049  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1050    ac_prev=sbindir ;;
1051  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1052  | --sbi=* | --sb=*)
1053    sbindir=$ac_optarg ;;
1054
1055  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1056  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1057  | --sharedst | --shareds | --shared | --share | --shar \
1058  | --sha | --sh)
1059    ac_prev=sharedstatedir ;;
1060  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1061  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1062  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1063  | --sha=* | --sh=*)
1064    sharedstatedir=$ac_optarg ;;
1065
1066  -site | --site | --sit)
1067    ac_prev=site ;;
1068  -site=* | --site=* | --sit=*)
1069    site=$ac_optarg ;;
1070
1071  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1072    ac_prev=srcdir ;;
1073  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1074    srcdir=$ac_optarg ;;
1075
1076  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1077  | --syscon | --sysco | --sysc | --sys | --sy)
1078    ac_prev=sysconfdir ;;
1079  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1080  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1081    sysconfdir=$ac_optarg ;;
1082
1083  -target | --target | --targe | --targ | --tar | --ta | --t)
1084    ac_prev=target_alias ;;
1085  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1086    target_alias=$ac_optarg ;;
1087
1088  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1089    verbose=yes ;;
1090
1091  -version | --version | --versio | --versi | --vers | -V)
1092    ac_init_version=: ;;
1093
1094  -with-* | --with-*)
1095    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1096    # Reject names that are not valid shell variable names.
1097    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098      as_fn_error $? "invalid package name: $ac_useropt"
1099    ac_useropt_orig=$ac_useropt
1100    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101    case $ac_user_opts in
1102      *"
1103"with_$ac_useropt"
1104"*) ;;
1105      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1106	 ac_unrecognized_sep=', ';;
1107    esac
1108    eval with_$ac_useropt=\$ac_optarg ;;
1109
1110  -without-* | --without-*)
1111    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1112    # Reject names that are not valid shell variable names.
1113    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114      as_fn_error $? "invalid package name: $ac_useropt"
1115    ac_useropt_orig=$ac_useropt
1116    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117    case $ac_user_opts in
1118      *"
1119"with_$ac_useropt"
1120"*) ;;
1121      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1122	 ac_unrecognized_sep=', ';;
1123    esac
1124    eval with_$ac_useropt=no ;;
1125
1126  --x)
1127    # Obsolete; use --with-x.
1128    with_x=yes ;;
1129
1130  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1131  | --x-incl | --x-inc | --x-in | --x-i)
1132    ac_prev=x_includes ;;
1133  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1134  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1135    x_includes=$ac_optarg ;;
1136
1137  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1138  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1139    ac_prev=x_libraries ;;
1140  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1141  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1142    x_libraries=$ac_optarg ;;
1143
1144  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1145Try \`$0 --help' for more information"
1146    ;;
1147
1148  *=*)
1149    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1150    # Reject names that are not valid shell variable names.
1151    case $ac_envvar in #(
1152      '' | [0-9]* | *[!_$as_cr_alnum]* )
1153      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1154    esac
1155    eval $ac_envvar=\$ac_optarg
1156    export $ac_envvar ;;
1157
1158  *)
1159    # FIXME: should be removed in autoconf 3.0.
1160    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1161    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1162      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1163    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1164    ;;
1165
1166  esac
1167done
1168
1169if test -n "$ac_prev"; then
1170  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1171  as_fn_error $? "missing argument to $ac_option"
1172fi
1173
1174if test -n "$ac_unrecognized_opts"; then
1175  case $enable_option_checking in
1176    no) ;;
1177    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1178    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1179  esac
1180fi
1181
1182# Check all directory arguments for consistency.
1183for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1184		datadir sysconfdir sharedstatedir localstatedir includedir \
1185		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1186		libdir localedir mandir
1187do
1188  eval ac_val=\$$ac_var
1189  # Remove trailing slashes.
1190  case $ac_val in
1191    */ )
1192      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1193      eval $ac_var=\$ac_val;;
1194  esac
1195  # Be sure to have absolute directory names.
1196  case $ac_val in
1197    [\\/$]* | ?:[\\/]* )  continue;;
1198    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1199  esac
1200  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1201done
1202
1203# There might be people who depend on the old broken behavior: `$host'
1204# used to hold the argument of --host etc.
1205# FIXME: To remove some day.
1206build=$build_alias
1207host=$host_alias
1208target=$target_alias
1209
1210# FIXME: To remove some day.
1211if test "x$host_alias" != x; then
1212  if test "x$build_alias" = x; then
1213    cross_compiling=maybe
1214    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1215    If a cross compiler is detected then cross compile mode will be used" >&2
1216  elif test "x$build_alias" != "x$host_alias"; then
1217    cross_compiling=yes
1218  fi
1219fi
1220
1221ac_tool_prefix=
1222test -n "$host_alias" && ac_tool_prefix=$host_alias-
1223
1224test "$silent" = yes && exec 6>/dev/null
1225
1226
1227ac_pwd=`pwd` && test -n "$ac_pwd" &&
1228ac_ls_di=`ls -di .` &&
1229ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1230  as_fn_error $? "working directory cannot be determined"
1231test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1232  as_fn_error $? "pwd does not report name of working directory"
1233
1234
1235# Find the source files, if location was not specified.
1236if test -z "$srcdir"; then
1237  ac_srcdir_defaulted=yes
1238  # Try the directory containing this script, then the parent directory.
1239  ac_confdir=`$as_dirname -- "$as_myself" ||
1240$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1241	 X"$as_myself" : 'X\(//\)[^/]' \| \
1242	 X"$as_myself" : 'X\(//\)$' \| \
1243	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1244$as_echo X"$as_myself" |
1245    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1246	    s//\1/
1247	    q
1248	  }
1249	  /^X\(\/\/\)[^/].*/{
1250	    s//\1/
1251	    q
1252	  }
1253	  /^X\(\/\/\)$/{
1254	    s//\1/
1255	    q
1256	  }
1257	  /^X\(\/\).*/{
1258	    s//\1/
1259	    q
1260	  }
1261	  s/.*/./; q'`
1262  srcdir=$ac_confdir
1263  if test ! -r "$srcdir/$ac_unique_file"; then
1264    srcdir=..
1265  fi
1266else
1267  ac_srcdir_defaulted=no
1268fi
1269if test ! -r "$srcdir/$ac_unique_file"; then
1270  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1271  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1272fi
1273ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1274ac_abs_confdir=`(
1275	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1276	pwd)`
1277# When building in place, set srcdir=.
1278if test "$ac_abs_confdir" = "$ac_pwd"; then
1279  srcdir=.
1280fi
1281# Remove unnecessary trailing slashes from srcdir.
1282# Double slashes in file names in object file debugging info
1283# mess up M-x gdb in Emacs.
1284case $srcdir in
1285*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1286esac
1287for ac_var in $ac_precious_vars; do
1288  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1289  eval ac_env_${ac_var}_value=\$${ac_var}
1290  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1291  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1292done
1293
1294#
1295# Report the --help message.
1296#
1297if test "$ac_init_help" = "long"; then
1298  # Omit some internal or obsolete options to make the list less imposing.
1299  # This message is too long to be a string in the A/UX 3.1 sh.
1300  cat <<_ACEOF
1301\`configure' configures xhost 1.0.6 to adapt to many kinds of systems.
1302
1303Usage: $0 [OPTION]... [VAR=VALUE]...
1304
1305To assign environment variables (e.g., CC, CFLAGS...), specify them as
1306VAR=VALUE.  See below for descriptions of some of the useful variables.
1307
1308Defaults for the options are specified in brackets.
1309
1310Configuration:
1311  -h, --help              display this help and exit
1312      --help=short        display options specific to this package
1313      --help=recursive    display the short help of all the included packages
1314  -V, --version           display version information and exit
1315  -q, --quiet, --silent   do not print \`checking ...' messages
1316      --cache-file=FILE   cache test results in FILE [disabled]
1317  -C, --config-cache      alias for \`--cache-file=config.cache'
1318  -n, --no-create         do not create output files
1319      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1320
1321Installation directories:
1322  --prefix=PREFIX         install architecture-independent files in PREFIX
1323                          [$ac_default_prefix]
1324  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1325                          [PREFIX]
1326
1327By default, \`make install' will install all the files in
1328\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1329an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1330for instance \`--prefix=\$HOME'.
1331
1332For better control, use the options below.
1333
1334Fine tuning of the installation directories:
1335  --bindir=DIR            user executables [EPREFIX/bin]
1336  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1337  --libexecdir=DIR        program executables [EPREFIX/libexec]
1338  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1339  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1340  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1341  --libdir=DIR            object code libraries [EPREFIX/lib]
1342  --includedir=DIR        C header files [PREFIX/include]
1343  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1344  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1345  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1346  --infodir=DIR           info documentation [DATAROOTDIR/info]
1347  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1348  --mandir=DIR            man documentation [DATAROOTDIR/man]
1349  --docdir=DIR            documentation root [DATAROOTDIR/doc/xhost]
1350  --htmldir=DIR           html documentation [DOCDIR]
1351  --dvidir=DIR            dvi documentation [DOCDIR]
1352  --pdfdir=DIR            pdf documentation [DOCDIR]
1353  --psdir=DIR             ps documentation [DOCDIR]
1354_ACEOF
1355
1356  cat <<\_ACEOF
1357
1358Program names:
1359  --program-prefix=PREFIX            prepend PREFIX to installed program names
1360  --program-suffix=SUFFIX            append SUFFIX to installed program names
1361  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1362
1363System types:
1364  --build=BUILD     configure for building on BUILD [guessed]
1365  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1366_ACEOF
1367fi
1368
1369if test -n "$ac_init_help"; then
1370  case $ac_init_help in
1371     short | recursive ) echo "Configuration of xhost 1.0.6:";;
1372   esac
1373  cat <<\_ACEOF
1374
1375Optional Features:
1376  --disable-option-checking  ignore unrecognized --enable/--with options
1377  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1378  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1379  --enable-silent-rules   less verbose build output (undo: "make V=1")
1380  --disable-silent-rules  verbose build output (undo: "make V=0")
1381  --enable-maintainer-mode
1382                          enable make rules and dependencies not useful (and
1383                          sometimes confusing) to the casual installer
1384  --enable-dependency-tracking
1385                          do not reject slow dependency extractors
1386  --disable-dependency-tracking
1387                          speeds up one-time build
1388  --disable-selective-werror
1389                          Turn off selective compiler errors. (default:
1390                          enabled)
1391  --enable-strict-compilation
1392                          Enable all warnings from compiler and make them
1393                          errors (default: disabled)
1394  --enable-unix-transport Enable UNIX domain socket transport
1395  --enable-tcp-transport  Enable TCP socket transport
1396  --enable-ipv6           Enable IPv6 support
1397  --enable-local-transport
1398                          Enable os-specific local transport
1399  --enable-secure-rpc     Enable Secure RPC
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  XHOST_CFLAGS
1412              C compiler flags for XHOST, overriding pkg-config
1413  XHOST_LIBS  linker flags for XHOST, overriding pkg-config
1414  XAU_CFLAGS  C compiler flags for XAU, overriding pkg-config
1415  XAU_LIBS    linker flags for XAU, overriding pkg-config
1416
1417Use these variables to override the choices made by `configure' or to help
1418it to find libraries and programs with nonstandard names/locations.
1419
1420Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1421_ACEOF
1422ac_status=$?
1423fi
1424
1425if test "$ac_init_help" = "recursive"; then
1426  # If there are subdirs, report their specific --help.
1427  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1428    test -d "$ac_dir" ||
1429      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1430      continue
1431    ac_builddir=.
1432
1433case "$ac_dir" in
1434.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1435*)
1436  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1437  # A ".." for each directory in $ac_dir_suffix.
1438  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1439  case $ac_top_builddir_sub in
1440  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1441  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1442  esac ;;
1443esac
1444ac_abs_top_builddir=$ac_pwd
1445ac_abs_builddir=$ac_pwd$ac_dir_suffix
1446# for backward compatibility:
1447ac_top_builddir=$ac_top_build_prefix
1448
1449case $srcdir in
1450  .)  # We are building in place.
1451    ac_srcdir=.
1452    ac_top_srcdir=$ac_top_builddir_sub
1453    ac_abs_top_srcdir=$ac_pwd ;;
1454  [\\/]* | ?:[\\/]* )  # Absolute name.
1455    ac_srcdir=$srcdir$ac_dir_suffix;
1456    ac_top_srcdir=$srcdir
1457    ac_abs_top_srcdir=$srcdir ;;
1458  *) # Relative name.
1459    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1460    ac_top_srcdir=$ac_top_build_prefix$srcdir
1461    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1462esac
1463ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1464
1465    cd "$ac_dir" || { ac_status=$?; continue; }
1466    # Check for guested configure.
1467    if test -f "$ac_srcdir/configure.gnu"; then
1468      echo &&
1469      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1470    elif test -f "$ac_srcdir/configure"; then
1471      echo &&
1472      $SHELL "$ac_srcdir/configure" --help=recursive
1473    else
1474      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1475    fi || ac_status=$?
1476    cd "$ac_pwd" || { ac_status=$?; break; }
1477  done
1478fi
1479
1480test -n "$ac_init_help" && exit $ac_status
1481if $ac_init_version; then
1482  cat <<\_ACEOF
1483xhost configure 1.0.6
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_func LINENO FUNC VAR
1738# ----------------------------------
1739# Tests whether FUNC exists, setting the cache variable VAR accordingly
1740ac_fn_c_check_func ()
1741{
1742  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744$as_echo_n "checking for $2... " >&6; }
1745if eval \${$3+:} false; then :
1746  $as_echo_n "(cached) " >&6
1747else
1748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749/* end confdefs.h.  */
1750/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1751   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1752#define $2 innocuous_$2
1753
1754/* System header to define __stub macros and hopefully few prototypes,
1755    which can conflict with char $2 (); below.
1756    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1757    <limits.h> exists even on freestanding compilers.  */
1758
1759#ifdef __STDC__
1760# include <limits.h>
1761#else
1762# include <assert.h>
1763#endif
1764
1765#undef $2
1766
1767/* Override any GCC internal prototype to avoid an error.
1768   Use char because int might match the return type of a GCC
1769   builtin and then its argument prototype would still apply.  */
1770#ifdef __cplusplus
1771extern "C"
1772#endif
1773char $2 ();
1774/* The GNU C library defines this for functions which it implements
1775    to always fail with ENOSYS.  Some functions are actually named
1776    something starting with __ and the normal name is an alias.  */
1777#if defined __stub_$2 || defined __stub___$2
1778choke me
1779#endif
1780
1781int
1782main ()
1783{
1784return $2 ();
1785  ;
1786  return 0;
1787}
1788_ACEOF
1789if ac_fn_c_try_link "$LINENO"; then :
1790  eval "$3=yes"
1791else
1792  eval "$3=no"
1793fi
1794rm -f core conftest.err conftest.$ac_objext \
1795    conftest$ac_exeext conftest.$ac_ext
1796fi
1797eval ac_res=\$$3
1798	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1799$as_echo "$ac_res" >&6; }
1800  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801
1802} # ac_fn_c_check_func
1803
1804# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1805# ----------------------------------------------------
1806# Tries to find if the field MEMBER exists in type AGGR, after including
1807# INCLUDES, setting cache variable VAR accordingly.
1808ac_fn_c_check_member ()
1809{
1810  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1812$as_echo_n "checking for $2.$3... " >&6; }
1813if eval \${$4+:} false; then :
1814  $as_echo_n "(cached) " >&6
1815else
1816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817/* end confdefs.h.  */
1818$5
1819int
1820main ()
1821{
1822static $2 ac_aggr;
1823if (ac_aggr.$3)
1824return 0;
1825  ;
1826  return 0;
1827}
1828_ACEOF
1829if ac_fn_c_try_compile "$LINENO"; then :
1830  eval "$4=yes"
1831else
1832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833/* end confdefs.h.  */
1834$5
1835int
1836main ()
1837{
1838static $2 ac_aggr;
1839if (sizeof ac_aggr.$3)
1840return 0;
1841  ;
1842  return 0;
1843}
1844_ACEOF
1845if ac_fn_c_try_compile "$LINENO"; then :
1846  eval "$4=yes"
1847else
1848  eval "$4=no"
1849fi
1850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1851fi
1852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1853fi
1854eval ac_res=\$$4
1855	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856$as_echo "$ac_res" >&6; }
1857  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858
1859} # ac_fn_c_check_member
1860
1861# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1862# -------------------------------------------
1863# Tests whether TYPE exists after having included INCLUDES, setting cache
1864# variable VAR accordingly.
1865ac_fn_c_check_type ()
1866{
1867  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869$as_echo_n "checking for $2... " >&6; }
1870if eval \${$3+:} false; then :
1871  $as_echo_n "(cached) " >&6
1872else
1873  eval "$3=no"
1874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1875/* end confdefs.h.  */
1876$4
1877int
1878main ()
1879{
1880if (sizeof ($2))
1881	 return 0;
1882  ;
1883  return 0;
1884}
1885_ACEOF
1886if ac_fn_c_try_compile "$LINENO"; then :
1887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888/* end confdefs.h.  */
1889$4
1890int
1891main ()
1892{
1893if (sizeof (($2)))
1894	    return 0;
1895  ;
1896  return 0;
1897}
1898_ACEOF
1899if ac_fn_c_try_compile "$LINENO"; then :
1900
1901else
1902  eval "$3=yes"
1903fi
1904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1905fi
1906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1907fi
1908eval ac_res=\$$3
1909	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1910$as_echo "$ac_res" >&6; }
1911  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1912
1913} # ac_fn_c_check_type
1914cat >config.log <<_ACEOF
1915This file contains any messages produced by compilers while
1916running configure, to aid debugging if configure makes a mistake.
1917
1918It was created by xhost $as_me 1.0.6, which was
1919generated by GNU Autoconf 2.68.  Invocation command line was
1920
1921  $ $0 $@
1922
1923_ACEOF
1924exec 5>>config.log
1925{
1926cat <<_ASUNAME
1927## --------- ##
1928## Platform. ##
1929## --------- ##
1930
1931hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1932uname -m = `(uname -m) 2>/dev/null || echo unknown`
1933uname -r = `(uname -r) 2>/dev/null || echo unknown`
1934uname -s = `(uname -s) 2>/dev/null || echo unknown`
1935uname -v = `(uname -v) 2>/dev/null || echo unknown`
1936
1937/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1938/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1939
1940/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1941/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1942/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1943/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1944/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1945/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1946/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1947
1948_ASUNAME
1949
1950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1951for as_dir in $PATH
1952do
1953  IFS=$as_save_IFS
1954  test -z "$as_dir" && as_dir=.
1955    $as_echo "PATH: $as_dir"
1956  done
1957IFS=$as_save_IFS
1958
1959} >&5
1960
1961cat >&5 <<_ACEOF
1962
1963
1964## ----------- ##
1965## Core tests. ##
1966## ----------- ##
1967
1968_ACEOF
1969
1970
1971# Keep a trace of the command line.
1972# Strip out --no-create and --no-recursion so they do not pile up.
1973# Strip out --silent because we don't want to record it for future runs.
1974# Also quote any args containing shell meta-characters.
1975# Make two passes to allow for proper duplicate-argument suppression.
1976ac_configure_args=
1977ac_configure_args0=
1978ac_configure_args1=
1979ac_must_keep_next=false
1980for ac_pass in 1 2
1981do
1982  for ac_arg
1983  do
1984    case $ac_arg in
1985    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1986    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1987    | -silent | --silent | --silen | --sile | --sil)
1988      continue ;;
1989    *\'*)
1990      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1991    esac
1992    case $ac_pass in
1993    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1994    2)
1995      as_fn_append ac_configure_args1 " '$ac_arg'"
1996      if test $ac_must_keep_next = true; then
1997	ac_must_keep_next=false # Got value, back to normal.
1998      else
1999	case $ac_arg in
2000	  *=* | --config-cache | -C | -disable-* | --disable-* \
2001	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2002	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2003	  | -with-* | --with-* | -without-* | --without-* | --x)
2004	    case "$ac_configure_args0 " in
2005	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2006	    esac
2007	    ;;
2008	  -* ) ac_must_keep_next=true ;;
2009	esac
2010      fi
2011      as_fn_append ac_configure_args " '$ac_arg'"
2012      ;;
2013    esac
2014  done
2015done
2016{ ac_configure_args0=; unset ac_configure_args0;}
2017{ ac_configure_args1=; unset ac_configure_args1;}
2018
2019# When interrupted or exit'd, cleanup temporary files, and complete
2020# config.log.  We remove comments because anyway the quotes in there
2021# would cause problems or look ugly.
2022# WARNING: Use '\'' to represent an apostrophe within the trap.
2023# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2024trap 'exit_status=$?
2025  # Save into config.log some information that might help in debugging.
2026  {
2027    echo
2028
2029    $as_echo "## ---------------- ##
2030## Cache variables. ##
2031## ---------------- ##"
2032    echo
2033    # The following way of writing the cache mishandles newlines in values,
2034(
2035  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2036    eval ac_val=\$$ac_var
2037    case $ac_val in #(
2038    *${as_nl}*)
2039      case $ac_var in #(
2040      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2041$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2042      esac
2043      case $ac_var in #(
2044      _ | IFS | as_nl) ;; #(
2045      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2046      *) { eval $ac_var=; unset $ac_var;} ;;
2047      esac ;;
2048    esac
2049  done
2050  (set) 2>&1 |
2051    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2052    *${as_nl}ac_space=\ *)
2053      sed -n \
2054	"s/'\''/'\''\\\\'\'''\''/g;
2055	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2056      ;; #(
2057    *)
2058      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2059      ;;
2060    esac |
2061    sort
2062)
2063    echo
2064
2065    $as_echo "## ----------------- ##
2066## Output variables. ##
2067## ----------------- ##"
2068    echo
2069    for ac_var in $ac_subst_vars
2070    do
2071      eval ac_val=\$$ac_var
2072      case $ac_val in
2073      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2074      esac
2075      $as_echo "$ac_var='\''$ac_val'\''"
2076    done | sort
2077    echo
2078
2079    if test -n "$ac_subst_files"; then
2080      $as_echo "## ------------------- ##
2081## File substitutions. ##
2082## ------------------- ##"
2083      echo
2084      for ac_var in $ac_subst_files
2085      do
2086	eval ac_val=\$$ac_var
2087	case $ac_val in
2088	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2089	esac
2090	$as_echo "$ac_var='\''$ac_val'\''"
2091      done | sort
2092      echo
2093    fi
2094
2095    if test -s confdefs.h; then
2096      $as_echo "## ----------- ##
2097## confdefs.h. ##
2098## ----------- ##"
2099      echo
2100      cat confdefs.h
2101      echo
2102    fi
2103    test "$ac_signal" != 0 &&
2104      $as_echo "$as_me: caught signal $ac_signal"
2105    $as_echo "$as_me: exit $exit_status"
2106  } >&5
2107  rm -f core *.core core.conftest.* &&
2108    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2109    exit $exit_status
2110' 0
2111for ac_signal in 1 2 13 15; do
2112  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2113done
2114ac_signal=0
2115
2116# confdefs.h avoids OS command line length limits that DEFS can exceed.
2117rm -f -r conftest* confdefs.h
2118
2119$as_echo "/* confdefs.h */" > confdefs.h
2120
2121# Predefined preprocessor variables.
2122
2123cat >>confdefs.h <<_ACEOF
2124#define PACKAGE_NAME "$PACKAGE_NAME"
2125_ACEOF
2126
2127cat >>confdefs.h <<_ACEOF
2128#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2129_ACEOF
2130
2131cat >>confdefs.h <<_ACEOF
2132#define PACKAGE_VERSION "$PACKAGE_VERSION"
2133_ACEOF
2134
2135cat >>confdefs.h <<_ACEOF
2136#define PACKAGE_STRING "$PACKAGE_STRING"
2137_ACEOF
2138
2139cat >>confdefs.h <<_ACEOF
2140#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2141_ACEOF
2142
2143cat >>confdefs.h <<_ACEOF
2144#define PACKAGE_URL "$PACKAGE_URL"
2145_ACEOF
2146
2147
2148# Let the site file select an alternate cache file if it wants to.
2149# Prefer an explicitly selected file to automatically selected ones.
2150ac_site_file1=NONE
2151ac_site_file2=NONE
2152if test -n "$CONFIG_SITE"; then
2153  # We do not want a PATH search for config.site.
2154  case $CONFIG_SITE in #((
2155    -*)  ac_site_file1=./$CONFIG_SITE;;
2156    */*) ac_site_file1=$CONFIG_SITE;;
2157    *)   ac_site_file1=./$CONFIG_SITE;;
2158  esac
2159elif test "x$prefix" != xNONE; then
2160  ac_site_file1=$prefix/share/config.site
2161  ac_site_file2=$prefix/etc/config.site
2162else
2163  ac_site_file1=$ac_default_prefix/share/config.site
2164  ac_site_file2=$ac_default_prefix/etc/config.site
2165fi
2166for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2167do
2168  test "x$ac_site_file" = xNONE && continue
2169  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2170    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2171$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2172    sed 's/^/| /' "$ac_site_file" >&5
2173    . "$ac_site_file" \
2174      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2175$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2176as_fn_error $? "failed to load site script $ac_site_file
2177See \`config.log' for more details" "$LINENO" 5; }
2178  fi
2179done
2180
2181if test -r "$cache_file"; then
2182  # Some versions of bash will fail to source /dev/null (special files
2183  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2184  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2185    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2186$as_echo "$as_me: loading cache $cache_file" >&6;}
2187    case $cache_file in
2188      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2189      *)                      . "./$cache_file";;
2190    esac
2191  fi
2192else
2193  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2194$as_echo "$as_me: creating cache $cache_file" >&6;}
2195  >$cache_file
2196fi
2197
2198# Check that the precious variables saved in the cache have kept the same
2199# value.
2200ac_cache_corrupted=false
2201for ac_var in $ac_precious_vars; do
2202  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2203  eval ac_new_set=\$ac_env_${ac_var}_set
2204  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2205  eval ac_new_val=\$ac_env_${ac_var}_value
2206  case $ac_old_set,$ac_new_set in
2207    set,)
2208      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2209$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2210      ac_cache_corrupted=: ;;
2211    ,set)
2212      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2213$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2214      ac_cache_corrupted=: ;;
2215    ,);;
2216    *)
2217      if test "x$ac_old_val" != "x$ac_new_val"; then
2218	# differences in whitespace do not lead to failure.
2219	ac_old_val_w=`echo x $ac_old_val`
2220	ac_new_val_w=`echo x $ac_new_val`
2221	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2222	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2223$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2224	  ac_cache_corrupted=:
2225	else
2226	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2227$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2228	  eval $ac_var=\$ac_old_val
2229	fi
2230	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2231$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2232	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2233$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2234      fi;;
2235  esac
2236  # Pass precious variables to config.status.
2237  if test "$ac_new_set" = set; then
2238    case $ac_new_val in
2239    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2240    *) ac_arg=$ac_var=$ac_new_val ;;
2241    esac
2242    case " $ac_configure_args " in
2243      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2244      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2245    esac
2246  fi
2247done
2248if $ac_cache_corrupted; then
2249  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2250$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2251  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2252$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2253  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2254fi
2255## -------------------- ##
2256## Main body of script. ##
2257## -------------------- ##
2258
2259ac_ext=c
2260ac_cpp='$CPP $CPPFLAGS'
2261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2263ac_compiler_gnu=$ac_cv_c_compiler_gnu
2264
2265
2266
2267ac_config_headers="$ac_config_headers config.h"
2268
2269
2270# Initialize Automake
2271am__api_version='1.14'
2272
2273ac_aux_dir=
2274for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2275  if test -f "$ac_dir/install-sh"; then
2276    ac_aux_dir=$ac_dir
2277    ac_install_sh="$ac_aux_dir/install-sh -c"
2278    break
2279  elif test -f "$ac_dir/install.sh"; then
2280    ac_aux_dir=$ac_dir
2281    ac_install_sh="$ac_aux_dir/install.sh -c"
2282    break
2283  elif test -f "$ac_dir/shtool"; then
2284    ac_aux_dir=$ac_dir
2285    ac_install_sh="$ac_aux_dir/shtool install -c"
2286    break
2287  fi
2288done
2289if test -z "$ac_aux_dir"; then
2290  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2291fi
2292
2293# These three variables are undocumented and unsupported,
2294# and are intended to be withdrawn in a future Autoconf release.
2295# They can cause serious problems if a builder's source tree is in a directory
2296# whose full name contains unusual characters.
2297ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2298ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2299ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2300
2301
2302# Find a good install program.  We prefer a C program (faster),
2303# so one script is as good as another.  But avoid the broken or
2304# incompatible versions:
2305# SysV /etc/install, /usr/sbin/install
2306# SunOS /usr/etc/install
2307# IRIX /sbin/install
2308# AIX /bin/install
2309# AmigaOS /C/install, which installs bootblocks on floppy discs
2310# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2311# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2312# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2313# OS/2's system install, which has a completely different semantic
2314# ./install, which can be erroneously created by make from ./install.sh.
2315# Reject install programs that cannot install multiple files.
2316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2317$as_echo_n "checking for a BSD-compatible install... " >&6; }
2318if test -z "$INSTALL"; then
2319if ${ac_cv_path_install+:} false; then :
2320  $as_echo_n "(cached) " >&6
2321else
2322  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2323for as_dir in $PATH
2324do
2325  IFS=$as_save_IFS
2326  test -z "$as_dir" && as_dir=.
2327    # Account for people who put trailing slashes in PATH elements.
2328case $as_dir/ in #((
2329  ./ | .// | /[cC]/* | \
2330  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2331  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2332  /usr/ucb/* ) ;;
2333  *)
2334    # OSF1 and SCO ODT 3.0 have their own names for install.
2335    # Don't use installbsd from OSF since it installs stuff as root
2336    # by default.
2337    for ac_prog in ginstall scoinst install; do
2338      for ac_exec_ext in '' $ac_executable_extensions; do
2339	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2340	  if test $ac_prog = install &&
2341	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2342	    # AIX install.  It has an incompatible calling convention.
2343	    :
2344	  elif test $ac_prog = install &&
2345	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2346	    # program-specific install script used by HP pwplus--don't use.
2347	    :
2348	  else
2349	    rm -rf conftest.one conftest.two conftest.dir
2350	    echo one > conftest.one
2351	    echo two > conftest.two
2352	    mkdir conftest.dir
2353	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2354	      test -s conftest.one && test -s conftest.two &&
2355	      test -s conftest.dir/conftest.one &&
2356	      test -s conftest.dir/conftest.two
2357	    then
2358	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2359	      break 3
2360	    fi
2361	  fi
2362	fi
2363      done
2364    done
2365    ;;
2366esac
2367
2368  done
2369IFS=$as_save_IFS
2370
2371rm -rf conftest.one conftest.two conftest.dir
2372
2373fi
2374  if test "${ac_cv_path_install+set}" = set; then
2375    INSTALL=$ac_cv_path_install
2376  else
2377    # As a last resort, use the slow shell script.  Don't cache a
2378    # value for INSTALL within a source directory, because that will
2379    # break other packages using the cache if that directory is
2380    # removed, or if the value is a relative name.
2381    INSTALL=$ac_install_sh
2382  fi
2383fi
2384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2385$as_echo "$INSTALL" >&6; }
2386
2387# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2388# It thinks the first close brace ends the variable substitution.
2389test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2390
2391test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2392
2393test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2394
2395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2396$as_echo_n "checking whether build environment is sane... " >&6; }
2397# Reject unsafe characters in $srcdir or the absolute working directory
2398# name.  Accept space and tab only in the latter.
2399am_lf='
2400'
2401case `pwd` in
2402  *[\\\"\#\$\&\'\`$am_lf]*)
2403    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2404esac
2405case $srcdir in
2406  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2407    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2408esac
2409
2410# Do 'set' in a subshell so we don't clobber the current shell's
2411# arguments.  Must try -L first in case configure is actually a
2412# symlink; some systems play weird games with the mod time of symlinks
2413# (eg FreeBSD returns the mod time of the symlink's containing
2414# directory).
2415if (
2416   am_has_slept=no
2417   for am_try in 1 2; do
2418     echo "timestamp, slept: $am_has_slept" > conftest.file
2419     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2420     if test "$*" = "X"; then
2421	# -L didn't work.
2422	set X `ls -t "$srcdir/configure" conftest.file`
2423     fi
2424     if test "$*" != "X $srcdir/configure conftest.file" \
2425	&& test "$*" != "X conftest.file $srcdir/configure"; then
2426
2427	# If neither matched, then we have a broken ls.  This can happen
2428	# if, for instance, CONFIG_SHELL is bash and it inherits a
2429	# broken ls alias from the environment.  This has actually
2430	# happened.  Such a system could not be considered "sane".
2431	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2432  alias in your environment" "$LINENO" 5
2433     fi
2434     if test "$2" = conftest.file || test $am_try -eq 2; then
2435       break
2436     fi
2437     # Just in case.
2438     sleep 1
2439     am_has_slept=yes
2440   done
2441   test "$2" = conftest.file
2442   )
2443then
2444   # Ok.
2445   :
2446else
2447   as_fn_error $? "newly created file is older than distributed files!
2448Check your system clock" "$LINENO" 5
2449fi
2450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2451$as_echo "yes" >&6; }
2452# If we didn't sleep, we still need to ensure time stamps of config.status and
2453# generated files are strictly newer.
2454am_sleep_pid=
2455if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2456  ( sleep 1 ) &
2457  am_sleep_pid=$!
2458fi
2459
2460rm -f conftest.file
2461
2462test "$program_prefix" != NONE &&
2463  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2464# Use a double $ so make ignores it.
2465test "$program_suffix" != NONE &&
2466  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2467# Double any \ or $.
2468# By default was `s,x,x', remove it if useless.
2469ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2470program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2471
2472# expand $ac_aux_dir to an absolute path
2473am_aux_dir=`cd $ac_aux_dir && pwd`
2474
2475if test x"${MISSING+set}" != xset; then
2476  case $am_aux_dir in
2477  *\ * | *\	*)
2478    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2479  *)
2480    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2481  esac
2482fi
2483# Use eval to expand $SHELL
2484if eval "$MISSING --is-lightweight"; then
2485  am_missing_run="$MISSING "
2486else
2487  am_missing_run=
2488  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2489$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2490fi
2491
2492if test x"${install_sh}" != xset; then
2493  case $am_aux_dir in
2494  *\ * | *\	*)
2495    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2496  *)
2497    install_sh="\${SHELL} $am_aux_dir/install-sh"
2498  esac
2499fi
2500
2501# Installed binaries are usually stripped using 'strip' when the user
2502# run "make install-strip".  However 'strip' might not be the right
2503# tool to use in cross-compilation environments, therefore Automake
2504# will honor the 'STRIP' environment variable to overrule this program.
2505if test "$cross_compiling" != no; then
2506  if test -n "$ac_tool_prefix"; then
2507  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2508set dummy ${ac_tool_prefix}strip; ac_word=$2
2509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2510$as_echo_n "checking for $ac_word... " >&6; }
2511if ${ac_cv_prog_STRIP+:} false; then :
2512  $as_echo_n "(cached) " >&6
2513else
2514  if test -n "$STRIP"; then
2515  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2516else
2517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518for as_dir in $PATH
2519do
2520  IFS=$as_save_IFS
2521  test -z "$as_dir" && as_dir=.
2522    for ac_exec_ext in '' $ac_executable_extensions; do
2523  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2524    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2525    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2526    break 2
2527  fi
2528done
2529  done
2530IFS=$as_save_IFS
2531
2532fi
2533fi
2534STRIP=$ac_cv_prog_STRIP
2535if test -n "$STRIP"; then
2536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2537$as_echo "$STRIP" >&6; }
2538else
2539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2540$as_echo "no" >&6; }
2541fi
2542
2543
2544fi
2545if test -z "$ac_cv_prog_STRIP"; then
2546  ac_ct_STRIP=$STRIP
2547  # Extract the first word of "strip", so it can be a program name with args.
2548set dummy strip; ac_word=$2
2549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2550$as_echo_n "checking for $ac_word... " >&6; }
2551if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2552  $as_echo_n "(cached) " >&6
2553else
2554  if test -n "$ac_ct_STRIP"; then
2555  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2556else
2557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558for as_dir in $PATH
2559do
2560  IFS=$as_save_IFS
2561  test -z "$as_dir" && as_dir=.
2562    for ac_exec_ext in '' $ac_executable_extensions; do
2563  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2564    ac_cv_prog_ac_ct_STRIP="strip"
2565    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2566    break 2
2567  fi
2568done
2569  done
2570IFS=$as_save_IFS
2571
2572fi
2573fi
2574ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2575if test -n "$ac_ct_STRIP"; then
2576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2577$as_echo "$ac_ct_STRIP" >&6; }
2578else
2579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2580$as_echo "no" >&6; }
2581fi
2582
2583  if test "x$ac_ct_STRIP" = x; then
2584    STRIP=":"
2585  else
2586    case $cross_compiling:$ac_tool_warned in
2587yes:)
2588{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2589$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2590ac_tool_warned=yes ;;
2591esac
2592    STRIP=$ac_ct_STRIP
2593  fi
2594else
2595  STRIP="$ac_cv_prog_STRIP"
2596fi
2597
2598fi
2599INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2600
2601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2602$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2603if test -z "$MKDIR_P"; then
2604  if ${ac_cv_path_mkdir+:} false; then :
2605  $as_echo_n "(cached) " >&6
2606else
2607  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2609do
2610  IFS=$as_save_IFS
2611  test -z "$as_dir" && as_dir=.
2612    for ac_prog in mkdir gmkdir; do
2613	 for ac_exec_ext in '' $ac_executable_extensions; do
2614	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2615	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2616	     'mkdir (GNU coreutils) '* | \
2617	     'mkdir (coreutils) '* | \
2618	     'mkdir (fileutils) '4.1*)
2619	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2620	       break 3;;
2621	   esac
2622	 done
2623       done
2624  done
2625IFS=$as_save_IFS
2626
2627fi
2628
2629  test -d ./--version && rmdir ./--version
2630  if test "${ac_cv_path_mkdir+set}" = set; then
2631    MKDIR_P="$ac_cv_path_mkdir -p"
2632  else
2633    # As a last resort, use the slow shell script.  Don't cache a
2634    # value for MKDIR_P within a source directory, because that will
2635    # break other packages using the cache if that directory is
2636    # removed, or if the value is a relative name.
2637    MKDIR_P="$ac_install_sh -d"
2638  fi
2639fi
2640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2641$as_echo "$MKDIR_P" >&6; }
2642
2643for ac_prog in gawk mawk nawk awk
2644do
2645  # Extract the first word of "$ac_prog", so it can be a program name with args.
2646set dummy $ac_prog; ac_word=$2
2647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2648$as_echo_n "checking for $ac_word... " >&6; }
2649if ${ac_cv_prog_AWK+:} false; then :
2650  $as_echo_n "(cached) " >&6
2651else
2652  if test -n "$AWK"; then
2653  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2654else
2655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656for as_dir in $PATH
2657do
2658  IFS=$as_save_IFS
2659  test -z "$as_dir" && as_dir=.
2660    for ac_exec_ext in '' $ac_executable_extensions; do
2661  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2662    ac_cv_prog_AWK="$ac_prog"
2663    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2664    break 2
2665  fi
2666done
2667  done
2668IFS=$as_save_IFS
2669
2670fi
2671fi
2672AWK=$ac_cv_prog_AWK
2673if test -n "$AWK"; then
2674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2675$as_echo "$AWK" >&6; }
2676else
2677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2678$as_echo "no" >&6; }
2679fi
2680
2681
2682  test -n "$AWK" && break
2683done
2684
2685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2686$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2687set x ${MAKE-make}
2688ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2689if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2690  $as_echo_n "(cached) " >&6
2691else
2692  cat >conftest.make <<\_ACEOF
2693SHELL = /bin/sh
2694all:
2695	@echo '@@@%%%=$(MAKE)=@@@%%%'
2696_ACEOF
2697# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2698case `${MAKE-make} -f conftest.make 2>/dev/null` in
2699  *@@@%%%=?*=@@@%%%*)
2700    eval ac_cv_prog_make_${ac_make}_set=yes;;
2701  *)
2702    eval ac_cv_prog_make_${ac_make}_set=no;;
2703esac
2704rm -f conftest.make
2705fi
2706if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2708$as_echo "yes" >&6; }
2709  SET_MAKE=
2710else
2711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2712$as_echo "no" >&6; }
2713  SET_MAKE="MAKE=${MAKE-make}"
2714fi
2715
2716rm -rf .tst 2>/dev/null
2717mkdir .tst 2>/dev/null
2718if test -d .tst; then
2719  am__leading_dot=.
2720else
2721  am__leading_dot=_
2722fi
2723rmdir .tst 2>/dev/null
2724
2725# Check whether --enable-silent-rules was given.
2726if test "${enable_silent_rules+set}" = set; then :
2727  enableval=$enable_silent_rules;
2728fi
2729
2730case $enable_silent_rules in # (((
2731  yes) AM_DEFAULT_VERBOSITY=0;;
2732   no) AM_DEFAULT_VERBOSITY=1;;
2733    *) AM_DEFAULT_VERBOSITY=1;;
2734esac
2735am_make=${MAKE-make}
2736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2737$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2738if ${am_cv_make_support_nested_variables+:} false; then :
2739  $as_echo_n "(cached) " >&6
2740else
2741  if $as_echo 'TRUE=$(BAR$(V))
2742BAR0=false
2743BAR1=true
2744V=1
2745am__doit:
2746	@$(TRUE)
2747.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2748  am_cv_make_support_nested_variables=yes
2749else
2750  am_cv_make_support_nested_variables=no
2751fi
2752fi
2753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2754$as_echo "$am_cv_make_support_nested_variables" >&6; }
2755if test $am_cv_make_support_nested_variables = yes; then
2756    AM_V='$(V)'
2757  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2758else
2759  AM_V=$AM_DEFAULT_VERBOSITY
2760  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2761fi
2762AM_BACKSLASH='\'
2763
2764if test "`cd $srcdir && pwd`" != "`pwd`"; then
2765  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2766  # is not polluted with repeated "-I."
2767  am__isrc=' -I$(srcdir)'
2768  # test to see if srcdir already configured
2769  if test -f $srcdir/config.status; then
2770    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2771  fi
2772fi
2773
2774# test whether we have cygpath
2775if test -z "$CYGPATH_W"; then
2776  if (cygpath --version) >/dev/null 2>/dev/null; then
2777    CYGPATH_W='cygpath -w'
2778  else
2779    CYGPATH_W=echo
2780  fi
2781fi
2782
2783
2784# Define the identity of the package.
2785 PACKAGE='xhost'
2786 VERSION='1.0.6'
2787
2788
2789cat >>confdefs.h <<_ACEOF
2790#define PACKAGE "$PACKAGE"
2791_ACEOF
2792
2793
2794cat >>confdefs.h <<_ACEOF
2795#define VERSION "$VERSION"
2796_ACEOF
2797
2798# Some tools Automake needs.
2799
2800ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2801
2802
2803AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2804
2805
2806AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2807
2808
2809AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2810
2811
2812MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2813
2814# For better backward compatibility.  To be removed once Automake 1.9.x
2815# dies out for good.  For more background, see:
2816# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2817# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2818mkdir_p='$(MKDIR_P)'
2819
2820# We need awk for the "check" target.  The system "awk" is bad on
2821# some platforms.
2822# Always define AMTAR for backward compatibility.  Yes, it's still used
2823# in the wild :-(  We should find a proper way to deprecate it ...
2824AMTAR='$${TAR-tar}'
2825
2826
2827# We'll loop over all known methods to create a tar archive until one works.
2828_am_tools='gnutar  pax cpio none'
2829
2830am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2831
2832
2833
2834
2835
2836
2837# POSIX will say in a future version that running "rm -f" with no argument
2838# is OK; and we want to be able to make that assumption in our Makefile
2839# recipes.  So use an aggressive probe to check that the usage we want is
2840# actually supported "in the wild" to an acceptable degree.
2841# See automake bug#10828.
2842# To make any issue more visible, cause the running configure to be aborted
2843# by default if the 'rm' program in use doesn't match our expectations; the
2844# user can still override this though.
2845if rm -f && rm -fr && rm -rf; then : OK; else
2846  cat >&2 <<'END'
2847Oops!
2848
2849Your 'rm' program seems unable to run without file operands specified
2850on the command line, even when the '-f' option is present.  This is contrary
2851to the behaviour of most rm programs out there, and not conforming with
2852the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2853
2854Please tell bug-automake@gnu.org about your system, including the value
2855of your $PATH and any error possibly output before this message.  This
2856can help us improve future automake versions.
2857
2858END
2859  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2860    echo 'Configuration will proceed anyway, since you have set the' >&2
2861    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2862    echo >&2
2863  else
2864    cat >&2 <<'END'
2865Aborting the configuration process, to ensure you take notice of the issue.
2866
2867You can download and install GNU coreutils to get an 'rm' implementation
2868that behaves properly: <http://www.gnu.org/software/coreutils/>.
2869
2870If you want to complete the configuration process using your problematic
2871'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2872to "yes", and re-run configure.
2873
2874END
2875    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2876  fi
2877fi
2878
2879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2880$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2881    # Check whether --enable-maintainer-mode was given.
2882if test "${enable_maintainer_mode+set}" = set; then :
2883  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2884else
2885  USE_MAINTAINER_MODE=no
2886fi
2887
2888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2889$as_echo "$USE_MAINTAINER_MODE" >&6; }
2890   if test $USE_MAINTAINER_MODE = yes; then
2891  MAINTAINER_MODE_TRUE=
2892  MAINTAINER_MODE_FALSE='#'
2893else
2894  MAINTAINER_MODE_TRUE='#'
2895  MAINTAINER_MODE_FALSE=
2896fi
2897
2898  MAINT=$MAINTAINER_MODE_TRUE
2899
2900
2901
2902# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914DEPDIR="${am__leading_dot}deps"
2915
2916ac_config_commands="$ac_config_commands depfiles"
2917
2918
2919am_make=${MAKE-make}
2920cat > confinc << 'END'
2921am__doit:
2922	@echo this is the am__doit target
2923.PHONY: am__doit
2924END
2925# If we don't find an include directive, just comment out the code.
2926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2927$as_echo_n "checking for style of include used by $am_make... " >&6; }
2928am__include="#"
2929am__quote=
2930_am_result=none
2931# First try GNU make style include.
2932echo "include confinc" > confmf
2933# Ignore all kinds of additional output from 'make'.
2934case `$am_make -s -f confmf 2> /dev/null` in #(
2935*the\ am__doit\ target*)
2936  am__include=include
2937  am__quote=
2938  _am_result=GNU
2939  ;;
2940esac
2941# Now try BSD make style include.
2942if test "$am__include" = "#"; then
2943   echo '.include "confinc"' > confmf
2944   case `$am_make -s -f confmf 2> /dev/null` in #(
2945   *the\ am__doit\ target*)
2946     am__include=.include
2947     am__quote="\""
2948     _am_result=BSD
2949     ;;
2950   esac
2951fi
2952
2953
2954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2955$as_echo "$_am_result" >&6; }
2956rm -f confinc confmf
2957
2958# Check whether --enable-dependency-tracking was given.
2959if test "${enable_dependency_tracking+set}" = set; then :
2960  enableval=$enable_dependency_tracking;
2961fi
2962
2963if test "x$enable_dependency_tracking" != xno; then
2964  am_depcomp="$ac_aux_dir/depcomp"
2965  AMDEPBACKSLASH='\'
2966  am__nodep='_no'
2967fi
2968 if test "x$enable_dependency_tracking" != xno; then
2969  AMDEP_TRUE=
2970  AMDEP_FALSE='#'
2971else
2972  AMDEP_TRUE='#'
2973  AMDEP_FALSE=
2974fi
2975
2976
2977ac_ext=c
2978ac_cpp='$CPP $CPPFLAGS'
2979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2981ac_compiler_gnu=$ac_cv_c_compiler_gnu
2982if test -n "$ac_tool_prefix"; then
2983  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2984set dummy ${ac_tool_prefix}gcc; ac_word=$2
2985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2986$as_echo_n "checking for $ac_word... " >&6; }
2987if ${ac_cv_prog_CC+:} false; then :
2988  $as_echo_n "(cached) " >&6
2989else
2990  if test -n "$CC"; then
2991  ac_cv_prog_CC="$CC" # Let the user override the test.
2992else
2993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994for as_dir in $PATH
2995do
2996  IFS=$as_save_IFS
2997  test -z "$as_dir" && as_dir=.
2998    for ac_exec_ext in '' $ac_executable_extensions; do
2999  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3000    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3001    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3002    break 2
3003  fi
3004done
3005  done
3006IFS=$as_save_IFS
3007
3008fi
3009fi
3010CC=$ac_cv_prog_CC
3011if test -n "$CC"; then
3012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3013$as_echo "$CC" >&6; }
3014else
3015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3016$as_echo "no" >&6; }
3017fi
3018
3019
3020fi
3021if test -z "$ac_cv_prog_CC"; then
3022  ac_ct_CC=$CC
3023  # Extract the first word of "gcc", so it can be a program name with args.
3024set dummy gcc; ac_word=$2
3025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3026$as_echo_n "checking for $ac_word... " >&6; }
3027if ${ac_cv_prog_ac_ct_CC+:} false; then :
3028  $as_echo_n "(cached) " >&6
3029else
3030  if test -n "$ac_ct_CC"; then
3031  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3032else
3033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034for as_dir in $PATH
3035do
3036  IFS=$as_save_IFS
3037  test -z "$as_dir" && as_dir=.
3038    for ac_exec_ext in '' $ac_executable_extensions; do
3039  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3040    ac_cv_prog_ac_ct_CC="gcc"
3041    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3042    break 2
3043  fi
3044done
3045  done
3046IFS=$as_save_IFS
3047
3048fi
3049fi
3050ac_ct_CC=$ac_cv_prog_ac_ct_CC
3051if test -n "$ac_ct_CC"; then
3052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3053$as_echo "$ac_ct_CC" >&6; }
3054else
3055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3056$as_echo "no" >&6; }
3057fi
3058
3059  if test "x$ac_ct_CC" = x; then
3060    CC=""
3061  else
3062    case $cross_compiling:$ac_tool_warned in
3063yes:)
3064{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3065$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3066ac_tool_warned=yes ;;
3067esac
3068    CC=$ac_ct_CC
3069  fi
3070else
3071  CC="$ac_cv_prog_CC"
3072fi
3073
3074if test -z "$CC"; then
3075          if test -n "$ac_tool_prefix"; then
3076    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3077set dummy ${ac_tool_prefix}cc; ac_word=$2
3078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3079$as_echo_n "checking for $ac_word... " >&6; }
3080if ${ac_cv_prog_CC+:} false; then :
3081  $as_echo_n "(cached) " >&6
3082else
3083  if test -n "$CC"; then
3084  ac_cv_prog_CC="$CC" # Let the user override the test.
3085else
3086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087for as_dir in $PATH
3088do
3089  IFS=$as_save_IFS
3090  test -z "$as_dir" && as_dir=.
3091    for ac_exec_ext in '' $ac_executable_extensions; do
3092  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3093    ac_cv_prog_CC="${ac_tool_prefix}cc"
3094    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3095    break 2
3096  fi
3097done
3098  done
3099IFS=$as_save_IFS
3100
3101fi
3102fi
3103CC=$ac_cv_prog_CC
3104if test -n "$CC"; then
3105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3106$as_echo "$CC" >&6; }
3107else
3108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3109$as_echo "no" >&6; }
3110fi
3111
3112
3113  fi
3114fi
3115if test -z "$CC"; then
3116  # Extract the first word of "cc", so it can be a program name with args.
3117set dummy cc; ac_word=$2
3118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3119$as_echo_n "checking for $ac_word... " >&6; }
3120if ${ac_cv_prog_CC+:} false; then :
3121  $as_echo_n "(cached) " >&6
3122else
3123  if test -n "$CC"; then
3124  ac_cv_prog_CC="$CC" # Let the user override the test.
3125else
3126  ac_prog_rejected=no
3127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128for as_dir in $PATH
3129do
3130  IFS=$as_save_IFS
3131  test -z "$as_dir" && as_dir=.
3132    for ac_exec_ext in '' $ac_executable_extensions; do
3133  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3134    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3135       ac_prog_rejected=yes
3136       continue
3137     fi
3138    ac_cv_prog_CC="cc"
3139    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3140    break 2
3141  fi
3142done
3143  done
3144IFS=$as_save_IFS
3145
3146if test $ac_prog_rejected = yes; then
3147  # We found a bogon in the path, so make sure we never use it.
3148  set dummy $ac_cv_prog_CC
3149  shift
3150  if test $# != 0; then
3151    # We chose a different compiler from the bogus one.
3152    # However, it has the same basename, so the bogon will be chosen
3153    # first if we set CC to just the basename; use the full file name.
3154    shift
3155    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3156  fi
3157fi
3158fi
3159fi
3160CC=$ac_cv_prog_CC
3161if test -n "$CC"; then
3162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3163$as_echo "$CC" >&6; }
3164else
3165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3166$as_echo "no" >&6; }
3167fi
3168
3169
3170fi
3171if test -z "$CC"; then
3172  if test -n "$ac_tool_prefix"; then
3173  for ac_prog in cl.exe
3174  do
3175    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3176set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3178$as_echo_n "checking for $ac_word... " >&6; }
3179if ${ac_cv_prog_CC+:} false; then :
3180  $as_echo_n "(cached) " >&6
3181else
3182  if test -n "$CC"; then
3183  ac_cv_prog_CC="$CC" # Let the user override the test.
3184else
3185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186for as_dir in $PATH
3187do
3188  IFS=$as_save_IFS
3189  test -z "$as_dir" && as_dir=.
3190    for ac_exec_ext in '' $ac_executable_extensions; do
3191  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3192    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3193    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3194    break 2
3195  fi
3196done
3197  done
3198IFS=$as_save_IFS
3199
3200fi
3201fi
3202CC=$ac_cv_prog_CC
3203if test -n "$CC"; then
3204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3205$as_echo "$CC" >&6; }
3206else
3207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3208$as_echo "no" >&6; }
3209fi
3210
3211
3212    test -n "$CC" && break
3213  done
3214fi
3215if test -z "$CC"; then
3216  ac_ct_CC=$CC
3217  for ac_prog in cl.exe
3218do
3219  # Extract the first word of "$ac_prog", so it can be a program name with args.
3220set dummy $ac_prog; ac_word=$2
3221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3222$as_echo_n "checking for $ac_word... " >&6; }
3223if ${ac_cv_prog_ac_ct_CC+:} false; then :
3224  $as_echo_n "(cached) " >&6
3225else
3226  if test -n "$ac_ct_CC"; then
3227  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3228else
3229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230for as_dir in $PATH
3231do
3232  IFS=$as_save_IFS
3233  test -z "$as_dir" && as_dir=.
3234    for ac_exec_ext in '' $ac_executable_extensions; do
3235  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3236    ac_cv_prog_ac_ct_CC="$ac_prog"
3237    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3238    break 2
3239  fi
3240done
3241  done
3242IFS=$as_save_IFS
3243
3244fi
3245fi
3246ac_ct_CC=$ac_cv_prog_ac_ct_CC
3247if test -n "$ac_ct_CC"; then
3248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3249$as_echo "$ac_ct_CC" >&6; }
3250else
3251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252$as_echo "no" >&6; }
3253fi
3254
3255
3256  test -n "$ac_ct_CC" && break
3257done
3258
3259  if test "x$ac_ct_CC" = x; then
3260    CC=""
3261  else
3262    case $cross_compiling:$ac_tool_warned in
3263yes:)
3264{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3265$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3266ac_tool_warned=yes ;;
3267esac
3268    CC=$ac_ct_CC
3269  fi
3270fi
3271
3272fi
3273
3274
3275test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3276$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3277as_fn_error $? "no acceptable C compiler found in \$PATH
3278See \`config.log' for more details" "$LINENO" 5; }
3279
3280# Provide some information about the compiler.
3281$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3282set X $ac_compile
3283ac_compiler=$2
3284for ac_option in --version -v -V -qversion; do
3285  { { ac_try="$ac_compiler $ac_option >&5"
3286case "(($ac_try" in
3287  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288  *) ac_try_echo=$ac_try;;
3289esac
3290eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3291$as_echo "$ac_try_echo"; } >&5
3292  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3293  ac_status=$?
3294  if test -s conftest.err; then
3295    sed '10a\
3296... rest of stderr output deleted ...
3297         10q' conftest.err >conftest.er1
3298    cat conftest.er1 >&5
3299  fi
3300  rm -f conftest.er1 conftest.err
3301  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3302  test $ac_status = 0; }
3303done
3304
3305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3306/* end confdefs.h.  */
3307
3308int
3309main ()
3310{
3311
3312  ;
3313  return 0;
3314}
3315_ACEOF
3316ac_clean_files_save=$ac_clean_files
3317ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3318# Try to create an executable without -o first, disregard a.out.
3319# It will help us diagnose broken compilers, and finding out an intuition
3320# of exeext.
3321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3322$as_echo_n "checking whether the C compiler works... " >&6; }
3323ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3324
3325# The possible output files:
3326ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3327
3328ac_rmfiles=
3329for ac_file in $ac_files
3330do
3331  case $ac_file in
3332    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3333    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3334  esac
3335done
3336rm -f $ac_rmfiles
3337
3338if { { ac_try="$ac_link_default"
3339case "(($ac_try" in
3340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341  *) ac_try_echo=$ac_try;;
3342esac
3343eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3344$as_echo "$ac_try_echo"; } >&5
3345  (eval "$ac_link_default") 2>&5
3346  ac_status=$?
3347  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3348  test $ac_status = 0; }; then :
3349  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3350# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3351# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3352# so that the user can short-circuit this test for compilers unknown to
3353# Autoconf.
3354for ac_file in $ac_files ''
3355do
3356  test -f "$ac_file" || continue
3357  case $ac_file in
3358    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3359	;;
3360    [ab].out )
3361	# We found the default executable, but exeext='' is most
3362	# certainly right.
3363	break;;
3364    *.* )
3365	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3366	then :; else
3367	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3368	fi
3369	# We set ac_cv_exeext here because the later test for it is not
3370	# safe: cross compilers may not add the suffix if given an `-o'
3371	# argument, so we may need to know it at that point already.
3372	# Even if this section looks crufty: it has the advantage of
3373	# actually working.
3374	break;;
3375    * )
3376	break;;
3377  esac
3378done
3379test "$ac_cv_exeext" = no && ac_cv_exeext=
3380
3381else
3382  ac_file=''
3383fi
3384if test -z "$ac_file"; then :
3385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3386$as_echo "no" >&6; }
3387$as_echo "$as_me: failed program was:" >&5
3388sed 's/^/| /' conftest.$ac_ext >&5
3389
3390{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3391$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3392as_fn_error 77 "C compiler cannot create executables
3393See \`config.log' for more details" "$LINENO" 5; }
3394else
3395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3396$as_echo "yes" >&6; }
3397fi
3398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3399$as_echo_n "checking for C compiler default output file name... " >&6; }
3400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3401$as_echo "$ac_file" >&6; }
3402ac_exeext=$ac_cv_exeext
3403
3404rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3405ac_clean_files=$ac_clean_files_save
3406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3407$as_echo_n "checking for suffix of executables... " >&6; }
3408if { { ac_try="$ac_link"
3409case "(($ac_try" in
3410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411  *) ac_try_echo=$ac_try;;
3412esac
3413eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3414$as_echo "$ac_try_echo"; } >&5
3415  (eval "$ac_link") 2>&5
3416  ac_status=$?
3417  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3418  test $ac_status = 0; }; then :
3419  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3420# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3421# work properly (i.e., refer to `conftest.exe'), while it won't with
3422# `rm'.
3423for ac_file in conftest.exe conftest conftest.*; do
3424  test -f "$ac_file" || continue
3425  case $ac_file in
3426    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3427    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3428	  break;;
3429    * ) break;;
3430  esac
3431done
3432else
3433  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3434$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3435as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3436See \`config.log' for more details" "$LINENO" 5; }
3437fi
3438rm -f conftest conftest$ac_cv_exeext
3439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3440$as_echo "$ac_cv_exeext" >&6; }
3441
3442rm -f conftest.$ac_ext
3443EXEEXT=$ac_cv_exeext
3444ac_exeext=$EXEEXT
3445cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3446/* end confdefs.h.  */
3447#include <stdio.h>
3448int
3449main ()
3450{
3451FILE *f = fopen ("conftest.out", "w");
3452 return ferror (f) || fclose (f) != 0;
3453
3454  ;
3455  return 0;
3456}
3457_ACEOF
3458ac_clean_files="$ac_clean_files conftest.out"
3459# Check that the compiler produces executables we can run.  If not, either
3460# the compiler is broken, or we cross compile.
3461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3462$as_echo_n "checking whether we are cross compiling... " >&6; }
3463if test "$cross_compiling" != yes; then
3464  { { ac_try="$ac_link"
3465case "(($ac_try" in
3466  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467  *) ac_try_echo=$ac_try;;
3468esac
3469eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3470$as_echo "$ac_try_echo"; } >&5
3471  (eval "$ac_link") 2>&5
3472  ac_status=$?
3473  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3474  test $ac_status = 0; }
3475  if { ac_try='./conftest$ac_cv_exeext'
3476  { { case "(($ac_try" in
3477  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478  *) ac_try_echo=$ac_try;;
3479esac
3480eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3481$as_echo "$ac_try_echo"; } >&5
3482  (eval "$ac_try") 2>&5
3483  ac_status=$?
3484  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3485  test $ac_status = 0; }; }; then
3486    cross_compiling=no
3487  else
3488    if test "$cross_compiling" = maybe; then
3489	cross_compiling=yes
3490    else
3491	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3492$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3493as_fn_error $? "cannot run C compiled programs.
3494If you meant to cross compile, use \`--host'.
3495See \`config.log' for more details" "$LINENO" 5; }
3496    fi
3497  fi
3498fi
3499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3500$as_echo "$cross_compiling" >&6; }
3501
3502rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3503ac_clean_files=$ac_clean_files_save
3504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3505$as_echo_n "checking for suffix of object files... " >&6; }
3506if ${ac_cv_objext+:} false; then :
3507  $as_echo_n "(cached) " >&6
3508else
3509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3510/* end confdefs.h.  */
3511
3512int
3513main ()
3514{
3515
3516  ;
3517  return 0;
3518}
3519_ACEOF
3520rm -f conftest.o conftest.obj
3521if { { ac_try="$ac_compile"
3522case "(($ac_try" in
3523  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524  *) ac_try_echo=$ac_try;;
3525esac
3526eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3527$as_echo "$ac_try_echo"; } >&5
3528  (eval "$ac_compile") 2>&5
3529  ac_status=$?
3530  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3531  test $ac_status = 0; }; then :
3532  for ac_file in conftest.o conftest.obj conftest.*; do
3533  test -f "$ac_file" || continue;
3534  case $ac_file in
3535    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3536    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3537       break;;
3538  esac
3539done
3540else
3541  $as_echo "$as_me: failed program was:" >&5
3542sed 's/^/| /' conftest.$ac_ext >&5
3543
3544{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3545$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3546as_fn_error $? "cannot compute suffix of object files: cannot compile
3547See \`config.log' for more details" "$LINENO" 5; }
3548fi
3549rm -f conftest.$ac_cv_objext conftest.$ac_ext
3550fi
3551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3552$as_echo "$ac_cv_objext" >&6; }
3553OBJEXT=$ac_cv_objext
3554ac_objext=$OBJEXT
3555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3556$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3557if ${ac_cv_c_compiler_gnu+:} false; then :
3558  $as_echo_n "(cached) " >&6
3559else
3560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3561/* end confdefs.h.  */
3562
3563int
3564main ()
3565{
3566#ifndef __GNUC__
3567       choke me
3568#endif
3569
3570  ;
3571  return 0;
3572}
3573_ACEOF
3574if ac_fn_c_try_compile "$LINENO"; then :
3575  ac_compiler_gnu=yes
3576else
3577  ac_compiler_gnu=no
3578fi
3579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3580ac_cv_c_compiler_gnu=$ac_compiler_gnu
3581
3582fi
3583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3584$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3585if test $ac_compiler_gnu = yes; then
3586  GCC=yes
3587else
3588  GCC=
3589fi
3590ac_test_CFLAGS=${CFLAGS+set}
3591ac_save_CFLAGS=$CFLAGS
3592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3593$as_echo_n "checking whether $CC accepts -g... " >&6; }
3594if ${ac_cv_prog_cc_g+:} false; then :
3595  $as_echo_n "(cached) " >&6
3596else
3597  ac_save_c_werror_flag=$ac_c_werror_flag
3598   ac_c_werror_flag=yes
3599   ac_cv_prog_cc_g=no
3600   CFLAGS="-g"
3601   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3602/* end confdefs.h.  */
3603
3604int
3605main ()
3606{
3607
3608  ;
3609  return 0;
3610}
3611_ACEOF
3612if ac_fn_c_try_compile "$LINENO"; then :
3613  ac_cv_prog_cc_g=yes
3614else
3615  CFLAGS=""
3616      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3617/* end confdefs.h.  */
3618
3619int
3620main ()
3621{
3622
3623  ;
3624  return 0;
3625}
3626_ACEOF
3627if ac_fn_c_try_compile "$LINENO"; then :
3628
3629else
3630  ac_c_werror_flag=$ac_save_c_werror_flag
3631	 CFLAGS="-g"
3632	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3633/* end confdefs.h.  */
3634
3635int
3636main ()
3637{
3638
3639  ;
3640  return 0;
3641}
3642_ACEOF
3643if ac_fn_c_try_compile "$LINENO"; then :
3644  ac_cv_prog_cc_g=yes
3645fi
3646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3647fi
3648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3649fi
3650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3651   ac_c_werror_flag=$ac_save_c_werror_flag
3652fi
3653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3654$as_echo "$ac_cv_prog_cc_g" >&6; }
3655if test "$ac_test_CFLAGS" = set; then
3656  CFLAGS=$ac_save_CFLAGS
3657elif test $ac_cv_prog_cc_g = yes; then
3658  if test "$GCC" = yes; then
3659    CFLAGS="-g -O2"
3660  else
3661    CFLAGS="-g"
3662  fi
3663else
3664  if test "$GCC" = yes; then
3665    CFLAGS="-O2"
3666  else
3667    CFLAGS=
3668  fi
3669fi
3670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3671$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3672if ${ac_cv_prog_cc_c89+:} false; then :
3673  $as_echo_n "(cached) " >&6
3674else
3675  ac_cv_prog_cc_c89=no
3676ac_save_CC=$CC
3677cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678/* end confdefs.h.  */
3679#include <stdarg.h>
3680#include <stdio.h>
3681#include <sys/types.h>
3682#include <sys/stat.h>
3683/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3684struct buf { int x; };
3685FILE * (*rcsopen) (struct buf *, struct stat *, int);
3686static char *e (p, i)
3687     char **p;
3688     int i;
3689{
3690  return p[i];
3691}
3692static char *f (char * (*g) (char **, int), char **p, ...)
3693{
3694  char *s;
3695  va_list v;
3696  va_start (v,p);
3697  s = g (p, va_arg (v,int));
3698  va_end (v);
3699  return s;
3700}
3701
3702/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3703   function prototypes and stuff, but not '\xHH' hex character constants.
3704   These don't provoke an error unfortunately, instead are silently treated
3705   as 'x'.  The following induces an error, until -std is added to get
3706   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3707   array size at least.  It's necessary to write '\x00'==0 to get something
3708   that's true only with -std.  */
3709int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3710
3711/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3712   inside strings and character constants.  */
3713#define FOO(x) 'x'
3714int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3715
3716int test (int i, double x);
3717struct s1 {int (*f) (int a);};
3718struct s2 {int (*f) (double a);};
3719int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3720int argc;
3721char **argv;
3722int
3723main ()
3724{
3725return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3726  ;
3727  return 0;
3728}
3729_ACEOF
3730for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3731	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3732do
3733  CC="$ac_save_CC $ac_arg"
3734  if ac_fn_c_try_compile "$LINENO"; then :
3735  ac_cv_prog_cc_c89=$ac_arg
3736fi
3737rm -f core conftest.err conftest.$ac_objext
3738  test "x$ac_cv_prog_cc_c89" != "xno" && break
3739done
3740rm -f conftest.$ac_ext
3741CC=$ac_save_CC
3742
3743fi
3744# AC_CACHE_VAL
3745case "x$ac_cv_prog_cc_c89" in
3746  x)
3747    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3748$as_echo "none needed" >&6; } ;;
3749  xno)
3750    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3751$as_echo "unsupported" >&6; } ;;
3752  *)
3753    CC="$CC $ac_cv_prog_cc_c89"
3754    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3755$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3756esac
3757if test "x$ac_cv_prog_cc_c89" != xno; then :
3758
3759fi
3760
3761ac_ext=c
3762ac_cpp='$CPP $CPPFLAGS'
3763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3765ac_compiler_gnu=$ac_cv_c_compiler_gnu
3766
3767ac_ext=c
3768ac_cpp='$CPP $CPPFLAGS'
3769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3771ac_compiler_gnu=$ac_cv_c_compiler_gnu
3772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3773$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3774if ${am_cv_prog_cc_c_o+:} false; then :
3775  $as_echo_n "(cached) " >&6
3776else
3777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3778/* end confdefs.h.  */
3779
3780int
3781main ()
3782{
3783
3784  ;
3785  return 0;
3786}
3787_ACEOF
3788  # Make sure it works both with $CC and with simple cc.
3789  # Following AC_PROG_CC_C_O, we do the test twice because some
3790  # compilers refuse to overwrite an existing .o file with -o,
3791  # though they will create one.
3792  am_cv_prog_cc_c_o=yes
3793  for am_i in 1 2; do
3794    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3795   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3796   ac_status=$?
3797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798   (exit $ac_status); } \
3799         && test -f conftest2.$ac_objext; then
3800      : OK
3801    else
3802      am_cv_prog_cc_c_o=no
3803      break
3804    fi
3805  done
3806  rm -f core conftest*
3807  unset am_i
3808fi
3809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3810$as_echo "$am_cv_prog_cc_c_o" >&6; }
3811if test "$am_cv_prog_cc_c_o" != yes; then
3812   # Losing compiler, so override with the script.
3813   # FIXME: It is wrong to rewrite CC.
3814   # But if we don't then we get into trouble of one sort or another.
3815   # A longer-term fix would be to have automake use am__CC in this case,
3816   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3817   CC="$am_aux_dir/compile $CC"
3818fi
3819ac_ext=c
3820ac_cpp='$CPP $CPPFLAGS'
3821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3823ac_compiler_gnu=$ac_cv_c_compiler_gnu
3824
3825
3826depcc="$CC"   am_compiler_list=
3827
3828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3829$as_echo_n "checking dependency style of $depcc... " >&6; }
3830if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3831  $as_echo_n "(cached) " >&6
3832else
3833  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3834  # We make a subdir and do the tests there.  Otherwise we can end up
3835  # making bogus files that we don't know about and never remove.  For
3836  # instance it was reported that on HP-UX the gcc test will end up
3837  # making a dummy file named 'D' -- because '-MD' means "put the output
3838  # in D".
3839  rm -rf conftest.dir
3840  mkdir conftest.dir
3841  # Copy depcomp to subdir because otherwise we won't find it if we're
3842  # using a relative directory.
3843  cp "$am_depcomp" conftest.dir
3844  cd conftest.dir
3845  # We will build objects and dependencies in a subdirectory because
3846  # it helps to detect inapplicable dependency modes.  For instance
3847  # both Tru64's cc and ICC support -MD to output dependencies as a
3848  # side effect of compilation, but ICC will put the dependencies in
3849  # the current directory while Tru64 will put them in the object
3850  # directory.
3851  mkdir sub
3852
3853  am_cv_CC_dependencies_compiler_type=none
3854  if test "$am_compiler_list" = ""; then
3855     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3856  fi
3857  am__universal=false
3858  case " $depcc " in #(
3859     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3860     esac
3861
3862  for depmode in $am_compiler_list; do
3863    # Setup a source with many dependencies, because some compilers
3864    # like to wrap large dependency lists on column 80 (with \), and
3865    # we should not choose a depcomp mode which is confused by this.
3866    #
3867    # We need to recreate these files for each test, as the compiler may
3868    # overwrite some of them when testing with obscure command lines.
3869    # This happens at least with the AIX C compiler.
3870    : > sub/conftest.c
3871    for i in 1 2 3 4 5 6; do
3872      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3873      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3874      # Solaris 10 /bin/sh.
3875      echo '/* dummy */' > sub/conftst$i.h
3876    done
3877    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3878
3879    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3880    # mode.  It turns out that the SunPro C++ compiler does not properly
3881    # handle '-M -o', and we need to detect this.  Also, some Intel
3882    # versions had trouble with output in subdirs.
3883    am__obj=sub/conftest.${OBJEXT-o}
3884    am__minus_obj="-o $am__obj"
3885    case $depmode in
3886    gcc)
3887      # This depmode causes a compiler race in universal mode.
3888      test "$am__universal" = false || continue
3889      ;;
3890    nosideeffect)
3891      # After this tag, mechanisms are not by side-effect, so they'll
3892      # only be used when explicitly requested.
3893      if test "x$enable_dependency_tracking" = xyes; then
3894	continue
3895      else
3896	break
3897      fi
3898      ;;
3899    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3900      # This compiler won't grok '-c -o', but also, the minuso test has
3901      # not run yet.  These depmodes are late enough in the game, and
3902      # so weak that their functioning should not be impacted.
3903      am__obj=conftest.${OBJEXT-o}
3904      am__minus_obj=
3905      ;;
3906    none) break ;;
3907    esac
3908    if depmode=$depmode \
3909       source=sub/conftest.c object=$am__obj \
3910       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3911       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3912         >/dev/null 2>conftest.err &&
3913       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3914       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3915       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3916       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3917      # icc doesn't choke on unknown options, it will just issue warnings
3918      # or remarks (even with -Werror).  So we grep stderr for any message
3919      # that says an option was ignored or not supported.
3920      # When given -MP, icc 7.0 and 7.1 complain thusly:
3921      #   icc: Command line warning: ignoring option '-M'; no argument required
3922      # The diagnosis changed in icc 8.0:
3923      #   icc: Command line remark: option '-MP' not supported
3924      if (grep 'ignoring option' conftest.err ||
3925          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3926        am_cv_CC_dependencies_compiler_type=$depmode
3927        break
3928      fi
3929    fi
3930  done
3931
3932  cd ..
3933  rm -rf conftest.dir
3934else
3935  am_cv_CC_dependencies_compiler_type=none
3936fi
3937
3938fi
3939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3940$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3941CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3942
3943 if
3944  test "x$enable_dependency_tracking" != xno \
3945  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3946  am__fastdepCC_TRUE=
3947  am__fastdepCC_FALSE='#'
3948else
3949  am__fastdepCC_TRUE='#'
3950  am__fastdepCC_FALSE=
3951fi
3952
3953
3954   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3955$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3956if ${ac_cv_prog_cc_c99+:} false; then :
3957  $as_echo_n "(cached) " >&6
3958else
3959  ac_cv_prog_cc_c99=no
3960ac_save_CC=$CC
3961cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3962/* end confdefs.h.  */
3963#include <stdarg.h>
3964#include <stdbool.h>
3965#include <stdlib.h>
3966#include <wchar.h>
3967#include <stdio.h>
3968
3969// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3970#define debug(...) fprintf (stderr, __VA_ARGS__)
3971#define showlist(...) puts (#__VA_ARGS__)
3972#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3973static void
3974test_varargs_macros (void)
3975{
3976  int x = 1234;
3977  int y = 5678;
3978  debug ("Flag");
3979  debug ("X = %d\n", x);
3980  showlist (The first, second, and third items.);
3981  report (x>y, "x is %d but y is %d", x, y);
3982}
3983
3984// Check long long types.
3985#define BIG64 18446744073709551615ull
3986#define BIG32 4294967295ul
3987#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3988#if !BIG_OK
3989  your preprocessor is broken;
3990#endif
3991#if BIG_OK
3992#else
3993  your preprocessor is broken;
3994#endif
3995static long long int bignum = -9223372036854775807LL;
3996static unsigned long long int ubignum = BIG64;
3997
3998struct incomplete_array
3999{
4000  int datasize;
4001  double data[];
4002};
4003
4004struct named_init {
4005  int number;
4006  const wchar_t *name;
4007  double average;
4008};
4009
4010typedef const char *ccp;
4011
4012static inline int
4013test_restrict (ccp restrict text)
4014{
4015  // See if C++-style comments work.
4016  // Iterate through items via the restricted pointer.
4017  // Also check for declarations in for loops.
4018  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4019    continue;
4020  return 0;
4021}
4022
4023// Check varargs and va_copy.
4024static void
4025test_varargs (const char *format, ...)
4026{
4027  va_list args;
4028  va_start (args, format);
4029  va_list args_copy;
4030  va_copy (args_copy, args);
4031
4032  const char *str;
4033  int number;
4034  float fnumber;
4035
4036  while (*format)
4037    {
4038      switch (*format++)
4039	{
4040	case 's': // string
4041	  str = va_arg (args_copy, const char *);
4042	  break;
4043	case 'd': // int
4044	  number = va_arg (args_copy, int);
4045	  break;
4046	case 'f': // float
4047	  fnumber = va_arg (args_copy, double);
4048	  break;
4049	default:
4050	  break;
4051	}
4052    }
4053  va_end (args_copy);
4054  va_end (args);
4055}
4056
4057int
4058main ()
4059{
4060
4061  // Check bool.
4062  _Bool success = false;
4063
4064  // Check restrict.
4065  if (test_restrict ("String literal") == 0)
4066    success = true;
4067  char *restrict newvar = "Another string";
4068
4069  // Check varargs.
4070  test_varargs ("s, d' f .", "string", 65, 34.234);
4071  test_varargs_macros ();
4072
4073  // Check flexible array members.
4074  struct incomplete_array *ia =
4075    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4076  ia->datasize = 10;
4077  for (int i = 0; i < ia->datasize; ++i)
4078    ia->data[i] = i * 1.234;
4079
4080  // Check named initializers.
4081  struct named_init ni = {
4082    .number = 34,
4083    .name = L"Test wide string",
4084    .average = 543.34343,
4085  };
4086
4087  ni.number = 58;
4088
4089  int dynamic_array[ni.number];
4090  dynamic_array[ni.number - 1] = 543;
4091
4092  // work around unused variable warnings
4093  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4094	  || dynamic_array[ni.number - 1] != 543);
4095
4096  ;
4097  return 0;
4098}
4099_ACEOF
4100for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4101do
4102  CC="$ac_save_CC $ac_arg"
4103  if ac_fn_c_try_compile "$LINENO"; then :
4104  ac_cv_prog_cc_c99=$ac_arg
4105fi
4106rm -f core conftest.err conftest.$ac_objext
4107  test "x$ac_cv_prog_cc_c99" != "xno" && break
4108done
4109rm -f conftest.$ac_ext
4110CC=$ac_save_CC
4111
4112fi
4113# AC_CACHE_VAL
4114case "x$ac_cv_prog_cc_c99" in
4115  x)
4116    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4117$as_echo "none needed" >&6; } ;;
4118  xno)
4119    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4120$as_echo "unsupported" >&6; } ;;
4121  *)
4122    CC="$CC $ac_cv_prog_cc_c99"
4123    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4124$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4125esac
4126if test "x$ac_cv_prog_cc_c99" != xno; then :
4127
4128fi
4129
4130
4131
4132ac_ext=c
4133ac_cpp='$CPP $CPPFLAGS'
4134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4136ac_compiler_gnu=$ac_cv_c_compiler_gnu
4137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4138$as_echo_n "checking how to run the C preprocessor... " >&6; }
4139# On Suns, sometimes $CPP names a directory.
4140if test -n "$CPP" && test -d "$CPP"; then
4141  CPP=
4142fi
4143if test -z "$CPP"; then
4144  if ${ac_cv_prog_CPP+:} false; then :
4145  $as_echo_n "(cached) " >&6
4146else
4147      # Double quotes because CPP needs to be expanded
4148    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4149    do
4150      ac_preproc_ok=false
4151for ac_c_preproc_warn_flag in '' yes
4152do
4153  # Use a header file that comes with gcc, so configuring glibc
4154  # with a fresh cross-compiler works.
4155  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4156  # <limits.h> exists even on freestanding compilers.
4157  # On the NeXT, cc -E runs the code through the compiler's parser,
4158  # not just through cpp. "Syntax error" is here to catch this case.
4159  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160/* end confdefs.h.  */
4161#ifdef __STDC__
4162# include <limits.h>
4163#else
4164# include <assert.h>
4165#endif
4166		     Syntax error
4167_ACEOF
4168if ac_fn_c_try_cpp "$LINENO"; then :
4169
4170else
4171  # Broken: fails on valid input.
4172continue
4173fi
4174rm -f conftest.err conftest.i conftest.$ac_ext
4175
4176  # OK, works on sane cases.  Now check whether nonexistent headers
4177  # can be detected and how.
4178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4179/* end confdefs.h.  */
4180#include <ac_nonexistent.h>
4181_ACEOF
4182if ac_fn_c_try_cpp "$LINENO"; then :
4183  # Broken: success on invalid input.
4184continue
4185else
4186  # Passes both tests.
4187ac_preproc_ok=:
4188break
4189fi
4190rm -f conftest.err conftest.i conftest.$ac_ext
4191
4192done
4193# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4194rm -f conftest.i conftest.err conftest.$ac_ext
4195if $ac_preproc_ok; then :
4196  break
4197fi
4198
4199    done
4200    ac_cv_prog_CPP=$CPP
4201
4202fi
4203  CPP=$ac_cv_prog_CPP
4204else
4205  ac_cv_prog_CPP=$CPP
4206fi
4207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4208$as_echo "$CPP" >&6; }
4209ac_preproc_ok=false
4210for ac_c_preproc_warn_flag in '' yes
4211do
4212  # Use a header file that comes with gcc, so configuring glibc
4213  # with a fresh cross-compiler works.
4214  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4215  # <limits.h> exists even on freestanding compilers.
4216  # On the NeXT, cc -E runs the code through the compiler's parser,
4217  # not just through cpp. "Syntax error" is here to catch this case.
4218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4219/* end confdefs.h.  */
4220#ifdef __STDC__
4221# include <limits.h>
4222#else
4223# include <assert.h>
4224#endif
4225		     Syntax error
4226_ACEOF
4227if ac_fn_c_try_cpp "$LINENO"; then :
4228
4229else
4230  # Broken: fails on valid input.
4231continue
4232fi
4233rm -f conftest.err conftest.i conftest.$ac_ext
4234
4235  # OK, works on sane cases.  Now check whether nonexistent headers
4236  # can be detected and how.
4237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238/* end confdefs.h.  */
4239#include <ac_nonexistent.h>
4240_ACEOF
4241if ac_fn_c_try_cpp "$LINENO"; then :
4242  # Broken: success on invalid input.
4243continue
4244else
4245  # Passes both tests.
4246ac_preproc_ok=:
4247break
4248fi
4249rm -f conftest.err conftest.i conftest.$ac_ext
4250
4251done
4252# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4253rm -f conftest.i conftest.err conftest.$ac_ext
4254if $ac_preproc_ok; then :
4255
4256else
4257  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4258$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4259as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4260See \`config.log' for more details" "$LINENO" 5; }
4261fi
4262
4263ac_ext=c
4264ac_cpp='$CPP $CPPFLAGS'
4265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4267ac_compiler_gnu=$ac_cv_c_compiler_gnu
4268
4269
4270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4271$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4272if ${ac_cv_path_GREP+:} false; then :
4273  $as_echo_n "(cached) " >&6
4274else
4275  if test -z "$GREP"; then
4276  ac_path_GREP_found=false
4277  # Loop through the user's path and test for each of PROGNAME-LIST
4278  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4280do
4281  IFS=$as_save_IFS
4282  test -z "$as_dir" && as_dir=.
4283    for ac_prog in grep ggrep; do
4284    for ac_exec_ext in '' $ac_executable_extensions; do
4285      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4286      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4287# Check for GNU ac_path_GREP and select it if it is found.
4288  # Check for GNU $ac_path_GREP
4289case `"$ac_path_GREP" --version 2>&1` in
4290*GNU*)
4291  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4292*)
4293  ac_count=0
4294  $as_echo_n 0123456789 >"conftest.in"
4295  while :
4296  do
4297    cat "conftest.in" "conftest.in" >"conftest.tmp"
4298    mv "conftest.tmp" "conftest.in"
4299    cp "conftest.in" "conftest.nl"
4300    $as_echo 'GREP' >> "conftest.nl"
4301    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4302    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4303    as_fn_arith $ac_count + 1 && ac_count=$as_val
4304    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4305      # Best one so far, save it but keep looking for a better one
4306      ac_cv_path_GREP="$ac_path_GREP"
4307      ac_path_GREP_max=$ac_count
4308    fi
4309    # 10*(2^10) chars as input seems more than enough
4310    test $ac_count -gt 10 && break
4311  done
4312  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4313esac
4314
4315      $ac_path_GREP_found && break 3
4316    done
4317  done
4318  done
4319IFS=$as_save_IFS
4320  if test -z "$ac_cv_path_GREP"; then
4321    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4322  fi
4323else
4324  ac_cv_path_GREP=$GREP
4325fi
4326
4327fi
4328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4329$as_echo "$ac_cv_path_GREP" >&6; }
4330 GREP="$ac_cv_path_GREP"
4331
4332
4333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4334$as_echo_n "checking for egrep... " >&6; }
4335if ${ac_cv_path_EGREP+:} false; then :
4336  $as_echo_n "(cached) " >&6
4337else
4338  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4339   then ac_cv_path_EGREP="$GREP -E"
4340   else
4341     if test -z "$EGREP"; then
4342  ac_path_EGREP_found=false
4343  # Loop through the user's path and test for each of PROGNAME-LIST
4344  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4345for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4346do
4347  IFS=$as_save_IFS
4348  test -z "$as_dir" && as_dir=.
4349    for ac_prog in egrep; do
4350    for ac_exec_ext in '' $ac_executable_extensions; do
4351      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4352      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4353# Check for GNU ac_path_EGREP and select it if it is found.
4354  # Check for GNU $ac_path_EGREP
4355case `"$ac_path_EGREP" --version 2>&1` in
4356*GNU*)
4357  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4358*)
4359  ac_count=0
4360  $as_echo_n 0123456789 >"conftest.in"
4361  while :
4362  do
4363    cat "conftest.in" "conftest.in" >"conftest.tmp"
4364    mv "conftest.tmp" "conftest.in"
4365    cp "conftest.in" "conftest.nl"
4366    $as_echo 'EGREP' >> "conftest.nl"
4367    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4368    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4369    as_fn_arith $ac_count + 1 && ac_count=$as_val
4370    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4371      # Best one so far, save it but keep looking for a better one
4372      ac_cv_path_EGREP="$ac_path_EGREP"
4373      ac_path_EGREP_max=$ac_count
4374    fi
4375    # 10*(2^10) chars as input seems more than enough
4376    test $ac_count -gt 10 && break
4377  done
4378  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4379esac
4380
4381      $ac_path_EGREP_found && break 3
4382    done
4383  done
4384  done
4385IFS=$as_save_IFS
4386  if test -z "$ac_cv_path_EGREP"; then
4387    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4388  fi
4389else
4390  ac_cv_path_EGREP=$EGREP
4391fi
4392
4393   fi
4394fi
4395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4396$as_echo "$ac_cv_path_EGREP" >&6; }
4397 EGREP="$ac_cv_path_EGREP"
4398
4399
4400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4401$as_echo_n "checking for ANSI C header files... " >&6; }
4402if ${ac_cv_header_stdc+:} false; then :
4403  $as_echo_n "(cached) " >&6
4404else
4405  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4406/* end confdefs.h.  */
4407#include <stdlib.h>
4408#include <stdarg.h>
4409#include <string.h>
4410#include <float.h>
4411
4412int
4413main ()
4414{
4415
4416  ;
4417  return 0;
4418}
4419_ACEOF
4420if ac_fn_c_try_compile "$LINENO"; then :
4421  ac_cv_header_stdc=yes
4422else
4423  ac_cv_header_stdc=no
4424fi
4425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4426
4427if test $ac_cv_header_stdc = yes; then
4428  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4430/* end confdefs.h.  */
4431#include <string.h>
4432
4433_ACEOF
4434if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4435  $EGREP "memchr" >/dev/null 2>&1; then :
4436
4437else
4438  ac_cv_header_stdc=no
4439fi
4440rm -f conftest*
4441
4442fi
4443
4444if test $ac_cv_header_stdc = yes; then
4445  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4447/* end confdefs.h.  */
4448#include <stdlib.h>
4449
4450_ACEOF
4451if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4452  $EGREP "free" >/dev/null 2>&1; then :
4453
4454else
4455  ac_cv_header_stdc=no
4456fi
4457rm -f conftest*
4458
4459fi
4460
4461if test $ac_cv_header_stdc = yes; then
4462  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4463  if test "$cross_compiling" = yes; then :
4464  :
4465else
4466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4467/* end confdefs.h.  */
4468#include <ctype.h>
4469#include <stdlib.h>
4470#if ((' ' & 0x0FF) == 0x020)
4471# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4472# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4473#else
4474# define ISLOWER(c) \
4475		   (('a' <= (c) && (c) <= 'i') \
4476		     || ('j' <= (c) && (c) <= 'r') \
4477		     || ('s' <= (c) && (c) <= 'z'))
4478# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4479#endif
4480
4481#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4482int
4483main ()
4484{
4485  int i;
4486  for (i = 0; i < 256; i++)
4487    if (XOR (islower (i), ISLOWER (i))
4488	|| toupper (i) != TOUPPER (i))
4489      return 2;
4490  return 0;
4491}
4492_ACEOF
4493if ac_fn_c_try_run "$LINENO"; then :
4494
4495else
4496  ac_cv_header_stdc=no
4497fi
4498rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4499  conftest.$ac_objext conftest.beam conftest.$ac_ext
4500fi
4501
4502fi
4503fi
4504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4505$as_echo "$ac_cv_header_stdc" >&6; }
4506if test $ac_cv_header_stdc = yes; then
4507
4508$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4509
4510fi
4511
4512# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4513for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4514		  inttypes.h stdint.h unistd.h
4515do :
4516  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4517ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4518"
4519if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4520  cat >>confdefs.h <<_ACEOF
4521#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4522_ACEOF
4523
4524fi
4525
4526done
4527
4528
4529
4530
4531
4532
4533ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4534if test "x$ac_cv_have_decl___clang__" = xyes; then :
4535  CLANGCC="yes"
4536else
4537  CLANGCC="no"
4538fi
4539
4540ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4541if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4542  INTELCC="yes"
4543else
4544  INTELCC="no"
4545fi
4546
4547ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4548if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4549  SUNCC="yes"
4550else
4551  SUNCC="no"
4552fi
4553
4554
4555
4556
4557if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4558	if test -n "$ac_tool_prefix"; then
4559  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4560set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4562$as_echo_n "checking for $ac_word... " >&6; }
4563if ${ac_cv_path_PKG_CONFIG+:} false; then :
4564  $as_echo_n "(cached) " >&6
4565else
4566  case $PKG_CONFIG in
4567  [\\/]* | ?:[\\/]*)
4568  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4569  ;;
4570  *)
4571  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572for as_dir in $PATH
4573do
4574  IFS=$as_save_IFS
4575  test -z "$as_dir" && as_dir=.
4576    for ac_exec_ext in '' $ac_executable_extensions; do
4577  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4578    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4579    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4580    break 2
4581  fi
4582done
4583  done
4584IFS=$as_save_IFS
4585
4586  ;;
4587esac
4588fi
4589PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4590if test -n "$PKG_CONFIG"; then
4591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4592$as_echo "$PKG_CONFIG" >&6; }
4593else
4594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4595$as_echo "no" >&6; }
4596fi
4597
4598
4599fi
4600if test -z "$ac_cv_path_PKG_CONFIG"; then
4601  ac_pt_PKG_CONFIG=$PKG_CONFIG
4602  # Extract the first word of "pkg-config", so it can be a program name with args.
4603set dummy pkg-config; ac_word=$2
4604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4605$as_echo_n "checking for $ac_word... " >&6; }
4606if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4607  $as_echo_n "(cached) " >&6
4608else
4609  case $ac_pt_PKG_CONFIG in
4610  [\\/]* | ?:[\\/]*)
4611  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4612  ;;
4613  *)
4614  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615for as_dir in $PATH
4616do
4617  IFS=$as_save_IFS
4618  test -z "$as_dir" && as_dir=.
4619    for ac_exec_ext in '' $ac_executable_extensions; do
4620  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4621    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4622    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4623    break 2
4624  fi
4625done
4626  done
4627IFS=$as_save_IFS
4628
4629  ;;
4630esac
4631fi
4632ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4633if test -n "$ac_pt_PKG_CONFIG"; then
4634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4635$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4636else
4637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4638$as_echo "no" >&6; }
4639fi
4640
4641  if test "x$ac_pt_PKG_CONFIG" = x; then
4642    PKG_CONFIG=""
4643  else
4644    case $cross_compiling:$ac_tool_warned in
4645yes:)
4646{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4647$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4648ac_tool_warned=yes ;;
4649esac
4650    PKG_CONFIG=$ac_pt_PKG_CONFIG
4651  fi
4652else
4653  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4654fi
4655
4656fi
4657if test -n "$PKG_CONFIG"; then
4658	_pkg_min_version=0.9.0
4659	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4660$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4661	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4662		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4663$as_echo "yes" >&6; }
4664	else
4665		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4666$as_echo "no" >&6; }
4667		PKG_CONFIG=""
4668	fi
4669
4670fi
4671# Make sure we can run config.sub.
4672$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4673  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4674
4675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4676$as_echo_n "checking build system type... " >&6; }
4677if ${ac_cv_build+:} false; then :
4678  $as_echo_n "(cached) " >&6
4679else
4680  ac_build_alias=$build_alias
4681test "x$ac_build_alias" = x &&
4682  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4683test "x$ac_build_alias" = x &&
4684  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4685ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4686  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4687
4688fi
4689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4690$as_echo "$ac_cv_build" >&6; }
4691case $ac_cv_build in
4692*-*-*) ;;
4693*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4694esac
4695build=$ac_cv_build
4696ac_save_IFS=$IFS; IFS='-'
4697set x $ac_cv_build
4698shift
4699build_cpu=$1
4700build_vendor=$2
4701shift; shift
4702# Remember, the first character of IFS is used to create $*,
4703# except with old shells:
4704build_os=$*
4705IFS=$ac_save_IFS
4706case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4707
4708
4709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4710$as_echo_n "checking host system type... " >&6; }
4711if ${ac_cv_host+:} false; then :
4712  $as_echo_n "(cached) " >&6
4713else
4714  if test "x$host_alias" = x; then
4715  ac_cv_host=$ac_cv_build
4716else
4717  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4718    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4719fi
4720
4721fi
4722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4723$as_echo "$ac_cv_host" >&6; }
4724case $ac_cv_host in
4725*-*-*) ;;
4726*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4727esac
4728host=$ac_cv_host
4729ac_save_IFS=$IFS; IFS='-'
4730set x $ac_cv_host
4731shift
4732host_cpu=$1
4733host_vendor=$2
4734shift; shift
4735# Remember, the first character of IFS is used to create $*,
4736# except with old shells:
4737host_os=$*
4738IFS=$ac_save_IFS
4739case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4740
4741
4742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4743$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4744if ${ac_cv_path_SED+:} false; then :
4745  $as_echo_n "(cached) " >&6
4746else
4747            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4748     for ac_i in 1 2 3 4 5 6 7; do
4749       ac_script="$ac_script$as_nl$ac_script"
4750     done
4751     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4752     { ac_script=; unset ac_script;}
4753     if test -z "$SED"; then
4754  ac_path_SED_found=false
4755  # Loop through the user's path and test for each of PROGNAME-LIST
4756  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4757for as_dir in $PATH
4758do
4759  IFS=$as_save_IFS
4760  test -z "$as_dir" && as_dir=.
4761    for ac_prog in sed gsed; do
4762    for ac_exec_ext in '' $ac_executable_extensions; do
4763      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4764      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4765# Check for GNU ac_path_SED and select it if it is found.
4766  # Check for GNU $ac_path_SED
4767case `"$ac_path_SED" --version 2>&1` in
4768*GNU*)
4769  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4770*)
4771  ac_count=0
4772  $as_echo_n 0123456789 >"conftest.in"
4773  while :
4774  do
4775    cat "conftest.in" "conftest.in" >"conftest.tmp"
4776    mv "conftest.tmp" "conftest.in"
4777    cp "conftest.in" "conftest.nl"
4778    $as_echo '' >> "conftest.nl"
4779    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4780    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4781    as_fn_arith $ac_count + 1 && ac_count=$as_val
4782    if test $ac_count -gt ${ac_path_SED_max-0}; then
4783      # Best one so far, save it but keep looking for a better one
4784      ac_cv_path_SED="$ac_path_SED"
4785      ac_path_SED_max=$ac_count
4786    fi
4787    # 10*(2^10) chars as input seems more than enough
4788    test $ac_count -gt 10 && break
4789  done
4790  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4791esac
4792
4793      $ac_path_SED_found && break 3
4794    done
4795  done
4796  done
4797IFS=$as_save_IFS
4798  if test -z "$ac_cv_path_SED"; then
4799    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4800  fi
4801else
4802  ac_cv_path_SED=$SED
4803fi
4804
4805fi
4806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4807$as_echo "$ac_cv_path_SED" >&6; }
4808 SED="$ac_cv_path_SED"
4809  rm -f conftest.sed
4810
4811
4812
4813
4814
4815
4816# Check whether --enable-selective-werror was given.
4817if test "${enable_selective_werror+set}" = set; then :
4818  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4819else
4820  SELECTIVE_WERROR=yes
4821fi
4822
4823
4824
4825
4826
4827# -v is too short to test reliably with XORG_TESTSET_CFLAG
4828if test "x$SUNCC" = "xyes"; then
4829    BASE_CFLAGS="-v"
4830else
4831    BASE_CFLAGS=""
4832fi
4833
4834# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848xorg_testset_save_CFLAGS="$CFLAGS"
4849
4850if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4851	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4852	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4853$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4854if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4855  $as_echo_n "(cached) " >&6
4856else
4857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4858/* end confdefs.h.  */
4859int i;
4860_ACEOF
4861if ac_fn_c_try_compile "$LINENO"; then :
4862  xorg_cv_cc_flag_unknown_warning_option=yes
4863else
4864  xorg_cv_cc_flag_unknown_warning_option=no
4865fi
4866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4867fi
4868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4869$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4870	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4871	CFLAGS="$xorg_testset_save_CFLAGS"
4872fi
4873
4874if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4875	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4876		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4877	fi
4878	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4879	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4880$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4881if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4882  $as_echo_n "(cached) " >&6
4883else
4884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885/* end confdefs.h.  */
4886int i;
4887_ACEOF
4888if ac_fn_c_try_compile "$LINENO"; then :
4889  xorg_cv_cc_flag_unused_command_line_argument=yes
4890else
4891  xorg_cv_cc_flag_unused_command_line_argument=no
4892fi
4893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4894fi
4895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4896$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4897	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4898	CFLAGS="$xorg_testset_save_CFLAGS"
4899fi
4900
4901found="no"
4902
4903	if test $found = "no" ; then
4904		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4905			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4906		fi
4907
4908		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4909			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4910		fi
4911
4912		CFLAGS="$CFLAGS -Wall"
4913
4914		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4915$as_echo_n "checking if $CC supports -Wall... " >&6; }
4916		cacheid=xorg_cv_cc_flag__Wall
4917		if eval \${$cacheid+:} false; then :
4918  $as_echo_n "(cached) " >&6
4919else
4920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4921/* end confdefs.h.  */
4922int i;
4923int
4924main ()
4925{
4926
4927  ;
4928  return 0;
4929}
4930_ACEOF
4931if ac_fn_c_try_link "$LINENO"; then :
4932  eval $cacheid=yes
4933else
4934  eval $cacheid=no
4935fi
4936rm -f core conftest.err conftest.$ac_objext \
4937    conftest$ac_exeext conftest.$ac_ext
4938fi
4939
4940
4941		CFLAGS="$xorg_testset_save_CFLAGS"
4942
4943		eval supported=\$$cacheid
4944		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4945$as_echo "$supported" >&6; }
4946		if test "$supported" = "yes" ; then
4947			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4948			found="yes"
4949		fi
4950	fi
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966xorg_testset_save_CFLAGS="$CFLAGS"
4967
4968if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4969	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4970	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4971$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4972if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4973  $as_echo_n "(cached) " >&6
4974else
4975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4976/* end confdefs.h.  */
4977int i;
4978_ACEOF
4979if ac_fn_c_try_compile "$LINENO"; then :
4980  xorg_cv_cc_flag_unknown_warning_option=yes
4981else
4982  xorg_cv_cc_flag_unknown_warning_option=no
4983fi
4984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4985fi
4986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4987$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4988	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4989	CFLAGS="$xorg_testset_save_CFLAGS"
4990fi
4991
4992if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4993	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4994		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4995	fi
4996	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4997	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4998$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4999if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5000  $as_echo_n "(cached) " >&6
5001else
5002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003/* end confdefs.h.  */
5004int i;
5005_ACEOF
5006if ac_fn_c_try_compile "$LINENO"; then :
5007  xorg_cv_cc_flag_unused_command_line_argument=yes
5008else
5009  xorg_cv_cc_flag_unused_command_line_argument=no
5010fi
5011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5012fi
5013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5014$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5015	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5016	CFLAGS="$xorg_testset_save_CFLAGS"
5017fi
5018
5019found="no"
5020
5021	if test $found = "no" ; then
5022		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5023			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5024		fi
5025
5026		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5027			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5028		fi
5029
5030		CFLAGS="$CFLAGS -Wpointer-arith"
5031
5032		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5033$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5034		cacheid=xorg_cv_cc_flag__Wpointer_arith
5035		if eval \${$cacheid+:} false; then :
5036  $as_echo_n "(cached) " >&6
5037else
5038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5039/* end confdefs.h.  */
5040int i;
5041int
5042main ()
5043{
5044
5045  ;
5046  return 0;
5047}
5048_ACEOF
5049if ac_fn_c_try_link "$LINENO"; then :
5050  eval $cacheid=yes
5051else
5052  eval $cacheid=no
5053fi
5054rm -f core conftest.err conftest.$ac_objext \
5055    conftest$ac_exeext conftest.$ac_ext
5056fi
5057
5058
5059		CFLAGS="$xorg_testset_save_CFLAGS"
5060
5061		eval supported=\$$cacheid
5062		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5063$as_echo "$supported" >&6; }
5064		if test "$supported" = "yes" ; then
5065			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5066			found="yes"
5067		fi
5068	fi
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084xorg_testset_save_CFLAGS="$CFLAGS"
5085
5086if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5087	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5088	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5089$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5090if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5091  $as_echo_n "(cached) " >&6
5092else
5093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5094/* end confdefs.h.  */
5095int i;
5096_ACEOF
5097if ac_fn_c_try_compile "$LINENO"; then :
5098  xorg_cv_cc_flag_unknown_warning_option=yes
5099else
5100  xorg_cv_cc_flag_unknown_warning_option=no
5101fi
5102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5103fi
5104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5105$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5106	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5107	CFLAGS="$xorg_testset_save_CFLAGS"
5108fi
5109
5110if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5111	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5112		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5113	fi
5114	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5115	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5116$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5117if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5118  $as_echo_n "(cached) " >&6
5119else
5120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121/* end confdefs.h.  */
5122int i;
5123_ACEOF
5124if ac_fn_c_try_compile "$LINENO"; then :
5125  xorg_cv_cc_flag_unused_command_line_argument=yes
5126else
5127  xorg_cv_cc_flag_unused_command_line_argument=no
5128fi
5129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5130fi
5131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5132$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5133	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5134	CFLAGS="$xorg_testset_save_CFLAGS"
5135fi
5136
5137found="no"
5138
5139	if test $found = "no" ; then
5140		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5141			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5142		fi
5143
5144		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5145			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5146		fi
5147
5148		CFLAGS="$CFLAGS -Wmissing-declarations"
5149
5150		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5151$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5152		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5153		if eval \${$cacheid+:} false; then :
5154  $as_echo_n "(cached) " >&6
5155else
5156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5157/* end confdefs.h.  */
5158int i;
5159int
5160main ()
5161{
5162
5163  ;
5164  return 0;
5165}
5166_ACEOF
5167if ac_fn_c_try_link "$LINENO"; then :
5168  eval $cacheid=yes
5169else
5170  eval $cacheid=no
5171fi
5172rm -f core conftest.err conftest.$ac_objext \
5173    conftest$ac_exeext conftest.$ac_ext
5174fi
5175
5176
5177		CFLAGS="$xorg_testset_save_CFLAGS"
5178
5179		eval supported=\$$cacheid
5180		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5181$as_echo "$supported" >&6; }
5182		if test "$supported" = "yes" ; then
5183			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5184			found="yes"
5185		fi
5186	fi
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202xorg_testset_save_CFLAGS="$CFLAGS"
5203
5204if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5205	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5206	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5207$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5208if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5209  $as_echo_n "(cached) " >&6
5210else
5211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5212/* end confdefs.h.  */
5213int i;
5214_ACEOF
5215if ac_fn_c_try_compile "$LINENO"; then :
5216  xorg_cv_cc_flag_unknown_warning_option=yes
5217else
5218  xorg_cv_cc_flag_unknown_warning_option=no
5219fi
5220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5221fi
5222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5223$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5224	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5225	CFLAGS="$xorg_testset_save_CFLAGS"
5226fi
5227
5228if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5229	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5230		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5231	fi
5232	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5233	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5234$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5235if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5236  $as_echo_n "(cached) " >&6
5237else
5238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5239/* end confdefs.h.  */
5240int i;
5241_ACEOF
5242if ac_fn_c_try_compile "$LINENO"; then :
5243  xorg_cv_cc_flag_unused_command_line_argument=yes
5244else
5245  xorg_cv_cc_flag_unused_command_line_argument=no
5246fi
5247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5248fi
5249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5250$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5251	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5252	CFLAGS="$xorg_testset_save_CFLAGS"
5253fi
5254
5255found="no"
5256
5257	if test $found = "no" ; then
5258		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5259			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5260		fi
5261
5262		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5263			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5264		fi
5265
5266		CFLAGS="$CFLAGS -Wformat=2"
5267
5268		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5269$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5270		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5271		if eval \${$cacheid+:} false; then :
5272  $as_echo_n "(cached) " >&6
5273else
5274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5275/* end confdefs.h.  */
5276int i;
5277int
5278main ()
5279{
5280
5281  ;
5282  return 0;
5283}
5284_ACEOF
5285if ac_fn_c_try_link "$LINENO"; then :
5286  eval $cacheid=yes
5287else
5288  eval $cacheid=no
5289fi
5290rm -f core conftest.err conftest.$ac_objext \
5291    conftest$ac_exeext conftest.$ac_ext
5292fi
5293
5294
5295		CFLAGS="$xorg_testset_save_CFLAGS"
5296
5297		eval supported=\$$cacheid
5298		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5299$as_echo "$supported" >&6; }
5300		if test "$supported" = "yes" ; then
5301			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5302			found="yes"
5303		fi
5304	fi
5305
5306	if test $found = "no" ; then
5307		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5308			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5309		fi
5310
5311		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5312			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5313		fi
5314
5315		CFLAGS="$CFLAGS -Wformat"
5316
5317		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5318$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5319		cacheid=xorg_cv_cc_flag__Wformat
5320		if eval \${$cacheid+:} false; then :
5321  $as_echo_n "(cached) " >&6
5322else
5323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324/* end confdefs.h.  */
5325int i;
5326int
5327main ()
5328{
5329
5330  ;
5331  return 0;
5332}
5333_ACEOF
5334if ac_fn_c_try_link "$LINENO"; then :
5335  eval $cacheid=yes
5336else
5337  eval $cacheid=no
5338fi
5339rm -f core conftest.err conftest.$ac_objext \
5340    conftest$ac_exeext conftest.$ac_ext
5341fi
5342
5343
5344		CFLAGS="$xorg_testset_save_CFLAGS"
5345
5346		eval supported=\$$cacheid
5347		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5348$as_echo "$supported" >&6; }
5349		if test "$supported" = "yes" ; then
5350			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5351			found="yes"
5352		fi
5353	fi
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371xorg_testset_save_CFLAGS="$CFLAGS"
5372
5373if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5374	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5375	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5376$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5377if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5378  $as_echo_n "(cached) " >&6
5379else
5380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5381/* end confdefs.h.  */
5382int i;
5383_ACEOF
5384if ac_fn_c_try_compile "$LINENO"; then :
5385  xorg_cv_cc_flag_unknown_warning_option=yes
5386else
5387  xorg_cv_cc_flag_unknown_warning_option=no
5388fi
5389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5390fi
5391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5392$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5393	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5394	CFLAGS="$xorg_testset_save_CFLAGS"
5395fi
5396
5397if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5398	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5399		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5400	fi
5401	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5402	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5403$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5404if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5405  $as_echo_n "(cached) " >&6
5406else
5407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408/* end confdefs.h.  */
5409int i;
5410_ACEOF
5411if ac_fn_c_try_compile "$LINENO"; then :
5412  xorg_cv_cc_flag_unused_command_line_argument=yes
5413else
5414  xorg_cv_cc_flag_unused_command_line_argument=no
5415fi
5416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5417fi
5418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5419$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5420	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5421	CFLAGS="$xorg_testset_save_CFLAGS"
5422fi
5423
5424found="no"
5425
5426	if test $found = "no" ; then
5427		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5428			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5429		fi
5430
5431		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5432			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5433		fi
5434
5435		CFLAGS="$CFLAGS -Wstrict-prototypes"
5436
5437		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5438$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5439		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5440		if eval \${$cacheid+:} false; then :
5441  $as_echo_n "(cached) " >&6
5442else
5443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5444/* end confdefs.h.  */
5445int i;
5446int
5447main ()
5448{
5449
5450  ;
5451  return 0;
5452}
5453_ACEOF
5454if ac_fn_c_try_link "$LINENO"; then :
5455  eval $cacheid=yes
5456else
5457  eval $cacheid=no
5458fi
5459rm -f core conftest.err conftest.$ac_objext \
5460    conftest$ac_exeext conftest.$ac_ext
5461fi
5462
5463
5464		CFLAGS="$xorg_testset_save_CFLAGS"
5465
5466		eval supported=\$$cacheid
5467		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5468$as_echo "$supported" >&6; }
5469		if test "$supported" = "yes" ; then
5470			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5471			found="yes"
5472		fi
5473	fi
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489xorg_testset_save_CFLAGS="$CFLAGS"
5490
5491if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5492	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5493	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5494$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5495if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5496  $as_echo_n "(cached) " >&6
5497else
5498  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5499/* end confdefs.h.  */
5500int i;
5501_ACEOF
5502if ac_fn_c_try_compile "$LINENO"; then :
5503  xorg_cv_cc_flag_unknown_warning_option=yes
5504else
5505  xorg_cv_cc_flag_unknown_warning_option=no
5506fi
5507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5508fi
5509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5510$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5511	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5512	CFLAGS="$xorg_testset_save_CFLAGS"
5513fi
5514
5515if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5516	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5517		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5518	fi
5519	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5520	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5521$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5522if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5523  $as_echo_n "(cached) " >&6
5524else
5525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526/* end confdefs.h.  */
5527int i;
5528_ACEOF
5529if ac_fn_c_try_compile "$LINENO"; then :
5530  xorg_cv_cc_flag_unused_command_line_argument=yes
5531else
5532  xorg_cv_cc_flag_unused_command_line_argument=no
5533fi
5534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5535fi
5536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5537$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5538	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5539	CFLAGS="$xorg_testset_save_CFLAGS"
5540fi
5541
5542found="no"
5543
5544	if test $found = "no" ; then
5545		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5546			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5547		fi
5548
5549		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5550			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5551		fi
5552
5553		CFLAGS="$CFLAGS -Wmissing-prototypes"
5554
5555		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5556$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5557		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5558		if eval \${$cacheid+:} false; then :
5559  $as_echo_n "(cached) " >&6
5560else
5561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5562/* end confdefs.h.  */
5563int i;
5564int
5565main ()
5566{
5567
5568  ;
5569  return 0;
5570}
5571_ACEOF
5572if ac_fn_c_try_link "$LINENO"; then :
5573  eval $cacheid=yes
5574else
5575  eval $cacheid=no
5576fi
5577rm -f core conftest.err conftest.$ac_objext \
5578    conftest$ac_exeext conftest.$ac_ext
5579fi
5580
5581
5582		CFLAGS="$xorg_testset_save_CFLAGS"
5583
5584		eval supported=\$$cacheid
5585		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5586$as_echo "$supported" >&6; }
5587		if test "$supported" = "yes" ; then
5588			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5589			found="yes"
5590		fi
5591	fi
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607xorg_testset_save_CFLAGS="$CFLAGS"
5608
5609if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5610	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5611	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5612$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5613if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5614  $as_echo_n "(cached) " >&6
5615else
5616  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5617/* end confdefs.h.  */
5618int i;
5619_ACEOF
5620if ac_fn_c_try_compile "$LINENO"; then :
5621  xorg_cv_cc_flag_unknown_warning_option=yes
5622else
5623  xorg_cv_cc_flag_unknown_warning_option=no
5624fi
5625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5626fi
5627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5628$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5629	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5630	CFLAGS="$xorg_testset_save_CFLAGS"
5631fi
5632
5633if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5634	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5635		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5636	fi
5637	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5638	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5639$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5640if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5641  $as_echo_n "(cached) " >&6
5642else
5643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644/* end confdefs.h.  */
5645int i;
5646_ACEOF
5647if ac_fn_c_try_compile "$LINENO"; then :
5648  xorg_cv_cc_flag_unused_command_line_argument=yes
5649else
5650  xorg_cv_cc_flag_unused_command_line_argument=no
5651fi
5652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5653fi
5654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5655$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5656	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5657	CFLAGS="$xorg_testset_save_CFLAGS"
5658fi
5659
5660found="no"
5661
5662	if test $found = "no" ; then
5663		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5664			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5665		fi
5666
5667		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5668			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5669		fi
5670
5671		CFLAGS="$CFLAGS -Wnested-externs"
5672
5673		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5674$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5675		cacheid=xorg_cv_cc_flag__Wnested_externs
5676		if eval \${$cacheid+:} false; then :
5677  $as_echo_n "(cached) " >&6
5678else
5679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680/* end confdefs.h.  */
5681int i;
5682int
5683main ()
5684{
5685
5686  ;
5687  return 0;
5688}
5689_ACEOF
5690if ac_fn_c_try_link "$LINENO"; then :
5691  eval $cacheid=yes
5692else
5693  eval $cacheid=no
5694fi
5695rm -f core conftest.err conftest.$ac_objext \
5696    conftest$ac_exeext conftest.$ac_ext
5697fi
5698
5699
5700		CFLAGS="$xorg_testset_save_CFLAGS"
5701
5702		eval supported=\$$cacheid
5703		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5704$as_echo "$supported" >&6; }
5705		if test "$supported" = "yes" ; then
5706			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5707			found="yes"
5708		fi
5709	fi
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725xorg_testset_save_CFLAGS="$CFLAGS"
5726
5727if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5728	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5729	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5730$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5731if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5732  $as_echo_n "(cached) " >&6
5733else
5734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5735/* end confdefs.h.  */
5736int i;
5737_ACEOF
5738if ac_fn_c_try_compile "$LINENO"; then :
5739  xorg_cv_cc_flag_unknown_warning_option=yes
5740else
5741  xorg_cv_cc_flag_unknown_warning_option=no
5742fi
5743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5744fi
5745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5746$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5747	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5748	CFLAGS="$xorg_testset_save_CFLAGS"
5749fi
5750
5751if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5752	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5753		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5754	fi
5755	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5756	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5757$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5758if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5759  $as_echo_n "(cached) " >&6
5760else
5761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5762/* end confdefs.h.  */
5763int i;
5764_ACEOF
5765if ac_fn_c_try_compile "$LINENO"; then :
5766  xorg_cv_cc_flag_unused_command_line_argument=yes
5767else
5768  xorg_cv_cc_flag_unused_command_line_argument=no
5769fi
5770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5771fi
5772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5773$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5774	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5775	CFLAGS="$xorg_testset_save_CFLAGS"
5776fi
5777
5778found="no"
5779
5780	if test $found = "no" ; then
5781		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5782			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5783		fi
5784
5785		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5786			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5787		fi
5788
5789		CFLAGS="$CFLAGS -Wbad-function-cast"
5790
5791		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5792$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5793		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5794		if eval \${$cacheid+:} false; then :
5795  $as_echo_n "(cached) " >&6
5796else
5797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5798/* end confdefs.h.  */
5799int i;
5800int
5801main ()
5802{
5803
5804  ;
5805  return 0;
5806}
5807_ACEOF
5808if ac_fn_c_try_link "$LINENO"; then :
5809  eval $cacheid=yes
5810else
5811  eval $cacheid=no
5812fi
5813rm -f core conftest.err conftest.$ac_objext \
5814    conftest$ac_exeext conftest.$ac_ext
5815fi
5816
5817
5818		CFLAGS="$xorg_testset_save_CFLAGS"
5819
5820		eval supported=\$$cacheid
5821		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5822$as_echo "$supported" >&6; }
5823		if test "$supported" = "yes" ; then
5824			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5825			found="yes"
5826		fi
5827	fi
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843xorg_testset_save_CFLAGS="$CFLAGS"
5844
5845if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5846	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5847	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5848$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5849if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5850  $as_echo_n "(cached) " >&6
5851else
5852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5853/* end confdefs.h.  */
5854int i;
5855_ACEOF
5856if ac_fn_c_try_compile "$LINENO"; then :
5857  xorg_cv_cc_flag_unknown_warning_option=yes
5858else
5859  xorg_cv_cc_flag_unknown_warning_option=no
5860fi
5861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5862fi
5863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5864$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5865	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5866	CFLAGS="$xorg_testset_save_CFLAGS"
5867fi
5868
5869if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5870	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5871		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5872	fi
5873	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5874	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5875$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5876if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5877  $as_echo_n "(cached) " >&6
5878else
5879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5880/* end confdefs.h.  */
5881int i;
5882_ACEOF
5883if ac_fn_c_try_compile "$LINENO"; then :
5884  xorg_cv_cc_flag_unused_command_line_argument=yes
5885else
5886  xorg_cv_cc_flag_unused_command_line_argument=no
5887fi
5888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5889fi
5890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5891$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5892	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5893	CFLAGS="$xorg_testset_save_CFLAGS"
5894fi
5895
5896found="no"
5897
5898	if test $found = "no" ; then
5899		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5900			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5901		fi
5902
5903		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5904			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5905		fi
5906
5907		CFLAGS="$CFLAGS -Wold-style-definition"
5908
5909		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5910$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5911		cacheid=xorg_cv_cc_flag__Wold_style_definition
5912		if eval \${$cacheid+:} false; then :
5913  $as_echo_n "(cached) " >&6
5914else
5915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5916/* end confdefs.h.  */
5917int i;
5918int
5919main ()
5920{
5921
5922  ;
5923  return 0;
5924}
5925_ACEOF
5926if ac_fn_c_try_link "$LINENO"; then :
5927  eval $cacheid=yes
5928else
5929  eval $cacheid=no
5930fi
5931rm -f core conftest.err conftest.$ac_objext \
5932    conftest$ac_exeext conftest.$ac_ext
5933fi
5934
5935
5936		CFLAGS="$xorg_testset_save_CFLAGS"
5937
5938		eval supported=\$$cacheid
5939		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5940$as_echo "$supported" >&6; }
5941		if test "$supported" = "yes" ; then
5942			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5943			found="yes"
5944		fi
5945	fi
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961xorg_testset_save_CFLAGS="$CFLAGS"
5962
5963if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5964	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5965	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5966$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5967if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5968  $as_echo_n "(cached) " >&6
5969else
5970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971/* end confdefs.h.  */
5972int i;
5973_ACEOF
5974if ac_fn_c_try_compile "$LINENO"; then :
5975  xorg_cv_cc_flag_unknown_warning_option=yes
5976else
5977  xorg_cv_cc_flag_unknown_warning_option=no
5978fi
5979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5980fi
5981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5982$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5983	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5984	CFLAGS="$xorg_testset_save_CFLAGS"
5985fi
5986
5987if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5988	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5989		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5990	fi
5991	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5992	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5993$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5994if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5995  $as_echo_n "(cached) " >&6
5996else
5997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5998/* end confdefs.h.  */
5999int i;
6000_ACEOF
6001if ac_fn_c_try_compile "$LINENO"; then :
6002  xorg_cv_cc_flag_unused_command_line_argument=yes
6003else
6004  xorg_cv_cc_flag_unused_command_line_argument=no
6005fi
6006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6007fi
6008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6009$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6010	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6011	CFLAGS="$xorg_testset_save_CFLAGS"
6012fi
6013
6014found="no"
6015
6016	if test $found = "no" ; then
6017		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6018			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6019		fi
6020
6021		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6022			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6023		fi
6024
6025		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6026
6027		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6028$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6029		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6030		if eval \${$cacheid+:} false; then :
6031  $as_echo_n "(cached) " >&6
6032else
6033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6034/* end confdefs.h.  */
6035int i;
6036int
6037main ()
6038{
6039
6040  ;
6041  return 0;
6042}
6043_ACEOF
6044if ac_fn_c_try_link "$LINENO"; then :
6045  eval $cacheid=yes
6046else
6047  eval $cacheid=no
6048fi
6049rm -f core conftest.err conftest.$ac_objext \
6050    conftest$ac_exeext conftest.$ac_ext
6051fi
6052
6053
6054		CFLAGS="$xorg_testset_save_CFLAGS"
6055
6056		eval supported=\$$cacheid
6057		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6058$as_echo "$supported" >&6; }
6059		if test "$supported" = "yes" ; then
6060			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6061			found="yes"
6062		fi
6063	fi
6064
6065
6066
6067
6068
6069# This chunk adds additional warnings that could catch undesired effects.
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083xorg_testset_save_CFLAGS="$CFLAGS"
6084
6085if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6086	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6087	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6088$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6089if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6090  $as_echo_n "(cached) " >&6
6091else
6092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6093/* end confdefs.h.  */
6094int i;
6095_ACEOF
6096if ac_fn_c_try_compile "$LINENO"; then :
6097  xorg_cv_cc_flag_unknown_warning_option=yes
6098else
6099  xorg_cv_cc_flag_unknown_warning_option=no
6100fi
6101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6102fi
6103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6104$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6105	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6106	CFLAGS="$xorg_testset_save_CFLAGS"
6107fi
6108
6109if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6110	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6111		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6112	fi
6113	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6114	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6115$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6116if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6117  $as_echo_n "(cached) " >&6
6118else
6119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6120/* end confdefs.h.  */
6121int i;
6122_ACEOF
6123if ac_fn_c_try_compile "$LINENO"; then :
6124  xorg_cv_cc_flag_unused_command_line_argument=yes
6125else
6126  xorg_cv_cc_flag_unused_command_line_argument=no
6127fi
6128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6129fi
6130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6131$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6132	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6133	CFLAGS="$xorg_testset_save_CFLAGS"
6134fi
6135
6136found="no"
6137
6138	if test $found = "no" ; then
6139		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6140			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6141		fi
6142
6143		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6144			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6145		fi
6146
6147		CFLAGS="$CFLAGS -Wunused"
6148
6149		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6150$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6151		cacheid=xorg_cv_cc_flag__Wunused
6152		if eval \${$cacheid+:} false; then :
6153  $as_echo_n "(cached) " >&6
6154else
6155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6156/* end confdefs.h.  */
6157int i;
6158int
6159main ()
6160{
6161
6162  ;
6163  return 0;
6164}
6165_ACEOF
6166if ac_fn_c_try_link "$LINENO"; then :
6167  eval $cacheid=yes
6168else
6169  eval $cacheid=no
6170fi
6171rm -f core conftest.err conftest.$ac_objext \
6172    conftest$ac_exeext conftest.$ac_ext
6173fi
6174
6175
6176		CFLAGS="$xorg_testset_save_CFLAGS"
6177
6178		eval supported=\$$cacheid
6179		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6180$as_echo "$supported" >&6; }
6181		if test "$supported" = "yes" ; then
6182			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6183			found="yes"
6184		fi
6185	fi
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201xorg_testset_save_CFLAGS="$CFLAGS"
6202
6203if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6204	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6205	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6206$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6207if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6208  $as_echo_n "(cached) " >&6
6209else
6210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6211/* end confdefs.h.  */
6212int i;
6213_ACEOF
6214if ac_fn_c_try_compile "$LINENO"; then :
6215  xorg_cv_cc_flag_unknown_warning_option=yes
6216else
6217  xorg_cv_cc_flag_unknown_warning_option=no
6218fi
6219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6220fi
6221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6222$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6223	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6224	CFLAGS="$xorg_testset_save_CFLAGS"
6225fi
6226
6227if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6228	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6229		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6230	fi
6231	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6232	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6233$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6234if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6235  $as_echo_n "(cached) " >&6
6236else
6237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6238/* end confdefs.h.  */
6239int i;
6240_ACEOF
6241if ac_fn_c_try_compile "$LINENO"; then :
6242  xorg_cv_cc_flag_unused_command_line_argument=yes
6243else
6244  xorg_cv_cc_flag_unused_command_line_argument=no
6245fi
6246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6247fi
6248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6249$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6250	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6251	CFLAGS="$xorg_testset_save_CFLAGS"
6252fi
6253
6254found="no"
6255
6256	if test $found = "no" ; then
6257		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6258			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6259		fi
6260
6261		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6262			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6263		fi
6264
6265		CFLAGS="$CFLAGS -Wuninitialized"
6266
6267		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6268$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6269		cacheid=xorg_cv_cc_flag__Wuninitialized
6270		if eval \${$cacheid+:} false; then :
6271  $as_echo_n "(cached) " >&6
6272else
6273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6274/* end confdefs.h.  */
6275int i;
6276int
6277main ()
6278{
6279
6280  ;
6281  return 0;
6282}
6283_ACEOF
6284if ac_fn_c_try_link "$LINENO"; then :
6285  eval $cacheid=yes
6286else
6287  eval $cacheid=no
6288fi
6289rm -f core conftest.err conftest.$ac_objext \
6290    conftest$ac_exeext conftest.$ac_ext
6291fi
6292
6293
6294		CFLAGS="$xorg_testset_save_CFLAGS"
6295
6296		eval supported=\$$cacheid
6297		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6298$as_echo "$supported" >&6; }
6299		if test "$supported" = "yes" ; then
6300			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6301			found="yes"
6302		fi
6303	fi
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319xorg_testset_save_CFLAGS="$CFLAGS"
6320
6321if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6322	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6323	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6324$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6325if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6326  $as_echo_n "(cached) " >&6
6327else
6328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6329/* end confdefs.h.  */
6330int i;
6331_ACEOF
6332if ac_fn_c_try_compile "$LINENO"; then :
6333  xorg_cv_cc_flag_unknown_warning_option=yes
6334else
6335  xorg_cv_cc_flag_unknown_warning_option=no
6336fi
6337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6338fi
6339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6340$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6341	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6342	CFLAGS="$xorg_testset_save_CFLAGS"
6343fi
6344
6345if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6346	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6347		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6348	fi
6349	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6350	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6351$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6352if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6353  $as_echo_n "(cached) " >&6
6354else
6355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6356/* end confdefs.h.  */
6357int i;
6358_ACEOF
6359if ac_fn_c_try_compile "$LINENO"; then :
6360  xorg_cv_cc_flag_unused_command_line_argument=yes
6361else
6362  xorg_cv_cc_flag_unused_command_line_argument=no
6363fi
6364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6365fi
6366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6367$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6368	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6369	CFLAGS="$xorg_testset_save_CFLAGS"
6370fi
6371
6372found="no"
6373
6374	if test $found = "no" ; then
6375		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6376			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6377		fi
6378
6379		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6380			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6381		fi
6382
6383		CFLAGS="$CFLAGS -Wshadow"
6384
6385		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6386$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6387		cacheid=xorg_cv_cc_flag__Wshadow
6388		if eval \${$cacheid+:} false; then :
6389  $as_echo_n "(cached) " >&6
6390else
6391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6392/* end confdefs.h.  */
6393int i;
6394int
6395main ()
6396{
6397
6398  ;
6399  return 0;
6400}
6401_ACEOF
6402if ac_fn_c_try_link "$LINENO"; then :
6403  eval $cacheid=yes
6404else
6405  eval $cacheid=no
6406fi
6407rm -f core conftest.err conftest.$ac_objext \
6408    conftest$ac_exeext conftest.$ac_ext
6409fi
6410
6411
6412		CFLAGS="$xorg_testset_save_CFLAGS"
6413
6414		eval supported=\$$cacheid
6415		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6416$as_echo "$supported" >&6; }
6417		if test "$supported" = "yes" ; then
6418			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6419			found="yes"
6420		fi
6421	fi
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437xorg_testset_save_CFLAGS="$CFLAGS"
6438
6439if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6440	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6441	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6442$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6443if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6444  $as_echo_n "(cached) " >&6
6445else
6446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6447/* end confdefs.h.  */
6448int i;
6449_ACEOF
6450if ac_fn_c_try_compile "$LINENO"; then :
6451  xorg_cv_cc_flag_unknown_warning_option=yes
6452else
6453  xorg_cv_cc_flag_unknown_warning_option=no
6454fi
6455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6456fi
6457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6458$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6459	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6460	CFLAGS="$xorg_testset_save_CFLAGS"
6461fi
6462
6463if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6464	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6465		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6466	fi
6467	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6468	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6469$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6470if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6471  $as_echo_n "(cached) " >&6
6472else
6473  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6474/* end confdefs.h.  */
6475int i;
6476_ACEOF
6477if ac_fn_c_try_compile "$LINENO"; then :
6478  xorg_cv_cc_flag_unused_command_line_argument=yes
6479else
6480  xorg_cv_cc_flag_unused_command_line_argument=no
6481fi
6482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6483fi
6484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6485$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6486	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6487	CFLAGS="$xorg_testset_save_CFLAGS"
6488fi
6489
6490found="no"
6491
6492	if test $found = "no" ; then
6493		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6494			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6495		fi
6496
6497		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6498			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6499		fi
6500
6501		CFLAGS="$CFLAGS -Wcast-qual"
6502
6503		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6504$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6505		cacheid=xorg_cv_cc_flag__Wcast_qual
6506		if eval \${$cacheid+:} false; then :
6507  $as_echo_n "(cached) " >&6
6508else
6509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6510/* end confdefs.h.  */
6511int i;
6512int
6513main ()
6514{
6515
6516  ;
6517  return 0;
6518}
6519_ACEOF
6520if ac_fn_c_try_link "$LINENO"; then :
6521  eval $cacheid=yes
6522else
6523  eval $cacheid=no
6524fi
6525rm -f core conftest.err conftest.$ac_objext \
6526    conftest$ac_exeext conftest.$ac_ext
6527fi
6528
6529
6530		CFLAGS="$xorg_testset_save_CFLAGS"
6531
6532		eval supported=\$$cacheid
6533		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6534$as_echo "$supported" >&6; }
6535		if test "$supported" = "yes" ; then
6536			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6537			found="yes"
6538		fi
6539	fi
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555xorg_testset_save_CFLAGS="$CFLAGS"
6556
6557if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6558	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6559	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6560$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6561if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6562  $as_echo_n "(cached) " >&6
6563else
6564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6565/* end confdefs.h.  */
6566int i;
6567_ACEOF
6568if ac_fn_c_try_compile "$LINENO"; then :
6569  xorg_cv_cc_flag_unknown_warning_option=yes
6570else
6571  xorg_cv_cc_flag_unknown_warning_option=no
6572fi
6573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6574fi
6575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6576$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6577	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6578	CFLAGS="$xorg_testset_save_CFLAGS"
6579fi
6580
6581if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6582	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6583		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6584	fi
6585	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6586	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6587$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6588if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6589  $as_echo_n "(cached) " >&6
6590else
6591  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6592/* end confdefs.h.  */
6593int i;
6594_ACEOF
6595if ac_fn_c_try_compile "$LINENO"; then :
6596  xorg_cv_cc_flag_unused_command_line_argument=yes
6597else
6598  xorg_cv_cc_flag_unused_command_line_argument=no
6599fi
6600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6601fi
6602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6603$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6604	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6605	CFLAGS="$xorg_testset_save_CFLAGS"
6606fi
6607
6608found="no"
6609
6610	if test $found = "no" ; then
6611		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6612			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6613		fi
6614
6615		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6616			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6617		fi
6618
6619		CFLAGS="$CFLAGS -Wmissing-noreturn"
6620
6621		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6622$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6623		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6624		if eval \${$cacheid+:} false; then :
6625  $as_echo_n "(cached) " >&6
6626else
6627  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6628/* end confdefs.h.  */
6629int i;
6630int
6631main ()
6632{
6633
6634  ;
6635  return 0;
6636}
6637_ACEOF
6638if ac_fn_c_try_link "$LINENO"; then :
6639  eval $cacheid=yes
6640else
6641  eval $cacheid=no
6642fi
6643rm -f core conftest.err conftest.$ac_objext \
6644    conftest$ac_exeext conftest.$ac_ext
6645fi
6646
6647
6648		CFLAGS="$xorg_testset_save_CFLAGS"
6649
6650		eval supported=\$$cacheid
6651		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6652$as_echo "$supported" >&6; }
6653		if test "$supported" = "yes" ; then
6654			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6655			found="yes"
6656		fi
6657	fi
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673xorg_testset_save_CFLAGS="$CFLAGS"
6674
6675if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6676	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6677	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6678$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6679if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6680  $as_echo_n "(cached) " >&6
6681else
6682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683/* end confdefs.h.  */
6684int i;
6685_ACEOF
6686if ac_fn_c_try_compile "$LINENO"; then :
6687  xorg_cv_cc_flag_unknown_warning_option=yes
6688else
6689  xorg_cv_cc_flag_unknown_warning_option=no
6690fi
6691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6692fi
6693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6694$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6695	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6696	CFLAGS="$xorg_testset_save_CFLAGS"
6697fi
6698
6699if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6700	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6701		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6702	fi
6703	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6704	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6705$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6706if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6707  $as_echo_n "(cached) " >&6
6708else
6709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6710/* end confdefs.h.  */
6711int i;
6712_ACEOF
6713if ac_fn_c_try_compile "$LINENO"; then :
6714  xorg_cv_cc_flag_unused_command_line_argument=yes
6715else
6716  xorg_cv_cc_flag_unused_command_line_argument=no
6717fi
6718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6719fi
6720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6721$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6722	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6723	CFLAGS="$xorg_testset_save_CFLAGS"
6724fi
6725
6726found="no"
6727
6728	if test $found = "no" ; then
6729		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6730			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6731		fi
6732
6733		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6734			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6735		fi
6736
6737		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6738
6739		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6740$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6741		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6742		if eval \${$cacheid+:} false; then :
6743  $as_echo_n "(cached) " >&6
6744else
6745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746/* end confdefs.h.  */
6747int i;
6748int
6749main ()
6750{
6751
6752  ;
6753  return 0;
6754}
6755_ACEOF
6756if ac_fn_c_try_link "$LINENO"; then :
6757  eval $cacheid=yes
6758else
6759  eval $cacheid=no
6760fi
6761rm -f core conftest.err conftest.$ac_objext \
6762    conftest$ac_exeext conftest.$ac_ext
6763fi
6764
6765
6766		CFLAGS="$xorg_testset_save_CFLAGS"
6767
6768		eval supported=\$$cacheid
6769		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6770$as_echo "$supported" >&6; }
6771		if test "$supported" = "yes" ; then
6772			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6773			found="yes"
6774		fi
6775	fi
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791xorg_testset_save_CFLAGS="$CFLAGS"
6792
6793if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6794	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6795	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6796$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6797if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6798  $as_echo_n "(cached) " >&6
6799else
6800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6801/* end confdefs.h.  */
6802int i;
6803_ACEOF
6804if ac_fn_c_try_compile "$LINENO"; then :
6805  xorg_cv_cc_flag_unknown_warning_option=yes
6806else
6807  xorg_cv_cc_flag_unknown_warning_option=no
6808fi
6809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6810fi
6811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6812$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6813	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6814	CFLAGS="$xorg_testset_save_CFLAGS"
6815fi
6816
6817if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6818	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6819		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6820	fi
6821	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6822	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6823$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6824if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6825  $as_echo_n "(cached) " >&6
6826else
6827  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6828/* end confdefs.h.  */
6829int i;
6830_ACEOF
6831if ac_fn_c_try_compile "$LINENO"; then :
6832  xorg_cv_cc_flag_unused_command_line_argument=yes
6833else
6834  xorg_cv_cc_flag_unused_command_line_argument=no
6835fi
6836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6837fi
6838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6839$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6840	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6841	CFLAGS="$xorg_testset_save_CFLAGS"
6842fi
6843
6844found="no"
6845
6846	if test $found = "no" ; then
6847		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6848			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6849		fi
6850
6851		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6852			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6853		fi
6854
6855		CFLAGS="$CFLAGS -Wredundant-decls"
6856
6857		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6858$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6859		cacheid=xorg_cv_cc_flag__Wredundant_decls
6860		if eval \${$cacheid+:} false; then :
6861  $as_echo_n "(cached) " >&6
6862else
6863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6864/* end confdefs.h.  */
6865int i;
6866int
6867main ()
6868{
6869
6870  ;
6871  return 0;
6872}
6873_ACEOF
6874if ac_fn_c_try_link "$LINENO"; then :
6875  eval $cacheid=yes
6876else
6877  eval $cacheid=no
6878fi
6879rm -f core conftest.err conftest.$ac_objext \
6880    conftest$ac_exeext conftest.$ac_ext
6881fi
6882
6883
6884		CFLAGS="$xorg_testset_save_CFLAGS"
6885
6886		eval supported=\$$cacheid
6887		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6888$as_echo "$supported" >&6; }
6889		if test "$supported" = "yes" ; then
6890			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6891			found="yes"
6892		fi
6893	fi
6894
6895
6896
6897# These are currently disabled because they are noisy.  They will be enabled
6898# in the future once the codebase is sufficiently modernized to silence
6899# them.  For now, I don't want them to drown out the other warnings.
6900# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6901# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6902# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6903
6904# Turn some warnings into errors, so we don't accidently get successful builds
6905# when there are problems that should be fixed.
6906
6907if test "x$SELECTIVE_WERROR" = "xyes" ; then
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921xorg_testset_save_CFLAGS="$CFLAGS"
6922
6923if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6924	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6925	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6926$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6927if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6928  $as_echo_n "(cached) " >&6
6929else
6930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6931/* end confdefs.h.  */
6932int i;
6933_ACEOF
6934if ac_fn_c_try_compile "$LINENO"; then :
6935  xorg_cv_cc_flag_unknown_warning_option=yes
6936else
6937  xorg_cv_cc_flag_unknown_warning_option=no
6938fi
6939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6940fi
6941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6942$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6943	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6944	CFLAGS="$xorg_testset_save_CFLAGS"
6945fi
6946
6947if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6948	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6949		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6950	fi
6951	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6952	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6953$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6954if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6955  $as_echo_n "(cached) " >&6
6956else
6957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6958/* end confdefs.h.  */
6959int i;
6960_ACEOF
6961if ac_fn_c_try_compile "$LINENO"; then :
6962  xorg_cv_cc_flag_unused_command_line_argument=yes
6963else
6964  xorg_cv_cc_flag_unused_command_line_argument=no
6965fi
6966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6967fi
6968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6969$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6970	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6971	CFLAGS="$xorg_testset_save_CFLAGS"
6972fi
6973
6974found="no"
6975
6976	if test $found = "no" ; then
6977		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6978			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6979		fi
6980
6981		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6982			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6983		fi
6984
6985		CFLAGS="$CFLAGS -Werror=implicit"
6986
6987		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6988$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6989		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6990		if eval \${$cacheid+:} false; then :
6991  $as_echo_n "(cached) " >&6
6992else
6993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6994/* end confdefs.h.  */
6995int i;
6996int
6997main ()
6998{
6999
7000  ;
7001  return 0;
7002}
7003_ACEOF
7004if ac_fn_c_try_link "$LINENO"; then :
7005  eval $cacheid=yes
7006else
7007  eval $cacheid=no
7008fi
7009rm -f core conftest.err conftest.$ac_objext \
7010    conftest$ac_exeext conftest.$ac_ext
7011fi
7012
7013
7014		CFLAGS="$xorg_testset_save_CFLAGS"
7015
7016		eval supported=\$$cacheid
7017		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7018$as_echo "$supported" >&6; }
7019		if test "$supported" = "yes" ; then
7020			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7021			found="yes"
7022		fi
7023	fi
7024
7025	if test $found = "no" ; then
7026		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7027			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7028		fi
7029
7030		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7031			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7032		fi
7033
7034		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7035
7036		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7037$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7038		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
7039		if eval \${$cacheid+:} false; then :
7040  $as_echo_n "(cached) " >&6
7041else
7042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7043/* end confdefs.h.  */
7044int i;
7045int
7046main ()
7047{
7048
7049  ;
7050  return 0;
7051}
7052_ACEOF
7053if ac_fn_c_try_link "$LINENO"; then :
7054  eval $cacheid=yes
7055else
7056  eval $cacheid=no
7057fi
7058rm -f core conftest.err conftest.$ac_objext \
7059    conftest$ac_exeext conftest.$ac_ext
7060fi
7061
7062
7063		CFLAGS="$xorg_testset_save_CFLAGS"
7064
7065		eval supported=\$$cacheid
7066		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7067$as_echo "$supported" >&6; }
7068		if test "$supported" = "yes" ; then
7069			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7070			found="yes"
7071		fi
7072	fi
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088xorg_testset_save_CFLAGS="$CFLAGS"
7089
7090if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7091	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7092	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7093$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7094if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7095  $as_echo_n "(cached) " >&6
7096else
7097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7098/* end confdefs.h.  */
7099int i;
7100_ACEOF
7101if ac_fn_c_try_compile "$LINENO"; then :
7102  xorg_cv_cc_flag_unknown_warning_option=yes
7103else
7104  xorg_cv_cc_flag_unknown_warning_option=no
7105fi
7106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7107fi
7108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7109$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7110	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7111	CFLAGS="$xorg_testset_save_CFLAGS"
7112fi
7113
7114if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7115	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7116		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7117	fi
7118	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7119	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7120$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7121if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7122  $as_echo_n "(cached) " >&6
7123else
7124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7125/* end confdefs.h.  */
7126int i;
7127_ACEOF
7128if ac_fn_c_try_compile "$LINENO"; then :
7129  xorg_cv_cc_flag_unused_command_line_argument=yes
7130else
7131  xorg_cv_cc_flag_unused_command_line_argument=no
7132fi
7133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7134fi
7135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7136$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7137	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7138	CFLAGS="$xorg_testset_save_CFLAGS"
7139fi
7140
7141found="no"
7142
7143	if test $found = "no" ; then
7144		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7145			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7146		fi
7147
7148		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7149			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7150		fi
7151
7152		CFLAGS="$CFLAGS -Werror=nonnull"
7153
7154		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7155$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7156		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
7157		if eval \${$cacheid+:} false; then :
7158  $as_echo_n "(cached) " >&6
7159else
7160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7161/* end confdefs.h.  */
7162int i;
7163int
7164main ()
7165{
7166
7167  ;
7168  return 0;
7169}
7170_ACEOF
7171if ac_fn_c_try_link "$LINENO"; then :
7172  eval $cacheid=yes
7173else
7174  eval $cacheid=no
7175fi
7176rm -f core conftest.err conftest.$ac_objext \
7177    conftest$ac_exeext conftest.$ac_ext
7178fi
7179
7180
7181		CFLAGS="$xorg_testset_save_CFLAGS"
7182
7183		eval supported=\$$cacheid
7184		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7185$as_echo "$supported" >&6; }
7186		if test "$supported" = "yes" ; then
7187			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7188			found="yes"
7189		fi
7190	fi
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206xorg_testset_save_CFLAGS="$CFLAGS"
7207
7208if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7209	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7210	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7211$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7212if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7213  $as_echo_n "(cached) " >&6
7214else
7215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7216/* end confdefs.h.  */
7217int i;
7218_ACEOF
7219if ac_fn_c_try_compile "$LINENO"; then :
7220  xorg_cv_cc_flag_unknown_warning_option=yes
7221else
7222  xorg_cv_cc_flag_unknown_warning_option=no
7223fi
7224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7225fi
7226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7227$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7228	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7229	CFLAGS="$xorg_testset_save_CFLAGS"
7230fi
7231
7232if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7233	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7234		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7235	fi
7236	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7237	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7238$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7239if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7240  $as_echo_n "(cached) " >&6
7241else
7242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7243/* end confdefs.h.  */
7244int i;
7245_ACEOF
7246if ac_fn_c_try_compile "$LINENO"; then :
7247  xorg_cv_cc_flag_unused_command_line_argument=yes
7248else
7249  xorg_cv_cc_flag_unused_command_line_argument=no
7250fi
7251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7252fi
7253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7254$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7255	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7256	CFLAGS="$xorg_testset_save_CFLAGS"
7257fi
7258
7259found="no"
7260
7261	if test $found = "no" ; then
7262		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7263			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7264		fi
7265
7266		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7267			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7268		fi
7269
7270		CFLAGS="$CFLAGS -Werror=init-self"
7271
7272		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7273$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7274		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7275		if eval \${$cacheid+:} false; then :
7276  $as_echo_n "(cached) " >&6
7277else
7278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7279/* end confdefs.h.  */
7280int i;
7281int
7282main ()
7283{
7284
7285  ;
7286  return 0;
7287}
7288_ACEOF
7289if ac_fn_c_try_link "$LINENO"; then :
7290  eval $cacheid=yes
7291else
7292  eval $cacheid=no
7293fi
7294rm -f core conftest.err conftest.$ac_objext \
7295    conftest$ac_exeext conftest.$ac_ext
7296fi
7297
7298
7299		CFLAGS="$xorg_testset_save_CFLAGS"
7300
7301		eval supported=\$$cacheid
7302		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7303$as_echo "$supported" >&6; }
7304		if test "$supported" = "yes" ; then
7305			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7306			found="yes"
7307		fi
7308	fi
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324xorg_testset_save_CFLAGS="$CFLAGS"
7325
7326if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7327	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7328	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7329$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7330if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7331  $as_echo_n "(cached) " >&6
7332else
7333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7334/* end confdefs.h.  */
7335int i;
7336_ACEOF
7337if ac_fn_c_try_compile "$LINENO"; then :
7338  xorg_cv_cc_flag_unknown_warning_option=yes
7339else
7340  xorg_cv_cc_flag_unknown_warning_option=no
7341fi
7342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7343fi
7344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7345$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7346	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7347	CFLAGS="$xorg_testset_save_CFLAGS"
7348fi
7349
7350if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7351	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7352		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7353	fi
7354	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7355	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7356$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7357if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7358  $as_echo_n "(cached) " >&6
7359else
7360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7361/* end confdefs.h.  */
7362int i;
7363_ACEOF
7364if ac_fn_c_try_compile "$LINENO"; then :
7365  xorg_cv_cc_flag_unused_command_line_argument=yes
7366else
7367  xorg_cv_cc_flag_unused_command_line_argument=no
7368fi
7369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7370fi
7371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7372$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7373	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7374	CFLAGS="$xorg_testset_save_CFLAGS"
7375fi
7376
7377found="no"
7378
7379	if test $found = "no" ; then
7380		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7381			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7382		fi
7383
7384		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7385			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7386		fi
7387
7388		CFLAGS="$CFLAGS -Werror=main"
7389
7390		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7391$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7392		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7393		if eval \${$cacheid+:} false; then :
7394  $as_echo_n "(cached) " >&6
7395else
7396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7397/* end confdefs.h.  */
7398int i;
7399int
7400main ()
7401{
7402
7403  ;
7404  return 0;
7405}
7406_ACEOF
7407if ac_fn_c_try_link "$LINENO"; then :
7408  eval $cacheid=yes
7409else
7410  eval $cacheid=no
7411fi
7412rm -f core conftest.err conftest.$ac_objext \
7413    conftest$ac_exeext conftest.$ac_ext
7414fi
7415
7416
7417		CFLAGS="$xorg_testset_save_CFLAGS"
7418
7419		eval supported=\$$cacheid
7420		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7421$as_echo "$supported" >&6; }
7422		if test "$supported" = "yes" ; then
7423			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7424			found="yes"
7425		fi
7426	fi
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442xorg_testset_save_CFLAGS="$CFLAGS"
7443
7444if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7445	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7446	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7447$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7448if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7449  $as_echo_n "(cached) " >&6
7450else
7451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7452/* end confdefs.h.  */
7453int i;
7454_ACEOF
7455if ac_fn_c_try_compile "$LINENO"; then :
7456  xorg_cv_cc_flag_unknown_warning_option=yes
7457else
7458  xorg_cv_cc_flag_unknown_warning_option=no
7459fi
7460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7461fi
7462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7463$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7464	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7465	CFLAGS="$xorg_testset_save_CFLAGS"
7466fi
7467
7468if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7469	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7470		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7471	fi
7472	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7473	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7474$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7475if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7476  $as_echo_n "(cached) " >&6
7477else
7478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7479/* end confdefs.h.  */
7480int i;
7481_ACEOF
7482if ac_fn_c_try_compile "$LINENO"; then :
7483  xorg_cv_cc_flag_unused_command_line_argument=yes
7484else
7485  xorg_cv_cc_flag_unused_command_line_argument=no
7486fi
7487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7488fi
7489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7490$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7491	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7492	CFLAGS="$xorg_testset_save_CFLAGS"
7493fi
7494
7495found="no"
7496
7497	if test $found = "no" ; then
7498		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7499			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7500		fi
7501
7502		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7503			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7504		fi
7505
7506		CFLAGS="$CFLAGS -Werror=missing-braces"
7507
7508		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7509$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7510		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7511		if eval \${$cacheid+:} false; then :
7512  $as_echo_n "(cached) " >&6
7513else
7514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7515/* end confdefs.h.  */
7516int i;
7517int
7518main ()
7519{
7520
7521  ;
7522  return 0;
7523}
7524_ACEOF
7525if ac_fn_c_try_link "$LINENO"; then :
7526  eval $cacheid=yes
7527else
7528  eval $cacheid=no
7529fi
7530rm -f core conftest.err conftest.$ac_objext \
7531    conftest$ac_exeext conftest.$ac_ext
7532fi
7533
7534
7535		CFLAGS="$xorg_testset_save_CFLAGS"
7536
7537		eval supported=\$$cacheid
7538		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7539$as_echo "$supported" >&6; }
7540		if test "$supported" = "yes" ; then
7541			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7542			found="yes"
7543		fi
7544	fi
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560xorg_testset_save_CFLAGS="$CFLAGS"
7561
7562if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7563	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7564	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7565$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7566if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7567  $as_echo_n "(cached) " >&6
7568else
7569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7570/* end confdefs.h.  */
7571int i;
7572_ACEOF
7573if ac_fn_c_try_compile "$LINENO"; then :
7574  xorg_cv_cc_flag_unknown_warning_option=yes
7575else
7576  xorg_cv_cc_flag_unknown_warning_option=no
7577fi
7578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7579fi
7580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7581$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7582	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7583	CFLAGS="$xorg_testset_save_CFLAGS"
7584fi
7585
7586if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7587	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7588		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7589	fi
7590	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7591	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7592$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7593if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7594  $as_echo_n "(cached) " >&6
7595else
7596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7597/* end confdefs.h.  */
7598int i;
7599_ACEOF
7600if ac_fn_c_try_compile "$LINENO"; then :
7601  xorg_cv_cc_flag_unused_command_line_argument=yes
7602else
7603  xorg_cv_cc_flag_unused_command_line_argument=no
7604fi
7605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7606fi
7607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7608$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7609	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7610	CFLAGS="$xorg_testset_save_CFLAGS"
7611fi
7612
7613found="no"
7614
7615	if test $found = "no" ; then
7616		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7617			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7618		fi
7619
7620		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7621			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7622		fi
7623
7624		CFLAGS="$CFLAGS -Werror=sequence-point"
7625
7626		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7627$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7628		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7629		if eval \${$cacheid+:} false; then :
7630  $as_echo_n "(cached) " >&6
7631else
7632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7633/* end confdefs.h.  */
7634int i;
7635int
7636main ()
7637{
7638
7639  ;
7640  return 0;
7641}
7642_ACEOF
7643if ac_fn_c_try_link "$LINENO"; then :
7644  eval $cacheid=yes
7645else
7646  eval $cacheid=no
7647fi
7648rm -f core conftest.err conftest.$ac_objext \
7649    conftest$ac_exeext conftest.$ac_ext
7650fi
7651
7652
7653		CFLAGS="$xorg_testset_save_CFLAGS"
7654
7655		eval supported=\$$cacheid
7656		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7657$as_echo "$supported" >&6; }
7658		if test "$supported" = "yes" ; then
7659			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7660			found="yes"
7661		fi
7662	fi
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678xorg_testset_save_CFLAGS="$CFLAGS"
7679
7680if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7681	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7682	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7683$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7684if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7685  $as_echo_n "(cached) " >&6
7686else
7687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7688/* end confdefs.h.  */
7689int i;
7690_ACEOF
7691if ac_fn_c_try_compile "$LINENO"; then :
7692  xorg_cv_cc_flag_unknown_warning_option=yes
7693else
7694  xorg_cv_cc_flag_unknown_warning_option=no
7695fi
7696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7697fi
7698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7699$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7700	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7701	CFLAGS="$xorg_testset_save_CFLAGS"
7702fi
7703
7704if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7705	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7706		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7707	fi
7708	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7709	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7710$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7711if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7712  $as_echo_n "(cached) " >&6
7713else
7714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7715/* end confdefs.h.  */
7716int i;
7717_ACEOF
7718if ac_fn_c_try_compile "$LINENO"; then :
7719  xorg_cv_cc_flag_unused_command_line_argument=yes
7720else
7721  xorg_cv_cc_flag_unused_command_line_argument=no
7722fi
7723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7724fi
7725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7726$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7727	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7728	CFLAGS="$xorg_testset_save_CFLAGS"
7729fi
7730
7731found="no"
7732
7733	if test $found = "no" ; then
7734		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7735			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7736		fi
7737
7738		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7739			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7740		fi
7741
7742		CFLAGS="$CFLAGS -Werror=return-type"
7743
7744		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7745$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7746		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7747		if eval \${$cacheid+:} false; then :
7748  $as_echo_n "(cached) " >&6
7749else
7750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7751/* end confdefs.h.  */
7752int i;
7753int
7754main ()
7755{
7756
7757  ;
7758  return 0;
7759}
7760_ACEOF
7761if ac_fn_c_try_link "$LINENO"; then :
7762  eval $cacheid=yes
7763else
7764  eval $cacheid=no
7765fi
7766rm -f core conftest.err conftest.$ac_objext \
7767    conftest$ac_exeext conftest.$ac_ext
7768fi
7769
7770
7771		CFLAGS="$xorg_testset_save_CFLAGS"
7772
7773		eval supported=\$$cacheid
7774		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7775$as_echo "$supported" >&6; }
7776		if test "$supported" = "yes" ; then
7777			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7778			found="yes"
7779		fi
7780	fi
7781
7782	if test $found = "no" ; then
7783		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7784			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7785		fi
7786
7787		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7788			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7789		fi
7790
7791		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7792
7793		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7794$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7795		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7796		if eval \${$cacheid+:} false; then :
7797  $as_echo_n "(cached) " >&6
7798else
7799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7800/* end confdefs.h.  */
7801int i;
7802int
7803main ()
7804{
7805
7806  ;
7807  return 0;
7808}
7809_ACEOF
7810if ac_fn_c_try_link "$LINENO"; then :
7811  eval $cacheid=yes
7812else
7813  eval $cacheid=no
7814fi
7815rm -f core conftest.err conftest.$ac_objext \
7816    conftest$ac_exeext conftest.$ac_ext
7817fi
7818
7819
7820		CFLAGS="$xorg_testset_save_CFLAGS"
7821
7822		eval supported=\$$cacheid
7823		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7824$as_echo "$supported" >&6; }
7825		if test "$supported" = "yes" ; then
7826			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7827			found="yes"
7828		fi
7829	fi
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845xorg_testset_save_CFLAGS="$CFLAGS"
7846
7847if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7848	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7849	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7850$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7851if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7852  $as_echo_n "(cached) " >&6
7853else
7854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7855/* end confdefs.h.  */
7856int i;
7857_ACEOF
7858if ac_fn_c_try_compile "$LINENO"; then :
7859  xorg_cv_cc_flag_unknown_warning_option=yes
7860else
7861  xorg_cv_cc_flag_unknown_warning_option=no
7862fi
7863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7864fi
7865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7866$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7867	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7868	CFLAGS="$xorg_testset_save_CFLAGS"
7869fi
7870
7871if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7872	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7873		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7874	fi
7875	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7876	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7877$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7878if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7879  $as_echo_n "(cached) " >&6
7880else
7881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7882/* end confdefs.h.  */
7883int i;
7884_ACEOF
7885if ac_fn_c_try_compile "$LINENO"; then :
7886  xorg_cv_cc_flag_unused_command_line_argument=yes
7887else
7888  xorg_cv_cc_flag_unused_command_line_argument=no
7889fi
7890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7891fi
7892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7893$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7894	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7895	CFLAGS="$xorg_testset_save_CFLAGS"
7896fi
7897
7898found="no"
7899
7900	if test $found = "no" ; then
7901		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7902			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7903		fi
7904
7905		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7906			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7907		fi
7908
7909		CFLAGS="$CFLAGS -Werror=trigraphs"
7910
7911		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7912$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7913		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7914		if eval \${$cacheid+:} false; then :
7915  $as_echo_n "(cached) " >&6
7916else
7917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7918/* end confdefs.h.  */
7919int i;
7920int
7921main ()
7922{
7923
7924  ;
7925  return 0;
7926}
7927_ACEOF
7928if ac_fn_c_try_link "$LINENO"; then :
7929  eval $cacheid=yes
7930else
7931  eval $cacheid=no
7932fi
7933rm -f core conftest.err conftest.$ac_objext \
7934    conftest$ac_exeext conftest.$ac_ext
7935fi
7936
7937
7938		CFLAGS="$xorg_testset_save_CFLAGS"
7939
7940		eval supported=\$$cacheid
7941		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7942$as_echo "$supported" >&6; }
7943		if test "$supported" = "yes" ; then
7944			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7945			found="yes"
7946		fi
7947	fi
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963xorg_testset_save_CFLAGS="$CFLAGS"
7964
7965if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7966	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7967	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7968$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7969if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7970  $as_echo_n "(cached) " >&6
7971else
7972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7973/* end confdefs.h.  */
7974int i;
7975_ACEOF
7976if ac_fn_c_try_compile "$LINENO"; then :
7977  xorg_cv_cc_flag_unknown_warning_option=yes
7978else
7979  xorg_cv_cc_flag_unknown_warning_option=no
7980fi
7981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7982fi
7983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7984$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7985	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7986	CFLAGS="$xorg_testset_save_CFLAGS"
7987fi
7988
7989if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7990	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7991		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7992	fi
7993	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7994	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7995$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7996if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7997  $as_echo_n "(cached) " >&6
7998else
7999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8000/* end confdefs.h.  */
8001int i;
8002_ACEOF
8003if ac_fn_c_try_compile "$LINENO"; then :
8004  xorg_cv_cc_flag_unused_command_line_argument=yes
8005else
8006  xorg_cv_cc_flag_unused_command_line_argument=no
8007fi
8008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8009fi
8010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8011$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8012	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8013	CFLAGS="$xorg_testset_save_CFLAGS"
8014fi
8015
8016found="no"
8017
8018	if test $found = "no" ; then
8019		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8020			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8021		fi
8022
8023		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8024			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8025		fi
8026
8027		CFLAGS="$CFLAGS -Werror=array-bounds"
8028
8029		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8030$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8031		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
8032		if eval \${$cacheid+:} false; then :
8033  $as_echo_n "(cached) " >&6
8034else
8035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8036/* end confdefs.h.  */
8037int i;
8038int
8039main ()
8040{
8041
8042  ;
8043  return 0;
8044}
8045_ACEOF
8046if ac_fn_c_try_link "$LINENO"; then :
8047  eval $cacheid=yes
8048else
8049  eval $cacheid=no
8050fi
8051rm -f core conftest.err conftest.$ac_objext \
8052    conftest$ac_exeext conftest.$ac_ext
8053fi
8054
8055
8056		CFLAGS="$xorg_testset_save_CFLAGS"
8057
8058		eval supported=\$$cacheid
8059		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8060$as_echo "$supported" >&6; }
8061		if test "$supported" = "yes" ; then
8062			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8063			found="yes"
8064		fi
8065	fi
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081xorg_testset_save_CFLAGS="$CFLAGS"
8082
8083if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8084	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8085	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8086$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8087if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8088  $as_echo_n "(cached) " >&6
8089else
8090  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8091/* end confdefs.h.  */
8092int i;
8093_ACEOF
8094if ac_fn_c_try_compile "$LINENO"; then :
8095  xorg_cv_cc_flag_unknown_warning_option=yes
8096else
8097  xorg_cv_cc_flag_unknown_warning_option=no
8098fi
8099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8100fi
8101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8102$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8103	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8104	CFLAGS="$xorg_testset_save_CFLAGS"
8105fi
8106
8107if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8108	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8109		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8110	fi
8111	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8112	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8113$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8114if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8115  $as_echo_n "(cached) " >&6
8116else
8117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8118/* end confdefs.h.  */
8119int i;
8120_ACEOF
8121if ac_fn_c_try_compile "$LINENO"; then :
8122  xorg_cv_cc_flag_unused_command_line_argument=yes
8123else
8124  xorg_cv_cc_flag_unused_command_line_argument=no
8125fi
8126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8127fi
8128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8129$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8130	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8131	CFLAGS="$xorg_testset_save_CFLAGS"
8132fi
8133
8134found="no"
8135
8136	if test $found = "no" ; then
8137		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8138			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8139		fi
8140
8141		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8142			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8143		fi
8144
8145		CFLAGS="$CFLAGS -Werror=write-strings"
8146
8147		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8148$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8149		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
8150		if eval \${$cacheid+:} false; then :
8151  $as_echo_n "(cached) " >&6
8152else
8153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8154/* end confdefs.h.  */
8155int i;
8156int
8157main ()
8158{
8159
8160  ;
8161  return 0;
8162}
8163_ACEOF
8164if ac_fn_c_try_link "$LINENO"; then :
8165  eval $cacheid=yes
8166else
8167  eval $cacheid=no
8168fi
8169rm -f core conftest.err conftest.$ac_objext \
8170    conftest$ac_exeext conftest.$ac_ext
8171fi
8172
8173
8174		CFLAGS="$xorg_testset_save_CFLAGS"
8175
8176		eval supported=\$$cacheid
8177		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8178$as_echo "$supported" >&6; }
8179		if test "$supported" = "yes" ; then
8180			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8181			found="yes"
8182		fi
8183	fi
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199xorg_testset_save_CFLAGS="$CFLAGS"
8200
8201if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8202	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8203	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8204$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8205if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8206  $as_echo_n "(cached) " >&6
8207else
8208  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8209/* end confdefs.h.  */
8210int i;
8211_ACEOF
8212if ac_fn_c_try_compile "$LINENO"; then :
8213  xorg_cv_cc_flag_unknown_warning_option=yes
8214else
8215  xorg_cv_cc_flag_unknown_warning_option=no
8216fi
8217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8218fi
8219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8220$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8221	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8222	CFLAGS="$xorg_testset_save_CFLAGS"
8223fi
8224
8225if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8226	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8227		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8228	fi
8229	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8230	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8231$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8232if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8233  $as_echo_n "(cached) " >&6
8234else
8235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8236/* end confdefs.h.  */
8237int i;
8238_ACEOF
8239if ac_fn_c_try_compile "$LINENO"; then :
8240  xorg_cv_cc_flag_unused_command_line_argument=yes
8241else
8242  xorg_cv_cc_flag_unused_command_line_argument=no
8243fi
8244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8245fi
8246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8247$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8248	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8249	CFLAGS="$xorg_testset_save_CFLAGS"
8250fi
8251
8252found="no"
8253
8254	if test $found = "no" ; then
8255		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8256			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8257		fi
8258
8259		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8260			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8261		fi
8262
8263		CFLAGS="$CFLAGS -Werror=address"
8264
8265		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8266$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8267		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8268		if eval \${$cacheid+:} false; then :
8269  $as_echo_n "(cached) " >&6
8270else
8271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8272/* end confdefs.h.  */
8273int i;
8274int
8275main ()
8276{
8277
8278  ;
8279  return 0;
8280}
8281_ACEOF
8282if ac_fn_c_try_link "$LINENO"; then :
8283  eval $cacheid=yes
8284else
8285  eval $cacheid=no
8286fi
8287rm -f core conftest.err conftest.$ac_objext \
8288    conftest$ac_exeext conftest.$ac_ext
8289fi
8290
8291
8292		CFLAGS="$xorg_testset_save_CFLAGS"
8293
8294		eval supported=\$$cacheid
8295		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8296$as_echo "$supported" >&6; }
8297		if test "$supported" = "yes" ; then
8298			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8299			found="yes"
8300		fi
8301	fi
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317xorg_testset_save_CFLAGS="$CFLAGS"
8318
8319if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8320	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8321	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8322$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8323if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8324  $as_echo_n "(cached) " >&6
8325else
8326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327/* end confdefs.h.  */
8328int i;
8329_ACEOF
8330if ac_fn_c_try_compile "$LINENO"; then :
8331  xorg_cv_cc_flag_unknown_warning_option=yes
8332else
8333  xorg_cv_cc_flag_unknown_warning_option=no
8334fi
8335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8336fi
8337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8338$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8339	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8340	CFLAGS="$xorg_testset_save_CFLAGS"
8341fi
8342
8343if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8344	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8345		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8346	fi
8347	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8348	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8349$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8350if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8351  $as_echo_n "(cached) " >&6
8352else
8353  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8354/* end confdefs.h.  */
8355int i;
8356_ACEOF
8357if ac_fn_c_try_compile "$LINENO"; then :
8358  xorg_cv_cc_flag_unused_command_line_argument=yes
8359else
8360  xorg_cv_cc_flag_unused_command_line_argument=no
8361fi
8362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8363fi
8364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8365$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8366	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8367	CFLAGS="$xorg_testset_save_CFLAGS"
8368fi
8369
8370found="no"
8371
8372	if test $found = "no" ; then
8373		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8374			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8375		fi
8376
8377		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8378			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8379		fi
8380
8381		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8382
8383		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8384$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8385		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8386		if eval \${$cacheid+:} false; then :
8387  $as_echo_n "(cached) " >&6
8388else
8389  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8390/* end confdefs.h.  */
8391int i;
8392int
8393main ()
8394{
8395
8396  ;
8397  return 0;
8398}
8399_ACEOF
8400if ac_fn_c_try_link "$LINENO"; then :
8401  eval $cacheid=yes
8402else
8403  eval $cacheid=no
8404fi
8405rm -f core conftest.err conftest.$ac_objext \
8406    conftest$ac_exeext conftest.$ac_ext
8407fi
8408
8409
8410		CFLAGS="$xorg_testset_save_CFLAGS"
8411
8412		eval supported=\$$cacheid
8413		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8414$as_echo "$supported" >&6; }
8415		if test "$supported" = "yes" ; then
8416			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8417			found="yes"
8418		fi
8419	fi
8420
8421	if test $found = "no" ; then
8422		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8423			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8424		fi
8425
8426		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8427			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8428		fi
8429
8430		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8431
8432		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8433$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8434		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8435		if eval \${$cacheid+:} false; then :
8436  $as_echo_n "(cached) " >&6
8437else
8438  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8439/* end confdefs.h.  */
8440int i;
8441int
8442main ()
8443{
8444
8445  ;
8446  return 0;
8447}
8448_ACEOF
8449if ac_fn_c_try_link "$LINENO"; then :
8450  eval $cacheid=yes
8451else
8452  eval $cacheid=no
8453fi
8454rm -f core conftest.err conftest.$ac_objext \
8455    conftest$ac_exeext conftest.$ac_ext
8456fi
8457
8458
8459		CFLAGS="$xorg_testset_save_CFLAGS"
8460
8461		eval supported=\$$cacheid
8462		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8463$as_echo "$supported" >&6; }
8464		if test "$supported" = "yes" ; then
8465			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8466			found="yes"
8467		fi
8468	fi
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484xorg_testset_save_CFLAGS="$CFLAGS"
8485
8486if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8487	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8488	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8489$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8490if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8491  $as_echo_n "(cached) " >&6
8492else
8493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8494/* end confdefs.h.  */
8495int i;
8496_ACEOF
8497if ac_fn_c_try_compile "$LINENO"; then :
8498  xorg_cv_cc_flag_unknown_warning_option=yes
8499else
8500  xorg_cv_cc_flag_unknown_warning_option=no
8501fi
8502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8503fi
8504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8505$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8506	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8507	CFLAGS="$xorg_testset_save_CFLAGS"
8508fi
8509
8510if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8511	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8512		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8513	fi
8514	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8515	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8516$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8517if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8518  $as_echo_n "(cached) " >&6
8519else
8520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8521/* end confdefs.h.  */
8522int i;
8523_ACEOF
8524if ac_fn_c_try_compile "$LINENO"; then :
8525  xorg_cv_cc_flag_unused_command_line_argument=yes
8526else
8527  xorg_cv_cc_flag_unused_command_line_argument=no
8528fi
8529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8530fi
8531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8532$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8533	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8534	CFLAGS="$xorg_testset_save_CFLAGS"
8535fi
8536
8537found="no"
8538
8539	if test $found = "no" ; then
8540		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8541			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8542		fi
8543
8544		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8545			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8546		fi
8547
8548		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8549
8550		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8551$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8552		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8553		if eval \${$cacheid+:} false; then :
8554  $as_echo_n "(cached) " >&6
8555else
8556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8557/* end confdefs.h.  */
8558int i;
8559int
8560main ()
8561{
8562
8563  ;
8564  return 0;
8565}
8566_ACEOF
8567if ac_fn_c_try_link "$LINENO"; then :
8568  eval $cacheid=yes
8569else
8570  eval $cacheid=no
8571fi
8572rm -f core conftest.err conftest.$ac_objext \
8573    conftest$ac_exeext conftest.$ac_ext
8574fi
8575
8576
8577		CFLAGS="$xorg_testset_save_CFLAGS"
8578
8579		eval supported=\$$cacheid
8580		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8581$as_echo "$supported" >&6; }
8582		if test "$supported" = "yes" ; then
8583			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8584			found="yes"
8585		fi
8586	fi
8587
8588 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8589else
8590{ $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
8591$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;}
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605xorg_testset_save_CFLAGS="$CFLAGS"
8606
8607if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8608	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8609	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8610$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8611if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8612  $as_echo_n "(cached) " >&6
8613else
8614  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8615/* end confdefs.h.  */
8616int i;
8617_ACEOF
8618if ac_fn_c_try_compile "$LINENO"; then :
8619  xorg_cv_cc_flag_unknown_warning_option=yes
8620else
8621  xorg_cv_cc_flag_unknown_warning_option=no
8622fi
8623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8624fi
8625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8626$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8627	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8628	CFLAGS="$xorg_testset_save_CFLAGS"
8629fi
8630
8631if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8632	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8633		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8634	fi
8635	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8636	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8637$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8638if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8639  $as_echo_n "(cached) " >&6
8640else
8641  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8642/* end confdefs.h.  */
8643int i;
8644_ACEOF
8645if ac_fn_c_try_compile "$LINENO"; then :
8646  xorg_cv_cc_flag_unused_command_line_argument=yes
8647else
8648  xorg_cv_cc_flag_unused_command_line_argument=no
8649fi
8650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8651fi
8652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8653$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8654	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8655	CFLAGS="$xorg_testset_save_CFLAGS"
8656fi
8657
8658found="no"
8659
8660	if test $found = "no" ; then
8661		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8662			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8663		fi
8664
8665		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8666			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8667		fi
8668
8669		CFLAGS="$CFLAGS -Wimplicit"
8670
8671		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8672$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8673		cacheid=xorg_cv_cc_flag__Wimplicit
8674		if eval \${$cacheid+:} false; then :
8675  $as_echo_n "(cached) " >&6
8676else
8677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8678/* end confdefs.h.  */
8679int i;
8680int
8681main ()
8682{
8683
8684  ;
8685  return 0;
8686}
8687_ACEOF
8688if ac_fn_c_try_link "$LINENO"; then :
8689  eval $cacheid=yes
8690else
8691  eval $cacheid=no
8692fi
8693rm -f core conftest.err conftest.$ac_objext \
8694    conftest$ac_exeext conftest.$ac_ext
8695fi
8696
8697
8698		CFLAGS="$xorg_testset_save_CFLAGS"
8699
8700		eval supported=\$$cacheid
8701		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8702$as_echo "$supported" >&6; }
8703		if test "$supported" = "yes" ; then
8704			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8705			found="yes"
8706		fi
8707	fi
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723xorg_testset_save_CFLAGS="$CFLAGS"
8724
8725if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8726	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8727	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8728$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8729if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8730  $as_echo_n "(cached) " >&6
8731else
8732  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8733/* end confdefs.h.  */
8734int i;
8735_ACEOF
8736if ac_fn_c_try_compile "$LINENO"; then :
8737  xorg_cv_cc_flag_unknown_warning_option=yes
8738else
8739  xorg_cv_cc_flag_unknown_warning_option=no
8740fi
8741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8742fi
8743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8744$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8745	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8746	CFLAGS="$xorg_testset_save_CFLAGS"
8747fi
8748
8749if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8750	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8751		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8752	fi
8753	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8754	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8755$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8756if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8757  $as_echo_n "(cached) " >&6
8758else
8759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8760/* end confdefs.h.  */
8761int i;
8762_ACEOF
8763if ac_fn_c_try_compile "$LINENO"; then :
8764  xorg_cv_cc_flag_unused_command_line_argument=yes
8765else
8766  xorg_cv_cc_flag_unused_command_line_argument=no
8767fi
8768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8769fi
8770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8771$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8772	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8773	CFLAGS="$xorg_testset_save_CFLAGS"
8774fi
8775
8776found="no"
8777
8778	if test $found = "no" ; then
8779		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8780			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8781		fi
8782
8783		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8784			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8785		fi
8786
8787		CFLAGS="$CFLAGS -Wnonnull"
8788
8789		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8790$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8791		cacheid=xorg_cv_cc_flag__Wnonnull
8792		if eval \${$cacheid+:} false; then :
8793  $as_echo_n "(cached) " >&6
8794else
8795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8796/* end confdefs.h.  */
8797int i;
8798int
8799main ()
8800{
8801
8802  ;
8803  return 0;
8804}
8805_ACEOF
8806if ac_fn_c_try_link "$LINENO"; then :
8807  eval $cacheid=yes
8808else
8809  eval $cacheid=no
8810fi
8811rm -f core conftest.err conftest.$ac_objext \
8812    conftest$ac_exeext conftest.$ac_ext
8813fi
8814
8815
8816		CFLAGS="$xorg_testset_save_CFLAGS"
8817
8818		eval supported=\$$cacheid
8819		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8820$as_echo "$supported" >&6; }
8821		if test "$supported" = "yes" ; then
8822			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8823			found="yes"
8824		fi
8825	fi
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841xorg_testset_save_CFLAGS="$CFLAGS"
8842
8843if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8844	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8845	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8846$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8847if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8848  $as_echo_n "(cached) " >&6
8849else
8850  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8851/* end confdefs.h.  */
8852int i;
8853_ACEOF
8854if ac_fn_c_try_compile "$LINENO"; then :
8855  xorg_cv_cc_flag_unknown_warning_option=yes
8856else
8857  xorg_cv_cc_flag_unknown_warning_option=no
8858fi
8859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8860fi
8861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8862$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8863	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8864	CFLAGS="$xorg_testset_save_CFLAGS"
8865fi
8866
8867if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8868	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8869		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8870	fi
8871	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8872	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8873$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8874if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8875  $as_echo_n "(cached) " >&6
8876else
8877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8878/* end confdefs.h.  */
8879int i;
8880_ACEOF
8881if ac_fn_c_try_compile "$LINENO"; then :
8882  xorg_cv_cc_flag_unused_command_line_argument=yes
8883else
8884  xorg_cv_cc_flag_unused_command_line_argument=no
8885fi
8886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8887fi
8888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8889$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8890	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8891	CFLAGS="$xorg_testset_save_CFLAGS"
8892fi
8893
8894found="no"
8895
8896	if test $found = "no" ; then
8897		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8898			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8899		fi
8900
8901		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8902			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8903		fi
8904
8905		CFLAGS="$CFLAGS -Winit-self"
8906
8907		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8908$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8909		cacheid=xorg_cv_cc_flag__Winit_self
8910		if eval \${$cacheid+:} false; then :
8911  $as_echo_n "(cached) " >&6
8912else
8913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8914/* end confdefs.h.  */
8915int i;
8916int
8917main ()
8918{
8919
8920  ;
8921  return 0;
8922}
8923_ACEOF
8924if ac_fn_c_try_link "$LINENO"; then :
8925  eval $cacheid=yes
8926else
8927  eval $cacheid=no
8928fi
8929rm -f core conftest.err conftest.$ac_objext \
8930    conftest$ac_exeext conftest.$ac_ext
8931fi
8932
8933
8934		CFLAGS="$xorg_testset_save_CFLAGS"
8935
8936		eval supported=\$$cacheid
8937		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8938$as_echo "$supported" >&6; }
8939		if test "$supported" = "yes" ; then
8940			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8941			found="yes"
8942		fi
8943	fi
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959xorg_testset_save_CFLAGS="$CFLAGS"
8960
8961if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8962	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8963	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8964$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8965if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8966  $as_echo_n "(cached) " >&6
8967else
8968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8969/* end confdefs.h.  */
8970int i;
8971_ACEOF
8972if ac_fn_c_try_compile "$LINENO"; then :
8973  xorg_cv_cc_flag_unknown_warning_option=yes
8974else
8975  xorg_cv_cc_flag_unknown_warning_option=no
8976fi
8977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8978fi
8979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8980$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8981	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8982	CFLAGS="$xorg_testset_save_CFLAGS"
8983fi
8984
8985if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8986	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8987		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8988	fi
8989	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8990	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8991$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8992if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8993  $as_echo_n "(cached) " >&6
8994else
8995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8996/* end confdefs.h.  */
8997int i;
8998_ACEOF
8999if ac_fn_c_try_compile "$LINENO"; then :
9000  xorg_cv_cc_flag_unused_command_line_argument=yes
9001else
9002  xorg_cv_cc_flag_unused_command_line_argument=no
9003fi
9004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9005fi
9006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9007$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9008	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9009	CFLAGS="$xorg_testset_save_CFLAGS"
9010fi
9011
9012found="no"
9013
9014	if test $found = "no" ; then
9015		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9016			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9017		fi
9018
9019		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9020			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9021		fi
9022
9023		CFLAGS="$CFLAGS -Wmain"
9024
9025		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9026$as_echo_n "checking if $CC supports -Wmain... " >&6; }
9027		cacheid=xorg_cv_cc_flag__Wmain
9028		if eval \${$cacheid+:} false; then :
9029  $as_echo_n "(cached) " >&6
9030else
9031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9032/* end confdefs.h.  */
9033int i;
9034int
9035main ()
9036{
9037
9038  ;
9039  return 0;
9040}
9041_ACEOF
9042if ac_fn_c_try_link "$LINENO"; then :
9043  eval $cacheid=yes
9044else
9045  eval $cacheid=no
9046fi
9047rm -f core conftest.err conftest.$ac_objext \
9048    conftest$ac_exeext conftest.$ac_ext
9049fi
9050
9051
9052		CFLAGS="$xorg_testset_save_CFLAGS"
9053
9054		eval supported=\$$cacheid
9055		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9056$as_echo "$supported" >&6; }
9057		if test "$supported" = "yes" ; then
9058			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9059			found="yes"
9060		fi
9061	fi
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077xorg_testset_save_CFLAGS="$CFLAGS"
9078
9079if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9080	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9081	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9082$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9083if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9084  $as_echo_n "(cached) " >&6
9085else
9086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9087/* end confdefs.h.  */
9088int i;
9089_ACEOF
9090if ac_fn_c_try_compile "$LINENO"; then :
9091  xorg_cv_cc_flag_unknown_warning_option=yes
9092else
9093  xorg_cv_cc_flag_unknown_warning_option=no
9094fi
9095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9096fi
9097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9098$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9099	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9100	CFLAGS="$xorg_testset_save_CFLAGS"
9101fi
9102
9103if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9104	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9105		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9106	fi
9107	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9108	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9109$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9110if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9111  $as_echo_n "(cached) " >&6
9112else
9113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9114/* end confdefs.h.  */
9115int i;
9116_ACEOF
9117if ac_fn_c_try_compile "$LINENO"; then :
9118  xorg_cv_cc_flag_unused_command_line_argument=yes
9119else
9120  xorg_cv_cc_flag_unused_command_line_argument=no
9121fi
9122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9123fi
9124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9125$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9126	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9127	CFLAGS="$xorg_testset_save_CFLAGS"
9128fi
9129
9130found="no"
9131
9132	if test $found = "no" ; then
9133		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9134			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9135		fi
9136
9137		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9138			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9139		fi
9140
9141		CFLAGS="$CFLAGS -Wmissing-braces"
9142
9143		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9144$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9145		cacheid=xorg_cv_cc_flag__Wmissing_braces
9146		if eval \${$cacheid+:} false; then :
9147  $as_echo_n "(cached) " >&6
9148else
9149  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9150/* end confdefs.h.  */
9151int i;
9152int
9153main ()
9154{
9155
9156  ;
9157  return 0;
9158}
9159_ACEOF
9160if ac_fn_c_try_link "$LINENO"; then :
9161  eval $cacheid=yes
9162else
9163  eval $cacheid=no
9164fi
9165rm -f core conftest.err conftest.$ac_objext \
9166    conftest$ac_exeext conftest.$ac_ext
9167fi
9168
9169
9170		CFLAGS="$xorg_testset_save_CFLAGS"
9171
9172		eval supported=\$$cacheid
9173		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9174$as_echo "$supported" >&6; }
9175		if test "$supported" = "yes" ; then
9176			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9177			found="yes"
9178		fi
9179	fi
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195xorg_testset_save_CFLAGS="$CFLAGS"
9196
9197if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9198	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9199	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9200$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9201if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9202  $as_echo_n "(cached) " >&6
9203else
9204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9205/* end confdefs.h.  */
9206int i;
9207_ACEOF
9208if ac_fn_c_try_compile "$LINENO"; then :
9209  xorg_cv_cc_flag_unknown_warning_option=yes
9210else
9211  xorg_cv_cc_flag_unknown_warning_option=no
9212fi
9213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9214fi
9215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9216$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9217	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9218	CFLAGS="$xorg_testset_save_CFLAGS"
9219fi
9220
9221if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9222	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9223		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9224	fi
9225	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9226	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9227$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9228if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9229  $as_echo_n "(cached) " >&6
9230else
9231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9232/* end confdefs.h.  */
9233int i;
9234_ACEOF
9235if ac_fn_c_try_compile "$LINENO"; then :
9236  xorg_cv_cc_flag_unused_command_line_argument=yes
9237else
9238  xorg_cv_cc_flag_unused_command_line_argument=no
9239fi
9240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9241fi
9242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9243$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9244	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9245	CFLAGS="$xorg_testset_save_CFLAGS"
9246fi
9247
9248found="no"
9249
9250	if test $found = "no" ; then
9251		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9252			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9253		fi
9254
9255		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9256			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9257		fi
9258
9259		CFLAGS="$CFLAGS -Wsequence-point"
9260
9261		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9262$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9263		cacheid=xorg_cv_cc_flag__Wsequence_point
9264		if eval \${$cacheid+:} false; then :
9265  $as_echo_n "(cached) " >&6
9266else
9267  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9268/* end confdefs.h.  */
9269int i;
9270int
9271main ()
9272{
9273
9274  ;
9275  return 0;
9276}
9277_ACEOF
9278if ac_fn_c_try_link "$LINENO"; then :
9279  eval $cacheid=yes
9280else
9281  eval $cacheid=no
9282fi
9283rm -f core conftest.err conftest.$ac_objext \
9284    conftest$ac_exeext conftest.$ac_ext
9285fi
9286
9287
9288		CFLAGS="$xorg_testset_save_CFLAGS"
9289
9290		eval supported=\$$cacheid
9291		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9292$as_echo "$supported" >&6; }
9293		if test "$supported" = "yes" ; then
9294			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9295			found="yes"
9296		fi
9297	fi
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313xorg_testset_save_CFLAGS="$CFLAGS"
9314
9315if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9316	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9317	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9318$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9319if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9320  $as_echo_n "(cached) " >&6
9321else
9322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9323/* end confdefs.h.  */
9324int i;
9325_ACEOF
9326if ac_fn_c_try_compile "$LINENO"; then :
9327  xorg_cv_cc_flag_unknown_warning_option=yes
9328else
9329  xorg_cv_cc_flag_unknown_warning_option=no
9330fi
9331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9332fi
9333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9334$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9335	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9336	CFLAGS="$xorg_testset_save_CFLAGS"
9337fi
9338
9339if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9340	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9341		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9342	fi
9343	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9344	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9345$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9346if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9347  $as_echo_n "(cached) " >&6
9348else
9349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9350/* end confdefs.h.  */
9351int i;
9352_ACEOF
9353if ac_fn_c_try_compile "$LINENO"; then :
9354  xorg_cv_cc_flag_unused_command_line_argument=yes
9355else
9356  xorg_cv_cc_flag_unused_command_line_argument=no
9357fi
9358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9359fi
9360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9361$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9362	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9363	CFLAGS="$xorg_testset_save_CFLAGS"
9364fi
9365
9366found="no"
9367
9368	if test $found = "no" ; then
9369		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9370			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9371		fi
9372
9373		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9374			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9375		fi
9376
9377		CFLAGS="$CFLAGS -Wreturn-type"
9378
9379		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9380$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9381		cacheid=xorg_cv_cc_flag__Wreturn_type
9382		if eval \${$cacheid+:} false; then :
9383  $as_echo_n "(cached) " >&6
9384else
9385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9386/* end confdefs.h.  */
9387int i;
9388int
9389main ()
9390{
9391
9392  ;
9393  return 0;
9394}
9395_ACEOF
9396if ac_fn_c_try_link "$LINENO"; then :
9397  eval $cacheid=yes
9398else
9399  eval $cacheid=no
9400fi
9401rm -f core conftest.err conftest.$ac_objext \
9402    conftest$ac_exeext conftest.$ac_ext
9403fi
9404
9405
9406		CFLAGS="$xorg_testset_save_CFLAGS"
9407
9408		eval supported=\$$cacheid
9409		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9410$as_echo "$supported" >&6; }
9411		if test "$supported" = "yes" ; then
9412			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9413			found="yes"
9414		fi
9415	fi
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431xorg_testset_save_CFLAGS="$CFLAGS"
9432
9433if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9434	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9435	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9436$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9437if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9438  $as_echo_n "(cached) " >&6
9439else
9440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9441/* end confdefs.h.  */
9442int i;
9443_ACEOF
9444if ac_fn_c_try_compile "$LINENO"; then :
9445  xorg_cv_cc_flag_unknown_warning_option=yes
9446else
9447  xorg_cv_cc_flag_unknown_warning_option=no
9448fi
9449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9450fi
9451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9452$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9453	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9454	CFLAGS="$xorg_testset_save_CFLAGS"
9455fi
9456
9457if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9458	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9459		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9460	fi
9461	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9462	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9463$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9464if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9465  $as_echo_n "(cached) " >&6
9466else
9467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9468/* end confdefs.h.  */
9469int i;
9470_ACEOF
9471if ac_fn_c_try_compile "$LINENO"; then :
9472  xorg_cv_cc_flag_unused_command_line_argument=yes
9473else
9474  xorg_cv_cc_flag_unused_command_line_argument=no
9475fi
9476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9477fi
9478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9479$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9480	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9481	CFLAGS="$xorg_testset_save_CFLAGS"
9482fi
9483
9484found="no"
9485
9486	if test $found = "no" ; then
9487		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9488			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9489		fi
9490
9491		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9492			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9493		fi
9494
9495		CFLAGS="$CFLAGS -Wtrigraphs"
9496
9497		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9498$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9499		cacheid=xorg_cv_cc_flag__Wtrigraphs
9500		if eval \${$cacheid+:} false; then :
9501  $as_echo_n "(cached) " >&6
9502else
9503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9504/* end confdefs.h.  */
9505int i;
9506int
9507main ()
9508{
9509
9510  ;
9511  return 0;
9512}
9513_ACEOF
9514if ac_fn_c_try_link "$LINENO"; then :
9515  eval $cacheid=yes
9516else
9517  eval $cacheid=no
9518fi
9519rm -f core conftest.err conftest.$ac_objext \
9520    conftest$ac_exeext conftest.$ac_ext
9521fi
9522
9523
9524		CFLAGS="$xorg_testset_save_CFLAGS"
9525
9526		eval supported=\$$cacheid
9527		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9528$as_echo "$supported" >&6; }
9529		if test "$supported" = "yes" ; then
9530			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9531			found="yes"
9532		fi
9533	fi
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549xorg_testset_save_CFLAGS="$CFLAGS"
9550
9551if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9552	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9553	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9554$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9555if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9556  $as_echo_n "(cached) " >&6
9557else
9558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9559/* end confdefs.h.  */
9560int i;
9561_ACEOF
9562if ac_fn_c_try_compile "$LINENO"; then :
9563  xorg_cv_cc_flag_unknown_warning_option=yes
9564else
9565  xorg_cv_cc_flag_unknown_warning_option=no
9566fi
9567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9568fi
9569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9570$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9571	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9572	CFLAGS="$xorg_testset_save_CFLAGS"
9573fi
9574
9575if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9576	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9577		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9578	fi
9579	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9580	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9581$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9582if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9583  $as_echo_n "(cached) " >&6
9584else
9585  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9586/* end confdefs.h.  */
9587int i;
9588_ACEOF
9589if ac_fn_c_try_compile "$LINENO"; then :
9590  xorg_cv_cc_flag_unused_command_line_argument=yes
9591else
9592  xorg_cv_cc_flag_unused_command_line_argument=no
9593fi
9594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9595fi
9596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9597$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9598	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9599	CFLAGS="$xorg_testset_save_CFLAGS"
9600fi
9601
9602found="no"
9603
9604	if test $found = "no" ; then
9605		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9606			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9607		fi
9608
9609		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9610			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9611		fi
9612
9613		CFLAGS="$CFLAGS -Warray-bounds"
9614
9615		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9616$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9617		cacheid=xorg_cv_cc_flag__Warray_bounds
9618		if eval \${$cacheid+:} false; then :
9619  $as_echo_n "(cached) " >&6
9620else
9621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9622/* end confdefs.h.  */
9623int i;
9624int
9625main ()
9626{
9627
9628  ;
9629  return 0;
9630}
9631_ACEOF
9632if ac_fn_c_try_link "$LINENO"; then :
9633  eval $cacheid=yes
9634else
9635  eval $cacheid=no
9636fi
9637rm -f core conftest.err conftest.$ac_objext \
9638    conftest$ac_exeext conftest.$ac_ext
9639fi
9640
9641
9642		CFLAGS="$xorg_testset_save_CFLAGS"
9643
9644		eval supported=\$$cacheid
9645		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9646$as_echo "$supported" >&6; }
9647		if test "$supported" = "yes" ; then
9648			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9649			found="yes"
9650		fi
9651	fi
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667xorg_testset_save_CFLAGS="$CFLAGS"
9668
9669if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9670	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9671	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9672$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9673if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9674  $as_echo_n "(cached) " >&6
9675else
9676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9677/* end confdefs.h.  */
9678int i;
9679_ACEOF
9680if ac_fn_c_try_compile "$LINENO"; then :
9681  xorg_cv_cc_flag_unknown_warning_option=yes
9682else
9683  xorg_cv_cc_flag_unknown_warning_option=no
9684fi
9685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9686fi
9687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9688$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9689	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9690	CFLAGS="$xorg_testset_save_CFLAGS"
9691fi
9692
9693if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9694	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9695		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9696	fi
9697	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9698	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9699$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9700if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9701  $as_echo_n "(cached) " >&6
9702else
9703  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9704/* end confdefs.h.  */
9705int i;
9706_ACEOF
9707if ac_fn_c_try_compile "$LINENO"; then :
9708  xorg_cv_cc_flag_unused_command_line_argument=yes
9709else
9710  xorg_cv_cc_flag_unused_command_line_argument=no
9711fi
9712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9713fi
9714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9715$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9716	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9717	CFLAGS="$xorg_testset_save_CFLAGS"
9718fi
9719
9720found="no"
9721
9722	if test $found = "no" ; then
9723		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9724			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9725		fi
9726
9727		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9728			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9729		fi
9730
9731		CFLAGS="$CFLAGS -Wwrite-strings"
9732
9733		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9734$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9735		cacheid=xorg_cv_cc_flag__Wwrite_strings
9736		if eval \${$cacheid+:} false; then :
9737  $as_echo_n "(cached) " >&6
9738else
9739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9740/* end confdefs.h.  */
9741int i;
9742int
9743main ()
9744{
9745
9746  ;
9747  return 0;
9748}
9749_ACEOF
9750if ac_fn_c_try_link "$LINENO"; then :
9751  eval $cacheid=yes
9752else
9753  eval $cacheid=no
9754fi
9755rm -f core conftest.err conftest.$ac_objext \
9756    conftest$ac_exeext conftest.$ac_ext
9757fi
9758
9759
9760		CFLAGS="$xorg_testset_save_CFLAGS"
9761
9762		eval supported=\$$cacheid
9763		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9764$as_echo "$supported" >&6; }
9765		if test "$supported" = "yes" ; then
9766			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9767			found="yes"
9768		fi
9769	fi
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785xorg_testset_save_CFLAGS="$CFLAGS"
9786
9787if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9788	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9789	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9790$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9791if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9792  $as_echo_n "(cached) " >&6
9793else
9794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9795/* end confdefs.h.  */
9796int i;
9797_ACEOF
9798if ac_fn_c_try_compile "$LINENO"; then :
9799  xorg_cv_cc_flag_unknown_warning_option=yes
9800else
9801  xorg_cv_cc_flag_unknown_warning_option=no
9802fi
9803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9804fi
9805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9806$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9807	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9808	CFLAGS="$xorg_testset_save_CFLAGS"
9809fi
9810
9811if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9812	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9813		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9814	fi
9815	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9816	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9817$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9818if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9819  $as_echo_n "(cached) " >&6
9820else
9821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9822/* end confdefs.h.  */
9823int i;
9824_ACEOF
9825if ac_fn_c_try_compile "$LINENO"; then :
9826  xorg_cv_cc_flag_unused_command_line_argument=yes
9827else
9828  xorg_cv_cc_flag_unused_command_line_argument=no
9829fi
9830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9831fi
9832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9833$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9834	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9835	CFLAGS="$xorg_testset_save_CFLAGS"
9836fi
9837
9838found="no"
9839
9840	if test $found = "no" ; then
9841		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9842			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9843		fi
9844
9845		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9846			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9847		fi
9848
9849		CFLAGS="$CFLAGS -Waddress"
9850
9851		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9852$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9853		cacheid=xorg_cv_cc_flag__Waddress
9854		if eval \${$cacheid+:} false; then :
9855  $as_echo_n "(cached) " >&6
9856else
9857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9858/* end confdefs.h.  */
9859int i;
9860int
9861main ()
9862{
9863
9864  ;
9865  return 0;
9866}
9867_ACEOF
9868if ac_fn_c_try_link "$LINENO"; then :
9869  eval $cacheid=yes
9870else
9871  eval $cacheid=no
9872fi
9873rm -f core conftest.err conftest.$ac_objext \
9874    conftest$ac_exeext conftest.$ac_ext
9875fi
9876
9877
9878		CFLAGS="$xorg_testset_save_CFLAGS"
9879
9880		eval supported=\$$cacheid
9881		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9882$as_echo "$supported" >&6; }
9883		if test "$supported" = "yes" ; then
9884			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9885			found="yes"
9886		fi
9887	fi
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903xorg_testset_save_CFLAGS="$CFLAGS"
9904
9905if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9906	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9907	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9908$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9909if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9910  $as_echo_n "(cached) " >&6
9911else
9912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9913/* end confdefs.h.  */
9914int i;
9915_ACEOF
9916if ac_fn_c_try_compile "$LINENO"; then :
9917  xorg_cv_cc_flag_unknown_warning_option=yes
9918else
9919  xorg_cv_cc_flag_unknown_warning_option=no
9920fi
9921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9922fi
9923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9924$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9925	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9926	CFLAGS="$xorg_testset_save_CFLAGS"
9927fi
9928
9929if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9930	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9931		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9932	fi
9933	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9934	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9935$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9936if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9937  $as_echo_n "(cached) " >&6
9938else
9939  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9940/* end confdefs.h.  */
9941int i;
9942_ACEOF
9943if ac_fn_c_try_compile "$LINENO"; then :
9944  xorg_cv_cc_flag_unused_command_line_argument=yes
9945else
9946  xorg_cv_cc_flag_unused_command_line_argument=no
9947fi
9948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9949fi
9950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9951$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9952	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9953	CFLAGS="$xorg_testset_save_CFLAGS"
9954fi
9955
9956found="no"
9957
9958	if test $found = "no" ; then
9959		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9960			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9961		fi
9962
9963		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9964			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9965		fi
9966
9967		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9968
9969		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9970$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9971		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9972		if eval \${$cacheid+:} false; then :
9973  $as_echo_n "(cached) " >&6
9974else
9975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9976/* end confdefs.h.  */
9977int i;
9978int
9979main ()
9980{
9981
9982  ;
9983  return 0;
9984}
9985_ACEOF
9986if ac_fn_c_try_link "$LINENO"; then :
9987  eval $cacheid=yes
9988else
9989  eval $cacheid=no
9990fi
9991rm -f core conftest.err conftest.$ac_objext \
9992    conftest$ac_exeext conftest.$ac_ext
9993fi
9994
9995
9996		CFLAGS="$xorg_testset_save_CFLAGS"
9997
9998		eval supported=\$$cacheid
9999		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10000$as_echo "$supported" >&6; }
10001		if test "$supported" = "yes" ; then
10002			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10003			found="yes"
10004		fi
10005	fi
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021xorg_testset_save_CFLAGS="$CFLAGS"
10022
10023if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10024	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10025	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10026$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10027if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10028  $as_echo_n "(cached) " >&6
10029else
10030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10031/* end confdefs.h.  */
10032int i;
10033_ACEOF
10034if ac_fn_c_try_compile "$LINENO"; then :
10035  xorg_cv_cc_flag_unknown_warning_option=yes
10036else
10037  xorg_cv_cc_flag_unknown_warning_option=no
10038fi
10039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10040fi
10041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10042$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10043	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10044	CFLAGS="$xorg_testset_save_CFLAGS"
10045fi
10046
10047if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10048	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10049		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10050	fi
10051	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10052	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10053$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10054if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10055  $as_echo_n "(cached) " >&6
10056else
10057  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10058/* end confdefs.h.  */
10059int i;
10060_ACEOF
10061if ac_fn_c_try_compile "$LINENO"; then :
10062  xorg_cv_cc_flag_unused_command_line_argument=yes
10063else
10064  xorg_cv_cc_flag_unused_command_line_argument=no
10065fi
10066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10067fi
10068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10069$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10070	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10071	CFLAGS="$xorg_testset_save_CFLAGS"
10072fi
10073
10074found="no"
10075
10076	if test $found = "no" ; then
10077		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10078			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10079		fi
10080
10081		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10082			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10083		fi
10084
10085		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10086
10087		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10088$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10089		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10090		if eval \${$cacheid+:} false; then :
10091  $as_echo_n "(cached) " >&6
10092else
10093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10094/* end confdefs.h.  */
10095int i;
10096int
10097main ()
10098{
10099
10100  ;
10101  return 0;
10102}
10103_ACEOF
10104if ac_fn_c_try_link "$LINENO"; then :
10105  eval $cacheid=yes
10106else
10107  eval $cacheid=no
10108fi
10109rm -f core conftest.err conftest.$ac_objext \
10110    conftest$ac_exeext conftest.$ac_ext
10111fi
10112
10113
10114		CFLAGS="$xorg_testset_save_CFLAGS"
10115
10116		eval supported=\$$cacheid
10117		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10118$as_echo "$supported" >&6; }
10119		if test "$supported" = "yes" ; then
10120			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10121			found="yes"
10122		fi
10123	fi
10124
10125
10126fi
10127
10128
10129
10130
10131
10132
10133
10134		CWARNFLAGS="$BASE_CFLAGS"
10135		if  test "x$GCC" = xyes ; then
10136		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10137		fi
10138
10139
10140
10141
10142
10143
10144
10145
10146# Check whether --enable-strict-compilation was given.
10147if test "${enable_strict_compilation+set}" = set; then :
10148  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10149else
10150  STRICT_COMPILE=no
10151fi
10152
10153
10154
10155
10156
10157
10158STRICT_CFLAGS=""
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172xorg_testset_save_CFLAGS="$CFLAGS"
10173
10174if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10175	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10176	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10177$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10178if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10179  $as_echo_n "(cached) " >&6
10180else
10181  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10182/* end confdefs.h.  */
10183int i;
10184_ACEOF
10185if ac_fn_c_try_compile "$LINENO"; then :
10186  xorg_cv_cc_flag_unknown_warning_option=yes
10187else
10188  xorg_cv_cc_flag_unknown_warning_option=no
10189fi
10190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10191fi
10192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10193$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10194	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10195	CFLAGS="$xorg_testset_save_CFLAGS"
10196fi
10197
10198if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10199	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10200		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10201	fi
10202	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10203	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10204$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10205if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10206  $as_echo_n "(cached) " >&6
10207else
10208  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10209/* end confdefs.h.  */
10210int i;
10211_ACEOF
10212if ac_fn_c_try_compile "$LINENO"; then :
10213  xorg_cv_cc_flag_unused_command_line_argument=yes
10214else
10215  xorg_cv_cc_flag_unused_command_line_argument=no
10216fi
10217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10218fi
10219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10220$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10221	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10222	CFLAGS="$xorg_testset_save_CFLAGS"
10223fi
10224
10225found="no"
10226
10227	if test $found = "no" ; then
10228		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10229			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10230		fi
10231
10232		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10233			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10234		fi
10235
10236		CFLAGS="$CFLAGS -pedantic"
10237
10238		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10239$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10240		cacheid=xorg_cv_cc_flag__pedantic
10241		if eval \${$cacheid+:} false; then :
10242  $as_echo_n "(cached) " >&6
10243else
10244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10245/* end confdefs.h.  */
10246int i;
10247int
10248main ()
10249{
10250
10251  ;
10252  return 0;
10253}
10254_ACEOF
10255if ac_fn_c_try_link "$LINENO"; then :
10256  eval $cacheid=yes
10257else
10258  eval $cacheid=no
10259fi
10260rm -f core conftest.err conftest.$ac_objext \
10261    conftest$ac_exeext conftest.$ac_ext
10262fi
10263
10264
10265		CFLAGS="$xorg_testset_save_CFLAGS"
10266
10267		eval supported=\$$cacheid
10268		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10269$as_echo "$supported" >&6; }
10270		if test "$supported" = "yes" ; then
10271			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10272			found="yes"
10273		fi
10274	fi
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290xorg_testset_save_CFLAGS="$CFLAGS"
10291
10292if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10293	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10294	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10295$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10296if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10297  $as_echo_n "(cached) " >&6
10298else
10299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10300/* end confdefs.h.  */
10301int i;
10302_ACEOF
10303if ac_fn_c_try_compile "$LINENO"; then :
10304  xorg_cv_cc_flag_unknown_warning_option=yes
10305else
10306  xorg_cv_cc_flag_unknown_warning_option=no
10307fi
10308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10309fi
10310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10311$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10312	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10313	CFLAGS="$xorg_testset_save_CFLAGS"
10314fi
10315
10316if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10317	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10318		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10319	fi
10320	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10321	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10322$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10323if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10324  $as_echo_n "(cached) " >&6
10325else
10326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10327/* end confdefs.h.  */
10328int i;
10329_ACEOF
10330if ac_fn_c_try_compile "$LINENO"; then :
10331  xorg_cv_cc_flag_unused_command_line_argument=yes
10332else
10333  xorg_cv_cc_flag_unused_command_line_argument=no
10334fi
10335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10336fi
10337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10338$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10339	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10340	CFLAGS="$xorg_testset_save_CFLAGS"
10341fi
10342
10343found="no"
10344
10345	if test $found = "no" ; then
10346		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10347			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10348		fi
10349
10350		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10351			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10352		fi
10353
10354		CFLAGS="$CFLAGS -Werror"
10355
10356		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10357$as_echo_n "checking if $CC supports -Werror... " >&6; }
10358		cacheid=xorg_cv_cc_flag__Werror
10359		if eval \${$cacheid+:} false; then :
10360  $as_echo_n "(cached) " >&6
10361else
10362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10363/* end confdefs.h.  */
10364int i;
10365int
10366main ()
10367{
10368
10369  ;
10370  return 0;
10371}
10372_ACEOF
10373if ac_fn_c_try_link "$LINENO"; then :
10374  eval $cacheid=yes
10375else
10376  eval $cacheid=no
10377fi
10378rm -f core conftest.err conftest.$ac_objext \
10379    conftest$ac_exeext conftest.$ac_ext
10380fi
10381
10382
10383		CFLAGS="$xorg_testset_save_CFLAGS"
10384
10385		eval supported=\$$cacheid
10386		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10387$as_echo "$supported" >&6; }
10388		if test "$supported" = "yes" ; then
10389			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10390			found="yes"
10391		fi
10392	fi
10393
10394	if test $found = "no" ; then
10395		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10396			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10397		fi
10398
10399		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10400			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10401		fi
10402
10403		CFLAGS="$CFLAGS -errwarn"
10404
10405		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10406$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10407		cacheid=xorg_cv_cc_flag__errwarn
10408		if eval \${$cacheid+:} false; then :
10409  $as_echo_n "(cached) " >&6
10410else
10411  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10412/* end confdefs.h.  */
10413int i;
10414int
10415main ()
10416{
10417
10418  ;
10419  return 0;
10420}
10421_ACEOF
10422if ac_fn_c_try_link "$LINENO"; then :
10423  eval $cacheid=yes
10424else
10425  eval $cacheid=no
10426fi
10427rm -f core conftest.err conftest.$ac_objext \
10428    conftest$ac_exeext conftest.$ac_ext
10429fi
10430
10431
10432		CFLAGS="$xorg_testset_save_CFLAGS"
10433
10434		eval supported=\$$cacheid
10435		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10436$as_echo "$supported" >&6; }
10437		if test "$supported" = "yes" ; then
10438			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10439			found="yes"
10440		fi
10441	fi
10442
10443
10444
10445# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10446# activate it with -Werror, so we add it here explicitly.
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460xorg_testset_save_CFLAGS="$CFLAGS"
10461
10462if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10463	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10464	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10465$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10466if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10467  $as_echo_n "(cached) " >&6
10468else
10469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10470/* end confdefs.h.  */
10471int i;
10472_ACEOF
10473if ac_fn_c_try_compile "$LINENO"; then :
10474  xorg_cv_cc_flag_unknown_warning_option=yes
10475else
10476  xorg_cv_cc_flag_unknown_warning_option=no
10477fi
10478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10479fi
10480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10481$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10482	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10483	CFLAGS="$xorg_testset_save_CFLAGS"
10484fi
10485
10486if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10487	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10488		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10489	fi
10490	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10491	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10492$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10493if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10494  $as_echo_n "(cached) " >&6
10495else
10496  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10497/* end confdefs.h.  */
10498int i;
10499_ACEOF
10500if ac_fn_c_try_compile "$LINENO"; then :
10501  xorg_cv_cc_flag_unused_command_line_argument=yes
10502else
10503  xorg_cv_cc_flag_unused_command_line_argument=no
10504fi
10505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10506fi
10507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10508$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10509	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10510	CFLAGS="$xorg_testset_save_CFLAGS"
10511fi
10512
10513found="no"
10514
10515	if test $found = "no" ; then
10516		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10517			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10518		fi
10519
10520		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10521			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10522		fi
10523
10524		CFLAGS="$CFLAGS -Werror=attributes"
10525
10526		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10527$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10528		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10529		if eval \${$cacheid+:} false; then :
10530  $as_echo_n "(cached) " >&6
10531else
10532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10533/* end confdefs.h.  */
10534int i;
10535int
10536main ()
10537{
10538
10539  ;
10540  return 0;
10541}
10542_ACEOF
10543if ac_fn_c_try_link "$LINENO"; then :
10544  eval $cacheid=yes
10545else
10546  eval $cacheid=no
10547fi
10548rm -f core conftest.err conftest.$ac_objext \
10549    conftest$ac_exeext conftest.$ac_ext
10550fi
10551
10552
10553		CFLAGS="$xorg_testset_save_CFLAGS"
10554
10555		eval supported=\$$cacheid
10556		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10557$as_echo "$supported" >&6; }
10558		if test "$supported" = "yes" ; then
10559			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10560			found="yes"
10561		fi
10562	fi
10563
10564
10565
10566if test "x$STRICT_COMPILE" = "xyes"; then
10567    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10568    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10569fi
10570
10571
10572
10573
10574
10575
10576cat >>confdefs.h <<_ACEOF
10577#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10578_ACEOF
10579
10580	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10581	if test "x$PVM" = "x"; then
10582		PVM="0"
10583	fi
10584
10585cat >>confdefs.h <<_ACEOF
10586#define PACKAGE_VERSION_MINOR $PVM
10587_ACEOF
10588
10589	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10590	if test "x$PVP" = "x"; then
10591		PVP="0"
10592	fi
10593
10594cat >>confdefs.h <<_ACEOF
10595#define PACKAGE_VERSION_PATCHLEVEL $PVP
10596_ACEOF
10597
10598
10599
10600CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10601mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10602|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10603echo 'git directory not found: installing possibly empty changelog.' >&2)"
10604
10605
10606
10607
10608macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10609INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10610mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10611|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10612echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10613
10614
10615
10616
10617
10618
10619if test x$APP_MAN_SUFFIX = x    ; then
10620    APP_MAN_SUFFIX=1
10621fi
10622if test x$APP_MAN_DIR = x    ; then
10623    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10624fi
10625
10626if test x$LIB_MAN_SUFFIX = x    ; then
10627    LIB_MAN_SUFFIX=3
10628fi
10629if test x$LIB_MAN_DIR = x    ; then
10630    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10631fi
10632
10633if test x$FILE_MAN_SUFFIX = x    ; then
10634    case $host_os in
10635	solaris*)	FILE_MAN_SUFFIX=4  ;;
10636	*)		FILE_MAN_SUFFIX=5  ;;
10637    esac
10638fi
10639if test x$FILE_MAN_DIR = x    ; then
10640    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10641fi
10642
10643if test x$MISC_MAN_SUFFIX = x    ; then
10644    case $host_os in
10645	solaris*)	MISC_MAN_SUFFIX=5  ;;
10646	*)		MISC_MAN_SUFFIX=7  ;;
10647    esac
10648fi
10649if test x$MISC_MAN_DIR = x    ; then
10650    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10651fi
10652
10653if test x$DRIVER_MAN_SUFFIX = x    ; then
10654    case $host_os in
10655	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10656	*)		DRIVER_MAN_SUFFIX=4  ;;
10657    esac
10658fi
10659if test x$DRIVER_MAN_DIR = x    ; then
10660    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10661fi
10662
10663if test x$ADMIN_MAN_SUFFIX = x    ; then
10664    case $host_os in
10665	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10666	*)		ADMIN_MAN_SUFFIX=8  ;;
10667    esac
10668fi
10669if test x$ADMIN_MAN_DIR = x    ; then
10670    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10671fi
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687XORG_MAN_PAGE="X Version 11"
10688
10689MAN_SUBSTS="\
10690	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10691	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10692	-e 's|__xservername__|Xorg|g' \
10693	-e 's|__xconfigfile__|xorg.conf|g' \
10694	-e 's|__projectroot__|\$(prefix)|g' \
10695	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10696	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10697	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10698	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10699	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10700	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10701	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10702
10703
10704
10705# Check whether --enable-silent-rules was given.
10706if test "${enable_silent_rules+set}" = set; then :
10707  enableval=$enable_silent_rules;
10708fi
10709
10710case $enable_silent_rules in # (((
10711  yes) AM_DEFAULT_VERBOSITY=0;;
10712   no) AM_DEFAULT_VERBOSITY=1;;
10713    *) AM_DEFAULT_VERBOSITY=0;;
10714esac
10715am_make=${MAKE-make}
10716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10717$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10718if ${am_cv_make_support_nested_variables+:} false; then :
10719  $as_echo_n "(cached) " >&6
10720else
10721  if $as_echo 'TRUE=$(BAR$(V))
10722BAR0=false
10723BAR1=true
10724V=1
10725am__doit:
10726	@$(TRUE)
10727.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10728  am_cv_make_support_nested_variables=yes
10729else
10730  am_cv_make_support_nested_variables=no
10731fi
10732fi
10733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10734$as_echo "$am_cv_make_support_nested_variables" >&6; }
10735if test $am_cv_make_support_nested_variables = yes; then
10736    AM_V='$(V)'
10737  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10738else
10739  AM_V=$AM_DEFAULT_VERBOSITY
10740  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10741fi
10742AM_BACKSLASH='\'
10743
10744
10745
10746# Checks for pkg-config packages
10747# - Both CFLAGS & LIBS needed:
10748
10749pkg_failed=no
10750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XHOST" >&5
10751$as_echo_n "checking for XHOST... " >&6; }
10752
10753if test -n "$XHOST_CFLAGS"; then
10754    pkg_cv_XHOST_CFLAGS="$XHOST_CFLAGS"
10755 elif test -n "$PKG_CONFIG"; then
10756    if test -n "$PKG_CONFIG" && \
10757    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.22 x11 xmuu\""; } >&5
10758  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.22 x11 xmuu") 2>&5
10759  ac_status=$?
10760  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10761  test $ac_status = 0; }; then
10762  pkg_cv_XHOST_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.22 x11 xmuu" 2>/dev/null`
10763else
10764  pkg_failed=yes
10765fi
10766 else
10767    pkg_failed=untried
10768fi
10769if test -n "$XHOST_LIBS"; then
10770    pkg_cv_XHOST_LIBS="$XHOST_LIBS"
10771 elif test -n "$PKG_CONFIG"; then
10772    if test -n "$PKG_CONFIG" && \
10773    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.22 x11 xmuu\""; } >&5
10774  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.22 x11 xmuu") 2>&5
10775  ac_status=$?
10776  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10777  test $ac_status = 0; }; then
10778  pkg_cv_XHOST_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.22 x11 xmuu" 2>/dev/null`
10779else
10780  pkg_failed=yes
10781fi
10782 else
10783    pkg_failed=untried
10784fi
10785
10786
10787
10788if test $pkg_failed = yes; then
10789
10790if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10791        _pkg_short_errors_supported=yes
10792else
10793        _pkg_short_errors_supported=no
10794fi
10795        if test $_pkg_short_errors_supported = yes; then
10796	        XHOST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto >= 7.0.22 x11 xmuu" 2>&1`
10797        else
10798	        XHOST_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto >= 7.0.22 x11 xmuu" 2>&1`
10799        fi
10800	# Put the nasty error message in config.log where it belongs
10801	echo "$XHOST_PKG_ERRORS" >&5
10802
10803	as_fn_error $? "Package requirements (xproto >= 7.0.22 x11 xmuu) were not met:
10804
10805$XHOST_PKG_ERRORS
10806
10807Consider adjusting the PKG_CONFIG_PATH environment variable if you
10808installed software in a non-standard prefix.
10809
10810Alternatively, you may set the environment variables XHOST_CFLAGS
10811and XHOST_LIBS to avoid the need to call pkg-config.
10812See the pkg-config man page for more details.
10813" "$LINENO" 5
10814elif test $pkg_failed = untried; then
10815	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10816$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10817as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10818is in your PATH or set the PKG_CONFIG environment variable to the full
10819path to pkg-config.
10820
10821Alternatively, you may set the environment variables XHOST_CFLAGS
10822and XHOST_LIBS to avoid the need to call pkg-config.
10823See the pkg-config man page for more details.
10824
10825To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10826See \`config.log' for more details" "$LINENO" 5; }
10827else
10828	XHOST_CFLAGS=$pkg_cv_XHOST_CFLAGS
10829	XHOST_LIBS=$pkg_cv_XHOST_LIBS
10830        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10831$as_echo "yes" >&6; }
10832	:
10833fi
10834# - Only CFLAGS needed, not libs:
10835
10836pkg_failed=no
10837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XAU" >&5
10838$as_echo_n "checking for XAU... " >&6; }
10839
10840if test -n "$XAU_CFLAGS"; then
10841    pkg_cv_XAU_CFLAGS="$XAU_CFLAGS"
10842 elif test -n "$PKG_CONFIG"; then
10843    if test -n "$PKG_CONFIG" && \
10844    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xau\""; } >&5
10845  ($PKG_CONFIG --exists --print-errors "xau") 2>&5
10846  ac_status=$?
10847  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10848  test $ac_status = 0; }; then
10849  pkg_cv_XAU_CFLAGS=`$PKG_CONFIG --cflags "xau" 2>/dev/null`
10850else
10851  pkg_failed=yes
10852fi
10853 else
10854    pkg_failed=untried
10855fi
10856if test -n "$XAU_LIBS"; then
10857    pkg_cv_XAU_LIBS="$XAU_LIBS"
10858 elif test -n "$PKG_CONFIG"; then
10859    if test -n "$PKG_CONFIG" && \
10860    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xau\""; } >&5
10861  ($PKG_CONFIG --exists --print-errors "xau") 2>&5
10862  ac_status=$?
10863  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10864  test $ac_status = 0; }; then
10865  pkg_cv_XAU_LIBS=`$PKG_CONFIG --libs "xau" 2>/dev/null`
10866else
10867  pkg_failed=yes
10868fi
10869 else
10870    pkg_failed=untried
10871fi
10872
10873
10874
10875if test $pkg_failed = yes; then
10876
10877if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10878        _pkg_short_errors_supported=yes
10879else
10880        _pkg_short_errors_supported=no
10881fi
10882        if test $_pkg_short_errors_supported = yes; then
10883	        XAU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xau" 2>&1`
10884        else
10885	        XAU_PKG_ERRORS=`$PKG_CONFIG --print-errors "xau" 2>&1`
10886        fi
10887	# Put the nasty error message in config.log where it belongs
10888	echo "$XAU_PKG_ERRORS" >&5
10889
10890	as_fn_error $? "Package requirements (xau) were not met:
10891
10892$XAU_PKG_ERRORS
10893
10894Consider adjusting the PKG_CONFIG_PATH environment variable if you
10895installed software in a non-standard prefix.
10896
10897Alternatively, you may set the environment variables XAU_CFLAGS
10898and XAU_LIBS to avoid the need to call pkg-config.
10899See the pkg-config man page for more details.
10900" "$LINENO" 5
10901elif test $pkg_failed = untried; then
10902	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10903$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10904as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10905is in your PATH or set the PKG_CONFIG environment variable to the full
10906path to pkg-config.
10907
10908Alternatively, you may set the environment variables XAU_CFLAGS
10909and XAU_LIBS to avoid the need to call pkg-config.
10910See the pkg-config man page for more details.
10911
10912To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10913See \`config.log' for more details" "$LINENO" 5; }
10914else
10915	XAU_CFLAGS=$pkg_cv_XAU_CFLAGS
10916	XAU_LIBS=$pkg_cv_XAU_LIBS
10917        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10918$as_echo "yes" >&6; }
10919	:
10920fi
10921
10922# Transport selection macro from xtrans.m4
10923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
10924$as_echo_n "checking return type of signal handlers... " >&6; }
10925if ${ac_cv_type_signal+:} false; then :
10926  $as_echo_n "(cached) " >&6
10927else
10928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10929/* end confdefs.h.  */
10930#include <sys/types.h>
10931#include <signal.h>
10932
10933int
10934main ()
10935{
10936return *(signal (0, 0)) (0) == 1;
10937  ;
10938  return 0;
10939}
10940_ACEOF
10941if ac_fn_c_try_compile "$LINENO"; then :
10942  ac_cv_type_signal=int
10943else
10944  ac_cv_type_signal=void
10945fi
10946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10947fi
10948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
10949$as_echo "$ac_cv_type_signal" >&6; }
10950
10951cat >>confdefs.h <<_ACEOF
10952#define RETSIGTYPE $ac_cv_type_signal
10953_ACEOF
10954
10955
10956
10957
10958
10959 case $host_os in
10960	mingw*)	unixdef="no"   ;;
10961	*)	unixdef="yes"  ;;
10962 esac
10963 # Check whether --enable-unix-transport was given.
10964if test "${enable_unix_transport+set}" = set; then :
10965  enableval=$enable_unix_transport; UNIXCONN=$enableval
10966else
10967  UNIXCONN=$unixdef
10968fi
10969
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
10971$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
10972 if test "$UNIXCONN" = "yes"; then
10973
10974$as_echo "#define UNIXCONN 1" >>confdefs.h
10975
10976 fi
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
10978$as_echo "$UNIXCONN" >&6; }
10979 # Check whether --enable-tcp-transport was given.
10980if test "${enable_tcp_transport+set}" = set; then :
10981  enableval=$enable_tcp_transport; TCPCONN=$enableval
10982else
10983  TCPCONN=yes
10984fi
10985
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
10987$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
10989$as_echo "$TCPCONN" >&6; }
10990 if test "$TCPCONN" = "yes"; then
10991
10992$as_echo "#define TCPCONN 1" >>confdefs.h
10993
10994
10995 # SVR4 hides these in libraries other than libc
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
10997$as_echo_n "checking for library containing socket... " >&6; }
10998if ${ac_cv_search_socket+:} false; then :
10999  $as_echo_n "(cached) " >&6
11000else
11001  ac_func_search_save_LIBS=$LIBS
11002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11003/* end confdefs.h.  */
11004
11005/* Override any GCC internal prototype to avoid an error.
11006   Use char because int might match the return type of a GCC
11007   builtin and then its argument prototype would still apply.  */
11008#ifdef __cplusplus
11009extern "C"
11010#endif
11011char socket ();
11012int
11013main ()
11014{
11015return socket ();
11016  ;
11017  return 0;
11018}
11019_ACEOF
11020for ac_lib in '' socket; do
11021  if test -z "$ac_lib"; then
11022    ac_res="none required"
11023  else
11024    ac_res=-l$ac_lib
11025    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11026  fi
11027  if ac_fn_c_try_link "$LINENO"; then :
11028  ac_cv_search_socket=$ac_res
11029fi
11030rm -f core conftest.err conftest.$ac_objext \
11031    conftest$ac_exeext
11032  if ${ac_cv_search_socket+:} false; then :
11033  break
11034fi
11035done
11036if ${ac_cv_search_socket+:} false; then :
11037
11038else
11039  ac_cv_search_socket=no
11040fi
11041rm conftest.$ac_ext
11042LIBS=$ac_func_search_save_LIBS
11043fi
11044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
11045$as_echo "$ac_cv_search_socket" >&6; }
11046ac_res=$ac_cv_search_socket
11047if test "$ac_res" != no; then :
11048  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11049
11050fi
11051
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
11053$as_echo_n "checking for library containing gethostbyname... " >&6; }
11054if ${ac_cv_search_gethostbyname+:} false; then :
11055  $as_echo_n "(cached) " >&6
11056else
11057  ac_func_search_save_LIBS=$LIBS
11058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11059/* end confdefs.h.  */
11060
11061/* Override any GCC internal prototype to avoid an error.
11062   Use char because int might match the return type of a GCC
11063   builtin and then its argument prototype would still apply.  */
11064#ifdef __cplusplus
11065extern "C"
11066#endif
11067char gethostbyname ();
11068int
11069main ()
11070{
11071return gethostbyname ();
11072  ;
11073  return 0;
11074}
11075_ACEOF
11076for ac_lib in '' nsl; do
11077  if test -z "$ac_lib"; then
11078    ac_res="none required"
11079  else
11080    ac_res=-l$ac_lib
11081    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11082  fi
11083  if ac_fn_c_try_link "$LINENO"; then :
11084  ac_cv_search_gethostbyname=$ac_res
11085fi
11086rm -f core conftest.err conftest.$ac_objext \
11087    conftest$ac_exeext
11088  if ${ac_cv_search_gethostbyname+:} false; then :
11089  break
11090fi
11091done
11092if ${ac_cv_search_gethostbyname+:} false; then :
11093
11094else
11095  ac_cv_search_gethostbyname=no
11096fi
11097rm conftest.$ac_ext
11098LIBS=$ac_func_search_save_LIBS
11099fi
11100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
11101$as_echo "$ac_cv_search_gethostbyname" >&6; }
11102ac_res=$ac_cv_search_gethostbyname
11103if test "$ac_res" != no; then :
11104  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11105
11106fi
11107
11108 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
11109   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
11110$as_echo_n "checking for main in -lws2_32... " >&6; }
11111if ${ac_cv_lib_ws2_32_main+:} false; then :
11112  $as_echo_n "(cached) " >&6
11113else
11114  ac_check_lib_save_LIBS=$LIBS
11115LIBS="-lws2_32  $LIBS"
11116cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11117/* end confdefs.h.  */
11118
11119
11120int
11121main ()
11122{
11123return main ();
11124  ;
11125  return 0;
11126}
11127_ACEOF
11128if ac_fn_c_try_link "$LINENO"; then :
11129  ac_cv_lib_ws2_32_main=yes
11130else
11131  ac_cv_lib_ws2_32_main=no
11132fi
11133rm -f core conftest.err conftest.$ac_objext \
11134    conftest$ac_exeext conftest.$ac_ext
11135LIBS=$ac_check_lib_save_LIBS
11136fi
11137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
11138$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
11139if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
11140  cat >>confdefs.h <<_ACEOF
11141#define HAVE_LIBWS2_32 1
11142_ACEOF
11143
11144  LIBS="-lws2_32 $LIBS"
11145
11146fi
11147ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main
11148
11149 fi
11150
11151 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
11152 # Check whether --enable-ipv6 was given.
11153if test "${enable_ipv6+set}" = set; then :
11154  enableval=$enable_ipv6; IPV6CONN=$enableval
11155else
11156  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
11157if test "x$ac_cv_func_getaddrinfo" = xyes; then :
11158  IPV6CONN=yes
11159else
11160  IPV6CONN=no
11161fi
11162
11163fi
11164
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
11166$as_echo_n "checking if IPv6 support should be built... " >&6; }
11167 if test "$IPV6CONN" = "yes"; then
11168
11169$as_echo "#define IPv6 1" >>confdefs.h
11170
11171 fi
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
11173$as_echo "$IPV6CONN" >&6; }
11174
11175 # 4.3BSD-Reno added a new member to struct sockaddr_in
11176 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
11177#include <sys/types.h>
11178#include <sys/socket.h>
11179#include <netinet/in.h>
11180
11181"
11182if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
11183
11184$as_echo "#define BSD44SOCKETS 1" >>confdefs.h
11185
11186fi
11187
11188
11189 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
11190 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
11191$ac_includes_default
11192#include <sys/socket.h>
11193"
11194if test "x$ac_cv_type_socklen_t" = xyes; then :
11195
11196cat >>confdefs.h <<_ACEOF
11197#define HAVE_SOCKLEN_T 1
11198_ACEOF
11199
11200
11201fi
11202
11203
11204
11205 fi
11206 case $host_os in
11207	solaris*|sco*|sysv4*)	localdef="yes" ;;
11208	*)			localdef="no"  ;;
11209 esac
11210 # Check whether --enable-local-transport was given.
11211if test "${enable_local_transport+set}" = set; then :
11212  enableval=$enable_local_transport; LOCALCONN=$enableval
11213else
11214  LOCALCONN=$localdef
11215fi
11216
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
11218$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
11220$as_echo "$LOCALCONN" >&6; }
11221 if test "$LOCALCONN" = "yes"; then
11222
11223$as_echo "#define LOCALCONN 1" >>confdefs.h
11224
11225 fi
11226
11227
11228
11229# Secure RPC detection macro from xtrans.m4
11230
11231 # Check whether --enable-secure-rpc was given.
11232if test "${enable_secure_rpc+set}" = set; then :
11233  enableval=$enable_secure_rpc; SECURE_RPC=$enableval
11234else
11235  SECURE_RPC="try"
11236fi
11237
11238
11239 if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then
11240	FOUND_SECURE_RPC="no"
11241	for ac_func in authdes_seccreate authdes_create
11242do :
11243  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11244ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11245if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11246  cat >>confdefs.h <<_ACEOF
11247#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11248_ACEOF
11249 FOUND_SECURE_RPC="yes"
11250fi
11251done
11252
11253	if test "x$FOUND_SECURE_RPC" = "xno" ; then
11254		if test "x$SECURE_RPC" = "xyes" ; then
11255	as_fn_error $? "Secure RPC requested, but required functions not found" "$LINENO" 5
11256		fi
11257		SECURE_RPC="no"
11258	else
11259				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsecretkey" >&5
11260$as_echo_n "checking for library containing getsecretkey... " >&6; }
11261if ${ac_cv_search_getsecretkey+:} false; then :
11262  $as_echo_n "(cached) " >&6
11263else
11264  ac_func_search_save_LIBS=$LIBS
11265cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11266/* end confdefs.h.  */
11267
11268/* Override any GCC internal prototype to avoid an error.
11269   Use char because int might match the return type of a GCC
11270   builtin and then its argument prototype would still apply.  */
11271#ifdef __cplusplus
11272extern "C"
11273#endif
11274char getsecretkey ();
11275int
11276main ()
11277{
11278return getsecretkey ();
11279  ;
11280  return 0;
11281}
11282_ACEOF
11283for ac_lib in '' rpcsvc; do
11284  if test -z "$ac_lib"; then
11285    ac_res="none required"
11286  else
11287    ac_res=-l$ac_lib
11288    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11289  fi
11290  if ac_fn_c_try_link "$LINENO"; then :
11291  ac_cv_search_getsecretkey=$ac_res
11292fi
11293rm -f core conftest.err conftest.$ac_objext \
11294    conftest$ac_exeext
11295  if ${ac_cv_search_getsecretkey+:} false; then :
11296  break
11297fi
11298done
11299if ${ac_cv_search_getsecretkey+:} false; then :
11300
11301else
11302  ac_cv_search_getsecretkey=no
11303fi
11304rm conftest.$ac_ext
11305LIBS=$ac_func_search_save_LIBS
11306fi
11307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsecretkey" >&5
11308$as_echo "$ac_cv_search_getsecretkey" >&6; }
11309ac_res=$ac_cv_search_getsecretkey
11310if test "$ac_res" != no; then :
11311  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11312
11313fi
11314
11315		SECURE_RPC="yes"
11316	fi
11317 fi
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5
11319$as_echo_n "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... " >&6; }
11320 if test "x$SECURE_RPC" = "xyes" ; then
11321
11322$as_echo "#define SECURE_RPC 1" >>confdefs.h
11323
11324 fi
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SECURE_RPC" >&5
11326$as_echo "$SECURE_RPC" >&6; }
11327
11328
11329# Link with winsock if mingw target
11330case $host_os in
11331 *mingw*)
11332  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
11333$as_echo_n "checking for main in -lws2_32... " >&6; }
11334if ${ac_cv_lib_ws2_32_main+:} false; then :
11335  $as_echo_n "(cached) " >&6
11336else
11337  ac_check_lib_save_LIBS=$LIBS
11338LIBS="-lws2_32  $LIBS"
11339cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11340/* end confdefs.h.  */
11341
11342
11343int
11344main ()
11345{
11346return main ();
11347  ;
11348  return 0;
11349}
11350_ACEOF
11351if ac_fn_c_try_link "$LINENO"; then :
11352  ac_cv_lib_ws2_32_main=yes
11353else
11354  ac_cv_lib_ws2_32_main=no
11355fi
11356rm -f core conftest.err conftest.$ac_objext \
11357    conftest$ac_exeext conftest.$ac_ext
11358LIBS=$ac_check_lib_save_LIBS
11359fi
11360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
11361$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
11362if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
11363  cat >>confdefs.h <<_ACEOF
11364#define HAVE_LIBWS2_32 1
11365_ACEOF
11366
11367  LIBS="-lws2_32 $LIBS"
11368
11369fi
11370
11371  ;;
11372 *)
11373  ;;
11374esac
11375
11376ac_config_files="$ac_config_files Makefile man/Makefile"
11377
11378cat >confcache <<\_ACEOF
11379# This file is a shell script that caches the results of configure
11380# tests run on this system so they can be shared between configure
11381# scripts and configure runs, see configure's option --config-cache.
11382# It is not useful on other systems.  If it contains results you don't
11383# want to keep, you may remove or edit it.
11384#
11385# config.status only pays attention to the cache file if you give it
11386# the --recheck option to rerun configure.
11387#
11388# `ac_cv_env_foo' variables (set or unset) will be overridden when
11389# loading this file, other *unset* `ac_cv_foo' will be assigned the
11390# following values.
11391
11392_ACEOF
11393
11394# The following way of writing the cache mishandles newlines in values,
11395# but we know of no workaround that is simple, portable, and efficient.
11396# So, we kill variables containing newlines.
11397# Ultrix sh set writes to stderr and can't be redirected directly,
11398# and sets the high bit in the cache file unless we assign to the vars.
11399(
11400  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11401    eval ac_val=\$$ac_var
11402    case $ac_val in #(
11403    *${as_nl}*)
11404      case $ac_var in #(
11405      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11406$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11407      esac
11408      case $ac_var in #(
11409      _ | IFS | as_nl) ;; #(
11410      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11411      *) { eval $ac_var=; unset $ac_var;} ;;
11412      esac ;;
11413    esac
11414  done
11415
11416  (set) 2>&1 |
11417    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11418    *${as_nl}ac_space=\ *)
11419      # `set' does not quote correctly, so add quotes: double-quote
11420      # substitution turns \\\\ into \\, and sed turns \\ into \.
11421      sed -n \
11422	"s/'/'\\\\''/g;
11423	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11424      ;; #(
11425    *)
11426      # `set' quotes correctly as required by POSIX, so do not add quotes.
11427      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11428      ;;
11429    esac |
11430    sort
11431) |
11432  sed '
11433     /^ac_cv_env_/b end
11434     t clear
11435     :clear
11436     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11437     t end
11438     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11439     :end' >>confcache
11440if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11441  if test -w "$cache_file"; then
11442    if test "x$cache_file" != "x/dev/null"; then
11443      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11444$as_echo "$as_me: updating cache $cache_file" >&6;}
11445      if test ! -f "$cache_file" || test -h "$cache_file"; then
11446	cat confcache >"$cache_file"
11447      else
11448        case $cache_file in #(
11449        */* | ?:*)
11450	  mv -f confcache "$cache_file"$$ &&
11451	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11452        *)
11453	  mv -f confcache "$cache_file" ;;
11454	esac
11455      fi
11456    fi
11457  else
11458    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11459$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11460  fi
11461fi
11462rm -f confcache
11463
11464test "x$prefix" = xNONE && prefix=$ac_default_prefix
11465# Let make expand exec_prefix.
11466test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11467
11468DEFS=-DHAVE_CONFIG_H
11469
11470ac_libobjs=
11471ac_ltlibobjs=
11472U=
11473for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11474  # 1. Remove the extension, and $U if already installed.
11475  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11476  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11477  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11478  #    will be set to the directory where LIBOBJS objects are built.
11479  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11480  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11481done
11482LIBOBJS=$ac_libobjs
11483
11484LTLIBOBJS=$ac_ltlibobjs
11485
11486
11487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11488$as_echo_n "checking that generated files are newer than configure... " >&6; }
11489   if test -n "$am_sleep_pid"; then
11490     # Hide warnings about reused PIDs.
11491     wait $am_sleep_pid 2>/dev/null
11492   fi
11493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11494$as_echo "done" >&6; }
11495 if test -n "$EXEEXT"; then
11496  am__EXEEXT_TRUE=
11497  am__EXEEXT_FALSE='#'
11498else
11499  am__EXEEXT_TRUE='#'
11500  am__EXEEXT_FALSE=
11501fi
11502
11503if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11504  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11505Usually this means the macro was only invoked conditionally." "$LINENO" 5
11506fi
11507if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11508  as_fn_error $? "conditional \"AMDEP\" was never defined.
11509Usually this means the macro was only invoked conditionally." "$LINENO" 5
11510fi
11511if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11512  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11513Usually this means the macro was only invoked conditionally." "$LINENO" 5
11514fi
11515
11516: "${CONFIG_STATUS=./config.status}"
11517ac_write_fail=0
11518ac_clean_files_save=$ac_clean_files
11519ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11520{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11521$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11522as_write_fail=0
11523cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11524#! $SHELL
11525# Generated by $as_me.
11526# Run this file to recreate the current configuration.
11527# Compiler output produced by configure, useful for debugging
11528# configure, is in config.log if it exists.
11529
11530debug=false
11531ac_cs_recheck=false
11532ac_cs_silent=false
11533
11534SHELL=\${CONFIG_SHELL-$SHELL}
11535export SHELL
11536_ASEOF
11537cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11538## -------------------- ##
11539## M4sh Initialization. ##
11540## -------------------- ##
11541
11542# Be more Bourne compatible
11543DUALCASE=1; export DUALCASE # for MKS sh
11544if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11545  emulate sh
11546  NULLCMD=:
11547  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11548  # is contrary to our usage.  Disable this feature.
11549  alias -g '${1+"$@"}'='"$@"'
11550  setopt NO_GLOB_SUBST
11551else
11552  case `(set -o) 2>/dev/null` in #(
11553  *posix*) :
11554    set -o posix ;; #(
11555  *) :
11556     ;;
11557esac
11558fi
11559
11560
11561as_nl='
11562'
11563export as_nl
11564# Printing a long string crashes Solaris 7 /usr/bin/printf.
11565as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11566as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11567as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11568# Prefer a ksh shell builtin over an external printf program on Solaris,
11569# but without wasting forks for bash or zsh.
11570if test -z "$BASH_VERSION$ZSH_VERSION" \
11571    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11572  as_echo='print -r --'
11573  as_echo_n='print -rn --'
11574elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11575  as_echo='printf %s\n'
11576  as_echo_n='printf %s'
11577else
11578  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11579    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11580    as_echo_n='/usr/ucb/echo -n'
11581  else
11582    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11583    as_echo_n_body='eval
11584      arg=$1;
11585      case $arg in #(
11586      *"$as_nl"*)
11587	expr "X$arg" : "X\\(.*\\)$as_nl";
11588	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11589      esac;
11590      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11591    '
11592    export as_echo_n_body
11593    as_echo_n='sh -c $as_echo_n_body as_echo'
11594  fi
11595  export as_echo_body
11596  as_echo='sh -c $as_echo_body as_echo'
11597fi
11598
11599# The user is always right.
11600if test "${PATH_SEPARATOR+set}" != set; then
11601  PATH_SEPARATOR=:
11602  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11603    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11604      PATH_SEPARATOR=';'
11605  }
11606fi
11607
11608
11609# IFS
11610# We need space, tab and new line, in precisely that order.  Quoting is
11611# there to prevent editors from complaining about space-tab.
11612# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11613# splitting by setting IFS to empty value.)
11614IFS=" ""	$as_nl"
11615
11616# Find who we are.  Look in the path if we contain no directory separator.
11617as_myself=
11618case $0 in #((
11619  *[\\/]* ) as_myself=$0 ;;
11620  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11621for as_dir in $PATH
11622do
11623  IFS=$as_save_IFS
11624  test -z "$as_dir" && as_dir=.
11625    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11626  done
11627IFS=$as_save_IFS
11628
11629     ;;
11630esac
11631# We did not find ourselves, most probably we were run as `sh COMMAND'
11632# in which case we are not to be found in the path.
11633if test "x$as_myself" = x; then
11634  as_myself=$0
11635fi
11636if test ! -f "$as_myself"; then
11637  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11638  exit 1
11639fi
11640
11641# Unset variables that we do not need and which cause bugs (e.g. in
11642# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11643# suppresses any "Segmentation fault" message there.  '((' could
11644# trigger a bug in pdksh 5.2.14.
11645for as_var in BASH_ENV ENV MAIL MAILPATH
11646do eval test x\${$as_var+set} = xset \
11647  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11648done
11649PS1='$ '
11650PS2='> '
11651PS4='+ '
11652
11653# NLS nuisances.
11654LC_ALL=C
11655export LC_ALL
11656LANGUAGE=C
11657export LANGUAGE
11658
11659# CDPATH.
11660(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11661
11662
11663# as_fn_error STATUS ERROR [LINENO LOG_FD]
11664# ----------------------------------------
11665# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11666# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11667# script with STATUS, using 1 if that was 0.
11668as_fn_error ()
11669{
11670  as_status=$1; test $as_status -eq 0 && as_status=1
11671  if test "$4"; then
11672    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11673    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11674  fi
11675  $as_echo "$as_me: error: $2" >&2
11676  as_fn_exit $as_status
11677} # as_fn_error
11678
11679
11680# as_fn_set_status STATUS
11681# -----------------------
11682# Set $? to STATUS, without forking.
11683as_fn_set_status ()
11684{
11685  return $1
11686} # as_fn_set_status
11687
11688# as_fn_exit STATUS
11689# -----------------
11690# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11691as_fn_exit ()
11692{
11693  set +e
11694  as_fn_set_status $1
11695  exit $1
11696} # as_fn_exit
11697
11698# as_fn_unset VAR
11699# ---------------
11700# Portably unset VAR.
11701as_fn_unset ()
11702{
11703  { eval $1=; unset $1;}
11704}
11705as_unset=as_fn_unset
11706# as_fn_append VAR VALUE
11707# ----------------------
11708# Append the text in VALUE to the end of the definition contained in VAR. Take
11709# advantage of any shell optimizations that allow amortized linear growth over
11710# repeated appends, instead of the typical quadratic growth present in naive
11711# implementations.
11712if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11713  eval 'as_fn_append ()
11714  {
11715    eval $1+=\$2
11716  }'
11717else
11718  as_fn_append ()
11719  {
11720    eval $1=\$$1\$2
11721  }
11722fi # as_fn_append
11723
11724# as_fn_arith ARG...
11725# ------------------
11726# Perform arithmetic evaluation on the ARGs, and store the result in the
11727# global $as_val. Take advantage of shells that can avoid forks. The arguments
11728# must be portable across $(()) and expr.
11729if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11730  eval 'as_fn_arith ()
11731  {
11732    as_val=$(( $* ))
11733  }'
11734else
11735  as_fn_arith ()
11736  {
11737    as_val=`expr "$@" || test $? -eq 1`
11738  }
11739fi # as_fn_arith
11740
11741
11742if expr a : '\(a\)' >/dev/null 2>&1 &&
11743   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11744  as_expr=expr
11745else
11746  as_expr=false
11747fi
11748
11749if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11750  as_basename=basename
11751else
11752  as_basename=false
11753fi
11754
11755if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11756  as_dirname=dirname
11757else
11758  as_dirname=false
11759fi
11760
11761as_me=`$as_basename -- "$0" ||
11762$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11763	 X"$0" : 'X\(//\)$' \| \
11764	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11765$as_echo X/"$0" |
11766    sed '/^.*\/\([^/][^/]*\)\/*$/{
11767	    s//\1/
11768	    q
11769	  }
11770	  /^X\/\(\/\/\)$/{
11771	    s//\1/
11772	    q
11773	  }
11774	  /^X\/\(\/\).*/{
11775	    s//\1/
11776	    q
11777	  }
11778	  s/.*/./; q'`
11779
11780# Avoid depending upon Character Ranges.
11781as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11782as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11783as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11784as_cr_digits='0123456789'
11785as_cr_alnum=$as_cr_Letters$as_cr_digits
11786
11787ECHO_C= ECHO_N= ECHO_T=
11788case `echo -n x` in #(((((
11789-n*)
11790  case `echo 'xy\c'` in
11791  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11792  xy)  ECHO_C='\c';;
11793  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11794       ECHO_T='	';;
11795  esac;;
11796*)
11797  ECHO_N='-n';;
11798esac
11799
11800rm -f conf$$ conf$$.exe conf$$.file
11801if test -d conf$$.dir; then
11802  rm -f conf$$.dir/conf$$.file
11803else
11804  rm -f conf$$.dir
11805  mkdir conf$$.dir 2>/dev/null
11806fi
11807if (echo >conf$$.file) 2>/dev/null; then
11808  if ln -s conf$$.file conf$$ 2>/dev/null; then
11809    as_ln_s='ln -s'
11810    # ... but there are two gotchas:
11811    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11812    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11813    # In both cases, we have to default to `cp -p'.
11814    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11815      as_ln_s='cp -p'
11816  elif ln conf$$.file conf$$ 2>/dev/null; then
11817    as_ln_s=ln
11818  else
11819    as_ln_s='cp -p'
11820  fi
11821else
11822  as_ln_s='cp -p'
11823fi
11824rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11825rmdir conf$$.dir 2>/dev/null
11826
11827
11828# as_fn_mkdir_p
11829# -------------
11830# Create "$as_dir" as a directory, including parents if necessary.
11831as_fn_mkdir_p ()
11832{
11833
11834  case $as_dir in #(
11835  -*) as_dir=./$as_dir;;
11836  esac
11837  test -d "$as_dir" || eval $as_mkdir_p || {
11838    as_dirs=
11839    while :; do
11840      case $as_dir in #(
11841      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11842      *) as_qdir=$as_dir;;
11843      esac
11844      as_dirs="'$as_qdir' $as_dirs"
11845      as_dir=`$as_dirname -- "$as_dir" ||
11846$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11847	 X"$as_dir" : 'X\(//\)[^/]' \| \
11848	 X"$as_dir" : 'X\(//\)$' \| \
11849	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11850$as_echo X"$as_dir" |
11851    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11852	    s//\1/
11853	    q
11854	  }
11855	  /^X\(\/\/\)[^/].*/{
11856	    s//\1/
11857	    q
11858	  }
11859	  /^X\(\/\/\)$/{
11860	    s//\1/
11861	    q
11862	  }
11863	  /^X\(\/\).*/{
11864	    s//\1/
11865	    q
11866	  }
11867	  s/.*/./; q'`
11868      test -d "$as_dir" && break
11869    done
11870    test -z "$as_dirs" || eval "mkdir $as_dirs"
11871  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11872
11873
11874} # as_fn_mkdir_p
11875if mkdir -p . 2>/dev/null; then
11876  as_mkdir_p='mkdir -p "$as_dir"'
11877else
11878  test -d ./-p && rmdir ./-p
11879  as_mkdir_p=false
11880fi
11881
11882if test -x / >/dev/null 2>&1; then
11883  as_test_x='test -x'
11884else
11885  if ls -dL / >/dev/null 2>&1; then
11886    as_ls_L_option=L
11887  else
11888    as_ls_L_option=
11889  fi
11890  as_test_x='
11891    eval sh -c '\''
11892      if test -d "$1"; then
11893	test -d "$1/.";
11894      else
11895	case $1 in #(
11896	-*)set "./$1";;
11897	esac;
11898	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11899	???[sx]*):;;*)false;;esac;fi
11900    '\'' sh
11901  '
11902fi
11903as_executable_p=$as_test_x
11904
11905# Sed expression to map a string onto a valid CPP name.
11906as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11907
11908# Sed expression to map a string onto a valid variable name.
11909as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11910
11911
11912exec 6>&1
11913## ----------------------------------- ##
11914## Main body of $CONFIG_STATUS script. ##
11915## ----------------------------------- ##
11916_ASEOF
11917test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11918
11919cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11920# Save the log message, to keep $0 and so on meaningful, and to
11921# report actual input values of CONFIG_FILES etc. instead of their
11922# values after options handling.
11923ac_log="
11924This file was extended by xhost $as_me 1.0.6, which was
11925generated by GNU Autoconf 2.68.  Invocation command line was
11926
11927  CONFIG_FILES    = $CONFIG_FILES
11928  CONFIG_HEADERS  = $CONFIG_HEADERS
11929  CONFIG_LINKS    = $CONFIG_LINKS
11930  CONFIG_COMMANDS = $CONFIG_COMMANDS
11931  $ $0 $@
11932
11933on `(hostname || uname -n) 2>/dev/null | sed 1q`
11934"
11935
11936_ACEOF
11937
11938case $ac_config_files in *"
11939"*) set x $ac_config_files; shift; ac_config_files=$*;;
11940esac
11941
11942case $ac_config_headers in *"
11943"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11944esac
11945
11946
11947cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11948# Files that config.status was made for.
11949config_files="$ac_config_files"
11950config_headers="$ac_config_headers"
11951config_commands="$ac_config_commands"
11952
11953_ACEOF
11954
11955cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11956ac_cs_usage="\
11957\`$as_me' instantiates files and other configuration actions
11958from templates according to the current configuration.  Unless the files
11959and actions are specified as TAGs, all are instantiated by default.
11960
11961Usage: $0 [OPTION]... [TAG]...
11962
11963  -h, --help       print this help, then exit
11964  -V, --version    print version number and configuration settings, then exit
11965      --config     print configuration, then exit
11966  -q, --quiet, --silent
11967                   do not print progress messages
11968  -d, --debug      don't remove temporary files
11969      --recheck    update $as_me by reconfiguring in the same conditions
11970      --file=FILE[:TEMPLATE]
11971                   instantiate the configuration file FILE
11972      --header=FILE[:TEMPLATE]
11973                   instantiate the configuration header FILE
11974
11975Configuration files:
11976$config_files
11977
11978Configuration headers:
11979$config_headers
11980
11981Configuration commands:
11982$config_commands
11983
11984Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11985
11986_ACEOF
11987cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11988ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11989ac_cs_version="\\
11990xhost config.status 1.0.6
11991configured by $0, generated by GNU Autoconf 2.68,
11992  with options \\"\$ac_cs_config\\"
11993
11994Copyright (C) 2010 Free Software Foundation, Inc.
11995This config.status script is free software; the Free Software Foundation
11996gives unlimited permission to copy, distribute and modify it."
11997
11998ac_pwd='$ac_pwd'
11999srcdir='$srcdir'
12000INSTALL='$INSTALL'
12001MKDIR_P='$MKDIR_P'
12002AWK='$AWK'
12003test -n "\$AWK" || AWK=awk
12004_ACEOF
12005
12006cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12007# The default lists apply if the user does not specify any file.
12008ac_need_defaults=:
12009while test $# != 0
12010do
12011  case $1 in
12012  --*=?*)
12013    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12014    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12015    ac_shift=:
12016    ;;
12017  --*=)
12018    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12019    ac_optarg=
12020    ac_shift=:
12021    ;;
12022  *)
12023    ac_option=$1
12024    ac_optarg=$2
12025    ac_shift=shift
12026    ;;
12027  esac
12028
12029  case $ac_option in
12030  # Handling of the options.
12031  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12032    ac_cs_recheck=: ;;
12033  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12034    $as_echo "$ac_cs_version"; exit ;;
12035  --config | --confi | --conf | --con | --co | --c )
12036    $as_echo "$ac_cs_config"; exit ;;
12037  --debug | --debu | --deb | --de | --d | -d )
12038    debug=: ;;
12039  --file | --fil | --fi | --f )
12040    $ac_shift
12041    case $ac_optarg in
12042    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12043    '') as_fn_error $? "missing file argument" ;;
12044    esac
12045    as_fn_append CONFIG_FILES " '$ac_optarg'"
12046    ac_need_defaults=false;;
12047  --header | --heade | --head | --hea )
12048    $ac_shift
12049    case $ac_optarg in
12050    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12051    esac
12052    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12053    ac_need_defaults=false;;
12054  --he | --h)
12055    # Conflict between --help and --header
12056    as_fn_error $? "ambiguous option: \`$1'
12057Try \`$0 --help' for more information.";;
12058  --help | --hel | -h )
12059    $as_echo "$ac_cs_usage"; exit ;;
12060  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12061  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12062    ac_cs_silent=: ;;
12063
12064  # This is an error.
12065  -*) as_fn_error $? "unrecognized option: \`$1'
12066Try \`$0 --help' for more information." ;;
12067
12068  *) as_fn_append ac_config_targets " $1"
12069     ac_need_defaults=false ;;
12070
12071  esac
12072  shift
12073done
12074
12075ac_configure_extra_args=
12076
12077if $ac_cs_silent; then
12078  exec 6>/dev/null
12079  ac_configure_extra_args="$ac_configure_extra_args --silent"
12080fi
12081
12082_ACEOF
12083cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12084if \$ac_cs_recheck; then
12085  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12086  shift
12087  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12088  CONFIG_SHELL='$SHELL'
12089  export CONFIG_SHELL
12090  exec "\$@"
12091fi
12092
12093_ACEOF
12094cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12095exec 5>>config.log
12096{
12097  echo
12098  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12099## Running $as_me. ##
12100_ASBOX
12101  $as_echo "$ac_log"
12102} >&5
12103
12104_ACEOF
12105cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12106#
12107# INIT-COMMANDS
12108#
12109AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12110
12111_ACEOF
12112
12113cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12114
12115# Handling of arguments.
12116for ac_config_target in $ac_config_targets
12117do
12118  case $ac_config_target in
12119    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12120    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12121    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12122    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12123
12124  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12125  esac
12126done
12127
12128
12129# If the user did not use the arguments to specify the items to instantiate,
12130# then the envvar interface is used.  Set only those that are not.
12131# We use the long form for the default assignment because of an extremely
12132# bizarre bug on SunOS 4.1.3.
12133if $ac_need_defaults; then
12134  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12135  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12136  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12137fi
12138
12139# Have a temporary directory for convenience.  Make it in the build tree
12140# simply because there is no reason against having it here, and in addition,
12141# creating and moving files from /tmp can sometimes cause problems.
12142# Hook for its removal unless debugging.
12143# Note that there is a small window in which the directory will not be cleaned:
12144# after its creation but before its name has been assigned to `$tmp'.
12145$debug ||
12146{
12147  tmp= ac_tmp=
12148  trap 'exit_status=$?
12149  : "${ac_tmp:=$tmp}"
12150  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12151' 0
12152  trap 'as_fn_exit 1' 1 2 13 15
12153}
12154# Create a (secure) tmp directory for tmp files.
12155
12156{
12157  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12158  test -d "$tmp"
12159}  ||
12160{
12161  tmp=./conf$$-$RANDOM
12162  (umask 077 && mkdir "$tmp")
12163} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12164ac_tmp=$tmp
12165
12166# Set up the scripts for CONFIG_FILES section.
12167# No need to generate them if there are no CONFIG_FILES.
12168# This happens for instance with `./config.status config.h'.
12169if test -n "$CONFIG_FILES"; then
12170
12171
12172ac_cr=`echo X | tr X '\015'`
12173# On cygwin, bash can eat \r inside `` if the user requested igncr.
12174# But we know of no other shell where ac_cr would be empty at this
12175# point, so we can use a bashism as a fallback.
12176if test "x$ac_cr" = x; then
12177  eval ac_cr=\$\'\\r\'
12178fi
12179ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12180if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12181  ac_cs_awk_cr='\\r'
12182else
12183  ac_cs_awk_cr=$ac_cr
12184fi
12185
12186echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12187_ACEOF
12188
12189
12190{
12191  echo "cat >conf$$subs.awk <<_ACEOF" &&
12192  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12193  echo "_ACEOF"
12194} >conf$$subs.sh ||
12195  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12196ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12197ac_delim='%!_!# '
12198for ac_last_try in false false false false false :; do
12199  . ./conf$$subs.sh ||
12200    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12201
12202  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12203  if test $ac_delim_n = $ac_delim_num; then
12204    break
12205  elif $ac_last_try; then
12206    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12207  else
12208    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12209  fi
12210done
12211rm -f conf$$subs.sh
12212
12213cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12214cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12215_ACEOF
12216sed -n '
12217h
12218s/^/S["/; s/!.*/"]=/
12219p
12220g
12221s/^[^!]*!//
12222:repl
12223t repl
12224s/'"$ac_delim"'$//
12225t delim
12226:nl
12227h
12228s/\(.\{148\}\)..*/\1/
12229t more1
12230s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12231p
12232n
12233b repl
12234:more1
12235s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12236p
12237g
12238s/.\{148\}//
12239t nl
12240:delim
12241h
12242s/\(.\{148\}\)..*/\1/
12243t more2
12244s/["\\]/\\&/g; s/^/"/; s/$/"/
12245p
12246b
12247:more2
12248s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12249p
12250g
12251s/.\{148\}//
12252t delim
12253' <conf$$subs.awk | sed '
12254/^[^""]/{
12255  N
12256  s/\n//
12257}
12258' >>$CONFIG_STATUS || ac_write_fail=1
12259rm -f conf$$subs.awk
12260cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12261_ACAWK
12262cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12263  for (key in S) S_is_set[key] = 1
12264  FS = ""
12265
12266}
12267{
12268  line = $ 0
12269  nfields = split(line, field, "@")
12270  substed = 0
12271  len = length(field[1])
12272  for (i = 2; i < nfields; i++) {
12273    key = field[i]
12274    keylen = length(key)
12275    if (S_is_set[key]) {
12276      value = S[key]
12277      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12278      len += length(value) + length(field[++i])
12279      substed = 1
12280    } else
12281      len += 1 + keylen
12282  }
12283
12284  print line
12285}
12286
12287_ACAWK
12288_ACEOF
12289cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12290if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12291  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12292else
12293  cat
12294fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12295  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12296_ACEOF
12297
12298# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12299# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12300# trailing colons and then remove the whole line if VPATH becomes empty
12301# (actually we leave an empty line to preserve line numbers).
12302if test "x$srcdir" = x.; then
12303  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12304h
12305s///
12306s/^/:/
12307s/[	 ]*$/:/
12308s/:\$(srcdir):/:/g
12309s/:\${srcdir}:/:/g
12310s/:@srcdir@:/:/g
12311s/^:*//
12312s/:*$//
12313x
12314s/\(=[	 ]*\).*/\1/
12315G
12316s/\n//
12317s/^[^=]*=[	 ]*$//
12318}'
12319fi
12320
12321cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12322fi # test -n "$CONFIG_FILES"
12323
12324# Set up the scripts for CONFIG_HEADERS section.
12325# No need to generate them if there are no CONFIG_HEADERS.
12326# This happens for instance with `./config.status Makefile'.
12327if test -n "$CONFIG_HEADERS"; then
12328cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12329BEGIN {
12330_ACEOF
12331
12332# Transform confdefs.h into an awk script `defines.awk', embedded as
12333# here-document in config.status, that substitutes the proper values into
12334# config.h.in to produce config.h.
12335
12336# Create a delimiter string that does not exist in confdefs.h, to ease
12337# handling of long lines.
12338ac_delim='%!_!# '
12339for ac_last_try in false false :; do
12340  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12341  if test -z "$ac_tt"; then
12342    break
12343  elif $ac_last_try; then
12344    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12345  else
12346    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12347  fi
12348done
12349
12350# For the awk script, D is an array of macro values keyed by name,
12351# likewise P contains macro parameters if any.  Preserve backslash
12352# newline sequences.
12353
12354ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12355sed -n '
12356s/.\{148\}/&'"$ac_delim"'/g
12357t rset
12358:rset
12359s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12360t def
12361d
12362:def
12363s/\\$//
12364t bsnl
12365s/["\\]/\\&/g
12366s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12367D["\1"]=" \3"/p
12368s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12369d
12370:bsnl
12371s/["\\]/\\&/g
12372s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12373D["\1"]=" \3\\\\\\n"\\/p
12374t cont
12375s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12376t cont
12377d
12378:cont
12379n
12380s/.\{148\}/&'"$ac_delim"'/g
12381t clear
12382:clear
12383s/\\$//
12384t bsnlc
12385s/["\\]/\\&/g; s/^/"/; s/$/"/p
12386d
12387:bsnlc
12388s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12389b cont
12390' <confdefs.h | sed '
12391s/'"$ac_delim"'/"\\\
12392"/g' >>$CONFIG_STATUS || ac_write_fail=1
12393
12394cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12395  for (key in D) D_is_set[key] = 1
12396  FS = ""
12397}
12398/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12399  line = \$ 0
12400  split(line, arg, " ")
12401  if (arg[1] == "#") {
12402    defundef = arg[2]
12403    mac1 = arg[3]
12404  } else {
12405    defundef = substr(arg[1], 2)
12406    mac1 = arg[2]
12407  }
12408  split(mac1, mac2, "(") #)
12409  macro = mac2[1]
12410  prefix = substr(line, 1, index(line, defundef) - 1)
12411  if (D_is_set[macro]) {
12412    # Preserve the white space surrounding the "#".
12413    print prefix "define", macro P[macro] D[macro]
12414    next
12415  } else {
12416    # Replace #undef with comments.  This is necessary, for example,
12417    # in the case of _POSIX_SOURCE, which is predefined and required
12418    # on some systems where configure will not decide to define it.
12419    if (defundef == "undef") {
12420      print "/*", prefix defundef, macro, "*/"
12421      next
12422    }
12423  }
12424}
12425{ print }
12426_ACAWK
12427_ACEOF
12428cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12429  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12430fi # test -n "$CONFIG_HEADERS"
12431
12432
12433eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12434shift
12435for ac_tag
12436do
12437  case $ac_tag in
12438  :[FHLC]) ac_mode=$ac_tag; continue;;
12439  esac
12440  case $ac_mode$ac_tag in
12441  :[FHL]*:*);;
12442  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12443  :[FH]-) ac_tag=-:-;;
12444  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12445  esac
12446  ac_save_IFS=$IFS
12447  IFS=:
12448  set x $ac_tag
12449  IFS=$ac_save_IFS
12450  shift
12451  ac_file=$1
12452  shift
12453
12454  case $ac_mode in
12455  :L) ac_source=$1;;
12456  :[FH])
12457    ac_file_inputs=
12458    for ac_f
12459    do
12460      case $ac_f in
12461      -) ac_f="$ac_tmp/stdin";;
12462      *) # Look for the file first in the build tree, then in the source tree
12463	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12464	 # because $ac_f cannot contain `:'.
12465	 test -f "$ac_f" ||
12466	   case $ac_f in
12467	   [\\/$]*) false;;
12468	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12469	   esac ||
12470	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12471      esac
12472      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12473      as_fn_append ac_file_inputs " '$ac_f'"
12474    done
12475
12476    # Let's still pretend it is `configure' which instantiates (i.e., don't
12477    # use $as_me), people would be surprised to read:
12478    #    /* config.h.  Generated by config.status.  */
12479    configure_input='Generated from '`
12480	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12481	`' by configure.'
12482    if test x"$ac_file" != x-; then
12483      configure_input="$ac_file.  $configure_input"
12484      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12485$as_echo "$as_me: creating $ac_file" >&6;}
12486    fi
12487    # Neutralize special characters interpreted by sed in replacement strings.
12488    case $configure_input in #(
12489    *\&* | *\|* | *\\* )
12490       ac_sed_conf_input=`$as_echo "$configure_input" |
12491       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12492    *) ac_sed_conf_input=$configure_input;;
12493    esac
12494
12495    case $ac_tag in
12496    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12497      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12498    esac
12499    ;;
12500  esac
12501
12502  ac_dir=`$as_dirname -- "$ac_file" ||
12503$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12504	 X"$ac_file" : 'X\(//\)[^/]' \| \
12505	 X"$ac_file" : 'X\(//\)$' \| \
12506	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12507$as_echo X"$ac_file" |
12508    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12509	    s//\1/
12510	    q
12511	  }
12512	  /^X\(\/\/\)[^/].*/{
12513	    s//\1/
12514	    q
12515	  }
12516	  /^X\(\/\/\)$/{
12517	    s//\1/
12518	    q
12519	  }
12520	  /^X\(\/\).*/{
12521	    s//\1/
12522	    q
12523	  }
12524	  s/.*/./; q'`
12525  as_dir="$ac_dir"; as_fn_mkdir_p
12526  ac_builddir=.
12527
12528case "$ac_dir" in
12529.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12530*)
12531  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12532  # A ".." for each directory in $ac_dir_suffix.
12533  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12534  case $ac_top_builddir_sub in
12535  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12536  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12537  esac ;;
12538esac
12539ac_abs_top_builddir=$ac_pwd
12540ac_abs_builddir=$ac_pwd$ac_dir_suffix
12541# for backward compatibility:
12542ac_top_builddir=$ac_top_build_prefix
12543
12544case $srcdir in
12545  .)  # We are building in place.
12546    ac_srcdir=.
12547    ac_top_srcdir=$ac_top_builddir_sub
12548    ac_abs_top_srcdir=$ac_pwd ;;
12549  [\\/]* | ?:[\\/]* )  # Absolute name.
12550    ac_srcdir=$srcdir$ac_dir_suffix;
12551    ac_top_srcdir=$srcdir
12552    ac_abs_top_srcdir=$srcdir ;;
12553  *) # Relative name.
12554    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12555    ac_top_srcdir=$ac_top_build_prefix$srcdir
12556    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12557esac
12558ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12559
12560
12561  case $ac_mode in
12562  :F)
12563  #
12564  # CONFIG_FILE
12565  #
12566
12567  case $INSTALL in
12568  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12569  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12570  esac
12571  ac_MKDIR_P=$MKDIR_P
12572  case $MKDIR_P in
12573  [\\/$]* | ?:[\\/]* ) ;;
12574  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12575  esac
12576_ACEOF
12577
12578cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12579# If the template does not know about datarootdir, expand it.
12580# FIXME: This hack should be removed a few years after 2.60.
12581ac_datarootdir_hack=; ac_datarootdir_seen=
12582ac_sed_dataroot='
12583/datarootdir/ {
12584  p
12585  q
12586}
12587/@datadir@/p
12588/@docdir@/p
12589/@infodir@/p
12590/@localedir@/p
12591/@mandir@/p'
12592case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12593*datarootdir*) ac_datarootdir_seen=yes;;
12594*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12595  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12596$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12597_ACEOF
12598cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12599  ac_datarootdir_hack='
12600  s&@datadir@&$datadir&g
12601  s&@docdir@&$docdir&g
12602  s&@infodir@&$infodir&g
12603  s&@localedir@&$localedir&g
12604  s&@mandir@&$mandir&g
12605  s&\\\${datarootdir}&$datarootdir&g' ;;
12606esac
12607_ACEOF
12608
12609# Neutralize VPATH when `$srcdir' = `.'.
12610# Shell code in configure.ac might set extrasub.
12611# FIXME: do we really want to maintain this feature?
12612cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12613ac_sed_extra="$ac_vpsub
12614$extrasub
12615_ACEOF
12616cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12617:t
12618/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12619s|@configure_input@|$ac_sed_conf_input|;t t
12620s&@top_builddir@&$ac_top_builddir_sub&;t t
12621s&@top_build_prefix@&$ac_top_build_prefix&;t t
12622s&@srcdir@&$ac_srcdir&;t t
12623s&@abs_srcdir@&$ac_abs_srcdir&;t t
12624s&@top_srcdir@&$ac_top_srcdir&;t t
12625s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12626s&@builddir@&$ac_builddir&;t t
12627s&@abs_builddir@&$ac_abs_builddir&;t t
12628s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12629s&@INSTALL@&$ac_INSTALL&;t t
12630s&@MKDIR_P@&$ac_MKDIR_P&;t t
12631$ac_datarootdir_hack
12632"
12633eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12634  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12635
12636test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12637  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12638  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12639      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12640  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12641which seems to be undefined.  Please make sure it is defined" >&5
12642$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12643which seems to be undefined.  Please make sure it is defined" >&2;}
12644
12645  rm -f "$ac_tmp/stdin"
12646  case $ac_file in
12647  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12648  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12649  esac \
12650  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12651 ;;
12652  :H)
12653  #
12654  # CONFIG_HEADER
12655  #
12656  if test x"$ac_file" != x-; then
12657    {
12658      $as_echo "/* $configure_input  */" \
12659      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12660    } >"$ac_tmp/config.h" \
12661      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12662    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12663      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12664$as_echo "$as_me: $ac_file is unchanged" >&6;}
12665    else
12666      rm -f "$ac_file"
12667      mv "$ac_tmp/config.h" "$ac_file" \
12668	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12669    fi
12670  else
12671    $as_echo "/* $configure_input  */" \
12672      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12673      || as_fn_error $? "could not create -" "$LINENO" 5
12674  fi
12675# Compute "$ac_file"'s index in $config_headers.
12676_am_arg="$ac_file"
12677_am_stamp_count=1
12678for _am_header in $config_headers :; do
12679  case $_am_header in
12680    $_am_arg | $_am_arg:* )
12681      break ;;
12682    * )
12683      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12684  esac
12685done
12686echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12687$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12688	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12689	 X"$_am_arg" : 'X\(//\)$' \| \
12690	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12691$as_echo X"$_am_arg" |
12692    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12693	    s//\1/
12694	    q
12695	  }
12696	  /^X\(\/\/\)[^/].*/{
12697	    s//\1/
12698	    q
12699	  }
12700	  /^X\(\/\/\)$/{
12701	    s//\1/
12702	    q
12703	  }
12704	  /^X\(\/\).*/{
12705	    s//\1/
12706	    q
12707	  }
12708	  s/.*/./; q'`/stamp-h$_am_stamp_count
12709 ;;
12710
12711  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12712$as_echo "$as_me: executing $ac_file commands" >&6;}
12713 ;;
12714  esac
12715
12716
12717  case $ac_file$ac_mode in
12718    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12719  # Older Autoconf quotes --file arguments for eval, but not when files
12720  # are listed without --file.  Let's play safe and only enable the eval
12721  # if we detect the quoting.
12722  case $CONFIG_FILES in
12723  *\'*) eval set x "$CONFIG_FILES" ;;
12724  *)   set x $CONFIG_FILES ;;
12725  esac
12726  shift
12727  for mf
12728  do
12729    # Strip MF so we end up with the name of the file.
12730    mf=`echo "$mf" | sed -e 's/:.*$//'`
12731    # Check whether this is an Automake generated Makefile or not.
12732    # We used to match only the files named 'Makefile.in', but
12733    # some people rename them; so instead we look at the file content.
12734    # Grep'ing the first line is not enough: some people post-process
12735    # each Makefile.in and add a new line on top of each file to say so.
12736    # Grep'ing the whole file is not good either: AIX grep has a line
12737    # limit of 2048, but all sed's we know have understand at least 4000.
12738    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12739      dirpart=`$as_dirname -- "$mf" ||
12740$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12741	 X"$mf" : 'X\(//\)[^/]' \| \
12742	 X"$mf" : 'X\(//\)$' \| \
12743	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12744$as_echo X"$mf" |
12745    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12746	    s//\1/
12747	    q
12748	  }
12749	  /^X\(\/\/\)[^/].*/{
12750	    s//\1/
12751	    q
12752	  }
12753	  /^X\(\/\/\)$/{
12754	    s//\1/
12755	    q
12756	  }
12757	  /^X\(\/\).*/{
12758	    s//\1/
12759	    q
12760	  }
12761	  s/.*/./; q'`
12762    else
12763      continue
12764    fi
12765    # Extract the definition of DEPDIR, am__include, and am__quote
12766    # from the Makefile without running 'make'.
12767    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12768    test -z "$DEPDIR" && continue
12769    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12770    test -z "$am__include" && continue
12771    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12772    # Find all dependency output files, they are included files with
12773    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12774    # simplest approach to changing $(DEPDIR) to its actual value in the
12775    # expansion.
12776    for file in `sed -n "
12777      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12778	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12779      # Make sure the directory exists.
12780      test -f "$dirpart/$file" && continue
12781      fdir=`$as_dirname -- "$file" ||
12782$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12783	 X"$file" : 'X\(//\)[^/]' \| \
12784	 X"$file" : 'X\(//\)$' \| \
12785	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12786$as_echo X"$file" |
12787    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12788	    s//\1/
12789	    q
12790	  }
12791	  /^X\(\/\/\)[^/].*/{
12792	    s//\1/
12793	    q
12794	  }
12795	  /^X\(\/\/\)$/{
12796	    s//\1/
12797	    q
12798	  }
12799	  /^X\(\/\).*/{
12800	    s//\1/
12801	    q
12802	  }
12803	  s/.*/./; q'`
12804      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12805      # echo "creating $dirpart/$file"
12806      echo '# dummy' > "$dirpart/$file"
12807    done
12808  done
12809}
12810 ;;
12811
12812  esac
12813done # for ac_tag
12814
12815
12816as_fn_exit 0
12817_ACEOF
12818ac_clean_files=$ac_clean_files_save
12819
12820test $ac_write_fail = 0 ||
12821  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12822
12823
12824# configure is writing to config.log, and then calls config.status.
12825# config.status does its own redirection, appending to config.log.
12826# Unfortunately, on DOS this fails, as config.log is still kept open
12827# by configure, so config.status won't be able to write to it; its
12828# output is simply discarded.  So we exec the FD to /dev/null,
12829# effectively closing config.log, so it can be properly (re)opened and
12830# appended to by config.status.  When coming back to configure, we
12831# need to make the FD available again.
12832if test "$no_create" != yes; then
12833  ac_cs_success=:
12834  ac_config_status_args=
12835  test "$silent" = yes &&
12836    ac_config_status_args="$ac_config_status_args --quiet"
12837  exec 5>/dev/null
12838  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12839  exec 5>>config.log
12840  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12841  # would make configure fail if this is the last instruction.
12842  $ac_cs_success || as_fn_exit 1
12843fi
12844if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12845  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12846$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12847fi
12848
12849