configure revision 498372ab
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for xcalc 1.0.5.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1"
178  if (eval "$as_required") 2>/dev/null; then :
179  as_have_required=yes
180else
181  as_have_required=no
182fi
183  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189do
190  IFS=$as_save_IFS
191  test -z "$as_dir" && as_dir=.
192  as_found=:
193  case $as_dir in #(
194	 /*)
195	   for as_base in sh bash ksh sh5; do
196	     # Try only shells that exist, to save several forks.
197	     as_shell=$as_dir/$as_base
198	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200  CONFIG_SHELL=$as_shell as_have_required=yes
201		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202  break 2
203fi
204fi
205	   done;;
206       esac
207  as_found=false
208done
209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211  CONFIG_SHELL=$SHELL as_have_required=yes
212fi; }
213IFS=$as_save_IFS
214
215
216      if test "x$CONFIG_SHELL" != x; then :
217  # We cannot yet assume a decent shell, so we have to provide a
218	# neutralization value for shells without unset; and this also
219	# works around shells that cannot unset nonexistent variables.
220	# Preserve -v and -x to the replacement shell.
221	BASH_ENV=/dev/null
222	ENV=/dev/null
223	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224	export CONFIG_SHELL
225	case $- in # ((((
226	  *v*x* | *x*v* ) as_opts=-vx ;;
227	  *v* ) as_opts=-v ;;
228	  *x* ) as_opts=-x ;;
229	  * ) as_opts= ;;
230	esac
231	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232fi
233
234    if test x$as_have_required = xno; then :
235  $as_echo "$0: This script requires a shell more modern than all"
236  $as_echo "$0: the shells that I found on your system."
237  if test x${ZSH_VERSION+set} = xset ; then
238    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240  else
241    $as_echo "$0: Please tell bug-autoconf@gnu.org and
242$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243$0: about your system, including any error possibly output
244$0: before this message. Then install a modern shell, or
245$0: manually run the script under such a shell if you do
246$0: have one."
247  fi
248  exit 1
249fi
250fi
251fi
252SHELL=${CONFIG_SHELL-/bin/sh}
253export SHELL
254# Unset more variables known to interfere with behavior of common tools.
255CLICOLOR_FORCE= GREP_OPTIONS=
256unset CLICOLOR_FORCE GREP_OPTIONS
257
258## --------------------- ##
259## M4sh Shell Functions. ##
260## --------------------- ##
261# as_fn_unset VAR
262# ---------------
263# Portably unset VAR.
264as_fn_unset ()
265{
266  { eval $1=; unset $1;}
267}
268as_unset=as_fn_unset
269
270# as_fn_set_status STATUS
271# -----------------------
272# Set $? to STATUS, without forking.
273as_fn_set_status ()
274{
275  return $1
276} # as_fn_set_status
277
278# as_fn_exit STATUS
279# -----------------
280# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281as_fn_exit ()
282{
283  set +e
284  as_fn_set_status $1
285  exit $1
286} # as_fn_exit
287
288# as_fn_mkdir_p
289# -------------
290# Create "$as_dir" as a directory, including parents if necessary.
291as_fn_mkdir_p ()
292{
293
294  case $as_dir in #(
295  -*) as_dir=./$as_dir;;
296  esac
297  test -d "$as_dir" || eval $as_mkdir_p || {
298    as_dirs=
299    while :; do
300      case $as_dir in #(
301      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302      *) as_qdir=$as_dir;;
303      esac
304      as_dirs="'$as_qdir' $as_dirs"
305      as_dir=`$as_dirname -- "$as_dir" ||
306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307	 X"$as_dir" : 'X\(//\)[^/]' \| \
308	 X"$as_dir" : 'X\(//\)$' \| \
309	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310$as_echo X"$as_dir" |
311    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312	    s//\1/
313	    q
314	  }
315	  /^X\(\/\/\)[^/].*/{
316	    s//\1/
317	    q
318	  }
319	  /^X\(\/\/\)$/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\).*/{
324	    s//\1/
325	    q
326	  }
327	  s/.*/./; q'`
328      test -d "$as_dir" && break
329    done
330    test -z "$as_dirs" || eval "mkdir $as_dirs"
331  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334} # as_fn_mkdir_p
335# as_fn_append VAR VALUE
336# ----------------------
337# Append the text in VALUE to the end of the definition contained in VAR. Take
338# advantage of any shell optimizations that allow amortized linear growth over
339# repeated appends, instead of the typical quadratic growth present in naive
340# implementations.
341if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342  eval 'as_fn_append ()
343  {
344    eval $1+=\$2
345  }'
346else
347  as_fn_append ()
348  {
349    eval $1=\$$1\$2
350  }
351fi # as_fn_append
352
353# as_fn_arith ARG...
354# ------------------
355# Perform arithmetic evaluation on the ARGs, and store the result in the
356# global $as_val. Take advantage of shells that can avoid forks. The arguments
357# must be portable across $(()) and expr.
358if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359  eval 'as_fn_arith ()
360  {
361    as_val=$(( $* ))
362  }'
363else
364  as_fn_arith ()
365  {
366    as_val=`expr "$@" || test $? -eq 1`
367  }
368fi # as_fn_arith
369
370
371# as_fn_error STATUS ERROR [LINENO LOG_FD]
372# ----------------------------------------
373# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375# script with STATUS, using 1 if that was 0.
376as_fn_error ()
377{
378  as_status=$1; test $as_status -eq 0 && as_status=1
379  if test "$4"; then
380    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382  fi
383  $as_echo "$as_me: error: $2" >&2
384  as_fn_exit $as_status
385} # as_fn_error
386
387if expr a : '\(a\)' >/dev/null 2>&1 &&
388   test "X`expr 00001 : '.*\(...\)'`" = X001; then
389  as_expr=expr
390else
391  as_expr=false
392fi
393
394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395  as_basename=basename
396else
397  as_basename=false
398fi
399
400if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401  as_dirname=dirname
402else
403  as_dirname=false
404fi
405
406as_me=`$as_basename -- "$0" ||
407$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408	 X"$0" : 'X\(//\)$' \| \
409	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410$as_echo X/"$0" |
411    sed '/^.*\/\([^/][^/]*\)\/*$/{
412	    s//\1/
413	    q
414	  }
415	  /^X\/\(\/\/\)$/{
416	    s//\1/
417	    q
418	  }
419	  /^X\/\(\/\).*/{
420	    s//\1/
421	    q
422	  }
423	  s/.*/./; q'`
424
425# Avoid depending upon Character Ranges.
426as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429as_cr_digits='0123456789'
430as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433  as_lineno_1=$LINENO as_lineno_1a=$LINENO
434  as_lineno_2=$LINENO as_lineno_2a=$LINENO
435  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
438  sed -n '
439    p
440    /[$]LINENO/=
441  ' <$as_myself |
442    sed '
443      s/[$]LINENO.*/&-/
444      t lineno
445      b
446      :lineno
447      N
448      :loop
449      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450      t loop
451      s/-\n.*//
452    ' >$as_me.lineno &&
453  chmod +x "$as_me.lineno" ||
454    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456  # Don't try to exec as it changes $[0], causing all sort of problems
457  # (the dirname of $[0] is not the place where we might find the
458  # original and so on.  Autoconf is especially sensitive to this).
459  . "./$as_me.lineno"
460  # Exit status is that of the last command.
461  exit
462}
463
464ECHO_C= ECHO_N= ECHO_T=
465case `echo -n x` in #(((((
466-n*)
467  case `echo 'xy\c'` in
468  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
469  xy)  ECHO_C='\c';;
470  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
471       ECHO_T='	';;
472  esac;;
473*)
474  ECHO_N='-n';;
475esac
476
477rm -f conf$$ conf$$.exe conf$$.file
478if test -d conf$$.dir; then
479  rm -f conf$$.dir/conf$$.file
480else
481  rm -f conf$$.dir
482  mkdir conf$$.dir 2>/dev/null
483fi
484if (echo >conf$$.file) 2>/dev/null; then
485  if ln -s conf$$.file conf$$ 2>/dev/null; then
486    as_ln_s='ln -s'
487    # ... but there are two gotchas:
488    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490    # In both cases, we have to default to `cp -p'.
491    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492      as_ln_s='cp -p'
493  elif ln conf$$.file conf$$ 2>/dev/null; then
494    as_ln_s=ln
495  else
496    as_ln_s='cp -p'
497  fi
498else
499  as_ln_s='cp -p'
500fi
501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502rmdir conf$$.dir 2>/dev/null
503
504if mkdir -p . 2>/dev/null; then
505  as_mkdir_p='mkdir -p "$as_dir"'
506else
507  test -d ./-p && rmdir ./-p
508  as_mkdir_p=false
509fi
510
511if test -x / >/dev/null 2>&1; then
512  as_test_x='test -x'
513else
514  if ls -dL / >/dev/null 2>&1; then
515    as_ls_L_option=L
516  else
517    as_ls_L_option=
518  fi
519  as_test_x='
520    eval sh -c '\''
521      if test -d "$1"; then
522	test -d "$1/.";
523      else
524	case $1 in #(
525	-*)set "./$1";;
526	esac;
527	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528	???[sx]*):;;*)false;;esac;fi
529    '\'' sh
530  '
531fi
532as_executable_p=$as_test_x
533
534# Sed expression to map a string onto a valid CPP name.
535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537# Sed expression to map a string onto a valid variable name.
538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540
541test -n "$DJDIR" || exec 7<&0 </dev/null
542exec 6>&1
543
544# Name of the host.
545# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546# so uname gets run too.
547ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548
549#
550# Initializations.
551#
552ac_default_prefix=/usr/local
553ac_clean_files=
554ac_config_libobj_dir=.
555LIBOBJS=
556cross_compiling=no
557subdirs=
558MFLAGS=
559MAKEFLAGS=
560
561# Identity of this package.
562PACKAGE_NAME='xcalc'
563PACKAGE_TARNAME='xcalc'
564PACKAGE_VERSION='1.0.5'
565PACKAGE_STRING='xcalc 1.0.5'
566PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567PACKAGE_URL=''
568
569ac_unique_file="Makefile.am"
570# Factoring default headers for most tests.
571ac_includes_default="\
572#include <stdio.h>
573#ifdef HAVE_SYS_TYPES_H
574# include <sys/types.h>
575#endif
576#ifdef HAVE_SYS_STAT_H
577# include <sys/stat.h>
578#endif
579#ifdef STDC_HEADERS
580# include <stdlib.h>
581# include <stddef.h>
582#else
583# ifdef HAVE_STDLIB_H
584#  include <stdlib.h>
585# endif
586#endif
587#ifdef HAVE_STRING_H
588# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589#  include <memory.h>
590# endif
591# include <string.h>
592#endif
593#ifdef HAVE_STRINGS_H
594# include <strings.h>
595#endif
596#ifdef HAVE_INTTYPES_H
597# include <inttypes.h>
598#endif
599#ifdef HAVE_STDINT_H
600# include <stdint.h>
601#endif
602#ifdef HAVE_UNISTD_H
603# include <unistd.h>
604#endif"
605
606ac_subst_vars='am__EXEEXT_FALSE
607am__EXEEXT_TRUE
608LTLIBOBJS
609LIBOBJS
610appdefaultdir
611APPDEFS_LIBS
612APPDEFS_CFLAGS
613XCALC_LIBS
614XCALC_CFLAGS
615AM_BACKSLASH
616AM_DEFAULT_VERBOSITY
617MAN_SUBSTS
618XORG_MAN_PAGE
619ADMIN_MAN_DIR
620DRIVER_MAN_DIR
621MISC_MAN_DIR
622FILE_MAN_DIR
623LIB_MAN_DIR
624APP_MAN_DIR
625ADMIN_MAN_SUFFIX
626DRIVER_MAN_SUFFIX
627MISC_MAN_SUFFIX
628FILE_MAN_SUFFIX
629LIB_MAN_SUFFIX
630APP_MAN_SUFFIX
631SED
632host_os
633host_vendor
634host_cpu
635host
636build_os
637build_vendor
638build_cpu
639build
640INSTALL_CMD
641PKG_CONFIG
642CHANGELOG_CMD
643STRICT_CFLAGS
644CWARNFLAGS
645BASE_CFLAGS
646EGREP
647GREP
648CPP
649am__fastdepCC_FALSE
650am__fastdepCC_TRUE
651CCDEPMODE
652am__nodep
653AMDEPBACKSLASH
654AMDEP_FALSE
655AMDEP_TRUE
656am__quote
657am__include
658DEPDIR
659OBJEXT
660EXEEXT
661ac_ct_CC
662CPPFLAGS
663LDFLAGS
664CFLAGS
665CC
666MAINT
667MAINTAINER_MODE_FALSE
668MAINTAINER_MODE_TRUE
669am__untar
670am__tar
671AMTAR
672am__leading_dot
673SET_MAKE
674AWK
675mkdir_p
676MKDIR_P
677INSTALL_STRIP_PROGRAM
678STRIP
679install_sh
680MAKEINFO
681AUTOHEADER
682AUTOMAKE
683AUTOCONF
684ACLOCAL
685VERSION
686PACKAGE
687CYGPATH_W
688am__isrc
689INSTALL_DATA
690INSTALL_SCRIPT
691INSTALL_PROGRAM
692target_alias
693host_alias
694build_alias
695LIBS
696ECHO_T
697ECHO_N
698ECHO_C
699DEFS
700mandir
701localedir
702libdir
703psdir
704pdfdir
705dvidir
706htmldir
707infodir
708docdir
709oldincludedir
710includedir
711localstatedir
712sharedstatedir
713sysconfdir
714datadir
715datarootdir
716libexecdir
717sbindir
718bindir
719program_transform_name
720prefix
721exec_prefix
722PACKAGE_URL
723PACKAGE_BUGREPORT
724PACKAGE_STRING
725PACKAGE_VERSION
726PACKAGE_TARNAME
727PACKAGE_NAME
728PATH_SEPARATOR
729SHELL'
730ac_subst_files=''
731ac_user_opts='
732enable_option_checking
733enable_maintainer_mode
734enable_dependency_tracking
735enable_selective_werror
736enable_strict_compilation
737enable_silent_rules
738with_appdefaultdir
739'
740      ac_precious_vars='build_alias
741host_alias
742target_alias
743CC
744CFLAGS
745LDFLAGS
746LIBS
747CPPFLAGS
748CPP
749PKG_CONFIG
750XCALC_CFLAGS
751XCALC_LIBS
752APPDEFS_CFLAGS
753APPDEFS_LIBS'
754
755
756# Initialize some variables set by options.
757ac_init_help=
758ac_init_version=false
759ac_unrecognized_opts=
760ac_unrecognized_sep=
761# The variables have the same names as the options, with
762# dashes changed to underlines.
763cache_file=/dev/null
764exec_prefix=NONE
765no_create=
766no_recursion=
767prefix=NONE
768program_prefix=NONE
769program_suffix=NONE
770program_transform_name=s,x,x,
771silent=
772site=
773srcdir=
774verbose=
775x_includes=NONE
776x_libraries=NONE
777
778# Installation directory options.
779# These are left unexpanded so users can "make install exec_prefix=/foo"
780# and all the variables that are supposed to be based on exec_prefix
781# by default will actually change.
782# Use braces instead of parens because sh, perl, etc. also accept them.
783# (The list follows the same order as the GNU Coding Standards.)
784bindir='${exec_prefix}/bin'
785sbindir='${exec_prefix}/sbin'
786libexecdir='${exec_prefix}/libexec'
787datarootdir='${prefix}/share'
788datadir='${datarootdir}'
789sysconfdir='${prefix}/etc'
790sharedstatedir='${prefix}/com'
791localstatedir='${prefix}/var'
792includedir='${prefix}/include'
793oldincludedir='/usr/include'
794docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
795infodir='${datarootdir}/info'
796htmldir='${docdir}'
797dvidir='${docdir}'
798pdfdir='${docdir}'
799psdir='${docdir}'
800libdir='${exec_prefix}/lib'
801localedir='${datarootdir}/locale'
802mandir='${datarootdir}/man'
803
804ac_prev=
805ac_dashdash=
806for ac_option
807do
808  # If the previous option needs an argument, assign it.
809  if test -n "$ac_prev"; then
810    eval $ac_prev=\$ac_option
811    ac_prev=
812    continue
813  fi
814
815  case $ac_option in
816  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
817  *=)   ac_optarg= ;;
818  *)    ac_optarg=yes ;;
819  esac
820
821  # Accept the important Cygnus configure options, so we can diagnose typos.
822
823  case $ac_dashdash$ac_option in
824  --)
825    ac_dashdash=yes ;;
826
827  -bindir | --bindir | --bindi | --bind | --bin | --bi)
828    ac_prev=bindir ;;
829  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
830    bindir=$ac_optarg ;;
831
832  -build | --build | --buil | --bui | --bu)
833    ac_prev=build_alias ;;
834  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
835    build_alias=$ac_optarg ;;
836
837  -cache-file | --cache-file | --cache-fil | --cache-fi \
838  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
839    ac_prev=cache_file ;;
840  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
841  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
842    cache_file=$ac_optarg ;;
843
844  --config-cache | -C)
845    cache_file=config.cache ;;
846
847  -datadir | --datadir | --datadi | --datad)
848    ac_prev=datadir ;;
849  -datadir=* | --datadir=* | --datadi=* | --datad=*)
850    datadir=$ac_optarg ;;
851
852  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
853  | --dataroo | --dataro | --datar)
854    ac_prev=datarootdir ;;
855  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
856  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
857    datarootdir=$ac_optarg ;;
858
859  -disable-* | --disable-*)
860    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
861    # Reject names that are not valid shell variable names.
862    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
863      as_fn_error $? "invalid feature name: $ac_useropt"
864    ac_useropt_orig=$ac_useropt
865    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
866    case $ac_user_opts in
867      *"
868"enable_$ac_useropt"
869"*) ;;
870      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
871	 ac_unrecognized_sep=', ';;
872    esac
873    eval enable_$ac_useropt=no ;;
874
875  -docdir | --docdir | --docdi | --doc | --do)
876    ac_prev=docdir ;;
877  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
878    docdir=$ac_optarg ;;
879
880  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
881    ac_prev=dvidir ;;
882  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
883    dvidir=$ac_optarg ;;
884
885  -enable-* | --enable-*)
886    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
887    # Reject names that are not valid shell variable names.
888    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
889      as_fn_error $? "invalid feature name: $ac_useropt"
890    ac_useropt_orig=$ac_useropt
891    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
892    case $ac_user_opts in
893      *"
894"enable_$ac_useropt"
895"*) ;;
896      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
897	 ac_unrecognized_sep=', ';;
898    esac
899    eval enable_$ac_useropt=\$ac_optarg ;;
900
901  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
902  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
903  | --exec | --exe | --ex)
904    ac_prev=exec_prefix ;;
905  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
906  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
907  | --exec=* | --exe=* | --ex=*)
908    exec_prefix=$ac_optarg ;;
909
910  -gas | --gas | --ga | --g)
911    # Obsolete; use --with-gas.
912    with_gas=yes ;;
913
914  -help | --help | --hel | --he | -h)
915    ac_init_help=long ;;
916  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
917    ac_init_help=recursive ;;
918  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
919    ac_init_help=short ;;
920
921  -host | --host | --hos | --ho)
922    ac_prev=host_alias ;;
923  -host=* | --host=* | --hos=* | --ho=*)
924    host_alias=$ac_optarg ;;
925
926  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
927    ac_prev=htmldir ;;
928  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
929  | --ht=*)
930    htmldir=$ac_optarg ;;
931
932  -includedir | --includedir | --includedi | --included | --include \
933  | --includ | --inclu | --incl | --inc)
934    ac_prev=includedir ;;
935  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
936  | --includ=* | --inclu=* | --incl=* | --inc=*)
937    includedir=$ac_optarg ;;
938
939  -infodir | --infodir | --infodi | --infod | --info | --inf)
940    ac_prev=infodir ;;
941  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
942    infodir=$ac_optarg ;;
943
944  -libdir | --libdir | --libdi | --libd)
945    ac_prev=libdir ;;
946  -libdir=* | --libdir=* | --libdi=* | --libd=*)
947    libdir=$ac_optarg ;;
948
949  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
950  | --libexe | --libex | --libe)
951    ac_prev=libexecdir ;;
952  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
953  | --libexe=* | --libex=* | --libe=*)
954    libexecdir=$ac_optarg ;;
955
956  -localedir | --localedir | --localedi | --localed | --locale)
957    ac_prev=localedir ;;
958  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
959    localedir=$ac_optarg ;;
960
961  -localstatedir | --localstatedir | --localstatedi | --localstated \
962  | --localstate | --localstat | --localsta | --localst | --locals)
963    ac_prev=localstatedir ;;
964  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
965  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
966    localstatedir=$ac_optarg ;;
967
968  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
969    ac_prev=mandir ;;
970  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
971    mandir=$ac_optarg ;;
972
973  -nfp | --nfp | --nf)
974    # Obsolete; use --without-fp.
975    with_fp=no ;;
976
977  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
978  | --no-cr | --no-c | -n)
979    no_create=yes ;;
980
981  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
982  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
983    no_recursion=yes ;;
984
985  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
986  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
987  | --oldin | --oldi | --old | --ol | --o)
988    ac_prev=oldincludedir ;;
989  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
990  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
991  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
992    oldincludedir=$ac_optarg ;;
993
994  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
995    ac_prev=prefix ;;
996  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
997    prefix=$ac_optarg ;;
998
999  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1000  | --program-pre | --program-pr | --program-p)
1001    ac_prev=program_prefix ;;
1002  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1003  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1004    program_prefix=$ac_optarg ;;
1005
1006  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1007  | --program-suf | --program-su | --program-s)
1008    ac_prev=program_suffix ;;
1009  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1010  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1011    program_suffix=$ac_optarg ;;
1012
1013  -program-transform-name | --program-transform-name \
1014  | --program-transform-nam | --program-transform-na \
1015  | --program-transform-n | --program-transform- \
1016  | --program-transform | --program-transfor \
1017  | --program-transfo | --program-transf \
1018  | --program-trans | --program-tran \
1019  | --progr-tra | --program-tr | --program-t)
1020    ac_prev=program_transform_name ;;
1021  -program-transform-name=* | --program-transform-name=* \
1022  | --program-transform-nam=* | --program-transform-na=* \
1023  | --program-transform-n=* | --program-transform-=* \
1024  | --program-transform=* | --program-transfor=* \
1025  | --program-transfo=* | --program-transf=* \
1026  | --program-trans=* | --program-tran=* \
1027  | --progr-tra=* | --program-tr=* | --program-t=*)
1028    program_transform_name=$ac_optarg ;;
1029
1030  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1031    ac_prev=pdfdir ;;
1032  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1033    pdfdir=$ac_optarg ;;
1034
1035  -psdir | --psdir | --psdi | --psd | --ps)
1036    ac_prev=psdir ;;
1037  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1038    psdir=$ac_optarg ;;
1039
1040  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1041  | -silent | --silent | --silen | --sile | --sil)
1042    silent=yes ;;
1043
1044  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1045    ac_prev=sbindir ;;
1046  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1047  | --sbi=* | --sb=*)
1048    sbindir=$ac_optarg ;;
1049
1050  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1051  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1052  | --sharedst | --shareds | --shared | --share | --shar \
1053  | --sha | --sh)
1054    ac_prev=sharedstatedir ;;
1055  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1056  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1057  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1058  | --sha=* | --sh=*)
1059    sharedstatedir=$ac_optarg ;;
1060
1061  -site | --site | --sit)
1062    ac_prev=site ;;
1063  -site=* | --site=* | --sit=*)
1064    site=$ac_optarg ;;
1065
1066  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1067    ac_prev=srcdir ;;
1068  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1069    srcdir=$ac_optarg ;;
1070
1071  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1072  | --syscon | --sysco | --sysc | --sys | --sy)
1073    ac_prev=sysconfdir ;;
1074  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1075  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1076    sysconfdir=$ac_optarg ;;
1077
1078  -target | --target | --targe | --targ | --tar | --ta | --t)
1079    ac_prev=target_alias ;;
1080  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1081    target_alias=$ac_optarg ;;
1082
1083  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1084    verbose=yes ;;
1085
1086  -version | --version | --versio | --versi | --vers | -V)
1087    ac_init_version=: ;;
1088
1089  -with-* | --with-*)
1090    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1091    # Reject names that are not valid shell variable names.
1092    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1093      as_fn_error $? "invalid package name: $ac_useropt"
1094    ac_useropt_orig=$ac_useropt
1095    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1096    case $ac_user_opts in
1097      *"
1098"with_$ac_useropt"
1099"*) ;;
1100      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1101	 ac_unrecognized_sep=', ';;
1102    esac
1103    eval with_$ac_useropt=\$ac_optarg ;;
1104
1105  -without-* | --without-*)
1106    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1107    # Reject names that are not valid shell variable names.
1108    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109      as_fn_error $? "invalid package name: $ac_useropt"
1110    ac_useropt_orig=$ac_useropt
1111    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112    case $ac_user_opts in
1113      *"
1114"with_$ac_useropt"
1115"*) ;;
1116      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1117	 ac_unrecognized_sep=', ';;
1118    esac
1119    eval with_$ac_useropt=no ;;
1120
1121  --x)
1122    # Obsolete; use --with-x.
1123    with_x=yes ;;
1124
1125  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1126  | --x-incl | --x-inc | --x-in | --x-i)
1127    ac_prev=x_includes ;;
1128  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1129  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1130    x_includes=$ac_optarg ;;
1131
1132  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1133  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1134    ac_prev=x_libraries ;;
1135  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1136  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1137    x_libraries=$ac_optarg ;;
1138
1139  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1140Try \`$0 --help' for more information"
1141    ;;
1142
1143  *=*)
1144    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1145    # Reject names that are not valid shell variable names.
1146    case $ac_envvar in #(
1147      '' | [0-9]* | *[!_$as_cr_alnum]* )
1148      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1149    esac
1150    eval $ac_envvar=\$ac_optarg
1151    export $ac_envvar ;;
1152
1153  *)
1154    # FIXME: should be removed in autoconf 3.0.
1155    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1156    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1157      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1158    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1159    ;;
1160
1161  esac
1162done
1163
1164if test -n "$ac_prev"; then
1165  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1166  as_fn_error $? "missing argument to $ac_option"
1167fi
1168
1169if test -n "$ac_unrecognized_opts"; then
1170  case $enable_option_checking in
1171    no) ;;
1172    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1173    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1174  esac
1175fi
1176
1177# Check all directory arguments for consistency.
1178for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1179		datadir sysconfdir sharedstatedir localstatedir includedir \
1180		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1181		libdir localedir mandir
1182do
1183  eval ac_val=\$$ac_var
1184  # Remove trailing slashes.
1185  case $ac_val in
1186    */ )
1187      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1188      eval $ac_var=\$ac_val;;
1189  esac
1190  # Be sure to have absolute directory names.
1191  case $ac_val in
1192    [\\/$]* | ?:[\\/]* )  continue;;
1193    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1194  esac
1195  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1196done
1197
1198# There might be people who depend on the old broken behavior: `$host'
1199# used to hold the argument of --host etc.
1200# FIXME: To remove some day.
1201build=$build_alias
1202host=$host_alias
1203target=$target_alias
1204
1205# FIXME: To remove some day.
1206if test "x$host_alias" != x; then
1207  if test "x$build_alias" = x; then
1208    cross_compiling=maybe
1209    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1210    If a cross compiler is detected then cross compile mode will be used" >&2
1211  elif test "x$build_alias" != "x$host_alias"; then
1212    cross_compiling=yes
1213  fi
1214fi
1215
1216ac_tool_prefix=
1217test -n "$host_alias" && ac_tool_prefix=$host_alias-
1218
1219test "$silent" = yes && exec 6>/dev/null
1220
1221
1222ac_pwd=`pwd` && test -n "$ac_pwd" &&
1223ac_ls_di=`ls -di .` &&
1224ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1225  as_fn_error $? "working directory cannot be determined"
1226test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1227  as_fn_error $? "pwd does not report name of working directory"
1228
1229
1230# Find the source files, if location was not specified.
1231if test -z "$srcdir"; then
1232  ac_srcdir_defaulted=yes
1233  # Try the directory containing this script, then the parent directory.
1234  ac_confdir=`$as_dirname -- "$as_myself" ||
1235$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1236	 X"$as_myself" : 'X\(//\)[^/]' \| \
1237	 X"$as_myself" : 'X\(//\)$' \| \
1238	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1239$as_echo X"$as_myself" |
1240    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1241	    s//\1/
1242	    q
1243	  }
1244	  /^X\(\/\/\)[^/].*/{
1245	    s//\1/
1246	    q
1247	  }
1248	  /^X\(\/\/\)$/{
1249	    s//\1/
1250	    q
1251	  }
1252	  /^X\(\/\).*/{
1253	    s//\1/
1254	    q
1255	  }
1256	  s/.*/./; q'`
1257  srcdir=$ac_confdir
1258  if test ! -r "$srcdir/$ac_unique_file"; then
1259    srcdir=..
1260  fi
1261else
1262  ac_srcdir_defaulted=no
1263fi
1264if test ! -r "$srcdir/$ac_unique_file"; then
1265  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1266  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1267fi
1268ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1269ac_abs_confdir=`(
1270	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1271	pwd)`
1272# When building in place, set srcdir=.
1273if test "$ac_abs_confdir" = "$ac_pwd"; then
1274  srcdir=.
1275fi
1276# Remove unnecessary trailing slashes from srcdir.
1277# Double slashes in file names in object file debugging info
1278# mess up M-x gdb in Emacs.
1279case $srcdir in
1280*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1281esac
1282for ac_var in $ac_precious_vars; do
1283  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1284  eval ac_env_${ac_var}_value=\$${ac_var}
1285  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1286  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1287done
1288
1289#
1290# Report the --help message.
1291#
1292if test "$ac_init_help" = "long"; then
1293  # Omit some internal or obsolete options to make the list less imposing.
1294  # This message is too long to be a string in the A/UX 3.1 sh.
1295  cat <<_ACEOF
1296\`configure' configures xcalc 1.0.5 to adapt to many kinds of systems.
1297
1298Usage: $0 [OPTION]... [VAR=VALUE]...
1299
1300To assign environment variables (e.g., CC, CFLAGS...), specify them as
1301VAR=VALUE.  See below for descriptions of some of the useful variables.
1302
1303Defaults for the options are specified in brackets.
1304
1305Configuration:
1306  -h, --help              display this help and exit
1307      --help=short        display options specific to this package
1308      --help=recursive    display the short help of all the included packages
1309  -V, --version           display version information and exit
1310  -q, --quiet, --silent   do not print \`checking ...' messages
1311      --cache-file=FILE   cache test results in FILE [disabled]
1312  -C, --config-cache      alias for \`--cache-file=config.cache'
1313  -n, --no-create         do not create output files
1314      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1315
1316Installation directories:
1317  --prefix=PREFIX         install architecture-independent files in PREFIX
1318                          [$ac_default_prefix]
1319  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1320                          [PREFIX]
1321
1322By default, \`make install' will install all the files in
1323\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1324an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1325for instance \`--prefix=\$HOME'.
1326
1327For better control, use the options below.
1328
1329Fine tuning of the installation directories:
1330  --bindir=DIR            user executables [EPREFIX/bin]
1331  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1332  --libexecdir=DIR        program executables [EPREFIX/libexec]
1333  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1334  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1335  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1336  --libdir=DIR            object code libraries [EPREFIX/lib]
1337  --includedir=DIR        C header files [PREFIX/include]
1338  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1339  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1340  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1341  --infodir=DIR           info documentation [DATAROOTDIR/info]
1342  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1343  --mandir=DIR            man documentation [DATAROOTDIR/man]
1344  --docdir=DIR            documentation root [DATAROOTDIR/doc/xcalc]
1345  --htmldir=DIR           html documentation [DOCDIR]
1346  --dvidir=DIR            dvi documentation [DOCDIR]
1347  --pdfdir=DIR            pdf documentation [DOCDIR]
1348  --psdir=DIR             ps documentation [DOCDIR]
1349_ACEOF
1350
1351  cat <<\_ACEOF
1352
1353Program names:
1354  --program-prefix=PREFIX            prepend PREFIX to installed program names
1355  --program-suffix=SUFFIX            append SUFFIX to installed program names
1356  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1357
1358System types:
1359  --build=BUILD     configure for building on BUILD [guessed]
1360  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1361_ACEOF
1362fi
1363
1364if test -n "$ac_init_help"; then
1365  case $ac_init_help in
1366     short | recursive ) echo "Configuration of xcalc 1.0.5:";;
1367   esac
1368  cat <<\_ACEOF
1369
1370Optional Features:
1371  --disable-option-checking  ignore unrecognized --enable/--with options
1372  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1373  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1374  --enable-maintainer-mode  enable make rules and dependencies not useful
1375			  (and sometimes confusing) to the casual installer
1376  --disable-dependency-tracking  speeds up one-time build
1377  --enable-dependency-tracking   do not reject slow dependency extractors
1378  --disable-selective-werror
1379                          Turn off selective compiler errors. (default:
1380                          enabled)
1381  --enable-strict-compilation
1382                          Enable all warnings from compiler and make them
1383                          errors (default: disabled)
1384  --enable-silent-rules          less verbose build output (undo: `make V=1')
1385  --disable-silent-rules         verbose build output (undo: `make V=0')
1386
1387Optional Packages:
1388  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1389  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1390  --with-appdefaultdir=<pathname>
1391                          specify directory for app-defaults files (default is
1392                          autodetected)
1393
1394Some influential environment variables:
1395  CC          C compiler command
1396  CFLAGS      C compiler flags
1397  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1398              nonstandard directory <lib dir>
1399  LIBS        libraries to pass to the linker, e.g. -l<library>
1400  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1401              you have headers in a nonstandard directory <include dir>
1402  CPP         C preprocessor
1403  PKG_CONFIG  path to pkg-config utility
1404  XCALC_CFLAGS
1405              C compiler flags for XCALC, overriding pkg-config
1406  XCALC_LIBS  linker flags for XCALC, overriding pkg-config
1407  APPDEFS_CFLAGS
1408              C compiler flags for APPDEFS, overriding pkg-config
1409  APPDEFS_LIBS
1410              linker flags for APPDEFS, overriding pkg-config
1411
1412Use these variables to override the choices made by `configure' or to help
1413it to find libraries and programs with nonstandard names/locations.
1414
1415Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1416_ACEOF
1417ac_status=$?
1418fi
1419
1420if test "$ac_init_help" = "recursive"; then
1421  # If there are subdirs, report their specific --help.
1422  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1423    test -d "$ac_dir" ||
1424      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1425      continue
1426    ac_builddir=.
1427
1428case "$ac_dir" in
1429.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1430*)
1431  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1432  # A ".." for each directory in $ac_dir_suffix.
1433  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1434  case $ac_top_builddir_sub in
1435  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1436  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1437  esac ;;
1438esac
1439ac_abs_top_builddir=$ac_pwd
1440ac_abs_builddir=$ac_pwd$ac_dir_suffix
1441# for backward compatibility:
1442ac_top_builddir=$ac_top_build_prefix
1443
1444case $srcdir in
1445  .)  # We are building in place.
1446    ac_srcdir=.
1447    ac_top_srcdir=$ac_top_builddir_sub
1448    ac_abs_top_srcdir=$ac_pwd ;;
1449  [\\/]* | ?:[\\/]* )  # Absolute name.
1450    ac_srcdir=$srcdir$ac_dir_suffix;
1451    ac_top_srcdir=$srcdir
1452    ac_abs_top_srcdir=$srcdir ;;
1453  *) # Relative name.
1454    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1455    ac_top_srcdir=$ac_top_build_prefix$srcdir
1456    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1457esac
1458ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1459
1460    cd "$ac_dir" || { ac_status=$?; continue; }
1461    # Check for guested configure.
1462    if test -f "$ac_srcdir/configure.gnu"; then
1463      echo &&
1464      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1465    elif test -f "$ac_srcdir/configure"; then
1466      echo &&
1467      $SHELL "$ac_srcdir/configure" --help=recursive
1468    else
1469      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1470    fi || ac_status=$?
1471    cd "$ac_pwd" || { ac_status=$?; break; }
1472  done
1473fi
1474
1475test -n "$ac_init_help" && exit $ac_status
1476if $ac_init_version; then
1477  cat <<\_ACEOF
1478xcalc configure 1.0.5
1479generated by GNU Autoconf 2.68
1480
1481Copyright (C) 2010 Free Software Foundation, Inc.
1482This configure script is free software; the Free Software Foundation
1483gives unlimited permission to copy, distribute and modify it.
1484_ACEOF
1485  exit
1486fi
1487
1488## ------------------------ ##
1489## Autoconf initialization. ##
1490## ------------------------ ##
1491
1492# ac_fn_c_try_compile LINENO
1493# --------------------------
1494# Try to compile conftest.$ac_ext, and return whether this succeeded.
1495ac_fn_c_try_compile ()
1496{
1497  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1498  rm -f conftest.$ac_objext
1499  if { { ac_try="$ac_compile"
1500case "(($ac_try" in
1501  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1502  *) ac_try_echo=$ac_try;;
1503esac
1504eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1505$as_echo "$ac_try_echo"; } >&5
1506  (eval "$ac_compile") 2>conftest.err
1507  ac_status=$?
1508  if test -s conftest.err; then
1509    grep -v '^ *+' conftest.err >conftest.er1
1510    cat conftest.er1 >&5
1511    mv -f conftest.er1 conftest.err
1512  fi
1513  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1514  test $ac_status = 0; } && {
1515	 test -z "$ac_c_werror_flag" ||
1516	 test ! -s conftest.err
1517       } && test -s conftest.$ac_objext; then :
1518  ac_retval=0
1519else
1520  $as_echo "$as_me: failed program was:" >&5
1521sed 's/^/| /' conftest.$ac_ext >&5
1522
1523	ac_retval=1
1524fi
1525  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1526  as_fn_set_status $ac_retval
1527
1528} # ac_fn_c_try_compile
1529
1530# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1531# ---------------------------------------------
1532# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1533# accordingly.
1534ac_fn_c_check_decl ()
1535{
1536  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537  as_decl_name=`echo $2|sed 's/ *(.*//'`
1538  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1539  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1540$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1541if eval \${$3+:} false; then :
1542  $as_echo_n "(cached) " >&6
1543else
1544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1545/* end confdefs.h.  */
1546$4
1547int
1548main ()
1549{
1550#ifndef $as_decl_name
1551#ifdef __cplusplus
1552  (void) $as_decl_use;
1553#else
1554  (void) $as_decl_name;
1555#endif
1556#endif
1557
1558  ;
1559  return 0;
1560}
1561_ACEOF
1562if ac_fn_c_try_compile "$LINENO"; then :
1563  eval "$3=yes"
1564else
1565  eval "$3=no"
1566fi
1567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1568fi
1569eval ac_res=\$$3
1570	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1571$as_echo "$ac_res" >&6; }
1572  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1573
1574} # ac_fn_c_check_decl
1575
1576# ac_fn_c_try_cpp LINENO
1577# ----------------------
1578# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1579ac_fn_c_try_cpp ()
1580{
1581  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582  if { { ac_try="$ac_cpp conftest.$ac_ext"
1583case "(($ac_try" in
1584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585  *) ac_try_echo=$ac_try;;
1586esac
1587eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588$as_echo "$ac_try_echo"; } >&5
1589  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1590  ac_status=$?
1591  if test -s conftest.err; then
1592    grep -v '^ *+' conftest.err >conftest.er1
1593    cat conftest.er1 >&5
1594    mv -f conftest.er1 conftest.err
1595  fi
1596  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597  test $ac_status = 0; } > conftest.i && {
1598	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1599	 test ! -s conftest.err
1600       }; then :
1601  ac_retval=0
1602else
1603  $as_echo "$as_me: failed program was:" >&5
1604sed 's/^/| /' conftest.$ac_ext >&5
1605
1606    ac_retval=1
1607fi
1608  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1609  as_fn_set_status $ac_retval
1610
1611} # ac_fn_c_try_cpp
1612
1613# ac_fn_c_try_run LINENO
1614# ----------------------
1615# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1616# that executables *can* be run.
1617ac_fn_c_try_run ()
1618{
1619  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620  if { { ac_try="$ac_link"
1621case "(($ac_try" in
1622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623  *) ac_try_echo=$ac_try;;
1624esac
1625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626$as_echo "$ac_try_echo"; } >&5
1627  (eval "$ac_link") 2>&5
1628  ac_status=$?
1629  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1631  { { case "(($ac_try" in
1632  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633  *) ac_try_echo=$ac_try;;
1634esac
1635eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636$as_echo "$ac_try_echo"; } >&5
1637  (eval "$ac_try") 2>&5
1638  ac_status=$?
1639  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640  test $ac_status = 0; }; }; then :
1641  ac_retval=0
1642else
1643  $as_echo "$as_me: program exited with status $ac_status" >&5
1644       $as_echo "$as_me: failed program was:" >&5
1645sed 's/^/| /' conftest.$ac_ext >&5
1646
1647       ac_retval=$ac_status
1648fi
1649  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1650  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651  as_fn_set_status $ac_retval
1652
1653} # ac_fn_c_try_run
1654
1655# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1656# -------------------------------------------------------
1657# Tests whether HEADER exists and can be compiled using the include files in
1658# INCLUDES, setting the cache variable VAR accordingly.
1659ac_fn_c_check_header_compile ()
1660{
1661  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1663$as_echo_n "checking for $2... " >&6; }
1664if eval \${$3+:} false; then :
1665  $as_echo_n "(cached) " >&6
1666else
1667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1668/* end confdefs.h.  */
1669$4
1670#include <$2>
1671_ACEOF
1672if ac_fn_c_try_compile "$LINENO"; then :
1673  eval "$3=yes"
1674else
1675  eval "$3=no"
1676fi
1677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1678fi
1679eval ac_res=\$$3
1680	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1681$as_echo "$ac_res" >&6; }
1682  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683
1684} # ac_fn_c_check_header_compile
1685
1686# ac_fn_c_try_link LINENO
1687# -----------------------
1688# Try to link conftest.$ac_ext, and return whether this succeeded.
1689ac_fn_c_try_link ()
1690{
1691  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692  rm -f conftest.$ac_objext conftest$ac_exeext
1693  if { { ac_try="$ac_link"
1694case "(($ac_try" in
1695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696  *) ac_try_echo=$ac_try;;
1697esac
1698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699$as_echo "$ac_try_echo"; } >&5
1700  (eval "$ac_link") 2>conftest.err
1701  ac_status=$?
1702  if test -s conftest.err; then
1703    grep -v '^ *+' conftest.err >conftest.er1
1704    cat conftest.er1 >&5
1705    mv -f conftest.er1 conftest.err
1706  fi
1707  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708  test $ac_status = 0; } && {
1709	 test -z "$ac_c_werror_flag" ||
1710	 test ! -s conftest.err
1711       } && test -s conftest$ac_exeext && {
1712	 test "$cross_compiling" = yes ||
1713	 $as_test_x conftest$ac_exeext
1714       }; then :
1715  ac_retval=0
1716else
1717  $as_echo "$as_me: failed program was:" >&5
1718sed 's/^/| /' conftest.$ac_ext >&5
1719
1720	ac_retval=1
1721fi
1722  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1723  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1724  # interfere with the next link command; also delete a directory that is
1725  # left behind by Apple's compiler.  We do this before executing the actions.
1726  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1727  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728  as_fn_set_status $ac_retval
1729
1730} # ac_fn_c_try_link
1731cat >config.log <<_ACEOF
1732This file contains any messages produced by compilers while
1733running configure, to aid debugging if configure makes a mistake.
1734
1735It was created by xcalc $as_me 1.0.5, which was
1736generated by GNU Autoconf 2.68.  Invocation command line was
1737
1738  $ $0 $@
1739
1740_ACEOF
1741exec 5>>config.log
1742{
1743cat <<_ASUNAME
1744## --------- ##
1745## Platform. ##
1746## --------- ##
1747
1748hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1749uname -m = `(uname -m) 2>/dev/null || echo unknown`
1750uname -r = `(uname -r) 2>/dev/null || echo unknown`
1751uname -s = `(uname -s) 2>/dev/null || echo unknown`
1752uname -v = `(uname -v) 2>/dev/null || echo unknown`
1753
1754/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1755/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1756
1757/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1758/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1759/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1760/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1761/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1762/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1763/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1764
1765_ASUNAME
1766
1767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1768for as_dir in $PATH
1769do
1770  IFS=$as_save_IFS
1771  test -z "$as_dir" && as_dir=.
1772    $as_echo "PATH: $as_dir"
1773  done
1774IFS=$as_save_IFS
1775
1776} >&5
1777
1778cat >&5 <<_ACEOF
1779
1780
1781## ----------- ##
1782## Core tests. ##
1783## ----------- ##
1784
1785_ACEOF
1786
1787
1788# Keep a trace of the command line.
1789# Strip out --no-create and --no-recursion so they do not pile up.
1790# Strip out --silent because we don't want to record it for future runs.
1791# Also quote any args containing shell meta-characters.
1792# Make two passes to allow for proper duplicate-argument suppression.
1793ac_configure_args=
1794ac_configure_args0=
1795ac_configure_args1=
1796ac_must_keep_next=false
1797for ac_pass in 1 2
1798do
1799  for ac_arg
1800  do
1801    case $ac_arg in
1802    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1803    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1804    | -silent | --silent | --silen | --sile | --sil)
1805      continue ;;
1806    *\'*)
1807      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1808    esac
1809    case $ac_pass in
1810    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1811    2)
1812      as_fn_append ac_configure_args1 " '$ac_arg'"
1813      if test $ac_must_keep_next = true; then
1814	ac_must_keep_next=false # Got value, back to normal.
1815      else
1816	case $ac_arg in
1817	  *=* | --config-cache | -C | -disable-* | --disable-* \
1818	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1819	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1820	  | -with-* | --with-* | -without-* | --without-* | --x)
1821	    case "$ac_configure_args0 " in
1822	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1823	    esac
1824	    ;;
1825	  -* ) ac_must_keep_next=true ;;
1826	esac
1827      fi
1828      as_fn_append ac_configure_args " '$ac_arg'"
1829      ;;
1830    esac
1831  done
1832done
1833{ ac_configure_args0=; unset ac_configure_args0;}
1834{ ac_configure_args1=; unset ac_configure_args1;}
1835
1836# When interrupted or exit'd, cleanup temporary files, and complete
1837# config.log.  We remove comments because anyway the quotes in there
1838# would cause problems or look ugly.
1839# WARNING: Use '\'' to represent an apostrophe within the trap.
1840# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1841trap 'exit_status=$?
1842  # Save into config.log some information that might help in debugging.
1843  {
1844    echo
1845
1846    $as_echo "## ---------------- ##
1847## Cache variables. ##
1848## ---------------- ##"
1849    echo
1850    # The following way of writing the cache mishandles newlines in values,
1851(
1852  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1853    eval ac_val=\$$ac_var
1854    case $ac_val in #(
1855    *${as_nl}*)
1856      case $ac_var in #(
1857      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1858$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1859      esac
1860      case $ac_var in #(
1861      _ | IFS | as_nl) ;; #(
1862      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1863      *) { eval $ac_var=; unset $ac_var;} ;;
1864      esac ;;
1865    esac
1866  done
1867  (set) 2>&1 |
1868    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1869    *${as_nl}ac_space=\ *)
1870      sed -n \
1871	"s/'\''/'\''\\\\'\'''\''/g;
1872	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1873      ;; #(
1874    *)
1875      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1876      ;;
1877    esac |
1878    sort
1879)
1880    echo
1881
1882    $as_echo "## ----------------- ##
1883## Output variables. ##
1884## ----------------- ##"
1885    echo
1886    for ac_var in $ac_subst_vars
1887    do
1888      eval ac_val=\$$ac_var
1889      case $ac_val in
1890      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1891      esac
1892      $as_echo "$ac_var='\''$ac_val'\''"
1893    done | sort
1894    echo
1895
1896    if test -n "$ac_subst_files"; then
1897      $as_echo "## ------------------- ##
1898## File substitutions. ##
1899## ------------------- ##"
1900      echo
1901      for ac_var in $ac_subst_files
1902      do
1903	eval ac_val=\$$ac_var
1904	case $ac_val in
1905	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1906	esac
1907	$as_echo "$ac_var='\''$ac_val'\''"
1908      done | sort
1909      echo
1910    fi
1911
1912    if test -s confdefs.h; then
1913      $as_echo "## ----------- ##
1914## confdefs.h. ##
1915## ----------- ##"
1916      echo
1917      cat confdefs.h
1918      echo
1919    fi
1920    test "$ac_signal" != 0 &&
1921      $as_echo "$as_me: caught signal $ac_signal"
1922    $as_echo "$as_me: exit $exit_status"
1923  } >&5
1924  rm -f core *.core core.conftest.* &&
1925    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1926    exit $exit_status
1927' 0
1928for ac_signal in 1 2 13 15; do
1929  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1930done
1931ac_signal=0
1932
1933# confdefs.h avoids OS command line length limits that DEFS can exceed.
1934rm -f -r conftest* confdefs.h
1935
1936$as_echo "/* confdefs.h */" > confdefs.h
1937
1938# Predefined preprocessor variables.
1939
1940cat >>confdefs.h <<_ACEOF
1941#define PACKAGE_NAME "$PACKAGE_NAME"
1942_ACEOF
1943
1944cat >>confdefs.h <<_ACEOF
1945#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1946_ACEOF
1947
1948cat >>confdefs.h <<_ACEOF
1949#define PACKAGE_VERSION "$PACKAGE_VERSION"
1950_ACEOF
1951
1952cat >>confdefs.h <<_ACEOF
1953#define PACKAGE_STRING "$PACKAGE_STRING"
1954_ACEOF
1955
1956cat >>confdefs.h <<_ACEOF
1957#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1958_ACEOF
1959
1960cat >>confdefs.h <<_ACEOF
1961#define PACKAGE_URL "$PACKAGE_URL"
1962_ACEOF
1963
1964
1965# Let the site file select an alternate cache file if it wants to.
1966# Prefer an explicitly selected file to automatically selected ones.
1967ac_site_file1=NONE
1968ac_site_file2=NONE
1969if test -n "$CONFIG_SITE"; then
1970  # We do not want a PATH search for config.site.
1971  case $CONFIG_SITE in #((
1972    -*)  ac_site_file1=./$CONFIG_SITE;;
1973    */*) ac_site_file1=$CONFIG_SITE;;
1974    *)   ac_site_file1=./$CONFIG_SITE;;
1975  esac
1976elif test "x$prefix" != xNONE; then
1977  ac_site_file1=$prefix/share/config.site
1978  ac_site_file2=$prefix/etc/config.site
1979else
1980  ac_site_file1=$ac_default_prefix/share/config.site
1981  ac_site_file2=$ac_default_prefix/etc/config.site
1982fi
1983for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1984do
1985  test "x$ac_site_file" = xNONE && continue
1986  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1987    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1988$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1989    sed 's/^/| /' "$ac_site_file" >&5
1990    . "$ac_site_file" \
1991      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1992$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1993as_fn_error $? "failed to load site script $ac_site_file
1994See \`config.log' for more details" "$LINENO" 5; }
1995  fi
1996done
1997
1998if test -r "$cache_file"; then
1999  # Some versions of bash will fail to source /dev/null (special files
2000  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2001  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2002    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2003$as_echo "$as_me: loading cache $cache_file" >&6;}
2004    case $cache_file in
2005      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2006      *)                      . "./$cache_file";;
2007    esac
2008  fi
2009else
2010  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2011$as_echo "$as_me: creating cache $cache_file" >&6;}
2012  >$cache_file
2013fi
2014
2015# Check that the precious variables saved in the cache have kept the same
2016# value.
2017ac_cache_corrupted=false
2018for ac_var in $ac_precious_vars; do
2019  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2020  eval ac_new_set=\$ac_env_${ac_var}_set
2021  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2022  eval ac_new_val=\$ac_env_${ac_var}_value
2023  case $ac_old_set,$ac_new_set in
2024    set,)
2025      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2026$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2027      ac_cache_corrupted=: ;;
2028    ,set)
2029      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2030$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2031      ac_cache_corrupted=: ;;
2032    ,);;
2033    *)
2034      if test "x$ac_old_val" != "x$ac_new_val"; then
2035	# differences in whitespace do not lead to failure.
2036	ac_old_val_w=`echo x $ac_old_val`
2037	ac_new_val_w=`echo x $ac_new_val`
2038	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2039	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2040$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2041	  ac_cache_corrupted=:
2042	else
2043	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2044$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2045	  eval $ac_var=\$ac_old_val
2046	fi
2047	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2048$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2049	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2050$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2051      fi;;
2052  esac
2053  # Pass precious variables to config.status.
2054  if test "$ac_new_set" = set; then
2055    case $ac_new_val in
2056    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2057    *) ac_arg=$ac_var=$ac_new_val ;;
2058    esac
2059    case " $ac_configure_args " in
2060      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2061      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2062    esac
2063  fi
2064done
2065if $ac_cache_corrupted; then
2066  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2067$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2068  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2069$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2070  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2071fi
2072## -------------------- ##
2073## Main body of script. ##
2074## -------------------- ##
2075
2076ac_ext=c
2077ac_cpp='$CPP $CPPFLAGS'
2078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2080ac_compiler_gnu=$ac_cv_c_compiler_gnu
2081
2082
2083
2084ac_config_headers="$ac_config_headers config.h"
2085
2086
2087# Initialize Automake
2088am__api_version='1.11'
2089
2090ac_aux_dir=
2091for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2092  if test -f "$ac_dir/install-sh"; then
2093    ac_aux_dir=$ac_dir
2094    ac_install_sh="$ac_aux_dir/install-sh -c"
2095    break
2096  elif test -f "$ac_dir/install.sh"; then
2097    ac_aux_dir=$ac_dir
2098    ac_install_sh="$ac_aux_dir/install.sh -c"
2099    break
2100  elif test -f "$ac_dir/shtool"; then
2101    ac_aux_dir=$ac_dir
2102    ac_install_sh="$ac_aux_dir/shtool install -c"
2103    break
2104  fi
2105done
2106if test -z "$ac_aux_dir"; then
2107  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2108fi
2109
2110# These three variables are undocumented and unsupported,
2111# and are intended to be withdrawn in a future Autoconf release.
2112# They can cause serious problems if a builder's source tree is in a directory
2113# whose full name contains unusual characters.
2114ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2115ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2116ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2117
2118
2119# Find a good install program.  We prefer a C program (faster),
2120# so one script is as good as another.  But avoid the broken or
2121# incompatible versions:
2122# SysV /etc/install, /usr/sbin/install
2123# SunOS /usr/etc/install
2124# IRIX /sbin/install
2125# AIX /bin/install
2126# AmigaOS /C/install, which installs bootblocks on floppy discs
2127# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2128# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2129# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2130# OS/2's system install, which has a completely different semantic
2131# ./install, which can be erroneously created by make from ./install.sh.
2132# Reject install programs that cannot install multiple files.
2133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2134$as_echo_n "checking for a BSD-compatible install... " >&6; }
2135if test -z "$INSTALL"; then
2136if ${ac_cv_path_install+:} false; then :
2137  $as_echo_n "(cached) " >&6
2138else
2139  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140for as_dir in $PATH
2141do
2142  IFS=$as_save_IFS
2143  test -z "$as_dir" && as_dir=.
2144    # Account for people who put trailing slashes in PATH elements.
2145case $as_dir/ in #((
2146  ./ | .// | /[cC]/* | \
2147  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2148  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2149  /usr/ucb/* ) ;;
2150  *)
2151    # OSF1 and SCO ODT 3.0 have their own names for install.
2152    # Don't use installbsd from OSF since it installs stuff as root
2153    # by default.
2154    for ac_prog in ginstall scoinst install; do
2155      for ac_exec_ext in '' $ac_executable_extensions; do
2156	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2157	  if test $ac_prog = install &&
2158	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2159	    # AIX install.  It has an incompatible calling convention.
2160	    :
2161	  elif test $ac_prog = install &&
2162	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2163	    # program-specific install script used by HP pwplus--don't use.
2164	    :
2165	  else
2166	    rm -rf conftest.one conftest.two conftest.dir
2167	    echo one > conftest.one
2168	    echo two > conftest.two
2169	    mkdir conftest.dir
2170	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2171	      test -s conftest.one && test -s conftest.two &&
2172	      test -s conftest.dir/conftest.one &&
2173	      test -s conftest.dir/conftest.two
2174	    then
2175	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2176	      break 3
2177	    fi
2178	  fi
2179	fi
2180      done
2181    done
2182    ;;
2183esac
2184
2185  done
2186IFS=$as_save_IFS
2187
2188rm -rf conftest.one conftest.two conftest.dir
2189
2190fi
2191  if test "${ac_cv_path_install+set}" = set; then
2192    INSTALL=$ac_cv_path_install
2193  else
2194    # As a last resort, use the slow shell script.  Don't cache a
2195    # value for INSTALL within a source directory, because that will
2196    # break other packages using the cache if that directory is
2197    # removed, or if the value is a relative name.
2198    INSTALL=$ac_install_sh
2199  fi
2200fi
2201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2202$as_echo "$INSTALL" >&6; }
2203
2204# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2205# It thinks the first close brace ends the variable substitution.
2206test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2207
2208test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2209
2210test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2211
2212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2213$as_echo_n "checking whether build environment is sane... " >&6; }
2214# Just in case
2215sleep 1
2216echo timestamp > conftest.file
2217# Reject unsafe characters in $srcdir or the absolute working directory
2218# name.  Accept space and tab only in the latter.
2219am_lf='
2220'
2221case `pwd` in
2222  *[\\\"\#\$\&\'\`$am_lf]*)
2223    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2224esac
2225case $srcdir in
2226  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2227    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2228esac
2229
2230# Do `set' in a subshell so we don't clobber the current shell's
2231# arguments.  Must try -L first in case configure is actually a
2232# symlink; some systems play weird games with the mod time of symlinks
2233# (eg FreeBSD returns the mod time of the symlink's containing
2234# directory).
2235if (
2236   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2237   if test "$*" = "X"; then
2238      # -L didn't work.
2239      set X `ls -t "$srcdir/configure" conftest.file`
2240   fi
2241   rm -f conftest.file
2242   if test "$*" != "X $srcdir/configure conftest.file" \
2243      && test "$*" != "X conftest.file $srcdir/configure"; then
2244
2245      # If neither matched, then we have a broken ls.  This can happen
2246      # if, for instance, CONFIG_SHELL is bash and it inherits a
2247      # broken ls alias from the environment.  This has actually
2248      # happened.  Such a system could not be considered "sane".
2249      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2250alias in your environment" "$LINENO" 5
2251   fi
2252
2253   test "$2" = conftest.file
2254   )
2255then
2256   # Ok.
2257   :
2258else
2259   as_fn_error $? "newly created file is older than distributed files!
2260Check your system clock" "$LINENO" 5
2261fi
2262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2263$as_echo "yes" >&6; }
2264test "$program_prefix" != NONE &&
2265  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2266# Use a double $ so make ignores it.
2267test "$program_suffix" != NONE &&
2268  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2269# Double any \ or $.
2270# By default was `s,x,x', remove it if useless.
2271ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2272program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2273
2274# expand $ac_aux_dir to an absolute path
2275am_aux_dir=`cd $ac_aux_dir && pwd`
2276
2277if test x"${MISSING+set}" != xset; then
2278  case $am_aux_dir in
2279  *\ * | *\	*)
2280    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2281  *)
2282    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2283  esac
2284fi
2285# Use eval to expand $SHELL
2286if eval "$MISSING --run true"; then
2287  am_missing_run="$MISSING --run "
2288else
2289  am_missing_run=
2290  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2291$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2292fi
2293
2294if test x"${install_sh}" != xset; then
2295  case $am_aux_dir in
2296  *\ * | *\	*)
2297    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2298  *)
2299    install_sh="\${SHELL} $am_aux_dir/install-sh"
2300  esac
2301fi
2302
2303# Installed binaries are usually stripped using `strip' when the user
2304# run `make install-strip'.  However `strip' might not be the right
2305# tool to use in cross-compilation environments, therefore Automake
2306# will honor the `STRIP' environment variable to overrule this program.
2307if test "$cross_compiling" != no; then
2308  if test -n "$ac_tool_prefix"; then
2309  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2310set dummy ${ac_tool_prefix}strip; ac_word=$2
2311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2312$as_echo_n "checking for $ac_word... " >&6; }
2313if ${ac_cv_prog_STRIP+:} false; then :
2314  $as_echo_n "(cached) " >&6
2315else
2316  if test -n "$STRIP"; then
2317  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2318else
2319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320for as_dir in $PATH
2321do
2322  IFS=$as_save_IFS
2323  test -z "$as_dir" && as_dir=.
2324    for ac_exec_ext in '' $ac_executable_extensions; do
2325  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2326    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2327    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2328    break 2
2329  fi
2330done
2331  done
2332IFS=$as_save_IFS
2333
2334fi
2335fi
2336STRIP=$ac_cv_prog_STRIP
2337if test -n "$STRIP"; then
2338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2339$as_echo "$STRIP" >&6; }
2340else
2341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2342$as_echo "no" >&6; }
2343fi
2344
2345
2346fi
2347if test -z "$ac_cv_prog_STRIP"; then
2348  ac_ct_STRIP=$STRIP
2349  # Extract the first word of "strip", so it can be a program name with args.
2350set dummy strip; ac_word=$2
2351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2352$as_echo_n "checking for $ac_word... " >&6; }
2353if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2354  $as_echo_n "(cached) " >&6
2355else
2356  if test -n "$ac_ct_STRIP"; then
2357  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2358else
2359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360for as_dir in $PATH
2361do
2362  IFS=$as_save_IFS
2363  test -z "$as_dir" && as_dir=.
2364    for ac_exec_ext in '' $ac_executable_extensions; do
2365  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2366    ac_cv_prog_ac_ct_STRIP="strip"
2367    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2368    break 2
2369  fi
2370done
2371  done
2372IFS=$as_save_IFS
2373
2374fi
2375fi
2376ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2377if test -n "$ac_ct_STRIP"; then
2378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2379$as_echo "$ac_ct_STRIP" >&6; }
2380else
2381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2382$as_echo "no" >&6; }
2383fi
2384
2385  if test "x$ac_ct_STRIP" = x; then
2386    STRIP=":"
2387  else
2388    case $cross_compiling:$ac_tool_warned in
2389yes:)
2390{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2391$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2392ac_tool_warned=yes ;;
2393esac
2394    STRIP=$ac_ct_STRIP
2395  fi
2396else
2397  STRIP="$ac_cv_prog_STRIP"
2398fi
2399
2400fi
2401INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2402
2403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2404$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2405if test -z "$MKDIR_P"; then
2406  if ${ac_cv_path_mkdir+:} false; then :
2407  $as_echo_n "(cached) " >&6
2408else
2409  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2411do
2412  IFS=$as_save_IFS
2413  test -z "$as_dir" && as_dir=.
2414    for ac_prog in mkdir gmkdir; do
2415	 for ac_exec_ext in '' $ac_executable_extensions; do
2416	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2417	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2418	     'mkdir (GNU coreutils) '* | \
2419	     'mkdir (coreutils) '* | \
2420	     'mkdir (fileutils) '4.1*)
2421	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2422	       break 3;;
2423	   esac
2424	 done
2425       done
2426  done
2427IFS=$as_save_IFS
2428
2429fi
2430
2431  test -d ./--version && rmdir ./--version
2432  if test "${ac_cv_path_mkdir+set}" = set; then
2433    MKDIR_P="$ac_cv_path_mkdir -p"
2434  else
2435    # As a last resort, use the slow shell script.  Don't cache a
2436    # value for MKDIR_P within a source directory, because that will
2437    # break other packages using the cache if that directory is
2438    # removed, or if the value is a relative name.
2439    MKDIR_P="$ac_install_sh -d"
2440  fi
2441fi
2442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2443$as_echo "$MKDIR_P" >&6; }
2444
2445mkdir_p="$MKDIR_P"
2446case $mkdir_p in
2447  [\\/$]* | ?:[\\/]*) ;;
2448  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2449esac
2450
2451for ac_prog in gawk mawk nawk awk
2452do
2453  # Extract the first word of "$ac_prog", so it can be a program name with args.
2454set dummy $ac_prog; ac_word=$2
2455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2456$as_echo_n "checking for $ac_word... " >&6; }
2457if ${ac_cv_prog_AWK+:} false; then :
2458  $as_echo_n "(cached) " >&6
2459else
2460  if test -n "$AWK"; then
2461  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2462else
2463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464for as_dir in $PATH
2465do
2466  IFS=$as_save_IFS
2467  test -z "$as_dir" && as_dir=.
2468    for ac_exec_ext in '' $ac_executable_extensions; do
2469  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2470    ac_cv_prog_AWK="$ac_prog"
2471    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2472    break 2
2473  fi
2474done
2475  done
2476IFS=$as_save_IFS
2477
2478fi
2479fi
2480AWK=$ac_cv_prog_AWK
2481if test -n "$AWK"; then
2482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2483$as_echo "$AWK" >&6; }
2484else
2485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2486$as_echo "no" >&6; }
2487fi
2488
2489
2490  test -n "$AWK" && break
2491done
2492
2493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2494$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2495set x ${MAKE-make}
2496ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2497if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2498  $as_echo_n "(cached) " >&6
2499else
2500  cat >conftest.make <<\_ACEOF
2501SHELL = /bin/sh
2502all:
2503	@echo '@@@%%%=$(MAKE)=@@@%%%'
2504_ACEOF
2505# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2506case `${MAKE-make} -f conftest.make 2>/dev/null` in
2507  *@@@%%%=?*=@@@%%%*)
2508    eval ac_cv_prog_make_${ac_make}_set=yes;;
2509  *)
2510    eval ac_cv_prog_make_${ac_make}_set=no;;
2511esac
2512rm -f conftest.make
2513fi
2514if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2516$as_echo "yes" >&6; }
2517  SET_MAKE=
2518else
2519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2520$as_echo "no" >&6; }
2521  SET_MAKE="MAKE=${MAKE-make}"
2522fi
2523
2524rm -rf .tst 2>/dev/null
2525mkdir .tst 2>/dev/null
2526if test -d .tst; then
2527  am__leading_dot=.
2528else
2529  am__leading_dot=_
2530fi
2531rmdir .tst 2>/dev/null
2532
2533if test "`cd $srcdir && pwd`" != "`pwd`"; then
2534  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2535  # is not polluted with repeated "-I."
2536  am__isrc=' -I$(srcdir)'
2537  # test to see if srcdir already configured
2538  if test -f $srcdir/config.status; then
2539    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2540  fi
2541fi
2542
2543# test whether we have cygpath
2544if test -z "$CYGPATH_W"; then
2545  if (cygpath --version) >/dev/null 2>/dev/null; then
2546    CYGPATH_W='cygpath -w'
2547  else
2548    CYGPATH_W=echo
2549  fi
2550fi
2551
2552
2553# Define the identity of the package.
2554 PACKAGE='xcalc'
2555 VERSION='1.0.5'
2556
2557
2558cat >>confdefs.h <<_ACEOF
2559#define PACKAGE "$PACKAGE"
2560_ACEOF
2561
2562
2563cat >>confdefs.h <<_ACEOF
2564#define VERSION "$VERSION"
2565_ACEOF
2566
2567# Some tools Automake needs.
2568
2569ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2570
2571
2572AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2573
2574
2575AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2576
2577
2578AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2579
2580
2581MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2582
2583# We need awk for the "check" target.  The system "awk" is bad on
2584# some platforms.
2585# Always define AMTAR for backward compatibility.
2586
2587AMTAR=${AMTAR-"${am_missing_run}tar"}
2588
2589am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2590
2591
2592
2593
2594
2595
2596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2597$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2598    # Check whether --enable-maintainer-mode was given.
2599if test "${enable_maintainer_mode+set}" = set; then :
2600  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2601else
2602  USE_MAINTAINER_MODE=no
2603fi
2604
2605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2606$as_echo "$USE_MAINTAINER_MODE" >&6; }
2607   if test $USE_MAINTAINER_MODE = yes; then
2608  MAINTAINER_MODE_TRUE=
2609  MAINTAINER_MODE_FALSE='#'
2610else
2611  MAINTAINER_MODE_TRUE='#'
2612  MAINTAINER_MODE_FALSE=
2613fi
2614
2615  MAINT=$MAINTAINER_MODE_TRUE
2616
2617
2618
2619# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631DEPDIR="${am__leading_dot}deps"
2632
2633ac_config_commands="$ac_config_commands depfiles"
2634
2635
2636am_make=${MAKE-make}
2637cat > confinc << 'END'
2638am__doit:
2639	@echo this is the am__doit target
2640.PHONY: am__doit
2641END
2642# If we don't find an include directive, just comment out the code.
2643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2644$as_echo_n "checking for style of include used by $am_make... " >&6; }
2645am__include="#"
2646am__quote=
2647_am_result=none
2648# First try GNU make style include.
2649echo "include confinc" > confmf
2650# Ignore all kinds of additional output from `make'.
2651case `$am_make -s -f confmf 2> /dev/null` in #(
2652*the\ am__doit\ target*)
2653  am__include=include
2654  am__quote=
2655  _am_result=GNU
2656  ;;
2657esac
2658# Now try BSD make style include.
2659if test "$am__include" = "#"; then
2660   echo '.include "confinc"' > confmf
2661   case `$am_make -s -f confmf 2> /dev/null` in #(
2662   *the\ am__doit\ target*)
2663     am__include=.include
2664     am__quote="\""
2665     _am_result=BSD
2666     ;;
2667   esac
2668fi
2669
2670
2671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2672$as_echo "$_am_result" >&6; }
2673rm -f confinc confmf
2674
2675# Check whether --enable-dependency-tracking was given.
2676if test "${enable_dependency_tracking+set}" = set; then :
2677  enableval=$enable_dependency_tracking;
2678fi
2679
2680if test "x$enable_dependency_tracking" != xno; then
2681  am_depcomp="$ac_aux_dir/depcomp"
2682  AMDEPBACKSLASH='\'
2683  am__nodep='_no'
2684fi
2685 if test "x$enable_dependency_tracking" != xno; then
2686  AMDEP_TRUE=
2687  AMDEP_FALSE='#'
2688else
2689  AMDEP_TRUE='#'
2690  AMDEP_FALSE=
2691fi
2692
2693
2694ac_ext=c
2695ac_cpp='$CPP $CPPFLAGS'
2696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2698ac_compiler_gnu=$ac_cv_c_compiler_gnu
2699if test -n "$ac_tool_prefix"; then
2700  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2701set dummy ${ac_tool_prefix}gcc; ac_word=$2
2702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2703$as_echo_n "checking for $ac_word... " >&6; }
2704if ${ac_cv_prog_CC+:} false; then :
2705  $as_echo_n "(cached) " >&6
2706else
2707  if test -n "$CC"; then
2708  ac_cv_prog_CC="$CC" # Let the user override the test.
2709else
2710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711for as_dir in $PATH
2712do
2713  IFS=$as_save_IFS
2714  test -z "$as_dir" && as_dir=.
2715    for ac_exec_ext in '' $ac_executable_extensions; do
2716  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2717    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2718    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2719    break 2
2720  fi
2721done
2722  done
2723IFS=$as_save_IFS
2724
2725fi
2726fi
2727CC=$ac_cv_prog_CC
2728if test -n "$CC"; then
2729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2730$as_echo "$CC" >&6; }
2731else
2732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2733$as_echo "no" >&6; }
2734fi
2735
2736
2737fi
2738if test -z "$ac_cv_prog_CC"; then
2739  ac_ct_CC=$CC
2740  # Extract the first word of "gcc", so it can be a program name with args.
2741set dummy gcc; ac_word=$2
2742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2743$as_echo_n "checking for $ac_word... " >&6; }
2744if ${ac_cv_prog_ac_ct_CC+:} false; then :
2745  $as_echo_n "(cached) " >&6
2746else
2747  if test -n "$ac_ct_CC"; then
2748  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2749else
2750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751for as_dir in $PATH
2752do
2753  IFS=$as_save_IFS
2754  test -z "$as_dir" && as_dir=.
2755    for ac_exec_ext in '' $ac_executable_extensions; do
2756  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2757    ac_cv_prog_ac_ct_CC="gcc"
2758    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2759    break 2
2760  fi
2761done
2762  done
2763IFS=$as_save_IFS
2764
2765fi
2766fi
2767ac_ct_CC=$ac_cv_prog_ac_ct_CC
2768if test -n "$ac_ct_CC"; then
2769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2770$as_echo "$ac_ct_CC" >&6; }
2771else
2772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2773$as_echo "no" >&6; }
2774fi
2775
2776  if test "x$ac_ct_CC" = x; then
2777    CC=""
2778  else
2779    case $cross_compiling:$ac_tool_warned in
2780yes:)
2781{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2782$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2783ac_tool_warned=yes ;;
2784esac
2785    CC=$ac_ct_CC
2786  fi
2787else
2788  CC="$ac_cv_prog_CC"
2789fi
2790
2791if test -z "$CC"; then
2792          if test -n "$ac_tool_prefix"; then
2793    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2794set dummy ${ac_tool_prefix}cc; ac_word=$2
2795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2796$as_echo_n "checking for $ac_word... " >&6; }
2797if ${ac_cv_prog_CC+:} false; then :
2798  $as_echo_n "(cached) " >&6
2799else
2800  if test -n "$CC"; then
2801  ac_cv_prog_CC="$CC" # Let the user override the test.
2802else
2803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804for as_dir in $PATH
2805do
2806  IFS=$as_save_IFS
2807  test -z "$as_dir" && as_dir=.
2808    for ac_exec_ext in '' $ac_executable_extensions; do
2809  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2810    ac_cv_prog_CC="${ac_tool_prefix}cc"
2811    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2812    break 2
2813  fi
2814done
2815  done
2816IFS=$as_save_IFS
2817
2818fi
2819fi
2820CC=$ac_cv_prog_CC
2821if test -n "$CC"; then
2822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2823$as_echo "$CC" >&6; }
2824else
2825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2826$as_echo "no" >&6; }
2827fi
2828
2829
2830  fi
2831fi
2832if test -z "$CC"; then
2833  # Extract the first word of "cc", so it can be a program name with args.
2834set dummy cc; ac_word=$2
2835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2836$as_echo_n "checking for $ac_word... " >&6; }
2837if ${ac_cv_prog_CC+:} false; then :
2838  $as_echo_n "(cached) " >&6
2839else
2840  if test -n "$CC"; then
2841  ac_cv_prog_CC="$CC" # Let the user override the test.
2842else
2843  ac_prog_rejected=no
2844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845for as_dir in $PATH
2846do
2847  IFS=$as_save_IFS
2848  test -z "$as_dir" && as_dir=.
2849    for ac_exec_ext in '' $ac_executable_extensions; do
2850  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2851    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2852       ac_prog_rejected=yes
2853       continue
2854     fi
2855    ac_cv_prog_CC="cc"
2856    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2857    break 2
2858  fi
2859done
2860  done
2861IFS=$as_save_IFS
2862
2863if test $ac_prog_rejected = yes; then
2864  # We found a bogon in the path, so make sure we never use it.
2865  set dummy $ac_cv_prog_CC
2866  shift
2867  if test $# != 0; then
2868    # We chose a different compiler from the bogus one.
2869    # However, it has the same basename, so the bogon will be chosen
2870    # first if we set CC to just the basename; use the full file name.
2871    shift
2872    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2873  fi
2874fi
2875fi
2876fi
2877CC=$ac_cv_prog_CC
2878if test -n "$CC"; then
2879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2880$as_echo "$CC" >&6; }
2881else
2882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2883$as_echo "no" >&6; }
2884fi
2885
2886
2887fi
2888if test -z "$CC"; then
2889  if test -n "$ac_tool_prefix"; then
2890  for ac_prog in cl.exe
2891  do
2892    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2893set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2895$as_echo_n "checking for $ac_word... " >&6; }
2896if ${ac_cv_prog_CC+:} false; then :
2897  $as_echo_n "(cached) " >&6
2898else
2899  if test -n "$CC"; then
2900  ac_cv_prog_CC="$CC" # Let the user override the test.
2901else
2902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903for as_dir in $PATH
2904do
2905  IFS=$as_save_IFS
2906  test -z "$as_dir" && as_dir=.
2907    for ac_exec_ext in '' $ac_executable_extensions; do
2908  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2909    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2910    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2911    break 2
2912  fi
2913done
2914  done
2915IFS=$as_save_IFS
2916
2917fi
2918fi
2919CC=$ac_cv_prog_CC
2920if test -n "$CC"; then
2921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2922$as_echo "$CC" >&6; }
2923else
2924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925$as_echo "no" >&6; }
2926fi
2927
2928
2929    test -n "$CC" && break
2930  done
2931fi
2932if test -z "$CC"; then
2933  ac_ct_CC=$CC
2934  for ac_prog in cl.exe
2935do
2936  # Extract the first word of "$ac_prog", so it can be a program name with args.
2937set dummy $ac_prog; ac_word=$2
2938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2939$as_echo_n "checking for $ac_word... " >&6; }
2940if ${ac_cv_prog_ac_ct_CC+:} false; then :
2941  $as_echo_n "(cached) " >&6
2942else
2943  if test -n "$ac_ct_CC"; then
2944  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2945else
2946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947for as_dir in $PATH
2948do
2949  IFS=$as_save_IFS
2950  test -z "$as_dir" && as_dir=.
2951    for ac_exec_ext in '' $ac_executable_extensions; do
2952  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2953    ac_cv_prog_ac_ct_CC="$ac_prog"
2954    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2955    break 2
2956  fi
2957done
2958  done
2959IFS=$as_save_IFS
2960
2961fi
2962fi
2963ac_ct_CC=$ac_cv_prog_ac_ct_CC
2964if test -n "$ac_ct_CC"; then
2965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2966$as_echo "$ac_ct_CC" >&6; }
2967else
2968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2969$as_echo "no" >&6; }
2970fi
2971
2972
2973  test -n "$ac_ct_CC" && break
2974done
2975
2976  if test "x$ac_ct_CC" = x; then
2977    CC=""
2978  else
2979    case $cross_compiling:$ac_tool_warned in
2980yes:)
2981{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2982$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2983ac_tool_warned=yes ;;
2984esac
2985    CC=$ac_ct_CC
2986  fi
2987fi
2988
2989fi
2990
2991
2992test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2993$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2994as_fn_error $? "no acceptable C compiler found in \$PATH
2995See \`config.log' for more details" "$LINENO" 5; }
2996
2997# Provide some information about the compiler.
2998$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2999set X $ac_compile
3000ac_compiler=$2
3001for ac_option in --version -v -V -qversion; do
3002  { { ac_try="$ac_compiler $ac_option >&5"
3003case "(($ac_try" in
3004  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005  *) ac_try_echo=$ac_try;;
3006esac
3007eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3008$as_echo "$ac_try_echo"; } >&5
3009  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3010  ac_status=$?
3011  if test -s conftest.err; then
3012    sed '10a\
3013... rest of stderr output deleted ...
3014         10q' conftest.err >conftest.er1
3015    cat conftest.er1 >&5
3016  fi
3017  rm -f conftest.er1 conftest.err
3018  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3019  test $ac_status = 0; }
3020done
3021
3022cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3023/* end confdefs.h.  */
3024
3025int
3026main ()
3027{
3028
3029  ;
3030  return 0;
3031}
3032_ACEOF
3033ac_clean_files_save=$ac_clean_files
3034ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3035# Try to create an executable without -o first, disregard a.out.
3036# It will help us diagnose broken compilers, and finding out an intuition
3037# of exeext.
3038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3039$as_echo_n "checking whether the C compiler works... " >&6; }
3040ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3041
3042# The possible output files:
3043ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3044
3045ac_rmfiles=
3046for ac_file in $ac_files
3047do
3048  case $ac_file in
3049    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3050    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3051  esac
3052done
3053rm -f $ac_rmfiles
3054
3055if { { ac_try="$ac_link_default"
3056case "(($ac_try" in
3057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058  *) ac_try_echo=$ac_try;;
3059esac
3060eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3061$as_echo "$ac_try_echo"; } >&5
3062  (eval "$ac_link_default") 2>&5
3063  ac_status=$?
3064  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3065  test $ac_status = 0; }; then :
3066  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3067# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3068# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3069# so that the user can short-circuit this test for compilers unknown to
3070# Autoconf.
3071for ac_file in $ac_files ''
3072do
3073  test -f "$ac_file" || continue
3074  case $ac_file in
3075    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3076	;;
3077    [ab].out )
3078	# We found the default executable, but exeext='' is most
3079	# certainly right.
3080	break;;
3081    *.* )
3082	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3083	then :; else
3084	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3085	fi
3086	# We set ac_cv_exeext here because the later test for it is not
3087	# safe: cross compilers may not add the suffix if given an `-o'
3088	# argument, so we may need to know it at that point already.
3089	# Even if this section looks crufty: it has the advantage of
3090	# actually working.
3091	break;;
3092    * )
3093	break;;
3094  esac
3095done
3096test "$ac_cv_exeext" = no && ac_cv_exeext=
3097
3098else
3099  ac_file=''
3100fi
3101if test -z "$ac_file"; then :
3102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3103$as_echo "no" >&6; }
3104$as_echo "$as_me: failed program was:" >&5
3105sed 's/^/| /' conftest.$ac_ext >&5
3106
3107{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3108$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3109as_fn_error 77 "C compiler cannot create executables
3110See \`config.log' for more details" "$LINENO" 5; }
3111else
3112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3113$as_echo "yes" >&6; }
3114fi
3115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3116$as_echo_n "checking for C compiler default output file name... " >&6; }
3117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3118$as_echo "$ac_file" >&6; }
3119ac_exeext=$ac_cv_exeext
3120
3121rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3122ac_clean_files=$ac_clean_files_save
3123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3124$as_echo_n "checking for suffix of executables... " >&6; }
3125if { { ac_try="$ac_link"
3126case "(($ac_try" in
3127  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128  *) ac_try_echo=$ac_try;;
3129esac
3130eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3131$as_echo "$ac_try_echo"; } >&5
3132  (eval "$ac_link") 2>&5
3133  ac_status=$?
3134  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3135  test $ac_status = 0; }; then :
3136  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3137# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3138# work properly (i.e., refer to `conftest.exe'), while it won't with
3139# `rm'.
3140for ac_file in conftest.exe conftest conftest.*; do
3141  test -f "$ac_file" || continue
3142  case $ac_file in
3143    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3144    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3145	  break;;
3146    * ) break;;
3147  esac
3148done
3149else
3150  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3151$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3152as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3153See \`config.log' for more details" "$LINENO" 5; }
3154fi
3155rm -f conftest conftest$ac_cv_exeext
3156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3157$as_echo "$ac_cv_exeext" >&6; }
3158
3159rm -f conftest.$ac_ext
3160EXEEXT=$ac_cv_exeext
3161ac_exeext=$EXEEXT
3162cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3163/* end confdefs.h.  */
3164#include <stdio.h>
3165int
3166main ()
3167{
3168FILE *f = fopen ("conftest.out", "w");
3169 return ferror (f) || fclose (f) != 0;
3170
3171  ;
3172  return 0;
3173}
3174_ACEOF
3175ac_clean_files="$ac_clean_files conftest.out"
3176# Check that the compiler produces executables we can run.  If not, either
3177# the compiler is broken, or we cross compile.
3178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3179$as_echo_n "checking whether we are cross compiling... " >&6; }
3180if test "$cross_compiling" != yes; then
3181  { { ac_try="$ac_link"
3182case "(($ac_try" in
3183  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184  *) ac_try_echo=$ac_try;;
3185esac
3186eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3187$as_echo "$ac_try_echo"; } >&5
3188  (eval "$ac_link") 2>&5
3189  ac_status=$?
3190  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3191  test $ac_status = 0; }
3192  if { ac_try='./conftest$ac_cv_exeext'
3193  { { case "(($ac_try" in
3194  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195  *) ac_try_echo=$ac_try;;
3196esac
3197eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3198$as_echo "$ac_try_echo"; } >&5
3199  (eval "$ac_try") 2>&5
3200  ac_status=$?
3201  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3202  test $ac_status = 0; }; }; then
3203    cross_compiling=no
3204  else
3205    if test "$cross_compiling" = maybe; then
3206	cross_compiling=yes
3207    else
3208	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3209$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3210as_fn_error $? "cannot run C compiled programs.
3211If you meant to cross compile, use \`--host'.
3212See \`config.log' for more details" "$LINENO" 5; }
3213    fi
3214  fi
3215fi
3216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3217$as_echo "$cross_compiling" >&6; }
3218
3219rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3220ac_clean_files=$ac_clean_files_save
3221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3222$as_echo_n "checking for suffix of object files... " >&6; }
3223if ${ac_cv_objext+:} false; then :
3224  $as_echo_n "(cached) " >&6
3225else
3226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3227/* end confdefs.h.  */
3228
3229int
3230main ()
3231{
3232
3233  ;
3234  return 0;
3235}
3236_ACEOF
3237rm -f conftest.o conftest.obj
3238if { { ac_try="$ac_compile"
3239case "(($ac_try" in
3240  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241  *) ac_try_echo=$ac_try;;
3242esac
3243eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3244$as_echo "$ac_try_echo"; } >&5
3245  (eval "$ac_compile") 2>&5
3246  ac_status=$?
3247  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3248  test $ac_status = 0; }; then :
3249  for ac_file in conftest.o conftest.obj conftest.*; do
3250  test -f "$ac_file" || continue;
3251  case $ac_file in
3252    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3253    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3254       break;;
3255  esac
3256done
3257else
3258  $as_echo "$as_me: failed program was:" >&5
3259sed 's/^/| /' conftest.$ac_ext >&5
3260
3261{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3262$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3263as_fn_error $? "cannot compute suffix of object files: cannot compile
3264See \`config.log' for more details" "$LINENO" 5; }
3265fi
3266rm -f conftest.$ac_cv_objext conftest.$ac_ext
3267fi
3268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3269$as_echo "$ac_cv_objext" >&6; }
3270OBJEXT=$ac_cv_objext
3271ac_objext=$OBJEXT
3272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3273$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3274if ${ac_cv_c_compiler_gnu+:} false; then :
3275  $as_echo_n "(cached) " >&6
3276else
3277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3278/* end confdefs.h.  */
3279
3280int
3281main ()
3282{
3283#ifndef __GNUC__
3284       choke me
3285#endif
3286
3287  ;
3288  return 0;
3289}
3290_ACEOF
3291if ac_fn_c_try_compile "$LINENO"; then :
3292  ac_compiler_gnu=yes
3293else
3294  ac_compiler_gnu=no
3295fi
3296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3297ac_cv_c_compiler_gnu=$ac_compiler_gnu
3298
3299fi
3300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3301$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3302if test $ac_compiler_gnu = yes; then
3303  GCC=yes
3304else
3305  GCC=
3306fi
3307ac_test_CFLAGS=${CFLAGS+set}
3308ac_save_CFLAGS=$CFLAGS
3309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3310$as_echo_n "checking whether $CC accepts -g... " >&6; }
3311if ${ac_cv_prog_cc_g+:} false; then :
3312  $as_echo_n "(cached) " >&6
3313else
3314  ac_save_c_werror_flag=$ac_c_werror_flag
3315   ac_c_werror_flag=yes
3316   ac_cv_prog_cc_g=no
3317   CFLAGS="-g"
3318   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3319/* end confdefs.h.  */
3320
3321int
3322main ()
3323{
3324
3325  ;
3326  return 0;
3327}
3328_ACEOF
3329if ac_fn_c_try_compile "$LINENO"; then :
3330  ac_cv_prog_cc_g=yes
3331else
3332  CFLAGS=""
3333      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3334/* end confdefs.h.  */
3335
3336int
3337main ()
3338{
3339
3340  ;
3341  return 0;
3342}
3343_ACEOF
3344if ac_fn_c_try_compile "$LINENO"; then :
3345
3346else
3347  ac_c_werror_flag=$ac_save_c_werror_flag
3348	 CFLAGS="-g"
3349	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350/* end confdefs.h.  */
3351
3352int
3353main ()
3354{
3355
3356  ;
3357  return 0;
3358}
3359_ACEOF
3360if ac_fn_c_try_compile "$LINENO"; then :
3361  ac_cv_prog_cc_g=yes
3362fi
3363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3364fi
3365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3366fi
3367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3368   ac_c_werror_flag=$ac_save_c_werror_flag
3369fi
3370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3371$as_echo "$ac_cv_prog_cc_g" >&6; }
3372if test "$ac_test_CFLAGS" = set; then
3373  CFLAGS=$ac_save_CFLAGS
3374elif test $ac_cv_prog_cc_g = yes; then
3375  if test "$GCC" = yes; then
3376    CFLAGS="-g -O2"
3377  else
3378    CFLAGS="-g"
3379  fi
3380else
3381  if test "$GCC" = yes; then
3382    CFLAGS="-O2"
3383  else
3384    CFLAGS=
3385  fi
3386fi
3387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3388$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3389if ${ac_cv_prog_cc_c89+:} false; then :
3390  $as_echo_n "(cached) " >&6
3391else
3392  ac_cv_prog_cc_c89=no
3393ac_save_CC=$CC
3394cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3395/* end confdefs.h.  */
3396#include <stdarg.h>
3397#include <stdio.h>
3398#include <sys/types.h>
3399#include <sys/stat.h>
3400/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3401struct buf { int x; };
3402FILE * (*rcsopen) (struct buf *, struct stat *, int);
3403static char *e (p, i)
3404     char **p;
3405     int i;
3406{
3407  return p[i];
3408}
3409static char *f (char * (*g) (char **, int), char **p, ...)
3410{
3411  char *s;
3412  va_list v;
3413  va_start (v,p);
3414  s = g (p, va_arg (v,int));
3415  va_end (v);
3416  return s;
3417}
3418
3419/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3420   function prototypes and stuff, but not '\xHH' hex character constants.
3421   These don't provoke an error unfortunately, instead are silently treated
3422   as 'x'.  The following induces an error, until -std is added to get
3423   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3424   array size at least.  It's necessary to write '\x00'==0 to get something
3425   that's true only with -std.  */
3426int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3427
3428/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3429   inside strings and character constants.  */
3430#define FOO(x) 'x'
3431int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3432
3433int test (int i, double x);
3434struct s1 {int (*f) (int a);};
3435struct s2 {int (*f) (double a);};
3436int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3437int argc;
3438char **argv;
3439int
3440main ()
3441{
3442return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3443  ;
3444  return 0;
3445}
3446_ACEOF
3447for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3448	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3449do
3450  CC="$ac_save_CC $ac_arg"
3451  if ac_fn_c_try_compile "$LINENO"; then :
3452  ac_cv_prog_cc_c89=$ac_arg
3453fi
3454rm -f core conftest.err conftest.$ac_objext
3455  test "x$ac_cv_prog_cc_c89" != "xno" && break
3456done
3457rm -f conftest.$ac_ext
3458CC=$ac_save_CC
3459
3460fi
3461# AC_CACHE_VAL
3462case "x$ac_cv_prog_cc_c89" in
3463  x)
3464    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3465$as_echo "none needed" >&6; } ;;
3466  xno)
3467    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3468$as_echo "unsupported" >&6; } ;;
3469  *)
3470    CC="$CC $ac_cv_prog_cc_c89"
3471    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3472$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3473esac
3474if test "x$ac_cv_prog_cc_c89" != xno; then :
3475
3476fi
3477
3478ac_ext=c
3479ac_cpp='$CPP $CPPFLAGS'
3480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3482ac_compiler_gnu=$ac_cv_c_compiler_gnu
3483
3484depcc="$CC"   am_compiler_list=
3485
3486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3487$as_echo_n "checking dependency style of $depcc... " >&6; }
3488if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3489  $as_echo_n "(cached) " >&6
3490else
3491  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3492  # We make a subdir and do the tests there.  Otherwise we can end up
3493  # making bogus files that we don't know about and never remove.  For
3494  # instance it was reported that on HP-UX the gcc test will end up
3495  # making a dummy file named `D' -- because `-MD' means `put the output
3496  # in D'.
3497  rm -rf conftest.dir
3498  mkdir conftest.dir
3499  # Copy depcomp to subdir because otherwise we won't find it if we're
3500  # using a relative directory.
3501  cp "$am_depcomp" conftest.dir
3502  cd conftest.dir
3503  # We will build objects and dependencies in a subdirectory because
3504  # it helps to detect inapplicable dependency modes.  For instance
3505  # both Tru64's cc and ICC support -MD to output dependencies as a
3506  # side effect of compilation, but ICC will put the dependencies in
3507  # the current directory while Tru64 will put them in the object
3508  # directory.
3509  mkdir sub
3510
3511  am_cv_CC_dependencies_compiler_type=none
3512  if test "$am_compiler_list" = ""; then
3513     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3514  fi
3515  am__universal=false
3516  case " $depcc " in #(
3517     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3518     esac
3519
3520  for depmode in $am_compiler_list; do
3521    # Setup a source with many dependencies, because some compilers
3522    # like to wrap large dependency lists on column 80 (with \), and
3523    # we should not choose a depcomp mode which is confused by this.
3524    #
3525    # We need to recreate these files for each test, as the compiler may
3526    # overwrite some of them when testing with obscure command lines.
3527    # This happens at least with the AIX C compiler.
3528    : > sub/conftest.c
3529    for i in 1 2 3 4 5 6; do
3530      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3531      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3532      # Solaris 8's {/usr,}/bin/sh.
3533      touch sub/conftst$i.h
3534    done
3535    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3536
3537    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3538    # mode.  It turns out that the SunPro C++ compiler does not properly
3539    # handle `-M -o', and we need to detect this.  Also, some Intel
3540    # versions had trouble with output in subdirs
3541    am__obj=sub/conftest.${OBJEXT-o}
3542    am__minus_obj="-o $am__obj"
3543    case $depmode in
3544    gcc)
3545      # This depmode causes a compiler race in universal mode.
3546      test "$am__universal" = false || continue
3547      ;;
3548    nosideeffect)
3549      # after this tag, mechanisms are not by side-effect, so they'll
3550      # only be used when explicitly requested
3551      if test "x$enable_dependency_tracking" = xyes; then
3552	continue
3553      else
3554	break
3555      fi
3556      ;;
3557    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3558      # This compiler won't grok `-c -o', but also, the minuso test has
3559      # not run yet.  These depmodes are late enough in the game, and
3560      # so weak that their functioning should not be impacted.
3561      am__obj=conftest.${OBJEXT-o}
3562      am__minus_obj=
3563      ;;
3564    none) break ;;
3565    esac
3566    if depmode=$depmode \
3567       source=sub/conftest.c object=$am__obj \
3568       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3569       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3570         >/dev/null 2>conftest.err &&
3571       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3572       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3573       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3574       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3575      # icc doesn't choke on unknown options, it will just issue warnings
3576      # or remarks (even with -Werror).  So we grep stderr for any message
3577      # that says an option was ignored or not supported.
3578      # When given -MP, icc 7.0 and 7.1 complain thusly:
3579      #   icc: Command line warning: ignoring option '-M'; no argument required
3580      # The diagnosis changed in icc 8.0:
3581      #   icc: Command line remark: option '-MP' not supported
3582      if (grep 'ignoring option' conftest.err ||
3583          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3584        am_cv_CC_dependencies_compiler_type=$depmode
3585        break
3586      fi
3587    fi
3588  done
3589
3590  cd ..
3591  rm -rf conftest.dir
3592else
3593  am_cv_CC_dependencies_compiler_type=none
3594fi
3595
3596fi
3597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3598$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3599CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3600
3601 if
3602  test "x$enable_dependency_tracking" != xno \
3603  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3604  am__fastdepCC_TRUE=
3605  am__fastdepCC_FALSE='#'
3606else
3607  am__fastdepCC_TRUE='#'
3608  am__fastdepCC_FALSE=
3609fi
3610
3611
3612   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3613$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3614if ${ac_cv_prog_cc_c99+:} false; then :
3615  $as_echo_n "(cached) " >&6
3616else
3617  ac_cv_prog_cc_c99=no
3618ac_save_CC=$CC
3619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620/* end confdefs.h.  */
3621#include <stdarg.h>
3622#include <stdbool.h>
3623#include <stdlib.h>
3624#include <wchar.h>
3625#include <stdio.h>
3626
3627// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3628#define debug(...) fprintf (stderr, __VA_ARGS__)
3629#define showlist(...) puts (#__VA_ARGS__)
3630#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3631static void
3632test_varargs_macros (void)
3633{
3634  int x = 1234;
3635  int y = 5678;
3636  debug ("Flag");
3637  debug ("X = %d\n", x);
3638  showlist (The first, second, and third items.);
3639  report (x>y, "x is %d but y is %d", x, y);
3640}
3641
3642// Check long long types.
3643#define BIG64 18446744073709551615ull
3644#define BIG32 4294967295ul
3645#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3646#if !BIG_OK
3647  your preprocessor is broken;
3648#endif
3649#if BIG_OK
3650#else
3651  your preprocessor is broken;
3652#endif
3653static long long int bignum = -9223372036854775807LL;
3654static unsigned long long int ubignum = BIG64;
3655
3656struct incomplete_array
3657{
3658  int datasize;
3659  double data[];
3660};
3661
3662struct named_init {
3663  int number;
3664  const wchar_t *name;
3665  double average;
3666};
3667
3668typedef const char *ccp;
3669
3670static inline int
3671test_restrict (ccp restrict text)
3672{
3673  // See if C++-style comments work.
3674  // Iterate through items via the restricted pointer.
3675  // Also check for declarations in for loops.
3676  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3677    continue;
3678  return 0;
3679}
3680
3681// Check varargs and va_copy.
3682static void
3683test_varargs (const char *format, ...)
3684{
3685  va_list args;
3686  va_start (args, format);
3687  va_list args_copy;
3688  va_copy (args_copy, args);
3689
3690  const char *str;
3691  int number;
3692  float fnumber;
3693
3694  while (*format)
3695    {
3696      switch (*format++)
3697	{
3698	case 's': // string
3699	  str = va_arg (args_copy, const char *);
3700	  break;
3701	case 'd': // int
3702	  number = va_arg (args_copy, int);
3703	  break;
3704	case 'f': // float
3705	  fnumber = va_arg (args_copy, double);
3706	  break;
3707	default:
3708	  break;
3709	}
3710    }
3711  va_end (args_copy);
3712  va_end (args);
3713}
3714
3715int
3716main ()
3717{
3718
3719  // Check bool.
3720  _Bool success = false;
3721
3722  // Check restrict.
3723  if (test_restrict ("String literal") == 0)
3724    success = true;
3725  char *restrict newvar = "Another string";
3726
3727  // Check varargs.
3728  test_varargs ("s, d' f .", "string", 65, 34.234);
3729  test_varargs_macros ();
3730
3731  // Check flexible array members.
3732  struct incomplete_array *ia =
3733    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3734  ia->datasize = 10;
3735  for (int i = 0; i < ia->datasize; ++i)
3736    ia->data[i] = i * 1.234;
3737
3738  // Check named initializers.
3739  struct named_init ni = {
3740    .number = 34,
3741    .name = L"Test wide string",
3742    .average = 543.34343,
3743  };
3744
3745  ni.number = 58;
3746
3747  int dynamic_array[ni.number];
3748  dynamic_array[ni.number - 1] = 543;
3749
3750  // work around unused variable warnings
3751  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3752	  || dynamic_array[ni.number - 1] != 543);
3753
3754  ;
3755  return 0;
3756}
3757_ACEOF
3758for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3759do
3760  CC="$ac_save_CC $ac_arg"
3761  if ac_fn_c_try_compile "$LINENO"; then :
3762  ac_cv_prog_cc_c99=$ac_arg
3763fi
3764rm -f core conftest.err conftest.$ac_objext
3765  test "x$ac_cv_prog_cc_c99" != "xno" && break
3766done
3767rm -f conftest.$ac_ext
3768CC=$ac_save_CC
3769
3770fi
3771# AC_CACHE_VAL
3772case "x$ac_cv_prog_cc_c99" in
3773  x)
3774    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3775$as_echo "none needed" >&6; } ;;
3776  xno)
3777    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3778$as_echo "unsupported" >&6; } ;;
3779  *)
3780    CC="$CC $ac_cv_prog_cc_c99"
3781    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3782$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3783esac
3784if test "x$ac_cv_prog_cc_c99" != xno; then :
3785
3786fi
3787
3788
3789
3790ac_ext=c
3791ac_cpp='$CPP $CPPFLAGS'
3792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3794ac_compiler_gnu=$ac_cv_c_compiler_gnu
3795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3796$as_echo_n "checking how to run the C preprocessor... " >&6; }
3797# On Suns, sometimes $CPP names a directory.
3798if test -n "$CPP" && test -d "$CPP"; then
3799  CPP=
3800fi
3801if test -z "$CPP"; then
3802  if ${ac_cv_prog_CPP+:} false; then :
3803  $as_echo_n "(cached) " >&6
3804else
3805      # Double quotes because CPP needs to be expanded
3806    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3807    do
3808      ac_preproc_ok=false
3809for ac_c_preproc_warn_flag in '' yes
3810do
3811  # Use a header file that comes with gcc, so configuring glibc
3812  # with a fresh cross-compiler works.
3813  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3814  # <limits.h> exists even on freestanding compilers.
3815  # On the NeXT, cc -E runs the code through the compiler's parser,
3816  # not just through cpp. "Syntax error" is here to catch this case.
3817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818/* end confdefs.h.  */
3819#ifdef __STDC__
3820# include <limits.h>
3821#else
3822# include <assert.h>
3823#endif
3824		     Syntax error
3825_ACEOF
3826if ac_fn_c_try_cpp "$LINENO"; then :
3827
3828else
3829  # Broken: fails on valid input.
3830continue
3831fi
3832rm -f conftest.err conftest.i conftest.$ac_ext
3833
3834  # OK, works on sane cases.  Now check whether nonexistent headers
3835  # can be detected and how.
3836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837/* end confdefs.h.  */
3838#include <ac_nonexistent.h>
3839_ACEOF
3840if ac_fn_c_try_cpp "$LINENO"; then :
3841  # Broken: success on invalid input.
3842continue
3843else
3844  # Passes both tests.
3845ac_preproc_ok=:
3846break
3847fi
3848rm -f conftest.err conftest.i conftest.$ac_ext
3849
3850done
3851# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3852rm -f conftest.i conftest.err conftest.$ac_ext
3853if $ac_preproc_ok; then :
3854  break
3855fi
3856
3857    done
3858    ac_cv_prog_CPP=$CPP
3859
3860fi
3861  CPP=$ac_cv_prog_CPP
3862else
3863  ac_cv_prog_CPP=$CPP
3864fi
3865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3866$as_echo "$CPP" >&6; }
3867ac_preproc_ok=false
3868for ac_c_preproc_warn_flag in '' yes
3869do
3870  # Use a header file that comes with gcc, so configuring glibc
3871  # with a fresh cross-compiler works.
3872  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3873  # <limits.h> exists even on freestanding compilers.
3874  # On the NeXT, cc -E runs the code through the compiler's parser,
3875  # not just through cpp. "Syntax error" is here to catch this case.
3876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877/* end confdefs.h.  */
3878#ifdef __STDC__
3879# include <limits.h>
3880#else
3881# include <assert.h>
3882#endif
3883		     Syntax error
3884_ACEOF
3885if ac_fn_c_try_cpp "$LINENO"; then :
3886
3887else
3888  # Broken: fails on valid input.
3889continue
3890fi
3891rm -f conftest.err conftest.i conftest.$ac_ext
3892
3893  # OK, works on sane cases.  Now check whether nonexistent headers
3894  # can be detected and how.
3895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896/* end confdefs.h.  */
3897#include <ac_nonexistent.h>
3898_ACEOF
3899if ac_fn_c_try_cpp "$LINENO"; then :
3900  # Broken: success on invalid input.
3901continue
3902else
3903  # Passes both tests.
3904ac_preproc_ok=:
3905break
3906fi
3907rm -f conftest.err conftest.i conftest.$ac_ext
3908
3909done
3910# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3911rm -f conftest.i conftest.err conftest.$ac_ext
3912if $ac_preproc_ok; then :
3913
3914else
3915  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3916$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3917as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3918See \`config.log' for more details" "$LINENO" 5; }
3919fi
3920
3921ac_ext=c
3922ac_cpp='$CPP $CPPFLAGS'
3923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3925ac_compiler_gnu=$ac_cv_c_compiler_gnu
3926
3927
3928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3929$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3930if ${ac_cv_path_GREP+:} false; then :
3931  $as_echo_n "(cached) " >&6
3932else
3933  if test -z "$GREP"; then
3934  ac_path_GREP_found=false
3935  # Loop through the user's path and test for each of PROGNAME-LIST
3936  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3938do
3939  IFS=$as_save_IFS
3940  test -z "$as_dir" && as_dir=.
3941    for ac_prog in grep ggrep; do
3942    for ac_exec_ext in '' $ac_executable_extensions; do
3943      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3944      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3945# Check for GNU ac_path_GREP and select it if it is found.
3946  # Check for GNU $ac_path_GREP
3947case `"$ac_path_GREP" --version 2>&1` in
3948*GNU*)
3949  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3950*)
3951  ac_count=0
3952  $as_echo_n 0123456789 >"conftest.in"
3953  while :
3954  do
3955    cat "conftest.in" "conftest.in" >"conftest.tmp"
3956    mv "conftest.tmp" "conftest.in"
3957    cp "conftest.in" "conftest.nl"
3958    $as_echo 'GREP' >> "conftest.nl"
3959    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3960    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3961    as_fn_arith $ac_count + 1 && ac_count=$as_val
3962    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3963      # Best one so far, save it but keep looking for a better one
3964      ac_cv_path_GREP="$ac_path_GREP"
3965      ac_path_GREP_max=$ac_count
3966    fi
3967    # 10*(2^10) chars as input seems more than enough
3968    test $ac_count -gt 10 && break
3969  done
3970  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3971esac
3972
3973      $ac_path_GREP_found && break 3
3974    done
3975  done
3976  done
3977IFS=$as_save_IFS
3978  if test -z "$ac_cv_path_GREP"; then
3979    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3980  fi
3981else
3982  ac_cv_path_GREP=$GREP
3983fi
3984
3985fi
3986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3987$as_echo "$ac_cv_path_GREP" >&6; }
3988 GREP="$ac_cv_path_GREP"
3989
3990
3991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3992$as_echo_n "checking for egrep... " >&6; }
3993if ${ac_cv_path_EGREP+:} false; then :
3994  $as_echo_n "(cached) " >&6
3995else
3996  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3997   then ac_cv_path_EGREP="$GREP -E"
3998   else
3999     if test -z "$EGREP"; then
4000  ac_path_EGREP_found=false
4001  # Loop through the user's path and test for each of PROGNAME-LIST
4002  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4004do
4005  IFS=$as_save_IFS
4006  test -z "$as_dir" && as_dir=.
4007    for ac_prog in egrep; do
4008    for ac_exec_ext in '' $ac_executable_extensions; do
4009      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4010      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4011# Check for GNU ac_path_EGREP and select it if it is found.
4012  # Check for GNU $ac_path_EGREP
4013case `"$ac_path_EGREP" --version 2>&1` in
4014*GNU*)
4015  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4016*)
4017  ac_count=0
4018  $as_echo_n 0123456789 >"conftest.in"
4019  while :
4020  do
4021    cat "conftest.in" "conftest.in" >"conftest.tmp"
4022    mv "conftest.tmp" "conftest.in"
4023    cp "conftest.in" "conftest.nl"
4024    $as_echo 'EGREP' >> "conftest.nl"
4025    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4026    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4027    as_fn_arith $ac_count + 1 && ac_count=$as_val
4028    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4029      # Best one so far, save it but keep looking for a better one
4030      ac_cv_path_EGREP="$ac_path_EGREP"
4031      ac_path_EGREP_max=$ac_count
4032    fi
4033    # 10*(2^10) chars as input seems more than enough
4034    test $ac_count -gt 10 && break
4035  done
4036  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4037esac
4038
4039      $ac_path_EGREP_found && break 3
4040    done
4041  done
4042  done
4043IFS=$as_save_IFS
4044  if test -z "$ac_cv_path_EGREP"; then
4045    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4046  fi
4047else
4048  ac_cv_path_EGREP=$EGREP
4049fi
4050
4051   fi
4052fi
4053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4054$as_echo "$ac_cv_path_EGREP" >&6; }
4055 EGREP="$ac_cv_path_EGREP"
4056
4057
4058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4059$as_echo_n "checking for ANSI C header files... " >&6; }
4060if ${ac_cv_header_stdc+:} false; then :
4061  $as_echo_n "(cached) " >&6
4062else
4063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064/* end confdefs.h.  */
4065#include <stdlib.h>
4066#include <stdarg.h>
4067#include <string.h>
4068#include <float.h>
4069
4070int
4071main ()
4072{
4073
4074  ;
4075  return 0;
4076}
4077_ACEOF
4078if ac_fn_c_try_compile "$LINENO"; then :
4079  ac_cv_header_stdc=yes
4080else
4081  ac_cv_header_stdc=no
4082fi
4083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4084
4085if test $ac_cv_header_stdc = yes; then
4086  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088/* end confdefs.h.  */
4089#include <string.h>
4090
4091_ACEOF
4092if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4093  $EGREP "memchr" >/dev/null 2>&1; then :
4094
4095else
4096  ac_cv_header_stdc=no
4097fi
4098rm -f conftest*
4099
4100fi
4101
4102if test $ac_cv_header_stdc = yes; then
4103  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105/* end confdefs.h.  */
4106#include <stdlib.h>
4107
4108_ACEOF
4109if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4110  $EGREP "free" >/dev/null 2>&1; then :
4111
4112else
4113  ac_cv_header_stdc=no
4114fi
4115rm -f conftest*
4116
4117fi
4118
4119if test $ac_cv_header_stdc = yes; then
4120  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4121  if test "$cross_compiling" = yes; then :
4122  :
4123else
4124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125/* end confdefs.h.  */
4126#include <ctype.h>
4127#include <stdlib.h>
4128#if ((' ' & 0x0FF) == 0x020)
4129# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4130# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4131#else
4132# define ISLOWER(c) \
4133		   (('a' <= (c) && (c) <= 'i') \
4134		     || ('j' <= (c) && (c) <= 'r') \
4135		     || ('s' <= (c) && (c) <= 'z'))
4136# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4137#endif
4138
4139#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4140int
4141main ()
4142{
4143  int i;
4144  for (i = 0; i < 256; i++)
4145    if (XOR (islower (i), ISLOWER (i))
4146	|| toupper (i) != TOUPPER (i))
4147      return 2;
4148  return 0;
4149}
4150_ACEOF
4151if ac_fn_c_try_run "$LINENO"; then :
4152
4153else
4154  ac_cv_header_stdc=no
4155fi
4156rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4157  conftest.$ac_objext conftest.beam conftest.$ac_ext
4158fi
4159
4160fi
4161fi
4162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4163$as_echo "$ac_cv_header_stdc" >&6; }
4164if test $ac_cv_header_stdc = yes; then
4165
4166$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4167
4168fi
4169
4170# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4171for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4172		  inttypes.h stdint.h unistd.h
4173do :
4174  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4175ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4176"
4177if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4178  cat >>confdefs.h <<_ACEOF
4179#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4180_ACEOF
4181
4182fi
4183
4184done
4185
4186
4187
4188
4189
4190
4191ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4192if test "x$ac_cv_have_decl___clang__" = xyes; then :
4193  CLANGCC="yes"
4194else
4195  CLANGCC="no"
4196fi
4197
4198ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4199if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4200  INTELCC="yes"
4201else
4202  INTELCC="no"
4203fi
4204
4205ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4206if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4207  SUNCC="yes"
4208else
4209  SUNCC="no"
4210fi
4211
4212
4213
4214
4215if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4216	if test -n "$ac_tool_prefix"; then
4217  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4218set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4220$as_echo_n "checking for $ac_word... " >&6; }
4221if ${ac_cv_path_PKG_CONFIG+:} false; then :
4222  $as_echo_n "(cached) " >&6
4223else
4224  case $PKG_CONFIG in
4225  [\\/]* | ?:[\\/]*)
4226  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4227  ;;
4228  *)
4229  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4230for as_dir in $PATH
4231do
4232  IFS=$as_save_IFS
4233  test -z "$as_dir" && as_dir=.
4234    for ac_exec_ext in '' $ac_executable_extensions; do
4235  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4236    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4237    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4238    break 2
4239  fi
4240done
4241  done
4242IFS=$as_save_IFS
4243
4244  ;;
4245esac
4246fi
4247PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4248if test -n "$PKG_CONFIG"; then
4249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4250$as_echo "$PKG_CONFIG" >&6; }
4251else
4252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4253$as_echo "no" >&6; }
4254fi
4255
4256
4257fi
4258if test -z "$ac_cv_path_PKG_CONFIG"; then
4259  ac_pt_PKG_CONFIG=$PKG_CONFIG
4260  # Extract the first word of "pkg-config", so it can be a program name with args.
4261set dummy pkg-config; ac_word=$2
4262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4263$as_echo_n "checking for $ac_word... " >&6; }
4264if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4265  $as_echo_n "(cached) " >&6
4266else
4267  case $ac_pt_PKG_CONFIG in
4268  [\\/]* | ?:[\\/]*)
4269  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4270  ;;
4271  *)
4272  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273for as_dir in $PATH
4274do
4275  IFS=$as_save_IFS
4276  test -z "$as_dir" && as_dir=.
4277    for ac_exec_ext in '' $ac_executable_extensions; do
4278  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4279    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4280    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4281    break 2
4282  fi
4283done
4284  done
4285IFS=$as_save_IFS
4286
4287  ;;
4288esac
4289fi
4290ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4291if test -n "$ac_pt_PKG_CONFIG"; then
4292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4293$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4294else
4295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4296$as_echo "no" >&6; }
4297fi
4298
4299  if test "x$ac_pt_PKG_CONFIG" = x; then
4300    PKG_CONFIG=""
4301  else
4302    case $cross_compiling:$ac_tool_warned in
4303yes:)
4304{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4305$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4306ac_tool_warned=yes ;;
4307esac
4308    PKG_CONFIG=$ac_pt_PKG_CONFIG
4309  fi
4310else
4311  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4312fi
4313
4314fi
4315if test -n "$PKG_CONFIG"; then
4316	_pkg_min_version=0.9.0
4317	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4318$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4319	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4320		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4321$as_echo "yes" >&6; }
4322	else
4323		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4324$as_echo "no" >&6; }
4325		PKG_CONFIG=""
4326	fi
4327
4328fi
4329# Make sure we can run config.sub.
4330$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4331  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4332
4333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4334$as_echo_n "checking build system type... " >&6; }
4335if ${ac_cv_build+:} false; then :
4336  $as_echo_n "(cached) " >&6
4337else
4338  ac_build_alias=$build_alias
4339test "x$ac_build_alias" = x &&
4340  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4341test "x$ac_build_alias" = x &&
4342  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4343ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4344  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4345
4346fi
4347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4348$as_echo "$ac_cv_build" >&6; }
4349case $ac_cv_build in
4350*-*-*) ;;
4351*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4352esac
4353build=$ac_cv_build
4354ac_save_IFS=$IFS; IFS='-'
4355set x $ac_cv_build
4356shift
4357build_cpu=$1
4358build_vendor=$2
4359shift; shift
4360# Remember, the first character of IFS is used to create $*,
4361# except with old shells:
4362build_os=$*
4363IFS=$ac_save_IFS
4364case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4365
4366
4367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4368$as_echo_n "checking host system type... " >&6; }
4369if ${ac_cv_host+:} false; then :
4370  $as_echo_n "(cached) " >&6
4371else
4372  if test "x$host_alias" = x; then
4373  ac_cv_host=$ac_cv_build
4374else
4375  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4376    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4377fi
4378
4379fi
4380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4381$as_echo "$ac_cv_host" >&6; }
4382case $ac_cv_host in
4383*-*-*) ;;
4384*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4385esac
4386host=$ac_cv_host
4387ac_save_IFS=$IFS; IFS='-'
4388set x $ac_cv_host
4389shift
4390host_cpu=$1
4391host_vendor=$2
4392shift; shift
4393# Remember, the first character of IFS is used to create $*,
4394# except with old shells:
4395host_os=$*
4396IFS=$ac_save_IFS
4397case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4398
4399
4400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4401$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4402if ${ac_cv_path_SED+:} false; then :
4403  $as_echo_n "(cached) " >&6
4404else
4405            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4406     for ac_i in 1 2 3 4 5 6 7; do
4407       ac_script="$ac_script$as_nl$ac_script"
4408     done
4409     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4410     { ac_script=; unset ac_script;}
4411     if test -z "$SED"; then
4412  ac_path_SED_found=false
4413  # Loop through the user's path and test for each of PROGNAME-LIST
4414  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415for as_dir in $PATH
4416do
4417  IFS=$as_save_IFS
4418  test -z "$as_dir" && as_dir=.
4419    for ac_prog in sed gsed; do
4420    for ac_exec_ext in '' $ac_executable_extensions; do
4421      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4422      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4423# Check for GNU ac_path_SED and select it if it is found.
4424  # Check for GNU $ac_path_SED
4425case `"$ac_path_SED" --version 2>&1` in
4426*GNU*)
4427  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4428*)
4429  ac_count=0
4430  $as_echo_n 0123456789 >"conftest.in"
4431  while :
4432  do
4433    cat "conftest.in" "conftest.in" >"conftest.tmp"
4434    mv "conftest.tmp" "conftest.in"
4435    cp "conftest.in" "conftest.nl"
4436    $as_echo '' >> "conftest.nl"
4437    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4438    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4439    as_fn_arith $ac_count + 1 && ac_count=$as_val
4440    if test $ac_count -gt ${ac_path_SED_max-0}; then
4441      # Best one so far, save it but keep looking for a better one
4442      ac_cv_path_SED="$ac_path_SED"
4443      ac_path_SED_max=$ac_count
4444    fi
4445    # 10*(2^10) chars as input seems more than enough
4446    test $ac_count -gt 10 && break
4447  done
4448  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4449esac
4450
4451      $ac_path_SED_found && break 3
4452    done
4453  done
4454  done
4455IFS=$as_save_IFS
4456  if test -z "$ac_cv_path_SED"; then
4457    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4458  fi
4459else
4460  ac_cv_path_SED=$SED
4461fi
4462
4463fi
4464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4465$as_echo "$ac_cv_path_SED" >&6; }
4466 SED="$ac_cv_path_SED"
4467  rm -f conftest.sed
4468
4469
4470
4471
4472
4473
4474# Check whether --enable-selective-werror was given.
4475if test "${enable_selective_werror+set}" = set; then :
4476  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4477else
4478  SELECTIVE_WERROR=yes
4479fi
4480
4481
4482
4483
4484
4485# -v is too short to test reliably with XORG_TESTSET_CFLAG
4486if test "x$SUNCC" = "xyes"; then
4487    BASE_CFLAGS="-v"
4488else
4489    BASE_CFLAGS=""
4490fi
4491
4492# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506xorg_testset_save_CFLAGS="$CFLAGS"
4507
4508if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4509	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4510	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4511$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4512if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4513  $as_echo_n "(cached) " >&6
4514else
4515  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4516/* end confdefs.h.  */
4517int i;
4518_ACEOF
4519if ac_fn_c_try_compile "$LINENO"; then :
4520  xorg_cv_cc_flag_unknown_warning_option=yes
4521else
4522  xorg_cv_cc_flag_unknown_warning_option=no
4523fi
4524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4525fi
4526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4527$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4528	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4529	CFLAGS="$xorg_testset_save_CFLAGS"
4530fi
4531
4532if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4533	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4534		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4535	fi
4536	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4537	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4538$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4539if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4540  $as_echo_n "(cached) " >&6
4541else
4542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4543/* end confdefs.h.  */
4544int i;
4545_ACEOF
4546if ac_fn_c_try_compile "$LINENO"; then :
4547  xorg_cv_cc_flag_unused_command_line_argument=yes
4548else
4549  xorg_cv_cc_flag_unused_command_line_argument=no
4550fi
4551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4552fi
4553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4554$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4555	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4556	CFLAGS="$xorg_testset_save_CFLAGS"
4557fi
4558
4559found="no"
4560
4561	if test $found = "no" ; then
4562		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4563			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4564		fi
4565
4566		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4567			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4568		fi
4569
4570		CFLAGS="$CFLAGS -Wall"
4571
4572		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4573$as_echo_n "checking if $CC supports -Wall... " >&6; }
4574		cacheid=xorg_cv_cc_flag__Wall
4575		if eval \${$cacheid+:} false; then :
4576  $as_echo_n "(cached) " >&6
4577else
4578  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579/* end confdefs.h.  */
4580int i;
4581int
4582main ()
4583{
4584
4585  ;
4586  return 0;
4587}
4588_ACEOF
4589if ac_fn_c_try_link "$LINENO"; then :
4590  eval $cacheid=yes
4591else
4592  eval $cacheid=no
4593fi
4594rm -f core conftest.err conftest.$ac_objext \
4595    conftest$ac_exeext conftest.$ac_ext
4596fi
4597
4598
4599		CFLAGS="$xorg_testset_save_CFLAGS"
4600
4601		eval supported=\$$cacheid
4602		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4603$as_echo "$supported" >&6; }
4604		if test "$supported" = "yes" ; then
4605			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4606			found="yes"
4607		fi
4608	fi
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624xorg_testset_save_CFLAGS="$CFLAGS"
4625
4626if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4627	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4628	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4629$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4630if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4631  $as_echo_n "(cached) " >&6
4632else
4633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4634/* end confdefs.h.  */
4635int i;
4636_ACEOF
4637if ac_fn_c_try_compile "$LINENO"; then :
4638  xorg_cv_cc_flag_unknown_warning_option=yes
4639else
4640  xorg_cv_cc_flag_unknown_warning_option=no
4641fi
4642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4643fi
4644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4645$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4646	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4647	CFLAGS="$xorg_testset_save_CFLAGS"
4648fi
4649
4650if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4651	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4652		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4653	fi
4654	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4655	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4656$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4657if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4658  $as_echo_n "(cached) " >&6
4659else
4660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661/* end confdefs.h.  */
4662int i;
4663_ACEOF
4664if ac_fn_c_try_compile "$LINENO"; then :
4665  xorg_cv_cc_flag_unused_command_line_argument=yes
4666else
4667  xorg_cv_cc_flag_unused_command_line_argument=no
4668fi
4669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4670fi
4671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4672$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4673	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4674	CFLAGS="$xorg_testset_save_CFLAGS"
4675fi
4676
4677found="no"
4678
4679	if test $found = "no" ; then
4680		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4681			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4682		fi
4683
4684		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4685			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4686		fi
4687
4688		CFLAGS="$CFLAGS -Wpointer-arith"
4689
4690		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4691$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4692		cacheid=xorg_cv_cc_flag__Wpointer_arith
4693		if eval \${$cacheid+:} false; then :
4694  $as_echo_n "(cached) " >&6
4695else
4696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697/* end confdefs.h.  */
4698int i;
4699int
4700main ()
4701{
4702
4703  ;
4704  return 0;
4705}
4706_ACEOF
4707if ac_fn_c_try_link "$LINENO"; then :
4708  eval $cacheid=yes
4709else
4710  eval $cacheid=no
4711fi
4712rm -f core conftest.err conftest.$ac_objext \
4713    conftest$ac_exeext conftest.$ac_ext
4714fi
4715
4716
4717		CFLAGS="$xorg_testset_save_CFLAGS"
4718
4719		eval supported=\$$cacheid
4720		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4721$as_echo "$supported" >&6; }
4722		if test "$supported" = "yes" ; then
4723			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4724			found="yes"
4725		fi
4726	fi
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742xorg_testset_save_CFLAGS="$CFLAGS"
4743
4744if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4745	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4746	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4747$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4748if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4749  $as_echo_n "(cached) " >&6
4750else
4751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4752/* end confdefs.h.  */
4753int i;
4754_ACEOF
4755if ac_fn_c_try_compile "$LINENO"; then :
4756  xorg_cv_cc_flag_unknown_warning_option=yes
4757else
4758  xorg_cv_cc_flag_unknown_warning_option=no
4759fi
4760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4761fi
4762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4763$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4764	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4765	CFLAGS="$xorg_testset_save_CFLAGS"
4766fi
4767
4768if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4769	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4770		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4771	fi
4772	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4773	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4774$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4775if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4776  $as_echo_n "(cached) " >&6
4777else
4778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779/* end confdefs.h.  */
4780int i;
4781_ACEOF
4782if ac_fn_c_try_compile "$LINENO"; then :
4783  xorg_cv_cc_flag_unused_command_line_argument=yes
4784else
4785  xorg_cv_cc_flag_unused_command_line_argument=no
4786fi
4787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4788fi
4789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4790$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4791	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4792	CFLAGS="$xorg_testset_save_CFLAGS"
4793fi
4794
4795found="no"
4796
4797	if test $found = "no" ; then
4798		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4799			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4800		fi
4801
4802		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4803			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4804		fi
4805
4806		CFLAGS="$CFLAGS -Wmissing-declarations"
4807
4808		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4809$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4810		cacheid=xorg_cv_cc_flag__Wmissing_declarations
4811		if eval \${$cacheid+:} false; then :
4812  $as_echo_n "(cached) " >&6
4813else
4814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4815/* end confdefs.h.  */
4816int i;
4817int
4818main ()
4819{
4820
4821  ;
4822  return 0;
4823}
4824_ACEOF
4825if ac_fn_c_try_link "$LINENO"; then :
4826  eval $cacheid=yes
4827else
4828  eval $cacheid=no
4829fi
4830rm -f core conftest.err conftest.$ac_objext \
4831    conftest$ac_exeext conftest.$ac_ext
4832fi
4833
4834
4835		CFLAGS="$xorg_testset_save_CFLAGS"
4836
4837		eval supported=\$$cacheid
4838		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4839$as_echo "$supported" >&6; }
4840		if test "$supported" = "yes" ; then
4841			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4842			found="yes"
4843		fi
4844	fi
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860xorg_testset_save_CFLAGS="$CFLAGS"
4861
4862if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4863	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4864	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4865$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4866if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4867  $as_echo_n "(cached) " >&6
4868else
4869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4870/* end confdefs.h.  */
4871int i;
4872_ACEOF
4873if ac_fn_c_try_compile "$LINENO"; then :
4874  xorg_cv_cc_flag_unknown_warning_option=yes
4875else
4876  xorg_cv_cc_flag_unknown_warning_option=no
4877fi
4878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4879fi
4880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4881$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4882	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4883	CFLAGS="$xorg_testset_save_CFLAGS"
4884fi
4885
4886if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4887	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4888		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4889	fi
4890	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4891	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4892$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4893if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4894  $as_echo_n "(cached) " >&6
4895else
4896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4897/* end confdefs.h.  */
4898int i;
4899_ACEOF
4900if ac_fn_c_try_compile "$LINENO"; then :
4901  xorg_cv_cc_flag_unused_command_line_argument=yes
4902else
4903  xorg_cv_cc_flag_unused_command_line_argument=no
4904fi
4905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4906fi
4907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4908$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4909	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4910	CFLAGS="$xorg_testset_save_CFLAGS"
4911fi
4912
4913found="no"
4914
4915	if test $found = "no" ; then
4916		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4917			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4918		fi
4919
4920		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4921			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4922		fi
4923
4924		CFLAGS="$CFLAGS -Wformat=2"
4925
4926		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
4927$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
4928		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
4929		if eval \${$cacheid+:} false; then :
4930  $as_echo_n "(cached) " >&6
4931else
4932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933/* end confdefs.h.  */
4934int i;
4935int
4936main ()
4937{
4938
4939  ;
4940  return 0;
4941}
4942_ACEOF
4943if ac_fn_c_try_link "$LINENO"; then :
4944  eval $cacheid=yes
4945else
4946  eval $cacheid=no
4947fi
4948rm -f core conftest.err conftest.$ac_objext \
4949    conftest$ac_exeext conftest.$ac_ext
4950fi
4951
4952
4953		CFLAGS="$xorg_testset_save_CFLAGS"
4954
4955		eval supported=\$$cacheid
4956		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4957$as_echo "$supported" >&6; }
4958		if test "$supported" = "yes" ; then
4959			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
4960			found="yes"
4961		fi
4962	fi
4963
4964	if test $found = "no" ; then
4965		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4966			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4967		fi
4968
4969		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4970			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4971		fi
4972
4973		CFLAGS="$CFLAGS -Wformat"
4974
4975		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
4976$as_echo_n "checking if $CC supports -Wformat... " >&6; }
4977		cacheid=xorg_cv_cc_flag__Wformat
4978		if eval \${$cacheid+:} false; then :
4979  $as_echo_n "(cached) " >&6
4980else
4981  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4982/* end confdefs.h.  */
4983int i;
4984int
4985main ()
4986{
4987
4988  ;
4989  return 0;
4990}
4991_ACEOF
4992if ac_fn_c_try_link "$LINENO"; then :
4993  eval $cacheid=yes
4994else
4995  eval $cacheid=no
4996fi
4997rm -f core conftest.err conftest.$ac_objext \
4998    conftest$ac_exeext conftest.$ac_ext
4999fi
5000
5001
5002		CFLAGS="$xorg_testset_save_CFLAGS"
5003
5004		eval supported=\$$cacheid
5005		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5006$as_echo "$supported" >&6; }
5007		if test "$supported" = "yes" ; then
5008			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5009			found="yes"
5010		fi
5011	fi
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029xorg_testset_save_CFLAGS="$CFLAGS"
5030
5031if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5032	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5033	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5034$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5035if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5036  $as_echo_n "(cached) " >&6
5037else
5038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5039/* end confdefs.h.  */
5040int i;
5041_ACEOF
5042if ac_fn_c_try_compile "$LINENO"; then :
5043  xorg_cv_cc_flag_unknown_warning_option=yes
5044else
5045  xorg_cv_cc_flag_unknown_warning_option=no
5046fi
5047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5048fi
5049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5050$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5051	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5052	CFLAGS="$xorg_testset_save_CFLAGS"
5053fi
5054
5055if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5056	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5057		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5058	fi
5059	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5060	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5061$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5062if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5063  $as_echo_n "(cached) " >&6
5064else
5065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5066/* end confdefs.h.  */
5067int i;
5068_ACEOF
5069if ac_fn_c_try_compile "$LINENO"; then :
5070  xorg_cv_cc_flag_unused_command_line_argument=yes
5071else
5072  xorg_cv_cc_flag_unused_command_line_argument=no
5073fi
5074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5075fi
5076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5077$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5078	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5079	CFLAGS="$xorg_testset_save_CFLAGS"
5080fi
5081
5082found="no"
5083
5084	if test $found = "no" ; then
5085		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5086			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5087		fi
5088
5089		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5090			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5091		fi
5092
5093		CFLAGS="$CFLAGS -Wstrict-prototypes"
5094
5095		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5096$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5097		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5098		if eval \${$cacheid+:} false; then :
5099  $as_echo_n "(cached) " >&6
5100else
5101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5102/* end confdefs.h.  */
5103int i;
5104int
5105main ()
5106{
5107
5108  ;
5109  return 0;
5110}
5111_ACEOF
5112if ac_fn_c_try_link "$LINENO"; then :
5113  eval $cacheid=yes
5114else
5115  eval $cacheid=no
5116fi
5117rm -f core conftest.err conftest.$ac_objext \
5118    conftest$ac_exeext conftest.$ac_ext
5119fi
5120
5121
5122		CFLAGS="$xorg_testset_save_CFLAGS"
5123
5124		eval supported=\$$cacheid
5125		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5126$as_echo "$supported" >&6; }
5127		if test "$supported" = "yes" ; then
5128			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5129			found="yes"
5130		fi
5131	fi
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147xorg_testset_save_CFLAGS="$CFLAGS"
5148
5149if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5150	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5151	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5152$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5153if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5154  $as_echo_n "(cached) " >&6
5155else
5156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5157/* end confdefs.h.  */
5158int i;
5159_ACEOF
5160if ac_fn_c_try_compile "$LINENO"; then :
5161  xorg_cv_cc_flag_unknown_warning_option=yes
5162else
5163  xorg_cv_cc_flag_unknown_warning_option=no
5164fi
5165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5166fi
5167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5168$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5169	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5170	CFLAGS="$xorg_testset_save_CFLAGS"
5171fi
5172
5173if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5174	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5175		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5176	fi
5177	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5178	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5179$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5180if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5181  $as_echo_n "(cached) " >&6
5182else
5183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5184/* end confdefs.h.  */
5185int i;
5186_ACEOF
5187if ac_fn_c_try_compile "$LINENO"; then :
5188  xorg_cv_cc_flag_unused_command_line_argument=yes
5189else
5190  xorg_cv_cc_flag_unused_command_line_argument=no
5191fi
5192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5193fi
5194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5195$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5196	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5197	CFLAGS="$xorg_testset_save_CFLAGS"
5198fi
5199
5200found="no"
5201
5202	if test $found = "no" ; then
5203		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5204			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5205		fi
5206
5207		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5208			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5209		fi
5210
5211		CFLAGS="$CFLAGS -Wmissing-prototypes"
5212
5213		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5214$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5215		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5216		if eval \${$cacheid+:} false; then :
5217  $as_echo_n "(cached) " >&6
5218else
5219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5220/* end confdefs.h.  */
5221int i;
5222int
5223main ()
5224{
5225
5226  ;
5227  return 0;
5228}
5229_ACEOF
5230if ac_fn_c_try_link "$LINENO"; then :
5231  eval $cacheid=yes
5232else
5233  eval $cacheid=no
5234fi
5235rm -f core conftest.err conftest.$ac_objext \
5236    conftest$ac_exeext conftest.$ac_ext
5237fi
5238
5239
5240		CFLAGS="$xorg_testset_save_CFLAGS"
5241
5242		eval supported=\$$cacheid
5243		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5244$as_echo "$supported" >&6; }
5245		if test "$supported" = "yes" ; then
5246			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5247			found="yes"
5248		fi
5249	fi
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265xorg_testset_save_CFLAGS="$CFLAGS"
5266
5267if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5268	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5269	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5270$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5271if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5272  $as_echo_n "(cached) " >&6
5273else
5274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5275/* end confdefs.h.  */
5276int i;
5277_ACEOF
5278if ac_fn_c_try_compile "$LINENO"; then :
5279  xorg_cv_cc_flag_unknown_warning_option=yes
5280else
5281  xorg_cv_cc_flag_unknown_warning_option=no
5282fi
5283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5284fi
5285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5286$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5287	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5288	CFLAGS="$xorg_testset_save_CFLAGS"
5289fi
5290
5291if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5292	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5293		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5294	fi
5295	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5296	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5297$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5298if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5299  $as_echo_n "(cached) " >&6
5300else
5301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5302/* end confdefs.h.  */
5303int i;
5304_ACEOF
5305if ac_fn_c_try_compile "$LINENO"; then :
5306  xorg_cv_cc_flag_unused_command_line_argument=yes
5307else
5308  xorg_cv_cc_flag_unused_command_line_argument=no
5309fi
5310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5311fi
5312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5313$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5314	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5315	CFLAGS="$xorg_testset_save_CFLAGS"
5316fi
5317
5318found="no"
5319
5320	if test $found = "no" ; then
5321		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5322			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5323		fi
5324
5325		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5326			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5327		fi
5328
5329		CFLAGS="$CFLAGS -Wnested-externs"
5330
5331		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5332$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5333		cacheid=xorg_cv_cc_flag__Wnested_externs
5334		if eval \${$cacheid+:} false; then :
5335  $as_echo_n "(cached) " >&6
5336else
5337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5338/* end confdefs.h.  */
5339int i;
5340int
5341main ()
5342{
5343
5344  ;
5345  return 0;
5346}
5347_ACEOF
5348if ac_fn_c_try_link "$LINENO"; then :
5349  eval $cacheid=yes
5350else
5351  eval $cacheid=no
5352fi
5353rm -f core conftest.err conftest.$ac_objext \
5354    conftest$ac_exeext conftest.$ac_ext
5355fi
5356
5357
5358		CFLAGS="$xorg_testset_save_CFLAGS"
5359
5360		eval supported=\$$cacheid
5361		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5362$as_echo "$supported" >&6; }
5363		if test "$supported" = "yes" ; then
5364			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5365			found="yes"
5366		fi
5367	fi
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383xorg_testset_save_CFLAGS="$CFLAGS"
5384
5385if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5386	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5387	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5388$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5389if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5390  $as_echo_n "(cached) " >&6
5391else
5392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5393/* end confdefs.h.  */
5394int i;
5395_ACEOF
5396if ac_fn_c_try_compile "$LINENO"; then :
5397  xorg_cv_cc_flag_unknown_warning_option=yes
5398else
5399  xorg_cv_cc_flag_unknown_warning_option=no
5400fi
5401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5402fi
5403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5404$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5405	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5406	CFLAGS="$xorg_testset_save_CFLAGS"
5407fi
5408
5409if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5410	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5411		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5412	fi
5413	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5414	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5415$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5416if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5417  $as_echo_n "(cached) " >&6
5418else
5419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5420/* end confdefs.h.  */
5421int i;
5422_ACEOF
5423if ac_fn_c_try_compile "$LINENO"; then :
5424  xorg_cv_cc_flag_unused_command_line_argument=yes
5425else
5426  xorg_cv_cc_flag_unused_command_line_argument=no
5427fi
5428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5429fi
5430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5431$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5432	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5433	CFLAGS="$xorg_testset_save_CFLAGS"
5434fi
5435
5436found="no"
5437
5438	if test $found = "no" ; then
5439		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5440			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5441		fi
5442
5443		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5444			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5445		fi
5446
5447		CFLAGS="$CFLAGS -Wbad-function-cast"
5448
5449		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5450$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5451		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5452		if eval \${$cacheid+:} false; then :
5453  $as_echo_n "(cached) " >&6
5454else
5455  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456/* end confdefs.h.  */
5457int i;
5458int
5459main ()
5460{
5461
5462  ;
5463  return 0;
5464}
5465_ACEOF
5466if ac_fn_c_try_link "$LINENO"; then :
5467  eval $cacheid=yes
5468else
5469  eval $cacheid=no
5470fi
5471rm -f core conftest.err conftest.$ac_objext \
5472    conftest$ac_exeext conftest.$ac_ext
5473fi
5474
5475
5476		CFLAGS="$xorg_testset_save_CFLAGS"
5477
5478		eval supported=\$$cacheid
5479		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5480$as_echo "$supported" >&6; }
5481		if test "$supported" = "yes" ; then
5482			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5483			found="yes"
5484		fi
5485	fi
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501xorg_testset_save_CFLAGS="$CFLAGS"
5502
5503if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5504	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5505	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5506$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5507if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5508  $as_echo_n "(cached) " >&6
5509else
5510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5511/* end confdefs.h.  */
5512int i;
5513_ACEOF
5514if ac_fn_c_try_compile "$LINENO"; then :
5515  xorg_cv_cc_flag_unknown_warning_option=yes
5516else
5517  xorg_cv_cc_flag_unknown_warning_option=no
5518fi
5519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5520fi
5521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5522$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5523	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5524	CFLAGS="$xorg_testset_save_CFLAGS"
5525fi
5526
5527if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5528	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5529		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5530	fi
5531	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5532	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5533$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5534if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5535  $as_echo_n "(cached) " >&6
5536else
5537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5538/* end confdefs.h.  */
5539int i;
5540_ACEOF
5541if ac_fn_c_try_compile "$LINENO"; then :
5542  xorg_cv_cc_flag_unused_command_line_argument=yes
5543else
5544  xorg_cv_cc_flag_unused_command_line_argument=no
5545fi
5546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5547fi
5548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5549$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5550	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5551	CFLAGS="$xorg_testset_save_CFLAGS"
5552fi
5553
5554found="no"
5555
5556	if test $found = "no" ; then
5557		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5558			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5559		fi
5560
5561		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5562			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5563		fi
5564
5565		CFLAGS="$CFLAGS -Wold-style-definition"
5566
5567		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5568$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5569		cacheid=xorg_cv_cc_flag__Wold_style_definition
5570		if eval \${$cacheid+:} false; then :
5571  $as_echo_n "(cached) " >&6
5572else
5573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574/* end confdefs.h.  */
5575int i;
5576int
5577main ()
5578{
5579
5580  ;
5581  return 0;
5582}
5583_ACEOF
5584if ac_fn_c_try_link "$LINENO"; then :
5585  eval $cacheid=yes
5586else
5587  eval $cacheid=no
5588fi
5589rm -f core conftest.err conftest.$ac_objext \
5590    conftest$ac_exeext conftest.$ac_ext
5591fi
5592
5593
5594		CFLAGS="$xorg_testset_save_CFLAGS"
5595
5596		eval supported=\$$cacheid
5597		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5598$as_echo "$supported" >&6; }
5599		if test "$supported" = "yes" ; then
5600			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5601			found="yes"
5602		fi
5603	fi
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619xorg_testset_save_CFLAGS="$CFLAGS"
5620
5621if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5622	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5623	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5624$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5625if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5626  $as_echo_n "(cached) " >&6
5627else
5628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5629/* end confdefs.h.  */
5630int i;
5631_ACEOF
5632if ac_fn_c_try_compile "$LINENO"; then :
5633  xorg_cv_cc_flag_unknown_warning_option=yes
5634else
5635  xorg_cv_cc_flag_unknown_warning_option=no
5636fi
5637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5638fi
5639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5640$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5641	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5642	CFLAGS="$xorg_testset_save_CFLAGS"
5643fi
5644
5645if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5646	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5647		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5648	fi
5649	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5650	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5651$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5652if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5653  $as_echo_n "(cached) " >&6
5654else
5655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5656/* end confdefs.h.  */
5657int i;
5658_ACEOF
5659if ac_fn_c_try_compile "$LINENO"; then :
5660  xorg_cv_cc_flag_unused_command_line_argument=yes
5661else
5662  xorg_cv_cc_flag_unused_command_line_argument=no
5663fi
5664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5665fi
5666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5667$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5668	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5669	CFLAGS="$xorg_testset_save_CFLAGS"
5670fi
5671
5672found="no"
5673
5674	if test $found = "no" ; then
5675		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5676			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5677		fi
5678
5679		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5680			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5681		fi
5682
5683		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5684
5685		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5686$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5687		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5688		if eval \${$cacheid+:} false; then :
5689  $as_echo_n "(cached) " >&6
5690else
5691  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5692/* end confdefs.h.  */
5693int i;
5694int
5695main ()
5696{
5697
5698  ;
5699  return 0;
5700}
5701_ACEOF
5702if ac_fn_c_try_link "$LINENO"; then :
5703  eval $cacheid=yes
5704else
5705  eval $cacheid=no
5706fi
5707rm -f core conftest.err conftest.$ac_objext \
5708    conftest$ac_exeext conftest.$ac_ext
5709fi
5710
5711
5712		CFLAGS="$xorg_testset_save_CFLAGS"
5713
5714		eval supported=\$$cacheid
5715		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5716$as_echo "$supported" >&6; }
5717		if test "$supported" = "yes" ; then
5718			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5719			found="yes"
5720		fi
5721	fi
5722
5723
5724
5725
5726
5727# This chunk adds additional warnings that could catch undesired effects.
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741xorg_testset_save_CFLAGS="$CFLAGS"
5742
5743if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5744	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5745	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5746$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5747if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5748  $as_echo_n "(cached) " >&6
5749else
5750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5751/* end confdefs.h.  */
5752int i;
5753_ACEOF
5754if ac_fn_c_try_compile "$LINENO"; then :
5755  xorg_cv_cc_flag_unknown_warning_option=yes
5756else
5757  xorg_cv_cc_flag_unknown_warning_option=no
5758fi
5759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5760fi
5761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5762$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5763	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5764	CFLAGS="$xorg_testset_save_CFLAGS"
5765fi
5766
5767if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5768	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5769		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5770	fi
5771	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5772	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5773$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5774if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5775  $as_echo_n "(cached) " >&6
5776else
5777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5778/* end confdefs.h.  */
5779int i;
5780_ACEOF
5781if ac_fn_c_try_compile "$LINENO"; then :
5782  xorg_cv_cc_flag_unused_command_line_argument=yes
5783else
5784  xorg_cv_cc_flag_unused_command_line_argument=no
5785fi
5786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5787fi
5788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5789$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5790	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5791	CFLAGS="$xorg_testset_save_CFLAGS"
5792fi
5793
5794found="no"
5795
5796	if test $found = "no" ; then
5797		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5798			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5799		fi
5800
5801		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5802			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5803		fi
5804
5805		CFLAGS="$CFLAGS -Wunused"
5806
5807		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5808$as_echo_n "checking if $CC supports -Wunused... " >&6; }
5809		cacheid=xorg_cv_cc_flag__Wunused
5810		if eval \${$cacheid+:} false; then :
5811  $as_echo_n "(cached) " >&6
5812else
5813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5814/* end confdefs.h.  */
5815int i;
5816int
5817main ()
5818{
5819
5820  ;
5821  return 0;
5822}
5823_ACEOF
5824if ac_fn_c_try_link "$LINENO"; then :
5825  eval $cacheid=yes
5826else
5827  eval $cacheid=no
5828fi
5829rm -f core conftest.err conftest.$ac_objext \
5830    conftest$ac_exeext conftest.$ac_ext
5831fi
5832
5833
5834		CFLAGS="$xorg_testset_save_CFLAGS"
5835
5836		eval supported=\$$cacheid
5837		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5838$as_echo "$supported" >&6; }
5839		if test "$supported" = "yes" ; then
5840			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5841			found="yes"
5842		fi
5843	fi
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859xorg_testset_save_CFLAGS="$CFLAGS"
5860
5861if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5862	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5863	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5864$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5865if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5866  $as_echo_n "(cached) " >&6
5867else
5868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869/* end confdefs.h.  */
5870int i;
5871_ACEOF
5872if ac_fn_c_try_compile "$LINENO"; then :
5873  xorg_cv_cc_flag_unknown_warning_option=yes
5874else
5875  xorg_cv_cc_flag_unknown_warning_option=no
5876fi
5877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5878fi
5879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5880$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5881	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5882	CFLAGS="$xorg_testset_save_CFLAGS"
5883fi
5884
5885if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5886	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5887		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5888	fi
5889	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5890	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5891$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5892if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5893  $as_echo_n "(cached) " >&6
5894else
5895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5896/* end confdefs.h.  */
5897int i;
5898_ACEOF
5899if ac_fn_c_try_compile "$LINENO"; then :
5900  xorg_cv_cc_flag_unused_command_line_argument=yes
5901else
5902  xorg_cv_cc_flag_unused_command_line_argument=no
5903fi
5904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5905fi
5906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5907$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5908	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5909	CFLAGS="$xorg_testset_save_CFLAGS"
5910fi
5911
5912found="no"
5913
5914	if test $found = "no" ; then
5915		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5916			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5917		fi
5918
5919		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5920			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5921		fi
5922
5923		CFLAGS="$CFLAGS -Wuninitialized"
5924
5925		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5926$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5927		cacheid=xorg_cv_cc_flag__Wuninitialized
5928		if eval \${$cacheid+:} false; then :
5929  $as_echo_n "(cached) " >&6
5930else
5931  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5932/* end confdefs.h.  */
5933int i;
5934int
5935main ()
5936{
5937
5938  ;
5939  return 0;
5940}
5941_ACEOF
5942if ac_fn_c_try_link "$LINENO"; then :
5943  eval $cacheid=yes
5944else
5945  eval $cacheid=no
5946fi
5947rm -f core conftest.err conftest.$ac_objext \
5948    conftest$ac_exeext conftest.$ac_ext
5949fi
5950
5951
5952		CFLAGS="$xorg_testset_save_CFLAGS"
5953
5954		eval supported=\$$cacheid
5955		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5956$as_echo "$supported" >&6; }
5957		if test "$supported" = "yes" ; then
5958			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
5959			found="yes"
5960		fi
5961	fi
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977xorg_testset_save_CFLAGS="$CFLAGS"
5978
5979if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5980	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5981	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5982$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5983if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5984  $as_echo_n "(cached) " >&6
5985else
5986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5987/* end confdefs.h.  */
5988int i;
5989_ACEOF
5990if ac_fn_c_try_compile "$LINENO"; then :
5991  xorg_cv_cc_flag_unknown_warning_option=yes
5992else
5993  xorg_cv_cc_flag_unknown_warning_option=no
5994fi
5995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5996fi
5997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5998$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5999	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6000	CFLAGS="$xorg_testset_save_CFLAGS"
6001fi
6002
6003if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6004	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6005		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6006	fi
6007	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6008	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6009$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6010if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6011  $as_echo_n "(cached) " >&6
6012else
6013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6014/* end confdefs.h.  */
6015int i;
6016_ACEOF
6017if ac_fn_c_try_compile "$LINENO"; then :
6018  xorg_cv_cc_flag_unused_command_line_argument=yes
6019else
6020  xorg_cv_cc_flag_unused_command_line_argument=no
6021fi
6022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6023fi
6024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6025$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6026	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6027	CFLAGS="$xorg_testset_save_CFLAGS"
6028fi
6029
6030found="no"
6031
6032	if test $found = "no" ; then
6033		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6034			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6035		fi
6036
6037		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6038			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6039		fi
6040
6041		CFLAGS="$CFLAGS -Wshadow"
6042
6043		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6044$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6045		cacheid=xorg_cv_cc_flag__Wshadow
6046		if eval \${$cacheid+:} false; then :
6047  $as_echo_n "(cached) " >&6
6048else
6049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6050/* end confdefs.h.  */
6051int i;
6052int
6053main ()
6054{
6055
6056  ;
6057  return 0;
6058}
6059_ACEOF
6060if ac_fn_c_try_link "$LINENO"; then :
6061  eval $cacheid=yes
6062else
6063  eval $cacheid=no
6064fi
6065rm -f core conftest.err conftest.$ac_objext \
6066    conftest$ac_exeext conftest.$ac_ext
6067fi
6068
6069
6070		CFLAGS="$xorg_testset_save_CFLAGS"
6071
6072		eval supported=\$$cacheid
6073		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6074$as_echo "$supported" >&6; }
6075		if test "$supported" = "yes" ; then
6076			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6077			found="yes"
6078		fi
6079	fi
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095xorg_testset_save_CFLAGS="$CFLAGS"
6096
6097if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6098	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6099	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6100$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6101if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6102  $as_echo_n "(cached) " >&6
6103else
6104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6105/* end confdefs.h.  */
6106int i;
6107_ACEOF
6108if ac_fn_c_try_compile "$LINENO"; then :
6109  xorg_cv_cc_flag_unknown_warning_option=yes
6110else
6111  xorg_cv_cc_flag_unknown_warning_option=no
6112fi
6113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6114fi
6115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6116$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6117	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6118	CFLAGS="$xorg_testset_save_CFLAGS"
6119fi
6120
6121if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6122	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6123		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6124	fi
6125	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6126	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6127$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6128if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6129  $as_echo_n "(cached) " >&6
6130else
6131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6132/* end confdefs.h.  */
6133int i;
6134_ACEOF
6135if ac_fn_c_try_compile "$LINENO"; then :
6136  xorg_cv_cc_flag_unused_command_line_argument=yes
6137else
6138  xorg_cv_cc_flag_unused_command_line_argument=no
6139fi
6140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6141fi
6142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6143$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6144	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6145	CFLAGS="$xorg_testset_save_CFLAGS"
6146fi
6147
6148found="no"
6149
6150	if test $found = "no" ; then
6151		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6152			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6153		fi
6154
6155		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6156			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6157		fi
6158
6159		CFLAGS="$CFLAGS -Wcast-qual"
6160
6161		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6162$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6163		cacheid=xorg_cv_cc_flag__Wcast_qual
6164		if eval \${$cacheid+:} false; then :
6165  $as_echo_n "(cached) " >&6
6166else
6167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6168/* end confdefs.h.  */
6169int i;
6170int
6171main ()
6172{
6173
6174  ;
6175  return 0;
6176}
6177_ACEOF
6178if ac_fn_c_try_link "$LINENO"; then :
6179  eval $cacheid=yes
6180else
6181  eval $cacheid=no
6182fi
6183rm -f core conftest.err conftest.$ac_objext \
6184    conftest$ac_exeext conftest.$ac_ext
6185fi
6186
6187
6188		CFLAGS="$xorg_testset_save_CFLAGS"
6189
6190		eval supported=\$$cacheid
6191		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6192$as_echo "$supported" >&6; }
6193		if test "$supported" = "yes" ; then
6194			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6195			found="yes"
6196		fi
6197	fi
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213xorg_testset_save_CFLAGS="$CFLAGS"
6214
6215if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6216	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6217	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6218$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6219if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6220  $as_echo_n "(cached) " >&6
6221else
6222  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6223/* end confdefs.h.  */
6224int i;
6225_ACEOF
6226if ac_fn_c_try_compile "$LINENO"; then :
6227  xorg_cv_cc_flag_unknown_warning_option=yes
6228else
6229  xorg_cv_cc_flag_unknown_warning_option=no
6230fi
6231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6232fi
6233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6234$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6235	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6236	CFLAGS="$xorg_testset_save_CFLAGS"
6237fi
6238
6239if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6240	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6241		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6242	fi
6243	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6244	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6245$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6246if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6247  $as_echo_n "(cached) " >&6
6248else
6249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6250/* end confdefs.h.  */
6251int i;
6252_ACEOF
6253if ac_fn_c_try_compile "$LINENO"; then :
6254  xorg_cv_cc_flag_unused_command_line_argument=yes
6255else
6256  xorg_cv_cc_flag_unused_command_line_argument=no
6257fi
6258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6259fi
6260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6261$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6262	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6263	CFLAGS="$xorg_testset_save_CFLAGS"
6264fi
6265
6266found="no"
6267
6268	if test $found = "no" ; then
6269		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6270			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6271		fi
6272
6273		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6274			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6275		fi
6276
6277		CFLAGS="$CFLAGS -Wmissing-noreturn"
6278
6279		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6280$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6281		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6282		if eval \${$cacheid+:} false; then :
6283  $as_echo_n "(cached) " >&6
6284else
6285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6286/* end confdefs.h.  */
6287int i;
6288int
6289main ()
6290{
6291
6292  ;
6293  return 0;
6294}
6295_ACEOF
6296if ac_fn_c_try_link "$LINENO"; then :
6297  eval $cacheid=yes
6298else
6299  eval $cacheid=no
6300fi
6301rm -f core conftest.err conftest.$ac_objext \
6302    conftest$ac_exeext conftest.$ac_ext
6303fi
6304
6305
6306		CFLAGS="$xorg_testset_save_CFLAGS"
6307
6308		eval supported=\$$cacheid
6309		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6310$as_echo "$supported" >&6; }
6311		if test "$supported" = "yes" ; then
6312			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6313			found="yes"
6314		fi
6315	fi
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331xorg_testset_save_CFLAGS="$CFLAGS"
6332
6333if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6334	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6335	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6336$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6337if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6338  $as_echo_n "(cached) " >&6
6339else
6340  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6341/* end confdefs.h.  */
6342int i;
6343_ACEOF
6344if ac_fn_c_try_compile "$LINENO"; then :
6345  xorg_cv_cc_flag_unknown_warning_option=yes
6346else
6347  xorg_cv_cc_flag_unknown_warning_option=no
6348fi
6349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6350fi
6351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6352$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6353	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6354	CFLAGS="$xorg_testset_save_CFLAGS"
6355fi
6356
6357if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6358	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6359		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6360	fi
6361	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6362	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6363$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6364if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6365  $as_echo_n "(cached) " >&6
6366else
6367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6368/* end confdefs.h.  */
6369int i;
6370_ACEOF
6371if ac_fn_c_try_compile "$LINENO"; then :
6372  xorg_cv_cc_flag_unused_command_line_argument=yes
6373else
6374  xorg_cv_cc_flag_unused_command_line_argument=no
6375fi
6376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6377fi
6378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6379$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6380	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6381	CFLAGS="$xorg_testset_save_CFLAGS"
6382fi
6383
6384found="no"
6385
6386	if test $found = "no" ; then
6387		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6388			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6389		fi
6390
6391		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6392			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6393		fi
6394
6395		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6396
6397		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6398$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6399		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6400		if eval \${$cacheid+:} false; then :
6401  $as_echo_n "(cached) " >&6
6402else
6403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6404/* end confdefs.h.  */
6405int i;
6406int
6407main ()
6408{
6409
6410  ;
6411  return 0;
6412}
6413_ACEOF
6414if ac_fn_c_try_link "$LINENO"; then :
6415  eval $cacheid=yes
6416else
6417  eval $cacheid=no
6418fi
6419rm -f core conftest.err conftest.$ac_objext \
6420    conftest$ac_exeext conftest.$ac_ext
6421fi
6422
6423
6424		CFLAGS="$xorg_testset_save_CFLAGS"
6425
6426		eval supported=\$$cacheid
6427		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6428$as_echo "$supported" >&6; }
6429		if test "$supported" = "yes" ; then
6430			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6431			found="yes"
6432		fi
6433	fi
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449xorg_testset_save_CFLAGS="$CFLAGS"
6450
6451if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6452	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6453	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6454$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6455if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6456  $as_echo_n "(cached) " >&6
6457else
6458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6459/* end confdefs.h.  */
6460int i;
6461_ACEOF
6462if ac_fn_c_try_compile "$LINENO"; then :
6463  xorg_cv_cc_flag_unknown_warning_option=yes
6464else
6465  xorg_cv_cc_flag_unknown_warning_option=no
6466fi
6467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6468fi
6469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6470$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6471	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6472	CFLAGS="$xorg_testset_save_CFLAGS"
6473fi
6474
6475if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6476	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6477		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6478	fi
6479	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6480	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6481$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6482if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6483  $as_echo_n "(cached) " >&6
6484else
6485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6486/* end confdefs.h.  */
6487int i;
6488_ACEOF
6489if ac_fn_c_try_compile "$LINENO"; then :
6490  xorg_cv_cc_flag_unused_command_line_argument=yes
6491else
6492  xorg_cv_cc_flag_unused_command_line_argument=no
6493fi
6494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6495fi
6496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6497$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6498	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6499	CFLAGS="$xorg_testset_save_CFLAGS"
6500fi
6501
6502found="no"
6503
6504	if test $found = "no" ; then
6505		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6506			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6507		fi
6508
6509		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6510			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6511		fi
6512
6513		CFLAGS="$CFLAGS -Wredundant-decls"
6514
6515		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6516$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6517		cacheid=xorg_cv_cc_flag__Wredundant_decls
6518		if eval \${$cacheid+:} false; then :
6519  $as_echo_n "(cached) " >&6
6520else
6521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6522/* end confdefs.h.  */
6523int i;
6524int
6525main ()
6526{
6527
6528  ;
6529  return 0;
6530}
6531_ACEOF
6532if ac_fn_c_try_link "$LINENO"; then :
6533  eval $cacheid=yes
6534else
6535  eval $cacheid=no
6536fi
6537rm -f core conftest.err conftest.$ac_objext \
6538    conftest$ac_exeext conftest.$ac_ext
6539fi
6540
6541
6542		CFLAGS="$xorg_testset_save_CFLAGS"
6543
6544		eval supported=\$$cacheid
6545		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6546$as_echo "$supported" >&6; }
6547		if test "$supported" = "yes" ; then
6548			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6549			found="yes"
6550		fi
6551	fi
6552
6553
6554
6555# These are currently disabled because they are noisy.  They will be enabled
6556# in the future once the codebase is sufficiently modernized to silence
6557# them.  For now, I don't want them to drown out the other warnings.
6558# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6559# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6560# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6561
6562# Turn some warnings into errors, so we don't accidently get successful builds
6563# when there are problems that should be fixed.
6564
6565if test "x$SELECTIVE_WERROR" = "xyes" ; then
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579xorg_testset_save_CFLAGS="$CFLAGS"
6580
6581if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6582	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6583	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6584$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6585if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6586  $as_echo_n "(cached) " >&6
6587else
6588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6589/* end confdefs.h.  */
6590int i;
6591_ACEOF
6592if ac_fn_c_try_compile "$LINENO"; then :
6593  xorg_cv_cc_flag_unknown_warning_option=yes
6594else
6595  xorg_cv_cc_flag_unknown_warning_option=no
6596fi
6597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6598fi
6599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6600$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6601	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6602	CFLAGS="$xorg_testset_save_CFLAGS"
6603fi
6604
6605if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6606	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6607		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6608	fi
6609	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6610	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6611$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6612if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6613  $as_echo_n "(cached) " >&6
6614else
6615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6616/* end confdefs.h.  */
6617int i;
6618_ACEOF
6619if ac_fn_c_try_compile "$LINENO"; then :
6620  xorg_cv_cc_flag_unused_command_line_argument=yes
6621else
6622  xorg_cv_cc_flag_unused_command_line_argument=no
6623fi
6624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6625fi
6626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6627$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6628	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6629	CFLAGS="$xorg_testset_save_CFLAGS"
6630fi
6631
6632found="no"
6633
6634	if test $found = "no" ; then
6635		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6636			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6637		fi
6638
6639		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6640			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6641		fi
6642
6643		CFLAGS="$CFLAGS -Werror=implicit"
6644
6645		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6646$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6647		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6648		if eval \${$cacheid+:} false; then :
6649  $as_echo_n "(cached) " >&6
6650else
6651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6652/* end confdefs.h.  */
6653int i;
6654int
6655main ()
6656{
6657
6658  ;
6659  return 0;
6660}
6661_ACEOF
6662if ac_fn_c_try_link "$LINENO"; then :
6663  eval $cacheid=yes
6664else
6665  eval $cacheid=no
6666fi
6667rm -f core conftest.err conftest.$ac_objext \
6668    conftest$ac_exeext conftest.$ac_ext
6669fi
6670
6671
6672		CFLAGS="$xorg_testset_save_CFLAGS"
6673
6674		eval supported=\$$cacheid
6675		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6676$as_echo "$supported" >&6; }
6677		if test "$supported" = "yes" ; then
6678			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6679			found="yes"
6680		fi
6681	fi
6682
6683	if test $found = "no" ; then
6684		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6685			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6686		fi
6687
6688		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6689			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6690		fi
6691
6692		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6693
6694		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6695$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6696		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6697		if eval \${$cacheid+:} false; then :
6698  $as_echo_n "(cached) " >&6
6699else
6700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6701/* end confdefs.h.  */
6702int i;
6703int
6704main ()
6705{
6706
6707  ;
6708  return 0;
6709}
6710_ACEOF
6711if ac_fn_c_try_link "$LINENO"; then :
6712  eval $cacheid=yes
6713else
6714  eval $cacheid=no
6715fi
6716rm -f core conftest.err conftest.$ac_objext \
6717    conftest$ac_exeext conftest.$ac_ext
6718fi
6719
6720
6721		CFLAGS="$xorg_testset_save_CFLAGS"
6722
6723		eval supported=\$$cacheid
6724		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6725$as_echo "$supported" >&6; }
6726		if test "$supported" = "yes" ; then
6727			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6728			found="yes"
6729		fi
6730	fi
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746xorg_testset_save_CFLAGS="$CFLAGS"
6747
6748if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6749	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6750	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6751$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6752if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6753  $as_echo_n "(cached) " >&6
6754else
6755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6756/* end confdefs.h.  */
6757int i;
6758_ACEOF
6759if ac_fn_c_try_compile "$LINENO"; then :
6760  xorg_cv_cc_flag_unknown_warning_option=yes
6761else
6762  xorg_cv_cc_flag_unknown_warning_option=no
6763fi
6764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6765fi
6766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6767$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6768	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6769	CFLAGS="$xorg_testset_save_CFLAGS"
6770fi
6771
6772if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6773	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6774		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6775	fi
6776	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6777	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6778$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6779if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6780  $as_echo_n "(cached) " >&6
6781else
6782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6783/* end confdefs.h.  */
6784int i;
6785_ACEOF
6786if ac_fn_c_try_compile "$LINENO"; then :
6787  xorg_cv_cc_flag_unused_command_line_argument=yes
6788else
6789  xorg_cv_cc_flag_unused_command_line_argument=no
6790fi
6791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6792fi
6793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6794$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6795	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6796	CFLAGS="$xorg_testset_save_CFLAGS"
6797fi
6798
6799found="no"
6800
6801	if test $found = "no" ; then
6802		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6803			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6804		fi
6805
6806		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6807			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6808		fi
6809
6810		CFLAGS="$CFLAGS -Werror=nonnull"
6811
6812		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6813$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6814		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
6815		if eval \${$cacheid+:} false; then :
6816  $as_echo_n "(cached) " >&6
6817else
6818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6819/* end confdefs.h.  */
6820int i;
6821int
6822main ()
6823{
6824
6825  ;
6826  return 0;
6827}
6828_ACEOF
6829if ac_fn_c_try_link "$LINENO"; then :
6830  eval $cacheid=yes
6831else
6832  eval $cacheid=no
6833fi
6834rm -f core conftest.err conftest.$ac_objext \
6835    conftest$ac_exeext conftest.$ac_ext
6836fi
6837
6838
6839		CFLAGS="$xorg_testset_save_CFLAGS"
6840
6841		eval supported=\$$cacheid
6842		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6843$as_echo "$supported" >&6; }
6844		if test "$supported" = "yes" ; then
6845			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6846			found="yes"
6847		fi
6848	fi
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864xorg_testset_save_CFLAGS="$CFLAGS"
6865
6866if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6867	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6868	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6869$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6870if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6871  $as_echo_n "(cached) " >&6
6872else
6873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6874/* end confdefs.h.  */
6875int i;
6876_ACEOF
6877if ac_fn_c_try_compile "$LINENO"; then :
6878  xorg_cv_cc_flag_unknown_warning_option=yes
6879else
6880  xorg_cv_cc_flag_unknown_warning_option=no
6881fi
6882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6883fi
6884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6885$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6886	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6887	CFLAGS="$xorg_testset_save_CFLAGS"
6888fi
6889
6890if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6891	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6892		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6893	fi
6894	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6895	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6896$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6897if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6898  $as_echo_n "(cached) " >&6
6899else
6900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6901/* end confdefs.h.  */
6902int i;
6903_ACEOF
6904if ac_fn_c_try_compile "$LINENO"; then :
6905  xorg_cv_cc_flag_unused_command_line_argument=yes
6906else
6907  xorg_cv_cc_flag_unused_command_line_argument=no
6908fi
6909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6910fi
6911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6912$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6913	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6914	CFLAGS="$xorg_testset_save_CFLAGS"
6915fi
6916
6917found="no"
6918
6919	if test $found = "no" ; then
6920		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6921			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6922		fi
6923
6924		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6925			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6926		fi
6927
6928		CFLAGS="$CFLAGS -Werror=init-self"
6929
6930		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
6931$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
6932		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
6933		if eval \${$cacheid+:} false; then :
6934  $as_echo_n "(cached) " >&6
6935else
6936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6937/* end confdefs.h.  */
6938int i;
6939int
6940main ()
6941{
6942
6943  ;
6944  return 0;
6945}
6946_ACEOF
6947if ac_fn_c_try_link "$LINENO"; then :
6948  eval $cacheid=yes
6949else
6950  eval $cacheid=no
6951fi
6952rm -f core conftest.err conftest.$ac_objext \
6953    conftest$ac_exeext conftest.$ac_ext
6954fi
6955
6956
6957		CFLAGS="$xorg_testset_save_CFLAGS"
6958
6959		eval supported=\$$cacheid
6960		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6961$as_echo "$supported" >&6; }
6962		if test "$supported" = "yes" ; then
6963			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
6964			found="yes"
6965		fi
6966	fi
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982xorg_testset_save_CFLAGS="$CFLAGS"
6983
6984if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6985	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6986	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6987$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6988if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6989  $as_echo_n "(cached) " >&6
6990else
6991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6992/* end confdefs.h.  */
6993int i;
6994_ACEOF
6995if ac_fn_c_try_compile "$LINENO"; then :
6996  xorg_cv_cc_flag_unknown_warning_option=yes
6997else
6998  xorg_cv_cc_flag_unknown_warning_option=no
6999fi
7000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7001fi
7002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7003$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7004	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7005	CFLAGS="$xorg_testset_save_CFLAGS"
7006fi
7007
7008if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7009	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7010		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7011	fi
7012	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7013	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7014$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7015if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7016  $as_echo_n "(cached) " >&6
7017else
7018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7019/* end confdefs.h.  */
7020int i;
7021_ACEOF
7022if ac_fn_c_try_compile "$LINENO"; then :
7023  xorg_cv_cc_flag_unused_command_line_argument=yes
7024else
7025  xorg_cv_cc_flag_unused_command_line_argument=no
7026fi
7027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7028fi
7029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7030$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7031	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7032	CFLAGS="$xorg_testset_save_CFLAGS"
7033fi
7034
7035found="no"
7036
7037	if test $found = "no" ; then
7038		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7039			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7040		fi
7041
7042		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7043			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7044		fi
7045
7046		CFLAGS="$CFLAGS -Werror=main"
7047
7048		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7049$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7050		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7051		if eval \${$cacheid+:} false; then :
7052  $as_echo_n "(cached) " >&6
7053else
7054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7055/* end confdefs.h.  */
7056int i;
7057int
7058main ()
7059{
7060
7061  ;
7062  return 0;
7063}
7064_ACEOF
7065if ac_fn_c_try_link "$LINENO"; then :
7066  eval $cacheid=yes
7067else
7068  eval $cacheid=no
7069fi
7070rm -f core conftest.err conftest.$ac_objext \
7071    conftest$ac_exeext conftest.$ac_ext
7072fi
7073
7074
7075		CFLAGS="$xorg_testset_save_CFLAGS"
7076
7077		eval supported=\$$cacheid
7078		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7079$as_echo "$supported" >&6; }
7080		if test "$supported" = "yes" ; then
7081			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7082			found="yes"
7083		fi
7084	fi
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100xorg_testset_save_CFLAGS="$CFLAGS"
7101
7102if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7103	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7104	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7105$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7106if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7107  $as_echo_n "(cached) " >&6
7108else
7109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7110/* end confdefs.h.  */
7111int i;
7112_ACEOF
7113if ac_fn_c_try_compile "$LINENO"; then :
7114  xorg_cv_cc_flag_unknown_warning_option=yes
7115else
7116  xorg_cv_cc_flag_unknown_warning_option=no
7117fi
7118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7119fi
7120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7121$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7122	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7123	CFLAGS="$xorg_testset_save_CFLAGS"
7124fi
7125
7126if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7127	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7128		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7129	fi
7130	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7131	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7132$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7133if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7134  $as_echo_n "(cached) " >&6
7135else
7136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7137/* end confdefs.h.  */
7138int i;
7139_ACEOF
7140if ac_fn_c_try_compile "$LINENO"; then :
7141  xorg_cv_cc_flag_unused_command_line_argument=yes
7142else
7143  xorg_cv_cc_flag_unused_command_line_argument=no
7144fi
7145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7146fi
7147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7148$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7149	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7150	CFLAGS="$xorg_testset_save_CFLAGS"
7151fi
7152
7153found="no"
7154
7155	if test $found = "no" ; then
7156		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7157			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7158		fi
7159
7160		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7161			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7162		fi
7163
7164		CFLAGS="$CFLAGS -Werror=missing-braces"
7165
7166		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7167$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7168		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7169		if eval \${$cacheid+:} false; then :
7170  $as_echo_n "(cached) " >&6
7171else
7172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7173/* end confdefs.h.  */
7174int i;
7175int
7176main ()
7177{
7178
7179  ;
7180  return 0;
7181}
7182_ACEOF
7183if ac_fn_c_try_link "$LINENO"; then :
7184  eval $cacheid=yes
7185else
7186  eval $cacheid=no
7187fi
7188rm -f core conftest.err conftest.$ac_objext \
7189    conftest$ac_exeext conftest.$ac_ext
7190fi
7191
7192
7193		CFLAGS="$xorg_testset_save_CFLAGS"
7194
7195		eval supported=\$$cacheid
7196		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7197$as_echo "$supported" >&6; }
7198		if test "$supported" = "yes" ; then
7199			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7200			found="yes"
7201		fi
7202	fi
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218xorg_testset_save_CFLAGS="$CFLAGS"
7219
7220if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7221	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7222	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7223$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7224if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7225  $as_echo_n "(cached) " >&6
7226else
7227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7228/* end confdefs.h.  */
7229int i;
7230_ACEOF
7231if ac_fn_c_try_compile "$LINENO"; then :
7232  xorg_cv_cc_flag_unknown_warning_option=yes
7233else
7234  xorg_cv_cc_flag_unknown_warning_option=no
7235fi
7236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7237fi
7238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7239$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7240	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7241	CFLAGS="$xorg_testset_save_CFLAGS"
7242fi
7243
7244if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7245	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7246		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7247	fi
7248	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7249	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7250$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7251if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7252  $as_echo_n "(cached) " >&6
7253else
7254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7255/* end confdefs.h.  */
7256int i;
7257_ACEOF
7258if ac_fn_c_try_compile "$LINENO"; then :
7259  xorg_cv_cc_flag_unused_command_line_argument=yes
7260else
7261  xorg_cv_cc_flag_unused_command_line_argument=no
7262fi
7263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7264fi
7265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7266$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7267	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7268	CFLAGS="$xorg_testset_save_CFLAGS"
7269fi
7270
7271found="no"
7272
7273	if test $found = "no" ; then
7274		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7275			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7276		fi
7277
7278		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7279			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7280		fi
7281
7282		CFLAGS="$CFLAGS -Werror=sequence-point"
7283
7284		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7285$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7286		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7287		if eval \${$cacheid+:} false; then :
7288  $as_echo_n "(cached) " >&6
7289else
7290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7291/* end confdefs.h.  */
7292int i;
7293int
7294main ()
7295{
7296
7297  ;
7298  return 0;
7299}
7300_ACEOF
7301if ac_fn_c_try_link "$LINENO"; then :
7302  eval $cacheid=yes
7303else
7304  eval $cacheid=no
7305fi
7306rm -f core conftest.err conftest.$ac_objext \
7307    conftest$ac_exeext conftest.$ac_ext
7308fi
7309
7310
7311		CFLAGS="$xorg_testset_save_CFLAGS"
7312
7313		eval supported=\$$cacheid
7314		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7315$as_echo "$supported" >&6; }
7316		if test "$supported" = "yes" ; then
7317			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7318			found="yes"
7319		fi
7320	fi
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336xorg_testset_save_CFLAGS="$CFLAGS"
7337
7338if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7339	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7340	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7341$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7342if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7343  $as_echo_n "(cached) " >&6
7344else
7345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7346/* end confdefs.h.  */
7347int i;
7348_ACEOF
7349if ac_fn_c_try_compile "$LINENO"; then :
7350  xorg_cv_cc_flag_unknown_warning_option=yes
7351else
7352  xorg_cv_cc_flag_unknown_warning_option=no
7353fi
7354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7355fi
7356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7357$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7358	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7359	CFLAGS="$xorg_testset_save_CFLAGS"
7360fi
7361
7362if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7363	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7364		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7365	fi
7366	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7367	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7368$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7369if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7370  $as_echo_n "(cached) " >&6
7371else
7372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7373/* end confdefs.h.  */
7374int i;
7375_ACEOF
7376if ac_fn_c_try_compile "$LINENO"; then :
7377  xorg_cv_cc_flag_unused_command_line_argument=yes
7378else
7379  xorg_cv_cc_flag_unused_command_line_argument=no
7380fi
7381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7382fi
7383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7384$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7385	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7386	CFLAGS="$xorg_testset_save_CFLAGS"
7387fi
7388
7389found="no"
7390
7391	if test $found = "no" ; then
7392		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7393			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7394		fi
7395
7396		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7397			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7398		fi
7399
7400		CFLAGS="$CFLAGS -Werror=return-type"
7401
7402		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7403$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7404		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7405		if eval \${$cacheid+:} false; then :
7406  $as_echo_n "(cached) " >&6
7407else
7408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7409/* end confdefs.h.  */
7410int i;
7411int
7412main ()
7413{
7414
7415  ;
7416  return 0;
7417}
7418_ACEOF
7419if ac_fn_c_try_link "$LINENO"; then :
7420  eval $cacheid=yes
7421else
7422  eval $cacheid=no
7423fi
7424rm -f core conftest.err conftest.$ac_objext \
7425    conftest$ac_exeext conftest.$ac_ext
7426fi
7427
7428
7429		CFLAGS="$xorg_testset_save_CFLAGS"
7430
7431		eval supported=\$$cacheid
7432		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7433$as_echo "$supported" >&6; }
7434		if test "$supported" = "yes" ; then
7435			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7436			found="yes"
7437		fi
7438	fi
7439
7440	if test $found = "no" ; then
7441		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7442			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7443		fi
7444
7445		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7446			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7447		fi
7448
7449		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7450
7451		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7452$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7453		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7454		if eval \${$cacheid+:} false; then :
7455  $as_echo_n "(cached) " >&6
7456else
7457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7458/* end confdefs.h.  */
7459int i;
7460int
7461main ()
7462{
7463
7464  ;
7465  return 0;
7466}
7467_ACEOF
7468if ac_fn_c_try_link "$LINENO"; then :
7469  eval $cacheid=yes
7470else
7471  eval $cacheid=no
7472fi
7473rm -f core conftest.err conftest.$ac_objext \
7474    conftest$ac_exeext conftest.$ac_ext
7475fi
7476
7477
7478		CFLAGS="$xorg_testset_save_CFLAGS"
7479
7480		eval supported=\$$cacheid
7481		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7482$as_echo "$supported" >&6; }
7483		if test "$supported" = "yes" ; then
7484			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7485			found="yes"
7486		fi
7487	fi
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503xorg_testset_save_CFLAGS="$CFLAGS"
7504
7505if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7506	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7507	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7508$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7509if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7510  $as_echo_n "(cached) " >&6
7511else
7512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7513/* end confdefs.h.  */
7514int i;
7515_ACEOF
7516if ac_fn_c_try_compile "$LINENO"; then :
7517  xorg_cv_cc_flag_unknown_warning_option=yes
7518else
7519  xorg_cv_cc_flag_unknown_warning_option=no
7520fi
7521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7522fi
7523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7524$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7525	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7526	CFLAGS="$xorg_testset_save_CFLAGS"
7527fi
7528
7529if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7530	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7531		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7532	fi
7533	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7534	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7535$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7536if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7537  $as_echo_n "(cached) " >&6
7538else
7539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7540/* end confdefs.h.  */
7541int i;
7542_ACEOF
7543if ac_fn_c_try_compile "$LINENO"; then :
7544  xorg_cv_cc_flag_unused_command_line_argument=yes
7545else
7546  xorg_cv_cc_flag_unused_command_line_argument=no
7547fi
7548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7549fi
7550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7551$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7552	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7553	CFLAGS="$xorg_testset_save_CFLAGS"
7554fi
7555
7556found="no"
7557
7558	if test $found = "no" ; then
7559		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7560			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7561		fi
7562
7563		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7564			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7565		fi
7566
7567		CFLAGS="$CFLAGS -Werror=trigraphs"
7568
7569		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7570$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7571		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7572		if eval \${$cacheid+:} false; then :
7573  $as_echo_n "(cached) " >&6
7574else
7575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7576/* end confdefs.h.  */
7577int i;
7578int
7579main ()
7580{
7581
7582  ;
7583  return 0;
7584}
7585_ACEOF
7586if ac_fn_c_try_link "$LINENO"; then :
7587  eval $cacheid=yes
7588else
7589  eval $cacheid=no
7590fi
7591rm -f core conftest.err conftest.$ac_objext \
7592    conftest$ac_exeext conftest.$ac_ext
7593fi
7594
7595
7596		CFLAGS="$xorg_testset_save_CFLAGS"
7597
7598		eval supported=\$$cacheid
7599		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7600$as_echo "$supported" >&6; }
7601		if test "$supported" = "yes" ; then
7602			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7603			found="yes"
7604		fi
7605	fi
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621xorg_testset_save_CFLAGS="$CFLAGS"
7622
7623if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7624	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7625	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7626$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7627if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7628  $as_echo_n "(cached) " >&6
7629else
7630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7631/* end confdefs.h.  */
7632int i;
7633_ACEOF
7634if ac_fn_c_try_compile "$LINENO"; then :
7635  xorg_cv_cc_flag_unknown_warning_option=yes
7636else
7637  xorg_cv_cc_flag_unknown_warning_option=no
7638fi
7639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7640fi
7641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7642$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7643	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7644	CFLAGS="$xorg_testset_save_CFLAGS"
7645fi
7646
7647if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7648	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7649		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7650	fi
7651	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7652	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7653$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7654if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7655  $as_echo_n "(cached) " >&6
7656else
7657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7658/* end confdefs.h.  */
7659int i;
7660_ACEOF
7661if ac_fn_c_try_compile "$LINENO"; then :
7662  xorg_cv_cc_flag_unused_command_line_argument=yes
7663else
7664  xorg_cv_cc_flag_unused_command_line_argument=no
7665fi
7666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7667fi
7668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7669$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7670	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7671	CFLAGS="$xorg_testset_save_CFLAGS"
7672fi
7673
7674found="no"
7675
7676	if test $found = "no" ; then
7677		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7678			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7679		fi
7680
7681		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7682			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7683		fi
7684
7685		CFLAGS="$CFLAGS -Werror=array-bounds"
7686
7687		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7688$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7689		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7690		if eval \${$cacheid+:} false; then :
7691  $as_echo_n "(cached) " >&6
7692else
7693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7694/* end confdefs.h.  */
7695int i;
7696int
7697main ()
7698{
7699
7700  ;
7701  return 0;
7702}
7703_ACEOF
7704if ac_fn_c_try_link "$LINENO"; then :
7705  eval $cacheid=yes
7706else
7707  eval $cacheid=no
7708fi
7709rm -f core conftest.err conftest.$ac_objext \
7710    conftest$ac_exeext conftest.$ac_ext
7711fi
7712
7713
7714		CFLAGS="$xorg_testset_save_CFLAGS"
7715
7716		eval supported=\$$cacheid
7717		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7718$as_echo "$supported" >&6; }
7719		if test "$supported" = "yes" ; then
7720			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7721			found="yes"
7722		fi
7723	fi
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739xorg_testset_save_CFLAGS="$CFLAGS"
7740
7741if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7742	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7743	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7744$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7745if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7746  $as_echo_n "(cached) " >&6
7747else
7748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7749/* end confdefs.h.  */
7750int i;
7751_ACEOF
7752if ac_fn_c_try_compile "$LINENO"; then :
7753  xorg_cv_cc_flag_unknown_warning_option=yes
7754else
7755  xorg_cv_cc_flag_unknown_warning_option=no
7756fi
7757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7758fi
7759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7760$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7761	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7762	CFLAGS="$xorg_testset_save_CFLAGS"
7763fi
7764
7765if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7766	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7767		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7768	fi
7769	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7770	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7771$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7772if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7773  $as_echo_n "(cached) " >&6
7774else
7775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7776/* end confdefs.h.  */
7777int i;
7778_ACEOF
7779if ac_fn_c_try_compile "$LINENO"; then :
7780  xorg_cv_cc_flag_unused_command_line_argument=yes
7781else
7782  xorg_cv_cc_flag_unused_command_line_argument=no
7783fi
7784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7785fi
7786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7787$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7788	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7789	CFLAGS="$xorg_testset_save_CFLAGS"
7790fi
7791
7792found="no"
7793
7794	if test $found = "no" ; then
7795		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7796			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7797		fi
7798
7799		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7800			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7801		fi
7802
7803		CFLAGS="$CFLAGS -Werror=write-strings"
7804
7805		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7806$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7807		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
7808		if eval \${$cacheid+:} false; then :
7809  $as_echo_n "(cached) " >&6
7810else
7811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7812/* end confdefs.h.  */
7813int i;
7814int
7815main ()
7816{
7817
7818  ;
7819  return 0;
7820}
7821_ACEOF
7822if ac_fn_c_try_link "$LINENO"; then :
7823  eval $cacheid=yes
7824else
7825  eval $cacheid=no
7826fi
7827rm -f core conftest.err conftest.$ac_objext \
7828    conftest$ac_exeext conftest.$ac_ext
7829fi
7830
7831
7832		CFLAGS="$xorg_testset_save_CFLAGS"
7833
7834		eval supported=\$$cacheid
7835		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7836$as_echo "$supported" >&6; }
7837		if test "$supported" = "yes" ; then
7838			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7839			found="yes"
7840		fi
7841	fi
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857xorg_testset_save_CFLAGS="$CFLAGS"
7858
7859if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7860	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7861	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7862$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7863if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7864  $as_echo_n "(cached) " >&6
7865else
7866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7867/* end confdefs.h.  */
7868int i;
7869_ACEOF
7870if ac_fn_c_try_compile "$LINENO"; then :
7871  xorg_cv_cc_flag_unknown_warning_option=yes
7872else
7873  xorg_cv_cc_flag_unknown_warning_option=no
7874fi
7875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7876fi
7877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7878$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7879	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7880	CFLAGS="$xorg_testset_save_CFLAGS"
7881fi
7882
7883if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7884	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7885		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7886	fi
7887	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7888	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7889$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7890if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7891  $as_echo_n "(cached) " >&6
7892else
7893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7894/* end confdefs.h.  */
7895int i;
7896_ACEOF
7897if ac_fn_c_try_compile "$LINENO"; then :
7898  xorg_cv_cc_flag_unused_command_line_argument=yes
7899else
7900  xorg_cv_cc_flag_unused_command_line_argument=no
7901fi
7902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7903fi
7904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7905$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7906	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7907	CFLAGS="$xorg_testset_save_CFLAGS"
7908fi
7909
7910found="no"
7911
7912	if test $found = "no" ; then
7913		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7914			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7915		fi
7916
7917		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7918			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7919		fi
7920
7921		CFLAGS="$CFLAGS -Werror=address"
7922
7923		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
7924$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
7925		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
7926		if eval \${$cacheid+:} false; then :
7927  $as_echo_n "(cached) " >&6
7928else
7929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7930/* end confdefs.h.  */
7931int i;
7932int
7933main ()
7934{
7935
7936  ;
7937  return 0;
7938}
7939_ACEOF
7940if ac_fn_c_try_link "$LINENO"; then :
7941  eval $cacheid=yes
7942else
7943  eval $cacheid=no
7944fi
7945rm -f core conftest.err conftest.$ac_objext \
7946    conftest$ac_exeext conftest.$ac_ext
7947fi
7948
7949
7950		CFLAGS="$xorg_testset_save_CFLAGS"
7951
7952		eval supported=\$$cacheid
7953		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7954$as_echo "$supported" >&6; }
7955		if test "$supported" = "yes" ; then
7956			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
7957			found="yes"
7958		fi
7959	fi
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975xorg_testset_save_CFLAGS="$CFLAGS"
7976
7977if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7978	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7979	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7980$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7981if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7982  $as_echo_n "(cached) " >&6
7983else
7984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7985/* end confdefs.h.  */
7986int i;
7987_ACEOF
7988if ac_fn_c_try_compile "$LINENO"; then :
7989  xorg_cv_cc_flag_unknown_warning_option=yes
7990else
7991  xorg_cv_cc_flag_unknown_warning_option=no
7992fi
7993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7994fi
7995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7996$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7997	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7998	CFLAGS="$xorg_testset_save_CFLAGS"
7999fi
8000
8001if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8002	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8003		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8004	fi
8005	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8006	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8007$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8008if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8009  $as_echo_n "(cached) " >&6
8010else
8011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8012/* end confdefs.h.  */
8013int i;
8014_ACEOF
8015if ac_fn_c_try_compile "$LINENO"; then :
8016  xorg_cv_cc_flag_unused_command_line_argument=yes
8017else
8018  xorg_cv_cc_flag_unused_command_line_argument=no
8019fi
8020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8021fi
8022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8023$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8024	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8025	CFLAGS="$xorg_testset_save_CFLAGS"
8026fi
8027
8028found="no"
8029
8030	if test $found = "no" ; then
8031		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8032			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8033		fi
8034
8035		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8036			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8037		fi
8038
8039		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8040
8041		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8042$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8043		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8044		if eval \${$cacheid+:} false; then :
8045  $as_echo_n "(cached) " >&6
8046else
8047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8048/* end confdefs.h.  */
8049int i;
8050int
8051main ()
8052{
8053
8054  ;
8055  return 0;
8056}
8057_ACEOF
8058if ac_fn_c_try_link "$LINENO"; then :
8059  eval $cacheid=yes
8060else
8061  eval $cacheid=no
8062fi
8063rm -f core conftest.err conftest.$ac_objext \
8064    conftest$ac_exeext conftest.$ac_ext
8065fi
8066
8067
8068		CFLAGS="$xorg_testset_save_CFLAGS"
8069
8070		eval supported=\$$cacheid
8071		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8072$as_echo "$supported" >&6; }
8073		if test "$supported" = "yes" ; then
8074			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8075			found="yes"
8076		fi
8077	fi
8078
8079	if test $found = "no" ; then
8080		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8081			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8082		fi
8083
8084		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8085			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8086		fi
8087
8088		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8089
8090		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8091$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8092		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8093		if eval \${$cacheid+:} false; then :
8094  $as_echo_n "(cached) " >&6
8095else
8096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8097/* end confdefs.h.  */
8098int i;
8099int
8100main ()
8101{
8102
8103  ;
8104  return 0;
8105}
8106_ACEOF
8107if ac_fn_c_try_link "$LINENO"; then :
8108  eval $cacheid=yes
8109else
8110  eval $cacheid=no
8111fi
8112rm -f core conftest.err conftest.$ac_objext \
8113    conftest$ac_exeext conftest.$ac_ext
8114fi
8115
8116
8117		CFLAGS="$xorg_testset_save_CFLAGS"
8118
8119		eval supported=\$$cacheid
8120		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8121$as_echo "$supported" >&6; }
8122		if test "$supported" = "yes" ; then
8123			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8124			found="yes"
8125		fi
8126	fi
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142xorg_testset_save_CFLAGS="$CFLAGS"
8143
8144if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8145	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8146	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8147$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8148if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8149  $as_echo_n "(cached) " >&6
8150else
8151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8152/* end confdefs.h.  */
8153int i;
8154_ACEOF
8155if ac_fn_c_try_compile "$LINENO"; then :
8156  xorg_cv_cc_flag_unknown_warning_option=yes
8157else
8158  xorg_cv_cc_flag_unknown_warning_option=no
8159fi
8160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8161fi
8162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8163$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8164	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8165	CFLAGS="$xorg_testset_save_CFLAGS"
8166fi
8167
8168if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8169	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8170		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8171	fi
8172	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8173	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8174$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8175if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8176  $as_echo_n "(cached) " >&6
8177else
8178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8179/* end confdefs.h.  */
8180int i;
8181_ACEOF
8182if ac_fn_c_try_compile "$LINENO"; then :
8183  xorg_cv_cc_flag_unused_command_line_argument=yes
8184else
8185  xorg_cv_cc_flag_unused_command_line_argument=no
8186fi
8187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8188fi
8189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8190$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8191	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8192	CFLAGS="$xorg_testset_save_CFLAGS"
8193fi
8194
8195found="no"
8196
8197	if test $found = "no" ; then
8198		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8199			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8200		fi
8201
8202		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8203			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8204		fi
8205
8206		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8207
8208		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8209$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8210		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8211		if eval \${$cacheid+:} false; then :
8212  $as_echo_n "(cached) " >&6
8213else
8214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8215/* end confdefs.h.  */
8216int i;
8217int
8218main ()
8219{
8220
8221  ;
8222  return 0;
8223}
8224_ACEOF
8225if ac_fn_c_try_link "$LINENO"; then :
8226  eval $cacheid=yes
8227else
8228  eval $cacheid=no
8229fi
8230rm -f core conftest.err conftest.$ac_objext \
8231    conftest$ac_exeext conftest.$ac_ext
8232fi
8233
8234
8235		CFLAGS="$xorg_testset_save_CFLAGS"
8236
8237		eval supported=\$$cacheid
8238		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8239$as_echo "$supported" >&6; }
8240		if test "$supported" = "yes" ; then
8241			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8242			found="yes"
8243		fi
8244	fi
8245
8246 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8247else
8248{ $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
8249$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;}
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263xorg_testset_save_CFLAGS="$CFLAGS"
8264
8265if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8266	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8267	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8268$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8269if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8270  $as_echo_n "(cached) " >&6
8271else
8272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8273/* end confdefs.h.  */
8274int i;
8275_ACEOF
8276if ac_fn_c_try_compile "$LINENO"; then :
8277  xorg_cv_cc_flag_unknown_warning_option=yes
8278else
8279  xorg_cv_cc_flag_unknown_warning_option=no
8280fi
8281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8282fi
8283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8284$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8285	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8286	CFLAGS="$xorg_testset_save_CFLAGS"
8287fi
8288
8289if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8290	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8291		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8292	fi
8293	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8294	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8295$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8296if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8297  $as_echo_n "(cached) " >&6
8298else
8299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8300/* end confdefs.h.  */
8301int i;
8302_ACEOF
8303if ac_fn_c_try_compile "$LINENO"; then :
8304  xorg_cv_cc_flag_unused_command_line_argument=yes
8305else
8306  xorg_cv_cc_flag_unused_command_line_argument=no
8307fi
8308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8309fi
8310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8311$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8312	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8313	CFLAGS="$xorg_testset_save_CFLAGS"
8314fi
8315
8316found="no"
8317
8318	if test $found = "no" ; then
8319		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8320			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8321		fi
8322
8323		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8324			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8325		fi
8326
8327		CFLAGS="$CFLAGS -Wimplicit"
8328
8329		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8330$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8331		cacheid=xorg_cv_cc_flag__Wimplicit
8332		if eval \${$cacheid+:} false; then :
8333  $as_echo_n "(cached) " >&6
8334else
8335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8336/* end confdefs.h.  */
8337int i;
8338int
8339main ()
8340{
8341
8342  ;
8343  return 0;
8344}
8345_ACEOF
8346if ac_fn_c_try_link "$LINENO"; then :
8347  eval $cacheid=yes
8348else
8349  eval $cacheid=no
8350fi
8351rm -f core conftest.err conftest.$ac_objext \
8352    conftest$ac_exeext conftest.$ac_ext
8353fi
8354
8355
8356		CFLAGS="$xorg_testset_save_CFLAGS"
8357
8358		eval supported=\$$cacheid
8359		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8360$as_echo "$supported" >&6; }
8361		if test "$supported" = "yes" ; then
8362			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8363			found="yes"
8364		fi
8365	fi
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381xorg_testset_save_CFLAGS="$CFLAGS"
8382
8383if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8384	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8385	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8386$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8387if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8388  $as_echo_n "(cached) " >&6
8389else
8390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8391/* end confdefs.h.  */
8392int i;
8393_ACEOF
8394if ac_fn_c_try_compile "$LINENO"; then :
8395  xorg_cv_cc_flag_unknown_warning_option=yes
8396else
8397  xorg_cv_cc_flag_unknown_warning_option=no
8398fi
8399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8400fi
8401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8402$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8403	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8404	CFLAGS="$xorg_testset_save_CFLAGS"
8405fi
8406
8407if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8408	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8409		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8410	fi
8411	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8412	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8413$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8414if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8415  $as_echo_n "(cached) " >&6
8416else
8417  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8418/* end confdefs.h.  */
8419int i;
8420_ACEOF
8421if ac_fn_c_try_compile "$LINENO"; then :
8422  xorg_cv_cc_flag_unused_command_line_argument=yes
8423else
8424  xorg_cv_cc_flag_unused_command_line_argument=no
8425fi
8426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8427fi
8428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8429$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8430	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8431	CFLAGS="$xorg_testset_save_CFLAGS"
8432fi
8433
8434found="no"
8435
8436	if test $found = "no" ; then
8437		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8438			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8439		fi
8440
8441		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8442			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8443		fi
8444
8445		CFLAGS="$CFLAGS -Wnonnull"
8446
8447		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8448$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8449		cacheid=xorg_cv_cc_flag__Wnonnull
8450		if eval \${$cacheid+:} false; then :
8451  $as_echo_n "(cached) " >&6
8452else
8453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8454/* end confdefs.h.  */
8455int i;
8456int
8457main ()
8458{
8459
8460  ;
8461  return 0;
8462}
8463_ACEOF
8464if ac_fn_c_try_link "$LINENO"; then :
8465  eval $cacheid=yes
8466else
8467  eval $cacheid=no
8468fi
8469rm -f core conftest.err conftest.$ac_objext \
8470    conftest$ac_exeext conftest.$ac_ext
8471fi
8472
8473
8474		CFLAGS="$xorg_testset_save_CFLAGS"
8475
8476		eval supported=\$$cacheid
8477		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8478$as_echo "$supported" >&6; }
8479		if test "$supported" = "yes" ; then
8480			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8481			found="yes"
8482		fi
8483	fi
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499xorg_testset_save_CFLAGS="$CFLAGS"
8500
8501if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8502	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8503	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8504$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8505if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8506  $as_echo_n "(cached) " >&6
8507else
8508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8509/* end confdefs.h.  */
8510int i;
8511_ACEOF
8512if ac_fn_c_try_compile "$LINENO"; then :
8513  xorg_cv_cc_flag_unknown_warning_option=yes
8514else
8515  xorg_cv_cc_flag_unknown_warning_option=no
8516fi
8517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8518fi
8519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8520$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8521	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8522	CFLAGS="$xorg_testset_save_CFLAGS"
8523fi
8524
8525if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8526	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8527		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8528	fi
8529	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8530	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8531$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8532if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8533  $as_echo_n "(cached) " >&6
8534else
8535  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8536/* end confdefs.h.  */
8537int i;
8538_ACEOF
8539if ac_fn_c_try_compile "$LINENO"; then :
8540  xorg_cv_cc_flag_unused_command_line_argument=yes
8541else
8542  xorg_cv_cc_flag_unused_command_line_argument=no
8543fi
8544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8545fi
8546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8547$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8548	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8549	CFLAGS="$xorg_testset_save_CFLAGS"
8550fi
8551
8552found="no"
8553
8554	if test $found = "no" ; then
8555		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8556			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8557		fi
8558
8559		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8560			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8561		fi
8562
8563		CFLAGS="$CFLAGS -Winit-self"
8564
8565		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8566$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8567		cacheid=xorg_cv_cc_flag__Winit_self
8568		if eval \${$cacheid+:} false; then :
8569  $as_echo_n "(cached) " >&6
8570else
8571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8572/* end confdefs.h.  */
8573int i;
8574int
8575main ()
8576{
8577
8578  ;
8579  return 0;
8580}
8581_ACEOF
8582if ac_fn_c_try_link "$LINENO"; then :
8583  eval $cacheid=yes
8584else
8585  eval $cacheid=no
8586fi
8587rm -f core conftest.err conftest.$ac_objext \
8588    conftest$ac_exeext conftest.$ac_ext
8589fi
8590
8591
8592		CFLAGS="$xorg_testset_save_CFLAGS"
8593
8594		eval supported=\$$cacheid
8595		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8596$as_echo "$supported" >&6; }
8597		if test "$supported" = "yes" ; then
8598			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8599			found="yes"
8600		fi
8601	fi
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617xorg_testset_save_CFLAGS="$CFLAGS"
8618
8619if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8620	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8621	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8622$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8623if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8624  $as_echo_n "(cached) " >&6
8625else
8626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8627/* end confdefs.h.  */
8628int i;
8629_ACEOF
8630if ac_fn_c_try_compile "$LINENO"; then :
8631  xorg_cv_cc_flag_unknown_warning_option=yes
8632else
8633  xorg_cv_cc_flag_unknown_warning_option=no
8634fi
8635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8636fi
8637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8638$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8639	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8640	CFLAGS="$xorg_testset_save_CFLAGS"
8641fi
8642
8643if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8644	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8645		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8646	fi
8647	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8648	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8649$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8650if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8651  $as_echo_n "(cached) " >&6
8652else
8653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8654/* end confdefs.h.  */
8655int i;
8656_ACEOF
8657if ac_fn_c_try_compile "$LINENO"; then :
8658  xorg_cv_cc_flag_unused_command_line_argument=yes
8659else
8660  xorg_cv_cc_flag_unused_command_line_argument=no
8661fi
8662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8663fi
8664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8665$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8666	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8667	CFLAGS="$xorg_testset_save_CFLAGS"
8668fi
8669
8670found="no"
8671
8672	if test $found = "no" ; then
8673		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8674			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8675		fi
8676
8677		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8678			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8679		fi
8680
8681		CFLAGS="$CFLAGS -Wmain"
8682
8683		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8684$as_echo_n "checking if $CC supports -Wmain... " >&6; }
8685		cacheid=xorg_cv_cc_flag__Wmain
8686		if eval \${$cacheid+:} false; then :
8687  $as_echo_n "(cached) " >&6
8688else
8689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690/* end confdefs.h.  */
8691int i;
8692int
8693main ()
8694{
8695
8696  ;
8697  return 0;
8698}
8699_ACEOF
8700if ac_fn_c_try_link "$LINENO"; then :
8701  eval $cacheid=yes
8702else
8703  eval $cacheid=no
8704fi
8705rm -f core conftest.err conftest.$ac_objext \
8706    conftest$ac_exeext conftest.$ac_ext
8707fi
8708
8709
8710		CFLAGS="$xorg_testset_save_CFLAGS"
8711
8712		eval supported=\$$cacheid
8713		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8714$as_echo "$supported" >&6; }
8715		if test "$supported" = "yes" ; then
8716			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8717			found="yes"
8718		fi
8719	fi
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735xorg_testset_save_CFLAGS="$CFLAGS"
8736
8737if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8738	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8739	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8740$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8741if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8742  $as_echo_n "(cached) " >&6
8743else
8744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8745/* end confdefs.h.  */
8746int i;
8747_ACEOF
8748if ac_fn_c_try_compile "$LINENO"; then :
8749  xorg_cv_cc_flag_unknown_warning_option=yes
8750else
8751  xorg_cv_cc_flag_unknown_warning_option=no
8752fi
8753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8754fi
8755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8756$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8757	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8758	CFLAGS="$xorg_testset_save_CFLAGS"
8759fi
8760
8761if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8762	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8763		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8764	fi
8765	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8766	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8767$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8768if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8769  $as_echo_n "(cached) " >&6
8770else
8771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8772/* end confdefs.h.  */
8773int i;
8774_ACEOF
8775if ac_fn_c_try_compile "$LINENO"; then :
8776  xorg_cv_cc_flag_unused_command_line_argument=yes
8777else
8778  xorg_cv_cc_flag_unused_command_line_argument=no
8779fi
8780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8781fi
8782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8783$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8784	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8785	CFLAGS="$xorg_testset_save_CFLAGS"
8786fi
8787
8788found="no"
8789
8790	if test $found = "no" ; then
8791		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8792			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8793		fi
8794
8795		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8796			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8797		fi
8798
8799		CFLAGS="$CFLAGS -Wmissing-braces"
8800
8801		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8802$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8803		cacheid=xorg_cv_cc_flag__Wmissing_braces
8804		if eval \${$cacheid+:} false; then :
8805  $as_echo_n "(cached) " >&6
8806else
8807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8808/* end confdefs.h.  */
8809int i;
8810int
8811main ()
8812{
8813
8814  ;
8815  return 0;
8816}
8817_ACEOF
8818if ac_fn_c_try_link "$LINENO"; then :
8819  eval $cacheid=yes
8820else
8821  eval $cacheid=no
8822fi
8823rm -f core conftest.err conftest.$ac_objext \
8824    conftest$ac_exeext conftest.$ac_ext
8825fi
8826
8827
8828		CFLAGS="$xorg_testset_save_CFLAGS"
8829
8830		eval supported=\$$cacheid
8831		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8832$as_echo "$supported" >&6; }
8833		if test "$supported" = "yes" ; then
8834			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8835			found="yes"
8836		fi
8837	fi
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853xorg_testset_save_CFLAGS="$CFLAGS"
8854
8855if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8856	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8857	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8858$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8859if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8860  $as_echo_n "(cached) " >&6
8861else
8862  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8863/* end confdefs.h.  */
8864int i;
8865_ACEOF
8866if ac_fn_c_try_compile "$LINENO"; then :
8867  xorg_cv_cc_flag_unknown_warning_option=yes
8868else
8869  xorg_cv_cc_flag_unknown_warning_option=no
8870fi
8871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8872fi
8873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8874$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8875	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8876	CFLAGS="$xorg_testset_save_CFLAGS"
8877fi
8878
8879if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8880	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8881		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8882	fi
8883	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8884	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8885$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8886if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8887  $as_echo_n "(cached) " >&6
8888else
8889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8890/* end confdefs.h.  */
8891int i;
8892_ACEOF
8893if ac_fn_c_try_compile "$LINENO"; then :
8894  xorg_cv_cc_flag_unused_command_line_argument=yes
8895else
8896  xorg_cv_cc_flag_unused_command_line_argument=no
8897fi
8898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8899fi
8900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8901$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8902	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8903	CFLAGS="$xorg_testset_save_CFLAGS"
8904fi
8905
8906found="no"
8907
8908	if test $found = "no" ; then
8909		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8910			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8911		fi
8912
8913		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8914			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8915		fi
8916
8917		CFLAGS="$CFLAGS -Wsequence-point"
8918
8919		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
8920$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
8921		cacheid=xorg_cv_cc_flag__Wsequence_point
8922		if eval \${$cacheid+:} false; then :
8923  $as_echo_n "(cached) " >&6
8924else
8925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8926/* end confdefs.h.  */
8927int i;
8928int
8929main ()
8930{
8931
8932  ;
8933  return 0;
8934}
8935_ACEOF
8936if ac_fn_c_try_link "$LINENO"; then :
8937  eval $cacheid=yes
8938else
8939  eval $cacheid=no
8940fi
8941rm -f core conftest.err conftest.$ac_objext \
8942    conftest$ac_exeext conftest.$ac_ext
8943fi
8944
8945
8946		CFLAGS="$xorg_testset_save_CFLAGS"
8947
8948		eval supported=\$$cacheid
8949		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8950$as_echo "$supported" >&6; }
8951		if test "$supported" = "yes" ; then
8952			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
8953			found="yes"
8954		fi
8955	fi
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971xorg_testset_save_CFLAGS="$CFLAGS"
8972
8973if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8974	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8975	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8976$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8977if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8978  $as_echo_n "(cached) " >&6
8979else
8980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8981/* end confdefs.h.  */
8982int i;
8983_ACEOF
8984if ac_fn_c_try_compile "$LINENO"; then :
8985  xorg_cv_cc_flag_unknown_warning_option=yes
8986else
8987  xorg_cv_cc_flag_unknown_warning_option=no
8988fi
8989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8990fi
8991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8992$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8993	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8994	CFLAGS="$xorg_testset_save_CFLAGS"
8995fi
8996
8997if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8998	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8999		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9000	fi
9001	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9002	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9003$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9004if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9005  $as_echo_n "(cached) " >&6
9006else
9007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9008/* end confdefs.h.  */
9009int i;
9010_ACEOF
9011if ac_fn_c_try_compile "$LINENO"; then :
9012  xorg_cv_cc_flag_unused_command_line_argument=yes
9013else
9014  xorg_cv_cc_flag_unused_command_line_argument=no
9015fi
9016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9017fi
9018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9019$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9020	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9021	CFLAGS="$xorg_testset_save_CFLAGS"
9022fi
9023
9024found="no"
9025
9026	if test $found = "no" ; then
9027		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9028			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9029		fi
9030
9031		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9032			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9033		fi
9034
9035		CFLAGS="$CFLAGS -Wreturn-type"
9036
9037		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9038$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9039		cacheid=xorg_cv_cc_flag__Wreturn_type
9040		if eval \${$cacheid+:} false; then :
9041  $as_echo_n "(cached) " >&6
9042else
9043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9044/* end confdefs.h.  */
9045int i;
9046int
9047main ()
9048{
9049
9050  ;
9051  return 0;
9052}
9053_ACEOF
9054if ac_fn_c_try_link "$LINENO"; then :
9055  eval $cacheid=yes
9056else
9057  eval $cacheid=no
9058fi
9059rm -f core conftest.err conftest.$ac_objext \
9060    conftest$ac_exeext conftest.$ac_ext
9061fi
9062
9063
9064		CFLAGS="$xorg_testset_save_CFLAGS"
9065
9066		eval supported=\$$cacheid
9067		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9068$as_echo "$supported" >&6; }
9069		if test "$supported" = "yes" ; then
9070			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9071			found="yes"
9072		fi
9073	fi
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089xorg_testset_save_CFLAGS="$CFLAGS"
9090
9091if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9092	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9093	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9094$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9095if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9096  $as_echo_n "(cached) " >&6
9097else
9098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9099/* end confdefs.h.  */
9100int i;
9101_ACEOF
9102if ac_fn_c_try_compile "$LINENO"; then :
9103  xorg_cv_cc_flag_unknown_warning_option=yes
9104else
9105  xorg_cv_cc_flag_unknown_warning_option=no
9106fi
9107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9108fi
9109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9110$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9111	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9112	CFLAGS="$xorg_testset_save_CFLAGS"
9113fi
9114
9115if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9116	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9117		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9118	fi
9119	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9120	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9121$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9122if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9123  $as_echo_n "(cached) " >&6
9124else
9125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9126/* end confdefs.h.  */
9127int i;
9128_ACEOF
9129if ac_fn_c_try_compile "$LINENO"; then :
9130  xorg_cv_cc_flag_unused_command_line_argument=yes
9131else
9132  xorg_cv_cc_flag_unused_command_line_argument=no
9133fi
9134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9135fi
9136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9137$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9138	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9139	CFLAGS="$xorg_testset_save_CFLAGS"
9140fi
9141
9142found="no"
9143
9144	if test $found = "no" ; then
9145		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9146			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9147		fi
9148
9149		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9150			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9151		fi
9152
9153		CFLAGS="$CFLAGS -Wtrigraphs"
9154
9155		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9156$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9157		cacheid=xorg_cv_cc_flag__Wtrigraphs
9158		if eval \${$cacheid+:} false; then :
9159  $as_echo_n "(cached) " >&6
9160else
9161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9162/* end confdefs.h.  */
9163int i;
9164int
9165main ()
9166{
9167
9168  ;
9169  return 0;
9170}
9171_ACEOF
9172if ac_fn_c_try_link "$LINENO"; then :
9173  eval $cacheid=yes
9174else
9175  eval $cacheid=no
9176fi
9177rm -f core conftest.err conftest.$ac_objext \
9178    conftest$ac_exeext conftest.$ac_ext
9179fi
9180
9181
9182		CFLAGS="$xorg_testset_save_CFLAGS"
9183
9184		eval supported=\$$cacheid
9185		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9186$as_echo "$supported" >&6; }
9187		if test "$supported" = "yes" ; then
9188			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9189			found="yes"
9190		fi
9191	fi
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207xorg_testset_save_CFLAGS="$CFLAGS"
9208
9209if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9210	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9211	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9212$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9213if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9214  $as_echo_n "(cached) " >&6
9215else
9216  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9217/* end confdefs.h.  */
9218int i;
9219_ACEOF
9220if ac_fn_c_try_compile "$LINENO"; then :
9221  xorg_cv_cc_flag_unknown_warning_option=yes
9222else
9223  xorg_cv_cc_flag_unknown_warning_option=no
9224fi
9225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9226fi
9227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9228$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9229	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9230	CFLAGS="$xorg_testset_save_CFLAGS"
9231fi
9232
9233if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9234	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9235		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9236	fi
9237	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9238	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9239$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9240if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9241  $as_echo_n "(cached) " >&6
9242else
9243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9244/* end confdefs.h.  */
9245int i;
9246_ACEOF
9247if ac_fn_c_try_compile "$LINENO"; then :
9248  xorg_cv_cc_flag_unused_command_line_argument=yes
9249else
9250  xorg_cv_cc_flag_unused_command_line_argument=no
9251fi
9252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9253fi
9254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9255$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9256	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9257	CFLAGS="$xorg_testset_save_CFLAGS"
9258fi
9259
9260found="no"
9261
9262	if test $found = "no" ; then
9263		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9264			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9265		fi
9266
9267		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9268			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9269		fi
9270
9271		CFLAGS="$CFLAGS -Warray-bounds"
9272
9273		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9274$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9275		cacheid=xorg_cv_cc_flag__Warray_bounds
9276		if eval \${$cacheid+:} false; then :
9277  $as_echo_n "(cached) " >&6
9278else
9279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9280/* end confdefs.h.  */
9281int i;
9282int
9283main ()
9284{
9285
9286  ;
9287  return 0;
9288}
9289_ACEOF
9290if ac_fn_c_try_link "$LINENO"; then :
9291  eval $cacheid=yes
9292else
9293  eval $cacheid=no
9294fi
9295rm -f core conftest.err conftest.$ac_objext \
9296    conftest$ac_exeext conftest.$ac_ext
9297fi
9298
9299
9300		CFLAGS="$xorg_testset_save_CFLAGS"
9301
9302		eval supported=\$$cacheid
9303		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9304$as_echo "$supported" >&6; }
9305		if test "$supported" = "yes" ; then
9306			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9307			found="yes"
9308		fi
9309	fi
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325xorg_testset_save_CFLAGS="$CFLAGS"
9326
9327if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9328	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9329	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9330$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9331if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9332  $as_echo_n "(cached) " >&6
9333else
9334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9335/* end confdefs.h.  */
9336int i;
9337_ACEOF
9338if ac_fn_c_try_compile "$LINENO"; then :
9339  xorg_cv_cc_flag_unknown_warning_option=yes
9340else
9341  xorg_cv_cc_flag_unknown_warning_option=no
9342fi
9343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9344fi
9345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9346$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9347	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9348	CFLAGS="$xorg_testset_save_CFLAGS"
9349fi
9350
9351if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9352	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9353		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9354	fi
9355	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9356	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9357$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9358if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9359  $as_echo_n "(cached) " >&6
9360else
9361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9362/* end confdefs.h.  */
9363int i;
9364_ACEOF
9365if ac_fn_c_try_compile "$LINENO"; then :
9366  xorg_cv_cc_flag_unused_command_line_argument=yes
9367else
9368  xorg_cv_cc_flag_unused_command_line_argument=no
9369fi
9370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9371fi
9372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9373$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9374	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9375	CFLAGS="$xorg_testset_save_CFLAGS"
9376fi
9377
9378found="no"
9379
9380	if test $found = "no" ; then
9381		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9382			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9383		fi
9384
9385		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9386			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9387		fi
9388
9389		CFLAGS="$CFLAGS -Wwrite-strings"
9390
9391		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9392$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9393		cacheid=xorg_cv_cc_flag__Wwrite_strings
9394		if eval \${$cacheid+:} false; then :
9395  $as_echo_n "(cached) " >&6
9396else
9397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9398/* end confdefs.h.  */
9399int i;
9400int
9401main ()
9402{
9403
9404  ;
9405  return 0;
9406}
9407_ACEOF
9408if ac_fn_c_try_link "$LINENO"; then :
9409  eval $cacheid=yes
9410else
9411  eval $cacheid=no
9412fi
9413rm -f core conftest.err conftest.$ac_objext \
9414    conftest$ac_exeext conftest.$ac_ext
9415fi
9416
9417
9418		CFLAGS="$xorg_testset_save_CFLAGS"
9419
9420		eval supported=\$$cacheid
9421		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9422$as_echo "$supported" >&6; }
9423		if test "$supported" = "yes" ; then
9424			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9425			found="yes"
9426		fi
9427	fi
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443xorg_testset_save_CFLAGS="$CFLAGS"
9444
9445if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9446	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9447	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9448$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9449if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9450  $as_echo_n "(cached) " >&6
9451else
9452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9453/* end confdefs.h.  */
9454int i;
9455_ACEOF
9456if ac_fn_c_try_compile "$LINENO"; then :
9457  xorg_cv_cc_flag_unknown_warning_option=yes
9458else
9459  xorg_cv_cc_flag_unknown_warning_option=no
9460fi
9461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9462fi
9463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9464$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9465	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9466	CFLAGS="$xorg_testset_save_CFLAGS"
9467fi
9468
9469if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9470	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9471		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9472	fi
9473	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9474	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9475$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9476if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9477  $as_echo_n "(cached) " >&6
9478else
9479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9480/* end confdefs.h.  */
9481int i;
9482_ACEOF
9483if ac_fn_c_try_compile "$LINENO"; then :
9484  xorg_cv_cc_flag_unused_command_line_argument=yes
9485else
9486  xorg_cv_cc_flag_unused_command_line_argument=no
9487fi
9488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9489fi
9490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9491$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9492	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9493	CFLAGS="$xorg_testset_save_CFLAGS"
9494fi
9495
9496found="no"
9497
9498	if test $found = "no" ; then
9499		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9500			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9501		fi
9502
9503		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9504			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9505		fi
9506
9507		CFLAGS="$CFLAGS -Waddress"
9508
9509		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9510$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9511		cacheid=xorg_cv_cc_flag__Waddress
9512		if eval \${$cacheid+:} false; then :
9513  $as_echo_n "(cached) " >&6
9514else
9515  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9516/* end confdefs.h.  */
9517int i;
9518int
9519main ()
9520{
9521
9522  ;
9523  return 0;
9524}
9525_ACEOF
9526if ac_fn_c_try_link "$LINENO"; then :
9527  eval $cacheid=yes
9528else
9529  eval $cacheid=no
9530fi
9531rm -f core conftest.err conftest.$ac_objext \
9532    conftest$ac_exeext conftest.$ac_ext
9533fi
9534
9535
9536		CFLAGS="$xorg_testset_save_CFLAGS"
9537
9538		eval supported=\$$cacheid
9539		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9540$as_echo "$supported" >&6; }
9541		if test "$supported" = "yes" ; then
9542			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9543			found="yes"
9544		fi
9545	fi
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561xorg_testset_save_CFLAGS="$CFLAGS"
9562
9563if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9564	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9565	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9566$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9567if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9568  $as_echo_n "(cached) " >&6
9569else
9570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9571/* end confdefs.h.  */
9572int i;
9573_ACEOF
9574if ac_fn_c_try_compile "$LINENO"; then :
9575  xorg_cv_cc_flag_unknown_warning_option=yes
9576else
9577  xorg_cv_cc_flag_unknown_warning_option=no
9578fi
9579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9580fi
9581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9582$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9583	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9584	CFLAGS="$xorg_testset_save_CFLAGS"
9585fi
9586
9587if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9588	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9589		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9590	fi
9591	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9592	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9593$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9594if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9595  $as_echo_n "(cached) " >&6
9596else
9597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9598/* end confdefs.h.  */
9599int i;
9600_ACEOF
9601if ac_fn_c_try_compile "$LINENO"; then :
9602  xorg_cv_cc_flag_unused_command_line_argument=yes
9603else
9604  xorg_cv_cc_flag_unused_command_line_argument=no
9605fi
9606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9607fi
9608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9609$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9610	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9611	CFLAGS="$xorg_testset_save_CFLAGS"
9612fi
9613
9614found="no"
9615
9616	if test $found = "no" ; then
9617		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9618			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9619		fi
9620
9621		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9622			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9623		fi
9624
9625		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9626
9627		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9628$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9629		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9630		if eval \${$cacheid+:} false; then :
9631  $as_echo_n "(cached) " >&6
9632else
9633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9634/* end confdefs.h.  */
9635int i;
9636int
9637main ()
9638{
9639
9640  ;
9641  return 0;
9642}
9643_ACEOF
9644if ac_fn_c_try_link "$LINENO"; then :
9645  eval $cacheid=yes
9646else
9647  eval $cacheid=no
9648fi
9649rm -f core conftest.err conftest.$ac_objext \
9650    conftest$ac_exeext conftest.$ac_ext
9651fi
9652
9653
9654		CFLAGS="$xorg_testset_save_CFLAGS"
9655
9656		eval supported=\$$cacheid
9657		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9658$as_echo "$supported" >&6; }
9659		if test "$supported" = "yes" ; then
9660			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9661			found="yes"
9662		fi
9663	fi
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679xorg_testset_save_CFLAGS="$CFLAGS"
9680
9681if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9682	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9683	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9684$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9685if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9686  $as_echo_n "(cached) " >&6
9687else
9688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9689/* end confdefs.h.  */
9690int i;
9691_ACEOF
9692if ac_fn_c_try_compile "$LINENO"; then :
9693  xorg_cv_cc_flag_unknown_warning_option=yes
9694else
9695  xorg_cv_cc_flag_unknown_warning_option=no
9696fi
9697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9698fi
9699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9700$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9701	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9702	CFLAGS="$xorg_testset_save_CFLAGS"
9703fi
9704
9705if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9706	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9707		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9708	fi
9709	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9710	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9711$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9712if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9713  $as_echo_n "(cached) " >&6
9714else
9715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9716/* end confdefs.h.  */
9717int i;
9718_ACEOF
9719if ac_fn_c_try_compile "$LINENO"; then :
9720  xorg_cv_cc_flag_unused_command_line_argument=yes
9721else
9722  xorg_cv_cc_flag_unused_command_line_argument=no
9723fi
9724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9725fi
9726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9727$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9728	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9729	CFLAGS="$xorg_testset_save_CFLAGS"
9730fi
9731
9732found="no"
9733
9734	if test $found = "no" ; then
9735		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9736			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9737		fi
9738
9739		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9740			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9741		fi
9742
9743		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9744
9745		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9746$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9747		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9748		if eval \${$cacheid+:} false; then :
9749  $as_echo_n "(cached) " >&6
9750else
9751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9752/* end confdefs.h.  */
9753int i;
9754int
9755main ()
9756{
9757
9758  ;
9759  return 0;
9760}
9761_ACEOF
9762if ac_fn_c_try_link "$LINENO"; then :
9763  eval $cacheid=yes
9764else
9765  eval $cacheid=no
9766fi
9767rm -f core conftest.err conftest.$ac_objext \
9768    conftest$ac_exeext conftest.$ac_ext
9769fi
9770
9771
9772		CFLAGS="$xorg_testset_save_CFLAGS"
9773
9774		eval supported=\$$cacheid
9775		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9776$as_echo "$supported" >&6; }
9777		if test "$supported" = "yes" ; then
9778			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9779			found="yes"
9780		fi
9781	fi
9782
9783
9784fi
9785
9786
9787
9788
9789
9790
9791
9792		CWARNFLAGS="$BASE_CFLAGS"
9793		if  test "x$GCC" = xyes ; then
9794		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9795		fi
9796
9797
9798
9799
9800
9801
9802
9803
9804# Check whether --enable-strict-compilation was given.
9805if test "${enable_strict_compilation+set}" = set; then :
9806  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9807else
9808  STRICT_COMPILE=no
9809fi
9810
9811
9812
9813
9814
9815
9816STRICT_CFLAGS=""
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830xorg_testset_save_CFLAGS="$CFLAGS"
9831
9832if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9833	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9834	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9835$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9836if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9837  $as_echo_n "(cached) " >&6
9838else
9839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9840/* end confdefs.h.  */
9841int i;
9842_ACEOF
9843if ac_fn_c_try_compile "$LINENO"; then :
9844  xorg_cv_cc_flag_unknown_warning_option=yes
9845else
9846  xorg_cv_cc_flag_unknown_warning_option=no
9847fi
9848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9849fi
9850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9851$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9852	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9853	CFLAGS="$xorg_testset_save_CFLAGS"
9854fi
9855
9856if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9857	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9858		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9859	fi
9860	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9861	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9862$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9863if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9864  $as_echo_n "(cached) " >&6
9865else
9866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9867/* end confdefs.h.  */
9868int i;
9869_ACEOF
9870if ac_fn_c_try_compile "$LINENO"; then :
9871  xorg_cv_cc_flag_unused_command_line_argument=yes
9872else
9873  xorg_cv_cc_flag_unused_command_line_argument=no
9874fi
9875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9876fi
9877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9878$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9879	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9880	CFLAGS="$xorg_testset_save_CFLAGS"
9881fi
9882
9883found="no"
9884
9885	if test $found = "no" ; then
9886		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9887			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9888		fi
9889
9890		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9891			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9892		fi
9893
9894		CFLAGS="$CFLAGS -pedantic"
9895
9896		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
9897$as_echo_n "checking if $CC supports -pedantic... " >&6; }
9898		cacheid=xorg_cv_cc_flag__pedantic
9899		if eval \${$cacheid+:} false; then :
9900  $as_echo_n "(cached) " >&6
9901else
9902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9903/* end confdefs.h.  */
9904int i;
9905int
9906main ()
9907{
9908
9909  ;
9910  return 0;
9911}
9912_ACEOF
9913if ac_fn_c_try_link "$LINENO"; then :
9914  eval $cacheid=yes
9915else
9916  eval $cacheid=no
9917fi
9918rm -f core conftest.err conftest.$ac_objext \
9919    conftest$ac_exeext conftest.$ac_ext
9920fi
9921
9922
9923		CFLAGS="$xorg_testset_save_CFLAGS"
9924
9925		eval supported=\$$cacheid
9926		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9927$as_echo "$supported" >&6; }
9928		if test "$supported" = "yes" ; then
9929			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
9930			found="yes"
9931		fi
9932	fi
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948xorg_testset_save_CFLAGS="$CFLAGS"
9949
9950if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9951	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9952	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9953$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9954if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9955  $as_echo_n "(cached) " >&6
9956else
9957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9958/* end confdefs.h.  */
9959int i;
9960_ACEOF
9961if ac_fn_c_try_compile "$LINENO"; then :
9962  xorg_cv_cc_flag_unknown_warning_option=yes
9963else
9964  xorg_cv_cc_flag_unknown_warning_option=no
9965fi
9966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9967fi
9968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9969$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9970	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9971	CFLAGS="$xorg_testset_save_CFLAGS"
9972fi
9973
9974if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9975	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9976		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9977	fi
9978	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9979	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9980$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9981if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9982  $as_echo_n "(cached) " >&6
9983else
9984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9985/* end confdefs.h.  */
9986int i;
9987_ACEOF
9988if ac_fn_c_try_compile "$LINENO"; then :
9989  xorg_cv_cc_flag_unused_command_line_argument=yes
9990else
9991  xorg_cv_cc_flag_unused_command_line_argument=no
9992fi
9993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9994fi
9995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9996$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9997	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9998	CFLAGS="$xorg_testset_save_CFLAGS"
9999fi
10000
10001found="no"
10002
10003	if test $found = "no" ; then
10004		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10005			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10006		fi
10007
10008		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10009			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10010		fi
10011
10012		CFLAGS="$CFLAGS -Werror"
10013
10014		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10015$as_echo_n "checking if $CC supports -Werror... " >&6; }
10016		cacheid=xorg_cv_cc_flag__Werror
10017		if eval \${$cacheid+:} false; then :
10018  $as_echo_n "(cached) " >&6
10019else
10020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10021/* end confdefs.h.  */
10022int i;
10023int
10024main ()
10025{
10026
10027  ;
10028  return 0;
10029}
10030_ACEOF
10031if ac_fn_c_try_link "$LINENO"; then :
10032  eval $cacheid=yes
10033else
10034  eval $cacheid=no
10035fi
10036rm -f core conftest.err conftest.$ac_objext \
10037    conftest$ac_exeext conftest.$ac_ext
10038fi
10039
10040
10041		CFLAGS="$xorg_testset_save_CFLAGS"
10042
10043		eval supported=\$$cacheid
10044		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10045$as_echo "$supported" >&6; }
10046		if test "$supported" = "yes" ; then
10047			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10048			found="yes"
10049		fi
10050	fi
10051
10052	if test $found = "no" ; then
10053		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10054			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10055		fi
10056
10057		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10058			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10059		fi
10060
10061		CFLAGS="$CFLAGS -errwarn"
10062
10063		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10064$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10065		cacheid=xorg_cv_cc_flag__errwarn
10066		if eval \${$cacheid+:} false; then :
10067  $as_echo_n "(cached) " >&6
10068else
10069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10070/* end confdefs.h.  */
10071int i;
10072int
10073main ()
10074{
10075
10076  ;
10077  return 0;
10078}
10079_ACEOF
10080if ac_fn_c_try_link "$LINENO"; then :
10081  eval $cacheid=yes
10082else
10083  eval $cacheid=no
10084fi
10085rm -f core conftest.err conftest.$ac_objext \
10086    conftest$ac_exeext conftest.$ac_ext
10087fi
10088
10089
10090		CFLAGS="$xorg_testset_save_CFLAGS"
10091
10092		eval supported=\$$cacheid
10093		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10094$as_echo "$supported" >&6; }
10095		if test "$supported" = "yes" ; then
10096			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10097			found="yes"
10098		fi
10099	fi
10100
10101
10102
10103# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10104# activate it with -Werror, so we add it here explicitly.
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118xorg_testset_save_CFLAGS="$CFLAGS"
10119
10120if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10121	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10122	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10123$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10124if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10125  $as_echo_n "(cached) " >&6
10126else
10127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10128/* end confdefs.h.  */
10129int i;
10130_ACEOF
10131if ac_fn_c_try_compile "$LINENO"; then :
10132  xorg_cv_cc_flag_unknown_warning_option=yes
10133else
10134  xorg_cv_cc_flag_unknown_warning_option=no
10135fi
10136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10137fi
10138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10139$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10140	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10141	CFLAGS="$xorg_testset_save_CFLAGS"
10142fi
10143
10144if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10145	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10146		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10147	fi
10148	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10149	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10150$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10151if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10152  $as_echo_n "(cached) " >&6
10153else
10154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10155/* end confdefs.h.  */
10156int i;
10157_ACEOF
10158if ac_fn_c_try_compile "$LINENO"; then :
10159  xorg_cv_cc_flag_unused_command_line_argument=yes
10160else
10161  xorg_cv_cc_flag_unused_command_line_argument=no
10162fi
10163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10164fi
10165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10166$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10167	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10168	CFLAGS="$xorg_testset_save_CFLAGS"
10169fi
10170
10171found="no"
10172
10173	if test $found = "no" ; then
10174		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10175			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10176		fi
10177
10178		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10179			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10180		fi
10181
10182		CFLAGS="$CFLAGS -Werror=attributes"
10183
10184		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10185$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10186		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10187		if eval \${$cacheid+:} false; then :
10188  $as_echo_n "(cached) " >&6
10189else
10190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10191/* end confdefs.h.  */
10192int i;
10193int
10194main ()
10195{
10196
10197  ;
10198  return 0;
10199}
10200_ACEOF
10201if ac_fn_c_try_link "$LINENO"; then :
10202  eval $cacheid=yes
10203else
10204  eval $cacheid=no
10205fi
10206rm -f core conftest.err conftest.$ac_objext \
10207    conftest$ac_exeext conftest.$ac_ext
10208fi
10209
10210
10211		CFLAGS="$xorg_testset_save_CFLAGS"
10212
10213		eval supported=\$$cacheid
10214		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10215$as_echo "$supported" >&6; }
10216		if test "$supported" = "yes" ; then
10217			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10218			found="yes"
10219		fi
10220	fi
10221
10222
10223
10224if test "x$STRICT_COMPILE" = "xyes"; then
10225    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10226    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10227fi
10228
10229
10230
10231
10232
10233
10234cat >>confdefs.h <<_ACEOF
10235#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10236_ACEOF
10237
10238	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10239	if test "x$PVM" = "x"; then
10240		PVM="0"
10241	fi
10242
10243cat >>confdefs.h <<_ACEOF
10244#define PACKAGE_VERSION_MINOR $PVM
10245_ACEOF
10246
10247	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10248	if test "x$PVP" = "x"; then
10249		PVP="0"
10250	fi
10251
10252cat >>confdefs.h <<_ACEOF
10253#define PACKAGE_VERSION_PATCHLEVEL $PVP
10254_ACEOF
10255
10256
10257
10258CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10259mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10260|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10261echo 'git directory not found: installing possibly empty changelog.' >&2)"
10262
10263
10264
10265
10266macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10267INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10268mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10269|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10270echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10271
10272
10273
10274
10275
10276
10277if test x$APP_MAN_SUFFIX = x    ; then
10278    APP_MAN_SUFFIX=1
10279fi
10280if test x$APP_MAN_DIR = x    ; then
10281    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10282fi
10283
10284if test x$LIB_MAN_SUFFIX = x    ; then
10285    LIB_MAN_SUFFIX=3
10286fi
10287if test x$LIB_MAN_DIR = x    ; then
10288    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10289fi
10290
10291if test x$FILE_MAN_SUFFIX = x    ; then
10292    case $host_os in
10293	solaris*)	FILE_MAN_SUFFIX=4  ;;
10294	*)		FILE_MAN_SUFFIX=5  ;;
10295    esac
10296fi
10297if test x$FILE_MAN_DIR = x    ; then
10298    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10299fi
10300
10301if test x$MISC_MAN_SUFFIX = x    ; then
10302    case $host_os in
10303	solaris*)	MISC_MAN_SUFFIX=5  ;;
10304	*)		MISC_MAN_SUFFIX=7  ;;
10305    esac
10306fi
10307if test x$MISC_MAN_DIR = x    ; then
10308    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10309fi
10310
10311if test x$DRIVER_MAN_SUFFIX = x    ; then
10312    case $host_os in
10313	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10314	*)		DRIVER_MAN_SUFFIX=4  ;;
10315    esac
10316fi
10317if test x$DRIVER_MAN_DIR = x    ; then
10318    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10319fi
10320
10321if test x$ADMIN_MAN_SUFFIX = x    ; then
10322    case $host_os in
10323	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10324	*)		ADMIN_MAN_SUFFIX=8  ;;
10325    esac
10326fi
10327if test x$ADMIN_MAN_DIR = x    ; then
10328    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10329fi
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345XORG_MAN_PAGE="X Version 11"
10346
10347MAN_SUBSTS="\
10348	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10349	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10350	-e 's|__xservername__|Xorg|g' \
10351	-e 's|__xconfigfile__|xorg.conf|g' \
10352	-e 's|__projectroot__|\$(prefix)|g' \
10353	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10354	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10355	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10356	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10357	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10358	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10359	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10360
10361
10362
10363# Check whether --enable-silent-rules was given.
10364if test "${enable_silent_rules+set}" = set; then :
10365  enableval=$enable_silent_rules;
10366fi
10367
10368case $enable_silent_rules in
10369yes) AM_DEFAULT_VERBOSITY=0;;
10370no)  AM_DEFAULT_VERBOSITY=1;;
10371*)   AM_DEFAULT_VERBOSITY=0;;
10372esac
10373AM_BACKSLASH='\'
10374
10375
10376
10377# Checks for pkg-config packages
10378
10379pkg_failed=no
10380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCALC" >&5
10381$as_echo_n "checking for XCALC... " >&6; }
10382
10383if test -n "$XCALC_CFLAGS"; then
10384    pkg_cv_XCALC_CFLAGS="$XCALC_CFLAGS"
10385 elif test -n "$PKG_CONFIG"; then
10386    if test -n "$PKG_CONFIG" && \
10387    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xt x11\""; } >&5
10388  ($PKG_CONFIG --exists --print-errors "xaw7 xt x11") 2>&5
10389  ac_status=$?
10390  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10391  test $ac_status = 0; }; then
10392  pkg_cv_XCALC_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xt x11" 2>/dev/null`
10393else
10394  pkg_failed=yes
10395fi
10396 else
10397    pkg_failed=untried
10398fi
10399if test -n "$XCALC_LIBS"; then
10400    pkg_cv_XCALC_LIBS="$XCALC_LIBS"
10401 elif test -n "$PKG_CONFIG"; then
10402    if test -n "$PKG_CONFIG" && \
10403    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xt x11\""; } >&5
10404  ($PKG_CONFIG --exists --print-errors "xaw7 xt x11") 2>&5
10405  ac_status=$?
10406  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10407  test $ac_status = 0; }; then
10408  pkg_cv_XCALC_LIBS=`$PKG_CONFIG --libs "xaw7 xt x11" 2>/dev/null`
10409else
10410  pkg_failed=yes
10411fi
10412 else
10413    pkg_failed=untried
10414fi
10415
10416
10417
10418if test $pkg_failed = yes; then
10419
10420if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10421        _pkg_short_errors_supported=yes
10422else
10423        _pkg_short_errors_supported=no
10424fi
10425        if test $_pkg_short_errors_supported = yes; then
10426	        XCALC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xaw7 xt x11" 2>&1`
10427        else
10428	        XCALC_PKG_ERRORS=`$PKG_CONFIG --print-errors "xaw7 xt x11" 2>&1`
10429        fi
10430	# Put the nasty error message in config.log where it belongs
10431	echo "$XCALC_PKG_ERRORS" >&5
10432
10433	as_fn_error $? "Package requirements (xaw7 xt x11) were not met:
10434
10435$XCALC_PKG_ERRORS
10436
10437Consider adjusting the PKG_CONFIG_PATH environment variable if you
10438installed software in a non-standard prefix.
10439
10440Alternatively, you may set the environment variables XCALC_CFLAGS
10441and XCALC_LIBS to avoid the need to call pkg-config.
10442See the pkg-config man page for more details.
10443" "$LINENO" 5
10444elif test $pkg_failed = untried; then
10445	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10446$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10447as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10448is in your PATH or set the PKG_CONFIG environment variable to the full
10449path to pkg-config.
10450
10451Alternatively, you may set the environment variables XCALC_CFLAGS
10452and XCALC_LIBS to avoid the need to call pkg-config.
10453See the pkg-config man page for more details.
10454
10455To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10456See \`config.log' for more details" "$LINENO" 5; }
10457else
10458	XCALC_CFLAGS=$pkg_cv_XCALC_CFLAGS
10459	XCALC_LIBS=$pkg_cv_XCALC_LIBS
10460        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10461$as_echo "yes" >&6; }
10462	:
10463fi
10464
10465
10466pkg_failed=no
10467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
10468$as_echo_n "checking for APPDEFS... " >&6; }
10469
10470if test -n "$APPDEFS_CFLAGS"; then
10471    pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
10472 elif test -n "$PKG_CONFIG"; then
10473    if test -n "$PKG_CONFIG" && \
10474    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
10475  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
10476  ac_status=$?
10477  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10478  test $ac_status = 0; }; then
10479  pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
10480else
10481  pkg_failed=yes
10482fi
10483 else
10484    pkg_failed=untried
10485fi
10486if test -n "$APPDEFS_LIBS"; then
10487    pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
10488 elif test -n "$PKG_CONFIG"; then
10489    if test -n "$PKG_CONFIG" && \
10490    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
10491  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
10492  ac_status=$?
10493  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10494  test $ac_status = 0; }; then
10495  pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
10496else
10497  pkg_failed=yes
10498fi
10499 else
10500    pkg_failed=untried
10501fi
10502
10503
10504
10505if test $pkg_failed = yes; then
10506
10507if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10508        _pkg_short_errors_supported=yes
10509else
10510        _pkg_short_errors_supported=no
10511fi
10512        if test $_pkg_short_errors_supported = yes; then
10513	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt" 2>&1`
10514        else
10515	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt" 2>&1`
10516        fi
10517	# Put the nasty error message in config.log where it belongs
10518	echo "$APPDEFS_PKG_ERRORS" >&5
10519
10520	as_fn_error $? "Package requirements (xt) were not met:
10521
10522$APPDEFS_PKG_ERRORS
10523
10524Consider adjusting the PKG_CONFIG_PATH environment variable if you
10525installed software in a non-standard prefix.
10526
10527Alternatively, you may set the environment variables APPDEFS_CFLAGS
10528and APPDEFS_LIBS to avoid the need to call pkg-config.
10529See the pkg-config man page for more details.
10530" "$LINENO" 5
10531elif test $pkg_failed = untried; then
10532	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10533$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10534as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10535is in your PATH or set the PKG_CONFIG environment variable to the full
10536path to pkg-config.
10537
10538Alternatively, you may set the environment variables APPDEFS_CFLAGS
10539and APPDEFS_LIBS to avoid the need to call pkg-config.
10540See the pkg-config man page for more details.
10541
10542To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10543See \`config.log' for more details" "$LINENO" 5; }
10544else
10545	APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
10546	APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
10547        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10548$as_echo "yes" >&6; }
10549	:
10550fi
10551xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
10552
10553# Check whether --with-appdefaultdir was given.
10554if test "${with_appdefaultdir+set}" = set; then :
10555  withval=$with_appdefaultdir; appdefaultdir="$withval"
10556else
10557  appdefaultdir="${xt_appdefaultdir}"
10558fi
10559
10560
10561
10562
10563ac_config_files="$ac_config_files Makefile man/Makefile"
10564
10565cat >confcache <<\_ACEOF
10566# This file is a shell script that caches the results of configure
10567# tests run on this system so they can be shared between configure
10568# scripts and configure runs, see configure's option --config-cache.
10569# It is not useful on other systems.  If it contains results you don't
10570# want to keep, you may remove or edit it.
10571#
10572# config.status only pays attention to the cache file if you give it
10573# the --recheck option to rerun configure.
10574#
10575# `ac_cv_env_foo' variables (set or unset) will be overridden when
10576# loading this file, other *unset* `ac_cv_foo' will be assigned the
10577# following values.
10578
10579_ACEOF
10580
10581# The following way of writing the cache mishandles newlines in values,
10582# but we know of no workaround that is simple, portable, and efficient.
10583# So, we kill variables containing newlines.
10584# Ultrix sh set writes to stderr and can't be redirected directly,
10585# and sets the high bit in the cache file unless we assign to the vars.
10586(
10587  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10588    eval ac_val=\$$ac_var
10589    case $ac_val in #(
10590    *${as_nl}*)
10591      case $ac_var in #(
10592      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10593$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10594      esac
10595      case $ac_var in #(
10596      _ | IFS | as_nl) ;; #(
10597      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10598      *) { eval $ac_var=; unset $ac_var;} ;;
10599      esac ;;
10600    esac
10601  done
10602
10603  (set) 2>&1 |
10604    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10605    *${as_nl}ac_space=\ *)
10606      # `set' does not quote correctly, so add quotes: double-quote
10607      # substitution turns \\\\ into \\, and sed turns \\ into \.
10608      sed -n \
10609	"s/'/'\\\\''/g;
10610	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10611      ;; #(
10612    *)
10613      # `set' quotes correctly as required by POSIX, so do not add quotes.
10614      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10615      ;;
10616    esac |
10617    sort
10618) |
10619  sed '
10620     /^ac_cv_env_/b end
10621     t clear
10622     :clear
10623     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10624     t end
10625     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10626     :end' >>confcache
10627if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10628  if test -w "$cache_file"; then
10629    if test "x$cache_file" != "x/dev/null"; then
10630      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10631$as_echo "$as_me: updating cache $cache_file" >&6;}
10632      if test ! -f "$cache_file" || test -h "$cache_file"; then
10633	cat confcache >"$cache_file"
10634      else
10635        case $cache_file in #(
10636        */* | ?:*)
10637	  mv -f confcache "$cache_file"$$ &&
10638	  mv -f "$cache_file"$$ "$cache_file" ;; #(
10639        *)
10640	  mv -f confcache "$cache_file" ;;
10641	esac
10642      fi
10643    fi
10644  else
10645    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10646$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10647  fi
10648fi
10649rm -f confcache
10650
10651test "x$prefix" = xNONE && prefix=$ac_default_prefix
10652# Let make expand exec_prefix.
10653test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10654
10655DEFS=-DHAVE_CONFIG_H
10656
10657ac_libobjs=
10658ac_ltlibobjs=
10659U=
10660for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10661  # 1. Remove the extension, and $U if already installed.
10662  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10663  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10664  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10665  #    will be set to the directory where LIBOBJS objects are built.
10666  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10667  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10668done
10669LIBOBJS=$ac_libobjs
10670
10671LTLIBOBJS=$ac_ltlibobjs
10672
10673
10674 if test -n "$EXEEXT"; then
10675  am__EXEEXT_TRUE=
10676  am__EXEEXT_FALSE='#'
10677else
10678  am__EXEEXT_TRUE='#'
10679  am__EXEEXT_FALSE=
10680fi
10681
10682if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10683  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10684Usually this means the macro was only invoked conditionally." "$LINENO" 5
10685fi
10686if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10687  as_fn_error $? "conditional \"AMDEP\" was never defined.
10688Usually this means the macro was only invoked conditionally." "$LINENO" 5
10689fi
10690if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10691  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10692Usually this means the macro was only invoked conditionally." "$LINENO" 5
10693fi
10694
10695: "${CONFIG_STATUS=./config.status}"
10696ac_write_fail=0
10697ac_clean_files_save=$ac_clean_files
10698ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10699{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10700$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10701as_write_fail=0
10702cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10703#! $SHELL
10704# Generated by $as_me.
10705# Run this file to recreate the current configuration.
10706# Compiler output produced by configure, useful for debugging
10707# configure, is in config.log if it exists.
10708
10709debug=false
10710ac_cs_recheck=false
10711ac_cs_silent=false
10712
10713SHELL=\${CONFIG_SHELL-$SHELL}
10714export SHELL
10715_ASEOF
10716cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10717## -------------------- ##
10718## M4sh Initialization. ##
10719## -------------------- ##
10720
10721# Be more Bourne compatible
10722DUALCASE=1; export DUALCASE # for MKS sh
10723if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10724  emulate sh
10725  NULLCMD=:
10726  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10727  # is contrary to our usage.  Disable this feature.
10728  alias -g '${1+"$@"}'='"$@"'
10729  setopt NO_GLOB_SUBST
10730else
10731  case `(set -o) 2>/dev/null` in #(
10732  *posix*) :
10733    set -o posix ;; #(
10734  *) :
10735     ;;
10736esac
10737fi
10738
10739
10740as_nl='
10741'
10742export as_nl
10743# Printing a long string crashes Solaris 7 /usr/bin/printf.
10744as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10745as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10746as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10747# Prefer a ksh shell builtin over an external printf program on Solaris,
10748# but without wasting forks for bash or zsh.
10749if test -z "$BASH_VERSION$ZSH_VERSION" \
10750    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10751  as_echo='print -r --'
10752  as_echo_n='print -rn --'
10753elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10754  as_echo='printf %s\n'
10755  as_echo_n='printf %s'
10756else
10757  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10758    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10759    as_echo_n='/usr/ucb/echo -n'
10760  else
10761    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10762    as_echo_n_body='eval
10763      arg=$1;
10764      case $arg in #(
10765      *"$as_nl"*)
10766	expr "X$arg" : "X\\(.*\\)$as_nl";
10767	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10768      esac;
10769      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10770    '
10771    export as_echo_n_body
10772    as_echo_n='sh -c $as_echo_n_body as_echo'
10773  fi
10774  export as_echo_body
10775  as_echo='sh -c $as_echo_body as_echo'
10776fi
10777
10778# The user is always right.
10779if test "${PATH_SEPARATOR+set}" != set; then
10780  PATH_SEPARATOR=:
10781  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10782    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10783      PATH_SEPARATOR=';'
10784  }
10785fi
10786
10787
10788# IFS
10789# We need space, tab and new line, in precisely that order.  Quoting is
10790# there to prevent editors from complaining about space-tab.
10791# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10792# splitting by setting IFS to empty value.)
10793IFS=" ""	$as_nl"
10794
10795# Find who we are.  Look in the path if we contain no directory separator.
10796as_myself=
10797case $0 in #((
10798  *[\\/]* ) as_myself=$0 ;;
10799  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10800for as_dir in $PATH
10801do
10802  IFS=$as_save_IFS
10803  test -z "$as_dir" && as_dir=.
10804    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10805  done
10806IFS=$as_save_IFS
10807
10808     ;;
10809esac
10810# We did not find ourselves, most probably we were run as `sh COMMAND'
10811# in which case we are not to be found in the path.
10812if test "x$as_myself" = x; then
10813  as_myself=$0
10814fi
10815if test ! -f "$as_myself"; then
10816  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10817  exit 1
10818fi
10819
10820# Unset variables that we do not need and which cause bugs (e.g. in
10821# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
10822# suppresses any "Segmentation fault" message there.  '((' could
10823# trigger a bug in pdksh 5.2.14.
10824for as_var in BASH_ENV ENV MAIL MAILPATH
10825do eval test x\${$as_var+set} = xset \
10826  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10827done
10828PS1='$ '
10829PS2='> '
10830PS4='+ '
10831
10832# NLS nuisances.
10833LC_ALL=C
10834export LC_ALL
10835LANGUAGE=C
10836export LANGUAGE
10837
10838# CDPATH.
10839(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10840
10841
10842# as_fn_error STATUS ERROR [LINENO LOG_FD]
10843# ----------------------------------------
10844# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10845# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10846# script with STATUS, using 1 if that was 0.
10847as_fn_error ()
10848{
10849  as_status=$1; test $as_status -eq 0 && as_status=1
10850  if test "$4"; then
10851    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10852    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10853  fi
10854  $as_echo "$as_me: error: $2" >&2
10855  as_fn_exit $as_status
10856} # as_fn_error
10857
10858
10859# as_fn_set_status STATUS
10860# -----------------------
10861# Set $? to STATUS, without forking.
10862as_fn_set_status ()
10863{
10864  return $1
10865} # as_fn_set_status
10866
10867# as_fn_exit STATUS
10868# -----------------
10869# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10870as_fn_exit ()
10871{
10872  set +e
10873  as_fn_set_status $1
10874  exit $1
10875} # as_fn_exit
10876
10877# as_fn_unset VAR
10878# ---------------
10879# Portably unset VAR.
10880as_fn_unset ()
10881{
10882  { eval $1=; unset $1;}
10883}
10884as_unset=as_fn_unset
10885# as_fn_append VAR VALUE
10886# ----------------------
10887# Append the text in VALUE to the end of the definition contained in VAR. Take
10888# advantage of any shell optimizations that allow amortized linear growth over
10889# repeated appends, instead of the typical quadratic growth present in naive
10890# implementations.
10891if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10892  eval 'as_fn_append ()
10893  {
10894    eval $1+=\$2
10895  }'
10896else
10897  as_fn_append ()
10898  {
10899    eval $1=\$$1\$2
10900  }
10901fi # as_fn_append
10902
10903# as_fn_arith ARG...
10904# ------------------
10905# Perform arithmetic evaluation on the ARGs, and store the result in the
10906# global $as_val. Take advantage of shells that can avoid forks. The arguments
10907# must be portable across $(()) and expr.
10908if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10909  eval 'as_fn_arith ()
10910  {
10911    as_val=$(( $* ))
10912  }'
10913else
10914  as_fn_arith ()
10915  {
10916    as_val=`expr "$@" || test $? -eq 1`
10917  }
10918fi # as_fn_arith
10919
10920
10921if expr a : '\(a\)' >/dev/null 2>&1 &&
10922   test "X`expr 00001 : '.*\(...\)'`" = X001; then
10923  as_expr=expr
10924else
10925  as_expr=false
10926fi
10927
10928if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10929  as_basename=basename
10930else
10931  as_basename=false
10932fi
10933
10934if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10935  as_dirname=dirname
10936else
10937  as_dirname=false
10938fi
10939
10940as_me=`$as_basename -- "$0" ||
10941$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10942	 X"$0" : 'X\(//\)$' \| \
10943	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10944$as_echo X/"$0" |
10945    sed '/^.*\/\([^/][^/]*\)\/*$/{
10946	    s//\1/
10947	    q
10948	  }
10949	  /^X\/\(\/\/\)$/{
10950	    s//\1/
10951	    q
10952	  }
10953	  /^X\/\(\/\).*/{
10954	    s//\1/
10955	    q
10956	  }
10957	  s/.*/./; q'`
10958
10959# Avoid depending upon Character Ranges.
10960as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10961as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10962as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10963as_cr_digits='0123456789'
10964as_cr_alnum=$as_cr_Letters$as_cr_digits
10965
10966ECHO_C= ECHO_N= ECHO_T=
10967case `echo -n x` in #(((((
10968-n*)
10969  case `echo 'xy\c'` in
10970  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
10971  xy)  ECHO_C='\c';;
10972  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
10973       ECHO_T='	';;
10974  esac;;
10975*)
10976  ECHO_N='-n';;
10977esac
10978
10979rm -f conf$$ conf$$.exe conf$$.file
10980if test -d conf$$.dir; then
10981  rm -f conf$$.dir/conf$$.file
10982else
10983  rm -f conf$$.dir
10984  mkdir conf$$.dir 2>/dev/null
10985fi
10986if (echo >conf$$.file) 2>/dev/null; then
10987  if ln -s conf$$.file conf$$ 2>/dev/null; then
10988    as_ln_s='ln -s'
10989    # ... but there are two gotchas:
10990    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10991    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10992    # In both cases, we have to default to `cp -p'.
10993    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10994      as_ln_s='cp -p'
10995  elif ln conf$$.file conf$$ 2>/dev/null; then
10996    as_ln_s=ln
10997  else
10998    as_ln_s='cp -p'
10999  fi
11000else
11001  as_ln_s='cp -p'
11002fi
11003rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11004rmdir conf$$.dir 2>/dev/null
11005
11006
11007# as_fn_mkdir_p
11008# -------------
11009# Create "$as_dir" as a directory, including parents if necessary.
11010as_fn_mkdir_p ()
11011{
11012
11013  case $as_dir in #(
11014  -*) as_dir=./$as_dir;;
11015  esac
11016  test -d "$as_dir" || eval $as_mkdir_p || {
11017    as_dirs=
11018    while :; do
11019      case $as_dir in #(
11020      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11021      *) as_qdir=$as_dir;;
11022      esac
11023      as_dirs="'$as_qdir' $as_dirs"
11024      as_dir=`$as_dirname -- "$as_dir" ||
11025$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11026	 X"$as_dir" : 'X\(//\)[^/]' \| \
11027	 X"$as_dir" : 'X\(//\)$' \| \
11028	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11029$as_echo X"$as_dir" |
11030    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11031	    s//\1/
11032	    q
11033	  }
11034	  /^X\(\/\/\)[^/].*/{
11035	    s//\1/
11036	    q
11037	  }
11038	  /^X\(\/\/\)$/{
11039	    s//\1/
11040	    q
11041	  }
11042	  /^X\(\/\).*/{
11043	    s//\1/
11044	    q
11045	  }
11046	  s/.*/./; q'`
11047      test -d "$as_dir" && break
11048    done
11049    test -z "$as_dirs" || eval "mkdir $as_dirs"
11050  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11051
11052
11053} # as_fn_mkdir_p
11054if mkdir -p . 2>/dev/null; then
11055  as_mkdir_p='mkdir -p "$as_dir"'
11056else
11057  test -d ./-p && rmdir ./-p
11058  as_mkdir_p=false
11059fi
11060
11061if test -x / >/dev/null 2>&1; then
11062  as_test_x='test -x'
11063else
11064  if ls -dL / >/dev/null 2>&1; then
11065    as_ls_L_option=L
11066  else
11067    as_ls_L_option=
11068  fi
11069  as_test_x='
11070    eval sh -c '\''
11071      if test -d "$1"; then
11072	test -d "$1/.";
11073      else
11074	case $1 in #(
11075	-*)set "./$1";;
11076	esac;
11077	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11078	???[sx]*):;;*)false;;esac;fi
11079    '\'' sh
11080  '
11081fi
11082as_executable_p=$as_test_x
11083
11084# Sed expression to map a string onto a valid CPP name.
11085as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11086
11087# Sed expression to map a string onto a valid variable name.
11088as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11089
11090
11091exec 6>&1
11092## ----------------------------------- ##
11093## Main body of $CONFIG_STATUS script. ##
11094## ----------------------------------- ##
11095_ASEOF
11096test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11097
11098cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11099# Save the log message, to keep $0 and so on meaningful, and to
11100# report actual input values of CONFIG_FILES etc. instead of their
11101# values after options handling.
11102ac_log="
11103This file was extended by xcalc $as_me 1.0.5, which was
11104generated by GNU Autoconf 2.68.  Invocation command line was
11105
11106  CONFIG_FILES    = $CONFIG_FILES
11107  CONFIG_HEADERS  = $CONFIG_HEADERS
11108  CONFIG_LINKS    = $CONFIG_LINKS
11109  CONFIG_COMMANDS = $CONFIG_COMMANDS
11110  $ $0 $@
11111
11112on `(hostname || uname -n) 2>/dev/null | sed 1q`
11113"
11114
11115_ACEOF
11116
11117case $ac_config_files in *"
11118"*) set x $ac_config_files; shift; ac_config_files=$*;;
11119esac
11120
11121case $ac_config_headers in *"
11122"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11123esac
11124
11125
11126cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11127# Files that config.status was made for.
11128config_files="$ac_config_files"
11129config_headers="$ac_config_headers"
11130config_commands="$ac_config_commands"
11131
11132_ACEOF
11133
11134cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11135ac_cs_usage="\
11136\`$as_me' instantiates files and other configuration actions
11137from templates according to the current configuration.  Unless the files
11138and actions are specified as TAGs, all are instantiated by default.
11139
11140Usage: $0 [OPTION]... [TAG]...
11141
11142  -h, --help       print this help, then exit
11143  -V, --version    print version number and configuration settings, then exit
11144      --config     print configuration, then exit
11145  -q, --quiet, --silent
11146                   do not print progress messages
11147  -d, --debug      don't remove temporary files
11148      --recheck    update $as_me by reconfiguring in the same conditions
11149      --file=FILE[:TEMPLATE]
11150                   instantiate the configuration file FILE
11151      --header=FILE[:TEMPLATE]
11152                   instantiate the configuration header FILE
11153
11154Configuration files:
11155$config_files
11156
11157Configuration headers:
11158$config_headers
11159
11160Configuration commands:
11161$config_commands
11162
11163Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11164
11165_ACEOF
11166cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11167ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11168ac_cs_version="\\
11169xcalc config.status 1.0.5
11170configured by $0, generated by GNU Autoconf 2.68,
11171  with options \\"\$ac_cs_config\\"
11172
11173Copyright (C) 2010 Free Software Foundation, Inc.
11174This config.status script is free software; the Free Software Foundation
11175gives unlimited permission to copy, distribute and modify it."
11176
11177ac_pwd='$ac_pwd'
11178srcdir='$srcdir'
11179INSTALL='$INSTALL'
11180MKDIR_P='$MKDIR_P'
11181AWK='$AWK'
11182test -n "\$AWK" || AWK=awk
11183_ACEOF
11184
11185cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11186# The default lists apply if the user does not specify any file.
11187ac_need_defaults=:
11188while test $# != 0
11189do
11190  case $1 in
11191  --*=?*)
11192    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11193    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11194    ac_shift=:
11195    ;;
11196  --*=)
11197    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11198    ac_optarg=
11199    ac_shift=:
11200    ;;
11201  *)
11202    ac_option=$1
11203    ac_optarg=$2
11204    ac_shift=shift
11205    ;;
11206  esac
11207
11208  case $ac_option in
11209  # Handling of the options.
11210  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11211    ac_cs_recheck=: ;;
11212  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11213    $as_echo "$ac_cs_version"; exit ;;
11214  --config | --confi | --conf | --con | --co | --c )
11215    $as_echo "$ac_cs_config"; exit ;;
11216  --debug | --debu | --deb | --de | --d | -d )
11217    debug=: ;;
11218  --file | --fil | --fi | --f )
11219    $ac_shift
11220    case $ac_optarg in
11221    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11222    '') as_fn_error $? "missing file argument" ;;
11223    esac
11224    as_fn_append CONFIG_FILES " '$ac_optarg'"
11225    ac_need_defaults=false;;
11226  --header | --heade | --head | --hea )
11227    $ac_shift
11228    case $ac_optarg in
11229    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11230    esac
11231    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11232    ac_need_defaults=false;;
11233  --he | --h)
11234    # Conflict between --help and --header
11235    as_fn_error $? "ambiguous option: \`$1'
11236Try \`$0 --help' for more information.";;
11237  --help | --hel | -h )
11238    $as_echo "$ac_cs_usage"; exit ;;
11239  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11240  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11241    ac_cs_silent=: ;;
11242
11243  # This is an error.
11244  -*) as_fn_error $? "unrecognized option: \`$1'
11245Try \`$0 --help' for more information." ;;
11246
11247  *) as_fn_append ac_config_targets " $1"
11248     ac_need_defaults=false ;;
11249
11250  esac
11251  shift
11252done
11253
11254ac_configure_extra_args=
11255
11256if $ac_cs_silent; then
11257  exec 6>/dev/null
11258  ac_configure_extra_args="$ac_configure_extra_args --silent"
11259fi
11260
11261_ACEOF
11262cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11263if \$ac_cs_recheck; then
11264  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11265  shift
11266  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11267  CONFIG_SHELL='$SHELL'
11268  export CONFIG_SHELL
11269  exec "\$@"
11270fi
11271
11272_ACEOF
11273cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11274exec 5>>config.log
11275{
11276  echo
11277  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11278## Running $as_me. ##
11279_ASBOX
11280  $as_echo "$ac_log"
11281} >&5
11282
11283_ACEOF
11284cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11285#
11286# INIT-COMMANDS
11287#
11288AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11289
11290_ACEOF
11291
11292cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11293
11294# Handling of arguments.
11295for ac_config_target in $ac_config_targets
11296do
11297  case $ac_config_target in
11298    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11299    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11300    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11301    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11302
11303  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11304  esac
11305done
11306
11307
11308# If the user did not use the arguments to specify the items to instantiate,
11309# then the envvar interface is used.  Set only those that are not.
11310# We use the long form for the default assignment because of an extremely
11311# bizarre bug on SunOS 4.1.3.
11312if $ac_need_defaults; then
11313  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11314  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11315  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11316fi
11317
11318# Have a temporary directory for convenience.  Make it in the build tree
11319# simply because there is no reason against having it here, and in addition,
11320# creating and moving files from /tmp can sometimes cause problems.
11321# Hook for its removal unless debugging.
11322# Note that there is a small window in which the directory will not be cleaned:
11323# after its creation but before its name has been assigned to `$tmp'.
11324$debug ||
11325{
11326  tmp= ac_tmp=
11327  trap 'exit_status=$?
11328  : "${ac_tmp:=$tmp}"
11329  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11330' 0
11331  trap 'as_fn_exit 1' 1 2 13 15
11332}
11333# Create a (secure) tmp directory for tmp files.
11334
11335{
11336  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11337  test -d "$tmp"
11338}  ||
11339{
11340  tmp=./conf$$-$RANDOM
11341  (umask 077 && mkdir "$tmp")
11342} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11343ac_tmp=$tmp
11344
11345# Set up the scripts for CONFIG_FILES section.
11346# No need to generate them if there are no CONFIG_FILES.
11347# This happens for instance with `./config.status config.h'.
11348if test -n "$CONFIG_FILES"; then
11349
11350
11351ac_cr=`echo X | tr X '\015'`
11352# On cygwin, bash can eat \r inside `` if the user requested igncr.
11353# But we know of no other shell where ac_cr would be empty at this
11354# point, so we can use a bashism as a fallback.
11355if test "x$ac_cr" = x; then
11356  eval ac_cr=\$\'\\r\'
11357fi
11358ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11359if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11360  ac_cs_awk_cr='\\r'
11361else
11362  ac_cs_awk_cr=$ac_cr
11363fi
11364
11365echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11366_ACEOF
11367
11368
11369{
11370  echo "cat >conf$$subs.awk <<_ACEOF" &&
11371  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11372  echo "_ACEOF"
11373} >conf$$subs.sh ||
11374  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11375ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11376ac_delim='%!_!# '
11377for ac_last_try in false false false false false :; do
11378  . ./conf$$subs.sh ||
11379    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11380
11381  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11382  if test $ac_delim_n = $ac_delim_num; then
11383    break
11384  elif $ac_last_try; then
11385    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11386  else
11387    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11388  fi
11389done
11390rm -f conf$$subs.sh
11391
11392cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11393cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11394_ACEOF
11395sed -n '
11396h
11397s/^/S["/; s/!.*/"]=/
11398p
11399g
11400s/^[^!]*!//
11401:repl
11402t repl
11403s/'"$ac_delim"'$//
11404t delim
11405:nl
11406h
11407s/\(.\{148\}\)..*/\1/
11408t more1
11409s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11410p
11411n
11412b repl
11413:more1
11414s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11415p
11416g
11417s/.\{148\}//
11418t nl
11419:delim
11420h
11421s/\(.\{148\}\)..*/\1/
11422t more2
11423s/["\\]/\\&/g; s/^/"/; s/$/"/
11424p
11425b
11426:more2
11427s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11428p
11429g
11430s/.\{148\}//
11431t delim
11432' <conf$$subs.awk | sed '
11433/^[^""]/{
11434  N
11435  s/\n//
11436}
11437' >>$CONFIG_STATUS || ac_write_fail=1
11438rm -f conf$$subs.awk
11439cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11440_ACAWK
11441cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11442  for (key in S) S_is_set[key] = 1
11443  FS = ""
11444
11445}
11446{
11447  line = $ 0
11448  nfields = split(line, field, "@")
11449  substed = 0
11450  len = length(field[1])
11451  for (i = 2; i < nfields; i++) {
11452    key = field[i]
11453    keylen = length(key)
11454    if (S_is_set[key]) {
11455      value = S[key]
11456      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11457      len += length(value) + length(field[++i])
11458      substed = 1
11459    } else
11460      len += 1 + keylen
11461  }
11462
11463  print line
11464}
11465
11466_ACAWK
11467_ACEOF
11468cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11469if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11470  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11471else
11472  cat
11473fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11474  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11475_ACEOF
11476
11477# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11478# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11479# trailing colons and then remove the whole line if VPATH becomes empty
11480# (actually we leave an empty line to preserve line numbers).
11481if test "x$srcdir" = x.; then
11482  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
11483h
11484s///
11485s/^/:/
11486s/[	 ]*$/:/
11487s/:\$(srcdir):/:/g
11488s/:\${srcdir}:/:/g
11489s/:@srcdir@:/:/g
11490s/^:*//
11491s/:*$//
11492x
11493s/\(=[	 ]*\).*/\1/
11494G
11495s/\n//
11496s/^[^=]*=[	 ]*$//
11497}'
11498fi
11499
11500cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11501fi # test -n "$CONFIG_FILES"
11502
11503# Set up the scripts for CONFIG_HEADERS section.
11504# No need to generate them if there are no CONFIG_HEADERS.
11505# This happens for instance with `./config.status Makefile'.
11506if test -n "$CONFIG_HEADERS"; then
11507cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11508BEGIN {
11509_ACEOF
11510
11511# Transform confdefs.h into an awk script `defines.awk', embedded as
11512# here-document in config.status, that substitutes the proper values into
11513# config.h.in to produce config.h.
11514
11515# Create a delimiter string that does not exist in confdefs.h, to ease
11516# handling of long lines.
11517ac_delim='%!_!# '
11518for ac_last_try in false false :; do
11519  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11520  if test -z "$ac_tt"; then
11521    break
11522  elif $ac_last_try; then
11523    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11524  else
11525    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11526  fi
11527done
11528
11529# For the awk script, D is an array of macro values keyed by name,
11530# likewise P contains macro parameters if any.  Preserve backslash
11531# newline sequences.
11532
11533ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11534sed -n '
11535s/.\{148\}/&'"$ac_delim"'/g
11536t rset
11537:rset
11538s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
11539t def
11540d
11541:def
11542s/\\$//
11543t bsnl
11544s/["\\]/\\&/g
11545s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11546D["\1"]=" \3"/p
11547s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
11548d
11549:bsnl
11550s/["\\]/\\&/g
11551s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11552D["\1"]=" \3\\\\\\n"\\/p
11553t cont
11554s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11555t cont
11556d
11557:cont
11558n
11559s/.\{148\}/&'"$ac_delim"'/g
11560t clear
11561:clear
11562s/\\$//
11563t bsnlc
11564s/["\\]/\\&/g; s/^/"/; s/$/"/p
11565d
11566:bsnlc
11567s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11568b cont
11569' <confdefs.h | sed '
11570s/'"$ac_delim"'/"\\\
11571"/g' >>$CONFIG_STATUS || ac_write_fail=1
11572
11573cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11574  for (key in D) D_is_set[key] = 1
11575  FS = ""
11576}
11577/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11578  line = \$ 0
11579  split(line, arg, " ")
11580  if (arg[1] == "#") {
11581    defundef = arg[2]
11582    mac1 = arg[3]
11583  } else {
11584    defundef = substr(arg[1], 2)
11585    mac1 = arg[2]
11586  }
11587  split(mac1, mac2, "(") #)
11588  macro = mac2[1]
11589  prefix = substr(line, 1, index(line, defundef) - 1)
11590  if (D_is_set[macro]) {
11591    # Preserve the white space surrounding the "#".
11592    print prefix "define", macro P[macro] D[macro]
11593    next
11594  } else {
11595    # Replace #undef with comments.  This is necessary, for example,
11596    # in the case of _POSIX_SOURCE, which is predefined and required
11597    # on some systems where configure will not decide to define it.
11598    if (defundef == "undef") {
11599      print "/*", prefix defundef, macro, "*/"
11600      next
11601    }
11602  }
11603}
11604{ print }
11605_ACAWK
11606_ACEOF
11607cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11608  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11609fi # test -n "$CONFIG_HEADERS"
11610
11611
11612eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
11613shift
11614for ac_tag
11615do
11616  case $ac_tag in
11617  :[FHLC]) ac_mode=$ac_tag; continue;;
11618  esac
11619  case $ac_mode$ac_tag in
11620  :[FHL]*:*);;
11621  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11622  :[FH]-) ac_tag=-:-;;
11623  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11624  esac
11625  ac_save_IFS=$IFS
11626  IFS=:
11627  set x $ac_tag
11628  IFS=$ac_save_IFS
11629  shift
11630  ac_file=$1
11631  shift
11632
11633  case $ac_mode in
11634  :L) ac_source=$1;;
11635  :[FH])
11636    ac_file_inputs=
11637    for ac_f
11638    do
11639      case $ac_f in
11640      -) ac_f="$ac_tmp/stdin";;
11641      *) # Look for the file first in the build tree, then in the source tree
11642	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
11643	 # because $ac_f cannot contain `:'.
11644	 test -f "$ac_f" ||
11645	   case $ac_f in
11646	   [\\/$]*) false;;
11647	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11648	   esac ||
11649	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11650      esac
11651      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11652      as_fn_append ac_file_inputs " '$ac_f'"
11653    done
11654
11655    # Let's still pretend it is `configure' which instantiates (i.e., don't
11656    # use $as_me), people would be surprised to read:
11657    #    /* config.h.  Generated by config.status.  */
11658    configure_input='Generated from '`
11659	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11660	`' by configure.'
11661    if test x"$ac_file" != x-; then
11662      configure_input="$ac_file.  $configure_input"
11663      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11664$as_echo "$as_me: creating $ac_file" >&6;}
11665    fi
11666    # Neutralize special characters interpreted by sed in replacement strings.
11667    case $configure_input in #(
11668    *\&* | *\|* | *\\* )
11669       ac_sed_conf_input=`$as_echo "$configure_input" |
11670       sed 's/[\\\\&|]/\\\\&/g'`;; #(
11671    *) ac_sed_conf_input=$configure_input;;
11672    esac
11673
11674    case $ac_tag in
11675    *:-:* | *:-) cat >"$ac_tmp/stdin" \
11676      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11677    esac
11678    ;;
11679  esac
11680
11681  ac_dir=`$as_dirname -- "$ac_file" ||
11682$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11683	 X"$ac_file" : 'X\(//\)[^/]' \| \
11684	 X"$ac_file" : 'X\(//\)$' \| \
11685	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11686$as_echo X"$ac_file" |
11687    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11688	    s//\1/
11689	    q
11690	  }
11691	  /^X\(\/\/\)[^/].*/{
11692	    s//\1/
11693	    q
11694	  }
11695	  /^X\(\/\/\)$/{
11696	    s//\1/
11697	    q
11698	  }
11699	  /^X\(\/\).*/{
11700	    s//\1/
11701	    q
11702	  }
11703	  s/.*/./; q'`
11704  as_dir="$ac_dir"; as_fn_mkdir_p
11705  ac_builddir=.
11706
11707case "$ac_dir" in
11708.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11709*)
11710  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11711  # A ".." for each directory in $ac_dir_suffix.
11712  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11713  case $ac_top_builddir_sub in
11714  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11715  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11716  esac ;;
11717esac
11718ac_abs_top_builddir=$ac_pwd
11719ac_abs_builddir=$ac_pwd$ac_dir_suffix
11720# for backward compatibility:
11721ac_top_builddir=$ac_top_build_prefix
11722
11723case $srcdir in
11724  .)  # We are building in place.
11725    ac_srcdir=.
11726    ac_top_srcdir=$ac_top_builddir_sub
11727    ac_abs_top_srcdir=$ac_pwd ;;
11728  [\\/]* | ?:[\\/]* )  # Absolute name.
11729    ac_srcdir=$srcdir$ac_dir_suffix;
11730    ac_top_srcdir=$srcdir
11731    ac_abs_top_srcdir=$srcdir ;;
11732  *) # Relative name.
11733    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11734    ac_top_srcdir=$ac_top_build_prefix$srcdir
11735    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11736esac
11737ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11738
11739
11740  case $ac_mode in
11741  :F)
11742  #
11743  # CONFIG_FILE
11744  #
11745
11746  case $INSTALL in
11747  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11748  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11749  esac
11750  ac_MKDIR_P=$MKDIR_P
11751  case $MKDIR_P in
11752  [\\/$]* | ?:[\\/]* ) ;;
11753  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11754  esac
11755_ACEOF
11756
11757cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11758# If the template does not know about datarootdir, expand it.
11759# FIXME: This hack should be removed a few years after 2.60.
11760ac_datarootdir_hack=; ac_datarootdir_seen=
11761ac_sed_dataroot='
11762/datarootdir/ {
11763  p
11764  q
11765}
11766/@datadir@/p
11767/@docdir@/p
11768/@infodir@/p
11769/@localedir@/p
11770/@mandir@/p'
11771case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11772*datarootdir*) ac_datarootdir_seen=yes;;
11773*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11774  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11775$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11776_ACEOF
11777cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11778  ac_datarootdir_hack='
11779  s&@datadir@&$datadir&g
11780  s&@docdir@&$docdir&g
11781  s&@infodir@&$infodir&g
11782  s&@localedir@&$localedir&g
11783  s&@mandir@&$mandir&g
11784  s&\\\${datarootdir}&$datarootdir&g' ;;
11785esac
11786_ACEOF
11787
11788# Neutralize VPATH when `$srcdir' = `.'.
11789# Shell code in configure.ac might set extrasub.
11790# FIXME: do we really want to maintain this feature?
11791cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11792ac_sed_extra="$ac_vpsub
11793$extrasub
11794_ACEOF
11795cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11796:t
11797/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11798s|@configure_input@|$ac_sed_conf_input|;t t
11799s&@top_builddir@&$ac_top_builddir_sub&;t t
11800s&@top_build_prefix@&$ac_top_build_prefix&;t t
11801s&@srcdir@&$ac_srcdir&;t t
11802s&@abs_srcdir@&$ac_abs_srcdir&;t t
11803s&@top_srcdir@&$ac_top_srcdir&;t t
11804s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11805s&@builddir@&$ac_builddir&;t t
11806s&@abs_builddir@&$ac_abs_builddir&;t t
11807s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11808s&@INSTALL@&$ac_INSTALL&;t t
11809s&@MKDIR_P@&$ac_MKDIR_P&;t t
11810$ac_datarootdir_hack
11811"
11812eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11813  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11814
11815test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11816  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11817  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
11818      "$ac_tmp/out"`; test -z "$ac_out"; } &&
11819  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11820which seems to be undefined.  Please make sure it is defined" >&5
11821$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11822which seems to be undefined.  Please make sure it is defined" >&2;}
11823
11824  rm -f "$ac_tmp/stdin"
11825  case $ac_file in
11826  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11827  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11828  esac \
11829  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11830 ;;
11831  :H)
11832  #
11833  # CONFIG_HEADER
11834  #
11835  if test x"$ac_file" != x-; then
11836    {
11837      $as_echo "/* $configure_input  */" \
11838      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11839    } >"$ac_tmp/config.h" \
11840      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11841    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11842      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11843$as_echo "$as_me: $ac_file is unchanged" >&6;}
11844    else
11845      rm -f "$ac_file"
11846      mv "$ac_tmp/config.h" "$ac_file" \
11847	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
11848    fi
11849  else
11850    $as_echo "/* $configure_input  */" \
11851      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11852      || as_fn_error $? "could not create -" "$LINENO" 5
11853  fi
11854# Compute "$ac_file"'s index in $config_headers.
11855_am_arg="$ac_file"
11856_am_stamp_count=1
11857for _am_header in $config_headers :; do
11858  case $_am_header in
11859    $_am_arg | $_am_arg:* )
11860      break ;;
11861    * )
11862      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11863  esac
11864done
11865echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11866$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11867	 X"$_am_arg" : 'X\(//\)[^/]' \| \
11868	 X"$_am_arg" : 'X\(//\)$' \| \
11869	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11870$as_echo X"$_am_arg" |
11871    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11872	    s//\1/
11873	    q
11874	  }
11875	  /^X\(\/\/\)[^/].*/{
11876	    s//\1/
11877	    q
11878	  }
11879	  /^X\(\/\/\)$/{
11880	    s//\1/
11881	    q
11882	  }
11883	  /^X\(\/\).*/{
11884	    s//\1/
11885	    q
11886	  }
11887	  s/.*/./; q'`/stamp-h$_am_stamp_count
11888 ;;
11889
11890  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11891$as_echo "$as_me: executing $ac_file commands" >&6;}
11892 ;;
11893  esac
11894
11895
11896  case $ac_file$ac_mode in
11897    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11898  # Autoconf 2.62 quotes --file arguments for eval, but not when files
11899  # are listed without --file.  Let's play safe and only enable the eval
11900  # if we detect the quoting.
11901  case $CONFIG_FILES in
11902  *\'*) eval set x "$CONFIG_FILES" ;;
11903  *)   set x $CONFIG_FILES ;;
11904  esac
11905  shift
11906  for mf
11907  do
11908    # Strip MF so we end up with the name of the file.
11909    mf=`echo "$mf" | sed -e 's/:.*$//'`
11910    # Check whether this is an Automake generated Makefile or not.
11911    # We used to match only the files named `Makefile.in', but
11912    # some people rename them; so instead we look at the file content.
11913    # Grep'ing the first line is not enough: some people post-process
11914    # each Makefile.in and add a new line on top of each file to say so.
11915    # Grep'ing the whole file is not good either: AIX grep has a line
11916    # limit of 2048, but all sed's we know have understand at least 4000.
11917    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11918      dirpart=`$as_dirname -- "$mf" ||
11919$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11920	 X"$mf" : 'X\(//\)[^/]' \| \
11921	 X"$mf" : 'X\(//\)$' \| \
11922	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11923$as_echo X"$mf" |
11924    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11925	    s//\1/
11926	    q
11927	  }
11928	  /^X\(\/\/\)[^/].*/{
11929	    s//\1/
11930	    q
11931	  }
11932	  /^X\(\/\/\)$/{
11933	    s//\1/
11934	    q
11935	  }
11936	  /^X\(\/\).*/{
11937	    s//\1/
11938	    q
11939	  }
11940	  s/.*/./; q'`
11941    else
11942      continue
11943    fi
11944    # Extract the definition of DEPDIR, am__include, and am__quote
11945    # from the Makefile without running `make'.
11946    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11947    test -z "$DEPDIR" && continue
11948    am__include=`sed -n 's/^am__include = //p' < "$mf"`
11949    test -z "am__include" && continue
11950    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11951    # When using ansi2knr, U may be empty or an underscore; expand it
11952    U=`sed -n 's/^U = //p' < "$mf"`
11953    # Find all dependency output files, they are included files with
11954    # $(DEPDIR) in their names.  We invoke sed twice because it is the
11955    # simplest approach to changing $(DEPDIR) to its actual value in the
11956    # expansion.
11957    for file in `sed -n "
11958      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11959	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11960      # Make sure the directory exists.
11961      test -f "$dirpart/$file" && continue
11962      fdir=`$as_dirname -- "$file" ||
11963$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11964	 X"$file" : 'X\(//\)[^/]' \| \
11965	 X"$file" : 'X\(//\)$' \| \
11966	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11967$as_echo X"$file" |
11968    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11969	    s//\1/
11970	    q
11971	  }
11972	  /^X\(\/\/\)[^/].*/{
11973	    s//\1/
11974	    q
11975	  }
11976	  /^X\(\/\/\)$/{
11977	    s//\1/
11978	    q
11979	  }
11980	  /^X\(\/\).*/{
11981	    s//\1/
11982	    q
11983	  }
11984	  s/.*/./; q'`
11985      as_dir=$dirpart/$fdir; as_fn_mkdir_p
11986      # echo "creating $dirpart/$file"
11987      echo '# dummy' > "$dirpart/$file"
11988    done
11989  done
11990}
11991 ;;
11992
11993  esac
11994done # for ac_tag
11995
11996
11997as_fn_exit 0
11998_ACEOF
11999ac_clean_files=$ac_clean_files_save
12000
12001test $ac_write_fail = 0 ||
12002  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12003
12004
12005# configure is writing to config.log, and then calls config.status.
12006# config.status does its own redirection, appending to config.log.
12007# Unfortunately, on DOS this fails, as config.log is still kept open
12008# by configure, so config.status won't be able to write to it; its
12009# output is simply discarded.  So we exec the FD to /dev/null,
12010# effectively closing config.log, so it can be properly (re)opened and
12011# appended to by config.status.  When coming back to configure, we
12012# need to make the FD available again.
12013if test "$no_create" != yes; then
12014  ac_cs_success=:
12015  ac_config_status_args=
12016  test "$silent" = yes &&
12017    ac_config_status_args="$ac_config_status_args --quiet"
12018  exec 5>/dev/null
12019  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12020  exec 5>>config.log
12021  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12022  # would make configure fail if this is the last instruction.
12023  $ac_cs_success || as_fn_exit 1
12024fi
12025if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12026  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12027$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12028fi
12029
12030