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