configure revision 65c1f7cf
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for x11perf 1.6.1.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/test/x11perf/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202  if (eval "$as_required") 2>/dev/null; then :
203  as_have_required=yes
204else
205  as_have_required=no
206fi
207  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214  IFS=$as_save_IFS
215  test -z "$as_dir" && as_dir=.
216  as_found=:
217  case $as_dir in #(
218	 /*)
219	   for as_base in sh bash ksh sh5; do
220	     # Try only shells that exist, to save several forks.
221	     as_shell=$as_dir/$as_base
222	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226  break 2
227fi
228fi
229	   done;;
230       esac
231  as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235  CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240      if test "x$CONFIG_SHELL" != x; then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno; then :
263  $as_echo "$0: This script requires a shell more modern than all"
264  $as_echo "$0: the shells that I found on your system."
265  if test x${ZSH_VERSION+set} = xset ; then
266    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268  else
269    $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: https://gitlab.freedesktop.org/xorg/test/x11perf/issues
271$0: about your system, including any error possibly output
272$0: before this message. Then install a modern shell, or
273$0: manually run the script under such a shell if you do
274$0: have one."
275  fi
276  exit 1
277fi
278fi
279fi
280SHELL=${CONFIG_SHELL-/bin/sh}
281export SHELL
282# Unset more variables known to interfere with behavior of common tools.
283CLICOLOR_FORCE= GREP_OPTIONS=
284unset CLICOLOR_FORCE GREP_OPTIONS
285
286## --------------------- ##
287## M4sh Shell Functions. ##
288## --------------------- ##
289# as_fn_unset VAR
290# ---------------
291# Portably unset VAR.
292as_fn_unset ()
293{
294  { eval $1=; unset $1;}
295}
296as_unset=as_fn_unset
297
298# as_fn_set_status STATUS
299# -----------------------
300# Set $? to STATUS, without forking.
301as_fn_set_status ()
302{
303  return $1
304} # as_fn_set_status
305
306# as_fn_exit STATUS
307# -----------------
308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309as_fn_exit ()
310{
311  set +e
312  as_fn_set_status $1
313  exit $1
314} # as_fn_exit
315
316# as_fn_mkdir_p
317# -------------
318# Create "$as_dir" as a directory, including parents if necessary.
319as_fn_mkdir_p ()
320{
321
322  case $as_dir in #(
323  -*) as_dir=./$as_dir;;
324  esac
325  test -d "$as_dir" || eval $as_mkdir_p || {
326    as_dirs=
327    while :; do
328      case $as_dir in #(
329      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330      *) as_qdir=$as_dir;;
331      esac
332      as_dirs="'$as_qdir' $as_dirs"
333      as_dir=`$as_dirname -- "$as_dir" ||
334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335	 X"$as_dir" : 'X\(//\)[^/]' \| \
336	 X"$as_dir" : 'X\(//\)$' \| \
337	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338$as_echo X"$as_dir" |
339    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)[^/].*/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\).*/{
352	    s//\1/
353	    q
354	  }
355	  s/.*/./; q'`
356      test -d "$as_dir" && break
357    done
358    test -z "$as_dirs" || eval "mkdir $as_dirs"
359  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362} # as_fn_mkdir_p
363
364# as_fn_executable_p FILE
365# -----------------------
366# Test if FILE is an executable regular file.
367as_fn_executable_p ()
368{
369  test -f "$1" && test -x "$1"
370} # as_fn_executable_p
371# as_fn_append VAR VALUE
372# ----------------------
373# Append the text in VALUE to the end of the definition contained in VAR. Take
374# advantage of any shell optimizations that allow amortized linear growth over
375# repeated appends, instead of the typical quadratic growth present in naive
376# implementations.
377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378  eval 'as_fn_append ()
379  {
380    eval $1+=\$2
381  }'
382else
383  as_fn_append ()
384  {
385    eval $1=\$$1\$2
386  }
387fi # as_fn_append
388
389# as_fn_arith ARG...
390# ------------------
391# Perform arithmetic evaluation on the ARGs, and store the result in the
392# global $as_val. Take advantage of shells that can avoid forks. The arguments
393# must be portable across $(()) and expr.
394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395  eval 'as_fn_arith ()
396  {
397    as_val=$(( $* ))
398  }'
399else
400  as_fn_arith ()
401  {
402    as_val=`expr "$@" || test $? -eq 1`
403  }
404fi # as_fn_arith
405
406
407# as_fn_error STATUS ERROR [LINENO LOG_FD]
408# ----------------------------------------
409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411# script with STATUS, using 1 if that was 0.
412as_fn_error ()
413{
414  as_status=$1; test $as_status -eq 0 && as_status=1
415  if test "$4"; then
416    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418  fi
419  $as_echo "$as_me: error: $2" >&2
420  as_fn_exit $as_status
421} # as_fn_error
422
423if expr a : '\(a\)' >/dev/null 2>&1 &&
424   test "X`expr 00001 : '.*\(...\)'`" = X001; then
425  as_expr=expr
426else
427  as_expr=false
428fi
429
430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431  as_basename=basename
432else
433  as_basename=false
434fi
435
436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437  as_dirname=dirname
438else
439  as_dirname=false
440fi
441
442as_me=`$as_basename -- "$0" ||
443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444	 X"$0" : 'X\(//\)$' \| \
445	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446$as_echo X/"$0" |
447    sed '/^.*\/\([^/][^/]*\)\/*$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\/\)$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\).*/{
456	    s//\1/
457	    q
458	  }
459	  s/.*/./; q'`
460
461# Avoid depending upon Character Ranges.
462as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465as_cr_digits='0123456789'
466as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469  as_lineno_1=$LINENO as_lineno_1a=$LINENO
470  as_lineno_2=$LINENO as_lineno_2a=$LINENO
471  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
474  sed -n '
475    p
476    /[$]LINENO/=
477  ' <$as_myself |
478    sed '
479      s/[$]LINENO.*/&-/
480      t lineno
481      b
482      :lineno
483      N
484      :loop
485      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486      t loop
487      s/-\n.*//
488    ' >$as_me.lineno &&
489  chmod +x "$as_me.lineno" ||
490    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493  # already done that, so ensure we don't try to do so again and fall
494  # in an infinite loop.  This has already happened in practice.
495  _as_can_reexec=no; export _as_can_reexec
496  # Don't try to exec as it changes $[0], causing all sort of problems
497  # (the dirname of $[0] is not the place where we might find the
498  # original and so on.  Autoconf is especially sensitive to this).
499  . "./$as_me.lineno"
500  # Exit status is that of the last command.
501  exit
502}
503
504ECHO_C= ECHO_N= ECHO_T=
505case `echo -n x` in #(((((
506-n*)
507  case `echo 'xy\c'` in
508  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
509  xy)  ECHO_C='\c';;
510  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
511       ECHO_T='	';;
512  esac;;
513*)
514  ECHO_N='-n';;
515esac
516
517rm -f conf$$ conf$$.exe conf$$.file
518if test -d conf$$.dir; then
519  rm -f conf$$.dir/conf$$.file
520else
521  rm -f conf$$.dir
522  mkdir conf$$.dir 2>/dev/null
523fi
524if (echo >conf$$.file) 2>/dev/null; then
525  if ln -s conf$$.file conf$$ 2>/dev/null; then
526    as_ln_s='ln -s'
527    # ... but there are two gotchas:
528    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530    # In both cases, we have to default to `cp -pR'.
531    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532      as_ln_s='cp -pR'
533  elif ln conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s=ln
535  else
536    as_ln_s='cp -pR'
537  fi
538else
539  as_ln_s='cp -pR'
540fi
541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542rmdir conf$$.dir 2>/dev/null
543
544if mkdir -p . 2>/dev/null; then
545  as_mkdir_p='mkdir -p "$as_dir"'
546else
547  test -d ./-p && rmdir ./-p
548  as_mkdir_p=false
549fi
550
551as_test_x='test -x'
552as_executable_p=as_fn_executable_p
553
554# Sed expression to map a string onto a valid CPP name.
555as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557# Sed expression to map a string onto a valid variable name.
558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560
561test -n "$DJDIR" || exec 7<&0 </dev/null
562exec 6>&1
563
564# Name of the host.
565# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566# so uname gets run too.
567ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
569#
570# Initializations.
571#
572ac_default_prefix=/usr/local
573ac_clean_files=
574ac_config_libobj_dir=.
575LIBOBJS=
576cross_compiling=no
577subdirs=
578MFLAGS=
579MAKEFLAGS=
580
581# Identity of this package.
582PACKAGE_NAME='x11perf'
583PACKAGE_TARNAME='x11perf'
584PACKAGE_VERSION='1.6.1'
585PACKAGE_STRING='x11perf 1.6.1'
586PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/test/x11perf/issues'
587PACKAGE_URL=''
588
589ac_unique_file="Makefile.am"
590# Factoring default headers for most tests.
591ac_includes_default="\
592#include <stdio.h>
593#ifdef HAVE_SYS_TYPES_H
594# include <sys/types.h>
595#endif
596#ifdef HAVE_SYS_STAT_H
597# include <sys/stat.h>
598#endif
599#ifdef STDC_HEADERS
600# include <stdlib.h>
601# include <stddef.h>
602#else
603# ifdef HAVE_STDLIB_H
604#  include <stdlib.h>
605# endif
606#endif
607#ifdef HAVE_STRING_H
608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609#  include <memory.h>
610# endif
611# include <string.h>
612#endif
613#ifdef HAVE_STRINGS_H
614# include <strings.h>
615#endif
616#ifdef HAVE_INTTYPES_H
617# include <inttypes.h>
618#endif
619#ifdef HAVE_STDINT_H
620# include <stdint.h>
621#endif
622#ifdef HAVE_UNISTD_H
623# include <unistd.h>
624#endif"
625
626ac_subst_vars='am__EXEEXT_FALSE
627am__EXEEXT_TRUE
628LTLIBOBJS
629LIBOBJS
630XEXT_LIBS
631XEXT_CFLAGS
632XFT_LIBS
633XFT_CFLAGS
634XRENDER_LIBS
635XRENDER_CFLAGS
636X11PERF_LIBS
637X11PERF_CFLAGS
638MKTEMP
639x11perfcompdir
640MAN_SUBSTS
641XORG_MAN_PAGE
642ADMIN_MAN_DIR
643DRIVER_MAN_DIR
644MISC_MAN_DIR
645FILE_MAN_DIR
646LIB_MAN_DIR
647APP_MAN_DIR
648ADMIN_MAN_SUFFIX
649DRIVER_MAN_SUFFIX
650MISC_MAN_SUFFIX
651FILE_MAN_SUFFIX
652LIB_MAN_SUFFIX
653APP_MAN_SUFFIX
654SED
655host_os
656host_vendor
657host_cpu
658host
659build_os
660build_vendor
661build_cpu
662build
663INSTALL_CMD
664PKG_CONFIG_LIBDIR
665PKG_CONFIG_PATH
666PKG_CONFIG
667CHANGELOG_CMD
668STRICT_CFLAGS
669CWARNFLAGS
670BASE_CFLAGS
671EGREP
672GREP
673CPP
674am__fastdepCC_FALSE
675am__fastdepCC_TRUE
676CCDEPMODE
677am__nodep
678AMDEPBACKSLASH
679AMDEP_FALSE
680AMDEP_TRUE
681am__quote
682am__include
683DEPDIR
684OBJEXT
685EXEEXT
686ac_ct_CC
687CPPFLAGS
688LDFLAGS
689CFLAGS
690CC
691AM_BACKSLASH
692AM_DEFAULT_VERBOSITY
693AM_DEFAULT_V
694AM_V
695am__untar
696am__tar
697AMTAR
698am__leading_dot
699SET_MAKE
700AWK
701mkdir_p
702MKDIR_P
703INSTALL_STRIP_PROGRAM
704STRIP
705install_sh
706MAKEINFO
707AUTOHEADER
708AUTOMAKE
709AUTOCONF
710ACLOCAL
711VERSION
712PACKAGE
713CYGPATH_W
714am__isrc
715INSTALL_DATA
716INSTALL_SCRIPT
717INSTALL_PROGRAM
718target_alias
719host_alias
720build_alias
721LIBS
722ECHO_T
723ECHO_N
724ECHO_C
725DEFS
726mandir
727localedir
728libdir
729psdir
730pdfdir
731dvidir
732htmldir
733infodir
734docdir
735oldincludedir
736includedir
737localstatedir
738sharedstatedir
739sysconfdir
740datadir
741datarootdir
742libexecdir
743sbindir
744bindir
745program_transform_name
746prefix
747exec_prefix
748PACKAGE_URL
749PACKAGE_BUGREPORT
750PACKAGE_STRING
751PACKAGE_VERSION
752PACKAGE_TARNAME
753PACKAGE_NAME
754PATH_SEPARATOR
755SHELL'
756ac_subst_files=''
757ac_user_opts='
758enable_option_checking
759enable_silent_rules
760enable_dependency_tracking
761enable_selective_werror
762enable_strict_compilation
763'
764      ac_precious_vars='build_alias
765host_alias
766target_alias
767CC
768CFLAGS
769LDFLAGS
770LIBS
771CPPFLAGS
772CPP
773PKG_CONFIG
774PKG_CONFIG_PATH
775PKG_CONFIG_LIBDIR
776X11PERF_CFLAGS
777X11PERF_LIBS
778XRENDER_CFLAGS
779XRENDER_LIBS
780XFT_CFLAGS
781XFT_LIBS
782XEXT_CFLAGS
783XEXT_LIBS'
784
785
786# Initialize some variables set by options.
787ac_init_help=
788ac_init_version=false
789ac_unrecognized_opts=
790ac_unrecognized_sep=
791# The variables have the same names as the options, with
792# dashes changed to underlines.
793cache_file=/dev/null
794exec_prefix=NONE
795no_create=
796no_recursion=
797prefix=NONE
798program_prefix=NONE
799program_suffix=NONE
800program_transform_name=s,x,x,
801silent=
802site=
803srcdir=
804verbose=
805x_includes=NONE
806x_libraries=NONE
807
808# Installation directory options.
809# These are left unexpanded so users can "make install exec_prefix=/foo"
810# and all the variables that are supposed to be based on exec_prefix
811# by default will actually change.
812# Use braces instead of parens because sh, perl, etc. also accept them.
813# (The list follows the same order as the GNU Coding Standards.)
814bindir='${exec_prefix}/bin'
815sbindir='${exec_prefix}/sbin'
816libexecdir='${exec_prefix}/libexec'
817datarootdir='${prefix}/share'
818datadir='${datarootdir}'
819sysconfdir='${prefix}/etc'
820sharedstatedir='${prefix}/com'
821localstatedir='${prefix}/var'
822includedir='${prefix}/include'
823oldincludedir='/usr/include'
824docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
825infodir='${datarootdir}/info'
826htmldir='${docdir}'
827dvidir='${docdir}'
828pdfdir='${docdir}'
829psdir='${docdir}'
830libdir='${exec_prefix}/lib'
831localedir='${datarootdir}/locale'
832mandir='${datarootdir}/man'
833
834ac_prev=
835ac_dashdash=
836for ac_option
837do
838  # If the previous option needs an argument, assign it.
839  if test -n "$ac_prev"; then
840    eval $ac_prev=\$ac_option
841    ac_prev=
842    continue
843  fi
844
845  case $ac_option in
846  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
847  *=)   ac_optarg= ;;
848  *)    ac_optarg=yes ;;
849  esac
850
851  # Accept the important Cygnus configure options, so we can diagnose typos.
852
853  case $ac_dashdash$ac_option in
854  --)
855    ac_dashdash=yes ;;
856
857  -bindir | --bindir | --bindi | --bind | --bin | --bi)
858    ac_prev=bindir ;;
859  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
860    bindir=$ac_optarg ;;
861
862  -build | --build | --buil | --bui | --bu)
863    ac_prev=build_alias ;;
864  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
865    build_alias=$ac_optarg ;;
866
867  -cache-file | --cache-file | --cache-fil | --cache-fi \
868  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
869    ac_prev=cache_file ;;
870  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
871  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
872    cache_file=$ac_optarg ;;
873
874  --config-cache | -C)
875    cache_file=config.cache ;;
876
877  -datadir | --datadir | --datadi | --datad)
878    ac_prev=datadir ;;
879  -datadir=* | --datadir=* | --datadi=* | --datad=*)
880    datadir=$ac_optarg ;;
881
882  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
883  | --dataroo | --dataro | --datar)
884    ac_prev=datarootdir ;;
885  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
886  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
887    datarootdir=$ac_optarg ;;
888
889  -disable-* | --disable-*)
890    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
891    # Reject names that are not valid shell variable names.
892    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893      as_fn_error $? "invalid feature name: $ac_useropt"
894    ac_useropt_orig=$ac_useropt
895    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896    case $ac_user_opts in
897      *"
898"enable_$ac_useropt"
899"*) ;;
900      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
901	 ac_unrecognized_sep=', ';;
902    esac
903    eval enable_$ac_useropt=no ;;
904
905  -docdir | --docdir | --docdi | --doc | --do)
906    ac_prev=docdir ;;
907  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
908    docdir=$ac_optarg ;;
909
910  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911    ac_prev=dvidir ;;
912  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
913    dvidir=$ac_optarg ;;
914
915  -enable-* | --enable-*)
916    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
917    # Reject names that are not valid shell variable names.
918    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919      as_fn_error $? "invalid feature name: $ac_useropt"
920    ac_useropt_orig=$ac_useropt
921    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922    case $ac_user_opts in
923      *"
924"enable_$ac_useropt"
925"*) ;;
926      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
927	 ac_unrecognized_sep=', ';;
928    esac
929    eval enable_$ac_useropt=\$ac_optarg ;;
930
931  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
932  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
933  | --exec | --exe | --ex)
934    ac_prev=exec_prefix ;;
935  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
936  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
937  | --exec=* | --exe=* | --ex=*)
938    exec_prefix=$ac_optarg ;;
939
940  -gas | --gas | --ga | --g)
941    # Obsolete; use --with-gas.
942    with_gas=yes ;;
943
944  -help | --help | --hel | --he | -h)
945    ac_init_help=long ;;
946  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
947    ac_init_help=recursive ;;
948  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
949    ac_init_help=short ;;
950
951  -host | --host | --hos | --ho)
952    ac_prev=host_alias ;;
953  -host=* | --host=* | --hos=* | --ho=*)
954    host_alias=$ac_optarg ;;
955
956  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
957    ac_prev=htmldir ;;
958  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
959  | --ht=*)
960    htmldir=$ac_optarg ;;
961
962  -includedir | --includedir | --includedi | --included | --include \
963  | --includ | --inclu | --incl | --inc)
964    ac_prev=includedir ;;
965  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
966  | --includ=* | --inclu=* | --incl=* | --inc=*)
967    includedir=$ac_optarg ;;
968
969  -infodir | --infodir | --infodi | --infod | --info | --inf)
970    ac_prev=infodir ;;
971  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
972    infodir=$ac_optarg ;;
973
974  -libdir | --libdir | --libdi | --libd)
975    ac_prev=libdir ;;
976  -libdir=* | --libdir=* | --libdi=* | --libd=*)
977    libdir=$ac_optarg ;;
978
979  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
980  | --libexe | --libex | --libe)
981    ac_prev=libexecdir ;;
982  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
983  | --libexe=* | --libex=* | --libe=*)
984    libexecdir=$ac_optarg ;;
985
986  -localedir | --localedir | --localedi | --localed | --locale)
987    ac_prev=localedir ;;
988  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
989    localedir=$ac_optarg ;;
990
991  -localstatedir | --localstatedir | --localstatedi | --localstated \
992  | --localstate | --localstat | --localsta | --localst | --locals)
993    ac_prev=localstatedir ;;
994  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
995  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
996    localstatedir=$ac_optarg ;;
997
998  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
999    ac_prev=mandir ;;
1000  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1001    mandir=$ac_optarg ;;
1002
1003  -nfp | --nfp | --nf)
1004    # Obsolete; use --without-fp.
1005    with_fp=no ;;
1006
1007  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1008  | --no-cr | --no-c | -n)
1009    no_create=yes ;;
1010
1011  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013    no_recursion=yes ;;
1014
1015  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1016  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1017  | --oldin | --oldi | --old | --ol | --o)
1018    ac_prev=oldincludedir ;;
1019  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1020  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1021  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1022    oldincludedir=$ac_optarg ;;
1023
1024  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1025    ac_prev=prefix ;;
1026  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1027    prefix=$ac_optarg ;;
1028
1029  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1030  | --program-pre | --program-pr | --program-p)
1031    ac_prev=program_prefix ;;
1032  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1033  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1034    program_prefix=$ac_optarg ;;
1035
1036  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1037  | --program-suf | --program-su | --program-s)
1038    ac_prev=program_suffix ;;
1039  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1040  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1041    program_suffix=$ac_optarg ;;
1042
1043  -program-transform-name | --program-transform-name \
1044  | --program-transform-nam | --program-transform-na \
1045  | --program-transform-n | --program-transform- \
1046  | --program-transform | --program-transfor \
1047  | --program-transfo | --program-transf \
1048  | --program-trans | --program-tran \
1049  | --progr-tra | --program-tr | --program-t)
1050    ac_prev=program_transform_name ;;
1051  -program-transform-name=* | --program-transform-name=* \
1052  | --program-transform-nam=* | --program-transform-na=* \
1053  | --program-transform-n=* | --program-transform-=* \
1054  | --program-transform=* | --program-transfor=* \
1055  | --program-transfo=* | --program-transf=* \
1056  | --program-trans=* | --program-tran=* \
1057  | --progr-tra=* | --program-tr=* | --program-t=*)
1058    program_transform_name=$ac_optarg ;;
1059
1060  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1061    ac_prev=pdfdir ;;
1062  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1063    pdfdir=$ac_optarg ;;
1064
1065  -psdir | --psdir | --psdi | --psd | --ps)
1066    ac_prev=psdir ;;
1067  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1068    psdir=$ac_optarg ;;
1069
1070  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071  | -silent | --silent | --silen | --sile | --sil)
1072    silent=yes ;;
1073
1074  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075    ac_prev=sbindir ;;
1076  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077  | --sbi=* | --sb=*)
1078    sbindir=$ac_optarg ;;
1079
1080  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082  | --sharedst | --shareds | --shared | --share | --shar \
1083  | --sha | --sh)
1084    ac_prev=sharedstatedir ;;
1085  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088  | --sha=* | --sh=*)
1089    sharedstatedir=$ac_optarg ;;
1090
1091  -site | --site | --sit)
1092    ac_prev=site ;;
1093  -site=* | --site=* | --sit=*)
1094    site=$ac_optarg ;;
1095
1096  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097    ac_prev=srcdir ;;
1098  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1099    srcdir=$ac_optarg ;;
1100
1101  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102  | --syscon | --sysco | --sysc | --sys | --sy)
1103    ac_prev=sysconfdir ;;
1104  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1106    sysconfdir=$ac_optarg ;;
1107
1108  -target | --target | --targe | --targ | --tar | --ta | --t)
1109    ac_prev=target_alias ;;
1110  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1111    target_alias=$ac_optarg ;;
1112
1113  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1114    verbose=yes ;;
1115
1116  -version | --version | --versio | --versi | --vers | -V)
1117    ac_init_version=: ;;
1118
1119  -with-* | --with-*)
1120    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1121    # Reject names that are not valid shell variable names.
1122    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123      as_fn_error $? "invalid package name: $ac_useropt"
1124    ac_useropt_orig=$ac_useropt
1125    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126    case $ac_user_opts in
1127      *"
1128"with_$ac_useropt"
1129"*) ;;
1130      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1131	 ac_unrecognized_sep=', ';;
1132    esac
1133    eval with_$ac_useropt=\$ac_optarg ;;
1134
1135  -without-* | --without-*)
1136    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1137    # Reject names that are not valid shell variable names.
1138    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139      as_fn_error $? "invalid package name: $ac_useropt"
1140    ac_useropt_orig=$ac_useropt
1141    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142    case $ac_user_opts in
1143      *"
1144"with_$ac_useropt"
1145"*) ;;
1146      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1147	 ac_unrecognized_sep=', ';;
1148    esac
1149    eval with_$ac_useropt=no ;;
1150
1151  --x)
1152    # Obsolete; use --with-x.
1153    with_x=yes ;;
1154
1155  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156  | --x-incl | --x-inc | --x-in | --x-i)
1157    ac_prev=x_includes ;;
1158  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160    x_includes=$ac_optarg ;;
1161
1162  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164    ac_prev=x_libraries ;;
1165  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167    x_libraries=$ac_optarg ;;
1168
1169  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1170Try \`$0 --help' for more information"
1171    ;;
1172
1173  *=*)
1174    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1175    # Reject names that are not valid shell variable names.
1176    case $ac_envvar in #(
1177      '' | [0-9]* | *[!_$as_cr_alnum]* )
1178      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1179    esac
1180    eval $ac_envvar=\$ac_optarg
1181    export $ac_envvar ;;
1182
1183  *)
1184    # FIXME: should be removed in autoconf 3.0.
1185    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1186    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1188    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1189    ;;
1190
1191  esac
1192done
1193
1194if test -n "$ac_prev"; then
1195  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1196  as_fn_error $? "missing argument to $ac_option"
1197fi
1198
1199if test -n "$ac_unrecognized_opts"; then
1200  case $enable_option_checking in
1201    no) ;;
1202    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1203    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1204  esac
1205fi
1206
1207# Check all directory arguments for consistency.
1208for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209		datadir sysconfdir sharedstatedir localstatedir includedir \
1210		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211		libdir localedir mandir
1212do
1213  eval ac_val=\$$ac_var
1214  # Remove trailing slashes.
1215  case $ac_val in
1216    */ )
1217      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1218      eval $ac_var=\$ac_val;;
1219  esac
1220  # Be sure to have absolute directory names.
1221  case $ac_val in
1222    [\\/$]* | ?:[\\/]* )  continue;;
1223    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1224  esac
1225  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1226done
1227
1228# There might be people who depend on the old broken behavior: `$host'
1229# used to hold the argument of --host etc.
1230# FIXME: To remove some day.
1231build=$build_alias
1232host=$host_alias
1233target=$target_alias
1234
1235# FIXME: To remove some day.
1236if test "x$host_alias" != x; then
1237  if test "x$build_alias" = x; then
1238    cross_compiling=maybe
1239  elif test "x$build_alias" != "x$host_alias"; then
1240    cross_compiling=yes
1241  fi
1242fi
1243
1244ac_tool_prefix=
1245test -n "$host_alias" && ac_tool_prefix=$host_alias-
1246
1247test "$silent" = yes && exec 6>/dev/null
1248
1249
1250ac_pwd=`pwd` && test -n "$ac_pwd" &&
1251ac_ls_di=`ls -di .` &&
1252ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1253  as_fn_error $? "working directory cannot be determined"
1254test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1255  as_fn_error $? "pwd does not report name of working directory"
1256
1257
1258# Find the source files, if location was not specified.
1259if test -z "$srcdir"; then
1260  ac_srcdir_defaulted=yes
1261  # Try the directory containing this script, then the parent directory.
1262  ac_confdir=`$as_dirname -- "$as_myself" ||
1263$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1264	 X"$as_myself" : 'X\(//\)[^/]' \| \
1265	 X"$as_myself" : 'X\(//\)$' \| \
1266	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1267$as_echo X"$as_myself" |
1268    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1269	    s//\1/
1270	    q
1271	  }
1272	  /^X\(\/\/\)[^/].*/{
1273	    s//\1/
1274	    q
1275	  }
1276	  /^X\(\/\/\)$/{
1277	    s//\1/
1278	    q
1279	  }
1280	  /^X\(\/\).*/{
1281	    s//\1/
1282	    q
1283	  }
1284	  s/.*/./; q'`
1285  srcdir=$ac_confdir
1286  if test ! -r "$srcdir/$ac_unique_file"; then
1287    srcdir=..
1288  fi
1289else
1290  ac_srcdir_defaulted=no
1291fi
1292if test ! -r "$srcdir/$ac_unique_file"; then
1293  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1294  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1295fi
1296ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1297ac_abs_confdir=`(
1298	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1299	pwd)`
1300# When building in place, set srcdir=.
1301if test "$ac_abs_confdir" = "$ac_pwd"; then
1302  srcdir=.
1303fi
1304# Remove unnecessary trailing slashes from srcdir.
1305# Double slashes in file names in object file debugging info
1306# mess up M-x gdb in Emacs.
1307case $srcdir in
1308*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1309esac
1310for ac_var in $ac_precious_vars; do
1311  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1312  eval ac_env_${ac_var}_value=\$${ac_var}
1313  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1314  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1315done
1316
1317#
1318# Report the --help message.
1319#
1320if test "$ac_init_help" = "long"; then
1321  # Omit some internal or obsolete options to make the list less imposing.
1322  # This message is too long to be a string in the A/UX 3.1 sh.
1323  cat <<_ACEOF
1324\`configure' configures x11perf 1.6.1 to adapt to many kinds of systems.
1325
1326Usage: $0 [OPTION]... [VAR=VALUE]...
1327
1328To assign environment variables (e.g., CC, CFLAGS...), specify them as
1329VAR=VALUE.  See below for descriptions of some of the useful variables.
1330
1331Defaults for the options are specified in brackets.
1332
1333Configuration:
1334  -h, --help              display this help and exit
1335      --help=short        display options specific to this package
1336      --help=recursive    display the short help of all the included packages
1337  -V, --version           display version information and exit
1338  -q, --quiet, --silent   do not print \`checking ...' messages
1339      --cache-file=FILE   cache test results in FILE [disabled]
1340  -C, --config-cache      alias for \`--cache-file=config.cache'
1341  -n, --no-create         do not create output files
1342      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1343
1344Installation directories:
1345  --prefix=PREFIX         install architecture-independent files in PREFIX
1346                          [$ac_default_prefix]
1347  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1348                          [PREFIX]
1349
1350By default, \`make install' will install all the files in
1351\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1352an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1353for instance \`--prefix=\$HOME'.
1354
1355For better control, use the options below.
1356
1357Fine tuning of the installation directories:
1358  --bindir=DIR            user executables [EPREFIX/bin]
1359  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1360  --libexecdir=DIR        program executables [EPREFIX/libexec]
1361  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1362  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1363  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1364  --libdir=DIR            object code libraries [EPREFIX/lib]
1365  --includedir=DIR        C header files [PREFIX/include]
1366  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1367  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1368  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1369  --infodir=DIR           info documentation [DATAROOTDIR/info]
1370  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1371  --mandir=DIR            man documentation [DATAROOTDIR/man]
1372  --docdir=DIR            documentation root [DATAROOTDIR/doc/x11perf]
1373  --htmldir=DIR           html documentation [DOCDIR]
1374  --dvidir=DIR            dvi documentation [DOCDIR]
1375  --pdfdir=DIR            pdf documentation [DOCDIR]
1376  --psdir=DIR             ps documentation [DOCDIR]
1377_ACEOF
1378
1379  cat <<\_ACEOF
1380
1381Program names:
1382  --program-prefix=PREFIX            prepend PREFIX to installed program names
1383  --program-suffix=SUFFIX            append SUFFIX to installed program names
1384  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1385
1386System types:
1387  --build=BUILD     configure for building on BUILD [guessed]
1388  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1389_ACEOF
1390fi
1391
1392if test -n "$ac_init_help"; then
1393  case $ac_init_help in
1394     short | recursive ) echo "Configuration of x11perf 1.6.1:";;
1395   esac
1396  cat <<\_ACEOF
1397
1398Optional Features:
1399  --disable-option-checking  ignore unrecognized --enable/--with options
1400  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1401  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1402  --enable-silent-rules   less verbose build output (undo: "make V=1")
1403  --disable-silent-rules  verbose build output (undo: "make V=0")
1404  --enable-dependency-tracking
1405                          do not reject slow dependency extractors
1406  --disable-dependency-tracking
1407                          speeds up one-time build
1408  --disable-selective-werror
1409                          Turn off selective compiler errors. (default:
1410                          enabled)
1411  --enable-strict-compilation
1412                          Enable all warnings from compiler and make them
1413                          errors (default: disabled)
1414
1415Some influential environment variables:
1416  CC          C compiler command
1417  CFLAGS      C compiler flags
1418  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1419              nonstandard directory <lib dir>
1420  LIBS        libraries to pass to the linker, e.g. -l<library>
1421  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1422              you have headers in a nonstandard directory <include dir>
1423  CPP         C preprocessor
1424  PKG_CONFIG  path to pkg-config utility
1425  PKG_CONFIG_PATH
1426              directories to add to pkg-config's search path
1427  PKG_CONFIG_LIBDIR
1428              path overriding pkg-config's built-in search path
1429  X11PERF_CFLAGS
1430              C compiler flags for X11PERF, overriding pkg-config
1431  X11PERF_LIBS
1432              linker flags for X11PERF, overriding pkg-config
1433  XRENDER_CFLAGS
1434              C compiler flags for XRENDER, overriding pkg-config
1435  XRENDER_LIBS
1436              linker flags for XRENDER, overriding pkg-config
1437  XFT_CFLAGS  C compiler flags for XFT, overriding pkg-config
1438  XFT_LIBS    linker flags for XFT, overriding pkg-config
1439  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1440  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1441
1442Use these variables to override the choices made by `configure' or to help
1443it to find libraries and programs with nonstandard names/locations.
1444
1445Report bugs to <https://gitlab.freedesktop.org/xorg/test/x11perf/issues>.
1446_ACEOF
1447ac_status=$?
1448fi
1449
1450if test "$ac_init_help" = "recursive"; then
1451  # If there are subdirs, report their specific --help.
1452  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1453    test -d "$ac_dir" ||
1454      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1455      continue
1456    ac_builddir=.
1457
1458case "$ac_dir" in
1459.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1460*)
1461  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1462  # A ".." for each directory in $ac_dir_suffix.
1463  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1464  case $ac_top_builddir_sub in
1465  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1467  esac ;;
1468esac
1469ac_abs_top_builddir=$ac_pwd
1470ac_abs_builddir=$ac_pwd$ac_dir_suffix
1471# for backward compatibility:
1472ac_top_builddir=$ac_top_build_prefix
1473
1474case $srcdir in
1475  .)  # We are building in place.
1476    ac_srcdir=.
1477    ac_top_srcdir=$ac_top_builddir_sub
1478    ac_abs_top_srcdir=$ac_pwd ;;
1479  [\\/]* | ?:[\\/]* )  # Absolute name.
1480    ac_srcdir=$srcdir$ac_dir_suffix;
1481    ac_top_srcdir=$srcdir
1482    ac_abs_top_srcdir=$srcdir ;;
1483  *) # Relative name.
1484    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1485    ac_top_srcdir=$ac_top_build_prefix$srcdir
1486    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1487esac
1488ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1489
1490    cd "$ac_dir" || { ac_status=$?; continue; }
1491    # Check for guested configure.
1492    if test -f "$ac_srcdir/configure.gnu"; then
1493      echo &&
1494      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1495    elif test -f "$ac_srcdir/configure"; then
1496      echo &&
1497      $SHELL "$ac_srcdir/configure" --help=recursive
1498    else
1499      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1500    fi || ac_status=$?
1501    cd "$ac_pwd" || { ac_status=$?; break; }
1502  done
1503fi
1504
1505test -n "$ac_init_help" && exit $ac_status
1506if $ac_init_version; then
1507  cat <<\_ACEOF
1508x11perf configure 1.6.1
1509generated by GNU Autoconf 2.69
1510
1511Copyright (C) 2012 Free Software Foundation, Inc.
1512This configure script is free software; the Free Software Foundation
1513gives unlimited permission to copy, distribute and modify it.
1514_ACEOF
1515  exit
1516fi
1517
1518## ------------------------ ##
1519## Autoconf initialization. ##
1520## ------------------------ ##
1521
1522# ac_fn_c_try_compile LINENO
1523# --------------------------
1524# Try to compile conftest.$ac_ext, and return whether this succeeded.
1525ac_fn_c_try_compile ()
1526{
1527  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1528  rm -f conftest.$ac_objext
1529  if { { ac_try="$ac_compile"
1530case "(($ac_try" in
1531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1532  *) ac_try_echo=$ac_try;;
1533esac
1534eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1535$as_echo "$ac_try_echo"; } >&5
1536  (eval "$ac_compile") 2>conftest.err
1537  ac_status=$?
1538  if test -s conftest.err; then
1539    grep -v '^ *+' conftest.err >conftest.er1
1540    cat conftest.er1 >&5
1541    mv -f conftest.er1 conftest.err
1542  fi
1543  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1544  test $ac_status = 0; } && {
1545	 test -z "$ac_c_werror_flag" ||
1546	 test ! -s conftest.err
1547       } && test -s conftest.$ac_objext; then :
1548  ac_retval=0
1549else
1550  $as_echo "$as_me: failed program was:" >&5
1551sed 's/^/| /' conftest.$ac_ext >&5
1552
1553	ac_retval=1
1554fi
1555  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1556  as_fn_set_status $ac_retval
1557
1558} # ac_fn_c_try_compile
1559
1560# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1561# ---------------------------------------------
1562# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1563# accordingly.
1564ac_fn_c_check_decl ()
1565{
1566  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567  as_decl_name=`echo $2|sed 's/ *(.*//'`
1568  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1569  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1570$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1571if eval \${$3+:} false; then :
1572  $as_echo_n "(cached) " >&6
1573else
1574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1575/* end confdefs.h.  */
1576$4
1577int
1578main ()
1579{
1580#ifndef $as_decl_name
1581#ifdef __cplusplus
1582  (void) $as_decl_use;
1583#else
1584  (void) $as_decl_name;
1585#endif
1586#endif
1587
1588  ;
1589  return 0;
1590}
1591_ACEOF
1592if ac_fn_c_try_compile "$LINENO"; then :
1593  eval "$3=yes"
1594else
1595  eval "$3=no"
1596fi
1597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1598fi
1599eval ac_res=\$$3
1600	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1601$as_echo "$ac_res" >&6; }
1602  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1603
1604} # ac_fn_c_check_decl
1605
1606# ac_fn_c_try_cpp LINENO
1607# ----------------------
1608# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1609ac_fn_c_try_cpp ()
1610{
1611  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612  if { { ac_try="$ac_cpp conftest.$ac_ext"
1613case "(($ac_try" in
1614  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1615  *) ac_try_echo=$ac_try;;
1616esac
1617eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1618$as_echo "$ac_try_echo"; } >&5
1619  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1620  ac_status=$?
1621  if test -s conftest.err; then
1622    grep -v '^ *+' conftest.err >conftest.er1
1623    cat conftest.er1 >&5
1624    mv -f conftest.er1 conftest.err
1625  fi
1626  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1627  test $ac_status = 0; } > conftest.i && {
1628	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1629	 test ! -s conftest.err
1630       }; then :
1631  ac_retval=0
1632else
1633  $as_echo "$as_me: failed program was:" >&5
1634sed 's/^/| /' conftest.$ac_ext >&5
1635
1636    ac_retval=1
1637fi
1638  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1639  as_fn_set_status $ac_retval
1640
1641} # ac_fn_c_try_cpp
1642
1643# ac_fn_c_try_run LINENO
1644# ----------------------
1645# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1646# that executables *can* be run.
1647ac_fn_c_try_run ()
1648{
1649  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650  if { { ac_try="$ac_link"
1651case "(($ac_try" in
1652  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653  *) ac_try_echo=$ac_try;;
1654esac
1655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656$as_echo "$ac_try_echo"; } >&5
1657  (eval "$ac_link") 2>&5
1658  ac_status=$?
1659  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1661  { { case "(($ac_try" in
1662  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663  *) ac_try_echo=$ac_try;;
1664esac
1665eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666$as_echo "$ac_try_echo"; } >&5
1667  (eval "$ac_try") 2>&5
1668  ac_status=$?
1669  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670  test $ac_status = 0; }; }; then :
1671  ac_retval=0
1672else
1673  $as_echo "$as_me: program exited with status $ac_status" >&5
1674       $as_echo "$as_me: failed program was:" >&5
1675sed 's/^/| /' conftest.$ac_ext >&5
1676
1677       ac_retval=$ac_status
1678fi
1679  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1680  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681  as_fn_set_status $ac_retval
1682
1683} # ac_fn_c_try_run
1684
1685# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1686# -------------------------------------------------------
1687# Tests whether HEADER exists and can be compiled using the include files in
1688# INCLUDES, setting the cache variable VAR accordingly.
1689ac_fn_c_check_header_compile ()
1690{
1691  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1693$as_echo_n "checking for $2... " >&6; }
1694if eval \${$3+:} false; then :
1695  $as_echo_n "(cached) " >&6
1696else
1697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1698/* end confdefs.h.  */
1699$4
1700#include <$2>
1701_ACEOF
1702if ac_fn_c_try_compile "$LINENO"; then :
1703  eval "$3=yes"
1704else
1705  eval "$3=no"
1706fi
1707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1708fi
1709eval ac_res=\$$3
1710	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1711$as_echo "$ac_res" >&6; }
1712  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713
1714} # ac_fn_c_check_header_compile
1715
1716# ac_fn_c_try_link LINENO
1717# -----------------------
1718# Try to link conftest.$ac_ext, and return whether this succeeded.
1719ac_fn_c_try_link ()
1720{
1721  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722  rm -f conftest.$ac_objext conftest$ac_exeext
1723  if { { ac_try="$ac_link"
1724case "(($ac_try" in
1725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726  *) ac_try_echo=$ac_try;;
1727esac
1728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729$as_echo "$ac_try_echo"; } >&5
1730  (eval "$ac_link") 2>conftest.err
1731  ac_status=$?
1732  if test -s conftest.err; then
1733    grep -v '^ *+' conftest.err >conftest.er1
1734    cat conftest.er1 >&5
1735    mv -f conftest.er1 conftest.err
1736  fi
1737  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738  test $ac_status = 0; } && {
1739	 test -z "$ac_c_werror_flag" ||
1740	 test ! -s conftest.err
1741       } && test -s conftest$ac_exeext && {
1742	 test "$cross_compiling" = yes ||
1743	 test -x conftest$ac_exeext
1744       }; then :
1745  ac_retval=0
1746else
1747  $as_echo "$as_me: failed program was:" >&5
1748sed 's/^/| /' conftest.$ac_ext >&5
1749
1750	ac_retval=1
1751fi
1752  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1753  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1754  # interfere with the next link command; also delete a directory that is
1755  # left behind by Apple's compiler.  We do this before executing the actions.
1756  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1757  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758  as_fn_set_status $ac_retval
1759
1760} # ac_fn_c_try_link
1761
1762# ac_fn_c_check_func LINENO FUNC VAR
1763# ----------------------------------
1764# Tests whether FUNC exists, setting the cache variable VAR accordingly
1765ac_fn_c_check_func ()
1766{
1767  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1769$as_echo_n "checking for $2... " >&6; }
1770if eval \${$3+:} false; then :
1771  $as_echo_n "(cached) " >&6
1772else
1773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774/* end confdefs.h.  */
1775/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1776   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1777#define $2 innocuous_$2
1778
1779/* System header to define __stub macros and hopefully few prototypes,
1780    which can conflict with char $2 (); below.
1781    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1782    <limits.h> exists even on freestanding compilers.  */
1783
1784#ifdef __STDC__
1785# include <limits.h>
1786#else
1787# include <assert.h>
1788#endif
1789
1790#undef $2
1791
1792/* Override any GCC internal prototype to avoid an error.
1793   Use char because int might match the return type of a GCC
1794   builtin and then its argument prototype would still apply.  */
1795#ifdef __cplusplus
1796extern "C"
1797#endif
1798char $2 ();
1799/* The GNU C library defines this for functions which it implements
1800    to always fail with ENOSYS.  Some functions are actually named
1801    something starting with __ and the normal name is an alias.  */
1802#if defined __stub_$2 || defined __stub___$2
1803choke me
1804#endif
1805
1806int
1807main ()
1808{
1809return $2 ();
1810  ;
1811  return 0;
1812}
1813_ACEOF
1814if ac_fn_c_try_link "$LINENO"; then :
1815  eval "$3=yes"
1816else
1817  eval "$3=no"
1818fi
1819rm -f core conftest.err conftest.$ac_objext \
1820    conftest$ac_exeext conftest.$ac_ext
1821fi
1822eval ac_res=\$$3
1823	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1824$as_echo "$ac_res" >&6; }
1825  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826
1827} # ac_fn_c_check_func
1828cat >config.log <<_ACEOF
1829This file contains any messages produced by compilers while
1830running configure, to aid debugging if configure makes a mistake.
1831
1832It was created by x11perf $as_me 1.6.1, which was
1833generated by GNU Autoconf 2.69.  Invocation command line was
1834
1835  $ $0 $@
1836
1837_ACEOF
1838exec 5>>config.log
1839{
1840cat <<_ASUNAME
1841## --------- ##
1842## Platform. ##
1843## --------- ##
1844
1845hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1846uname -m = `(uname -m) 2>/dev/null || echo unknown`
1847uname -r = `(uname -r) 2>/dev/null || echo unknown`
1848uname -s = `(uname -s) 2>/dev/null || echo unknown`
1849uname -v = `(uname -v) 2>/dev/null || echo unknown`
1850
1851/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1852/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1853
1854/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1855/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1856/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1857/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1858/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1859/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1860/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1861
1862_ASUNAME
1863
1864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1865for as_dir in $PATH
1866do
1867  IFS=$as_save_IFS
1868  test -z "$as_dir" && as_dir=.
1869    $as_echo "PATH: $as_dir"
1870  done
1871IFS=$as_save_IFS
1872
1873} >&5
1874
1875cat >&5 <<_ACEOF
1876
1877
1878## ----------- ##
1879## Core tests. ##
1880## ----------- ##
1881
1882_ACEOF
1883
1884
1885# Keep a trace of the command line.
1886# Strip out --no-create and --no-recursion so they do not pile up.
1887# Strip out --silent because we don't want to record it for future runs.
1888# Also quote any args containing shell meta-characters.
1889# Make two passes to allow for proper duplicate-argument suppression.
1890ac_configure_args=
1891ac_configure_args0=
1892ac_configure_args1=
1893ac_must_keep_next=false
1894for ac_pass in 1 2
1895do
1896  for ac_arg
1897  do
1898    case $ac_arg in
1899    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1900    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1901    | -silent | --silent | --silen | --sile | --sil)
1902      continue ;;
1903    *\'*)
1904      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1905    esac
1906    case $ac_pass in
1907    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1908    2)
1909      as_fn_append ac_configure_args1 " '$ac_arg'"
1910      if test $ac_must_keep_next = true; then
1911	ac_must_keep_next=false # Got value, back to normal.
1912      else
1913	case $ac_arg in
1914	  *=* | --config-cache | -C | -disable-* | --disable-* \
1915	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1916	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1917	  | -with-* | --with-* | -without-* | --without-* | --x)
1918	    case "$ac_configure_args0 " in
1919	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1920	    esac
1921	    ;;
1922	  -* ) ac_must_keep_next=true ;;
1923	esac
1924      fi
1925      as_fn_append ac_configure_args " '$ac_arg'"
1926      ;;
1927    esac
1928  done
1929done
1930{ ac_configure_args0=; unset ac_configure_args0;}
1931{ ac_configure_args1=; unset ac_configure_args1;}
1932
1933# When interrupted or exit'd, cleanup temporary files, and complete
1934# config.log.  We remove comments because anyway the quotes in there
1935# would cause problems or look ugly.
1936# WARNING: Use '\'' to represent an apostrophe within the trap.
1937# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1938trap 'exit_status=$?
1939  # Save into config.log some information that might help in debugging.
1940  {
1941    echo
1942
1943    $as_echo "## ---------------- ##
1944## Cache variables. ##
1945## ---------------- ##"
1946    echo
1947    # The following way of writing the cache mishandles newlines in values,
1948(
1949  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1950    eval ac_val=\$$ac_var
1951    case $ac_val in #(
1952    *${as_nl}*)
1953      case $ac_var in #(
1954      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1955$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1956      esac
1957      case $ac_var in #(
1958      _ | IFS | as_nl) ;; #(
1959      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1960      *) { eval $ac_var=; unset $ac_var;} ;;
1961      esac ;;
1962    esac
1963  done
1964  (set) 2>&1 |
1965    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1966    *${as_nl}ac_space=\ *)
1967      sed -n \
1968	"s/'\''/'\''\\\\'\'''\''/g;
1969	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1970      ;; #(
1971    *)
1972      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1973      ;;
1974    esac |
1975    sort
1976)
1977    echo
1978
1979    $as_echo "## ----------------- ##
1980## Output variables. ##
1981## ----------------- ##"
1982    echo
1983    for ac_var in $ac_subst_vars
1984    do
1985      eval ac_val=\$$ac_var
1986      case $ac_val in
1987      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1988      esac
1989      $as_echo "$ac_var='\''$ac_val'\''"
1990    done | sort
1991    echo
1992
1993    if test -n "$ac_subst_files"; then
1994      $as_echo "## ------------------- ##
1995## File substitutions. ##
1996## ------------------- ##"
1997      echo
1998      for ac_var in $ac_subst_files
1999      do
2000	eval ac_val=\$$ac_var
2001	case $ac_val in
2002	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2003	esac
2004	$as_echo "$ac_var='\''$ac_val'\''"
2005      done | sort
2006      echo
2007    fi
2008
2009    if test -s confdefs.h; then
2010      $as_echo "## ----------- ##
2011## confdefs.h. ##
2012## ----------- ##"
2013      echo
2014      cat confdefs.h
2015      echo
2016    fi
2017    test "$ac_signal" != 0 &&
2018      $as_echo "$as_me: caught signal $ac_signal"
2019    $as_echo "$as_me: exit $exit_status"
2020  } >&5
2021  rm -f core *.core core.conftest.* &&
2022    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2023    exit $exit_status
2024' 0
2025for ac_signal in 1 2 13 15; do
2026  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2027done
2028ac_signal=0
2029
2030# confdefs.h avoids OS command line length limits that DEFS can exceed.
2031rm -f -r conftest* confdefs.h
2032
2033$as_echo "/* confdefs.h */" > confdefs.h
2034
2035# Predefined preprocessor variables.
2036
2037cat >>confdefs.h <<_ACEOF
2038#define PACKAGE_NAME "$PACKAGE_NAME"
2039_ACEOF
2040
2041cat >>confdefs.h <<_ACEOF
2042#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2043_ACEOF
2044
2045cat >>confdefs.h <<_ACEOF
2046#define PACKAGE_VERSION "$PACKAGE_VERSION"
2047_ACEOF
2048
2049cat >>confdefs.h <<_ACEOF
2050#define PACKAGE_STRING "$PACKAGE_STRING"
2051_ACEOF
2052
2053cat >>confdefs.h <<_ACEOF
2054#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2055_ACEOF
2056
2057cat >>confdefs.h <<_ACEOF
2058#define PACKAGE_URL "$PACKAGE_URL"
2059_ACEOF
2060
2061
2062# Let the site file select an alternate cache file if it wants to.
2063# Prefer an explicitly selected file to automatically selected ones.
2064ac_site_file1=NONE
2065ac_site_file2=NONE
2066if test -n "$CONFIG_SITE"; then
2067  # We do not want a PATH search for config.site.
2068  case $CONFIG_SITE in #((
2069    -*)  ac_site_file1=./$CONFIG_SITE;;
2070    */*) ac_site_file1=$CONFIG_SITE;;
2071    *)   ac_site_file1=./$CONFIG_SITE;;
2072  esac
2073elif test "x$prefix" != xNONE; then
2074  ac_site_file1=$prefix/share/config.site
2075  ac_site_file2=$prefix/etc/config.site
2076else
2077  ac_site_file1=$ac_default_prefix/share/config.site
2078  ac_site_file2=$ac_default_prefix/etc/config.site
2079fi
2080for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2081do
2082  test "x$ac_site_file" = xNONE && continue
2083  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2084    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2085$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2086    sed 's/^/| /' "$ac_site_file" >&5
2087    . "$ac_site_file" \
2088      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2089$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2090as_fn_error $? "failed to load site script $ac_site_file
2091See \`config.log' for more details" "$LINENO" 5; }
2092  fi
2093done
2094
2095if test -r "$cache_file"; then
2096  # Some versions of bash will fail to source /dev/null (special files
2097  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2098  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2099    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2100$as_echo "$as_me: loading cache $cache_file" >&6;}
2101    case $cache_file in
2102      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2103      *)                      . "./$cache_file";;
2104    esac
2105  fi
2106else
2107  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2108$as_echo "$as_me: creating cache $cache_file" >&6;}
2109  >$cache_file
2110fi
2111
2112# Check that the precious variables saved in the cache have kept the same
2113# value.
2114ac_cache_corrupted=false
2115for ac_var in $ac_precious_vars; do
2116  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2117  eval ac_new_set=\$ac_env_${ac_var}_set
2118  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2119  eval ac_new_val=\$ac_env_${ac_var}_value
2120  case $ac_old_set,$ac_new_set in
2121    set,)
2122      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2123$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2124      ac_cache_corrupted=: ;;
2125    ,set)
2126      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2127$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2128      ac_cache_corrupted=: ;;
2129    ,);;
2130    *)
2131      if test "x$ac_old_val" != "x$ac_new_val"; then
2132	# differences in whitespace do not lead to failure.
2133	ac_old_val_w=`echo x $ac_old_val`
2134	ac_new_val_w=`echo x $ac_new_val`
2135	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2136	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2137$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2138	  ac_cache_corrupted=:
2139	else
2140	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2141$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2142	  eval $ac_var=\$ac_old_val
2143	fi
2144	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2145$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2146	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2147$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2148      fi;;
2149  esac
2150  # Pass precious variables to config.status.
2151  if test "$ac_new_set" = set; then
2152    case $ac_new_val in
2153    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2154    *) ac_arg=$ac_var=$ac_new_val ;;
2155    esac
2156    case " $ac_configure_args " in
2157      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2158      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2159    esac
2160  fi
2161done
2162if $ac_cache_corrupted; then
2163  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2164$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2165  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2166$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2167  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2168fi
2169## -------------------- ##
2170## Main body of script. ##
2171## -------------------- ##
2172
2173ac_ext=c
2174ac_cpp='$CPP $CPPFLAGS'
2175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2177ac_compiler_gnu=$ac_cv_c_compiler_gnu
2178
2179
2180
2181ac_config_headers="$ac_config_headers config.h"
2182
2183
2184# Initialize Automake
2185am__api_version='1.15'
2186
2187ac_aux_dir=
2188for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2189  if test -f "$ac_dir/install-sh"; then
2190    ac_aux_dir=$ac_dir
2191    ac_install_sh="$ac_aux_dir/install-sh -c"
2192    break
2193  elif test -f "$ac_dir/install.sh"; then
2194    ac_aux_dir=$ac_dir
2195    ac_install_sh="$ac_aux_dir/install.sh -c"
2196    break
2197  elif test -f "$ac_dir/shtool"; then
2198    ac_aux_dir=$ac_dir
2199    ac_install_sh="$ac_aux_dir/shtool install -c"
2200    break
2201  fi
2202done
2203if test -z "$ac_aux_dir"; then
2204  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2205fi
2206
2207# These three variables are undocumented and unsupported,
2208# and are intended to be withdrawn in a future Autoconf release.
2209# They can cause serious problems if a builder's source tree is in a directory
2210# whose full name contains unusual characters.
2211ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2212ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2213ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2214
2215
2216# Find a good install program.  We prefer a C program (faster),
2217# so one script is as good as another.  But avoid the broken or
2218# incompatible versions:
2219# SysV /etc/install, /usr/sbin/install
2220# SunOS /usr/etc/install
2221# IRIX /sbin/install
2222# AIX /bin/install
2223# AmigaOS /C/install, which installs bootblocks on floppy discs
2224# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2225# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2226# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2227# OS/2's system install, which has a completely different semantic
2228# ./install, which can be erroneously created by make from ./install.sh.
2229# Reject install programs that cannot install multiple files.
2230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2231$as_echo_n "checking for a BSD-compatible install... " >&6; }
2232if test -z "$INSTALL"; then
2233if ${ac_cv_path_install+:} false; then :
2234  $as_echo_n "(cached) " >&6
2235else
2236  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2237for as_dir in $PATH
2238do
2239  IFS=$as_save_IFS
2240  test -z "$as_dir" && as_dir=.
2241    # Account for people who put trailing slashes in PATH elements.
2242case $as_dir/ in #((
2243  ./ | .// | /[cC]/* | \
2244  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2245  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2246  /usr/ucb/* ) ;;
2247  *)
2248    # OSF1 and SCO ODT 3.0 have their own names for install.
2249    # Don't use installbsd from OSF since it installs stuff as root
2250    # by default.
2251    for ac_prog in ginstall scoinst install; do
2252      for ac_exec_ext in '' $ac_executable_extensions; do
2253	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2254	  if test $ac_prog = install &&
2255	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2256	    # AIX install.  It has an incompatible calling convention.
2257	    :
2258	  elif test $ac_prog = install &&
2259	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2260	    # program-specific install script used by HP pwplus--don't use.
2261	    :
2262	  else
2263	    rm -rf conftest.one conftest.two conftest.dir
2264	    echo one > conftest.one
2265	    echo two > conftest.two
2266	    mkdir conftest.dir
2267	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2268	      test -s conftest.one && test -s conftest.two &&
2269	      test -s conftest.dir/conftest.one &&
2270	      test -s conftest.dir/conftest.two
2271	    then
2272	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2273	      break 3
2274	    fi
2275	  fi
2276	fi
2277      done
2278    done
2279    ;;
2280esac
2281
2282  done
2283IFS=$as_save_IFS
2284
2285rm -rf conftest.one conftest.two conftest.dir
2286
2287fi
2288  if test "${ac_cv_path_install+set}" = set; then
2289    INSTALL=$ac_cv_path_install
2290  else
2291    # As a last resort, use the slow shell script.  Don't cache a
2292    # value for INSTALL within a source directory, because that will
2293    # break other packages using the cache if that directory is
2294    # removed, or if the value is a relative name.
2295    INSTALL=$ac_install_sh
2296  fi
2297fi
2298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2299$as_echo "$INSTALL" >&6; }
2300
2301# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2302# It thinks the first close brace ends the variable substitution.
2303test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2304
2305test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2306
2307test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2308
2309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2310$as_echo_n "checking whether build environment is sane... " >&6; }
2311# Reject unsafe characters in $srcdir or the absolute working directory
2312# name.  Accept space and tab only in the latter.
2313am_lf='
2314'
2315case `pwd` in
2316  *[\\\"\#\$\&\'\`$am_lf]*)
2317    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2318esac
2319case $srcdir in
2320  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2321    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2322esac
2323
2324# Do 'set' in a subshell so we don't clobber the current shell's
2325# arguments.  Must try -L first in case configure is actually a
2326# symlink; some systems play weird games with the mod time of symlinks
2327# (eg FreeBSD returns the mod time of the symlink's containing
2328# directory).
2329if (
2330   am_has_slept=no
2331   for am_try in 1 2; do
2332     echo "timestamp, slept: $am_has_slept" > conftest.file
2333     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2334     if test "$*" = "X"; then
2335	# -L didn't work.
2336	set X `ls -t "$srcdir/configure" conftest.file`
2337     fi
2338     if test "$*" != "X $srcdir/configure conftest.file" \
2339	&& test "$*" != "X conftest.file $srcdir/configure"; then
2340
2341	# If neither matched, then we have a broken ls.  This can happen
2342	# if, for instance, CONFIG_SHELL is bash and it inherits a
2343	# broken ls alias from the environment.  This has actually
2344	# happened.  Such a system could not be considered "sane".
2345	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2346  alias in your environment" "$LINENO" 5
2347     fi
2348     if test "$2" = conftest.file || test $am_try -eq 2; then
2349       break
2350     fi
2351     # Just in case.
2352     sleep 1
2353     am_has_slept=yes
2354   done
2355   test "$2" = conftest.file
2356   )
2357then
2358   # Ok.
2359   :
2360else
2361   as_fn_error $? "newly created file is older than distributed files!
2362Check your system clock" "$LINENO" 5
2363fi
2364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2365$as_echo "yes" >&6; }
2366# If we didn't sleep, we still need to ensure time stamps of config.status and
2367# generated files are strictly newer.
2368am_sleep_pid=
2369if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2370  ( sleep 1 ) &
2371  am_sleep_pid=$!
2372fi
2373
2374rm -f conftest.file
2375
2376test "$program_prefix" != NONE &&
2377  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2378# Use a double $ so make ignores it.
2379test "$program_suffix" != NONE &&
2380  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2381# Double any \ or $.
2382# By default was `s,x,x', remove it if useless.
2383ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2384program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2385
2386# Expand $ac_aux_dir to an absolute path.
2387am_aux_dir=`cd "$ac_aux_dir" && pwd`
2388
2389if test x"${MISSING+set}" != xset; then
2390  case $am_aux_dir in
2391  *\ * | *\	*)
2392    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2393  *)
2394    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2395  esac
2396fi
2397# Use eval to expand $SHELL
2398if eval "$MISSING --is-lightweight"; then
2399  am_missing_run="$MISSING "
2400else
2401  am_missing_run=
2402  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2403$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2404fi
2405
2406if test x"${install_sh+set}" != xset; then
2407  case $am_aux_dir in
2408  *\ * | *\	*)
2409    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2410  *)
2411    install_sh="\${SHELL} $am_aux_dir/install-sh"
2412  esac
2413fi
2414
2415# Installed binaries are usually stripped using 'strip' when the user
2416# run "make install-strip".  However 'strip' might not be the right
2417# tool to use in cross-compilation environments, therefore Automake
2418# will honor the 'STRIP' environment variable to overrule this program.
2419if test "$cross_compiling" != no; then
2420  if test -n "$ac_tool_prefix"; then
2421  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2422set dummy ${ac_tool_prefix}strip; ac_word=$2
2423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2424$as_echo_n "checking for $ac_word... " >&6; }
2425if ${ac_cv_prog_STRIP+:} false; then :
2426  $as_echo_n "(cached) " >&6
2427else
2428  if test -n "$STRIP"; then
2429  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2430else
2431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2432for as_dir in $PATH
2433do
2434  IFS=$as_save_IFS
2435  test -z "$as_dir" && as_dir=.
2436    for ac_exec_ext in '' $ac_executable_extensions; do
2437  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2438    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2439    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2440    break 2
2441  fi
2442done
2443  done
2444IFS=$as_save_IFS
2445
2446fi
2447fi
2448STRIP=$ac_cv_prog_STRIP
2449if test -n "$STRIP"; then
2450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2451$as_echo "$STRIP" >&6; }
2452else
2453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2454$as_echo "no" >&6; }
2455fi
2456
2457
2458fi
2459if test -z "$ac_cv_prog_STRIP"; then
2460  ac_ct_STRIP=$STRIP
2461  # Extract the first word of "strip", so it can be a program name with args.
2462set dummy strip; ac_word=$2
2463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2464$as_echo_n "checking for $ac_word... " >&6; }
2465if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2466  $as_echo_n "(cached) " >&6
2467else
2468  if test -n "$ac_ct_STRIP"; then
2469  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2470else
2471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472for as_dir in $PATH
2473do
2474  IFS=$as_save_IFS
2475  test -z "$as_dir" && as_dir=.
2476    for ac_exec_ext in '' $ac_executable_extensions; do
2477  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2478    ac_cv_prog_ac_ct_STRIP="strip"
2479    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2480    break 2
2481  fi
2482done
2483  done
2484IFS=$as_save_IFS
2485
2486fi
2487fi
2488ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2489if test -n "$ac_ct_STRIP"; then
2490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2491$as_echo "$ac_ct_STRIP" >&6; }
2492else
2493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2494$as_echo "no" >&6; }
2495fi
2496
2497  if test "x$ac_ct_STRIP" = x; then
2498    STRIP=":"
2499  else
2500    case $cross_compiling:$ac_tool_warned in
2501yes:)
2502{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2503$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2504ac_tool_warned=yes ;;
2505esac
2506    STRIP=$ac_ct_STRIP
2507  fi
2508else
2509  STRIP="$ac_cv_prog_STRIP"
2510fi
2511
2512fi
2513INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2514
2515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2516$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2517if test -z "$MKDIR_P"; then
2518  if ${ac_cv_path_mkdir+:} false; then :
2519  $as_echo_n "(cached) " >&6
2520else
2521  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2523do
2524  IFS=$as_save_IFS
2525  test -z "$as_dir" && as_dir=.
2526    for ac_prog in mkdir gmkdir; do
2527	 for ac_exec_ext in '' $ac_executable_extensions; do
2528	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2529	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2530	     'mkdir (GNU coreutils) '* | \
2531	     'mkdir (coreutils) '* | \
2532	     'mkdir (fileutils) '4.1*)
2533	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2534	       break 3;;
2535	   esac
2536	 done
2537       done
2538  done
2539IFS=$as_save_IFS
2540
2541fi
2542
2543  test -d ./--version && rmdir ./--version
2544  if test "${ac_cv_path_mkdir+set}" = set; then
2545    MKDIR_P="$ac_cv_path_mkdir -p"
2546  else
2547    # As a last resort, use the slow shell script.  Don't cache a
2548    # value for MKDIR_P within a source directory, because that will
2549    # break other packages using the cache if that directory is
2550    # removed, or if the value is a relative name.
2551    MKDIR_P="$ac_install_sh -d"
2552  fi
2553fi
2554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2555$as_echo "$MKDIR_P" >&6; }
2556
2557for ac_prog in gawk mawk nawk awk
2558do
2559  # Extract the first word of "$ac_prog", so it can be a program name with args.
2560set dummy $ac_prog; ac_word=$2
2561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2562$as_echo_n "checking for $ac_word... " >&6; }
2563if ${ac_cv_prog_AWK+:} false; then :
2564  $as_echo_n "(cached) " >&6
2565else
2566  if test -n "$AWK"; then
2567  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2568else
2569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2570for as_dir in $PATH
2571do
2572  IFS=$as_save_IFS
2573  test -z "$as_dir" && as_dir=.
2574    for ac_exec_ext in '' $ac_executable_extensions; do
2575  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2576    ac_cv_prog_AWK="$ac_prog"
2577    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2578    break 2
2579  fi
2580done
2581  done
2582IFS=$as_save_IFS
2583
2584fi
2585fi
2586AWK=$ac_cv_prog_AWK
2587if test -n "$AWK"; then
2588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2589$as_echo "$AWK" >&6; }
2590else
2591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2592$as_echo "no" >&6; }
2593fi
2594
2595
2596  test -n "$AWK" && break
2597done
2598
2599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2600$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2601set x ${MAKE-make}
2602ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2603if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2604  $as_echo_n "(cached) " >&6
2605else
2606  cat >conftest.make <<\_ACEOF
2607SHELL = /bin/sh
2608all:
2609	@echo '@@@%%%=$(MAKE)=@@@%%%'
2610_ACEOF
2611# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2612case `${MAKE-make} -f conftest.make 2>/dev/null` in
2613  *@@@%%%=?*=@@@%%%*)
2614    eval ac_cv_prog_make_${ac_make}_set=yes;;
2615  *)
2616    eval ac_cv_prog_make_${ac_make}_set=no;;
2617esac
2618rm -f conftest.make
2619fi
2620if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2622$as_echo "yes" >&6; }
2623  SET_MAKE=
2624else
2625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2626$as_echo "no" >&6; }
2627  SET_MAKE="MAKE=${MAKE-make}"
2628fi
2629
2630rm -rf .tst 2>/dev/null
2631mkdir .tst 2>/dev/null
2632if test -d .tst; then
2633  am__leading_dot=.
2634else
2635  am__leading_dot=_
2636fi
2637rmdir .tst 2>/dev/null
2638
2639# Check whether --enable-silent-rules was given.
2640if test "${enable_silent_rules+set}" = set; then :
2641  enableval=$enable_silent_rules;
2642fi
2643
2644case $enable_silent_rules in # (((
2645  yes) AM_DEFAULT_VERBOSITY=0;;
2646   no) AM_DEFAULT_VERBOSITY=1;;
2647    *) AM_DEFAULT_VERBOSITY=1;;
2648esac
2649am_make=${MAKE-make}
2650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2651$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2652if ${am_cv_make_support_nested_variables+:} false; then :
2653  $as_echo_n "(cached) " >&6
2654else
2655  if $as_echo 'TRUE=$(BAR$(V))
2656BAR0=false
2657BAR1=true
2658V=1
2659am__doit:
2660	@$(TRUE)
2661.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2662  am_cv_make_support_nested_variables=yes
2663else
2664  am_cv_make_support_nested_variables=no
2665fi
2666fi
2667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2668$as_echo "$am_cv_make_support_nested_variables" >&6; }
2669if test $am_cv_make_support_nested_variables = yes; then
2670    AM_V='$(V)'
2671  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2672else
2673  AM_V=$AM_DEFAULT_VERBOSITY
2674  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2675fi
2676AM_BACKSLASH='\'
2677
2678if test "`cd $srcdir && pwd`" != "`pwd`"; then
2679  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2680  # is not polluted with repeated "-I."
2681  am__isrc=' -I$(srcdir)'
2682  # test to see if srcdir already configured
2683  if test -f $srcdir/config.status; then
2684    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2685  fi
2686fi
2687
2688# test whether we have cygpath
2689if test -z "$CYGPATH_W"; then
2690  if (cygpath --version) >/dev/null 2>/dev/null; then
2691    CYGPATH_W='cygpath -w'
2692  else
2693    CYGPATH_W=echo
2694  fi
2695fi
2696
2697
2698# Define the identity of the package.
2699 PACKAGE='x11perf'
2700 VERSION='1.6.1'
2701
2702
2703cat >>confdefs.h <<_ACEOF
2704#define PACKAGE "$PACKAGE"
2705_ACEOF
2706
2707
2708cat >>confdefs.h <<_ACEOF
2709#define VERSION "$VERSION"
2710_ACEOF
2711
2712# Some tools Automake needs.
2713
2714ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2715
2716
2717AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2718
2719
2720AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2721
2722
2723AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2724
2725
2726MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2727
2728# For better backward compatibility.  To be removed once Automake 1.9.x
2729# dies out for good.  For more background, see:
2730# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2731# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2732mkdir_p='$(MKDIR_P)'
2733
2734# We need awk for the "check" target (and possibly the TAP driver).  The
2735# system "awk" is bad on some platforms.
2736# Always define AMTAR for backward compatibility.  Yes, it's still used
2737# in the wild :-(  We should find a proper way to deprecate it ...
2738AMTAR='$${TAR-tar}'
2739
2740
2741# We'll loop over all known methods to create a tar archive until one works.
2742_am_tools='gnutar  pax cpio none'
2743
2744am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2745
2746
2747
2748
2749
2750
2751# POSIX will say in a future version that running "rm -f" with no argument
2752# is OK; and we want to be able to make that assumption in our Makefile
2753# recipes.  So use an aggressive probe to check that the usage we want is
2754# actually supported "in the wild" to an acceptable degree.
2755# See automake bug#10828.
2756# To make any issue more visible, cause the running configure to be aborted
2757# by default if the 'rm' program in use doesn't match our expectations; the
2758# user can still override this though.
2759if rm -f && rm -fr && rm -rf; then : OK; else
2760  cat >&2 <<'END'
2761Oops!
2762
2763Your 'rm' program seems unable to run without file operands specified
2764on the command line, even when the '-f' option is present.  This is contrary
2765to the behaviour of most rm programs out there, and not conforming with
2766the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2767
2768Please tell bug-automake@gnu.org about your system, including the value
2769of your $PATH and any error possibly output before this message.  This
2770can help us improve future automake versions.
2771
2772END
2773  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2774    echo 'Configuration will proceed anyway, since you have set the' >&2
2775    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2776    echo >&2
2777  else
2778    cat >&2 <<'END'
2779Aborting the configuration process, to ensure you take notice of the issue.
2780
2781You can download and install GNU coreutils to get an 'rm' implementation
2782that behaves properly: <http://www.gnu.org/software/coreutils/>.
2783
2784If you want to complete the configuration process using your problematic
2785'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2786to "yes", and re-run configure.
2787
2788END
2789    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2790  fi
2791fi
2792
2793
2794# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806DEPDIR="${am__leading_dot}deps"
2807
2808ac_config_commands="$ac_config_commands depfiles"
2809
2810
2811am_make=${MAKE-make}
2812cat > confinc << 'END'
2813am__doit:
2814	@echo this is the am__doit target
2815.PHONY: am__doit
2816END
2817# If we don't find an include directive, just comment out the code.
2818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2819$as_echo_n "checking for style of include used by $am_make... " >&6; }
2820am__include="#"
2821am__quote=
2822_am_result=none
2823# First try GNU make style include.
2824echo "include confinc" > confmf
2825# Ignore all kinds of additional output from 'make'.
2826case `$am_make -s -f confmf 2> /dev/null` in #(
2827*the\ am__doit\ target*)
2828  am__include=include
2829  am__quote=
2830  _am_result=GNU
2831  ;;
2832esac
2833# Now try BSD make style include.
2834if test "$am__include" = "#"; then
2835   echo '.include "confinc"' > confmf
2836   case `$am_make -s -f confmf 2> /dev/null` in #(
2837   *the\ am__doit\ target*)
2838     am__include=.include
2839     am__quote="\""
2840     _am_result=BSD
2841     ;;
2842   esac
2843fi
2844
2845
2846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2847$as_echo "$_am_result" >&6; }
2848rm -f confinc confmf
2849
2850# Check whether --enable-dependency-tracking was given.
2851if test "${enable_dependency_tracking+set}" = set; then :
2852  enableval=$enable_dependency_tracking;
2853fi
2854
2855if test "x$enable_dependency_tracking" != xno; then
2856  am_depcomp="$ac_aux_dir/depcomp"
2857  AMDEPBACKSLASH='\'
2858  am__nodep='_no'
2859fi
2860 if test "x$enable_dependency_tracking" != xno; then
2861  AMDEP_TRUE=
2862  AMDEP_FALSE='#'
2863else
2864  AMDEP_TRUE='#'
2865  AMDEP_FALSE=
2866fi
2867
2868
2869ac_ext=c
2870ac_cpp='$CPP $CPPFLAGS'
2871ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2872ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2873ac_compiler_gnu=$ac_cv_c_compiler_gnu
2874if test -n "$ac_tool_prefix"; then
2875  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2876set dummy ${ac_tool_prefix}gcc; ac_word=$2
2877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2878$as_echo_n "checking for $ac_word... " >&6; }
2879if ${ac_cv_prog_CC+:} false; then :
2880  $as_echo_n "(cached) " >&6
2881else
2882  if test -n "$CC"; then
2883  ac_cv_prog_CC="$CC" # Let the user override the test.
2884else
2885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886for as_dir in $PATH
2887do
2888  IFS=$as_save_IFS
2889  test -z "$as_dir" && as_dir=.
2890    for ac_exec_ext in '' $ac_executable_extensions; do
2891  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2892    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2893    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2894    break 2
2895  fi
2896done
2897  done
2898IFS=$as_save_IFS
2899
2900fi
2901fi
2902CC=$ac_cv_prog_CC
2903if test -n "$CC"; then
2904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2905$as_echo "$CC" >&6; }
2906else
2907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2908$as_echo "no" >&6; }
2909fi
2910
2911
2912fi
2913if test -z "$ac_cv_prog_CC"; then
2914  ac_ct_CC=$CC
2915  # Extract the first word of "gcc", so it can be a program name with args.
2916set dummy gcc; ac_word=$2
2917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2918$as_echo_n "checking for $ac_word... " >&6; }
2919if ${ac_cv_prog_ac_ct_CC+:} false; then :
2920  $as_echo_n "(cached) " >&6
2921else
2922  if test -n "$ac_ct_CC"; then
2923  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2924else
2925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926for as_dir in $PATH
2927do
2928  IFS=$as_save_IFS
2929  test -z "$as_dir" && as_dir=.
2930    for ac_exec_ext in '' $ac_executable_extensions; do
2931  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2932    ac_cv_prog_ac_ct_CC="gcc"
2933    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2934    break 2
2935  fi
2936done
2937  done
2938IFS=$as_save_IFS
2939
2940fi
2941fi
2942ac_ct_CC=$ac_cv_prog_ac_ct_CC
2943if test -n "$ac_ct_CC"; then
2944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2945$as_echo "$ac_ct_CC" >&6; }
2946else
2947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2948$as_echo "no" >&6; }
2949fi
2950
2951  if test "x$ac_ct_CC" = x; then
2952    CC=""
2953  else
2954    case $cross_compiling:$ac_tool_warned in
2955yes:)
2956{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2957$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2958ac_tool_warned=yes ;;
2959esac
2960    CC=$ac_ct_CC
2961  fi
2962else
2963  CC="$ac_cv_prog_CC"
2964fi
2965
2966if test -z "$CC"; then
2967          if test -n "$ac_tool_prefix"; then
2968    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2969set dummy ${ac_tool_prefix}cc; ac_word=$2
2970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2971$as_echo_n "checking for $ac_word... " >&6; }
2972if ${ac_cv_prog_CC+:} false; then :
2973  $as_echo_n "(cached) " >&6
2974else
2975  if test -n "$CC"; then
2976  ac_cv_prog_CC="$CC" # Let the user override the test.
2977else
2978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979for as_dir in $PATH
2980do
2981  IFS=$as_save_IFS
2982  test -z "$as_dir" && as_dir=.
2983    for ac_exec_ext in '' $ac_executable_extensions; do
2984  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2985    ac_cv_prog_CC="${ac_tool_prefix}cc"
2986    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2987    break 2
2988  fi
2989done
2990  done
2991IFS=$as_save_IFS
2992
2993fi
2994fi
2995CC=$ac_cv_prog_CC
2996if test -n "$CC"; then
2997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2998$as_echo "$CC" >&6; }
2999else
3000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3001$as_echo "no" >&6; }
3002fi
3003
3004
3005  fi
3006fi
3007if test -z "$CC"; then
3008  # Extract the first word of "cc", so it can be a program name with args.
3009set dummy cc; ac_word=$2
3010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3011$as_echo_n "checking for $ac_word... " >&6; }
3012if ${ac_cv_prog_CC+:} false; then :
3013  $as_echo_n "(cached) " >&6
3014else
3015  if test -n "$CC"; then
3016  ac_cv_prog_CC="$CC" # Let the user override the test.
3017else
3018  ac_prog_rejected=no
3019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020for as_dir in $PATH
3021do
3022  IFS=$as_save_IFS
3023  test -z "$as_dir" && as_dir=.
3024    for ac_exec_ext in '' $ac_executable_extensions; do
3025  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3026    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3027       ac_prog_rejected=yes
3028       continue
3029     fi
3030    ac_cv_prog_CC="cc"
3031    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3032    break 2
3033  fi
3034done
3035  done
3036IFS=$as_save_IFS
3037
3038if test $ac_prog_rejected = yes; then
3039  # We found a bogon in the path, so make sure we never use it.
3040  set dummy $ac_cv_prog_CC
3041  shift
3042  if test $# != 0; then
3043    # We chose a different compiler from the bogus one.
3044    # However, it has the same basename, so the bogon will be chosen
3045    # first if we set CC to just the basename; use the full file name.
3046    shift
3047    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3048  fi
3049fi
3050fi
3051fi
3052CC=$ac_cv_prog_CC
3053if test -n "$CC"; then
3054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3055$as_echo "$CC" >&6; }
3056else
3057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058$as_echo "no" >&6; }
3059fi
3060
3061
3062fi
3063if test -z "$CC"; then
3064  if test -n "$ac_tool_prefix"; then
3065  for ac_prog in cl.exe
3066  do
3067    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3068set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3070$as_echo_n "checking for $ac_word... " >&6; }
3071if ${ac_cv_prog_CC+:} false; then :
3072  $as_echo_n "(cached) " >&6
3073else
3074  if test -n "$CC"; then
3075  ac_cv_prog_CC="$CC" # Let the user override the test.
3076else
3077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078for as_dir in $PATH
3079do
3080  IFS=$as_save_IFS
3081  test -z "$as_dir" && as_dir=.
3082    for ac_exec_ext in '' $ac_executable_extensions; do
3083  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3084    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3085    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3086    break 2
3087  fi
3088done
3089  done
3090IFS=$as_save_IFS
3091
3092fi
3093fi
3094CC=$ac_cv_prog_CC
3095if test -n "$CC"; then
3096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3097$as_echo "$CC" >&6; }
3098else
3099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3100$as_echo "no" >&6; }
3101fi
3102
3103
3104    test -n "$CC" && break
3105  done
3106fi
3107if test -z "$CC"; then
3108  ac_ct_CC=$CC
3109  for ac_prog in cl.exe
3110do
3111  # Extract the first word of "$ac_prog", so it can be a program name with args.
3112set dummy $ac_prog; ac_word=$2
3113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3114$as_echo_n "checking for $ac_word... " >&6; }
3115if ${ac_cv_prog_ac_ct_CC+:} false; then :
3116  $as_echo_n "(cached) " >&6
3117else
3118  if test -n "$ac_ct_CC"; then
3119  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3120else
3121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122for as_dir in $PATH
3123do
3124  IFS=$as_save_IFS
3125  test -z "$as_dir" && as_dir=.
3126    for ac_exec_ext in '' $ac_executable_extensions; do
3127  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3128    ac_cv_prog_ac_ct_CC="$ac_prog"
3129    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3130    break 2
3131  fi
3132done
3133  done
3134IFS=$as_save_IFS
3135
3136fi
3137fi
3138ac_ct_CC=$ac_cv_prog_ac_ct_CC
3139if test -n "$ac_ct_CC"; then
3140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3141$as_echo "$ac_ct_CC" >&6; }
3142else
3143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144$as_echo "no" >&6; }
3145fi
3146
3147
3148  test -n "$ac_ct_CC" && break
3149done
3150
3151  if test "x$ac_ct_CC" = x; then
3152    CC=""
3153  else
3154    case $cross_compiling:$ac_tool_warned in
3155yes:)
3156{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3157$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3158ac_tool_warned=yes ;;
3159esac
3160    CC=$ac_ct_CC
3161  fi
3162fi
3163
3164fi
3165
3166
3167test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3168$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3169as_fn_error $? "no acceptable C compiler found in \$PATH
3170See \`config.log' for more details" "$LINENO" 5; }
3171
3172# Provide some information about the compiler.
3173$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3174set X $ac_compile
3175ac_compiler=$2
3176for ac_option in --version -v -V -qversion; do
3177  { { ac_try="$ac_compiler $ac_option >&5"
3178case "(($ac_try" in
3179  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180  *) ac_try_echo=$ac_try;;
3181esac
3182eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3183$as_echo "$ac_try_echo"; } >&5
3184  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3185  ac_status=$?
3186  if test -s conftest.err; then
3187    sed '10a\
3188... rest of stderr output deleted ...
3189         10q' conftest.err >conftest.er1
3190    cat conftest.er1 >&5
3191  fi
3192  rm -f conftest.er1 conftest.err
3193  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3194  test $ac_status = 0; }
3195done
3196
3197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3198/* end confdefs.h.  */
3199
3200int
3201main ()
3202{
3203
3204  ;
3205  return 0;
3206}
3207_ACEOF
3208ac_clean_files_save=$ac_clean_files
3209ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3210# Try to create an executable without -o first, disregard a.out.
3211# It will help us diagnose broken compilers, and finding out an intuition
3212# of exeext.
3213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3214$as_echo_n "checking whether the C compiler works... " >&6; }
3215ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3216
3217# The possible output files:
3218ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3219
3220ac_rmfiles=
3221for ac_file in $ac_files
3222do
3223  case $ac_file in
3224    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3225    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3226  esac
3227done
3228rm -f $ac_rmfiles
3229
3230if { { ac_try="$ac_link_default"
3231case "(($ac_try" in
3232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233  *) ac_try_echo=$ac_try;;
3234esac
3235eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3236$as_echo "$ac_try_echo"; } >&5
3237  (eval "$ac_link_default") 2>&5
3238  ac_status=$?
3239  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3240  test $ac_status = 0; }; then :
3241  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3242# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3243# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3244# so that the user can short-circuit this test for compilers unknown to
3245# Autoconf.
3246for ac_file in $ac_files ''
3247do
3248  test -f "$ac_file" || continue
3249  case $ac_file in
3250    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3251	;;
3252    [ab].out )
3253	# We found the default executable, but exeext='' is most
3254	# certainly right.
3255	break;;
3256    *.* )
3257	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3258	then :; else
3259	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3260	fi
3261	# We set ac_cv_exeext here because the later test for it is not
3262	# safe: cross compilers may not add the suffix if given an `-o'
3263	# argument, so we may need to know it at that point already.
3264	# Even if this section looks crufty: it has the advantage of
3265	# actually working.
3266	break;;
3267    * )
3268	break;;
3269  esac
3270done
3271test "$ac_cv_exeext" = no && ac_cv_exeext=
3272
3273else
3274  ac_file=''
3275fi
3276if test -z "$ac_file"; then :
3277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278$as_echo "no" >&6; }
3279$as_echo "$as_me: failed program was:" >&5
3280sed 's/^/| /' conftest.$ac_ext >&5
3281
3282{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3283$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3284as_fn_error 77 "C compiler cannot create executables
3285See \`config.log' for more details" "$LINENO" 5; }
3286else
3287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3288$as_echo "yes" >&6; }
3289fi
3290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3291$as_echo_n "checking for C compiler default output file name... " >&6; }
3292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3293$as_echo "$ac_file" >&6; }
3294ac_exeext=$ac_cv_exeext
3295
3296rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3297ac_clean_files=$ac_clean_files_save
3298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3299$as_echo_n "checking for suffix of executables... " >&6; }
3300if { { ac_try="$ac_link"
3301case "(($ac_try" in
3302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303  *) ac_try_echo=$ac_try;;
3304esac
3305eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3306$as_echo "$ac_try_echo"; } >&5
3307  (eval "$ac_link") 2>&5
3308  ac_status=$?
3309  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3310  test $ac_status = 0; }; then :
3311  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3312# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3313# work properly (i.e., refer to `conftest.exe'), while it won't with
3314# `rm'.
3315for ac_file in conftest.exe conftest conftest.*; do
3316  test -f "$ac_file" || continue
3317  case $ac_file in
3318    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3319    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3320	  break;;
3321    * ) break;;
3322  esac
3323done
3324else
3325  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3326$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3327as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3328See \`config.log' for more details" "$LINENO" 5; }
3329fi
3330rm -f conftest conftest$ac_cv_exeext
3331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3332$as_echo "$ac_cv_exeext" >&6; }
3333
3334rm -f conftest.$ac_ext
3335EXEEXT=$ac_cv_exeext
3336ac_exeext=$EXEEXT
3337cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3338/* end confdefs.h.  */
3339#include <stdio.h>
3340int
3341main ()
3342{
3343FILE *f = fopen ("conftest.out", "w");
3344 return ferror (f) || fclose (f) != 0;
3345
3346  ;
3347  return 0;
3348}
3349_ACEOF
3350ac_clean_files="$ac_clean_files conftest.out"
3351# Check that the compiler produces executables we can run.  If not, either
3352# the compiler is broken, or we cross compile.
3353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3354$as_echo_n "checking whether we are cross compiling... " >&6; }
3355if test "$cross_compiling" != yes; then
3356  { { ac_try="$ac_link"
3357case "(($ac_try" in
3358  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359  *) ac_try_echo=$ac_try;;
3360esac
3361eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3362$as_echo "$ac_try_echo"; } >&5
3363  (eval "$ac_link") 2>&5
3364  ac_status=$?
3365  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3366  test $ac_status = 0; }
3367  if { ac_try='./conftest$ac_cv_exeext'
3368  { { case "(($ac_try" in
3369  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370  *) ac_try_echo=$ac_try;;
3371esac
3372eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3373$as_echo "$ac_try_echo"; } >&5
3374  (eval "$ac_try") 2>&5
3375  ac_status=$?
3376  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3377  test $ac_status = 0; }; }; then
3378    cross_compiling=no
3379  else
3380    if test "$cross_compiling" = maybe; then
3381	cross_compiling=yes
3382    else
3383	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3384$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3385as_fn_error $? "cannot run C compiled programs.
3386If you meant to cross compile, use \`--host'.
3387See \`config.log' for more details" "$LINENO" 5; }
3388    fi
3389  fi
3390fi
3391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3392$as_echo "$cross_compiling" >&6; }
3393
3394rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3395ac_clean_files=$ac_clean_files_save
3396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3397$as_echo_n "checking for suffix of object files... " >&6; }
3398if ${ac_cv_objext+:} false; then :
3399  $as_echo_n "(cached) " >&6
3400else
3401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3402/* end confdefs.h.  */
3403
3404int
3405main ()
3406{
3407
3408  ;
3409  return 0;
3410}
3411_ACEOF
3412rm -f conftest.o conftest.obj
3413if { { ac_try="$ac_compile"
3414case "(($ac_try" in
3415  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416  *) ac_try_echo=$ac_try;;
3417esac
3418eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3419$as_echo "$ac_try_echo"; } >&5
3420  (eval "$ac_compile") 2>&5
3421  ac_status=$?
3422  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3423  test $ac_status = 0; }; then :
3424  for ac_file in conftest.o conftest.obj conftest.*; do
3425  test -f "$ac_file" || continue;
3426  case $ac_file in
3427    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3428    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3429       break;;
3430  esac
3431done
3432else
3433  $as_echo "$as_me: failed program was:" >&5
3434sed 's/^/| /' conftest.$ac_ext >&5
3435
3436{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3437$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3438as_fn_error $? "cannot compute suffix of object files: cannot compile
3439See \`config.log' for more details" "$LINENO" 5; }
3440fi
3441rm -f conftest.$ac_cv_objext conftest.$ac_ext
3442fi
3443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3444$as_echo "$ac_cv_objext" >&6; }
3445OBJEXT=$ac_cv_objext
3446ac_objext=$OBJEXT
3447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3448$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3449if ${ac_cv_c_compiler_gnu+:} false; then :
3450  $as_echo_n "(cached) " >&6
3451else
3452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453/* end confdefs.h.  */
3454
3455int
3456main ()
3457{
3458#ifndef __GNUC__
3459       choke me
3460#endif
3461
3462  ;
3463  return 0;
3464}
3465_ACEOF
3466if ac_fn_c_try_compile "$LINENO"; then :
3467  ac_compiler_gnu=yes
3468else
3469  ac_compiler_gnu=no
3470fi
3471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3472ac_cv_c_compiler_gnu=$ac_compiler_gnu
3473
3474fi
3475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3476$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3477if test $ac_compiler_gnu = yes; then
3478  GCC=yes
3479else
3480  GCC=
3481fi
3482ac_test_CFLAGS=${CFLAGS+set}
3483ac_save_CFLAGS=$CFLAGS
3484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3485$as_echo_n "checking whether $CC accepts -g... " >&6; }
3486if ${ac_cv_prog_cc_g+:} false; then :
3487  $as_echo_n "(cached) " >&6
3488else
3489  ac_save_c_werror_flag=$ac_c_werror_flag
3490   ac_c_werror_flag=yes
3491   ac_cv_prog_cc_g=no
3492   CFLAGS="-g"
3493   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494/* end confdefs.h.  */
3495
3496int
3497main ()
3498{
3499
3500  ;
3501  return 0;
3502}
3503_ACEOF
3504if ac_fn_c_try_compile "$LINENO"; then :
3505  ac_cv_prog_cc_g=yes
3506else
3507  CFLAGS=""
3508      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509/* end confdefs.h.  */
3510
3511int
3512main ()
3513{
3514
3515  ;
3516  return 0;
3517}
3518_ACEOF
3519if ac_fn_c_try_compile "$LINENO"; then :
3520
3521else
3522  ac_c_werror_flag=$ac_save_c_werror_flag
3523	 CFLAGS="-g"
3524	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525/* end confdefs.h.  */
3526
3527int
3528main ()
3529{
3530
3531  ;
3532  return 0;
3533}
3534_ACEOF
3535if ac_fn_c_try_compile "$LINENO"; then :
3536  ac_cv_prog_cc_g=yes
3537fi
3538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3539fi
3540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3541fi
3542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3543   ac_c_werror_flag=$ac_save_c_werror_flag
3544fi
3545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3546$as_echo "$ac_cv_prog_cc_g" >&6; }
3547if test "$ac_test_CFLAGS" = set; then
3548  CFLAGS=$ac_save_CFLAGS
3549elif test $ac_cv_prog_cc_g = yes; then
3550  if test "$GCC" = yes; then
3551    CFLAGS="-g -O2"
3552  else
3553    CFLAGS="-g"
3554  fi
3555else
3556  if test "$GCC" = yes; then
3557    CFLAGS="-O2"
3558  else
3559    CFLAGS=
3560  fi
3561fi
3562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3563$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3564if ${ac_cv_prog_cc_c89+:} false; then :
3565  $as_echo_n "(cached) " >&6
3566else
3567  ac_cv_prog_cc_c89=no
3568ac_save_CC=$CC
3569cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3570/* end confdefs.h.  */
3571#include <stdarg.h>
3572#include <stdio.h>
3573struct stat;
3574/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3575struct buf { int x; };
3576FILE * (*rcsopen) (struct buf *, struct stat *, int);
3577static char *e (p, i)
3578     char **p;
3579     int i;
3580{
3581  return p[i];
3582}
3583static char *f (char * (*g) (char **, int), char **p, ...)
3584{
3585  char *s;
3586  va_list v;
3587  va_start (v,p);
3588  s = g (p, va_arg (v,int));
3589  va_end (v);
3590  return s;
3591}
3592
3593/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3594   function prototypes and stuff, but not '\xHH' hex character constants.
3595   These don't provoke an error unfortunately, instead are silently treated
3596   as 'x'.  The following induces an error, until -std is added to get
3597   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3598   array size at least.  It's necessary to write '\x00'==0 to get something
3599   that's true only with -std.  */
3600int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3601
3602/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3603   inside strings and character constants.  */
3604#define FOO(x) 'x'
3605int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3606
3607int test (int i, double x);
3608struct s1 {int (*f) (int a);};
3609struct s2 {int (*f) (double a);};
3610int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3611int argc;
3612char **argv;
3613int
3614main ()
3615{
3616return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3617  ;
3618  return 0;
3619}
3620_ACEOF
3621for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3622	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3623do
3624  CC="$ac_save_CC $ac_arg"
3625  if ac_fn_c_try_compile "$LINENO"; then :
3626  ac_cv_prog_cc_c89=$ac_arg
3627fi
3628rm -f core conftest.err conftest.$ac_objext
3629  test "x$ac_cv_prog_cc_c89" != "xno" && break
3630done
3631rm -f conftest.$ac_ext
3632CC=$ac_save_CC
3633
3634fi
3635# AC_CACHE_VAL
3636case "x$ac_cv_prog_cc_c89" in
3637  x)
3638    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3639$as_echo "none needed" >&6; } ;;
3640  xno)
3641    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3642$as_echo "unsupported" >&6; } ;;
3643  *)
3644    CC="$CC $ac_cv_prog_cc_c89"
3645    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3646$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3647esac
3648if test "x$ac_cv_prog_cc_c89" != xno; then :
3649
3650fi
3651
3652ac_ext=c
3653ac_cpp='$CPP $CPPFLAGS'
3654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3656ac_compiler_gnu=$ac_cv_c_compiler_gnu
3657
3658ac_ext=c
3659ac_cpp='$CPP $CPPFLAGS'
3660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3662ac_compiler_gnu=$ac_cv_c_compiler_gnu
3663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3664$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3665if ${am_cv_prog_cc_c_o+:} false; then :
3666  $as_echo_n "(cached) " >&6
3667else
3668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3669/* end confdefs.h.  */
3670
3671int
3672main ()
3673{
3674
3675  ;
3676  return 0;
3677}
3678_ACEOF
3679  # Make sure it works both with $CC and with simple cc.
3680  # Following AC_PROG_CC_C_O, we do the test twice because some
3681  # compilers refuse to overwrite an existing .o file with -o,
3682  # though they will create one.
3683  am_cv_prog_cc_c_o=yes
3684  for am_i in 1 2; do
3685    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3686   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3687   ac_status=$?
3688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689   (exit $ac_status); } \
3690         && test -f conftest2.$ac_objext; then
3691      : OK
3692    else
3693      am_cv_prog_cc_c_o=no
3694      break
3695    fi
3696  done
3697  rm -f core conftest*
3698  unset am_i
3699fi
3700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3701$as_echo "$am_cv_prog_cc_c_o" >&6; }
3702if test "$am_cv_prog_cc_c_o" != yes; then
3703   # Losing compiler, so override with the script.
3704   # FIXME: It is wrong to rewrite CC.
3705   # But if we don't then we get into trouble of one sort or another.
3706   # A longer-term fix would be to have automake use am__CC in this case,
3707   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3708   CC="$am_aux_dir/compile $CC"
3709fi
3710ac_ext=c
3711ac_cpp='$CPP $CPPFLAGS'
3712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3714ac_compiler_gnu=$ac_cv_c_compiler_gnu
3715
3716
3717depcc="$CC"   am_compiler_list=
3718
3719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3720$as_echo_n "checking dependency style of $depcc... " >&6; }
3721if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3722  $as_echo_n "(cached) " >&6
3723else
3724  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3725  # We make a subdir and do the tests there.  Otherwise we can end up
3726  # making bogus files that we don't know about and never remove.  For
3727  # instance it was reported that on HP-UX the gcc test will end up
3728  # making a dummy file named 'D' -- because '-MD' means "put the output
3729  # in D".
3730  rm -rf conftest.dir
3731  mkdir conftest.dir
3732  # Copy depcomp to subdir because otherwise we won't find it if we're
3733  # using a relative directory.
3734  cp "$am_depcomp" conftest.dir
3735  cd conftest.dir
3736  # We will build objects and dependencies in a subdirectory because
3737  # it helps to detect inapplicable dependency modes.  For instance
3738  # both Tru64's cc and ICC support -MD to output dependencies as a
3739  # side effect of compilation, but ICC will put the dependencies in
3740  # the current directory while Tru64 will put them in the object
3741  # directory.
3742  mkdir sub
3743
3744  am_cv_CC_dependencies_compiler_type=none
3745  if test "$am_compiler_list" = ""; then
3746     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3747  fi
3748  am__universal=false
3749  case " $depcc " in #(
3750     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3751     esac
3752
3753  for depmode in $am_compiler_list; do
3754    # Setup a source with many dependencies, because some compilers
3755    # like to wrap large dependency lists on column 80 (with \), and
3756    # we should not choose a depcomp mode which is confused by this.
3757    #
3758    # We need to recreate these files for each test, as the compiler may
3759    # overwrite some of them when testing with obscure command lines.
3760    # This happens at least with the AIX C compiler.
3761    : > sub/conftest.c
3762    for i in 1 2 3 4 5 6; do
3763      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3764      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3765      # Solaris 10 /bin/sh.
3766      echo '/* dummy */' > sub/conftst$i.h
3767    done
3768    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3769
3770    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3771    # mode.  It turns out that the SunPro C++ compiler does not properly
3772    # handle '-M -o', and we need to detect this.  Also, some Intel
3773    # versions had trouble with output in subdirs.
3774    am__obj=sub/conftest.${OBJEXT-o}
3775    am__minus_obj="-o $am__obj"
3776    case $depmode in
3777    gcc)
3778      # This depmode causes a compiler race in universal mode.
3779      test "$am__universal" = false || continue
3780      ;;
3781    nosideeffect)
3782      # After this tag, mechanisms are not by side-effect, so they'll
3783      # only be used when explicitly requested.
3784      if test "x$enable_dependency_tracking" = xyes; then
3785	continue
3786      else
3787	break
3788      fi
3789      ;;
3790    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3791      # This compiler won't grok '-c -o', but also, the minuso test has
3792      # not run yet.  These depmodes are late enough in the game, and
3793      # so weak that their functioning should not be impacted.
3794      am__obj=conftest.${OBJEXT-o}
3795      am__minus_obj=
3796      ;;
3797    none) break ;;
3798    esac
3799    if depmode=$depmode \
3800       source=sub/conftest.c object=$am__obj \
3801       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3802       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3803         >/dev/null 2>conftest.err &&
3804       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3805       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3806       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3807       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3808      # icc doesn't choke on unknown options, it will just issue warnings
3809      # or remarks (even with -Werror).  So we grep stderr for any message
3810      # that says an option was ignored or not supported.
3811      # When given -MP, icc 7.0 and 7.1 complain thusly:
3812      #   icc: Command line warning: ignoring option '-M'; no argument required
3813      # The diagnosis changed in icc 8.0:
3814      #   icc: Command line remark: option '-MP' not supported
3815      if (grep 'ignoring option' conftest.err ||
3816          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3817        am_cv_CC_dependencies_compiler_type=$depmode
3818        break
3819      fi
3820    fi
3821  done
3822
3823  cd ..
3824  rm -rf conftest.dir
3825else
3826  am_cv_CC_dependencies_compiler_type=none
3827fi
3828
3829fi
3830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3831$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3832CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3833
3834 if
3835  test "x$enable_dependency_tracking" != xno \
3836  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3837  am__fastdepCC_TRUE=
3838  am__fastdepCC_FALSE='#'
3839else
3840  am__fastdepCC_TRUE='#'
3841  am__fastdepCC_FALSE=
3842fi
3843
3844
3845   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3846$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3847if ${ac_cv_prog_cc_c99+:} false; then :
3848  $as_echo_n "(cached) " >&6
3849else
3850  ac_cv_prog_cc_c99=no
3851ac_save_CC=$CC
3852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853/* end confdefs.h.  */
3854#include <stdarg.h>
3855#include <stdbool.h>
3856#include <stdlib.h>
3857#include <wchar.h>
3858#include <stdio.h>
3859
3860// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3861#define debug(...) fprintf (stderr, __VA_ARGS__)
3862#define showlist(...) puts (#__VA_ARGS__)
3863#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3864static void
3865test_varargs_macros (void)
3866{
3867  int x = 1234;
3868  int y = 5678;
3869  debug ("Flag");
3870  debug ("X = %d\n", x);
3871  showlist (The first, second, and third items.);
3872  report (x>y, "x is %d but y is %d", x, y);
3873}
3874
3875// Check long long types.
3876#define BIG64 18446744073709551615ull
3877#define BIG32 4294967295ul
3878#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3879#if !BIG_OK
3880  your preprocessor is broken;
3881#endif
3882#if BIG_OK
3883#else
3884  your preprocessor is broken;
3885#endif
3886static long long int bignum = -9223372036854775807LL;
3887static unsigned long long int ubignum = BIG64;
3888
3889struct incomplete_array
3890{
3891  int datasize;
3892  double data[];
3893};
3894
3895struct named_init {
3896  int number;
3897  const wchar_t *name;
3898  double average;
3899};
3900
3901typedef const char *ccp;
3902
3903static inline int
3904test_restrict (ccp restrict text)
3905{
3906  // See if C++-style comments work.
3907  // Iterate through items via the restricted pointer.
3908  // Also check for declarations in for loops.
3909  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3910    continue;
3911  return 0;
3912}
3913
3914// Check varargs and va_copy.
3915static void
3916test_varargs (const char *format, ...)
3917{
3918  va_list args;
3919  va_start (args, format);
3920  va_list args_copy;
3921  va_copy (args_copy, args);
3922
3923  const char *str;
3924  int number;
3925  float fnumber;
3926
3927  while (*format)
3928    {
3929      switch (*format++)
3930	{
3931	case 's': // string
3932	  str = va_arg (args_copy, const char *);
3933	  break;
3934	case 'd': // int
3935	  number = va_arg (args_copy, int);
3936	  break;
3937	case 'f': // float
3938	  fnumber = va_arg (args_copy, double);
3939	  break;
3940	default:
3941	  break;
3942	}
3943    }
3944  va_end (args_copy);
3945  va_end (args);
3946}
3947
3948int
3949main ()
3950{
3951
3952  // Check bool.
3953  _Bool success = false;
3954
3955  // Check restrict.
3956  if (test_restrict ("String literal") == 0)
3957    success = true;
3958  char *restrict newvar = "Another string";
3959
3960  // Check varargs.
3961  test_varargs ("s, d' f .", "string", 65, 34.234);
3962  test_varargs_macros ();
3963
3964  // Check flexible array members.
3965  struct incomplete_array *ia =
3966    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3967  ia->datasize = 10;
3968  for (int i = 0; i < ia->datasize; ++i)
3969    ia->data[i] = i * 1.234;
3970
3971  // Check named initializers.
3972  struct named_init ni = {
3973    .number = 34,
3974    .name = L"Test wide string",
3975    .average = 543.34343,
3976  };
3977
3978  ni.number = 58;
3979
3980  int dynamic_array[ni.number];
3981  dynamic_array[ni.number - 1] = 543;
3982
3983  // work around unused variable warnings
3984  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3985	  || dynamic_array[ni.number - 1] != 543);
3986
3987  ;
3988  return 0;
3989}
3990_ACEOF
3991for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3992do
3993  CC="$ac_save_CC $ac_arg"
3994  if ac_fn_c_try_compile "$LINENO"; then :
3995  ac_cv_prog_cc_c99=$ac_arg
3996fi
3997rm -f core conftest.err conftest.$ac_objext
3998  test "x$ac_cv_prog_cc_c99" != "xno" && break
3999done
4000rm -f conftest.$ac_ext
4001CC=$ac_save_CC
4002
4003fi
4004# AC_CACHE_VAL
4005case "x$ac_cv_prog_cc_c99" in
4006  x)
4007    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4008$as_echo "none needed" >&6; } ;;
4009  xno)
4010    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4011$as_echo "unsupported" >&6; } ;;
4012  *)
4013    CC="$CC $ac_cv_prog_cc_c99"
4014    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4015$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4016esac
4017if test "x$ac_cv_prog_cc_c99" != xno; then :
4018
4019fi
4020
4021
4022
4023ac_ext=c
4024ac_cpp='$CPP $CPPFLAGS'
4025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4027ac_compiler_gnu=$ac_cv_c_compiler_gnu
4028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4029$as_echo_n "checking how to run the C preprocessor... " >&6; }
4030# On Suns, sometimes $CPP names a directory.
4031if test -n "$CPP" && test -d "$CPP"; then
4032  CPP=
4033fi
4034if test -z "$CPP"; then
4035  if ${ac_cv_prog_CPP+:} false; then :
4036  $as_echo_n "(cached) " >&6
4037else
4038      # Double quotes because CPP needs to be expanded
4039    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4040    do
4041      ac_preproc_ok=false
4042for ac_c_preproc_warn_flag in '' yes
4043do
4044  # Use a header file that comes with gcc, so configuring glibc
4045  # with a fresh cross-compiler works.
4046  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4047  # <limits.h> exists even on freestanding compilers.
4048  # On the NeXT, cc -E runs the code through the compiler's parser,
4049  # not just through cpp. "Syntax error" is here to catch this case.
4050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051/* end confdefs.h.  */
4052#ifdef __STDC__
4053# include <limits.h>
4054#else
4055# include <assert.h>
4056#endif
4057		     Syntax error
4058_ACEOF
4059if ac_fn_c_try_cpp "$LINENO"; then :
4060
4061else
4062  # Broken: fails on valid input.
4063continue
4064fi
4065rm -f conftest.err conftest.i conftest.$ac_ext
4066
4067  # OK, works on sane cases.  Now check whether nonexistent headers
4068  # can be detected and how.
4069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070/* end confdefs.h.  */
4071#include <ac_nonexistent.h>
4072_ACEOF
4073if ac_fn_c_try_cpp "$LINENO"; then :
4074  # Broken: success on invalid input.
4075continue
4076else
4077  # Passes both tests.
4078ac_preproc_ok=:
4079break
4080fi
4081rm -f conftest.err conftest.i conftest.$ac_ext
4082
4083done
4084# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4085rm -f conftest.i conftest.err conftest.$ac_ext
4086if $ac_preproc_ok; then :
4087  break
4088fi
4089
4090    done
4091    ac_cv_prog_CPP=$CPP
4092
4093fi
4094  CPP=$ac_cv_prog_CPP
4095else
4096  ac_cv_prog_CPP=$CPP
4097fi
4098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4099$as_echo "$CPP" >&6; }
4100ac_preproc_ok=false
4101for ac_c_preproc_warn_flag in '' yes
4102do
4103  # Use a header file that comes with gcc, so configuring glibc
4104  # with a fresh cross-compiler works.
4105  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4106  # <limits.h> exists even on freestanding compilers.
4107  # On the NeXT, cc -E runs the code through the compiler's parser,
4108  # not just through cpp. "Syntax error" is here to catch this case.
4109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4110/* end confdefs.h.  */
4111#ifdef __STDC__
4112# include <limits.h>
4113#else
4114# include <assert.h>
4115#endif
4116		     Syntax error
4117_ACEOF
4118if ac_fn_c_try_cpp "$LINENO"; then :
4119
4120else
4121  # Broken: fails on valid input.
4122continue
4123fi
4124rm -f conftest.err conftest.i conftest.$ac_ext
4125
4126  # OK, works on sane cases.  Now check whether nonexistent headers
4127  # can be detected and how.
4128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129/* end confdefs.h.  */
4130#include <ac_nonexistent.h>
4131_ACEOF
4132if ac_fn_c_try_cpp "$LINENO"; then :
4133  # Broken: success on invalid input.
4134continue
4135else
4136  # Passes both tests.
4137ac_preproc_ok=:
4138break
4139fi
4140rm -f conftest.err conftest.i conftest.$ac_ext
4141
4142done
4143# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4144rm -f conftest.i conftest.err conftest.$ac_ext
4145if $ac_preproc_ok; then :
4146
4147else
4148  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4149$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4150as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4151See \`config.log' for more details" "$LINENO" 5; }
4152fi
4153
4154ac_ext=c
4155ac_cpp='$CPP $CPPFLAGS'
4156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4158ac_compiler_gnu=$ac_cv_c_compiler_gnu
4159
4160
4161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4162$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4163if ${ac_cv_path_GREP+:} false; then :
4164  $as_echo_n "(cached) " >&6
4165else
4166  if test -z "$GREP"; then
4167  ac_path_GREP_found=false
4168  # Loop through the user's path and test for each of PROGNAME-LIST
4169  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4171do
4172  IFS=$as_save_IFS
4173  test -z "$as_dir" && as_dir=.
4174    for ac_prog in grep ggrep; do
4175    for ac_exec_ext in '' $ac_executable_extensions; do
4176      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4177      as_fn_executable_p "$ac_path_GREP" || continue
4178# Check for GNU ac_path_GREP and select it if it is found.
4179  # Check for GNU $ac_path_GREP
4180case `"$ac_path_GREP" --version 2>&1` in
4181*GNU*)
4182  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4183*)
4184  ac_count=0
4185  $as_echo_n 0123456789 >"conftest.in"
4186  while :
4187  do
4188    cat "conftest.in" "conftest.in" >"conftest.tmp"
4189    mv "conftest.tmp" "conftest.in"
4190    cp "conftest.in" "conftest.nl"
4191    $as_echo 'GREP' >> "conftest.nl"
4192    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4193    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4194    as_fn_arith $ac_count + 1 && ac_count=$as_val
4195    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4196      # Best one so far, save it but keep looking for a better one
4197      ac_cv_path_GREP="$ac_path_GREP"
4198      ac_path_GREP_max=$ac_count
4199    fi
4200    # 10*(2^10) chars as input seems more than enough
4201    test $ac_count -gt 10 && break
4202  done
4203  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4204esac
4205
4206      $ac_path_GREP_found && break 3
4207    done
4208  done
4209  done
4210IFS=$as_save_IFS
4211  if test -z "$ac_cv_path_GREP"; then
4212    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4213  fi
4214else
4215  ac_cv_path_GREP=$GREP
4216fi
4217
4218fi
4219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4220$as_echo "$ac_cv_path_GREP" >&6; }
4221 GREP="$ac_cv_path_GREP"
4222
4223
4224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4225$as_echo_n "checking for egrep... " >&6; }
4226if ${ac_cv_path_EGREP+:} false; then :
4227  $as_echo_n "(cached) " >&6
4228else
4229  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4230   then ac_cv_path_EGREP="$GREP -E"
4231   else
4232     if test -z "$EGREP"; then
4233  ac_path_EGREP_found=false
4234  # Loop through the user's path and test for each of PROGNAME-LIST
4235  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4237do
4238  IFS=$as_save_IFS
4239  test -z "$as_dir" && as_dir=.
4240    for ac_prog in egrep; do
4241    for ac_exec_ext in '' $ac_executable_extensions; do
4242      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4243      as_fn_executable_p "$ac_path_EGREP" || continue
4244# Check for GNU ac_path_EGREP and select it if it is found.
4245  # Check for GNU $ac_path_EGREP
4246case `"$ac_path_EGREP" --version 2>&1` in
4247*GNU*)
4248  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4249*)
4250  ac_count=0
4251  $as_echo_n 0123456789 >"conftest.in"
4252  while :
4253  do
4254    cat "conftest.in" "conftest.in" >"conftest.tmp"
4255    mv "conftest.tmp" "conftest.in"
4256    cp "conftest.in" "conftest.nl"
4257    $as_echo 'EGREP' >> "conftest.nl"
4258    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4259    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4260    as_fn_arith $ac_count + 1 && ac_count=$as_val
4261    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4262      # Best one so far, save it but keep looking for a better one
4263      ac_cv_path_EGREP="$ac_path_EGREP"
4264      ac_path_EGREP_max=$ac_count
4265    fi
4266    # 10*(2^10) chars as input seems more than enough
4267    test $ac_count -gt 10 && break
4268  done
4269  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4270esac
4271
4272      $ac_path_EGREP_found && break 3
4273    done
4274  done
4275  done
4276IFS=$as_save_IFS
4277  if test -z "$ac_cv_path_EGREP"; then
4278    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4279  fi
4280else
4281  ac_cv_path_EGREP=$EGREP
4282fi
4283
4284   fi
4285fi
4286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4287$as_echo "$ac_cv_path_EGREP" >&6; }
4288 EGREP="$ac_cv_path_EGREP"
4289
4290
4291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4292$as_echo_n "checking for ANSI C header files... " >&6; }
4293if ${ac_cv_header_stdc+:} false; then :
4294  $as_echo_n "(cached) " >&6
4295else
4296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297/* end confdefs.h.  */
4298#include <stdlib.h>
4299#include <stdarg.h>
4300#include <string.h>
4301#include <float.h>
4302
4303int
4304main ()
4305{
4306
4307  ;
4308  return 0;
4309}
4310_ACEOF
4311if ac_fn_c_try_compile "$LINENO"; then :
4312  ac_cv_header_stdc=yes
4313else
4314  ac_cv_header_stdc=no
4315fi
4316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4317
4318if test $ac_cv_header_stdc = yes; then
4319  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4320  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4321/* end confdefs.h.  */
4322#include <string.h>
4323
4324_ACEOF
4325if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4326  $EGREP "memchr" >/dev/null 2>&1; then :
4327
4328else
4329  ac_cv_header_stdc=no
4330fi
4331rm -f conftest*
4332
4333fi
4334
4335if test $ac_cv_header_stdc = yes; then
4336  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4338/* end confdefs.h.  */
4339#include <stdlib.h>
4340
4341_ACEOF
4342if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4343  $EGREP "free" >/dev/null 2>&1; then :
4344
4345else
4346  ac_cv_header_stdc=no
4347fi
4348rm -f conftest*
4349
4350fi
4351
4352if test $ac_cv_header_stdc = yes; then
4353  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4354  if test "$cross_compiling" = yes; then :
4355  :
4356else
4357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4358/* end confdefs.h.  */
4359#include <ctype.h>
4360#include <stdlib.h>
4361#if ((' ' & 0x0FF) == 0x020)
4362# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4363# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4364#else
4365# define ISLOWER(c) \
4366		   (('a' <= (c) && (c) <= 'i') \
4367		     || ('j' <= (c) && (c) <= 'r') \
4368		     || ('s' <= (c) && (c) <= 'z'))
4369# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4370#endif
4371
4372#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4373int
4374main ()
4375{
4376  int i;
4377  for (i = 0; i < 256; i++)
4378    if (XOR (islower (i), ISLOWER (i))
4379	|| toupper (i) != TOUPPER (i))
4380      return 2;
4381  return 0;
4382}
4383_ACEOF
4384if ac_fn_c_try_run "$LINENO"; then :
4385
4386else
4387  ac_cv_header_stdc=no
4388fi
4389rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4390  conftest.$ac_objext conftest.beam conftest.$ac_ext
4391fi
4392
4393fi
4394fi
4395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4396$as_echo "$ac_cv_header_stdc" >&6; }
4397if test $ac_cv_header_stdc = yes; then
4398
4399$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4400
4401fi
4402
4403# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4404for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4405		  inttypes.h stdint.h unistd.h
4406do :
4407  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4408ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4409"
4410if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4411  cat >>confdefs.h <<_ACEOF
4412#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4413_ACEOF
4414
4415fi
4416
4417done
4418
4419
4420
4421
4422
4423
4424ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4425if test "x$ac_cv_have_decl___clang__" = xyes; then :
4426  CLANGCC="yes"
4427else
4428  CLANGCC="no"
4429fi
4430
4431ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4432if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4433  INTELCC="yes"
4434else
4435  INTELCC="no"
4436fi
4437
4438ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4439if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4440  SUNCC="yes"
4441else
4442  SUNCC="no"
4443fi
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4454	if test -n "$ac_tool_prefix"; then
4455  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4456set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4458$as_echo_n "checking for $ac_word... " >&6; }
4459if ${ac_cv_path_PKG_CONFIG+:} false; then :
4460  $as_echo_n "(cached) " >&6
4461else
4462  case $PKG_CONFIG in
4463  [\\/]* | ?:[\\/]*)
4464  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4465  ;;
4466  *)
4467  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468for as_dir in $PATH
4469do
4470  IFS=$as_save_IFS
4471  test -z "$as_dir" && as_dir=.
4472    for ac_exec_ext in '' $ac_executable_extensions; do
4473  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4474    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4475    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4476    break 2
4477  fi
4478done
4479  done
4480IFS=$as_save_IFS
4481
4482  ;;
4483esac
4484fi
4485PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4486if test -n "$PKG_CONFIG"; then
4487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4488$as_echo "$PKG_CONFIG" >&6; }
4489else
4490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4491$as_echo "no" >&6; }
4492fi
4493
4494
4495fi
4496if test -z "$ac_cv_path_PKG_CONFIG"; then
4497  ac_pt_PKG_CONFIG=$PKG_CONFIG
4498  # Extract the first word of "pkg-config", so it can be a program name with args.
4499set dummy pkg-config; ac_word=$2
4500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4501$as_echo_n "checking for $ac_word... " >&6; }
4502if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4503  $as_echo_n "(cached) " >&6
4504else
4505  case $ac_pt_PKG_CONFIG in
4506  [\\/]* | ?:[\\/]*)
4507  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4508  ;;
4509  *)
4510  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511for as_dir in $PATH
4512do
4513  IFS=$as_save_IFS
4514  test -z "$as_dir" && as_dir=.
4515    for ac_exec_ext in '' $ac_executable_extensions; do
4516  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4517    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4518    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4519    break 2
4520  fi
4521done
4522  done
4523IFS=$as_save_IFS
4524
4525  ;;
4526esac
4527fi
4528ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4529if test -n "$ac_pt_PKG_CONFIG"; then
4530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4531$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4532else
4533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4534$as_echo "no" >&6; }
4535fi
4536
4537  if test "x$ac_pt_PKG_CONFIG" = x; then
4538    PKG_CONFIG=""
4539  else
4540    case $cross_compiling:$ac_tool_warned in
4541yes:)
4542{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4543$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4544ac_tool_warned=yes ;;
4545esac
4546    PKG_CONFIG=$ac_pt_PKG_CONFIG
4547  fi
4548else
4549  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4550fi
4551
4552fi
4553if test -n "$PKG_CONFIG"; then
4554	_pkg_min_version=0.9.0
4555	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4556$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4557	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4558		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4559$as_echo "yes" >&6; }
4560	else
4561		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4562$as_echo "no" >&6; }
4563		PKG_CONFIG=""
4564	fi
4565fi
4566# Make sure we can run config.sub.
4567$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4568  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4569
4570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4571$as_echo_n "checking build system type... " >&6; }
4572if ${ac_cv_build+:} false; then :
4573  $as_echo_n "(cached) " >&6
4574else
4575  ac_build_alias=$build_alias
4576test "x$ac_build_alias" = x &&
4577  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4578test "x$ac_build_alias" = x &&
4579  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4580ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4581  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4582
4583fi
4584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4585$as_echo "$ac_cv_build" >&6; }
4586case $ac_cv_build in
4587*-*-*) ;;
4588*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4589esac
4590build=$ac_cv_build
4591ac_save_IFS=$IFS; IFS='-'
4592set x $ac_cv_build
4593shift
4594build_cpu=$1
4595build_vendor=$2
4596shift; shift
4597# Remember, the first character of IFS is used to create $*,
4598# except with old shells:
4599build_os=$*
4600IFS=$ac_save_IFS
4601case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4602
4603
4604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4605$as_echo_n "checking host system type... " >&6; }
4606if ${ac_cv_host+:} false; then :
4607  $as_echo_n "(cached) " >&6
4608else
4609  if test "x$host_alias" = x; then
4610  ac_cv_host=$ac_cv_build
4611else
4612  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4613    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4614fi
4615
4616fi
4617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4618$as_echo "$ac_cv_host" >&6; }
4619case $ac_cv_host in
4620*-*-*) ;;
4621*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4622esac
4623host=$ac_cv_host
4624ac_save_IFS=$IFS; IFS='-'
4625set x $ac_cv_host
4626shift
4627host_cpu=$1
4628host_vendor=$2
4629shift; shift
4630# Remember, the first character of IFS is used to create $*,
4631# except with old shells:
4632host_os=$*
4633IFS=$ac_save_IFS
4634case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4635
4636
4637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4638$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4639if ${ac_cv_path_SED+:} false; then :
4640  $as_echo_n "(cached) " >&6
4641else
4642            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4643     for ac_i in 1 2 3 4 5 6 7; do
4644       ac_script="$ac_script$as_nl$ac_script"
4645     done
4646     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4647     { ac_script=; unset ac_script;}
4648     if test -z "$SED"; then
4649  ac_path_SED_found=false
4650  # Loop through the user's path and test for each of PROGNAME-LIST
4651  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652for as_dir in $PATH
4653do
4654  IFS=$as_save_IFS
4655  test -z "$as_dir" && as_dir=.
4656    for ac_prog in sed gsed; do
4657    for ac_exec_ext in '' $ac_executable_extensions; do
4658      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4659      as_fn_executable_p "$ac_path_SED" || continue
4660# Check for GNU ac_path_SED and select it if it is found.
4661  # Check for GNU $ac_path_SED
4662case `"$ac_path_SED" --version 2>&1` in
4663*GNU*)
4664  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4665*)
4666  ac_count=0
4667  $as_echo_n 0123456789 >"conftest.in"
4668  while :
4669  do
4670    cat "conftest.in" "conftest.in" >"conftest.tmp"
4671    mv "conftest.tmp" "conftest.in"
4672    cp "conftest.in" "conftest.nl"
4673    $as_echo '' >> "conftest.nl"
4674    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4675    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4676    as_fn_arith $ac_count + 1 && ac_count=$as_val
4677    if test $ac_count -gt ${ac_path_SED_max-0}; then
4678      # Best one so far, save it but keep looking for a better one
4679      ac_cv_path_SED="$ac_path_SED"
4680      ac_path_SED_max=$ac_count
4681    fi
4682    # 10*(2^10) chars as input seems more than enough
4683    test $ac_count -gt 10 && break
4684  done
4685  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4686esac
4687
4688      $ac_path_SED_found && break 3
4689    done
4690  done
4691  done
4692IFS=$as_save_IFS
4693  if test -z "$ac_cv_path_SED"; then
4694    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4695  fi
4696else
4697  ac_cv_path_SED=$SED
4698fi
4699
4700fi
4701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4702$as_echo "$ac_cv_path_SED" >&6; }
4703 SED="$ac_cv_path_SED"
4704  rm -f conftest.sed
4705
4706
4707
4708
4709
4710
4711# Check whether --enable-selective-werror was given.
4712if test "${enable_selective_werror+set}" = set; then :
4713  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4714else
4715  SELECTIVE_WERROR=yes
4716fi
4717
4718
4719
4720
4721
4722# -v is too short to test reliably with XORG_TESTSET_CFLAG
4723if test "x$SUNCC" = "xyes"; then
4724    BASE_CFLAGS="-v"
4725else
4726    BASE_CFLAGS=""
4727fi
4728
4729# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743xorg_testset_save_CFLAGS="$CFLAGS"
4744
4745if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4746	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4747	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4748$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4749if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4750  $as_echo_n "(cached) " >&6
4751else
4752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4753/* end confdefs.h.  */
4754int i;
4755_ACEOF
4756if ac_fn_c_try_compile "$LINENO"; then :
4757  xorg_cv_cc_flag_unknown_warning_option=yes
4758else
4759  xorg_cv_cc_flag_unknown_warning_option=no
4760fi
4761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4762fi
4763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4764$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4765	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4766	CFLAGS="$xorg_testset_save_CFLAGS"
4767fi
4768
4769if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4770	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4771		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4772	fi
4773	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4774	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4775$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4776if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4777  $as_echo_n "(cached) " >&6
4778else
4779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780/* end confdefs.h.  */
4781int i;
4782_ACEOF
4783if ac_fn_c_try_compile "$LINENO"; then :
4784  xorg_cv_cc_flag_unused_command_line_argument=yes
4785else
4786  xorg_cv_cc_flag_unused_command_line_argument=no
4787fi
4788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4789fi
4790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4791$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4792	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4793	CFLAGS="$xorg_testset_save_CFLAGS"
4794fi
4795
4796found="no"
4797
4798	if test $found = "no" ; then
4799		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4800			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4801		fi
4802
4803		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4804			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4805		fi
4806
4807		CFLAGS="$CFLAGS -Wall"
4808
4809		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4810$as_echo_n "checking if $CC supports -Wall... " >&6; }
4811		cacheid=xorg_cv_cc_flag__Wall
4812		if eval \${$cacheid+:} false; then :
4813  $as_echo_n "(cached) " >&6
4814else
4815  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4816/* end confdefs.h.  */
4817int i;
4818int
4819main ()
4820{
4821
4822  ;
4823  return 0;
4824}
4825_ACEOF
4826if ac_fn_c_try_link "$LINENO"; then :
4827  eval $cacheid=yes
4828else
4829  eval $cacheid=no
4830fi
4831rm -f core conftest.err conftest.$ac_objext \
4832    conftest$ac_exeext conftest.$ac_ext
4833fi
4834
4835
4836		CFLAGS="$xorg_testset_save_CFLAGS"
4837
4838		eval supported=\$$cacheid
4839		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4840$as_echo "$supported" >&6; }
4841		if test "$supported" = "yes" ; then
4842			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4843			found="yes"
4844		fi
4845	fi
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861xorg_testset_save_CFLAGS="$CFLAGS"
4862
4863if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4864	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4865	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4866$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4867if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4868  $as_echo_n "(cached) " >&6
4869else
4870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4871/* end confdefs.h.  */
4872int i;
4873_ACEOF
4874if ac_fn_c_try_compile "$LINENO"; then :
4875  xorg_cv_cc_flag_unknown_warning_option=yes
4876else
4877  xorg_cv_cc_flag_unknown_warning_option=no
4878fi
4879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4880fi
4881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4882$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4883	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4884	CFLAGS="$xorg_testset_save_CFLAGS"
4885fi
4886
4887if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4888	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4889		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4890	fi
4891	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4892	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4893$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4894if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4895  $as_echo_n "(cached) " >&6
4896else
4897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4898/* end confdefs.h.  */
4899int i;
4900_ACEOF
4901if ac_fn_c_try_compile "$LINENO"; then :
4902  xorg_cv_cc_flag_unused_command_line_argument=yes
4903else
4904  xorg_cv_cc_flag_unused_command_line_argument=no
4905fi
4906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4907fi
4908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4909$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4910	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4911	CFLAGS="$xorg_testset_save_CFLAGS"
4912fi
4913
4914found="no"
4915
4916	if test $found = "no" ; then
4917		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4918			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4919		fi
4920
4921		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4922			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4923		fi
4924
4925		CFLAGS="$CFLAGS -Wpointer-arith"
4926
4927		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4928$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4929		cacheid=xorg_cv_cc_flag__Wpointer_arith
4930		if eval \${$cacheid+:} false; then :
4931  $as_echo_n "(cached) " >&6
4932else
4933  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4934/* end confdefs.h.  */
4935int i;
4936int
4937main ()
4938{
4939
4940  ;
4941  return 0;
4942}
4943_ACEOF
4944if ac_fn_c_try_link "$LINENO"; then :
4945  eval $cacheid=yes
4946else
4947  eval $cacheid=no
4948fi
4949rm -f core conftest.err conftest.$ac_objext \
4950    conftest$ac_exeext conftest.$ac_ext
4951fi
4952
4953
4954		CFLAGS="$xorg_testset_save_CFLAGS"
4955
4956		eval supported=\$$cacheid
4957		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4958$as_echo "$supported" >&6; }
4959		if test "$supported" = "yes" ; then
4960			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4961			found="yes"
4962		fi
4963	fi
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979xorg_testset_save_CFLAGS="$CFLAGS"
4980
4981if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4982	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4983	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4984$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4985if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4986  $as_echo_n "(cached) " >&6
4987else
4988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4989/* end confdefs.h.  */
4990int i;
4991_ACEOF
4992if ac_fn_c_try_compile "$LINENO"; then :
4993  xorg_cv_cc_flag_unknown_warning_option=yes
4994else
4995  xorg_cv_cc_flag_unknown_warning_option=no
4996fi
4997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4998fi
4999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5000$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5001	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5002	CFLAGS="$xorg_testset_save_CFLAGS"
5003fi
5004
5005if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5006	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5007		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5008	fi
5009	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5010	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5011$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5012if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5013  $as_echo_n "(cached) " >&6
5014else
5015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5016/* end confdefs.h.  */
5017int i;
5018_ACEOF
5019if ac_fn_c_try_compile "$LINENO"; then :
5020  xorg_cv_cc_flag_unused_command_line_argument=yes
5021else
5022  xorg_cv_cc_flag_unused_command_line_argument=no
5023fi
5024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5025fi
5026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5027$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5028	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5029	CFLAGS="$xorg_testset_save_CFLAGS"
5030fi
5031
5032found="no"
5033
5034	if test $found = "no" ; then
5035		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5036			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5037		fi
5038
5039		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5040			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5041		fi
5042
5043		CFLAGS="$CFLAGS -Wmissing-declarations"
5044
5045		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5046$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5047		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5048		if eval \${$cacheid+:} false; then :
5049  $as_echo_n "(cached) " >&6
5050else
5051  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5052/* end confdefs.h.  */
5053int i;
5054int
5055main ()
5056{
5057
5058  ;
5059  return 0;
5060}
5061_ACEOF
5062if ac_fn_c_try_link "$LINENO"; then :
5063  eval $cacheid=yes
5064else
5065  eval $cacheid=no
5066fi
5067rm -f core conftest.err conftest.$ac_objext \
5068    conftest$ac_exeext conftest.$ac_ext
5069fi
5070
5071
5072		CFLAGS="$xorg_testset_save_CFLAGS"
5073
5074		eval supported=\$$cacheid
5075		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5076$as_echo "$supported" >&6; }
5077		if test "$supported" = "yes" ; then
5078			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5079			found="yes"
5080		fi
5081	fi
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097xorg_testset_save_CFLAGS="$CFLAGS"
5098
5099if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5100	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5101	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5102$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5103if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5104  $as_echo_n "(cached) " >&6
5105else
5106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5107/* end confdefs.h.  */
5108int i;
5109_ACEOF
5110if ac_fn_c_try_compile "$LINENO"; then :
5111  xorg_cv_cc_flag_unknown_warning_option=yes
5112else
5113  xorg_cv_cc_flag_unknown_warning_option=no
5114fi
5115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5116fi
5117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5118$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5119	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5120	CFLAGS="$xorg_testset_save_CFLAGS"
5121fi
5122
5123if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5124	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5125		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5126	fi
5127	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5128	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5129$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5130if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5131  $as_echo_n "(cached) " >&6
5132else
5133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5134/* end confdefs.h.  */
5135int i;
5136_ACEOF
5137if ac_fn_c_try_compile "$LINENO"; then :
5138  xorg_cv_cc_flag_unused_command_line_argument=yes
5139else
5140  xorg_cv_cc_flag_unused_command_line_argument=no
5141fi
5142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5143fi
5144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5145$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5146	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5147	CFLAGS="$xorg_testset_save_CFLAGS"
5148fi
5149
5150found="no"
5151
5152	if test $found = "no" ; then
5153		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5154			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5155		fi
5156
5157		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5158			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5159		fi
5160
5161		CFLAGS="$CFLAGS -Wformat=2"
5162
5163		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5164$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5165		cacheid=xorg_cv_cc_flag__Wformat_2
5166		if eval \${$cacheid+:} false; then :
5167  $as_echo_n "(cached) " >&6
5168else
5169  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5170/* end confdefs.h.  */
5171int i;
5172int
5173main ()
5174{
5175
5176  ;
5177  return 0;
5178}
5179_ACEOF
5180if ac_fn_c_try_link "$LINENO"; then :
5181  eval $cacheid=yes
5182else
5183  eval $cacheid=no
5184fi
5185rm -f core conftest.err conftest.$ac_objext \
5186    conftest$ac_exeext conftest.$ac_ext
5187fi
5188
5189
5190		CFLAGS="$xorg_testset_save_CFLAGS"
5191
5192		eval supported=\$$cacheid
5193		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5194$as_echo "$supported" >&6; }
5195		if test "$supported" = "yes" ; then
5196			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5197			found="yes"
5198		fi
5199	fi
5200
5201	if test $found = "no" ; then
5202		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5203			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5204		fi
5205
5206		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5207			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5208		fi
5209
5210		CFLAGS="$CFLAGS -Wformat"
5211
5212		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5213$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5214		cacheid=xorg_cv_cc_flag__Wformat
5215		if eval \${$cacheid+:} false; then :
5216  $as_echo_n "(cached) " >&6
5217else
5218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5219/* end confdefs.h.  */
5220int i;
5221int
5222main ()
5223{
5224
5225  ;
5226  return 0;
5227}
5228_ACEOF
5229if ac_fn_c_try_link "$LINENO"; then :
5230  eval $cacheid=yes
5231else
5232  eval $cacheid=no
5233fi
5234rm -f core conftest.err conftest.$ac_objext \
5235    conftest$ac_exeext conftest.$ac_ext
5236fi
5237
5238
5239		CFLAGS="$xorg_testset_save_CFLAGS"
5240
5241		eval supported=\$$cacheid
5242		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5243$as_echo "$supported" >&6; }
5244		if test "$supported" = "yes" ; then
5245			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5246			found="yes"
5247		fi
5248	fi
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266xorg_testset_save_CFLAGS="$CFLAGS"
5267
5268if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5269	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5270	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5271$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5272if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5273  $as_echo_n "(cached) " >&6
5274else
5275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276/* end confdefs.h.  */
5277int i;
5278_ACEOF
5279if ac_fn_c_try_compile "$LINENO"; then :
5280  xorg_cv_cc_flag_unknown_warning_option=yes
5281else
5282  xorg_cv_cc_flag_unknown_warning_option=no
5283fi
5284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5285fi
5286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5287$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5288	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5289	CFLAGS="$xorg_testset_save_CFLAGS"
5290fi
5291
5292if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5293	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5294		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5295	fi
5296	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5297	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5298$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5299if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5300  $as_echo_n "(cached) " >&6
5301else
5302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5303/* end confdefs.h.  */
5304int i;
5305_ACEOF
5306if ac_fn_c_try_compile "$LINENO"; then :
5307  xorg_cv_cc_flag_unused_command_line_argument=yes
5308else
5309  xorg_cv_cc_flag_unused_command_line_argument=no
5310fi
5311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5312fi
5313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5314$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5315	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5316	CFLAGS="$xorg_testset_save_CFLAGS"
5317fi
5318
5319found="no"
5320
5321	if test $found = "no" ; then
5322		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5323			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5324		fi
5325
5326		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5327			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5328		fi
5329
5330		CFLAGS="$CFLAGS -Wstrict-prototypes"
5331
5332		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5333$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5334		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5335		if eval \${$cacheid+:} false; then :
5336  $as_echo_n "(cached) " >&6
5337else
5338  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5339/* end confdefs.h.  */
5340int i;
5341int
5342main ()
5343{
5344
5345  ;
5346  return 0;
5347}
5348_ACEOF
5349if ac_fn_c_try_link "$LINENO"; then :
5350  eval $cacheid=yes
5351else
5352  eval $cacheid=no
5353fi
5354rm -f core conftest.err conftest.$ac_objext \
5355    conftest$ac_exeext conftest.$ac_ext
5356fi
5357
5358
5359		CFLAGS="$xorg_testset_save_CFLAGS"
5360
5361		eval supported=\$$cacheid
5362		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5363$as_echo "$supported" >&6; }
5364		if test "$supported" = "yes" ; then
5365			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5366			found="yes"
5367		fi
5368	fi
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384xorg_testset_save_CFLAGS="$CFLAGS"
5385
5386if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5387	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5388	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5389$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5390if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5391  $as_echo_n "(cached) " >&6
5392else
5393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394/* end confdefs.h.  */
5395int i;
5396_ACEOF
5397if ac_fn_c_try_compile "$LINENO"; then :
5398  xorg_cv_cc_flag_unknown_warning_option=yes
5399else
5400  xorg_cv_cc_flag_unknown_warning_option=no
5401fi
5402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5403fi
5404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5405$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5406	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5407	CFLAGS="$xorg_testset_save_CFLAGS"
5408fi
5409
5410if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5411	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5412		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5413	fi
5414	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5415	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5416$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5417if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5418  $as_echo_n "(cached) " >&6
5419else
5420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5421/* end confdefs.h.  */
5422int i;
5423_ACEOF
5424if ac_fn_c_try_compile "$LINENO"; then :
5425  xorg_cv_cc_flag_unused_command_line_argument=yes
5426else
5427  xorg_cv_cc_flag_unused_command_line_argument=no
5428fi
5429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5430fi
5431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5432$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5433	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5434	CFLAGS="$xorg_testset_save_CFLAGS"
5435fi
5436
5437found="no"
5438
5439	if test $found = "no" ; then
5440		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5441			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5442		fi
5443
5444		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5445			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5446		fi
5447
5448		CFLAGS="$CFLAGS -Wmissing-prototypes"
5449
5450		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5451$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5452		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5453		if eval \${$cacheid+:} false; then :
5454  $as_echo_n "(cached) " >&6
5455else
5456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5457/* end confdefs.h.  */
5458int i;
5459int
5460main ()
5461{
5462
5463  ;
5464  return 0;
5465}
5466_ACEOF
5467if ac_fn_c_try_link "$LINENO"; then :
5468  eval $cacheid=yes
5469else
5470  eval $cacheid=no
5471fi
5472rm -f core conftest.err conftest.$ac_objext \
5473    conftest$ac_exeext conftest.$ac_ext
5474fi
5475
5476
5477		CFLAGS="$xorg_testset_save_CFLAGS"
5478
5479		eval supported=\$$cacheid
5480		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5481$as_echo "$supported" >&6; }
5482		if test "$supported" = "yes" ; then
5483			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5484			found="yes"
5485		fi
5486	fi
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502xorg_testset_save_CFLAGS="$CFLAGS"
5503
5504if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5505	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5506	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5507$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5508if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5509  $as_echo_n "(cached) " >&6
5510else
5511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5512/* end confdefs.h.  */
5513int i;
5514_ACEOF
5515if ac_fn_c_try_compile "$LINENO"; then :
5516  xorg_cv_cc_flag_unknown_warning_option=yes
5517else
5518  xorg_cv_cc_flag_unknown_warning_option=no
5519fi
5520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5521fi
5522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5523$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5524	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5525	CFLAGS="$xorg_testset_save_CFLAGS"
5526fi
5527
5528if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5529	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5530		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5531	fi
5532	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5533	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5534$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5535if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5536  $as_echo_n "(cached) " >&6
5537else
5538  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5539/* end confdefs.h.  */
5540int i;
5541_ACEOF
5542if ac_fn_c_try_compile "$LINENO"; then :
5543  xorg_cv_cc_flag_unused_command_line_argument=yes
5544else
5545  xorg_cv_cc_flag_unused_command_line_argument=no
5546fi
5547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5548fi
5549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5550$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5551	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5552	CFLAGS="$xorg_testset_save_CFLAGS"
5553fi
5554
5555found="no"
5556
5557	if test $found = "no" ; then
5558		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5559			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5560		fi
5561
5562		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5563			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5564		fi
5565
5566		CFLAGS="$CFLAGS -Wnested-externs"
5567
5568		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5569$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5570		cacheid=xorg_cv_cc_flag__Wnested_externs
5571		if eval \${$cacheid+:} false; then :
5572  $as_echo_n "(cached) " >&6
5573else
5574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5575/* end confdefs.h.  */
5576int i;
5577int
5578main ()
5579{
5580
5581  ;
5582  return 0;
5583}
5584_ACEOF
5585if ac_fn_c_try_link "$LINENO"; then :
5586  eval $cacheid=yes
5587else
5588  eval $cacheid=no
5589fi
5590rm -f core conftest.err conftest.$ac_objext \
5591    conftest$ac_exeext conftest.$ac_ext
5592fi
5593
5594
5595		CFLAGS="$xorg_testset_save_CFLAGS"
5596
5597		eval supported=\$$cacheid
5598		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5599$as_echo "$supported" >&6; }
5600		if test "$supported" = "yes" ; then
5601			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5602			found="yes"
5603		fi
5604	fi
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620xorg_testset_save_CFLAGS="$CFLAGS"
5621
5622if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5623	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5624	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5625$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5626if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5627  $as_echo_n "(cached) " >&6
5628else
5629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5630/* end confdefs.h.  */
5631int i;
5632_ACEOF
5633if ac_fn_c_try_compile "$LINENO"; then :
5634  xorg_cv_cc_flag_unknown_warning_option=yes
5635else
5636  xorg_cv_cc_flag_unknown_warning_option=no
5637fi
5638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5639fi
5640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5641$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5642	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5643	CFLAGS="$xorg_testset_save_CFLAGS"
5644fi
5645
5646if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5647	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5648		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5649	fi
5650	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5651	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5652$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5653if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5654  $as_echo_n "(cached) " >&6
5655else
5656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5657/* end confdefs.h.  */
5658int i;
5659_ACEOF
5660if ac_fn_c_try_compile "$LINENO"; then :
5661  xorg_cv_cc_flag_unused_command_line_argument=yes
5662else
5663  xorg_cv_cc_flag_unused_command_line_argument=no
5664fi
5665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5666fi
5667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5668$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5669	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5670	CFLAGS="$xorg_testset_save_CFLAGS"
5671fi
5672
5673found="no"
5674
5675	if test $found = "no" ; then
5676		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5677			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5678		fi
5679
5680		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5681			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5682		fi
5683
5684		CFLAGS="$CFLAGS -Wbad-function-cast"
5685
5686		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5687$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5688		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5689		if eval \${$cacheid+:} false; then :
5690  $as_echo_n "(cached) " >&6
5691else
5692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5693/* end confdefs.h.  */
5694int i;
5695int
5696main ()
5697{
5698
5699  ;
5700  return 0;
5701}
5702_ACEOF
5703if ac_fn_c_try_link "$LINENO"; then :
5704  eval $cacheid=yes
5705else
5706  eval $cacheid=no
5707fi
5708rm -f core conftest.err conftest.$ac_objext \
5709    conftest$ac_exeext conftest.$ac_ext
5710fi
5711
5712
5713		CFLAGS="$xorg_testset_save_CFLAGS"
5714
5715		eval supported=\$$cacheid
5716		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5717$as_echo "$supported" >&6; }
5718		if test "$supported" = "yes" ; then
5719			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5720			found="yes"
5721		fi
5722	fi
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738xorg_testset_save_CFLAGS="$CFLAGS"
5739
5740if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5741	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5742	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5743$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5744if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5745  $as_echo_n "(cached) " >&6
5746else
5747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5748/* end confdefs.h.  */
5749int i;
5750_ACEOF
5751if ac_fn_c_try_compile "$LINENO"; then :
5752  xorg_cv_cc_flag_unknown_warning_option=yes
5753else
5754  xorg_cv_cc_flag_unknown_warning_option=no
5755fi
5756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5757fi
5758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5759$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5760	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5761	CFLAGS="$xorg_testset_save_CFLAGS"
5762fi
5763
5764if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5765	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5766		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5767	fi
5768	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5769	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5770$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5771if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5772  $as_echo_n "(cached) " >&6
5773else
5774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5775/* end confdefs.h.  */
5776int i;
5777_ACEOF
5778if ac_fn_c_try_compile "$LINENO"; then :
5779  xorg_cv_cc_flag_unused_command_line_argument=yes
5780else
5781  xorg_cv_cc_flag_unused_command_line_argument=no
5782fi
5783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5784fi
5785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5786$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5787	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5788	CFLAGS="$xorg_testset_save_CFLAGS"
5789fi
5790
5791found="no"
5792
5793	if test $found = "no" ; then
5794		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5795			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5796		fi
5797
5798		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5799			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5800		fi
5801
5802		CFLAGS="$CFLAGS -Wold-style-definition"
5803
5804		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5805$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5806		cacheid=xorg_cv_cc_flag__Wold_style_definition
5807		if eval \${$cacheid+:} false; then :
5808  $as_echo_n "(cached) " >&6
5809else
5810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5811/* end confdefs.h.  */
5812int i;
5813int
5814main ()
5815{
5816
5817  ;
5818  return 0;
5819}
5820_ACEOF
5821if ac_fn_c_try_link "$LINENO"; then :
5822  eval $cacheid=yes
5823else
5824  eval $cacheid=no
5825fi
5826rm -f core conftest.err conftest.$ac_objext \
5827    conftest$ac_exeext conftest.$ac_ext
5828fi
5829
5830
5831		CFLAGS="$xorg_testset_save_CFLAGS"
5832
5833		eval supported=\$$cacheid
5834		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5835$as_echo "$supported" >&6; }
5836		if test "$supported" = "yes" ; then
5837			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5838			found="yes"
5839		fi
5840	fi
5841
5842	if test $found = "no" ; then
5843		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5844			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5845		fi
5846
5847		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5848			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5849		fi
5850
5851		CFLAGS="$CFLAGS -fd"
5852
5853		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5854$as_echo_n "checking if $CC supports -fd... " >&6; }
5855		cacheid=xorg_cv_cc_flag__fd
5856		if eval \${$cacheid+:} false; then :
5857  $as_echo_n "(cached) " >&6
5858else
5859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5860/* end confdefs.h.  */
5861int i;
5862int
5863main ()
5864{
5865
5866  ;
5867  return 0;
5868}
5869_ACEOF
5870if ac_fn_c_try_link "$LINENO"; then :
5871  eval $cacheid=yes
5872else
5873  eval $cacheid=no
5874fi
5875rm -f core conftest.err conftest.$ac_objext \
5876    conftest$ac_exeext conftest.$ac_ext
5877fi
5878
5879
5880		CFLAGS="$xorg_testset_save_CFLAGS"
5881
5882		eval supported=\$$cacheid
5883		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5884$as_echo "$supported" >&6; }
5885		if test "$supported" = "yes" ; then
5886			BASE_CFLAGS="$BASE_CFLAGS -fd"
5887			found="yes"
5888		fi
5889	fi
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905xorg_testset_save_CFLAGS="$CFLAGS"
5906
5907if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5908	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5909	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5910$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5911if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5912  $as_echo_n "(cached) " >&6
5913else
5914  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5915/* end confdefs.h.  */
5916int i;
5917_ACEOF
5918if ac_fn_c_try_compile "$LINENO"; then :
5919  xorg_cv_cc_flag_unknown_warning_option=yes
5920else
5921  xorg_cv_cc_flag_unknown_warning_option=no
5922fi
5923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5924fi
5925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5926$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5927	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5928	CFLAGS="$xorg_testset_save_CFLAGS"
5929fi
5930
5931if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5932	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5933		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5934	fi
5935	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5936	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5937$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5938if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5939  $as_echo_n "(cached) " >&6
5940else
5941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5942/* end confdefs.h.  */
5943int i;
5944_ACEOF
5945if ac_fn_c_try_compile "$LINENO"; then :
5946  xorg_cv_cc_flag_unused_command_line_argument=yes
5947else
5948  xorg_cv_cc_flag_unused_command_line_argument=no
5949fi
5950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5951fi
5952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5953$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5954	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5955	CFLAGS="$xorg_testset_save_CFLAGS"
5956fi
5957
5958found="no"
5959
5960	if test $found = "no" ; then
5961		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5962			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5963		fi
5964
5965		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5966			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5967		fi
5968
5969		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5970
5971		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5972$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5973		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5974		if eval \${$cacheid+:} false; then :
5975  $as_echo_n "(cached) " >&6
5976else
5977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5978/* end confdefs.h.  */
5979int i;
5980int
5981main ()
5982{
5983
5984  ;
5985  return 0;
5986}
5987_ACEOF
5988if ac_fn_c_try_link "$LINENO"; then :
5989  eval $cacheid=yes
5990else
5991  eval $cacheid=no
5992fi
5993rm -f core conftest.err conftest.$ac_objext \
5994    conftest$ac_exeext conftest.$ac_ext
5995fi
5996
5997
5998		CFLAGS="$xorg_testset_save_CFLAGS"
5999
6000		eval supported=\$$cacheid
6001		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6002$as_echo "$supported" >&6; }
6003		if test "$supported" = "yes" ; then
6004			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6005			found="yes"
6006		fi
6007	fi
6008
6009
6010
6011
6012
6013# This chunk adds additional warnings that could catch undesired effects.
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027xorg_testset_save_CFLAGS="$CFLAGS"
6028
6029if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6030	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6031	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6032$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6033if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6034  $as_echo_n "(cached) " >&6
6035else
6036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6037/* end confdefs.h.  */
6038int i;
6039_ACEOF
6040if ac_fn_c_try_compile "$LINENO"; then :
6041  xorg_cv_cc_flag_unknown_warning_option=yes
6042else
6043  xorg_cv_cc_flag_unknown_warning_option=no
6044fi
6045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6046fi
6047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6048$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6049	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6050	CFLAGS="$xorg_testset_save_CFLAGS"
6051fi
6052
6053if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6054	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6055		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6056	fi
6057	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6058	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6059$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6060if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6061  $as_echo_n "(cached) " >&6
6062else
6063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6064/* end confdefs.h.  */
6065int i;
6066_ACEOF
6067if ac_fn_c_try_compile "$LINENO"; then :
6068  xorg_cv_cc_flag_unused_command_line_argument=yes
6069else
6070  xorg_cv_cc_flag_unused_command_line_argument=no
6071fi
6072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6073fi
6074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6075$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6076	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6077	CFLAGS="$xorg_testset_save_CFLAGS"
6078fi
6079
6080found="no"
6081
6082	if test $found = "no" ; then
6083		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6084			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6085		fi
6086
6087		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6088			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6089		fi
6090
6091		CFLAGS="$CFLAGS -Wunused"
6092
6093		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6094$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6095		cacheid=xorg_cv_cc_flag__Wunused
6096		if eval \${$cacheid+:} false; then :
6097  $as_echo_n "(cached) " >&6
6098else
6099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6100/* end confdefs.h.  */
6101int i;
6102int
6103main ()
6104{
6105
6106  ;
6107  return 0;
6108}
6109_ACEOF
6110if ac_fn_c_try_link "$LINENO"; then :
6111  eval $cacheid=yes
6112else
6113  eval $cacheid=no
6114fi
6115rm -f core conftest.err conftest.$ac_objext \
6116    conftest$ac_exeext conftest.$ac_ext
6117fi
6118
6119
6120		CFLAGS="$xorg_testset_save_CFLAGS"
6121
6122		eval supported=\$$cacheid
6123		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6124$as_echo "$supported" >&6; }
6125		if test "$supported" = "yes" ; then
6126			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6127			found="yes"
6128		fi
6129	fi
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145xorg_testset_save_CFLAGS="$CFLAGS"
6146
6147if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6148	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6149	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6150$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6151if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6152  $as_echo_n "(cached) " >&6
6153else
6154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6155/* end confdefs.h.  */
6156int i;
6157_ACEOF
6158if ac_fn_c_try_compile "$LINENO"; then :
6159  xorg_cv_cc_flag_unknown_warning_option=yes
6160else
6161  xorg_cv_cc_flag_unknown_warning_option=no
6162fi
6163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6164fi
6165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6166$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6167	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6168	CFLAGS="$xorg_testset_save_CFLAGS"
6169fi
6170
6171if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6172	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6173		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6174	fi
6175	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6176	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6177$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6178if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6179  $as_echo_n "(cached) " >&6
6180else
6181  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6182/* end confdefs.h.  */
6183int i;
6184_ACEOF
6185if ac_fn_c_try_compile "$LINENO"; then :
6186  xorg_cv_cc_flag_unused_command_line_argument=yes
6187else
6188  xorg_cv_cc_flag_unused_command_line_argument=no
6189fi
6190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6191fi
6192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6193$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6194	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6195	CFLAGS="$xorg_testset_save_CFLAGS"
6196fi
6197
6198found="no"
6199
6200	if test $found = "no" ; then
6201		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6202			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6203		fi
6204
6205		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6206			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6207		fi
6208
6209		CFLAGS="$CFLAGS -Wuninitialized"
6210
6211		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6212$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6213		cacheid=xorg_cv_cc_flag__Wuninitialized
6214		if eval \${$cacheid+:} false; then :
6215  $as_echo_n "(cached) " >&6
6216else
6217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6218/* end confdefs.h.  */
6219int i;
6220int
6221main ()
6222{
6223
6224  ;
6225  return 0;
6226}
6227_ACEOF
6228if ac_fn_c_try_link "$LINENO"; then :
6229  eval $cacheid=yes
6230else
6231  eval $cacheid=no
6232fi
6233rm -f core conftest.err conftest.$ac_objext \
6234    conftest$ac_exeext conftest.$ac_ext
6235fi
6236
6237
6238		CFLAGS="$xorg_testset_save_CFLAGS"
6239
6240		eval supported=\$$cacheid
6241		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6242$as_echo "$supported" >&6; }
6243		if test "$supported" = "yes" ; then
6244			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6245			found="yes"
6246		fi
6247	fi
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263xorg_testset_save_CFLAGS="$CFLAGS"
6264
6265if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6266	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6267	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6268$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6269if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6270  $as_echo_n "(cached) " >&6
6271else
6272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6273/* end confdefs.h.  */
6274int i;
6275_ACEOF
6276if ac_fn_c_try_compile "$LINENO"; then :
6277  xorg_cv_cc_flag_unknown_warning_option=yes
6278else
6279  xorg_cv_cc_flag_unknown_warning_option=no
6280fi
6281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6282fi
6283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6284$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6285	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6286	CFLAGS="$xorg_testset_save_CFLAGS"
6287fi
6288
6289if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6290	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6291		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6292	fi
6293	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6294	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6295$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6296if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6297  $as_echo_n "(cached) " >&6
6298else
6299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6300/* end confdefs.h.  */
6301int i;
6302_ACEOF
6303if ac_fn_c_try_compile "$LINENO"; then :
6304  xorg_cv_cc_flag_unused_command_line_argument=yes
6305else
6306  xorg_cv_cc_flag_unused_command_line_argument=no
6307fi
6308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6309fi
6310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6311$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6312	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6313	CFLAGS="$xorg_testset_save_CFLAGS"
6314fi
6315
6316found="no"
6317
6318	if test $found = "no" ; then
6319		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6320			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6321		fi
6322
6323		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6324			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6325		fi
6326
6327		CFLAGS="$CFLAGS -Wshadow"
6328
6329		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6330$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6331		cacheid=xorg_cv_cc_flag__Wshadow
6332		if eval \${$cacheid+:} false; then :
6333  $as_echo_n "(cached) " >&6
6334else
6335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6336/* end confdefs.h.  */
6337int i;
6338int
6339main ()
6340{
6341
6342  ;
6343  return 0;
6344}
6345_ACEOF
6346if ac_fn_c_try_link "$LINENO"; then :
6347  eval $cacheid=yes
6348else
6349  eval $cacheid=no
6350fi
6351rm -f core conftest.err conftest.$ac_objext \
6352    conftest$ac_exeext conftest.$ac_ext
6353fi
6354
6355
6356		CFLAGS="$xorg_testset_save_CFLAGS"
6357
6358		eval supported=\$$cacheid
6359		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6360$as_echo "$supported" >&6; }
6361		if test "$supported" = "yes" ; then
6362			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6363			found="yes"
6364		fi
6365	fi
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381xorg_testset_save_CFLAGS="$CFLAGS"
6382
6383if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6384	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6385	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6386$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6387if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6388  $as_echo_n "(cached) " >&6
6389else
6390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6391/* end confdefs.h.  */
6392int i;
6393_ACEOF
6394if ac_fn_c_try_compile "$LINENO"; then :
6395  xorg_cv_cc_flag_unknown_warning_option=yes
6396else
6397  xorg_cv_cc_flag_unknown_warning_option=no
6398fi
6399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6400fi
6401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6402$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6403	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6404	CFLAGS="$xorg_testset_save_CFLAGS"
6405fi
6406
6407if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6408	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6409		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6410	fi
6411	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6412	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6413$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6414if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6415  $as_echo_n "(cached) " >&6
6416else
6417  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6418/* end confdefs.h.  */
6419int i;
6420_ACEOF
6421if ac_fn_c_try_compile "$LINENO"; then :
6422  xorg_cv_cc_flag_unused_command_line_argument=yes
6423else
6424  xorg_cv_cc_flag_unused_command_line_argument=no
6425fi
6426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6427fi
6428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6429$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6430	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6431	CFLAGS="$xorg_testset_save_CFLAGS"
6432fi
6433
6434found="no"
6435
6436	if test $found = "no" ; then
6437		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6438			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6439		fi
6440
6441		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6442			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6443		fi
6444
6445		CFLAGS="$CFLAGS -Wmissing-noreturn"
6446
6447		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6448$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6449		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6450		if eval \${$cacheid+:} false; then :
6451  $as_echo_n "(cached) " >&6
6452else
6453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6454/* end confdefs.h.  */
6455int i;
6456int
6457main ()
6458{
6459
6460  ;
6461  return 0;
6462}
6463_ACEOF
6464if ac_fn_c_try_link "$LINENO"; then :
6465  eval $cacheid=yes
6466else
6467  eval $cacheid=no
6468fi
6469rm -f core conftest.err conftest.$ac_objext \
6470    conftest$ac_exeext conftest.$ac_ext
6471fi
6472
6473
6474		CFLAGS="$xorg_testset_save_CFLAGS"
6475
6476		eval supported=\$$cacheid
6477		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6478$as_echo "$supported" >&6; }
6479		if test "$supported" = "yes" ; then
6480			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6481			found="yes"
6482		fi
6483	fi
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499xorg_testset_save_CFLAGS="$CFLAGS"
6500
6501if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6502	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6503	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6504$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6505if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6506  $as_echo_n "(cached) " >&6
6507else
6508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6509/* end confdefs.h.  */
6510int i;
6511_ACEOF
6512if ac_fn_c_try_compile "$LINENO"; then :
6513  xorg_cv_cc_flag_unknown_warning_option=yes
6514else
6515  xorg_cv_cc_flag_unknown_warning_option=no
6516fi
6517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6518fi
6519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6520$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6521	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6522	CFLAGS="$xorg_testset_save_CFLAGS"
6523fi
6524
6525if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6526	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6527		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6528	fi
6529	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6530	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6531$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6532if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6533  $as_echo_n "(cached) " >&6
6534else
6535  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6536/* end confdefs.h.  */
6537int i;
6538_ACEOF
6539if ac_fn_c_try_compile "$LINENO"; then :
6540  xorg_cv_cc_flag_unused_command_line_argument=yes
6541else
6542  xorg_cv_cc_flag_unused_command_line_argument=no
6543fi
6544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6545fi
6546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6547$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6548	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6549	CFLAGS="$xorg_testset_save_CFLAGS"
6550fi
6551
6552found="no"
6553
6554	if test $found = "no" ; then
6555		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6556			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6557		fi
6558
6559		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6560			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6561		fi
6562
6563		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6564
6565		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6566$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6567		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6568		if eval \${$cacheid+:} false; then :
6569  $as_echo_n "(cached) " >&6
6570else
6571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6572/* end confdefs.h.  */
6573int i;
6574int
6575main ()
6576{
6577
6578  ;
6579  return 0;
6580}
6581_ACEOF
6582if ac_fn_c_try_link "$LINENO"; then :
6583  eval $cacheid=yes
6584else
6585  eval $cacheid=no
6586fi
6587rm -f core conftest.err conftest.$ac_objext \
6588    conftest$ac_exeext conftest.$ac_ext
6589fi
6590
6591
6592		CFLAGS="$xorg_testset_save_CFLAGS"
6593
6594		eval supported=\$$cacheid
6595		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6596$as_echo "$supported" >&6; }
6597		if test "$supported" = "yes" ; then
6598			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6599			found="yes"
6600		fi
6601	fi
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617xorg_testset_save_CFLAGS="$CFLAGS"
6618
6619if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6620	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6621	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6622$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6623if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6624  $as_echo_n "(cached) " >&6
6625else
6626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6627/* end confdefs.h.  */
6628int i;
6629_ACEOF
6630if ac_fn_c_try_compile "$LINENO"; then :
6631  xorg_cv_cc_flag_unknown_warning_option=yes
6632else
6633  xorg_cv_cc_flag_unknown_warning_option=no
6634fi
6635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6636fi
6637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6638$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6639	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6640	CFLAGS="$xorg_testset_save_CFLAGS"
6641fi
6642
6643if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6644	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6645		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6646	fi
6647	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6648	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6649$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6650if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6651  $as_echo_n "(cached) " >&6
6652else
6653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6654/* end confdefs.h.  */
6655int i;
6656_ACEOF
6657if ac_fn_c_try_compile "$LINENO"; then :
6658  xorg_cv_cc_flag_unused_command_line_argument=yes
6659else
6660  xorg_cv_cc_flag_unused_command_line_argument=no
6661fi
6662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6663fi
6664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6665$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6666	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6667	CFLAGS="$xorg_testset_save_CFLAGS"
6668fi
6669
6670found="no"
6671
6672	if test $found = "no" ; then
6673		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6674			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6675		fi
6676
6677		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6678			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6679		fi
6680
6681		CFLAGS="$CFLAGS -Wredundant-decls"
6682
6683		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6684$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6685		cacheid=xorg_cv_cc_flag__Wredundant_decls
6686		if eval \${$cacheid+:} false; then :
6687  $as_echo_n "(cached) " >&6
6688else
6689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6690/* end confdefs.h.  */
6691int i;
6692int
6693main ()
6694{
6695
6696  ;
6697  return 0;
6698}
6699_ACEOF
6700if ac_fn_c_try_link "$LINENO"; then :
6701  eval $cacheid=yes
6702else
6703  eval $cacheid=no
6704fi
6705rm -f core conftest.err conftest.$ac_objext \
6706    conftest$ac_exeext conftest.$ac_ext
6707fi
6708
6709
6710		CFLAGS="$xorg_testset_save_CFLAGS"
6711
6712		eval supported=\$$cacheid
6713		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6714$as_echo "$supported" >&6; }
6715		if test "$supported" = "yes" ; then
6716			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6717			found="yes"
6718		fi
6719	fi
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735xorg_testset_save_CFLAGS="$CFLAGS"
6736
6737if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6738	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6739	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6740$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6741if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6742  $as_echo_n "(cached) " >&6
6743else
6744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6745/* end confdefs.h.  */
6746int i;
6747_ACEOF
6748if ac_fn_c_try_compile "$LINENO"; then :
6749  xorg_cv_cc_flag_unknown_warning_option=yes
6750else
6751  xorg_cv_cc_flag_unknown_warning_option=no
6752fi
6753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6754fi
6755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6756$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6757	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6758	CFLAGS="$xorg_testset_save_CFLAGS"
6759fi
6760
6761if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6762	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6763		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6764	fi
6765	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6766	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6767$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6768if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6769  $as_echo_n "(cached) " >&6
6770else
6771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6772/* end confdefs.h.  */
6773int i;
6774_ACEOF
6775if ac_fn_c_try_compile "$LINENO"; then :
6776  xorg_cv_cc_flag_unused_command_line_argument=yes
6777else
6778  xorg_cv_cc_flag_unused_command_line_argument=no
6779fi
6780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6781fi
6782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6783$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6784	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6785	CFLAGS="$xorg_testset_save_CFLAGS"
6786fi
6787
6788found="no"
6789
6790	if test $found = "no" ; then
6791		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6792			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6793		fi
6794
6795		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6796			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6797		fi
6798
6799		CFLAGS="$CFLAGS -Wlogical-op"
6800
6801		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6802$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6803		cacheid=xorg_cv_cc_flag__Wlogical_op
6804		if eval \${$cacheid+:} false; then :
6805  $as_echo_n "(cached) " >&6
6806else
6807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6808/* end confdefs.h.  */
6809int i;
6810int
6811main ()
6812{
6813
6814  ;
6815  return 0;
6816}
6817_ACEOF
6818if ac_fn_c_try_link "$LINENO"; then :
6819  eval $cacheid=yes
6820else
6821  eval $cacheid=no
6822fi
6823rm -f core conftest.err conftest.$ac_objext \
6824    conftest$ac_exeext conftest.$ac_ext
6825fi
6826
6827
6828		CFLAGS="$xorg_testset_save_CFLAGS"
6829
6830		eval supported=\$$cacheid
6831		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6832$as_echo "$supported" >&6; }
6833		if test "$supported" = "yes" ; then
6834			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6835			found="yes"
6836		fi
6837	fi
6838
6839
6840
6841# These are currently disabled because they are noisy.  They will be enabled
6842# in the future once the codebase is sufficiently modernized to silence
6843# them.  For now, I don't want them to drown out the other warnings.
6844# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6845# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6846# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6847
6848# Turn some warnings into errors, so we don't accidently get successful builds
6849# when there are problems that should be fixed.
6850
6851if test "x$SELECTIVE_WERROR" = "xyes" ; then
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865xorg_testset_save_CFLAGS="$CFLAGS"
6866
6867if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6868	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6869	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6870$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6871if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6872  $as_echo_n "(cached) " >&6
6873else
6874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6875/* end confdefs.h.  */
6876int i;
6877_ACEOF
6878if ac_fn_c_try_compile "$LINENO"; then :
6879  xorg_cv_cc_flag_unknown_warning_option=yes
6880else
6881  xorg_cv_cc_flag_unknown_warning_option=no
6882fi
6883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6884fi
6885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6886$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6887	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6888	CFLAGS="$xorg_testset_save_CFLAGS"
6889fi
6890
6891if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6892	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6893		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6894	fi
6895	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6896	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6897$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6898if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6899  $as_echo_n "(cached) " >&6
6900else
6901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6902/* end confdefs.h.  */
6903int i;
6904_ACEOF
6905if ac_fn_c_try_compile "$LINENO"; then :
6906  xorg_cv_cc_flag_unused_command_line_argument=yes
6907else
6908  xorg_cv_cc_flag_unused_command_line_argument=no
6909fi
6910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6911fi
6912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6913$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6914	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6915	CFLAGS="$xorg_testset_save_CFLAGS"
6916fi
6917
6918found="no"
6919
6920	if test $found = "no" ; then
6921		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6922			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6923		fi
6924
6925		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6926			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6927		fi
6928
6929		CFLAGS="$CFLAGS -Werror=implicit"
6930
6931		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6932$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6933		cacheid=xorg_cv_cc_flag__Werror_implicit
6934		if eval \${$cacheid+:} false; then :
6935  $as_echo_n "(cached) " >&6
6936else
6937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6938/* end confdefs.h.  */
6939int i;
6940int
6941main ()
6942{
6943
6944  ;
6945  return 0;
6946}
6947_ACEOF
6948if ac_fn_c_try_link "$LINENO"; then :
6949  eval $cacheid=yes
6950else
6951  eval $cacheid=no
6952fi
6953rm -f core conftest.err conftest.$ac_objext \
6954    conftest$ac_exeext conftest.$ac_ext
6955fi
6956
6957
6958		CFLAGS="$xorg_testset_save_CFLAGS"
6959
6960		eval supported=\$$cacheid
6961		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6962$as_echo "$supported" >&6; }
6963		if test "$supported" = "yes" ; then
6964			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6965			found="yes"
6966		fi
6967	fi
6968
6969	if test $found = "no" ; then
6970		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6971			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6972		fi
6973
6974		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6975			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6976		fi
6977
6978		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6979
6980		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6981$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6982		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
6983		if eval \${$cacheid+:} false; then :
6984  $as_echo_n "(cached) " >&6
6985else
6986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6987/* end confdefs.h.  */
6988int i;
6989int
6990main ()
6991{
6992
6993  ;
6994  return 0;
6995}
6996_ACEOF
6997if ac_fn_c_try_link "$LINENO"; then :
6998  eval $cacheid=yes
6999else
7000  eval $cacheid=no
7001fi
7002rm -f core conftest.err conftest.$ac_objext \
7003    conftest$ac_exeext conftest.$ac_ext
7004fi
7005
7006
7007		CFLAGS="$xorg_testset_save_CFLAGS"
7008
7009		eval supported=\$$cacheid
7010		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7011$as_echo "$supported" >&6; }
7012		if test "$supported" = "yes" ; then
7013			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7014			found="yes"
7015		fi
7016	fi
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032xorg_testset_save_CFLAGS="$CFLAGS"
7033
7034if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7035	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7036	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7037$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7038if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7039  $as_echo_n "(cached) " >&6
7040else
7041  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7042/* end confdefs.h.  */
7043int i;
7044_ACEOF
7045if ac_fn_c_try_compile "$LINENO"; then :
7046  xorg_cv_cc_flag_unknown_warning_option=yes
7047else
7048  xorg_cv_cc_flag_unknown_warning_option=no
7049fi
7050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7051fi
7052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7053$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7054	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7055	CFLAGS="$xorg_testset_save_CFLAGS"
7056fi
7057
7058if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7059	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7060		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7061	fi
7062	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7063	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7064$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7065if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7066  $as_echo_n "(cached) " >&6
7067else
7068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7069/* end confdefs.h.  */
7070int i;
7071_ACEOF
7072if ac_fn_c_try_compile "$LINENO"; then :
7073  xorg_cv_cc_flag_unused_command_line_argument=yes
7074else
7075  xorg_cv_cc_flag_unused_command_line_argument=no
7076fi
7077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7078fi
7079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7080$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7081	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7082	CFLAGS="$xorg_testset_save_CFLAGS"
7083fi
7084
7085found="no"
7086
7087	if test $found = "no" ; then
7088		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7089			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7090		fi
7091
7092		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7093			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7094		fi
7095
7096		CFLAGS="$CFLAGS -Werror=nonnull"
7097
7098		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7099$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7100		cacheid=xorg_cv_cc_flag__Werror_nonnull
7101		if eval \${$cacheid+:} false; then :
7102  $as_echo_n "(cached) " >&6
7103else
7104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7105/* end confdefs.h.  */
7106int i;
7107int
7108main ()
7109{
7110
7111  ;
7112  return 0;
7113}
7114_ACEOF
7115if ac_fn_c_try_link "$LINENO"; then :
7116  eval $cacheid=yes
7117else
7118  eval $cacheid=no
7119fi
7120rm -f core conftest.err conftest.$ac_objext \
7121    conftest$ac_exeext conftest.$ac_ext
7122fi
7123
7124
7125		CFLAGS="$xorg_testset_save_CFLAGS"
7126
7127		eval supported=\$$cacheid
7128		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7129$as_echo "$supported" >&6; }
7130		if test "$supported" = "yes" ; then
7131			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7132			found="yes"
7133		fi
7134	fi
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150xorg_testset_save_CFLAGS="$CFLAGS"
7151
7152if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7153	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7154	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7155$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7156if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7157  $as_echo_n "(cached) " >&6
7158else
7159  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7160/* end confdefs.h.  */
7161int i;
7162_ACEOF
7163if ac_fn_c_try_compile "$LINENO"; then :
7164  xorg_cv_cc_flag_unknown_warning_option=yes
7165else
7166  xorg_cv_cc_flag_unknown_warning_option=no
7167fi
7168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7169fi
7170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7171$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7172	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7173	CFLAGS="$xorg_testset_save_CFLAGS"
7174fi
7175
7176if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7177	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7178		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7179	fi
7180	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7181	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7182$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7183if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7184  $as_echo_n "(cached) " >&6
7185else
7186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7187/* end confdefs.h.  */
7188int i;
7189_ACEOF
7190if ac_fn_c_try_compile "$LINENO"; then :
7191  xorg_cv_cc_flag_unused_command_line_argument=yes
7192else
7193  xorg_cv_cc_flag_unused_command_line_argument=no
7194fi
7195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7196fi
7197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7198$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7199	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7200	CFLAGS="$xorg_testset_save_CFLAGS"
7201fi
7202
7203found="no"
7204
7205	if test $found = "no" ; then
7206		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7207			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7208		fi
7209
7210		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7211			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7212		fi
7213
7214		CFLAGS="$CFLAGS -Werror=init-self"
7215
7216		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7217$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7218		cacheid=xorg_cv_cc_flag__Werror_init_self
7219		if eval \${$cacheid+:} false; then :
7220  $as_echo_n "(cached) " >&6
7221else
7222  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7223/* end confdefs.h.  */
7224int i;
7225int
7226main ()
7227{
7228
7229  ;
7230  return 0;
7231}
7232_ACEOF
7233if ac_fn_c_try_link "$LINENO"; then :
7234  eval $cacheid=yes
7235else
7236  eval $cacheid=no
7237fi
7238rm -f core conftest.err conftest.$ac_objext \
7239    conftest$ac_exeext conftest.$ac_ext
7240fi
7241
7242
7243		CFLAGS="$xorg_testset_save_CFLAGS"
7244
7245		eval supported=\$$cacheid
7246		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7247$as_echo "$supported" >&6; }
7248		if test "$supported" = "yes" ; then
7249			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7250			found="yes"
7251		fi
7252	fi
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268xorg_testset_save_CFLAGS="$CFLAGS"
7269
7270if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7271	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7272	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7273$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7274if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7275  $as_echo_n "(cached) " >&6
7276else
7277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7278/* end confdefs.h.  */
7279int i;
7280_ACEOF
7281if ac_fn_c_try_compile "$LINENO"; then :
7282  xorg_cv_cc_flag_unknown_warning_option=yes
7283else
7284  xorg_cv_cc_flag_unknown_warning_option=no
7285fi
7286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7287fi
7288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7289$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7290	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7291	CFLAGS="$xorg_testset_save_CFLAGS"
7292fi
7293
7294if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7295	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7296		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7297	fi
7298	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7299	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7300$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7301if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7302  $as_echo_n "(cached) " >&6
7303else
7304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7305/* end confdefs.h.  */
7306int i;
7307_ACEOF
7308if ac_fn_c_try_compile "$LINENO"; then :
7309  xorg_cv_cc_flag_unused_command_line_argument=yes
7310else
7311  xorg_cv_cc_flag_unused_command_line_argument=no
7312fi
7313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7314fi
7315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7316$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7317	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7318	CFLAGS="$xorg_testset_save_CFLAGS"
7319fi
7320
7321found="no"
7322
7323	if test $found = "no" ; then
7324		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7325			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7326		fi
7327
7328		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7329			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7330		fi
7331
7332		CFLAGS="$CFLAGS -Werror=main"
7333
7334		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7335$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7336		cacheid=xorg_cv_cc_flag__Werror_main
7337		if eval \${$cacheid+:} false; then :
7338  $as_echo_n "(cached) " >&6
7339else
7340  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7341/* end confdefs.h.  */
7342int i;
7343int
7344main ()
7345{
7346
7347  ;
7348  return 0;
7349}
7350_ACEOF
7351if ac_fn_c_try_link "$LINENO"; then :
7352  eval $cacheid=yes
7353else
7354  eval $cacheid=no
7355fi
7356rm -f core conftest.err conftest.$ac_objext \
7357    conftest$ac_exeext conftest.$ac_ext
7358fi
7359
7360
7361		CFLAGS="$xorg_testset_save_CFLAGS"
7362
7363		eval supported=\$$cacheid
7364		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7365$as_echo "$supported" >&6; }
7366		if test "$supported" = "yes" ; then
7367			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7368			found="yes"
7369		fi
7370	fi
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386xorg_testset_save_CFLAGS="$CFLAGS"
7387
7388if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7389	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7390	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7391$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7392if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7393  $as_echo_n "(cached) " >&6
7394else
7395  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7396/* end confdefs.h.  */
7397int i;
7398_ACEOF
7399if ac_fn_c_try_compile "$LINENO"; then :
7400  xorg_cv_cc_flag_unknown_warning_option=yes
7401else
7402  xorg_cv_cc_flag_unknown_warning_option=no
7403fi
7404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7405fi
7406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7407$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7408	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7409	CFLAGS="$xorg_testset_save_CFLAGS"
7410fi
7411
7412if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7413	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7414		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7415	fi
7416	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7417	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7418$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7419if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7420  $as_echo_n "(cached) " >&6
7421else
7422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7423/* end confdefs.h.  */
7424int i;
7425_ACEOF
7426if ac_fn_c_try_compile "$LINENO"; then :
7427  xorg_cv_cc_flag_unused_command_line_argument=yes
7428else
7429  xorg_cv_cc_flag_unused_command_line_argument=no
7430fi
7431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7432fi
7433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7434$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7435	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7436	CFLAGS="$xorg_testset_save_CFLAGS"
7437fi
7438
7439found="no"
7440
7441	if test $found = "no" ; then
7442		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7443			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7444		fi
7445
7446		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7447			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7448		fi
7449
7450		CFLAGS="$CFLAGS -Werror=missing-braces"
7451
7452		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7453$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7454		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7455		if eval \${$cacheid+:} false; then :
7456  $as_echo_n "(cached) " >&6
7457else
7458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7459/* end confdefs.h.  */
7460int i;
7461int
7462main ()
7463{
7464
7465  ;
7466  return 0;
7467}
7468_ACEOF
7469if ac_fn_c_try_link "$LINENO"; then :
7470  eval $cacheid=yes
7471else
7472  eval $cacheid=no
7473fi
7474rm -f core conftest.err conftest.$ac_objext \
7475    conftest$ac_exeext conftest.$ac_ext
7476fi
7477
7478
7479		CFLAGS="$xorg_testset_save_CFLAGS"
7480
7481		eval supported=\$$cacheid
7482		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7483$as_echo "$supported" >&6; }
7484		if test "$supported" = "yes" ; then
7485			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7486			found="yes"
7487		fi
7488	fi
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504xorg_testset_save_CFLAGS="$CFLAGS"
7505
7506if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7507	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7508	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7509$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7510if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7511  $as_echo_n "(cached) " >&6
7512else
7513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7514/* end confdefs.h.  */
7515int i;
7516_ACEOF
7517if ac_fn_c_try_compile "$LINENO"; then :
7518  xorg_cv_cc_flag_unknown_warning_option=yes
7519else
7520  xorg_cv_cc_flag_unknown_warning_option=no
7521fi
7522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7523fi
7524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7525$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7526	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7527	CFLAGS="$xorg_testset_save_CFLAGS"
7528fi
7529
7530if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7531	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7532		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7533	fi
7534	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7535	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7536$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7537if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7538  $as_echo_n "(cached) " >&6
7539else
7540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7541/* end confdefs.h.  */
7542int i;
7543_ACEOF
7544if ac_fn_c_try_compile "$LINENO"; then :
7545  xorg_cv_cc_flag_unused_command_line_argument=yes
7546else
7547  xorg_cv_cc_flag_unused_command_line_argument=no
7548fi
7549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7550fi
7551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7552$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7553	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7554	CFLAGS="$xorg_testset_save_CFLAGS"
7555fi
7556
7557found="no"
7558
7559	if test $found = "no" ; then
7560		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7561			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7562		fi
7563
7564		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7565			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7566		fi
7567
7568		CFLAGS="$CFLAGS -Werror=sequence-point"
7569
7570		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7571$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7572		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7573		if eval \${$cacheid+:} false; then :
7574  $as_echo_n "(cached) " >&6
7575else
7576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7577/* end confdefs.h.  */
7578int i;
7579int
7580main ()
7581{
7582
7583  ;
7584  return 0;
7585}
7586_ACEOF
7587if ac_fn_c_try_link "$LINENO"; then :
7588  eval $cacheid=yes
7589else
7590  eval $cacheid=no
7591fi
7592rm -f core conftest.err conftest.$ac_objext \
7593    conftest$ac_exeext conftest.$ac_ext
7594fi
7595
7596
7597		CFLAGS="$xorg_testset_save_CFLAGS"
7598
7599		eval supported=\$$cacheid
7600		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7601$as_echo "$supported" >&6; }
7602		if test "$supported" = "yes" ; then
7603			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7604			found="yes"
7605		fi
7606	fi
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622xorg_testset_save_CFLAGS="$CFLAGS"
7623
7624if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7625	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7626	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7627$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7628if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7629  $as_echo_n "(cached) " >&6
7630else
7631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7632/* end confdefs.h.  */
7633int i;
7634_ACEOF
7635if ac_fn_c_try_compile "$LINENO"; then :
7636  xorg_cv_cc_flag_unknown_warning_option=yes
7637else
7638  xorg_cv_cc_flag_unknown_warning_option=no
7639fi
7640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7641fi
7642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7643$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7644	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7645	CFLAGS="$xorg_testset_save_CFLAGS"
7646fi
7647
7648if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7649	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7650		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7651	fi
7652	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7653	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7654$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7655if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7656  $as_echo_n "(cached) " >&6
7657else
7658  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7659/* end confdefs.h.  */
7660int i;
7661_ACEOF
7662if ac_fn_c_try_compile "$LINENO"; then :
7663  xorg_cv_cc_flag_unused_command_line_argument=yes
7664else
7665  xorg_cv_cc_flag_unused_command_line_argument=no
7666fi
7667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7668fi
7669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7670$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7671	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7672	CFLAGS="$xorg_testset_save_CFLAGS"
7673fi
7674
7675found="no"
7676
7677	if test $found = "no" ; then
7678		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7679			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7680		fi
7681
7682		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7683			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7684		fi
7685
7686		CFLAGS="$CFLAGS -Werror=return-type"
7687
7688		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7689$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7690		cacheid=xorg_cv_cc_flag__Werror_return_type
7691		if eval \${$cacheid+:} false; then :
7692  $as_echo_n "(cached) " >&6
7693else
7694  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7695/* end confdefs.h.  */
7696int i;
7697int
7698main ()
7699{
7700
7701  ;
7702  return 0;
7703}
7704_ACEOF
7705if ac_fn_c_try_link "$LINENO"; then :
7706  eval $cacheid=yes
7707else
7708  eval $cacheid=no
7709fi
7710rm -f core conftest.err conftest.$ac_objext \
7711    conftest$ac_exeext conftest.$ac_ext
7712fi
7713
7714
7715		CFLAGS="$xorg_testset_save_CFLAGS"
7716
7717		eval supported=\$$cacheid
7718		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7719$as_echo "$supported" >&6; }
7720		if test "$supported" = "yes" ; then
7721			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7722			found="yes"
7723		fi
7724	fi
7725
7726	if test $found = "no" ; then
7727		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7728			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7729		fi
7730
7731		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7732			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7733		fi
7734
7735		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7736
7737		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7738$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7739		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7740		if eval \${$cacheid+:} false; then :
7741  $as_echo_n "(cached) " >&6
7742else
7743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7744/* end confdefs.h.  */
7745int i;
7746int
7747main ()
7748{
7749
7750  ;
7751  return 0;
7752}
7753_ACEOF
7754if ac_fn_c_try_link "$LINENO"; then :
7755  eval $cacheid=yes
7756else
7757  eval $cacheid=no
7758fi
7759rm -f core conftest.err conftest.$ac_objext \
7760    conftest$ac_exeext conftest.$ac_ext
7761fi
7762
7763
7764		CFLAGS="$xorg_testset_save_CFLAGS"
7765
7766		eval supported=\$$cacheid
7767		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7768$as_echo "$supported" >&6; }
7769		if test "$supported" = "yes" ; then
7770			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7771			found="yes"
7772		fi
7773	fi
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789xorg_testset_save_CFLAGS="$CFLAGS"
7790
7791if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7792	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7793	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7794$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7795if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7796  $as_echo_n "(cached) " >&6
7797else
7798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7799/* end confdefs.h.  */
7800int i;
7801_ACEOF
7802if ac_fn_c_try_compile "$LINENO"; then :
7803  xorg_cv_cc_flag_unknown_warning_option=yes
7804else
7805  xorg_cv_cc_flag_unknown_warning_option=no
7806fi
7807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7808fi
7809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7810$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7811	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7812	CFLAGS="$xorg_testset_save_CFLAGS"
7813fi
7814
7815if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7816	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7817		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7818	fi
7819	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7820	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7821$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7822if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7823  $as_echo_n "(cached) " >&6
7824else
7825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7826/* end confdefs.h.  */
7827int i;
7828_ACEOF
7829if ac_fn_c_try_compile "$LINENO"; then :
7830  xorg_cv_cc_flag_unused_command_line_argument=yes
7831else
7832  xorg_cv_cc_flag_unused_command_line_argument=no
7833fi
7834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7835fi
7836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7837$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7838	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7839	CFLAGS="$xorg_testset_save_CFLAGS"
7840fi
7841
7842found="no"
7843
7844	if test $found = "no" ; then
7845		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7846			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7847		fi
7848
7849		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7850			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7851		fi
7852
7853		CFLAGS="$CFLAGS -Werror=trigraphs"
7854
7855		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7856$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7857		cacheid=xorg_cv_cc_flag__Werror_trigraphs
7858		if eval \${$cacheid+:} false; then :
7859  $as_echo_n "(cached) " >&6
7860else
7861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7862/* end confdefs.h.  */
7863int i;
7864int
7865main ()
7866{
7867
7868  ;
7869  return 0;
7870}
7871_ACEOF
7872if ac_fn_c_try_link "$LINENO"; then :
7873  eval $cacheid=yes
7874else
7875  eval $cacheid=no
7876fi
7877rm -f core conftest.err conftest.$ac_objext \
7878    conftest$ac_exeext conftest.$ac_ext
7879fi
7880
7881
7882		CFLAGS="$xorg_testset_save_CFLAGS"
7883
7884		eval supported=\$$cacheid
7885		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7886$as_echo "$supported" >&6; }
7887		if test "$supported" = "yes" ; then
7888			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7889			found="yes"
7890		fi
7891	fi
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907xorg_testset_save_CFLAGS="$CFLAGS"
7908
7909if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7910	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7911	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7912$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7913if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7914  $as_echo_n "(cached) " >&6
7915else
7916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7917/* end confdefs.h.  */
7918int i;
7919_ACEOF
7920if ac_fn_c_try_compile "$LINENO"; then :
7921  xorg_cv_cc_flag_unknown_warning_option=yes
7922else
7923  xorg_cv_cc_flag_unknown_warning_option=no
7924fi
7925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7926fi
7927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7928$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7929	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7930	CFLAGS="$xorg_testset_save_CFLAGS"
7931fi
7932
7933if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7934	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7935		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7936	fi
7937	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7938	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7939$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7940if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7941  $as_echo_n "(cached) " >&6
7942else
7943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7944/* end confdefs.h.  */
7945int i;
7946_ACEOF
7947if ac_fn_c_try_compile "$LINENO"; then :
7948  xorg_cv_cc_flag_unused_command_line_argument=yes
7949else
7950  xorg_cv_cc_flag_unused_command_line_argument=no
7951fi
7952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7953fi
7954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7955$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7956	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7957	CFLAGS="$xorg_testset_save_CFLAGS"
7958fi
7959
7960found="no"
7961
7962	if test $found = "no" ; then
7963		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7964			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7965		fi
7966
7967		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7968			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7969		fi
7970
7971		CFLAGS="$CFLAGS -Werror=array-bounds"
7972
7973		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7974$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7975		cacheid=xorg_cv_cc_flag__Werror_array_bounds
7976		if eval \${$cacheid+:} false; then :
7977  $as_echo_n "(cached) " >&6
7978else
7979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7980/* end confdefs.h.  */
7981int i;
7982int
7983main ()
7984{
7985
7986  ;
7987  return 0;
7988}
7989_ACEOF
7990if ac_fn_c_try_link "$LINENO"; then :
7991  eval $cacheid=yes
7992else
7993  eval $cacheid=no
7994fi
7995rm -f core conftest.err conftest.$ac_objext \
7996    conftest$ac_exeext conftest.$ac_ext
7997fi
7998
7999
8000		CFLAGS="$xorg_testset_save_CFLAGS"
8001
8002		eval supported=\$$cacheid
8003		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8004$as_echo "$supported" >&6; }
8005		if test "$supported" = "yes" ; then
8006			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8007			found="yes"
8008		fi
8009	fi
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025xorg_testset_save_CFLAGS="$CFLAGS"
8026
8027if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8028	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8029	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8030$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8031if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8032  $as_echo_n "(cached) " >&6
8033else
8034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8035/* end confdefs.h.  */
8036int i;
8037_ACEOF
8038if ac_fn_c_try_compile "$LINENO"; then :
8039  xorg_cv_cc_flag_unknown_warning_option=yes
8040else
8041  xorg_cv_cc_flag_unknown_warning_option=no
8042fi
8043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8044fi
8045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8046$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8047	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8048	CFLAGS="$xorg_testset_save_CFLAGS"
8049fi
8050
8051if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8052	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8053		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8054	fi
8055	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8056	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8057$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8058if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8059  $as_echo_n "(cached) " >&6
8060else
8061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8062/* end confdefs.h.  */
8063int i;
8064_ACEOF
8065if ac_fn_c_try_compile "$LINENO"; then :
8066  xorg_cv_cc_flag_unused_command_line_argument=yes
8067else
8068  xorg_cv_cc_flag_unused_command_line_argument=no
8069fi
8070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8071fi
8072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8073$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8074	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8075	CFLAGS="$xorg_testset_save_CFLAGS"
8076fi
8077
8078found="no"
8079
8080	if test $found = "no" ; then
8081		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8082			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8083		fi
8084
8085		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8086			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8087		fi
8088
8089		CFLAGS="$CFLAGS -Werror=write-strings"
8090
8091		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8092$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8093		cacheid=xorg_cv_cc_flag__Werror_write_strings
8094		if eval \${$cacheid+:} false; then :
8095  $as_echo_n "(cached) " >&6
8096else
8097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8098/* end confdefs.h.  */
8099int i;
8100int
8101main ()
8102{
8103
8104  ;
8105  return 0;
8106}
8107_ACEOF
8108if ac_fn_c_try_link "$LINENO"; then :
8109  eval $cacheid=yes
8110else
8111  eval $cacheid=no
8112fi
8113rm -f core conftest.err conftest.$ac_objext \
8114    conftest$ac_exeext conftest.$ac_ext
8115fi
8116
8117
8118		CFLAGS="$xorg_testset_save_CFLAGS"
8119
8120		eval supported=\$$cacheid
8121		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8122$as_echo "$supported" >&6; }
8123		if test "$supported" = "yes" ; then
8124			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8125			found="yes"
8126		fi
8127	fi
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143xorg_testset_save_CFLAGS="$CFLAGS"
8144
8145if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8146	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8147	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8148$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8149if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8150  $as_echo_n "(cached) " >&6
8151else
8152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8153/* end confdefs.h.  */
8154int i;
8155_ACEOF
8156if ac_fn_c_try_compile "$LINENO"; then :
8157  xorg_cv_cc_flag_unknown_warning_option=yes
8158else
8159  xorg_cv_cc_flag_unknown_warning_option=no
8160fi
8161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8162fi
8163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8164$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8165	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8166	CFLAGS="$xorg_testset_save_CFLAGS"
8167fi
8168
8169if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8170	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8171		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8172	fi
8173	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8174	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8175$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8176if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8177  $as_echo_n "(cached) " >&6
8178else
8179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8180/* end confdefs.h.  */
8181int i;
8182_ACEOF
8183if ac_fn_c_try_compile "$LINENO"; then :
8184  xorg_cv_cc_flag_unused_command_line_argument=yes
8185else
8186  xorg_cv_cc_flag_unused_command_line_argument=no
8187fi
8188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8189fi
8190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8191$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8192	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8193	CFLAGS="$xorg_testset_save_CFLAGS"
8194fi
8195
8196found="no"
8197
8198	if test $found = "no" ; then
8199		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8200			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8201		fi
8202
8203		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8204			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8205		fi
8206
8207		CFLAGS="$CFLAGS -Werror=address"
8208
8209		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8210$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8211		cacheid=xorg_cv_cc_flag__Werror_address
8212		if eval \${$cacheid+:} false; then :
8213  $as_echo_n "(cached) " >&6
8214else
8215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8216/* end confdefs.h.  */
8217int i;
8218int
8219main ()
8220{
8221
8222  ;
8223  return 0;
8224}
8225_ACEOF
8226if ac_fn_c_try_link "$LINENO"; then :
8227  eval $cacheid=yes
8228else
8229  eval $cacheid=no
8230fi
8231rm -f core conftest.err conftest.$ac_objext \
8232    conftest$ac_exeext conftest.$ac_ext
8233fi
8234
8235
8236		CFLAGS="$xorg_testset_save_CFLAGS"
8237
8238		eval supported=\$$cacheid
8239		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8240$as_echo "$supported" >&6; }
8241		if test "$supported" = "yes" ; then
8242			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8243			found="yes"
8244		fi
8245	fi
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261xorg_testset_save_CFLAGS="$CFLAGS"
8262
8263if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8264	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8265	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8266$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8267if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8268  $as_echo_n "(cached) " >&6
8269else
8270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8271/* end confdefs.h.  */
8272int i;
8273_ACEOF
8274if ac_fn_c_try_compile "$LINENO"; then :
8275  xorg_cv_cc_flag_unknown_warning_option=yes
8276else
8277  xorg_cv_cc_flag_unknown_warning_option=no
8278fi
8279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8280fi
8281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8282$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8283	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8284	CFLAGS="$xorg_testset_save_CFLAGS"
8285fi
8286
8287if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8288	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8289		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8290	fi
8291	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8292	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8293$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8294if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8295  $as_echo_n "(cached) " >&6
8296else
8297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8298/* end confdefs.h.  */
8299int i;
8300_ACEOF
8301if ac_fn_c_try_compile "$LINENO"; then :
8302  xorg_cv_cc_flag_unused_command_line_argument=yes
8303else
8304  xorg_cv_cc_flag_unused_command_line_argument=no
8305fi
8306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8307fi
8308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8309$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8310	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8311	CFLAGS="$xorg_testset_save_CFLAGS"
8312fi
8313
8314found="no"
8315
8316	if test $found = "no" ; then
8317		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8318			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8319		fi
8320
8321		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8322			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8323		fi
8324
8325		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8326
8327		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8328$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8329		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8330		if eval \${$cacheid+:} false; then :
8331  $as_echo_n "(cached) " >&6
8332else
8333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8334/* end confdefs.h.  */
8335int i;
8336int
8337main ()
8338{
8339
8340  ;
8341  return 0;
8342}
8343_ACEOF
8344if ac_fn_c_try_link "$LINENO"; then :
8345  eval $cacheid=yes
8346else
8347  eval $cacheid=no
8348fi
8349rm -f core conftest.err conftest.$ac_objext \
8350    conftest$ac_exeext conftest.$ac_ext
8351fi
8352
8353
8354		CFLAGS="$xorg_testset_save_CFLAGS"
8355
8356		eval supported=\$$cacheid
8357		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8358$as_echo "$supported" >&6; }
8359		if test "$supported" = "yes" ; then
8360			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8361			found="yes"
8362		fi
8363	fi
8364
8365	if test $found = "no" ; then
8366		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8367			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8368		fi
8369
8370		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8371			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8372		fi
8373
8374		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8375
8376		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8377$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8378		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8379		if eval \${$cacheid+:} false; then :
8380  $as_echo_n "(cached) " >&6
8381else
8382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8383/* end confdefs.h.  */
8384int i;
8385int
8386main ()
8387{
8388
8389  ;
8390  return 0;
8391}
8392_ACEOF
8393if ac_fn_c_try_link "$LINENO"; then :
8394  eval $cacheid=yes
8395else
8396  eval $cacheid=no
8397fi
8398rm -f core conftest.err conftest.$ac_objext \
8399    conftest$ac_exeext conftest.$ac_ext
8400fi
8401
8402
8403		CFLAGS="$xorg_testset_save_CFLAGS"
8404
8405		eval supported=\$$cacheid
8406		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8407$as_echo "$supported" >&6; }
8408		if test "$supported" = "yes" ; then
8409			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8410			found="yes"
8411		fi
8412	fi
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428xorg_testset_save_CFLAGS="$CFLAGS"
8429
8430if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8431	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8432	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8433$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8434if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8435  $as_echo_n "(cached) " >&6
8436else
8437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8438/* end confdefs.h.  */
8439int i;
8440_ACEOF
8441if ac_fn_c_try_compile "$LINENO"; then :
8442  xorg_cv_cc_flag_unknown_warning_option=yes
8443else
8444  xorg_cv_cc_flag_unknown_warning_option=no
8445fi
8446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8447fi
8448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8449$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8450	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8451	CFLAGS="$xorg_testset_save_CFLAGS"
8452fi
8453
8454if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8455	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8456		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8457	fi
8458	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8459	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8460$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8461if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8462  $as_echo_n "(cached) " >&6
8463else
8464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8465/* end confdefs.h.  */
8466int i;
8467_ACEOF
8468if ac_fn_c_try_compile "$LINENO"; then :
8469  xorg_cv_cc_flag_unused_command_line_argument=yes
8470else
8471  xorg_cv_cc_flag_unused_command_line_argument=no
8472fi
8473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8474fi
8475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8476$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8477	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8478	CFLAGS="$xorg_testset_save_CFLAGS"
8479fi
8480
8481found="no"
8482
8483	if test $found = "no" ; then
8484		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8485			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8486		fi
8487
8488		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8489			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8490		fi
8491
8492		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8493
8494		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8495$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8496		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8497		if eval \${$cacheid+:} false; then :
8498  $as_echo_n "(cached) " >&6
8499else
8500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8501/* end confdefs.h.  */
8502int i;
8503int
8504main ()
8505{
8506
8507  ;
8508  return 0;
8509}
8510_ACEOF
8511if ac_fn_c_try_link "$LINENO"; then :
8512  eval $cacheid=yes
8513else
8514  eval $cacheid=no
8515fi
8516rm -f core conftest.err conftest.$ac_objext \
8517    conftest$ac_exeext conftest.$ac_ext
8518fi
8519
8520
8521		CFLAGS="$xorg_testset_save_CFLAGS"
8522
8523		eval supported=\$$cacheid
8524		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8525$as_echo "$supported" >&6; }
8526		if test "$supported" = "yes" ; then
8527			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8528			found="yes"
8529		fi
8530	fi
8531
8532 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8533else
8534{ $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
8535$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;}
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549xorg_testset_save_CFLAGS="$CFLAGS"
8550
8551if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8552	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8553	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8554$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8555if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8556  $as_echo_n "(cached) " >&6
8557else
8558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8559/* end confdefs.h.  */
8560int i;
8561_ACEOF
8562if ac_fn_c_try_compile "$LINENO"; then :
8563  xorg_cv_cc_flag_unknown_warning_option=yes
8564else
8565  xorg_cv_cc_flag_unknown_warning_option=no
8566fi
8567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8568fi
8569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8570$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8571	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8572	CFLAGS="$xorg_testset_save_CFLAGS"
8573fi
8574
8575if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8576	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8577		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8578	fi
8579	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8580	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8581$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8582if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8583  $as_echo_n "(cached) " >&6
8584else
8585  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8586/* end confdefs.h.  */
8587int i;
8588_ACEOF
8589if ac_fn_c_try_compile "$LINENO"; then :
8590  xorg_cv_cc_flag_unused_command_line_argument=yes
8591else
8592  xorg_cv_cc_flag_unused_command_line_argument=no
8593fi
8594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8595fi
8596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8597$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8598	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8599	CFLAGS="$xorg_testset_save_CFLAGS"
8600fi
8601
8602found="no"
8603
8604	if test $found = "no" ; then
8605		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8606			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8607		fi
8608
8609		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8610			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8611		fi
8612
8613		CFLAGS="$CFLAGS -Wimplicit"
8614
8615		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8616$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8617		cacheid=xorg_cv_cc_flag__Wimplicit
8618		if eval \${$cacheid+:} false; then :
8619  $as_echo_n "(cached) " >&6
8620else
8621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8622/* end confdefs.h.  */
8623int i;
8624int
8625main ()
8626{
8627
8628  ;
8629  return 0;
8630}
8631_ACEOF
8632if ac_fn_c_try_link "$LINENO"; then :
8633  eval $cacheid=yes
8634else
8635  eval $cacheid=no
8636fi
8637rm -f core conftest.err conftest.$ac_objext \
8638    conftest$ac_exeext conftest.$ac_ext
8639fi
8640
8641
8642		CFLAGS="$xorg_testset_save_CFLAGS"
8643
8644		eval supported=\$$cacheid
8645		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8646$as_echo "$supported" >&6; }
8647		if test "$supported" = "yes" ; then
8648			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8649			found="yes"
8650		fi
8651	fi
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667xorg_testset_save_CFLAGS="$CFLAGS"
8668
8669if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8670	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8671	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8672$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8673if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8674  $as_echo_n "(cached) " >&6
8675else
8676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8677/* end confdefs.h.  */
8678int i;
8679_ACEOF
8680if ac_fn_c_try_compile "$LINENO"; then :
8681  xorg_cv_cc_flag_unknown_warning_option=yes
8682else
8683  xorg_cv_cc_flag_unknown_warning_option=no
8684fi
8685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8686fi
8687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8688$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8689	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8690	CFLAGS="$xorg_testset_save_CFLAGS"
8691fi
8692
8693if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8694	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8695		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8696	fi
8697	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8698	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8699$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8700if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8701  $as_echo_n "(cached) " >&6
8702else
8703  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8704/* end confdefs.h.  */
8705int i;
8706_ACEOF
8707if ac_fn_c_try_compile "$LINENO"; then :
8708  xorg_cv_cc_flag_unused_command_line_argument=yes
8709else
8710  xorg_cv_cc_flag_unused_command_line_argument=no
8711fi
8712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8713fi
8714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8715$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8716	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8717	CFLAGS="$xorg_testset_save_CFLAGS"
8718fi
8719
8720found="no"
8721
8722	if test $found = "no" ; then
8723		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8724			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8725		fi
8726
8727		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8728			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8729		fi
8730
8731		CFLAGS="$CFLAGS -Wnonnull"
8732
8733		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8734$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8735		cacheid=xorg_cv_cc_flag__Wnonnull
8736		if eval \${$cacheid+:} false; then :
8737  $as_echo_n "(cached) " >&6
8738else
8739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8740/* end confdefs.h.  */
8741int i;
8742int
8743main ()
8744{
8745
8746  ;
8747  return 0;
8748}
8749_ACEOF
8750if ac_fn_c_try_link "$LINENO"; then :
8751  eval $cacheid=yes
8752else
8753  eval $cacheid=no
8754fi
8755rm -f core conftest.err conftest.$ac_objext \
8756    conftest$ac_exeext conftest.$ac_ext
8757fi
8758
8759
8760		CFLAGS="$xorg_testset_save_CFLAGS"
8761
8762		eval supported=\$$cacheid
8763		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8764$as_echo "$supported" >&6; }
8765		if test "$supported" = "yes" ; then
8766			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8767			found="yes"
8768		fi
8769	fi
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785xorg_testset_save_CFLAGS="$CFLAGS"
8786
8787if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8788	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8789	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8790$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8791if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8792  $as_echo_n "(cached) " >&6
8793else
8794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8795/* end confdefs.h.  */
8796int i;
8797_ACEOF
8798if ac_fn_c_try_compile "$LINENO"; then :
8799  xorg_cv_cc_flag_unknown_warning_option=yes
8800else
8801  xorg_cv_cc_flag_unknown_warning_option=no
8802fi
8803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8804fi
8805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8806$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8807	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8808	CFLAGS="$xorg_testset_save_CFLAGS"
8809fi
8810
8811if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8812	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8813		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8814	fi
8815	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8816	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8817$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8818if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8819  $as_echo_n "(cached) " >&6
8820else
8821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8822/* end confdefs.h.  */
8823int i;
8824_ACEOF
8825if ac_fn_c_try_compile "$LINENO"; then :
8826  xorg_cv_cc_flag_unused_command_line_argument=yes
8827else
8828  xorg_cv_cc_flag_unused_command_line_argument=no
8829fi
8830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8831fi
8832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8833$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8834	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8835	CFLAGS="$xorg_testset_save_CFLAGS"
8836fi
8837
8838found="no"
8839
8840	if test $found = "no" ; then
8841		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8842			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8843		fi
8844
8845		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8846			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8847		fi
8848
8849		CFLAGS="$CFLAGS -Winit-self"
8850
8851		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8852$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8853		cacheid=xorg_cv_cc_flag__Winit_self
8854		if eval \${$cacheid+:} false; then :
8855  $as_echo_n "(cached) " >&6
8856else
8857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8858/* end confdefs.h.  */
8859int i;
8860int
8861main ()
8862{
8863
8864  ;
8865  return 0;
8866}
8867_ACEOF
8868if ac_fn_c_try_link "$LINENO"; then :
8869  eval $cacheid=yes
8870else
8871  eval $cacheid=no
8872fi
8873rm -f core conftest.err conftest.$ac_objext \
8874    conftest$ac_exeext conftest.$ac_ext
8875fi
8876
8877
8878		CFLAGS="$xorg_testset_save_CFLAGS"
8879
8880		eval supported=\$$cacheid
8881		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8882$as_echo "$supported" >&6; }
8883		if test "$supported" = "yes" ; then
8884			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8885			found="yes"
8886		fi
8887	fi
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903xorg_testset_save_CFLAGS="$CFLAGS"
8904
8905if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8906	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8907	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8908$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8909if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8910  $as_echo_n "(cached) " >&6
8911else
8912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8913/* end confdefs.h.  */
8914int i;
8915_ACEOF
8916if ac_fn_c_try_compile "$LINENO"; then :
8917  xorg_cv_cc_flag_unknown_warning_option=yes
8918else
8919  xorg_cv_cc_flag_unknown_warning_option=no
8920fi
8921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8922fi
8923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8924$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8925	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8926	CFLAGS="$xorg_testset_save_CFLAGS"
8927fi
8928
8929if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8930	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8931		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8932	fi
8933	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8934	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8935$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8936if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8937  $as_echo_n "(cached) " >&6
8938else
8939  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8940/* end confdefs.h.  */
8941int i;
8942_ACEOF
8943if ac_fn_c_try_compile "$LINENO"; then :
8944  xorg_cv_cc_flag_unused_command_line_argument=yes
8945else
8946  xorg_cv_cc_flag_unused_command_line_argument=no
8947fi
8948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8949fi
8950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8951$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8952	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8953	CFLAGS="$xorg_testset_save_CFLAGS"
8954fi
8955
8956found="no"
8957
8958	if test $found = "no" ; then
8959		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8960			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8961		fi
8962
8963		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8964			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8965		fi
8966
8967		CFLAGS="$CFLAGS -Wmain"
8968
8969		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8970$as_echo_n "checking if $CC supports -Wmain... " >&6; }
8971		cacheid=xorg_cv_cc_flag__Wmain
8972		if eval \${$cacheid+:} false; then :
8973  $as_echo_n "(cached) " >&6
8974else
8975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8976/* end confdefs.h.  */
8977int i;
8978int
8979main ()
8980{
8981
8982  ;
8983  return 0;
8984}
8985_ACEOF
8986if ac_fn_c_try_link "$LINENO"; then :
8987  eval $cacheid=yes
8988else
8989  eval $cacheid=no
8990fi
8991rm -f core conftest.err conftest.$ac_objext \
8992    conftest$ac_exeext conftest.$ac_ext
8993fi
8994
8995
8996		CFLAGS="$xorg_testset_save_CFLAGS"
8997
8998		eval supported=\$$cacheid
8999		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9000$as_echo "$supported" >&6; }
9001		if test "$supported" = "yes" ; then
9002			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9003			found="yes"
9004		fi
9005	fi
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021xorg_testset_save_CFLAGS="$CFLAGS"
9022
9023if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9024	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9025	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9026$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9027if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9028  $as_echo_n "(cached) " >&6
9029else
9030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9031/* end confdefs.h.  */
9032int i;
9033_ACEOF
9034if ac_fn_c_try_compile "$LINENO"; then :
9035  xorg_cv_cc_flag_unknown_warning_option=yes
9036else
9037  xorg_cv_cc_flag_unknown_warning_option=no
9038fi
9039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9040fi
9041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9042$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9043	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9044	CFLAGS="$xorg_testset_save_CFLAGS"
9045fi
9046
9047if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9048	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9049		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9050	fi
9051	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9052	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9053$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9054if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9055  $as_echo_n "(cached) " >&6
9056else
9057  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9058/* end confdefs.h.  */
9059int i;
9060_ACEOF
9061if ac_fn_c_try_compile "$LINENO"; then :
9062  xorg_cv_cc_flag_unused_command_line_argument=yes
9063else
9064  xorg_cv_cc_flag_unused_command_line_argument=no
9065fi
9066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9067fi
9068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9069$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9070	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9071	CFLAGS="$xorg_testset_save_CFLAGS"
9072fi
9073
9074found="no"
9075
9076	if test $found = "no" ; then
9077		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9078			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9079		fi
9080
9081		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9082			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9083		fi
9084
9085		CFLAGS="$CFLAGS -Wmissing-braces"
9086
9087		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9088$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9089		cacheid=xorg_cv_cc_flag__Wmissing_braces
9090		if eval \${$cacheid+:} false; then :
9091  $as_echo_n "(cached) " >&6
9092else
9093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9094/* end confdefs.h.  */
9095int i;
9096int
9097main ()
9098{
9099
9100  ;
9101  return 0;
9102}
9103_ACEOF
9104if ac_fn_c_try_link "$LINENO"; then :
9105  eval $cacheid=yes
9106else
9107  eval $cacheid=no
9108fi
9109rm -f core conftest.err conftest.$ac_objext \
9110    conftest$ac_exeext conftest.$ac_ext
9111fi
9112
9113
9114		CFLAGS="$xorg_testset_save_CFLAGS"
9115
9116		eval supported=\$$cacheid
9117		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9118$as_echo "$supported" >&6; }
9119		if test "$supported" = "yes" ; then
9120			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9121			found="yes"
9122		fi
9123	fi
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139xorg_testset_save_CFLAGS="$CFLAGS"
9140
9141if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9142	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9143	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9144$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9145if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9146  $as_echo_n "(cached) " >&6
9147else
9148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9149/* end confdefs.h.  */
9150int i;
9151_ACEOF
9152if ac_fn_c_try_compile "$LINENO"; then :
9153  xorg_cv_cc_flag_unknown_warning_option=yes
9154else
9155  xorg_cv_cc_flag_unknown_warning_option=no
9156fi
9157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9158fi
9159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9160$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9161	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9162	CFLAGS="$xorg_testset_save_CFLAGS"
9163fi
9164
9165if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9166	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9167		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9168	fi
9169	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9170	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9171$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9172if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9173  $as_echo_n "(cached) " >&6
9174else
9175  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9176/* end confdefs.h.  */
9177int i;
9178_ACEOF
9179if ac_fn_c_try_compile "$LINENO"; then :
9180  xorg_cv_cc_flag_unused_command_line_argument=yes
9181else
9182  xorg_cv_cc_flag_unused_command_line_argument=no
9183fi
9184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9185fi
9186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9187$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9188	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9189	CFLAGS="$xorg_testset_save_CFLAGS"
9190fi
9191
9192found="no"
9193
9194	if test $found = "no" ; then
9195		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9196			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9197		fi
9198
9199		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9200			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9201		fi
9202
9203		CFLAGS="$CFLAGS -Wsequence-point"
9204
9205		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9206$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9207		cacheid=xorg_cv_cc_flag__Wsequence_point
9208		if eval \${$cacheid+:} false; then :
9209  $as_echo_n "(cached) " >&6
9210else
9211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9212/* end confdefs.h.  */
9213int i;
9214int
9215main ()
9216{
9217
9218  ;
9219  return 0;
9220}
9221_ACEOF
9222if ac_fn_c_try_link "$LINENO"; then :
9223  eval $cacheid=yes
9224else
9225  eval $cacheid=no
9226fi
9227rm -f core conftest.err conftest.$ac_objext \
9228    conftest$ac_exeext conftest.$ac_ext
9229fi
9230
9231
9232		CFLAGS="$xorg_testset_save_CFLAGS"
9233
9234		eval supported=\$$cacheid
9235		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9236$as_echo "$supported" >&6; }
9237		if test "$supported" = "yes" ; then
9238			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9239			found="yes"
9240		fi
9241	fi
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257xorg_testset_save_CFLAGS="$CFLAGS"
9258
9259if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9260	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9261	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9262$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9263if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9264  $as_echo_n "(cached) " >&6
9265else
9266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9267/* end confdefs.h.  */
9268int i;
9269_ACEOF
9270if ac_fn_c_try_compile "$LINENO"; then :
9271  xorg_cv_cc_flag_unknown_warning_option=yes
9272else
9273  xorg_cv_cc_flag_unknown_warning_option=no
9274fi
9275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9276fi
9277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9278$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9279	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9280	CFLAGS="$xorg_testset_save_CFLAGS"
9281fi
9282
9283if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9284	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9285		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9286	fi
9287	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9288	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9289$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9290if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9291  $as_echo_n "(cached) " >&6
9292else
9293  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9294/* end confdefs.h.  */
9295int i;
9296_ACEOF
9297if ac_fn_c_try_compile "$LINENO"; then :
9298  xorg_cv_cc_flag_unused_command_line_argument=yes
9299else
9300  xorg_cv_cc_flag_unused_command_line_argument=no
9301fi
9302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9303fi
9304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9305$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9306	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9307	CFLAGS="$xorg_testset_save_CFLAGS"
9308fi
9309
9310found="no"
9311
9312	if test $found = "no" ; then
9313		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9314			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9315		fi
9316
9317		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9318			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9319		fi
9320
9321		CFLAGS="$CFLAGS -Wreturn-type"
9322
9323		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9324$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9325		cacheid=xorg_cv_cc_flag__Wreturn_type
9326		if eval \${$cacheid+:} false; then :
9327  $as_echo_n "(cached) " >&6
9328else
9329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9330/* end confdefs.h.  */
9331int i;
9332int
9333main ()
9334{
9335
9336  ;
9337  return 0;
9338}
9339_ACEOF
9340if ac_fn_c_try_link "$LINENO"; then :
9341  eval $cacheid=yes
9342else
9343  eval $cacheid=no
9344fi
9345rm -f core conftest.err conftest.$ac_objext \
9346    conftest$ac_exeext conftest.$ac_ext
9347fi
9348
9349
9350		CFLAGS="$xorg_testset_save_CFLAGS"
9351
9352		eval supported=\$$cacheid
9353		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9354$as_echo "$supported" >&6; }
9355		if test "$supported" = "yes" ; then
9356			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9357			found="yes"
9358		fi
9359	fi
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375xorg_testset_save_CFLAGS="$CFLAGS"
9376
9377if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9378	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9379	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9380$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9381if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9382  $as_echo_n "(cached) " >&6
9383else
9384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9385/* end confdefs.h.  */
9386int i;
9387_ACEOF
9388if ac_fn_c_try_compile "$LINENO"; then :
9389  xorg_cv_cc_flag_unknown_warning_option=yes
9390else
9391  xorg_cv_cc_flag_unknown_warning_option=no
9392fi
9393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9394fi
9395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9396$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9397	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9398	CFLAGS="$xorg_testset_save_CFLAGS"
9399fi
9400
9401if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9402	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9403		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9404	fi
9405	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9406	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9407$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9408if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9409  $as_echo_n "(cached) " >&6
9410else
9411  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9412/* end confdefs.h.  */
9413int i;
9414_ACEOF
9415if ac_fn_c_try_compile "$LINENO"; then :
9416  xorg_cv_cc_flag_unused_command_line_argument=yes
9417else
9418  xorg_cv_cc_flag_unused_command_line_argument=no
9419fi
9420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9421fi
9422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9423$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9424	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9425	CFLAGS="$xorg_testset_save_CFLAGS"
9426fi
9427
9428found="no"
9429
9430	if test $found = "no" ; then
9431		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9432			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9433		fi
9434
9435		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9436			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9437		fi
9438
9439		CFLAGS="$CFLAGS -Wtrigraphs"
9440
9441		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9442$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9443		cacheid=xorg_cv_cc_flag__Wtrigraphs
9444		if eval \${$cacheid+:} false; then :
9445  $as_echo_n "(cached) " >&6
9446else
9447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9448/* end confdefs.h.  */
9449int i;
9450int
9451main ()
9452{
9453
9454  ;
9455  return 0;
9456}
9457_ACEOF
9458if ac_fn_c_try_link "$LINENO"; then :
9459  eval $cacheid=yes
9460else
9461  eval $cacheid=no
9462fi
9463rm -f core conftest.err conftest.$ac_objext \
9464    conftest$ac_exeext conftest.$ac_ext
9465fi
9466
9467
9468		CFLAGS="$xorg_testset_save_CFLAGS"
9469
9470		eval supported=\$$cacheid
9471		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9472$as_echo "$supported" >&6; }
9473		if test "$supported" = "yes" ; then
9474			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9475			found="yes"
9476		fi
9477	fi
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493xorg_testset_save_CFLAGS="$CFLAGS"
9494
9495if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9496	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9497	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9498$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9499if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9500  $as_echo_n "(cached) " >&6
9501else
9502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9503/* end confdefs.h.  */
9504int i;
9505_ACEOF
9506if ac_fn_c_try_compile "$LINENO"; then :
9507  xorg_cv_cc_flag_unknown_warning_option=yes
9508else
9509  xorg_cv_cc_flag_unknown_warning_option=no
9510fi
9511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9512fi
9513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9514$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9515	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9516	CFLAGS="$xorg_testset_save_CFLAGS"
9517fi
9518
9519if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9520	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9521		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9522	fi
9523	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9524	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9525$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9526if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9527  $as_echo_n "(cached) " >&6
9528else
9529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9530/* end confdefs.h.  */
9531int i;
9532_ACEOF
9533if ac_fn_c_try_compile "$LINENO"; then :
9534  xorg_cv_cc_flag_unused_command_line_argument=yes
9535else
9536  xorg_cv_cc_flag_unused_command_line_argument=no
9537fi
9538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9539fi
9540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9541$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9542	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9543	CFLAGS="$xorg_testset_save_CFLAGS"
9544fi
9545
9546found="no"
9547
9548	if test $found = "no" ; then
9549		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9550			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9551		fi
9552
9553		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9554			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9555		fi
9556
9557		CFLAGS="$CFLAGS -Warray-bounds"
9558
9559		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9560$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9561		cacheid=xorg_cv_cc_flag__Warray_bounds
9562		if eval \${$cacheid+:} false; then :
9563  $as_echo_n "(cached) " >&6
9564else
9565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9566/* end confdefs.h.  */
9567int i;
9568int
9569main ()
9570{
9571
9572  ;
9573  return 0;
9574}
9575_ACEOF
9576if ac_fn_c_try_link "$LINENO"; then :
9577  eval $cacheid=yes
9578else
9579  eval $cacheid=no
9580fi
9581rm -f core conftest.err conftest.$ac_objext \
9582    conftest$ac_exeext conftest.$ac_ext
9583fi
9584
9585
9586		CFLAGS="$xorg_testset_save_CFLAGS"
9587
9588		eval supported=\$$cacheid
9589		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9590$as_echo "$supported" >&6; }
9591		if test "$supported" = "yes" ; then
9592			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9593			found="yes"
9594		fi
9595	fi
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611xorg_testset_save_CFLAGS="$CFLAGS"
9612
9613if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9614	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9615	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9616$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9617if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9618  $as_echo_n "(cached) " >&6
9619else
9620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9621/* end confdefs.h.  */
9622int i;
9623_ACEOF
9624if ac_fn_c_try_compile "$LINENO"; then :
9625  xorg_cv_cc_flag_unknown_warning_option=yes
9626else
9627  xorg_cv_cc_flag_unknown_warning_option=no
9628fi
9629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9630fi
9631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9632$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9633	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9634	CFLAGS="$xorg_testset_save_CFLAGS"
9635fi
9636
9637if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9638	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9639		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9640	fi
9641	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9642	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9643$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9644if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9645  $as_echo_n "(cached) " >&6
9646else
9647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9648/* end confdefs.h.  */
9649int i;
9650_ACEOF
9651if ac_fn_c_try_compile "$LINENO"; then :
9652  xorg_cv_cc_flag_unused_command_line_argument=yes
9653else
9654  xorg_cv_cc_flag_unused_command_line_argument=no
9655fi
9656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9657fi
9658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9659$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9660	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9661	CFLAGS="$xorg_testset_save_CFLAGS"
9662fi
9663
9664found="no"
9665
9666	if test $found = "no" ; then
9667		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9668			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9669		fi
9670
9671		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9672			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9673		fi
9674
9675		CFLAGS="$CFLAGS -Wwrite-strings"
9676
9677		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9678$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9679		cacheid=xorg_cv_cc_flag__Wwrite_strings
9680		if eval \${$cacheid+:} false; then :
9681  $as_echo_n "(cached) " >&6
9682else
9683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9684/* end confdefs.h.  */
9685int i;
9686int
9687main ()
9688{
9689
9690  ;
9691  return 0;
9692}
9693_ACEOF
9694if ac_fn_c_try_link "$LINENO"; then :
9695  eval $cacheid=yes
9696else
9697  eval $cacheid=no
9698fi
9699rm -f core conftest.err conftest.$ac_objext \
9700    conftest$ac_exeext conftest.$ac_ext
9701fi
9702
9703
9704		CFLAGS="$xorg_testset_save_CFLAGS"
9705
9706		eval supported=\$$cacheid
9707		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9708$as_echo "$supported" >&6; }
9709		if test "$supported" = "yes" ; then
9710			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9711			found="yes"
9712		fi
9713	fi
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729xorg_testset_save_CFLAGS="$CFLAGS"
9730
9731if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9732	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9733	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9734$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9735if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9736  $as_echo_n "(cached) " >&6
9737else
9738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9739/* end confdefs.h.  */
9740int i;
9741_ACEOF
9742if ac_fn_c_try_compile "$LINENO"; then :
9743  xorg_cv_cc_flag_unknown_warning_option=yes
9744else
9745  xorg_cv_cc_flag_unknown_warning_option=no
9746fi
9747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9748fi
9749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9750$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9751	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9752	CFLAGS="$xorg_testset_save_CFLAGS"
9753fi
9754
9755if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9756	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9757		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9758	fi
9759	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9760	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9761$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9762if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9763  $as_echo_n "(cached) " >&6
9764else
9765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9766/* end confdefs.h.  */
9767int i;
9768_ACEOF
9769if ac_fn_c_try_compile "$LINENO"; then :
9770  xorg_cv_cc_flag_unused_command_line_argument=yes
9771else
9772  xorg_cv_cc_flag_unused_command_line_argument=no
9773fi
9774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9775fi
9776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9777$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9778	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9779	CFLAGS="$xorg_testset_save_CFLAGS"
9780fi
9781
9782found="no"
9783
9784	if test $found = "no" ; then
9785		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9786			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9787		fi
9788
9789		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9790			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9791		fi
9792
9793		CFLAGS="$CFLAGS -Waddress"
9794
9795		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9796$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9797		cacheid=xorg_cv_cc_flag__Waddress
9798		if eval \${$cacheid+:} false; then :
9799  $as_echo_n "(cached) " >&6
9800else
9801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9802/* end confdefs.h.  */
9803int i;
9804int
9805main ()
9806{
9807
9808  ;
9809  return 0;
9810}
9811_ACEOF
9812if ac_fn_c_try_link "$LINENO"; then :
9813  eval $cacheid=yes
9814else
9815  eval $cacheid=no
9816fi
9817rm -f core conftest.err conftest.$ac_objext \
9818    conftest$ac_exeext conftest.$ac_ext
9819fi
9820
9821
9822		CFLAGS="$xorg_testset_save_CFLAGS"
9823
9824		eval supported=\$$cacheid
9825		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9826$as_echo "$supported" >&6; }
9827		if test "$supported" = "yes" ; then
9828			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9829			found="yes"
9830		fi
9831	fi
9832
9833
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 -Wint-to-pointer-cast"
9912
9913		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9914$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9915		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
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			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
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 -Wpointer-to-int-cast"
10030
10031		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10032$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10033		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
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			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10065			found="yes"
10066		fi
10067	fi
10068
10069
10070fi
10071
10072
10073
10074
10075
10076
10077
10078		CWARNFLAGS="$BASE_CFLAGS"
10079		if  test "x$GCC" = xyes ; then
10080		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10081		fi
10082
10083
10084
10085
10086
10087
10088
10089
10090# Check whether --enable-strict-compilation was given.
10091if test "${enable_strict_compilation+set}" = set; then :
10092  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10093else
10094  STRICT_COMPILE=no
10095fi
10096
10097
10098
10099
10100
10101
10102STRICT_CFLAGS=""
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116xorg_testset_save_CFLAGS="$CFLAGS"
10117
10118if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10119	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10120	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10121$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10122if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10123  $as_echo_n "(cached) " >&6
10124else
10125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10126/* end confdefs.h.  */
10127int i;
10128_ACEOF
10129if ac_fn_c_try_compile "$LINENO"; then :
10130  xorg_cv_cc_flag_unknown_warning_option=yes
10131else
10132  xorg_cv_cc_flag_unknown_warning_option=no
10133fi
10134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10135fi
10136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10137$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10138	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10139	CFLAGS="$xorg_testset_save_CFLAGS"
10140fi
10141
10142if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10143	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10144		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10145	fi
10146	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10147	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10148$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10149if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10150  $as_echo_n "(cached) " >&6
10151else
10152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10153/* end confdefs.h.  */
10154int i;
10155_ACEOF
10156if ac_fn_c_try_compile "$LINENO"; then :
10157  xorg_cv_cc_flag_unused_command_line_argument=yes
10158else
10159  xorg_cv_cc_flag_unused_command_line_argument=no
10160fi
10161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10162fi
10163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10164$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10165	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10166	CFLAGS="$xorg_testset_save_CFLAGS"
10167fi
10168
10169found="no"
10170
10171	if test $found = "no" ; then
10172		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10173			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10174		fi
10175
10176		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10177			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10178		fi
10179
10180		CFLAGS="$CFLAGS -pedantic"
10181
10182		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10183$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10184		cacheid=xorg_cv_cc_flag__pedantic
10185		if eval \${$cacheid+:} false; then :
10186  $as_echo_n "(cached) " >&6
10187else
10188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10189/* end confdefs.h.  */
10190int i;
10191int
10192main ()
10193{
10194
10195  ;
10196  return 0;
10197}
10198_ACEOF
10199if ac_fn_c_try_link "$LINENO"; then :
10200  eval $cacheid=yes
10201else
10202  eval $cacheid=no
10203fi
10204rm -f core conftest.err conftest.$ac_objext \
10205    conftest$ac_exeext conftest.$ac_ext
10206fi
10207
10208
10209		CFLAGS="$xorg_testset_save_CFLAGS"
10210
10211		eval supported=\$$cacheid
10212		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10213$as_echo "$supported" >&6; }
10214		if test "$supported" = "yes" ; then
10215			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10216			found="yes"
10217		fi
10218	fi
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234xorg_testset_save_CFLAGS="$CFLAGS"
10235
10236if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10237	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10238	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10239$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10240if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10241  $as_echo_n "(cached) " >&6
10242else
10243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10244/* end confdefs.h.  */
10245int i;
10246_ACEOF
10247if ac_fn_c_try_compile "$LINENO"; then :
10248  xorg_cv_cc_flag_unknown_warning_option=yes
10249else
10250  xorg_cv_cc_flag_unknown_warning_option=no
10251fi
10252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10253fi
10254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10255$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10256	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10257	CFLAGS="$xorg_testset_save_CFLAGS"
10258fi
10259
10260if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10261	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10262		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10263	fi
10264	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10265	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10266$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10267if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10268  $as_echo_n "(cached) " >&6
10269else
10270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10271/* end confdefs.h.  */
10272int i;
10273_ACEOF
10274if ac_fn_c_try_compile "$LINENO"; then :
10275  xorg_cv_cc_flag_unused_command_line_argument=yes
10276else
10277  xorg_cv_cc_flag_unused_command_line_argument=no
10278fi
10279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10280fi
10281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10282$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10283	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10284	CFLAGS="$xorg_testset_save_CFLAGS"
10285fi
10286
10287found="no"
10288
10289	if test $found = "no" ; then
10290		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10291			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10292		fi
10293
10294		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10295			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10296		fi
10297
10298		CFLAGS="$CFLAGS -Werror"
10299
10300		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10301$as_echo_n "checking if $CC supports -Werror... " >&6; }
10302		cacheid=xorg_cv_cc_flag__Werror
10303		if eval \${$cacheid+:} false; then :
10304  $as_echo_n "(cached) " >&6
10305else
10306  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10307/* end confdefs.h.  */
10308int i;
10309int
10310main ()
10311{
10312
10313  ;
10314  return 0;
10315}
10316_ACEOF
10317if ac_fn_c_try_link "$LINENO"; then :
10318  eval $cacheid=yes
10319else
10320  eval $cacheid=no
10321fi
10322rm -f core conftest.err conftest.$ac_objext \
10323    conftest$ac_exeext conftest.$ac_ext
10324fi
10325
10326
10327		CFLAGS="$xorg_testset_save_CFLAGS"
10328
10329		eval supported=\$$cacheid
10330		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10331$as_echo "$supported" >&6; }
10332		if test "$supported" = "yes" ; then
10333			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10334			found="yes"
10335		fi
10336	fi
10337
10338	if test $found = "no" ; then
10339		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10340			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10341		fi
10342
10343		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10344			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10345		fi
10346
10347		CFLAGS="$CFLAGS -errwarn"
10348
10349		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10350$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10351		cacheid=xorg_cv_cc_flag__errwarn
10352		if eval \${$cacheid+:} false; then :
10353  $as_echo_n "(cached) " >&6
10354else
10355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10356/* end confdefs.h.  */
10357int i;
10358int
10359main ()
10360{
10361
10362  ;
10363  return 0;
10364}
10365_ACEOF
10366if ac_fn_c_try_link "$LINENO"; then :
10367  eval $cacheid=yes
10368else
10369  eval $cacheid=no
10370fi
10371rm -f core conftest.err conftest.$ac_objext \
10372    conftest$ac_exeext conftest.$ac_ext
10373fi
10374
10375
10376		CFLAGS="$xorg_testset_save_CFLAGS"
10377
10378		eval supported=\$$cacheid
10379		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10380$as_echo "$supported" >&6; }
10381		if test "$supported" = "yes" ; then
10382			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10383			found="yes"
10384		fi
10385	fi
10386
10387
10388
10389# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10390# activate it with -Werror, so we add it here explicitly.
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404xorg_testset_save_CFLAGS="$CFLAGS"
10405
10406if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10407	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10408	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10409$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10410if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10411  $as_echo_n "(cached) " >&6
10412else
10413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10414/* end confdefs.h.  */
10415int i;
10416_ACEOF
10417if ac_fn_c_try_compile "$LINENO"; then :
10418  xorg_cv_cc_flag_unknown_warning_option=yes
10419else
10420  xorg_cv_cc_flag_unknown_warning_option=no
10421fi
10422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10423fi
10424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10425$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10426	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10427	CFLAGS="$xorg_testset_save_CFLAGS"
10428fi
10429
10430if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10431	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10432		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10433	fi
10434	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10435	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10436$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10437if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10438  $as_echo_n "(cached) " >&6
10439else
10440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10441/* end confdefs.h.  */
10442int i;
10443_ACEOF
10444if ac_fn_c_try_compile "$LINENO"; then :
10445  xorg_cv_cc_flag_unused_command_line_argument=yes
10446else
10447  xorg_cv_cc_flag_unused_command_line_argument=no
10448fi
10449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10450fi
10451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10452$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10453	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10454	CFLAGS="$xorg_testset_save_CFLAGS"
10455fi
10456
10457found="no"
10458
10459	if test $found = "no" ; then
10460		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10461			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10462		fi
10463
10464		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10465			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10466		fi
10467
10468		CFLAGS="$CFLAGS -Werror=attributes"
10469
10470		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10471$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10472		cacheid=xorg_cv_cc_flag__Werror_attributes
10473		if eval \${$cacheid+:} false; then :
10474  $as_echo_n "(cached) " >&6
10475else
10476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10477/* end confdefs.h.  */
10478int i;
10479int
10480main ()
10481{
10482
10483  ;
10484  return 0;
10485}
10486_ACEOF
10487if ac_fn_c_try_link "$LINENO"; then :
10488  eval $cacheid=yes
10489else
10490  eval $cacheid=no
10491fi
10492rm -f core conftest.err conftest.$ac_objext \
10493    conftest$ac_exeext conftest.$ac_ext
10494fi
10495
10496
10497		CFLAGS="$xorg_testset_save_CFLAGS"
10498
10499		eval supported=\$$cacheid
10500		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10501$as_echo "$supported" >&6; }
10502		if test "$supported" = "yes" ; then
10503			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10504			found="yes"
10505		fi
10506	fi
10507
10508
10509
10510if test "x$STRICT_COMPILE" = "xyes"; then
10511    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10512    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10513fi
10514
10515
10516
10517
10518
10519
10520cat >>confdefs.h <<_ACEOF
10521#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10522_ACEOF
10523
10524	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10525	if test "x$PVM" = "x"; then
10526		PVM="0"
10527	fi
10528
10529cat >>confdefs.h <<_ACEOF
10530#define PACKAGE_VERSION_MINOR $PVM
10531_ACEOF
10532
10533	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10534	if test "x$PVP" = "x"; then
10535		PVP="0"
10536	fi
10537
10538cat >>confdefs.h <<_ACEOF
10539#define PACKAGE_VERSION_PATCHLEVEL $PVP
10540_ACEOF
10541
10542
10543
10544CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10545mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10546|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10547echo 'git directory not found: installing possibly empty changelog.' >&2)"
10548
10549
10550
10551
10552macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10553INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10554mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10555|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10556echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10557
10558
10559
10560
10561
10562
10563if test x$APP_MAN_SUFFIX = x    ; then
10564    APP_MAN_SUFFIX=1
10565fi
10566if test x$APP_MAN_DIR = x    ; then
10567    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10568fi
10569
10570if test x$LIB_MAN_SUFFIX = x    ; then
10571    LIB_MAN_SUFFIX=3
10572fi
10573if test x$LIB_MAN_DIR = x    ; then
10574    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10575fi
10576
10577if test x$FILE_MAN_SUFFIX = x    ; then
10578    case $host_os in
10579	# Solaris 2.0 - 11 use SysV man page sections
10580	solaris2.?|solaris2.1[01])	FILE_MAN_SUFFIX=4  ;;
10581	*)				FILE_MAN_SUFFIX=5  ;;
10582    esac
10583fi
10584if test x$FILE_MAN_DIR = x    ; then
10585    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10586fi
10587
10588if test x$MISC_MAN_SUFFIX = x    ; then
10589    case $host_os in
10590	# Solaris 2.0 - 11 use SysV man page sections
10591	solaris2.?|solaris2.1[01])	MISC_MAN_SUFFIX=5  ;;
10592	*)				MISC_MAN_SUFFIX=7  ;;
10593    esac
10594fi
10595if test x$MISC_MAN_DIR = x    ; then
10596    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10597fi
10598
10599if test x$DRIVER_MAN_SUFFIX = x    ; then
10600    case $host_os in
10601	# Solaris 2.0 - 11 use SysV man page sections
10602	solaris2.?|solaris2.1[01])	DRIVER_MAN_SUFFIX=7  ;;
10603	*)				DRIVER_MAN_SUFFIX=4  ;;
10604    esac
10605fi
10606if test x$DRIVER_MAN_DIR = x    ; then
10607    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10608fi
10609
10610if test x$ADMIN_MAN_SUFFIX = x    ; then
10611    case $host_os in
10612	# Solaris 2.0 - 11 use SysV man page sections
10613	solaris2.?|solaris2.1[01])	ADMIN_MAN_SUFFIX=1m ;;
10614	*)				ADMIN_MAN_SUFFIX=8  ;;
10615    esac
10616fi
10617if test x$ADMIN_MAN_DIR = x    ; then
10618    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10619fi
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635XORG_MAN_PAGE="X Version 11"
10636
10637MAN_SUBSTS="\
10638	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10639	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10640	-e 's|__xservername__|Xorg|g' \
10641	-e 's|__xconfigfile__|xorg.conf|g' \
10642	-e 's|__projectroot__|\$(prefix)|g' \
10643	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10644	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10645	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10646	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10647	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10648	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10649	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10650
10651
10652
10653# Check whether --enable-silent-rules was given.
10654if test "${enable_silent_rules+set}" = set; then :
10655  enableval=$enable_silent_rules;
10656fi
10657
10658case $enable_silent_rules in # (((
10659  yes) AM_DEFAULT_VERBOSITY=0;;
10660   no) AM_DEFAULT_VERBOSITY=1;;
10661    *) AM_DEFAULT_VERBOSITY=0;;
10662esac
10663am_make=${MAKE-make}
10664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10665$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10666if ${am_cv_make_support_nested_variables+:} false; then :
10667  $as_echo_n "(cached) " >&6
10668else
10669  if $as_echo 'TRUE=$(BAR$(V))
10670BAR0=false
10671BAR1=true
10672V=1
10673am__doit:
10674	@$(TRUE)
10675.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10676  am_cv_make_support_nested_variables=yes
10677else
10678  am_cv_make_support_nested_variables=no
10679fi
10680fi
10681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10682$as_echo "$am_cv_make_support_nested_variables" >&6; }
10683if test $am_cv_make_support_nested_variables = yes; then
10684    AM_V='$(V)'
10685  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10686else
10687  AM_V=$AM_DEFAULT_VERBOSITY
10688  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10689fi
10690AM_BACKSLASH='\'
10691
10692
10693
10694# Define the installation directory for the x11 performance compare scripts
10695x11perfcompdir=$libdir/X11/x11perfcomp
10696
10697
10698# Checks for programs run by the scripts we install
10699# Extract the first word of "mktemp", so it can be a program name with args.
10700set dummy mktemp; ac_word=$2
10701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10702$as_echo_n "checking for $ac_word... " >&6; }
10703if ${ac_cv_path_MKTEMP+:} false; then :
10704  $as_echo_n "(cached) " >&6
10705else
10706  case $MKTEMP in
10707  [\\/]* | ?:[\\/]*)
10708  ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
10709  ;;
10710  *)
10711  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10712for as_dir in $PATH
10713do
10714  IFS=$as_save_IFS
10715  test -z "$as_dir" && as_dir=.
10716    for ac_exec_ext in '' $ac_executable_extensions; do
10717  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10718    ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
10719    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10720    break 2
10721  fi
10722done
10723  done
10724IFS=$as_save_IFS
10725
10726  ;;
10727esac
10728fi
10729MKTEMP=$ac_cv_path_MKTEMP
10730if test -n "$MKTEMP"; then
10731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
10732$as_echo "$MKTEMP" >&6; }
10733else
10734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10735$as_echo "no" >&6; }
10736fi
10737
10738
10739
10740# Checks for pkg-config packages
10741
10742pkg_failed=no
10743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11PERF" >&5
10744$as_echo_n "checking for X11PERF... " >&6; }
10745
10746if test -n "$X11PERF_CFLAGS"; then
10747    pkg_cv_X11PERF_CFLAGS="$X11PERF_CFLAGS"
10748 elif test -n "$PKG_CONFIG"; then
10749    if test -n "$PKG_CONFIG" && \
10750    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xmuu xproto >= 7.0.17\""; } >&5
10751  ($PKG_CONFIG --exists --print-errors "x11 xmuu xproto >= 7.0.17") 2>&5
10752  ac_status=$?
10753  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10754  test $ac_status = 0; }; then
10755  pkg_cv_X11PERF_CFLAGS=`$PKG_CONFIG --cflags "x11 xmuu xproto >= 7.0.17" 2>/dev/null`
10756		      test "x$?" != "x0" && pkg_failed=yes
10757else
10758  pkg_failed=yes
10759fi
10760 else
10761    pkg_failed=untried
10762fi
10763if test -n "$X11PERF_LIBS"; then
10764    pkg_cv_X11PERF_LIBS="$X11PERF_LIBS"
10765 elif test -n "$PKG_CONFIG"; then
10766    if test -n "$PKG_CONFIG" && \
10767    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xmuu xproto >= 7.0.17\""; } >&5
10768  ($PKG_CONFIG --exists --print-errors "x11 xmuu xproto >= 7.0.17") 2>&5
10769  ac_status=$?
10770  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10771  test $ac_status = 0; }; then
10772  pkg_cv_X11PERF_LIBS=`$PKG_CONFIG --libs "x11 xmuu xproto >= 7.0.17" 2>/dev/null`
10773		      test "x$?" != "x0" && pkg_failed=yes
10774else
10775  pkg_failed=yes
10776fi
10777 else
10778    pkg_failed=untried
10779fi
10780
10781
10782
10783if test $pkg_failed = yes; then
10784   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10785$as_echo "no" >&6; }
10786
10787if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10788        _pkg_short_errors_supported=yes
10789else
10790        _pkg_short_errors_supported=no
10791fi
10792        if test $_pkg_short_errors_supported = yes; then
10793	        X11PERF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xmuu xproto >= 7.0.17" 2>&1`
10794        else
10795	        X11PERF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xmuu xproto >= 7.0.17" 2>&1`
10796        fi
10797	# Put the nasty error message in config.log where it belongs
10798	echo "$X11PERF_PKG_ERRORS" >&5
10799
10800	as_fn_error $? "Package requirements (x11 xmuu xproto >= 7.0.17) were not met:
10801
10802$X11PERF_PKG_ERRORS
10803
10804Consider adjusting the PKG_CONFIG_PATH environment variable if you
10805installed software in a non-standard prefix.
10806
10807Alternatively, you may set the environment variables X11PERF_CFLAGS
10808and X11PERF_LIBS to avoid the need to call pkg-config.
10809See the pkg-config man page for more details." "$LINENO" 5
10810elif test $pkg_failed = untried; then
10811     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10812$as_echo "no" >&6; }
10813	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10814$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10815as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10816is in your PATH or set the PKG_CONFIG environment variable to the full
10817path to pkg-config.
10818
10819Alternatively, you may set the environment variables X11PERF_CFLAGS
10820and X11PERF_LIBS to avoid the need to call pkg-config.
10821See the pkg-config man page for more details.
10822
10823To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10824See \`config.log' for more details" "$LINENO" 5; }
10825else
10826	X11PERF_CFLAGS=$pkg_cv_X11PERF_CFLAGS
10827	X11PERF_LIBS=$pkg_cv_X11PERF_LIBS
10828        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10829$as_echo "yes" >&6; }
10830
10831fi
10832
10833# Check for Xrender library
10834
10835pkg_failed=no
10836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRENDER" >&5
10837$as_echo_n "checking for XRENDER... " >&6; }
10838
10839if test -n "$XRENDER_CFLAGS"; then
10840    pkg_cv_XRENDER_CFLAGS="$XRENDER_CFLAGS"
10841 elif test -n "$PKG_CONFIG"; then
10842    if test -n "$PKG_CONFIG" && \
10843    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender\""; } >&5
10844  ($PKG_CONFIG --exists --print-errors "xrender") 2>&5
10845  ac_status=$?
10846  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10847  test $ac_status = 0; }; then
10848  pkg_cv_XRENDER_CFLAGS=`$PKG_CONFIG --cflags "xrender" 2>/dev/null`
10849		      test "x$?" != "x0" && pkg_failed=yes
10850else
10851  pkg_failed=yes
10852fi
10853 else
10854    pkg_failed=untried
10855fi
10856if test -n "$XRENDER_LIBS"; then
10857    pkg_cv_XRENDER_LIBS="$XRENDER_LIBS"
10858 elif test -n "$PKG_CONFIG"; then
10859    if test -n "$PKG_CONFIG" && \
10860    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender\""; } >&5
10861  ($PKG_CONFIG --exists --print-errors "xrender") 2>&5
10862  ac_status=$?
10863  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10864  test $ac_status = 0; }; then
10865  pkg_cv_XRENDER_LIBS=`$PKG_CONFIG --libs "xrender" 2>/dev/null`
10866		      test "x$?" != "x0" && pkg_failed=yes
10867else
10868  pkg_failed=yes
10869fi
10870 else
10871    pkg_failed=untried
10872fi
10873
10874
10875
10876if test $pkg_failed = yes; then
10877   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10878$as_echo "no" >&6; }
10879
10880if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10881        _pkg_short_errors_supported=yes
10882else
10883        _pkg_short_errors_supported=no
10884fi
10885        if test $_pkg_short_errors_supported = yes; then
10886	        XRENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrender" 2>&1`
10887        else
10888	        XRENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrender" 2>&1`
10889        fi
10890	# Put the nasty error message in config.log where it belongs
10891	echo "$XRENDER_PKG_ERRORS" >&5
10892
10893	xrender_found=no
10894elif test $pkg_failed = untried; then
10895     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10896$as_echo "no" >&6; }
10897	xrender_found=no
10898else
10899	XRENDER_CFLAGS=$pkg_cv_XRENDER_CFLAGS
10900	XRENDER_LIBS=$pkg_cv_XRENDER_LIBS
10901        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10902$as_echo "yes" >&6; }
10903	xrender_found=yes
10904fi
10905case "$xrender_found" in
10906yes)
10907
10908$as_echo "#define XRENDER 1" >>confdefs.h
10909
10910	;;
10911esac
10912
10913# Check for Xft library
10914
10915pkg_failed=no
10916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFT" >&5
10917$as_echo_n "checking for XFT... " >&6; }
10918
10919if test -n "$XFT_CFLAGS"; then
10920    pkg_cv_XFT_CFLAGS="$XFT_CFLAGS"
10921 elif test -n "$PKG_CONFIG"; then
10922    if test -n "$PKG_CONFIG" && \
10923    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft\""; } >&5
10924  ($PKG_CONFIG --exists --print-errors "xft") 2>&5
10925  ac_status=$?
10926  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10927  test $ac_status = 0; }; then
10928  pkg_cv_XFT_CFLAGS=`$PKG_CONFIG --cflags "xft" 2>/dev/null`
10929		      test "x$?" != "x0" && pkg_failed=yes
10930else
10931  pkg_failed=yes
10932fi
10933 else
10934    pkg_failed=untried
10935fi
10936if test -n "$XFT_LIBS"; then
10937    pkg_cv_XFT_LIBS="$XFT_LIBS"
10938 elif test -n "$PKG_CONFIG"; then
10939    if test -n "$PKG_CONFIG" && \
10940    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft\""; } >&5
10941  ($PKG_CONFIG --exists --print-errors "xft") 2>&5
10942  ac_status=$?
10943  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10944  test $ac_status = 0; }; then
10945  pkg_cv_XFT_LIBS=`$PKG_CONFIG --libs "xft" 2>/dev/null`
10946		      test "x$?" != "x0" && pkg_failed=yes
10947else
10948  pkg_failed=yes
10949fi
10950 else
10951    pkg_failed=untried
10952fi
10953
10954
10955
10956if test $pkg_failed = yes; then
10957   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10958$as_echo "no" >&6; }
10959
10960if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10961        _pkg_short_errors_supported=yes
10962else
10963        _pkg_short_errors_supported=no
10964fi
10965        if test $_pkg_short_errors_supported = yes; then
10966	        XFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xft" 2>&1`
10967        else
10968	        XFT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xft" 2>&1`
10969        fi
10970	# Put the nasty error message in config.log where it belongs
10971	echo "$XFT_PKG_ERRORS" >&5
10972
10973	xft_found=no
10974elif test $pkg_failed = untried; then
10975     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10976$as_echo "no" >&6; }
10977	xft_found=no
10978else
10979	XFT_CFLAGS=$pkg_cv_XFT_CFLAGS
10980	XFT_LIBS=$pkg_cv_XFT_LIBS
10981        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10982$as_echo "yes" >&6; }
10983	xft_found=yes
10984fi
10985case "$xft_found" in
10986yes)
10987
10988$as_echo "#define XFT 1" >>confdefs.h
10989
10990	;;
10991esac
10992
10993# Check for MIT-SHM extension
10994
10995pkg_failed=no
10996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
10997$as_echo_n "checking for XEXT... " >&6; }
10998
10999if test -n "$XEXT_CFLAGS"; then
11000    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
11001 elif test -n "$PKG_CONFIG"; then
11002    if test -n "$PKG_CONFIG" && \
11003    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
11004  ($PKG_CONFIG --exists --print-errors "xext") 2>&5
11005  ac_status=$?
11006  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11007  test $ac_status = 0; }; then
11008  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
11009		      test "x$?" != "x0" && pkg_failed=yes
11010else
11011  pkg_failed=yes
11012fi
11013 else
11014    pkg_failed=untried
11015fi
11016if test -n "$XEXT_LIBS"; then
11017    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
11018 elif test -n "$PKG_CONFIG"; then
11019    if test -n "$PKG_CONFIG" && \
11020    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
11021  ($PKG_CONFIG --exists --print-errors "xext") 2>&5
11022  ac_status=$?
11023  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11024  test $ac_status = 0; }; then
11025  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
11026		      test "x$?" != "x0" && pkg_failed=yes
11027else
11028  pkg_failed=yes
11029fi
11030 else
11031    pkg_failed=untried
11032fi
11033
11034
11035
11036if test $pkg_failed = yes; then
11037   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11038$as_echo "no" >&6; }
11039
11040if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11041        _pkg_short_errors_supported=yes
11042else
11043        _pkg_short_errors_supported=no
11044fi
11045        if test $_pkg_short_errors_supported = yes; then
11046	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xext" 2>&1`
11047        else
11048	        XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xext" 2>&1`
11049        fi
11050	# Put the nasty error message in config.log where it belongs
11051	echo "$XEXT_PKG_ERRORS" >&5
11052
11053	xext_found=no
11054elif test $pkg_failed = untried; then
11055     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11056$as_echo "no" >&6; }
11057	xext_found=no
11058else
11059	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
11060	XEXT_LIBS=$pkg_cv_XEXT_LIBS
11061        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11062$as_echo "yes" >&6; }
11063	xext_found=yes
11064fi
11065case "$xext_found" in
11066yes)
11067	save_LIBS="$LIBS"
11068	LIBS="$XEXT_LIBS $LIBS"
11069	for ac_func in XShmQueryExtension
11070do :
11071  ac_fn_c_check_func "$LINENO" "XShmQueryExtension" "ac_cv_func_XShmQueryExtension"
11072if test "x$ac_cv_func_XShmQueryExtension" = xyes; then :
11073  cat >>confdefs.h <<_ACEOF
11074#define HAVE_XSHMQUERYEXTENSION 1
11075_ACEOF
11076
11077$as_echo "#define MITSHM 1" >>confdefs.h
11078
11079fi
11080done
11081
11082	LIBS="$save_LIBS"
11083	;;
11084esac
11085
11086ac_config_files="$ac_config_files Makefile man/Makefile"
11087
11088cat >confcache <<\_ACEOF
11089# This file is a shell script that caches the results of configure
11090# tests run on this system so they can be shared between configure
11091# scripts and configure runs, see configure's option --config-cache.
11092# It is not useful on other systems.  If it contains results you don't
11093# want to keep, you may remove or edit it.
11094#
11095# config.status only pays attention to the cache file if you give it
11096# the --recheck option to rerun configure.
11097#
11098# `ac_cv_env_foo' variables (set or unset) will be overridden when
11099# loading this file, other *unset* `ac_cv_foo' will be assigned the
11100# following values.
11101
11102_ACEOF
11103
11104# The following way of writing the cache mishandles newlines in values,
11105# but we know of no workaround that is simple, portable, and efficient.
11106# So, we kill variables containing newlines.
11107# Ultrix sh set writes to stderr and can't be redirected directly,
11108# and sets the high bit in the cache file unless we assign to the vars.
11109(
11110  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11111    eval ac_val=\$$ac_var
11112    case $ac_val in #(
11113    *${as_nl}*)
11114      case $ac_var in #(
11115      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11116$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11117      esac
11118      case $ac_var in #(
11119      _ | IFS | as_nl) ;; #(
11120      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11121      *) { eval $ac_var=; unset $ac_var;} ;;
11122      esac ;;
11123    esac
11124  done
11125
11126  (set) 2>&1 |
11127    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11128    *${as_nl}ac_space=\ *)
11129      # `set' does not quote correctly, so add quotes: double-quote
11130      # substitution turns \\\\ into \\, and sed turns \\ into \.
11131      sed -n \
11132	"s/'/'\\\\''/g;
11133	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11134      ;; #(
11135    *)
11136      # `set' quotes correctly as required by POSIX, so do not add quotes.
11137      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11138      ;;
11139    esac |
11140    sort
11141) |
11142  sed '
11143     /^ac_cv_env_/b end
11144     t clear
11145     :clear
11146     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11147     t end
11148     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11149     :end' >>confcache
11150if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11151  if test -w "$cache_file"; then
11152    if test "x$cache_file" != "x/dev/null"; then
11153      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11154$as_echo "$as_me: updating cache $cache_file" >&6;}
11155      if test ! -f "$cache_file" || test -h "$cache_file"; then
11156	cat confcache >"$cache_file"
11157      else
11158        case $cache_file in #(
11159        */* | ?:*)
11160	  mv -f confcache "$cache_file"$$ &&
11161	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11162        *)
11163	  mv -f confcache "$cache_file" ;;
11164	esac
11165      fi
11166    fi
11167  else
11168    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11169$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11170  fi
11171fi
11172rm -f confcache
11173
11174test "x$prefix" = xNONE && prefix=$ac_default_prefix
11175# Let make expand exec_prefix.
11176test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11177
11178DEFS=-DHAVE_CONFIG_H
11179
11180ac_libobjs=
11181ac_ltlibobjs=
11182U=
11183for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11184  # 1. Remove the extension, and $U if already installed.
11185  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11186  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11187  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11188  #    will be set to the directory where LIBOBJS objects are built.
11189  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11190  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11191done
11192LIBOBJS=$ac_libobjs
11193
11194LTLIBOBJS=$ac_ltlibobjs
11195
11196
11197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11198$as_echo_n "checking that generated files are newer than configure... " >&6; }
11199   if test -n "$am_sleep_pid"; then
11200     # Hide warnings about reused PIDs.
11201     wait $am_sleep_pid 2>/dev/null
11202   fi
11203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11204$as_echo "done" >&6; }
11205 if test -n "$EXEEXT"; then
11206  am__EXEEXT_TRUE=
11207  am__EXEEXT_FALSE='#'
11208else
11209  am__EXEEXT_TRUE='#'
11210  am__EXEEXT_FALSE=
11211fi
11212
11213if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11214  as_fn_error $? "conditional \"AMDEP\" was never defined.
11215Usually this means the macro was only invoked conditionally." "$LINENO" 5
11216fi
11217if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11218  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11219Usually this means the macro was only invoked conditionally." "$LINENO" 5
11220fi
11221
11222: "${CONFIG_STATUS=./config.status}"
11223ac_write_fail=0
11224ac_clean_files_save=$ac_clean_files
11225ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11226{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11227$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11228as_write_fail=0
11229cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11230#! $SHELL
11231# Generated by $as_me.
11232# Run this file to recreate the current configuration.
11233# Compiler output produced by configure, useful for debugging
11234# configure, is in config.log if it exists.
11235
11236debug=false
11237ac_cs_recheck=false
11238ac_cs_silent=false
11239
11240SHELL=\${CONFIG_SHELL-$SHELL}
11241export SHELL
11242_ASEOF
11243cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11244## -------------------- ##
11245## M4sh Initialization. ##
11246## -------------------- ##
11247
11248# Be more Bourne compatible
11249DUALCASE=1; export DUALCASE # for MKS sh
11250if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11251  emulate sh
11252  NULLCMD=:
11253  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11254  # is contrary to our usage.  Disable this feature.
11255  alias -g '${1+"$@"}'='"$@"'
11256  setopt NO_GLOB_SUBST
11257else
11258  case `(set -o) 2>/dev/null` in #(
11259  *posix*) :
11260    set -o posix ;; #(
11261  *) :
11262     ;;
11263esac
11264fi
11265
11266
11267as_nl='
11268'
11269export as_nl
11270# Printing a long string crashes Solaris 7 /usr/bin/printf.
11271as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11272as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11273as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11274# Prefer a ksh shell builtin over an external printf program on Solaris,
11275# but without wasting forks for bash or zsh.
11276if test -z "$BASH_VERSION$ZSH_VERSION" \
11277    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11278  as_echo='print -r --'
11279  as_echo_n='print -rn --'
11280elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11281  as_echo='printf %s\n'
11282  as_echo_n='printf %s'
11283else
11284  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11285    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11286    as_echo_n='/usr/ucb/echo -n'
11287  else
11288    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11289    as_echo_n_body='eval
11290      arg=$1;
11291      case $arg in #(
11292      *"$as_nl"*)
11293	expr "X$arg" : "X\\(.*\\)$as_nl";
11294	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11295      esac;
11296      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11297    '
11298    export as_echo_n_body
11299    as_echo_n='sh -c $as_echo_n_body as_echo'
11300  fi
11301  export as_echo_body
11302  as_echo='sh -c $as_echo_body as_echo'
11303fi
11304
11305# The user is always right.
11306if test "${PATH_SEPARATOR+set}" != set; then
11307  PATH_SEPARATOR=:
11308  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11309    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11310      PATH_SEPARATOR=';'
11311  }
11312fi
11313
11314
11315# IFS
11316# We need space, tab and new line, in precisely that order.  Quoting is
11317# there to prevent editors from complaining about space-tab.
11318# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11319# splitting by setting IFS to empty value.)
11320IFS=" ""	$as_nl"
11321
11322# Find who we are.  Look in the path if we contain no directory separator.
11323as_myself=
11324case $0 in #((
11325  *[\\/]* ) as_myself=$0 ;;
11326  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11327for as_dir in $PATH
11328do
11329  IFS=$as_save_IFS
11330  test -z "$as_dir" && as_dir=.
11331    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11332  done
11333IFS=$as_save_IFS
11334
11335     ;;
11336esac
11337# We did not find ourselves, most probably we were run as `sh COMMAND'
11338# in which case we are not to be found in the path.
11339if test "x$as_myself" = x; then
11340  as_myself=$0
11341fi
11342if test ! -f "$as_myself"; then
11343  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11344  exit 1
11345fi
11346
11347# Unset variables that we do not need and which cause bugs (e.g. in
11348# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11349# suppresses any "Segmentation fault" message there.  '((' could
11350# trigger a bug in pdksh 5.2.14.
11351for as_var in BASH_ENV ENV MAIL MAILPATH
11352do eval test x\${$as_var+set} = xset \
11353  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11354done
11355PS1='$ '
11356PS2='> '
11357PS4='+ '
11358
11359# NLS nuisances.
11360LC_ALL=C
11361export LC_ALL
11362LANGUAGE=C
11363export LANGUAGE
11364
11365# CDPATH.
11366(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11367
11368
11369# as_fn_error STATUS ERROR [LINENO LOG_FD]
11370# ----------------------------------------
11371# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11372# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11373# script with STATUS, using 1 if that was 0.
11374as_fn_error ()
11375{
11376  as_status=$1; test $as_status -eq 0 && as_status=1
11377  if test "$4"; then
11378    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11379    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11380  fi
11381  $as_echo "$as_me: error: $2" >&2
11382  as_fn_exit $as_status
11383} # as_fn_error
11384
11385
11386# as_fn_set_status STATUS
11387# -----------------------
11388# Set $? to STATUS, without forking.
11389as_fn_set_status ()
11390{
11391  return $1
11392} # as_fn_set_status
11393
11394# as_fn_exit STATUS
11395# -----------------
11396# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11397as_fn_exit ()
11398{
11399  set +e
11400  as_fn_set_status $1
11401  exit $1
11402} # as_fn_exit
11403
11404# as_fn_unset VAR
11405# ---------------
11406# Portably unset VAR.
11407as_fn_unset ()
11408{
11409  { eval $1=; unset $1;}
11410}
11411as_unset=as_fn_unset
11412# as_fn_append VAR VALUE
11413# ----------------------
11414# Append the text in VALUE to the end of the definition contained in VAR. Take
11415# advantage of any shell optimizations that allow amortized linear growth over
11416# repeated appends, instead of the typical quadratic growth present in naive
11417# implementations.
11418if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11419  eval 'as_fn_append ()
11420  {
11421    eval $1+=\$2
11422  }'
11423else
11424  as_fn_append ()
11425  {
11426    eval $1=\$$1\$2
11427  }
11428fi # as_fn_append
11429
11430# as_fn_arith ARG...
11431# ------------------
11432# Perform arithmetic evaluation on the ARGs, and store the result in the
11433# global $as_val. Take advantage of shells that can avoid forks. The arguments
11434# must be portable across $(()) and expr.
11435if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11436  eval 'as_fn_arith ()
11437  {
11438    as_val=$(( $* ))
11439  }'
11440else
11441  as_fn_arith ()
11442  {
11443    as_val=`expr "$@" || test $? -eq 1`
11444  }
11445fi # as_fn_arith
11446
11447
11448if expr a : '\(a\)' >/dev/null 2>&1 &&
11449   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11450  as_expr=expr
11451else
11452  as_expr=false
11453fi
11454
11455if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11456  as_basename=basename
11457else
11458  as_basename=false
11459fi
11460
11461if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11462  as_dirname=dirname
11463else
11464  as_dirname=false
11465fi
11466
11467as_me=`$as_basename -- "$0" ||
11468$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11469	 X"$0" : 'X\(//\)$' \| \
11470	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11471$as_echo X/"$0" |
11472    sed '/^.*\/\([^/][^/]*\)\/*$/{
11473	    s//\1/
11474	    q
11475	  }
11476	  /^X\/\(\/\/\)$/{
11477	    s//\1/
11478	    q
11479	  }
11480	  /^X\/\(\/\).*/{
11481	    s//\1/
11482	    q
11483	  }
11484	  s/.*/./; q'`
11485
11486# Avoid depending upon Character Ranges.
11487as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11488as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11489as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11490as_cr_digits='0123456789'
11491as_cr_alnum=$as_cr_Letters$as_cr_digits
11492
11493ECHO_C= ECHO_N= ECHO_T=
11494case `echo -n x` in #(((((
11495-n*)
11496  case `echo 'xy\c'` in
11497  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11498  xy)  ECHO_C='\c';;
11499  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11500       ECHO_T='	';;
11501  esac;;
11502*)
11503  ECHO_N='-n';;
11504esac
11505
11506rm -f conf$$ conf$$.exe conf$$.file
11507if test -d conf$$.dir; then
11508  rm -f conf$$.dir/conf$$.file
11509else
11510  rm -f conf$$.dir
11511  mkdir conf$$.dir 2>/dev/null
11512fi
11513if (echo >conf$$.file) 2>/dev/null; then
11514  if ln -s conf$$.file conf$$ 2>/dev/null; then
11515    as_ln_s='ln -s'
11516    # ... but there are two gotchas:
11517    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11518    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11519    # In both cases, we have to default to `cp -pR'.
11520    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11521      as_ln_s='cp -pR'
11522  elif ln conf$$.file conf$$ 2>/dev/null; then
11523    as_ln_s=ln
11524  else
11525    as_ln_s='cp -pR'
11526  fi
11527else
11528  as_ln_s='cp -pR'
11529fi
11530rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11531rmdir conf$$.dir 2>/dev/null
11532
11533
11534# as_fn_mkdir_p
11535# -------------
11536# Create "$as_dir" as a directory, including parents if necessary.
11537as_fn_mkdir_p ()
11538{
11539
11540  case $as_dir in #(
11541  -*) as_dir=./$as_dir;;
11542  esac
11543  test -d "$as_dir" || eval $as_mkdir_p || {
11544    as_dirs=
11545    while :; do
11546      case $as_dir in #(
11547      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11548      *) as_qdir=$as_dir;;
11549      esac
11550      as_dirs="'$as_qdir' $as_dirs"
11551      as_dir=`$as_dirname -- "$as_dir" ||
11552$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11553	 X"$as_dir" : 'X\(//\)[^/]' \| \
11554	 X"$as_dir" : 'X\(//\)$' \| \
11555	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11556$as_echo X"$as_dir" |
11557    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11558	    s//\1/
11559	    q
11560	  }
11561	  /^X\(\/\/\)[^/].*/{
11562	    s//\1/
11563	    q
11564	  }
11565	  /^X\(\/\/\)$/{
11566	    s//\1/
11567	    q
11568	  }
11569	  /^X\(\/\).*/{
11570	    s//\1/
11571	    q
11572	  }
11573	  s/.*/./; q'`
11574      test -d "$as_dir" && break
11575    done
11576    test -z "$as_dirs" || eval "mkdir $as_dirs"
11577  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11578
11579
11580} # as_fn_mkdir_p
11581if mkdir -p . 2>/dev/null; then
11582  as_mkdir_p='mkdir -p "$as_dir"'
11583else
11584  test -d ./-p && rmdir ./-p
11585  as_mkdir_p=false
11586fi
11587
11588
11589# as_fn_executable_p FILE
11590# -----------------------
11591# Test if FILE is an executable regular file.
11592as_fn_executable_p ()
11593{
11594  test -f "$1" && test -x "$1"
11595} # as_fn_executable_p
11596as_test_x='test -x'
11597as_executable_p=as_fn_executable_p
11598
11599# Sed expression to map a string onto a valid CPP name.
11600as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11601
11602# Sed expression to map a string onto a valid variable name.
11603as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11604
11605
11606exec 6>&1
11607## ----------------------------------- ##
11608## Main body of $CONFIG_STATUS script. ##
11609## ----------------------------------- ##
11610_ASEOF
11611test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11612
11613cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11614# Save the log message, to keep $0 and so on meaningful, and to
11615# report actual input values of CONFIG_FILES etc. instead of their
11616# values after options handling.
11617ac_log="
11618This file was extended by x11perf $as_me 1.6.1, which was
11619generated by GNU Autoconf 2.69.  Invocation command line was
11620
11621  CONFIG_FILES    = $CONFIG_FILES
11622  CONFIG_HEADERS  = $CONFIG_HEADERS
11623  CONFIG_LINKS    = $CONFIG_LINKS
11624  CONFIG_COMMANDS = $CONFIG_COMMANDS
11625  $ $0 $@
11626
11627on `(hostname || uname -n) 2>/dev/null | sed 1q`
11628"
11629
11630_ACEOF
11631
11632case $ac_config_files in *"
11633"*) set x $ac_config_files; shift; ac_config_files=$*;;
11634esac
11635
11636case $ac_config_headers in *"
11637"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11638esac
11639
11640
11641cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11642# Files that config.status was made for.
11643config_files="$ac_config_files"
11644config_headers="$ac_config_headers"
11645config_commands="$ac_config_commands"
11646
11647_ACEOF
11648
11649cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11650ac_cs_usage="\
11651\`$as_me' instantiates files and other configuration actions
11652from templates according to the current configuration.  Unless the files
11653and actions are specified as TAGs, all are instantiated by default.
11654
11655Usage: $0 [OPTION]... [TAG]...
11656
11657  -h, --help       print this help, then exit
11658  -V, --version    print version number and configuration settings, then exit
11659      --config     print configuration, then exit
11660  -q, --quiet, --silent
11661                   do not print progress messages
11662  -d, --debug      don't remove temporary files
11663      --recheck    update $as_me by reconfiguring in the same conditions
11664      --file=FILE[:TEMPLATE]
11665                   instantiate the configuration file FILE
11666      --header=FILE[:TEMPLATE]
11667                   instantiate the configuration header FILE
11668
11669Configuration files:
11670$config_files
11671
11672Configuration headers:
11673$config_headers
11674
11675Configuration commands:
11676$config_commands
11677
11678Report bugs to <https://gitlab.freedesktop.org/xorg/test/x11perf/issues>."
11679
11680_ACEOF
11681cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11682ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11683ac_cs_version="\\
11684x11perf config.status 1.6.1
11685configured by $0, generated by GNU Autoconf 2.69,
11686  with options \\"\$ac_cs_config\\"
11687
11688Copyright (C) 2012 Free Software Foundation, Inc.
11689This config.status script is free software; the Free Software Foundation
11690gives unlimited permission to copy, distribute and modify it."
11691
11692ac_pwd='$ac_pwd'
11693srcdir='$srcdir'
11694INSTALL='$INSTALL'
11695MKDIR_P='$MKDIR_P'
11696AWK='$AWK'
11697test -n "\$AWK" || AWK=awk
11698_ACEOF
11699
11700cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11701# The default lists apply if the user does not specify any file.
11702ac_need_defaults=:
11703while test $# != 0
11704do
11705  case $1 in
11706  --*=?*)
11707    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11708    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11709    ac_shift=:
11710    ;;
11711  --*=)
11712    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11713    ac_optarg=
11714    ac_shift=:
11715    ;;
11716  *)
11717    ac_option=$1
11718    ac_optarg=$2
11719    ac_shift=shift
11720    ;;
11721  esac
11722
11723  case $ac_option in
11724  # Handling of the options.
11725  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11726    ac_cs_recheck=: ;;
11727  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11728    $as_echo "$ac_cs_version"; exit ;;
11729  --config | --confi | --conf | --con | --co | --c )
11730    $as_echo "$ac_cs_config"; exit ;;
11731  --debug | --debu | --deb | --de | --d | -d )
11732    debug=: ;;
11733  --file | --fil | --fi | --f )
11734    $ac_shift
11735    case $ac_optarg in
11736    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11737    '') as_fn_error $? "missing file argument" ;;
11738    esac
11739    as_fn_append CONFIG_FILES " '$ac_optarg'"
11740    ac_need_defaults=false;;
11741  --header | --heade | --head | --hea )
11742    $ac_shift
11743    case $ac_optarg in
11744    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11745    esac
11746    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11747    ac_need_defaults=false;;
11748  --he | --h)
11749    # Conflict between --help and --header
11750    as_fn_error $? "ambiguous option: \`$1'
11751Try \`$0 --help' for more information.";;
11752  --help | --hel | -h )
11753    $as_echo "$ac_cs_usage"; exit ;;
11754  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11755  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11756    ac_cs_silent=: ;;
11757
11758  # This is an error.
11759  -*) as_fn_error $? "unrecognized option: \`$1'
11760Try \`$0 --help' for more information." ;;
11761
11762  *) as_fn_append ac_config_targets " $1"
11763     ac_need_defaults=false ;;
11764
11765  esac
11766  shift
11767done
11768
11769ac_configure_extra_args=
11770
11771if $ac_cs_silent; then
11772  exec 6>/dev/null
11773  ac_configure_extra_args="$ac_configure_extra_args --silent"
11774fi
11775
11776_ACEOF
11777cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11778if \$ac_cs_recheck; then
11779  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11780  shift
11781  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11782  CONFIG_SHELL='$SHELL'
11783  export CONFIG_SHELL
11784  exec "\$@"
11785fi
11786
11787_ACEOF
11788cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11789exec 5>>config.log
11790{
11791  echo
11792  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11793## Running $as_me. ##
11794_ASBOX
11795  $as_echo "$ac_log"
11796} >&5
11797
11798_ACEOF
11799cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11800#
11801# INIT-COMMANDS
11802#
11803AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11804
11805_ACEOF
11806
11807cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11808
11809# Handling of arguments.
11810for ac_config_target in $ac_config_targets
11811do
11812  case $ac_config_target in
11813    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11814    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11815    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11816    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11817
11818  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11819  esac
11820done
11821
11822
11823# If the user did not use the arguments to specify the items to instantiate,
11824# then the envvar interface is used.  Set only those that are not.
11825# We use the long form for the default assignment because of an extremely
11826# bizarre bug on SunOS 4.1.3.
11827if $ac_need_defaults; then
11828  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11829  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11830  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11831fi
11832
11833# Have a temporary directory for convenience.  Make it in the build tree
11834# simply because there is no reason against having it here, and in addition,
11835# creating and moving files from /tmp can sometimes cause problems.
11836# Hook for its removal unless debugging.
11837# Note that there is a small window in which the directory will not be cleaned:
11838# after its creation but before its name has been assigned to `$tmp'.
11839$debug ||
11840{
11841  tmp= ac_tmp=
11842  trap 'exit_status=$?
11843  : "${ac_tmp:=$tmp}"
11844  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11845' 0
11846  trap 'as_fn_exit 1' 1 2 13 15
11847}
11848# Create a (secure) tmp directory for tmp files.
11849
11850{
11851  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11852  test -d "$tmp"
11853}  ||
11854{
11855  tmp=./conf$$-$RANDOM
11856  (umask 077 && mkdir "$tmp")
11857} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11858ac_tmp=$tmp
11859
11860# Set up the scripts for CONFIG_FILES section.
11861# No need to generate them if there are no CONFIG_FILES.
11862# This happens for instance with `./config.status config.h'.
11863if test -n "$CONFIG_FILES"; then
11864
11865
11866ac_cr=`echo X | tr X '\015'`
11867# On cygwin, bash can eat \r inside `` if the user requested igncr.
11868# But we know of no other shell where ac_cr would be empty at this
11869# point, so we can use a bashism as a fallback.
11870if test "x$ac_cr" = x; then
11871  eval ac_cr=\$\'\\r\'
11872fi
11873ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11874if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11875  ac_cs_awk_cr='\\r'
11876else
11877  ac_cs_awk_cr=$ac_cr
11878fi
11879
11880echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11881_ACEOF
11882
11883
11884{
11885  echo "cat >conf$$subs.awk <<_ACEOF" &&
11886  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11887  echo "_ACEOF"
11888} >conf$$subs.sh ||
11889  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11890ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11891ac_delim='%!_!# '
11892for ac_last_try in false false false false false :; do
11893  . ./conf$$subs.sh ||
11894    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11895
11896  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11897  if test $ac_delim_n = $ac_delim_num; then
11898    break
11899  elif $ac_last_try; then
11900    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11901  else
11902    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11903  fi
11904done
11905rm -f conf$$subs.sh
11906
11907cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11908cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11909_ACEOF
11910sed -n '
11911h
11912s/^/S["/; s/!.*/"]=/
11913p
11914g
11915s/^[^!]*!//
11916:repl
11917t repl
11918s/'"$ac_delim"'$//
11919t delim
11920:nl
11921h
11922s/\(.\{148\}\)..*/\1/
11923t more1
11924s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11925p
11926n
11927b repl
11928:more1
11929s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11930p
11931g
11932s/.\{148\}//
11933t nl
11934:delim
11935h
11936s/\(.\{148\}\)..*/\1/
11937t more2
11938s/["\\]/\\&/g; s/^/"/; s/$/"/
11939p
11940b
11941:more2
11942s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11943p
11944g
11945s/.\{148\}//
11946t delim
11947' <conf$$subs.awk | sed '
11948/^[^""]/{
11949  N
11950  s/\n//
11951}
11952' >>$CONFIG_STATUS || ac_write_fail=1
11953rm -f conf$$subs.awk
11954cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11955_ACAWK
11956cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11957  for (key in S) S_is_set[key] = 1
11958  FS = ""
11959
11960}
11961{
11962  line = $ 0
11963  nfields = split(line, field, "@")
11964  substed = 0
11965  len = length(field[1])
11966  for (i = 2; i < nfields; i++) {
11967    key = field[i]
11968    keylen = length(key)
11969    if (S_is_set[key]) {
11970      value = S[key]
11971      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11972      len += length(value) + length(field[++i])
11973      substed = 1
11974    } else
11975      len += 1 + keylen
11976  }
11977
11978  print line
11979}
11980
11981_ACAWK
11982_ACEOF
11983cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11984if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11985  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11986else
11987  cat
11988fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11989  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11990_ACEOF
11991
11992# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11993# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11994# trailing colons and then remove the whole line if VPATH becomes empty
11995# (actually we leave an empty line to preserve line numbers).
11996if test "x$srcdir" = x.; then
11997  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
11998h
11999s///
12000s/^/:/
12001s/[	 ]*$/:/
12002s/:\$(srcdir):/:/g
12003s/:\${srcdir}:/:/g
12004s/:@srcdir@:/:/g
12005s/^:*//
12006s/:*$//
12007x
12008s/\(=[	 ]*\).*/\1/
12009G
12010s/\n//
12011s/^[^=]*=[	 ]*$//
12012}'
12013fi
12014
12015cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12016fi # test -n "$CONFIG_FILES"
12017
12018# Set up the scripts for CONFIG_HEADERS section.
12019# No need to generate them if there are no CONFIG_HEADERS.
12020# This happens for instance with `./config.status Makefile'.
12021if test -n "$CONFIG_HEADERS"; then
12022cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12023BEGIN {
12024_ACEOF
12025
12026# Transform confdefs.h into an awk script `defines.awk', embedded as
12027# here-document in config.status, that substitutes the proper values into
12028# config.h.in to produce config.h.
12029
12030# Create a delimiter string that does not exist in confdefs.h, to ease
12031# handling of long lines.
12032ac_delim='%!_!# '
12033for ac_last_try in false false :; do
12034  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12035  if test -z "$ac_tt"; then
12036    break
12037  elif $ac_last_try; then
12038    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12039  else
12040    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12041  fi
12042done
12043
12044# For the awk script, D is an array of macro values keyed by name,
12045# likewise P contains macro parameters if any.  Preserve backslash
12046# newline sequences.
12047
12048ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12049sed -n '
12050s/.\{148\}/&'"$ac_delim"'/g
12051t rset
12052:rset
12053s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12054t def
12055d
12056:def
12057s/\\$//
12058t bsnl
12059s/["\\]/\\&/g
12060s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12061D["\1"]=" \3"/p
12062s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12063d
12064:bsnl
12065s/["\\]/\\&/g
12066s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12067D["\1"]=" \3\\\\\\n"\\/p
12068t cont
12069s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12070t cont
12071d
12072:cont
12073n
12074s/.\{148\}/&'"$ac_delim"'/g
12075t clear
12076:clear
12077s/\\$//
12078t bsnlc
12079s/["\\]/\\&/g; s/^/"/; s/$/"/p
12080d
12081:bsnlc
12082s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12083b cont
12084' <confdefs.h | sed '
12085s/'"$ac_delim"'/"\\\
12086"/g' >>$CONFIG_STATUS || ac_write_fail=1
12087
12088cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12089  for (key in D) D_is_set[key] = 1
12090  FS = ""
12091}
12092/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12093  line = \$ 0
12094  split(line, arg, " ")
12095  if (arg[1] == "#") {
12096    defundef = arg[2]
12097    mac1 = arg[3]
12098  } else {
12099    defundef = substr(arg[1], 2)
12100    mac1 = arg[2]
12101  }
12102  split(mac1, mac2, "(") #)
12103  macro = mac2[1]
12104  prefix = substr(line, 1, index(line, defundef) - 1)
12105  if (D_is_set[macro]) {
12106    # Preserve the white space surrounding the "#".
12107    print prefix "define", macro P[macro] D[macro]
12108    next
12109  } else {
12110    # Replace #undef with comments.  This is necessary, for example,
12111    # in the case of _POSIX_SOURCE, which is predefined and required
12112    # on some systems where configure will not decide to define it.
12113    if (defundef == "undef") {
12114      print "/*", prefix defundef, macro, "*/"
12115      next
12116    }
12117  }
12118}
12119{ print }
12120_ACAWK
12121_ACEOF
12122cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12123  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12124fi # test -n "$CONFIG_HEADERS"
12125
12126
12127eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12128shift
12129for ac_tag
12130do
12131  case $ac_tag in
12132  :[FHLC]) ac_mode=$ac_tag; continue;;
12133  esac
12134  case $ac_mode$ac_tag in
12135  :[FHL]*:*);;
12136  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12137  :[FH]-) ac_tag=-:-;;
12138  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12139  esac
12140  ac_save_IFS=$IFS
12141  IFS=:
12142  set x $ac_tag
12143  IFS=$ac_save_IFS
12144  shift
12145  ac_file=$1
12146  shift
12147
12148  case $ac_mode in
12149  :L) ac_source=$1;;
12150  :[FH])
12151    ac_file_inputs=
12152    for ac_f
12153    do
12154      case $ac_f in
12155      -) ac_f="$ac_tmp/stdin";;
12156      *) # Look for the file first in the build tree, then in the source tree
12157	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12158	 # because $ac_f cannot contain `:'.
12159	 test -f "$ac_f" ||
12160	   case $ac_f in
12161	   [\\/$]*) false;;
12162	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12163	   esac ||
12164	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12165      esac
12166      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12167      as_fn_append ac_file_inputs " '$ac_f'"
12168    done
12169
12170    # Let's still pretend it is `configure' which instantiates (i.e., don't
12171    # use $as_me), people would be surprised to read:
12172    #    /* config.h.  Generated by config.status.  */
12173    configure_input='Generated from '`
12174	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12175	`' by configure.'
12176    if test x"$ac_file" != x-; then
12177      configure_input="$ac_file.  $configure_input"
12178      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12179$as_echo "$as_me: creating $ac_file" >&6;}
12180    fi
12181    # Neutralize special characters interpreted by sed in replacement strings.
12182    case $configure_input in #(
12183    *\&* | *\|* | *\\* )
12184       ac_sed_conf_input=`$as_echo "$configure_input" |
12185       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12186    *) ac_sed_conf_input=$configure_input;;
12187    esac
12188
12189    case $ac_tag in
12190    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12191      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12192    esac
12193    ;;
12194  esac
12195
12196  ac_dir=`$as_dirname -- "$ac_file" ||
12197$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12198	 X"$ac_file" : 'X\(//\)[^/]' \| \
12199	 X"$ac_file" : 'X\(//\)$' \| \
12200	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12201$as_echo X"$ac_file" |
12202    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12203	    s//\1/
12204	    q
12205	  }
12206	  /^X\(\/\/\)[^/].*/{
12207	    s//\1/
12208	    q
12209	  }
12210	  /^X\(\/\/\)$/{
12211	    s//\1/
12212	    q
12213	  }
12214	  /^X\(\/\).*/{
12215	    s//\1/
12216	    q
12217	  }
12218	  s/.*/./; q'`
12219  as_dir="$ac_dir"; as_fn_mkdir_p
12220  ac_builddir=.
12221
12222case "$ac_dir" in
12223.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12224*)
12225  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12226  # A ".." for each directory in $ac_dir_suffix.
12227  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12228  case $ac_top_builddir_sub in
12229  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12230  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12231  esac ;;
12232esac
12233ac_abs_top_builddir=$ac_pwd
12234ac_abs_builddir=$ac_pwd$ac_dir_suffix
12235# for backward compatibility:
12236ac_top_builddir=$ac_top_build_prefix
12237
12238case $srcdir in
12239  .)  # We are building in place.
12240    ac_srcdir=.
12241    ac_top_srcdir=$ac_top_builddir_sub
12242    ac_abs_top_srcdir=$ac_pwd ;;
12243  [\\/]* | ?:[\\/]* )  # Absolute name.
12244    ac_srcdir=$srcdir$ac_dir_suffix;
12245    ac_top_srcdir=$srcdir
12246    ac_abs_top_srcdir=$srcdir ;;
12247  *) # Relative name.
12248    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12249    ac_top_srcdir=$ac_top_build_prefix$srcdir
12250    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12251esac
12252ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12253
12254
12255  case $ac_mode in
12256  :F)
12257  #
12258  # CONFIG_FILE
12259  #
12260
12261  case $INSTALL in
12262  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12263  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12264  esac
12265  ac_MKDIR_P=$MKDIR_P
12266  case $MKDIR_P in
12267  [\\/$]* | ?:[\\/]* ) ;;
12268  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12269  esac
12270_ACEOF
12271
12272cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12273# If the template does not know about datarootdir, expand it.
12274# FIXME: This hack should be removed a few years after 2.60.
12275ac_datarootdir_hack=; ac_datarootdir_seen=
12276ac_sed_dataroot='
12277/datarootdir/ {
12278  p
12279  q
12280}
12281/@datadir@/p
12282/@docdir@/p
12283/@infodir@/p
12284/@localedir@/p
12285/@mandir@/p'
12286case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12287*datarootdir*) ac_datarootdir_seen=yes;;
12288*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12289  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12290$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12291_ACEOF
12292cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12293  ac_datarootdir_hack='
12294  s&@datadir@&$datadir&g
12295  s&@docdir@&$docdir&g
12296  s&@infodir@&$infodir&g
12297  s&@localedir@&$localedir&g
12298  s&@mandir@&$mandir&g
12299  s&\\\${datarootdir}&$datarootdir&g' ;;
12300esac
12301_ACEOF
12302
12303# Neutralize VPATH when `$srcdir' = `.'.
12304# Shell code in configure.ac might set extrasub.
12305# FIXME: do we really want to maintain this feature?
12306cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12307ac_sed_extra="$ac_vpsub
12308$extrasub
12309_ACEOF
12310cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12311:t
12312/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12313s|@configure_input@|$ac_sed_conf_input|;t t
12314s&@top_builddir@&$ac_top_builddir_sub&;t t
12315s&@top_build_prefix@&$ac_top_build_prefix&;t t
12316s&@srcdir@&$ac_srcdir&;t t
12317s&@abs_srcdir@&$ac_abs_srcdir&;t t
12318s&@top_srcdir@&$ac_top_srcdir&;t t
12319s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12320s&@builddir@&$ac_builddir&;t t
12321s&@abs_builddir@&$ac_abs_builddir&;t t
12322s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12323s&@INSTALL@&$ac_INSTALL&;t t
12324s&@MKDIR_P@&$ac_MKDIR_P&;t t
12325$ac_datarootdir_hack
12326"
12327eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12328  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12329
12330test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12331  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12332  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12333      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12334  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12335which seems to be undefined.  Please make sure it is defined" >&5
12336$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12337which seems to be undefined.  Please make sure it is defined" >&2;}
12338
12339  rm -f "$ac_tmp/stdin"
12340  case $ac_file in
12341  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12342  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12343  esac \
12344  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12345 ;;
12346  :H)
12347  #
12348  # CONFIG_HEADER
12349  #
12350  if test x"$ac_file" != x-; then
12351    {
12352      $as_echo "/* $configure_input  */" \
12353      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12354    } >"$ac_tmp/config.h" \
12355      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12356    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12357      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12358$as_echo "$as_me: $ac_file is unchanged" >&6;}
12359    else
12360      rm -f "$ac_file"
12361      mv "$ac_tmp/config.h" "$ac_file" \
12362	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12363    fi
12364  else
12365    $as_echo "/* $configure_input  */" \
12366      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12367      || as_fn_error $? "could not create -" "$LINENO" 5
12368  fi
12369# Compute "$ac_file"'s index in $config_headers.
12370_am_arg="$ac_file"
12371_am_stamp_count=1
12372for _am_header in $config_headers :; do
12373  case $_am_header in
12374    $_am_arg | $_am_arg:* )
12375      break ;;
12376    * )
12377      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12378  esac
12379done
12380echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12381$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12382	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12383	 X"$_am_arg" : 'X\(//\)$' \| \
12384	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12385$as_echo X"$_am_arg" |
12386    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12387	    s//\1/
12388	    q
12389	  }
12390	  /^X\(\/\/\)[^/].*/{
12391	    s//\1/
12392	    q
12393	  }
12394	  /^X\(\/\/\)$/{
12395	    s//\1/
12396	    q
12397	  }
12398	  /^X\(\/\).*/{
12399	    s//\1/
12400	    q
12401	  }
12402	  s/.*/./; q'`/stamp-h$_am_stamp_count
12403 ;;
12404
12405  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12406$as_echo "$as_me: executing $ac_file commands" >&6;}
12407 ;;
12408  esac
12409
12410
12411  case $ac_file$ac_mode in
12412    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12413  # Older Autoconf quotes --file arguments for eval, but not when files
12414  # are listed without --file.  Let's play safe and only enable the eval
12415  # if we detect the quoting.
12416  case $CONFIG_FILES in
12417  *\'*) eval set x "$CONFIG_FILES" ;;
12418  *)   set x $CONFIG_FILES ;;
12419  esac
12420  shift
12421  for mf
12422  do
12423    # Strip MF so we end up with the name of the file.
12424    mf=`echo "$mf" | sed -e 's/:.*$//'`
12425    # Check whether this is an Automake generated Makefile or not.
12426    # We used to match only the files named 'Makefile.in', but
12427    # some people rename them; so instead we look at the file content.
12428    # Grep'ing the first line is not enough: some people post-process
12429    # each Makefile.in and add a new line on top of each file to say so.
12430    # Grep'ing the whole file is not good either: AIX grep has a line
12431    # limit of 2048, but all sed's we know have understand at least 4000.
12432    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12433      dirpart=`$as_dirname -- "$mf" ||
12434$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12435	 X"$mf" : 'X\(//\)[^/]' \| \
12436	 X"$mf" : 'X\(//\)$' \| \
12437	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12438$as_echo X"$mf" |
12439    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12440	    s//\1/
12441	    q
12442	  }
12443	  /^X\(\/\/\)[^/].*/{
12444	    s//\1/
12445	    q
12446	  }
12447	  /^X\(\/\/\)$/{
12448	    s//\1/
12449	    q
12450	  }
12451	  /^X\(\/\).*/{
12452	    s//\1/
12453	    q
12454	  }
12455	  s/.*/./; q'`
12456    else
12457      continue
12458    fi
12459    # Extract the definition of DEPDIR, am__include, and am__quote
12460    # from the Makefile without running 'make'.
12461    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12462    test -z "$DEPDIR" && continue
12463    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12464    test -z "$am__include" && continue
12465    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12466    # Find all dependency output files, they are included files with
12467    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12468    # simplest approach to changing $(DEPDIR) to its actual value in the
12469    # expansion.
12470    for file in `sed -n "
12471      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12472	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12473      # Make sure the directory exists.
12474      test -f "$dirpart/$file" && continue
12475      fdir=`$as_dirname -- "$file" ||
12476$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12477	 X"$file" : 'X\(//\)[^/]' \| \
12478	 X"$file" : 'X\(//\)$' \| \
12479	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12480$as_echo X"$file" |
12481    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12482	    s//\1/
12483	    q
12484	  }
12485	  /^X\(\/\/\)[^/].*/{
12486	    s//\1/
12487	    q
12488	  }
12489	  /^X\(\/\/\)$/{
12490	    s//\1/
12491	    q
12492	  }
12493	  /^X\(\/\).*/{
12494	    s//\1/
12495	    q
12496	  }
12497	  s/.*/./; q'`
12498      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12499      # echo "creating $dirpart/$file"
12500      echo '# dummy' > "$dirpart/$file"
12501    done
12502  done
12503}
12504 ;;
12505
12506  esac
12507done # for ac_tag
12508
12509
12510as_fn_exit 0
12511_ACEOF
12512ac_clean_files=$ac_clean_files_save
12513
12514test $ac_write_fail = 0 ||
12515  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12516
12517
12518# configure is writing to config.log, and then calls config.status.
12519# config.status does its own redirection, appending to config.log.
12520# Unfortunately, on DOS this fails, as config.log is still kept open
12521# by configure, so config.status won't be able to write to it; its
12522# output is simply discarded.  So we exec the FD to /dev/null,
12523# effectively closing config.log, so it can be properly (re)opened and
12524# appended to by config.status.  When coming back to configure, we
12525# need to make the FD available again.
12526if test "$no_create" != yes; then
12527  ac_cs_success=:
12528  ac_config_status_args=
12529  test "$silent" = yes &&
12530    ac_config_status_args="$ac_config_status_args --quiet"
12531  exec 5>/dev/null
12532  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12533  exec 5>>config.log
12534  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12535  # would make configure fail if this is the last instruction.
12536  $ac_cs_success || as_fn_exit 1
12537fi
12538if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12539  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12540$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12541fi
12542
12543