configure revision c74b14bd
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xrdb 1.1.1.
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='xrdb'
583PACKAGE_TARNAME='xrdb'
584PACKAGE_VERSION='1.1.1'
585PACKAGE_STRING='xrdb 1.1.1'
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
630XRDB_LIBS
631XRDB_CFLAGS
632CPP_PATH
633MAN_SUBSTS
634XORG_MAN_PAGE
635ADMIN_MAN_DIR
636DRIVER_MAN_DIR
637MISC_MAN_DIR
638FILE_MAN_DIR
639LIB_MAN_DIR
640APP_MAN_DIR
641ADMIN_MAN_SUFFIX
642DRIVER_MAN_SUFFIX
643MISC_MAN_SUFFIX
644FILE_MAN_SUFFIX
645LIB_MAN_SUFFIX
646APP_MAN_SUFFIX
647SED
648host_os
649host_vendor
650host_cpu
651host
652build_os
653build_vendor
654build_cpu
655build
656INSTALL_CMD
657PKG_CONFIG_LIBDIR
658PKG_CONFIG_PATH
659PKG_CONFIG
660CHANGELOG_CMD
661STRICT_CFLAGS
662CWARNFLAGS
663BASE_CFLAGS
664AM_BACKSLASH
665AM_DEFAULT_VERBOSITY
666AM_DEFAULT_V
667AM_V
668am__fastdepCC_FALSE
669am__fastdepCC_TRUE
670CCDEPMODE
671am__nodep
672AMDEPBACKSLASH
673AMDEP_FALSE
674AMDEP_TRUE
675am__quote
676am__include
677DEPDIR
678am__untar
679am__tar
680AMTAR
681am__leading_dot
682SET_MAKE
683AWK
684mkdir_p
685MKDIR_P
686INSTALL_STRIP_PROGRAM
687STRIP
688install_sh
689MAKEINFO
690AUTOHEADER
691AUTOMAKE
692AUTOCONF
693ACLOCAL
694VERSION
695PACKAGE
696CYGPATH_W
697am__isrc
698INSTALL_DATA
699INSTALL_SCRIPT
700INSTALL_PROGRAM
701EGREP
702GREP
703CPP
704OBJEXT
705EXEEXT
706ac_ct_CC
707CPPFLAGS
708LDFLAGS
709CFLAGS
710CC
711target_alias
712host_alias
713build_alias
714LIBS
715ECHO_T
716ECHO_N
717ECHO_C
718DEFS
719mandir
720localedir
721libdir
722psdir
723pdfdir
724dvidir
725htmldir
726infodir
727docdir
728oldincludedir
729includedir
730localstatedir
731sharedstatedir
732sysconfdir
733datadir
734datarootdir
735libexecdir
736sbindir
737bindir
738program_transform_name
739prefix
740exec_prefix
741PACKAGE_URL
742PACKAGE_BUGREPORT
743PACKAGE_STRING
744PACKAGE_VERSION
745PACKAGE_TARNAME
746PACKAGE_NAME
747PATH_SEPARATOR
748SHELL'
749ac_subst_files=''
750ac_user_opts='
751enable_option_checking
752enable_dependency_tracking
753enable_silent_rules
754enable_selective_werror
755enable_strict_compilation
756with_cpp
757'
758      ac_precious_vars='build_alias
759host_alias
760target_alias
761CC
762CFLAGS
763LDFLAGS
764LIBS
765CPPFLAGS
766CPP
767PKG_CONFIG
768PKG_CONFIG_PATH
769PKG_CONFIG_LIBDIR
770XRDB_CFLAGS
771XRDB_LIBS'
772
773
774# Initialize some variables set by options.
775ac_init_help=
776ac_init_version=false
777ac_unrecognized_opts=
778ac_unrecognized_sep=
779# The variables have the same names as the options, with
780# dashes changed to underlines.
781cache_file=/dev/null
782exec_prefix=NONE
783no_create=
784no_recursion=
785prefix=NONE
786program_prefix=NONE
787program_suffix=NONE
788program_transform_name=s,x,x,
789silent=
790site=
791srcdir=
792verbose=
793x_includes=NONE
794x_libraries=NONE
795
796# Installation directory options.
797# These are left unexpanded so users can "make install exec_prefix=/foo"
798# and all the variables that are supposed to be based on exec_prefix
799# by default will actually change.
800# Use braces instead of parens because sh, perl, etc. also accept them.
801# (The list follows the same order as the GNU Coding Standards.)
802bindir='${exec_prefix}/bin'
803sbindir='${exec_prefix}/sbin'
804libexecdir='${exec_prefix}/libexec'
805datarootdir='${prefix}/share'
806datadir='${datarootdir}'
807sysconfdir='${prefix}/etc'
808sharedstatedir='${prefix}/com'
809localstatedir='${prefix}/var'
810includedir='${prefix}/include'
811oldincludedir='/usr/include'
812docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
813infodir='${datarootdir}/info'
814htmldir='${docdir}'
815dvidir='${docdir}'
816pdfdir='${docdir}'
817psdir='${docdir}'
818libdir='${exec_prefix}/lib'
819localedir='${datarootdir}/locale'
820mandir='${datarootdir}/man'
821
822ac_prev=
823ac_dashdash=
824for ac_option
825do
826  # If the previous option needs an argument, assign it.
827  if test -n "$ac_prev"; then
828    eval $ac_prev=\$ac_option
829    ac_prev=
830    continue
831  fi
832
833  case $ac_option in
834  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
835  *=)   ac_optarg= ;;
836  *)    ac_optarg=yes ;;
837  esac
838
839  # Accept the important Cygnus configure options, so we can diagnose typos.
840
841  case $ac_dashdash$ac_option in
842  --)
843    ac_dashdash=yes ;;
844
845  -bindir | --bindir | --bindi | --bind | --bin | --bi)
846    ac_prev=bindir ;;
847  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
848    bindir=$ac_optarg ;;
849
850  -build | --build | --buil | --bui | --bu)
851    ac_prev=build_alias ;;
852  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
853    build_alias=$ac_optarg ;;
854
855  -cache-file | --cache-file | --cache-fil | --cache-fi \
856  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
857    ac_prev=cache_file ;;
858  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
859  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
860    cache_file=$ac_optarg ;;
861
862  --config-cache | -C)
863    cache_file=config.cache ;;
864
865  -datadir | --datadir | --datadi | --datad)
866    ac_prev=datadir ;;
867  -datadir=* | --datadir=* | --datadi=* | --datad=*)
868    datadir=$ac_optarg ;;
869
870  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
871  | --dataroo | --dataro | --datar)
872    ac_prev=datarootdir ;;
873  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
874  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
875    datarootdir=$ac_optarg ;;
876
877  -disable-* | --disable-*)
878    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
879    # Reject names that are not valid shell variable names.
880    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
881      as_fn_error $? "invalid feature name: $ac_useropt"
882    ac_useropt_orig=$ac_useropt
883    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
884    case $ac_user_opts in
885      *"
886"enable_$ac_useropt"
887"*) ;;
888      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
889	 ac_unrecognized_sep=', ';;
890    esac
891    eval enable_$ac_useropt=no ;;
892
893  -docdir | --docdir | --docdi | --doc | --do)
894    ac_prev=docdir ;;
895  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
896    docdir=$ac_optarg ;;
897
898  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
899    ac_prev=dvidir ;;
900  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
901    dvidir=$ac_optarg ;;
902
903  -enable-* | --enable-*)
904    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
905    # Reject names that are not valid shell variable names.
906    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
907      as_fn_error $? "invalid feature name: $ac_useropt"
908    ac_useropt_orig=$ac_useropt
909    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
910    case $ac_user_opts in
911      *"
912"enable_$ac_useropt"
913"*) ;;
914      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
915	 ac_unrecognized_sep=', ';;
916    esac
917    eval enable_$ac_useropt=\$ac_optarg ;;
918
919  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
920  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
921  | --exec | --exe | --ex)
922    ac_prev=exec_prefix ;;
923  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
924  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
925  | --exec=* | --exe=* | --ex=*)
926    exec_prefix=$ac_optarg ;;
927
928  -gas | --gas | --ga | --g)
929    # Obsolete; use --with-gas.
930    with_gas=yes ;;
931
932  -help | --help | --hel | --he | -h)
933    ac_init_help=long ;;
934  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
935    ac_init_help=recursive ;;
936  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
937    ac_init_help=short ;;
938
939  -host | --host | --hos | --ho)
940    ac_prev=host_alias ;;
941  -host=* | --host=* | --hos=* | --ho=*)
942    host_alias=$ac_optarg ;;
943
944  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
945    ac_prev=htmldir ;;
946  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
947  | --ht=*)
948    htmldir=$ac_optarg ;;
949
950  -includedir | --includedir | --includedi | --included | --include \
951  | --includ | --inclu | --incl | --inc)
952    ac_prev=includedir ;;
953  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
954  | --includ=* | --inclu=* | --incl=* | --inc=*)
955    includedir=$ac_optarg ;;
956
957  -infodir | --infodir | --infodi | --infod | --info | --inf)
958    ac_prev=infodir ;;
959  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
960    infodir=$ac_optarg ;;
961
962  -libdir | --libdir | --libdi | --libd)
963    ac_prev=libdir ;;
964  -libdir=* | --libdir=* | --libdi=* | --libd=*)
965    libdir=$ac_optarg ;;
966
967  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
968  | --libexe | --libex | --libe)
969    ac_prev=libexecdir ;;
970  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
971  | --libexe=* | --libex=* | --libe=*)
972    libexecdir=$ac_optarg ;;
973
974  -localedir | --localedir | --localedi | --localed | --locale)
975    ac_prev=localedir ;;
976  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
977    localedir=$ac_optarg ;;
978
979  -localstatedir | --localstatedir | --localstatedi | --localstated \
980  | --localstate | --localstat | --localsta | --localst | --locals)
981    ac_prev=localstatedir ;;
982  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
983  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
984    localstatedir=$ac_optarg ;;
985
986  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
987    ac_prev=mandir ;;
988  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
989    mandir=$ac_optarg ;;
990
991  -nfp | --nfp | --nf)
992    # Obsolete; use --without-fp.
993    with_fp=no ;;
994
995  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
996  | --no-cr | --no-c | -n)
997    no_create=yes ;;
998
999  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1000  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1001    no_recursion=yes ;;
1002
1003  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1004  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1005  | --oldin | --oldi | --old | --ol | --o)
1006    ac_prev=oldincludedir ;;
1007  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1008  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1009  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1010    oldincludedir=$ac_optarg ;;
1011
1012  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1013    ac_prev=prefix ;;
1014  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1015    prefix=$ac_optarg ;;
1016
1017  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1018  | --program-pre | --program-pr | --program-p)
1019    ac_prev=program_prefix ;;
1020  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1021  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1022    program_prefix=$ac_optarg ;;
1023
1024  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1025  | --program-suf | --program-su | --program-s)
1026    ac_prev=program_suffix ;;
1027  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1028  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1029    program_suffix=$ac_optarg ;;
1030
1031  -program-transform-name | --program-transform-name \
1032  | --program-transform-nam | --program-transform-na \
1033  | --program-transform-n | --program-transform- \
1034  | --program-transform | --program-transfor \
1035  | --program-transfo | --program-transf \
1036  | --program-trans | --program-tran \
1037  | --progr-tra | --program-tr | --program-t)
1038    ac_prev=program_transform_name ;;
1039  -program-transform-name=* | --program-transform-name=* \
1040  | --program-transform-nam=* | --program-transform-na=* \
1041  | --program-transform-n=* | --program-transform-=* \
1042  | --program-transform=* | --program-transfor=* \
1043  | --program-transfo=* | --program-transf=* \
1044  | --program-trans=* | --program-tran=* \
1045  | --progr-tra=* | --program-tr=* | --program-t=*)
1046    program_transform_name=$ac_optarg ;;
1047
1048  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1049    ac_prev=pdfdir ;;
1050  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1051    pdfdir=$ac_optarg ;;
1052
1053  -psdir | --psdir | --psdi | --psd | --ps)
1054    ac_prev=psdir ;;
1055  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1056    psdir=$ac_optarg ;;
1057
1058  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1059  | -silent | --silent | --silen | --sile | --sil)
1060    silent=yes ;;
1061
1062  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1063    ac_prev=sbindir ;;
1064  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1065  | --sbi=* | --sb=*)
1066    sbindir=$ac_optarg ;;
1067
1068  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1069  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1070  | --sharedst | --shareds | --shared | --share | --shar \
1071  | --sha | --sh)
1072    ac_prev=sharedstatedir ;;
1073  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1074  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1075  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1076  | --sha=* | --sh=*)
1077    sharedstatedir=$ac_optarg ;;
1078
1079  -site | --site | --sit)
1080    ac_prev=site ;;
1081  -site=* | --site=* | --sit=*)
1082    site=$ac_optarg ;;
1083
1084  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1085    ac_prev=srcdir ;;
1086  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1087    srcdir=$ac_optarg ;;
1088
1089  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1090  | --syscon | --sysco | --sysc | --sys | --sy)
1091    ac_prev=sysconfdir ;;
1092  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1093  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1094    sysconfdir=$ac_optarg ;;
1095
1096  -target | --target | --targe | --targ | --tar | --ta | --t)
1097    ac_prev=target_alias ;;
1098  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1099    target_alias=$ac_optarg ;;
1100
1101  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1102    verbose=yes ;;
1103
1104  -version | --version | --versio | --versi | --vers | -V)
1105    ac_init_version=: ;;
1106
1107  -with-* | --with-*)
1108    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1109    # Reject names that are not valid shell variable names.
1110    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1111      as_fn_error $? "invalid package name: $ac_useropt"
1112    ac_useropt_orig=$ac_useropt
1113    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1114    case $ac_user_opts in
1115      *"
1116"with_$ac_useropt"
1117"*) ;;
1118      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1119	 ac_unrecognized_sep=', ';;
1120    esac
1121    eval with_$ac_useropt=\$ac_optarg ;;
1122
1123  -without-* | --without-*)
1124    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1125    # Reject names that are not valid shell variable names.
1126    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1127      as_fn_error $? "invalid package name: $ac_useropt"
1128    ac_useropt_orig=$ac_useropt
1129    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1130    case $ac_user_opts in
1131      *"
1132"with_$ac_useropt"
1133"*) ;;
1134      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1135	 ac_unrecognized_sep=', ';;
1136    esac
1137    eval with_$ac_useropt=no ;;
1138
1139  --x)
1140    # Obsolete; use --with-x.
1141    with_x=yes ;;
1142
1143  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1144  | --x-incl | --x-inc | --x-in | --x-i)
1145    ac_prev=x_includes ;;
1146  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1147  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1148    x_includes=$ac_optarg ;;
1149
1150  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1151  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1152    ac_prev=x_libraries ;;
1153  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1154  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1155    x_libraries=$ac_optarg ;;
1156
1157  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1158Try \`$0 --help' for more information"
1159    ;;
1160
1161  *=*)
1162    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1163    # Reject names that are not valid shell variable names.
1164    case $ac_envvar in #(
1165      '' | [0-9]* | *[!_$as_cr_alnum]* )
1166      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1167    esac
1168    eval $ac_envvar=\$ac_optarg
1169    export $ac_envvar ;;
1170
1171  *)
1172    # FIXME: should be removed in autoconf 3.0.
1173    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1174    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1175      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1176    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1177    ;;
1178
1179  esac
1180done
1181
1182if test -n "$ac_prev"; then
1183  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1184  as_fn_error $? "missing argument to $ac_option"
1185fi
1186
1187if test -n "$ac_unrecognized_opts"; then
1188  case $enable_option_checking in
1189    no) ;;
1190    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1191    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1192  esac
1193fi
1194
1195# Check all directory arguments for consistency.
1196for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1197		datadir sysconfdir sharedstatedir localstatedir includedir \
1198		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1199		libdir localedir mandir
1200do
1201  eval ac_val=\$$ac_var
1202  # Remove trailing slashes.
1203  case $ac_val in
1204    */ )
1205      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1206      eval $ac_var=\$ac_val;;
1207  esac
1208  # Be sure to have absolute directory names.
1209  case $ac_val in
1210    [\\/$]* | ?:[\\/]* )  continue;;
1211    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1212  esac
1213  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1214done
1215
1216# There might be people who depend on the old broken behavior: `$host'
1217# used to hold the argument of --host etc.
1218# FIXME: To remove some day.
1219build=$build_alias
1220host=$host_alias
1221target=$target_alias
1222
1223# FIXME: To remove some day.
1224if test "x$host_alias" != x; then
1225  if test "x$build_alias" = x; then
1226    cross_compiling=maybe
1227  elif test "x$build_alias" != "x$host_alias"; then
1228    cross_compiling=yes
1229  fi
1230fi
1231
1232ac_tool_prefix=
1233test -n "$host_alias" && ac_tool_prefix=$host_alias-
1234
1235test "$silent" = yes && exec 6>/dev/null
1236
1237
1238ac_pwd=`pwd` && test -n "$ac_pwd" &&
1239ac_ls_di=`ls -di .` &&
1240ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1241  as_fn_error $? "working directory cannot be determined"
1242test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1243  as_fn_error $? "pwd does not report name of working directory"
1244
1245
1246# Find the source files, if location was not specified.
1247if test -z "$srcdir"; then
1248  ac_srcdir_defaulted=yes
1249  # Try the directory containing this script, then the parent directory.
1250  ac_confdir=`$as_dirname -- "$as_myself" ||
1251$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1252	 X"$as_myself" : 'X\(//\)[^/]' \| \
1253	 X"$as_myself" : 'X\(//\)$' \| \
1254	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1255$as_echo X"$as_myself" |
1256    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1257	    s//\1/
1258	    q
1259	  }
1260	  /^X\(\/\/\)[^/].*/{
1261	    s//\1/
1262	    q
1263	  }
1264	  /^X\(\/\/\)$/{
1265	    s//\1/
1266	    q
1267	  }
1268	  /^X\(\/\).*/{
1269	    s//\1/
1270	    q
1271	  }
1272	  s/.*/./; q'`
1273  srcdir=$ac_confdir
1274  if test ! -r "$srcdir/$ac_unique_file"; then
1275    srcdir=..
1276  fi
1277else
1278  ac_srcdir_defaulted=no
1279fi
1280if test ! -r "$srcdir/$ac_unique_file"; then
1281  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1282  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1283fi
1284ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1285ac_abs_confdir=`(
1286	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1287	pwd)`
1288# When building in place, set srcdir=.
1289if test "$ac_abs_confdir" = "$ac_pwd"; then
1290  srcdir=.
1291fi
1292# Remove unnecessary trailing slashes from srcdir.
1293# Double slashes in file names in object file debugging info
1294# mess up M-x gdb in Emacs.
1295case $srcdir in
1296*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1297esac
1298for ac_var in $ac_precious_vars; do
1299  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1300  eval ac_env_${ac_var}_value=\$${ac_var}
1301  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1302  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1303done
1304
1305#
1306# Report the --help message.
1307#
1308if test "$ac_init_help" = "long"; then
1309  # Omit some internal or obsolete options to make the list less imposing.
1310  # This message is too long to be a string in the A/UX 3.1 sh.
1311  cat <<_ACEOF
1312\`configure' configures xrdb 1.1.1 to adapt to many kinds of systems.
1313
1314Usage: $0 [OPTION]... [VAR=VALUE]...
1315
1316To assign environment variables (e.g., CC, CFLAGS...), specify them as
1317VAR=VALUE.  See below for descriptions of some of the useful variables.
1318
1319Defaults for the options are specified in brackets.
1320
1321Configuration:
1322  -h, --help              display this help and exit
1323      --help=short        display options specific to this package
1324      --help=recursive    display the short help of all the included packages
1325  -V, --version           display version information and exit
1326  -q, --quiet, --silent   do not print \`checking ...' messages
1327      --cache-file=FILE   cache test results in FILE [disabled]
1328  -C, --config-cache      alias for \`--cache-file=config.cache'
1329  -n, --no-create         do not create output files
1330      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1331
1332Installation directories:
1333  --prefix=PREFIX         install architecture-independent files in PREFIX
1334                          [$ac_default_prefix]
1335  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1336                          [PREFIX]
1337
1338By default, \`make install' will install all the files in
1339\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1340an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1341for instance \`--prefix=\$HOME'.
1342
1343For better control, use the options below.
1344
1345Fine tuning of the installation directories:
1346  --bindir=DIR            user executables [EPREFIX/bin]
1347  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1348  --libexecdir=DIR        program executables [EPREFIX/libexec]
1349  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1350  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1351  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1352  --libdir=DIR            object code libraries [EPREFIX/lib]
1353  --includedir=DIR        C header files [PREFIX/include]
1354  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1355  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1356  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1357  --infodir=DIR           info documentation [DATAROOTDIR/info]
1358  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1359  --mandir=DIR            man documentation [DATAROOTDIR/man]
1360  --docdir=DIR            documentation root [DATAROOTDIR/doc/xrdb]
1361  --htmldir=DIR           html documentation [DOCDIR]
1362  --dvidir=DIR            dvi documentation [DOCDIR]
1363  --pdfdir=DIR            pdf documentation [DOCDIR]
1364  --psdir=DIR             ps documentation [DOCDIR]
1365_ACEOF
1366
1367  cat <<\_ACEOF
1368
1369Program names:
1370  --program-prefix=PREFIX            prepend PREFIX to installed program names
1371  --program-suffix=SUFFIX            append SUFFIX to installed program names
1372  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1373
1374System types:
1375  --build=BUILD     configure for building on BUILD [guessed]
1376  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1377_ACEOF
1378fi
1379
1380if test -n "$ac_init_help"; then
1381  case $ac_init_help in
1382     short | recursive ) echo "Configuration of xrdb 1.1.1:";;
1383   esac
1384  cat <<\_ACEOF
1385
1386Optional Features:
1387  --disable-option-checking  ignore unrecognized --enable/--with options
1388  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1389  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1390  --enable-dependency-tracking
1391                          do not reject slow dependency extractors
1392  --disable-dependency-tracking
1393                          speeds up one-time build
1394  --enable-silent-rules   less verbose build output (undo: "make V=1")
1395  --disable-silent-rules  verbose build output (undo: "make V=0")
1396  --disable-selective-werror
1397                          Turn off selective compiler errors. (default:
1398                          enabled)
1399  --enable-strict-compilation
1400                          Enable all warnings from compiler and make them
1401                          errors (default: disabled)
1402
1403Optional Packages:
1404  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1405  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1406  --with-cpp=path         comma-separated list of paths to cpp command for
1407                          xrdb to use at runtime
1408
1409Some influential environment variables:
1410  CC          C compiler command
1411  CFLAGS      C compiler flags
1412  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1413              nonstandard directory <lib dir>
1414  LIBS        libraries to pass to the linker, e.g. -l<library>
1415  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1416              you have headers in a nonstandard directory <include dir>
1417  CPP         C preprocessor
1418  PKG_CONFIG  path to pkg-config utility
1419  PKG_CONFIG_PATH
1420              directories to add to pkg-config's search path
1421  PKG_CONFIG_LIBDIR
1422              path overriding pkg-config's built-in search path
1423  XRDB_CFLAGS C compiler flags for XRDB, overriding pkg-config
1424  XRDB_LIBS   linker flags for XRDB, overriding pkg-config
1425
1426Use these variables to override the choices made by `configure' or to help
1427it to find libraries and programs with nonstandard names/locations.
1428
1429Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1430_ACEOF
1431ac_status=$?
1432fi
1433
1434if test "$ac_init_help" = "recursive"; then
1435  # If there are subdirs, report their specific --help.
1436  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1437    test -d "$ac_dir" ||
1438      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1439      continue
1440    ac_builddir=.
1441
1442case "$ac_dir" in
1443.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1444*)
1445  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1446  # A ".." for each directory in $ac_dir_suffix.
1447  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1448  case $ac_top_builddir_sub in
1449  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1450  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1451  esac ;;
1452esac
1453ac_abs_top_builddir=$ac_pwd
1454ac_abs_builddir=$ac_pwd$ac_dir_suffix
1455# for backward compatibility:
1456ac_top_builddir=$ac_top_build_prefix
1457
1458case $srcdir in
1459  .)  # We are building in place.
1460    ac_srcdir=.
1461    ac_top_srcdir=$ac_top_builddir_sub
1462    ac_abs_top_srcdir=$ac_pwd ;;
1463  [\\/]* | ?:[\\/]* )  # Absolute name.
1464    ac_srcdir=$srcdir$ac_dir_suffix;
1465    ac_top_srcdir=$srcdir
1466    ac_abs_top_srcdir=$srcdir ;;
1467  *) # Relative name.
1468    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1469    ac_top_srcdir=$ac_top_build_prefix$srcdir
1470    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1471esac
1472ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1473
1474    cd "$ac_dir" || { ac_status=$?; continue; }
1475    # Check for guested configure.
1476    if test -f "$ac_srcdir/configure.gnu"; then
1477      echo &&
1478      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1479    elif test -f "$ac_srcdir/configure"; then
1480      echo &&
1481      $SHELL "$ac_srcdir/configure" --help=recursive
1482    else
1483      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1484    fi || ac_status=$?
1485    cd "$ac_pwd" || { ac_status=$?; break; }
1486  done
1487fi
1488
1489test -n "$ac_init_help" && exit $ac_status
1490if $ac_init_version; then
1491  cat <<\_ACEOF
1492xrdb configure 1.1.1
1493generated by GNU Autoconf 2.69
1494
1495Copyright (C) 2012 Free Software Foundation, Inc.
1496This configure script is free software; the Free Software Foundation
1497gives unlimited permission to copy, distribute and modify it.
1498_ACEOF
1499  exit
1500fi
1501
1502## ------------------------ ##
1503## Autoconf initialization. ##
1504## ------------------------ ##
1505
1506# ac_fn_c_try_compile LINENO
1507# --------------------------
1508# Try to compile conftest.$ac_ext, and return whether this succeeded.
1509ac_fn_c_try_compile ()
1510{
1511  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1512  rm -f conftest.$ac_objext
1513  if { { ac_try="$ac_compile"
1514case "(($ac_try" in
1515  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1516  *) ac_try_echo=$ac_try;;
1517esac
1518eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1519$as_echo "$ac_try_echo"; } >&5
1520  (eval "$ac_compile") 2>conftest.err
1521  ac_status=$?
1522  if test -s conftest.err; then
1523    grep -v '^ *+' conftest.err >conftest.er1
1524    cat conftest.er1 >&5
1525    mv -f conftest.er1 conftest.err
1526  fi
1527  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1528  test $ac_status = 0; } && {
1529	 test -z "$ac_c_werror_flag" ||
1530	 test ! -s conftest.err
1531       } && test -s conftest.$ac_objext; then :
1532  ac_retval=0
1533else
1534  $as_echo "$as_me: failed program was:" >&5
1535sed 's/^/| /' conftest.$ac_ext >&5
1536
1537	ac_retval=1
1538fi
1539  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1540  as_fn_set_status $ac_retval
1541
1542} # ac_fn_c_try_compile
1543
1544# ac_fn_c_try_cpp LINENO
1545# ----------------------
1546# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1547ac_fn_c_try_cpp ()
1548{
1549  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1550  if { { ac_try="$ac_cpp conftest.$ac_ext"
1551case "(($ac_try" in
1552  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1553  *) ac_try_echo=$ac_try;;
1554esac
1555eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1556$as_echo "$ac_try_echo"; } >&5
1557  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1558  ac_status=$?
1559  if test -s conftest.err; then
1560    grep -v '^ *+' conftest.err >conftest.er1
1561    cat conftest.er1 >&5
1562    mv -f conftest.er1 conftest.err
1563  fi
1564  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1565  test $ac_status = 0; } > conftest.i && {
1566	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1567	 test ! -s conftest.err
1568       }; then :
1569  ac_retval=0
1570else
1571  $as_echo "$as_me: failed program was:" >&5
1572sed 's/^/| /' conftest.$ac_ext >&5
1573
1574    ac_retval=1
1575fi
1576  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1577  as_fn_set_status $ac_retval
1578
1579} # ac_fn_c_try_cpp
1580
1581# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1582# -------------------------------------------------------
1583# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1584# the include files in INCLUDES and setting the cache variable VAR
1585# accordingly.
1586ac_fn_c_check_header_mongrel ()
1587{
1588  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1589  if eval \${$3+:} false; then :
1590  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1591$as_echo_n "checking for $2... " >&6; }
1592if eval \${$3+:} false; then :
1593  $as_echo_n "(cached) " >&6
1594fi
1595eval ac_res=\$$3
1596	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1597$as_echo "$ac_res" >&6; }
1598else
1599  # Is the header compilable?
1600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1601$as_echo_n "checking $2 usability... " >&6; }
1602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1603/* end confdefs.h.  */
1604$4
1605#include <$2>
1606_ACEOF
1607if ac_fn_c_try_compile "$LINENO"; then :
1608  ac_header_compiler=yes
1609else
1610  ac_header_compiler=no
1611fi
1612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1614$as_echo "$ac_header_compiler" >&6; }
1615
1616# Is the header present?
1617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1618$as_echo_n "checking $2 presence... " >&6; }
1619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1620/* end confdefs.h.  */
1621#include <$2>
1622_ACEOF
1623if ac_fn_c_try_cpp "$LINENO"; then :
1624  ac_header_preproc=yes
1625else
1626  ac_header_preproc=no
1627fi
1628rm -f conftest.err conftest.i conftest.$ac_ext
1629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1630$as_echo "$ac_header_preproc" >&6; }
1631
1632# So?  What about this header?
1633case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1634  yes:no: )
1635    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1636$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1637    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1638$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1639    ;;
1640  no:yes:* )
1641    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1642$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1643    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1644$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1645    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1646$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1647    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1648$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1649    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1650$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1651( $as_echo "## ---------------------------------------------------------------------- ##
1652## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1653## ---------------------------------------------------------------------- ##"
1654     ) | sed "s/^/$as_me: WARNING:     /" >&2
1655    ;;
1656esac
1657  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1658$as_echo_n "checking for $2... " >&6; }
1659if eval \${$3+:} false; then :
1660  $as_echo_n "(cached) " >&6
1661else
1662  eval "$3=\$ac_header_compiler"
1663fi
1664eval ac_res=\$$3
1665	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1666$as_echo "$ac_res" >&6; }
1667fi
1668  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669
1670} # ac_fn_c_check_header_mongrel
1671
1672# ac_fn_c_try_run LINENO
1673# ----------------------
1674# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1675# that executables *can* be run.
1676ac_fn_c_try_run ()
1677{
1678  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679  if { { ac_try="$ac_link"
1680case "(($ac_try" in
1681  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682  *) ac_try_echo=$ac_try;;
1683esac
1684eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685$as_echo "$ac_try_echo"; } >&5
1686  (eval "$ac_link") 2>&5
1687  ac_status=$?
1688  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1690  { { case "(($ac_try" in
1691  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692  *) ac_try_echo=$ac_try;;
1693esac
1694eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695$as_echo "$ac_try_echo"; } >&5
1696  (eval "$ac_try") 2>&5
1697  ac_status=$?
1698  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699  test $ac_status = 0; }; }; then :
1700  ac_retval=0
1701else
1702  $as_echo "$as_me: program exited with status $ac_status" >&5
1703       $as_echo "$as_me: failed program was:" >&5
1704sed 's/^/| /' conftest.$ac_ext >&5
1705
1706       ac_retval=$ac_status
1707fi
1708  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1709  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1710  as_fn_set_status $ac_retval
1711
1712} # ac_fn_c_try_run
1713
1714# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1715# -------------------------------------------------------
1716# Tests whether HEADER exists and can be compiled using the include files in
1717# INCLUDES, setting the cache variable VAR accordingly.
1718ac_fn_c_check_header_compile ()
1719{
1720  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1722$as_echo_n "checking for $2... " >&6; }
1723if eval \${$3+:} false; then :
1724  $as_echo_n "(cached) " >&6
1725else
1726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1727/* end confdefs.h.  */
1728$4
1729#include <$2>
1730_ACEOF
1731if ac_fn_c_try_compile "$LINENO"; then :
1732  eval "$3=yes"
1733else
1734  eval "$3=no"
1735fi
1736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1737fi
1738eval ac_res=\$$3
1739	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1740$as_echo "$ac_res" >&6; }
1741  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742
1743} # ac_fn_c_check_header_compile
1744
1745# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1746# ---------------------------------------------
1747# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1748# accordingly.
1749ac_fn_c_check_decl ()
1750{
1751  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752  as_decl_name=`echo $2|sed 's/ *(.*//'`
1753  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1754  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1755$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1756if eval \${$3+:} false; then :
1757  $as_echo_n "(cached) " >&6
1758else
1759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760/* end confdefs.h.  */
1761$4
1762int
1763main ()
1764{
1765#ifndef $as_decl_name
1766#ifdef __cplusplus
1767  (void) $as_decl_use;
1768#else
1769  (void) $as_decl_name;
1770#endif
1771#endif
1772
1773  ;
1774  return 0;
1775}
1776_ACEOF
1777if ac_fn_c_try_compile "$LINENO"; then :
1778  eval "$3=yes"
1779else
1780  eval "$3=no"
1781fi
1782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1783fi
1784eval ac_res=\$$3
1785	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786$as_echo "$ac_res" >&6; }
1787  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788
1789} # ac_fn_c_check_decl
1790
1791# ac_fn_c_try_link LINENO
1792# -----------------------
1793# Try to link conftest.$ac_ext, and return whether this succeeded.
1794ac_fn_c_try_link ()
1795{
1796  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797  rm -f conftest.$ac_objext conftest$ac_exeext
1798  if { { ac_try="$ac_link"
1799case "(($ac_try" in
1800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801  *) ac_try_echo=$ac_try;;
1802esac
1803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804$as_echo "$ac_try_echo"; } >&5
1805  (eval "$ac_link") 2>conftest.err
1806  ac_status=$?
1807  if test -s conftest.err; then
1808    grep -v '^ *+' conftest.err >conftest.er1
1809    cat conftest.er1 >&5
1810    mv -f conftest.er1 conftest.err
1811  fi
1812  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813  test $ac_status = 0; } && {
1814	 test -z "$ac_c_werror_flag" ||
1815	 test ! -s conftest.err
1816       } && test -s conftest$ac_exeext && {
1817	 test "$cross_compiling" = yes ||
1818	 test -x conftest$ac_exeext
1819       }; then :
1820  ac_retval=0
1821else
1822  $as_echo "$as_me: failed program was:" >&5
1823sed 's/^/| /' conftest.$ac_ext >&5
1824
1825	ac_retval=1
1826fi
1827  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1828  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1829  # interfere with the next link command; also delete a directory that is
1830  # left behind by Apple's compiler.  We do this before executing the actions.
1831  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1832  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833  as_fn_set_status $ac_retval
1834
1835} # ac_fn_c_try_link
1836
1837# ac_fn_c_check_func LINENO FUNC VAR
1838# ----------------------------------
1839# Tests whether FUNC exists, setting the cache variable VAR accordingly
1840ac_fn_c_check_func ()
1841{
1842  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1844$as_echo_n "checking for $2... " >&6; }
1845if eval \${$3+:} false; then :
1846  $as_echo_n "(cached) " >&6
1847else
1848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849/* end confdefs.h.  */
1850/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1851   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1852#define $2 innocuous_$2
1853
1854/* System header to define __stub macros and hopefully few prototypes,
1855    which can conflict with char $2 (); below.
1856    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1857    <limits.h> exists even on freestanding compilers.  */
1858
1859#ifdef __STDC__
1860# include <limits.h>
1861#else
1862# include <assert.h>
1863#endif
1864
1865#undef $2
1866
1867/* Override any GCC internal prototype to avoid an error.
1868   Use char because int might match the return type of a GCC
1869   builtin and then its argument prototype would still apply.  */
1870#ifdef __cplusplus
1871extern "C"
1872#endif
1873char $2 ();
1874/* The GNU C library defines this for functions which it implements
1875    to always fail with ENOSYS.  Some functions are actually named
1876    something starting with __ and the normal name is an alias.  */
1877#if defined __stub_$2 || defined __stub___$2
1878choke me
1879#endif
1880
1881int
1882main ()
1883{
1884return $2 ();
1885  ;
1886  return 0;
1887}
1888_ACEOF
1889if ac_fn_c_try_link "$LINENO"; then :
1890  eval "$3=yes"
1891else
1892  eval "$3=no"
1893fi
1894rm -f core conftest.err conftest.$ac_objext \
1895    conftest$ac_exeext conftest.$ac_ext
1896fi
1897eval ac_res=\$$3
1898	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1899$as_echo "$ac_res" >&6; }
1900  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901
1902} # ac_fn_c_check_func
1903cat >config.log <<_ACEOF
1904This file contains any messages produced by compilers while
1905running configure, to aid debugging if configure makes a mistake.
1906
1907It was created by xrdb $as_me 1.1.1, which was
1908generated by GNU Autoconf 2.69.  Invocation command line was
1909
1910  $ $0 $@
1911
1912_ACEOF
1913exec 5>>config.log
1914{
1915cat <<_ASUNAME
1916## --------- ##
1917## Platform. ##
1918## --------- ##
1919
1920hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1921uname -m = `(uname -m) 2>/dev/null || echo unknown`
1922uname -r = `(uname -r) 2>/dev/null || echo unknown`
1923uname -s = `(uname -s) 2>/dev/null || echo unknown`
1924uname -v = `(uname -v) 2>/dev/null || echo unknown`
1925
1926/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1927/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1928
1929/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1930/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1931/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1932/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1933/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1934/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1935/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1936
1937_ASUNAME
1938
1939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1940for as_dir in $PATH
1941do
1942  IFS=$as_save_IFS
1943  test -z "$as_dir" && as_dir=.
1944    $as_echo "PATH: $as_dir"
1945  done
1946IFS=$as_save_IFS
1947
1948} >&5
1949
1950cat >&5 <<_ACEOF
1951
1952
1953## ----------- ##
1954## Core tests. ##
1955## ----------- ##
1956
1957_ACEOF
1958
1959
1960# Keep a trace of the command line.
1961# Strip out --no-create and --no-recursion so they do not pile up.
1962# Strip out --silent because we don't want to record it for future runs.
1963# Also quote any args containing shell meta-characters.
1964# Make two passes to allow for proper duplicate-argument suppression.
1965ac_configure_args=
1966ac_configure_args0=
1967ac_configure_args1=
1968ac_must_keep_next=false
1969for ac_pass in 1 2
1970do
1971  for ac_arg
1972  do
1973    case $ac_arg in
1974    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1975    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1976    | -silent | --silent | --silen | --sile | --sil)
1977      continue ;;
1978    *\'*)
1979      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1980    esac
1981    case $ac_pass in
1982    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1983    2)
1984      as_fn_append ac_configure_args1 " '$ac_arg'"
1985      if test $ac_must_keep_next = true; then
1986	ac_must_keep_next=false # Got value, back to normal.
1987      else
1988	case $ac_arg in
1989	  *=* | --config-cache | -C | -disable-* | --disable-* \
1990	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1991	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1992	  | -with-* | --with-* | -without-* | --without-* | --x)
1993	    case "$ac_configure_args0 " in
1994	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1995	    esac
1996	    ;;
1997	  -* ) ac_must_keep_next=true ;;
1998	esac
1999      fi
2000      as_fn_append ac_configure_args " '$ac_arg'"
2001      ;;
2002    esac
2003  done
2004done
2005{ ac_configure_args0=; unset ac_configure_args0;}
2006{ ac_configure_args1=; unset ac_configure_args1;}
2007
2008# When interrupted or exit'd, cleanup temporary files, and complete
2009# config.log.  We remove comments because anyway the quotes in there
2010# would cause problems or look ugly.
2011# WARNING: Use '\'' to represent an apostrophe within the trap.
2012# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2013trap 'exit_status=$?
2014  # Save into config.log some information that might help in debugging.
2015  {
2016    echo
2017
2018    $as_echo "## ---------------- ##
2019## Cache variables. ##
2020## ---------------- ##"
2021    echo
2022    # The following way of writing the cache mishandles newlines in values,
2023(
2024  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2025    eval ac_val=\$$ac_var
2026    case $ac_val in #(
2027    *${as_nl}*)
2028      case $ac_var in #(
2029      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2030$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2031      esac
2032      case $ac_var in #(
2033      _ | IFS | as_nl) ;; #(
2034      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2035      *) { eval $ac_var=; unset $ac_var;} ;;
2036      esac ;;
2037    esac
2038  done
2039  (set) 2>&1 |
2040    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2041    *${as_nl}ac_space=\ *)
2042      sed -n \
2043	"s/'\''/'\''\\\\'\'''\''/g;
2044	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2045      ;; #(
2046    *)
2047      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2048      ;;
2049    esac |
2050    sort
2051)
2052    echo
2053
2054    $as_echo "## ----------------- ##
2055## Output variables. ##
2056## ----------------- ##"
2057    echo
2058    for ac_var in $ac_subst_vars
2059    do
2060      eval ac_val=\$$ac_var
2061      case $ac_val in
2062      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2063      esac
2064      $as_echo "$ac_var='\''$ac_val'\''"
2065    done | sort
2066    echo
2067
2068    if test -n "$ac_subst_files"; then
2069      $as_echo "## ------------------- ##
2070## File substitutions. ##
2071## ------------------- ##"
2072      echo
2073      for ac_var in $ac_subst_files
2074      do
2075	eval ac_val=\$$ac_var
2076	case $ac_val in
2077	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2078	esac
2079	$as_echo "$ac_var='\''$ac_val'\''"
2080      done | sort
2081      echo
2082    fi
2083
2084    if test -s confdefs.h; then
2085      $as_echo "## ----------- ##
2086## confdefs.h. ##
2087## ----------- ##"
2088      echo
2089      cat confdefs.h
2090      echo
2091    fi
2092    test "$ac_signal" != 0 &&
2093      $as_echo "$as_me: caught signal $ac_signal"
2094    $as_echo "$as_me: exit $exit_status"
2095  } >&5
2096  rm -f core *.core core.conftest.* &&
2097    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2098    exit $exit_status
2099' 0
2100for ac_signal in 1 2 13 15; do
2101  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2102done
2103ac_signal=0
2104
2105# confdefs.h avoids OS command line length limits that DEFS can exceed.
2106rm -f -r conftest* confdefs.h
2107
2108$as_echo "/* confdefs.h */" > confdefs.h
2109
2110# Predefined preprocessor variables.
2111
2112cat >>confdefs.h <<_ACEOF
2113#define PACKAGE_NAME "$PACKAGE_NAME"
2114_ACEOF
2115
2116cat >>confdefs.h <<_ACEOF
2117#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2118_ACEOF
2119
2120cat >>confdefs.h <<_ACEOF
2121#define PACKAGE_VERSION "$PACKAGE_VERSION"
2122_ACEOF
2123
2124cat >>confdefs.h <<_ACEOF
2125#define PACKAGE_STRING "$PACKAGE_STRING"
2126_ACEOF
2127
2128cat >>confdefs.h <<_ACEOF
2129#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2130_ACEOF
2131
2132cat >>confdefs.h <<_ACEOF
2133#define PACKAGE_URL "$PACKAGE_URL"
2134_ACEOF
2135
2136
2137# Let the site file select an alternate cache file if it wants to.
2138# Prefer an explicitly selected file to automatically selected ones.
2139ac_site_file1=NONE
2140ac_site_file2=NONE
2141if test -n "$CONFIG_SITE"; then
2142  # We do not want a PATH search for config.site.
2143  case $CONFIG_SITE in #((
2144    -*)  ac_site_file1=./$CONFIG_SITE;;
2145    */*) ac_site_file1=$CONFIG_SITE;;
2146    *)   ac_site_file1=./$CONFIG_SITE;;
2147  esac
2148elif test "x$prefix" != xNONE; then
2149  ac_site_file1=$prefix/share/config.site
2150  ac_site_file2=$prefix/etc/config.site
2151else
2152  ac_site_file1=$ac_default_prefix/share/config.site
2153  ac_site_file2=$ac_default_prefix/etc/config.site
2154fi
2155for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2156do
2157  test "x$ac_site_file" = xNONE && continue
2158  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2159    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2160$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2161    sed 's/^/| /' "$ac_site_file" >&5
2162    . "$ac_site_file" \
2163      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2164$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2165as_fn_error $? "failed to load site script $ac_site_file
2166See \`config.log' for more details" "$LINENO" 5; }
2167  fi
2168done
2169
2170if test -r "$cache_file"; then
2171  # Some versions of bash will fail to source /dev/null (special files
2172  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2173  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2174    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2175$as_echo "$as_me: loading cache $cache_file" >&6;}
2176    case $cache_file in
2177      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2178      *)                      . "./$cache_file";;
2179    esac
2180  fi
2181else
2182  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2183$as_echo "$as_me: creating cache $cache_file" >&6;}
2184  >$cache_file
2185fi
2186
2187# Check that the precious variables saved in the cache have kept the same
2188# value.
2189ac_cache_corrupted=false
2190for ac_var in $ac_precious_vars; do
2191  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2192  eval ac_new_set=\$ac_env_${ac_var}_set
2193  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2194  eval ac_new_val=\$ac_env_${ac_var}_value
2195  case $ac_old_set,$ac_new_set in
2196    set,)
2197      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2198$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2199      ac_cache_corrupted=: ;;
2200    ,set)
2201      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2202$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2203      ac_cache_corrupted=: ;;
2204    ,);;
2205    *)
2206      if test "x$ac_old_val" != "x$ac_new_val"; then
2207	# differences in whitespace do not lead to failure.
2208	ac_old_val_w=`echo x $ac_old_val`
2209	ac_new_val_w=`echo x $ac_new_val`
2210	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2211	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2212$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2213	  ac_cache_corrupted=:
2214	else
2215	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2216$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2217	  eval $ac_var=\$ac_old_val
2218	fi
2219	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2220$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2221	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2222$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2223      fi;;
2224  esac
2225  # Pass precious variables to config.status.
2226  if test "$ac_new_set" = set; then
2227    case $ac_new_val in
2228    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2229    *) ac_arg=$ac_var=$ac_new_val ;;
2230    esac
2231    case " $ac_configure_args " in
2232      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2233      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2234    esac
2235  fi
2236done
2237if $ac_cache_corrupted; then
2238  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2239$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2240  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2241$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2242  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2243fi
2244## -------------------- ##
2245## Main body of script. ##
2246## -------------------- ##
2247
2248ac_ext=c
2249ac_cpp='$CPP $CPPFLAGS'
2250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2252ac_compiler_gnu=$ac_cv_c_compiler_gnu
2253
2254
2255
2256ac_config_headers="$ac_config_headers config.h"
2257
2258ac_aux_dir=
2259for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2260  if test -f "$ac_dir/install-sh"; then
2261    ac_aux_dir=$ac_dir
2262    ac_install_sh="$ac_aux_dir/install-sh -c"
2263    break
2264  elif test -f "$ac_dir/install.sh"; then
2265    ac_aux_dir=$ac_dir
2266    ac_install_sh="$ac_aux_dir/install.sh -c"
2267    break
2268  elif test -f "$ac_dir/shtool"; then
2269    ac_aux_dir=$ac_dir
2270    ac_install_sh="$ac_aux_dir/shtool install -c"
2271    break
2272  fi
2273done
2274if test -z "$ac_aux_dir"; then
2275  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2276fi
2277
2278# These three variables are undocumented and unsupported,
2279# and are intended to be withdrawn in a future Autoconf release.
2280# They can cause serious problems if a builder's source tree is in a directory
2281# whose full name contains unusual characters.
2282ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2283ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2284ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2285
2286
2287# Expand $ac_aux_dir to an absolute path.
2288am_aux_dir=`cd "$ac_aux_dir" && pwd`
2289
2290ac_ext=c
2291ac_cpp='$CPP $CPPFLAGS'
2292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2294ac_compiler_gnu=$ac_cv_c_compiler_gnu
2295if test -n "$ac_tool_prefix"; then
2296  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2297set dummy ${ac_tool_prefix}gcc; ac_word=$2
2298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2299$as_echo_n "checking for $ac_word... " >&6; }
2300if ${ac_cv_prog_CC+:} false; then :
2301  $as_echo_n "(cached) " >&6
2302else
2303  if test -n "$CC"; then
2304  ac_cv_prog_CC="$CC" # Let the user override the test.
2305else
2306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2307for as_dir in $PATH
2308do
2309  IFS=$as_save_IFS
2310  test -z "$as_dir" && as_dir=.
2311    for ac_exec_ext in '' $ac_executable_extensions; do
2312  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2313    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2314    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2315    break 2
2316  fi
2317done
2318  done
2319IFS=$as_save_IFS
2320
2321fi
2322fi
2323CC=$ac_cv_prog_CC
2324if test -n "$CC"; then
2325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2326$as_echo "$CC" >&6; }
2327else
2328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2329$as_echo "no" >&6; }
2330fi
2331
2332
2333fi
2334if test -z "$ac_cv_prog_CC"; then
2335  ac_ct_CC=$CC
2336  # Extract the first word of "gcc", so it can be a program name with args.
2337set dummy gcc; ac_word=$2
2338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2339$as_echo_n "checking for $ac_word... " >&6; }
2340if ${ac_cv_prog_ac_ct_CC+:} false; then :
2341  $as_echo_n "(cached) " >&6
2342else
2343  if test -n "$ac_ct_CC"; then
2344  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2345else
2346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347for as_dir in $PATH
2348do
2349  IFS=$as_save_IFS
2350  test -z "$as_dir" && as_dir=.
2351    for ac_exec_ext in '' $ac_executable_extensions; do
2352  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2353    ac_cv_prog_ac_ct_CC="gcc"
2354    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2355    break 2
2356  fi
2357done
2358  done
2359IFS=$as_save_IFS
2360
2361fi
2362fi
2363ac_ct_CC=$ac_cv_prog_ac_ct_CC
2364if test -n "$ac_ct_CC"; then
2365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2366$as_echo "$ac_ct_CC" >&6; }
2367else
2368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2369$as_echo "no" >&6; }
2370fi
2371
2372  if test "x$ac_ct_CC" = x; then
2373    CC=""
2374  else
2375    case $cross_compiling:$ac_tool_warned in
2376yes:)
2377{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2378$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2379ac_tool_warned=yes ;;
2380esac
2381    CC=$ac_ct_CC
2382  fi
2383else
2384  CC="$ac_cv_prog_CC"
2385fi
2386
2387if test -z "$CC"; then
2388          if test -n "$ac_tool_prefix"; then
2389    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2390set dummy ${ac_tool_prefix}cc; ac_word=$2
2391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2392$as_echo_n "checking for $ac_word... " >&6; }
2393if ${ac_cv_prog_CC+:} false; then :
2394  $as_echo_n "(cached) " >&6
2395else
2396  if test -n "$CC"; then
2397  ac_cv_prog_CC="$CC" # Let the user override the test.
2398else
2399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2400for as_dir in $PATH
2401do
2402  IFS=$as_save_IFS
2403  test -z "$as_dir" && as_dir=.
2404    for ac_exec_ext in '' $ac_executable_extensions; do
2405  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2406    ac_cv_prog_CC="${ac_tool_prefix}cc"
2407    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2408    break 2
2409  fi
2410done
2411  done
2412IFS=$as_save_IFS
2413
2414fi
2415fi
2416CC=$ac_cv_prog_CC
2417if test -n "$CC"; then
2418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2419$as_echo "$CC" >&6; }
2420else
2421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2422$as_echo "no" >&6; }
2423fi
2424
2425
2426  fi
2427fi
2428if test -z "$CC"; then
2429  # Extract the first word of "cc", so it can be a program name with args.
2430set dummy cc; ac_word=$2
2431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2432$as_echo_n "checking for $ac_word... " >&6; }
2433if ${ac_cv_prog_CC+:} false; then :
2434  $as_echo_n "(cached) " >&6
2435else
2436  if test -n "$CC"; then
2437  ac_cv_prog_CC="$CC" # Let the user override the test.
2438else
2439  ac_prog_rejected=no
2440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441for as_dir in $PATH
2442do
2443  IFS=$as_save_IFS
2444  test -z "$as_dir" && as_dir=.
2445    for ac_exec_ext in '' $ac_executable_extensions; do
2446  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2447    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2448       ac_prog_rejected=yes
2449       continue
2450     fi
2451    ac_cv_prog_CC="cc"
2452    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2453    break 2
2454  fi
2455done
2456  done
2457IFS=$as_save_IFS
2458
2459if test $ac_prog_rejected = yes; then
2460  # We found a bogon in the path, so make sure we never use it.
2461  set dummy $ac_cv_prog_CC
2462  shift
2463  if test $# != 0; then
2464    # We chose a different compiler from the bogus one.
2465    # However, it has the same basename, so the bogon will be chosen
2466    # first if we set CC to just the basename; use the full file name.
2467    shift
2468    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2469  fi
2470fi
2471fi
2472fi
2473CC=$ac_cv_prog_CC
2474if test -n "$CC"; then
2475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2476$as_echo "$CC" >&6; }
2477else
2478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2479$as_echo "no" >&6; }
2480fi
2481
2482
2483fi
2484if test -z "$CC"; then
2485  if test -n "$ac_tool_prefix"; then
2486  for ac_prog in cl.exe
2487  do
2488    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2489set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2491$as_echo_n "checking for $ac_word... " >&6; }
2492if ${ac_cv_prog_CC+:} false; then :
2493  $as_echo_n "(cached) " >&6
2494else
2495  if test -n "$CC"; then
2496  ac_cv_prog_CC="$CC" # Let the user override the test.
2497else
2498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499for as_dir in $PATH
2500do
2501  IFS=$as_save_IFS
2502  test -z "$as_dir" && as_dir=.
2503    for ac_exec_ext in '' $ac_executable_extensions; do
2504  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2505    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2506    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2507    break 2
2508  fi
2509done
2510  done
2511IFS=$as_save_IFS
2512
2513fi
2514fi
2515CC=$ac_cv_prog_CC
2516if test -n "$CC"; then
2517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2518$as_echo "$CC" >&6; }
2519else
2520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2521$as_echo "no" >&6; }
2522fi
2523
2524
2525    test -n "$CC" && break
2526  done
2527fi
2528if test -z "$CC"; then
2529  ac_ct_CC=$CC
2530  for ac_prog in cl.exe
2531do
2532  # Extract the first word of "$ac_prog", so it can be a program name with args.
2533set dummy $ac_prog; ac_word=$2
2534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2535$as_echo_n "checking for $ac_word... " >&6; }
2536if ${ac_cv_prog_ac_ct_CC+:} false; then :
2537  $as_echo_n "(cached) " >&6
2538else
2539  if test -n "$ac_ct_CC"; then
2540  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2541else
2542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543for as_dir in $PATH
2544do
2545  IFS=$as_save_IFS
2546  test -z "$as_dir" && as_dir=.
2547    for ac_exec_ext in '' $ac_executable_extensions; do
2548  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2549    ac_cv_prog_ac_ct_CC="$ac_prog"
2550    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2551    break 2
2552  fi
2553done
2554  done
2555IFS=$as_save_IFS
2556
2557fi
2558fi
2559ac_ct_CC=$ac_cv_prog_ac_ct_CC
2560if test -n "$ac_ct_CC"; then
2561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2562$as_echo "$ac_ct_CC" >&6; }
2563else
2564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2565$as_echo "no" >&6; }
2566fi
2567
2568
2569  test -n "$ac_ct_CC" && break
2570done
2571
2572  if test "x$ac_ct_CC" = x; then
2573    CC=""
2574  else
2575    case $cross_compiling:$ac_tool_warned in
2576yes:)
2577{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2578$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2579ac_tool_warned=yes ;;
2580esac
2581    CC=$ac_ct_CC
2582  fi
2583fi
2584
2585fi
2586
2587
2588test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2589$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2590as_fn_error $? "no acceptable C compiler found in \$PATH
2591See \`config.log' for more details" "$LINENO" 5; }
2592
2593# Provide some information about the compiler.
2594$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2595set X $ac_compile
2596ac_compiler=$2
2597for ac_option in --version -v -V -qversion; do
2598  { { ac_try="$ac_compiler $ac_option >&5"
2599case "(($ac_try" in
2600  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2601  *) ac_try_echo=$ac_try;;
2602esac
2603eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2604$as_echo "$ac_try_echo"; } >&5
2605  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2606  ac_status=$?
2607  if test -s conftest.err; then
2608    sed '10a\
2609... rest of stderr output deleted ...
2610         10q' conftest.err >conftest.er1
2611    cat conftest.er1 >&5
2612  fi
2613  rm -f conftest.er1 conftest.err
2614  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2615  test $ac_status = 0; }
2616done
2617
2618cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2619/* end confdefs.h.  */
2620
2621int
2622main ()
2623{
2624
2625  ;
2626  return 0;
2627}
2628_ACEOF
2629ac_clean_files_save=$ac_clean_files
2630ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2631# Try to create an executable without -o first, disregard a.out.
2632# It will help us diagnose broken compilers, and finding out an intuition
2633# of exeext.
2634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2635$as_echo_n "checking whether the C compiler works... " >&6; }
2636ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2637
2638# The possible output files:
2639ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2640
2641ac_rmfiles=
2642for ac_file in $ac_files
2643do
2644  case $ac_file in
2645    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2646    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2647  esac
2648done
2649rm -f $ac_rmfiles
2650
2651if { { ac_try="$ac_link_default"
2652case "(($ac_try" in
2653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2654  *) ac_try_echo=$ac_try;;
2655esac
2656eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2657$as_echo "$ac_try_echo"; } >&5
2658  (eval "$ac_link_default") 2>&5
2659  ac_status=$?
2660  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2661  test $ac_status = 0; }; then :
2662  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2663# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2664# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2665# so that the user can short-circuit this test for compilers unknown to
2666# Autoconf.
2667for ac_file in $ac_files ''
2668do
2669  test -f "$ac_file" || continue
2670  case $ac_file in
2671    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2672	;;
2673    [ab].out )
2674	# We found the default executable, but exeext='' is most
2675	# certainly right.
2676	break;;
2677    *.* )
2678	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2679	then :; else
2680	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2681	fi
2682	# We set ac_cv_exeext here because the later test for it is not
2683	# safe: cross compilers may not add the suffix if given an `-o'
2684	# argument, so we may need to know it at that point already.
2685	# Even if this section looks crufty: it has the advantage of
2686	# actually working.
2687	break;;
2688    * )
2689	break;;
2690  esac
2691done
2692test "$ac_cv_exeext" = no && ac_cv_exeext=
2693
2694else
2695  ac_file=''
2696fi
2697if test -z "$ac_file"; then :
2698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2699$as_echo "no" >&6; }
2700$as_echo "$as_me: failed program was:" >&5
2701sed 's/^/| /' conftest.$ac_ext >&5
2702
2703{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2704$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2705as_fn_error 77 "C compiler cannot create executables
2706See \`config.log' for more details" "$LINENO" 5; }
2707else
2708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2709$as_echo "yes" >&6; }
2710fi
2711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2712$as_echo_n "checking for C compiler default output file name... " >&6; }
2713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2714$as_echo "$ac_file" >&6; }
2715ac_exeext=$ac_cv_exeext
2716
2717rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2718ac_clean_files=$ac_clean_files_save
2719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2720$as_echo_n "checking for suffix of executables... " >&6; }
2721if { { ac_try="$ac_link"
2722case "(($ac_try" in
2723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724  *) ac_try_echo=$ac_try;;
2725esac
2726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2727$as_echo "$ac_try_echo"; } >&5
2728  (eval "$ac_link") 2>&5
2729  ac_status=$?
2730  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2731  test $ac_status = 0; }; then :
2732  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2733# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2734# work properly (i.e., refer to `conftest.exe'), while it won't with
2735# `rm'.
2736for ac_file in conftest.exe conftest conftest.*; do
2737  test -f "$ac_file" || continue
2738  case $ac_file in
2739    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2740    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2741	  break;;
2742    * ) break;;
2743  esac
2744done
2745else
2746  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2747$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2748as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2749See \`config.log' for more details" "$LINENO" 5; }
2750fi
2751rm -f conftest conftest$ac_cv_exeext
2752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2753$as_echo "$ac_cv_exeext" >&6; }
2754
2755rm -f conftest.$ac_ext
2756EXEEXT=$ac_cv_exeext
2757ac_exeext=$EXEEXT
2758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2759/* end confdefs.h.  */
2760#include <stdio.h>
2761int
2762main ()
2763{
2764FILE *f = fopen ("conftest.out", "w");
2765 return ferror (f) || fclose (f) != 0;
2766
2767  ;
2768  return 0;
2769}
2770_ACEOF
2771ac_clean_files="$ac_clean_files conftest.out"
2772# Check that the compiler produces executables we can run.  If not, either
2773# the compiler is broken, or we cross compile.
2774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2775$as_echo_n "checking whether we are cross compiling... " >&6; }
2776if test "$cross_compiling" != yes; then
2777  { { ac_try="$ac_link"
2778case "(($ac_try" in
2779  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2780  *) ac_try_echo=$ac_try;;
2781esac
2782eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2783$as_echo "$ac_try_echo"; } >&5
2784  (eval "$ac_link") 2>&5
2785  ac_status=$?
2786  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2787  test $ac_status = 0; }
2788  if { ac_try='./conftest$ac_cv_exeext'
2789  { { case "(($ac_try" in
2790  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2791  *) ac_try_echo=$ac_try;;
2792esac
2793eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2794$as_echo "$ac_try_echo"; } >&5
2795  (eval "$ac_try") 2>&5
2796  ac_status=$?
2797  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2798  test $ac_status = 0; }; }; then
2799    cross_compiling=no
2800  else
2801    if test "$cross_compiling" = maybe; then
2802	cross_compiling=yes
2803    else
2804	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2805$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2806as_fn_error $? "cannot run C compiled programs.
2807If you meant to cross compile, use \`--host'.
2808See \`config.log' for more details" "$LINENO" 5; }
2809    fi
2810  fi
2811fi
2812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2813$as_echo "$cross_compiling" >&6; }
2814
2815rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2816ac_clean_files=$ac_clean_files_save
2817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2818$as_echo_n "checking for suffix of object files... " >&6; }
2819if ${ac_cv_objext+:} false; then :
2820  $as_echo_n "(cached) " >&6
2821else
2822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2823/* end confdefs.h.  */
2824
2825int
2826main ()
2827{
2828
2829  ;
2830  return 0;
2831}
2832_ACEOF
2833rm -f conftest.o conftest.obj
2834if { { ac_try="$ac_compile"
2835case "(($ac_try" in
2836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2837  *) ac_try_echo=$ac_try;;
2838esac
2839eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2840$as_echo "$ac_try_echo"; } >&5
2841  (eval "$ac_compile") 2>&5
2842  ac_status=$?
2843  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2844  test $ac_status = 0; }; then :
2845  for ac_file in conftest.o conftest.obj conftest.*; do
2846  test -f "$ac_file" || continue;
2847  case $ac_file in
2848    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2849    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2850       break;;
2851  esac
2852done
2853else
2854  $as_echo "$as_me: failed program was:" >&5
2855sed 's/^/| /' conftest.$ac_ext >&5
2856
2857{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2858$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2859as_fn_error $? "cannot compute suffix of object files: cannot compile
2860See \`config.log' for more details" "$LINENO" 5; }
2861fi
2862rm -f conftest.$ac_cv_objext conftest.$ac_ext
2863fi
2864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2865$as_echo "$ac_cv_objext" >&6; }
2866OBJEXT=$ac_cv_objext
2867ac_objext=$OBJEXT
2868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2869$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2870if ${ac_cv_c_compiler_gnu+:} false; then :
2871  $as_echo_n "(cached) " >&6
2872else
2873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2874/* end confdefs.h.  */
2875
2876int
2877main ()
2878{
2879#ifndef __GNUC__
2880       choke me
2881#endif
2882
2883  ;
2884  return 0;
2885}
2886_ACEOF
2887if ac_fn_c_try_compile "$LINENO"; then :
2888  ac_compiler_gnu=yes
2889else
2890  ac_compiler_gnu=no
2891fi
2892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2893ac_cv_c_compiler_gnu=$ac_compiler_gnu
2894
2895fi
2896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2897$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2898if test $ac_compiler_gnu = yes; then
2899  GCC=yes
2900else
2901  GCC=
2902fi
2903ac_test_CFLAGS=${CFLAGS+set}
2904ac_save_CFLAGS=$CFLAGS
2905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2906$as_echo_n "checking whether $CC accepts -g... " >&6; }
2907if ${ac_cv_prog_cc_g+:} false; then :
2908  $as_echo_n "(cached) " >&6
2909else
2910  ac_save_c_werror_flag=$ac_c_werror_flag
2911   ac_c_werror_flag=yes
2912   ac_cv_prog_cc_g=no
2913   CFLAGS="-g"
2914   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2915/* end confdefs.h.  */
2916
2917int
2918main ()
2919{
2920
2921  ;
2922  return 0;
2923}
2924_ACEOF
2925if ac_fn_c_try_compile "$LINENO"; then :
2926  ac_cv_prog_cc_g=yes
2927else
2928  CFLAGS=""
2929      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2930/* end confdefs.h.  */
2931
2932int
2933main ()
2934{
2935
2936  ;
2937  return 0;
2938}
2939_ACEOF
2940if ac_fn_c_try_compile "$LINENO"; then :
2941
2942else
2943  ac_c_werror_flag=$ac_save_c_werror_flag
2944	 CFLAGS="-g"
2945	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2946/* end confdefs.h.  */
2947
2948int
2949main ()
2950{
2951
2952  ;
2953  return 0;
2954}
2955_ACEOF
2956if ac_fn_c_try_compile "$LINENO"; then :
2957  ac_cv_prog_cc_g=yes
2958fi
2959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2960fi
2961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2962fi
2963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2964   ac_c_werror_flag=$ac_save_c_werror_flag
2965fi
2966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2967$as_echo "$ac_cv_prog_cc_g" >&6; }
2968if test "$ac_test_CFLAGS" = set; then
2969  CFLAGS=$ac_save_CFLAGS
2970elif test $ac_cv_prog_cc_g = yes; then
2971  if test "$GCC" = yes; then
2972    CFLAGS="-g -O2"
2973  else
2974    CFLAGS="-g"
2975  fi
2976else
2977  if test "$GCC" = yes; then
2978    CFLAGS="-O2"
2979  else
2980    CFLAGS=
2981  fi
2982fi
2983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2984$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2985if ${ac_cv_prog_cc_c89+:} false; then :
2986  $as_echo_n "(cached) " >&6
2987else
2988  ac_cv_prog_cc_c89=no
2989ac_save_CC=$CC
2990cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2991/* end confdefs.h.  */
2992#include <stdarg.h>
2993#include <stdio.h>
2994struct stat;
2995/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2996struct buf { int x; };
2997FILE * (*rcsopen) (struct buf *, struct stat *, int);
2998static char *e (p, i)
2999     char **p;
3000     int i;
3001{
3002  return p[i];
3003}
3004static char *f (char * (*g) (char **, int), char **p, ...)
3005{
3006  char *s;
3007  va_list v;
3008  va_start (v,p);
3009  s = g (p, va_arg (v,int));
3010  va_end (v);
3011  return s;
3012}
3013
3014/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3015   function prototypes and stuff, but not '\xHH' hex character constants.
3016   These don't provoke an error unfortunately, instead are silently treated
3017   as 'x'.  The following induces an error, until -std is added to get
3018   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3019   array size at least.  It's necessary to write '\x00'==0 to get something
3020   that's true only with -std.  */
3021int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3022
3023/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3024   inside strings and character constants.  */
3025#define FOO(x) 'x'
3026int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3027
3028int test (int i, double x);
3029struct s1 {int (*f) (int a);};
3030struct s2 {int (*f) (double a);};
3031int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3032int argc;
3033char **argv;
3034int
3035main ()
3036{
3037return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3038  ;
3039  return 0;
3040}
3041_ACEOF
3042for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3043	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3044do
3045  CC="$ac_save_CC $ac_arg"
3046  if ac_fn_c_try_compile "$LINENO"; then :
3047  ac_cv_prog_cc_c89=$ac_arg
3048fi
3049rm -f core conftest.err conftest.$ac_objext
3050  test "x$ac_cv_prog_cc_c89" != "xno" && break
3051done
3052rm -f conftest.$ac_ext
3053CC=$ac_save_CC
3054
3055fi
3056# AC_CACHE_VAL
3057case "x$ac_cv_prog_cc_c89" in
3058  x)
3059    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3060$as_echo "none needed" >&6; } ;;
3061  xno)
3062    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3063$as_echo "unsupported" >&6; } ;;
3064  *)
3065    CC="$CC $ac_cv_prog_cc_c89"
3066    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3067$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3068esac
3069if test "x$ac_cv_prog_cc_c89" != xno; then :
3070
3071fi
3072
3073ac_ext=c
3074ac_cpp='$CPP $CPPFLAGS'
3075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3077ac_compiler_gnu=$ac_cv_c_compiler_gnu
3078
3079ac_ext=c
3080ac_cpp='$CPP $CPPFLAGS'
3081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3083ac_compiler_gnu=$ac_cv_c_compiler_gnu
3084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3085$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3086if ${am_cv_prog_cc_c_o+:} false; then :
3087  $as_echo_n "(cached) " >&6
3088else
3089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3090/* end confdefs.h.  */
3091
3092int
3093main ()
3094{
3095
3096  ;
3097  return 0;
3098}
3099_ACEOF
3100  # Make sure it works both with $CC and with simple cc.
3101  # Following AC_PROG_CC_C_O, we do the test twice because some
3102  # compilers refuse to overwrite an existing .o file with -o,
3103  # though they will create one.
3104  am_cv_prog_cc_c_o=yes
3105  for am_i in 1 2; do
3106    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3107   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3108   ac_status=$?
3109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110   (exit $ac_status); } \
3111         && test -f conftest2.$ac_objext; then
3112      : OK
3113    else
3114      am_cv_prog_cc_c_o=no
3115      break
3116    fi
3117  done
3118  rm -f core conftest*
3119  unset am_i
3120fi
3121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3122$as_echo "$am_cv_prog_cc_c_o" >&6; }
3123if test "$am_cv_prog_cc_c_o" != yes; then
3124   # Losing compiler, so override with the script.
3125   # FIXME: It is wrong to rewrite CC.
3126   # But if we don't then we get into trouble of one sort or another.
3127   # A longer-term fix would be to have automake use am__CC in this case,
3128   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3129   CC="$am_aux_dir/compile $CC"
3130fi
3131ac_ext=c
3132ac_cpp='$CPP $CPPFLAGS'
3133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3135ac_compiler_gnu=$ac_cv_c_compiler_gnu
3136
3137
3138
3139ac_ext=c
3140ac_cpp='$CPP $CPPFLAGS'
3141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3143ac_compiler_gnu=$ac_cv_c_compiler_gnu
3144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3145$as_echo_n "checking how to run the C preprocessor... " >&6; }
3146# On Suns, sometimes $CPP names a directory.
3147if test -n "$CPP" && test -d "$CPP"; then
3148  CPP=
3149fi
3150if test -z "$CPP"; then
3151  if ${ac_cv_prog_CPP+:} false; then :
3152  $as_echo_n "(cached) " >&6
3153else
3154      # Double quotes because CPP needs to be expanded
3155    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3156    do
3157      ac_preproc_ok=false
3158for ac_c_preproc_warn_flag in '' yes
3159do
3160  # Use a header file that comes with gcc, so configuring glibc
3161  # with a fresh cross-compiler works.
3162  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3163  # <limits.h> exists even on freestanding compilers.
3164  # On the NeXT, cc -E runs the code through the compiler's parser,
3165  # not just through cpp. "Syntax error" is here to catch this case.
3166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3167/* end confdefs.h.  */
3168#ifdef __STDC__
3169# include <limits.h>
3170#else
3171# include <assert.h>
3172#endif
3173		     Syntax error
3174_ACEOF
3175if ac_fn_c_try_cpp "$LINENO"; then :
3176
3177else
3178  # Broken: fails on valid input.
3179continue
3180fi
3181rm -f conftest.err conftest.i conftest.$ac_ext
3182
3183  # OK, works on sane cases.  Now check whether nonexistent headers
3184  # can be detected and how.
3185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3186/* end confdefs.h.  */
3187#include <ac_nonexistent.h>
3188_ACEOF
3189if ac_fn_c_try_cpp "$LINENO"; then :
3190  # Broken: success on invalid input.
3191continue
3192else
3193  # Passes both tests.
3194ac_preproc_ok=:
3195break
3196fi
3197rm -f conftest.err conftest.i conftest.$ac_ext
3198
3199done
3200# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3201rm -f conftest.i conftest.err conftest.$ac_ext
3202if $ac_preproc_ok; then :
3203  break
3204fi
3205
3206    done
3207    ac_cv_prog_CPP=$CPP
3208
3209fi
3210  CPP=$ac_cv_prog_CPP
3211else
3212  ac_cv_prog_CPP=$CPP
3213fi
3214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3215$as_echo "$CPP" >&6; }
3216ac_preproc_ok=false
3217for ac_c_preproc_warn_flag in '' yes
3218do
3219  # Use a header file that comes with gcc, so configuring glibc
3220  # with a fresh cross-compiler works.
3221  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3222  # <limits.h> exists even on freestanding compilers.
3223  # On the NeXT, cc -E runs the code through the compiler's parser,
3224  # not just through cpp. "Syntax error" is here to catch this case.
3225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3226/* end confdefs.h.  */
3227#ifdef __STDC__
3228# include <limits.h>
3229#else
3230# include <assert.h>
3231#endif
3232		     Syntax error
3233_ACEOF
3234if ac_fn_c_try_cpp "$LINENO"; then :
3235
3236else
3237  # Broken: fails on valid input.
3238continue
3239fi
3240rm -f conftest.err conftest.i conftest.$ac_ext
3241
3242  # OK, works on sane cases.  Now check whether nonexistent headers
3243  # can be detected and how.
3244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245/* end confdefs.h.  */
3246#include <ac_nonexistent.h>
3247_ACEOF
3248if ac_fn_c_try_cpp "$LINENO"; then :
3249  # Broken: success on invalid input.
3250continue
3251else
3252  # Passes both tests.
3253ac_preproc_ok=:
3254break
3255fi
3256rm -f conftest.err conftest.i conftest.$ac_ext
3257
3258done
3259# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3260rm -f conftest.i conftest.err conftest.$ac_ext
3261if $ac_preproc_ok; then :
3262
3263else
3264  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3265$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3266as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3267See \`config.log' for more details" "$LINENO" 5; }
3268fi
3269
3270ac_ext=c
3271ac_cpp='$CPP $CPPFLAGS'
3272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3274ac_compiler_gnu=$ac_cv_c_compiler_gnu
3275
3276
3277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3278$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3279if ${ac_cv_path_GREP+:} false; then :
3280  $as_echo_n "(cached) " >&6
3281else
3282  if test -z "$GREP"; then
3283  ac_path_GREP_found=false
3284  # Loop through the user's path and test for each of PROGNAME-LIST
3285  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3286for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3287do
3288  IFS=$as_save_IFS
3289  test -z "$as_dir" && as_dir=.
3290    for ac_prog in grep ggrep; do
3291    for ac_exec_ext in '' $ac_executable_extensions; do
3292      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3293      as_fn_executable_p "$ac_path_GREP" || continue
3294# Check for GNU ac_path_GREP and select it if it is found.
3295  # Check for GNU $ac_path_GREP
3296case `"$ac_path_GREP" --version 2>&1` in
3297*GNU*)
3298  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3299*)
3300  ac_count=0
3301  $as_echo_n 0123456789 >"conftest.in"
3302  while :
3303  do
3304    cat "conftest.in" "conftest.in" >"conftest.tmp"
3305    mv "conftest.tmp" "conftest.in"
3306    cp "conftest.in" "conftest.nl"
3307    $as_echo 'GREP' >> "conftest.nl"
3308    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3309    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3310    as_fn_arith $ac_count + 1 && ac_count=$as_val
3311    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3312      # Best one so far, save it but keep looking for a better one
3313      ac_cv_path_GREP="$ac_path_GREP"
3314      ac_path_GREP_max=$ac_count
3315    fi
3316    # 10*(2^10) chars as input seems more than enough
3317    test $ac_count -gt 10 && break
3318  done
3319  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3320esac
3321
3322      $ac_path_GREP_found && break 3
3323    done
3324  done
3325  done
3326IFS=$as_save_IFS
3327  if test -z "$ac_cv_path_GREP"; then
3328    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3329  fi
3330else
3331  ac_cv_path_GREP=$GREP
3332fi
3333
3334fi
3335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3336$as_echo "$ac_cv_path_GREP" >&6; }
3337 GREP="$ac_cv_path_GREP"
3338
3339
3340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3341$as_echo_n "checking for egrep... " >&6; }
3342if ${ac_cv_path_EGREP+:} false; then :
3343  $as_echo_n "(cached) " >&6
3344else
3345  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3346   then ac_cv_path_EGREP="$GREP -E"
3347   else
3348     if test -z "$EGREP"; then
3349  ac_path_EGREP_found=false
3350  # Loop through the user's path and test for each of PROGNAME-LIST
3351  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3353do
3354  IFS=$as_save_IFS
3355  test -z "$as_dir" && as_dir=.
3356    for ac_prog in egrep; do
3357    for ac_exec_ext in '' $ac_executable_extensions; do
3358      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3359      as_fn_executable_p "$ac_path_EGREP" || continue
3360# Check for GNU ac_path_EGREP and select it if it is found.
3361  # Check for GNU $ac_path_EGREP
3362case `"$ac_path_EGREP" --version 2>&1` in
3363*GNU*)
3364  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3365*)
3366  ac_count=0
3367  $as_echo_n 0123456789 >"conftest.in"
3368  while :
3369  do
3370    cat "conftest.in" "conftest.in" >"conftest.tmp"
3371    mv "conftest.tmp" "conftest.in"
3372    cp "conftest.in" "conftest.nl"
3373    $as_echo 'EGREP' >> "conftest.nl"
3374    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3375    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3376    as_fn_arith $ac_count + 1 && ac_count=$as_val
3377    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3378      # Best one so far, save it but keep looking for a better one
3379      ac_cv_path_EGREP="$ac_path_EGREP"
3380      ac_path_EGREP_max=$ac_count
3381    fi
3382    # 10*(2^10) chars as input seems more than enough
3383    test $ac_count -gt 10 && break
3384  done
3385  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3386esac
3387
3388      $ac_path_EGREP_found && break 3
3389    done
3390  done
3391  done
3392IFS=$as_save_IFS
3393  if test -z "$ac_cv_path_EGREP"; then
3394    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3395  fi
3396else
3397  ac_cv_path_EGREP=$EGREP
3398fi
3399
3400   fi
3401fi
3402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3403$as_echo "$ac_cv_path_EGREP" >&6; }
3404 EGREP="$ac_cv_path_EGREP"
3405
3406
3407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3408$as_echo_n "checking for ANSI C header files... " >&6; }
3409if ${ac_cv_header_stdc+:} false; then :
3410  $as_echo_n "(cached) " >&6
3411else
3412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413/* end confdefs.h.  */
3414#include <stdlib.h>
3415#include <stdarg.h>
3416#include <string.h>
3417#include <float.h>
3418
3419int
3420main ()
3421{
3422
3423  ;
3424  return 0;
3425}
3426_ACEOF
3427if ac_fn_c_try_compile "$LINENO"; then :
3428  ac_cv_header_stdc=yes
3429else
3430  ac_cv_header_stdc=no
3431fi
3432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3433
3434if test $ac_cv_header_stdc = yes; then
3435  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3437/* end confdefs.h.  */
3438#include <string.h>
3439
3440_ACEOF
3441if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3442  $EGREP "memchr" >/dev/null 2>&1; then :
3443
3444else
3445  ac_cv_header_stdc=no
3446fi
3447rm -f conftest*
3448
3449fi
3450
3451if test $ac_cv_header_stdc = yes; then
3452  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3454/* end confdefs.h.  */
3455#include <stdlib.h>
3456
3457_ACEOF
3458if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3459  $EGREP "free" >/dev/null 2>&1; then :
3460
3461else
3462  ac_cv_header_stdc=no
3463fi
3464rm -f conftest*
3465
3466fi
3467
3468if test $ac_cv_header_stdc = yes; then
3469  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3470  if test "$cross_compiling" = yes; then :
3471  :
3472else
3473  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3474/* end confdefs.h.  */
3475#include <ctype.h>
3476#include <stdlib.h>
3477#if ((' ' & 0x0FF) == 0x020)
3478# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3479# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3480#else
3481# define ISLOWER(c) \
3482		   (('a' <= (c) && (c) <= 'i') \
3483		     || ('j' <= (c) && (c) <= 'r') \
3484		     || ('s' <= (c) && (c) <= 'z'))
3485# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3486#endif
3487
3488#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3489int
3490main ()
3491{
3492  int i;
3493  for (i = 0; i < 256; i++)
3494    if (XOR (islower (i), ISLOWER (i))
3495	|| toupper (i) != TOUPPER (i))
3496      return 2;
3497  return 0;
3498}
3499_ACEOF
3500if ac_fn_c_try_run "$LINENO"; then :
3501
3502else
3503  ac_cv_header_stdc=no
3504fi
3505rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3506  conftest.$ac_objext conftest.beam conftest.$ac_ext
3507fi
3508
3509fi
3510fi
3511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3512$as_echo "$ac_cv_header_stdc" >&6; }
3513if test $ac_cv_header_stdc = yes; then
3514
3515$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3516
3517fi
3518
3519# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3520for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3521		  inttypes.h stdint.h unistd.h
3522do :
3523  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3524ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3525"
3526if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3527  cat >>confdefs.h <<_ACEOF
3528#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3529_ACEOF
3530
3531fi
3532
3533done
3534
3535
3536
3537  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3538if test "x$ac_cv_header_minix_config_h" = xyes; then :
3539  MINIX=yes
3540else
3541  MINIX=
3542fi
3543
3544
3545  if test "$MINIX" = yes; then
3546
3547$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3548
3549
3550$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3551
3552
3553$as_echo "#define _MINIX 1" >>confdefs.h
3554
3555  fi
3556
3557
3558  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3559$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3560if ${ac_cv_safe_to_define___extensions__+:} false; then :
3561  $as_echo_n "(cached) " >&6
3562else
3563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564/* end confdefs.h.  */
3565
3566#         define __EXTENSIONS__ 1
3567          $ac_includes_default
3568int
3569main ()
3570{
3571
3572  ;
3573  return 0;
3574}
3575_ACEOF
3576if ac_fn_c_try_compile "$LINENO"; then :
3577  ac_cv_safe_to_define___extensions__=yes
3578else
3579  ac_cv_safe_to_define___extensions__=no
3580fi
3581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3582fi
3583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3584$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3585  test $ac_cv_safe_to_define___extensions__ = yes &&
3586    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3587
3588  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3589
3590  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3591
3592  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3593
3594  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3595
3596
3597
3598# Initialize Automake
3599am__api_version='1.15'
3600
3601# Find a good install program.  We prefer a C program (faster),
3602# so one script is as good as another.  But avoid the broken or
3603# incompatible versions:
3604# SysV /etc/install, /usr/sbin/install
3605# SunOS /usr/etc/install
3606# IRIX /sbin/install
3607# AIX /bin/install
3608# AmigaOS /C/install, which installs bootblocks on floppy discs
3609# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3610# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3611# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3612# OS/2's system install, which has a completely different semantic
3613# ./install, which can be erroneously created by make from ./install.sh.
3614# Reject install programs that cannot install multiple files.
3615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3616$as_echo_n "checking for a BSD-compatible install... " >&6; }
3617if test -z "$INSTALL"; then
3618if ${ac_cv_path_install+:} false; then :
3619  $as_echo_n "(cached) " >&6
3620else
3621  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622for as_dir in $PATH
3623do
3624  IFS=$as_save_IFS
3625  test -z "$as_dir" && as_dir=.
3626    # Account for people who put trailing slashes in PATH elements.
3627case $as_dir/ in #((
3628  ./ | .// | /[cC]/* | \
3629  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3630  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3631  /usr/ucb/* ) ;;
3632  *)
3633    # OSF1 and SCO ODT 3.0 have their own names for install.
3634    # Don't use installbsd from OSF since it installs stuff as root
3635    # by default.
3636    for ac_prog in ginstall scoinst install; do
3637      for ac_exec_ext in '' $ac_executable_extensions; do
3638	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3639	  if test $ac_prog = install &&
3640	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3641	    # AIX install.  It has an incompatible calling convention.
3642	    :
3643	  elif test $ac_prog = install &&
3644	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3645	    # program-specific install script used by HP pwplus--don't use.
3646	    :
3647	  else
3648	    rm -rf conftest.one conftest.two conftest.dir
3649	    echo one > conftest.one
3650	    echo two > conftest.two
3651	    mkdir conftest.dir
3652	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3653	      test -s conftest.one && test -s conftest.two &&
3654	      test -s conftest.dir/conftest.one &&
3655	      test -s conftest.dir/conftest.two
3656	    then
3657	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3658	      break 3
3659	    fi
3660	  fi
3661	fi
3662      done
3663    done
3664    ;;
3665esac
3666
3667  done
3668IFS=$as_save_IFS
3669
3670rm -rf conftest.one conftest.two conftest.dir
3671
3672fi
3673  if test "${ac_cv_path_install+set}" = set; then
3674    INSTALL=$ac_cv_path_install
3675  else
3676    # As a last resort, use the slow shell script.  Don't cache a
3677    # value for INSTALL within a source directory, because that will
3678    # break other packages using the cache if that directory is
3679    # removed, or if the value is a relative name.
3680    INSTALL=$ac_install_sh
3681  fi
3682fi
3683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3684$as_echo "$INSTALL" >&6; }
3685
3686# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3687# It thinks the first close brace ends the variable substitution.
3688test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3689
3690test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3691
3692test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3693
3694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3695$as_echo_n "checking whether build environment is sane... " >&6; }
3696# Reject unsafe characters in $srcdir or the absolute working directory
3697# name.  Accept space and tab only in the latter.
3698am_lf='
3699'
3700case `pwd` in
3701  *[\\\"\#\$\&\'\`$am_lf]*)
3702    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3703esac
3704case $srcdir in
3705  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3706    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3707esac
3708
3709# Do 'set' in a subshell so we don't clobber the current shell's
3710# arguments.  Must try -L first in case configure is actually a
3711# symlink; some systems play weird games with the mod time of symlinks
3712# (eg FreeBSD returns the mod time of the symlink's containing
3713# directory).
3714if (
3715   am_has_slept=no
3716   for am_try in 1 2; do
3717     echo "timestamp, slept: $am_has_slept" > conftest.file
3718     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3719     if test "$*" = "X"; then
3720	# -L didn't work.
3721	set X `ls -t "$srcdir/configure" conftest.file`
3722     fi
3723     if test "$*" != "X $srcdir/configure conftest.file" \
3724	&& test "$*" != "X conftest.file $srcdir/configure"; then
3725
3726	# If neither matched, then we have a broken ls.  This can happen
3727	# if, for instance, CONFIG_SHELL is bash and it inherits a
3728	# broken ls alias from the environment.  This has actually
3729	# happened.  Such a system could not be considered "sane".
3730	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3731  alias in your environment" "$LINENO" 5
3732     fi
3733     if test "$2" = conftest.file || test $am_try -eq 2; then
3734       break
3735     fi
3736     # Just in case.
3737     sleep 1
3738     am_has_slept=yes
3739   done
3740   test "$2" = conftest.file
3741   )
3742then
3743   # Ok.
3744   :
3745else
3746   as_fn_error $? "newly created file is older than distributed files!
3747Check your system clock" "$LINENO" 5
3748fi
3749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3750$as_echo "yes" >&6; }
3751# If we didn't sleep, we still need to ensure time stamps of config.status and
3752# generated files are strictly newer.
3753am_sleep_pid=
3754if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3755  ( sleep 1 ) &
3756  am_sleep_pid=$!
3757fi
3758
3759rm -f conftest.file
3760
3761test "$program_prefix" != NONE &&
3762  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3763# Use a double $ so make ignores it.
3764test "$program_suffix" != NONE &&
3765  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3766# Double any \ or $.
3767# By default was `s,x,x', remove it if useless.
3768ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3769program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3770
3771if test x"${MISSING+set}" != xset; then
3772  case $am_aux_dir in
3773  *\ * | *\	*)
3774    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3775  *)
3776    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3777  esac
3778fi
3779# Use eval to expand $SHELL
3780if eval "$MISSING --is-lightweight"; then
3781  am_missing_run="$MISSING "
3782else
3783  am_missing_run=
3784  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3785$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3786fi
3787
3788if test x"${install_sh+set}" != xset; then
3789  case $am_aux_dir in
3790  *\ * | *\	*)
3791    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3792  *)
3793    install_sh="\${SHELL} $am_aux_dir/install-sh"
3794  esac
3795fi
3796
3797# Installed binaries are usually stripped using 'strip' when the user
3798# run "make install-strip".  However 'strip' might not be the right
3799# tool to use in cross-compilation environments, therefore Automake
3800# will honor the 'STRIP' environment variable to overrule this program.
3801if test "$cross_compiling" != no; then
3802  if test -n "$ac_tool_prefix"; then
3803  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3804set dummy ${ac_tool_prefix}strip; ac_word=$2
3805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3806$as_echo_n "checking for $ac_word... " >&6; }
3807if ${ac_cv_prog_STRIP+:} false; then :
3808  $as_echo_n "(cached) " >&6
3809else
3810  if test -n "$STRIP"; then
3811  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3812else
3813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814for as_dir in $PATH
3815do
3816  IFS=$as_save_IFS
3817  test -z "$as_dir" && as_dir=.
3818    for ac_exec_ext in '' $ac_executable_extensions; do
3819  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3820    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3821    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3822    break 2
3823  fi
3824done
3825  done
3826IFS=$as_save_IFS
3827
3828fi
3829fi
3830STRIP=$ac_cv_prog_STRIP
3831if test -n "$STRIP"; then
3832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3833$as_echo "$STRIP" >&6; }
3834else
3835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3836$as_echo "no" >&6; }
3837fi
3838
3839
3840fi
3841if test -z "$ac_cv_prog_STRIP"; then
3842  ac_ct_STRIP=$STRIP
3843  # Extract the first word of "strip", so it can be a program name with args.
3844set dummy strip; ac_word=$2
3845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3846$as_echo_n "checking for $ac_word... " >&6; }
3847if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3848  $as_echo_n "(cached) " >&6
3849else
3850  if test -n "$ac_ct_STRIP"; then
3851  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3852else
3853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854for as_dir in $PATH
3855do
3856  IFS=$as_save_IFS
3857  test -z "$as_dir" && as_dir=.
3858    for ac_exec_ext in '' $ac_executable_extensions; do
3859  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3860    ac_cv_prog_ac_ct_STRIP="strip"
3861    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3862    break 2
3863  fi
3864done
3865  done
3866IFS=$as_save_IFS
3867
3868fi
3869fi
3870ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3871if test -n "$ac_ct_STRIP"; then
3872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3873$as_echo "$ac_ct_STRIP" >&6; }
3874else
3875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3876$as_echo "no" >&6; }
3877fi
3878
3879  if test "x$ac_ct_STRIP" = x; then
3880    STRIP=":"
3881  else
3882    case $cross_compiling:$ac_tool_warned in
3883yes:)
3884{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3885$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3886ac_tool_warned=yes ;;
3887esac
3888    STRIP=$ac_ct_STRIP
3889  fi
3890else
3891  STRIP="$ac_cv_prog_STRIP"
3892fi
3893
3894fi
3895INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3896
3897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3898$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3899if test -z "$MKDIR_P"; then
3900  if ${ac_cv_path_mkdir+:} false; then :
3901  $as_echo_n "(cached) " >&6
3902else
3903  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3905do
3906  IFS=$as_save_IFS
3907  test -z "$as_dir" && as_dir=.
3908    for ac_prog in mkdir gmkdir; do
3909	 for ac_exec_ext in '' $ac_executable_extensions; do
3910	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3911	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3912	     'mkdir (GNU coreutils) '* | \
3913	     'mkdir (coreutils) '* | \
3914	     'mkdir (fileutils) '4.1*)
3915	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3916	       break 3;;
3917	   esac
3918	 done
3919       done
3920  done
3921IFS=$as_save_IFS
3922
3923fi
3924
3925  test -d ./--version && rmdir ./--version
3926  if test "${ac_cv_path_mkdir+set}" = set; then
3927    MKDIR_P="$ac_cv_path_mkdir -p"
3928  else
3929    # As a last resort, use the slow shell script.  Don't cache a
3930    # value for MKDIR_P within a source directory, because that will
3931    # break other packages using the cache if that directory is
3932    # removed, or if the value is a relative name.
3933    MKDIR_P="$ac_install_sh -d"
3934  fi
3935fi
3936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3937$as_echo "$MKDIR_P" >&6; }
3938
3939for ac_prog in gawk mawk nawk awk
3940do
3941  # Extract the first word of "$ac_prog", so it can be a program name with args.
3942set dummy $ac_prog; ac_word=$2
3943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3944$as_echo_n "checking for $ac_word... " >&6; }
3945if ${ac_cv_prog_AWK+:} false; then :
3946  $as_echo_n "(cached) " >&6
3947else
3948  if test -n "$AWK"; then
3949  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3950else
3951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3952for as_dir in $PATH
3953do
3954  IFS=$as_save_IFS
3955  test -z "$as_dir" && as_dir=.
3956    for ac_exec_ext in '' $ac_executable_extensions; do
3957  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3958    ac_cv_prog_AWK="$ac_prog"
3959    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3960    break 2
3961  fi
3962done
3963  done
3964IFS=$as_save_IFS
3965
3966fi
3967fi
3968AWK=$ac_cv_prog_AWK
3969if test -n "$AWK"; then
3970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3971$as_echo "$AWK" >&6; }
3972else
3973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3974$as_echo "no" >&6; }
3975fi
3976
3977
3978  test -n "$AWK" && break
3979done
3980
3981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3982$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3983set x ${MAKE-make}
3984ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3985if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3986  $as_echo_n "(cached) " >&6
3987else
3988  cat >conftest.make <<\_ACEOF
3989SHELL = /bin/sh
3990all:
3991	@echo '@@@%%%=$(MAKE)=@@@%%%'
3992_ACEOF
3993# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3994case `${MAKE-make} -f conftest.make 2>/dev/null` in
3995  *@@@%%%=?*=@@@%%%*)
3996    eval ac_cv_prog_make_${ac_make}_set=yes;;
3997  *)
3998    eval ac_cv_prog_make_${ac_make}_set=no;;
3999esac
4000rm -f conftest.make
4001fi
4002if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4004$as_echo "yes" >&6; }
4005  SET_MAKE=
4006else
4007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4008$as_echo "no" >&6; }
4009  SET_MAKE="MAKE=${MAKE-make}"
4010fi
4011
4012rm -rf .tst 2>/dev/null
4013mkdir .tst 2>/dev/null
4014if test -d .tst; then
4015  am__leading_dot=.
4016else
4017  am__leading_dot=_
4018fi
4019rmdir .tst 2>/dev/null
4020
4021DEPDIR="${am__leading_dot}deps"
4022
4023ac_config_commands="$ac_config_commands depfiles"
4024
4025
4026am_make=${MAKE-make}
4027cat > confinc << 'END'
4028am__doit:
4029	@echo this is the am__doit target
4030.PHONY: am__doit
4031END
4032# If we don't find an include directive, just comment out the code.
4033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4034$as_echo_n "checking for style of include used by $am_make... " >&6; }
4035am__include="#"
4036am__quote=
4037_am_result=none
4038# First try GNU make style include.
4039echo "include confinc" > confmf
4040# Ignore all kinds of additional output from 'make'.
4041case `$am_make -s -f confmf 2> /dev/null` in #(
4042*the\ am__doit\ target*)
4043  am__include=include
4044  am__quote=
4045  _am_result=GNU
4046  ;;
4047esac
4048# Now try BSD make style include.
4049if test "$am__include" = "#"; then
4050   echo '.include "confinc"' > confmf
4051   case `$am_make -s -f confmf 2> /dev/null` in #(
4052   *the\ am__doit\ target*)
4053     am__include=.include
4054     am__quote="\""
4055     _am_result=BSD
4056     ;;
4057   esac
4058fi
4059
4060
4061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4062$as_echo "$_am_result" >&6; }
4063rm -f confinc confmf
4064
4065# Check whether --enable-dependency-tracking was given.
4066if test "${enable_dependency_tracking+set}" = set; then :
4067  enableval=$enable_dependency_tracking;
4068fi
4069
4070if test "x$enable_dependency_tracking" != xno; then
4071  am_depcomp="$ac_aux_dir/depcomp"
4072  AMDEPBACKSLASH='\'
4073  am__nodep='_no'
4074fi
4075 if test "x$enable_dependency_tracking" != xno; then
4076  AMDEP_TRUE=
4077  AMDEP_FALSE='#'
4078else
4079  AMDEP_TRUE='#'
4080  AMDEP_FALSE=
4081fi
4082
4083
4084# Check whether --enable-silent-rules was given.
4085if test "${enable_silent_rules+set}" = set; then :
4086  enableval=$enable_silent_rules;
4087fi
4088
4089case $enable_silent_rules in # (((
4090  yes) AM_DEFAULT_VERBOSITY=0;;
4091   no) AM_DEFAULT_VERBOSITY=1;;
4092    *) AM_DEFAULT_VERBOSITY=1;;
4093esac
4094am_make=${MAKE-make}
4095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4096$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4097if ${am_cv_make_support_nested_variables+:} false; then :
4098  $as_echo_n "(cached) " >&6
4099else
4100  if $as_echo 'TRUE=$(BAR$(V))
4101BAR0=false
4102BAR1=true
4103V=1
4104am__doit:
4105	@$(TRUE)
4106.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4107  am_cv_make_support_nested_variables=yes
4108else
4109  am_cv_make_support_nested_variables=no
4110fi
4111fi
4112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4113$as_echo "$am_cv_make_support_nested_variables" >&6; }
4114if test $am_cv_make_support_nested_variables = yes; then
4115    AM_V='$(V)'
4116  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4117else
4118  AM_V=$AM_DEFAULT_VERBOSITY
4119  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4120fi
4121AM_BACKSLASH='\'
4122
4123if test "`cd $srcdir && pwd`" != "`pwd`"; then
4124  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4125  # is not polluted with repeated "-I."
4126  am__isrc=' -I$(srcdir)'
4127  # test to see if srcdir already configured
4128  if test -f $srcdir/config.status; then
4129    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4130  fi
4131fi
4132
4133# test whether we have cygpath
4134if test -z "$CYGPATH_W"; then
4135  if (cygpath --version) >/dev/null 2>/dev/null; then
4136    CYGPATH_W='cygpath -w'
4137  else
4138    CYGPATH_W=echo
4139  fi
4140fi
4141
4142
4143# Define the identity of the package.
4144 PACKAGE='xrdb'
4145 VERSION='1.1.1'
4146
4147
4148cat >>confdefs.h <<_ACEOF
4149#define PACKAGE "$PACKAGE"
4150_ACEOF
4151
4152
4153cat >>confdefs.h <<_ACEOF
4154#define VERSION "$VERSION"
4155_ACEOF
4156
4157# Some tools Automake needs.
4158
4159ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4160
4161
4162AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4163
4164
4165AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4166
4167
4168AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4169
4170
4171MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4172
4173# For better backward compatibility.  To be removed once Automake 1.9.x
4174# dies out for good.  For more background, see:
4175# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4176# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4177mkdir_p='$(MKDIR_P)'
4178
4179# We need awk for the "check" target (and possibly the TAP driver).  The
4180# system "awk" is bad on some platforms.
4181# Always define AMTAR for backward compatibility.  Yes, it's still used
4182# in the wild :-(  We should find a proper way to deprecate it ...
4183AMTAR='$${TAR-tar}'
4184
4185
4186# We'll loop over all known methods to create a tar archive until one works.
4187_am_tools='gnutar  pax cpio none'
4188
4189am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4190
4191
4192
4193
4194
4195depcc="$CC"   am_compiler_list=
4196
4197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4198$as_echo_n "checking dependency style of $depcc... " >&6; }
4199if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4200  $as_echo_n "(cached) " >&6
4201else
4202  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4203  # We make a subdir and do the tests there.  Otherwise we can end up
4204  # making bogus files that we don't know about and never remove.  For
4205  # instance it was reported that on HP-UX the gcc test will end up
4206  # making a dummy file named 'D' -- because '-MD' means "put the output
4207  # in D".
4208  rm -rf conftest.dir
4209  mkdir conftest.dir
4210  # Copy depcomp to subdir because otherwise we won't find it if we're
4211  # using a relative directory.
4212  cp "$am_depcomp" conftest.dir
4213  cd conftest.dir
4214  # We will build objects and dependencies in a subdirectory because
4215  # it helps to detect inapplicable dependency modes.  For instance
4216  # both Tru64's cc and ICC support -MD to output dependencies as a
4217  # side effect of compilation, but ICC will put the dependencies in
4218  # the current directory while Tru64 will put them in the object
4219  # directory.
4220  mkdir sub
4221
4222  am_cv_CC_dependencies_compiler_type=none
4223  if test "$am_compiler_list" = ""; then
4224     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4225  fi
4226  am__universal=false
4227  case " $depcc " in #(
4228     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4229     esac
4230
4231  for depmode in $am_compiler_list; do
4232    # Setup a source with many dependencies, because some compilers
4233    # like to wrap large dependency lists on column 80 (with \), and
4234    # we should not choose a depcomp mode which is confused by this.
4235    #
4236    # We need to recreate these files for each test, as the compiler may
4237    # overwrite some of them when testing with obscure command lines.
4238    # This happens at least with the AIX C compiler.
4239    : > sub/conftest.c
4240    for i in 1 2 3 4 5 6; do
4241      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4242      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4243      # Solaris 10 /bin/sh.
4244      echo '/* dummy */' > sub/conftst$i.h
4245    done
4246    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4247
4248    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4249    # mode.  It turns out that the SunPro C++ compiler does not properly
4250    # handle '-M -o', and we need to detect this.  Also, some Intel
4251    # versions had trouble with output in subdirs.
4252    am__obj=sub/conftest.${OBJEXT-o}
4253    am__minus_obj="-o $am__obj"
4254    case $depmode in
4255    gcc)
4256      # This depmode causes a compiler race in universal mode.
4257      test "$am__universal" = false || continue
4258      ;;
4259    nosideeffect)
4260      # After this tag, mechanisms are not by side-effect, so they'll
4261      # only be used when explicitly requested.
4262      if test "x$enable_dependency_tracking" = xyes; then
4263	continue
4264      else
4265	break
4266      fi
4267      ;;
4268    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4269      # This compiler won't grok '-c -o', but also, the minuso test has
4270      # not run yet.  These depmodes are late enough in the game, and
4271      # so weak that their functioning should not be impacted.
4272      am__obj=conftest.${OBJEXT-o}
4273      am__minus_obj=
4274      ;;
4275    none) break ;;
4276    esac
4277    if depmode=$depmode \
4278       source=sub/conftest.c object=$am__obj \
4279       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4280       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4281         >/dev/null 2>conftest.err &&
4282       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4283       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4284       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4285       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4286      # icc doesn't choke on unknown options, it will just issue warnings
4287      # or remarks (even with -Werror).  So we grep stderr for any message
4288      # that says an option was ignored or not supported.
4289      # When given -MP, icc 7.0 and 7.1 complain thusly:
4290      #   icc: Command line warning: ignoring option '-M'; no argument required
4291      # The diagnosis changed in icc 8.0:
4292      #   icc: Command line remark: option '-MP' not supported
4293      if (grep 'ignoring option' conftest.err ||
4294          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4295        am_cv_CC_dependencies_compiler_type=$depmode
4296        break
4297      fi
4298    fi
4299  done
4300
4301  cd ..
4302  rm -rf conftest.dir
4303else
4304  am_cv_CC_dependencies_compiler_type=none
4305fi
4306
4307fi
4308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4309$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4310CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4311
4312 if
4313  test "x$enable_dependency_tracking" != xno \
4314  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4315  am__fastdepCC_TRUE=
4316  am__fastdepCC_FALSE='#'
4317else
4318  am__fastdepCC_TRUE='#'
4319  am__fastdepCC_FALSE=
4320fi
4321
4322
4323
4324# POSIX will say in a future version that running "rm -f" with no argument
4325# is OK; and we want to be able to make that assumption in our Makefile
4326# recipes.  So use an aggressive probe to check that the usage we want is
4327# actually supported "in the wild" to an acceptable degree.
4328# See automake bug#10828.
4329# To make any issue more visible, cause the running configure to be aborted
4330# by default if the 'rm' program in use doesn't match our expectations; the
4331# user can still override this though.
4332if rm -f && rm -fr && rm -rf; then : OK; else
4333  cat >&2 <<'END'
4334Oops!
4335
4336Your 'rm' program seems unable to run without file operands specified
4337on the command line, even when the '-f' option is present.  This is contrary
4338to the behaviour of most rm programs out there, and not conforming with
4339the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4340
4341Please tell bug-automake@gnu.org about your system, including the value
4342of your $PATH and any error possibly output before this message.  This
4343can help us improve future automake versions.
4344
4345END
4346  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4347    echo 'Configuration will proceed anyway, since you have set the' >&2
4348    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4349    echo >&2
4350  else
4351    cat >&2 <<'END'
4352Aborting the configuration process, to ensure you take notice of the issue.
4353
4354You can download and install GNU coreutils to get an 'rm' implementation
4355that behaves properly: <http://www.gnu.org/software/coreutils/>.
4356
4357If you want to complete the configuration process using your problematic
4358'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4359to "yes", and re-run configure.
4360
4361END
4362    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4363  fi
4364fi
4365
4366
4367# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4380$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4381if ${ac_cv_prog_cc_c99+:} false; then :
4382  $as_echo_n "(cached) " >&6
4383else
4384  ac_cv_prog_cc_c99=no
4385ac_save_CC=$CC
4386cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4387/* end confdefs.h.  */
4388#include <stdarg.h>
4389#include <stdbool.h>
4390#include <stdlib.h>
4391#include <wchar.h>
4392#include <stdio.h>
4393
4394// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4395#define debug(...) fprintf (stderr, __VA_ARGS__)
4396#define showlist(...) puts (#__VA_ARGS__)
4397#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4398static void
4399test_varargs_macros (void)
4400{
4401  int x = 1234;
4402  int y = 5678;
4403  debug ("Flag");
4404  debug ("X = %d\n", x);
4405  showlist (The first, second, and third items.);
4406  report (x>y, "x is %d but y is %d", x, y);
4407}
4408
4409// Check long long types.
4410#define BIG64 18446744073709551615ull
4411#define BIG32 4294967295ul
4412#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4413#if !BIG_OK
4414  your preprocessor is broken;
4415#endif
4416#if BIG_OK
4417#else
4418  your preprocessor is broken;
4419#endif
4420static long long int bignum = -9223372036854775807LL;
4421static unsigned long long int ubignum = BIG64;
4422
4423struct incomplete_array
4424{
4425  int datasize;
4426  double data[];
4427};
4428
4429struct named_init {
4430  int number;
4431  const wchar_t *name;
4432  double average;
4433};
4434
4435typedef const char *ccp;
4436
4437static inline int
4438test_restrict (ccp restrict text)
4439{
4440  // See if C++-style comments work.
4441  // Iterate through items via the restricted pointer.
4442  // Also check for declarations in for loops.
4443  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4444    continue;
4445  return 0;
4446}
4447
4448// Check varargs and va_copy.
4449static void
4450test_varargs (const char *format, ...)
4451{
4452  va_list args;
4453  va_start (args, format);
4454  va_list args_copy;
4455  va_copy (args_copy, args);
4456
4457  const char *str;
4458  int number;
4459  float fnumber;
4460
4461  while (*format)
4462    {
4463      switch (*format++)
4464	{
4465	case 's': // string
4466	  str = va_arg (args_copy, const char *);
4467	  break;
4468	case 'd': // int
4469	  number = va_arg (args_copy, int);
4470	  break;
4471	case 'f': // float
4472	  fnumber = va_arg (args_copy, double);
4473	  break;
4474	default:
4475	  break;
4476	}
4477    }
4478  va_end (args_copy);
4479  va_end (args);
4480}
4481
4482int
4483main ()
4484{
4485
4486  // Check bool.
4487  _Bool success = false;
4488
4489  // Check restrict.
4490  if (test_restrict ("String literal") == 0)
4491    success = true;
4492  char *restrict newvar = "Another string";
4493
4494  // Check varargs.
4495  test_varargs ("s, d' f .", "string", 65, 34.234);
4496  test_varargs_macros ();
4497
4498  // Check flexible array members.
4499  struct incomplete_array *ia =
4500    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4501  ia->datasize = 10;
4502  for (int i = 0; i < ia->datasize; ++i)
4503    ia->data[i] = i * 1.234;
4504
4505  // Check named initializers.
4506  struct named_init ni = {
4507    .number = 34,
4508    .name = L"Test wide string",
4509    .average = 543.34343,
4510  };
4511
4512  ni.number = 58;
4513
4514  int dynamic_array[ni.number];
4515  dynamic_array[ni.number - 1] = 543;
4516
4517  // work around unused variable warnings
4518  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4519	  || dynamic_array[ni.number - 1] != 543);
4520
4521  ;
4522  return 0;
4523}
4524_ACEOF
4525for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4526do
4527  CC="$ac_save_CC $ac_arg"
4528  if ac_fn_c_try_compile "$LINENO"; then :
4529  ac_cv_prog_cc_c99=$ac_arg
4530fi
4531rm -f core conftest.err conftest.$ac_objext
4532  test "x$ac_cv_prog_cc_c99" != "xno" && break
4533done
4534rm -f conftest.$ac_ext
4535CC=$ac_save_CC
4536
4537fi
4538# AC_CACHE_VAL
4539case "x$ac_cv_prog_cc_c99" in
4540  x)
4541    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4542$as_echo "none needed" >&6; } ;;
4543  xno)
4544    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4545$as_echo "unsupported" >&6; } ;;
4546  *)
4547    CC="$CC $ac_cv_prog_cc_c99"
4548    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4549$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4550esac
4551if test "x$ac_cv_prog_cc_c99" != xno; then :
4552
4553fi
4554
4555
4556
4557
4558
4559
4560ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4561if test "x$ac_cv_have_decl___clang__" = xyes; then :
4562  CLANGCC="yes"
4563else
4564  CLANGCC="no"
4565fi
4566
4567ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4568if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4569  INTELCC="yes"
4570else
4571  INTELCC="no"
4572fi
4573
4574ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4575if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4576  SUNCC="yes"
4577else
4578  SUNCC="no"
4579fi
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4590	if test -n "$ac_tool_prefix"; then
4591  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4592set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4594$as_echo_n "checking for $ac_word... " >&6; }
4595if ${ac_cv_path_PKG_CONFIG+:} false; then :
4596  $as_echo_n "(cached) " >&6
4597else
4598  case $PKG_CONFIG in
4599  [\\/]* | ?:[\\/]*)
4600  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4601  ;;
4602  *)
4603  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604for as_dir in $PATH
4605do
4606  IFS=$as_save_IFS
4607  test -z "$as_dir" && as_dir=.
4608    for ac_exec_ext in '' $ac_executable_extensions; do
4609  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4610    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4611    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4612    break 2
4613  fi
4614done
4615  done
4616IFS=$as_save_IFS
4617
4618  ;;
4619esac
4620fi
4621PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4622if test -n "$PKG_CONFIG"; then
4623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4624$as_echo "$PKG_CONFIG" >&6; }
4625else
4626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4627$as_echo "no" >&6; }
4628fi
4629
4630
4631fi
4632if test -z "$ac_cv_path_PKG_CONFIG"; then
4633  ac_pt_PKG_CONFIG=$PKG_CONFIG
4634  # Extract the first word of "pkg-config", so it can be a program name with args.
4635set dummy pkg-config; ac_word=$2
4636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4637$as_echo_n "checking for $ac_word... " >&6; }
4638if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4639  $as_echo_n "(cached) " >&6
4640else
4641  case $ac_pt_PKG_CONFIG in
4642  [\\/]* | ?:[\\/]*)
4643  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4644  ;;
4645  *)
4646  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647for as_dir in $PATH
4648do
4649  IFS=$as_save_IFS
4650  test -z "$as_dir" && as_dir=.
4651    for ac_exec_ext in '' $ac_executable_extensions; do
4652  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4653    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4654    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4655    break 2
4656  fi
4657done
4658  done
4659IFS=$as_save_IFS
4660
4661  ;;
4662esac
4663fi
4664ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4665if test -n "$ac_pt_PKG_CONFIG"; then
4666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4667$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4668else
4669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4670$as_echo "no" >&6; }
4671fi
4672
4673  if test "x$ac_pt_PKG_CONFIG" = x; then
4674    PKG_CONFIG=""
4675  else
4676    case $cross_compiling:$ac_tool_warned in
4677yes:)
4678{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4679$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4680ac_tool_warned=yes ;;
4681esac
4682    PKG_CONFIG=$ac_pt_PKG_CONFIG
4683  fi
4684else
4685  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4686fi
4687
4688fi
4689if test -n "$PKG_CONFIG"; then
4690	_pkg_min_version=0.9.0
4691	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4692$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4693	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4694		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4695$as_echo "yes" >&6; }
4696	else
4697		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4698$as_echo "no" >&6; }
4699		PKG_CONFIG=""
4700	fi
4701fi
4702# Make sure we can run config.sub.
4703$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4704  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4705
4706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4707$as_echo_n "checking build system type... " >&6; }
4708if ${ac_cv_build+:} false; then :
4709  $as_echo_n "(cached) " >&6
4710else
4711  ac_build_alias=$build_alias
4712test "x$ac_build_alias" = x &&
4713  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4714test "x$ac_build_alias" = x &&
4715  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4716ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4717  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4718
4719fi
4720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4721$as_echo "$ac_cv_build" >&6; }
4722case $ac_cv_build in
4723*-*-*) ;;
4724*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4725esac
4726build=$ac_cv_build
4727ac_save_IFS=$IFS; IFS='-'
4728set x $ac_cv_build
4729shift
4730build_cpu=$1
4731build_vendor=$2
4732shift; shift
4733# Remember, the first character of IFS is used to create $*,
4734# except with old shells:
4735build_os=$*
4736IFS=$ac_save_IFS
4737case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4738
4739
4740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4741$as_echo_n "checking host system type... " >&6; }
4742if ${ac_cv_host+:} false; then :
4743  $as_echo_n "(cached) " >&6
4744else
4745  if test "x$host_alias" = x; then
4746  ac_cv_host=$ac_cv_build
4747else
4748  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4749    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4750fi
4751
4752fi
4753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4754$as_echo "$ac_cv_host" >&6; }
4755case $ac_cv_host in
4756*-*-*) ;;
4757*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4758esac
4759host=$ac_cv_host
4760ac_save_IFS=$IFS; IFS='-'
4761set x $ac_cv_host
4762shift
4763host_cpu=$1
4764host_vendor=$2
4765shift; shift
4766# Remember, the first character of IFS is used to create $*,
4767# except with old shells:
4768host_os=$*
4769IFS=$ac_save_IFS
4770case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4771
4772
4773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4774$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4775if ${ac_cv_path_SED+:} false; then :
4776  $as_echo_n "(cached) " >&6
4777else
4778            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4779     for ac_i in 1 2 3 4 5 6 7; do
4780       ac_script="$ac_script$as_nl$ac_script"
4781     done
4782     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4783     { ac_script=; unset ac_script;}
4784     if test -z "$SED"; then
4785  ac_path_SED_found=false
4786  # Loop through the user's path and test for each of PROGNAME-LIST
4787  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788for as_dir in $PATH
4789do
4790  IFS=$as_save_IFS
4791  test -z "$as_dir" && as_dir=.
4792    for ac_prog in sed gsed; do
4793    for ac_exec_ext in '' $ac_executable_extensions; do
4794      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4795      as_fn_executable_p "$ac_path_SED" || continue
4796# Check for GNU ac_path_SED and select it if it is found.
4797  # Check for GNU $ac_path_SED
4798case `"$ac_path_SED" --version 2>&1` in
4799*GNU*)
4800  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4801*)
4802  ac_count=0
4803  $as_echo_n 0123456789 >"conftest.in"
4804  while :
4805  do
4806    cat "conftest.in" "conftest.in" >"conftest.tmp"
4807    mv "conftest.tmp" "conftest.in"
4808    cp "conftest.in" "conftest.nl"
4809    $as_echo '' >> "conftest.nl"
4810    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4811    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4812    as_fn_arith $ac_count + 1 && ac_count=$as_val
4813    if test $ac_count -gt ${ac_path_SED_max-0}; then
4814      # Best one so far, save it but keep looking for a better one
4815      ac_cv_path_SED="$ac_path_SED"
4816      ac_path_SED_max=$ac_count
4817    fi
4818    # 10*(2^10) chars as input seems more than enough
4819    test $ac_count -gt 10 && break
4820  done
4821  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4822esac
4823
4824      $ac_path_SED_found && break 3
4825    done
4826  done
4827  done
4828IFS=$as_save_IFS
4829  if test -z "$ac_cv_path_SED"; then
4830    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4831  fi
4832else
4833  ac_cv_path_SED=$SED
4834fi
4835
4836fi
4837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4838$as_echo "$ac_cv_path_SED" >&6; }
4839 SED="$ac_cv_path_SED"
4840  rm -f conftest.sed
4841
4842
4843
4844
4845
4846
4847# Check whether --enable-selective-werror was given.
4848if test "${enable_selective_werror+set}" = set; then :
4849  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4850else
4851  SELECTIVE_WERROR=yes
4852fi
4853
4854
4855
4856
4857
4858# -v is too short to test reliably with XORG_TESTSET_CFLAG
4859if test "x$SUNCC" = "xyes"; then
4860    BASE_CFLAGS="-v"
4861else
4862    BASE_CFLAGS=""
4863fi
4864
4865# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879xorg_testset_save_CFLAGS="$CFLAGS"
4880
4881if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4882	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4883	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4884$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4885if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4886  $as_echo_n "(cached) " >&6
4887else
4888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4889/* end confdefs.h.  */
4890int i;
4891_ACEOF
4892if ac_fn_c_try_compile "$LINENO"; then :
4893  xorg_cv_cc_flag_unknown_warning_option=yes
4894else
4895  xorg_cv_cc_flag_unknown_warning_option=no
4896fi
4897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4898fi
4899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4900$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4901	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4902	CFLAGS="$xorg_testset_save_CFLAGS"
4903fi
4904
4905if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4906	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4907		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4908	fi
4909	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4910	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4911$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4912if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4913  $as_echo_n "(cached) " >&6
4914else
4915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4916/* end confdefs.h.  */
4917int i;
4918_ACEOF
4919if ac_fn_c_try_compile "$LINENO"; then :
4920  xorg_cv_cc_flag_unused_command_line_argument=yes
4921else
4922  xorg_cv_cc_flag_unused_command_line_argument=no
4923fi
4924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4925fi
4926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4927$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4928	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4929	CFLAGS="$xorg_testset_save_CFLAGS"
4930fi
4931
4932found="no"
4933
4934	if test $found = "no" ; then
4935		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4936			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4937		fi
4938
4939		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4940			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4941		fi
4942
4943		CFLAGS="$CFLAGS -Wall"
4944
4945		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4946$as_echo_n "checking if $CC supports -Wall... " >&6; }
4947		cacheid=xorg_cv_cc_flag__Wall
4948		if eval \${$cacheid+:} false; then :
4949  $as_echo_n "(cached) " >&6
4950else
4951  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4952/* end confdefs.h.  */
4953int i;
4954int
4955main ()
4956{
4957
4958  ;
4959  return 0;
4960}
4961_ACEOF
4962if ac_fn_c_try_link "$LINENO"; then :
4963  eval $cacheid=yes
4964else
4965  eval $cacheid=no
4966fi
4967rm -f core conftest.err conftest.$ac_objext \
4968    conftest$ac_exeext conftest.$ac_ext
4969fi
4970
4971
4972		CFLAGS="$xorg_testset_save_CFLAGS"
4973
4974		eval supported=\$$cacheid
4975		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4976$as_echo "$supported" >&6; }
4977		if test "$supported" = "yes" ; then
4978			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4979			found="yes"
4980		fi
4981	fi
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997xorg_testset_save_CFLAGS="$CFLAGS"
4998
4999if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5000	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5001	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5002$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5003if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5004  $as_echo_n "(cached) " >&6
5005else
5006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5007/* end confdefs.h.  */
5008int i;
5009_ACEOF
5010if ac_fn_c_try_compile "$LINENO"; then :
5011  xorg_cv_cc_flag_unknown_warning_option=yes
5012else
5013  xorg_cv_cc_flag_unknown_warning_option=no
5014fi
5015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5016fi
5017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5018$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5019	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5020	CFLAGS="$xorg_testset_save_CFLAGS"
5021fi
5022
5023if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5024	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5025		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5026	fi
5027	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5028	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5029$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5030if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5031  $as_echo_n "(cached) " >&6
5032else
5033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5034/* end confdefs.h.  */
5035int i;
5036_ACEOF
5037if ac_fn_c_try_compile "$LINENO"; then :
5038  xorg_cv_cc_flag_unused_command_line_argument=yes
5039else
5040  xorg_cv_cc_flag_unused_command_line_argument=no
5041fi
5042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5043fi
5044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5045$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5046	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5047	CFLAGS="$xorg_testset_save_CFLAGS"
5048fi
5049
5050found="no"
5051
5052	if test $found = "no" ; then
5053		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5054			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5055		fi
5056
5057		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5058			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5059		fi
5060
5061		CFLAGS="$CFLAGS -Wpointer-arith"
5062
5063		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5064$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5065		cacheid=xorg_cv_cc_flag__Wpointer_arith
5066		if eval \${$cacheid+:} false; then :
5067  $as_echo_n "(cached) " >&6
5068else
5069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5070/* end confdefs.h.  */
5071int i;
5072int
5073main ()
5074{
5075
5076  ;
5077  return 0;
5078}
5079_ACEOF
5080if ac_fn_c_try_link "$LINENO"; then :
5081  eval $cacheid=yes
5082else
5083  eval $cacheid=no
5084fi
5085rm -f core conftest.err conftest.$ac_objext \
5086    conftest$ac_exeext conftest.$ac_ext
5087fi
5088
5089
5090		CFLAGS="$xorg_testset_save_CFLAGS"
5091
5092		eval supported=\$$cacheid
5093		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5094$as_echo "$supported" >&6; }
5095		if test "$supported" = "yes" ; then
5096			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5097			found="yes"
5098		fi
5099	fi
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115xorg_testset_save_CFLAGS="$CFLAGS"
5116
5117if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5118	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5119	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5120$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5121if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5122  $as_echo_n "(cached) " >&6
5123else
5124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5125/* end confdefs.h.  */
5126int i;
5127_ACEOF
5128if ac_fn_c_try_compile "$LINENO"; then :
5129  xorg_cv_cc_flag_unknown_warning_option=yes
5130else
5131  xorg_cv_cc_flag_unknown_warning_option=no
5132fi
5133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5134fi
5135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5136$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5137	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5138	CFLAGS="$xorg_testset_save_CFLAGS"
5139fi
5140
5141if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5142	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5143		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5144	fi
5145	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5146	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5147$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5148if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5149  $as_echo_n "(cached) " >&6
5150else
5151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5152/* end confdefs.h.  */
5153int i;
5154_ACEOF
5155if ac_fn_c_try_compile "$LINENO"; then :
5156  xorg_cv_cc_flag_unused_command_line_argument=yes
5157else
5158  xorg_cv_cc_flag_unused_command_line_argument=no
5159fi
5160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5161fi
5162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5163$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5164	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5165	CFLAGS="$xorg_testset_save_CFLAGS"
5166fi
5167
5168found="no"
5169
5170	if test $found = "no" ; then
5171		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5172			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5173		fi
5174
5175		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5176			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5177		fi
5178
5179		CFLAGS="$CFLAGS -Wmissing-declarations"
5180
5181		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5182$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5183		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5184		if eval \${$cacheid+:} false; then :
5185  $as_echo_n "(cached) " >&6
5186else
5187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5188/* end confdefs.h.  */
5189int i;
5190int
5191main ()
5192{
5193
5194  ;
5195  return 0;
5196}
5197_ACEOF
5198if ac_fn_c_try_link "$LINENO"; then :
5199  eval $cacheid=yes
5200else
5201  eval $cacheid=no
5202fi
5203rm -f core conftest.err conftest.$ac_objext \
5204    conftest$ac_exeext conftest.$ac_ext
5205fi
5206
5207
5208		CFLAGS="$xorg_testset_save_CFLAGS"
5209
5210		eval supported=\$$cacheid
5211		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5212$as_echo "$supported" >&6; }
5213		if test "$supported" = "yes" ; then
5214			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5215			found="yes"
5216		fi
5217	fi
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233xorg_testset_save_CFLAGS="$CFLAGS"
5234
5235if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5236	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5237	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5238$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5239if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5240  $as_echo_n "(cached) " >&6
5241else
5242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243/* end confdefs.h.  */
5244int i;
5245_ACEOF
5246if ac_fn_c_try_compile "$LINENO"; then :
5247  xorg_cv_cc_flag_unknown_warning_option=yes
5248else
5249  xorg_cv_cc_flag_unknown_warning_option=no
5250fi
5251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5252fi
5253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5254$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5255	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5256	CFLAGS="$xorg_testset_save_CFLAGS"
5257fi
5258
5259if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5260	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5261		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5262	fi
5263	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5264	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5265$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5266if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5267  $as_echo_n "(cached) " >&6
5268else
5269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5270/* end confdefs.h.  */
5271int i;
5272_ACEOF
5273if ac_fn_c_try_compile "$LINENO"; then :
5274  xorg_cv_cc_flag_unused_command_line_argument=yes
5275else
5276  xorg_cv_cc_flag_unused_command_line_argument=no
5277fi
5278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5279fi
5280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5281$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5282	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5283	CFLAGS="$xorg_testset_save_CFLAGS"
5284fi
5285
5286found="no"
5287
5288	if test $found = "no" ; then
5289		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5290			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5291		fi
5292
5293		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5294			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5295		fi
5296
5297		CFLAGS="$CFLAGS -Wformat=2"
5298
5299		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5300$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5301		cacheid=xorg_cv_cc_flag__Wformat_2
5302		if eval \${$cacheid+:} false; then :
5303  $as_echo_n "(cached) " >&6
5304else
5305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5306/* end confdefs.h.  */
5307int i;
5308int
5309main ()
5310{
5311
5312  ;
5313  return 0;
5314}
5315_ACEOF
5316if ac_fn_c_try_link "$LINENO"; then :
5317  eval $cacheid=yes
5318else
5319  eval $cacheid=no
5320fi
5321rm -f core conftest.err conftest.$ac_objext \
5322    conftest$ac_exeext conftest.$ac_ext
5323fi
5324
5325
5326		CFLAGS="$xorg_testset_save_CFLAGS"
5327
5328		eval supported=\$$cacheid
5329		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5330$as_echo "$supported" >&6; }
5331		if test "$supported" = "yes" ; then
5332			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5333			found="yes"
5334		fi
5335	fi
5336
5337	if test $found = "no" ; then
5338		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5339			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5340		fi
5341
5342		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5343			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5344		fi
5345
5346		CFLAGS="$CFLAGS -Wformat"
5347
5348		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5349$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5350		cacheid=xorg_cv_cc_flag__Wformat
5351		if eval \${$cacheid+:} false; then :
5352  $as_echo_n "(cached) " >&6
5353else
5354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5355/* end confdefs.h.  */
5356int i;
5357int
5358main ()
5359{
5360
5361  ;
5362  return 0;
5363}
5364_ACEOF
5365if ac_fn_c_try_link "$LINENO"; then :
5366  eval $cacheid=yes
5367else
5368  eval $cacheid=no
5369fi
5370rm -f core conftest.err conftest.$ac_objext \
5371    conftest$ac_exeext conftest.$ac_ext
5372fi
5373
5374
5375		CFLAGS="$xorg_testset_save_CFLAGS"
5376
5377		eval supported=\$$cacheid
5378		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5379$as_echo "$supported" >&6; }
5380		if test "$supported" = "yes" ; then
5381			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5382			found="yes"
5383		fi
5384	fi
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402xorg_testset_save_CFLAGS="$CFLAGS"
5403
5404if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5405	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5406	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5407$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5408if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5409  $as_echo_n "(cached) " >&6
5410else
5411  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5412/* end confdefs.h.  */
5413int i;
5414_ACEOF
5415if ac_fn_c_try_compile "$LINENO"; then :
5416  xorg_cv_cc_flag_unknown_warning_option=yes
5417else
5418  xorg_cv_cc_flag_unknown_warning_option=no
5419fi
5420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5421fi
5422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5423$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5424	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5425	CFLAGS="$xorg_testset_save_CFLAGS"
5426fi
5427
5428if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5429	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5430		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5431	fi
5432	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5433	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5434$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5435if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5436  $as_echo_n "(cached) " >&6
5437else
5438  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5439/* end confdefs.h.  */
5440int i;
5441_ACEOF
5442if ac_fn_c_try_compile "$LINENO"; then :
5443  xorg_cv_cc_flag_unused_command_line_argument=yes
5444else
5445  xorg_cv_cc_flag_unused_command_line_argument=no
5446fi
5447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5448fi
5449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5450$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5451	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5452	CFLAGS="$xorg_testset_save_CFLAGS"
5453fi
5454
5455found="no"
5456
5457	if test $found = "no" ; then
5458		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5459			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5460		fi
5461
5462		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5463			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5464		fi
5465
5466		CFLAGS="$CFLAGS -Wstrict-prototypes"
5467
5468		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5469$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5470		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5471		if eval \${$cacheid+:} false; then :
5472  $as_echo_n "(cached) " >&6
5473else
5474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5475/* end confdefs.h.  */
5476int i;
5477int
5478main ()
5479{
5480
5481  ;
5482  return 0;
5483}
5484_ACEOF
5485if ac_fn_c_try_link "$LINENO"; then :
5486  eval $cacheid=yes
5487else
5488  eval $cacheid=no
5489fi
5490rm -f core conftest.err conftest.$ac_objext \
5491    conftest$ac_exeext conftest.$ac_ext
5492fi
5493
5494
5495		CFLAGS="$xorg_testset_save_CFLAGS"
5496
5497		eval supported=\$$cacheid
5498		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5499$as_echo "$supported" >&6; }
5500		if test "$supported" = "yes" ; then
5501			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5502			found="yes"
5503		fi
5504	fi
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520xorg_testset_save_CFLAGS="$CFLAGS"
5521
5522if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5523	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5524	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5525$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5526if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5527  $as_echo_n "(cached) " >&6
5528else
5529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5530/* end confdefs.h.  */
5531int i;
5532_ACEOF
5533if ac_fn_c_try_compile "$LINENO"; then :
5534  xorg_cv_cc_flag_unknown_warning_option=yes
5535else
5536  xorg_cv_cc_flag_unknown_warning_option=no
5537fi
5538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5539fi
5540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5541$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5542	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5543	CFLAGS="$xorg_testset_save_CFLAGS"
5544fi
5545
5546if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5547	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5548		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5549	fi
5550	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5551	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5552$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5553if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5554  $as_echo_n "(cached) " >&6
5555else
5556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5557/* end confdefs.h.  */
5558int i;
5559_ACEOF
5560if ac_fn_c_try_compile "$LINENO"; then :
5561  xorg_cv_cc_flag_unused_command_line_argument=yes
5562else
5563  xorg_cv_cc_flag_unused_command_line_argument=no
5564fi
5565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5566fi
5567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5568$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5569	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5570	CFLAGS="$xorg_testset_save_CFLAGS"
5571fi
5572
5573found="no"
5574
5575	if test $found = "no" ; then
5576		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5577			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5578		fi
5579
5580		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5581			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5582		fi
5583
5584		CFLAGS="$CFLAGS -Wmissing-prototypes"
5585
5586		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5587$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5588		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5589		if eval \${$cacheid+:} false; then :
5590  $as_echo_n "(cached) " >&6
5591else
5592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5593/* end confdefs.h.  */
5594int i;
5595int
5596main ()
5597{
5598
5599  ;
5600  return 0;
5601}
5602_ACEOF
5603if ac_fn_c_try_link "$LINENO"; then :
5604  eval $cacheid=yes
5605else
5606  eval $cacheid=no
5607fi
5608rm -f core conftest.err conftest.$ac_objext \
5609    conftest$ac_exeext conftest.$ac_ext
5610fi
5611
5612
5613		CFLAGS="$xorg_testset_save_CFLAGS"
5614
5615		eval supported=\$$cacheid
5616		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5617$as_echo "$supported" >&6; }
5618		if test "$supported" = "yes" ; then
5619			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5620			found="yes"
5621		fi
5622	fi
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638xorg_testset_save_CFLAGS="$CFLAGS"
5639
5640if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5641	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5642	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5643$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5644if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5645  $as_echo_n "(cached) " >&6
5646else
5647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5648/* end confdefs.h.  */
5649int i;
5650_ACEOF
5651if ac_fn_c_try_compile "$LINENO"; then :
5652  xorg_cv_cc_flag_unknown_warning_option=yes
5653else
5654  xorg_cv_cc_flag_unknown_warning_option=no
5655fi
5656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5657fi
5658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5659$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5660	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5661	CFLAGS="$xorg_testset_save_CFLAGS"
5662fi
5663
5664if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5665	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5666		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5667	fi
5668	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5669	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5670$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5671if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5672  $as_echo_n "(cached) " >&6
5673else
5674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5675/* end confdefs.h.  */
5676int i;
5677_ACEOF
5678if ac_fn_c_try_compile "$LINENO"; then :
5679  xorg_cv_cc_flag_unused_command_line_argument=yes
5680else
5681  xorg_cv_cc_flag_unused_command_line_argument=no
5682fi
5683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5684fi
5685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5686$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5687	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5688	CFLAGS="$xorg_testset_save_CFLAGS"
5689fi
5690
5691found="no"
5692
5693	if test $found = "no" ; then
5694		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5695			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5696		fi
5697
5698		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5699			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5700		fi
5701
5702		CFLAGS="$CFLAGS -Wnested-externs"
5703
5704		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5705$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5706		cacheid=xorg_cv_cc_flag__Wnested_externs
5707		if eval \${$cacheid+:} false; then :
5708  $as_echo_n "(cached) " >&6
5709else
5710  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5711/* end confdefs.h.  */
5712int i;
5713int
5714main ()
5715{
5716
5717  ;
5718  return 0;
5719}
5720_ACEOF
5721if ac_fn_c_try_link "$LINENO"; then :
5722  eval $cacheid=yes
5723else
5724  eval $cacheid=no
5725fi
5726rm -f core conftest.err conftest.$ac_objext \
5727    conftest$ac_exeext conftest.$ac_ext
5728fi
5729
5730
5731		CFLAGS="$xorg_testset_save_CFLAGS"
5732
5733		eval supported=\$$cacheid
5734		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5735$as_echo "$supported" >&6; }
5736		if test "$supported" = "yes" ; then
5737			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5738			found="yes"
5739		fi
5740	fi
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756xorg_testset_save_CFLAGS="$CFLAGS"
5757
5758if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5759	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5760	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5761$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5762if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5763  $as_echo_n "(cached) " >&6
5764else
5765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5766/* end confdefs.h.  */
5767int i;
5768_ACEOF
5769if ac_fn_c_try_compile "$LINENO"; then :
5770  xorg_cv_cc_flag_unknown_warning_option=yes
5771else
5772  xorg_cv_cc_flag_unknown_warning_option=no
5773fi
5774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5775fi
5776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5777$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5778	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5779	CFLAGS="$xorg_testset_save_CFLAGS"
5780fi
5781
5782if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5783	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5784		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5785	fi
5786	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5787	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5788$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5789if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5790  $as_echo_n "(cached) " >&6
5791else
5792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5793/* end confdefs.h.  */
5794int i;
5795_ACEOF
5796if ac_fn_c_try_compile "$LINENO"; then :
5797  xorg_cv_cc_flag_unused_command_line_argument=yes
5798else
5799  xorg_cv_cc_flag_unused_command_line_argument=no
5800fi
5801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5802fi
5803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5804$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5805	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5806	CFLAGS="$xorg_testset_save_CFLAGS"
5807fi
5808
5809found="no"
5810
5811	if test $found = "no" ; then
5812		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5813			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5814		fi
5815
5816		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5817			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5818		fi
5819
5820		CFLAGS="$CFLAGS -Wbad-function-cast"
5821
5822		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5823$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5824		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5825		if eval \${$cacheid+:} false; then :
5826  $as_echo_n "(cached) " >&6
5827else
5828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5829/* end confdefs.h.  */
5830int i;
5831int
5832main ()
5833{
5834
5835  ;
5836  return 0;
5837}
5838_ACEOF
5839if ac_fn_c_try_link "$LINENO"; then :
5840  eval $cacheid=yes
5841else
5842  eval $cacheid=no
5843fi
5844rm -f core conftest.err conftest.$ac_objext \
5845    conftest$ac_exeext conftest.$ac_ext
5846fi
5847
5848
5849		CFLAGS="$xorg_testset_save_CFLAGS"
5850
5851		eval supported=\$$cacheid
5852		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5853$as_echo "$supported" >&6; }
5854		if test "$supported" = "yes" ; then
5855			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5856			found="yes"
5857		fi
5858	fi
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874xorg_testset_save_CFLAGS="$CFLAGS"
5875
5876if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5877	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5878	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5879$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5880if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5881  $as_echo_n "(cached) " >&6
5882else
5883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5884/* end confdefs.h.  */
5885int i;
5886_ACEOF
5887if ac_fn_c_try_compile "$LINENO"; then :
5888  xorg_cv_cc_flag_unknown_warning_option=yes
5889else
5890  xorg_cv_cc_flag_unknown_warning_option=no
5891fi
5892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5893fi
5894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5895$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5896	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5897	CFLAGS="$xorg_testset_save_CFLAGS"
5898fi
5899
5900if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5901	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5902		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5903	fi
5904	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5905	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5906$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5907if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5908  $as_echo_n "(cached) " >&6
5909else
5910  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5911/* end confdefs.h.  */
5912int i;
5913_ACEOF
5914if ac_fn_c_try_compile "$LINENO"; then :
5915  xorg_cv_cc_flag_unused_command_line_argument=yes
5916else
5917  xorg_cv_cc_flag_unused_command_line_argument=no
5918fi
5919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5920fi
5921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5922$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5923	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5924	CFLAGS="$xorg_testset_save_CFLAGS"
5925fi
5926
5927found="no"
5928
5929	if test $found = "no" ; then
5930		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5931			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5932		fi
5933
5934		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5935			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5936		fi
5937
5938		CFLAGS="$CFLAGS -Wold-style-definition"
5939
5940		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5941$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5942		cacheid=xorg_cv_cc_flag__Wold_style_definition
5943		if eval \${$cacheid+:} false; then :
5944  $as_echo_n "(cached) " >&6
5945else
5946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5947/* end confdefs.h.  */
5948int i;
5949int
5950main ()
5951{
5952
5953  ;
5954  return 0;
5955}
5956_ACEOF
5957if ac_fn_c_try_link "$LINENO"; then :
5958  eval $cacheid=yes
5959else
5960  eval $cacheid=no
5961fi
5962rm -f core conftest.err conftest.$ac_objext \
5963    conftest$ac_exeext conftest.$ac_ext
5964fi
5965
5966
5967		CFLAGS="$xorg_testset_save_CFLAGS"
5968
5969		eval supported=\$$cacheid
5970		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5971$as_echo "$supported" >&6; }
5972		if test "$supported" = "yes" ; then
5973			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5974			found="yes"
5975		fi
5976	fi
5977
5978	if test $found = "no" ; then
5979		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5980			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5981		fi
5982
5983		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5984			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5985		fi
5986
5987		CFLAGS="$CFLAGS -fd"
5988
5989		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5990$as_echo_n "checking if $CC supports -fd... " >&6; }
5991		cacheid=xorg_cv_cc_flag__fd
5992		if eval \${$cacheid+:} false; then :
5993  $as_echo_n "(cached) " >&6
5994else
5995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5996/* end confdefs.h.  */
5997int i;
5998int
5999main ()
6000{
6001
6002  ;
6003  return 0;
6004}
6005_ACEOF
6006if ac_fn_c_try_link "$LINENO"; then :
6007  eval $cacheid=yes
6008else
6009  eval $cacheid=no
6010fi
6011rm -f core conftest.err conftest.$ac_objext \
6012    conftest$ac_exeext conftest.$ac_ext
6013fi
6014
6015
6016		CFLAGS="$xorg_testset_save_CFLAGS"
6017
6018		eval supported=\$$cacheid
6019		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6020$as_echo "$supported" >&6; }
6021		if test "$supported" = "yes" ; then
6022			BASE_CFLAGS="$BASE_CFLAGS -fd"
6023			found="yes"
6024		fi
6025	fi
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041xorg_testset_save_CFLAGS="$CFLAGS"
6042
6043if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6044	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6045	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6046$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6047if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6048  $as_echo_n "(cached) " >&6
6049else
6050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6051/* end confdefs.h.  */
6052int i;
6053_ACEOF
6054if ac_fn_c_try_compile "$LINENO"; then :
6055  xorg_cv_cc_flag_unknown_warning_option=yes
6056else
6057  xorg_cv_cc_flag_unknown_warning_option=no
6058fi
6059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6060fi
6061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6062$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6063	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6064	CFLAGS="$xorg_testset_save_CFLAGS"
6065fi
6066
6067if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6068	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6069		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6070	fi
6071	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6072	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6073$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6074if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6075  $as_echo_n "(cached) " >&6
6076else
6077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6078/* end confdefs.h.  */
6079int i;
6080_ACEOF
6081if ac_fn_c_try_compile "$LINENO"; then :
6082  xorg_cv_cc_flag_unused_command_line_argument=yes
6083else
6084  xorg_cv_cc_flag_unused_command_line_argument=no
6085fi
6086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6087fi
6088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6089$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6090	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6091	CFLAGS="$xorg_testset_save_CFLAGS"
6092fi
6093
6094found="no"
6095
6096	if test $found = "no" ; then
6097		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6098			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6099		fi
6100
6101		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6102			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6103		fi
6104
6105		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6106
6107		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6108$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6109		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6110		if eval \${$cacheid+:} false; then :
6111  $as_echo_n "(cached) " >&6
6112else
6113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6114/* end confdefs.h.  */
6115int i;
6116int
6117main ()
6118{
6119
6120  ;
6121  return 0;
6122}
6123_ACEOF
6124if ac_fn_c_try_link "$LINENO"; then :
6125  eval $cacheid=yes
6126else
6127  eval $cacheid=no
6128fi
6129rm -f core conftest.err conftest.$ac_objext \
6130    conftest$ac_exeext conftest.$ac_ext
6131fi
6132
6133
6134		CFLAGS="$xorg_testset_save_CFLAGS"
6135
6136		eval supported=\$$cacheid
6137		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6138$as_echo "$supported" >&6; }
6139		if test "$supported" = "yes" ; then
6140			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6141			found="yes"
6142		fi
6143	fi
6144
6145
6146
6147
6148
6149# This chunk adds additional warnings that could catch undesired effects.
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163xorg_testset_save_CFLAGS="$CFLAGS"
6164
6165if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6166	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6167	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6168$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6169if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6170  $as_echo_n "(cached) " >&6
6171else
6172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6173/* end confdefs.h.  */
6174int i;
6175_ACEOF
6176if ac_fn_c_try_compile "$LINENO"; then :
6177  xorg_cv_cc_flag_unknown_warning_option=yes
6178else
6179  xorg_cv_cc_flag_unknown_warning_option=no
6180fi
6181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6182fi
6183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6184$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6185	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6186	CFLAGS="$xorg_testset_save_CFLAGS"
6187fi
6188
6189if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6190	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6191		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6192	fi
6193	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6194	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6195$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6196if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6197  $as_echo_n "(cached) " >&6
6198else
6199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6200/* end confdefs.h.  */
6201int i;
6202_ACEOF
6203if ac_fn_c_try_compile "$LINENO"; then :
6204  xorg_cv_cc_flag_unused_command_line_argument=yes
6205else
6206  xorg_cv_cc_flag_unused_command_line_argument=no
6207fi
6208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6209fi
6210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6211$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6212	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6213	CFLAGS="$xorg_testset_save_CFLAGS"
6214fi
6215
6216found="no"
6217
6218	if test $found = "no" ; then
6219		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6220			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6221		fi
6222
6223		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6224			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6225		fi
6226
6227		CFLAGS="$CFLAGS -Wunused"
6228
6229		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6230$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6231		cacheid=xorg_cv_cc_flag__Wunused
6232		if eval \${$cacheid+:} false; then :
6233  $as_echo_n "(cached) " >&6
6234else
6235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6236/* end confdefs.h.  */
6237int i;
6238int
6239main ()
6240{
6241
6242  ;
6243  return 0;
6244}
6245_ACEOF
6246if ac_fn_c_try_link "$LINENO"; then :
6247  eval $cacheid=yes
6248else
6249  eval $cacheid=no
6250fi
6251rm -f core conftest.err conftest.$ac_objext \
6252    conftest$ac_exeext conftest.$ac_ext
6253fi
6254
6255
6256		CFLAGS="$xorg_testset_save_CFLAGS"
6257
6258		eval supported=\$$cacheid
6259		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6260$as_echo "$supported" >&6; }
6261		if test "$supported" = "yes" ; then
6262			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6263			found="yes"
6264		fi
6265	fi
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281xorg_testset_save_CFLAGS="$CFLAGS"
6282
6283if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6284	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6285	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6286$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6287if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6288  $as_echo_n "(cached) " >&6
6289else
6290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6291/* end confdefs.h.  */
6292int i;
6293_ACEOF
6294if ac_fn_c_try_compile "$LINENO"; then :
6295  xorg_cv_cc_flag_unknown_warning_option=yes
6296else
6297  xorg_cv_cc_flag_unknown_warning_option=no
6298fi
6299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6300fi
6301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6302$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6303	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6304	CFLAGS="$xorg_testset_save_CFLAGS"
6305fi
6306
6307if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6308	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6309		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6310	fi
6311	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6312	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6313$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6314if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6315  $as_echo_n "(cached) " >&6
6316else
6317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6318/* end confdefs.h.  */
6319int i;
6320_ACEOF
6321if ac_fn_c_try_compile "$LINENO"; then :
6322  xorg_cv_cc_flag_unused_command_line_argument=yes
6323else
6324  xorg_cv_cc_flag_unused_command_line_argument=no
6325fi
6326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6327fi
6328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6329$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6330	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6331	CFLAGS="$xorg_testset_save_CFLAGS"
6332fi
6333
6334found="no"
6335
6336	if test $found = "no" ; then
6337		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6338			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6339		fi
6340
6341		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6342			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6343		fi
6344
6345		CFLAGS="$CFLAGS -Wuninitialized"
6346
6347		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6348$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6349		cacheid=xorg_cv_cc_flag__Wuninitialized
6350		if eval \${$cacheid+:} false; then :
6351  $as_echo_n "(cached) " >&6
6352else
6353  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6354/* end confdefs.h.  */
6355int i;
6356int
6357main ()
6358{
6359
6360  ;
6361  return 0;
6362}
6363_ACEOF
6364if ac_fn_c_try_link "$LINENO"; then :
6365  eval $cacheid=yes
6366else
6367  eval $cacheid=no
6368fi
6369rm -f core conftest.err conftest.$ac_objext \
6370    conftest$ac_exeext conftest.$ac_ext
6371fi
6372
6373
6374		CFLAGS="$xorg_testset_save_CFLAGS"
6375
6376		eval supported=\$$cacheid
6377		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6378$as_echo "$supported" >&6; }
6379		if test "$supported" = "yes" ; then
6380			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6381			found="yes"
6382		fi
6383	fi
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399xorg_testset_save_CFLAGS="$CFLAGS"
6400
6401if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6402	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6403	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6404$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6405if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6406  $as_echo_n "(cached) " >&6
6407else
6408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6409/* end confdefs.h.  */
6410int i;
6411_ACEOF
6412if ac_fn_c_try_compile "$LINENO"; then :
6413  xorg_cv_cc_flag_unknown_warning_option=yes
6414else
6415  xorg_cv_cc_flag_unknown_warning_option=no
6416fi
6417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6418fi
6419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6420$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6421	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6422	CFLAGS="$xorg_testset_save_CFLAGS"
6423fi
6424
6425if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6426	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6427		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6428	fi
6429	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6430	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6431$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6432if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6433  $as_echo_n "(cached) " >&6
6434else
6435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6436/* end confdefs.h.  */
6437int i;
6438_ACEOF
6439if ac_fn_c_try_compile "$LINENO"; then :
6440  xorg_cv_cc_flag_unused_command_line_argument=yes
6441else
6442  xorg_cv_cc_flag_unused_command_line_argument=no
6443fi
6444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6445fi
6446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6447$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6448	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6449	CFLAGS="$xorg_testset_save_CFLAGS"
6450fi
6451
6452found="no"
6453
6454	if test $found = "no" ; then
6455		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6456			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6457		fi
6458
6459		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6460			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6461		fi
6462
6463		CFLAGS="$CFLAGS -Wshadow"
6464
6465		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6466$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6467		cacheid=xorg_cv_cc_flag__Wshadow
6468		if eval \${$cacheid+:} false; then :
6469  $as_echo_n "(cached) " >&6
6470else
6471  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6472/* end confdefs.h.  */
6473int i;
6474int
6475main ()
6476{
6477
6478  ;
6479  return 0;
6480}
6481_ACEOF
6482if ac_fn_c_try_link "$LINENO"; then :
6483  eval $cacheid=yes
6484else
6485  eval $cacheid=no
6486fi
6487rm -f core conftest.err conftest.$ac_objext \
6488    conftest$ac_exeext conftest.$ac_ext
6489fi
6490
6491
6492		CFLAGS="$xorg_testset_save_CFLAGS"
6493
6494		eval supported=\$$cacheid
6495		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6496$as_echo "$supported" >&6; }
6497		if test "$supported" = "yes" ; then
6498			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6499			found="yes"
6500		fi
6501	fi
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517xorg_testset_save_CFLAGS="$CFLAGS"
6518
6519if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6520	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6521	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6522$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6523if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6524  $as_echo_n "(cached) " >&6
6525else
6526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6527/* end confdefs.h.  */
6528int i;
6529_ACEOF
6530if ac_fn_c_try_compile "$LINENO"; then :
6531  xorg_cv_cc_flag_unknown_warning_option=yes
6532else
6533  xorg_cv_cc_flag_unknown_warning_option=no
6534fi
6535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6536fi
6537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6538$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6539	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6540	CFLAGS="$xorg_testset_save_CFLAGS"
6541fi
6542
6543if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6544	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6545		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6546	fi
6547	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6548	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6549$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6550if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6551  $as_echo_n "(cached) " >&6
6552else
6553  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6554/* end confdefs.h.  */
6555int i;
6556_ACEOF
6557if ac_fn_c_try_compile "$LINENO"; then :
6558  xorg_cv_cc_flag_unused_command_line_argument=yes
6559else
6560  xorg_cv_cc_flag_unused_command_line_argument=no
6561fi
6562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6563fi
6564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6565$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6566	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6567	CFLAGS="$xorg_testset_save_CFLAGS"
6568fi
6569
6570found="no"
6571
6572	if test $found = "no" ; then
6573		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6574			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6575		fi
6576
6577		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6578			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6579		fi
6580
6581		CFLAGS="$CFLAGS -Wmissing-noreturn"
6582
6583		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6584$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6585		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6586		if eval \${$cacheid+:} false; then :
6587  $as_echo_n "(cached) " >&6
6588else
6589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6590/* end confdefs.h.  */
6591int i;
6592int
6593main ()
6594{
6595
6596  ;
6597  return 0;
6598}
6599_ACEOF
6600if ac_fn_c_try_link "$LINENO"; then :
6601  eval $cacheid=yes
6602else
6603  eval $cacheid=no
6604fi
6605rm -f core conftest.err conftest.$ac_objext \
6606    conftest$ac_exeext conftest.$ac_ext
6607fi
6608
6609
6610		CFLAGS="$xorg_testset_save_CFLAGS"
6611
6612		eval supported=\$$cacheid
6613		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6614$as_echo "$supported" >&6; }
6615		if test "$supported" = "yes" ; then
6616			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6617			found="yes"
6618		fi
6619	fi
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635xorg_testset_save_CFLAGS="$CFLAGS"
6636
6637if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6638	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6639	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6640$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6641if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6642  $as_echo_n "(cached) " >&6
6643else
6644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6645/* end confdefs.h.  */
6646int i;
6647_ACEOF
6648if ac_fn_c_try_compile "$LINENO"; then :
6649  xorg_cv_cc_flag_unknown_warning_option=yes
6650else
6651  xorg_cv_cc_flag_unknown_warning_option=no
6652fi
6653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6654fi
6655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6656$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6657	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6658	CFLAGS="$xorg_testset_save_CFLAGS"
6659fi
6660
6661if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6662	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6663		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6664	fi
6665	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6666	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6667$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6668if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6669  $as_echo_n "(cached) " >&6
6670else
6671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6672/* end confdefs.h.  */
6673int i;
6674_ACEOF
6675if ac_fn_c_try_compile "$LINENO"; then :
6676  xorg_cv_cc_flag_unused_command_line_argument=yes
6677else
6678  xorg_cv_cc_flag_unused_command_line_argument=no
6679fi
6680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6681fi
6682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6683$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6684	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6685	CFLAGS="$xorg_testset_save_CFLAGS"
6686fi
6687
6688found="no"
6689
6690	if test $found = "no" ; then
6691		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6692			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6693		fi
6694
6695		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6696			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6697		fi
6698
6699		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6700
6701		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6702$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6703		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6704		if eval \${$cacheid+:} false; then :
6705  $as_echo_n "(cached) " >&6
6706else
6707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6708/* end confdefs.h.  */
6709int i;
6710int
6711main ()
6712{
6713
6714  ;
6715  return 0;
6716}
6717_ACEOF
6718if ac_fn_c_try_link "$LINENO"; then :
6719  eval $cacheid=yes
6720else
6721  eval $cacheid=no
6722fi
6723rm -f core conftest.err conftest.$ac_objext \
6724    conftest$ac_exeext conftest.$ac_ext
6725fi
6726
6727
6728		CFLAGS="$xorg_testset_save_CFLAGS"
6729
6730		eval supported=\$$cacheid
6731		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6732$as_echo "$supported" >&6; }
6733		if test "$supported" = "yes" ; then
6734			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6735			found="yes"
6736		fi
6737	fi
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753xorg_testset_save_CFLAGS="$CFLAGS"
6754
6755if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6756	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6757	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6758$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6759if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6760  $as_echo_n "(cached) " >&6
6761else
6762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6763/* end confdefs.h.  */
6764int i;
6765_ACEOF
6766if ac_fn_c_try_compile "$LINENO"; then :
6767  xorg_cv_cc_flag_unknown_warning_option=yes
6768else
6769  xorg_cv_cc_flag_unknown_warning_option=no
6770fi
6771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6772fi
6773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6774$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6775	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6776	CFLAGS="$xorg_testset_save_CFLAGS"
6777fi
6778
6779if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6780	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6781		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6782	fi
6783	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6784	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6785$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6786if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6787  $as_echo_n "(cached) " >&6
6788else
6789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6790/* end confdefs.h.  */
6791int i;
6792_ACEOF
6793if ac_fn_c_try_compile "$LINENO"; then :
6794  xorg_cv_cc_flag_unused_command_line_argument=yes
6795else
6796  xorg_cv_cc_flag_unused_command_line_argument=no
6797fi
6798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6799fi
6800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6801$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6802	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6803	CFLAGS="$xorg_testset_save_CFLAGS"
6804fi
6805
6806found="no"
6807
6808	if test $found = "no" ; then
6809		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6810			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6811		fi
6812
6813		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6814			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6815		fi
6816
6817		CFLAGS="$CFLAGS -Wredundant-decls"
6818
6819		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6820$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6821		cacheid=xorg_cv_cc_flag__Wredundant_decls
6822		if eval \${$cacheid+:} false; then :
6823  $as_echo_n "(cached) " >&6
6824else
6825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6826/* end confdefs.h.  */
6827int i;
6828int
6829main ()
6830{
6831
6832  ;
6833  return 0;
6834}
6835_ACEOF
6836if ac_fn_c_try_link "$LINENO"; then :
6837  eval $cacheid=yes
6838else
6839  eval $cacheid=no
6840fi
6841rm -f core conftest.err conftest.$ac_objext \
6842    conftest$ac_exeext conftest.$ac_ext
6843fi
6844
6845
6846		CFLAGS="$xorg_testset_save_CFLAGS"
6847
6848		eval supported=\$$cacheid
6849		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6850$as_echo "$supported" >&6; }
6851		if test "$supported" = "yes" ; then
6852			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6853			found="yes"
6854		fi
6855	fi
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871xorg_testset_save_CFLAGS="$CFLAGS"
6872
6873if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6874	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6875	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6876$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6877if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6878  $as_echo_n "(cached) " >&6
6879else
6880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6881/* end confdefs.h.  */
6882int i;
6883_ACEOF
6884if ac_fn_c_try_compile "$LINENO"; then :
6885  xorg_cv_cc_flag_unknown_warning_option=yes
6886else
6887  xorg_cv_cc_flag_unknown_warning_option=no
6888fi
6889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6890fi
6891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6892$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6893	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6894	CFLAGS="$xorg_testset_save_CFLAGS"
6895fi
6896
6897if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6898	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6899		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6900	fi
6901	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6902	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6903$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6904if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6905  $as_echo_n "(cached) " >&6
6906else
6907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6908/* end confdefs.h.  */
6909int i;
6910_ACEOF
6911if ac_fn_c_try_compile "$LINENO"; then :
6912  xorg_cv_cc_flag_unused_command_line_argument=yes
6913else
6914  xorg_cv_cc_flag_unused_command_line_argument=no
6915fi
6916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6917fi
6918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6919$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6920	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6921	CFLAGS="$xorg_testset_save_CFLAGS"
6922fi
6923
6924found="no"
6925
6926	if test $found = "no" ; then
6927		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6928			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6929		fi
6930
6931		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6932			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6933		fi
6934
6935		CFLAGS="$CFLAGS -Wlogical-op"
6936
6937		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6938$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6939		cacheid=xorg_cv_cc_flag__Wlogical_op
6940		if eval \${$cacheid+:} false; then :
6941  $as_echo_n "(cached) " >&6
6942else
6943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6944/* end confdefs.h.  */
6945int i;
6946int
6947main ()
6948{
6949
6950  ;
6951  return 0;
6952}
6953_ACEOF
6954if ac_fn_c_try_link "$LINENO"; then :
6955  eval $cacheid=yes
6956else
6957  eval $cacheid=no
6958fi
6959rm -f core conftest.err conftest.$ac_objext \
6960    conftest$ac_exeext conftest.$ac_ext
6961fi
6962
6963
6964		CFLAGS="$xorg_testset_save_CFLAGS"
6965
6966		eval supported=\$$cacheid
6967		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6968$as_echo "$supported" >&6; }
6969		if test "$supported" = "yes" ; then
6970			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6971			found="yes"
6972		fi
6973	fi
6974
6975
6976
6977# These are currently disabled because they are noisy.  They will be enabled
6978# in the future once the codebase is sufficiently modernized to silence
6979# them.  For now, I don't want them to drown out the other warnings.
6980# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6981# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6982# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6983
6984# Turn some warnings into errors, so we don't accidently get successful builds
6985# when there are problems that should be fixed.
6986
6987if test "x$SELECTIVE_WERROR" = "xyes" ; then
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001xorg_testset_save_CFLAGS="$CFLAGS"
7002
7003if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7004	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7005	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7006$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7007if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7008  $as_echo_n "(cached) " >&6
7009else
7010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7011/* end confdefs.h.  */
7012int i;
7013_ACEOF
7014if ac_fn_c_try_compile "$LINENO"; then :
7015  xorg_cv_cc_flag_unknown_warning_option=yes
7016else
7017  xorg_cv_cc_flag_unknown_warning_option=no
7018fi
7019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7020fi
7021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7022$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7023	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7024	CFLAGS="$xorg_testset_save_CFLAGS"
7025fi
7026
7027if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7028	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7029		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7030	fi
7031	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7032	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7033$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7034if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7035  $as_echo_n "(cached) " >&6
7036else
7037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7038/* end confdefs.h.  */
7039int i;
7040_ACEOF
7041if ac_fn_c_try_compile "$LINENO"; then :
7042  xorg_cv_cc_flag_unused_command_line_argument=yes
7043else
7044  xorg_cv_cc_flag_unused_command_line_argument=no
7045fi
7046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7047fi
7048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7049$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7050	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7051	CFLAGS="$xorg_testset_save_CFLAGS"
7052fi
7053
7054found="no"
7055
7056	if test $found = "no" ; then
7057		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7058			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7059		fi
7060
7061		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7062			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7063		fi
7064
7065		CFLAGS="$CFLAGS -Werror=implicit"
7066
7067		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7068$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7069		cacheid=xorg_cv_cc_flag__Werror_implicit
7070		if eval \${$cacheid+:} false; then :
7071  $as_echo_n "(cached) " >&6
7072else
7073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7074/* end confdefs.h.  */
7075int i;
7076int
7077main ()
7078{
7079
7080  ;
7081  return 0;
7082}
7083_ACEOF
7084if ac_fn_c_try_link "$LINENO"; then :
7085  eval $cacheid=yes
7086else
7087  eval $cacheid=no
7088fi
7089rm -f core conftest.err conftest.$ac_objext \
7090    conftest$ac_exeext conftest.$ac_ext
7091fi
7092
7093
7094		CFLAGS="$xorg_testset_save_CFLAGS"
7095
7096		eval supported=\$$cacheid
7097		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7098$as_echo "$supported" >&6; }
7099		if test "$supported" = "yes" ; then
7100			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7101			found="yes"
7102		fi
7103	fi
7104
7105	if test $found = "no" ; then
7106		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7107			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7108		fi
7109
7110		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7111			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7112		fi
7113
7114		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7115
7116		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7117$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7118		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7119		if eval \${$cacheid+:} false; then :
7120  $as_echo_n "(cached) " >&6
7121else
7122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7123/* end confdefs.h.  */
7124int i;
7125int
7126main ()
7127{
7128
7129  ;
7130  return 0;
7131}
7132_ACEOF
7133if ac_fn_c_try_link "$LINENO"; then :
7134  eval $cacheid=yes
7135else
7136  eval $cacheid=no
7137fi
7138rm -f core conftest.err conftest.$ac_objext \
7139    conftest$ac_exeext conftest.$ac_ext
7140fi
7141
7142
7143		CFLAGS="$xorg_testset_save_CFLAGS"
7144
7145		eval supported=\$$cacheid
7146		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7147$as_echo "$supported" >&6; }
7148		if test "$supported" = "yes" ; then
7149			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7150			found="yes"
7151		fi
7152	fi
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168xorg_testset_save_CFLAGS="$CFLAGS"
7169
7170if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7171	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7172	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7173$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7174if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7175  $as_echo_n "(cached) " >&6
7176else
7177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7178/* end confdefs.h.  */
7179int i;
7180_ACEOF
7181if ac_fn_c_try_compile "$LINENO"; then :
7182  xorg_cv_cc_flag_unknown_warning_option=yes
7183else
7184  xorg_cv_cc_flag_unknown_warning_option=no
7185fi
7186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7187fi
7188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7189$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7190	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7191	CFLAGS="$xorg_testset_save_CFLAGS"
7192fi
7193
7194if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7195	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7196		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7197	fi
7198	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7199	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7200$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7201if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7202  $as_echo_n "(cached) " >&6
7203else
7204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7205/* end confdefs.h.  */
7206int i;
7207_ACEOF
7208if ac_fn_c_try_compile "$LINENO"; then :
7209  xorg_cv_cc_flag_unused_command_line_argument=yes
7210else
7211  xorg_cv_cc_flag_unused_command_line_argument=no
7212fi
7213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7214fi
7215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7216$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7217	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7218	CFLAGS="$xorg_testset_save_CFLAGS"
7219fi
7220
7221found="no"
7222
7223	if test $found = "no" ; then
7224		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7225			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7226		fi
7227
7228		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7229			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7230		fi
7231
7232		CFLAGS="$CFLAGS -Werror=nonnull"
7233
7234		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7235$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7236		cacheid=xorg_cv_cc_flag__Werror_nonnull
7237		if eval \${$cacheid+:} false; then :
7238  $as_echo_n "(cached) " >&6
7239else
7240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7241/* end confdefs.h.  */
7242int i;
7243int
7244main ()
7245{
7246
7247  ;
7248  return 0;
7249}
7250_ACEOF
7251if ac_fn_c_try_link "$LINENO"; then :
7252  eval $cacheid=yes
7253else
7254  eval $cacheid=no
7255fi
7256rm -f core conftest.err conftest.$ac_objext \
7257    conftest$ac_exeext conftest.$ac_ext
7258fi
7259
7260
7261		CFLAGS="$xorg_testset_save_CFLAGS"
7262
7263		eval supported=\$$cacheid
7264		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7265$as_echo "$supported" >&6; }
7266		if test "$supported" = "yes" ; then
7267			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7268			found="yes"
7269		fi
7270	fi
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286xorg_testset_save_CFLAGS="$CFLAGS"
7287
7288if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7289	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7290	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7291$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7292if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7293  $as_echo_n "(cached) " >&6
7294else
7295  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7296/* end confdefs.h.  */
7297int i;
7298_ACEOF
7299if ac_fn_c_try_compile "$LINENO"; then :
7300  xorg_cv_cc_flag_unknown_warning_option=yes
7301else
7302  xorg_cv_cc_flag_unknown_warning_option=no
7303fi
7304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7305fi
7306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7307$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7308	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7309	CFLAGS="$xorg_testset_save_CFLAGS"
7310fi
7311
7312if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7313	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7314		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7315	fi
7316	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7317	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7318$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7319if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7320  $as_echo_n "(cached) " >&6
7321else
7322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7323/* end confdefs.h.  */
7324int i;
7325_ACEOF
7326if ac_fn_c_try_compile "$LINENO"; then :
7327  xorg_cv_cc_flag_unused_command_line_argument=yes
7328else
7329  xorg_cv_cc_flag_unused_command_line_argument=no
7330fi
7331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7332fi
7333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7334$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7335	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7336	CFLAGS="$xorg_testset_save_CFLAGS"
7337fi
7338
7339found="no"
7340
7341	if test $found = "no" ; then
7342		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7343			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7344		fi
7345
7346		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7347			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7348		fi
7349
7350		CFLAGS="$CFLAGS -Werror=init-self"
7351
7352		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7353$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7354		cacheid=xorg_cv_cc_flag__Werror_init_self
7355		if eval \${$cacheid+:} false; then :
7356  $as_echo_n "(cached) " >&6
7357else
7358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7359/* end confdefs.h.  */
7360int i;
7361int
7362main ()
7363{
7364
7365  ;
7366  return 0;
7367}
7368_ACEOF
7369if ac_fn_c_try_link "$LINENO"; then :
7370  eval $cacheid=yes
7371else
7372  eval $cacheid=no
7373fi
7374rm -f core conftest.err conftest.$ac_objext \
7375    conftest$ac_exeext conftest.$ac_ext
7376fi
7377
7378
7379		CFLAGS="$xorg_testset_save_CFLAGS"
7380
7381		eval supported=\$$cacheid
7382		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7383$as_echo "$supported" >&6; }
7384		if test "$supported" = "yes" ; then
7385			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7386			found="yes"
7387		fi
7388	fi
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404xorg_testset_save_CFLAGS="$CFLAGS"
7405
7406if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7407	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7408	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7409$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7410if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7411  $as_echo_n "(cached) " >&6
7412else
7413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7414/* end confdefs.h.  */
7415int i;
7416_ACEOF
7417if ac_fn_c_try_compile "$LINENO"; then :
7418  xorg_cv_cc_flag_unknown_warning_option=yes
7419else
7420  xorg_cv_cc_flag_unknown_warning_option=no
7421fi
7422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7423fi
7424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7425$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7426	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7427	CFLAGS="$xorg_testset_save_CFLAGS"
7428fi
7429
7430if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7431	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7432		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7433	fi
7434	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7435	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7436$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7437if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7438  $as_echo_n "(cached) " >&6
7439else
7440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7441/* end confdefs.h.  */
7442int i;
7443_ACEOF
7444if ac_fn_c_try_compile "$LINENO"; then :
7445  xorg_cv_cc_flag_unused_command_line_argument=yes
7446else
7447  xorg_cv_cc_flag_unused_command_line_argument=no
7448fi
7449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7450fi
7451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7452$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7453	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7454	CFLAGS="$xorg_testset_save_CFLAGS"
7455fi
7456
7457found="no"
7458
7459	if test $found = "no" ; then
7460		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7461			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7462		fi
7463
7464		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7465			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7466		fi
7467
7468		CFLAGS="$CFLAGS -Werror=main"
7469
7470		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7471$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7472		cacheid=xorg_cv_cc_flag__Werror_main
7473		if eval \${$cacheid+:} false; then :
7474  $as_echo_n "(cached) " >&6
7475else
7476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7477/* end confdefs.h.  */
7478int i;
7479int
7480main ()
7481{
7482
7483  ;
7484  return 0;
7485}
7486_ACEOF
7487if ac_fn_c_try_link "$LINENO"; then :
7488  eval $cacheid=yes
7489else
7490  eval $cacheid=no
7491fi
7492rm -f core conftest.err conftest.$ac_objext \
7493    conftest$ac_exeext conftest.$ac_ext
7494fi
7495
7496
7497		CFLAGS="$xorg_testset_save_CFLAGS"
7498
7499		eval supported=\$$cacheid
7500		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7501$as_echo "$supported" >&6; }
7502		if test "$supported" = "yes" ; then
7503			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7504			found="yes"
7505		fi
7506	fi
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522xorg_testset_save_CFLAGS="$CFLAGS"
7523
7524if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7525	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7526	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7527$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7528if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7529  $as_echo_n "(cached) " >&6
7530else
7531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7532/* end confdefs.h.  */
7533int i;
7534_ACEOF
7535if ac_fn_c_try_compile "$LINENO"; then :
7536  xorg_cv_cc_flag_unknown_warning_option=yes
7537else
7538  xorg_cv_cc_flag_unknown_warning_option=no
7539fi
7540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7541fi
7542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7543$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7544	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7545	CFLAGS="$xorg_testset_save_CFLAGS"
7546fi
7547
7548if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7549	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7550		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7551	fi
7552	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7553	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7554$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7555if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7556  $as_echo_n "(cached) " >&6
7557else
7558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7559/* end confdefs.h.  */
7560int i;
7561_ACEOF
7562if ac_fn_c_try_compile "$LINENO"; then :
7563  xorg_cv_cc_flag_unused_command_line_argument=yes
7564else
7565  xorg_cv_cc_flag_unused_command_line_argument=no
7566fi
7567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7568fi
7569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7570$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7571	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7572	CFLAGS="$xorg_testset_save_CFLAGS"
7573fi
7574
7575found="no"
7576
7577	if test $found = "no" ; then
7578		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7579			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7580		fi
7581
7582		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7583			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7584		fi
7585
7586		CFLAGS="$CFLAGS -Werror=missing-braces"
7587
7588		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7589$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7590		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7591		if eval \${$cacheid+:} false; then :
7592  $as_echo_n "(cached) " >&6
7593else
7594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7595/* end confdefs.h.  */
7596int i;
7597int
7598main ()
7599{
7600
7601  ;
7602  return 0;
7603}
7604_ACEOF
7605if ac_fn_c_try_link "$LINENO"; then :
7606  eval $cacheid=yes
7607else
7608  eval $cacheid=no
7609fi
7610rm -f core conftest.err conftest.$ac_objext \
7611    conftest$ac_exeext conftest.$ac_ext
7612fi
7613
7614
7615		CFLAGS="$xorg_testset_save_CFLAGS"
7616
7617		eval supported=\$$cacheid
7618		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7619$as_echo "$supported" >&6; }
7620		if test "$supported" = "yes" ; then
7621			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7622			found="yes"
7623		fi
7624	fi
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640xorg_testset_save_CFLAGS="$CFLAGS"
7641
7642if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7643	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7644	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7645$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7646if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7647  $as_echo_n "(cached) " >&6
7648else
7649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7650/* end confdefs.h.  */
7651int i;
7652_ACEOF
7653if ac_fn_c_try_compile "$LINENO"; then :
7654  xorg_cv_cc_flag_unknown_warning_option=yes
7655else
7656  xorg_cv_cc_flag_unknown_warning_option=no
7657fi
7658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7659fi
7660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7661$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7662	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7663	CFLAGS="$xorg_testset_save_CFLAGS"
7664fi
7665
7666if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7667	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7668		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7669	fi
7670	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7671	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7672$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7673if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7674  $as_echo_n "(cached) " >&6
7675else
7676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7677/* end confdefs.h.  */
7678int i;
7679_ACEOF
7680if ac_fn_c_try_compile "$LINENO"; then :
7681  xorg_cv_cc_flag_unused_command_line_argument=yes
7682else
7683  xorg_cv_cc_flag_unused_command_line_argument=no
7684fi
7685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7686fi
7687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7688$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7689	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7690	CFLAGS="$xorg_testset_save_CFLAGS"
7691fi
7692
7693found="no"
7694
7695	if test $found = "no" ; then
7696		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7697			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7698		fi
7699
7700		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7701			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7702		fi
7703
7704		CFLAGS="$CFLAGS -Werror=sequence-point"
7705
7706		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7707$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7708		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7709		if eval \${$cacheid+:} false; then :
7710  $as_echo_n "(cached) " >&6
7711else
7712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7713/* end confdefs.h.  */
7714int i;
7715int
7716main ()
7717{
7718
7719  ;
7720  return 0;
7721}
7722_ACEOF
7723if ac_fn_c_try_link "$LINENO"; then :
7724  eval $cacheid=yes
7725else
7726  eval $cacheid=no
7727fi
7728rm -f core conftest.err conftest.$ac_objext \
7729    conftest$ac_exeext conftest.$ac_ext
7730fi
7731
7732
7733		CFLAGS="$xorg_testset_save_CFLAGS"
7734
7735		eval supported=\$$cacheid
7736		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7737$as_echo "$supported" >&6; }
7738		if test "$supported" = "yes" ; then
7739			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7740			found="yes"
7741		fi
7742	fi
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758xorg_testset_save_CFLAGS="$CFLAGS"
7759
7760if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7761	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7762	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7763$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7764if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7765  $as_echo_n "(cached) " >&6
7766else
7767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7768/* end confdefs.h.  */
7769int i;
7770_ACEOF
7771if ac_fn_c_try_compile "$LINENO"; then :
7772  xorg_cv_cc_flag_unknown_warning_option=yes
7773else
7774  xorg_cv_cc_flag_unknown_warning_option=no
7775fi
7776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7777fi
7778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7779$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7780	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7781	CFLAGS="$xorg_testset_save_CFLAGS"
7782fi
7783
7784if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7785	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7786		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7787	fi
7788	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7789	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7790$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7791if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7792  $as_echo_n "(cached) " >&6
7793else
7794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7795/* end confdefs.h.  */
7796int i;
7797_ACEOF
7798if ac_fn_c_try_compile "$LINENO"; then :
7799  xorg_cv_cc_flag_unused_command_line_argument=yes
7800else
7801  xorg_cv_cc_flag_unused_command_line_argument=no
7802fi
7803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7804fi
7805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7806$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7807	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7808	CFLAGS="$xorg_testset_save_CFLAGS"
7809fi
7810
7811found="no"
7812
7813	if test $found = "no" ; then
7814		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7815			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7816		fi
7817
7818		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7819			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7820		fi
7821
7822		CFLAGS="$CFLAGS -Werror=return-type"
7823
7824		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7825$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7826		cacheid=xorg_cv_cc_flag__Werror_return_type
7827		if eval \${$cacheid+:} false; then :
7828  $as_echo_n "(cached) " >&6
7829else
7830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7831/* end confdefs.h.  */
7832int i;
7833int
7834main ()
7835{
7836
7837  ;
7838  return 0;
7839}
7840_ACEOF
7841if ac_fn_c_try_link "$LINENO"; then :
7842  eval $cacheid=yes
7843else
7844  eval $cacheid=no
7845fi
7846rm -f core conftest.err conftest.$ac_objext \
7847    conftest$ac_exeext conftest.$ac_ext
7848fi
7849
7850
7851		CFLAGS="$xorg_testset_save_CFLAGS"
7852
7853		eval supported=\$$cacheid
7854		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7855$as_echo "$supported" >&6; }
7856		if test "$supported" = "yes" ; then
7857			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7858			found="yes"
7859		fi
7860	fi
7861
7862	if test $found = "no" ; then
7863		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7864			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7865		fi
7866
7867		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7868			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7869		fi
7870
7871		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7872
7873		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7874$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7875		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7876		if eval \${$cacheid+:} false; then :
7877  $as_echo_n "(cached) " >&6
7878else
7879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7880/* end confdefs.h.  */
7881int i;
7882int
7883main ()
7884{
7885
7886  ;
7887  return 0;
7888}
7889_ACEOF
7890if ac_fn_c_try_link "$LINENO"; then :
7891  eval $cacheid=yes
7892else
7893  eval $cacheid=no
7894fi
7895rm -f core conftest.err conftest.$ac_objext \
7896    conftest$ac_exeext conftest.$ac_ext
7897fi
7898
7899
7900		CFLAGS="$xorg_testset_save_CFLAGS"
7901
7902		eval supported=\$$cacheid
7903		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7904$as_echo "$supported" >&6; }
7905		if test "$supported" = "yes" ; then
7906			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7907			found="yes"
7908		fi
7909	fi
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925xorg_testset_save_CFLAGS="$CFLAGS"
7926
7927if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7928	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7929	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7930$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7931if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7932  $as_echo_n "(cached) " >&6
7933else
7934  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7935/* end confdefs.h.  */
7936int i;
7937_ACEOF
7938if ac_fn_c_try_compile "$LINENO"; then :
7939  xorg_cv_cc_flag_unknown_warning_option=yes
7940else
7941  xorg_cv_cc_flag_unknown_warning_option=no
7942fi
7943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7944fi
7945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7946$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7947	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7948	CFLAGS="$xorg_testset_save_CFLAGS"
7949fi
7950
7951if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7952	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7953		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7954	fi
7955	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7956	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7957$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7958if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7959  $as_echo_n "(cached) " >&6
7960else
7961  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7962/* end confdefs.h.  */
7963int i;
7964_ACEOF
7965if ac_fn_c_try_compile "$LINENO"; then :
7966  xorg_cv_cc_flag_unused_command_line_argument=yes
7967else
7968  xorg_cv_cc_flag_unused_command_line_argument=no
7969fi
7970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7971fi
7972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7973$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7974	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7975	CFLAGS="$xorg_testset_save_CFLAGS"
7976fi
7977
7978found="no"
7979
7980	if test $found = "no" ; then
7981		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7982			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7983		fi
7984
7985		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7986			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7987		fi
7988
7989		CFLAGS="$CFLAGS -Werror=trigraphs"
7990
7991		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7992$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7993		cacheid=xorg_cv_cc_flag__Werror_trigraphs
7994		if eval \${$cacheid+:} false; then :
7995  $as_echo_n "(cached) " >&6
7996else
7997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7998/* end confdefs.h.  */
7999int i;
8000int
8001main ()
8002{
8003
8004  ;
8005  return 0;
8006}
8007_ACEOF
8008if ac_fn_c_try_link "$LINENO"; then :
8009  eval $cacheid=yes
8010else
8011  eval $cacheid=no
8012fi
8013rm -f core conftest.err conftest.$ac_objext \
8014    conftest$ac_exeext conftest.$ac_ext
8015fi
8016
8017
8018		CFLAGS="$xorg_testset_save_CFLAGS"
8019
8020		eval supported=\$$cacheid
8021		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8022$as_echo "$supported" >&6; }
8023		if test "$supported" = "yes" ; then
8024			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8025			found="yes"
8026		fi
8027	fi
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043xorg_testset_save_CFLAGS="$CFLAGS"
8044
8045if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8046	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8047	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8048$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8049if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8050  $as_echo_n "(cached) " >&6
8051else
8052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8053/* end confdefs.h.  */
8054int i;
8055_ACEOF
8056if ac_fn_c_try_compile "$LINENO"; then :
8057  xorg_cv_cc_flag_unknown_warning_option=yes
8058else
8059  xorg_cv_cc_flag_unknown_warning_option=no
8060fi
8061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8062fi
8063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8064$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8065	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8066	CFLAGS="$xorg_testset_save_CFLAGS"
8067fi
8068
8069if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8070	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8071		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8072	fi
8073	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8074	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8075$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8076if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8077  $as_echo_n "(cached) " >&6
8078else
8079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8080/* end confdefs.h.  */
8081int i;
8082_ACEOF
8083if ac_fn_c_try_compile "$LINENO"; then :
8084  xorg_cv_cc_flag_unused_command_line_argument=yes
8085else
8086  xorg_cv_cc_flag_unused_command_line_argument=no
8087fi
8088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8089fi
8090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8091$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8092	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8093	CFLAGS="$xorg_testset_save_CFLAGS"
8094fi
8095
8096found="no"
8097
8098	if test $found = "no" ; then
8099		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8100			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8101		fi
8102
8103		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8104			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8105		fi
8106
8107		CFLAGS="$CFLAGS -Werror=array-bounds"
8108
8109		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8110$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8111		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8112		if eval \${$cacheid+:} false; then :
8113  $as_echo_n "(cached) " >&6
8114else
8115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8116/* end confdefs.h.  */
8117int i;
8118int
8119main ()
8120{
8121
8122  ;
8123  return 0;
8124}
8125_ACEOF
8126if ac_fn_c_try_link "$LINENO"; then :
8127  eval $cacheid=yes
8128else
8129  eval $cacheid=no
8130fi
8131rm -f core conftest.err conftest.$ac_objext \
8132    conftest$ac_exeext conftest.$ac_ext
8133fi
8134
8135
8136		CFLAGS="$xorg_testset_save_CFLAGS"
8137
8138		eval supported=\$$cacheid
8139		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8140$as_echo "$supported" >&6; }
8141		if test "$supported" = "yes" ; then
8142			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8143			found="yes"
8144		fi
8145	fi
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161xorg_testset_save_CFLAGS="$CFLAGS"
8162
8163if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8164	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8165	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8166$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8167if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8168  $as_echo_n "(cached) " >&6
8169else
8170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8171/* end confdefs.h.  */
8172int i;
8173_ACEOF
8174if ac_fn_c_try_compile "$LINENO"; then :
8175  xorg_cv_cc_flag_unknown_warning_option=yes
8176else
8177  xorg_cv_cc_flag_unknown_warning_option=no
8178fi
8179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8180fi
8181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8182$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8183	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8184	CFLAGS="$xorg_testset_save_CFLAGS"
8185fi
8186
8187if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8188	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8189		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8190	fi
8191	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8192	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8193$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8194if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8195  $as_echo_n "(cached) " >&6
8196else
8197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8198/* end confdefs.h.  */
8199int i;
8200_ACEOF
8201if ac_fn_c_try_compile "$LINENO"; then :
8202  xorg_cv_cc_flag_unused_command_line_argument=yes
8203else
8204  xorg_cv_cc_flag_unused_command_line_argument=no
8205fi
8206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8207fi
8208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8209$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8210	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8211	CFLAGS="$xorg_testset_save_CFLAGS"
8212fi
8213
8214found="no"
8215
8216	if test $found = "no" ; then
8217		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8218			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8219		fi
8220
8221		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8222			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8223		fi
8224
8225		CFLAGS="$CFLAGS -Werror=write-strings"
8226
8227		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8228$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8229		cacheid=xorg_cv_cc_flag__Werror_write_strings
8230		if eval \${$cacheid+:} false; then :
8231  $as_echo_n "(cached) " >&6
8232else
8233  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8234/* end confdefs.h.  */
8235int i;
8236int
8237main ()
8238{
8239
8240  ;
8241  return 0;
8242}
8243_ACEOF
8244if ac_fn_c_try_link "$LINENO"; then :
8245  eval $cacheid=yes
8246else
8247  eval $cacheid=no
8248fi
8249rm -f core conftest.err conftest.$ac_objext \
8250    conftest$ac_exeext conftest.$ac_ext
8251fi
8252
8253
8254		CFLAGS="$xorg_testset_save_CFLAGS"
8255
8256		eval supported=\$$cacheid
8257		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8258$as_echo "$supported" >&6; }
8259		if test "$supported" = "yes" ; then
8260			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8261			found="yes"
8262		fi
8263	fi
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279xorg_testset_save_CFLAGS="$CFLAGS"
8280
8281if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8282	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8283	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8284$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8285if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8286  $as_echo_n "(cached) " >&6
8287else
8288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8289/* end confdefs.h.  */
8290int i;
8291_ACEOF
8292if ac_fn_c_try_compile "$LINENO"; then :
8293  xorg_cv_cc_flag_unknown_warning_option=yes
8294else
8295  xorg_cv_cc_flag_unknown_warning_option=no
8296fi
8297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8298fi
8299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8300$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8301	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8302	CFLAGS="$xorg_testset_save_CFLAGS"
8303fi
8304
8305if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8306	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8307		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8308	fi
8309	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8310	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8311$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8312if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8313  $as_echo_n "(cached) " >&6
8314else
8315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8316/* end confdefs.h.  */
8317int i;
8318_ACEOF
8319if ac_fn_c_try_compile "$LINENO"; then :
8320  xorg_cv_cc_flag_unused_command_line_argument=yes
8321else
8322  xorg_cv_cc_flag_unused_command_line_argument=no
8323fi
8324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8325fi
8326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8327$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8328	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8329	CFLAGS="$xorg_testset_save_CFLAGS"
8330fi
8331
8332found="no"
8333
8334	if test $found = "no" ; then
8335		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8336			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8337		fi
8338
8339		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8340			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8341		fi
8342
8343		CFLAGS="$CFLAGS -Werror=address"
8344
8345		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8346$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8347		cacheid=xorg_cv_cc_flag__Werror_address
8348		if eval \${$cacheid+:} false; then :
8349  $as_echo_n "(cached) " >&6
8350else
8351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8352/* end confdefs.h.  */
8353int i;
8354int
8355main ()
8356{
8357
8358  ;
8359  return 0;
8360}
8361_ACEOF
8362if ac_fn_c_try_link "$LINENO"; then :
8363  eval $cacheid=yes
8364else
8365  eval $cacheid=no
8366fi
8367rm -f core conftest.err conftest.$ac_objext \
8368    conftest$ac_exeext conftest.$ac_ext
8369fi
8370
8371
8372		CFLAGS="$xorg_testset_save_CFLAGS"
8373
8374		eval supported=\$$cacheid
8375		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8376$as_echo "$supported" >&6; }
8377		if test "$supported" = "yes" ; then
8378			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8379			found="yes"
8380		fi
8381	fi
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397xorg_testset_save_CFLAGS="$CFLAGS"
8398
8399if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8400	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8401	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8402$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8403if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8404  $as_echo_n "(cached) " >&6
8405else
8406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8407/* end confdefs.h.  */
8408int i;
8409_ACEOF
8410if ac_fn_c_try_compile "$LINENO"; then :
8411  xorg_cv_cc_flag_unknown_warning_option=yes
8412else
8413  xorg_cv_cc_flag_unknown_warning_option=no
8414fi
8415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8416fi
8417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8418$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8419	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8420	CFLAGS="$xorg_testset_save_CFLAGS"
8421fi
8422
8423if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8424	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8425		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8426	fi
8427	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8428	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8429$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8430if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8431  $as_echo_n "(cached) " >&6
8432else
8433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8434/* end confdefs.h.  */
8435int i;
8436_ACEOF
8437if ac_fn_c_try_compile "$LINENO"; then :
8438  xorg_cv_cc_flag_unused_command_line_argument=yes
8439else
8440  xorg_cv_cc_flag_unused_command_line_argument=no
8441fi
8442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8443fi
8444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8445$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8446	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8447	CFLAGS="$xorg_testset_save_CFLAGS"
8448fi
8449
8450found="no"
8451
8452	if test $found = "no" ; then
8453		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8454			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8455		fi
8456
8457		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8458			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8459		fi
8460
8461		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8462
8463		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8464$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8465		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8466		if eval \${$cacheid+:} false; then :
8467  $as_echo_n "(cached) " >&6
8468else
8469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8470/* end confdefs.h.  */
8471int i;
8472int
8473main ()
8474{
8475
8476  ;
8477  return 0;
8478}
8479_ACEOF
8480if ac_fn_c_try_link "$LINENO"; then :
8481  eval $cacheid=yes
8482else
8483  eval $cacheid=no
8484fi
8485rm -f core conftest.err conftest.$ac_objext \
8486    conftest$ac_exeext conftest.$ac_ext
8487fi
8488
8489
8490		CFLAGS="$xorg_testset_save_CFLAGS"
8491
8492		eval supported=\$$cacheid
8493		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8494$as_echo "$supported" >&6; }
8495		if test "$supported" = "yes" ; then
8496			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8497			found="yes"
8498		fi
8499	fi
8500
8501	if test $found = "no" ; then
8502		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8503			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8504		fi
8505
8506		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8507			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8508		fi
8509
8510		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8511
8512		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8513$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8514		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8515		if eval \${$cacheid+:} false; then :
8516  $as_echo_n "(cached) " >&6
8517else
8518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8519/* end confdefs.h.  */
8520int i;
8521int
8522main ()
8523{
8524
8525  ;
8526  return 0;
8527}
8528_ACEOF
8529if ac_fn_c_try_link "$LINENO"; then :
8530  eval $cacheid=yes
8531else
8532  eval $cacheid=no
8533fi
8534rm -f core conftest.err conftest.$ac_objext \
8535    conftest$ac_exeext conftest.$ac_ext
8536fi
8537
8538
8539		CFLAGS="$xorg_testset_save_CFLAGS"
8540
8541		eval supported=\$$cacheid
8542		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8543$as_echo "$supported" >&6; }
8544		if test "$supported" = "yes" ; then
8545			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8546			found="yes"
8547		fi
8548	fi
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564xorg_testset_save_CFLAGS="$CFLAGS"
8565
8566if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8567	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8568	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8569$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8570if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8571  $as_echo_n "(cached) " >&6
8572else
8573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8574/* end confdefs.h.  */
8575int i;
8576_ACEOF
8577if ac_fn_c_try_compile "$LINENO"; then :
8578  xorg_cv_cc_flag_unknown_warning_option=yes
8579else
8580  xorg_cv_cc_flag_unknown_warning_option=no
8581fi
8582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8583fi
8584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8585$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8586	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8587	CFLAGS="$xorg_testset_save_CFLAGS"
8588fi
8589
8590if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8591	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8592		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8593	fi
8594	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8595	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8596$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8597if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8598  $as_echo_n "(cached) " >&6
8599else
8600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8601/* end confdefs.h.  */
8602int i;
8603_ACEOF
8604if ac_fn_c_try_compile "$LINENO"; then :
8605  xorg_cv_cc_flag_unused_command_line_argument=yes
8606else
8607  xorg_cv_cc_flag_unused_command_line_argument=no
8608fi
8609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8610fi
8611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8612$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8613	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8614	CFLAGS="$xorg_testset_save_CFLAGS"
8615fi
8616
8617found="no"
8618
8619	if test $found = "no" ; then
8620		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8621			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8622		fi
8623
8624		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8625			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8626		fi
8627
8628		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8629
8630		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8631$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8632		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8633		if eval \${$cacheid+:} false; then :
8634  $as_echo_n "(cached) " >&6
8635else
8636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8637/* end confdefs.h.  */
8638int i;
8639int
8640main ()
8641{
8642
8643  ;
8644  return 0;
8645}
8646_ACEOF
8647if ac_fn_c_try_link "$LINENO"; then :
8648  eval $cacheid=yes
8649else
8650  eval $cacheid=no
8651fi
8652rm -f core conftest.err conftest.$ac_objext \
8653    conftest$ac_exeext conftest.$ac_ext
8654fi
8655
8656
8657		CFLAGS="$xorg_testset_save_CFLAGS"
8658
8659		eval supported=\$$cacheid
8660		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8661$as_echo "$supported" >&6; }
8662		if test "$supported" = "yes" ; then
8663			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8664			found="yes"
8665		fi
8666	fi
8667
8668 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8669else
8670{ $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
8671$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;}
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685xorg_testset_save_CFLAGS="$CFLAGS"
8686
8687if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8688	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8689	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8690$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8691if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8692  $as_echo_n "(cached) " >&6
8693else
8694  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8695/* end confdefs.h.  */
8696int i;
8697_ACEOF
8698if ac_fn_c_try_compile "$LINENO"; then :
8699  xorg_cv_cc_flag_unknown_warning_option=yes
8700else
8701  xorg_cv_cc_flag_unknown_warning_option=no
8702fi
8703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8704fi
8705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8706$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8707	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8708	CFLAGS="$xorg_testset_save_CFLAGS"
8709fi
8710
8711if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8712	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8713		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8714	fi
8715	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8716	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8717$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8718if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8719  $as_echo_n "(cached) " >&6
8720else
8721  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8722/* end confdefs.h.  */
8723int i;
8724_ACEOF
8725if ac_fn_c_try_compile "$LINENO"; then :
8726  xorg_cv_cc_flag_unused_command_line_argument=yes
8727else
8728  xorg_cv_cc_flag_unused_command_line_argument=no
8729fi
8730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8731fi
8732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8733$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8734	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8735	CFLAGS="$xorg_testset_save_CFLAGS"
8736fi
8737
8738found="no"
8739
8740	if test $found = "no" ; then
8741		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8742			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8743		fi
8744
8745		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8746			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8747		fi
8748
8749		CFLAGS="$CFLAGS -Wimplicit"
8750
8751		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8752$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8753		cacheid=xorg_cv_cc_flag__Wimplicit
8754		if eval \${$cacheid+:} false; then :
8755  $as_echo_n "(cached) " >&6
8756else
8757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8758/* end confdefs.h.  */
8759int i;
8760int
8761main ()
8762{
8763
8764  ;
8765  return 0;
8766}
8767_ACEOF
8768if ac_fn_c_try_link "$LINENO"; then :
8769  eval $cacheid=yes
8770else
8771  eval $cacheid=no
8772fi
8773rm -f core conftest.err conftest.$ac_objext \
8774    conftest$ac_exeext conftest.$ac_ext
8775fi
8776
8777
8778		CFLAGS="$xorg_testset_save_CFLAGS"
8779
8780		eval supported=\$$cacheid
8781		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8782$as_echo "$supported" >&6; }
8783		if test "$supported" = "yes" ; then
8784			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8785			found="yes"
8786		fi
8787	fi
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803xorg_testset_save_CFLAGS="$CFLAGS"
8804
8805if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8806	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8807	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8808$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8809if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8810  $as_echo_n "(cached) " >&6
8811else
8812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8813/* end confdefs.h.  */
8814int i;
8815_ACEOF
8816if ac_fn_c_try_compile "$LINENO"; then :
8817  xorg_cv_cc_flag_unknown_warning_option=yes
8818else
8819  xorg_cv_cc_flag_unknown_warning_option=no
8820fi
8821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8822fi
8823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8824$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8825	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8826	CFLAGS="$xorg_testset_save_CFLAGS"
8827fi
8828
8829if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8830	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8831		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8832	fi
8833	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8834	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8835$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8836if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8837  $as_echo_n "(cached) " >&6
8838else
8839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8840/* end confdefs.h.  */
8841int i;
8842_ACEOF
8843if ac_fn_c_try_compile "$LINENO"; then :
8844  xorg_cv_cc_flag_unused_command_line_argument=yes
8845else
8846  xorg_cv_cc_flag_unused_command_line_argument=no
8847fi
8848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8849fi
8850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8851$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8852	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8853	CFLAGS="$xorg_testset_save_CFLAGS"
8854fi
8855
8856found="no"
8857
8858	if test $found = "no" ; then
8859		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8860			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8861		fi
8862
8863		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8864			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8865		fi
8866
8867		CFLAGS="$CFLAGS -Wnonnull"
8868
8869		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8870$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8871		cacheid=xorg_cv_cc_flag__Wnonnull
8872		if eval \${$cacheid+:} false; then :
8873  $as_echo_n "(cached) " >&6
8874else
8875  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8876/* end confdefs.h.  */
8877int i;
8878int
8879main ()
8880{
8881
8882  ;
8883  return 0;
8884}
8885_ACEOF
8886if ac_fn_c_try_link "$LINENO"; then :
8887  eval $cacheid=yes
8888else
8889  eval $cacheid=no
8890fi
8891rm -f core conftest.err conftest.$ac_objext \
8892    conftest$ac_exeext conftest.$ac_ext
8893fi
8894
8895
8896		CFLAGS="$xorg_testset_save_CFLAGS"
8897
8898		eval supported=\$$cacheid
8899		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8900$as_echo "$supported" >&6; }
8901		if test "$supported" = "yes" ; then
8902			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8903			found="yes"
8904		fi
8905	fi
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921xorg_testset_save_CFLAGS="$CFLAGS"
8922
8923if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8924	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8925	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8926$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8927if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8928  $as_echo_n "(cached) " >&6
8929else
8930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8931/* end confdefs.h.  */
8932int i;
8933_ACEOF
8934if ac_fn_c_try_compile "$LINENO"; then :
8935  xorg_cv_cc_flag_unknown_warning_option=yes
8936else
8937  xorg_cv_cc_flag_unknown_warning_option=no
8938fi
8939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8940fi
8941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8942$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8943	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8944	CFLAGS="$xorg_testset_save_CFLAGS"
8945fi
8946
8947if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8948	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8949		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8950	fi
8951	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8952	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8953$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8954if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8955  $as_echo_n "(cached) " >&6
8956else
8957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8958/* end confdefs.h.  */
8959int i;
8960_ACEOF
8961if ac_fn_c_try_compile "$LINENO"; then :
8962  xorg_cv_cc_flag_unused_command_line_argument=yes
8963else
8964  xorg_cv_cc_flag_unused_command_line_argument=no
8965fi
8966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8967fi
8968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8969$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8970	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8971	CFLAGS="$xorg_testset_save_CFLAGS"
8972fi
8973
8974found="no"
8975
8976	if test $found = "no" ; then
8977		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8978			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8979		fi
8980
8981		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8982			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8983		fi
8984
8985		CFLAGS="$CFLAGS -Winit-self"
8986
8987		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8988$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8989		cacheid=xorg_cv_cc_flag__Winit_self
8990		if eval \${$cacheid+:} false; then :
8991  $as_echo_n "(cached) " >&6
8992else
8993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8994/* end confdefs.h.  */
8995int i;
8996int
8997main ()
8998{
8999
9000  ;
9001  return 0;
9002}
9003_ACEOF
9004if ac_fn_c_try_link "$LINENO"; then :
9005  eval $cacheid=yes
9006else
9007  eval $cacheid=no
9008fi
9009rm -f core conftest.err conftest.$ac_objext \
9010    conftest$ac_exeext conftest.$ac_ext
9011fi
9012
9013
9014		CFLAGS="$xorg_testset_save_CFLAGS"
9015
9016		eval supported=\$$cacheid
9017		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9018$as_echo "$supported" >&6; }
9019		if test "$supported" = "yes" ; then
9020			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9021			found="yes"
9022		fi
9023	fi
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039xorg_testset_save_CFLAGS="$CFLAGS"
9040
9041if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9042	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9043	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9044$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9045if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9046  $as_echo_n "(cached) " >&6
9047else
9048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9049/* end confdefs.h.  */
9050int i;
9051_ACEOF
9052if ac_fn_c_try_compile "$LINENO"; then :
9053  xorg_cv_cc_flag_unknown_warning_option=yes
9054else
9055  xorg_cv_cc_flag_unknown_warning_option=no
9056fi
9057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9058fi
9059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9060$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9061	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9062	CFLAGS="$xorg_testset_save_CFLAGS"
9063fi
9064
9065if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9066	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9067		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9068	fi
9069	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9070	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9071$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9072if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9073  $as_echo_n "(cached) " >&6
9074else
9075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9076/* end confdefs.h.  */
9077int i;
9078_ACEOF
9079if ac_fn_c_try_compile "$LINENO"; then :
9080  xorg_cv_cc_flag_unused_command_line_argument=yes
9081else
9082  xorg_cv_cc_flag_unused_command_line_argument=no
9083fi
9084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9085fi
9086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9087$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9088	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9089	CFLAGS="$xorg_testset_save_CFLAGS"
9090fi
9091
9092found="no"
9093
9094	if test $found = "no" ; then
9095		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9096			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9097		fi
9098
9099		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9100			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9101		fi
9102
9103		CFLAGS="$CFLAGS -Wmain"
9104
9105		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9106$as_echo_n "checking if $CC supports -Wmain... " >&6; }
9107		cacheid=xorg_cv_cc_flag__Wmain
9108		if eval \${$cacheid+:} false; then :
9109  $as_echo_n "(cached) " >&6
9110else
9111  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9112/* end confdefs.h.  */
9113int i;
9114int
9115main ()
9116{
9117
9118  ;
9119  return 0;
9120}
9121_ACEOF
9122if ac_fn_c_try_link "$LINENO"; then :
9123  eval $cacheid=yes
9124else
9125  eval $cacheid=no
9126fi
9127rm -f core conftest.err conftest.$ac_objext \
9128    conftest$ac_exeext conftest.$ac_ext
9129fi
9130
9131
9132		CFLAGS="$xorg_testset_save_CFLAGS"
9133
9134		eval supported=\$$cacheid
9135		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9136$as_echo "$supported" >&6; }
9137		if test "$supported" = "yes" ; then
9138			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9139			found="yes"
9140		fi
9141	fi
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157xorg_testset_save_CFLAGS="$CFLAGS"
9158
9159if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9160	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9161	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9162$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9163if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9164  $as_echo_n "(cached) " >&6
9165else
9166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9167/* end confdefs.h.  */
9168int i;
9169_ACEOF
9170if ac_fn_c_try_compile "$LINENO"; then :
9171  xorg_cv_cc_flag_unknown_warning_option=yes
9172else
9173  xorg_cv_cc_flag_unknown_warning_option=no
9174fi
9175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9176fi
9177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9178$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9179	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9180	CFLAGS="$xorg_testset_save_CFLAGS"
9181fi
9182
9183if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9184	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9185		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9186	fi
9187	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9188	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9189$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9190if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9191  $as_echo_n "(cached) " >&6
9192else
9193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9194/* end confdefs.h.  */
9195int i;
9196_ACEOF
9197if ac_fn_c_try_compile "$LINENO"; then :
9198  xorg_cv_cc_flag_unused_command_line_argument=yes
9199else
9200  xorg_cv_cc_flag_unused_command_line_argument=no
9201fi
9202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9203fi
9204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9205$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9206	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9207	CFLAGS="$xorg_testset_save_CFLAGS"
9208fi
9209
9210found="no"
9211
9212	if test $found = "no" ; then
9213		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9214			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9215		fi
9216
9217		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9218			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9219		fi
9220
9221		CFLAGS="$CFLAGS -Wmissing-braces"
9222
9223		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9224$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9225		cacheid=xorg_cv_cc_flag__Wmissing_braces
9226		if eval \${$cacheid+:} false; then :
9227  $as_echo_n "(cached) " >&6
9228else
9229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9230/* end confdefs.h.  */
9231int i;
9232int
9233main ()
9234{
9235
9236  ;
9237  return 0;
9238}
9239_ACEOF
9240if ac_fn_c_try_link "$LINENO"; then :
9241  eval $cacheid=yes
9242else
9243  eval $cacheid=no
9244fi
9245rm -f core conftest.err conftest.$ac_objext \
9246    conftest$ac_exeext conftest.$ac_ext
9247fi
9248
9249
9250		CFLAGS="$xorg_testset_save_CFLAGS"
9251
9252		eval supported=\$$cacheid
9253		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9254$as_echo "$supported" >&6; }
9255		if test "$supported" = "yes" ; then
9256			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9257			found="yes"
9258		fi
9259	fi
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275xorg_testset_save_CFLAGS="$CFLAGS"
9276
9277if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9278	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9279	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9280$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9281if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9282  $as_echo_n "(cached) " >&6
9283else
9284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9285/* end confdefs.h.  */
9286int i;
9287_ACEOF
9288if ac_fn_c_try_compile "$LINENO"; then :
9289  xorg_cv_cc_flag_unknown_warning_option=yes
9290else
9291  xorg_cv_cc_flag_unknown_warning_option=no
9292fi
9293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9294fi
9295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9296$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9297	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9298	CFLAGS="$xorg_testset_save_CFLAGS"
9299fi
9300
9301if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9302	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9303		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9304	fi
9305	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9306	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9307$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9308if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9309  $as_echo_n "(cached) " >&6
9310else
9311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9312/* end confdefs.h.  */
9313int i;
9314_ACEOF
9315if ac_fn_c_try_compile "$LINENO"; then :
9316  xorg_cv_cc_flag_unused_command_line_argument=yes
9317else
9318  xorg_cv_cc_flag_unused_command_line_argument=no
9319fi
9320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9321fi
9322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9323$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9324	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9325	CFLAGS="$xorg_testset_save_CFLAGS"
9326fi
9327
9328found="no"
9329
9330	if test $found = "no" ; then
9331		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9332			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9333		fi
9334
9335		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9336			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9337		fi
9338
9339		CFLAGS="$CFLAGS -Wsequence-point"
9340
9341		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9342$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9343		cacheid=xorg_cv_cc_flag__Wsequence_point
9344		if eval \${$cacheid+:} false; then :
9345  $as_echo_n "(cached) " >&6
9346else
9347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9348/* end confdefs.h.  */
9349int i;
9350int
9351main ()
9352{
9353
9354  ;
9355  return 0;
9356}
9357_ACEOF
9358if ac_fn_c_try_link "$LINENO"; then :
9359  eval $cacheid=yes
9360else
9361  eval $cacheid=no
9362fi
9363rm -f core conftest.err conftest.$ac_objext \
9364    conftest$ac_exeext conftest.$ac_ext
9365fi
9366
9367
9368		CFLAGS="$xorg_testset_save_CFLAGS"
9369
9370		eval supported=\$$cacheid
9371		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9372$as_echo "$supported" >&6; }
9373		if test "$supported" = "yes" ; then
9374			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9375			found="yes"
9376		fi
9377	fi
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393xorg_testset_save_CFLAGS="$CFLAGS"
9394
9395if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9396	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9397	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9398$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9399if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9400  $as_echo_n "(cached) " >&6
9401else
9402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9403/* end confdefs.h.  */
9404int i;
9405_ACEOF
9406if ac_fn_c_try_compile "$LINENO"; then :
9407  xorg_cv_cc_flag_unknown_warning_option=yes
9408else
9409  xorg_cv_cc_flag_unknown_warning_option=no
9410fi
9411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9412fi
9413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9414$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9415	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9416	CFLAGS="$xorg_testset_save_CFLAGS"
9417fi
9418
9419if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9420	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9421		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9422	fi
9423	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9424	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9425$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9426if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9427  $as_echo_n "(cached) " >&6
9428else
9429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9430/* end confdefs.h.  */
9431int i;
9432_ACEOF
9433if ac_fn_c_try_compile "$LINENO"; then :
9434  xorg_cv_cc_flag_unused_command_line_argument=yes
9435else
9436  xorg_cv_cc_flag_unused_command_line_argument=no
9437fi
9438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9439fi
9440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9441$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9442	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9443	CFLAGS="$xorg_testset_save_CFLAGS"
9444fi
9445
9446found="no"
9447
9448	if test $found = "no" ; then
9449		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9450			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9451		fi
9452
9453		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9454			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9455		fi
9456
9457		CFLAGS="$CFLAGS -Wreturn-type"
9458
9459		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9460$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9461		cacheid=xorg_cv_cc_flag__Wreturn_type
9462		if eval \${$cacheid+:} false; then :
9463  $as_echo_n "(cached) " >&6
9464else
9465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9466/* end confdefs.h.  */
9467int i;
9468int
9469main ()
9470{
9471
9472  ;
9473  return 0;
9474}
9475_ACEOF
9476if ac_fn_c_try_link "$LINENO"; then :
9477  eval $cacheid=yes
9478else
9479  eval $cacheid=no
9480fi
9481rm -f core conftest.err conftest.$ac_objext \
9482    conftest$ac_exeext conftest.$ac_ext
9483fi
9484
9485
9486		CFLAGS="$xorg_testset_save_CFLAGS"
9487
9488		eval supported=\$$cacheid
9489		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9490$as_echo "$supported" >&6; }
9491		if test "$supported" = "yes" ; then
9492			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9493			found="yes"
9494		fi
9495	fi
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511xorg_testset_save_CFLAGS="$CFLAGS"
9512
9513if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9514	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9515	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9516$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9517if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9518  $as_echo_n "(cached) " >&6
9519else
9520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9521/* end confdefs.h.  */
9522int i;
9523_ACEOF
9524if ac_fn_c_try_compile "$LINENO"; then :
9525  xorg_cv_cc_flag_unknown_warning_option=yes
9526else
9527  xorg_cv_cc_flag_unknown_warning_option=no
9528fi
9529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9530fi
9531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9532$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9533	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9534	CFLAGS="$xorg_testset_save_CFLAGS"
9535fi
9536
9537if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9538	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9539		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9540	fi
9541	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9542	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9543$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9544if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9545  $as_echo_n "(cached) " >&6
9546else
9547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9548/* end confdefs.h.  */
9549int i;
9550_ACEOF
9551if ac_fn_c_try_compile "$LINENO"; then :
9552  xorg_cv_cc_flag_unused_command_line_argument=yes
9553else
9554  xorg_cv_cc_flag_unused_command_line_argument=no
9555fi
9556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9557fi
9558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9559$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9560	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9561	CFLAGS="$xorg_testset_save_CFLAGS"
9562fi
9563
9564found="no"
9565
9566	if test $found = "no" ; then
9567		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9568			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9569		fi
9570
9571		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9572			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9573		fi
9574
9575		CFLAGS="$CFLAGS -Wtrigraphs"
9576
9577		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9578$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9579		cacheid=xorg_cv_cc_flag__Wtrigraphs
9580		if eval \${$cacheid+:} false; then :
9581  $as_echo_n "(cached) " >&6
9582else
9583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9584/* end confdefs.h.  */
9585int i;
9586int
9587main ()
9588{
9589
9590  ;
9591  return 0;
9592}
9593_ACEOF
9594if ac_fn_c_try_link "$LINENO"; then :
9595  eval $cacheid=yes
9596else
9597  eval $cacheid=no
9598fi
9599rm -f core conftest.err conftest.$ac_objext \
9600    conftest$ac_exeext conftest.$ac_ext
9601fi
9602
9603
9604		CFLAGS="$xorg_testset_save_CFLAGS"
9605
9606		eval supported=\$$cacheid
9607		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9608$as_echo "$supported" >&6; }
9609		if test "$supported" = "yes" ; then
9610			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9611			found="yes"
9612		fi
9613	fi
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629xorg_testset_save_CFLAGS="$CFLAGS"
9630
9631if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9632	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9633	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9634$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9635if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9636  $as_echo_n "(cached) " >&6
9637else
9638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9639/* end confdefs.h.  */
9640int i;
9641_ACEOF
9642if ac_fn_c_try_compile "$LINENO"; then :
9643  xorg_cv_cc_flag_unknown_warning_option=yes
9644else
9645  xorg_cv_cc_flag_unknown_warning_option=no
9646fi
9647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9648fi
9649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9650$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9651	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9652	CFLAGS="$xorg_testset_save_CFLAGS"
9653fi
9654
9655if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9656	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9657		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9658	fi
9659	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9660	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9661$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9662if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9663  $as_echo_n "(cached) " >&6
9664else
9665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9666/* end confdefs.h.  */
9667int i;
9668_ACEOF
9669if ac_fn_c_try_compile "$LINENO"; then :
9670  xorg_cv_cc_flag_unused_command_line_argument=yes
9671else
9672  xorg_cv_cc_flag_unused_command_line_argument=no
9673fi
9674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9675fi
9676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9677$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9678	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9679	CFLAGS="$xorg_testset_save_CFLAGS"
9680fi
9681
9682found="no"
9683
9684	if test $found = "no" ; then
9685		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9686			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9687		fi
9688
9689		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9690			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9691		fi
9692
9693		CFLAGS="$CFLAGS -Warray-bounds"
9694
9695		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9696$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9697		cacheid=xorg_cv_cc_flag__Warray_bounds
9698		if eval \${$cacheid+:} false; then :
9699  $as_echo_n "(cached) " >&6
9700else
9701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9702/* end confdefs.h.  */
9703int i;
9704int
9705main ()
9706{
9707
9708  ;
9709  return 0;
9710}
9711_ACEOF
9712if ac_fn_c_try_link "$LINENO"; then :
9713  eval $cacheid=yes
9714else
9715  eval $cacheid=no
9716fi
9717rm -f core conftest.err conftest.$ac_objext \
9718    conftest$ac_exeext conftest.$ac_ext
9719fi
9720
9721
9722		CFLAGS="$xorg_testset_save_CFLAGS"
9723
9724		eval supported=\$$cacheid
9725		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9726$as_echo "$supported" >&6; }
9727		if test "$supported" = "yes" ; then
9728			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9729			found="yes"
9730		fi
9731	fi
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747xorg_testset_save_CFLAGS="$CFLAGS"
9748
9749if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9750	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9751	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9752$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9753if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9754  $as_echo_n "(cached) " >&6
9755else
9756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9757/* end confdefs.h.  */
9758int i;
9759_ACEOF
9760if ac_fn_c_try_compile "$LINENO"; then :
9761  xorg_cv_cc_flag_unknown_warning_option=yes
9762else
9763  xorg_cv_cc_flag_unknown_warning_option=no
9764fi
9765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9766fi
9767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9768$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9769	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9770	CFLAGS="$xorg_testset_save_CFLAGS"
9771fi
9772
9773if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9774	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9775		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9776	fi
9777	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9778	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9779$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9780if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9781  $as_echo_n "(cached) " >&6
9782else
9783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9784/* end confdefs.h.  */
9785int i;
9786_ACEOF
9787if ac_fn_c_try_compile "$LINENO"; then :
9788  xorg_cv_cc_flag_unused_command_line_argument=yes
9789else
9790  xorg_cv_cc_flag_unused_command_line_argument=no
9791fi
9792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9793fi
9794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9795$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9796	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9797	CFLAGS="$xorg_testset_save_CFLAGS"
9798fi
9799
9800found="no"
9801
9802	if test $found = "no" ; then
9803		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9804			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9805		fi
9806
9807		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9808			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9809		fi
9810
9811		CFLAGS="$CFLAGS -Wwrite-strings"
9812
9813		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9814$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9815		cacheid=xorg_cv_cc_flag__Wwrite_strings
9816		if eval \${$cacheid+:} false; then :
9817  $as_echo_n "(cached) " >&6
9818else
9819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9820/* end confdefs.h.  */
9821int i;
9822int
9823main ()
9824{
9825
9826  ;
9827  return 0;
9828}
9829_ACEOF
9830if ac_fn_c_try_link "$LINENO"; then :
9831  eval $cacheid=yes
9832else
9833  eval $cacheid=no
9834fi
9835rm -f core conftest.err conftest.$ac_objext \
9836    conftest$ac_exeext conftest.$ac_ext
9837fi
9838
9839
9840		CFLAGS="$xorg_testset_save_CFLAGS"
9841
9842		eval supported=\$$cacheid
9843		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9844$as_echo "$supported" >&6; }
9845		if test "$supported" = "yes" ; then
9846			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9847			found="yes"
9848		fi
9849	fi
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865xorg_testset_save_CFLAGS="$CFLAGS"
9866
9867if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9868	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9869	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9870$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9871if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9872  $as_echo_n "(cached) " >&6
9873else
9874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9875/* end confdefs.h.  */
9876int i;
9877_ACEOF
9878if ac_fn_c_try_compile "$LINENO"; then :
9879  xorg_cv_cc_flag_unknown_warning_option=yes
9880else
9881  xorg_cv_cc_flag_unknown_warning_option=no
9882fi
9883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9884fi
9885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9886$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9887	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9888	CFLAGS="$xorg_testset_save_CFLAGS"
9889fi
9890
9891if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9892	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9893		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9894	fi
9895	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9896	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9897$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9898if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9899  $as_echo_n "(cached) " >&6
9900else
9901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9902/* end confdefs.h.  */
9903int i;
9904_ACEOF
9905if ac_fn_c_try_compile "$LINENO"; then :
9906  xorg_cv_cc_flag_unused_command_line_argument=yes
9907else
9908  xorg_cv_cc_flag_unused_command_line_argument=no
9909fi
9910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9911fi
9912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9913$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9914	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9915	CFLAGS="$xorg_testset_save_CFLAGS"
9916fi
9917
9918found="no"
9919
9920	if test $found = "no" ; then
9921		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9922			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9923		fi
9924
9925		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9926			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9927		fi
9928
9929		CFLAGS="$CFLAGS -Waddress"
9930
9931		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9932$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9933		cacheid=xorg_cv_cc_flag__Waddress
9934		if eval \${$cacheid+:} false; then :
9935  $as_echo_n "(cached) " >&6
9936else
9937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9938/* end confdefs.h.  */
9939int i;
9940int
9941main ()
9942{
9943
9944  ;
9945  return 0;
9946}
9947_ACEOF
9948if ac_fn_c_try_link "$LINENO"; then :
9949  eval $cacheid=yes
9950else
9951  eval $cacheid=no
9952fi
9953rm -f core conftest.err conftest.$ac_objext \
9954    conftest$ac_exeext conftest.$ac_ext
9955fi
9956
9957
9958		CFLAGS="$xorg_testset_save_CFLAGS"
9959
9960		eval supported=\$$cacheid
9961		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9962$as_echo "$supported" >&6; }
9963		if test "$supported" = "yes" ; then
9964			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9965			found="yes"
9966		fi
9967	fi
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983xorg_testset_save_CFLAGS="$CFLAGS"
9984
9985if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9986	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9987	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9988$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9989if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9990  $as_echo_n "(cached) " >&6
9991else
9992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9993/* end confdefs.h.  */
9994int i;
9995_ACEOF
9996if ac_fn_c_try_compile "$LINENO"; then :
9997  xorg_cv_cc_flag_unknown_warning_option=yes
9998else
9999  xorg_cv_cc_flag_unknown_warning_option=no
10000fi
10001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10002fi
10003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10004$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10005	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10006	CFLAGS="$xorg_testset_save_CFLAGS"
10007fi
10008
10009if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10010	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10011		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10012	fi
10013	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10014	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10015$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10016if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10017  $as_echo_n "(cached) " >&6
10018else
10019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10020/* end confdefs.h.  */
10021int i;
10022_ACEOF
10023if ac_fn_c_try_compile "$LINENO"; then :
10024  xorg_cv_cc_flag_unused_command_line_argument=yes
10025else
10026  xorg_cv_cc_flag_unused_command_line_argument=no
10027fi
10028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10029fi
10030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10031$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10032	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10033	CFLAGS="$xorg_testset_save_CFLAGS"
10034fi
10035
10036found="no"
10037
10038	if test $found = "no" ; then
10039		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10040			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10041		fi
10042
10043		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10044			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10045		fi
10046
10047		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10048
10049		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10050$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10051		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10052		if eval \${$cacheid+:} false; then :
10053  $as_echo_n "(cached) " >&6
10054else
10055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10056/* end confdefs.h.  */
10057int i;
10058int
10059main ()
10060{
10061
10062  ;
10063  return 0;
10064}
10065_ACEOF
10066if ac_fn_c_try_link "$LINENO"; then :
10067  eval $cacheid=yes
10068else
10069  eval $cacheid=no
10070fi
10071rm -f core conftest.err conftest.$ac_objext \
10072    conftest$ac_exeext conftest.$ac_ext
10073fi
10074
10075
10076		CFLAGS="$xorg_testset_save_CFLAGS"
10077
10078		eval supported=\$$cacheid
10079		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10080$as_echo "$supported" >&6; }
10081		if test "$supported" = "yes" ; then
10082			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10083			found="yes"
10084		fi
10085	fi
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101xorg_testset_save_CFLAGS="$CFLAGS"
10102
10103if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10104	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10105	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10106$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10107if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10108  $as_echo_n "(cached) " >&6
10109else
10110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10111/* end confdefs.h.  */
10112int i;
10113_ACEOF
10114if ac_fn_c_try_compile "$LINENO"; then :
10115  xorg_cv_cc_flag_unknown_warning_option=yes
10116else
10117  xorg_cv_cc_flag_unknown_warning_option=no
10118fi
10119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10120fi
10121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10122$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10123	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10124	CFLAGS="$xorg_testset_save_CFLAGS"
10125fi
10126
10127if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10128	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10129		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10130	fi
10131	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10132	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10133$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10134if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10135  $as_echo_n "(cached) " >&6
10136else
10137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10138/* end confdefs.h.  */
10139int i;
10140_ACEOF
10141if ac_fn_c_try_compile "$LINENO"; then :
10142  xorg_cv_cc_flag_unused_command_line_argument=yes
10143else
10144  xorg_cv_cc_flag_unused_command_line_argument=no
10145fi
10146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10147fi
10148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10149$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10150	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10151	CFLAGS="$xorg_testset_save_CFLAGS"
10152fi
10153
10154found="no"
10155
10156	if test $found = "no" ; then
10157		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10158			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10159		fi
10160
10161		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10162			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10163		fi
10164
10165		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10166
10167		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10168$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10169		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10170		if eval \${$cacheid+:} false; then :
10171  $as_echo_n "(cached) " >&6
10172else
10173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10174/* end confdefs.h.  */
10175int i;
10176int
10177main ()
10178{
10179
10180  ;
10181  return 0;
10182}
10183_ACEOF
10184if ac_fn_c_try_link "$LINENO"; then :
10185  eval $cacheid=yes
10186else
10187  eval $cacheid=no
10188fi
10189rm -f core conftest.err conftest.$ac_objext \
10190    conftest$ac_exeext conftest.$ac_ext
10191fi
10192
10193
10194		CFLAGS="$xorg_testset_save_CFLAGS"
10195
10196		eval supported=\$$cacheid
10197		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10198$as_echo "$supported" >&6; }
10199		if test "$supported" = "yes" ; then
10200			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10201			found="yes"
10202		fi
10203	fi
10204
10205
10206fi
10207
10208
10209
10210
10211
10212
10213
10214		CWARNFLAGS="$BASE_CFLAGS"
10215		if  test "x$GCC" = xyes ; then
10216		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10217		fi
10218
10219
10220
10221
10222
10223
10224
10225
10226# Check whether --enable-strict-compilation was given.
10227if test "${enable_strict_compilation+set}" = set; then :
10228  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10229else
10230  STRICT_COMPILE=no
10231fi
10232
10233
10234
10235
10236
10237
10238STRICT_CFLAGS=""
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252xorg_testset_save_CFLAGS="$CFLAGS"
10253
10254if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10255	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10256	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10257$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10258if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10259  $as_echo_n "(cached) " >&6
10260else
10261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10262/* end confdefs.h.  */
10263int i;
10264_ACEOF
10265if ac_fn_c_try_compile "$LINENO"; then :
10266  xorg_cv_cc_flag_unknown_warning_option=yes
10267else
10268  xorg_cv_cc_flag_unknown_warning_option=no
10269fi
10270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10271fi
10272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10273$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10274	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10275	CFLAGS="$xorg_testset_save_CFLAGS"
10276fi
10277
10278if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10279	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10280		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10281	fi
10282	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10283	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10284$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10285if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10286  $as_echo_n "(cached) " >&6
10287else
10288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10289/* end confdefs.h.  */
10290int i;
10291_ACEOF
10292if ac_fn_c_try_compile "$LINENO"; then :
10293  xorg_cv_cc_flag_unused_command_line_argument=yes
10294else
10295  xorg_cv_cc_flag_unused_command_line_argument=no
10296fi
10297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10298fi
10299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10300$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10301	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10302	CFLAGS="$xorg_testset_save_CFLAGS"
10303fi
10304
10305found="no"
10306
10307	if test $found = "no" ; then
10308		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10309			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10310		fi
10311
10312		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10313			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10314		fi
10315
10316		CFLAGS="$CFLAGS -pedantic"
10317
10318		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10319$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10320		cacheid=xorg_cv_cc_flag__pedantic
10321		if eval \${$cacheid+:} false; then :
10322  $as_echo_n "(cached) " >&6
10323else
10324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10325/* end confdefs.h.  */
10326int i;
10327int
10328main ()
10329{
10330
10331  ;
10332  return 0;
10333}
10334_ACEOF
10335if ac_fn_c_try_link "$LINENO"; then :
10336  eval $cacheid=yes
10337else
10338  eval $cacheid=no
10339fi
10340rm -f core conftest.err conftest.$ac_objext \
10341    conftest$ac_exeext conftest.$ac_ext
10342fi
10343
10344
10345		CFLAGS="$xorg_testset_save_CFLAGS"
10346
10347		eval supported=\$$cacheid
10348		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10349$as_echo "$supported" >&6; }
10350		if test "$supported" = "yes" ; then
10351			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10352			found="yes"
10353		fi
10354	fi
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370xorg_testset_save_CFLAGS="$CFLAGS"
10371
10372if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10373	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10374	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10375$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10376if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10377  $as_echo_n "(cached) " >&6
10378else
10379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10380/* end confdefs.h.  */
10381int i;
10382_ACEOF
10383if ac_fn_c_try_compile "$LINENO"; then :
10384  xorg_cv_cc_flag_unknown_warning_option=yes
10385else
10386  xorg_cv_cc_flag_unknown_warning_option=no
10387fi
10388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10389fi
10390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10391$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10392	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10393	CFLAGS="$xorg_testset_save_CFLAGS"
10394fi
10395
10396if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10397	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10398		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10399	fi
10400	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10401	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10402$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10403if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10404  $as_echo_n "(cached) " >&6
10405else
10406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10407/* end confdefs.h.  */
10408int i;
10409_ACEOF
10410if ac_fn_c_try_compile "$LINENO"; then :
10411  xorg_cv_cc_flag_unused_command_line_argument=yes
10412else
10413  xorg_cv_cc_flag_unused_command_line_argument=no
10414fi
10415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10416fi
10417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10418$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10419	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10420	CFLAGS="$xorg_testset_save_CFLAGS"
10421fi
10422
10423found="no"
10424
10425	if test $found = "no" ; then
10426		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10427			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10428		fi
10429
10430		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10431			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10432		fi
10433
10434		CFLAGS="$CFLAGS -Werror"
10435
10436		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10437$as_echo_n "checking if $CC supports -Werror... " >&6; }
10438		cacheid=xorg_cv_cc_flag__Werror
10439		if eval \${$cacheid+:} false; then :
10440  $as_echo_n "(cached) " >&6
10441else
10442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10443/* end confdefs.h.  */
10444int i;
10445int
10446main ()
10447{
10448
10449  ;
10450  return 0;
10451}
10452_ACEOF
10453if ac_fn_c_try_link "$LINENO"; then :
10454  eval $cacheid=yes
10455else
10456  eval $cacheid=no
10457fi
10458rm -f core conftest.err conftest.$ac_objext \
10459    conftest$ac_exeext conftest.$ac_ext
10460fi
10461
10462
10463		CFLAGS="$xorg_testset_save_CFLAGS"
10464
10465		eval supported=\$$cacheid
10466		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10467$as_echo "$supported" >&6; }
10468		if test "$supported" = "yes" ; then
10469			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10470			found="yes"
10471		fi
10472	fi
10473
10474	if test $found = "no" ; then
10475		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10476			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10477		fi
10478
10479		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10480			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10481		fi
10482
10483		CFLAGS="$CFLAGS -errwarn"
10484
10485		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10486$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10487		cacheid=xorg_cv_cc_flag__errwarn
10488		if eval \${$cacheid+:} false; then :
10489  $as_echo_n "(cached) " >&6
10490else
10491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10492/* end confdefs.h.  */
10493int i;
10494int
10495main ()
10496{
10497
10498  ;
10499  return 0;
10500}
10501_ACEOF
10502if ac_fn_c_try_link "$LINENO"; then :
10503  eval $cacheid=yes
10504else
10505  eval $cacheid=no
10506fi
10507rm -f core conftest.err conftest.$ac_objext \
10508    conftest$ac_exeext conftest.$ac_ext
10509fi
10510
10511
10512		CFLAGS="$xorg_testset_save_CFLAGS"
10513
10514		eval supported=\$$cacheid
10515		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10516$as_echo "$supported" >&6; }
10517		if test "$supported" = "yes" ; then
10518			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10519			found="yes"
10520		fi
10521	fi
10522
10523
10524
10525# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10526# activate it with -Werror, so we add it here explicitly.
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540xorg_testset_save_CFLAGS="$CFLAGS"
10541
10542if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10543	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10544	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10545$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10546if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10547  $as_echo_n "(cached) " >&6
10548else
10549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10550/* end confdefs.h.  */
10551int i;
10552_ACEOF
10553if ac_fn_c_try_compile "$LINENO"; then :
10554  xorg_cv_cc_flag_unknown_warning_option=yes
10555else
10556  xorg_cv_cc_flag_unknown_warning_option=no
10557fi
10558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10559fi
10560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10561$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10562	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10563	CFLAGS="$xorg_testset_save_CFLAGS"
10564fi
10565
10566if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10567	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10568		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10569	fi
10570	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10571	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10572$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10573if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10574  $as_echo_n "(cached) " >&6
10575else
10576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10577/* end confdefs.h.  */
10578int i;
10579_ACEOF
10580if ac_fn_c_try_compile "$LINENO"; then :
10581  xorg_cv_cc_flag_unused_command_line_argument=yes
10582else
10583  xorg_cv_cc_flag_unused_command_line_argument=no
10584fi
10585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10586fi
10587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10588$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10589	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10590	CFLAGS="$xorg_testset_save_CFLAGS"
10591fi
10592
10593found="no"
10594
10595	if test $found = "no" ; then
10596		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10597			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10598		fi
10599
10600		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10601			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10602		fi
10603
10604		CFLAGS="$CFLAGS -Werror=attributes"
10605
10606		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10607$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10608		cacheid=xorg_cv_cc_flag__Werror_attributes
10609		if eval \${$cacheid+:} false; then :
10610  $as_echo_n "(cached) " >&6
10611else
10612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10613/* end confdefs.h.  */
10614int i;
10615int
10616main ()
10617{
10618
10619  ;
10620  return 0;
10621}
10622_ACEOF
10623if ac_fn_c_try_link "$LINENO"; then :
10624  eval $cacheid=yes
10625else
10626  eval $cacheid=no
10627fi
10628rm -f core conftest.err conftest.$ac_objext \
10629    conftest$ac_exeext conftest.$ac_ext
10630fi
10631
10632
10633		CFLAGS="$xorg_testset_save_CFLAGS"
10634
10635		eval supported=\$$cacheid
10636		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10637$as_echo "$supported" >&6; }
10638		if test "$supported" = "yes" ; then
10639			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10640			found="yes"
10641		fi
10642	fi
10643
10644
10645
10646if test "x$STRICT_COMPILE" = "xyes"; then
10647    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10648    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10649fi
10650
10651
10652
10653
10654
10655
10656cat >>confdefs.h <<_ACEOF
10657#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10658_ACEOF
10659
10660	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10661	if test "x$PVM" = "x"; then
10662		PVM="0"
10663	fi
10664
10665cat >>confdefs.h <<_ACEOF
10666#define PACKAGE_VERSION_MINOR $PVM
10667_ACEOF
10668
10669	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10670	if test "x$PVP" = "x"; then
10671		PVP="0"
10672	fi
10673
10674cat >>confdefs.h <<_ACEOF
10675#define PACKAGE_VERSION_PATCHLEVEL $PVP
10676_ACEOF
10677
10678
10679
10680CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10681mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10682|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10683echo 'git directory not found: installing possibly empty changelog.' >&2)"
10684
10685
10686
10687
10688macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10689INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10690mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10691|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10692echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10693
10694
10695
10696
10697
10698
10699if test x$APP_MAN_SUFFIX = x    ; then
10700    APP_MAN_SUFFIX=1
10701fi
10702if test x$APP_MAN_DIR = x    ; then
10703    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10704fi
10705
10706if test x$LIB_MAN_SUFFIX = x    ; then
10707    LIB_MAN_SUFFIX=3
10708fi
10709if test x$LIB_MAN_DIR = x    ; then
10710    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10711fi
10712
10713if test x$FILE_MAN_SUFFIX = x    ; then
10714    case $host_os in
10715	# Solaris 2.0 - 11 use SysV man page sections
10716	solaris2.?|solaris2.1[01])	FILE_MAN_SUFFIX=4  ;;
10717	*)				FILE_MAN_SUFFIX=5  ;;
10718    esac
10719fi
10720if test x$FILE_MAN_DIR = x    ; then
10721    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10722fi
10723
10724if test x$MISC_MAN_SUFFIX = x    ; then
10725    case $host_os in
10726	# Solaris 2.0 - 11 use SysV man page sections
10727	solaris2.?|solaris2.1[01])	MISC_MAN_SUFFIX=5  ;;
10728	*)				MISC_MAN_SUFFIX=7  ;;
10729    esac
10730fi
10731if test x$MISC_MAN_DIR = x    ; then
10732    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10733fi
10734
10735if test x$DRIVER_MAN_SUFFIX = x    ; then
10736    case $host_os in
10737	# Solaris 2.0 - 11 use SysV man page sections
10738	solaris2.?|solaris2.1[01])	DRIVER_MAN_SUFFIX=7  ;;
10739	*)				DRIVER_MAN_SUFFIX=4  ;;
10740    esac
10741fi
10742if test x$DRIVER_MAN_DIR = x    ; then
10743    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10744fi
10745
10746if test x$ADMIN_MAN_SUFFIX = x    ; then
10747    case $host_os in
10748	# Solaris 2.0 - 11 use SysV man page sections
10749	solaris2.?|solaris2.1[01])	ADMIN_MAN_SUFFIX=1m ;;
10750	*)				ADMIN_MAN_SUFFIX=8  ;;
10751    esac
10752fi
10753if test x$ADMIN_MAN_DIR = x    ; then
10754    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10755fi
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771XORG_MAN_PAGE="X Version 11"
10772
10773MAN_SUBSTS="\
10774	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10775	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10776	-e 's|__xservername__|Xorg|g' \
10777	-e 's|__xconfigfile__|xorg.conf|g' \
10778	-e 's|__projectroot__|\$(prefix)|g' \
10779	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10780	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10781	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10782	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10783	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10784	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10785	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10786
10787
10788
10789# Check whether --enable-silent-rules was given.
10790if test "${enable_silent_rules+set}" = set; then :
10791  enableval=$enable_silent_rules;
10792fi
10793
10794case $enable_silent_rules in # (((
10795  yes) AM_DEFAULT_VERBOSITY=0;;
10796   no) AM_DEFAULT_VERBOSITY=1;;
10797    *) AM_DEFAULT_VERBOSITY=0;;
10798esac
10799am_make=${MAKE-make}
10800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10801$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10802if ${am_cv_make_support_nested_variables+:} false; then :
10803  $as_echo_n "(cached) " >&6
10804else
10805  if $as_echo 'TRUE=$(BAR$(V))
10806BAR0=false
10807BAR1=true
10808V=1
10809am__doit:
10810	@$(TRUE)
10811.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10812  am_cv_make_support_nested_variables=yes
10813else
10814  am_cv_make_support_nested_variables=no
10815fi
10816fi
10817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10818$as_echo "$am_cv_make_support_nested_variables" >&6; }
10819if test $am_cv_make_support_nested_variables = yes; then
10820    AM_V='$(V)'
10821  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10822else
10823  AM_V=$AM_DEFAULT_VERBOSITY
10824  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10825fi
10826AM_BACKSLASH='\'
10827
10828
10829
10830for ac_func in mkstemp asprintf reallocarray
10831do :
10832  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10833ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10834if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10835  cat >>confdefs.h <<_ACEOF
10836#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10837_ACEOF
10838
10839fi
10840done
10841
10842
10843# Find MAXHOSTNAMELEN definition
10844# Common hidey holes:
10845#  BSD & Linux - <sys/param.h>
10846#  Solaris - <netdb.h>
10847
10848ac_fn_c_check_decl "$LINENO" "MAXHOSTNAMELEN" "ac_cv_have_decl_MAXHOSTNAMELEN" "$ac_includes_default"
10849if test "x$ac_cv_have_decl_MAXHOSTNAMELEN" = xyes; then :
10850  FOUND_MAXHOSTNAMELEN=yes
10851fi
10852
10853
10854if test x$FOUND_MAXHOSTNAMELEN != xyes ; then
10855	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for header that defines MAXHOSTNAMELEN" >&5
10856$as_echo_n "checking for header that defines MAXHOSTNAMELEN... " >&6; }
10857
10858	FOUND_MAXHOSTNAMELEN='not found'
10859
10860	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10861/* end confdefs.h.  */
10862#include <sys/param.h>
10863int
10864main ()
10865{
10866int h = MAXHOSTNAMELEN;
10867  ;
10868  return 0;
10869}
10870_ACEOF
10871if ac_fn_c_try_compile "$LINENO"; then :
10872  FOUND_MAXHOSTNAMELEN='sys/param.h'
10873
10874$as_echo "#define NEED_SYS_PARAM_H 1" >>confdefs.h
10875
10876fi
10877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10878
10879	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10880/* end confdefs.h.  */
10881#include <netdb.h>
10882int
10883main ()
10884{
10885int h = MAXHOSTNAMELEN;
10886  ;
10887  return 0;
10888}
10889_ACEOF
10890if ac_fn_c_try_compile "$LINENO"; then :
10891  FOUND_MAXHOSTNAMELEN='netdb.h'
10892
10893$as_echo "#define NEED_NETDB_H 1" >>confdefs.h
10894
10895fi
10896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10897
10898	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOUND_MAXHOSTNAMELEN" >&5
10899$as_echo "$FOUND_MAXHOSTNAMELEN" >&6; }
10900fi
10901
10902# xrdb needs to know where to find cpp at runtime - previously set as CppCmd
10903# in Imake config files for each OS
10904
10905# Check whether --with-cpp was given.
10906if test "${with_cpp+set}" = set; then :
10907  withval=$with_cpp; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpp" >&5
10908$as_echo_n "checking for cpp... " >&6; }
10909	CPP_PATH=$withval
10910	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-cpp specified $CPP_PATH" >&5
10911$as_echo "--with-cpp specified $CPP_PATH" >&6; }
10912else
10913  # Extract the first word of "cpp", so it can be a program name with args.
10914set dummy cpp; ac_word=$2
10915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10916$as_echo_n "checking for $ac_word... " >&6; }
10917if ${ac_cv_path_CPP_PATH+:} false; then :
10918  $as_echo_n "(cached) " >&6
10919else
10920  case $CPP_PATH in
10921  [\\/]* | ?:[\\/]*)
10922  ac_cv_path_CPP_PATH="$CPP_PATH" # Let the user override the test with a path.
10923  ;;
10924  *)
10925  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10926as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
10927for as_dir in $as_dummy
10928do
10929  IFS=$as_save_IFS
10930  test -z "$as_dir" && as_dir=.
10931    for ac_exec_ext in '' $ac_executable_extensions; do
10932  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10933    ac_cv_path_CPP_PATH="$as_dir/$ac_word$ac_exec_ext"
10934    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10935    break 2
10936  fi
10937done
10938  done
10939IFS=$as_save_IFS
10940
10941  test -z "$ac_cv_path_CPP_PATH" && ac_cv_path_CPP_PATH="cpp"
10942  ;;
10943esac
10944fi
10945CPP_PATH=$ac_cv_path_CPP_PATH
10946if test -n "$CPP_PATH"; then
10947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_PATH" >&5
10948$as_echo "$CPP_PATH" >&6; }
10949else
10950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10951$as_echo "no" >&6; }
10952fi
10953
10954
10955fi
10956
10957CPP_PATH=`echo ${CPP_PATH} | sed 's/,/\\",\\"/g'`
10958
10959cat >>confdefs.h <<_ACEOF
10960#define CPP "$CPP_PATH"
10961_ACEOF
10962
10963
10964# Checks for pkg-config packages
10965
10966pkg_failed=no
10967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRDB" >&5
10968$as_echo_n "checking for XRDB... " >&6; }
10969
10970if test -n "$XRDB_CFLAGS"; then
10971    pkg_cv_XRDB_CFLAGS="$XRDB_CFLAGS"
10972 elif test -n "$PKG_CONFIG"; then
10973    if test -n "$PKG_CONFIG" && \
10974    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmuu x11 xproto >= 7.0.25\""; } >&5
10975  ($PKG_CONFIG --exists --print-errors "xmuu x11 xproto >= 7.0.25") 2>&5
10976  ac_status=$?
10977  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10978  test $ac_status = 0; }; then
10979  pkg_cv_XRDB_CFLAGS=`$PKG_CONFIG --cflags "xmuu x11 xproto >= 7.0.25" 2>/dev/null`
10980		      test "x$?" != "x0" && pkg_failed=yes
10981else
10982  pkg_failed=yes
10983fi
10984 else
10985    pkg_failed=untried
10986fi
10987if test -n "$XRDB_LIBS"; then
10988    pkg_cv_XRDB_LIBS="$XRDB_LIBS"
10989 elif test -n "$PKG_CONFIG"; then
10990    if test -n "$PKG_CONFIG" && \
10991    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmuu x11 xproto >= 7.0.25\""; } >&5
10992  ($PKG_CONFIG --exists --print-errors "xmuu x11 xproto >= 7.0.25") 2>&5
10993  ac_status=$?
10994  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10995  test $ac_status = 0; }; then
10996  pkg_cv_XRDB_LIBS=`$PKG_CONFIG --libs "xmuu x11 xproto >= 7.0.25" 2>/dev/null`
10997		      test "x$?" != "x0" && pkg_failed=yes
10998else
10999  pkg_failed=yes
11000fi
11001 else
11002    pkg_failed=untried
11003fi
11004
11005
11006
11007if test $pkg_failed = yes; then
11008   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11009$as_echo "no" >&6; }
11010
11011if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11012        _pkg_short_errors_supported=yes
11013else
11014        _pkg_short_errors_supported=no
11015fi
11016        if test $_pkg_short_errors_supported = yes; then
11017	        XRDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xmuu x11 xproto >= 7.0.25" 2>&1`
11018        else
11019	        XRDB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xmuu x11 xproto >= 7.0.25" 2>&1`
11020        fi
11021	# Put the nasty error message in config.log where it belongs
11022	echo "$XRDB_PKG_ERRORS" >&5
11023
11024	as_fn_error $? "Package requirements (xmuu x11 xproto >= 7.0.25) were not met:
11025
11026$XRDB_PKG_ERRORS
11027
11028Consider adjusting the PKG_CONFIG_PATH environment variable if you
11029installed software in a non-standard prefix.
11030
11031Alternatively, you may set the environment variables XRDB_CFLAGS
11032and XRDB_LIBS to avoid the need to call pkg-config.
11033See the pkg-config man page for more details." "$LINENO" 5
11034elif test $pkg_failed = untried; then
11035     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11036$as_echo "no" >&6; }
11037	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11038$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11039as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11040is in your PATH or set the PKG_CONFIG environment variable to the full
11041path to pkg-config.
11042
11043Alternatively, you may set the environment variables XRDB_CFLAGS
11044and XRDB_LIBS to avoid the need to call pkg-config.
11045See the pkg-config man page for more details.
11046
11047To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11048See \`config.log' for more details" "$LINENO" 5; }
11049else
11050	XRDB_CFLAGS=$pkg_cv_XRDB_CFLAGS
11051	XRDB_LIBS=$pkg_cv_XRDB_LIBS
11052        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11053$as_echo "yes" >&6; }
11054
11055fi
11056
11057ac_config_files="$ac_config_files Makefile man/Makefile"
11058
11059cat >confcache <<\_ACEOF
11060# This file is a shell script that caches the results of configure
11061# tests run on this system so they can be shared between configure
11062# scripts and configure runs, see configure's option --config-cache.
11063# It is not useful on other systems.  If it contains results you don't
11064# want to keep, you may remove or edit it.
11065#
11066# config.status only pays attention to the cache file if you give it
11067# the --recheck option to rerun configure.
11068#
11069# `ac_cv_env_foo' variables (set or unset) will be overridden when
11070# loading this file, other *unset* `ac_cv_foo' will be assigned the
11071# following values.
11072
11073_ACEOF
11074
11075# The following way of writing the cache mishandles newlines in values,
11076# but we know of no workaround that is simple, portable, and efficient.
11077# So, we kill variables containing newlines.
11078# Ultrix sh set writes to stderr and can't be redirected directly,
11079# and sets the high bit in the cache file unless we assign to the vars.
11080(
11081  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11082    eval ac_val=\$$ac_var
11083    case $ac_val in #(
11084    *${as_nl}*)
11085      case $ac_var in #(
11086      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11087$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11088      esac
11089      case $ac_var in #(
11090      _ | IFS | as_nl) ;; #(
11091      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11092      *) { eval $ac_var=; unset $ac_var;} ;;
11093      esac ;;
11094    esac
11095  done
11096
11097  (set) 2>&1 |
11098    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11099    *${as_nl}ac_space=\ *)
11100      # `set' does not quote correctly, so add quotes: double-quote
11101      # substitution turns \\\\ into \\, and sed turns \\ into \.
11102      sed -n \
11103	"s/'/'\\\\''/g;
11104	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11105      ;; #(
11106    *)
11107      # `set' quotes correctly as required by POSIX, so do not add quotes.
11108      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11109      ;;
11110    esac |
11111    sort
11112) |
11113  sed '
11114     /^ac_cv_env_/b end
11115     t clear
11116     :clear
11117     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11118     t end
11119     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11120     :end' >>confcache
11121if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11122  if test -w "$cache_file"; then
11123    if test "x$cache_file" != "x/dev/null"; then
11124      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11125$as_echo "$as_me: updating cache $cache_file" >&6;}
11126      if test ! -f "$cache_file" || test -h "$cache_file"; then
11127	cat confcache >"$cache_file"
11128      else
11129        case $cache_file in #(
11130        */* | ?:*)
11131	  mv -f confcache "$cache_file"$$ &&
11132	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11133        *)
11134	  mv -f confcache "$cache_file" ;;
11135	esac
11136      fi
11137    fi
11138  else
11139    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11140$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11141  fi
11142fi
11143rm -f confcache
11144
11145test "x$prefix" = xNONE && prefix=$ac_default_prefix
11146# Let make expand exec_prefix.
11147test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11148
11149DEFS=-DHAVE_CONFIG_H
11150
11151ac_libobjs=
11152ac_ltlibobjs=
11153U=
11154for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11155  # 1. Remove the extension, and $U if already installed.
11156  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11157  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11158  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11159  #    will be set to the directory where LIBOBJS objects are built.
11160  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11161  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11162done
11163LIBOBJS=$ac_libobjs
11164
11165LTLIBOBJS=$ac_ltlibobjs
11166
11167
11168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11169$as_echo_n "checking that generated files are newer than configure... " >&6; }
11170   if test -n "$am_sleep_pid"; then
11171     # Hide warnings about reused PIDs.
11172     wait $am_sleep_pid 2>/dev/null
11173   fi
11174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11175$as_echo "done" >&6; }
11176if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11177  as_fn_error $? "conditional \"AMDEP\" was never defined.
11178Usually this means the macro was only invoked conditionally." "$LINENO" 5
11179fi
11180if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11181  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11182Usually this means the macro was only invoked conditionally." "$LINENO" 5
11183fi
11184 if test -n "$EXEEXT"; then
11185  am__EXEEXT_TRUE=
11186  am__EXEEXT_FALSE='#'
11187else
11188  am__EXEEXT_TRUE='#'
11189  am__EXEEXT_FALSE=
11190fi
11191
11192
11193: "${CONFIG_STATUS=./config.status}"
11194ac_write_fail=0
11195ac_clean_files_save=$ac_clean_files
11196ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11197{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11198$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11199as_write_fail=0
11200cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11201#! $SHELL
11202# Generated by $as_me.
11203# Run this file to recreate the current configuration.
11204# Compiler output produced by configure, useful for debugging
11205# configure, is in config.log if it exists.
11206
11207debug=false
11208ac_cs_recheck=false
11209ac_cs_silent=false
11210
11211SHELL=\${CONFIG_SHELL-$SHELL}
11212export SHELL
11213_ASEOF
11214cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11215## -------------------- ##
11216## M4sh Initialization. ##
11217## -------------------- ##
11218
11219# Be more Bourne compatible
11220DUALCASE=1; export DUALCASE # for MKS sh
11221if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11222  emulate sh
11223  NULLCMD=:
11224  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11225  # is contrary to our usage.  Disable this feature.
11226  alias -g '${1+"$@"}'='"$@"'
11227  setopt NO_GLOB_SUBST
11228else
11229  case `(set -o) 2>/dev/null` in #(
11230  *posix*) :
11231    set -o posix ;; #(
11232  *) :
11233     ;;
11234esac
11235fi
11236
11237
11238as_nl='
11239'
11240export as_nl
11241# Printing a long string crashes Solaris 7 /usr/bin/printf.
11242as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11243as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11244as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11245# Prefer a ksh shell builtin over an external printf program on Solaris,
11246# but without wasting forks for bash or zsh.
11247if test -z "$BASH_VERSION$ZSH_VERSION" \
11248    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11249  as_echo='print -r --'
11250  as_echo_n='print -rn --'
11251elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11252  as_echo='printf %s\n'
11253  as_echo_n='printf %s'
11254else
11255  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11256    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11257    as_echo_n='/usr/ucb/echo -n'
11258  else
11259    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11260    as_echo_n_body='eval
11261      arg=$1;
11262      case $arg in #(
11263      *"$as_nl"*)
11264	expr "X$arg" : "X\\(.*\\)$as_nl";
11265	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11266      esac;
11267      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11268    '
11269    export as_echo_n_body
11270    as_echo_n='sh -c $as_echo_n_body as_echo'
11271  fi
11272  export as_echo_body
11273  as_echo='sh -c $as_echo_body as_echo'
11274fi
11275
11276# The user is always right.
11277if test "${PATH_SEPARATOR+set}" != set; then
11278  PATH_SEPARATOR=:
11279  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11280    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11281      PATH_SEPARATOR=';'
11282  }
11283fi
11284
11285
11286# IFS
11287# We need space, tab and new line, in precisely that order.  Quoting is
11288# there to prevent editors from complaining about space-tab.
11289# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11290# splitting by setting IFS to empty value.)
11291IFS=" ""	$as_nl"
11292
11293# Find who we are.  Look in the path if we contain no directory separator.
11294as_myself=
11295case $0 in #((
11296  *[\\/]* ) as_myself=$0 ;;
11297  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11298for as_dir in $PATH
11299do
11300  IFS=$as_save_IFS
11301  test -z "$as_dir" && as_dir=.
11302    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11303  done
11304IFS=$as_save_IFS
11305
11306     ;;
11307esac
11308# We did not find ourselves, most probably we were run as `sh COMMAND'
11309# in which case we are not to be found in the path.
11310if test "x$as_myself" = x; then
11311  as_myself=$0
11312fi
11313if test ! -f "$as_myself"; then
11314  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11315  exit 1
11316fi
11317
11318# Unset variables that we do not need and which cause bugs (e.g. in
11319# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11320# suppresses any "Segmentation fault" message there.  '((' could
11321# trigger a bug in pdksh 5.2.14.
11322for as_var in BASH_ENV ENV MAIL MAILPATH
11323do eval test x\${$as_var+set} = xset \
11324  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11325done
11326PS1='$ '
11327PS2='> '
11328PS4='+ '
11329
11330# NLS nuisances.
11331LC_ALL=C
11332export LC_ALL
11333LANGUAGE=C
11334export LANGUAGE
11335
11336# CDPATH.
11337(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11338
11339
11340# as_fn_error STATUS ERROR [LINENO LOG_FD]
11341# ----------------------------------------
11342# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11343# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11344# script with STATUS, using 1 if that was 0.
11345as_fn_error ()
11346{
11347  as_status=$1; test $as_status -eq 0 && as_status=1
11348  if test "$4"; then
11349    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11350    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11351  fi
11352  $as_echo "$as_me: error: $2" >&2
11353  as_fn_exit $as_status
11354} # as_fn_error
11355
11356
11357# as_fn_set_status STATUS
11358# -----------------------
11359# Set $? to STATUS, without forking.
11360as_fn_set_status ()
11361{
11362  return $1
11363} # as_fn_set_status
11364
11365# as_fn_exit STATUS
11366# -----------------
11367# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11368as_fn_exit ()
11369{
11370  set +e
11371  as_fn_set_status $1
11372  exit $1
11373} # as_fn_exit
11374
11375# as_fn_unset VAR
11376# ---------------
11377# Portably unset VAR.
11378as_fn_unset ()
11379{
11380  { eval $1=; unset $1;}
11381}
11382as_unset=as_fn_unset
11383# as_fn_append VAR VALUE
11384# ----------------------
11385# Append the text in VALUE to the end of the definition contained in VAR. Take
11386# advantage of any shell optimizations that allow amortized linear growth over
11387# repeated appends, instead of the typical quadratic growth present in naive
11388# implementations.
11389if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11390  eval 'as_fn_append ()
11391  {
11392    eval $1+=\$2
11393  }'
11394else
11395  as_fn_append ()
11396  {
11397    eval $1=\$$1\$2
11398  }
11399fi # as_fn_append
11400
11401# as_fn_arith ARG...
11402# ------------------
11403# Perform arithmetic evaluation on the ARGs, and store the result in the
11404# global $as_val. Take advantage of shells that can avoid forks. The arguments
11405# must be portable across $(()) and expr.
11406if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11407  eval 'as_fn_arith ()
11408  {
11409    as_val=$(( $* ))
11410  }'
11411else
11412  as_fn_arith ()
11413  {
11414    as_val=`expr "$@" || test $? -eq 1`
11415  }
11416fi # as_fn_arith
11417
11418
11419if expr a : '\(a\)' >/dev/null 2>&1 &&
11420   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11421  as_expr=expr
11422else
11423  as_expr=false
11424fi
11425
11426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11427  as_basename=basename
11428else
11429  as_basename=false
11430fi
11431
11432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11433  as_dirname=dirname
11434else
11435  as_dirname=false
11436fi
11437
11438as_me=`$as_basename -- "$0" ||
11439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11440	 X"$0" : 'X\(//\)$' \| \
11441	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11442$as_echo X/"$0" |
11443    sed '/^.*\/\([^/][^/]*\)\/*$/{
11444	    s//\1/
11445	    q
11446	  }
11447	  /^X\/\(\/\/\)$/{
11448	    s//\1/
11449	    q
11450	  }
11451	  /^X\/\(\/\).*/{
11452	    s//\1/
11453	    q
11454	  }
11455	  s/.*/./; q'`
11456
11457# Avoid depending upon Character Ranges.
11458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11461as_cr_digits='0123456789'
11462as_cr_alnum=$as_cr_Letters$as_cr_digits
11463
11464ECHO_C= ECHO_N= ECHO_T=
11465case `echo -n x` in #(((((
11466-n*)
11467  case `echo 'xy\c'` in
11468  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11469  xy)  ECHO_C='\c';;
11470  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11471       ECHO_T='	';;
11472  esac;;
11473*)
11474  ECHO_N='-n';;
11475esac
11476
11477rm -f conf$$ conf$$.exe conf$$.file
11478if test -d conf$$.dir; then
11479  rm -f conf$$.dir/conf$$.file
11480else
11481  rm -f conf$$.dir
11482  mkdir conf$$.dir 2>/dev/null
11483fi
11484if (echo >conf$$.file) 2>/dev/null; then
11485  if ln -s conf$$.file conf$$ 2>/dev/null; then
11486    as_ln_s='ln -s'
11487    # ... but there are two gotchas:
11488    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11489    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11490    # In both cases, we have to default to `cp -pR'.
11491    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11492      as_ln_s='cp -pR'
11493  elif ln conf$$.file conf$$ 2>/dev/null; then
11494    as_ln_s=ln
11495  else
11496    as_ln_s='cp -pR'
11497  fi
11498else
11499  as_ln_s='cp -pR'
11500fi
11501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11502rmdir conf$$.dir 2>/dev/null
11503
11504
11505# as_fn_mkdir_p
11506# -------------
11507# Create "$as_dir" as a directory, including parents if necessary.
11508as_fn_mkdir_p ()
11509{
11510
11511  case $as_dir in #(
11512  -*) as_dir=./$as_dir;;
11513  esac
11514  test -d "$as_dir" || eval $as_mkdir_p || {
11515    as_dirs=
11516    while :; do
11517      case $as_dir in #(
11518      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11519      *) as_qdir=$as_dir;;
11520      esac
11521      as_dirs="'$as_qdir' $as_dirs"
11522      as_dir=`$as_dirname -- "$as_dir" ||
11523$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11524	 X"$as_dir" : 'X\(//\)[^/]' \| \
11525	 X"$as_dir" : 'X\(//\)$' \| \
11526	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11527$as_echo X"$as_dir" |
11528    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11529	    s//\1/
11530	    q
11531	  }
11532	  /^X\(\/\/\)[^/].*/{
11533	    s//\1/
11534	    q
11535	  }
11536	  /^X\(\/\/\)$/{
11537	    s//\1/
11538	    q
11539	  }
11540	  /^X\(\/\).*/{
11541	    s//\1/
11542	    q
11543	  }
11544	  s/.*/./; q'`
11545      test -d "$as_dir" && break
11546    done
11547    test -z "$as_dirs" || eval "mkdir $as_dirs"
11548  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11549
11550
11551} # as_fn_mkdir_p
11552if mkdir -p . 2>/dev/null; then
11553  as_mkdir_p='mkdir -p "$as_dir"'
11554else
11555  test -d ./-p && rmdir ./-p
11556  as_mkdir_p=false
11557fi
11558
11559
11560# as_fn_executable_p FILE
11561# -----------------------
11562# Test if FILE is an executable regular file.
11563as_fn_executable_p ()
11564{
11565  test -f "$1" && test -x "$1"
11566} # as_fn_executable_p
11567as_test_x='test -x'
11568as_executable_p=as_fn_executable_p
11569
11570# Sed expression to map a string onto a valid CPP name.
11571as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11572
11573# Sed expression to map a string onto a valid variable name.
11574as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11575
11576
11577exec 6>&1
11578## ----------------------------------- ##
11579## Main body of $CONFIG_STATUS script. ##
11580## ----------------------------------- ##
11581_ASEOF
11582test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11583
11584cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11585# Save the log message, to keep $0 and so on meaningful, and to
11586# report actual input values of CONFIG_FILES etc. instead of their
11587# values after options handling.
11588ac_log="
11589This file was extended by xrdb $as_me 1.1.1, which was
11590generated by GNU Autoconf 2.69.  Invocation command line was
11591
11592  CONFIG_FILES    = $CONFIG_FILES
11593  CONFIG_HEADERS  = $CONFIG_HEADERS
11594  CONFIG_LINKS    = $CONFIG_LINKS
11595  CONFIG_COMMANDS = $CONFIG_COMMANDS
11596  $ $0 $@
11597
11598on `(hostname || uname -n) 2>/dev/null | sed 1q`
11599"
11600
11601_ACEOF
11602
11603case $ac_config_files in *"
11604"*) set x $ac_config_files; shift; ac_config_files=$*;;
11605esac
11606
11607case $ac_config_headers in *"
11608"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11609esac
11610
11611
11612cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11613# Files that config.status was made for.
11614config_files="$ac_config_files"
11615config_headers="$ac_config_headers"
11616config_commands="$ac_config_commands"
11617
11618_ACEOF
11619
11620cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11621ac_cs_usage="\
11622\`$as_me' instantiates files and other configuration actions
11623from templates according to the current configuration.  Unless the files
11624and actions are specified as TAGs, all are instantiated by default.
11625
11626Usage: $0 [OPTION]... [TAG]...
11627
11628  -h, --help       print this help, then exit
11629  -V, --version    print version number and configuration settings, then exit
11630      --config     print configuration, then exit
11631  -q, --quiet, --silent
11632                   do not print progress messages
11633  -d, --debug      don't remove temporary files
11634      --recheck    update $as_me by reconfiguring in the same conditions
11635      --file=FILE[:TEMPLATE]
11636                   instantiate the configuration file FILE
11637      --header=FILE[:TEMPLATE]
11638                   instantiate the configuration header FILE
11639
11640Configuration files:
11641$config_files
11642
11643Configuration headers:
11644$config_headers
11645
11646Configuration commands:
11647$config_commands
11648
11649Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11650
11651_ACEOF
11652cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11653ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11654ac_cs_version="\\
11655xrdb config.status 1.1.1
11656configured by $0, generated by GNU Autoconf 2.69,
11657  with options \\"\$ac_cs_config\\"
11658
11659Copyright (C) 2012 Free Software Foundation, Inc.
11660This config.status script is free software; the Free Software Foundation
11661gives unlimited permission to copy, distribute and modify it."
11662
11663ac_pwd='$ac_pwd'
11664srcdir='$srcdir'
11665INSTALL='$INSTALL'
11666MKDIR_P='$MKDIR_P'
11667AWK='$AWK'
11668test -n "\$AWK" || AWK=awk
11669_ACEOF
11670
11671cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11672# The default lists apply if the user does not specify any file.
11673ac_need_defaults=:
11674while test $# != 0
11675do
11676  case $1 in
11677  --*=?*)
11678    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11679    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11680    ac_shift=:
11681    ;;
11682  --*=)
11683    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11684    ac_optarg=
11685    ac_shift=:
11686    ;;
11687  *)
11688    ac_option=$1
11689    ac_optarg=$2
11690    ac_shift=shift
11691    ;;
11692  esac
11693
11694  case $ac_option in
11695  # Handling of the options.
11696  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11697    ac_cs_recheck=: ;;
11698  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11699    $as_echo "$ac_cs_version"; exit ;;
11700  --config | --confi | --conf | --con | --co | --c )
11701    $as_echo "$ac_cs_config"; exit ;;
11702  --debug | --debu | --deb | --de | --d | -d )
11703    debug=: ;;
11704  --file | --fil | --fi | --f )
11705    $ac_shift
11706    case $ac_optarg in
11707    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11708    '') as_fn_error $? "missing file argument" ;;
11709    esac
11710    as_fn_append CONFIG_FILES " '$ac_optarg'"
11711    ac_need_defaults=false;;
11712  --header | --heade | --head | --hea )
11713    $ac_shift
11714    case $ac_optarg in
11715    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11716    esac
11717    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11718    ac_need_defaults=false;;
11719  --he | --h)
11720    # Conflict between --help and --header
11721    as_fn_error $? "ambiguous option: \`$1'
11722Try \`$0 --help' for more information.";;
11723  --help | --hel | -h )
11724    $as_echo "$ac_cs_usage"; exit ;;
11725  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11726  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11727    ac_cs_silent=: ;;
11728
11729  # This is an error.
11730  -*) as_fn_error $? "unrecognized option: \`$1'
11731Try \`$0 --help' for more information." ;;
11732
11733  *) as_fn_append ac_config_targets " $1"
11734     ac_need_defaults=false ;;
11735
11736  esac
11737  shift
11738done
11739
11740ac_configure_extra_args=
11741
11742if $ac_cs_silent; then
11743  exec 6>/dev/null
11744  ac_configure_extra_args="$ac_configure_extra_args --silent"
11745fi
11746
11747_ACEOF
11748cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11749if \$ac_cs_recheck; then
11750  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11751  shift
11752  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11753  CONFIG_SHELL='$SHELL'
11754  export CONFIG_SHELL
11755  exec "\$@"
11756fi
11757
11758_ACEOF
11759cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11760exec 5>>config.log
11761{
11762  echo
11763  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11764## Running $as_me. ##
11765_ASBOX
11766  $as_echo "$ac_log"
11767} >&5
11768
11769_ACEOF
11770cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11771#
11772# INIT-COMMANDS
11773#
11774AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11775
11776_ACEOF
11777
11778cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11779
11780# Handling of arguments.
11781for ac_config_target in $ac_config_targets
11782do
11783  case $ac_config_target in
11784    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11785    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11786    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11787    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11788
11789  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11790  esac
11791done
11792
11793
11794# If the user did not use the arguments to specify the items to instantiate,
11795# then the envvar interface is used.  Set only those that are not.
11796# We use the long form for the default assignment because of an extremely
11797# bizarre bug on SunOS 4.1.3.
11798if $ac_need_defaults; then
11799  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11800  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11801  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11802fi
11803
11804# Have a temporary directory for convenience.  Make it in the build tree
11805# simply because there is no reason against having it here, and in addition,
11806# creating and moving files from /tmp can sometimes cause problems.
11807# Hook for its removal unless debugging.
11808# Note that there is a small window in which the directory will not be cleaned:
11809# after its creation but before its name has been assigned to `$tmp'.
11810$debug ||
11811{
11812  tmp= ac_tmp=
11813  trap 'exit_status=$?
11814  : "${ac_tmp:=$tmp}"
11815  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11816' 0
11817  trap 'as_fn_exit 1' 1 2 13 15
11818}
11819# Create a (secure) tmp directory for tmp files.
11820
11821{
11822  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11823  test -d "$tmp"
11824}  ||
11825{
11826  tmp=./conf$$-$RANDOM
11827  (umask 077 && mkdir "$tmp")
11828} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11829ac_tmp=$tmp
11830
11831# Set up the scripts for CONFIG_FILES section.
11832# No need to generate them if there are no CONFIG_FILES.
11833# This happens for instance with `./config.status config.h'.
11834if test -n "$CONFIG_FILES"; then
11835
11836
11837ac_cr=`echo X | tr X '\015'`
11838# On cygwin, bash can eat \r inside `` if the user requested igncr.
11839# But we know of no other shell where ac_cr would be empty at this
11840# point, so we can use a bashism as a fallback.
11841if test "x$ac_cr" = x; then
11842  eval ac_cr=\$\'\\r\'
11843fi
11844ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11845if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11846  ac_cs_awk_cr='\\r'
11847else
11848  ac_cs_awk_cr=$ac_cr
11849fi
11850
11851echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11852_ACEOF
11853
11854
11855{
11856  echo "cat >conf$$subs.awk <<_ACEOF" &&
11857  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11858  echo "_ACEOF"
11859} >conf$$subs.sh ||
11860  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11861ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11862ac_delim='%!_!# '
11863for ac_last_try in false false false false false :; do
11864  . ./conf$$subs.sh ||
11865    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11866
11867  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11868  if test $ac_delim_n = $ac_delim_num; then
11869    break
11870  elif $ac_last_try; then
11871    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11872  else
11873    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11874  fi
11875done
11876rm -f conf$$subs.sh
11877
11878cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11879cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11880_ACEOF
11881sed -n '
11882h
11883s/^/S["/; s/!.*/"]=/
11884p
11885g
11886s/^[^!]*!//
11887:repl
11888t repl
11889s/'"$ac_delim"'$//
11890t delim
11891:nl
11892h
11893s/\(.\{148\}\)..*/\1/
11894t more1
11895s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11896p
11897n
11898b repl
11899:more1
11900s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11901p
11902g
11903s/.\{148\}//
11904t nl
11905:delim
11906h
11907s/\(.\{148\}\)..*/\1/
11908t more2
11909s/["\\]/\\&/g; s/^/"/; s/$/"/
11910p
11911b
11912:more2
11913s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11914p
11915g
11916s/.\{148\}//
11917t delim
11918' <conf$$subs.awk | sed '
11919/^[^""]/{
11920  N
11921  s/\n//
11922}
11923' >>$CONFIG_STATUS || ac_write_fail=1
11924rm -f conf$$subs.awk
11925cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11926_ACAWK
11927cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11928  for (key in S) S_is_set[key] = 1
11929  FS = ""
11930
11931}
11932{
11933  line = $ 0
11934  nfields = split(line, field, "@")
11935  substed = 0
11936  len = length(field[1])
11937  for (i = 2; i < nfields; i++) {
11938    key = field[i]
11939    keylen = length(key)
11940    if (S_is_set[key]) {
11941      value = S[key]
11942      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11943      len += length(value) + length(field[++i])
11944      substed = 1
11945    } else
11946      len += 1 + keylen
11947  }
11948
11949  print line
11950}
11951
11952_ACAWK
11953_ACEOF
11954cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11955if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11956  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11957else
11958  cat
11959fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11960  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11961_ACEOF
11962
11963# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11964# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11965# trailing colons and then remove the whole line if VPATH becomes empty
11966# (actually we leave an empty line to preserve line numbers).
11967if test "x$srcdir" = x.; then
11968  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
11969h
11970s///
11971s/^/:/
11972s/[	 ]*$/:/
11973s/:\$(srcdir):/:/g
11974s/:\${srcdir}:/:/g
11975s/:@srcdir@:/:/g
11976s/^:*//
11977s/:*$//
11978x
11979s/\(=[	 ]*\).*/\1/
11980G
11981s/\n//
11982s/^[^=]*=[	 ]*$//
11983}'
11984fi
11985
11986cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11987fi # test -n "$CONFIG_FILES"
11988
11989# Set up the scripts for CONFIG_HEADERS section.
11990# No need to generate them if there are no CONFIG_HEADERS.
11991# This happens for instance with `./config.status Makefile'.
11992if test -n "$CONFIG_HEADERS"; then
11993cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11994BEGIN {
11995_ACEOF
11996
11997# Transform confdefs.h into an awk script `defines.awk', embedded as
11998# here-document in config.status, that substitutes the proper values into
11999# config.h.in to produce config.h.
12000
12001# Create a delimiter string that does not exist in confdefs.h, to ease
12002# handling of long lines.
12003ac_delim='%!_!# '
12004for ac_last_try in false false :; do
12005  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12006  if test -z "$ac_tt"; then
12007    break
12008  elif $ac_last_try; then
12009    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12010  else
12011    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12012  fi
12013done
12014
12015# For the awk script, D is an array of macro values keyed by name,
12016# likewise P contains macro parameters if any.  Preserve backslash
12017# newline sequences.
12018
12019ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12020sed -n '
12021s/.\{148\}/&'"$ac_delim"'/g
12022t rset
12023:rset
12024s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12025t def
12026d
12027:def
12028s/\\$//
12029t bsnl
12030s/["\\]/\\&/g
12031s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12032D["\1"]=" \3"/p
12033s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12034d
12035:bsnl
12036s/["\\]/\\&/g
12037s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12038D["\1"]=" \3\\\\\\n"\\/p
12039t cont
12040s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12041t cont
12042d
12043:cont
12044n
12045s/.\{148\}/&'"$ac_delim"'/g
12046t clear
12047:clear
12048s/\\$//
12049t bsnlc
12050s/["\\]/\\&/g; s/^/"/; s/$/"/p
12051d
12052:bsnlc
12053s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12054b cont
12055' <confdefs.h | sed '
12056s/'"$ac_delim"'/"\\\
12057"/g' >>$CONFIG_STATUS || ac_write_fail=1
12058
12059cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12060  for (key in D) D_is_set[key] = 1
12061  FS = ""
12062}
12063/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12064  line = \$ 0
12065  split(line, arg, " ")
12066  if (arg[1] == "#") {
12067    defundef = arg[2]
12068    mac1 = arg[3]
12069  } else {
12070    defundef = substr(arg[1], 2)
12071    mac1 = arg[2]
12072  }
12073  split(mac1, mac2, "(") #)
12074  macro = mac2[1]
12075  prefix = substr(line, 1, index(line, defundef) - 1)
12076  if (D_is_set[macro]) {
12077    # Preserve the white space surrounding the "#".
12078    print prefix "define", macro P[macro] D[macro]
12079    next
12080  } else {
12081    # Replace #undef with comments.  This is necessary, for example,
12082    # in the case of _POSIX_SOURCE, which is predefined and required
12083    # on some systems where configure will not decide to define it.
12084    if (defundef == "undef") {
12085      print "/*", prefix defundef, macro, "*/"
12086      next
12087    }
12088  }
12089}
12090{ print }
12091_ACAWK
12092_ACEOF
12093cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12094  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12095fi # test -n "$CONFIG_HEADERS"
12096
12097
12098eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12099shift
12100for ac_tag
12101do
12102  case $ac_tag in
12103  :[FHLC]) ac_mode=$ac_tag; continue;;
12104  esac
12105  case $ac_mode$ac_tag in
12106  :[FHL]*:*);;
12107  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12108  :[FH]-) ac_tag=-:-;;
12109  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12110  esac
12111  ac_save_IFS=$IFS
12112  IFS=:
12113  set x $ac_tag
12114  IFS=$ac_save_IFS
12115  shift
12116  ac_file=$1
12117  shift
12118
12119  case $ac_mode in
12120  :L) ac_source=$1;;
12121  :[FH])
12122    ac_file_inputs=
12123    for ac_f
12124    do
12125      case $ac_f in
12126      -) ac_f="$ac_tmp/stdin";;
12127      *) # Look for the file first in the build tree, then in the source tree
12128	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12129	 # because $ac_f cannot contain `:'.
12130	 test -f "$ac_f" ||
12131	   case $ac_f in
12132	   [\\/$]*) false;;
12133	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12134	   esac ||
12135	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12136      esac
12137      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12138      as_fn_append ac_file_inputs " '$ac_f'"
12139    done
12140
12141    # Let's still pretend it is `configure' which instantiates (i.e., don't
12142    # use $as_me), people would be surprised to read:
12143    #    /* config.h.  Generated by config.status.  */
12144    configure_input='Generated from '`
12145	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12146	`' by configure.'
12147    if test x"$ac_file" != x-; then
12148      configure_input="$ac_file.  $configure_input"
12149      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12150$as_echo "$as_me: creating $ac_file" >&6;}
12151    fi
12152    # Neutralize special characters interpreted by sed in replacement strings.
12153    case $configure_input in #(
12154    *\&* | *\|* | *\\* )
12155       ac_sed_conf_input=`$as_echo "$configure_input" |
12156       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12157    *) ac_sed_conf_input=$configure_input;;
12158    esac
12159
12160    case $ac_tag in
12161    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12162      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12163    esac
12164    ;;
12165  esac
12166
12167  ac_dir=`$as_dirname -- "$ac_file" ||
12168$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12169	 X"$ac_file" : 'X\(//\)[^/]' \| \
12170	 X"$ac_file" : 'X\(//\)$' \| \
12171	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12172$as_echo X"$ac_file" |
12173    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12174	    s//\1/
12175	    q
12176	  }
12177	  /^X\(\/\/\)[^/].*/{
12178	    s//\1/
12179	    q
12180	  }
12181	  /^X\(\/\/\)$/{
12182	    s//\1/
12183	    q
12184	  }
12185	  /^X\(\/\).*/{
12186	    s//\1/
12187	    q
12188	  }
12189	  s/.*/./; q'`
12190  as_dir="$ac_dir"; as_fn_mkdir_p
12191  ac_builddir=.
12192
12193case "$ac_dir" in
12194.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12195*)
12196  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12197  # A ".." for each directory in $ac_dir_suffix.
12198  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12199  case $ac_top_builddir_sub in
12200  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12201  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12202  esac ;;
12203esac
12204ac_abs_top_builddir=$ac_pwd
12205ac_abs_builddir=$ac_pwd$ac_dir_suffix
12206# for backward compatibility:
12207ac_top_builddir=$ac_top_build_prefix
12208
12209case $srcdir in
12210  .)  # We are building in place.
12211    ac_srcdir=.
12212    ac_top_srcdir=$ac_top_builddir_sub
12213    ac_abs_top_srcdir=$ac_pwd ;;
12214  [\\/]* | ?:[\\/]* )  # Absolute name.
12215    ac_srcdir=$srcdir$ac_dir_suffix;
12216    ac_top_srcdir=$srcdir
12217    ac_abs_top_srcdir=$srcdir ;;
12218  *) # Relative name.
12219    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12220    ac_top_srcdir=$ac_top_build_prefix$srcdir
12221    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12222esac
12223ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12224
12225
12226  case $ac_mode in
12227  :F)
12228  #
12229  # CONFIG_FILE
12230  #
12231
12232  case $INSTALL in
12233  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12234  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12235  esac
12236  ac_MKDIR_P=$MKDIR_P
12237  case $MKDIR_P in
12238  [\\/$]* | ?:[\\/]* ) ;;
12239  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12240  esac
12241_ACEOF
12242
12243cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12244# If the template does not know about datarootdir, expand it.
12245# FIXME: This hack should be removed a few years after 2.60.
12246ac_datarootdir_hack=; ac_datarootdir_seen=
12247ac_sed_dataroot='
12248/datarootdir/ {
12249  p
12250  q
12251}
12252/@datadir@/p
12253/@docdir@/p
12254/@infodir@/p
12255/@localedir@/p
12256/@mandir@/p'
12257case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12258*datarootdir*) ac_datarootdir_seen=yes;;
12259*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12260  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12261$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12262_ACEOF
12263cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12264  ac_datarootdir_hack='
12265  s&@datadir@&$datadir&g
12266  s&@docdir@&$docdir&g
12267  s&@infodir@&$infodir&g
12268  s&@localedir@&$localedir&g
12269  s&@mandir@&$mandir&g
12270  s&\\\${datarootdir}&$datarootdir&g' ;;
12271esac
12272_ACEOF
12273
12274# Neutralize VPATH when `$srcdir' = `.'.
12275# Shell code in configure.ac might set extrasub.
12276# FIXME: do we really want to maintain this feature?
12277cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12278ac_sed_extra="$ac_vpsub
12279$extrasub
12280_ACEOF
12281cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12282:t
12283/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12284s|@configure_input@|$ac_sed_conf_input|;t t
12285s&@top_builddir@&$ac_top_builddir_sub&;t t
12286s&@top_build_prefix@&$ac_top_build_prefix&;t t
12287s&@srcdir@&$ac_srcdir&;t t
12288s&@abs_srcdir@&$ac_abs_srcdir&;t t
12289s&@top_srcdir@&$ac_top_srcdir&;t t
12290s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12291s&@builddir@&$ac_builddir&;t t
12292s&@abs_builddir@&$ac_abs_builddir&;t t
12293s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12294s&@INSTALL@&$ac_INSTALL&;t t
12295s&@MKDIR_P@&$ac_MKDIR_P&;t t
12296$ac_datarootdir_hack
12297"
12298eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12299  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12300
12301test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12302  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12303  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12304      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12305  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12306which seems to be undefined.  Please make sure it is defined" >&5
12307$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12308which seems to be undefined.  Please make sure it is defined" >&2;}
12309
12310  rm -f "$ac_tmp/stdin"
12311  case $ac_file in
12312  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12313  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12314  esac \
12315  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12316 ;;
12317  :H)
12318  #
12319  # CONFIG_HEADER
12320  #
12321  if test x"$ac_file" != x-; then
12322    {
12323      $as_echo "/* $configure_input  */" \
12324      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12325    } >"$ac_tmp/config.h" \
12326      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12327    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12328      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12329$as_echo "$as_me: $ac_file is unchanged" >&6;}
12330    else
12331      rm -f "$ac_file"
12332      mv "$ac_tmp/config.h" "$ac_file" \
12333	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12334    fi
12335  else
12336    $as_echo "/* $configure_input  */" \
12337      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12338      || as_fn_error $? "could not create -" "$LINENO" 5
12339  fi
12340# Compute "$ac_file"'s index in $config_headers.
12341_am_arg="$ac_file"
12342_am_stamp_count=1
12343for _am_header in $config_headers :; do
12344  case $_am_header in
12345    $_am_arg | $_am_arg:* )
12346      break ;;
12347    * )
12348      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12349  esac
12350done
12351echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12352$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12353	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12354	 X"$_am_arg" : 'X\(//\)$' \| \
12355	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12356$as_echo X"$_am_arg" |
12357    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12358	    s//\1/
12359	    q
12360	  }
12361	  /^X\(\/\/\)[^/].*/{
12362	    s//\1/
12363	    q
12364	  }
12365	  /^X\(\/\/\)$/{
12366	    s//\1/
12367	    q
12368	  }
12369	  /^X\(\/\).*/{
12370	    s//\1/
12371	    q
12372	  }
12373	  s/.*/./; q'`/stamp-h$_am_stamp_count
12374 ;;
12375
12376  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12377$as_echo "$as_me: executing $ac_file commands" >&6;}
12378 ;;
12379  esac
12380
12381
12382  case $ac_file$ac_mode in
12383    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12384  # Older Autoconf quotes --file arguments for eval, but not when files
12385  # are listed without --file.  Let's play safe and only enable the eval
12386  # if we detect the quoting.
12387  case $CONFIG_FILES in
12388  *\'*) eval set x "$CONFIG_FILES" ;;
12389  *)   set x $CONFIG_FILES ;;
12390  esac
12391  shift
12392  for mf
12393  do
12394    # Strip MF so we end up with the name of the file.
12395    mf=`echo "$mf" | sed -e 's/:.*$//'`
12396    # Check whether this is an Automake generated Makefile or not.
12397    # We used to match only the files named 'Makefile.in', but
12398    # some people rename them; so instead we look at the file content.
12399    # Grep'ing the first line is not enough: some people post-process
12400    # each Makefile.in and add a new line on top of each file to say so.
12401    # Grep'ing the whole file is not good either: AIX grep has a line
12402    # limit of 2048, but all sed's we know have understand at least 4000.
12403    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12404      dirpart=`$as_dirname -- "$mf" ||
12405$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12406	 X"$mf" : 'X\(//\)[^/]' \| \
12407	 X"$mf" : 'X\(//\)$' \| \
12408	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12409$as_echo X"$mf" |
12410    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12411	    s//\1/
12412	    q
12413	  }
12414	  /^X\(\/\/\)[^/].*/{
12415	    s//\1/
12416	    q
12417	  }
12418	  /^X\(\/\/\)$/{
12419	    s//\1/
12420	    q
12421	  }
12422	  /^X\(\/\).*/{
12423	    s//\1/
12424	    q
12425	  }
12426	  s/.*/./; q'`
12427    else
12428      continue
12429    fi
12430    # Extract the definition of DEPDIR, am__include, and am__quote
12431    # from the Makefile without running 'make'.
12432    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12433    test -z "$DEPDIR" && continue
12434    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12435    test -z "$am__include" && continue
12436    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12437    # Find all dependency output files, they are included files with
12438    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12439    # simplest approach to changing $(DEPDIR) to its actual value in the
12440    # expansion.
12441    for file in `sed -n "
12442      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12443	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12444      # Make sure the directory exists.
12445      test -f "$dirpart/$file" && continue
12446      fdir=`$as_dirname -- "$file" ||
12447$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12448	 X"$file" : 'X\(//\)[^/]' \| \
12449	 X"$file" : 'X\(//\)$' \| \
12450	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12451$as_echo X"$file" |
12452    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12453	    s//\1/
12454	    q
12455	  }
12456	  /^X\(\/\/\)[^/].*/{
12457	    s//\1/
12458	    q
12459	  }
12460	  /^X\(\/\/\)$/{
12461	    s//\1/
12462	    q
12463	  }
12464	  /^X\(\/\).*/{
12465	    s//\1/
12466	    q
12467	  }
12468	  s/.*/./; q'`
12469      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12470      # echo "creating $dirpart/$file"
12471      echo '# dummy' > "$dirpart/$file"
12472    done
12473  done
12474}
12475 ;;
12476
12477  esac
12478done # for ac_tag
12479
12480
12481as_fn_exit 0
12482_ACEOF
12483ac_clean_files=$ac_clean_files_save
12484
12485test $ac_write_fail = 0 ||
12486  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12487
12488
12489# configure is writing to config.log, and then calls config.status.
12490# config.status does its own redirection, appending to config.log.
12491# Unfortunately, on DOS this fails, as config.log is still kept open
12492# by configure, so config.status won't be able to write to it; its
12493# output is simply discarded.  So we exec the FD to /dev/null,
12494# effectively closing config.log, so it can be properly (re)opened and
12495# appended to by config.status.  When coming back to configure, we
12496# need to make the FD available again.
12497if test "$no_create" != yes; then
12498  ac_cs_success=:
12499  ac_config_status_args=
12500  test "$silent" = yes &&
12501    ac_config_status_args="$ac_config_status_args --quiet"
12502  exec 5>/dev/null
12503  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12504  exec 5>>config.log
12505  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12506  # would make configure fail if this is the last instruction.
12507  $ac_cs_success || as_fn_exit 1
12508fi
12509if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12510  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12511$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12512fi
12513
12514