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