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