configure revision 1afad795
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for xfd 1.1.2.
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='xfd'
563PACKAGE_TARNAME='xfd'
564PACKAGE_VERSION='1.1.2'
565PACKAGE_STRING='xfd 1.1.2'
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
613XFD_LIBS
614XFD_CFLAGS
615USE_GETTEXT_FALSE
616USE_GETTEXT_TRUE
617LOCALEDIR
618MAN_SUBSTS
619XORG_MAN_PAGE
620ADMIN_MAN_DIR
621DRIVER_MAN_DIR
622MISC_MAN_DIR
623FILE_MAN_DIR
624LIB_MAN_DIR
625APP_MAN_DIR
626ADMIN_MAN_SUFFIX
627DRIVER_MAN_SUFFIX
628MISC_MAN_SUFFIX
629FILE_MAN_SUFFIX
630LIB_MAN_SUFFIX
631APP_MAN_SUFFIX
632SED
633host_os
634host_vendor
635host_cpu
636host
637build_os
638build_vendor
639build_cpu
640build
641INSTALL_CMD
642PKG_CONFIG
643CHANGELOG_CMD
644STRICT_CFLAGS
645CWARNFLAGS
646BASE_CFLAGS
647EGREP
648GREP
649CPP
650am__fastdepCC_FALSE
651am__fastdepCC_TRUE
652CCDEPMODE
653am__nodep
654AMDEPBACKSLASH
655AMDEP_FALSE
656AMDEP_TRUE
657am__quote
658am__include
659DEPDIR
660OBJEXT
661EXEEXT
662ac_ct_CC
663CPPFLAGS
664LDFLAGS
665CFLAGS
666CC
667MAINT
668MAINTAINER_MODE_FALSE
669MAINTAINER_MODE_TRUE
670AM_BACKSLASH
671AM_DEFAULT_VERBOSITY
672AM_DEFAULT_V
673AM_V
674am__untar
675am__tar
676AMTAR
677am__leading_dot
678SET_MAKE
679AWK
680mkdir_p
681MKDIR_P
682INSTALL_STRIP_PROGRAM
683STRIP
684install_sh
685MAKEINFO
686AUTOHEADER
687AUTOMAKE
688AUTOCONF
689ACLOCAL
690VERSION
691PACKAGE
692CYGPATH_W
693am__isrc
694INSTALL_DATA
695INSTALL_SCRIPT
696INSTALL_PROGRAM
697target_alias
698host_alias
699build_alias
700LIBS
701ECHO_T
702ECHO_N
703ECHO_C
704DEFS
705mandir
706localedir
707libdir
708psdir
709pdfdir
710dvidir
711htmldir
712infodir
713docdir
714oldincludedir
715includedir
716localstatedir
717sharedstatedir
718sysconfdir
719datadir
720datarootdir
721libexecdir
722sbindir
723bindir
724program_transform_name
725prefix
726exec_prefix
727PACKAGE_URL
728PACKAGE_BUGREPORT
729PACKAGE_STRING
730PACKAGE_VERSION
731PACKAGE_TARNAME
732PACKAGE_NAME
733PATH_SEPARATOR
734SHELL'
735ac_subst_files=''
736ac_user_opts='
737enable_option_checking
738enable_silent_rules
739enable_maintainer_mode
740enable_dependency_tracking
741enable_selective_werror
742enable_strict_compilation
743with_localedir
744with_appdefaultdir
745'
746      ac_precious_vars='build_alias
747host_alias
748target_alias
749CC
750CFLAGS
751LDFLAGS
752LIBS
753CPPFLAGS
754CPP
755PKG_CONFIG
756XFD_CFLAGS
757XFD_LIBS
758APPDEFS_CFLAGS
759APPDEFS_LIBS'
760
761
762# Initialize some variables set by options.
763ac_init_help=
764ac_init_version=false
765ac_unrecognized_opts=
766ac_unrecognized_sep=
767# The variables have the same names as the options, with
768# dashes changed to underlines.
769cache_file=/dev/null
770exec_prefix=NONE
771no_create=
772no_recursion=
773prefix=NONE
774program_prefix=NONE
775program_suffix=NONE
776program_transform_name=s,x,x,
777silent=
778site=
779srcdir=
780verbose=
781x_includes=NONE
782x_libraries=NONE
783
784# Installation directory options.
785# These are left unexpanded so users can "make install exec_prefix=/foo"
786# and all the variables that are supposed to be based on exec_prefix
787# by default will actually change.
788# Use braces instead of parens because sh, perl, etc. also accept them.
789# (The list follows the same order as the GNU Coding Standards.)
790bindir='${exec_prefix}/bin'
791sbindir='${exec_prefix}/sbin'
792libexecdir='${exec_prefix}/libexec'
793datarootdir='${prefix}/share'
794datadir='${datarootdir}'
795sysconfdir='${prefix}/etc'
796sharedstatedir='${prefix}/com'
797localstatedir='${prefix}/var'
798includedir='${prefix}/include'
799oldincludedir='/usr/include'
800docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
801infodir='${datarootdir}/info'
802htmldir='${docdir}'
803dvidir='${docdir}'
804pdfdir='${docdir}'
805psdir='${docdir}'
806libdir='${exec_prefix}/lib'
807localedir='${datarootdir}/locale'
808mandir='${datarootdir}/man'
809
810ac_prev=
811ac_dashdash=
812for ac_option
813do
814  # If the previous option needs an argument, assign it.
815  if test -n "$ac_prev"; then
816    eval $ac_prev=\$ac_option
817    ac_prev=
818    continue
819  fi
820
821  case $ac_option in
822  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
823  *=)   ac_optarg= ;;
824  *)    ac_optarg=yes ;;
825  esac
826
827  # Accept the important Cygnus configure options, so we can diagnose typos.
828
829  case $ac_dashdash$ac_option in
830  --)
831    ac_dashdash=yes ;;
832
833  -bindir | --bindir | --bindi | --bind | --bin | --bi)
834    ac_prev=bindir ;;
835  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
836    bindir=$ac_optarg ;;
837
838  -build | --build | --buil | --bui | --bu)
839    ac_prev=build_alias ;;
840  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
841    build_alias=$ac_optarg ;;
842
843  -cache-file | --cache-file | --cache-fil | --cache-fi \
844  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
845    ac_prev=cache_file ;;
846  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
847  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
848    cache_file=$ac_optarg ;;
849
850  --config-cache | -C)
851    cache_file=config.cache ;;
852
853  -datadir | --datadir | --datadi | --datad)
854    ac_prev=datadir ;;
855  -datadir=* | --datadir=* | --datadi=* | --datad=*)
856    datadir=$ac_optarg ;;
857
858  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
859  | --dataroo | --dataro | --datar)
860    ac_prev=datarootdir ;;
861  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
862  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
863    datarootdir=$ac_optarg ;;
864
865  -disable-* | --disable-*)
866    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
867    # Reject names that are not valid shell variable names.
868    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
869      as_fn_error $? "invalid feature name: $ac_useropt"
870    ac_useropt_orig=$ac_useropt
871    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
872    case $ac_user_opts in
873      *"
874"enable_$ac_useropt"
875"*) ;;
876      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
877	 ac_unrecognized_sep=', ';;
878    esac
879    eval enable_$ac_useropt=no ;;
880
881  -docdir | --docdir | --docdi | --doc | --do)
882    ac_prev=docdir ;;
883  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
884    docdir=$ac_optarg ;;
885
886  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
887    ac_prev=dvidir ;;
888  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
889    dvidir=$ac_optarg ;;
890
891  -enable-* | --enable-*)
892    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
893    # Reject names that are not valid shell variable names.
894    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895      as_fn_error $? "invalid feature name: $ac_useropt"
896    ac_useropt_orig=$ac_useropt
897    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898    case $ac_user_opts in
899      *"
900"enable_$ac_useropt"
901"*) ;;
902      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
903	 ac_unrecognized_sep=', ';;
904    esac
905    eval enable_$ac_useropt=\$ac_optarg ;;
906
907  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
908  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
909  | --exec | --exe | --ex)
910    ac_prev=exec_prefix ;;
911  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
912  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
913  | --exec=* | --exe=* | --ex=*)
914    exec_prefix=$ac_optarg ;;
915
916  -gas | --gas | --ga | --g)
917    # Obsolete; use --with-gas.
918    with_gas=yes ;;
919
920  -help | --help | --hel | --he | -h)
921    ac_init_help=long ;;
922  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
923    ac_init_help=recursive ;;
924  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
925    ac_init_help=short ;;
926
927  -host | --host | --hos | --ho)
928    ac_prev=host_alias ;;
929  -host=* | --host=* | --hos=* | --ho=*)
930    host_alias=$ac_optarg ;;
931
932  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
933    ac_prev=htmldir ;;
934  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
935  | --ht=*)
936    htmldir=$ac_optarg ;;
937
938  -includedir | --includedir | --includedi | --included | --include \
939  | --includ | --inclu | --incl | --inc)
940    ac_prev=includedir ;;
941  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
942  | --includ=* | --inclu=* | --incl=* | --inc=*)
943    includedir=$ac_optarg ;;
944
945  -infodir | --infodir | --infodi | --infod | --info | --inf)
946    ac_prev=infodir ;;
947  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
948    infodir=$ac_optarg ;;
949
950  -libdir | --libdir | --libdi | --libd)
951    ac_prev=libdir ;;
952  -libdir=* | --libdir=* | --libdi=* | --libd=*)
953    libdir=$ac_optarg ;;
954
955  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
956  | --libexe | --libex | --libe)
957    ac_prev=libexecdir ;;
958  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
959  | --libexe=* | --libex=* | --libe=*)
960    libexecdir=$ac_optarg ;;
961
962  -localedir | --localedir | --localedi | --localed | --locale)
963    ac_prev=localedir ;;
964  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
965    localedir=$ac_optarg ;;
966
967  -localstatedir | --localstatedir | --localstatedi | --localstated \
968  | --localstate | --localstat | --localsta | --localst | --locals)
969    ac_prev=localstatedir ;;
970  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
971  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
972    localstatedir=$ac_optarg ;;
973
974  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
975    ac_prev=mandir ;;
976  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
977    mandir=$ac_optarg ;;
978
979  -nfp | --nfp | --nf)
980    # Obsolete; use --without-fp.
981    with_fp=no ;;
982
983  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
984  | --no-cr | --no-c | -n)
985    no_create=yes ;;
986
987  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
988  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
989    no_recursion=yes ;;
990
991  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
992  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
993  | --oldin | --oldi | --old | --ol | --o)
994    ac_prev=oldincludedir ;;
995  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
996  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
997  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
998    oldincludedir=$ac_optarg ;;
999
1000  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1001    ac_prev=prefix ;;
1002  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1003    prefix=$ac_optarg ;;
1004
1005  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1006  | --program-pre | --program-pr | --program-p)
1007    ac_prev=program_prefix ;;
1008  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1009  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1010    program_prefix=$ac_optarg ;;
1011
1012  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1013  | --program-suf | --program-su | --program-s)
1014    ac_prev=program_suffix ;;
1015  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1016  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1017    program_suffix=$ac_optarg ;;
1018
1019  -program-transform-name | --program-transform-name \
1020  | --program-transform-nam | --program-transform-na \
1021  | --program-transform-n | --program-transform- \
1022  | --program-transform | --program-transfor \
1023  | --program-transfo | --program-transf \
1024  | --program-trans | --program-tran \
1025  | --progr-tra | --program-tr | --program-t)
1026    ac_prev=program_transform_name ;;
1027  -program-transform-name=* | --program-transform-name=* \
1028  | --program-transform-nam=* | --program-transform-na=* \
1029  | --program-transform-n=* | --program-transform-=* \
1030  | --program-transform=* | --program-transfor=* \
1031  | --program-transfo=* | --program-transf=* \
1032  | --program-trans=* | --program-tran=* \
1033  | --progr-tra=* | --program-tr=* | --program-t=*)
1034    program_transform_name=$ac_optarg ;;
1035
1036  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1037    ac_prev=pdfdir ;;
1038  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1039    pdfdir=$ac_optarg ;;
1040
1041  -psdir | --psdir | --psdi | --psd | --ps)
1042    ac_prev=psdir ;;
1043  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1044    psdir=$ac_optarg ;;
1045
1046  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1047  | -silent | --silent | --silen | --sile | --sil)
1048    silent=yes ;;
1049
1050  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1051    ac_prev=sbindir ;;
1052  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1053  | --sbi=* | --sb=*)
1054    sbindir=$ac_optarg ;;
1055
1056  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1057  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1058  | --sharedst | --shareds | --shared | --share | --shar \
1059  | --sha | --sh)
1060    ac_prev=sharedstatedir ;;
1061  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1062  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1063  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1064  | --sha=* | --sh=*)
1065    sharedstatedir=$ac_optarg ;;
1066
1067  -site | --site | --sit)
1068    ac_prev=site ;;
1069  -site=* | --site=* | --sit=*)
1070    site=$ac_optarg ;;
1071
1072  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1073    ac_prev=srcdir ;;
1074  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1075    srcdir=$ac_optarg ;;
1076
1077  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1078  | --syscon | --sysco | --sysc | --sys | --sy)
1079    ac_prev=sysconfdir ;;
1080  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1081  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1082    sysconfdir=$ac_optarg ;;
1083
1084  -target | --target | --targe | --targ | --tar | --ta | --t)
1085    ac_prev=target_alias ;;
1086  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1087    target_alias=$ac_optarg ;;
1088
1089  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1090    verbose=yes ;;
1091
1092  -version | --version | --versio | --versi | --vers | -V)
1093    ac_init_version=: ;;
1094
1095  -with-* | --with-*)
1096    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1097    # Reject names that are not valid shell variable names.
1098    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099      as_fn_error $? "invalid package name: $ac_useropt"
1100    ac_useropt_orig=$ac_useropt
1101    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102    case $ac_user_opts in
1103      *"
1104"with_$ac_useropt"
1105"*) ;;
1106      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1107	 ac_unrecognized_sep=', ';;
1108    esac
1109    eval with_$ac_useropt=\$ac_optarg ;;
1110
1111  -without-* | --without-*)
1112    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1113    # Reject names that are not valid shell variable names.
1114    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115      as_fn_error $? "invalid package name: $ac_useropt"
1116    ac_useropt_orig=$ac_useropt
1117    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118    case $ac_user_opts in
1119      *"
1120"with_$ac_useropt"
1121"*) ;;
1122      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1123	 ac_unrecognized_sep=', ';;
1124    esac
1125    eval with_$ac_useropt=no ;;
1126
1127  --x)
1128    # Obsolete; use --with-x.
1129    with_x=yes ;;
1130
1131  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1132  | --x-incl | --x-inc | --x-in | --x-i)
1133    ac_prev=x_includes ;;
1134  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1135  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1136    x_includes=$ac_optarg ;;
1137
1138  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1139  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1140    ac_prev=x_libraries ;;
1141  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1142  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1143    x_libraries=$ac_optarg ;;
1144
1145  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1146Try \`$0 --help' for more information"
1147    ;;
1148
1149  *=*)
1150    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1151    # Reject names that are not valid shell variable names.
1152    case $ac_envvar in #(
1153      '' | [0-9]* | *[!_$as_cr_alnum]* )
1154      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1155    esac
1156    eval $ac_envvar=\$ac_optarg
1157    export $ac_envvar ;;
1158
1159  *)
1160    # FIXME: should be removed in autoconf 3.0.
1161    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1162    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1163      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1164    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1165    ;;
1166
1167  esac
1168done
1169
1170if test -n "$ac_prev"; then
1171  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1172  as_fn_error $? "missing argument to $ac_option"
1173fi
1174
1175if test -n "$ac_unrecognized_opts"; then
1176  case $enable_option_checking in
1177    no) ;;
1178    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1179    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1180  esac
1181fi
1182
1183# Check all directory arguments for consistency.
1184for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1185		datadir sysconfdir sharedstatedir localstatedir includedir \
1186		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1187		libdir localedir mandir
1188do
1189  eval ac_val=\$$ac_var
1190  # Remove trailing slashes.
1191  case $ac_val in
1192    */ )
1193      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1194      eval $ac_var=\$ac_val;;
1195  esac
1196  # Be sure to have absolute directory names.
1197  case $ac_val in
1198    [\\/$]* | ?:[\\/]* )  continue;;
1199    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1200  esac
1201  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1202done
1203
1204# There might be people who depend on the old broken behavior: `$host'
1205# used to hold the argument of --host etc.
1206# FIXME: To remove some day.
1207build=$build_alias
1208host=$host_alias
1209target=$target_alias
1210
1211# FIXME: To remove some day.
1212if test "x$host_alias" != x; then
1213  if test "x$build_alias" = x; then
1214    cross_compiling=maybe
1215    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1216    If a cross compiler is detected then cross compile mode will be used" >&2
1217  elif test "x$build_alias" != "x$host_alias"; then
1218    cross_compiling=yes
1219  fi
1220fi
1221
1222ac_tool_prefix=
1223test -n "$host_alias" && ac_tool_prefix=$host_alias-
1224
1225test "$silent" = yes && exec 6>/dev/null
1226
1227
1228ac_pwd=`pwd` && test -n "$ac_pwd" &&
1229ac_ls_di=`ls -di .` &&
1230ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1231  as_fn_error $? "working directory cannot be determined"
1232test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1233  as_fn_error $? "pwd does not report name of working directory"
1234
1235
1236# Find the source files, if location was not specified.
1237if test -z "$srcdir"; then
1238  ac_srcdir_defaulted=yes
1239  # Try the directory containing this script, then the parent directory.
1240  ac_confdir=`$as_dirname -- "$as_myself" ||
1241$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1242	 X"$as_myself" : 'X\(//\)[^/]' \| \
1243	 X"$as_myself" : 'X\(//\)$' \| \
1244	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1245$as_echo X"$as_myself" |
1246    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1247	    s//\1/
1248	    q
1249	  }
1250	  /^X\(\/\/\)[^/].*/{
1251	    s//\1/
1252	    q
1253	  }
1254	  /^X\(\/\/\)$/{
1255	    s//\1/
1256	    q
1257	  }
1258	  /^X\(\/\).*/{
1259	    s//\1/
1260	    q
1261	  }
1262	  s/.*/./; q'`
1263  srcdir=$ac_confdir
1264  if test ! -r "$srcdir/$ac_unique_file"; then
1265    srcdir=..
1266  fi
1267else
1268  ac_srcdir_defaulted=no
1269fi
1270if test ! -r "$srcdir/$ac_unique_file"; then
1271  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1272  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1273fi
1274ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1275ac_abs_confdir=`(
1276	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1277	pwd)`
1278# When building in place, set srcdir=.
1279if test "$ac_abs_confdir" = "$ac_pwd"; then
1280  srcdir=.
1281fi
1282# Remove unnecessary trailing slashes from srcdir.
1283# Double slashes in file names in object file debugging info
1284# mess up M-x gdb in Emacs.
1285case $srcdir in
1286*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1287esac
1288for ac_var in $ac_precious_vars; do
1289  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1290  eval ac_env_${ac_var}_value=\$${ac_var}
1291  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1292  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1293done
1294
1295#
1296# Report the --help message.
1297#
1298if test "$ac_init_help" = "long"; then
1299  # Omit some internal or obsolete options to make the list less imposing.
1300  # This message is too long to be a string in the A/UX 3.1 sh.
1301  cat <<_ACEOF
1302\`configure' configures xfd 1.1.2 to adapt to many kinds of systems.
1303
1304Usage: $0 [OPTION]... [VAR=VALUE]...
1305
1306To assign environment variables (e.g., CC, CFLAGS...), specify them as
1307VAR=VALUE.  See below for descriptions of some of the useful variables.
1308
1309Defaults for the options are specified in brackets.
1310
1311Configuration:
1312  -h, --help              display this help and exit
1313      --help=short        display options specific to this package
1314      --help=recursive    display the short help of all the included packages
1315  -V, --version           display version information and exit
1316  -q, --quiet, --silent   do not print \`checking ...' messages
1317      --cache-file=FILE   cache test results in FILE [disabled]
1318  -C, --config-cache      alias for \`--cache-file=config.cache'
1319  -n, --no-create         do not create output files
1320      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1321
1322Installation directories:
1323  --prefix=PREFIX         install architecture-independent files in PREFIX
1324                          [$ac_default_prefix]
1325  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1326                          [PREFIX]
1327
1328By default, \`make install' will install all the files in
1329\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1330an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1331for instance \`--prefix=\$HOME'.
1332
1333For better control, use the options below.
1334
1335Fine tuning of the installation directories:
1336  --bindir=DIR            user executables [EPREFIX/bin]
1337  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1338  --libexecdir=DIR        program executables [EPREFIX/libexec]
1339  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1340  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1341  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1342  --libdir=DIR            object code libraries [EPREFIX/lib]
1343  --includedir=DIR        C header files [PREFIX/include]
1344  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1345  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1346  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1347  --infodir=DIR           info documentation [DATAROOTDIR/info]
1348  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1349  --mandir=DIR            man documentation [DATAROOTDIR/man]
1350  --docdir=DIR            documentation root [DATAROOTDIR/doc/xfd]
1351  --htmldir=DIR           html documentation [DOCDIR]
1352  --dvidir=DIR            dvi documentation [DOCDIR]
1353  --pdfdir=DIR            pdf documentation [DOCDIR]
1354  --psdir=DIR             ps documentation [DOCDIR]
1355_ACEOF
1356
1357  cat <<\_ACEOF
1358
1359Program names:
1360  --program-prefix=PREFIX            prepend PREFIX to installed program names
1361  --program-suffix=SUFFIX            append SUFFIX to installed program names
1362  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1363
1364System types:
1365  --build=BUILD     configure for building on BUILD [guessed]
1366  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1367_ACEOF
1368fi
1369
1370if test -n "$ac_init_help"; then
1371  case $ac_init_help in
1372     short | recursive ) echo "Configuration of xfd 1.1.2:";;
1373   esac
1374  cat <<\_ACEOF
1375
1376Optional Features:
1377  --disable-option-checking  ignore unrecognized --enable/--with options
1378  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1379  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1380  --enable-silent-rules   less verbose build output (undo: "make V=1")
1381  --disable-silent-rules  verbose build output (undo: "make V=0")
1382  --enable-maintainer-mode
1383                          enable make rules and dependencies not useful (and
1384                          sometimes confusing) to the casual installer
1385  --enable-dependency-tracking
1386                          do not reject slow dependency extractors
1387  --disable-dependency-tracking
1388                          speeds up one-time build
1389  --disable-selective-werror
1390                          Turn off selective compiler errors. (default:
1391                          enabled)
1392  --enable-strict-compilation
1393                          Enable all warnings from compiler and make them
1394                          errors (default: disabled)
1395
1396Optional Packages:
1397  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1398  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1399  --with-localedir=<path> Path to install message files in (default:
1400                          datadir/locale)
1401  --with-appdefaultdir=<pathname>
1402                          specify directory for app-defaults files (default is
1403                          autodetected)
1404
1405Some influential environment variables:
1406  CC          C compiler command
1407  CFLAGS      C compiler flags
1408  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1409              nonstandard directory <lib dir>
1410  LIBS        libraries to pass to the linker, e.g. -l<library>
1411  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1412              you have headers in a nonstandard directory <include dir>
1413  CPP         C preprocessor
1414  PKG_CONFIG  path to pkg-config utility
1415  XFD_CFLAGS  C compiler flags for XFD, overriding pkg-config
1416  XFD_LIBS    linker flags for XFD, overriding pkg-config
1417  APPDEFS_CFLAGS
1418              C compiler flags for APPDEFS, overriding pkg-config
1419  APPDEFS_LIBS
1420              linker flags for APPDEFS, overriding pkg-config
1421
1422Use these variables to override the choices made by `configure' or to help
1423it to find libraries and programs with nonstandard names/locations.
1424
1425Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1426_ACEOF
1427ac_status=$?
1428fi
1429
1430if test "$ac_init_help" = "recursive"; then
1431  # If there are subdirs, report their specific --help.
1432  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1433    test -d "$ac_dir" ||
1434      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1435      continue
1436    ac_builddir=.
1437
1438case "$ac_dir" in
1439.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1440*)
1441  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1442  # A ".." for each directory in $ac_dir_suffix.
1443  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1444  case $ac_top_builddir_sub in
1445  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1446  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1447  esac ;;
1448esac
1449ac_abs_top_builddir=$ac_pwd
1450ac_abs_builddir=$ac_pwd$ac_dir_suffix
1451# for backward compatibility:
1452ac_top_builddir=$ac_top_build_prefix
1453
1454case $srcdir in
1455  .)  # We are building in place.
1456    ac_srcdir=.
1457    ac_top_srcdir=$ac_top_builddir_sub
1458    ac_abs_top_srcdir=$ac_pwd ;;
1459  [\\/]* | ?:[\\/]* )  # Absolute name.
1460    ac_srcdir=$srcdir$ac_dir_suffix;
1461    ac_top_srcdir=$srcdir
1462    ac_abs_top_srcdir=$srcdir ;;
1463  *) # Relative name.
1464    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1465    ac_top_srcdir=$ac_top_build_prefix$srcdir
1466    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1467esac
1468ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1469
1470    cd "$ac_dir" || { ac_status=$?; continue; }
1471    # Check for guested configure.
1472    if test -f "$ac_srcdir/configure.gnu"; then
1473      echo &&
1474      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1475    elif test -f "$ac_srcdir/configure"; then
1476      echo &&
1477      $SHELL "$ac_srcdir/configure" --help=recursive
1478    else
1479      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1480    fi || ac_status=$?
1481    cd "$ac_pwd" || { ac_status=$?; break; }
1482  done
1483fi
1484
1485test -n "$ac_init_help" && exit $ac_status
1486if $ac_init_version; then
1487  cat <<\_ACEOF
1488xfd configure 1.1.2
1489generated by GNU Autoconf 2.68
1490
1491Copyright (C) 2010 Free Software Foundation, Inc.
1492This configure script is free software; the Free Software Foundation
1493gives unlimited permission to copy, distribute and modify it.
1494_ACEOF
1495  exit
1496fi
1497
1498## ------------------------ ##
1499## Autoconf initialization. ##
1500## ------------------------ ##
1501
1502# ac_fn_c_try_compile LINENO
1503# --------------------------
1504# Try to compile conftest.$ac_ext, and return whether this succeeded.
1505ac_fn_c_try_compile ()
1506{
1507  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1508  rm -f conftest.$ac_objext
1509  if { { ac_try="$ac_compile"
1510case "(($ac_try" in
1511  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1512  *) ac_try_echo=$ac_try;;
1513esac
1514eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1515$as_echo "$ac_try_echo"; } >&5
1516  (eval "$ac_compile") 2>conftest.err
1517  ac_status=$?
1518  if test -s conftest.err; then
1519    grep -v '^ *+' conftest.err >conftest.er1
1520    cat conftest.er1 >&5
1521    mv -f conftest.er1 conftest.err
1522  fi
1523  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1524  test $ac_status = 0; } && {
1525	 test -z "$ac_c_werror_flag" ||
1526	 test ! -s conftest.err
1527       } && test -s conftest.$ac_objext; then :
1528  ac_retval=0
1529else
1530  $as_echo "$as_me: failed program was:" >&5
1531sed 's/^/| /' conftest.$ac_ext >&5
1532
1533	ac_retval=1
1534fi
1535  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1536  as_fn_set_status $ac_retval
1537
1538} # ac_fn_c_try_compile
1539
1540# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1541# ---------------------------------------------
1542# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1543# accordingly.
1544ac_fn_c_check_decl ()
1545{
1546  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1547  as_decl_name=`echo $2|sed 's/ *(.*//'`
1548  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1549  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1550$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1551if eval \${$3+:} false; then :
1552  $as_echo_n "(cached) " >&6
1553else
1554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1555/* end confdefs.h.  */
1556$4
1557int
1558main ()
1559{
1560#ifndef $as_decl_name
1561#ifdef __cplusplus
1562  (void) $as_decl_use;
1563#else
1564  (void) $as_decl_name;
1565#endif
1566#endif
1567
1568  ;
1569  return 0;
1570}
1571_ACEOF
1572if ac_fn_c_try_compile "$LINENO"; then :
1573  eval "$3=yes"
1574else
1575  eval "$3=no"
1576fi
1577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1578fi
1579eval ac_res=\$$3
1580	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1581$as_echo "$ac_res" >&6; }
1582  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1583
1584} # ac_fn_c_check_decl
1585
1586# ac_fn_c_try_cpp LINENO
1587# ----------------------
1588# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1589ac_fn_c_try_cpp ()
1590{
1591  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592  if { { ac_try="$ac_cpp conftest.$ac_ext"
1593case "(($ac_try" in
1594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1595  *) ac_try_echo=$ac_try;;
1596esac
1597eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1598$as_echo "$ac_try_echo"; } >&5
1599  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1600  ac_status=$?
1601  if test -s conftest.err; then
1602    grep -v '^ *+' conftest.err >conftest.er1
1603    cat conftest.er1 >&5
1604    mv -f conftest.er1 conftest.err
1605  fi
1606  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1607  test $ac_status = 0; } > conftest.i && {
1608	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1609	 test ! -s conftest.err
1610       }; then :
1611  ac_retval=0
1612else
1613  $as_echo "$as_me: failed program was:" >&5
1614sed 's/^/| /' conftest.$ac_ext >&5
1615
1616    ac_retval=1
1617fi
1618  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1619  as_fn_set_status $ac_retval
1620
1621} # ac_fn_c_try_cpp
1622
1623# ac_fn_c_try_run LINENO
1624# ----------------------
1625# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1626# that executables *can* be run.
1627ac_fn_c_try_run ()
1628{
1629  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630  if { { ac_try="$ac_link"
1631case "(($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_link") 2>&5
1638  ac_status=$?
1639  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1641  { { case "(($ac_try" in
1642  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1643  *) ac_try_echo=$ac_try;;
1644esac
1645eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646$as_echo "$ac_try_echo"; } >&5
1647  (eval "$ac_try") 2>&5
1648  ac_status=$?
1649  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650  test $ac_status = 0; }; }; then :
1651  ac_retval=0
1652else
1653  $as_echo "$as_me: program exited with status $ac_status" >&5
1654       $as_echo "$as_me: failed program was:" >&5
1655sed 's/^/| /' conftest.$ac_ext >&5
1656
1657       ac_retval=$ac_status
1658fi
1659  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1660  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661  as_fn_set_status $ac_retval
1662
1663} # ac_fn_c_try_run
1664
1665# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1666# -------------------------------------------------------
1667# Tests whether HEADER exists and can be compiled using the include files in
1668# INCLUDES, setting the cache variable VAR accordingly.
1669ac_fn_c_check_header_compile ()
1670{
1671  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1673$as_echo_n "checking for $2... " >&6; }
1674if eval \${$3+:} false; then :
1675  $as_echo_n "(cached) " >&6
1676else
1677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1678/* end confdefs.h.  */
1679$4
1680#include <$2>
1681_ACEOF
1682if ac_fn_c_try_compile "$LINENO"; then :
1683  eval "$3=yes"
1684else
1685  eval "$3=no"
1686fi
1687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1688fi
1689eval ac_res=\$$3
1690	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1691$as_echo "$ac_res" >&6; }
1692  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1693
1694} # ac_fn_c_check_header_compile
1695
1696# ac_fn_c_try_link LINENO
1697# -----------------------
1698# Try to link conftest.$ac_ext, and return whether this succeeded.
1699ac_fn_c_try_link ()
1700{
1701  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702  rm -f conftest.$ac_objext conftest$ac_exeext
1703  if { { ac_try="$ac_link"
1704case "(($ac_try" in
1705  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706  *) ac_try_echo=$ac_try;;
1707esac
1708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709$as_echo "$ac_try_echo"; } >&5
1710  (eval "$ac_link") 2>conftest.err
1711  ac_status=$?
1712  if test -s conftest.err; then
1713    grep -v '^ *+' conftest.err >conftest.er1
1714    cat conftest.er1 >&5
1715    mv -f conftest.er1 conftest.err
1716  fi
1717  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718  test $ac_status = 0; } && {
1719	 test -z "$ac_c_werror_flag" ||
1720	 test ! -s conftest.err
1721       } && test -s conftest$ac_exeext && {
1722	 test "$cross_compiling" = yes ||
1723	 $as_test_x conftest$ac_exeext
1724       }; then :
1725  ac_retval=0
1726else
1727  $as_echo "$as_me: failed program was:" >&5
1728sed 's/^/| /' conftest.$ac_ext >&5
1729
1730	ac_retval=1
1731fi
1732  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1733  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1734  # interfere with the next link command; also delete a directory that is
1735  # left behind by Apple's compiler.  We do this before executing the actions.
1736  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1737  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738  as_fn_set_status $ac_retval
1739
1740} # ac_fn_c_try_link
1741cat >config.log <<_ACEOF
1742This file contains any messages produced by compilers while
1743running configure, to aid debugging if configure makes a mistake.
1744
1745It was created by xfd $as_me 1.1.2, which was
1746generated by GNU Autoconf 2.68.  Invocation command line was
1747
1748  $ $0 $@
1749
1750_ACEOF
1751exec 5>>config.log
1752{
1753cat <<_ASUNAME
1754## --------- ##
1755## Platform. ##
1756## --------- ##
1757
1758hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1759uname -m = `(uname -m) 2>/dev/null || echo unknown`
1760uname -r = `(uname -r) 2>/dev/null || echo unknown`
1761uname -s = `(uname -s) 2>/dev/null || echo unknown`
1762uname -v = `(uname -v) 2>/dev/null || echo unknown`
1763
1764/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1765/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1766
1767/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1768/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1769/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1770/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1771/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1772/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1773/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1774
1775_ASUNAME
1776
1777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1778for as_dir in $PATH
1779do
1780  IFS=$as_save_IFS
1781  test -z "$as_dir" && as_dir=.
1782    $as_echo "PATH: $as_dir"
1783  done
1784IFS=$as_save_IFS
1785
1786} >&5
1787
1788cat >&5 <<_ACEOF
1789
1790
1791## ----------- ##
1792## Core tests. ##
1793## ----------- ##
1794
1795_ACEOF
1796
1797
1798# Keep a trace of the command line.
1799# Strip out --no-create and --no-recursion so they do not pile up.
1800# Strip out --silent because we don't want to record it for future runs.
1801# Also quote any args containing shell meta-characters.
1802# Make two passes to allow for proper duplicate-argument suppression.
1803ac_configure_args=
1804ac_configure_args0=
1805ac_configure_args1=
1806ac_must_keep_next=false
1807for ac_pass in 1 2
1808do
1809  for ac_arg
1810  do
1811    case $ac_arg in
1812    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1813    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1814    | -silent | --silent | --silen | --sile | --sil)
1815      continue ;;
1816    *\'*)
1817      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1818    esac
1819    case $ac_pass in
1820    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1821    2)
1822      as_fn_append ac_configure_args1 " '$ac_arg'"
1823      if test $ac_must_keep_next = true; then
1824	ac_must_keep_next=false # Got value, back to normal.
1825      else
1826	case $ac_arg in
1827	  *=* | --config-cache | -C | -disable-* | --disable-* \
1828	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1829	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1830	  | -with-* | --with-* | -without-* | --without-* | --x)
1831	    case "$ac_configure_args0 " in
1832	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1833	    esac
1834	    ;;
1835	  -* ) ac_must_keep_next=true ;;
1836	esac
1837      fi
1838      as_fn_append ac_configure_args " '$ac_arg'"
1839      ;;
1840    esac
1841  done
1842done
1843{ ac_configure_args0=; unset ac_configure_args0;}
1844{ ac_configure_args1=; unset ac_configure_args1;}
1845
1846# When interrupted or exit'd, cleanup temporary files, and complete
1847# config.log.  We remove comments because anyway the quotes in there
1848# would cause problems or look ugly.
1849# WARNING: Use '\'' to represent an apostrophe within the trap.
1850# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1851trap 'exit_status=$?
1852  # Save into config.log some information that might help in debugging.
1853  {
1854    echo
1855
1856    $as_echo "## ---------------- ##
1857## Cache variables. ##
1858## ---------------- ##"
1859    echo
1860    # The following way of writing the cache mishandles newlines in values,
1861(
1862  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1863    eval ac_val=\$$ac_var
1864    case $ac_val in #(
1865    *${as_nl}*)
1866      case $ac_var in #(
1867      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1868$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1869      esac
1870      case $ac_var in #(
1871      _ | IFS | as_nl) ;; #(
1872      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1873      *) { eval $ac_var=; unset $ac_var;} ;;
1874      esac ;;
1875    esac
1876  done
1877  (set) 2>&1 |
1878    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1879    *${as_nl}ac_space=\ *)
1880      sed -n \
1881	"s/'\''/'\''\\\\'\'''\''/g;
1882	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1883      ;; #(
1884    *)
1885      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1886      ;;
1887    esac |
1888    sort
1889)
1890    echo
1891
1892    $as_echo "## ----------------- ##
1893## Output variables. ##
1894## ----------------- ##"
1895    echo
1896    for ac_var in $ac_subst_vars
1897    do
1898      eval ac_val=\$$ac_var
1899      case $ac_val in
1900      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1901      esac
1902      $as_echo "$ac_var='\''$ac_val'\''"
1903    done | sort
1904    echo
1905
1906    if test -n "$ac_subst_files"; then
1907      $as_echo "## ------------------- ##
1908## File substitutions. ##
1909## ------------------- ##"
1910      echo
1911      for ac_var in $ac_subst_files
1912      do
1913	eval ac_val=\$$ac_var
1914	case $ac_val in
1915	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1916	esac
1917	$as_echo "$ac_var='\''$ac_val'\''"
1918      done | sort
1919      echo
1920    fi
1921
1922    if test -s confdefs.h; then
1923      $as_echo "## ----------- ##
1924## confdefs.h. ##
1925## ----------- ##"
1926      echo
1927      cat confdefs.h
1928      echo
1929    fi
1930    test "$ac_signal" != 0 &&
1931      $as_echo "$as_me: caught signal $ac_signal"
1932    $as_echo "$as_me: exit $exit_status"
1933  } >&5
1934  rm -f core *.core core.conftest.* &&
1935    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1936    exit $exit_status
1937' 0
1938for ac_signal in 1 2 13 15; do
1939  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1940done
1941ac_signal=0
1942
1943# confdefs.h avoids OS command line length limits that DEFS can exceed.
1944rm -f -r conftest* confdefs.h
1945
1946$as_echo "/* confdefs.h */" > confdefs.h
1947
1948# Predefined preprocessor variables.
1949
1950cat >>confdefs.h <<_ACEOF
1951#define PACKAGE_NAME "$PACKAGE_NAME"
1952_ACEOF
1953
1954cat >>confdefs.h <<_ACEOF
1955#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1956_ACEOF
1957
1958cat >>confdefs.h <<_ACEOF
1959#define PACKAGE_VERSION "$PACKAGE_VERSION"
1960_ACEOF
1961
1962cat >>confdefs.h <<_ACEOF
1963#define PACKAGE_STRING "$PACKAGE_STRING"
1964_ACEOF
1965
1966cat >>confdefs.h <<_ACEOF
1967#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1968_ACEOF
1969
1970cat >>confdefs.h <<_ACEOF
1971#define PACKAGE_URL "$PACKAGE_URL"
1972_ACEOF
1973
1974
1975# Let the site file select an alternate cache file if it wants to.
1976# Prefer an explicitly selected file to automatically selected ones.
1977ac_site_file1=NONE
1978ac_site_file2=NONE
1979if test -n "$CONFIG_SITE"; then
1980  # We do not want a PATH search for config.site.
1981  case $CONFIG_SITE in #((
1982    -*)  ac_site_file1=./$CONFIG_SITE;;
1983    */*) ac_site_file1=$CONFIG_SITE;;
1984    *)   ac_site_file1=./$CONFIG_SITE;;
1985  esac
1986elif test "x$prefix" != xNONE; then
1987  ac_site_file1=$prefix/share/config.site
1988  ac_site_file2=$prefix/etc/config.site
1989else
1990  ac_site_file1=$ac_default_prefix/share/config.site
1991  ac_site_file2=$ac_default_prefix/etc/config.site
1992fi
1993for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1994do
1995  test "x$ac_site_file" = xNONE && continue
1996  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1997    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1998$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1999    sed 's/^/| /' "$ac_site_file" >&5
2000    . "$ac_site_file" \
2001      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2002$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2003as_fn_error $? "failed to load site script $ac_site_file
2004See \`config.log' for more details" "$LINENO" 5; }
2005  fi
2006done
2007
2008if test -r "$cache_file"; then
2009  # Some versions of bash will fail to source /dev/null (special files
2010  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2011  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2012    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2013$as_echo "$as_me: loading cache $cache_file" >&6;}
2014    case $cache_file in
2015      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2016      *)                      . "./$cache_file";;
2017    esac
2018  fi
2019else
2020  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2021$as_echo "$as_me: creating cache $cache_file" >&6;}
2022  >$cache_file
2023fi
2024
2025# Check that the precious variables saved in the cache have kept the same
2026# value.
2027ac_cache_corrupted=false
2028for ac_var in $ac_precious_vars; do
2029  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2030  eval ac_new_set=\$ac_env_${ac_var}_set
2031  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2032  eval ac_new_val=\$ac_env_${ac_var}_value
2033  case $ac_old_set,$ac_new_set in
2034    set,)
2035      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2036$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2037      ac_cache_corrupted=: ;;
2038    ,set)
2039      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2040$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2041      ac_cache_corrupted=: ;;
2042    ,);;
2043    *)
2044      if test "x$ac_old_val" != "x$ac_new_val"; then
2045	# differences in whitespace do not lead to failure.
2046	ac_old_val_w=`echo x $ac_old_val`
2047	ac_new_val_w=`echo x $ac_new_val`
2048	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2049	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2050$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2051	  ac_cache_corrupted=:
2052	else
2053	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2054$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2055	  eval $ac_var=\$ac_old_val
2056	fi
2057	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2058$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2059	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2060$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2061      fi;;
2062  esac
2063  # Pass precious variables to config.status.
2064  if test "$ac_new_set" = set; then
2065    case $ac_new_val in
2066    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2067    *) ac_arg=$ac_var=$ac_new_val ;;
2068    esac
2069    case " $ac_configure_args " in
2070      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2071      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2072    esac
2073  fi
2074done
2075if $ac_cache_corrupted; then
2076  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2077$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2078  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2079$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2080  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2081fi
2082## -------------------- ##
2083## Main body of script. ##
2084## -------------------- ##
2085
2086ac_ext=c
2087ac_cpp='$CPP $CPPFLAGS'
2088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2090ac_compiler_gnu=$ac_cv_c_compiler_gnu
2091
2092
2093
2094ac_config_headers="$ac_config_headers config.h"
2095
2096
2097# Initialize Automake
2098am__api_version='1.14'
2099
2100ac_aux_dir=
2101for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2102  if test -f "$ac_dir/install-sh"; then
2103    ac_aux_dir=$ac_dir
2104    ac_install_sh="$ac_aux_dir/install-sh -c"
2105    break
2106  elif test -f "$ac_dir/install.sh"; then
2107    ac_aux_dir=$ac_dir
2108    ac_install_sh="$ac_aux_dir/install.sh -c"
2109    break
2110  elif test -f "$ac_dir/shtool"; then
2111    ac_aux_dir=$ac_dir
2112    ac_install_sh="$ac_aux_dir/shtool install -c"
2113    break
2114  fi
2115done
2116if test -z "$ac_aux_dir"; then
2117  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2118fi
2119
2120# These three variables are undocumented and unsupported,
2121# and are intended to be withdrawn in a future Autoconf release.
2122# They can cause serious problems if a builder's source tree is in a directory
2123# whose full name contains unusual characters.
2124ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2125ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2126ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2127
2128
2129# Find a good install program.  We prefer a C program (faster),
2130# so one script is as good as another.  But avoid the broken or
2131# incompatible versions:
2132# SysV /etc/install, /usr/sbin/install
2133# SunOS /usr/etc/install
2134# IRIX /sbin/install
2135# AIX /bin/install
2136# AmigaOS /C/install, which installs bootblocks on floppy discs
2137# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2138# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2139# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2140# OS/2's system install, which has a completely different semantic
2141# ./install, which can be erroneously created by make from ./install.sh.
2142# Reject install programs that cannot install multiple files.
2143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2144$as_echo_n "checking for a BSD-compatible install... " >&6; }
2145if test -z "$INSTALL"; then
2146if ${ac_cv_path_install+:} false; then :
2147  $as_echo_n "(cached) " >&6
2148else
2149  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2150for as_dir in $PATH
2151do
2152  IFS=$as_save_IFS
2153  test -z "$as_dir" && as_dir=.
2154    # Account for people who put trailing slashes in PATH elements.
2155case $as_dir/ in #((
2156  ./ | .// | /[cC]/* | \
2157  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2158  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2159  /usr/ucb/* ) ;;
2160  *)
2161    # OSF1 and SCO ODT 3.0 have their own names for install.
2162    # Don't use installbsd from OSF since it installs stuff as root
2163    # by default.
2164    for ac_prog in ginstall scoinst install; do
2165      for ac_exec_ext in '' $ac_executable_extensions; do
2166	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2167	  if test $ac_prog = install &&
2168	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2169	    # AIX install.  It has an incompatible calling convention.
2170	    :
2171	  elif test $ac_prog = install &&
2172	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2173	    # program-specific install script used by HP pwplus--don't use.
2174	    :
2175	  else
2176	    rm -rf conftest.one conftest.two conftest.dir
2177	    echo one > conftest.one
2178	    echo two > conftest.two
2179	    mkdir conftest.dir
2180	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2181	      test -s conftest.one && test -s conftest.two &&
2182	      test -s conftest.dir/conftest.one &&
2183	      test -s conftest.dir/conftest.two
2184	    then
2185	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2186	      break 3
2187	    fi
2188	  fi
2189	fi
2190      done
2191    done
2192    ;;
2193esac
2194
2195  done
2196IFS=$as_save_IFS
2197
2198rm -rf conftest.one conftest.two conftest.dir
2199
2200fi
2201  if test "${ac_cv_path_install+set}" = set; then
2202    INSTALL=$ac_cv_path_install
2203  else
2204    # As a last resort, use the slow shell script.  Don't cache a
2205    # value for INSTALL within a source directory, because that will
2206    # break other packages using the cache if that directory is
2207    # removed, or if the value is a relative name.
2208    INSTALL=$ac_install_sh
2209  fi
2210fi
2211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2212$as_echo "$INSTALL" >&6; }
2213
2214# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2215# It thinks the first close brace ends the variable substitution.
2216test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2217
2218test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2219
2220test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2221
2222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2223$as_echo_n "checking whether build environment is sane... " >&6; }
2224# Reject unsafe characters in $srcdir or the absolute working directory
2225# name.  Accept space and tab only in the latter.
2226am_lf='
2227'
2228case `pwd` in
2229  *[\\\"\#\$\&\'\`$am_lf]*)
2230    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2231esac
2232case $srcdir in
2233  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2234    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2235esac
2236
2237# Do 'set' in a subshell so we don't clobber the current shell's
2238# arguments.  Must try -L first in case configure is actually a
2239# symlink; some systems play weird games with the mod time of symlinks
2240# (eg FreeBSD returns the mod time of the symlink's containing
2241# directory).
2242if (
2243   am_has_slept=no
2244   for am_try in 1 2; do
2245     echo "timestamp, slept: $am_has_slept" > conftest.file
2246     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2247     if test "$*" = "X"; then
2248	# -L didn't work.
2249	set X `ls -t "$srcdir/configure" conftest.file`
2250     fi
2251     if test "$*" != "X $srcdir/configure conftest.file" \
2252	&& test "$*" != "X conftest.file $srcdir/configure"; then
2253
2254	# If neither matched, then we have a broken ls.  This can happen
2255	# if, for instance, CONFIG_SHELL is bash and it inherits a
2256	# broken ls alias from the environment.  This has actually
2257	# happened.  Such a system could not be considered "sane".
2258	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2259  alias in your environment" "$LINENO" 5
2260     fi
2261     if test "$2" = conftest.file || test $am_try -eq 2; then
2262       break
2263     fi
2264     # Just in case.
2265     sleep 1
2266     am_has_slept=yes
2267   done
2268   test "$2" = conftest.file
2269   )
2270then
2271   # Ok.
2272   :
2273else
2274   as_fn_error $? "newly created file is older than distributed files!
2275Check your system clock" "$LINENO" 5
2276fi
2277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2278$as_echo "yes" >&6; }
2279# If we didn't sleep, we still need to ensure time stamps of config.status and
2280# generated files are strictly newer.
2281am_sleep_pid=
2282if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2283  ( sleep 1 ) &
2284  am_sleep_pid=$!
2285fi
2286
2287rm -f conftest.file
2288
2289test "$program_prefix" != NONE &&
2290  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2291# Use a double $ so make ignores it.
2292test "$program_suffix" != NONE &&
2293  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2294# Double any \ or $.
2295# By default was `s,x,x', remove it if useless.
2296ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2297program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2298
2299# expand $ac_aux_dir to an absolute path
2300am_aux_dir=`cd $ac_aux_dir && pwd`
2301
2302if test x"${MISSING+set}" != xset; then
2303  case $am_aux_dir in
2304  *\ * | *\	*)
2305    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2306  *)
2307    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2308  esac
2309fi
2310# Use eval to expand $SHELL
2311if eval "$MISSING --is-lightweight"; then
2312  am_missing_run="$MISSING "
2313else
2314  am_missing_run=
2315  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2316$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2317fi
2318
2319if test x"${install_sh}" != xset; then
2320  case $am_aux_dir in
2321  *\ * | *\	*)
2322    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2323  *)
2324    install_sh="\${SHELL} $am_aux_dir/install-sh"
2325  esac
2326fi
2327
2328# Installed binaries are usually stripped using 'strip' when the user
2329# run "make install-strip".  However 'strip' might not be the right
2330# tool to use in cross-compilation environments, therefore Automake
2331# will honor the 'STRIP' environment variable to overrule this program.
2332if test "$cross_compiling" != no; then
2333  if test -n "$ac_tool_prefix"; then
2334  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2335set dummy ${ac_tool_prefix}strip; ac_word=$2
2336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2337$as_echo_n "checking for $ac_word... " >&6; }
2338if ${ac_cv_prog_STRIP+:} false; then :
2339  $as_echo_n "(cached) " >&6
2340else
2341  if test -n "$STRIP"; then
2342  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2343else
2344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345for as_dir in $PATH
2346do
2347  IFS=$as_save_IFS
2348  test -z "$as_dir" && as_dir=.
2349    for ac_exec_ext in '' $ac_executable_extensions; do
2350  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2351    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2352    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2353    break 2
2354  fi
2355done
2356  done
2357IFS=$as_save_IFS
2358
2359fi
2360fi
2361STRIP=$ac_cv_prog_STRIP
2362if test -n "$STRIP"; then
2363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2364$as_echo "$STRIP" >&6; }
2365else
2366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2367$as_echo "no" >&6; }
2368fi
2369
2370
2371fi
2372if test -z "$ac_cv_prog_STRIP"; then
2373  ac_ct_STRIP=$STRIP
2374  # Extract the first word of "strip", so it can be a program name with args.
2375set dummy strip; ac_word=$2
2376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2377$as_echo_n "checking for $ac_word... " >&6; }
2378if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2379  $as_echo_n "(cached) " >&6
2380else
2381  if test -n "$ac_ct_STRIP"; then
2382  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2383else
2384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2385for as_dir in $PATH
2386do
2387  IFS=$as_save_IFS
2388  test -z "$as_dir" && as_dir=.
2389    for ac_exec_ext in '' $ac_executable_extensions; do
2390  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2391    ac_cv_prog_ac_ct_STRIP="strip"
2392    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2393    break 2
2394  fi
2395done
2396  done
2397IFS=$as_save_IFS
2398
2399fi
2400fi
2401ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2402if test -n "$ac_ct_STRIP"; then
2403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2404$as_echo "$ac_ct_STRIP" >&6; }
2405else
2406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2407$as_echo "no" >&6; }
2408fi
2409
2410  if test "x$ac_ct_STRIP" = x; then
2411    STRIP=":"
2412  else
2413    case $cross_compiling:$ac_tool_warned in
2414yes:)
2415{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2416$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2417ac_tool_warned=yes ;;
2418esac
2419    STRIP=$ac_ct_STRIP
2420  fi
2421else
2422  STRIP="$ac_cv_prog_STRIP"
2423fi
2424
2425fi
2426INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2427
2428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2429$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2430if test -z "$MKDIR_P"; then
2431  if ${ac_cv_path_mkdir+:} false; then :
2432  $as_echo_n "(cached) " >&6
2433else
2434  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2435for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2436do
2437  IFS=$as_save_IFS
2438  test -z "$as_dir" && as_dir=.
2439    for ac_prog in mkdir gmkdir; do
2440	 for ac_exec_ext in '' $ac_executable_extensions; do
2441	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2442	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2443	     'mkdir (GNU coreutils) '* | \
2444	     'mkdir (coreutils) '* | \
2445	     'mkdir (fileutils) '4.1*)
2446	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2447	       break 3;;
2448	   esac
2449	 done
2450       done
2451  done
2452IFS=$as_save_IFS
2453
2454fi
2455
2456  test -d ./--version && rmdir ./--version
2457  if test "${ac_cv_path_mkdir+set}" = set; then
2458    MKDIR_P="$ac_cv_path_mkdir -p"
2459  else
2460    # As a last resort, use the slow shell script.  Don't cache a
2461    # value for MKDIR_P within a source directory, because that will
2462    # break other packages using the cache if that directory is
2463    # removed, or if the value is a relative name.
2464    MKDIR_P="$ac_install_sh -d"
2465  fi
2466fi
2467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2468$as_echo "$MKDIR_P" >&6; }
2469
2470for ac_prog in gawk mawk nawk awk
2471do
2472  # Extract the first word of "$ac_prog", so it can be a program name with args.
2473set dummy $ac_prog; ac_word=$2
2474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2475$as_echo_n "checking for $ac_word... " >&6; }
2476if ${ac_cv_prog_AWK+:} false; then :
2477  $as_echo_n "(cached) " >&6
2478else
2479  if test -n "$AWK"; then
2480  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2481else
2482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483for as_dir in $PATH
2484do
2485  IFS=$as_save_IFS
2486  test -z "$as_dir" && as_dir=.
2487    for ac_exec_ext in '' $ac_executable_extensions; do
2488  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2489    ac_cv_prog_AWK="$ac_prog"
2490    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2491    break 2
2492  fi
2493done
2494  done
2495IFS=$as_save_IFS
2496
2497fi
2498fi
2499AWK=$ac_cv_prog_AWK
2500if test -n "$AWK"; then
2501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2502$as_echo "$AWK" >&6; }
2503else
2504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2505$as_echo "no" >&6; }
2506fi
2507
2508
2509  test -n "$AWK" && break
2510done
2511
2512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2513$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2514set x ${MAKE-make}
2515ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2516if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2517  $as_echo_n "(cached) " >&6
2518else
2519  cat >conftest.make <<\_ACEOF
2520SHELL = /bin/sh
2521all:
2522	@echo '@@@%%%=$(MAKE)=@@@%%%'
2523_ACEOF
2524# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2525case `${MAKE-make} -f conftest.make 2>/dev/null` in
2526  *@@@%%%=?*=@@@%%%*)
2527    eval ac_cv_prog_make_${ac_make}_set=yes;;
2528  *)
2529    eval ac_cv_prog_make_${ac_make}_set=no;;
2530esac
2531rm -f conftest.make
2532fi
2533if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2535$as_echo "yes" >&6; }
2536  SET_MAKE=
2537else
2538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2539$as_echo "no" >&6; }
2540  SET_MAKE="MAKE=${MAKE-make}"
2541fi
2542
2543rm -rf .tst 2>/dev/null
2544mkdir .tst 2>/dev/null
2545if test -d .tst; then
2546  am__leading_dot=.
2547else
2548  am__leading_dot=_
2549fi
2550rmdir .tst 2>/dev/null
2551
2552# Check whether --enable-silent-rules was given.
2553if test "${enable_silent_rules+set}" = set; then :
2554  enableval=$enable_silent_rules;
2555fi
2556
2557case $enable_silent_rules in # (((
2558  yes) AM_DEFAULT_VERBOSITY=0;;
2559   no) AM_DEFAULT_VERBOSITY=1;;
2560    *) AM_DEFAULT_VERBOSITY=1;;
2561esac
2562am_make=${MAKE-make}
2563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2564$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2565if ${am_cv_make_support_nested_variables+:} false; then :
2566  $as_echo_n "(cached) " >&6
2567else
2568  if $as_echo 'TRUE=$(BAR$(V))
2569BAR0=false
2570BAR1=true
2571V=1
2572am__doit:
2573	@$(TRUE)
2574.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2575  am_cv_make_support_nested_variables=yes
2576else
2577  am_cv_make_support_nested_variables=no
2578fi
2579fi
2580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2581$as_echo "$am_cv_make_support_nested_variables" >&6; }
2582if test $am_cv_make_support_nested_variables = yes; then
2583    AM_V='$(V)'
2584  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2585else
2586  AM_V=$AM_DEFAULT_VERBOSITY
2587  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2588fi
2589AM_BACKSLASH='\'
2590
2591if test "`cd $srcdir && pwd`" != "`pwd`"; then
2592  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2593  # is not polluted with repeated "-I."
2594  am__isrc=' -I$(srcdir)'
2595  # test to see if srcdir already configured
2596  if test -f $srcdir/config.status; then
2597    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2598  fi
2599fi
2600
2601# test whether we have cygpath
2602if test -z "$CYGPATH_W"; then
2603  if (cygpath --version) >/dev/null 2>/dev/null; then
2604    CYGPATH_W='cygpath -w'
2605  else
2606    CYGPATH_W=echo
2607  fi
2608fi
2609
2610
2611# Define the identity of the package.
2612 PACKAGE='xfd'
2613 VERSION='1.1.2'
2614
2615
2616cat >>confdefs.h <<_ACEOF
2617#define PACKAGE "$PACKAGE"
2618_ACEOF
2619
2620
2621cat >>confdefs.h <<_ACEOF
2622#define VERSION "$VERSION"
2623_ACEOF
2624
2625# Some tools Automake needs.
2626
2627ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2628
2629
2630AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2631
2632
2633AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2634
2635
2636AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2637
2638
2639MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2640
2641# For better backward compatibility.  To be removed once Automake 1.9.x
2642# dies out for good.  For more background, see:
2643# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2644# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2645mkdir_p='$(MKDIR_P)'
2646
2647# We need awk for the "check" target.  The system "awk" is bad on
2648# some platforms.
2649# Always define AMTAR for backward compatibility.  Yes, it's still used
2650# in the wild :-(  We should find a proper way to deprecate it ...
2651AMTAR='$${TAR-tar}'
2652
2653
2654# We'll loop over all known methods to create a tar archive until one works.
2655_am_tools='gnutar  pax cpio none'
2656
2657am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2658
2659
2660
2661
2662
2663
2664# POSIX will say in a future version that running "rm -f" with no argument
2665# is OK; and we want to be able to make that assumption in our Makefile
2666# recipes.  So use an aggressive probe to check that the usage we want is
2667# actually supported "in the wild" to an acceptable degree.
2668# See automake bug#10828.
2669# To make any issue more visible, cause the running configure to be aborted
2670# by default if the 'rm' program in use doesn't match our expectations; the
2671# user can still override this though.
2672if rm -f && rm -fr && rm -rf; then : OK; else
2673  cat >&2 <<'END'
2674Oops!
2675
2676Your 'rm' program seems unable to run without file operands specified
2677on the command line, even when the '-f' option is present.  This is contrary
2678to the behaviour of most rm programs out there, and not conforming with
2679the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2680
2681Please tell bug-automake@gnu.org about your system, including the value
2682of your $PATH and any error possibly output before this message.  This
2683can help us improve future automake versions.
2684
2685END
2686  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2687    echo 'Configuration will proceed anyway, since you have set the' >&2
2688    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2689    echo >&2
2690  else
2691    cat >&2 <<'END'
2692Aborting the configuration process, to ensure you take notice of the issue.
2693
2694You can download and install GNU coreutils to get an 'rm' implementation
2695that behaves properly: <http://www.gnu.org/software/coreutils/>.
2696
2697If you want to complete the configuration process using your problematic
2698'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2699to "yes", and re-run configure.
2700
2701END
2702    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2703  fi
2704fi
2705
2706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2707$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2708    # Check whether --enable-maintainer-mode was given.
2709if test "${enable_maintainer_mode+set}" = set; then :
2710  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2711else
2712  USE_MAINTAINER_MODE=no
2713fi
2714
2715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2716$as_echo "$USE_MAINTAINER_MODE" >&6; }
2717   if test $USE_MAINTAINER_MODE = yes; then
2718  MAINTAINER_MODE_TRUE=
2719  MAINTAINER_MODE_FALSE='#'
2720else
2721  MAINTAINER_MODE_TRUE='#'
2722  MAINTAINER_MODE_FALSE=
2723fi
2724
2725  MAINT=$MAINTAINER_MODE_TRUE
2726
2727
2728
2729# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741DEPDIR="${am__leading_dot}deps"
2742
2743ac_config_commands="$ac_config_commands depfiles"
2744
2745
2746am_make=${MAKE-make}
2747cat > confinc << 'END'
2748am__doit:
2749	@echo this is the am__doit target
2750.PHONY: am__doit
2751END
2752# If we don't find an include directive, just comment out the code.
2753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2754$as_echo_n "checking for style of include used by $am_make... " >&6; }
2755am__include="#"
2756am__quote=
2757_am_result=none
2758# First try GNU make style include.
2759echo "include confinc" > confmf
2760# Ignore all kinds of additional output from 'make'.
2761case `$am_make -s -f confmf 2> /dev/null` in #(
2762*the\ am__doit\ target*)
2763  am__include=include
2764  am__quote=
2765  _am_result=GNU
2766  ;;
2767esac
2768# Now try BSD make style include.
2769if test "$am__include" = "#"; then
2770   echo '.include "confinc"' > confmf
2771   case `$am_make -s -f confmf 2> /dev/null` in #(
2772   *the\ am__doit\ target*)
2773     am__include=.include
2774     am__quote="\""
2775     _am_result=BSD
2776     ;;
2777   esac
2778fi
2779
2780
2781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2782$as_echo "$_am_result" >&6; }
2783rm -f confinc confmf
2784
2785# Check whether --enable-dependency-tracking was given.
2786if test "${enable_dependency_tracking+set}" = set; then :
2787  enableval=$enable_dependency_tracking;
2788fi
2789
2790if test "x$enable_dependency_tracking" != xno; then
2791  am_depcomp="$ac_aux_dir/depcomp"
2792  AMDEPBACKSLASH='\'
2793  am__nodep='_no'
2794fi
2795 if test "x$enable_dependency_tracking" != xno; then
2796  AMDEP_TRUE=
2797  AMDEP_FALSE='#'
2798else
2799  AMDEP_TRUE='#'
2800  AMDEP_FALSE=
2801fi
2802
2803
2804ac_ext=c
2805ac_cpp='$CPP $CPPFLAGS'
2806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2808ac_compiler_gnu=$ac_cv_c_compiler_gnu
2809if test -n "$ac_tool_prefix"; then
2810  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2811set dummy ${ac_tool_prefix}gcc; ac_word=$2
2812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2813$as_echo_n "checking for $ac_word... " >&6; }
2814if ${ac_cv_prog_CC+:} false; then :
2815  $as_echo_n "(cached) " >&6
2816else
2817  if test -n "$CC"; then
2818  ac_cv_prog_CC="$CC" # Let the user override the test.
2819else
2820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821for as_dir in $PATH
2822do
2823  IFS=$as_save_IFS
2824  test -z "$as_dir" && as_dir=.
2825    for ac_exec_ext in '' $ac_executable_extensions; do
2826  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2827    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2828    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2829    break 2
2830  fi
2831done
2832  done
2833IFS=$as_save_IFS
2834
2835fi
2836fi
2837CC=$ac_cv_prog_CC
2838if test -n "$CC"; then
2839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2840$as_echo "$CC" >&6; }
2841else
2842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2843$as_echo "no" >&6; }
2844fi
2845
2846
2847fi
2848if test -z "$ac_cv_prog_CC"; then
2849  ac_ct_CC=$CC
2850  # Extract the first word of "gcc", so it can be a program name with args.
2851set dummy gcc; ac_word=$2
2852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2853$as_echo_n "checking for $ac_word... " >&6; }
2854if ${ac_cv_prog_ac_ct_CC+:} false; then :
2855  $as_echo_n "(cached) " >&6
2856else
2857  if test -n "$ac_ct_CC"; then
2858  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2859else
2860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861for as_dir in $PATH
2862do
2863  IFS=$as_save_IFS
2864  test -z "$as_dir" && as_dir=.
2865    for ac_exec_ext in '' $ac_executable_extensions; do
2866  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2867    ac_cv_prog_ac_ct_CC="gcc"
2868    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2869    break 2
2870  fi
2871done
2872  done
2873IFS=$as_save_IFS
2874
2875fi
2876fi
2877ac_ct_CC=$ac_cv_prog_ac_ct_CC
2878if test -n "$ac_ct_CC"; then
2879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2880$as_echo "$ac_ct_CC" >&6; }
2881else
2882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2883$as_echo "no" >&6; }
2884fi
2885
2886  if test "x$ac_ct_CC" = x; then
2887    CC=""
2888  else
2889    case $cross_compiling:$ac_tool_warned in
2890yes:)
2891{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2892$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2893ac_tool_warned=yes ;;
2894esac
2895    CC=$ac_ct_CC
2896  fi
2897else
2898  CC="$ac_cv_prog_CC"
2899fi
2900
2901if test -z "$CC"; then
2902          if test -n "$ac_tool_prefix"; then
2903    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2904set dummy ${ac_tool_prefix}cc; ac_word=$2
2905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2906$as_echo_n "checking for $ac_word... " >&6; }
2907if ${ac_cv_prog_CC+:} false; then :
2908  $as_echo_n "(cached) " >&6
2909else
2910  if test -n "$CC"; then
2911  ac_cv_prog_CC="$CC" # Let the user override the test.
2912else
2913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914for as_dir in $PATH
2915do
2916  IFS=$as_save_IFS
2917  test -z "$as_dir" && as_dir=.
2918    for ac_exec_ext in '' $ac_executable_extensions; do
2919  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2920    ac_cv_prog_CC="${ac_tool_prefix}cc"
2921    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2922    break 2
2923  fi
2924done
2925  done
2926IFS=$as_save_IFS
2927
2928fi
2929fi
2930CC=$ac_cv_prog_CC
2931if test -n "$CC"; then
2932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2933$as_echo "$CC" >&6; }
2934else
2935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936$as_echo "no" >&6; }
2937fi
2938
2939
2940  fi
2941fi
2942if test -z "$CC"; then
2943  # Extract the first word of "cc", so it can be a program name with args.
2944set dummy cc; ac_word=$2
2945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2946$as_echo_n "checking for $ac_word... " >&6; }
2947if ${ac_cv_prog_CC+:} false; then :
2948  $as_echo_n "(cached) " >&6
2949else
2950  if test -n "$CC"; then
2951  ac_cv_prog_CC="$CC" # Let the user override the test.
2952else
2953  ac_prog_rejected=no
2954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955for as_dir in $PATH
2956do
2957  IFS=$as_save_IFS
2958  test -z "$as_dir" && as_dir=.
2959    for ac_exec_ext in '' $ac_executable_extensions; do
2960  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2961    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2962       ac_prog_rejected=yes
2963       continue
2964     fi
2965    ac_cv_prog_CC="cc"
2966    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2967    break 2
2968  fi
2969done
2970  done
2971IFS=$as_save_IFS
2972
2973if test $ac_prog_rejected = yes; then
2974  # We found a bogon in the path, so make sure we never use it.
2975  set dummy $ac_cv_prog_CC
2976  shift
2977  if test $# != 0; then
2978    # We chose a different compiler from the bogus one.
2979    # However, it has the same basename, so the bogon will be chosen
2980    # first if we set CC to just the basename; use the full file name.
2981    shift
2982    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2983  fi
2984fi
2985fi
2986fi
2987CC=$ac_cv_prog_CC
2988if test -n "$CC"; then
2989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2990$as_echo "$CC" >&6; }
2991else
2992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2993$as_echo "no" >&6; }
2994fi
2995
2996
2997fi
2998if test -z "$CC"; then
2999  if test -n "$ac_tool_prefix"; then
3000  for ac_prog in cl.exe
3001  do
3002    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3003set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005$as_echo_n "checking for $ac_word... " >&6; }
3006if ${ac_cv_prog_CC+:} false; then :
3007  $as_echo_n "(cached) " >&6
3008else
3009  if test -n "$CC"; then
3010  ac_cv_prog_CC="$CC" # Let the user override the test.
3011else
3012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013for as_dir in $PATH
3014do
3015  IFS=$as_save_IFS
3016  test -z "$as_dir" && as_dir=.
3017    for ac_exec_ext in '' $ac_executable_extensions; do
3018  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3019    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3020    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3021    break 2
3022  fi
3023done
3024  done
3025IFS=$as_save_IFS
3026
3027fi
3028fi
3029CC=$ac_cv_prog_CC
3030if test -n "$CC"; then
3031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3032$as_echo "$CC" >&6; }
3033else
3034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035$as_echo "no" >&6; }
3036fi
3037
3038
3039    test -n "$CC" && break
3040  done
3041fi
3042if test -z "$CC"; then
3043  ac_ct_CC=$CC
3044  for ac_prog in cl.exe
3045do
3046  # Extract the first word of "$ac_prog", so it can be a program name with args.
3047set dummy $ac_prog; ac_word=$2
3048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3049$as_echo_n "checking for $ac_word... " >&6; }
3050if ${ac_cv_prog_ac_ct_CC+:} false; then :
3051  $as_echo_n "(cached) " >&6
3052else
3053  if test -n "$ac_ct_CC"; then
3054  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3055else
3056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057for as_dir in $PATH
3058do
3059  IFS=$as_save_IFS
3060  test -z "$as_dir" && as_dir=.
3061    for ac_exec_ext in '' $ac_executable_extensions; do
3062  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3063    ac_cv_prog_ac_ct_CC="$ac_prog"
3064    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3065    break 2
3066  fi
3067done
3068  done
3069IFS=$as_save_IFS
3070
3071fi
3072fi
3073ac_ct_CC=$ac_cv_prog_ac_ct_CC
3074if test -n "$ac_ct_CC"; then
3075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3076$as_echo "$ac_ct_CC" >&6; }
3077else
3078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3079$as_echo "no" >&6; }
3080fi
3081
3082
3083  test -n "$ac_ct_CC" && break
3084done
3085
3086  if test "x$ac_ct_CC" = x; then
3087    CC=""
3088  else
3089    case $cross_compiling:$ac_tool_warned in
3090yes:)
3091{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3092$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3093ac_tool_warned=yes ;;
3094esac
3095    CC=$ac_ct_CC
3096  fi
3097fi
3098
3099fi
3100
3101
3102test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3103$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3104as_fn_error $? "no acceptable C compiler found in \$PATH
3105See \`config.log' for more details" "$LINENO" 5; }
3106
3107# Provide some information about the compiler.
3108$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3109set X $ac_compile
3110ac_compiler=$2
3111for ac_option in --version -v -V -qversion; do
3112  { { ac_try="$ac_compiler $ac_option >&5"
3113case "(($ac_try" in
3114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115  *) ac_try_echo=$ac_try;;
3116esac
3117eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3118$as_echo "$ac_try_echo"; } >&5
3119  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3120  ac_status=$?
3121  if test -s conftest.err; then
3122    sed '10a\
3123... rest of stderr output deleted ...
3124         10q' conftest.err >conftest.er1
3125    cat conftest.er1 >&5
3126  fi
3127  rm -f conftest.er1 conftest.err
3128  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3129  test $ac_status = 0; }
3130done
3131
3132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3133/* end confdefs.h.  */
3134
3135int
3136main ()
3137{
3138
3139  ;
3140  return 0;
3141}
3142_ACEOF
3143ac_clean_files_save=$ac_clean_files
3144ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3145# Try to create an executable without -o first, disregard a.out.
3146# It will help us diagnose broken compilers, and finding out an intuition
3147# of exeext.
3148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3149$as_echo_n "checking whether the C compiler works... " >&6; }
3150ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3151
3152# The possible output files:
3153ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3154
3155ac_rmfiles=
3156for ac_file in $ac_files
3157do
3158  case $ac_file in
3159    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3160    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3161  esac
3162done
3163rm -f $ac_rmfiles
3164
3165if { { ac_try="$ac_link_default"
3166case "(($ac_try" in
3167  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168  *) ac_try_echo=$ac_try;;
3169esac
3170eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3171$as_echo "$ac_try_echo"; } >&5
3172  (eval "$ac_link_default") 2>&5
3173  ac_status=$?
3174  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3175  test $ac_status = 0; }; then :
3176  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3177# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3178# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3179# so that the user can short-circuit this test for compilers unknown to
3180# Autoconf.
3181for ac_file in $ac_files ''
3182do
3183  test -f "$ac_file" || continue
3184  case $ac_file in
3185    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3186	;;
3187    [ab].out )
3188	# We found the default executable, but exeext='' is most
3189	# certainly right.
3190	break;;
3191    *.* )
3192	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3193	then :; else
3194	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3195	fi
3196	# We set ac_cv_exeext here because the later test for it is not
3197	# safe: cross compilers may not add the suffix if given an `-o'
3198	# argument, so we may need to know it at that point already.
3199	# Even if this section looks crufty: it has the advantage of
3200	# actually working.
3201	break;;
3202    * )
3203	break;;
3204  esac
3205done
3206test "$ac_cv_exeext" = no && ac_cv_exeext=
3207
3208else
3209  ac_file=''
3210fi
3211if test -z "$ac_file"; then :
3212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213$as_echo "no" >&6; }
3214$as_echo "$as_me: failed program was:" >&5
3215sed 's/^/| /' conftest.$ac_ext >&5
3216
3217{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3218$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3219as_fn_error 77 "C compiler cannot create executables
3220See \`config.log' for more details" "$LINENO" 5; }
3221else
3222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3223$as_echo "yes" >&6; }
3224fi
3225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3226$as_echo_n "checking for C compiler default output file name... " >&6; }
3227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3228$as_echo "$ac_file" >&6; }
3229ac_exeext=$ac_cv_exeext
3230
3231rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3232ac_clean_files=$ac_clean_files_save
3233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3234$as_echo_n "checking for suffix of executables... " >&6; }
3235if { { ac_try="$ac_link"
3236case "(($ac_try" in
3237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238  *) ac_try_echo=$ac_try;;
3239esac
3240eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3241$as_echo "$ac_try_echo"; } >&5
3242  (eval "$ac_link") 2>&5
3243  ac_status=$?
3244  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3245  test $ac_status = 0; }; then :
3246  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3247# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3248# work properly (i.e., refer to `conftest.exe'), while it won't with
3249# `rm'.
3250for ac_file in conftest.exe conftest conftest.*; do
3251  test -f "$ac_file" || continue
3252  case $ac_file in
3253    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3254    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3255	  break;;
3256    * ) break;;
3257  esac
3258done
3259else
3260  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3261$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3262as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3263See \`config.log' for more details" "$LINENO" 5; }
3264fi
3265rm -f conftest conftest$ac_cv_exeext
3266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3267$as_echo "$ac_cv_exeext" >&6; }
3268
3269rm -f conftest.$ac_ext
3270EXEEXT=$ac_cv_exeext
3271ac_exeext=$EXEEXT
3272cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273/* end confdefs.h.  */
3274#include <stdio.h>
3275int
3276main ()
3277{
3278FILE *f = fopen ("conftest.out", "w");
3279 return ferror (f) || fclose (f) != 0;
3280
3281  ;
3282  return 0;
3283}
3284_ACEOF
3285ac_clean_files="$ac_clean_files conftest.out"
3286# Check that the compiler produces executables we can run.  If not, either
3287# the compiler is broken, or we cross compile.
3288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3289$as_echo_n "checking whether we are cross compiling... " >&6; }
3290if test "$cross_compiling" != yes; then
3291  { { ac_try="$ac_link"
3292case "(($ac_try" in
3293  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294  *) ac_try_echo=$ac_try;;
3295esac
3296eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3297$as_echo "$ac_try_echo"; } >&5
3298  (eval "$ac_link") 2>&5
3299  ac_status=$?
3300  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3301  test $ac_status = 0; }
3302  if { ac_try='./conftest$ac_cv_exeext'
3303  { { case "(($ac_try" in
3304  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305  *) ac_try_echo=$ac_try;;
3306esac
3307eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3308$as_echo "$ac_try_echo"; } >&5
3309  (eval "$ac_try") 2>&5
3310  ac_status=$?
3311  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3312  test $ac_status = 0; }; }; then
3313    cross_compiling=no
3314  else
3315    if test "$cross_compiling" = maybe; then
3316	cross_compiling=yes
3317    else
3318	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3319$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3320as_fn_error $? "cannot run C compiled programs.
3321If you meant to cross compile, use \`--host'.
3322See \`config.log' for more details" "$LINENO" 5; }
3323    fi
3324  fi
3325fi
3326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3327$as_echo "$cross_compiling" >&6; }
3328
3329rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3330ac_clean_files=$ac_clean_files_save
3331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3332$as_echo_n "checking for suffix of object files... " >&6; }
3333if ${ac_cv_objext+:} false; then :
3334  $as_echo_n "(cached) " >&6
3335else
3336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337/* end confdefs.h.  */
3338
3339int
3340main ()
3341{
3342
3343  ;
3344  return 0;
3345}
3346_ACEOF
3347rm -f conftest.o conftest.obj
3348if { { ac_try="$ac_compile"
3349case "(($ac_try" in
3350  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351  *) ac_try_echo=$ac_try;;
3352esac
3353eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3354$as_echo "$ac_try_echo"; } >&5
3355  (eval "$ac_compile") 2>&5
3356  ac_status=$?
3357  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3358  test $ac_status = 0; }; then :
3359  for ac_file in conftest.o conftest.obj conftest.*; do
3360  test -f "$ac_file" || continue;
3361  case $ac_file in
3362    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3363    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3364       break;;
3365  esac
3366done
3367else
3368  $as_echo "$as_me: failed program was:" >&5
3369sed 's/^/| /' conftest.$ac_ext >&5
3370
3371{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3372$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3373as_fn_error $? "cannot compute suffix of object files: cannot compile
3374See \`config.log' for more details" "$LINENO" 5; }
3375fi
3376rm -f conftest.$ac_cv_objext conftest.$ac_ext
3377fi
3378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3379$as_echo "$ac_cv_objext" >&6; }
3380OBJEXT=$ac_cv_objext
3381ac_objext=$OBJEXT
3382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3383$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3384if ${ac_cv_c_compiler_gnu+:} false; then :
3385  $as_echo_n "(cached) " >&6
3386else
3387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3388/* end confdefs.h.  */
3389
3390int
3391main ()
3392{
3393#ifndef __GNUC__
3394       choke me
3395#endif
3396
3397  ;
3398  return 0;
3399}
3400_ACEOF
3401if ac_fn_c_try_compile "$LINENO"; then :
3402  ac_compiler_gnu=yes
3403else
3404  ac_compiler_gnu=no
3405fi
3406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3407ac_cv_c_compiler_gnu=$ac_compiler_gnu
3408
3409fi
3410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3411$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3412if test $ac_compiler_gnu = yes; then
3413  GCC=yes
3414else
3415  GCC=
3416fi
3417ac_test_CFLAGS=${CFLAGS+set}
3418ac_save_CFLAGS=$CFLAGS
3419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3420$as_echo_n "checking whether $CC accepts -g... " >&6; }
3421if ${ac_cv_prog_cc_g+:} false; then :
3422  $as_echo_n "(cached) " >&6
3423else
3424  ac_save_c_werror_flag=$ac_c_werror_flag
3425   ac_c_werror_flag=yes
3426   ac_cv_prog_cc_g=no
3427   CFLAGS="-g"
3428   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429/* end confdefs.h.  */
3430
3431int
3432main ()
3433{
3434
3435  ;
3436  return 0;
3437}
3438_ACEOF
3439if ac_fn_c_try_compile "$LINENO"; then :
3440  ac_cv_prog_cc_g=yes
3441else
3442  CFLAGS=""
3443      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3444/* end confdefs.h.  */
3445
3446int
3447main ()
3448{
3449
3450  ;
3451  return 0;
3452}
3453_ACEOF
3454if ac_fn_c_try_compile "$LINENO"; then :
3455
3456else
3457  ac_c_werror_flag=$ac_save_c_werror_flag
3458	 CFLAGS="-g"
3459	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460/* end confdefs.h.  */
3461
3462int
3463main ()
3464{
3465
3466  ;
3467  return 0;
3468}
3469_ACEOF
3470if ac_fn_c_try_compile "$LINENO"; then :
3471  ac_cv_prog_cc_g=yes
3472fi
3473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3474fi
3475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3476fi
3477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3478   ac_c_werror_flag=$ac_save_c_werror_flag
3479fi
3480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3481$as_echo "$ac_cv_prog_cc_g" >&6; }
3482if test "$ac_test_CFLAGS" = set; then
3483  CFLAGS=$ac_save_CFLAGS
3484elif test $ac_cv_prog_cc_g = yes; then
3485  if test "$GCC" = yes; then
3486    CFLAGS="-g -O2"
3487  else
3488    CFLAGS="-g"
3489  fi
3490else
3491  if test "$GCC" = yes; then
3492    CFLAGS="-O2"
3493  else
3494    CFLAGS=
3495  fi
3496fi
3497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3498$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3499if ${ac_cv_prog_cc_c89+:} false; then :
3500  $as_echo_n "(cached) " >&6
3501else
3502  ac_cv_prog_cc_c89=no
3503ac_save_CC=$CC
3504cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505/* end confdefs.h.  */
3506#include <stdarg.h>
3507#include <stdio.h>
3508#include <sys/types.h>
3509#include <sys/stat.h>
3510/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3511struct buf { int x; };
3512FILE * (*rcsopen) (struct buf *, struct stat *, int);
3513static char *e (p, i)
3514     char **p;
3515     int i;
3516{
3517  return p[i];
3518}
3519static char *f (char * (*g) (char **, int), char **p, ...)
3520{
3521  char *s;
3522  va_list v;
3523  va_start (v,p);
3524  s = g (p, va_arg (v,int));
3525  va_end (v);
3526  return s;
3527}
3528
3529/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3530   function prototypes and stuff, but not '\xHH' hex character constants.
3531   These don't provoke an error unfortunately, instead are silently treated
3532   as 'x'.  The following induces an error, until -std is added to get
3533   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3534   array size at least.  It's necessary to write '\x00'==0 to get something
3535   that's true only with -std.  */
3536int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3537
3538/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3539   inside strings and character constants.  */
3540#define FOO(x) 'x'
3541int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3542
3543int test (int i, double x);
3544struct s1 {int (*f) (int a);};
3545struct s2 {int (*f) (double a);};
3546int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3547int argc;
3548char **argv;
3549int
3550main ()
3551{
3552return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3553  ;
3554  return 0;
3555}
3556_ACEOF
3557for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3558	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3559do
3560  CC="$ac_save_CC $ac_arg"
3561  if ac_fn_c_try_compile "$LINENO"; then :
3562  ac_cv_prog_cc_c89=$ac_arg
3563fi
3564rm -f core conftest.err conftest.$ac_objext
3565  test "x$ac_cv_prog_cc_c89" != "xno" && break
3566done
3567rm -f conftest.$ac_ext
3568CC=$ac_save_CC
3569
3570fi
3571# AC_CACHE_VAL
3572case "x$ac_cv_prog_cc_c89" in
3573  x)
3574    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3575$as_echo "none needed" >&6; } ;;
3576  xno)
3577    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3578$as_echo "unsupported" >&6; } ;;
3579  *)
3580    CC="$CC $ac_cv_prog_cc_c89"
3581    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3582$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3583esac
3584if test "x$ac_cv_prog_cc_c89" != xno; then :
3585
3586fi
3587
3588ac_ext=c
3589ac_cpp='$CPP $CPPFLAGS'
3590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3592ac_compiler_gnu=$ac_cv_c_compiler_gnu
3593
3594ac_ext=c
3595ac_cpp='$CPP $CPPFLAGS'
3596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3598ac_compiler_gnu=$ac_cv_c_compiler_gnu
3599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3600$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3601if ${am_cv_prog_cc_c_o+:} false; then :
3602  $as_echo_n "(cached) " >&6
3603else
3604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605/* end confdefs.h.  */
3606
3607int
3608main ()
3609{
3610
3611  ;
3612  return 0;
3613}
3614_ACEOF
3615  # Make sure it works both with $CC and with simple cc.
3616  # Following AC_PROG_CC_C_O, we do the test twice because some
3617  # compilers refuse to overwrite an existing .o file with -o,
3618  # though they will create one.
3619  am_cv_prog_cc_c_o=yes
3620  for am_i in 1 2; do
3621    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3622   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3623   ac_status=$?
3624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625   (exit $ac_status); } \
3626         && test -f conftest2.$ac_objext; then
3627      : OK
3628    else
3629      am_cv_prog_cc_c_o=no
3630      break
3631    fi
3632  done
3633  rm -f core conftest*
3634  unset am_i
3635fi
3636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3637$as_echo "$am_cv_prog_cc_c_o" >&6; }
3638if test "$am_cv_prog_cc_c_o" != yes; then
3639   # Losing compiler, so override with the script.
3640   # FIXME: It is wrong to rewrite CC.
3641   # But if we don't then we get into trouble of one sort or another.
3642   # A longer-term fix would be to have automake use am__CC in this case,
3643   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3644   CC="$am_aux_dir/compile $CC"
3645fi
3646ac_ext=c
3647ac_cpp='$CPP $CPPFLAGS'
3648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650ac_compiler_gnu=$ac_cv_c_compiler_gnu
3651
3652
3653depcc="$CC"   am_compiler_list=
3654
3655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3656$as_echo_n "checking dependency style of $depcc... " >&6; }
3657if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3658  $as_echo_n "(cached) " >&6
3659else
3660  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3661  # We make a subdir and do the tests there.  Otherwise we can end up
3662  # making bogus files that we don't know about and never remove.  For
3663  # instance it was reported that on HP-UX the gcc test will end up
3664  # making a dummy file named 'D' -- because '-MD' means "put the output
3665  # in D".
3666  rm -rf conftest.dir
3667  mkdir conftest.dir
3668  # Copy depcomp to subdir because otherwise we won't find it if we're
3669  # using a relative directory.
3670  cp "$am_depcomp" conftest.dir
3671  cd conftest.dir
3672  # We will build objects and dependencies in a subdirectory because
3673  # it helps to detect inapplicable dependency modes.  For instance
3674  # both Tru64's cc and ICC support -MD to output dependencies as a
3675  # side effect of compilation, but ICC will put the dependencies in
3676  # the current directory while Tru64 will put them in the object
3677  # directory.
3678  mkdir sub
3679
3680  am_cv_CC_dependencies_compiler_type=none
3681  if test "$am_compiler_list" = ""; then
3682     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3683  fi
3684  am__universal=false
3685  case " $depcc " in #(
3686     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3687     esac
3688
3689  for depmode in $am_compiler_list; do
3690    # Setup a source with many dependencies, because some compilers
3691    # like to wrap large dependency lists on column 80 (with \), and
3692    # we should not choose a depcomp mode which is confused by this.
3693    #
3694    # We need to recreate these files for each test, as the compiler may
3695    # overwrite some of them when testing with obscure command lines.
3696    # This happens at least with the AIX C compiler.
3697    : > sub/conftest.c
3698    for i in 1 2 3 4 5 6; do
3699      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3700      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3701      # Solaris 10 /bin/sh.
3702      echo '/* dummy */' > sub/conftst$i.h
3703    done
3704    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3705
3706    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3707    # mode.  It turns out that the SunPro C++ compiler does not properly
3708    # handle '-M -o', and we need to detect this.  Also, some Intel
3709    # versions had trouble with output in subdirs.
3710    am__obj=sub/conftest.${OBJEXT-o}
3711    am__minus_obj="-o $am__obj"
3712    case $depmode in
3713    gcc)
3714      # This depmode causes a compiler race in universal mode.
3715      test "$am__universal" = false || continue
3716      ;;
3717    nosideeffect)
3718      # After this tag, mechanisms are not by side-effect, so they'll
3719      # only be used when explicitly requested.
3720      if test "x$enable_dependency_tracking" = xyes; then
3721	continue
3722      else
3723	break
3724      fi
3725      ;;
3726    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3727      # This compiler won't grok '-c -o', but also, the minuso test has
3728      # not run yet.  These depmodes are late enough in the game, and
3729      # so weak that their functioning should not be impacted.
3730      am__obj=conftest.${OBJEXT-o}
3731      am__minus_obj=
3732      ;;
3733    none) break ;;
3734    esac
3735    if depmode=$depmode \
3736       source=sub/conftest.c object=$am__obj \
3737       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3738       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3739         >/dev/null 2>conftest.err &&
3740       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3741       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3742       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3743       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3744      # icc doesn't choke on unknown options, it will just issue warnings
3745      # or remarks (even with -Werror).  So we grep stderr for any message
3746      # that says an option was ignored or not supported.
3747      # When given -MP, icc 7.0 and 7.1 complain thusly:
3748      #   icc: Command line warning: ignoring option '-M'; no argument required
3749      # The diagnosis changed in icc 8.0:
3750      #   icc: Command line remark: option '-MP' not supported
3751      if (grep 'ignoring option' conftest.err ||
3752          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3753        am_cv_CC_dependencies_compiler_type=$depmode
3754        break
3755      fi
3756    fi
3757  done
3758
3759  cd ..
3760  rm -rf conftest.dir
3761else
3762  am_cv_CC_dependencies_compiler_type=none
3763fi
3764
3765fi
3766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3767$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3768CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3769
3770 if
3771  test "x$enable_dependency_tracking" != xno \
3772  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3773  am__fastdepCC_TRUE=
3774  am__fastdepCC_FALSE='#'
3775else
3776  am__fastdepCC_TRUE='#'
3777  am__fastdepCC_FALSE=
3778fi
3779
3780
3781   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3782$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3783if ${ac_cv_prog_cc_c99+:} false; then :
3784  $as_echo_n "(cached) " >&6
3785else
3786  ac_cv_prog_cc_c99=no
3787ac_save_CC=$CC
3788cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789/* end confdefs.h.  */
3790#include <stdarg.h>
3791#include <stdbool.h>
3792#include <stdlib.h>
3793#include <wchar.h>
3794#include <stdio.h>
3795
3796// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3797#define debug(...) fprintf (stderr, __VA_ARGS__)
3798#define showlist(...) puts (#__VA_ARGS__)
3799#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3800static void
3801test_varargs_macros (void)
3802{
3803  int x = 1234;
3804  int y = 5678;
3805  debug ("Flag");
3806  debug ("X = %d\n", x);
3807  showlist (The first, second, and third items.);
3808  report (x>y, "x is %d but y is %d", x, y);
3809}
3810
3811// Check long long types.
3812#define BIG64 18446744073709551615ull
3813#define BIG32 4294967295ul
3814#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3815#if !BIG_OK
3816  your preprocessor is broken;
3817#endif
3818#if BIG_OK
3819#else
3820  your preprocessor is broken;
3821#endif
3822static long long int bignum = -9223372036854775807LL;
3823static unsigned long long int ubignum = BIG64;
3824
3825struct incomplete_array
3826{
3827  int datasize;
3828  double data[];
3829};
3830
3831struct named_init {
3832  int number;
3833  const wchar_t *name;
3834  double average;
3835};
3836
3837typedef const char *ccp;
3838
3839static inline int
3840test_restrict (ccp restrict text)
3841{
3842  // See if C++-style comments work.
3843  // Iterate through items via the restricted pointer.
3844  // Also check for declarations in for loops.
3845  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3846    continue;
3847  return 0;
3848}
3849
3850// Check varargs and va_copy.
3851static void
3852test_varargs (const char *format, ...)
3853{
3854  va_list args;
3855  va_start (args, format);
3856  va_list args_copy;
3857  va_copy (args_copy, args);
3858
3859  const char *str;
3860  int number;
3861  float fnumber;
3862
3863  while (*format)
3864    {
3865      switch (*format++)
3866	{
3867	case 's': // string
3868	  str = va_arg (args_copy, const char *);
3869	  break;
3870	case 'd': // int
3871	  number = va_arg (args_copy, int);
3872	  break;
3873	case 'f': // float
3874	  fnumber = va_arg (args_copy, double);
3875	  break;
3876	default:
3877	  break;
3878	}
3879    }
3880  va_end (args_copy);
3881  va_end (args);
3882}
3883
3884int
3885main ()
3886{
3887
3888  // Check bool.
3889  _Bool success = false;
3890
3891  // Check restrict.
3892  if (test_restrict ("String literal") == 0)
3893    success = true;
3894  char *restrict newvar = "Another string";
3895
3896  // Check varargs.
3897  test_varargs ("s, d' f .", "string", 65, 34.234);
3898  test_varargs_macros ();
3899
3900  // Check flexible array members.
3901  struct incomplete_array *ia =
3902    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3903  ia->datasize = 10;
3904  for (int i = 0; i < ia->datasize; ++i)
3905    ia->data[i] = i * 1.234;
3906
3907  // Check named initializers.
3908  struct named_init ni = {
3909    .number = 34,
3910    .name = L"Test wide string",
3911    .average = 543.34343,
3912  };
3913
3914  ni.number = 58;
3915
3916  int dynamic_array[ni.number];
3917  dynamic_array[ni.number - 1] = 543;
3918
3919  // work around unused variable warnings
3920  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3921	  || dynamic_array[ni.number - 1] != 543);
3922
3923  ;
3924  return 0;
3925}
3926_ACEOF
3927for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3928do
3929  CC="$ac_save_CC $ac_arg"
3930  if ac_fn_c_try_compile "$LINENO"; then :
3931  ac_cv_prog_cc_c99=$ac_arg
3932fi
3933rm -f core conftest.err conftest.$ac_objext
3934  test "x$ac_cv_prog_cc_c99" != "xno" && break
3935done
3936rm -f conftest.$ac_ext
3937CC=$ac_save_CC
3938
3939fi
3940# AC_CACHE_VAL
3941case "x$ac_cv_prog_cc_c99" in
3942  x)
3943    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3944$as_echo "none needed" >&6; } ;;
3945  xno)
3946    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3947$as_echo "unsupported" >&6; } ;;
3948  *)
3949    CC="$CC $ac_cv_prog_cc_c99"
3950    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3951$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3952esac
3953if test "x$ac_cv_prog_cc_c99" != xno; then :
3954
3955fi
3956
3957
3958
3959ac_ext=c
3960ac_cpp='$CPP $CPPFLAGS'
3961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3963ac_compiler_gnu=$ac_cv_c_compiler_gnu
3964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3965$as_echo_n "checking how to run the C preprocessor... " >&6; }
3966# On Suns, sometimes $CPP names a directory.
3967if test -n "$CPP" && test -d "$CPP"; then
3968  CPP=
3969fi
3970if test -z "$CPP"; then
3971  if ${ac_cv_prog_CPP+:} false; then :
3972  $as_echo_n "(cached) " >&6
3973else
3974      # Double quotes because CPP needs to be expanded
3975    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3976    do
3977      ac_preproc_ok=false
3978for ac_c_preproc_warn_flag in '' yes
3979do
3980  # Use a header file that comes with gcc, so configuring glibc
3981  # with a fresh cross-compiler works.
3982  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3983  # <limits.h> exists even on freestanding compilers.
3984  # On the NeXT, cc -E runs the code through the compiler's parser,
3985  # not just through cpp. "Syntax error" is here to catch this case.
3986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987/* end confdefs.h.  */
3988#ifdef __STDC__
3989# include <limits.h>
3990#else
3991# include <assert.h>
3992#endif
3993		     Syntax error
3994_ACEOF
3995if ac_fn_c_try_cpp "$LINENO"; then :
3996
3997else
3998  # Broken: fails on valid input.
3999continue
4000fi
4001rm -f conftest.err conftest.i conftest.$ac_ext
4002
4003  # OK, works on sane cases.  Now check whether nonexistent headers
4004  # can be detected and how.
4005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4006/* end confdefs.h.  */
4007#include <ac_nonexistent.h>
4008_ACEOF
4009if ac_fn_c_try_cpp "$LINENO"; then :
4010  # Broken: success on invalid input.
4011continue
4012else
4013  # Passes both tests.
4014ac_preproc_ok=:
4015break
4016fi
4017rm -f conftest.err conftest.i conftest.$ac_ext
4018
4019done
4020# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4021rm -f conftest.i conftest.err conftest.$ac_ext
4022if $ac_preproc_ok; then :
4023  break
4024fi
4025
4026    done
4027    ac_cv_prog_CPP=$CPP
4028
4029fi
4030  CPP=$ac_cv_prog_CPP
4031else
4032  ac_cv_prog_CPP=$CPP
4033fi
4034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4035$as_echo "$CPP" >&6; }
4036ac_preproc_ok=false
4037for ac_c_preproc_warn_flag in '' yes
4038do
4039  # Use a header file that comes with gcc, so configuring glibc
4040  # with a fresh cross-compiler works.
4041  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4042  # <limits.h> exists even on freestanding compilers.
4043  # On the NeXT, cc -E runs the code through the compiler's parser,
4044  # not just through cpp. "Syntax error" is here to catch this case.
4045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046/* end confdefs.h.  */
4047#ifdef __STDC__
4048# include <limits.h>
4049#else
4050# include <assert.h>
4051#endif
4052		     Syntax error
4053_ACEOF
4054if ac_fn_c_try_cpp "$LINENO"; then :
4055
4056else
4057  # Broken: fails on valid input.
4058continue
4059fi
4060rm -f conftest.err conftest.i conftest.$ac_ext
4061
4062  # OK, works on sane cases.  Now check whether nonexistent headers
4063  # can be detected and how.
4064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4065/* end confdefs.h.  */
4066#include <ac_nonexistent.h>
4067_ACEOF
4068if ac_fn_c_try_cpp "$LINENO"; then :
4069  # Broken: success on invalid input.
4070continue
4071else
4072  # Passes both tests.
4073ac_preproc_ok=:
4074break
4075fi
4076rm -f conftest.err conftest.i conftest.$ac_ext
4077
4078done
4079# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4080rm -f conftest.i conftest.err conftest.$ac_ext
4081if $ac_preproc_ok; then :
4082
4083else
4084  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4085$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4086as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4087See \`config.log' for more details" "$LINENO" 5; }
4088fi
4089
4090ac_ext=c
4091ac_cpp='$CPP $CPPFLAGS'
4092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4094ac_compiler_gnu=$ac_cv_c_compiler_gnu
4095
4096
4097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4098$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4099if ${ac_cv_path_GREP+:} false; then :
4100  $as_echo_n "(cached) " >&6
4101else
4102  if test -z "$GREP"; then
4103  ac_path_GREP_found=false
4104  # Loop through the user's path and test for each of PROGNAME-LIST
4105  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4107do
4108  IFS=$as_save_IFS
4109  test -z "$as_dir" && as_dir=.
4110    for ac_prog in grep ggrep; do
4111    for ac_exec_ext in '' $ac_executable_extensions; do
4112      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4113      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4114# Check for GNU ac_path_GREP and select it if it is found.
4115  # Check for GNU $ac_path_GREP
4116case `"$ac_path_GREP" --version 2>&1` in
4117*GNU*)
4118  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4119*)
4120  ac_count=0
4121  $as_echo_n 0123456789 >"conftest.in"
4122  while :
4123  do
4124    cat "conftest.in" "conftest.in" >"conftest.tmp"
4125    mv "conftest.tmp" "conftest.in"
4126    cp "conftest.in" "conftest.nl"
4127    $as_echo 'GREP' >> "conftest.nl"
4128    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4129    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4130    as_fn_arith $ac_count + 1 && ac_count=$as_val
4131    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4132      # Best one so far, save it but keep looking for a better one
4133      ac_cv_path_GREP="$ac_path_GREP"
4134      ac_path_GREP_max=$ac_count
4135    fi
4136    # 10*(2^10) chars as input seems more than enough
4137    test $ac_count -gt 10 && break
4138  done
4139  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4140esac
4141
4142      $ac_path_GREP_found && break 3
4143    done
4144  done
4145  done
4146IFS=$as_save_IFS
4147  if test -z "$ac_cv_path_GREP"; then
4148    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4149  fi
4150else
4151  ac_cv_path_GREP=$GREP
4152fi
4153
4154fi
4155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4156$as_echo "$ac_cv_path_GREP" >&6; }
4157 GREP="$ac_cv_path_GREP"
4158
4159
4160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4161$as_echo_n "checking for egrep... " >&6; }
4162if ${ac_cv_path_EGREP+:} false; then :
4163  $as_echo_n "(cached) " >&6
4164else
4165  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4166   then ac_cv_path_EGREP="$GREP -E"
4167   else
4168     if test -z "$EGREP"; then
4169  ac_path_EGREP_found=false
4170  # Loop through the user's path and test for each of PROGNAME-LIST
4171  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4172for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4173do
4174  IFS=$as_save_IFS
4175  test -z "$as_dir" && as_dir=.
4176    for ac_prog in egrep; do
4177    for ac_exec_ext in '' $ac_executable_extensions; do
4178      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4179      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4180# Check for GNU ac_path_EGREP and select it if it is found.
4181  # Check for GNU $ac_path_EGREP
4182case `"$ac_path_EGREP" --version 2>&1` in
4183*GNU*)
4184  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4185*)
4186  ac_count=0
4187  $as_echo_n 0123456789 >"conftest.in"
4188  while :
4189  do
4190    cat "conftest.in" "conftest.in" >"conftest.tmp"
4191    mv "conftest.tmp" "conftest.in"
4192    cp "conftest.in" "conftest.nl"
4193    $as_echo 'EGREP' >> "conftest.nl"
4194    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4195    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4196    as_fn_arith $ac_count + 1 && ac_count=$as_val
4197    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4198      # Best one so far, save it but keep looking for a better one
4199      ac_cv_path_EGREP="$ac_path_EGREP"
4200      ac_path_EGREP_max=$ac_count
4201    fi
4202    # 10*(2^10) chars as input seems more than enough
4203    test $ac_count -gt 10 && break
4204  done
4205  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4206esac
4207
4208      $ac_path_EGREP_found && break 3
4209    done
4210  done
4211  done
4212IFS=$as_save_IFS
4213  if test -z "$ac_cv_path_EGREP"; then
4214    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4215  fi
4216else
4217  ac_cv_path_EGREP=$EGREP
4218fi
4219
4220   fi
4221fi
4222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4223$as_echo "$ac_cv_path_EGREP" >&6; }
4224 EGREP="$ac_cv_path_EGREP"
4225
4226
4227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4228$as_echo_n "checking for ANSI C header files... " >&6; }
4229if ${ac_cv_header_stdc+:} false; then :
4230  $as_echo_n "(cached) " >&6
4231else
4232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233/* end confdefs.h.  */
4234#include <stdlib.h>
4235#include <stdarg.h>
4236#include <string.h>
4237#include <float.h>
4238
4239int
4240main ()
4241{
4242
4243  ;
4244  return 0;
4245}
4246_ACEOF
4247if ac_fn_c_try_compile "$LINENO"; then :
4248  ac_cv_header_stdc=yes
4249else
4250  ac_cv_header_stdc=no
4251fi
4252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4253
4254if test $ac_cv_header_stdc = yes; then
4255  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257/* end confdefs.h.  */
4258#include <string.h>
4259
4260_ACEOF
4261if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4262  $EGREP "memchr" >/dev/null 2>&1; then :
4263
4264else
4265  ac_cv_header_stdc=no
4266fi
4267rm -f conftest*
4268
4269fi
4270
4271if test $ac_cv_header_stdc = yes; then
4272  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4274/* end confdefs.h.  */
4275#include <stdlib.h>
4276
4277_ACEOF
4278if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4279  $EGREP "free" >/dev/null 2>&1; then :
4280
4281else
4282  ac_cv_header_stdc=no
4283fi
4284rm -f conftest*
4285
4286fi
4287
4288if test $ac_cv_header_stdc = yes; then
4289  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4290  if test "$cross_compiling" = yes; then :
4291  :
4292else
4293  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4294/* end confdefs.h.  */
4295#include <ctype.h>
4296#include <stdlib.h>
4297#if ((' ' & 0x0FF) == 0x020)
4298# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4299# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4300#else
4301# define ISLOWER(c) \
4302		   (('a' <= (c) && (c) <= 'i') \
4303		     || ('j' <= (c) && (c) <= 'r') \
4304		     || ('s' <= (c) && (c) <= 'z'))
4305# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4306#endif
4307
4308#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4309int
4310main ()
4311{
4312  int i;
4313  for (i = 0; i < 256; i++)
4314    if (XOR (islower (i), ISLOWER (i))
4315	|| toupper (i) != TOUPPER (i))
4316      return 2;
4317  return 0;
4318}
4319_ACEOF
4320if ac_fn_c_try_run "$LINENO"; then :
4321
4322else
4323  ac_cv_header_stdc=no
4324fi
4325rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4326  conftest.$ac_objext conftest.beam conftest.$ac_ext
4327fi
4328
4329fi
4330fi
4331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4332$as_echo "$ac_cv_header_stdc" >&6; }
4333if test $ac_cv_header_stdc = yes; then
4334
4335$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4336
4337fi
4338
4339# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4340for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4341		  inttypes.h stdint.h unistd.h
4342do :
4343  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4344ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4345"
4346if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4347  cat >>confdefs.h <<_ACEOF
4348#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4349_ACEOF
4350
4351fi
4352
4353done
4354
4355
4356
4357
4358
4359
4360ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4361if test "x$ac_cv_have_decl___clang__" = xyes; then :
4362  CLANGCC="yes"
4363else
4364  CLANGCC="no"
4365fi
4366
4367ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4368if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4369  INTELCC="yes"
4370else
4371  INTELCC="no"
4372fi
4373
4374ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4375if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4376  SUNCC="yes"
4377else
4378  SUNCC="no"
4379fi
4380
4381
4382
4383
4384if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4385	if test -n "$ac_tool_prefix"; then
4386  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4387set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4389$as_echo_n "checking for $ac_word... " >&6; }
4390if ${ac_cv_path_PKG_CONFIG+:} false; then :
4391  $as_echo_n "(cached) " >&6
4392else
4393  case $PKG_CONFIG in
4394  [\\/]* | ?:[\\/]*)
4395  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4396  ;;
4397  *)
4398  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399for as_dir in $PATH
4400do
4401  IFS=$as_save_IFS
4402  test -z "$as_dir" && as_dir=.
4403    for ac_exec_ext in '' $ac_executable_extensions; do
4404  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4405    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4406    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4407    break 2
4408  fi
4409done
4410  done
4411IFS=$as_save_IFS
4412
4413  ;;
4414esac
4415fi
4416PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4417if test -n "$PKG_CONFIG"; then
4418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4419$as_echo "$PKG_CONFIG" >&6; }
4420else
4421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4422$as_echo "no" >&6; }
4423fi
4424
4425
4426fi
4427if test -z "$ac_cv_path_PKG_CONFIG"; then
4428  ac_pt_PKG_CONFIG=$PKG_CONFIG
4429  # Extract the first word of "pkg-config", so it can be a program name with args.
4430set dummy pkg-config; ac_word=$2
4431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4432$as_echo_n "checking for $ac_word... " >&6; }
4433if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4434  $as_echo_n "(cached) " >&6
4435else
4436  case $ac_pt_PKG_CONFIG in
4437  [\\/]* | ?:[\\/]*)
4438  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4439  ;;
4440  *)
4441  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442for as_dir in $PATH
4443do
4444  IFS=$as_save_IFS
4445  test -z "$as_dir" && as_dir=.
4446    for ac_exec_ext in '' $ac_executable_extensions; do
4447  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4448    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4449    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4450    break 2
4451  fi
4452done
4453  done
4454IFS=$as_save_IFS
4455
4456  ;;
4457esac
4458fi
4459ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4460if test -n "$ac_pt_PKG_CONFIG"; then
4461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4462$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4463else
4464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4465$as_echo "no" >&6; }
4466fi
4467
4468  if test "x$ac_pt_PKG_CONFIG" = x; then
4469    PKG_CONFIG=""
4470  else
4471    case $cross_compiling:$ac_tool_warned in
4472yes:)
4473{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4474$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4475ac_tool_warned=yes ;;
4476esac
4477    PKG_CONFIG=$ac_pt_PKG_CONFIG
4478  fi
4479else
4480  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4481fi
4482
4483fi
4484if test -n "$PKG_CONFIG"; then
4485	_pkg_min_version=0.9.0
4486	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4487$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4488	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4489		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4490$as_echo "yes" >&6; }
4491	else
4492		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4493$as_echo "no" >&6; }
4494		PKG_CONFIG=""
4495	fi
4496
4497fi
4498# Make sure we can run config.sub.
4499$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4500  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4501
4502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4503$as_echo_n "checking build system type... " >&6; }
4504if ${ac_cv_build+:} false; then :
4505  $as_echo_n "(cached) " >&6
4506else
4507  ac_build_alias=$build_alias
4508test "x$ac_build_alias" = x &&
4509  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4510test "x$ac_build_alias" = x &&
4511  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4512ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4513  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4514
4515fi
4516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4517$as_echo "$ac_cv_build" >&6; }
4518case $ac_cv_build in
4519*-*-*) ;;
4520*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4521esac
4522build=$ac_cv_build
4523ac_save_IFS=$IFS; IFS='-'
4524set x $ac_cv_build
4525shift
4526build_cpu=$1
4527build_vendor=$2
4528shift; shift
4529# Remember, the first character of IFS is used to create $*,
4530# except with old shells:
4531build_os=$*
4532IFS=$ac_save_IFS
4533case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4534
4535
4536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4537$as_echo_n "checking host system type... " >&6; }
4538if ${ac_cv_host+:} false; then :
4539  $as_echo_n "(cached) " >&6
4540else
4541  if test "x$host_alias" = x; then
4542  ac_cv_host=$ac_cv_build
4543else
4544  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4545    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4546fi
4547
4548fi
4549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4550$as_echo "$ac_cv_host" >&6; }
4551case $ac_cv_host in
4552*-*-*) ;;
4553*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4554esac
4555host=$ac_cv_host
4556ac_save_IFS=$IFS; IFS='-'
4557set x $ac_cv_host
4558shift
4559host_cpu=$1
4560host_vendor=$2
4561shift; shift
4562# Remember, the first character of IFS is used to create $*,
4563# except with old shells:
4564host_os=$*
4565IFS=$ac_save_IFS
4566case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4567
4568
4569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4570$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4571if ${ac_cv_path_SED+:} false; then :
4572  $as_echo_n "(cached) " >&6
4573else
4574            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4575     for ac_i in 1 2 3 4 5 6 7; do
4576       ac_script="$ac_script$as_nl$ac_script"
4577     done
4578     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4579     { ac_script=; unset ac_script;}
4580     if test -z "$SED"; then
4581  ac_path_SED_found=false
4582  # Loop through the user's path and test for each of PROGNAME-LIST
4583  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584for as_dir in $PATH
4585do
4586  IFS=$as_save_IFS
4587  test -z "$as_dir" && as_dir=.
4588    for ac_prog in sed gsed; do
4589    for ac_exec_ext in '' $ac_executable_extensions; do
4590      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4591      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4592# Check for GNU ac_path_SED and select it if it is found.
4593  # Check for GNU $ac_path_SED
4594case `"$ac_path_SED" --version 2>&1` in
4595*GNU*)
4596  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4597*)
4598  ac_count=0
4599  $as_echo_n 0123456789 >"conftest.in"
4600  while :
4601  do
4602    cat "conftest.in" "conftest.in" >"conftest.tmp"
4603    mv "conftest.tmp" "conftest.in"
4604    cp "conftest.in" "conftest.nl"
4605    $as_echo '' >> "conftest.nl"
4606    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4607    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4608    as_fn_arith $ac_count + 1 && ac_count=$as_val
4609    if test $ac_count -gt ${ac_path_SED_max-0}; then
4610      # Best one so far, save it but keep looking for a better one
4611      ac_cv_path_SED="$ac_path_SED"
4612      ac_path_SED_max=$ac_count
4613    fi
4614    # 10*(2^10) chars as input seems more than enough
4615    test $ac_count -gt 10 && break
4616  done
4617  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4618esac
4619
4620      $ac_path_SED_found && break 3
4621    done
4622  done
4623  done
4624IFS=$as_save_IFS
4625  if test -z "$ac_cv_path_SED"; then
4626    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4627  fi
4628else
4629  ac_cv_path_SED=$SED
4630fi
4631
4632fi
4633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4634$as_echo "$ac_cv_path_SED" >&6; }
4635 SED="$ac_cv_path_SED"
4636  rm -f conftest.sed
4637
4638
4639
4640
4641
4642
4643# Check whether --enable-selective-werror was given.
4644if test "${enable_selective_werror+set}" = set; then :
4645  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4646else
4647  SELECTIVE_WERROR=yes
4648fi
4649
4650
4651
4652
4653
4654# -v is too short to test reliably with XORG_TESTSET_CFLAG
4655if test "x$SUNCC" = "xyes"; then
4656    BASE_CFLAGS="-v"
4657else
4658    BASE_CFLAGS=""
4659fi
4660
4661# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675xorg_testset_save_CFLAGS="$CFLAGS"
4676
4677if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4678	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4679	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4680$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4681if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4682  $as_echo_n "(cached) " >&6
4683else
4684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4685/* end confdefs.h.  */
4686int i;
4687_ACEOF
4688if ac_fn_c_try_compile "$LINENO"; then :
4689  xorg_cv_cc_flag_unknown_warning_option=yes
4690else
4691  xorg_cv_cc_flag_unknown_warning_option=no
4692fi
4693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4694fi
4695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4696$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4697	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4698	CFLAGS="$xorg_testset_save_CFLAGS"
4699fi
4700
4701if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4702	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4703		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4704	fi
4705	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4706	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4707$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4708if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4709  $as_echo_n "(cached) " >&6
4710else
4711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712/* end confdefs.h.  */
4713int i;
4714_ACEOF
4715if ac_fn_c_try_compile "$LINENO"; then :
4716  xorg_cv_cc_flag_unused_command_line_argument=yes
4717else
4718  xorg_cv_cc_flag_unused_command_line_argument=no
4719fi
4720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4721fi
4722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4723$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4724	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4725	CFLAGS="$xorg_testset_save_CFLAGS"
4726fi
4727
4728found="no"
4729
4730	if test $found = "no" ; then
4731		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4732			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4733		fi
4734
4735		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4736			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4737		fi
4738
4739		CFLAGS="$CFLAGS -Wall"
4740
4741		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4742$as_echo_n "checking if $CC supports -Wall... " >&6; }
4743		cacheid=xorg_cv_cc_flag__Wall
4744		if eval \${$cacheid+:} false; then :
4745  $as_echo_n "(cached) " >&6
4746else
4747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4748/* end confdefs.h.  */
4749int i;
4750int
4751main ()
4752{
4753
4754  ;
4755  return 0;
4756}
4757_ACEOF
4758if ac_fn_c_try_link "$LINENO"; then :
4759  eval $cacheid=yes
4760else
4761  eval $cacheid=no
4762fi
4763rm -f core conftest.err conftest.$ac_objext \
4764    conftest$ac_exeext conftest.$ac_ext
4765fi
4766
4767
4768		CFLAGS="$xorg_testset_save_CFLAGS"
4769
4770		eval supported=\$$cacheid
4771		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4772$as_echo "$supported" >&6; }
4773		if test "$supported" = "yes" ; then
4774			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4775			found="yes"
4776		fi
4777	fi
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793xorg_testset_save_CFLAGS="$CFLAGS"
4794
4795if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4796	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4797	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4798$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4799if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4800  $as_echo_n "(cached) " >&6
4801else
4802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4803/* end confdefs.h.  */
4804int i;
4805_ACEOF
4806if ac_fn_c_try_compile "$LINENO"; then :
4807  xorg_cv_cc_flag_unknown_warning_option=yes
4808else
4809  xorg_cv_cc_flag_unknown_warning_option=no
4810fi
4811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4812fi
4813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4814$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4815	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4816	CFLAGS="$xorg_testset_save_CFLAGS"
4817fi
4818
4819if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4820	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4821		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4822	fi
4823	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4824	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4825$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4826if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4827  $as_echo_n "(cached) " >&6
4828else
4829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4830/* end confdefs.h.  */
4831int i;
4832_ACEOF
4833if ac_fn_c_try_compile "$LINENO"; then :
4834  xorg_cv_cc_flag_unused_command_line_argument=yes
4835else
4836  xorg_cv_cc_flag_unused_command_line_argument=no
4837fi
4838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4839fi
4840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4841$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4842	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4843	CFLAGS="$xorg_testset_save_CFLAGS"
4844fi
4845
4846found="no"
4847
4848	if test $found = "no" ; then
4849		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4850			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4851		fi
4852
4853		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4854			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4855		fi
4856
4857		CFLAGS="$CFLAGS -Wpointer-arith"
4858
4859		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4860$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4861		cacheid=xorg_cv_cc_flag__Wpointer_arith
4862		if eval \${$cacheid+:} false; then :
4863  $as_echo_n "(cached) " >&6
4864else
4865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4866/* end confdefs.h.  */
4867int i;
4868int
4869main ()
4870{
4871
4872  ;
4873  return 0;
4874}
4875_ACEOF
4876if ac_fn_c_try_link "$LINENO"; then :
4877  eval $cacheid=yes
4878else
4879  eval $cacheid=no
4880fi
4881rm -f core conftest.err conftest.$ac_objext \
4882    conftest$ac_exeext conftest.$ac_ext
4883fi
4884
4885
4886		CFLAGS="$xorg_testset_save_CFLAGS"
4887
4888		eval supported=\$$cacheid
4889		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4890$as_echo "$supported" >&6; }
4891		if test "$supported" = "yes" ; then
4892			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4893			found="yes"
4894		fi
4895	fi
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911xorg_testset_save_CFLAGS="$CFLAGS"
4912
4913if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4914	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4915	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4916$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4917if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4918  $as_echo_n "(cached) " >&6
4919else
4920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4921/* end confdefs.h.  */
4922int i;
4923_ACEOF
4924if ac_fn_c_try_compile "$LINENO"; then :
4925  xorg_cv_cc_flag_unknown_warning_option=yes
4926else
4927  xorg_cv_cc_flag_unknown_warning_option=no
4928fi
4929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4930fi
4931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4932$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4933	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4934	CFLAGS="$xorg_testset_save_CFLAGS"
4935fi
4936
4937if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4938	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4939		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4940	fi
4941	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4942	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4943$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4944if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4945  $as_echo_n "(cached) " >&6
4946else
4947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4948/* end confdefs.h.  */
4949int i;
4950_ACEOF
4951if ac_fn_c_try_compile "$LINENO"; then :
4952  xorg_cv_cc_flag_unused_command_line_argument=yes
4953else
4954  xorg_cv_cc_flag_unused_command_line_argument=no
4955fi
4956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4957fi
4958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4959$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4960	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4961	CFLAGS="$xorg_testset_save_CFLAGS"
4962fi
4963
4964found="no"
4965
4966	if test $found = "no" ; then
4967		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4968			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4969		fi
4970
4971		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4972			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4973		fi
4974
4975		CFLAGS="$CFLAGS -Wmissing-declarations"
4976
4977		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4978$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4979		cacheid=xorg_cv_cc_flag__Wmissing_declarations
4980		if eval \${$cacheid+:} false; then :
4981  $as_echo_n "(cached) " >&6
4982else
4983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4984/* end confdefs.h.  */
4985int i;
4986int
4987main ()
4988{
4989
4990  ;
4991  return 0;
4992}
4993_ACEOF
4994if ac_fn_c_try_link "$LINENO"; then :
4995  eval $cacheid=yes
4996else
4997  eval $cacheid=no
4998fi
4999rm -f core conftest.err conftest.$ac_objext \
5000    conftest$ac_exeext conftest.$ac_ext
5001fi
5002
5003
5004		CFLAGS="$xorg_testset_save_CFLAGS"
5005
5006		eval supported=\$$cacheid
5007		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5008$as_echo "$supported" >&6; }
5009		if test "$supported" = "yes" ; then
5010			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5011			found="yes"
5012		fi
5013	fi
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 -Wformat=2"
5094
5095		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5096$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5097		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
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 -Wformat=2"
5129			found="yes"
5130		fi
5131	fi
5132
5133	if test $found = "no" ; then
5134		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5135			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5136		fi
5137
5138		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5139			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5140		fi
5141
5142		CFLAGS="$CFLAGS -Wformat"
5143
5144		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5145$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5146		cacheid=xorg_cv_cc_flag__Wformat
5147		if eval \${$cacheid+:} false; then :
5148  $as_echo_n "(cached) " >&6
5149else
5150  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5151/* end confdefs.h.  */
5152int i;
5153int
5154main ()
5155{
5156
5157  ;
5158  return 0;
5159}
5160_ACEOF
5161if ac_fn_c_try_link "$LINENO"; then :
5162  eval $cacheid=yes
5163else
5164  eval $cacheid=no
5165fi
5166rm -f core conftest.err conftest.$ac_objext \
5167    conftest$ac_exeext conftest.$ac_ext
5168fi
5169
5170
5171		CFLAGS="$xorg_testset_save_CFLAGS"
5172
5173		eval supported=\$$cacheid
5174		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5175$as_echo "$supported" >&6; }
5176		if test "$supported" = "yes" ; then
5177			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5178			found="yes"
5179		fi
5180	fi
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198xorg_testset_save_CFLAGS="$CFLAGS"
5199
5200if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5201	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5202	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5203$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5204if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5205  $as_echo_n "(cached) " >&6
5206else
5207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5208/* end confdefs.h.  */
5209int i;
5210_ACEOF
5211if ac_fn_c_try_compile "$LINENO"; then :
5212  xorg_cv_cc_flag_unknown_warning_option=yes
5213else
5214  xorg_cv_cc_flag_unknown_warning_option=no
5215fi
5216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5217fi
5218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5219$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5220	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5221	CFLAGS="$xorg_testset_save_CFLAGS"
5222fi
5223
5224if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5225	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5226		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5227	fi
5228	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5229	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5230$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5231if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5232  $as_echo_n "(cached) " >&6
5233else
5234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5235/* end confdefs.h.  */
5236int i;
5237_ACEOF
5238if ac_fn_c_try_compile "$LINENO"; then :
5239  xorg_cv_cc_flag_unused_command_line_argument=yes
5240else
5241  xorg_cv_cc_flag_unused_command_line_argument=no
5242fi
5243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5244fi
5245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5246$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5247	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5248	CFLAGS="$xorg_testset_save_CFLAGS"
5249fi
5250
5251found="no"
5252
5253	if test $found = "no" ; then
5254		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5255			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5256		fi
5257
5258		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5259			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5260		fi
5261
5262		CFLAGS="$CFLAGS -Wstrict-prototypes"
5263
5264		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5265$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5266		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5267		if eval \${$cacheid+:} false; then :
5268  $as_echo_n "(cached) " >&6
5269else
5270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271/* end confdefs.h.  */
5272int i;
5273int
5274main ()
5275{
5276
5277  ;
5278  return 0;
5279}
5280_ACEOF
5281if ac_fn_c_try_link "$LINENO"; then :
5282  eval $cacheid=yes
5283else
5284  eval $cacheid=no
5285fi
5286rm -f core conftest.err conftest.$ac_objext \
5287    conftest$ac_exeext conftest.$ac_ext
5288fi
5289
5290
5291		CFLAGS="$xorg_testset_save_CFLAGS"
5292
5293		eval supported=\$$cacheid
5294		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5295$as_echo "$supported" >&6; }
5296		if test "$supported" = "yes" ; then
5297			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5298			found="yes"
5299		fi
5300	fi
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316xorg_testset_save_CFLAGS="$CFLAGS"
5317
5318if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5319	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5320	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5321$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5322if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5323  $as_echo_n "(cached) " >&6
5324else
5325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326/* end confdefs.h.  */
5327int i;
5328_ACEOF
5329if ac_fn_c_try_compile "$LINENO"; then :
5330  xorg_cv_cc_flag_unknown_warning_option=yes
5331else
5332  xorg_cv_cc_flag_unknown_warning_option=no
5333fi
5334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5335fi
5336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5337$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5338	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5339	CFLAGS="$xorg_testset_save_CFLAGS"
5340fi
5341
5342if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5343	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5344		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5345	fi
5346	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5347	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5348$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5349if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5350  $as_echo_n "(cached) " >&6
5351else
5352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353/* end confdefs.h.  */
5354int i;
5355_ACEOF
5356if ac_fn_c_try_compile "$LINENO"; then :
5357  xorg_cv_cc_flag_unused_command_line_argument=yes
5358else
5359  xorg_cv_cc_flag_unused_command_line_argument=no
5360fi
5361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5362fi
5363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5364$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5365	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5366	CFLAGS="$xorg_testset_save_CFLAGS"
5367fi
5368
5369found="no"
5370
5371	if test $found = "no" ; then
5372		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5373			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5374		fi
5375
5376		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5377			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5378		fi
5379
5380		CFLAGS="$CFLAGS -Wmissing-prototypes"
5381
5382		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5383$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5384		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5385		if eval \${$cacheid+:} false; then :
5386  $as_echo_n "(cached) " >&6
5387else
5388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5389/* end confdefs.h.  */
5390int i;
5391int
5392main ()
5393{
5394
5395  ;
5396  return 0;
5397}
5398_ACEOF
5399if ac_fn_c_try_link "$LINENO"; then :
5400  eval $cacheid=yes
5401else
5402  eval $cacheid=no
5403fi
5404rm -f core conftest.err conftest.$ac_objext \
5405    conftest$ac_exeext conftest.$ac_ext
5406fi
5407
5408
5409		CFLAGS="$xorg_testset_save_CFLAGS"
5410
5411		eval supported=\$$cacheid
5412		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5413$as_echo "$supported" >&6; }
5414		if test "$supported" = "yes" ; then
5415			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5416			found="yes"
5417		fi
5418	fi
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434xorg_testset_save_CFLAGS="$CFLAGS"
5435
5436if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5437	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5438	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5439$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5440if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5441  $as_echo_n "(cached) " >&6
5442else
5443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5444/* end confdefs.h.  */
5445int i;
5446_ACEOF
5447if ac_fn_c_try_compile "$LINENO"; then :
5448  xorg_cv_cc_flag_unknown_warning_option=yes
5449else
5450  xorg_cv_cc_flag_unknown_warning_option=no
5451fi
5452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5453fi
5454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5455$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5456	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5457	CFLAGS="$xorg_testset_save_CFLAGS"
5458fi
5459
5460if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5461	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5462		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5463	fi
5464	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5465	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5466$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5467if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5468  $as_echo_n "(cached) " >&6
5469else
5470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5471/* end confdefs.h.  */
5472int i;
5473_ACEOF
5474if ac_fn_c_try_compile "$LINENO"; then :
5475  xorg_cv_cc_flag_unused_command_line_argument=yes
5476else
5477  xorg_cv_cc_flag_unused_command_line_argument=no
5478fi
5479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5480fi
5481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5482$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5483	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5484	CFLAGS="$xorg_testset_save_CFLAGS"
5485fi
5486
5487found="no"
5488
5489	if test $found = "no" ; then
5490		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5491			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5492		fi
5493
5494		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5495			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5496		fi
5497
5498		CFLAGS="$CFLAGS -Wnested-externs"
5499
5500		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5501$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5502		cacheid=xorg_cv_cc_flag__Wnested_externs
5503		if eval \${$cacheid+:} false; then :
5504  $as_echo_n "(cached) " >&6
5505else
5506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507/* end confdefs.h.  */
5508int i;
5509int
5510main ()
5511{
5512
5513  ;
5514  return 0;
5515}
5516_ACEOF
5517if ac_fn_c_try_link "$LINENO"; then :
5518  eval $cacheid=yes
5519else
5520  eval $cacheid=no
5521fi
5522rm -f core conftest.err conftest.$ac_objext \
5523    conftest$ac_exeext conftest.$ac_ext
5524fi
5525
5526
5527		CFLAGS="$xorg_testset_save_CFLAGS"
5528
5529		eval supported=\$$cacheid
5530		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5531$as_echo "$supported" >&6; }
5532		if test "$supported" = "yes" ; then
5533			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5534			found="yes"
5535		fi
5536	fi
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552xorg_testset_save_CFLAGS="$CFLAGS"
5553
5554if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5555	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5556	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5557$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5558if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5559  $as_echo_n "(cached) " >&6
5560else
5561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5562/* end confdefs.h.  */
5563int i;
5564_ACEOF
5565if ac_fn_c_try_compile "$LINENO"; then :
5566  xorg_cv_cc_flag_unknown_warning_option=yes
5567else
5568  xorg_cv_cc_flag_unknown_warning_option=no
5569fi
5570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5571fi
5572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5573$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5574	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5575	CFLAGS="$xorg_testset_save_CFLAGS"
5576fi
5577
5578if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5579	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5580		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5581	fi
5582	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5583	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5584$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5585if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5586  $as_echo_n "(cached) " >&6
5587else
5588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5589/* end confdefs.h.  */
5590int i;
5591_ACEOF
5592if ac_fn_c_try_compile "$LINENO"; then :
5593  xorg_cv_cc_flag_unused_command_line_argument=yes
5594else
5595  xorg_cv_cc_flag_unused_command_line_argument=no
5596fi
5597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5598fi
5599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5600$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5601	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5602	CFLAGS="$xorg_testset_save_CFLAGS"
5603fi
5604
5605found="no"
5606
5607	if test $found = "no" ; then
5608		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5609			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5610		fi
5611
5612		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5613			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5614		fi
5615
5616		CFLAGS="$CFLAGS -Wbad-function-cast"
5617
5618		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5619$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5620		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5621		if eval \${$cacheid+:} false; then :
5622  $as_echo_n "(cached) " >&6
5623else
5624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625/* end confdefs.h.  */
5626int i;
5627int
5628main ()
5629{
5630
5631  ;
5632  return 0;
5633}
5634_ACEOF
5635if ac_fn_c_try_link "$LINENO"; then :
5636  eval $cacheid=yes
5637else
5638  eval $cacheid=no
5639fi
5640rm -f core conftest.err conftest.$ac_objext \
5641    conftest$ac_exeext conftest.$ac_ext
5642fi
5643
5644
5645		CFLAGS="$xorg_testset_save_CFLAGS"
5646
5647		eval supported=\$$cacheid
5648		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5649$as_echo "$supported" >&6; }
5650		if test "$supported" = "yes" ; then
5651			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5652			found="yes"
5653		fi
5654	fi
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670xorg_testset_save_CFLAGS="$CFLAGS"
5671
5672if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5673	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5674	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5675$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5676if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5677  $as_echo_n "(cached) " >&6
5678else
5679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680/* end confdefs.h.  */
5681int i;
5682_ACEOF
5683if ac_fn_c_try_compile "$LINENO"; then :
5684  xorg_cv_cc_flag_unknown_warning_option=yes
5685else
5686  xorg_cv_cc_flag_unknown_warning_option=no
5687fi
5688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5689fi
5690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5691$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5692	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5693	CFLAGS="$xorg_testset_save_CFLAGS"
5694fi
5695
5696if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5697	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5698		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5699	fi
5700	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5701	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5702$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5703if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5704  $as_echo_n "(cached) " >&6
5705else
5706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5707/* end confdefs.h.  */
5708int i;
5709_ACEOF
5710if ac_fn_c_try_compile "$LINENO"; then :
5711  xorg_cv_cc_flag_unused_command_line_argument=yes
5712else
5713  xorg_cv_cc_flag_unused_command_line_argument=no
5714fi
5715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5716fi
5717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5718$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5719	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5720	CFLAGS="$xorg_testset_save_CFLAGS"
5721fi
5722
5723found="no"
5724
5725	if test $found = "no" ; then
5726		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5727			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5728		fi
5729
5730		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5731			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5732		fi
5733
5734		CFLAGS="$CFLAGS -Wold-style-definition"
5735
5736		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5737$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5738		cacheid=xorg_cv_cc_flag__Wold_style_definition
5739		if eval \${$cacheid+:} false; then :
5740  $as_echo_n "(cached) " >&6
5741else
5742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5743/* end confdefs.h.  */
5744int i;
5745int
5746main ()
5747{
5748
5749  ;
5750  return 0;
5751}
5752_ACEOF
5753if ac_fn_c_try_link "$LINENO"; then :
5754  eval $cacheid=yes
5755else
5756  eval $cacheid=no
5757fi
5758rm -f core conftest.err conftest.$ac_objext \
5759    conftest$ac_exeext conftest.$ac_ext
5760fi
5761
5762
5763		CFLAGS="$xorg_testset_save_CFLAGS"
5764
5765		eval supported=\$$cacheid
5766		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5767$as_echo "$supported" >&6; }
5768		if test "$supported" = "yes" ; then
5769			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5770			found="yes"
5771		fi
5772	fi
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788xorg_testset_save_CFLAGS="$CFLAGS"
5789
5790if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5791	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5792	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5793$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5794if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5795  $as_echo_n "(cached) " >&6
5796else
5797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5798/* end confdefs.h.  */
5799int i;
5800_ACEOF
5801if ac_fn_c_try_compile "$LINENO"; then :
5802  xorg_cv_cc_flag_unknown_warning_option=yes
5803else
5804  xorg_cv_cc_flag_unknown_warning_option=no
5805fi
5806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5807fi
5808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5809$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5810	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5811	CFLAGS="$xorg_testset_save_CFLAGS"
5812fi
5813
5814if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5815	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5816		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5817	fi
5818	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5819	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5820$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5821if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5822  $as_echo_n "(cached) " >&6
5823else
5824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5825/* end confdefs.h.  */
5826int i;
5827_ACEOF
5828if ac_fn_c_try_compile "$LINENO"; then :
5829  xorg_cv_cc_flag_unused_command_line_argument=yes
5830else
5831  xorg_cv_cc_flag_unused_command_line_argument=no
5832fi
5833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5834fi
5835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5836$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5837	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5838	CFLAGS="$xorg_testset_save_CFLAGS"
5839fi
5840
5841found="no"
5842
5843	if test $found = "no" ; then
5844		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5845			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5846		fi
5847
5848		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5849			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5850		fi
5851
5852		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5853
5854		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5855$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5856		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5857		if eval \${$cacheid+:} false; then :
5858  $as_echo_n "(cached) " >&6
5859else
5860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5861/* end confdefs.h.  */
5862int i;
5863int
5864main ()
5865{
5866
5867  ;
5868  return 0;
5869}
5870_ACEOF
5871if ac_fn_c_try_link "$LINENO"; then :
5872  eval $cacheid=yes
5873else
5874  eval $cacheid=no
5875fi
5876rm -f core conftest.err conftest.$ac_objext \
5877    conftest$ac_exeext conftest.$ac_ext
5878fi
5879
5880
5881		CFLAGS="$xorg_testset_save_CFLAGS"
5882
5883		eval supported=\$$cacheid
5884		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5885$as_echo "$supported" >&6; }
5886		if test "$supported" = "yes" ; then
5887			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5888			found="yes"
5889		fi
5890	fi
5891
5892
5893
5894
5895
5896# This chunk adds additional warnings that could catch undesired effects.
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910xorg_testset_save_CFLAGS="$CFLAGS"
5911
5912if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5913	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5914	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5915$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5916if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5917  $as_echo_n "(cached) " >&6
5918else
5919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5920/* end confdefs.h.  */
5921int i;
5922_ACEOF
5923if ac_fn_c_try_compile "$LINENO"; then :
5924  xorg_cv_cc_flag_unknown_warning_option=yes
5925else
5926  xorg_cv_cc_flag_unknown_warning_option=no
5927fi
5928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5929fi
5930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5931$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5932	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5933	CFLAGS="$xorg_testset_save_CFLAGS"
5934fi
5935
5936if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5937	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5938		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5939	fi
5940	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5941	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5942$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5943if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5944  $as_echo_n "(cached) " >&6
5945else
5946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5947/* end confdefs.h.  */
5948int i;
5949_ACEOF
5950if ac_fn_c_try_compile "$LINENO"; then :
5951  xorg_cv_cc_flag_unused_command_line_argument=yes
5952else
5953  xorg_cv_cc_flag_unused_command_line_argument=no
5954fi
5955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5956fi
5957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5958$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5959	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5960	CFLAGS="$xorg_testset_save_CFLAGS"
5961fi
5962
5963found="no"
5964
5965	if test $found = "no" ; then
5966		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5967			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5968		fi
5969
5970		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5971			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5972		fi
5973
5974		CFLAGS="$CFLAGS -Wunused"
5975
5976		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5977$as_echo_n "checking if $CC supports -Wunused... " >&6; }
5978		cacheid=xorg_cv_cc_flag__Wunused
5979		if eval \${$cacheid+:} false; then :
5980  $as_echo_n "(cached) " >&6
5981else
5982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5983/* end confdefs.h.  */
5984int i;
5985int
5986main ()
5987{
5988
5989  ;
5990  return 0;
5991}
5992_ACEOF
5993if ac_fn_c_try_link "$LINENO"; then :
5994  eval $cacheid=yes
5995else
5996  eval $cacheid=no
5997fi
5998rm -f core conftest.err conftest.$ac_objext \
5999    conftest$ac_exeext conftest.$ac_ext
6000fi
6001
6002
6003		CFLAGS="$xorg_testset_save_CFLAGS"
6004
6005		eval supported=\$$cacheid
6006		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6007$as_echo "$supported" >&6; }
6008		if test "$supported" = "yes" ; then
6009			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6010			found="yes"
6011		fi
6012	fi
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028xorg_testset_save_CFLAGS="$CFLAGS"
6029
6030if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6031	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6032	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6033$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6034if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6035  $as_echo_n "(cached) " >&6
6036else
6037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6038/* end confdefs.h.  */
6039int i;
6040_ACEOF
6041if ac_fn_c_try_compile "$LINENO"; then :
6042  xorg_cv_cc_flag_unknown_warning_option=yes
6043else
6044  xorg_cv_cc_flag_unknown_warning_option=no
6045fi
6046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6047fi
6048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6049$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6050	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6051	CFLAGS="$xorg_testset_save_CFLAGS"
6052fi
6053
6054if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6055	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6056		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6057	fi
6058	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6059	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6060$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6061if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6062  $as_echo_n "(cached) " >&6
6063else
6064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6065/* end confdefs.h.  */
6066int i;
6067_ACEOF
6068if ac_fn_c_try_compile "$LINENO"; then :
6069  xorg_cv_cc_flag_unused_command_line_argument=yes
6070else
6071  xorg_cv_cc_flag_unused_command_line_argument=no
6072fi
6073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6074fi
6075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6076$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6077	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6078	CFLAGS="$xorg_testset_save_CFLAGS"
6079fi
6080
6081found="no"
6082
6083	if test $found = "no" ; then
6084		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6085			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6086		fi
6087
6088		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6089			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6090		fi
6091
6092		CFLAGS="$CFLAGS -Wuninitialized"
6093
6094		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6095$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6096		cacheid=xorg_cv_cc_flag__Wuninitialized
6097		if eval \${$cacheid+:} false; then :
6098  $as_echo_n "(cached) " >&6
6099else
6100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6101/* end confdefs.h.  */
6102int i;
6103int
6104main ()
6105{
6106
6107  ;
6108  return 0;
6109}
6110_ACEOF
6111if ac_fn_c_try_link "$LINENO"; then :
6112  eval $cacheid=yes
6113else
6114  eval $cacheid=no
6115fi
6116rm -f core conftest.err conftest.$ac_objext \
6117    conftest$ac_exeext conftest.$ac_ext
6118fi
6119
6120
6121		CFLAGS="$xorg_testset_save_CFLAGS"
6122
6123		eval supported=\$$cacheid
6124		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6125$as_echo "$supported" >&6; }
6126		if test "$supported" = "yes" ; then
6127			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6128			found="yes"
6129		fi
6130	fi
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146xorg_testset_save_CFLAGS="$CFLAGS"
6147
6148if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6149	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6150	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6151$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6152if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6153  $as_echo_n "(cached) " >&6
6154else
6155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6156/* end confdefs.h.  */
6157int i;
6158_ACEOF
6159if ac_fn_c_try_compile "$LINENO"; then :
6160  xorg_cv_cc_flag_unknown_warning_option=yes
6161else
6162  xorg_cv_cc_flag_unknown_warning_option=no
6163fi
6164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6165fi
6166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6167$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6168	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6169	CFLAGS="$xorg_testset_save_CFLAGS"
6170fi
6171
6172if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6173	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6174		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6175	fi
6176	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6177	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6178$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6179if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6180  $as_echo_n "(cached) " >&6
6181else
6182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6183/* end confdefs.h.  */
6184int i;
6185_ACEOF
6186if ac_fn_c_try_compile "$LINENO"; then :
6187  xorg_cv_cc_flag_unused_command_line_argument=yes
6188else
6189  xorg_cv_cc_flag_unused_command_line_argument=no
6190fi
6191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6192fi
6193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6194$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6195	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6196	CFLAGS="$xorg_testset_save_CFLAGS"
6197fi
6198
6199found="no"
6200
6201	if test $found = "no" ; then
6202		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6203			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6204		fi
6205
6206		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6207			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6208		fi
6209
6210		CFLAGS="$CFLAGS -Wshadow"
6211
6212		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6213$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6214		cacheid=xorg_cv_cc_flag__Wshadow
6215		if eval \${$cacheid+:} false; then :
6216  $as_echo_n "(cached) " >&6
6217else
6218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6219/* end confdefs.h.  */
6220int i;
6221int
6222main ()
6223{
6224
6225  ;
6226  return 0;
6227}
6228_ACEOF
6229if ac_fn_c_try_link "$LINENO"; then :
6230  eval $cacheid=yes
6231else
6232  eval $cacheid=no
6233fi
6234rm -f core conftest.err conftest.$ac_objext \
6235    conftest$ac_exeext conftest.$ac_ext
6236fi
6237
6238
6239		CFLAGS="$xorg_testset_save_CFLAGS"
6240
6241		eval supported=\$$cacheid
6242		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6243$as_echo "$supported" >&6; }
6244		if test "$supported" = "yes" ; then
6245			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6246			found="yes"
6247		fi
6248	fi
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264xorg_testset_save_CFLAGS="$CFLAGS"
6265
6266if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6267	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6268	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6269$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6270if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6271  $as_echo_n "(cached) " >&6
6272else
6273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6274/* end confdefs.h.  */
6275int i;
6276_ACEOF
6277if ac_fn_c_try_compile "$LINENO"; then :
6278  xorg_cv_cc_flag_unknown_warning_option=yes
6279else
6280  xorg_cv_cc_flag_unknown_warning_option=no
6281fi
6282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6283fi
6284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6285$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6286	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6287	CFLAGS="$xorg_testset_save_CFLAGS"
6288fi
6289
6290if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6291	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6292		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6293	fi
6294	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6295	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6296$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6297if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6298  $as_echo_n "(cached) " >&6
6299else
6300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6301/* end confdefs.h.  */
6302int i;
6303_ACEOF
6304if ac_fn_c_try_compile "$LINENO"; then :
6305  xorg_cv_cc_flag_unused_command_line_argument=yes
6306else
6307  xorg_cv_cc_flag_unused_command_line_argument=no
6308fi
6309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6310fi
6311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6312$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6313	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6314	CFLAGS="$xorg_testset_save_CFLAGS"
6315fi
6316
6317found="no"
6318
6319	if test $found = "no" ; then
6320		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6321			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6322		fi
6323
6324		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6325			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6326		fi
6327
6328		CFLAGS="$CFLAGS -Wcast-qual"
6329
6330		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6331$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6332		cacheid=xorg_cv_cc_flag__Wcast_qual
6333		if eval \${$cacheid+:} false; then :
6334  $as_echo_n "(cached) " >&6
6335else
6336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6337/* end confdefs.h.  */
6338int i;
6339int
6340main ()
6341{
6342
6343  ;
6344  return 0;
6345}
6346_ACEOF
6347if ac_fn_c_try_link "$LINENO"; then :
6348  eval $cacheid=yes
6349else
6350  eval $cacheid=no
6351fi
6352rm -f core conftest.err conftest.$ac_objext \
6353    conftest$ac_exeext conftest.$ac_ext
6354fi
6355
6356
6357		CFLAGS="$xorg_testset_save_CFLAGS"
6358
6359		eval supported=\$$cacheid
6360		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6361$as_echo "$supported" >&6; }
6362		if test "$supported" = "yes" ; then
6363			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6364			found="yes"
6365		fi
6366	fi
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382xorg_testset_save_CFLAGS="$CFLAGS"
6383
6384if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6385	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6386	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6387$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6388if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6389  $as_echo_n "(cached) " >&6
6390else
6391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6392/* end confdefs.h.  */
6393int i;
6394_ACEOF
6395if ac_fn_c_try_compile "$LINENO"; then :
6396  xorg_cv_cc_flag_unknown_warning_option=yes
6397else
6398  xorg_cv_cc_flag_unknown_warning_option=no
6399fi
6400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6401fi
6402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6403$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6404	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6405	CFLAGS="$xorg_testset_save_CFLAGS"
6406fi
6407
6408if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6409	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6410		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6411	fi
6412	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6413	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6414$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6415if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6416  $as_echo_n "(cached) " >&6
6417else
6418  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6419/* end confdefs.h.  */
6420int i;
6421_ACEOF
6422if ac_fn_c_try_compile "$LINENO"; then :
6423  xorg_cv_cc_flag_unused_command_line_argument=yes
6424else
6425  xorg_cv_cc_flag_unused_command_line_argument=no
6426fi
6427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6428fi
6429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6430$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6431	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6432	CFLAGS="$xorg_testset_save_CFLAGS"
6433fi
6434
6435found="no"
6436
6437	if test $found = "no" ; then
6438		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6439			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6440		fi
6441
6442		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6443			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6444		fi
6445
6446		CFLAGS="$CFLAGS -Wmissing-noreturn"
6447
6448		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6449$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6450		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6451		if eval \${$cacheid+:} false; then :
6452  $as_echo_n "(cached) " >&6
6453else
6454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6455/* end confdefs.h.  */
6456int i;
6457int
6458main ()
6459{
6460
6461  ;
6462  return 0;
6463}
6464_ACEOF
6465if ac_fn_c_try_link "$LINENO"; then :
6466  eval $cacheid=yes
6467else
6468  eval $cacheid=no
6469fi
6470rm -f core conftest.err conftest.$ac_objext \
6471    conftest$ac_exeext conftest.$ac_ext
6472fi
6473
6474
6475		CFLAGS="$xorg_testset_save_CFLAGS"
6476
6477		eval supported=\$$cacheid
6478		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6479$as_echo "$supported" >&6; }
6480		if test "$supported" = "yes" ; then
6481			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6482			found="yes"
6483		fi
6484	fi
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500xorg_testset_save_CFLAGS="$CFLAGS"
6501
6502if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6503	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6504	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6505$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6506if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6507  $as_echo_n "(cached) " >&6
6508else
6509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6510/* end confdefs.h.  */
6511int i;
6512_ACEOF
6513if ac_fn_c_try_compile "$LINENO"; then :
6514  xorg_cv_cc_flag_unknown_warning_option=yes
6515else
6516  xorg_cv_cc_flag_unknown_warning_option=no
6517fi
6518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6519fi
6520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6521$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6522	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6523	CFLAGS="$xorg_testset_save_CFLAGS"
6524fi
6525
6526if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6527	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6528		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6529	fi
6530	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6531	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6532$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6533if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6534  $as_echo_n "(cached) " >&6
6535else
6536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6537/* end confdefs.h.  */
6538int i;
6539_ACEOF
6540if ac_fn_c_try_compile "$LINENO"; then :
6541  xorg_cv_cc_flag_unused_command_line_argument=yes
6542else
6543  xorg_cv_cc_flag_unused_command_line_argument=no
6544fi
6545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6546fi
6547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6548$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6549	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6550	CFLAGS="$xorg_testset_save_CFLAGS"
6551fi
6552
6553found="no"
6554
6555	if test $found = "no" ; then
6556		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6557			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6558		fi
6559
6560		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6561			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6562		fi
6563
6564		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6565
6566		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6567$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6568		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6569		if eval \${$cacheid+:} false; then :
6570  $as_echo_n "(cached) " >&6
6571else
6572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573/* end confdefs.h.  */
6574int i;
6575int
6576main ()
6577{
6578
6579  ;
6580  return 0;
6581}
6582_ACEOF
6583if ac_fn_c_try_link "$LINENO"; then :
6584  eval $cacheid=yes
6585else
6586  eval $cacheid=no
6587fi
6588rm -f core conftest.err conftest.$ac_objext \
6589    conftest$ac_exeext conftest.$ac_ext
6590fi
6591
6592
6593		CFLAGS="$xorg_testset_save_CFLAGS"
6594
6595		eval supported=\$$cacheid
6596		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6597$as_echo "$supported" >&6; }
6598		if test "$supported" = "yes" ; then
6599			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6600			found="yes"
6601		fi
6602	fi
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618xorg_testset_save_CFLAGS="$CFLAGS"
6619
6620if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6621	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6622	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6623$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6624if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6625  $as_echo_n "(cached) " >&6
6626else
6627  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6628/* end confdefs.h.  */
6629int i;
6630_ACEOF
6631if ac_fn_c_try_compile "$LINENO"; then :
6632  xorg_cv_cc_flag_unknown_warning_option=yes
6633else
6634  xorg_cv_cc_flag_unknown_warning_option=no
6635fi
6636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6637fi
6638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6639$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6640	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6641	CFLAGS="$xorg_testset_save_CFLAGS"
6642fi
6643
6644if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6645	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6646		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6647	fi
6648	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6649	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6650$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6651if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6652  $as_echo_n "(cached) " >&6
6653else
6654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6655/* end confdefs.h.  */
6656int i;
6657_ACEOF
6658if ac_fn_c_try_compile "$LINENO"; then :
6659  xorg_cv_cc_flag_unused_command_line_argument=yes
6660else
6661  xorg_cv_cc_flag_unused_command_line_argument=no
6662fi
6663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6664fi
6665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6666$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6667	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6668	CFLAGS="$xorg_testset_save_CFLAGS"
6669fi
6670
6671found="no"
6672
6673	if test $found = "no" ; then
6674		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6675			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6676		fi
6677
6678		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6679			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6680		fi
6681
6682		CFLAGS="$CFLAGS -Wredundant-decls"
6683
6684		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6685$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6686		cacheid=xorg_cv_cc_flag__Wredundant_decls
6687		if eval \${$cacheid+:} false; then :
6688  $as_echo_n "(cached) " >&6
6689else
6690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6691/* end confdefs.h.  */
6692int i;
6693int
6694main ()
6695{
6696
6697  ;
6698  return 0;
6699}
6700_ACEOF
6701if ac_fn_c_try_link "$LINENO"; then :
6702  eval $cacheid=yes
6703else
6704  eval $cacheid=no
6705fi
6706rm -f core conftest.err conftest.$ac_objext \
6707    conftest$ac_exeext conftest.$ac_ext
6708fi
6709
6710
6711		CFLAGS="$xorg_testset_save_CFLAGS"
6712
6713		eval supported=\$$cacheid
6714		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6715$as_echo "$supported" >&6; }
6716		if test "$supported" = "yes" ; then
6717			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6718			found="yes"
6719		fi
6720	fi
6721
6722
6723
6724# These are currently disabled because they are noisy.  They will be enabled
6725# in the future once the codebase is sufficiently modernized to silence
6726# them.  For now, I don't want them to drown out the other warnings.
6727# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6728# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6729# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6730
6731# Turn some warnings into errors, so we don't accidently get successful builds
6732# when there are problems that should be fixed.
6733
6734if test "x$SELECTIVE_WERROR" = "xyes" ; then
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748xorg_testset_save_CFLAGS="$CFLAGS"
6749
6750if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6751	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6752	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6753$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6754if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6755  $as_echo_n "(cached) " >&6
6756else
6757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6758/* end confdefs.h.  */
6759int i;
6760_ACEOF
6761if ac_fn_c_try_compile "$LINENO"; then :
6762  xorg_cv_cc_flag_unknown_warning_option=yes
6763else
6764  xorg_cv_cc_flag_unknown_warning_option=no
6765fi
6766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6767fi
6768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6769$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6770	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6771	CFLAGS="$xorg_testset_save_CFLAGS"
6772fi
6773
6774if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6775	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6776		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6777	fi
6778	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6779	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6780$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6781if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6782  $as_echo_n "(cached) " >&6
6783else
6784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785/* end confdefs.h.  */
6786int i;
6787_ACEOF
6788if ac_fn_c_try_compile "$LINENO"; then :
6789  xorg_cv_cc_flag_unused_command_line_argument=yes
6790else
6791  xorg_cv_cc_flag_unused_command_line_argument=no
6792fi
6793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6794fi
6795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6796$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6797	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6798	CFLAGS="$xorg_testset_save_CFLAGS"
6799fi
6800
6801found="no"
6802
6803	if test $found = "no" ; then
6804		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6805			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6806		fi
6807
6808		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6809			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6810		fi
6811
6812		CFLAGS="$CFLAGS -Werror=implicit"
6813
6814		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6815$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6816		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6817		if eval \${$cacheid+:} false; then :
6818  $as_echo_n "(cached) " >&6
6819else
6820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6821/* end confdefs.h.  */
6822int i;
6823int
6824main ()
6825{
6826
6827  ;
6828  return 0;
6829}
6830_ACEOF
6831if ac_fn_c_try_link "$LINENO"; then :
6832  eval $cacheid=yes
6833else
6834  eval $cacheid=no
6835fi
6836rm -f core conftest.err conftest.$ac_objext \
6837    conftest$ac_exeext conftest.$ac_ext
6838fi
6839
6840
6841		CFLAGS="$xorg_testset_save_CFLAGS"
6842
6843		eval supported=\$$cacheid
6844		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6845$as_echo "$supported" >&6; }
6846		if test "$supported" = "yes" ; then
6847			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6848			found="yes"
6849		fi
6850	fi
6851
6852	if test $found = "no" ; then
6853		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6854			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6855		fi
6856
6857		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6858			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6859		fi
6860
6861		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6862
6863		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6864$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6865		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6866		if eval \${$cacheid+:} false; then :
6867  $as_echo_n "(cached) " >&6
6868else
6869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6870/* end confdefs.h.  */
6871int i;
6872int
6873main ()
6874{
6875
6876  ;
6877  return 0;
6878}
6879_ACEOF
6880if ac_fn_c_try_link "$LINENO"; then :
6881  eval $cacheid=yes
6882else
6883  eval $cacheid=no
6884fi
6885rm -f core conftest.err conftest.$ac_objext \
6886    conftest$ac_exeext conftest.$ac_ext
6887fi
6888
6889
6890		CFLAGS="$xorg_testset_save_CFLAGS"
6891
6892		eval supported=\$$cacheid
6893		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6894$as_echo "$supported" >&6; }
6895		if test "$supported" = "yes" ; then
6896			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6897			found="yes"
6898		fi
6899	fi
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915xorg_testset_save_CFLAGS="$CFLAGS"
6916
6917if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6918	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6919	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6920$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6921if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6922  $as_echo_n "(cached) " >&6
6923else
6924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6925/* end confdefs.h.  */
6926int i;
6927_ACEOF
6928if ac_fn_c_try_compile "$LINENO"; then :
6929  xorg_cv_cc_flag_unknown_warning_option=yes
6930else
6931  xorg_cv_cc_flag_unknown_warning_option=no
6932fi
6933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6934fi
6935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6936$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6937	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6938	CFLAGS="$xorg_testset_save_CFLAGS"
6939fi
6940
6941if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6942	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6943		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6944	fi
6945	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6946	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6947$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6948if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6949  $as_echo_n "(cached) " >&6
6950else
6951  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6952/* end confdefs.h.  */
6953int i;
6954_ACEOF
6955if ac_fn_c_try_compile "$LINENO"; then :
6956  xorg_cv_cc_flag_unused_command_line_argument=yes
6957else
6958  xorg_cv_cc_flag_unused_command_line_argument=no
6959fi
6960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6961fi
6962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6963$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6964	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6965	CFLAGS="$xorg_testset_save_CFLAGS"
6966fi
6967
6968found="no"
6969
6970	if test $found = "no" ; then
6971		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6972			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6973		fi
6974
6975		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6976			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6977		fi
6978
6979		CFLAGS="$CFLAGS -Werror=nonnull"
6980
6981		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6982$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6983		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
6984		if eval \${$cacheid+:} false; then :
6985  $as_echo_n "(cached) " >&6
6986else
6987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6988/* end confdefs.h.  */
6989int i;
6990int
6991main ()
6992{
6993
6994  ;
6995  return 0;
6996}
6997_ACEOF
6998if ac_fn_c_try_link "$LINENO"; then :
6999  eval $cacheid=yes
7000else
7001  eval $cacheid=no
7002fi
7003rm -f core conftest.err conftest.$ac_objext \
7004    conftest$ac_exeext conftest.$ac_ext
7005fi
7006
7007
7008		CFLAGS="$xorg_testset_save_CFLAGS"
7009
7010		eval supported=\$$cacheid
7011		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7012$as_echo "$supported" >&6; }
7013		if test "$supported" = "yes" ; then
7014			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7015			found="yes"
7016		fi
7017	fi
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033xorg_testset_save_CFLAGS="$CFLAGS"
7034
7035if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7036	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7037	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7038$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7039if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7040  $as_echo_n "(cached) " >&6
7041else
7042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7043/* end confdefs.h.  */
7044int i;
7045_ACEOF
7046if ac_fn_c_try_compile "$LINENO"; then :
7047  xorg_cv_cc_flag_unknown_warning_option=yes
7048else
7049  xorg_cv_cc_flag_unknown_warning_option=no
7050fi
7051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7052fi
7053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7054$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7055	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7056	CFLAGS="$xorg_testset_save_CFLAGS"
7057fi
7058
7059if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7060	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7061		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7062	fi
7063	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7064	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7065$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7066if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7067  $as_echo_n "(cached) " >&6
7068else
7069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7070/* end confdefs.h.  */
7071int i;
7072_ACEOF
7073if ac_fn_c_try_compile "$LINENO"; then :
7074  xorg_cv_cc_flag_unused_command_line_argument=yes
7075else
7076  xorg_cv_cc_flag_unused_command_line_argument=no
7077fi
7078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7079fi
7080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7081$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7082	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7083	CFLAGS="$xorg_testset_save_CFLAGS"
7084fi
7085
7086found="no"
7087
7088	if test $found = "no" ; then
7089		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7090			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7091		fi
7092
7093		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7094			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7095		fi
7096
7097		CFLAGS="$CFLAGS -Werror=init-self"
7098
7099		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7100$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7101		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7102		if eval \${$cacheid+:} false; then :
7103  $as_echo_n "(cached) " >&6
7104else
7105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7106/* end confdefs.h.  */
7107int i;
7108int
7109main ()
7110{
7111
7112  ;
7113  return 0;
7114}
7115_ACEOF
7116if ac_fn_c_try_link "$LINENO"; then :
7117  eval $cacheid=yes
7118else
7119  eval $cacheid=no
7120fi
7121rm -f core conftest.err conftest.$ac_objext \
7122    conftest$ac_exeext conftest.$ac_ext
7123fi
7124
7125
7126		CFLAGS="$xorg_testset_save_CFLAGS"
7127
7128		eval supported=\$$cacheid
7129		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7130$as_echo "$supported" >&6; }
7131		if test "$supported" = "yes" ; then
7132			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7133			found="yes"
7134		fi
7135	fi
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151xorg_testset_save_CFLAGS="$CFLAGS"
7152
7153if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7154	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7155	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7156$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7157if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7158  $as_echo_n "(cached) " >&6
7159else
7160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7161/* end confdefs.h.  */
7162int i;
7163_ACEOF
7164if ac_fn_c_try_compile "$LINENO"; then :
7165  xorg_cv_cc_flag_unknown_warning_option=yes
7166else
7167  xorg_cv_cc_flag_unknown_warning_option=no
7168fi
7169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7170fi
7171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7172$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7173	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7174	CFLAGS="$xorg_testset_save_CFLAGS"
7175fi
7176
7177if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7178	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7179		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7180	fi
7181	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7182	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7183$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7184if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7185  $as_echo_n "(cached) " >&6
7186else
7187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7188/* end confdefs.h.  */
7189int i;
7190_ACEOF
7191if ac_fn_c_try_compile "$LINENO"; then :
7192  xorg_cv_cc_flag_unused_command_line_argument=yes
7193else
7194  xorg_cv_cc_flag_unused_command_line_argument=no
7195fi
7196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7197fi
7198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7199$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7200	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7201	CFLAGS="$xorg_testset_save_CFLAGS"
7202fi
7203
7204found="no"
7205
7206	if test $found = "no" ; then
7207		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7208			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7209		fi
7210
7211		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7212			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7213		fi
7214
7215		CFLAGS="$CFLAGS -Werror=main"
7216
7217		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7218$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7219		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7220		if eval \${$cacheid+:} false; then :
7221  $as_echo_n "(cached) " >&6
7222else
7223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7224/* end confdefs.h.  */
7225int i;
7226int
7227main ()
7228{
7229
7230  ;
7231  return 0;
7232}
7233_ACEOF
7234if ac_fn_c_try_link "$LINENO"; then :
7235  eval $cacheid=yes
7236else
7237  eval $cacheid=no
7238fi
7239rm -f core conftest.err conftest.$ac_objext \
7240    conftest$ac_exeext conftest.$ac_ext
7241fi
7242
7243
7244		CFLAGS="$xorg_testset_save_CFLAGS"
7245
7246		eval supported=\$$cacheid
7247		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7248$as_echo "$supported" >&6; }
7249		if test "$supported" = "yes" ; then
7250			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7251			found="yes"
7252		fi
7253	fi
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269xorg_testset_save_CFLAGS="$CFLAGS"
7270
7271if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7272	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7273	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7274$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7275if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7276  $as_echo_n "(cached) " >&6
7277else
7278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7279/* end confdefs.h.  */
7280int i;
7281_ACEOF
7282if ac_fn_c_try_compile "$LINENO"; then :
7283  xorg_cv_cc_flag_unknown_warning_option=yes
7284else
7285  xorg_cv_cc_flag_unknown_warning_option=no
7286fi
7287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7288fi
7289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7290$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7291	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7292	CFLAGS="$xorg_testset_save_CFLAGS"
7293fi
7294
7295if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7296	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7297		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7298	fi
7299	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7300	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7301$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7302if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7303  $as_echo_n "(cached) " >&6
7304else
7305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7306/* end confdefs.h.  */
7307int i;
7308_ACEOF
7309if ac_fn_c_try_compile "$LINENO"; then :
7310  xorg_cv_cc_flag_unused_command_line_argument=yes
7311else
7312  xorg_cv_cc_flag_unused_command_line_argument=no
7313fi
7314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7315fi
7316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7317$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7318	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7319	CFLAGS="$xorg_testset_save_CFLAGS"
7320fi
7321
7322found="no"
7323
7324	if test $found = "no" ; then
7325		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7326			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7327		fi
7328
7329		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7330			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7331		fi
7332
7333		CFLAGS="$CFLAGS -Werror=missing-braces"
7334
7335		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7336$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7337		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7338		if eval \${$cacheid+:} false; then :
7339  $as_echo_n "(cached) " >&6
7340else
7341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7342/* end confdefs.h.  */
7343int i;
7344int
7345main ()
7346{
7347
7348  ;
7349  return 0;
7350}
7351_ACEOF
7352if ac_fn_c_try_link "$LINENO"; then :
7353  eval $cacheid=yes
7354else
7355  eval $cacheid=no
7356fi
7357rm -f core conftest.err conftest.$ac_objext \
7358    conftest$ac_exeext conftest.$ac_ext
7359fi
7360
7361
7362		CFLAGS="$xorg_testset_save_CFLAGS"
7363
7364		eval supported=\$$cacheid
7365		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7366$as_echo "$supported" >&6; }
7367		if test "$supported" = "yes" ; then
7368			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7369			found="yes"
7370		fi
7371	fi
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387xorg_testset_save_CFLAGS="$CFLAGS"
7388
7389if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7390	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7391	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7392$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7393if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7394  $as_echo_n "(cached) " >&6
7395else
7396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7397/* end confdefs.h.  */
7398int i;
7399_ACEOF
7400if ac_fn_c_try_compile "$LINENO"; then :
7401  xorg_cv_cc_flag_unknown_warning_option=yes
7402else
7403  xorg_cv_cc_flag_unknown_warning_option=no
7404fi
7405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7406fi
7407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7408$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7409	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7410	CFLAGS="$xorg_testset_save_CFLAGS"
7411fi
7412
7413if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7414	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7415		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7416	fi
7417	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7418	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7419$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7420if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7421  $as_echo_n "(cached) " >&6
7422else
7423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7424/* end confdefs.h.  */
7425int i;
7426_ACEOF
7427if ac_fn_c_try_compile "$LINENO"; then :
7428  xorg_cv_cc_flag_unused_command_line_argument=yes
7429else
7430  xorg_cv_cc_flag_unused_command_line_argument=no
7431fi
7432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7433fi
7434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7435$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7436	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7437	CFLAGS="$xorg_testset_save_CFLAGS"
7438fi
7439
7440found="no"
7441
7442	if test $found = "no" ; then
7443		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7444			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7445		fi
7446
7447		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7448			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7449		fi
7450
7451		CFLAGS="$CFLAGS -Werror=sequence-point"
7452
7453		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7454$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7455		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7456		if eval \${$cacheid+:} false; then :
7457  $as_echo_n "(cached) " >&6
7458else
7459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7460/* end confdefs.h.  */
7461int i;
7462int
7463main ()
7464{
7465
7466  ;
7467  return 0;
7468}
7469_ACEOF
7470if ac_fn_c_try_link "$LINENO"; then :
7471  eval $cacheid=yes
7472else
7473  eval $cacheid=no
7474fi
7475rm -f core conftest.err conftest.$ac_objext \
7476    conftest$ac_exeext conftest.$ac_ext
7477fi
7478
7479
7480		CFLAGS="$xorg_testset_save_CFLAGS"
7481
7482		eval supported=\$$cacheid
7483		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7484$as_echo "$supported" >&6; }
7485		if test "$supported" = "yes" ; then
7486			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7487			found="yes"
7488		fi
7489	fi
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505xorg_testset_save_CFLAGS="$CFLAGS"
7506
7507if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7508	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7509	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7510$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7511if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7512  $as_echo_n "(cached) " >&6
7513else
7514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7515/* end confdefs.h.  */
7516int i;
7517_ACEOF
7518if ac_fn_c_try_compile "$LINENO"; then :
7519  xorg_cv_cc_flag_unknown_warning_option=yes
7520else
7521  xorg_cv_cc_flag_unknown_warning_option=no
7522fi
7523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7524fi
7525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7526$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7527	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7528	CFLAGS="$xorg_testset_save_CFLAGS"
7529fi
7530
7531if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7532	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7533		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7534	fi
7535	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7536	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7537$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7538if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7539  $as_echo_n "(cached) " >&6
7540else
7541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7542/* end confdefs.h.  */
7543int i;
7544_ACEOF
7545if ac_fn_c_try_compile "$LINENO"; then :
7546  xorg_cv_cc_flag_unused_command_line_argument=yes
7547else
7548  xorg_cv_cc_flag_unused_command_line_argument=no
7549fi
7550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7551fi
7552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7553$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7554	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7555	CFLAGS="$xorg_testset_save_CFLAGS"
7556fi
7557
7558found="no"
7559
7560	if test $found = "no" ; then
7561		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7562			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7563		fi
7564
7565		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7566			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7567		fi
7568
7569		CFLAGS="$CFLAGS -Werror=return-type"
7570
7571		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7572$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7573		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7574		if eval \${$cacheid+:} false; then :
7575  $as_echo_n "(cached) " >&6
7576else
7577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7578/* end confdefs.h.  */
7579int i;
7580int
7581main ()
7582{
7583
7584  ;
7585  return 0;
7586}
7587_ACEOF
7588if ac_fn_c_try_link "$LINENO"; then :
7589  eval $cacheid=yes
7590else
7591  eval $cacheid=no
7592fi
7593rm -f core conftest.err conftest.$ac_objext \
7594    conftest$ac_exeext conftest.$ac_ext
7595fi
7596
7597
7598		CFLAGS="$xorg_testset_save_CFLAGS"
7599
7600		eval supported=\$$cacheid
7601		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7602$as_echo "$supported" >&6; }
7603		if test "$supported" = "yes" ; then
7604			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7605			found="yes"
7606		fi
7607	fi
7608
7609	if test $found = "no" ; then
7610		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7611			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7612		fi
7613
7614		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7615			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7616		fi
7617
7618		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7619
7620		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7621$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7622		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7623		if eval \${$cacheid+:} false; then :
7624  $as_echo_n "(cached) " >&6
7625else
7626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7627/* end confdefs.h.  */
7628int i;
7629int
7630main ()
7631{
7632
7633  ;
7634  return 0;
7635}
7636_ACEOF
7637if ac_fn_c_try_link "$LINENO"; then :
7638  eval $cacheid=yes
7639else
7640  eval $cacheid=no
7641fi
7642rm -f core conftest.err conftest.$ac_objext \
7643    conftest$ac_exeext conftest.$ac_ext
7644fi
7645
7646
7647		CFLAGS="$xorg_testset_save_CFLAGS"
7648
7649		eval supported=\$$cacheid
7650		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7651$as_echo "$supported" >&6; }
7652		if test "$supported" = "yes" ; then
7653			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7654			found="yes"
7655		fi
7656	fi
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672xorg_testset_save_CFLAGS="$CFLAGS"
7673
7674if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7675	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7676	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7677$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7678if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7679  $as_echo_n "(cached) " >&6
7680else
7681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7682/* end confdefs.h.  */
7683int i;
7684_ACEOF
7685if ac_fn_c_try_compile "$LINENO"; then :
7686  xorg_cv_cc_flag_unknown_warning_option=yes
7687else
7688  xorg_cv_cc_flag_unknown_warning_option=no
7689fi
7690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7691fi
7692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7693$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7694	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7695	CFLAGS="$xorg_testset_save_CFLAGS"
7696fi
7697
7698if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7699	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7700		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7701	fi
7702	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7703	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7704$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7705if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7706  $as_echo_n "(cached) " >&6
7707else
7708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7709/* end confdefs.h.  */
7710int i;
7711_ACEOF
7712if ac_fn_c_try_compile "$LINENO"; then :
7713  xorg_cv_cc_flag_unused_command_line_argument=yes
7714else
7715  xorg_cv_cc_flag_unused_command_line_argument=no
7716fi
7717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7718fi
7719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7720$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7721	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7722	CFLAGS="$xorg_testset_save_CFLAGS"
7723fi
7724
7725found="no"
7726
7727	if test $found = "no" ; then
7728		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7729			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7730		fi
7731
7732		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7733			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7734		fi
7735
7736		CFLAGS="$CFLAGS -Werror=trigraphs"
7737
7738		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7739$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7740		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7741		if eval \${$cacheid+:} false; then :
7742  $as_echo_n "(cached) " >&6
7743else
7744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7745/* end confdefs.h.  */
7746int i;
7747int
7748main ()
7749{
7750
7751  ;
7752  return 0;
7753}
7754_ACEOF
7755if ac_fn_c_try_link "$LINENO"; then :
7756  eval $cacheid=yes
7757else
7758  eval $cacheid=no
7759fi
7760rm -f core conftest.err conftest.$ac_objext \
7761    conftest$ac_exeext conftest.$ac_ext
7762fi
7763
7764
7765		CFLAGS="$xorg_testset_save_CFLAGS"
7766
7767		eval supported=\$$cacheid
7768		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7769$as_echo "$supported" >&6; }
7770		if test "$supported" = "yes" ; then
7771			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7772			found="yes"
7773		fi
7774	fi
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790xorg_testset_save_CFLAGS="$CFLAGS"
7791
7792if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7793	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7794	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7795$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7796if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7797  $as_echo_n "(cached) " >&6
7798else
7799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7800/* end confdefs.h.  */
7801int i;
7802_ACEOF
7803if ac_fn_c_try_compile "$LINENO"; then :
7804  xorg_cv_cc_flag_unknown_warning_option=yes
7805else
7806  xorg_cv_cc_flag_unknown_warning_option=no
7807fi
7808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7809fi
7810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7811$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7812	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7813	CFLAGS="$xorg_testset_save_CFLAGS"
7814fi
7815
7816if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7817	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7818		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7819	fi
7820	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7821	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7822$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7823if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7824  $as_echo_n "(cached) " >&6
7825else
7826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7827/* end confdefs.h.  */
7828int i;
7829_ACEOF
7830if ac_fn_c_try_compile "$LINENO"; then :
7831  xorg_cv_cc_flag_unused_command_line_argument=yes
7832else
7833  xorg_cv_cc_flag_unused_command_line_argument=no
7834fi
7835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7836fi
7837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7838$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7839	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7840	CFLAGS="$xorg_testset_save_CFLAGS"
7841fi
7842
7843found="no"
7844
7845	if test $found = "no" ; then
7846		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7847			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7848		fi
7849
7850		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7851			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7852		fi
7853
7854		CFLAGS="$CFLAGS -Werror=array-bounds"
7855
7856		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7857$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7858		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7859		if eval \${$cacheid+:} false; then :
7860  $as_echo_n "(cached) " >&6
7861else
7862  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7863/* end confdefs.h.  */
7864int i;
7865int
7866main ()
7867{
7868
7869  ;
7870  return 0;
7871}
7872_ACEOF
7873if ac_fn_c_try_link "$LINENO"; then :
7874  eval $cacheid=yes
7875else
7876  eval $cacheid=no
7877fi
7878rm -f core conftest.err conftest.$ac_objext \
7879    conftest$ac_exeext conftest.$ac_ext
7880fi
7881
7882
7883		CFLAGS="$xorg_testset_save_CFLAGS"
7884
7885		eval supported=\$$cacheid
7886		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7887$as_echo "$supported" >&6; }
7888		if test "$supported" = "yes" ; then
7889			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7890			found="yes"
7891		fi
7892	fi
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908xorg_testset_save_CFLAGS="$CFLAGS"
7909
7910if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7911	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7912	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7913$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7914if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7915  $as_echo_n "(cached) " >&6
7916else
7917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7918/* end confdefs.h.  */
7919int i;
7920_ACEOF
7921if ac_fn_c_try_compile "$LINENO"; then :
7922  xorg_cv_cc_flag_unknown_warning_option=yes
7923else
7924  xorg_cv_cc_flag_unknown_warning_option=no
7925fi
7926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7927fi
7928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7929$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7930	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7931	CFLAGS="$xorg_testset_save_CFLAGS"
7932fi
7933
7934if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7935	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7936		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7937	fi
7938	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7939	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7940$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7941if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7942  $as_echo_n "(cached) " >&6
7943else
7944  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7945/* end confdefs.h.  */
7946int i;
7947_ACEOF
7948if ac_fn_c_try_compile "$LINENO"; then :
7949  xorg_cv_cc_flag_unused_command_line_argument=yes
7950else
7951  xorg_cv_cc_flag_unused_command_line_argument=no
7952fi
7953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7954fi
7955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7956$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7957	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7958	CFLAGS="$xorg_testset_save_CFLAGS"
7959fi
7960
7961found="no"
7962
7963	if test $found = "no" ; then
7964		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7965			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7966		fi
7967
7968		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7969			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7970		fi
7971
7972		CFLAGS="$CFLAGS -Werror=write-strings"
7973
7974		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7975$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7976		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
7977		if eval \${$cacheid+:} false; then :
7978  $as_echo_n "(cached) " >&6
7979else
7980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7981/* end confdefs.h.  */
7982int i;
7983int
7984main ()
7985{
7986
7987  ;
7988  return 0;
7989}
7990_ACEOF
7991if ac_fn_c_try_link "$LINENO"; then :
7992  eval $cacheid=yes
7993else
7994  eval $cacheid=no
7995fi
7996rm -f core conftest.err conftest.$ac_objext \
7997    conftest$ac_exeext conftest.$ac_ext
7998fi
7999
8000
8001		CFLAGS="$xorg_testset_save_CFLAGS"
8002
8003		eval supported=\$$cacheid
8004		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8005$as_echo "$supported" >&6; }
8006		if test "$supported" = "yes" ; then
8007			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8008			found="yes"
8009		fi
8010	fi
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026xorg_testset_save_CFLAGS="$CFLAGS"
8027
8028if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8029	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8030	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8031$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8032if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8033  $as_echo_n "(cached) " >&6
8034else
8035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8036/* end confdefs.h.  */
8037int i;
8038_ACEOF
8039if ac_fn_c_try_compile "$LINENO"; then :
8040  xorg_cv_cc_flag_unknown_warning_option=yes
8041else
8042  xorg_cv_cc_flag_unknown_warning_option=no
8043fi
8044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8045fi
8046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8047$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8048	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8049	CFLAGS="$xorg_testset_save_CFLAGS"
8050fi
8051
8052if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8053	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8054		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8055	fi
8056	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8057	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8058$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8059if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8060  $as_echo_n "(cached) " >&6
8061else
8062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8063/* end confdefs.h.  */
8064int i;
8065_ACEOF
8066if ac_fn_c_try_compile "$LINENO"; then :
8067  xorg_cv_cc_flag_unused_command_line_argument=yes
8068else
8069  xorg_cv_cc_flag_unused_command_line_argument=no
8070fi
8071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8072fi
8073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8074$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8075	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8076	CFLAGS="$xorg_testset_save_CFLAGS"
8077fi
8078
8079found="no"
8080
8081	if test $found = "no" ; then
8082		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8083			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8084		fi
8085
8086		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8087			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8088		fi
8089
8090		CFLAGS="$CFLAGS -Werror=address"
8091
8092		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8093$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8094		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8095		if eval \${$cacheid+:} false; then :
8096  $as_echo_n "(cached) " >&6
8097else
8098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8099/* end confdefs.h.  */
8100int i;
8101int
8102main ()
8103{
8104
8105  ;
8106  return 0;
8107}
8108_ACEOF
8109if ac_fn_c_try_link "$LINENO"; then :
8110  eval $cacheid=yes
8111else
8112  eval $cacheid=no
8113fi
8114rm -f core conftest.err conftest.$ac_objext \
8115    conftest$ac_exeext conftest.$ac_ext
8116fi
8117
8118
8119		CFLAGS="$xorg_testset_save_CFLAGS"
8120
8121		eval supported=\$$cacheid
8122		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8123$as_echo "$supported" >&6; }
8124		if test "$supported" = "yes" ; then
8125			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8126			found="yes"
8127		fi
8128	fi
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144xorg_testset_save_CFLAGS="$CFLAGS"
8145
8146if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8147	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8148	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8149$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8150if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8151  $as_echo_n "(cached) " >&6
8152else
8153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8154/* end confdefs.h.  */
8155int i;
8156_ACEOF
8157if ac_fn_c_try_compile "$LINENO"; then :
8158  xorg_cv_cc_flag_unknown_warning_option=yes
8159else
8160  xorg_cv_cc_flag_unknown_warning_option=no
8161fi
8162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8163fi
8164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8165$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8166	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8167	CFLAGS="$xorg_testset_save_CFLAGS"
8168fi
8169
8170if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8171	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8172		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8173	fi
8174	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8175	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8176$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8177if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8178  $as_echo_n "(cached) " >&6
8179else
8180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8181/* end confdefs.h.  */
8182int i;
8183_ACEOF
8184if ac_fn_c_try_compile "$LINENO"; then :
8185  xorg_cv_cc_flag_unused_command_line_argument=yes
8186else
8187  xorg_cv_cc_flag_unused_command_line_argument=no
8188fi
8189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8190fi
8191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8192$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8193	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8194	CFLAGS="$xorg_testset_save_CFLAGS"
8195fi
8196
8197found="no"
8198
8199	if test $found = "no" ; then
8200		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8201			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8202		fi
8203
8204		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8205			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8206		fi
8207
8208		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8209
8210		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8211$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8212		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8213		if eval \${$cacheid+:} false; then :
8214  $as_echo_n "(cached) " >&6
8215else
8216  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8217/* end confdefs.h.  */
8218int i;
8219int
8220main ()
8221{
8222
8223  ;
8224  return 0;
8225}
8226_ACEOF
8227if ac_fn_c_try_link "$LINENO"; then :
8228  eval $cacheid=yes
8229else
8230  eval $cacheid=no
8231fi
8232rm -f core conftest.err conftest.$ac_objext \
8233    conftest$ac_exeext conftest.$ac_ext
8234fi
8235
8236
8237		CFLAGS="$xorg_testset_save_CFLAGS"
8238
8239		eval supported=\$$cacheid
8240		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8241$as_echo "$supported" >&6; }
8242		if test "$supported" = "yes" ; then
8243			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8244			found="yes"
8245		fi
8246	fi
8247
8248	if test $found = "no" ; then
8249		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8250			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8251		fi
8252
8253		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8254			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8255		fi
8256
8257		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8258
8259		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8260$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8261		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8262		if eval \${$cacheid+:} false; then :
8263  $as_echo_n "(cached) " >&6
8264else
8265  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8266/* end confdefs.h.  */
8267int i;
8268int
8269main ()
8270{
8271
8272  ;
8273  return 0;
8274}
8275_ACEOF
8276if ac_fn_c_try_link "$LINENO"; then :
8277  eval $cacheid=yes
8278else
8279  eval $cacheid=no
8280fi
8281rm -f core conftest.err conftest.$ac_objext \
8282    conftest$ac_exeext conftest.$ac_ext
8283fi
8284
8285
8286		CFLAGS="$xorg_testset_save_CFLAGS"
8287
8288		eval supported=\$$cacheid
8289		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8290$as_echo "$supported" >&6; }
8291		if test "$supported" = "yes" ; then
8292			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8293			found="yes"
8294		fi
8295	fi
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311xorg_testset_save_CFLAGS="$CFLAGS"
8312
8313if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8314	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8315	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8316$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8317if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8318  $as_echo_n "(cached) " >&6
8319else
8320  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8321/* end confdefs.h.  */
8322int i;
8323_ACEOF
8324if ac_fn_c_try_compile "$LINENO"; then :
8325  xorg_cv_cc_flag_unknown_warning_option=yes
8326else
8327  xorg_cv_cc_flag_unknown_warning_option=no
8328fi
8329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8330fi
8331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8332$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8333	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8334	CFLAGS="$xorg_testset_save_CFLAGS"
8335fi
8336
8337if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8338	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8339		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8340	fi
8341	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8342	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8343$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8344if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8345  $as_echo_n "(cached) " >&6
8346else
8347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8348/* end confdefs.h.  */
8349int i;
8350_ACEOF
8351if ac_fn_c_try_compile "$LINENO"; then :
8352  xorg_cv_cc_flag_unused_command_line_argument=yes
8353else
8354  xorg_cv_cc_flag_unused_command_line_argument=no
8355fi
8356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8357fi
8358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8359$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8360	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8361	CFLAGS="$xorg_testset_save_CFLAGS"
8362fi
8363
8364found="no"
8365
8366	if test $found = "no" ; then
8367		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8368			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8369		fi
8370
8371		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8372			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8373		fi
8374
8375		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8376
8377		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8378$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8379		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8380		if eval \${$cacheid+:} false; then :
8381  $as_echo_n "(cached) " >&6
8382else
8383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8384/* end confdefs.h.  */
8385int i;
8386int
8387main ()
8388{
8389
8390  ;
8391  return 0;
8392}
8393_ACEOF
8394if ac_fn_c_try_link "$LINENO"; then :
8395  eval $cacheid=yes
8396else
8397  eval $cacheid=no
8398fi
8399rm -f core conftest.err conftest.$ac_objext \
8400    conftest$ac_exeext conftest.$ac_ext
8401fi
8402
8403
8404		CFLAGS="$xorg_testset_save_CFLAGS"
8405
8406		eval supported=\$$cacheid
8407		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8408$as_echo "$supported" >&6; }
8409		if test "$supported" = "yes" ; then
8410			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8411			found="yes"
8412		fi
8413	fi
8414
8415 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8416else
8417{ $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
8418$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;}
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432xorg_testset_save_CFLAGS="$CFLAGS"
8433
8434if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8435	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8436	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8437$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8438if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8439  $as_echo_n "(cached) " >&6
8440else
8441  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8442/* end confdefs.h.  */
8443int i;
8444_ACEOF
8445if ac_fn_c_try_compile "$LINENO"; then :
8446  xorg_cv_cc_flag_unknown_warning_option=yes
8447else
8448  xorg_cv_cc_flag_unknown_warning_option=no
8449fi
8450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8451fi
8452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8453$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8454	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8455	CFLAGS="$xorg_testset_save_CFLAGS"
8456fi
8457
8458if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8459	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8460		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8461	fi
8462	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8463	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8464$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8465if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8466  $as_echo_n "(cached) " >&6
8467else
8468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8469/* end confdefs.h.  */
8470int i;
8471_ACEOF
8472if ac_fn_c_try_compile "$LINENO"; then :
8473  xorg_cv_cc_flag_unused_command_line_argument=yes
8474else
8475  xorg_cv_cc_flag_unused_command_line_argument=no
8476fi
8477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8478fi
8479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8480$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8481	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8482	CFLAGS="$xorg_testset_save_CFLAGS"
8483fi
8484
8485found="no"
8486
8487	if test $found = "no" ; then
8488		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8489			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8490		fi
8491
8492		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8493			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8494		fi
8495
8496		CFLAGS="$CFLAGS -Wimplicit"
8497
8498		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8499$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8500		cacheid=xorg_cv_cc_flag__Wimplicit
8501		if eval \${$cacheid+:} false; then :
8502  $as_echo_n "(cached) " >&6
8503else
8504  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8505/* end confdefs.h.  */
8506int i;
8507int
8508main ()
8509{
8510
8511  ;
8512  return 0;
8513}
8514_ACEOF
8515if ac_fn_c_try_link "$LINENO"; then :
8516  eval $cacheid=yes
8517else
8518  eval $cacheid=no
8519fi
8520rm -f core conftest.err conftest.$ac_objext \
8521    conftest$ac_exeext conftest.$ac_ext
8522fi
8523
8524
8525		CFLAGS="$xorg_testset_save_CFLAGS"
8526
8527		eval supported=\$$cacheid
8528		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8529$as_echo "$supported" >&6; }
8530		if test "$supported" = "yes" ; then
8531			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8532			found="yes"
8533		fi
8534	fi
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550xorg_testset_save_CFLAGS="$CFLAGS"
8551
8552if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8553	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8554	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8555$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8556if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8557  $as_echo_n "(cached) " >&6
8558else
8559  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8560/* end confdefs.h.  */
8561int i;
8562_ACEOF
8563if ac_fn_c_try_compile "$LINENO"; then :
8564  xorg_cv_cc_flag_unknown_warning_option=yes
8565else
8566  xorg_cv_cc_flag_unknown_warning_option=no
8567fi
8568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8569fi
8570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8571$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8572	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8573	CFLAGS="$xorg_testset_save_CFLAGS"
8574fi
8575
8576if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8577	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8578		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8579	fi
8580	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8581	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8582$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8583if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8584  $as_echo_n "(cached) " >&6
8585else
8586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8587/* end confdefs.h.  */
8588int i;
8589_ACEOF
8590if ac_fn_c_try_compile "$LINENO"; then :
8591  xorg_cv_cc_flag_unused_command_line_argument=yes
8592else
8593  xorg_cv_cc_flag_unused_command_line_argument=no
8594fi
8595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8596fi
8597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8598$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8599	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8600	CFLAGS="$xorg_testset_save_CFLAGS"
8601fi
8602
8603found="no"
8604
8605	if test $found = "no" ; then
8606		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8607			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8608		fi
8609
8610		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8611			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8612		fi
8613
8614		CFLAGS="$CFLAGS -Wnonnull"
8615
8616		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8617$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8618		cacheid=xorg_cv_cc_flag__Wnonnull
8619		if eval \${$cacheid+:} false; then :
8620  $as_echo_n "(cached) " >&6
8621else
8622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8623/* end confdefs.h.  */
8624int i;
8625int
8626main ()
8627{
8628
8629  ;
8630  return 0;
8631}
8632_ACEOF
8633if ac_fn_c_try_link "$LINENO"; then :
8634  eval $cacheid=yes
8635else
8636  eval $cacheid=no
8637fi
8638rm -f core conftest.err conftest.$ac_objext \
8639    conftest$ac_exeext conftest.$ac_ext
8640fi
8641
8642
8643		CFLAGS="$xorg_testset_save_CFLAGS"
8644
8645		eval supported=\$$cacheid
8646		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8647$as_echo "$supported" >&6; }
8648		if test "$supported" = "yes" ; then
8649			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8650			found="yes"
8651		fi
8652	fi
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668xorg_testset_save_CFLAGS="$CFLAGS"
8669
8670if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8671	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8672	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8673$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8674if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8675  $as_echo_n "(cached) " >&6
8676else
8677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8678/* end confdefs.h.  */
8679int i;
8680_ACEOF
8681if ac_fn_c_try_compile "$LINENO"; then :
8682  xorg_cv_cc_flag_unknown_warning_option=yes
8683else
8684  xorg_cv_cc_flag_unknown_warning_option=no
8685fi
8686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8687fi
8688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8689$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8690	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8691	CFLAGS="$xorg_testset_save_CFLAGS"
8692fi
8693
8694if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8695	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8696		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8697	fi
8698	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8699	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8700$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8701if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8702  $as_echo_n "(cached) " >&6
8703else
8704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8705/* end confdefs.h.  */
8706int i;
8707_ACEOF
8708if ac_fn_c_try_compile "$LINENO"; then :
8709  xorg_cv_cc_flag_unused_command_line_argument=yes
8710else
8711  xorg_cv_cc_flag_unused_command_line_argument=no
8712fi
8713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8714fi
8715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8716$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8717	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8718	CFLAGS="$xorg_testset_save_CFLAGS"
8719fi
8720
8721found="no"
8722
8723	if test $found = "no" ; then
8724		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8725			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8726		fi
8727
8728		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8729			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8730		fi
8731
8732		CFLAGS="$CFLAGS -Winit-self"
8733
8734		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8735$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8736		cacheid=xorg_cv_cc_flag__Winit_self
8737		if eval \${$cacheid+:} false; then :
8738  $as_echo_n "(cached) " >&6
8739else
8740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8741/* end confdefs.h.  */
8742int i;
8743int
8744main ()
8745{
8746
8747  ;
8748  return 0;
8749}
8750_ACEOF
8751if ac_fn_c_try_link "$LINENO"; then :
8752  eval $cacheid=yes
8753else
8754  eval $cacheid=no
8755fi
8756rm -f core conftest.err conftest.$ac_objext \
8757    conftest$ac_exeext conftest.$ac_ext
8758fi
8759
8760
8761		CFLAGS="$xorg_testset_save_CFLAGS"
8762
8763		eval supported=\$$cacheid
8764		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8765$as_echo "$supported" >&6; }
8766		if test "$supported" = "yes" ; then
8767			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8768			found="yes"
8769		fi
8770	fi
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786xorg_testset_save_CFLAGS="$CFLAGS"
8787
8788if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8789	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8790	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8791$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8792if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8793  $as_echo_n "(cached) " >&6
8794else
8795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8796/* end confdefs.h.  */
8797int i;
8798_ACEOF
8799if ac_fn_c_try_compile "$LINENO"; then :
8800  xorg_cv_cc_flag_unknown_warning_option=yes
8801else
8802  xorg_cv_cc_flag_unknown_warning_option=no
8803fi
8804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8805fi
8806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8807$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8808	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8809	CFLAGS="$xorg_testset_save_CFLAGS"
8810fi
8811
8812if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8813	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8814		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8815	fi
8816	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8817	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8818$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8819if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8820  $as_echo_n "(cached) " >&6
8821else
8822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8823/* end confdefs.h.  */
8824int i;
8825_ACEOF
8826if ac_fn_c_try_compile "$LINENO"; then :
8827  xorg_cv_cc_flag_unused_command_line_argument=yes
8828else
8829  xorg_cv_cc_flag_unused_command_line_argument=no
8830fi
8831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8832fi
8833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8834$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8835	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8836	CFLAGS="$xorg_testset_save_CFLAGS"
8837fi
8838
8839found="no"
8840
8841	if test $found = "no" ; then
8842		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8843			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8844		fi
8845
8846		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8847			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8848		fi
8849
8850		CFLAGS="$CFLAGS -Wmain"
8851
8852		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8853$as_echo_n "checking if $CC supports -Wmain... " >&6; }
8854		cacheid=xorg_cv_cc_flag__Wmain
8855		if eval \${$cacheid+:} false; then :
8856  $as_echo_n "(cached) " >&6
8857else
8858  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8859/* end confdefs.h.  */
8860int i;
8861int
8862main ()
8863{
8864
8865  ;
8866  return 0;
8867}
8868_ACEOF
8869if ac_fn_c_try_link "$LINENO"; then :
8870  eval $cacheid=yes
8871else
8872  eval $cacheid=no
8873fi
8874rm -f core conftest.err conftest.$ac_objext \
8875    conftest$ac_exeext conftest.$ac_ext
8876fi
8877
8878
8879		CFLAGS="$xorg_testset_save_CFLAGS"
8880
8881		eval supported=\$$cacheid
8882		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8883$as_echo "$supported" >&6; }
8884		if test "$supported" = "yes" ; then
8885			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8886			found="yes"
8887		fi
8888	fi
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904xorg_testset_save_CFLAGS="$CFLAGS"
8905
8906if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8907	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8908	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8909$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8910if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8911  $as_echo_n "(cached) " >&6
8912else
8913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8914/* end confdefs.h.  */
8915int i;
8916_ACEOF
8917if ac_fn_c_try_compile "$LINENO"; then :
8918  xorg_cv_cc_flag_unknown_warning_option=yes
8919else
8920  xorg_cv_cc_flag_unknown_warning_option=no
8921fi
8922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8923fi
8924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8925$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8926	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8927	CFLAGS="$xorg_testset_save_CFLAGS"
8928fi
8929
8930if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8931	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8932		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8933	fi
8934	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8935	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8936$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8937if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8938  $as_echo_n "(cached) " >&6
8939else
8940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8941/* end confdefs.h.  */
8942int i;
8943_ACEOF
8944if ac_fn_c_try_compile "$LINENO"; then :
8945  xorg_cv_cc_flag_unused_command_line_argument=yes
8946else
8947  xorg_cv_cc_flag_unused_command_line_argument=no
8948fi
8949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8950fi
8951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8952$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8953	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8954	CFLAGS="$xorg_testset_save_CFLAGS"
8955fi
8956
8957found="no"
8958
8959	if test $found = "no" ; then
8960		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8961			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8962		fi
8963
8964		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8965			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8966		fi
8967
8968		CFLAGS="$CFLAGS -Wmissing-braces"
8969
8970		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8971$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8972		cacheid=xorg_cv_cc_flag__Wmissing_braces
8973		if eval \${$cacheid+:} false; then :
8974  $as_echo_n "(cached) " >&6
8975else
8976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8977/* end confdefs.h.  */
8978int i;
8979int
8980main ()
8981{
8982
8983  ;
8984  return 0;
8985}
8986_ACEOF
8987if ac_fn_c_try_link "$LINENO"; then :
8988  eval $cacheid=yes
8989else
8990  eval $cacheid=no
8991fi
8992rm -f core conftest.err conftest.$ac_objext \
8993    conftest$ac_exeext conftest.$ac_ext
8994fi
8995
8996
8997		CFLAGS="$xorg_testset_save_CFLAGS"
8998
8999		eval supported=\$$cacheid
9000		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9001$as_echo "$supported" >&6; }
9002		if test "$supported" = "yes" ; then
9003			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9004			found="yes"
9005		fi
9006	fi
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022xorg_testset_save_CFLAGS="$CFLAGS"
9023
9024if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9025	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9026	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9027$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9028if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9029  $as_echo_n "(cached) " >&6
9030else
9031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9032/* end confdefs.h.  */
9033int i;
9034_ACEOF
9035if ac_fn_c_try_compile "$LINENO"; then :
9036  xorg_cv_cc_flag_unknown_warning_option=yes
9037else
9038  xorg_cv_cc_flag_unknown_warning_option=no
9039fi
9040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9041fi
9042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9043$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9044	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9045	CFLAGS="$xorg_testset_save_CFLAGS"
9046fi
9047
9048if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9049	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9050		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9051	fi
9052	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9053	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9054$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9055if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9056  $as_echo_n "(cached) " >&6
9057else
9058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9059/* end confdefs.h.  */
9060int i;
9061_ACEOF
9062if ac_fn_c_try_compile "$LINENO"; then :
9063  xorg_cv_cc_flag_unused_command_line_argument=yes
9064else
9065  xorg_cv_cc_flag_unused_command_line_argument=no
9066fi
9067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9068fi
9069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9070$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9071	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9072	CFLAGS="$xorg_testset_save_CFLAGS"
9073fi
9074
9075found="no"
9076
9077	if test $found = "no" ; then
9078		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9079			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9080		fi
9081
9082		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9083			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9084		fi
9085
9086		CFLAGS="$CFLAGS -Wsequence-point"
9087
9088		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9089$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9090		cacheid=xorg_cv_cc_flag__Wsequence_point
9091		if eval \${$cacheid+:} false; then :
9092  $as_echo_n "(cached) " >&6
9093else
9094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9095/* end confdefs.h.  */
9096int i;
9097int
9098main ()
9099{
9100
9101  ;
9102  return 0;
9103}
9104_ACEOF
9105if ac_fn_c_try_link "$LINENO"; then :
9106  eval $cacheid=yes
9107else
9108  eval $cacheid=no
9109fi
9110rm -f core conftest.err conftest.$ac_objext \
9111    conftest$ac_exeext conftest.$ac_ext
9112fi
9113
9114
9115		CFLAGS="$xorg_testset_save_CFLAGS"
9116
9117		eval supported=\$$cacheid
9118		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9119$as_echo "$supported" >&6; }
9120		if test "$supported" = "yes" ; then
9121			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9122			found="yes"
9123		fi
9124	fi
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140xorg_testset_save_CFLAGS="$CFLAGS"
9141
9142if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9143	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9144	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9145$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9146if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9147  $as_echo_n "(cached) " >&6
9148else
9149  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9150/* end confdefs.h.  */
9151int i;
9152_ACEOF
9153if ac_fn_c_try_compile "$LINENO"; then :
9154  xorg_cv_cc_flag_unknown_warning_option=yes
9155else
9156  xorg_cv_cc_flag_unknown_warning_option=no
9157fi
9158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9159fi
9160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9161$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9162	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9163	CFLAGS="$xorg_testset_save_CFLAGS"
9164fi
9165
9166if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9167	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9168		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9169	fi
9170	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9171	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9172$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9173if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9174  $as_echo_n "(cached) " >&6
9175else
9176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9177/* end confdefs.h.  */
9178int i;
9179_ACEOF
9180if ac_fn_c_try_compile "$LINENO"; then :
9181  xorg_cv_cc_flag_unused_command_line_argument=yes
9182else
9183  xorg_cv_cc_flag_unused_command_line_argument=no
9184fi
9185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9186fi
9187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9188$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9189	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9190	CFLAGS="$xorg_testset_save_CFLAGS"
9191fi
9192
9193found="no"
9194
9195	if test $found = "no" ; then
9196		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9197			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9198		fi
9199
9200		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9201			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9202		fi
9203
9204		CFLAGS="$CFLAGS -Wreturn-type"
9205
9206		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9207$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9208		cacheid=xorg_cv_cc_flag__Wreturn_type
9209		if eval \${$cacheid+:} false; then :
9210  $as_echo_n "(cached) " >&6
9211else
9212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9213/* end confdefs.h.  */
9214int i;
9215int
9216main ()
9217{
9218
9219  ;
9220  return 0;
9221}
9222_ACEOF
9223if ac_fn_c_try_link "$LINENO"; then :
9224  eval $cacheid=yes
9225else
9226  eval $cacheid=no
9227fi
9228rm -f core conftest.err conftest.$ac_objext \
9229    conftest$ac_exeext conftest.$ac_ext
9230fi
9231
9232
9233		CFLAGS="$xorg_testset_save_CFLAGS"
9234
9235		eval supported=\$$cacheid
9236		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9237$as_echo "$supported" >&6; }
9238		if test "$supported" = "yes" ; then
9239			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9240			found="yes"
9241		fi
9242	fi
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258xorg_testset_save_CFLAGS="$CFLAGS"
9259
9260if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9261	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9262	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9263$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9264if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9265  $as_echo_n "(cached) " >&6
9266else
9267  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9268/* end confdefs.h.  */
9269int i;
9270_ACEOF
9271if ac_fn_c_try_compile "$LINENO"; then :
9272  xorg_cv_cc_flag_unknown_warning_option=yes
9273else
9274  xorg_cv_cc_flag_unknown_warning_option=no
9275fi
9276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9277fi
9278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9279$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9280	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9281	CFLAGS="$xorg_testset_save_CFLAGS"
9282fi
9283
9284if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9285	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9286		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9287	fi
9288	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9289	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9290$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9291if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9292  $as_echo_n "(cached) " >&6
9293else
9294  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9295/* end confdefs.h.  */
9296int i;
9297_ACEOF
9298if ac_fn_c_try_compile "$LINENO"; then :
9299  xorg_cv_cc_flag_unused_command_line_argument=yes
9300else
9301  xorg_cv_cc_flag_unused_command_line_argument=no
9302fi
9303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9304fi
9305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9306$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9307	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9308	CFLAGS="$xorg_testset_save_CFLAGS"
9309fi
9310
9311found="no"
9312
9313	if test $found = "no" ; then
9314		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9315			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9316		fi
9317
9318		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9319			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9320		fi
9321
9322		CFLAGS="$CFLAGS -Wtrigraphs"
9323
9324		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9325$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9326		cacheid=xorg_cv_cc_flag__Wtrigraphs
9327		if eval \${$cacheid+:} false; then :
9328  $as_echo_n "(cached) " >&6
9329else
9330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9331/* end confdefs.h.  */
9332int i;
9333int
9334main ()
9335{
9336
9337  ;
9338  return 0;
9339}
9340_ACEOF
9341if ac_fn_c_try_link "$LINENO"; then :
9342  eval $cacheid=yes
9343else
9344  eval $cacheid=no
9345fi
9346rm -f core conftest.err conftest.$ac_objext \
9347    conftest$ac_exeext conftest.$ac_ext
9348fi
9349
9350
9351		CFLAGS="$xorg_testset_save_CFLAGS"
9352
9353		eval supported=\$$cacheid
9354		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9355$as_echo "$supported" >&6; }
9356		if test "$supported" = "yes" ; then
9357			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9358			found="yes"
9359		fi
9360	fi
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376xorg_testset_save_CFLAGS="$CFLAGS"
9377
9378if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9379	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9380	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9381$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9382if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9383  $as_echo_n "(cached) " >&6
9384else
9385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9386/* end confdefs.h.  */
9387int i;
9388_ACEOF
9389if ac_fn_c_try_compile "$LINENO"; then :
9390  xorg_cv_cc_flag_unknown_warning_option=yes
9391else
9392  xorg_cv_cc_flag_unknown_warning_option=no
9393fi
9394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9395fi
9396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9397$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9398	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9399	CFLAGS="$xorg_testset_save_CFLAGS"
9400fi
9401
9402if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9403	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9404		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9405	fi
9406	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9407	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9408$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9409if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9410  $as_echo_n "(cached) " >&6
9411else
9412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9413/* end confdefs.h.  */
9414int i;
9415_ACEOF
9416if ac_fn_c_try_compile "$LINENO"; then :
9417  xorg_cv_cc_flag_unused_command_line_argument=yes
9418else
9419  xorg_cv_cc_flag_unused_command_line_argument=no
9420fi
9421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9422fi
9423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9424$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9425	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9426	CFLAGS="$xorg_testset_save_CFLAGS"
9427fi
9428
9429found="no"
9430
9431	if test $found = "no" ; then
9432		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9433			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9434		fi
9435
9436		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9437			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9438		fi
9439
9440		CFLAGS="$CFLAGS -Warray-bounds"
9441
9442		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9443$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9444		cacheid=xorg_cv_cc_flag__Warray_bounds
9445		if eval \${$cacheid+:} false; then :
9446  $as_echo_n "(cached) " >&6
9447else
9448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9449/* end confdefs.h.  */
9450int i;
9451int
9452main ()
9453{
9454
9455  ;
9456  return 0;
9457}
9458_ACEOF
9459if ac_fn_c_try_link "$LINENO"; then :
9460  eval $cacheid=yes
9461else
9462  eval $cacheid=no
9463fi
9464rm -f core conftest.err conftest.$ac_objext \
9465    conftest$ac_exeext conftest.$ac_ext
9466fi
9467
9468
9469		CFLAGS="$xorg_testset_save_CFLAGS"
9470
9471		eval supported=\$$cacheid
9472		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9473$as_echo "$supported" >&6; }
9474		if test "$supported" = "yes" ; then
9475			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9476			found="yes"
9477		fi
9478	fi
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494xorg_testset_save_CFLAGS="$CFLAGS"
9495
9496if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9497	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9498	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9499$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9500if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9501  $as_echo_n "(cached) " >&6
9502else
9503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9504/* end confdefs.h.  */
9505int i;
9506_ACEOF
9507if ac_fn_c_try_compile "$LINENO"; then :
9508  xorg_cv_cc_flag_unknown_warning_option=yes
9509else
9510  xorg_cv_cc_flag_unknown_warning_option=no
9511fi
9512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9513fi
9514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9515$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9516	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9517	CFLAGS="$xorg_testset_save_CFLAGS"
9518fi
9519
9520if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9521	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9522		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9523	fi
9524	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9525	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9526$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9527if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9528  $as_echo_n "(cached) " >&6
9529else
9530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9531/* end confdefs.h.  */
9532int i;
9533_ACEOF
9534if ac_fn_c_try_compile "$LINENO"; then :
9535  xorg_cv_cc_flag_unused_command_line_argument=yes
9536else
9537  xorg_cv_cc_flag_unused_command_line_argument=no
9538fi
9539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9540fi
9541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9542$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9543	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9544	CFLAGS="$xorg_testset_save_CFLAGS"
9545fi
9546
9547found="no"
9548
9549	if test $found = "no" ; then
9550		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9551			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9552		fi
9553
9554		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9555			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9556		fi
9557
9558		CFLAGS="$CFLAGS -Wwrite-strings"
9559
9560		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9561$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9562		cacheid=xorg_cv_cc_flag__Wwrite_strings
9563		if eval \${$cacheid+:} false; then :
9564  $as_echo_n "(cached) " >&6
9565else
9566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9567/* end confdefs.h.  */
9568int i;
9569int
9570main ()
9571{
9572
9573  ;
9574  return 0;
9575}
9576_ACEOF
9577if ac_fn_c_try_link "$LINENO"; then :
9578  eval $cacheid=yes
9579else
9580  eval $cacheid=no
9581fi
9582rm -f core conftest.err conftest.$ac_objext \
9583    conftest$ac_exeext conftest.$ac_ext
9584fi
9585
9586
9587		CFLAGS="$xorg_testset_save_CFLAGS"
9588
9589		eval supported=\$$cacheid
9590		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9591$as_echo "$supported" >&6; }
9592		if test "$supported" = "yes" ; then
9593			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9594			found="yes"
9595		fi
9596	fi
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612xorg_testset_save_CFLAGS="$CFLAGS"
9613
9614if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9615	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9616	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9617$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9618if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9619  $as_echo_n "(cached) " >&6
9620else
9621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9622/* end confdefs.h.  */
9623int i;
9624_ACEOF
9625if ac_fn_c_try_compile "$LINENO"; then :
9626  xorg_cv_cc_flag_unknown_warning_option=yes
9627else
9628  xorg_cv_cc_flag_unknown_warning_option=no
9629fi
9630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9631fi
9632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9633$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9634	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9635	CFLAGS="$xorg_testset_save_CFLAGS"
9636fi
9637
9638if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9639	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9640		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9641	fi
9642	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9643	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9644$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9645if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9646  $as_echo_n "(cached) " >&6
9647else
9648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9649/* end confdefs.h.  */
9650int i;
9651_ACEOF
9652if ac_fn_c_try_compile "$LINENO"; then :
9653  xorg_cv_cc_flag_unused_command_line_argument=yes
9654else
9655  xorg_cv_cc_flag_unused_command_line_argument=no
9656fi
9657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9658fi
9659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9660$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9661	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9662	CFLAGS="$xorg_testset_save_CFLAGS"
9663fi
9664
9665found="no"
9666
9667	if test $found = "no" ; then
9668		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9669			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9670		fi
9671
9672		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9673			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9674		fi
9675
9676		CFLAGS="$CFLAGS -Waddress"
9677
9678		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9679$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9680		cacheid=xorg_cv_cc_flag__Waddress
9681		if eval \${$cacheid+:} false; then :
9682  $as_echo_n "(cached) " >&6
9683else
9684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9685/* end confdefs.h.  */
9686int i;
9687int
9688main ()
9689{
9690
9691  ;
9692  return 0;
9693}
9694_ACEOF
9695if ac_fn_c_try_link "$LINENO"; then :
9696  eval $cacheid=yes
9697else
9698  eval $cacheid=no
9699fi
9700rm -f core conftest.err conftest.$ac_objext \
9701    conftest$ac_exeext conftest.$ac_ext
9702fi
9703
9704
9705		CFLAGS="$xorg_testset_save_CFLAGS"
9706
9707		eval supported=\$$cacheid
9708		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9709$as_echo "$supported" >&6; }
9710		if test "$supported" = "yes" ; then
9711			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9712			found="yes"
9713		fi
9714	fi
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730xorg_testset_save_CFLAGS="$CFLAGS"
9731
9732if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9733	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9734	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9735$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9736if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9737  $as_echo_n "(cached) " >&6
9738else
9739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9740/* end confdefs.h.  */
9741int i;
9742_ACEOF
9743if ac_fn_c_try_compile "$LINENO"; then :
9744  xorg_cv_cc_flag_unknown_warning_option=yes
9745else
9746  xorg_cv_cc_flag_unknown_warning_option=no
9747fi
9748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9749fi
9750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9751$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9752	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9753	CFLAGS="$xorg_testset_save_CFLAGS"
9754fi
9755
9756if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9757	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9758		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9759	fi
9760	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9761	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9762$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9763if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9764  $as_echo_n "(cached) " >&6
9765else
9766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9767/* end confdefs.h.  */
9768int i;
9769_ACEOF
9770if ac_fn_c_try_compile "$LINENO"; then :
9771  xorg_cv_cc_flag_unused_command_line_argument=yes
9772else
9773  xorg_cv_cc_flag_unused_command_line_argument=no
9774fi
9775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9776fi
9777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9778$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9779	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9780	CFLAGS="$xorg_testset_save_CFLAGS"
9781fi
9782
9783found="no"
9784
9785	if test $found = "no" ; then
9786		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9787			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9788		fi
9789
9790		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9791			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9792		fi
9793
9794		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9795
9796		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9797$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9798		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9799		if eval \${$cacheid+:} false; then :
9800  $as_echo_n "(cached) " >&6
9801else
9802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9803/* end confdefs.h.  */
9804int i;
9805int
9806main ()
9807{
9808
9809  ;
9810  return 0;
9811}
9812_ACEOF
9813if ac_fn_c_try_link "$LINENO"; then :
9814  eval $cacheid=yes
9815else
9816  eval $cacheid=no
9817fi
9818rm -f core conftest.err conftest.$ac_objext \
9819    conftest$ac_exeext conftest.$ac_ext
9820fi
9821
9822
9823		CFLAGS="$xorg_testset_save_CFLAGS"
9824
9825		eval supported=\$$cacheid
9826		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9827$as_echo "$supported" >&6; }
9828		if test "$supported" = "yes" ; then
9829			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9830			found="yes"
9831		fi
9832	fi
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848xorg_testset_save_CFLAGS="$CFLAGS"
9849
9850if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9851	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9852	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9853$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9854if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9855  $as_echo_n "(cached) " >&6
9856else
9857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9858/* end confdefs.h.  */
9859int i;
9860_ACEOF
9861if ac_fn_c_try_compile "$LINENO"; then :
9862  xorg_cv_cc_flag_unknown_warning_option=yes
9863else
9864  xorg_cv_cc_flag_unknown_warning_option=no
9865fi
9866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9867fi
9868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9869$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9870	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9871	CFLAGS="$xorg_testset_save_CFLAGS"
9872fi
9873
9874if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9875	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9876		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9877	fi
9878	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9879	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9880$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9881if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9882  $as_echo_n "(cached) " >&6
9883else
9884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9885/* end confdefs.h.  */
9886int i;
9887_ACEOF
9888if ac_fn_c_try_compile "$LINENO"; then :
9889  xorg_cv_cc_flag_unused_command_line_argument=yes
9890else
9891  xorg_cv_cc_flag_unused_command_line_argument=no
9892fi
9893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9894fi
9895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9896$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9897	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9898	CFLAGS="$xorg_testset_save_CFLAGS"
9899fi
9900
9901found="no"
9902
9903	if test $found = "no" ; then
9904		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9905			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9906		fi
9907
9908		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9909			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9910		fi
9911
9912		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9913
9914		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9915$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9916		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9917		if eval \${$cacheid+:} false; then :
9918  $as_echo_n "(cached) " >&6
9919else
9920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9921/* end confdefs.h.  */
9922int i;
9923int
9924main ()
9925{
9926
9927  ;
9928  return 0;
9929}
9930_ACEOF
9931if ac_fn_c_try_link "$LINENO"; then :
9932  eval $cacheid=yes
9933else
9934  eval $cacheid=no
9935fi
9936rm -f core conftest.err conftest.$ac_objext \
9937    conftest$ac_exeext conftest.$ac_ext
9938fi
9939
9940
9941		CFLAGS="$xorg_testset_save_CFLAGS"
9942
9943		eval supported=\$$cacheid
9944		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9945$as_echo "$supported" >&6; }
9946		if test "$supported" = "yes" ; then
9947			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9948			found="yes"
9949		fi
9950	fi
9951
9952
9953fi
9954
9955
9956
9957
9958
9959
9960
9961		CWARNFLAGS="$BASE_CFLAGS"
9962		if  test "x$GCC" = xyes ; then
9963		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9964		fi
9965
9966
9967
9968
9969
9970
9971
9972
9973# Check whether --enable-strict-compilation was given.
9974if test "${enable_strict_compilation+set}" = set; then :
9975  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9976else
9977  STRICT_COMPILE=no
9978fi
9979
9980
9981
9982
9983
9984
9985STRICT_CFLAGS=""
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999xorg_testset_save_CFLAGS="$CFLAGS"
10000
10001if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10002	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10003	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10004$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10005if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10006  $as_echo_n "(cached) " >&6
10007else
10008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10009/* end confdefs.h.  */
10010int i;
10011_ACEOF
10012if ac_fn_c_try_compile "$LINENO"; then :
10013  xorg_cv_cc_flag_unknown_warning_option=yes
10014else
10015  xorg_cv_cc_flag_unknown_warning_option=no
10016fi
10017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10018fi
10019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10020$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10021	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10022	CFLAGS="$xorg_testset_save_CFLAGS"
10023fi
10024
10025if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10026	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10027		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10028	fi
10029	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10030	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10031$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10032if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10033  $as_echo_n "(cached) " >&6
10034else
10035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10036/* end confdefs.h.  */
10037int i;
10038_ACEOF
10039if ac_fn_c_try_compile "$LINENO"; then :
10040  xorg_cv_cc_flag_unused_command_line_argument=yes
10041else
10042  xorg_cv_cc_flag_unused_command_line_argument=no
10043fi
10044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10045fi
10046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10047$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10048	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10049	CFLAGS="$xorg_testset_save_CFLAGS"
10050fi
10051
10052found="no"
10053
10054	if test $found = "no" ; then
10055		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10056			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10057		fi
10058
10059		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10060			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10061		fi
10062
10063		CFLAGS="$CFLAGS -pedantic"
10064
10065		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10066$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10067		cacheid=xorg_cv_cc_flag__pedantic
10068		if eval \${$cacheid+:} false; then :
10069  $as_echo_n "(cached) " >&6
10070else
10071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10072/* end confdefs.h.  */
10073int i;
10074int
10075main ()
10076{
10077
10078  ;
10079  return 0;
10080}
10081_ACEOF
10082if ac_fn_c_try_link "$LINENO"; then :
10083  eval $cacheid=yes
10084else
10085  eval $cacheid=no
10086fi
10087rm -f core conftest.err conftest.$ac_objext \
10088    conftest$ac_exeext conftest.$ac_ext
10089fi
10090
10091
10092		CFLAGS="$xorg_testset_save_CFLAGS"
10093
10094		eval supported=\$$cacheid
10095		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10096$as_echo "$supported" >&6; }
10097		if test "$supported" = "yes" ; then
10098			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10099			found="yes"
10100		fi
10101	fi
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117xorg_testset_save_CFLAGS="$CFLAGS"
10118
10119if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10120	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10121	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10122$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10123if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10124  $as_echo_n "(cached) " >&6
10125else
10126  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10127/* end confdefs.h.  */
10128int i;
10129_ACEOF
10130if ac_fn_c_try_compile "$LINENO"; then :
10131  xorg_cv_cc_flag_unknown_warning_option=yes
10132else
10133  xorg_cv_cc_flag_unknown_warning_option=no
10134fi
10135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10136fi
10137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10138$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10139	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10140	CFLAGS="$xorg_testset_save_CFLAGS"
10141fi
10142
10143if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10144	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10145		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10146	fi
10147	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10148	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10149$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10150if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10151  $as_echo_n "(cached) " >&6
10152else
10153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10154/* end confdefs.h.  */
10155int i;
10156_ACEOF
10157if ac_fn_c_try_compile "$LINENO"; then :
10158  xorg_cv_cc_flag_unused_command_line_argument=yes
10159else
10160  xorg_cv_cc_flag_unused_command_line_argument=no
10161fi
10162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10163fi
10164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10165$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10166	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10167	CFLAGS="$xorg_testset_save_CFLAGS"
10168fi
10169
10170found="no"
10171
10172	if test $found = "no" ; then
10173		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10174			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10175		fi
10176
10177		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10178			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10179		fi
10180
10181		CFLAGS="$CFLAGS -Werror"
10182
10183		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10184$as_echo_n "checking if $CC supports -Werror... " >&6; }
10185		cacheid=xorg_cv_cc_flag__Werror
10186		if eval \${$cacheid+:} false; then :
10187  $as_echo_n "(cached) " >&6
10188else
10189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10190/* end confdefs.h.  */
10191int i;
10192int
10193main ()
10194{
10195
10196  ;
10197  return 0;
10198}
10199_ACEOF
10200if ac_fn_c_try_link "$LINENO"; then :
10201  eval $cacheid=yes
10202else
10203  eval $cacheid=no
10204fi
10205rm -f core conftest.err conftest.$ac_objext \
10206    conftest$ac_exeext conftest.$ac_ext
10207fi
10208
10209
10210		CFLAGS="$xorg_testset_save_CFLAGS"
10211
10212		eval supported=\$$cacheid
10213		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10214$as_echo "$supported" >&6; }
10215		if test "$supported" = "yes" ; then
10216			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10217			found="yes"
10218		fi
10219	fi
10220
10221	if test $found = "no" ; then
10222		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10223			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10224		fi
10225
10226		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10227			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10228		fi
10229
10230		CFLAGS="$CFLAGS -errwarn"
10231
10232		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10233$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10234		cacheid=xorg_cv_cc_flag__errwarn
10235		if eval \${$cacheid+:} false; then :
10236  $as_echo_n "(cached) " >&6
10237else
10238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10239/* end confdefs.h.  */
10240int i;
10241int
10242main ()
10243{
10244
10245  ;
10246  return 0;
10247}
10248_ACEOF
10249if ac_fn_c_try_link "$LINENO"; then :
10250  eval $cacheid=yes
10251else
10252  eval $cacheid=no
10253fi
10254rm -f core conftest.err conftest.$ac_objext \
10255    conftest$ac_exeext conftest.$ac_ext
10256fi
10257
10258
10259		CFLAGS="$xorg_testset_save_CFLAGS"
10260
10261		eval supported=\$$cacheid
10262		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10263$as_echo "$supported" >&6; }
10264		if test "$supported" = "yes" ; then
10265			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10266			found="yes"
10267		fi
10268	fi
10269
10270
10271
10272# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10273# activate it with -Werror, so we add it here explicitly.
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287xorg_testset_save_CFLAGS="$CFLAGS"
10288
10289if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10290	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10291	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10292$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10293if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10294  $as_echo_n "(cached) " >&6
10295else
10296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10297/* end confdefs.h.  */
10298int i;
10299_ACEOF
10300if ac_fn_c_try_compile "$LINENO"; then :
10301  xorg_cv_cc_flag_unknown_warning_option=yes
10302else
10303  xorg_cv_cc_flag_unknown_warning_option=no
10304fi
10305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10306fi
10307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10308$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10309	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10310	CFLAGS="$xorg_testset_save_CFLAGS"
10311fi
10312
10313if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10314	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10315		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10316	fi
10317	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10318	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10319$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10320if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10321  $as_echo_n "(cached) " >&6
10322else
10323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10324/* end confdefs.h.  */
10325int i;
10326_ACEOF
10327if ac_fn_c_try_compile "$LINENO"; then :
10328  xorg_cv_cc_flag_unused_command_line_argument=yes
10329else
10330  xorg_cv_cc_flag_unused_command_line_argument=no
10331fi
10332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10333fi
10334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10335$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10336	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10337	CFLAGS="$xorg_testset_save_CFLAGS"
10338fi
10339
10340found="no"
10341
10342	if test $found = "no" ; then
10343		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10344			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10345		fi
10346
10347		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10348			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10349		fi
10350
10351		CFLAGS="$CFLAGS -Werror=attributes"
10352
10353		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10354$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10355		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10356		if eval \${$cacheid+:} false; then :
10357  $as_echo_n "(cached) " >&6
10358else
10359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10360/* end confdefs.h.  */
10361int i;
10362int
10363main ()
10364{
10365
10366  ;
10367  return 0;
10368}
10369_ACEOF
10370if ac_fn_c_try_link "$LINENO"; then :
10371  eval $cacheid=yes
10372else
10373  eval $cacheid=no
10374fi
10375rm -f core conftest.err conftest.$ac_objext \
10376    conftest$ac_exeext conftest.$ac_ext
10377fi
10378
10379
10380		CFLAGS="$xorg_testset_save_CFLAGS"
10381
10382		eval supported=\$$cacheid
10383		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10384$as_echo "$supported" >&6; }
10385		if test "$supported" = "yes" ; then
10386			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10387			found="yes"
10388		fi
10389	fi
10390
10391
10392
10393if test "x$STRICT_COMPILE" = "xyes"; then
10394    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10395    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10396fi
10397
10398
10399
10400
10401
10402
10403cat >>confdefs.h <<_ACEOF
10404#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10405_ACEOF
10406
10407	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10408	if test "x$PVM" = "x"; then
10409		PVM="0"
10410	fi
10411
10412cat >>confdefs.h <<_ACEOF
10413#define PACKAGE_VERSION_MINOR $PVM
10414_ACEOF
10415
10416	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10417	if test "x$PVP" = "x"; then
10418		PVP="0"
10419	fi
10420
10421cat >>confdefs.h <<_ACEOF
10422#define PACKAGE_VERSION_PATCHLEVEL $PVP
10423_ACEOF
10424
10425
10426
10427CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10428mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10429|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10430echo 'git directory not found: installing possibly empty changelog.' >&2)"
10431
10432
10433
10434
10435macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10436INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10437mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10438|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10439echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10440
10441
10442
10443
10444
10445
10446if test x$APP_MAN_SUFFIX = x    ; then
10447    APP_MAN_SUFFIX=1
10448fi
10449if test x$APP_MAN_DIR = x    ; then
10450    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10451fi
10452
10453if test x$LIB_MAN_SUFFIX = x    ; then
10454    LIB_MAN_SUFFIX=3
10455fi
10456if test x$LIB_MAN_DIR = x    ; then
10457    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10458fi
10459
10460if test x$FILE_MAN_SUFFIX = x    ; then
10461    case $host_os in
10462	solaris*)	FILE_MAN_SUFFIX=4  ;;
10463	*)		FILE_MAN_SUFFIX=5  ;;
10464    esac
10465fi
10466if test x$FILE_MAN_DIR = x    ; then
10467    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10468fi
10469
10470if test x$MISC_MAN_SUFFIX = x    ; then
10471    case $host_os in
10472	solaris*)	MISC_MAN_SUFFIX=5  ;;
10473	*)		MISC_MAN_SUFFIX=7  ;;
10474    esac
10475fi
10476if test x$MISC_MAN_DIR = x    ; then
10477    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10478fi
10479
10480if test x$DRIVER_MAN_SUFFIX = x    ; then
10481    case $host_os in
10482	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10483	*)		DRIVER_MAN_SUFFIX=4  ;;
10484    esac
10485fi
10486if test x$DRIVER_MAN_DIR = x    ; then
10487    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10488fi
10489
10490if test x$ADMIN_MAN_SUFFIX = x    ; then
10491    case $host_os in
10492	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10493	*)		ADMIN_MAN_SUFFIX=8  ;;
10494    esac
10495fi
10496if test x$ADMIN_MAN_DIR = x    ; then
10497    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10498fi
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514XORG_MAN_PAGE="X Version 11"
10515
10516MAN_SUBSTS="\
10517	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10518	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10519	-e 's|__xservername__|Xorg|g' \
10520	-e 's|__xconfigfile__|xorg.conf|g' \
10521	-e 's|__projectroot__|\$(prefix)|g' \
10522	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10523	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10524	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10525	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10526	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10527	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10528	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10529
10530
10531
10532# Check whether --enable-silent-rules was given.
10533if test "${enable_silent_rules+set}" = set; then :
10534  enableval=$enable_silent_rules;
10535fi
10536
10537case $enable_silent_rules in # (((
10538  yes) AM_DEFAULT_VERBOSITY=0;;
10539   no) AM_DEFAULT_VERBOSITY=1;;
10540    *) AM_DEFAULT_VERBOSITY=0;;
10541esac
10542am_make=${MAKE-make}
10543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10544$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10545if ${am_cv_make_support_nested_variables+:} false; then :
10546  $as_echo_n "(cached) " >&6
10547else
10548  if $as_echo 'TRUE=$(BAR$(V))
10549BAR0=false
10550BAR1=true
10551V=1
10552am__doit:
10553	@$(TRUE)
10554.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10555  am_cv_make_support_nested_variables=yes
10556else
10557  am_cv_make_support_nested_variables=no
10558fi
10559fi
10560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10561$as_echo "$am_cv_make_support_nested_variables" >&6; }
10562if test $am_cv_make_support_nested_variables = yes; then
10563    AM_V='$(V)'
10564  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10565else
10566  AM_V=$AM_DEFAULT_VERBOSITY
10567  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10568fi
10569AM_BACKSLASH='\'
10570
10571
10572
10573# Internationalization & localization support
10574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gettext" >&5
10575$as_echo_n "checking for library containing gettext... " >&6; }
10576if ${ac_cv_search_gettext+:} false; then :
10577  $as_echo_n "(cached) " >&6
10578else
10579  ac_func_search_save_LIBS=$LIBS
10580cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10581/* end confdefs.h.  */
10582
10583/* Override any GCC internal prototype to avoid an error.
10584   Use char because int might match the return type of a GCC
10585   builtin and then its argument prototype would still apply.  */
10586#ifdef __cplusplus
10587extern "C"
10588#endif
10589char gettext ();
10590int
10591main ()
10592{
10593return gettext ();
10594  ;
10595  return 0;
10596}
10597_ACEOF
10598for ac_lib in '' intl; do
10599  if test -z "$ac_lib"; then
10600    ac_res="none required"
10601  else
10602    ac_res=-l$ac_lib
10603    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10604  fi
10605  if ac_fn_c_try_link "$LINENO"; then :
10606  ac_cv_search_gettext=$ac_res
10607fi
10608rm -f core conftest.err conftest.$ac_objext \
10609    conftest$ac_exeext
10610  if ${ac_cv_search_gettext+:} false; then :
10611  break
10612fi
10613done
10614if ${ac_cv_search_gettext+:} false; then :
10615
10616else
10617  ac_cv_search_gettext=no
10618fi
10619rm conftest.$ac_ext
10620LIBS=$ac_func_search_save_LIBS
10621fi
10622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gettext" >&5
10623$as_echo "$ac_cv_search_gettext" >&6; }
10624ac_res=$ac_cv_search_gettext
10625if test "$ac_res" != no; then :
10626  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10627  USE_GETTEXT="yes"
10628else
10629  USE_GETTEXT="no"
10630fi
10631
10632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install localized messages" >&5
10633$as_echo_n "checking where to install localized messages... " >&6; }
10634
10635# Check whether --with-localedir was given.
10636if test "${with_localedir+set}" = set; then :
10637  withval=$with_localedir; LOCALEDIR=${withval}
10638else
10639  LOCALEDIR=${datadir}/locale
10640fi
10641
10642
10643if test "x$LOCALEDIR" = "xno" -o "x$USE_GETTEXT" = "xno" ; then
10644        { $as_echo "$as_me:${as_lineno-$LINENO}: result: nowhere" >&5
10645$as_echo "nowhere" >&6; }
10646        USE_GETTEXT="no"
10647else
10648        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALEDIR" >&5
10649$as_echo "$LOCALEDIR" >&6; }
10650fi
10651
10652if test "x$USE_GETTEXT" = "xyes" ; then
10653
10654$as_echo "#define USE_GETTEXT 1" >>confdefs.h
10655
10656fi
10657 if test "x$USE_GETTEXT" = "xyes"; then
10658  USE_GETTEXT_TRUE=
10659  USE_GETTEXT_FALSE='#'
10660else
10661  USE_GETTEXT_TRUE='#'
10662  USE_GETTEXT_FALSE=
10663fi
10664
10665
10666# Checks for pkg-config packages
10667
10668pkg_failed=no
10669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFD" >&5
10670$as_echo_n "checking for XFD... " >&6; }
10671
10672if test -n "$XFD_CFLAGS"; then
10673    pkg_cv_XFD_CFLAGS="$XFD_CFLAGS"
10674 elif test -n "$PKG_CONFIG"; then
10675    if test -n "$PKG_CONFIG" && \
10676    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 fontconfig xft xrender xmu xproto >= 7.0.17\""; } >&5
10677  ($PKG_CONFIG --exists --print-errors "xaw7 fontconfig xft xrender xmu xproto >= 7.0.17") 2>&5
10678  ac_status=$?
10679  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10680  test $ac_status = 0; }; then
10681  pkg_cv_XFD_CFLAGS=`$PKG_CONFIG --cflags "xaw7 fontconfig xft xrender xmu xproto >= 7.0.17" 2>/dev/null`
10682else
10683  pkg_failed=yes
10684fi
10685 else
10686    pkg_failed=untried
10687fi
10688if test -n "$XFD_LIBS"; then
10689    pkg_cv_XFD_LIBS="$XFD_LIBS"
10690 elif test -n "$PKG_CONFIG"; then
10691    if test -n "$PKG_CONFIG" && \
10692    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 fontconfig xft xrender xmu xproto >= 7.0.17\""; } >&5
10693  ($PKG_CONFIG --exists --print-errors "xaw7 fontconfig xft xrender xmu xproto >= 7.0.17") 2>&5
10694  ac_status=$?
10695  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10696  test $ac_status = 0; }; then
10697  pkg_cv_XFD_LIBS=`$PKG_CONFIG --libs "xaw7 fontconfig xft xrender xmu xproto >= 7.0.17" 2>/dev/null`
10698else
10699  pkg_failed=yes
10700fi
10701 else
10702    pkg_failed=untried
10703fi
10704
10705
10706
10707if test $pkg_failed = yes; then
10708
10709if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10710        _pkg_short_errors_supported=yes
10711else
10712        _pkg_short_errors_supported=no
10713fi
10714        if test $_pkg_short_errors_supported = yes; then
10715	        XFD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xaw7 fontconfig xft xrender xmu xproto >= 7.0.17" 2>&1`
10716        else
10717	        XFD_PKG_ERRORS=`$PKG_CONFIG --print-errors "xaw7 fontconfig xft xrender xmu xproto >= 7.0.17" 2>&1`
10718        fi
10719	# Put the nasty error message in config.log where it belongs
10720	echo "$XFD_PKG_ERRORS" >&5
10721
10722	as_fn_error $? "Package requirements (xaw7 fontconfig xft xrender xmu xproto >= 7.0.17) were not met:
10723
10724$XFD_PKG_ERRORS
10725
10726Consider adjusting the PKG_CONFIG_PATH environment variable if you
10727installed software in a non-standard prefix.
10728
10729Alternatively, you may set the environment variables XFD_CFLAGS
10730and XFD_LIBS to avoid the need to call pkg-config.
10731See the pkg-config man page for more details.
10732" "$LINENO" 5
10733elif test $pkg_failed = untried; then
10734	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10735$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10736as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10737is in your PATH or set the PKG_CONFIG environment variable to the full
10738path to pkg-config.
10739
10740Alternatively, you may set the environment variables XFD_CFLAGS
10741and XFD_LIBS to avoid the need to call pkg-config.
10742See the pkg-config man page for more details.
10743
10744To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10745See \`config.log' for more details" "$LINENO" 5; }
10746else
10747	XFD_CFLAGS=$pkg_cv_XFD_CFLAGS
10748	XFD_LIBS=$pkg_cv_XFD_LIBS
10749        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10750$as_echo "yes" >&6; }
10751	:
10752fi
10753
10754
10755pkg_failed=no
10756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
10757$as_echo_n "checking for APPDEFS... " >&6; }
10758
10759if test -n "$APPDEFS_CFLAGS"; then
10760    pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
10761 elif test -n "$PKG_CONFIG"; then
10762    if test -n "$PKG_CONFIG" && \
10763    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
10764  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
10765  ac_status=$?
10766  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10767  test $ac_status = 0; }; then
10768  pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
10769else
10770  pkg_failed=yes
10771fi
10772 else
10773    pkg_failed=untried
10774fi
10775if test -n "$APPDEFS_LIBS"; then
10776    pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
10777 elif test -n "$PKG_CONFIG"; then
10778    if test -n "$PKG_CONFIG" && \
10779    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
10780  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
10781  ac_status=$?
10782  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10783  test $ac_status = 0; }; then
10784  pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
10785else
10786  pkg_failed=yes
10787fi
10788 else
10789    pkg_failed=untried
10790fi
10791
10792
10793
10794if test $pkg_failed = yes; then
10795
10796if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10797        _pkg_short_errors_supported=yes
10798else
10799        _pkg_short_errors_supported=no
10800fi
10801        if test $_pkg_short_errors_supported = yes; then
10802	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt" 2>&1`
10803        else
10804	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt" 2>&1`
10805        fi
10806	# Put the nasty error message in config.log where it belongs
10807	echo "$APPDEFS_PKG_ERRORS" >&5
10808
10809	as_fn_error $? "Package requirements (xt) were not met:
10810
10811$APPDEFS_PKG_ERRORS
10812
10813Consider adjusting the PKG_CONFIG_PATH environment variable if you
10814installed software in a non-standard prefix.
10815
10816Alternatively, you may set the environment variables APPDEFS_CFLAGS
10817and APPDEFS_LIBS to avoid the need to call pkg-config.
10818See the pkg-config man page for more details.
10819" "$LINENO" 5
10820elif test $pkg_failed = untried; then
10821	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10822$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10823as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10824is in your PATH or set the PKG_CONFIG environment variable to the full
10825path to pkg-config.
10826
10827Alternatively, you may set the environment variables APPDEFS_CFLAGS
10828and APPDEFS_LIBS to avoid the need to call pkg-config.
10829See the pkg-config man page for more details.
10830
10831To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10832See \`config.log' for more details" "$LINENO" 5; }
10833else
10834	APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
10835	APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
10836        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10837$as_echo "yes" >&6; }
10838	:
10839fi
10840xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
10841
10842# Check whether --with-appdefaultdir was given.
10843if test "${with_appdefaultdir+set}" = set; then :
10844  withval=$with_appdefaultdir; appdefaultdir="$withval"
10845else
10846  appdefaultdir="${xt_appdefaultdir}"
10847fi
10848
10849
10850
10851
10852ac_config_files="$ac_config_files Makefile man/Makefile"
10853
10854cat >confcache <<\_ACEOF
10855# This file is a shell script that caches the results of configure
10856# tests run on this system so they can be shared between configure
10857# scripts and configure runs, see configure's option --config-cache.
10858# It is not useful on other systems.  If it contains results you don't
10859# want to keep, you may remove or edit it.
10860#
10861# config.status only pays attention to the cache file if you give it
10862# the --recheck option to rerun configure.
10863#
10864# `ac_cv_env_foo' variables (set or unset) will be overridden when
10865# loading this file, other *unset* `ac_cv_foo' will be assigned the
10866# following values.
10867
10868_ACEOF
10869
10870# The following way of writing the cache mishandles newlines in values,
10871# but we know of no workaround that is simple, portable, and efficient.
10872# So, we kill variables containing newlines.
10873# Ultrix sh set writes to stderr and can't be redirected directly,
10874# and sets the high bit in the cache file unless we assign to the vars.
10875(
10876  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10877    eval ac_val=\$$ac_var
10878    case $ac_val in #(
10879    *${as_nl}*)
10880      case $ac_var in #(
10881      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10882$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10883      esac
10884      case $ac_var in #(
10885      _ | IFS | as_nl) ;; #(
10886      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10887      *) { eval $ac_var=; unset $ac_var;} ;;
10888      esac ;;
10889    esac
10890  done
10891
10892  (set) 2>&1 |
10893    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10894    *${as_nl}ac_space=\ *)
10895      # `set' does not quote correctly, so add quotes: double-quote
10896      # substitution turns \\\\ into \\, and sed turns \\ into \.
10897      sed -n \
10898	"s/'/'\\\\''/g;
10899	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10900      ;; #(
10901    *)
10902      # `set' quotes correctly as required by POSIX, so do not add quotes.
10903      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10904      ;;
10905    esac |
10906    sort
10907) |
10908  sed '
10909     /^ac_cv_env_/b end
10910     t clear
10911     :clear
10912     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10913     t end
10914     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10915     :end' >>confcache
10916if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10917  if test -w "$cache_file"; then
10918    if test "x$cache_file" != "x/dev/null"; then
10919      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10920$as_echo "$as_me: updating cache $cache_file" >&6;}
10921      if test ! -f "$cache_file" || test -h "$cache_file"; then
10922	cat confcache >"$cache_file"
10923      else
10924        case $cache_file in #(
10925        */* | ?:*)
10926	  mv -f confcache "$cache_file"$$ &&
10927	  mv -f "$cache_file"$$ "$cache_file" ;; #(
10928        *)
10929	  mv -f confcache "$cache_file" ;;
10930	esac
10931      fi
10932    fi
10933  else
10934    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10935$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10936  fi
10937fi
10938rm -f confcache
10939
10940test "x$prefix" = xNONE && prefix=$ac_default_prefix
10941# Let make expand exec_prefix.
10942test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10943
10944DEFS=-DHAVE_CONFIG_H
10945
10946ac_libobjs=
10947ac_ltlibobjs=
10948U=
10949for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10950  # 1. Remove the extension, and $U if already installed.
10951  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10952  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10953  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10954  #    will be set to the directory where LIBOBJS objects are built.
10955  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10956  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10957done
10958LIBOBJS=$ac_libobjs
10959
10960LTLIBOBJS=$ac_ltlibobjs
10961
10962
10963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
10964$as_echo_n "checking that generated files are newer than configure... " >&6; }
10965   if test -n "$am_sleep_pid"; then
10966     # Hide warnings about reused PIDs.
10967     wait $am_sleep_pid 2>/dev/null
10968   fi
10969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
10970$as_echo "done" >&6; }
10971 if test -n "$EXEEXT"; then
10972  am__EXEEXT_TRUE=
10973  am__EXEEXT_FALSE='#'
10974else
10975  am__EXEEXT_TRUE='#'
10976  am__EXEEXT_FALSE=
10977fi
10978
10979if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10980  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10981Usually this means the macro was only invoked conditionally." "$LINENO" 5
10982fi
10983if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10984  as_fn_error $? "conditional \"AMDEP\" was never defined.
10985Usually this means the macro was only invoked conditionally." "$LINENO" 5
10986fi
10987if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10988  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10989Usually this means the macro was only invoked conditionally." "$LINENO" 5
10990fi
10991if test -z "${USE_GETTEXT_TRUE}" && test -z "${USE_GETTEXT_FALSE}"; then
10992  as_fn_error $? "conditional \"USE_GETTEXT\" was never defined.
10993Usually this means the macro was only invoked conditionally." "$LINENO" 5
10994fi
10995
10996: "${CONFIG_STATUS=./config.status}"
10997ac_write_fail=0
10998ac_clean_files_save=$ac_clean_files
10999ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11000{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11001$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11002as_write_fail=0
11003cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11004#! $SHELL
11005# Generated by $as_me.
11006# Run this file to recreate the current configuration.
11007# Compiler output produced by configure, useful for debugging
11008# configure, is in config.log if it exists.
11009
11010debug=false
11011ac_cs_recheck=false
11012ac_cs_silent=false
11013
11014SHELL=\${CONFIG_SHELL-$SHELL}
11015export SHELL
11016_ASEOF
11017cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11018## -------------------- ##
11019## M4sh Initialization. ##
11020## -------------------- ##
11021
11022# Be more Bourne compatible
11023DUALCASE=1; export DUALCASE # for MKS sh
11024if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11025  emulate sh
11026  NULLCMD=:
11027  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11028  # is contrary to our usage.  Disable this feature.
11029  alias -g '${1+"$@"}'='"$@"'
11030  setopt NO_GLOB_SUBST
11031else
11032  case `(set -o) 2>/dev/null` in #(
11033  *posix*) :
11034    set -o posix ;; #(
11035  *) :
11036     ;;
11037esac
11038fi
11039
11040
11041as_nl='
11042'
11043export as_nl
11044# Printing a long string crashes Solaris 7 /usr/bin/printf.
11045as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11046as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11047as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11048# Prefer a ksh shell builtin over an external printf program on Solaris,
11049# but without wasting forks for bash or zsh.
11050if test -z "$BASH_VERSION$ZSH_VERSION" \
11051    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11052  as_echo='print -r --'
11053  as_echo_n='print -rn --'
11054elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11055  as_echo='printf %s\n'
11056  as_echo_n='printf %s'
11057else
11058  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11059    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11060    as_echo_n='/usr/ucb/echo -n'
11061  else
11062    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11063    as_echo_n_body='eval
11064      arg=$1;
11065      case $arg in #(
11066      *"$as_nl"*)
11067	expr "X$arg" : "X\\(.*\\)$as_nl";
11068	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11069      esac;
11070      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11071    '
11072    export as_echo_n_body
11073    as_echo_n='sh -c $as_echo_n_body as_echo'
11074  fi
11075  export as_echo_body
11076  as_echo='sh -c $as_echo_body as_echo'
11077fi
11078
11079# The user is always right.
11080if test "${PATH_SEPARATOR+set}" != set; then
11081  PATH_SEPARATOR=:
11082  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11083    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11084      PATH_SEPARATOR=';'
11085  }
11086fi
11087
11088
11089# IFS
11090# We need space, tab and new line, in precisely that order.  Quoting is
11091# there to prevent editors from complaining about space-tab.
11092# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11093# splitting by setting IFS to empty value.)
11094IFS=" ""	$as_nl"
11095
11096# Find who we are.  Look in the path if we contain no directory separator.
11097as_myself=
11098case $0 in #((
11099  *[\\/]* ) as_myself=$0 ;;
11100  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11101for as_dir in $PATH
11102do
11103  IFS=$as_save_IFS
11104  test -z "$as_dir" && as_dir=.
11105    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11106  done
11107IFS=$as_save_IFS
11108
11109     ;;
11110esac
11111# We did not find ourselves, most probably we were run as `sh COMMAND'
11112# in which case we are not to be found in the path.
11113if test "x$as_myself" = x; then
11114  as_myself=$0
11115fi
11116if test ! -f "$as_myself"; then
11117  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11118  exit 1
11119fi
11120
11121# Unset variables that we do not need and which cause bugs (e.g. in
11122# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11123# suppresses any "Segmentation fault" message there.  '((' could
11124# trigger a bug in pdksh 5.2.14.
11125for as_var in BASH_ENV ENV MAIL MAILPATH
11126do eval test x\${$as_var+set} = xset \
11127  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11128done
11129PS1='$ '
11130PS2='> '
11131PS4='+ '
11132
11133# NLS nuisances.
11134LC_ALL=C
11135export LC_ALL
11136LANGUAGE=C
11137export LANGUAGE
11138
11139# CDPATH.
11140(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11141
11142
11143# as_fn_error STATUS ERROR [LINENO LOG_FD]
11144# ----------------------------------------
11145# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11146# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11147# script with STATUS, using 1 if that was 0.
11148as_fn_error ()
11149{
11150  as_status=$1; test $as_status -eq 0 && as_status=1
11151  if test "$4"; then
11152    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11153    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11154  fi
11155  $as_echo "$as_me: error: $2" >&2
11156  as_fn_exit $as_status
11157} # as_fn_error
11158
11159
11160# as_fn_set_status STATUS
11161# -----------------------
11162# Set $? to STATUS, without forking.
11163as_fn_set_status ()
11164{
11165  return $1
11166} # as_fn_set_status
11167
11168# as_fn_exit STATUS
11169# -----------------
11170# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11171as_fn_exit ()
11172{
11173  set +e
11174  as_fn_set_status $1
11175  exit $1
11176} # as_fn_exit
11177
11178# as_fn_unset VAR
11179# ---------------
11180# Portably unset VAR.
11181as_fn_unset ()
11182{
11183  { eval $1=; unset $1;}
11184}
11185as_unset=as_fn_unset
11186# as_fn_append VAR VALUE
11187# ----------------------
11188# Append the text in VALUE to the end of the definition contained in VAR. Take
11189# advantage of any shell optimizations that allow amortized linear growth over
11190# repeated appends, instead of the typical quadratic growth present in naive
11191# implementations.
11192if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11193  eval 'as_fn_append ()
11194  {
11195    eval $1+=\$2
11196  }'
11197else
11198  as_fn_append ()
11199  {
11200    eval $1=\$$1\$2
11201  }
11202fi # as_fn_append
11203
11204# as_fn_arith ARG...
11205# ------------------
11206# Perform arithmetic evaluation on the ARGs, and store the result in the
11207# global $as_val. Take advantage of shells that can avoid forks. The arguments
11208# must be portable across $(()) and expr.
11209if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11210  eval 'as_fn_arith ()
11211  {
11212    as_val=$(( $* ))
11213  }'
11214else
11215  as_fn_arith ()
11216  {
11217    as_val=`expr "$@" || test $? -eq 1`
11218  }
11219fi # as_fn_arith
11220
11221
11222if expr a : '\(a\)' >/dev/null 2>&1 &&
11223   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11224  as_expr=expr
11225else
11226  as_expr=false
11227fi
11228
11229if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11230  as_basename=basename
11231else
11232  as_basename=false
11233fi
11234
11235if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11236  as_dirname=dirname
11237else
11238  as_dirname=false
11239fi
11240
11241as_me=`$as_basename -- "$0" ||
11242$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11243	 X"$0" : 'X\(//\)$' \| \
11244	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11245$as_echo X/"$0" |
11246    sed '/^.*\/\([^/][^/]*\)\/*$/{
11247	    s//\1/
11248	    q
11249	  }
11250	  /^X\/\(\/\/\)$/{
11251	    s//\1/
11252	    q
11253	  }
11254	  /^X\/\(\/\).*/{
11255	    s//\1/
11256	    q
11257	  }
11258	  s/.*/./; q'`
11259
11260# Avoid depending upon Character Ranges.
11261as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11262as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11263as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11264as_cr_digits='0123456789'
11265as_cr_alnum=$as_cr_Letters$as_cr_digits
11266
11267ECHO_C= ECHO_N= ECHO_T=
11268case `echo -n x` in #(((((
11269-n*)
11270  case `echo 'xy\c'` in
11271  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11272  xy)  ECHO_C='\c';;
11273  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11274       ECHO_T='	';;
11275  esac;;
11276*)
11277  ECHO_N='-n';;
11278esac
11279
11280rm -f conf$$ conf$$.exe conf$$.file
11281if test -d conf$$.dir; then
11282  rm -f conf$$.dir/conf$$.file
11283else
11284  rm -f conf$$.dir
11285  mkdir conf$$.dir 2>/dev/null
11286fi
11287if (echo >conf$$.file) 2>/dev/null; then
11288  if ln -s conf$$.file conf$$ 2>/dev/null; then
11289    as_ln_s='ln -s'
11290    # ... but there are two gotchas:
11291    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11292    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11293    # In both cases, we have to default to `cp -p'.
11294    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11295      as_ln_s='cp -p'
11296  elif ln conf$$.file conf$$ 2>/dev/null; then
11297    as_ln_s=ln
11298  else
11299    as_ln_s='cp -p'
11300  fi
11301else
11302  as_ln_s='cp -p'
11303fi
11304rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11305rmdir conf$$.dir 2>/dev/null
11306
11307
11308# as_fn_mkdir_p
11309# -------------
11310# Create "$as_dir" as a directory, including parents if necessary.
11311as_fn_mkdir_p ()
11312{
11313
11314  case $as_dir in #(
11315  -*) as_dir=./$as_dir;;
11316  esac
11317  test -d "$as_dir" || eval $as_mkdir_p || {
11318    as_dirs=
11319    while :; do
11320      case $as_dir in #(
11321      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11322      *) as_qdir=$as_dir;;
11323      esac
11324      as_dirs="'$as_qdir' $as_dirs"
11325      as_dir=`$as_dirname -- "$as_dir" ||
11326$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11327	 X"$as_dir" : 'X\(//\)[^/]' \| \
11328	 X"$as_dir" : 'X\(//\)$' \| \
11329	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11330$as_echo X"$as_dir" |
11331    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11332	    s//\1/
11333	    q
11334	  }
11335	  /^X\(\/\/\)[^/].*/{
11336	    s//\1/
11337	    q
11338	  }
11339	  /^X\(\/\/\)$/{
11340	    s//\1/
11341	    q
11342	  }
11343	  /^X\(\/\).*/{
11344	    s//\1/
11345	    q
11346	  }
11347	  s/.*/./; q'`
11348      test -d "$as_dir" && break
11349    done
11350    test -z "$as_dirs" || eval "mkdir $as_dirs"
11351  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11352
11353
11354} # as_fn_mkdir_p
11355if mkdir -p . 2>/dev/null; then
11356  as_mkdir_p='mkdir -p "$as_dir"'
11357else
11358  test -d ./-p && rmdir ./-p
11359  as_mkdir_p=false
11360fi
11361
11362if test -x / >/dev/null 2>&1; then
11363  as_test_x='test -x'
11364else
11365  if ls -dL / >/dev/null 2>&1; then
11366    as_ls_L_option=L
11367  else
11368    as_ls_L_option=
11369  fi
11370  as_test_x='
11371    eval sh -c '\''
11372      if test -d "$1"; then
11373	test -d "$1/.";
11374      else
11375	case $1 in #(
11376	-*)set "./$1";;
11377	esac;
11378	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11379	???[sx]*):;;*)false;;esac;fi
11380    '\'' sh
11381  '
11382fi
11383as_executable_p=$as_test_x
11384
11385# Sed expression to map a string onto a valid CPP name.
11386as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11387
11388# Sed expression to map a string onto a valid variable name.
11389as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11390
11391
11392exec 6>&1
11393## ----------------------------------- ##
11394## Main body of $CONFIG_STATUS script. ##
11395## ----------------------------------- ##
11396_ASEOF
11397test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11398
11399cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11400# Save the log message, to keep $0 and so on meaningful, and to
11401# report actual input values of CONFIG_FILES etc. instead of their
11402# values after options handling.
11403ac_log="
11404This file was extended by xfd $as_me 1.1.2, which was
11405generated by GNU Autoconf 2.68.  Invocation command line was
11406
11407  CONFIG_FILES    = $CONFIG_FILES
11408  CONFIG_HEADERS  = $CONFIG_HEADERS
11409  CONFIG_LINKS    = $CONFIG_LINKS
11410  CONFIG_COMMANDS = $CONFIG_COMMANDS
11411  $ $0 $@
11412
11413on `(hostname || uname -n) 2>/dev/null | sed 1q`
11414"
11415
11416_ACEOF
11417
11418case $ac_config_files in *"
11419"*) set x $ac_config_files; shift; ac_config_files=$*;;
11420esac
11421
11422case $ac_config_headers in *"
11423"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11424esac
11425
11426
11427cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11428# Files that config.status was made for.
11429config_files="$ac_config_files"
11430config_headers="$ac_config_headers"
11431config_commands="$ac_config_commands"
11432
11433_ACEOF
11434
11435cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11436ac_cs_usage="\
11437\`$as_me' instantiates files and other configuration actions
11438from templates according to the current configuration.  Unless the files
11439and actions are specified as TAGs, all are instantiated by default.
11440
11441Usage: $0 [OPTION]... [TAG]...
11442
11443  -h, --help       print this help, then exit
11444  -V, --version    print version number and configuration settings, then exit
11445      --config     print configuration, then exit
11446  -q, --quiet, --silent
11447                   do not print progress messages
11448  -d, --debug      don't remove temporary files
11449      --recheck    update $as_me by reconfiguring in the same conditions
11450      --file=FILE[:TEMPLATE]
11451                   instantiate the configuration file FILE
11452      --header=FILE[:TEMPLATE]
11453                   instantiate the configuration header FILE
11454
11455Configuration files:
11456$config_files
11457
11458Configuration headers:
11459$config_headers
11460
11461Configuration commands:
11462$config_commands
11463
11464Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11465
11466_ACEOF
11467cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11468ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11469ac_cs_version="\\
11470xfd config.status 1.1.2
11471configured by $0, generated by GNU Autoconf 2.68,
11472  with options \\"\$ac_cs_config\\"
11473
11474Copyright (C) 2010 Free Software Foundation, Inc.
11475This config.status script is free software; the Free Software Foundation
11476gives unlimited permission to copy, distribute and modify it."
11477
11478ac_pwd='$ac_pwd'
11479srcdir='$srcdir'
11480INSTALL='$INSTALL'
11481MKDIR_P='$MKDIR_P'
11482AWK='$AWK'
11483test -n "\$AWK" || AWK=awk
11484_ACEOF
11485
11486cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11487# The default lists apply if the user does not specify any file.
11488ac_need_defaults=:
11489while test $# != 0
11490do
11491  case $1 in
11492  --*=?*)
11493    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11494    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11495    ac_shift=:
11496    ;;
11497  --*=)
11498    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11499    ac_optarg=
11500    ac_shift=:
11501    ;;
11502  *)
11503    ac_option=$1
11504    ac_optarg=$2
11505    ac_shift=shift
11506    ;;
11507  esac
11508
11509  case $ac_option in
11510  # Handling of the options.
11511  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11512    ac_cs_recheck=: ;;
11513  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11514    $as_echo "$ac_cs_version"; exit ;;
11515  --config | --confi | --conf | --con | --co | --c )
11516    $as_echo "$ac_cs_config"; exit ;;
11517  --debug | --debu | --deb | --de | --d | -d )
11518    debug=: ;;
11519  --file | --fil | --fi | --f )
11520    $ac_shift
11521    case $ac_optarg in
11522    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11523    '') as_fn_error $? "missing file argument" ;;
11524    esac
11525    as_fn_append CONFIG_FILES " '$ac_optarg'"
11526    ac_need_defaults=false;;
11527  --header | --heade | --head | --hea )
11528    $ac_shift
11529    case $ac_optarg in
11530    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11531    esac
11532    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11533    ac_need_defaults=false;;
11534  --he | --h)
11535    # Conflict between --help and --header
11536    as_fn_error $? "ambiguous option: \`$1'
11537Try \`$0 --help' for more information.";;
11538  --help | --hel | -h )
11539    $as_echo "$ac_cs_usage"; exit ;;
11540  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11541  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11542    ac_cs_silent=: ;;
11543
11544  # This is an error.
11545  -*) as_fn_error $? "unrecognized option: \`$1'
11546Try \`$0 --help' for more information." ;;
11547
11548  *) as_fn_append ac_config_targets " $1"
11549     ac_need_defaults=false ;;
11550
11551  esac
11552  shift
11553done
11554
11555ac_configure_extra_args=
11556
11557if $ac_cs_silent; then
11558  exec 6>/dev/null
11559  ac_configure_extra_args="$ac_configure_extra_args --silent"
11560fi
11561
11562_ACEOF
11563cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11564if \$ac_cs_recheck; then
11565  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11566  shift
11567  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11568  CONFIG_SHELL='$SHELL'
11569  export CONFIG_SHELL
11570  exec "\$@"
11571fi
11572
11573_ACEOF
11574cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11575exec 5>>config.log
11576{
11577  echo
11578  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11579## Running $as_me. ##
11580_ASBOX
11581  $as_echo "$ac_log"
11582} >&5
11583
11584_ACEOF
11585cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11586#
11587# INIT-COMMANDS
11588#
11589AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11590
11591_ACEOF
11592
11593cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11594
11595# Handling of arguments.
11596for ac_config_target in $ac_config_targets
11597do
11598  case $ac_config_target in
11599    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11600    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11601    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11602    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11603
11604  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11605  esac
11606done
11607
11608
11609# If the user did not use the arguments to specify the items to instantiate,
11610# then the envvar interface is used.  Set only those that are not.
11611# We use the long form for the default assignment because of an extremely
11612# bizarre bug on SunOS 4.1.3.
11613if $ac_need_defaults; then
11614  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11615  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11616  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11617fi
11618
11619# Have a temporary directory for convenience.  Make it in the build tree
11620# simply because there is no reason against having it here, and in addition,
11621# creating and moving files from /tmp can sometimes cause problems.
11622# Hook for its removal unless debugging.
11623# Note that there is a small window in which the directory will not be cleaned:
11624# after its creation but before its name has been assigned to `$tmp'.
11625$debug ||
11626{
11627  tmp= ac_tmp=
11628  trap 'exit_status=$?
11629  : "${ac_tmp:=$tmp}"
11630  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11631' 0
11632  trap 'as_fn_exit 1' 1 2 13 15
11633}
11634# Create a (secure) tmp directory for tmp files.
11635
11636{
11637  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11638  test -d "$tmp"
11639}  ||
11640{
11641  tmp=./conf$$-$RANDOM
11642  (umask 077 && mkdir "$tmp")
11643} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11644ac_tmp=$tmp
11645
11646# Set up the scripts for CONFIG_FILES section.
11647# No need to generate them if there are no CONFIG_FILES.
11648# This happens for instance with `./config.status config.h'.
11649if test -n "$CONFIG_FILES"; then
11650
11651
11652ac_cr=`echo X | tr X '\015'`
11653# On cygwin, bash can eat \r inside `` if the user requested igncr.
11654# But we know of no other shell where ac_cr would be empty at this
11655# point, so we can use a bashism as a fallback.
11656if test "x$ac_cr" = x; then
11657  eval ac_cr=\$\'\\r\'
11658fi
11659ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11660if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11661  ac_cs_awk_cr='\\r'
11662else
11663  ac_cs_awk_cr=$ac_cr
11664fi
11665
11666echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11667_ACEOF
11668
11669
11670{
11671  echo "cat >conf$$subs.awk <<_ACEOF" &&
11672  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11673  echo "_ACEOF"
11674} >conf$$subs.sh ||
11675  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11676ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11677ac_delim='%!_!# '
11678for ac_last_try in false false false false false :; do
11679  . ./conf$$subs.sh ||
11680    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11681
11682  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11683  if test $ac_delim_n = $ac_delim_num; then
11684    break
11685  elif $ac_last_try; then
11686    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11687  else
11688    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11689  fi
11690done
11691rm -f conf$$subs.sh
11692
11693cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11694cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11695_ACEOF
11696sed -n '
11697h
11698s/^/S["/; s/!.*/"]=/
11699p
11700g
11701s/^[^!]*!//
11702:repl
11703t repl
11704s/'"$ac_delim"'$//
11705t delim
11706:nl
11707h
11708s/\(.\{148\}\)..*/\1/
11709t more1
11710s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11711p
11712n
11713b repl
11714:more1
11715s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11716p
11717g
11718s/.\{148\}//
11719t nl
11720:delim
11721h
11722s/\(.\{148\}\)..*/\1/
11723t more2
11724s/["\\]/\\&/g; s/^/"/; s/$/"/
11725p
11726b
11727:more2
11728s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11729p
11730g
11731s/.\{148\}//
11732t delim
11733' <conf$$subs.awk | sed '
11734/^[^""]/{
11735  N
11736  s/\n//
11737}
11738' >>$CONFIG_STATUS || ac_write_fail=1
11739rm -f conf$$subs.awk
11740cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11741_ACAWK
11742cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11743  for (key in S) S_is_set[key] = 1
11744  FS = ""
11745
11746}
11747{
11748  line = $ 0
11749  nfields = split(line, field, "@")
11750  substed = 0
11751  len = length(field[1])
11752  for (i = 2; i < nfields; i++) {
11753    key = field[i]
11754    keylen = length(key)
11755    if (S_is_set[key]) {
11756      value = S[key]
11757      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11758      len += length(value) + length(field[++i])
11759      substed = 1
11760    } else
11761      len += 1 + keylen
11762  }
11763
11764  print line
11765}
11766
11767_ACAWK
11768_ACEOF
11769cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11770if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11771  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11772else
11773  cat
11774fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11775  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11776_ACEOF
11777
11778# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11779# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11780# trailing colons and then remove the whole line if VPATH becomes empty
11781# (actually we leave an empty line to preserve line numbers).
11782if test "x$srcdir" = x.; then
11783  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
11784h
11785s///
11786s/^/:/
11787s/[	 ]*$/:/
11788s/:\$(srcdir):/:/g
11789s/:\${srcdir}:/:/g
11790s/:@srcdir@:/:/g
11791s/^:*//
11792s/:*$//
11793x
11794s/\(=[	 ]*\).*/\1/
11795G
11796s/\n//
11797s/^[^=]*=[	 ]*$//
11798}'
11799fi
11800
11801cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11802fi # test -n "$CONFIG_FILES"
11803
11804# Set up the scripts for CONFIG_HEADERS section.
11805# No need to generate them if there are no CONFIG_HEADERS.
11806# This happens for instance with `./config.status Makefile'.
11807if test -n "$CONFIG_HEADERS"; then
11808cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11809BEGIN {
11810_ACEOF
11811
11812# Transform confdefs.h into an awk script `defines.awk', embedded as
11813# here-document in config.status, that substitutes the proper values into
11814# config.h.in to produce config.h.
11815
11816# Create a delimiter string that does not exist in confdefs.h, to ease
11817# handling of long lines.
11818ac_delim='%!_!# '
11819for ac_last_try in false false :; do
11820  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11821  if test -z "$ac_tt"; then
11822    break
11823  elif $ac_last_try; then
11824    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11825  else
11826    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11827  fi
11828done
11829
11830# For the awk script, D is an array of macro values keyed by name,
11831# likewise P contains macro parameters if any.  Preserve backslash
11832# newline sequences.
11833
11834ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11835sed -n '
11836s/.\{148\}/&'"$ac_delim"'/g
11837t rset
11838:rset
11839s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
11840t def
11841d
11842:def
11843s/\\$//
11844t bsnl
11845s/["\\]/\\&/g
11846s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11847D["\1"]=" \3"/p
11848s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
11849d
11850:bsnl
11851s/["\\]/\\&/g
11852s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11853D["\1"]=" \3\\\\\\n"\\/p
11854t cont
11855s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11856t cont
11857d
11858:cont
11859n
11860s/.\{148\}/&'"$ac_delim"'/g
11861t clear
11862:clear
11863s/\\$//
11864t bsnlc
11865s/["\\]/\\&/g; s/^/"/; s/$/"/p
11866d
11867:bsnlc
11868s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11869b cont
11870' <confdefs.h | sed '
11871s/'"$ac_delim"'/"\\\
11872"/g' >>$CONFIG_STATUS || ac_write_fail=1
11873
11874cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11875  for (key in D) D_is_set[key] = 1
11876  FS = ""
11877}
11878/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11879  line = \$ 0
11880  split(line, arg, " ")
11881  if (arg[1] == "#") {
11882    defundef = arg[2]
11883    mac1 = arg[3]
11884  } else {
11885    defundef = substr(arg[1], 2)
11886    mac1 = arg[2]
11887  }
11888  split(mac1, mac2, "(") #)
11889  macro = mac2[1]
11890  prefix = substr(line, 1, index(line, defundef) - 1)
11891  if (D_is_set[macro]) {
11892    # Preserve the white space surrounding the "#".
11893    print prefix "define", macro P[macro] D[macro]
11894    next
11895  } else {
11896    # Replace #undef with comments.  This is necessary, for example,
11897    # in the case of _POSIX_SOURCE, which is predefined and required
11898    # on some systems where configure will not decide to define it.
11899    if (defundef == "undef") {
11900      print "/*", prefix defundef, macro, "*/"
11901      next
11902    }
11903  }
11904}
11905{ print }
11906_ACAWK
11907_ACEOF
11908cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11909  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11910fi # test -n "$CONFIG_HEADERS"
11911
11912
11913eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
11914shift
11915for ac_tag
11916do
11917  case $ac_tag in
11918  :[FHLC]) ac_mode=$ac_tag; continue;;
11919  esac
11920  case $ac_mode$ac_tag in
11921  :[FHL]*:*);;
11922  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11923  :[FH]-) ac_tag=-:-;;
11924  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11925  esac
11926  ac_save_IFS=$IFS
11927  IFS=:
11928  set x $ac_tag
11929  IFS=$ac_save_IFS
11930  shift
11931  ac_file=$1
11932  shift
11933
11934  case $ac_mode in
11935  :L) ac_source=$1;;
11936  :[FH])
11937    ac_file_inputs=
11938    for ac_f
11939    do
11940      case $ac_f in
11941      -) ac_f="$ac_tmp/stdin";;
11942      *) # Look for the file first in the build tree, then in the source tree
11943	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
11944	 # because $ac_f cannot contain `:'.
11945	 test -f "$ac_f" ||
11946	   case $ac_f in
11947	   [\\/$]*) false;;
11948	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11949	   esac ||
11950	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11951      esac
11952      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11953      as_fn_append ac_file_inputs " '$ac_f'"
11954    done
11955
11956    # Let's still pretend it is `configure' which instantiates (i.e., don't
11957    # use $as_me), people would be surprised to read:
11958    #    /* config.h.  Generated by config.status.  */
11959    configure_input='Generated from '`
11960	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11961	`' by configure.'
11962    if test x"$ac_file" != x-; then
11963      configure_input="$ac_file.  $configure_input"
11964      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11965$as_echo "$as_me: creating $ac_file" >&6;}
11966    fi
11967    # Neutralize special characters interpreted by sed in replacement strings.
11968    case $configure_input in #(
11969    *\&* | *\|* | *\\* )
11970       ac_sed_conf_input=`$as_echo "$configure_input" |
11971       sed 's/[\\\\&|]/\\\\&/g'`;; #(
11972    *) ac_sed_conf_input=$configure_input;;
11973    esac
11974
11975    case $ac_tag in
11976    *:-:* | *:-) cat >"$ac_tmp/stdin" \
11977      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11978    esac
11979    ;;
11980  esac
11981
11982  ac_dir=`$as_dirname -- "$ac_file" ||
11983$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11984	 X"$ac_file" : 'X\(//\)[^/]' \| \
11985	 X"$ac_file" : 'X\(//\)$' \| \
11986	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11987$as_echo X"$ac_file" |
11988    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11989	    s//\1/
11990	    q
11991	  }
11992	  /^X\(\/\/\)[^/].*/{
11993	    s//\1/
11994	    q
11995	  }
11996	  /^X\(\/\/\)$/{
11997	    s//\1/
11998	    q
11999	  }
12000	  /^X\(\/\).*/{
12001	    s//\1/
12002	    q
12003	  }
12004	  s/.*/./; q'`
12005  as_dir="$ac_dir"; as_fn_mkdir_p
12006  ac_builddir=.
12007
12008case "$ac_dir" in
12009.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12010*)
12011  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12012  # A ".." for each directory in $ac_dir_suffix.
12013  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12014  case $ac_top_builddir_sub in
12015  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12016  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12017  esac ;;
12018esac
12019ac_abs_top_builddir=$ac_pwd
12020ac_abs_builddir=$ac_pwd$ac_dir_suffix
12021# for backward compatibility:
12022ac_top_builddir=$ac_top_build_prefix
12023
12024case $srcdir in
12025  .)  # We are building in place.
12026    ac_srcdir=.
12027    ac_top_srcdir=$ac_top_builddir_sub
12028    ac_abs_top_srcdir=$ac_pwd ;;
12029  [\\/]* | ?:[\\/]* )  # Absolute name.
12030    ac_srcdir=$srcdir$ac_dir_suffix;
12031    ac_top_srcdir=$srcdir
12032    ac_abs_top_srcdir=$srcdir ;;
12033  *) # Relative name.
12034    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12035    ac_top_srcdir=$ac_top_build_prefix$srcdir
12036    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12037esac
12038ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12039
12040
12041  case $ac_mode in
12042  :F)
12043  #
12044  # CONFIG_FILE
12045  #
12046
12047  case $INSTALL in
12048  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12049  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12050  esac
12051  ac_MKDIR_P=$MKDIR_P
12052  case $MKDIR_P in
12053  [\\/$]* | ?:[\\/]* ) ;;
12054  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12055  esac
12056_ACEOF
12057
12058cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12059# If the template does not know about datarootdir, expand it.
12060# FIXME: This hack should be removed a few years after 2.60.
12061ac_datarootdir_hack=; ac_datarootdir_seen=
12062ac_sed_dataroot='
12063/datarootdir/ {
12064  p
12065  q
12066}
12067/@datadir@/p
12068/@docdir@/p
12069/@infodir@/p
12070/@localedir@/p
12071/@mandir@/p'
12072case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12073*datarootdir*) ac_datarootdir_seen=yes;;
12074*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12075  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12076$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12077_ACEOF
12078cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12079  ac_datarootdir_hack='
12080  s&@datadir@&$datadir&g
12081  s&@docdir@&$docdir&g
12082  s&@infodir@&$infodir&g
12083  s&@localedir@&$localedir&g
12084  s&@mandir@&$mandir&g
12085  s&\\\${datarootdir}&$datarootdir&g' ;;
12086esac
12087_ACEOF
12088
12089# Neutralize VPATH when `$srcdir' = `.'.
12090# Shell code in configure.ac might set extrasub.
12091# FIXME: do we really want to maintain this feature?
12092cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12093ac_sed_extra="$ac_vpsub
12094$extrasub
12095_ACEOF
12096cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12097:t
12098/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12099s|@configure_input@|$ac_sed_conf_input|;t t
12100s&@top_builddir@&$ac_top_builddir_sub&;t t
12101s&@top_build_prefix@&$ac_top_build_prefix&;t t
12102s&@srcdir@&$ac_srcdir&;t t
12103s&@abs_srcdir@&$ac_abs_srcdir&;t t
12104s&@top_srcdir@&$ac_top_srcdir&;t t
12105s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12106s&@builddir@&$ac_builddir&;t t
12107s&@abs_builddir@&$ac_abs_builddir&;t t
12108s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12109s&@INSTALL@&$ac_INSTALL&;t t
12110s&@MKDIR_P@&$ac_MKDIR_P&;t t
12111$ac_datarootdir_hack
12112"
12113eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12114  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12115
12116test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12117  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12118  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12119      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12120  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12121which seems to be undefined.  Please make sure it is defined" >&5
12122$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12123which seems to be undefined.  Please make sure it is defined" >&2;}
12124
12125  rm -f "$ac_tmp/stdin"
12126  case $ac_file in
12127  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12128  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12129  esac \
12130  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12131 ;;
12132  :H)
12133  #
12134  # CONFIG_HEADER
12135  #
12136  if test x"$ac_file" != x-; then
12137    {
12138      $as_echo "/* $configure_input  */" \
12139      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12140    } >"$ac_tmp/config.h" \
12141      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12142    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12143      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12144$as_echo "$as_me: $ac_file is unchanged" >&6;}
12145    else
12146      rm -f "$ac_file"
12147      mv "$ac_tmp/config.h" "$ac_file" \
12148	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12149    fi
12150  else
12151    $as_echo "/* $configure_input  */" \
12152      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12153      || as_fn_error $? "could not create -" "$LINENO" 5
12154  fi
12155# Compute "$ac_file"'s index in $config_headers.
12156_am_arg="$ac_file"
12157_am_stamp_count=1
12158for _am_header in $config_headers :; do
12159  case $_am_header in
12160    $_am_arg | $_am_arg:* )
12161      break ;;
12162    * )
12163      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12164  esac
12165done
12166echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12167$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12168	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12169	 X"$_am_arg" : 'X\(//\)$' \| \
12170	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12171$as_echo X"$_am_arg" |
12172    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12173	    s//\1/
12174	    q
12175	  }
12176	  /^X\(\/\/\)[^/].*/{
12177	    s//\1/
12178	    q
12179	  }
12180	  /^X\(\/\/\)$/{
12181	    s//\1/
12182	    q
12183	  }
12184	  /^X\(\/\).*/{
12185	    s//\1/
12186	    q
12187	  }
12188	  s/.*/./; q'`/stamp-h$_am_stamp_count
12189 ;;
12190
12191  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12192$as_echo "$as_me: executing $ac_file commands" >&6;}
12193 ;;
12194  esac
12195
12196
12197  case $ac_file$ac_mode in
12198    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12199  # Older Autoconf quotes --file arguments for eval, but not when files
12200  # are listed without --file.  Let's play safe and only enable the eval
12201  # if we detect the quoting.
12202  case $CONFIG_FILES in
12203  *\'*) eval set x "$CONFIG_FILES" ;;
12204  *)   set x $CONFIG_FILES ;;
12205  esac
12206  shift
12207  for mf
12208  do
12209    # Strip MF so we end up with the name of the file.
12210    mf=`echo "$mf" | sed -e 's/:.*$//'`
12211    # Check whether this is an Automake generated Makefile or not.
12212    # We used to match only the files named 'Makefile.in', but
12213    # some people rename them; so instead we look at the file content.
12214    # Grep'ing the first line is not enough: some people post-process
12215    # each Makefile.in and add a new line on top of each file to say so.
12216    # Grep'ing the whole file is not good either: AIX grep has a line
12217    # limit of 2048, but all sed's we know have understand at least 4000.
12218    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12219      dirpart=`$as_dirname -- "$mf" ||
12220$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12221	 X"$mf" : 'X\(//\)[^/]' \| \
12222	 X"$mf" : 'X\(//\)$' \| \
12223	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12224$as_echo X"$mf" |
12225    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12226	    s//\1/
12227	    q
12228	  }
12229	  /^X\(\/\/\)[^/].*/{
12230	    s//\1/
12231	    q
12232	  }
12233	  /^X\(\/\/\)$/{
12234	    s//\1/
12235	    q
12236	  }
12237	  /^X\(\/\).*/{
12238	    s//\1/
12239	    q
12240	  }
12241	  s/.*/./; q'`
12242    else
12243      continue
12244    fi
12245    # Extract the definition of DEPDIR, am__include, and am__quote
12246    # from the Makefile without running 'make'.
12247    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12248    test -z "$DEPDIR" && continue
12249    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12250    test -z "$am__include" && continue
12251    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12252    # Find all dependency output files, they are included files with
12253    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12254    # simplest approach to changing $(DEPDIR) to its actual value in the
12255    # expansion.
12256    for file in `sed -n "
12257      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12258	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12259      # Make sure the directory exists.
12260      test -f "$dirpart/$file" && continue
12261      fdir=`$as_dirname -- "$file" ||
12262$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12263	 X"$file" : 'X\(//\)[^/]' \| \
12264	 X"$file" : 'X\(//\)$' \| \
12265	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12266$as_echo X"$file" |
12267    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12268	    s//\1/
12269	    q
12270	  }
12271	  /^X\(\/\/\)[^/].*/{
12272	    s//\1/
12273	    q
12274	  }
12275	  /^X\(\/\/\)$/{
12276	    s//\1/
12277	    q
12278	  }
12279	  /^X\(\/\).*/{
12280	    s//\1/
12281	    q
12282	  }
12283	  s/.*/./; q'`
12284      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12285      # echo "creating $dirpart/$file"
12286      echo '# dummy' > "$dirpart/$file"
12287    done
12288  done
12289}
12290 ;;
12291
12292  esac
12293done # for ac_tag
12294
12295
12296as_fn_exit 0
12297_ACEOF
12298ac_clean_files=$ac_clean_files_save
12299
12300test $ac_write_fail = 0 ||
12301  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12302
12303
12304# configure is writing to config.log, and then calls config.status.
12305# config.status does its own redirection, appending to config.log.
12306# Unfortunately, on DOS this fails, as config.log is still kept open
12307# by configure, so config.status won't be able to write to it; its
12308# output is simply discarded.  So we exec the FD to /dev/null,
12309# effectively closing config.log, so it can be properly (re)opened and
12310# appended to by config.status.  When coming back to configure, we
12311# need to make the FD available again.
12312if test "$no_create" != yes; then
12313  ac_cs_success=:
12314  ac_config_status_args=
12315  test "$silent" = yes &&
12316    ac_config_status_args="$ac_config_status_args --quiet"
12317  exec 5>/dev/null
12318  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12319  exec 5>>config.log
12320  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12321  # would make configure fail if this is the last instruction.
12322  $ac_cs_success || as_fn_exit 1
12323fi
12324if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12325  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12326$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12327fi
12328
12329