configure revision 0d22642b
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xauth 1.1.1.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xauth/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202  if (eval "$as_required") 2>/dev/null; then :
203  as_have_required=yes
204else
205  as_have_required=no
206fi
207  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214  IFS=$as_save_IFS
215  test -z "$as_dir" && as_dir=.
216  as_found=:
217  case $as_dir in #(
218	 /*)
219	   for as_base in sh bash ksh sh5; do
220	     # Try only shells that exist, to save several forks.
221	     as_shell=$as_dir/$as_base
222	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226  break 2
227fi
228fi
229	   done;;
230       esac
231  as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235  CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240      if test "x$CONFIG_SHELL" != x; then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno; then :
263  $as_echo "$0: This script requires a shell more modern than all"
264  $as_echo "$0: the shells that I found on your system."
265  if test x${ZSH_VERSION+set} = xset ; then
266    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268  else
269    $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: https://gitlab.freedesktop.org/xorg/app/xauth/issues
271$0: about your system, including any error possibly output
272$0: before this message. Then install a modern shell, or
273$0: manually run the script under such a shell if you do
274$0: have one."
275  fi
276  exit 1
277fi
278fi
279fi
280SHELL=${CONFIG_SHELL-/bin/sh}
281export SHELL
282# Unset more variables known to interfere with behavior of common tools.
283CLICOLOR_FORCE= GREP_OPTIONS=
284unset CLICOLOR_FORCE GREP_OPTIONS
285
286## --------------------- ##
287## M4sh Shell Functions. ##
288## --------------------- ##
289# as_fn_unset VAR
290# ---------------
291# Portably unset VAR.
292as_fn_unset ()
293{
294  { eval $1=; unset $1;}
295}
296as_unset=as_fn_unset
297
298# as_fn_set_status STATUS
299# -----------------------
300# Set $? to STATUS, without forking.
301as_fn_set_status ()
302{
303  return $1
304} # as_fn_set_status
305
306# as_fn_exit STATUS
307# -----------------
308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309as_fn_exit ()
310{
311  set +e
312  as_fn_set_status $1
313  exit $1
314} # as_fn_exit
315
316# as_fn_mkdir_p
317# -------------
318# Create "$as_dir" as a directory, including parents if necessary.
319as_fn_mkdir_p ()
320{
321
322  case $as_dir in #(
323  -*) as_dir=./$as_dir;;
324  esac
325  test -d "$as_dir" || eval $as_mkdir_p || {
326    as_dirs=
327    while :; do
328      case $as_dir in #(
329      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330      *) as_qdir=$as_dir;;
331      esac
332      as_dirs="'$as_qdir' $as_dirs"
333      as_dir=`$as_dirname -- "$as_dir" ||
334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335	 X"$as_dir" : 'X\(//\)[^/]' \| \
336	 X"$as_dir" : 'X\(//\)$' \| \
337	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338$as_echo X"$as_dir" |
339    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)[^/].*/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\).*/{
352	    s//\1/
353	    q
354	  }
355	  s/.*/./; q'`
356      test -d "$as_dir" && break
357    done
358    test -z "$as_dirs" || eval "mkdir $as_dirs"
359  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362} # as_fn_mkdir_p
363
364# as_fn_executable_p FILE
365# -----------------------
366# Test if FILE is an executable regular file.
367as_fn_executable_p ()
368{
369  test -f "$1" && test -x "$1"
370} # as_fn_executable_p
371# as_fn_append VAR VALUE
372# ----------------------
373# Append the text in VALUE to the end of the definition contained in VAR. Take
374# advantage of any shell optimizations that allow amortized linear growth over
375# repeated appends, instead of the typical quadratic growth present in naive
376# implementations.
377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378  eval 'as_fn_append ()
379  {
380    eval $1+=\$2
381  }'
382else
383  as_fn_append ()
384  {
385    eval $1=\$$1\$2
386  }
387fi # as_fn_append
388
389# as_fn_arith ARG...
390# ------------------
391# Perform arithmetic evaluation on the ARGs, and store the result in the
392# global $as_val. Take advantage of shells that can avoid forks. The arguments
393# must be portable across $(()) and expr.
394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395  eval 'as_fn_arith ()
396  {
397    as_val=$(( $* ))
398  }'
399else
400  as_fn_arith ()
401  {
402    as_val=`expr "$@" || test $? -eq 1`
403  }
404fi # as_fn_arith
405
406
407# as_fn_error STATUS ERROR [LINENO LOG_FD]
408# ----------------------------------------
409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411# script with STATUS, using 1 if that was 0.
412as_fn_error ()
413{
414  as_status=$1; test $as_status -eq 0 && as_status=1
415  if test "$4"; then
416    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418  fi
419  $as_echo "$as_me: error: $2" >&2
420  as_fn_exit $as_status
421} # as_fn_error
422
423if expr a : '\(a\)' >/dev/null 2>&1 &&
424   test "X`expr 00001 : '.*\(...\)'`" = X001; then
425  as_expr=expr
426else
427  as_expr=false
428fi
429
430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431  as_basename=basename
432else
433  as_basename=false
434fi
435
436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437  as_dirname=dirname
438else
439  as_dirname=false
440fi
441
442as_me=`$as_basename -- "$0" ||
443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444	 X"$0" : 'X\(//\)$' \| \
445	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446$as_echo X/"$0" |
447    sed '/^.*\/\([^/][^/]*\)\/*$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\/\)$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\).*/{
456	    s//\1/
457	    q
458	  }
459	  s/.*/./; q'`
460
461# Avoid depending upon Character Ranges.
462as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465as_cr_digits='0123456789'
466as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469  as_lineno_1=$LINENO as_lineno_1a=$LINENO
470  as_lineno_2=$LINENO as_lineno_2a=$LINENO
471  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
474  sed -n '
475    p
476    /[$]LINENO/=
477  ' <$as_myself |
478    sed '
479      s/[$]LINENO.*/&-/
480      t lineno
481      b
482      :lineno
483      N
484      :loop
485      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486      t loop
487      s/-\n.*//
488    ' >$as_me.lineno &&
489  chmod +x "$as_me.lineno" ||
490    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493  # already done that, so ensure we don't try to do so again and fall
494  # in an infinite loop.  This has already happened in practice.
495  _as_can_reexec=no; export _as_can_reexec
496  # Don't try to exec as it changes $[0], causing all sort of problems
497  # (the dirname of $[0] is not the place where we might find the
498  # original and so on.  Autoconf is especially sensitive to this).
499  . "./$as_me.lineno"
500  # Exit status is that of the last command.
501  exit
502}
503
504ECHO_C= ECHO_N= ECHO_T=
505case `echo -n x` in #(((((
506-n*)
507  case `echo 'xy\c'` in
508  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
509  xy)  ECHO_C='\c';;
510  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
511       ECHO_T='	';;
512  esac;;
513*)
514  ECHO_N='-n';;
515esac
516
517rm -f conf$$ conf$$.exe conf$$.file
518if test -d conf$$.dir; then
519  rm -f conf$$.dir/conf$$.file
520else
521  rm -f conf$$.dir
522  mkdir conf$$.dir 2>/dev/null
523fi
524if (echo >conf$$.file) 2>/dev/null; then
525  if ln -s conf$$.file conf$$ 2>/dev/null; then
526    as_ln_s='ln -s'
527    # ... but there are two gotchas:
528    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530    # In both cases, we have to default to `cp -pR'.
531    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532      as_ln_s='cp -pR'
533  elif ln conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s=ln
535  else
536    as_ln_s='cp -pR'
537  fi
538else
539  as_ln_s='cp -pR'
540fi
541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542rmdir conf$$.dir 2>/dev/null
543
544if mkdir -p . 2>/dev/null; then
545  as_mkdir_p='mkdir -p "$as_dir"'
546else
547  test -d ./-p && rmdir ./-p
548  as_mkdir_p=false
549fi
550
551as_test_x='test -x'
552as_executable_p=as_fn_executable_p
553
554# Sed expression to map a string onto a valid CPP name.
555as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557# Sed expression to map a string onto a valid variable name.
558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560
561test -n "$DJDIR" || exec 7<&0 </dev/null
562exec 6>&1
563
564# Name of the host.
565# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566# so uname gets run too.
567ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
569#
570# Initializations.
571#
572ac_default_prefix=/usr/local
573ac_clean_files=
574ac_config_libobj_dir=.
575LIBOBJS=
576cross_compiling=no
577subdirs=
578MFLAGS=
579MAKEFLAGS=
580
581# Identity of this package.
582PACKAGE_NAME='xauth'
583PACKAGE_TARNAME='xauth'
584PACKAGE_VERSION='1.1.1'
585PACKAGE_STRING='xauth 1.1.1'
586PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xauth/issues'
587PACKAGE_URL=''
588
589# Factoring default headers for most tests.
590ac_includes_default="\
591#include <stdio.h>
592#ifdef HAVE_SYS_TYPES_H
593# include <sys/types.h>
594#endif
595#ifdef HAVE_SYS_STAT_H
596# include <sys/stat.h>
597#endif
598#ifdef STDC_HEADERS
599# include <stdlib.h>
600# include <stddef.h>
601#else
602# ifdef HAVE_STDLIB_H
603#  include <stdlib.h>
604# endif
605#endif
606#ifdef HAVE_STRING_H
607# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608#  include <memory.h>
609# endif
610# include <string.h>
611#endif
612#ifdef HAVE_STRINGS_H
613# include <strings.h>
614#endif
615#ifdef HAVE_INTTYPES_H
616# include <inttypes.h>
617#endif
618#ifdef HAVE_STDINT_H
619# include <stdint.h>
620#endif
621#ifdef HAVE_UNISTD_H
622# include <unistd.h>
623#endif"
624
625ac_subst_vars='am__EXEEXT_FALSE
626am__EXEEXT_TRUE
627LTLIBOBJS
628LIBOBJS
629LINT_FALSE
630LINT_TRUE
631LINT_FLAGS
632LINT
633XAUTH_LIBS
634XAUTH_CFLAGS
635MAN_SUBSTS
636XORG_MAN_PAGE
637ADMIN_MAN_DIR
638DRIVER_MAN_DIR
639MISC_MAN_DIR
640FILE_MAN_DIR
641LIB_MAN_DIR
642APP_MAN_DIR
643ADMIN_MAN_SUFFIX
644DRIVER_MAN_SUFFIX
645MISC_MAN_SUFFIX
646FILE_MAN_SUFFIX
647LIB_MAN_SUFFIX
648APP_MAN_SUFFIX
649SED
650host_os
651host_vendor
652host_cpu
653host
654build_os
655build_vendor
656build_cpu
657build
658INSTALL_CMD
659PKG_CONFIG_LIBDIR
660PKG_CONFIG_PATH
661PKG_CONFIG
662CHANGELOG_CMD
663STRICT_CFLAGS
664CWARNFLAGS
665BASE_CFLAGS
666EGREP
667GREP
668CPP
669am__fastdepCC_FALSE
670am__fastdepCC_TRUE
671CCDEPMODE
672am__nodep
673AMDEPBACKSLASH
674AMDEP_FALSE
675AMDEP_TRUE
676am__include
677DEPDIR
678OBJEXT
679EXEEXT
680ac_ct_CC
681CPPFLAGS
682LDFLAGS
683CFLAGS
684CC
685AM_BACKSLASH
686AM_DEFAULT_VERBOSITY
687AM_DEFAULT_V
688AM_V
689am__untar
690am__tar
691AMTAR
692am__leading_dot
693SET_MAKE
694AWK
695mkdir_p
696MKDIR_P
697INSTALL_STRIP_PROGRAM
698STRIP
699install_sh
700MAKEINFO
701AUTOHEADER
702AUTOMAKE
703AUTOCONF
704ACLOCAL
705VERSION
706PACKAGE
707CYGPATH_W
708am__isrc
709INSTALL_DATA
710INSTALL_SCRIPT
711INSTALL_PROGRAM
712target_alias
713host_alias
714build_alias
715LIBS
716ECHO_T
717ECHO_N
718ECHO_C
719DEFS
720mandir
721localedir
722libdir
723psdir
724pdfdir
725dvidir
726htmldir
727infodir
728docdir
729oldincludedir
730includedir
731localstatedir
732sharedstatedir
733sysconfdir
734datadir
735datarootdir
736libexecdir
737sbindir
738bindir
739program_transform_name
740prefix
741exec_prefix
742PACKAGE_URL
743PACKAGE_BUGREPORT
744PACKAGE_STRING
745PACKAGE_VERSION
746PACKAGE_TARNAME
747PACKAGE_NAME
748PATH_SEPARATOR
749SHELL
750am__quote'
751ac_subst_files=''
752ac_user_opts='
753enable_option_checking
754enable_silent_rules
755enable_dependency_tracking
756enable_selective_werror
757enable_strict_compilation
758enable_unix_transport
759enable_tcp_transport
760enable_ipv6
761enable_local_transport
762with_lint
763'
764      ac_precious_vars='build_alias
765host_alias
766target_alias
767CC
768CFLAGS
769LDFLAGS
770LIBS
771CPPFLAGS
772CPP
773PKG_CONFIG
774PKG_CONFIG_PATH
775PKG_CONFIG_LIBDIR
776XAUTH_CFLAGS
777XAUTH_LIBS
778LINT
779LINT_FLAGS'
780
781
782# Initialize some variables set by options.
783ac_init_help=
784ac_init_version=false
785ac_unrecognized_opts=
786ac_unrecognized_sep=
787# The variables have the same names as the options, with
788# dashes changed to underlines.
789cache_file=/dev/null
790exec_prefix=NONE
791no_create=
792no_recursion=
793prefix=NONE
794program_prefix=NONE
795program_suffix=NONE
796program_transform_name=s,x,x,
797silent=
798site=
799srcdir=
800verbose=
801x_includes=NONE
802x_libraries=NONE
803
804# Installation directory options.
805# These are left unexpanded so users can "make install exec_prefix=/foo"
806# and all the variables that are supposed to be based on exec_prefix
807# by default will actually change.
808# Use braces instead of parens because sh, perl, etc. also accept them.
809# (The list follows the same order as the GNU Coding Standards.)
810bindir='${exec_prefix}/bin'
811sbindir='${exec_prefix}/sbin'
812libexecdir='${exec_prefix}/libexec'
813datarootdir='${prefix}/share'
814datadir='${datarootdir}'
815sysconfdir='${prefix}/etc'
816sharedstatedir='${prefix}/com'
817localstatedir='${prefix}/var'
818includedir='${prefix}/include'
819oldincludedir='/usr/include'
820docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
821infodir='${datarootdir}/info'
822htmldir='${docdir}'
823dvidir='${docdir}'
824pdfdir='${docdir}'
825psdir='${docdir}'
826libdir='${exec_prefix}/lib'
827localedir='${datarootdir}/locale'
828mandir='${datarootdir}/man'
829
830ac_prev=
831ac_dashdash=
832for ac_option
833do
834  # If the previous option needs an argument, assign it.
835  if test -n "$ac_prev"; then
836    eval $ac_prev=\$ac_option
837    ac_prev=
838    continue
839  fi
840
841  case $ac_option in
842  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
843  *=)   ac_optarg= ;;
844  *)    ac_optarg=yes ;;
845  esac
846
847  # Accept the important Cygnus configure options, so we can diagnose typos.
848
849  case $ac_dashdash$ac_option in
850  --)
851    ac_dashdash=yes ;;
852
853  -bindir | --bindir | --bindi | --bind | --bin | --bi)
854    ac_prev=bindir ;;
855  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
856    bindir=$ac_optarg ;;
857
858  -build | --build | --buil | --bui | --bu)
859    ac_prev=build_alias ;;
860  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
861    build_alias=$ac_optarg ;;
862
863  -cache-file | --cache-file | --cache-fil | --cache-fi \
864  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
865    ac_prev=cache_file ;;
866  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
867  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
868    cache_file=$ac_optarg ;;
869
870  --config-cache | -C)
871    cache_file=config.cache ;;
872
873  -datadir | --datadir | --datadi | --datad)
874    ac_prev=datadir ;;
875  -datadir=* | --datadir=* | --datadi=* | --datad=*)
876    datadir=$ac_optarg ;;
877
878  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
879  | --dataroo | --dataro | --datar)
880    ac_prev=datarootdir ;;
881  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
882  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
883    datarootdir=$ac_optarg ;;
884
885  -disable-* | --disable-*)
886    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
887    # Reject names that are not valid shell variable names.
888    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
889      as_fn_error $? "invalid feature name: $ac_useropt"
890    ac_useropt_orig=$ac_useropt
891    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
892    case $ac_user_opts in
893      *"
894"enable_$ac_useropt"
895"*) ;;
896      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
897	 ac_unrecognized_sep=', ';;
898    esac
899    eval enable_$ac_useropt=no ;;
900
901  -docdir | --docdir | --docdi | --doc | --do)
902    ac_prev=docdir ;;
903  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
904    docdir=$ac_optarg ;;
905
906  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
907    ac_prev=dvidir ;;
908  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
909    dvidir=$ac_optarg ;;
910
911  -enable-* | --enable-*)
912    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
913    # Reject names that are not valid shell variable names.
914    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
915      as_fn_error $? "invalid feature name: $ac_useropt"
916    ac_useropt_orig=$ac_useropt
917    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
918    case $ac_user_opts in
919      *"
920"enable_$ac_useropt"
921"*) ;;
922      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
923	 ac_unrecognized_sep=', ';;
924    esac
925    eval enable_$ac_useropt=\$ac_optarg ;;
926
927  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
928  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
929  | --exec | --exe | --ex)
930    ac_prev=exec_prefix ;;
931  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
932  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
933  | --exec=* | --exe=* | --ex=*)
934    exec_prefix=$ac_optarg ;;
935
936  -gas | --gas | --ga | --g)
937    # Obsolete; use --with-gas.
938    with_gas=yes ;;
939
940  -help | --help | --hel | --he | -h)
941    ac_init_help=long ;;
942  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
943    ac_init_help=recursive ;;
944  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
945    ac_init_help=short ;;
946
947  -host | --host | --hos | --ho)
948    ac_prev=host_alias ;;
949  -host=* | --host=* | --hos=* | --ho=*)
950    host_alias=$ac_optarg ;;
951
952  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
953    ac_prev=htmldir ;;
954  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
955  | --ht=*)
956    htmldir=$ac_optarg ;;
957
958  -includedir | --includedir | --includedi | --included | --include \
959  | --includ | --inclu | --incl | --inc)
960    ac_prev=includedir ;;
961  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
962  | --includ=* | --inclu=* | --incl=* | --inc=*)
963    includedir=$ac_optarg ;;
964
965  -infodir | --infodir | --infodi | --infod | --info | --inf)
966    ac_prev=infodir ;;
967  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
968    infodir=$ac_optarg ;;
969
970  -libdir | --libdir | --libdi | --libd)
971    ac_prev=libdir ;;
972  -libdir=* | --libdir=* | --libdi=* | --libd=*)
973    libdir=$ac_optarg ;;
974
975  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
976  | --libexe | --libex | --libe)
977    ac_prev=libexecdir ;;
978  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
979  | --libexe=* | --libex=* | --libe=*)
980    libexecdir=$ac_optarg ;;
981
982  -localedir | --localedir | --localedi | --localed | --locale)
983    ac_prev=localedir ;;
984  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
985    localedir=$ac_optarg ;;
986
987  -localstatedir | --localstatedir | --localstatedi | --localstated \
988  | --localstate | --localstat | --localsta | --localst | --locals)
989    ac_prev=localstatedir ;;
990  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
991  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
992    localstatedir=$ac_optarg ;;
993
994  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
995    ac_prev=mandir ;;
996  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
997    mandir=$ac_optarg ;;
998
999  -nfp | --nfp | --nf)
1000    # Obsolete; use --without-fp.
1001    with_fp=no ;;
1002
1003  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1004  | --no-cr | --no-c | -n)
1005    no_create=yes ;;
1006
1007  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1008  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1009    no_recursion=yes ;;
1010
1011  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1012  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1013  | --oldin | --oldi | --old | --ol | --o)
1014    ac_prev=oldincludedir ;;
1015  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1016  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1017  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1018    oldincludedir=$ac_optarg ;;
1019
1020  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1021    ac_prev=prefix ;;
1022  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1023    prefix=$ac_optarg ;;
1024
1025  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1026  | --program-pre | --program-pr | --program-p)
1027    ac_prev=program_prefix ;;
1028  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1029  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1030    program_prefix=$ac_optarg ;;
1031
1032  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1033  | --program-suf | --program-su | --program-s)
1034    ac_prev=program_suffix ;;
1035  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1036  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1037    program_suffix=$ac_optarg ;;
1038
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    ac_prev=program_transform_name ;;
1047  -program-transform-name=* | --program-transform-name=* \
1048  | --program-transform-nam=* | --program-transform-na=* \
1049  | --program-transform-n=* | --program-transform-=* \
1050  | --program-transform=* | --program-transfor=* \
1051  | --program-transfo=* | --program-transf=* \
1052  | --program-trans=* | --program-tran=* \
1053  | --progr-tra=* | --program-tr=* | --program-t=*)
1054    program_transform_name=$ac_optarg ;;
1055
1056  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1057    ac_prev=pdfdir ;;
1058  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1059    pdfdir=$ac_optarg ;;
1060
1061  -psdir | --psdir | --psdi | --psd | --ps)
1062    ac_prev=psdir ;;
1063  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1064    psdir=$ac_optarg ;;
1065
1066  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067  | -silent | --silent | --silen | --sile | --sil)
1068    silent=yes ;;
1069
1070  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1071    ac_prev=sbindir ;;
1072  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1073  | --sbi=* | --sb=*)
1074    sbindir=$ac_optarg ;;
1075
1076  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1077  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1078  | --sharedst | --shareds | --shared | --share | --shar \
1079  | --sha | --sh)
1080    ac_prev=sharedstatedir ;;
1081  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1082  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1083  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1084  | --sha=* | --sh=*)
1085    sharedstatedir=$ac_optarg ;;
1086
1087  -site | --site | --sit)
1088    ac_prev=site ;;
1089  -site=* | --site=* | --sit=*)
1090    site=$ac_optarg ;;
1091
1092  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1093    ac_prev=srcdir ;;
1094  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1095    srcdir=$ac_optarg ;;
1096
1097  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1098  | --syscon | --sysco | --sysc | --sys | --sy)
1099    ac_prev=sysconfdir ;;
1100  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1101  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1102    sysconfdir=$ac_optarg ;;
1103
1104  -target | --target | --targe | --targ | --tar | --ta | --t)
1105    ac_prev=target_alias ;;
1106  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1107    target_alias=$ac_optarg ;;
1108
1109  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1110    verbose=yes ;;
1111
1112  -version | --version | --versio | --versi | --vers | -V)
1113    ac_init_version=: ;;
1114
1115  -with-* | --with-*)
1116    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1117    # Reject names that are not valid shell variable names.
1118    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119      as_fn_error $? "invalid package name: $ac_useropt"
1120    ac_useropt_orig=$ac_useropt
1121    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122    case $ac_user_opts in
1123      *"
1124"with_$ac_useropt"
1125"*) ;;
1126      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1127	 ac_unrecognized_sep=', ';;
1128    esac
1129    eval with_$ac_useropt=\$ac_optarg ;;
1130
1131  -without-* | --without-*)
1132    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1133    # Reject names that are not valid shell variable names.
1134    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135      as_fn_error $? "invalid package name: $ac_useropt"
1136    ac_useropt_orig=$ac_useropt
1137    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138    case $ac_user_opts in
1139      *"
1140"with_$ac_useropt"
1141"*) ;;
1142      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1143	 ac_unrecognized_sep=', ';;
1144    esac
1145    eval with_$ac_useropt=no ;;
1146
1147  --x)
1148    # Obsolete; use --with-x.
1149    with_x=yes ;;
1150
1151  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1152  | --x-incl | --x-inc | --x-in | --x-i)
1153    ac_prev=x_includes ;;
1154  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1155  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1156    x_includes=$ac_optarg ;;
1157
1158  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1159  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1160    ac_prev=x_libraries ;;
1161  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1162  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1163    x_libraries=$ac_optarg ;;
1164
1165  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1166Try \`$0 --help' for more information"
1167    ;;
1168
1169  *=*)
1170    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1171    # Reject names that are not valid shell variable names.
1172    case $ac_envvar in #(
1173      '' | [0-9]* | *[!_$as_cr_alnum]* )
1174      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1175    esac
1176    eval $ac_envvar=\$ac_optarg
1177    export $ac_envvar ;;
1178
1179  *)
1180    # FIXME: should be removed in autoconf 3.0.
1181    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1182    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1183      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1184    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1185    ;;
1186
1187  esac
1188done
1189
1190if test -n "$ac_prev"; then
1191  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1192  as_fn_error $? "missing argument to $ac_option"
1193fi
1194
1195if test -n "$ac_unrecognized_opts"; then
1196  case $enable_option_checking in
1197    no) ;;
1198    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1199    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1200  esac
1201fi
1202
1203# Check all directory arguments for consistency.
1204for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205		datadir sysconfdir sharedstatedir localstatedir includedir \
1206		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207		libdir localedir mandir
1208do
1209  eval ac_val=\$$ac_var
1210  # Remove trailing slashes.
1211  case $ac_val in
1212    */ )
1213      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1214      eval $ac_var=\$ac_val;;
1215  esac
1216  # Be sure to have absolute directory names.
1217  case $ac_val in
1218    [\\/$]* | ?:[\\/]* )  continue;;
1219    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1220  esac
1221  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1222done
1223
1224# There might be people who depend on the old broken behavior: `$host'
1225# used to hold the argument of --host etc.
1226# FIXME: To remove some day.
1227build=$build_alias
1228host=$host_alias
1229target=$target_alias
1230
1231# FIXME: To remove some day.
1232if test "x$host_alias" != x; then
1233  if test "x$build_alias" = x; then
1234    cross_compiling=maybe
1235  elif test "x$build_alias" != "x$host_alias"; then
1236    cross_compiling=yes
1237  fi
1238fi
1239
1240ac_tool_prefix=
1241test -n "$host_alias" && ac_tool_prefix=$host_alias-
1242
1243test "$silent" = yes && exec 6>/dev/null
1244
1245
1246ac_pwd=`pwd` && test -n "$ac_pwd" &&
1247ac_ls_di=`ls -di .` &&
1248ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1249  as_fn_error $? "working directory cannot be determined"
1250test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251  as_fn_error $? "pwd does not report name of working directory"
1252
1253
1254# Find the source files, if location was not specified.
1255if test -z "$srcdir"; then
1256  ac_srcdir_defaulted=yes
1257  # Try the directory containing this script, then the parent directory.
1258  ac_confdir=`$as_dirname -- "$as_myself" ||
1259$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260	 X"$as_myself" : 'X\(//\)[^/]' \| \
1261	 X"$as_myself" : 'X\(//\)$' \| \
1262	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1263$as_echo X"$as_myself" |
1264    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265	    s//\1/
1266	    q
1267	  }
1268	  /^X\(\/\/\)[^/].*/{
1269	    s//\1/
1270	    q
1271	  }
1272	  /^X\(\/\/\)$/{
1273	    s//\1/
1274	    q
1275	  }
1276	  /^X\(\/\).*/{
1277	    s//\1/
1278	    q
1279	  }
1280	  s/.*/./; q'`
1281  srcdir=$ac_confdir
1282  if test ! -r "$srcdir/$ac_unique_file"; then
1283    srcdir=..
1284  fi
1285else
1286  ac_srcdir_defaulted=no
1287fi
1288if test ! -r "$srcdir/$ac_unique_file"; then
1289  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1290  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1291fi
1292ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293ac_abs_confdir=`(
1294	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1295	pwd)`
1296# When building in place, set srcdir=.
1297if test "$ac_abs_confdir" = "$ac_pwd"; then
1298  srcdir=.
1299fi
1300# Remove unnecessary trailing slashes from srcdir.
1301# Double slashes in file names in object file debugging info
1302# mess up M-x gdb in Emacs.
1303case $srcdir in
1304*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305esac
1306for ac_var in $ac_precious_vars; do
1307  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308  eval ac_env_${ac_var}_value=\$${ac_var}
1309  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311done
1312
1313#
1314# Report the --help message.
1315#
1316if test "$ac_init_help" = "long"; then
1317  # Omit some internal or obsolete options to make the list less imposing.
1318  # This message is too long to be a string in the A/UX 3.1 sh.
1319  cat <<_ACEOF
1320\`configure' configures xauth 1.1.1 to adapt to many kinds of systems.
1321
1322Usage: $0 [OPTION]... [VAR=VALUE]...
1323
1324To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325VAR=VALUE.  See below for descriptions of some of the useful variables.
1326
1327Defaults for the options are specified in brackets.
1328
1329Configuration:
1330  -h, --help              display this help and exit
1331      --help=short        display options specific to this package
1332      --help=recursive    display the short help of all the included packages
1333  -V, --version           display version information and exit
1334  -q, --quiet, --silent   do not print \`checking ...' messages
1335      --cache-file=FILE   cache test results in FILE [disabled]
1336  -C, --config-cache      alias for \`--cache-file=config.cache'
1337  -n, --no-create         do not create output files
1338      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1339
1340Installation directories:
1341  --prefix=PREFIX         install architecture-independent files in PREFIX
1342                          [$ac_default_prefix]
1343  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1344                          [PREFIX]
1345
1346By default, \`make install' will install all the files in
1347\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1348an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349for instance \`--prefix=\$HOME'.
1350
1351For better control, use the options below.
1352
1353Fine tuning of the installation directories:
1354  --bindir=DIR            user executables [EPREFIX/bin]
1355  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1356  --libexecdir=DIR        program executables [EPREFIX/libexec]
1357  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1358  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1359  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1360  --libdir=DIR            object code libraries [EPREFIX/lib]
1361  --includedir=DIR        C header files [PREFIX/include]
1362  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1363  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1364  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1365  --infodir=DIR           info documentation [DATAROOTDIR/info]
1366  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1367  --mandir=DIR            man documentation [DATAROOTDIR/man]
1368  --docdir=DIR            documentation root [DATAROOTDIR/doc/xauth]
1369  --htmldir=DIR           html documentation [DOCDIR]
1370  --dvidir=DIR            dvi documentation [DOCDIR]
1371  --pdfdir=DIR            pdf documentation [DOCDIR]
1372  --psdir=DIR             ps documentation [DOCDIR]
1373_ACEOF
1374
1375  cat <<\_ACEOF
1376
1377Program names:
1378  --program-prefix=PREFIX            prepend PREFIX to installed program names
1379  --program-suffix=SUFFIX            append SUFFIX to installed program names
1380  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1381
1382System types:
1383  --build=BUILD     configure for building on BUILD [guessed]
1384  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1385_ACEOF
1386fi
1387
1388if test -n "$ac_init_help"; then
1389  case $ac_init_help in
1390     short | recursive ) echo "Configuration of xauth 1.1.1:";;
1391   esac
1392  cat <<\_ACEOF
1393
1394Optional Features:
1395  --disable-option-checking  ignore unrecognized --enable/--with options
1396  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1397  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1398  --enable-silent-rules   less verbose build output (undo: "make V=1")
1399  --disable-silent-rules  verbose build output (undo: "make V=0")
1400  --enable-dependency-tracking
1401                          do not reject slow dependency extractors
1402  --disable-dependency-tracking
1403                          speeds up one-time build
1404  --disable-selective-werror
1405                          Turn off selective compiler errors. (default:
1406                          enabled)
1407  --enable-strict-compilation
1408                          Enable all warnings from compiler and make them
1409                          errors (default: disabled)
1410  --enable-unix-transport Enable UNIX domain socket transport
1411  --enable-tcp-transport  Enable TCP socket transport
1412  --enable-ipv6           Enable IPv6 support
1413  --enable-local-transport
1414                          Enable os-specific local transport
1415
1416Optional Packages:
1417  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1418  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1419  --with-lint             Use a lint-style source code checker (default:
1420                          disabled)
1421
1422Some influential environment variables:
1423  CC          C compiler command
1424  CFLAGS      C compiler flags
1425  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1426              nonstandard directory <lib dir>
1427  LIBS        libraries to pass to the linker, e.g. -l<library>
1428  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1429              you have headers in a nonstandard directory <include dir>
1430  CPP         C preprocessor
1431  PKG_CONFIG  path to pkg-config utility
1432  PKG_CONFIG_PATH
1433              directories to add to pkg-config's search path
1434  PKG_CONFIG_LIBDIR
1435              path overriding pkg-config's built-in search path
1436  XAUTH_CFLAGS
1437              C compiler flags for XAUTH, overriding pkg-config
1438  XAUTH_LIBS  linker flags for XAUTH, overriding pkg-config
1439  LINT        Path to a lint-style command
1440  LINT_FLAGS  Flags for the lint-style command
1441
1442Use these variables to override the choices made by `configure' or to help
1443it to find libraries and programs with nonstandard names/locations.
1444
1445Report bugs to <https://gitlab.freedesktop.org/xorg/app/xauth/issues>.
1446_ACEOF
1447ac_status=$?
1448fi
1449
1450if test "$ac_init_help" = "recursive"; then
1451  # If there are subdirs, report their specific --help.
1452  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1453    test -d "$ac_dir" ||
1454      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1455      continue
1456    ac_builddir=.
1457
1458case "$ac_dir" in
1459.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1460*)
1461  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1462  # A ".." for each directory in $ac_dir_suffix.
1463  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1464  case $ac_top_builddir_sub in
1465  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1467  esac ;;
1468esac
1469ac_abs_top_builddir=$ac_pwd
1470ac_abs_builddir=$ac_pwd$ac_dir_suffix
1471# for backward compatibility:
1472ac_top_builddir=$ac_top_build_prefix
1473
1474case $srcdir in
1475  .)  # We are building in place.
1476    ac_srcdir=.
1477    ac_top_srcdir=$ac_top_builddir_sub
1478    ac_abs_top_srcdir=$ac_pwd ;;
1479  [\\/]* | ?:[\\/]* )  # Absolute name.
1480    ac_srcdir=$srcdir$ac_dir_suffix;
1481    ac_top_srcdir=$srcdir
1482    ac_abs_top_srcdir=$srcdir ;;
1483  *) # Relative name.
1484    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1485    ac_top_srcdir=$ac_top_build_prefix$srcdir
1486    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1487esac
1488ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1489
1490    cd "$ac_dir" || { ac_status=$?; continue; }
1491    # Check for guested configure.
1492    if test -f "$ac_srcdir/configure.gnu"; then
1493      echo &&
1494      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1495    elif test -f "$ac_srcdir/configure"; then
1496      echo &&
1497      $SHELL "$ac_srcdir/configure" --help=recursive
1498    else
1499      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1500    fi || ac_status=$?
1501    cd "$ac_pwd" || { ac_status=$?; break; }
1502  done
1503fi
1504
1505test -n "$ac_init_help" && exit $ac_status
1506if $ac_init_version; then
1507  cat <<\_ACEOF
1508xauth configure 1.1.1
1509generated by GNU Autoconf 2.69
1510
1511Copyright (C) 2012 Free Software Foundation, Inc.
1512This configure script is free software; the Free Software Foundation
1513gives unlimited permission to copy, distribute and modify it.
1514_ACEOF
1515  exit
1516fi
1517
1518## ------------------------ ##
1519## Autoconf initialization. ##
1520## ------------------------ ##
1521
1522# ac_fn_c_try_compile LINENO
1523# --------------------------
1524# Try to compile conftest.$ac_ext, and return whether this succeeded.
1525ac_fn_c_try_compile ()
1526{
1527  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1528  rm -f conftest.$ac_objext
1529  if { { ac_try="$ac_compile"
1530case "(($ac_try" in
1531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1532  *) ac_try_echo=$ac_try;;
1533esac
1534eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1535$as_echo "$ac_try_echo"; } >&5
1536  (eval "$ac_compile") 2>conftest.err
1537  ac_status=$?
1538  if test -s conftest.err; then
1539    grep -v '^ *+' conftest.err >conftest.er1
1540    cat conftest.er1 >&5
1541    mv -f conftest.er1 conftest.err
1542  fi
1543  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1544  test $ac_status = 0; } && {
1545	 test -z "$ac_c_werror_flag" ||
1546	 test ! -s conftest.err
1547       } && test -s conftest.$ac_objext; then :
1548  ac_retval=0
1549else
1550  $as_echo "$as_me: failed program was:" >&5
1551sed 's/^/| /' conftest.$ac_ext >&5
1552
1553	ac_retval=1
1554fi
1555  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1556  as_fn_set_status $ac_retval
1557
1558} # ac_fn_c_try_compile
1559
1560# ac_fn_c_try_cpp LINENO
1561# ----------------------
1562# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1563ac_fn_c_try_cpp ()
1564{
1565  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566  if { { ac_try="$ac_cpp conftest.$ac_ext"
1567case "(($ac_try" in
1568  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1569  *) ac_try_echo=$ac_try;;
1570esac
1571eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572$as_echo "$ac_try_echo"; } >&5
1573  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1574  ac_status=$?
1575  if test -s conftest.err; then
1576    grep -v '^ *+' conftest.err >conftest.er1
1577    cat conftest.er1 >&5
1578    mv -f conftest.er1 conftest.err
1579  fi
1580  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1581  test $ac_status = 0; } > conftest.i && {
1582	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1583	 test ! -s conftest.err
1584       }; then :
1585  ac_retval=0
1586else
1587  $as_echo "$as_me: failed program was:" >&5
1588sed 's/^/| /' conftest.$ac_ext >&5
1589
1590    ac_retval=1
1591fi
1592  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1593  as_fn_set_status $ac_retval
1594
1595} # ac_fn_c_try_cpp
1596
1597# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1598# -------------------------------------------------------
1599# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1600# the include files in INCLUDES and setting the cache variable VAR
1601# accordingly.
1602ac_fn_c_check_header_mongrel ()
1603{
1604  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605  if eval \${$3+:} false; then :
1606  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1607$as_echo_n "checking for $2... " >&6; }
1608if eval \${$3+:} false; then :
1609  $as_echo_n "(cached) " >&6
1610fi
1611eval ac_res=\$$3
1612	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1613$as_echo "$ac_res" >&6; }
1614else
1615  # Is the header compilable?
1616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1617$as_echo_n "checking $2 usability... " >&6; }
1618cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1619/* end confdefs.h.  */
1620$4
1621#include <$2>
1622_ACEOF
1623if ac_fn_c_try_compile "$LINENO"; then :
1624  ac_header_compiler=yes
1625else
1626  ac_header_compiler=no
1627fi
1628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1630$as_echo "$ac_header_compiler" >&6; }
1631
1632# Is the header present?
1633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1634$as_echo_n "checking $2 presence... " >&6; }
1635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1636/* end confdefs.h.  */
1637#include <$2>
1638_ACEOF
1639if ac_fn_c_try_cpp "$LINENO"; then :
1640  ac_header_preproc=yes
1641else
1642  ac_header_preproc=no
1643fi
1644rm -f conftest.err conftest.i conftest.$ac_ext
1645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1646$as_echo "$ac_header_preproc" >&6; }
1647
1648# So?  What about this header?
1649case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1650  yes:no: )
1651    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1652$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1653    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1654$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1655    ;;
1656  no:yes:* )
1657    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1658$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1659    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1660$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1661    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1662$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1663    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1664$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1665    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1666$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1667( $as_echo "## ------------------------------------------------------------------- ##
1668## Report this to https://gitlab.freedesktop.org/xorg/app/xauth/issues ##
1669## ------------------------------------------------------------------- ##"
1670     ) | sed "s/^/$as_me: WARNING:     /" >&2
1671    ;;
1672esac
1673  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1674$as_echo_n "checking for $2... " >&6; }
1675if eval \${$3+:} false; then :
1676  $as_echo_n "(cached) " >&6
1677else
1678  eval "$3=\$ac_header_compiler"
1679fi
1680eval ac_res=\$$3
1681	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1682$as_echo "$ac_res" >&6; }
1683fi
1684  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685
1686} # ac_fn_c_check_header_mongrel
1687
1688# ac_fn_c_try_run LINENO
1689# ----------------------
1690# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1691# that executables *can* be run.
1692ac_fn_c_try_run ()
1693{
1694  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695  if { { ac_try="$ac_link"
1696case "(($ac_try" in
1697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698  *) ac_try_echo=$ac_try;;
1699esac
1700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701$as_echo "$ac_try_echo"; } >&5
1702  (eval "$ac_link") 2>&5
1703  ac_status=$?
1704  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1706  { { case "(($ac_try" in
1707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708  *) ac_try_echo=$ac_try;;
1709esac
1710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711$as_echo "$ac_try_echo"; } >&5
1712  (eval "$ac_try") 2>&5
1713  ac_status=$?
1714  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715  test $ac_status = 0; }; }; then :
1716  ac_retval=0
1717else
1718  $as_echo "$as_me: program exited with status $ac_status" >&5
1719       $as_echo "$as_me: failed program was:" >&5
1720sed 's/^/| /' conftest.$ac_ext >&5
1721
1722       ac_retval=$ac_status
1723fi
1724  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1725  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726  as_fn_set_status $ac_retval
1727
1728} # ac_fn_c_try_run
1729
1730# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1731# -------------------------------------------------------
1732# Tests whether HEADER exists and can be compiled using the include files in
1733# INCLUDES, setting the cache variable VAR accordingly.
1734ac_fn_c_check_header_compile ()
1735{
1736  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1738$as_echo_n "checking for $2... " >&6; }
1739if eval \${$3+:} false; then :
1740  $as_echo_n "(cached) " >&6
1741else
1742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1743/* end confdefs.h.  */
1744$4
1745#include <$2>
1746_ACEOF
1747if ac_fn_c_try_compile "$LINENO"; then :
1748  eval "$3=yes"
1749else
1750  eval "$3=no"
1751fi
1752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1753fi
1754eval ac_res=\$$3
1755	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1756$as_echo "$ac_res" >&6; }
1757  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758
1759} # ac_fn_c_check_header_compile
1760
1761# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1762# ---------------------------------------------
1763# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1764# accordingly.
1765ac_fn_c_check_decl ()
1766{
1767  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768  as_decl_name=`echo $2|sed 's/ *(.*//'`
1769  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1770  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1771$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1772if eval \${$3+:} false; then :
1773  $as_echo_n "(cached) " >&6
1774else
1775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776/* end confdefs.h.  */
1777$4
1778int
1779main ()
1780{
1781#ifndef $as_decl_name
1782#ifdef __cplusplus
1783  (void) $as_decl_use;
1784#else
1785  (void) $as_decl_name;
1786#endif
1787#endif
1788
1789  ;
1790  return 0;
1791}
1792_ACEOF
1793if ac_fn_c_try_compile "$LINENO"; then :
1794  eval "$3=yes"
1795else
1796  eval "$3=no"
1797fi
1798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1799fi
1800eval ac_res=\$$3
1801	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1802$as_echo "$ac_res" >&6; }
1803  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804
1805} # ac_fn_c_check_decl
1806
1807# ac_fn_c_try_link LINENO
1808# -----------------------
1809# Try to link conftest.$ac_ext, and return whether this succeeded.
1810ac_fn_c_try_link ()
1811{
1812  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813  rm -f conftest.$ac_objext conftest$ac_exeext
1814  if { { ac_try="$ac_link"
1815case "(($ac_try" in
1816  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1817  *) ac_try_echo=$ac_try;;
1818esac
1819eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1820$as_echo "$ac_try_echo"; } >&5
1821  (eval "$ac_link") 2>conftest.err
1822  ac_status=$?
1823  if test -s conftest.err; then
1824    grep -v '^ *+' conftest.err >conftest.er1
1825    cat conftest.er1 >&5
1826    mv -f conftest.er1 conftest.err
1827  fi
1828  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829  test $ac_status = 0; } && {
1830	 test -z "$ac_c_werror_flag" ||
1831	 test ! -s conftest.err
1832       } && test -s conftest$ac_exeext && {
1833	 test "$cross_compiling" = yes ||
1834	 test -x conftest$ac_exeext
1835       }; then :
1836  ac_retval=0
1837else
1838  $as_echo "$as_me: failed program was:" >&5
1839sed 's/^/| /' conftest.$ac_ext >&5
1840
1841	ac_retval=1
1842fi
1843  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1844  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1845  # interfere with the next link command; also delete a directory that is
1846  # left behind by Apple's compiler.  We do this before executing the actions.
1847  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1848  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849  as_fn_set_status $ac_retval
1850
1851} # ac_fn_c_try_link
1852
1853# ac_fn_c_check_func LINENO FUNC VAR
1854# ----------------------------------
1855# Tests whether FUNC exists, setting the cache variable VAR accordingly
1856ac_fn_c_check_func ()
1857{
1858  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1860$as_echo_n "checking for $2... " >&6; }
1861if eval \${$3+:} false; then :
1862  $as_echo_n "(cached) " >&6
1863else
1864  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865/* end confdefs.h.  */
1866/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1867   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1868#define $2 innocuous_$2
1869
1870/* System header to define __stub macros and hopefully few prototypes,
1871    which can conflict with char $2 (); below.
1872    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1873    <limits.h> exists even on freestanding compilers.  */
1874
1875#ifdef __STDC__
1876# include <limits.h>
1877#else
1878# include <assert.h>
1879#endif
1880
1881#undef $2
1882
1883/* Override any GCC internal prototype to avoid an error.
1884   Use char because int might match the return type of a GCC
1885   builtin and then its argument prototype would still apply.  */
1886#ifdef __cplusplus
1887extern "C"
1888#endif
1889char $2 ();
1890/* The GNU C library defines this for functions which it implements
1891    to always fail with ENOSYS.  Some functions are actually named
1892    something starting with __ and the normal name is an alias.  */
1893#if defined __stub_$2 || defined __stub___$2
1894choke me
1895#endif
1896
1897int
1898main ()
1899{
1900return $2 ();
1901  ;
1902  return 0;
1903}
1904_ACEOF
1905if ac_fn_c_try_link "$LINENO"; then :
1906  eval "$3=yes"
1907else
1908  eval "$3=no"
1909fi
1910rm -f core conftest.err conftest.$ac_objext \
1911    conftest$ac_exeext conftest.$ac_ext
1912fi
1913eval ac_res=\$$3
1914	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1915$as_echo "$ac_res" >&6; }
1916  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917
1918} # ac_fn_c_check_func
1919
1920# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1921# ----------------------------------------------------
1922# Tries to find if the field MEMBER exists in type AGGR, after including
1923# INCLUDES, setting cache variable VAR accordingly.
1924ac_fn_c_check_member ()
1925{
1926  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1928$as_echo_n "checking for $2.$3... " >&6; }
1929if eval \${$4+:} false; then :
1930  $as_echo_n "(cached) " >&6
1931else
1932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933/* end confdefs.h.  */
1934$5
1935int
1936main ()
1937{
1938static $2 ac_aggr;
1939if (ac_aggr.$3)
1940return 0;
1941  ;
1942  return 0;
1943}
1944_ACEOF
1945if ac_fn_c_try_compile "$LINENO"; then :
1946  eval "$4=yes"
1947else
1948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949/* end confdefs.h.  */
1950$5
1951int
1952main ()
1953{
1954static $2 ac_aggr;
1955if (sizeof ac_aggr.$3)
1956return 0;
1957  ;
1958  return 0;
1959}
1960_ACEOF
1961if ac_fn_c_try_compile "$LINENO"; then :
1962  eval "$4=yes"
1963else
1964  eval "$4=no"
1965fi
1966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1967fi
1968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1969fi
1970eval ac_res=\$$4
1971	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1972$as_echo "$ac_res" >&6; }
1973  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1974
1975} # ac_fn_c_check_member
1976
1977# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1978# -------------------------------------------
1979# Tests whether TYPE exists after having included INCLUDES, setting cache
1980# variable VAR accordingly.
1981ac_fn_c_check_type ()
1982{
1983  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1985$as_echo_n "checking for $2... " >&6; }
1986if eval \${$3+:} false; then :
1987  $as_echo_n "(cached) " >&6
1988else
1989  eval "$3=no"
1990  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991/* end confdefs.h.  */
1992$4
1993int
1994main ()
1995{
1996if (sizeof ($2))
1997	 return 0;
1998  ;
1999  return 0;
2000}
2001_ACEOF
2002if ac_fn_c_try_compile "$LINENO"; then :
2003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004/* end confdefs.h.  */
2005$4
2006int
2007main ()
2008{
2009if (sizeof (($2)))
2010	    return 0;
2011  ;
2012  return 0;
2013}
2014_ACEOF
2015if ac_fn_c_try_compile "$LINENO"; then :
2016
2017else
2018  eval "$3=yes"
2019fi
2020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2021fi
2022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2023fi
2024eval ac_res=\$$3
2025	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2026$as_echo "$ac_res" >&6; }
2027  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2028
2029} # ac_fn_c_check_type
2030cat >config.log <<_ACEOF
2031This file contains any messages produced by compilers while
2032running configure, to aid debugging if configure makes a mistake.
2033
2034It was created by xauth $as_me 1.1.1, which was
2035generated by GNU Autoconf 2.69.  Invocation command line was
2036
2037  $ $0 $@
2038
2039_ACEOF
2040exec 5>>config.log
2041{
2042cat <<_ASUNAME
2043## --------- ##
2044## Platform. ##
2045## --------- ##
2046
2047hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2048uname -m = `(uname -m) 2>/dev/null || echo unknown`
2049uname -r = `(uname -r) 2>/dev/null || echo unknown`
2050uname -s = `(uname -s) 2>/dev/null || echo unknown`
2051uname -v = `(uname -v) 2>/dev/null || echo unknown`
2052
2053/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2054/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2055
2056/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2057/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2058/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2059/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2060/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2061/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2062/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2063
2064_ASUNAME
2065
2066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2067for as_dir in $PATH
2068do
2069  IFS=$as_save_IFS
2070  test -z "$as_dir" && as_dir=.
2071    $as_echo "PATH: $as_dir"
2072  done
2073IFS=$as_save_IFS
2074
2075} >&5
2076
2077cat >&5 <<_ACEOF
2078
2079
2080## ----------- ##
2081## Core tests. ##
2082## ----------- ##
2083
2084_ACEOF
2085
2086
2087# Keep a trace of the command line.
2088# Strip out --no-create and --no-recursion so they do not pile up.
2089# Strip out --silent because we don't want to record it for future runs.
2090# Also quote any args containing shell meta-characters.
2091# Make two passes to allow for proper duplicate-argument suppression.
2092ac_configure_args=
2093ac_configure_args0=
2094ac_configure_args1=
2095ac_must_keep_next=false
2096for ac_pass in 1 2
2097do
2098  for ac_arg
2099  do
2100    case $ac_arg in
2101    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2102    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2103    | -silent | --silent | --silen | --sile | --sil)
2104      continue ;;
2105    *\'*)
2106      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2107    esac
2108    case $ac_pass in
2109    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2110    2)
2111      as_fn_append ac_configure_args1 " '$ac_arg'"
2112      if test $ac_must_keep_next = true; then
2113	ac_must_keep_next=false # Got value, back to normal.
2114      else
2115	case $ac_arg in
2116	  *=* | --config-cache | -C | -disable-* | --disable-* \
2117	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2118	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2119	  | -with-* | --with-* | -without-* | --without-* | --x)
2120	    case "$ac_configure_args0 " in
2121	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2122	    esac
2123	    ;;
2124	  -* ) ac_must_keep_next=true ;;
2125	esac
2126      fi
2127      as_fn_append ac_configure_args " '$ac_arg'"
2128      ;;
2129    esac
2130  done
2131done
2132{ ac_configure_args0=; unset ac_configure_args0;}
2133{ ac_configure_args1=; unset ac_configure_args1;}
2134
2135# When interrupted or exit'd, cleanup temporary files, and complete
2136# config.log.  We remove comments because anyway the quotes in there
2137# would cause problems or look ugly.
2138# WARNING: Use '\'' to represent an apostrophe within the trap.
2139# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2140trap 'exit_status=$?
2141  # Save into config.log some information that might help in debugging.
2142  {
2143    echo
2144
2145    $as_echo "## ---------------- ##
2146## Cache variables. ##
2147## ---------------- ##"
2148    echo
2149    # The following way of writing the cache mishandles newlines in values,
2150(
2151  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2152    eval ac_val=\$$ac_var
2153    case $ac_val in #(
2154    *${as_nl}*)
2155      case $ac_var in #(
2156      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2157$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2158      esac
2159      case $ac_var in #(
2160      _ | IFS | as_nl) ;; #(
2161      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2162      *) { eval $ac_var=; unset $ac_var;} ;;
2163      esac ;;
2164    esac
2165  done
2166  (set) 2>&1 |
2167    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2168    *${as_nl}ac_space=\ *)
2169      sed -n \
2170	"s/'\''/'\''\\\\'\'''\''/g;
2171	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2172      ;; #(
2173    *)
2174      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2175      ;;
2176    esac |
2177    sort
2178)
2179    echo
2180
2181    $as_echo "## ----------------- ##
2182## Output variables. ##
2183## ----------------- ##"
2184    echo
2185    for ac_var in $ac_subst_vars
2186    do
2187      eval ac_val=\$$ac_var
2188      case $ac_val in
2189      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2190      esac
2191      $as_echo "$ac_var='\''$ac_val'\''"
2192    done | sort
2193    echo
2194
2195    if test -n "$ac_subst_files"; then
2196      $as_echo "## ------------------- ##
2197## File substitutions. ##
2198## ------------------- ##"
2199      echo
2200      for ac_var in $ac_subst_files
2201      do
2202	eval ac_val=\$$ac_var
2203	case $ac_val in
2204	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2205	esac
2206	$as_echo "$ac_var='\''$ac_val'\''"
2207      done | sort
2208      echo
2209    fi
2210
2211    if test -s confdefs.h; then
2212      $as_echo "## ----------- ##
2213## confdefs.h. ##
2214## ----------- ##"
2215      echo
2216      cat confdefs.h
2217      echo
2218    fi
2219    test "$ac_signal" != 0 &&
2220      $as_echo "$as_me: caught signal $ac_signal"
2221    $as_echo "$as_me: exit $exit_status"
2222  } >&5
2223  rm -f core *.core core.conftest.* &&
2224    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2225    exit $exit_status
2226' 0
2227for ac_signal in 1 2 13 15; do
2228  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2229done
2230ac_signal=0
2231
2232# confdefs.h avoids OS command line length limits that DEFS can exceed.
2233rm -f -r conftest* confdefs.h
2234
2235$as_echo "/* confdefs.h */" > confdefs.h
2236
2237# Predefined preprocessor variables.
2238
2239cat >>confdefs.h <<_ACEOF
2240#define PACKAGE_NAME "$PACKAGE_NAME"
2241_ACEOF
2242
2243cat >>confdefs.h <<_ACEOF
2244#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2245_ACEOF
2246
2247cat >>confdefs.h <<_ACEOF
2248#define PACKAGE_VERSION "$PACKAGE_VERSION"
2249_ACEOF
2250
2251cat >>confdefs.h <<_ACEOF
2252#define PACKAGE_STRING "$PACKAGE_STRING"
2253_ACEOF
2254
2255cat >>confdefs.h <<_ACEOF
2256#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2257_ACEOF
2258
2259cat >>confdefs.h <<_ACEOF
2260#define PACKAGE_URL "$PACKAGE_URL"
2261_ACEOF
2262
2263
2264# Let the site file select an alternate cache file if it wants to.
2265# Prefer an explicitly selected file to automatically selected ones.
2266ac_site_file1=NONE
2267ac_site_file2=NONE
2268if test -n "$CONFIG_SITE"; then
2269  # We do not want a PATH search for config.site.
2270  case $CONFIG_SITE in #((
2271    -*)  ac_site_file1=./$CONFIG_SITE;;
2272    */*) ac_site_file1=$CONFIG_SITE;;
2273    *)   ac_site_file1=./$CONFIG_SITE;;
2274  esac
2275elif test "x$prefix" != xNONE; then
2276  ac_site_file1=$prefix/share/config.site
2277  ac_site_file2=$prefix/etc/config.site
2278else
2279  ac_site_file1=$ac_default_prefix/share/config.site
2280  ac_site_file2=$ac_default_prefix/etc/config.site
2281fi
2282for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2283do
2284  test "x$ac_site_file" = xNONE && continue
2285  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2286    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2287$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2288    sed 's/^/| /' "$ac_site_file" >&5
2289    . "$ac_site_file" \
2290      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2291$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2292as_fn_error $? "failed to load site script $ac_site_file
2293See \`config.log' for more details" "$LINENO" 5; }
2294  fi
2295done
2296
2297if test -r "$cache_file"; then
2298  # Some versions of bash will fail to source /dev/null (special files
2299  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2300  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2301    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2302$as_echo "$as_me: loading cache $cache_file" >&6;}
2303    case $cache_file in
2304      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2305      *)                      . "./$cache_file";;
2306    esac
2307  fi
2308else
2309  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2310$as_echo "$as_me: creating cache $cache_file" >&6;}
2311  >$cache_file
2312fi
2313
2314# Check that the precious variables saved in the cache have kept the same
2315# value.
2316ac_cache_corrupted=false
2317for ac_var in $ac_precious_vars; do
2318  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2319  eval ac_new_set=\$ac_env_${ac_var}_set
2320  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2321  eval ac_new_val=\$ac_env_${ac_var}_value
2322  case $ac_old_set,$ac_new_set in
2323    set,)
2324      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2325$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2326      ac_cache_corrupted=: ;;
2327    ,set)
2328      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2329$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2330      ac_cache_corrupted=: ;;
2331    ,);;
2332    *)
2333      if test "x$ac_old_val" != "x$ac_new_val"; then
2334	# differences in whitespace do not lead to failure.
2335	ac_old_val_w=`echo x $ac_old_val`
2336	ac_new_val_w=`echo x $ac_new_val`
2337	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2338	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2339$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2340	  ac_cache_corrupted=:
2341	else
2342	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2343$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2344	  eval $ac_var=\$ac_old_val
2345	fi
2346	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2347$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2348	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2349$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2350      fi;;
2351  esac
2352  # Pass precious variables to config.status.
2353  if test "$ac_new_set" = set; then
2354    case $ac_new_val in
2355    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2356    *) ac_arg=$ac_var=$ac_new_val ;;
2357    esac
2358    case " $ac_configure_args " in
2359      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2360      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2361    esac
2362  fi
2363done
2364if $ac_cache_corrupted; then
2365  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2366$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2367  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2368$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2369  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2370fi
2371## -------------------- ##
2372## Main body of script. ##
2373## -------------------- ##
2374
2375ac_ext=c
2376ac_cpp='$CPP $CPPFLAGS'
2377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2379ac_compiler_gnu=$ac_cv_c_compiler_gnu
2380
2381
2382am__api_version='1.16'
2383
2384ac_aux_dir=
2385for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2386  if test -f "$ac_dir/install-sh"; then
2387    ac_aux_dir=$ac_dir
2388    ac_install_sh="$ac_aux_dir/install-sh -c"
2389    break
2390  elif test -f "$ac_dir/install.sh"; then
2391    ac_aux_dir=$ac_dir
2392    ac_install_sh="$ac_aux_dir/install.sh -c"
2393    break
2394  elif test -f "$ac_dir/shtool"; then
2395    ac_aux_dir=$ac_dir
2396    ac_install_sh="$ac_aux_dir/shtool install -c"
2397    break
2398  fi
2399done
2400if test -z "$ac_aux_dir"; then
2401  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2402fi
2403
2404# These three variables are undocumented and unsupported,
2405# and are intended to be withdrawn in a future Autoconf release.
2406# They can cause serious problems if a builder's source tree is in a directory
2407# whose full name contains unusual characters.
2408ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2409ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2410ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2411
2412
2413# Find a good install program.  We prefer a C program (faster),
2414# so one script is as good as another.  But avoid the broken or
2415# incompatible versions:
2416# SysV /etc/install, /usr/sbin/install
2417# SunOS /usr/etc/install
2418# IRIX /sbin/install
2419# AIX /bin/install
2420# AmigaOS /C/install, which installs bootblocks on floppy discs
2421# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2422# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2423# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2424# OS/2's system install, which has a completely different semantic
2425# ./install, which can be erroneously created by make from ./install.sh.
2426# Reject install programs that cannot install multiple files.
2427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2428$as_echo_n "checking for a BSD-compatible install... " >&6; }
2429if test -z "$INSTALL"; then
2430if ${ac_cv_path_install+:} false; then :
2431  $as_echo_n "(cached) " >&6
2432else
2433  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434for as_dir in $PATH
2435do
2436  IFS=$as_save_IFS
2437  test -z "$as_dir" && as_dir=.
2438    # Account for people who put trailing slashes in PATH elements.
2439case $as_dir/ in #((
2440  ./ | .// | /[cC]/* | \
2441  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2442  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2443  /usr/ucb/* ) ;;
2444  *)
2445    # OSF1 and SCO ODT 3.0 have their own names for install.
2446    # Don't use installbsd from OSF since it installs stuff as root
2447    # by default.
2448    for ac_prog in ginstall scoinst install; do
2449      for ac_exec_ext in '' $ac_executable_extensions; do
2450	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2451	  if test $ac_prog = install &&
2452	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2453	    # AIX install.  It has an incompatible calling convention.
2454	    :
2455	  elif test $ac_prog = install &&
2456	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2457	    # program-specific install script used by HP pwplus--don't use.
2458	    :
2459	  else
2460	    rm -rf conftest.one conftest.two conftest.dir
2461	    echo one > conftest.one
2462	    echo two > conftest.two
2463	    mkdir conftest.dir
2464	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2465	      test -s conftest.one && test -s conftest.two &&
2466	      test -s conftest.dir/conftest.one &&
2467	      test -s conftest.dir/conftest.two
2468	    then
2469	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2470	      break 3
2471	    fi
2472	  fi
2473	fi
2474      done
2475    done
2476    ;;
2477esac
2478
2479  done
2480IFS=$as_save_IFS
2481
2482rm -rf conftest.one conftest.two conftest.dir
2483
2484fi
2485  if test "${ac_cv_path_install+set}" = set; then
2486    INSTALL=$ac_cv_path_install
2487  else
2488    # As a last resort, use the slow shell script.  Don't cache a
2489    # value for INSTALL within a source directory, because that will
2490    # break other packages using the cache if that directory is
2491    # removed, or if the value is a relative name.
2492    INSTALL=$ac_install_sh
2493  fi
2494fi
2495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2496$as_echo "$INSTALL" >&6; }
2497
2498# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2499# It thinks the first close brace ends the variable substitution.
2500test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2501
2502test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2503
2504test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2505
2506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2507$as_echo_n "checking whether build environment is sane... " >&6; }
2508# Reject unsafe characters in $srcdir or the absolute working directory
2509# name.  Accept space and tab only in the latter.
2510am_lf='
2511'
2512case `pwd` in
2513  *[\\\"\#\$\&\'\`$am_lf]*)
2514    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2515esac
2516case $srcdir in
2517  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2518    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2519esac
2520
2521# Do 'set' in a subshell so we don't clobber the current shell's
2522# arguments.  Must try -L first in case configure is actually a
2523# symlink; some systems play weird games with the mod time of symlinks
2524# (eg FreeBSD returns the mod time of the symlink's containing
2525# directory).
2526if (
2527   am_has_slept=no
2528   for am_try in 1 2; do
2529     echo "timestamp, slept: $am_has_slept" > conftest.file
2530     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2531     if test "$*" = "X"; then
2532	# -L didn't work.
2533	set X `ls -t "$srcdir/configure" conftest.file`
2534     fi
2535     if test "$*" != "X $srcdir/configure conftest.file" \
2536	&& test "$*" != "X conftest.file $srcdir/configure"; then
2537
2538	# If neither matched, then we have a broken ls.  This can happen
2539	# if, for instance, CONFIG_SHELL is bash and it inherits a
2540	# broken ls alias from the environment.  This has actually
2541	# happened.  Such a system could not be considered "sane".
2542	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2543  alias in your environment" "$LINENO" 5
2544     fi
2545     if test "$2" = conftest.file || test $am_try -eq 2; then
2546       break
2547     fi
2548     # Just in case.
2549     sleep 1
2550     am_has_slept=yes
2551   done
2552   test "$2" = conftest.file
2553   )
2554then
2555   # Ok.
2556   :
2557else
2558   as_fn_error $? "newly created file is older than distributed files!
2559Check your system clock" "$LINENO" 5
2560fi
2561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2562$as_echo "yes" >&6; }
2563# If we didn't sleep, we still need to ensure time stamps of config.status and
2564# generated files are strictly newer.
2565am_sleep_pid=
2566if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2567  ( sleep 1 ) &
2568  am_sleep_pid=$!
2569fi
2570
2571rm -f conftest.file
2572
2573test "$program_prefix" != NONE &&
2574  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2575# Use a double $ so make ignores it.
2576test "$program_suffix" != NONE &&
2577  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2578# Double any \ or $.
2579# By default was `s,x,x', remove it if useless.
2580ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2581program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2582
2583# Expand $ac_aux_dir to an absolute path.
2584am_aux_dir=`cd "$ac_aux_dir" && pwd`
2585
2586if test x"${MISSING+set}" != xset; then
2587  MISSING="\${SHELL} '$am_aux_dir/missing'"
2588fi
2589# Use eval to expand $SHELL
2590if eval "$MISSING --is-lightweight"; then
2591  am_missing_run="$MISSING "
2592else
2593  am_missing_run=
2594  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2595$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2596fi
2597
2598if test x"${install_sh+set}" != xset; then
2599  case $am_aux_dir in
2600  *\ * | *\	*)
2601    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2602  *)
2603    install_sh="\${SHELL} $am_aux_dir/install-sh"
2604  esac
2605fi
2606
2607# Installed binaries are usually stripped using 'strip' when the user
2608# run "make install-strip".  However 'strip' might not be the right
2609# tool to use in cross-compilation environments, therefore Automake
2610# will honor the 'STRIP' environment variable to overrule this program.
2611if test "$cross_compiling" != no; then
2612  if test -n "$ac_tool_prefix"; then
2613  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2614set dummy ${ac_tool_prefix}strip; ac_word=$2
2615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2616$as_echo_n "checking for $ac_word... " >&6; }
2617if ${ac_cv_prog_STRIP+:} false; then :
2618  $as_echo_n "(cached) " >&6
2619else
2620  if test -n "$STRIP"; then
2621  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2622else
2623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624for as_dir in $PATH
2625do
2626  IFS=$as_save_IFS
2627  test -z "$as_dir" && as_dir=.
2628    for ac_exec_ext in '' $ac_executable_extensions; do
2629  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2630    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2631    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2632    break 2
2633  fi
2634done
2635  done
2636IFS=$as_save_IFS
2637
2638fi
2639fi
2640STRIP=$ac_cv_prog_STRIP
2641if test -n "$STRIP"; then
2642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2643$as_echo "$STRIP" >&6; }
2644else
2645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2646$as_echo "no" >&6; }
2647fi
2648
2649
2650fi
2651if test -z "$ac_cv_prog_STRIP"; then
2652  ac_ct_STRIP=$STRIP
2653  # Extract the first word of "strip", so it can be a program name with args.
2654set dummy strip; ac_word=$2
2655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2656$as_echo_n "checking for $ac_word... " >&6; }
2657if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2658  $as_echo_n "(cached) " >&6
2659else
2660  if test -n "$ac_ct_STRIP"; then
2661  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2662else
2663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664for as_dir in $PATH
2665do
2666  IFS=$as_save_IFS
2667  test -z "$as_dir" && as_dir=.
2668    for ac_exec_ext in '' $ac_executable_extensions; do
2669  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2670    ac_cv_prog_ac_ct_STRIP="strip"
2671    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2672    break 2
2673  fi
2674done
2675  done
2676IFS=$as_save_IFS
2677
2678fi
2679fi
2680ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2681if test -n "$ac_ct_STRIP"; then
2682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2683$as_echo "$ac_ct_STRIP" >&6; }
2684else
2685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2686$as_echo "no" >&6; }
2687fi
2688
2689  if test "x$ac_ct_STRIP" = x; then
2690    STRIP=":"
2691  else
2692    case $cross_compiling:$ac_tool_warned in
2693yes:)
2694{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2695$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2696ac_tool_warned=yes ;;
2697esac
2698    STRIP=$ac_ct_STRIP
2699  fi
2700else
2701  STRIP="$ac_cv_prog_STRIP"
2702fi
2703
2704fi
2705INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2706
2707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2708$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2709if test -z "$MKDIR_P"; then
2710  if ${ac_cv_path_mkdir+:} false; then :
2711  $as_echo_n "(cached) " >&6
2712else
2713  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2715do
2716  IFS=$as_save_IFS
2717  test -z "$as_dir" && as_dir=.
2718    for ac_prog in mkdir gmkdir; do
2719	 for ac_exec_ext in '' $ac_executable_extensions; do
2720	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2721	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2722	     'mkdir (GNU coreutils) '* | \
2723	     'mkdir (coreutils) '* | \
2724	     'mkdir (fileutils) '4.1*)
2725	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2726	       break 3;;
2727	   esac
2728	 done
2729       done
2730  done
2731IFS=$as_save_IFS
2732
2733fi
2734
2735  test -d ./--version && rmdir ./--version
2736  if test "${ac_cv_path_mkdir+set}" = set; then
2737    MKDIR_P="$ac_cv_path_mkdir -p"
2738  else
2739    # As a last resort, use the slow shell script.  Don't cache a
2740    # value for MKDIR_P within a source directory, because that will
2741    # break other packages using the cache if that directory is
2742    # removed, or if the value is a relative name.
2743    MKDIR_P="$ac_install_sh -d"
2744  fi
2745fi
2746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2747$as_echo "$MKDIR_P" >&6; }
2748
2749for ac_prog in gawk mawk nawk awk
2750do
2751  # Extract the first word of "$ac_prog", so it can be a program name with args.
2752set dummy $ac_prog; ac_word=$2
2753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2754$as_echo_n "checking for $ac_word... " >&6; }
2755if ${ac_cv_prog_AWK+:} false; then :
2756  $as_echo_n "(cached) " >&6
2757else
2758  if test -n "$AWK"; then
2759  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2760else
2761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762for as_dir in $PATH
2763do
2764  IFS=$as_save_IFS
2765  test -z "$as_dir" && as_dir=.
2766    for ac_exec_ext in '' $ac_executable_extensions; do
2767  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2768    ac_cv_prog_AWK="$ac_prog"
2769    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2770    break 2
2771  fi
2772done
2773  done
2774IFS=$as_save_IFS
2775
2776fi
2777fi
2778AWK=$ac_cv_prog_AWK
2779if test -n "$AWK"; then
2780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2781$as_echo "$AWK" >&6; }
2782else
2783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784$as_echo "no" >&6; }
2785fi
2786
2787
2788  test -n "$AWK" && break
2789done
2790
2791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2792$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2793set x ${MAKE-make}
2794ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2795if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2796  $as_echo_n "(cached) " >&6
2797else
2798  cat >conftest.make <<\_ACEOF
2799SHELL = /bin/sh
2800all:
2801	@echo '@@@%%%=$(MAKE)=@@@%%%'
2802_ACEOF
2803# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2804case `${MAKE-make} -f conftest.make 2>/dev/null` in
2805  *@@@%%%=?*=@@@%%%*)
2806    eval ac_cv_prog_make_${ac_make}_set=yes;;
2807  *)
2808    eval ac_cv_prog_make_${ac_make}_set=no;;
2809esac
2810rm -f conftest.make
2811fi
2812if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2814$as_echo "yes" >&6; }
2815  SET_MAKE=
2816else
2817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2818$as_echo "no" >&6; }
2819  SET_MAKE="MAKE=${MAKE-make}"
2820fi
2821
2822rm -rf .tst 2>/dev/null
2823mkdir .tst 2>/dev/null
2824if test -d .tst; then
2825  am__leading_dot=.
2826else
2827  am__leading_dot=_
2828fi
2829rmdir .tst 2>/dev/null
2830
2831# Check whether --enable-silent-rules was given.
2832if test "${enable_silent_rules+set}" = set; then :
2833  enableval=$enable_silent_rules;
2834fi
2835
2836case $enable_silent_rules in # (((
2837  yes) AM_DEFAULT_VERBOSITY=0;;
2838   no) AM_DEFAULT_VERBOSITY=1;;
2839    *) AM_DEFAULT_VERBOSITY=1;;
2840esac
2841am_make=${MAKE-make}
2842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2843$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2844if ${am_cv_make_support_nested_variables+:} false; then :
2845  $as_echo_n "(cached) " >&6
2846else
2847  if $as_echo 'TRUE=$(BAR$(V))
2848BAR0=false
2849BAR1=true
2850V=1
2851am__doit:
2852	@$(TRUE)
2853.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2854  am_cv_make_support_nested_variables=yes
2855else
2856  am_cv_make_support_nested_variables=no
2857fi
2858fi
2859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2860$as_echo "$am_cv_make_support_nested_variables" >&6; }
2861if test $am_cv_make_support_nested_variables = yes; then
2862    AM_V='$(V)'
2863  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2864else
2865  AM_V=$AM_DEFAULT_VERBOSITY
2866  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2867fi
2868AM_BACKSLASH='\'
2869
2870if test "`cd $srcdir && pwd`" != "`pwd`"; then
2871  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2872  # is not polluted with repeated "-I."
2873  am__isrc=' -I$(srcdir)'
2874  # test to see if srcdir already configured
2875  if test -f $srcdir/config.status; then
2876    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2877  fi
2878fi
2879
2880# test whether we have cygpath
2881if test -z "$CYGPATH_W"; then
2882  if (cygpath --version) >/dev/null 2>/dev/null; then
2883    CYGPATH_W='cygpath -w'
2884  else
2885    CYGPATH_W=echo
2886  fi
2887fi
2888
2889
2890# Define the identity of the package.
2891 PACKAGE='xauth'
2892 VERSION='1.1.1'
2893
2894
2895cat >>confdefs.h <<_ACEOF
2896#define PACKAGE "$PACKAGE"
2897_ACEOF
2898
2899
2900cat >>confdefs.h <<_ACEOF
2901#define VERSION "$VERSION"
2902_ACEOF
2903
2904# Some tools Automake needs.
2905
2906ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2907
2908
2909AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2910
2911
2912AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2913
2914
2915AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2916
2917
2918MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2919
2920# For better backward compatibility.  To be removed once Automake 1.9.x
2921# dies out for good.  For more background, see:
2922# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2923# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2924mkdir_p='$(MKDIR_P)'
2925
2926# We need awk for the "check" target (and possibly the TAP driver).  The
2927# system "awk" is bad on some platforms.
2928# Always define AMTAR for backward compatibility.  Yes, it's still used
2929# in the wild :-(  We should find a proper way to deprecate it ...
2930AMTAR='$${TAR-tar}'
2931
2932
2933# We'll loop over all known methods to create a tar archive until one works.
2934_am_tools='gnutar  pax cpio none'
2935
2936am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2937
2938
2939
2940
2941
2942
2943# POSIX will say in a future version that running "rm -f" with no argument
2944# is OK; and we want to be able to make that assumption in our Makefile
2945# recipes.  So use an aggressive probe to check that the usage we want is
2946# actually supported "in the wild" to an acceptable degree.
2947# See automake bug#10828.
2948# To make any issue more visible, cause the running configure to be aborted
2949# by default if the 'rm' program in use doesn't match our expectations; the
2950# user can still override this though.
2951if rm -f && rm -fr && rm -rf; then : OK; else
2952  cat >&2 <<'END'
2953Oops!
2954
2955Your 'rm' program seems unable to run without file operands specified
2956on the command line, even when the '-f' option is present.  This is contrary
2957to the behaviour of most rm programs out there, and not conforming with
2958the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2959
2960Please tell bug-automake@gnu.org about your system, including the value
2961of your $PATH and any error possibly output before this message.  This
2962can help us improve future automake versions.
2963
2964END
2965  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2966    echo 'Configuration will proceed anyway, since you have set the' >&2
2967    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2968    echo >&2
2969  else
2970    cat >&2 <<'END'
2971Aborting the configuration process, to ensure you take notice of the issue.
2972
2973You can download and install GNU coreutils to get an 'rm' implementation
2974that behaves properly: <https://www.gnu.org/software/coreutils/>.
2975
2976If you want to complete the configuration process using your problematic
2977'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2978to "yes", and re-run configure.
2979
2980END
2981    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2982  fi
2983fi
2984
2985
2986ac_config_headers="$ac_config_headers config.h"
2987
2988
2989# Set common system defines for POSIX extensions, such as _GNU_SOURCE
2990# Must be called before any macros that run the compiler (like
2991# AC_PROG_LIBTOOL) to avoid autoconf errors.
2992DEPDIR="${am__leading_dot}deps"
2993
2994ac_config_commands="$ac_config_commands depfiles"
2995
2996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
2997$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
2998cat > confinc.mk << 'END'
2999am__doit:
3000	@echo this is the am__doit target >confinc.out
3001.PHONY: am__doit
3002END
3003am__include="#"
3004am__quote=
3005# BSD make does it like this.
3006echo '.include "confinc.mk" # ignored' > confmf.BSD
3007# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3008echo 'include confinc.mk # ignored' > confmf.GNU
3009_am_result=no
3010for s in GNU BSD; do
3011  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3012   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3013   ac_status=$?
3014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015   (exit $ac_status); }
3016  case $?:`cat confinc.out 2>/dev/null` in #(
3017  '0:this is the am__doit target') :
3018    case $s in #(
3019  BSD) :
3020    am__include='.include' am__quote='"' ;; #(
3021  *) :
3022    am__include='include' am__quote='' ;;
3023esac ;; #(
3024  *) :
3025     ;;
3026esac
3027  if test "$am__include" != "#"; then
3028    _am_result="yes ($s style)"
3029    break
3030  fi
3031done
3032rm -f confinc.* confmf.*
3033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3034$as_echo "${_am_result}" >&6; }
3035
3036# Check whether --enable-dependency-tracking was given.
3037if test "${enable_dependency_tracking+set}" = set; then :
3038  enableval=$enable_dependency_tracking;
3039fi
3040
3041if test "x$enable_dependency_tracking" != xno; then
3042  am_depcomp="$ac_aux_dir/depcomp"
3043  AMDEPBACKSLASH='\'
3044  am__nodep='_no'
3045fi
3046 if test "x$enable_dependency_tracking" != xno; then
3047  AMDEP_TRUE=
3048  AMDEP_FALSE='#'
3049else
3050  AMDEP_TRUE='#'
3051  AMDEP_FALSE=
3052fi
3053
3054
3055ac_ext=c
3056ac_cpp='$CPP $CPPFLAGS'
3057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3059ac_compiler_gnu=$ac_cv_c_compiler_gnu
3060if test -n "$ac_tool_prefix"; then
3061  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3062set dummy ${ac_tool_prefix}gcc; ac_word=$2
3063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064$as_echo_n "checking for $ac_word... " >&6; }
3065if ${ac_cv_prog_CC+:} false; then :
3066  $as_echo_n "(cached) " >&6
3067else
3068  if test -n "$CC"; then
3069  ac_cv_prog_CC="$CC" # Let the user override the test.
3070else
3071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072for as_dir in $PATH
3073do
3074  IFS=$as_save_IFS
3075  test -z "$as_dir" && as_dir=.
3076    for ac_exec_ext in '' $ac_executable_extensions; do
3077  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3079    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3080    break 2
3081  fi
3082done
3083  done
3084IFS=$as_save_IFS
3085
3086fi
3087fi
3088CC=$ac_cv_prog_CC
3089if test -n "$CC"; then
3090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3091$as_echo "$CC" >&6; }
3092else
3093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094$as_echo "no" >&6; }
3095fi
3096
3097
3098fi
3099if test -z "$ac_cv_prog_CC"; then
3100  ac_ct_CC=$CC
3101  # Extract the first word of "gcc", so it can be a program name with args.
3102set dummy gcc; ac_word=$2
3103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3104$as_echo_n "checking for $ac_word... " >&6; }
3105if ${ac_cv_prog_ac_ct_CC+:} false; then :
3106  $as_echo_n "(cached) " >&6
3107else
3108  if test -n "$ac_ct_CC"; then
3109  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3110else
3111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112for as_dir in $PATH
3113do
3114  IFS=$as_save_IFS
3115  test -z "$as_dir" && as_dir=.
3116    for ac_exec_ext in '' $ac_executable_extensions; do
3117  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3118    ac_cv_prog_ac_ct_CC="gcc"
3119    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3120    break 2
3121  fi
3122done
3123  done
3124IFS=$as_save_IFS
3125
3126fi
3127fi
3128ac_ct_CC=$ac_cv_prog_ac_ct_CC
3129if test -n "$ac_ct_CC"; then
3130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3131$as_echo "$ac_ct_CC" >&6; }
3132else
3133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3134$as_echo "no" >&6; }
3135fi
3136
3137  if test "x$ac_ct_CC" = x; then
3138    CC=""
3139  else
3140    case $cross_compiling:$ac_tool_warned in
3141yes:)
3142{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3143$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3144ac_tool_warned=yes ;;
3145esac
3146    CC=$ac_ct_CC
3147  fi
3148else
3149  CC="$ac_cv_prog_CC"
3150fi
3151
3152if test -z "$CC"; then
3153          if test -n "$ac_tool_prefix"; then
3154    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3155set dummy ${ac_tool_prefix}cc; ac_word=$2
3156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3157$as_echo_n "checking for $ac_word... " >&6; }
3158if ${ac_cv_prog_CC+:} false; then :
3159  $as_echo_n "(cached) " >&6
3160else
3161  if test -n "$CC"; then
3162  ac_cv_prog_CC="$CC" # Let the user override the test.
3163else
3164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165for as_dir in $PATH
3166do
3167  IFS=$as_save_IFS
3168  test -z "$as_dir" && as_dir=.
3169    for ac_exec_ext in '' $ac_executable_extensions; do
3170  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3171    ac_cv_prog_CC="${ac_tool_prefix}cc"
3172    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3173    break 2
3174  fi
3175done
3176  done
3177IFS=$as_save_IFS
3178
3179fi
3180fi
3181CC=$ac_cv_prog_CC
3182if test -n "$CC"; then
3183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3184$as_echo "$CC" >&6; }
3185else
3186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187$as_echo "no" >&6; }
3188fi
3189
3190
3191  fi
3192fi
3193if test -z "$CC"; then
3194  # Extract the first word of "cc", so it can be a program name with args.
3195set dummy cc; ac_word=$2
3196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3197$as_echo_n "checking for $ac_word... " >&6; }
3198if ${ac_cv_prog_CC+:} false; then :
3199  $as_echo_n "(cached) " >&6
3200else
3201  if test -n "$CC"; then
3202  ac_cv_prog_CC="$CC" # Let the user override the test.
3203else
3204  ac_prog_rejected=no
3205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206for as_dir in $PATH
3207do
3208  IFS=$as_save_IFS
3209  test -z "$as_dir" && as_dir=.
3210    for ac_exec_ext in '' $ac_executable_extensions; do
3211  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3212    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3213       ac_prog_rejected=yes
3214       continue
3215     fi
3216    ac_cv_prog_CC="cc"
3217    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3218    break 2
3219  fi
3220done
3221  done
3222IFS=$as_save_IFS
3223
3224if test $ac_prog_rejected = yes; then
3225  # We found a bogon in the path, so make sure we never use it.
3226  set dummy $ac_cv_prog_CC
3227  shift
3228  if test $# != 0; then
3229    # We chose a different compiler from the bogus one.
3230    # However, it has the same basename, so the bogon will be chosen
3231    # first if we set CC to just the basename; use the full file name.
3232    shift
3233    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3234  fi
3235fi
3236fi
3237fi
3238CC=$ac_cv_prog_CC
3239if test -n "$CC"; then
3240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3241$as_echo "$CC" >&6; }
3242else
3243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244$as_echo "no" >&6; }
3245fi
3246
3247
3248fi
3249if test -z "$CC"; then
3250  if test -n "$ac_tool_prefix"; then
3251  for ac_prog in cl.exe
3252  do
3253    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3254set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3256$as_echo_n "checking for $ac_word... " >&6; }
3257if ${ac_cv_prog_CC+:} false; then :
3258  $as_echo_n "(cached) " >&6
3259else
3260  if test -n "$CC"; then
3261  ac_cv_prog_CC="$CC" # Let the user override the test.
3262else
3263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264for as_dir in $PATH
3265do
3266  IFS=$as_save_IFS
3267  test -z "$as_dir" && as_dir=.
3268    for ac_exec_ext in '' $ac_executable_extensions; do
3269  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3270    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3271    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3272    break 2
3273  fi
3274done
3275  done
3276IFS=$as_save_IFS
3277
3278fi
3279fi
3280CC=$ac_cv_prog_CC
3281if test -n "$CC"; then
3282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3283$as_echo "$CC" >&6; }
3284else
3285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286$as_echo "no" >&6; }
3287fi
3288
3289
3290    test -n "$CC" && break
3291  done
3292fi
3293if test -z "$CC"; then
3294  ac_ct_CC=$CC
3295  for ac_prog in cl.exe
3296do
3297  # Extract the first word of "$ac_prog", so it can be a program name with args.
3298set dummy $ac_prog; ac_word=$2
3299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3300$as_echo_n "checking for $ac_word... " >&6; }
3301if ${ac_cv_prog_ac_ct_CC+:} false; then :
3302  $as_echo_n "(cached) " >&6
3303else
3304  if test -n "$ac_ct_CC"; then
3305  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3306else
3307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3308for as_dir in $PATH
3309do
3310  IFS=$as_save_IFS
3311  test -z "$as_dir" && as_dir=.
3312    for ac_exec_ext in '' $ac_executable_extensions; do
3313  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3314    ac_cv_prog_ac_ct_CC="$ac_prog"
3315    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3316    break 2
3317  fi
3318done
3319  done
3320IFS=$as_save_IFS
3321
3322fi
3323fi
3324ac_ct_CC=$ac_cv_prog_ac_ct_CC
3325if test -n "$ac_ct_CC"; then
3326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3327$as_echo "$ac_ct_CC" >&6; }
3328else
3329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330$as_echo "no" >&6; }
3331fi
3332
3333
3334  test -n "$ac_ct_CC" && break
3335done
3336
3337  if test "x$ac_ct_CC" = x; then
3338    CC=""
3339  else
3340    case $cross_compiling:$ac_tool_warned in
3341yes:)
3342{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3343$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3344ac_tool_warned=yes ;;
3345esac
3346    CC=$ac_ct_CC
3347  fi
3348fi
3349
3350fi
3351
3352
3353test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3354$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3355as_fn_error $? "no acceptable C compiler found in \$PATH
3356See \`config.log' for more details" "$LINENO" 5; }
3357
3358# Provide some information about the compiler.
3359$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3360set X $ac_compile
3361ac_compiler=$2
3362for ac_option in --version -v -V -qversion; do
3363  { { ac_try="$ac_compiler $ac_option >&5"
3364case "(($ac_try" in
3365  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366  *) ac_try_echo=$ac_try;;
3367esac
3368eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3369$as_echo "$ac_try_echo"; } >&5
3370  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3371  ac_status=$?
3372  if test -s conftest.err; then
3373    sed '10a\
3374... rest of stderr output deleted ...
3375         10q' conftest.err >conftest.er1
3376    cat conftest.er1 >&5
3377  fi
3378  rm -f conftest.er1 conftest.err
3379  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3380  test $ac_status = 0; }
3381done
3382
3383cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384/* end confdefs.h.  */
3385
3386int
3387main ()
3388{
3389
3390  ;
3391  return 0;
3392}
3393_ACEOF
3394ac_clean_files_save=$ac_clean_files
3395ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3396# Try to create an executable without -o first, disregard a.out.
3397# It will help us diagnose broken compilers, and finding out an intuition
3398# of exeext.
3399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3400$as_echo_n "checking whether the C compiler works... " >&6; }
3401ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3402
3403# The possible output files:
3404ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3405
3406ac_rmfiles=
3407for ac_file in $ac_files
3408do
3409  case $ac_file in
3410    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3411    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3412  esac
3413done
3414rm -f $ac_rmfiles
3415
3416if { { ac_try="$ac_link_default"
3417case "(($ac_try" in
3418  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419  *) ac_try_echo=$ac_try;;
3420esac
3421eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3422$as_echo "$ac_try_echo"; } >&5
3423  (eval "$ac_link_default") 2>&5
3424  ac_status=$?
3425  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3426  test $ac_status = 0; }; then :
3427  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3428# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3429# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3430# so that the user can short-circuit this test for compilers unknown to
3431# Autoconf.
3432for ac_file in $ac_files ''
3433do
3434  test -f "$ac_file" || continue
3435  case $ac_file in
3436    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3437	;;
3438    [ab].out )
3439	# We found the default executable, but exeext='' is most
3440	# certainly right.
3441	break;;
3442    *.* )
3443	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3444	then :; else
3445	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3446	fi
3447	# We set ac_cv_exeext here because the later test for it is not
3448	# safe: cross compilers may not add the suffix if given an `-o'
3449	# argument, so we may need to know it at that point already.
3450	# Even if this section looks crufty: it has the advantage of
3451	# actually working.
3452	break;;
3453    * )
3454	break;;
3455  esac
3456done
3457test "$ac_cv_exeext" = no && ac_cv_exeext=
3458
3459else
3460  ac_file=''
3461fi
3462if test -z "$ac_file"; then :
3463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3464$as_echo "no" >&6; }
3465$as_echo "$as_me: failed program was:" >&5
3466sed 's/^/| /' conftest.$ac_ext >&5
3467
3468{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3469$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3470as_fn_error 77 "C compiler cannot create executables
3471See \`config.log' for more details" "$LINENO" 5; }
3472else
3473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3474$as_echo "yes" >&6; }
3475fi
3476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3477$as_echo_n "checking for C compiler default output file name... " >&6; }
3478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3479$as_echo "$ac_file" >&6; }
3480ac_exeext=$ac_cv_exeext
3481
3482rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3483ac_clean_files=$ac_clean_files_save
3484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3485$as_echo_n "checking for suffix of executables... " >&6; }
3486if { { ac_try="$ac_link"
3487case "(($ac_try" in
3488  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489  *) ac_try_echo=$ac_try;;
3490esac
3491eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3492$as_echo "$ac_try_echo"; } >&5
3493  (eval "$ac_link") 2>&5
3494  ac_status=$?
3495  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3496  test $ac_status = 0; }; then :
3497  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3498# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3499# work properly (i.e., refer to `conftest.exe'), while it won't with
3500# `rm'.
3501for ac_file in conftest.exe conftest conftest.*; do
3502  test -f "$ac_file" || continue
3503  case $ac_file in
3504    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3505    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3506	  break;;
3507    * ) break;;
3508  esac
3509done
3510else
3511  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3512$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3513as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3514See \`config.log' for more details" "$LINENO" 5; }
3515fi
3516rm -f conftest conftest$ac_cv_exeext
3517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3518$as_echo "$ac_cv_exeext" >&6; }
3519
3520rm -f conftest.$ac_ext
3521EXEEXT=$ac_cv_exeext
3522ac_exeext=$EXEEXT
3523cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3524/* end confdefs.h.  */
3525#include <stdio.h>
3526int
3527main ()
3528{
3529FILE *f = fopen ("conftest.out", "w");
3530 return ferror (f) || fclose (f) != 0;
3531
3532  ;
3533  return 0;
3534}
3535_ACEOF
3536ac_clean_files="$ac_clean_files conftest.out"
3537# Check that the compiler produces executables we can run.  If not, either
3538# the compiler is broken, or we cross compile.
3539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3540$as_echo_n "checking whether we are cross compiling... " >&6; }
3541if test "$cross_compiling" != yes; then
3542  { { ac_try="$ac_link"
3543case "(($ac_try" in
3544  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3545  *) ac_try_echo=$ac_try;;
3546esac
3547eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3548$as_echo "$ac_try_echo"; } >&5
3549  (eval "$ac_link") 2>&5
3550  ac_status=$?
3551  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3552  test $ac_status = 0; }
3553  if { ac_try='./conftest$ac_cv_exeext'
3554  { { case "(($ac_try" in
3555  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556  *) ac_try_echo=$ac_try;;
3557esac
3558eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3559$as_echo "$ac_try_echo"; } >&5
3560  (eval "$ac_try") 2>&5
3561  ac_status=$?
3562  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3563  test $ac_status = 0; }; }; then
3564    cross_compiling=no
3565  else
3566    if test "$cross_compiling" = maybe; then
3567	cross_compiling=yes
3568    else
3569	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3570$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3571as_fn_error $? "cannot run C compiled programs.
3572If you meant to cross compile, use \`--host'.
3573See \`config.log' for more details" "$LINENO" 5; }
3574    fi
3575  fi
3576fi
3577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3578$as_echo "$cross_compiling" >&6; }
3579
3580rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3581ac_clean_files=$ac_clean_files_save
3582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3583$as_echo_n "checking for suffix of object files... " >&6; }
3584if ${ac_cv_objext+:} false; then :
3585  $as_echo_n "(cached) " >&6
3586else
3587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3588/* end confdefs.h.  */
3589
3590int
3591main ()
3592{
3593
3594  ;
3595  return 0;
3596}
3597_ACEOF
3598rm -f conftest.o conftest.obj
3599if { { ac_try="$ac_compile"
3600case "(($ac_try" in
3601  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602  *) ac_try_echo=$ac_try;;
3603esac
3604eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3605$as_echo "$ac_try_echo"; } >&5
3606  (eval "$ac_compile") 2>&5
3607  ac_status=$?
3608  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3609  test $ac_status = 0; }; then :
3610  for ac_file in conftest.o conftest.obj conftest.*; do
3611  test -f "$ac_file" || continue;
3612  case $ac_file in
3613    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3614    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3615       break;;
3616  esac
3617done
3618else
3619  $as_echo "$as_me: failed program was:" >&5
3620sed 's/^/| /' conftest.$ac_ext >&5
3621
3622{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3623$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3624as_fn_error $? "cannot compute suffix of object files: cannot compile
3625See \`config.log' for more details" "$LINENO" 5; }
3626fi
3627rm -f conftest.$ac_cv_objext conftest.$ac_ext
3628fi
3629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3630$as_echo "$ac_cv_objext" >&6; }
3631OBJEXT=$ac_cv_objext
3632ac_objext=$OBJEXT
3633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3634$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3635if ${ac_cv_c_compiler_gnu+:} false; then :
3636  $as_echo_n "(cached) " >&6
3637else
3638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3639/* end confdefs.h.  */
3640
3641int
3642main ()
3643{
3644#ifndef __GNUC__
3645       choke me
3646#endif
3647
3648  ;
3649  return 0;
3650}
3651_ACEOF
3652if ac_fn_c_try_compile "$LINENO"; then :
3653  ac_compiler_gnu=yes
3654else
3655  ac_compiler_gnu=no
3656fi
3657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3658ac_cv_c_compiler_gnu=$ac_compiler_gnu
3659
3660fi
3661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3662$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3663if test $ac_compiler_gnu = yes; then
3664  GCC=yes
3665else
3666  GCC=
3667fi
3668ac_test_CFLAGS=${CFLAGS+set}
3669ac_save_CFLAGS=$CFLAGS
3670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3671$as_echo_n "checking whether $CC accepts -g... " >&6; }
3672if ${ac_cv_prog_cc_g+:} false; then :
3673  $as_echo_n "(cached) " >&6
3674else
3675  ac_save_c_werror_flag=$ac_c_werror_flag
3676   ac_c_werror_flag=yes
3677   ac_cv_prog_cc_g=no
3678   CFLAGS="-g"
3679   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3680/* end confdefs.h.  */
3681
3682int
3683main ()
3684{
3685
3686  ;
3687  return 0;
3688}
3689_ACEOF
3690if ac_fn_c_try_compile "$LINENO"; then :
3691  ac_cv_prog_cc_g=yes
3692else
3693  CFLAGS=""
3694      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3695/* end confdefs.h.  */
3696
3697int
3698main ()
3699{
3700
3701  ;
3702  return 0;
3703}
3704_ACEOF
3705if ac_fn_c_try_compile "$LINENO"; then :
3706
3707else
3708  ac_c_werror_flag=$ac_save_c_werror_flag
3709	 CFLAGS="-g"
3710	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711/* end confdefs.h.  */
3712
3713int
3714main ()
3715{
3716
3717  ;
3718  return 0;
3719}
3720_ACEOF
3721if ac_fn_c_try_compile "$LINENO"; then :
3722  ac_cv_prog_cc_g=yes
3723fi
3724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3725fi
3726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3727fi
3728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3729   ac_c_werror_flag=$ac_save_c_werror_flag
3730fi
3731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3732$as_echo "$ac_cv_prog_cc_g" >&6; }
3733if test "$ac_test_CFLAGS" = set; then
3734  CFLAGS=$ac_save_CFLAGS
3735elif test $ac_cv_prog_cc_g = yes; then
3736  if test "$GCC" = yes; then
3737    CFLAGS="-g -O2"
3738  else
3739    CFLAGS="-g"
3740  fi
3741else
3742  if test "$GCC" = yes; then
3743    CFLAGS="-O2"
3744  else
3745    CFLAGS=
3746  fi
3747fi
3748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3749$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3750if ${ac_cv_prog_cc_c89+:} false; then :
3751  $as_echo_n "(cached) " >&6
3752else
3753  ac_cv_prog_cc_c89=no
3754ac_save_CC=$CC
3755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756/* end confdefs.h.  */
3757#include <stdarg.h>
3758#include <stdio.h>
3759struct stat;
3760/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3761struct buf { int x; };
3762FILE * (*rcsopen) (struct buf *, struct stat *, int);
3763static char *e (p, i)
3764     char **p;
3765     int i;
3766{
3767  return p[i];
3768}
3769static char *f (char * (*g) (char **, int), char **p, ...)
3770{
3771  char *s;
3772  va_list v;
3773  va_start (v,p);
3774  s = g (p, va_arg (v,int));
3775  va_end (v);
3776  return s;
3777}
3778
3779/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3780   function prototypes and stuff, but not '\xHH' hex character constants.
3781   These don't provoke an error unfortunately, instead are silently treated
3782   as 'x'.  The following induces an error, until -std is added to get
3783   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3784   array size at least.  It's necessary to write '\x00'==0 to get something
3785   that's true only with -std.  */
3786int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3787
3788/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3789   inside strings and character constants.  */
3790#define FOO(x) 'x'
3791int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3792
3793int test (int i, double x);
3794struct s1 {int (*f) (int a);};
3795struct s2 {int (*f) (double a);};
3796int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3797int argc;
3798char **argv;
3799int
3800main ()
3801{
3802return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3803  ;
3804  return 0;
3805}
3806_ACEOF
3807for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3808	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3809do
3810  CC="$ac_save_CC $ac_arg"
3811  if ac_fn_c_try_compile "$LINENO"; then :
3812  ac_cv_prog_cc_c89=$ac_arg
3813fi
3814rm -f core conftest.err conftest.$ac_objext
3815  test "x$ac_cv_prog_cc_c89" != "xno" && break
3816done
3817rm -f conftest.$ac_ext
3818CC=$ac_save_CC
3819
3820fi
3821# AC_CACHE_VAL
3822case "x$ac_cv_prog_cc_c89" in
3823  x)
3824    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3825$as_echo "none needed" >&6; } ;;
3826  xno)
3827    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3828$as_echo "unsupported" >&6; } ;;
3829  *)
3830    CC="$CC $ac_cv_prog_cc_c89"
3831    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3832$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3833esac
3834if test "x$ac_cv_prog_cc_c89" != xno; then :
3835
3836fi
3837
3838ac_ext=c
3839ac_cpp='$CPP $CPPFLAGS'
3840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3842ac_compiler_gnu=$ac_cv_c_compiler_gnu
3843
3844ac_ext=c
3845ac_cpp='$CPP $CPPFLAGS'
3846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3848ac_compiler_gnu=$ac_cv_c_compiler_gnu
3849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3850$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3851if ${am_cv_prog_cc_c_o+:} false; then :
3852  $as_echo_n "(cached) " >&6
3853else
3854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3855/* end confdefs.h.  */
3856
3857int
3858main ()
3859{
3860
3861  ;
3862  return 0;
3863}
3864_ACEOF
3865  # Make sure it works both with $CC and with simple cc.
3866  # Following AC_PROG_CC_C_O, we do the test twice because some
3867  # compilers refuse to overwrite an existing .o file with -o,
3868  # though they will create one.
3869  am_cv_prog_cc_c_o=yes
3870  for am_i in 1 2; do
3871    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3872   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3873   ac_status=$?
3874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875   (exit $ac_status); } \
3876         && test -f conftest2.$ac_objext; then
3877      : OK
3878    else
3879      am_cv_prog_cc_c_o=no
3880      break
3881    fi
3882  done
3883  rm -f core conftest*
3884  unset am_i
3885fi
3886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3887$as_echo "$am_cv_prog_cc_c_o" >&6; }
3888if test "$am_cv_prog_cc_c_o" != yes; then
3889   # Losing compiler, so override with the script.
3890   # FIXME: It is wrong to rewrite CC.
3891   # But if we don't then we get into trouble of one sort or another.
3892   # A longer-term fix would be to have automake use am__CC in this case,
3893   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3894   CC="$am_aux_dir/compile $CC"
3895fi
3896ac_ext=c
3897ac_cpp='$CPP $CPPFLAGS'
3898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3900ac_compiler_gnu=$ac_cv_c_compiler_gnu
3901
3902
3903depcc="$CC"   am_compiler_list=
3904
3905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3906$as_echo_n "checking dependency style of $depcc... " >&6; }
3907if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3908  $as_echo_n "(cached) " >&6
3909else
3910  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3911  # We make a subdir and do the tests there.  Otherwise we can end up
3912  # making bogus files that we don't know about and never remove.  For
3913  # instance it was reported that on HP-UX the gcc test will end up
3914  # making a dummy file named 'D' -- because '-MD' means "put the output
3915  # in D".
3916  rm -rf conftest.dir
3917  mkdir conftest.dir
3918  # Copy depcomp to subdir because otherwise we won't find it if we're
3919  # using a relative directory.
3920  cp "$am_depcomp" conftest.dir
3921  cd conftest.dir
3922  # We will build objects and dependencies in a subdirectory because
3923  # it helps to detect inapplicable dependency modes.  For instance
3924  # both Tru64's cc and ICC support -MD to output dependencies as a
3925  # side effect of compilation, but ICC will put the dependencies in
3926  # the current directory while Tru64 will put them in the object
3927  # directory.
3928  mkdir sub
3929
3930  am_cv_CC_dependencies_compiler_type=none
3931  if test "$am_compiler_list" = ""; then
3932     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3933  fi
3934  am__universal=false
3935  case " $depcc " in #(
3936     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3937     esac
3938
3939  for depmode in $am_compiler_list; do
3940    # Setup a source with many dependencies, because some compilers
3941    # like to wrap large dependency lists on column 80 (with \), and
3942    # we should not choose a depcomp mode which is confused by this.
3943    #
3944    # We need to recreate these files for each test, as the compiler may
3945    # overwrite some of them when testing with obscure command lines.
3946    # This happens at least with the AIX C compiler.
3947    : > sub/conftest.c
3948    for i in 1 2 3 4 5 6; do
3949      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3950      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3951      # Solaris 10 /bin/sh.
3952      echo '/* dummy */' > sub/conftst$i.h
3953    done
3954    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3955
3956    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3957    # mode.  It turns out that the SunPro C++ compiler does not properly
3958    # handle '-M -o', and we need to detect this.  Also, some Intel
3959    # versions had trouble with output in subdirs.
3960    am__obj=sub/conftest.${OBJEXT-o}
3961    am__minus_obj="-o $am__obj"
3962    case $depmode in
3963    gcc)
3964      # This depmode causes a compiler race in universal mode.
3965      test "$am__universal" = false || continue
3966      ;;
3967    nosideeffect)
3968      # After this tag, mechanisms are not by side-effect, so they'll
3969      # only be used when explicitly requested.
3970      if test "x$enable_dependency_tracking" = xyes; then
3971	continue
3972      else
3973	break
3974      fi
3975      ;;
3976    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3977      # This compiler won't grok '-c -o', but also, the minuso test has
3978      # not run yet.  These depmodes are late enough in the game, and
3979      # so weak that their functioning should not be impacted.
3980      am__obj=conftest.${OBJEXT-o}
3981      am__minus_obj=
3982      ;;
3983    none) break ;;
3984    esac
3985    if depmode=$depmode \
3986       source=sub/conftest.c object=$am__obj \
3987       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3988       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3989         >/dev/null 2>conftest.err &&
3990       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3991       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3992       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3993       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3994      # icc doesn't choke on unknown options, it will just issue warnings
3995      # or remarks (even with -Werror).  So we grep stderr for any message
3996      # that says an option was ignored or not supported.
3997      # When given -MP, icc 7.0 and 7.1 complain thusly:
3998      #   icc: Command line warning: ignoring option '-M'; no argument required
3999      # The diagnosis changed in icc 8.0:
4000      #   icc: Command line remark: option '-MP' not supported
4001      if (grep 'ignoring option' conftest.err ||
4002          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4003        am_cv_CC_dependencies_compiler_type=$depmode
4004        break
4005      fi
4006    fi
4007  done
4008
4009  cd ..
4010  rm -rf conftest.dir
4011else
4012  am_cv_CC_dependencies_compiler_type=none
4013fi
4014
4015fi
4016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4017$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4018CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4019
4020 if
4021  test "x$enable_dependency_tracking" != xno \
4022  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4023  am__fastdepCC_TRUE=
4024  am__fastdepCC_FALSE='#'
4025else
4026  am__fastdepCC_TRUE='#'
4027  am__fastdepCC_FALSE=
4028fi
4029
4030
4031
4032ac_ext=c
4033ac_cpp='$CPP $CPPFLAGS'
4034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4036ac_compiler_gnu=$ac_cv_c_compiler_gnu
4037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4038$as_echo_n "checking how to run the C preprocessor... " >&6; }
4039# On Suns, sometimes $CPP names a directory.
4040if test -n "$CPP" && test -d "$CPP"; then
4041  CPP=
4042fi
4043if test -z "$CPP"; then
4044  if ${ac_cv_prog_CPP+:} false; then :
4045  $as_echo_n "(cached) " >&6
4046else
4047      # Double quotes because CPP needs to be expanded
4048    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4049    do
4050      ac_preproc_ok=false
4051for ac_c_preproc_warn_flag in '' yes
4052do
4053  # Use a header file that comes with gcc, so configuring glibc
4054  # with a fresh cross-compiler works.
4055  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4056  # <limits.h> exists even on freestanding compilers.
4057  # On the NeXT, cc -E runs the code through the compiler's parser,
4058  # not just through cpp. "Syntax error" is here to catch this case.
4059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060/* end confdefs.h.  */
4061#ifdef __STDC__
4062# include <limits.h>
4063#else
4064# include <assert.h>
4065#endif
4066		     Syntax error
4067_ACEOF
4068if ac_fn_c_try_cpp "$LINENO"; then :
4069
4070else
4071  # Broken: fails on valid input.
4072continue
4073fi
4074rm -f conftest.err conftest.i conftest.$ac_ext
4075
4076  # OK, works on sane cases.  Now check whether nonexistent headers
4077  # can be detected and how.
4078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079/* end confdefs.h.  */
4080#include <ac_nonexistent.h>
4081_ACEOF
4082if ac_fn_c_try_cpp "$LINENO"; then :
4083  # Broken: success on invalid input.
4084continue
4085else
4086  # Passes both tests.
4087ac_preproc_ok=:
4088break
4089fi
4090rm -f conftest.err conftest.i conftest.$ac_ext
4091
4092done
4093# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4094rm -f conftest.i conftest.err conftest.$ac_ext
4095if $ac_preproc_ok; then :
4096  break
4097fi
4098
4099    done
4100    ac_cv_prog_CPP=$CPP
4101
4102fi
4103  CPP=$ac_cv_prog_CPP
4104else
4105  ac_cv_prog_CPP=$CPP
4106fi
4107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4108$as_echo "$CPP" >&6; }
4109ac_preproc_ok=false
4110for ac_c_preproc_warn_flag in '' yes
4111do
4112  # Use a header file that comes with gcc, so configuring glibc
4113  # with a fresh cross-compiler works.
4114  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4115  # <limits.h> exists even on freestanding compilers.
4116  # On the NeXT, cc -E runs the code through the compiler's parser,
4117  # not just through cpp. "Syntax error" is here to catch this case.
4118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119/* end confdefs.h.  */
4120#ifdef __STDC__
4121# include <limits.h>
4122#else
4123# include <assert.h>
4124#endif
4125		     Syntax error
4126_ACEOF
4127if ac_fn_c_try_cpp "$LINENO"; then :
4128
4129else
4130  # Broken: fails on valid input.
4131continue
4132fi
4133rm -f conftest.err conftest.i conftest.$ac_ext
4134
4135  # OK, works on sane cases.  Now check whether nonexistent headers
4136  # can be detected and how.
4137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4138/* end confdefs.h.  */
4139#include <ac_nonexistent.h>
4140_ACEOF
4141if ac_fn_c_try_cpp "$LINENO"; then :
4142  # Broken: success on invalid input.
4143continue
4144else
4145  # Passes both tests.
4146ac_preproc_ok=:
4147break
4148fi
4149rm -f conftest.err conftest.i conftest.$ac_ext
4150
4151done
4152# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4153rm -f conftest.i conftest.err conftest.$ac_ext
4154if $ac_preproc_ok; then :
4155
4156else
4157  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4158$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4159as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4160See \`config.log' for more details" "$LINENO" 5; }
4161fi
4162
4163ac_ext=c
4164ac_cpp='$CPP $CPPFLAGS'
4165ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4166ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4167ac_compiler_gnu=$ac_cv_c_compiler_gnu
4168
4169
4170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4171$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4172if ${ac_cv_path_GREP+:} false; then :
4173  $as_echo_n "(cached) " >&6
4174else
4175  if test -z "$GREP"; then
4176  ac_path_GREP_found=false
4177  # Loop through the user's path and test for each of PROGNAME-LIST
4178  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4180do
4181  IFS=$as_save_IFS
4182  test -z "$as_dir" && as_dir=.
4183    for ac_prog in grep ggrep; do
4184    for ac_exec_ext in '' $ac_executable_extensions; do
4185      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4186      as_fn_executable_p "$ac_path_GREP" || continue
4187# Check for GNU ac_path_GREP and select it if it is found.
4188  # Check for GNU $ac_path_GREP
4189case `"$ac_path_GREP" --version 2>&1` in
4190*GNU*)
4191  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4192*)
4193  ac_count=0
4194  $as_echo_n 0123456789 >"conftest.in"
4195  while :
4196  do
4197    cat "conftest.in" "conftest.in" >"conftest.tmp"
4198    mv "conftest.tmp" "conftest.in"
4199    cp "conftest.in" "conftest.nl"
4200    $as_echo 'GREP' >> "conftest.nl"
4201    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4202    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4203    as_fn_arith $ac_count + 1 && ac_count=$as_val
4204    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4205      # Best one so far, save it but keep looking for a better one
4206      ac_cv_path_GREP="$ac_path_GREP"
4207      ac_path_GREP_max=$ac_count
4208    fi
4209    # 10*(2^10) chars as input seems more than enough
4210    test $ac_count -gt 10 && break
4211  done
4212  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4213esac
4214
4215      $ac_path_GREP_found && break 3
4216    done
4217  done
4218  done
4219IFS=$as_save_IFS
4220  if test -z "$ac_cv_path_GREP"; then
4221    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4222  fi
4223else
4224  ac_cv_path_GREP=$GREP
4225fi
4226
4227fi
4228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4229$as_echo "$ac_cv_path_GREP" >&6; }
4230 GREP="$ac_cv_path_GREP"
4231
4232
4233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4234$as_echo_n "checking for egrep... " >&6; }
4235if ${ac_cv_path_EGREP+:} false; then :
4236  $as_echo_n "(cached) " >&6
4237else
4238  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4239   then ac_cv_path_EGREP="$GREP -E"
4240   else
4241     if test -z "$EGREP"; then
4242  ac_path_EGREP_found=false
4243  # Loop through the user's path and test for each of PROGNAME-LIST
4244  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4246do
4247  IFS=$as_save_IFS
4248  test -z "$as_dir" && as_dir=.
4249    for ac_prog in egrep; do
4250    for ac_exec_ext in '' $ac_executable_extensions; do
4251      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4252      as_fn_executable_p "$ac_path_EGREP" || continue
4253# Check for GNU ac_path_EGREP and select it if it is found.
4254  # Check for GNU $ac_path_EGREP
4255case `"$ac_path_EGREP" --version 2>&1` in
4256*GNU*)
4257  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4258*)
4259  ac_count=0
4260  $as_echo_n 0123456789 >"conftest.in"
4261  while :
4262  do
4263    cat "conftest.in" "conftest.in" >"conftest.tmp"
4264    mv "conftest.tmp" "conftest.in"
4265    cp "conftest.in" "conftest.nl"
4266    $as_echo 'EGREP' >> "conftest.nl"
4267    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4268    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4269    as_fn_arith $ac_count + 1 && ac_count=$as_val
4270    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4271      # Best one so far, save it but keep looking for a better one
4272      ac_cv_path_EGREP="$ac_path_EGREP"
4273      ac_path_EGREP_max=$ac_count
4274    fi
4275    # 10*(2^10) chars as input seems more than enough
4276    test $ac_count -gt 10 && break
4277  done
4278  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4279esac
4280
4281      $ac_path_EGREP_found && break 3
4282    done
4283  done
4284  done
4285IFS=$as_save_IFS
4286  if test -z "$ac_cv_path_EGREP"; then
4287    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4288  fi
4289else
4290  ac_cv_path_EGREP=$EGREP
4291fi
4292
4293   fi
4294fi
4295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4296$as_echo "$ac_cv_path_EGREP" >&6; }
4297 EGREP="$ac_cv_path_EGREP"
4298
4299
4300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4301$as_echo_n "checking for ANSI C header files... " >&6; }
4302if ${ac_cv_header_stdc+:} false; then :
4303  $as_echo_n "(cached) " >&6
4304else
4305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4306/* end confdefs.h.  */
4307#include <stdlib.h>
4308#include <stdarg.h>
4309#include <string.h>
4310#include <float.h>
4311
4312int
4313main ()
4314{
4315
4316  ;
4317  return 0;
4318}
4319_ACEOF
4320if ac_fn_c_try_compile "$LINENO"; then :
4321  ac_cv_header_stdc=yes
4322else
4323  ac_cv_header_stdc=no
4324fi
4325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4326
4327if test $ac_cv_header_stdc = yes; then
4328  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4330/* end confdefs.h.  */
4331#include <string.h>
4332
4333_ACEOF
4334if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4335  $EGREP "memchr" >/dev/null 2>&1; then :
4336
4337else
4338  ac_cv_header_stdc=no
4339fi
4340rm -f conftest*
4341
4342fi
4343
4344if test $ac_cv_header_stdc = yes; then
4345  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347/* end confdefs.h.  */
4348#include <stdlib.h>
4349
4350_ACEOF
4351if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4352  $EGREP "free" >/dev/null 2>&1; then :
4353
4354else
4355  ac_cv_header_stdc=no
4356fi
4357rm -f conftest*
4358
4359fi
4360
4361if test $ac_cv_header_stdc = yes; then
4362  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4363  if test "$cross_compiling" = yes; then :
4364  :
4365else
4366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4367/* end confdefs.h.  */
4368#include <ctype.h>
4369#include <stdlib.h>
4370#if ((' ' & 0x0FF) == 0x020)
4371# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4372# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4373#else
4374# define ISLOWER(c) \
4375		   (('a' <= (c) && (c) <= 'i') \
4376		     || ('j' <= (c) && (c) <= 'r') \
4377		     || ('s' <= (c) && (c) <= 'z'))
4378# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4379#endif
4380
4381#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4382int
4383main ()
4384{
4385  int i;
4386  for (i = 0; i < 256; i++)
4387    if (XOR (islower (i), ISLOWER (i))
4388	|| toupper (i) != TOUPPER (i))
4389      return 2;
4390  return 0;
4391}
4392_ACEOF
4393if ac_fn_c_try_run "$LINENO"; then :
4394
4395else
4396  ac_cv_header_stdc=no
4397fi
4398rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4399  conftest.$ac_objext conftest.beam conftest.$ac_ext
4400fi
4401
4402fi
4403fi
4404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4405$as_echo "$ac_cv_header_stdc" >&6; }
4406if test $ac_cv_header_stdc = yes; then
4407
4408$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4409
4410fi
4411
4412# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4413for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4414		  inttypes.h stdint.h unistd.h
4415do :
4416  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4417ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4418"
4419if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4420  cat >>confdefs.h <<_ACEOF
4421#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4422_ACEOF
4423
4424fi
4425
4426done
4427
4428
4429
4430  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4431if test "x$ac_cv_header_minix_config_h" = xyes; then :
4432  MINIX=yes
4433else
4434  MINIX=
4435fi
4436
4437
4438  if test "$MINIX" = yes; then
4439
4440$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4441
4442
4443$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4444
4445
4446$as_echo "#define _MINIX 1" >>confdefs.h
4447
4448  fi
4449
4450
4451  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4452$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4453if ${ac_cv_safe_to_define___extensions__+:} false; then :
4454  $as_echo_n "(cached) " >&6
4455else
4456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457/* end confdefs.h.  */
4458
4459#         define __EXTENSIONS__ 1
4460          $ac_includes_default
4461int
4462main ()
4463{
4464
4465  ;
4466  return 0;
4467}
4468_ACEOF
4469if ac_fn_c_try_compile "$LINENO"; then :
4470  ac_cv_safe_to_define___extensions__=yes
4471else
4472  ac_cv_safe_to_define___extensions__=no
4473fi
4474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4475fi
4476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4477$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4478  test $ac_cv_safe_to_define___extensions__ = yes &&
4479    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4480
4481  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4482
4483  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4484
4485  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4486
4487  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4488
4489
4490
4491# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4504$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4505if ${ac_cv_prog_cc_c99+:} false; then :
4506  $as_echo_n "(cached) " >&6
4507else
4508  ac_cv_prog_cc_c99=no
4509ac_save_CC=$CC
4510cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511/* end confdefs.h.  */
4512#include <stdarg.h>
4513#include <stdbool.h>
4514#include <stdlib.h>
4515#include <wchar.h>
4516#include <stdio.h>
4517
4518// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4519#define debug(...) fprintf (stderr, __VA_ARGS__)
4520#define showlist(...) puts (#__VA_ARGS__)
4521#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4522static void
4523test_varargs_macros (void)
4524{
4525  int x = 1234;
4526  int y = 5678;
4527  debug ("Flag");
4528  debug ("X = %d\n", x);
4529  showlist (The first, second, and third items.);
4530  report (x>y, "x is %d but y is %d", x, y);
4531}
4532
4533// Check long long types.
4534#define BIG64 18446744073709551615ull
4535#define BIG32 4294967295ul
4536#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4537#if !BIG_OK
4538  your preprocessor is broken;
4539#endif
4540#if BIG_OK
4541#else
4542  your preprocessor is broken;
4543#endif
4544static long long int bignum = -9223372036854775807LL;
4545static unsigned long long int ubignum = BIG64;
4546
4547struct incomplete_array
4548{
4549  int datasize;
4550  double data[];
4551};
4552
4553struct named_init {
4554  int number;
4555  const wchar_t *name;
4556  double average;
4557};
4558
4559typedef const char *ccp;
4560
4561static inline int
4562test_restrict (ccp restrict text)
4563{
4564  // See if C++-style comments work.
4565  // Iterate through items via the restricted pointer.
4566  // Also check for declarations in for loops.
4567  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4568    continue;
4569  return 0;
4570}
4571
4572// Check varargs and va_copy.
4573static void
4574test_varargs (const char *format, ...)
4575{
4576  va_list args;
4577  va_start (args, format);
4578  va_list args_copy;
4579  va_copy (args_copy, args);
4580
4581  const char *str;
4582  int number;
4583  float fnumber;
4584
4585  while (*format)
4586    {
4587      switch (*format++)
4588	{
4589	case 's': // string
4590	  str = va_arg (args_copy, const char *);
4591	  break;
4592	case 'd': // int
4593	  number = va_arg (args_copy, int);
4594	  break;
4595	case 'f': // float
4596	  fnumber = va_arg (args_copy, double);
4597	  break;
4598	default:
4599	  break;
4600	}
4601    }
4602  va_end (args_copy);
4603  va_end (args);
4604}
4605
4606int
4607main ()
4608{
4609
4610  // Check bool.
4611  _Bool success = false;
4612
4613  // Check restrict.
4614  if (test_restrict ("String literal") == 0)
4615    success = true;
4616  char *restrict newvar = "Another string";
4617
4618  // Check varargs.
4619  test_varargs ("s, d' f .", "string", 65, 34.234);
4620  test_varargs_macros ();
4621
4622  // Check flexible array members.
4623  struct incomplete_array *ia =
4624    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4625  ia->datasize = 10;
4626  for (int i = 0; i < ia->datasize; ++i)
4627    ia->data[i] = i * 1.234;
4628
4629  // Check named initializers.
4630  struct named_init ni = {
4631    .number = 34,
4632    .name = L"Test wide string",
4633    .average = 543.34343,
4634  };
4635
4636  ni.number = 58;
4637
4638  int dynamic_array[ni.number];
4639  dynamic_array[ni.number - 1] = 543;
4640
4641  // work around unused variable warnings
4642  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4643	  || dynamic_array[ni.number - 1] != 543);
4644
4645  ;
4646  return 0;
4647}
4648_ACEOF
4649for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4650do
4651  CC="$ac_save_CC $ac_arg"
4652  if ac_fn_c_try_compile "$LINENO"; then :
4653  ac_cv_prog_cc_c99=$ac_arg
4654fi
4655rm -f core conftest.err conftest.$ac_objext
4656  test "x$ac_cv_prog_cc_c99" != "xno" && break
4657done
4658rm -f conftest.$ac_ext
4659CC=$ac_save_CC
4660
4661fi
4662# AC_CACHE_VAL
4663case "x$ac_cv_prog_cc_c99" in
4664  x)
4665    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4666$as_echo "none needed" >&6; } ;;
4667  xno)
4668    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4669$as_echo "unsupported" >&6; } ;;
4670  *)
4671    CC="$CC $ac_cv_prog_cc_c99"
4672    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4673$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4674esac
4675if test "x$ac_cv_prog_cc_c99" != xno; then :
4676
4677fi
4678
4679
4680
4681
4682
4683
4684ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4685if test "x$ac_cv_have_decl___clang__" = xyes; then :
4686  CLANGCC="yes"
4687else
4688  CLANGCC="no"
4689fi
4690
4691ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4692if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4693  INTELCC="yes"
4694else
4695  INTELCC="no"
4696fi
4697
4698ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4699if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4700  SUNCC="yes"
4701else
4702  SUNCC="no"
4703fi
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4714	if test -n "$ac_tool_prefix"; then
4715  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4716set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4718$as_echo_n "checking for $ac_word... " >&6; }
4719if ${ac_cv_path_PKG_CONFIG+:} false; then :
4720  $as_echo_n "(cached) " >&6
4721else
4722  case $PKG_CONFIG in
4723  [\\/]* | ?:[\\/]*)
4724  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4725  ;;
4726  *)
4727  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728for as_dir in $PATH
4729do
4730  IFS=$as_save_IFS
4731  test -z "$as_dir" && as_dir=.
4732    for ac_exec_ext in '' $ac_executable_extensions; do
4733  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4734    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4735    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4736    break 2
4737  fi
4738done
4739  done
4740IFS=$as_save_IFS
4741
4742  ;;
4743esac
4744fi
4745PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4746if test -n "$PKG_CONFIG"; then
4747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4748$as_echo "$PKG_CONFIG" >&6; }
4749else
4750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4751$as_echo "no" >&6; }
4752fi
4753
4754
4755fi
4756if test -z "$ac_cv_path_PKG_CONFIG"; then
4757  ac_pt_PKG_CONFIG=$PKG_CONFIG
4758  # Extract the first word of "pkg-config", so it can be a program name with args.
4759set dummy pkg-config; ac_word=$2
4760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4761$as_echo_n "checking for $ac_word... " >&6; }
4762if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4763  $as_echo_n "(cached) " >&6
4764else
4765  case $ac_pt_PKG_CONFIG in
4766  [\\/]* | ?:[\\/]*)
4767  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4768  ;;
4769  *)
4770  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771for as_dir in $PATH
4772do
4773  IFS=$as_save_IFS
4774  test -z "$as_dir" && as_dir=.
4775    for ac_exec_ext in '' $ac_executable_extensions; do
4776  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4777    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4778    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4779    break 2
4780  fi
4781done
4782  done
4783IFS=$as_save_IFS
4784
4785  ;;
4786esac
4787fi
4788ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4789if test -n "$ac_pt_PKG_CONFIG"; then
4790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4791$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4792else
4793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4794$as_echo "no" >&6; }
4795fi
4796
4797  if test "x$ac_pt_PKG_CONFIG" = x; then
4798    PKG_CONFIG=""
4799  else
4800    case $cross_compiling:$ac_tool_warned in
4801yes:)
4802{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4803$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4804ac_tool_warned=yes ;;
4805esac
4806    PKG_CONFIG=$ac_pt_PKG_CONFIG
4807  fi
4808else
4809  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4810fi
4811
4812fi
4813if test -n "$PKG_CONFIG"; then
4814	_pkg_min_version=0.9.0
4815	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4816$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4817	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4818		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4819$as_echo "yes" >&6; }
4820	else
4821		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4822$as_echo "no" >&6; }
4823		PKG_CONFIG=""
4824	fi
4825fi
4826# Make sure we can run config.sub.
4827$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4828  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4829
4830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4831$as_echo_n "checking build system type... " >&6; }
4832if ${ac_cv_build+:} false; then :
4833  $as_echo_n "(cached) " >&6
4834else
4835  ac_build_alias=$build_alias
4836test "x$ac_build_alias" = x &&
4837  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4838test "x$ac_build_alias" = x &&
4839  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4840ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4841  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4842
4843fi
4844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4845$as_echo "$ac_cv_build" >&6; }
4846case $ac_cv_build in
4847*-*-*) ;;
4848*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4849esac
4850build=$ac_cv_build
4851ac_save_IFS=$IFS; IFS='-'
4852set x $ac_cv_build
4853shift
4854build_cpu=$1
4855build_vendor=$2
4856shift; shift
4857# Remember, the first character of IFS is used to create $*,
4858# except with old shells:
4859build_os=$*
4860IFS=$ac_save_IFS
4861case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4862
4863
4864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4865$as_echo_n "checking host system type... " >&6; }
4866if ${ac_cv_host+:} false; then :
4867  $as_echo_n "(cached) " >&6
4868else
4869  if test "x$host_alias" = x; then
4870  ac_cv_host=$ac_cv_build
4871else
4872  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4873    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4874fi
4875
4876fi
4877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4878$as_echo "$ac_cv_host" >&6; }
4879case $ac_cv_host in
4880*-*-*) ;;
4881*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4882esac
4883host=$ac_cv_host
4884ac_save_IFS=$IFS; IFS='-'
4885set x $ac_cv_host
4886shift
4887host_cpu=$1
4888host_vendor=$2
4889shift; shift
4890# Remember, the first character of IFS is used to create $*,
4891# except with old shells:
4892host_os=$*
4893IFS=$ac_save_IFS
4894case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4895
4896
4897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4898$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4899if ${ac_cv_path_SED+:} false; then :
4900  $as_echo_n "(cached) " >&6
4901else
4902            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4903     for ac_i in 1 2 3 4 5 6 7; do
4904       ac_script="$ac_script$as_nl$ac_script"
4905     done
4906     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4907     { ac_script=; unset ac_script;}
4908     if test -z "$SED"; then
4909  ac_path_SED_found=false
4910  # Loop through the user's path and test for each of PROGNAME-LIST
4911  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912for as_dir in $PATH
4913do
4914  IFS=$as_save_IFS
4915  test -z "$as_dir" && as_dir=.
4916    for ac_prog in sed gsed; do
4917    for ac_exec_ext in '' $ac_executable_extensions; do
4918      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4919      as_fn_executable_p "$ac_path_SED" || continue
4920# Check for GNU ac_path_SED and select it if it is found.
4921  # Check for GNU $ac_path_SED
4922case `"$ac_path_SED" --version 2>&1` in
4923*GNU*)
4924  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4925*)
4926  ac_count=0
4927  $as_echo_n 0123456789 >"conftest.in"
4928  while :
4929  do
4930    cat "conftest.in" "conftest.in" >"conftest.tmp"
4931    mv "conftest.tmp" "conftest.in"
4932    cp "conftest.in" "conftest.nl"
4933    $as_echo '' >> "conftest.nl"
4934    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4935    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4936    as_fn_arith $ac_count + 1 && ac_count=$as_val
4937    if test $ac_count -gt ${ac_path_SED_max-0}; then
4938      # Best one so far, save it but keep looking for a better one
4939      ac_cv_path_SED="$ac_path_SED"
4940      ac_path_SED_max=$ac_count
4941    fi
4942    # 10*(2^10) chars as input seems more than enough
4943    test $ac_count -gt 10 && break
4944  done
4945  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4946esac
4947
4948      $ac_path_SED_found && break 3
4949    done
4950  done
4951  done
4952IFS=$as_save_IFS
4953  if test -z "$ac_cv_path_SED"; then
4954    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4955  fi
4956else
4957  ac_cv_path_SED=$SED
4958fi
4959
4960fi
4961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4962$as_echo "$ac_cv_path_SED" >&6; }
4963 SED="$ac_cv_path_SED"
4964  rm -f conftest.sed
4965
4966
4967
4968
4969
4970
4971# Check whether --enable-selective-werror was given.
4972if test "${enable_selective_werror+set}" = set; then :
4973  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4974else
4975  SELECTIVE_WERROR=yes
4976fi
4977
4978
4979
4980
4981
4982# -v is too short to test reliably with XORG_TESTSET_CFLAG
4983if test "x$SUNCC" = "xyes"; then
4984    BASE_CFLAGS="-v"
4985else
4986    BASE_CFLAGS=""
4987fi
4988
4989# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003xorg_testset_save_CFLAGS="$CFLAGS"
5004
5005if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5006	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5007	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5008$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5009if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5010  $as_echo_n "(cached) " >&6
5011else
5012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5013/* end confdefs.h.  */
5014int i;
5015_ACEOF
5016if ac_fn_c_try_compile "$LINENO"; then :
5017  xorg_cv_cc_flag_unknown_warning_option=yes
5018else
5019  xorg_cv_cc_flag_unknown_warning_option=no
5020fi
5021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5022fi
5023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5024$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5025	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5026	CFLAGS="$xorg_testset_save_CFLAGS"
5027fi
5028
5029if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5030	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5031		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5032	fi
5033	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5034	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5035$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5036if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5037  $as_echo_n "(cached) " >&6
5038else
5039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040/* end confdefs.h.  */
5041int i;
5042_ACEOF
5043if ac_fn_c_try_compile "$LINENO"; then :
5044  xorg_cv_cc_flag_unused_command_line_argument=yes
5045else
5046  xorg_cv_cc_flag_unused_command_line_argument=no
5047fi
5048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5049fi
5050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5051$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5052	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5053	CFLAGS="$xorg_testset_save_CFLAGS"
5054fi
5055
5056found="no"
5057
5058	if test $found = "no" ; then
5059		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5060			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5061		fi
5062
5063		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5064			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5065		fi
5066
5067		CFLAGS="$CFLAGS -Wall"
5068
5069		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5070$as_echo_n "checking if $CC supports -Wall... " >&6; }
5071		cacheid=xorg_cv_cc_flag__Wall
5072		if eval \${$cacheid+:} false; then :
5073  $as_echo_n "(cached) " >&6
5074else
5075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5076/* end confdefs.h.  */
5077int i;
5078int
5079main ()
5080{
5081
5082  ;
5083  return 0;
5084}
5085_ACEOF
5086if ac_fn_c_try_link "$LINENO"; then :
5087  eval $cacheid=yes
5088else
5089  eval $cacheid=no
5090fi
5091rm -f core conftest.err conftest.$ac_objext \
5092    conftest$ac_exeext conftest.$ac_ext
5093fi
5094
5095
5096		CFLAGS="$xorg_testset_save_CFLAGS"
5097
5098		eval supported=\$$cacheid
5099		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5100$as_echo "$supported" >&6; }
5101		if test "$supported" = "yes" ; then
5102			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5103			found="yes"
5104		fi
5105	fi
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121xorg_testset_save_CFLAGS="$CFLAGS"
5122
5123if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5124	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5125	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5126$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5127if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5128  $as_echo_n "(cached) " >&6
5129else
5130  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5131/* end confdefs.h.  */
5132int i;
5133_ACEOF
5134if ac_fn_c_try_compile "$LINENO"; then :
5135  xorg_cv_cc_flag_unknown_warning_option=yes
5136else
5137  xorg_cv_cc_flag_unknown_warning_option=no
5138fi
5139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5140fi
5141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5142$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5143	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5144	CFLAGS="$xorg_testset_save_CFLAGS"
5145fi
5146
5147if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5148	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5149		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5150	fi
5151	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5152	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5153$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5154if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5155  $as_echo_n "(cached) " >&6
5156else
5157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5158/* end confdefs.h.  */
5159int i;
5160_ACEOF
5161if ac_fn_c_try_compile "$LINENO"; then :
5162  xorg_cv_cc_flag_unused_command_line_argument=yes
5163else
5164  xorg_cv_cc_flag_unused_command_line_argument=no
5165fi
5166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5167fi
5168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5169$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5170	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5171	CFLAGS="$xorg_testset_save_CFLAGS"
5172fi
5173
5174found="no"
5175
5176	if test $found = "no" ; then
5177		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5178			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5179		fi
5180
5181		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5182			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5183		fi
5184
5185		CFLAGS="$CFLAGS -Wpointer-arith"
5186
5187		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5188$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5189		cacheid=xorg_cv_cc_flag__Wpointer_arith
5190		if eval \${$cacheid+:} false; then :
5191  $as_echo_n "(cached) " >&6
5192else
5193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5194/* end confdefs.h.  */
5195int i;
5196int
5197main ()
5198{
5199
5200  ;
5201  return 0;
5202}
5203_ACEOF
5204if ac_fn_c_try_link "$LINENO"; then :
5205  eval $cacheid=yes
5206else
5207  eval $cacheid=no
5208fi
5209rm -f core conftest.err conftest.$ac_objext \
5210    conftest$ac_exeext conftest.$ac_ext
5211fi
5212
5213
5214		CFLAGS="$xorg_testset_save_CFLAGS"
5215
5216		eval supported=\$$cacheid
5217		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5218$as_echo "$supported" >&6; }
5219		if test "$supported" = "yes" ; then
5220			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5221			found="yes"
5222		fi
5223	fi
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239xorg_testset_save_CFLAGS="$CFLAGS"
5240
5241if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5242	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5243	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5244$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5245if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5246  $as_echo_n "(cached) " >&6
5247else
5248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5249/* end confdefs.h.  */
5250int i;
5251_ACEOF
5252if ac_fn_c_try_compile "$LINENO"; then :
5253  xorg_cv_cc_flag_unknown_warning_option=yes
5254else
5255  xorg_cv_cc_flag_unknown_warning_option=no
5256fi
5257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5258fi
5259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5260$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5261	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5262	CFLAGS="$xorg_testset_save_CFLAGS"
5263fi
5264
5265if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5266	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5267		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5268	fi
5269	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5270	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5271$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5272if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5273  $as_echo_n "(cached) " >&6
5274else
5275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276/* end confdefs.h.  */
5277int i;
5278_ACEOF
5279if ac_fn_c_try_compile "$LINENO"; then :
5280  xorg_cv_cc_flag_unused_command_line_argument=yes
5281else
5282  xorg_cv_cc_flag_unused_command_line_argument=no
5283fi
5284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5285fi
5286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5287$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5288	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5289	CFLAGS="$xorg_testset_save_CFLAGS"
5290fi
5291
5292found="no"
5293
5294	if test $found = "no" ; then
5295		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5296			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5297		fi
5298
5299		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5300			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5301		fi
5302
5303		CFLAGS="$CFLAGS -Wmissing-declarations"
5304
5305		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5306$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5307		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5308		if eval \${$cacheid+:} false; then :
5309  $as_echo_n "(cached) " >&6
5310else
5311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5312/* end confdefs.h.  */
5313int i;
5314int
5315main ()
5316{
5317
5318  ;
5319  return 0;
5320}
5321_ACEOF
5322if ac_fn_c_try_link "$LINENO"; then :
5323  eval $cacheid=yes
5324else
5325  eval $cacheid=no
5326fi
5327rm -f core conftest.err conftest.$ac_objext \
5328    conftest$ac_exeext conftest.$ac_ext
5329fi
5330
5331
5332		CFLAGS="$xorg_testset_save_CFLAGS"
5333
5334		eval supported=\$$cacheid
5335		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5336$as_echo "$supported" >&6; }
5337		if test "$supported" = "yes" ; then
5338			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5339			found="yes"
5340		fi
5341	fi
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357xorg_testset_save_CFLAGS="$CFLAGS"
5358
5359if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5360	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5361	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5362$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5363if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5364  $as_echo_n "(cached) " >&6
5365else
5366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5367/* end confdefs.h.  */
5368int i;
5369_ACEOF
5370if ac_fn_c_try_compile "$LINENO"; then :
5371  xorg_cv_cc_flag_unknown_warning_option=yes
5372else
5373  xorg_cv_cc_flag_unknown_warning_option=no
5374fi
5375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5376fi
5377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5378$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5379	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5380	CFLAGS="$xorg_testset_save_CFLAGS"
5381fi
5382
5383if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5384	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5385		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5386	fi
5387	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5388	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5389$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5390if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5391  $as_echo_n "(cached) " >&6
5392else
5393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394/* end confdefs.h.  */
5395int i;
5396_ACEOF
5397if ac_fn_c_try_compile "$LINENO"; then :
5398  xorg_cv_cc_flag_unused_command_line_argument=yes
5399else
5400  xorg_cv_cc_flag_unused_command_line_argument=no
5401fi
5402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5403fi
5404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5405$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5406	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5407	CFLAGS="$xorg_testset_save_CFLAGS"
5408fi
5409
5410found="no"
5411
5412	if test $found = "no" ; then
5413		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5414			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5415		fi
5416
5417		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5418			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5419		fi
5420
5421		CFLAGS="$CFLAGS -Wformat=2"
5422
5423		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5424$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5425		cacheid=xorg_cv_cc_flag__Wformat_2
5426		if eval \${$cacheid+:} false; then :
5427  $as_echo_n "(cached) " >&6
5428else
5429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5430/* end confdefs.h.  */
5431int i;
5432int
5433main ()
5434{
5435
5436  ;
5437  return 0;
5438}
5439_ACEOF
5440if ac_fn_c_try_link "$LINENO"; then :
5441  eval $cacheid=yes
5442else
5443  eval $cacheid=no
5444fi
5445rm -f core conftest.err conftest.$ac_objext \
5446    conftest$ac_exeext conftest.$ac_ext
5447fi
5448
5449
5450		CFLAGS="$xorg_testset_save_CFLAGS"
5451
5452		eval supported=\$$cacheid
5453		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5454$as_echo "$supported" >&6; }
5455		if test "$supported" = "yes" ; then
5456			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5457			found="yes"
5458		fi
5459	fi
5460
5461	if test $found = "no" ; then
5462		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5463			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5464		fi
5465
5466		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5467			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5468		fi
5469
5470		CFLAGS="$CFLAGS -Wformat"
5471
5472		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5473$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5474		cacheid=xorg_cv_cc_flag__Wformat
5475		if eval \${$cacheid+:} false; then :
5476  $as_echo_n "(cached) " >&6
5477else
5478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5479/* end confdefs.h.  */
5480int i;
5481int
5482main ()
5483{
5484
5485  ;
5486  return 0;
5487}
5488_ACEOF
5489if ac_fn_c_try_link "$LINENO"; then :
5490  eval $cacheid=yes
5491else
5492  eval $cacheid=no
5493fi
5494rm -f core conftest.err conftest.$ac_objext \
5495    conftest$ac_exeext conftest.$ac_ext
5496fi
5497
5498
5499		CFLAGS="$xorg_testset_save_CFLAGS"
5500
5501		eval supported=\$$cacheid
5502		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5503$as_echo "$supported" >&6; }
5504		if test "$supported" = "yes" ; then
5505			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5506			found="yes"
5507		fi
5508	fi
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526xorg_testset_save_CFLAGS="$CFLAGS"
5527
5528if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5529	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5530	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5531$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5532if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5533  $as_echo_n "(cached) " >&6
5534else
5535  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5536/* end confdefs.h.  */
5537int i;
5538_ACEOF
5539if ac_fn_c_try_compile "$LINENO"; then :
5540  xorg_cv_cc_flag_unknown_warning_option=yes
5541else
5542  xorg_cv_cc_flag_unknown_warning_option=no
5543fi
5544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5545fi
5546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5547$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5548	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5549	CFLAGS="$xorg_testset_save_CFLAGS"
5550fi
5551
5552if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5553	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5554		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5555	fi
5556	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5557	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5558$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5559if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5560  $as_echo_n "(cached) " >&6
5561else
5562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5563/* end confdefs.h.  */
5564int i;
5565_ACEOF
5566if ac_fn_c_try_compile "$LINENO"; then :
5567  xorg_cv_cc_flag_unused_command_line_argument=yes
5568else
5569  xorg_cv_cc_flag_unused_command_line_argument=no
5570fi
5571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5572fi
5573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5574$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5575	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5576	CFLAGS="$xorg_testset_save_CFLAGS"
5577fi
5578
5579found="no"
5580
5581	if test $found = "no" ; then
5582		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5583			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5584		fi
5585
5586		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5587			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5588		fi
5589
5590		CFLAGS="$CFLAGS -Wstrict-prototypes"
5591
5592		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5593$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5594		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5595		if eval \${$cacheid+:} false; then :
5596  $as_echo_n "(cached) " >&6
5597else
5598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5599/* end confdefs.h.  */
5600int i;
5601int
5602main ()
5603{
5604
5605  ;
5606  return 0;
5607}
5608_ACEOF
5609if ac_fn_c_try_link "$LINENO"; then :
5610  eval $cacheid=yes
5611else
5612  eval $cacheid=no
5613fi
5614rm -f core conftest.err conftest.$ac_objext \
5615    conftest$ac_exeext conftest.$ac_ext
5616fi
5617
5618
5619		CFLAGS="$xorg_testset_save_CFLAGS"
5620
5621		eval supported=\$$cacheid
5622		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5623$as_echo "$supported" >&6; }
5624		if test "$supported" = "yes" ; then
5625			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5626			found="yes"
5627		fi
5628	fi
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644xorg_testset_save_CFLAGS="$CFLAGS"
5645
5646if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5647	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5648	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5649$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5650if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5651  $as_echo_n "(cached) " >&6
5652else
5653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5654/* end confdefs.h.  */
5655int i;
5656_ACEOF
5657if ac_fn_c_try_compile "$LINENO"; then :
5658  xorg_cv_cc_flag_unknown_warning_option=yes
5659else
5660  xorg_cv_cc_flag_unknown_warning_option=no
5661fi
5662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5663fi
5664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5665$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5666	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5667	CFLAGS="$xorg_testset_save_CFLAGS"
5668fi
5669
5670if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5671	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5672		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5673	fi
5674	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5675	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5676$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5677if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5678  $as_echo_n "(cached) " >&6
5679else
5680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5681/* end confdefs.h.  */
5682int i;
5683_ACEOF
5684if ac_fn_c_try_compile "$LINENO"; then :
5685  xorg_cv_cc_flag_unused_command_line_argument=yes
5686else
5687  xorg_cv_cc_flag_unused_command_line_argument=no
5688fi
5689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5690fi
5691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5692$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5693	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5694	CFLAGS="$xorg_testset_save_CFLAGS"
5695fi
5696
5697found="no"
5698
5699	if test $found = "no" ; then
5700		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5701			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5702		fi
5703
5704		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5705			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5706		fi
5707
5708		CFLAGS="$CFLAGS -Wmissing-prototypes"
5709
5710		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5711$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5712		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5713		if eval \${$cacheid+:} false; then :
5714  $as_echo_n "(cached) " >&6
5715else
5716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5717/* end confdefs.h.  */
5718int i;
5719int
5720main ()
5721{
5722
5723  ;
5724  return 0;
5725}
5726_ACEOF
5727if ac_fn_c_try_link "$LINENO"; then :
5728  eval $cacheid=yes
5729else
5730  eval $cacheid=no
5731fi
5732rm -f core conftest.err conftest.$ac_objext \
5733    conftest$ac_exeext conftest.$ac_ext
5734fi
5735
5736
5737		CFLAGS="$xorg_testset_save_CFLAGS"
5738
5739		eval supported=\$$cacheid
5740		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5741$as_echo "$supported" >&6; }
5742		if test "$supported" = "yes" ; then
5743			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5744			found="yes"
5745		fi
5746	fi
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762xorg_testset_save_CFLAGS="$CFLAGS"
5763
5764if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5765	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5766	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5767$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5768if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5769  $as_echo_n "(cached) " >&6
5770else
5771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5772/* end confdefs.h.  */
5773int i;
5774_ACEOF
5775if ac_fn_c_try_compile "$LINENO"; then :
5776  xorg_cv_cc_flag_unknown_warning_option=yes
5777else
5778  xorg_cv_cc_flag_unknown_warning_option=no
5779fi
5780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5781fi
5782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5783$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5784	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5785	CFLAGS="$xorg_testset_save_CFLAGS"
5786fi
5787
5788if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5789	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5790		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5791	fi
5792	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5793	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5794$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5795if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5796  $as_echo_n "(cached) " >&6
5797else
5798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5799/* end confdefs.h.  */
5800int i;
5801_ACEOF
5802if ac_fn_c_try_compile "$LINENO"; then :
5803  xorg_cv_cc_flag_unused_command_line_argument=yes
5804else
5805  xorg_cv_cc_flag_unused_command_line_argument=no
5806fi
5807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5808fi
5809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5810$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5811	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5812	CFLAGS="$xorg_testset_save_CFLAGS"
5813fi
5814
5815found="no"
5816
5817	if test $found = "no" ; then
5818		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5819			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5820		fi
5821
5822		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5823			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5824		fi
5825
5826		CFLAGS="$CFLAGS -Wnested-externs"
5827
5828		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5829$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5830		cacheid=xorg_cv_cc_flag__Wnested_externs
5831		if eval \${$cacheid+:} false; then :
5832  $as_echo_n "(cached) " >&6
5833else
5834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5835/* end confdefs.h.  */
5836int i;
5837int
5838main ()
5839{
5840
5841  ;
5842  return 0;
5843}
5844_ACEOF
5845if ac_fn_c_try_link "$LINENO"; then :
5846  eval $cacheid=yes
5847else
5848  eval $cacheid=no
5849fi
5850rm -f core conftest.err conftest.$ac_objext \
5851    conftest$ac_exeext conftest.$ac_ext
5852fi
5853
5854
5855		CFLAGS="$xorg_testset_save_CFLAGS"
5856
5857		eval supported=\$$cacheid
5858		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5859$as_echo "$supported" >&6; }
5860		if test "$supported" = "yes" ; then
5861			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5862			found="yes"
5863		fi
5864	fi
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880xorg_testset_save_CFLAGS="$CFLAGS"
5881
5882if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5883	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5884	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5885$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5886if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5887  $as_echo_n "(cached) " >&6
5888else
5889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890/* end confdefs.h.  */
5891int i;
5892_ACEOF
5893if ac_fn_c_try_compile "$LINENO"; then :
5894  xorg_cv_cc_flag_unknown_warning_option=yes
5895else
5896  xorg_cv_cc_flag_unknown_warning_option=no
5897fi
5898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5899fi
5900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5901$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5902	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5903	CFLAGS="$xorg_testset_save_CFLAGS"
5904fi
5905
5906if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5907	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5908		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5909	fi
5910	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5911	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5912$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5913if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5914  $as_echo_n "(cached) " >&6
5915else
5916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5917/* end confdefs.h.  */
5918int i;
5919_ACEOF
5920if ac_fn_c_try_compile "$LINENO"; then :
5921  xorg_cv_cc_flag_unused_command_line_argument=yes
5922else
5923  xorg_cv_cc_flag_unused_command_line_argument=no
5924fi
5925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5926fi
5927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5928$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5929	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5930	CFLAGS="$xorg_testset_save_CFLAGS"
5931fi
5932
5933found="no"
5934
5935	if test $found = "no" ; then
5936		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5937			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5938		fi
5939
5940		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5941			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5942		fi
5943
5944		CFLAGS="$CFLAGS -Wbad-function-cast"
5945
5946		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5947$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5948		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5949		if eval \${$cacheid+:} false; then :
5950  $as_echo_n "(cached) " >&6
5951else
5952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5953/* end confdefs.h.  */
5954int i;
5955int
5956main ()
5957{
5958
5959  ;
5960  return 0;
5961}
5962_ACEOF
5963if ac_fn_c_try_link "$LINENO"; then :
5964  eval $cacheid=yes
5965else
5966  eval $cacheid=no
5967fi
5968rm -f core conftest.err conftest.$ac_objext \
5969    conftest$ac_exeext conftest.$ac_ext
5970fi
5971
5972
5973		CFLAGS="$xorg_testset_save_CFLAGS"
5974
5975		eval supported=\$$cacheid
5976		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5977$as_echo "$supported" >&6; }
5978		if test "$supported" = "yes" ; then
5979			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5980			found="yes"
5981		fi
5982	fi
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998xorg_testset_save_CFLAGS="$CFLAGS"
5999
6000if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6001	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6002	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6003$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6004if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6005  $as_echo_n "(cached) " >&6
6006else
6007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6008/* end confdefs.h.  */
6009int i;
6010_ACEOF
6011if ac_fn_c_try_compile "$LINENO"; then :
6012  xorg_cv_cc_flag_unknown_warning_option=yes
6013else
6014  xorg_cv_cc_flag_unknown_warning_option=no
6015fi
6016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6017fi
6018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6019$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6020	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6021	CFLAGS="$xorg_testset_save_CFLAGS"
6022fi
6023
6024if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6025	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6026		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6027	fi
6028	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6029	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6030$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6031if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6032  $as_echo_n "(cached) " >&6
6033else
6034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6035/* end confdefs.h.  */
6036int i;
6037_ACEOF
6038if ac_fn_c_try_compile "$LINENO"; then :
6039  xorg_cv_cc_flag_unused_command_line_argument=yes
6040else
6041  xorg_cv_cc_flag_unused_command_line_argument=no
6042fi
6043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6044fi
6045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6046$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6047	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6048	CFLAGS="$xorg_testset_save_CFLAGS"
6049fi
6050
6051found="no"
6052
6053	if test $found = "no" ; then
6054		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6055			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6056		fi
6057
6058		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6059			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6060		fi
6061
6062		CFLAGS="$CFLAGS -Wold-style-definition"
6063
6064		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6065$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
6066		cacheid=xorg_cv_cc_flag__Wold_style_definition
6067		if eval \${$cacheid+:} false; then :
6068  $as_echo_n "(cached) " >&6
6069else
6070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6071/* end confdefs.h.  */
6072int i;
6073int
6074main ()
6075{
6076
6077  ;
6078  return 0;
6079}
6080_ACEOF
6081if ac_fn_c_try_link "$LINENO"; then :
6082  eval $cacheid=yes
6083else
6084  eval $cacheid=no
6085fi
6086rm -f core conftest.err conftest.$ac_objext \
6087    conftest$ac_exeext conftest.$ac_ext
6088fi
6089
6090
6091		CFLAGS="$xorg_testset_save_CFLAGS"
6092
6093		eval supported=\$$cacheid
6094		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6095$as_echo "$supported" >&6; }
6096		if test "$supported" = "yes" ; then
6097			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6098			found="yes"
6099		fi
6100	fi
6101
6102	if test $found = "no" ; then
6103		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6104			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6105		fi
6106
6107		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6108			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6109		fi
6110
6111		CFLAGS="$CFLAGS -fd"
6112
6113		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6114$as_echo_n "checking if $CC supports -fd... " >&6; }
6115		cacheid=xorg_cv_cc_flag__fd
6116		if eval \${$cacheid+:} false; then :
6117  $as_echo_n "(cached) " >&6
6118else
6119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6120/* end confdefs.h.  */
6121int i;
6122int
6123main ()
6124{
6125
6126  ;
6127  return 0;
6128}
6129_ACEOF
6130if ac_fn_c_try_link "$LINENO"; then :
6131  eval $cacheid=yes
6132else
6133  eval $cacheid=no
6134fi
6135rm -f core conftest.err conftest.$ac_objext \
6136    conftest$ac_exeext conftest.$ac_ext
6137fi
6138
6139
6140		CFLAGS="$xorg_testset_save_CFLAGS"
6141
6142		eval supported=\$$cacheid
6143		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6144$as_echo "$supported" >&6; }
6145		if test "$supported" = "yes" ; then
6146			BASE_CFLAGS="$BASE_CFLAGS -fd"
6147			found="yes"
6148		fi
6149	fi
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165xorg_testset_save_CFLAGS="$CFLAGS"
6166
6167if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6168	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6169	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6170$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6171if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6172  $as_echo_n "(cached) " >&6
6173else
6174  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6175/* end confdefs.h.  */
6176int i;
6177_ACEOF
6178if ac_fn_c_try_compile "$LINENO"; then :
6179  xorg_cv_cc_flag_unknown_warning_option=yes
6180else
6181  xorg_cv_cc_flag_unknown_warning_option=no
6182fi
6183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6184fi
6185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6186$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6187	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6188	CFLAGS="$xorg_testset_save_CFLAGS"
6189fi
6190
6191if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6192	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6193		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6194	fi
6195	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6196	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6197$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6198if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6199  $as_echo_n "(cached) " >&6
6200else
6201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6202/* end confdefs.h.  */
6203int i;
6204_ACEOF
6205if ac_fn_c_try_compile "$LINENO"; then :
6206  xorg_cv_cc_flag_unused_command_line_argument=yes
6207else
6208  xorg_cv_cc_flag_unused_command_line_argument=no
6209fi
6210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6211fi
6212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6213$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6214	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6215	CFLAGS="$xorg_testset_save_CFLAGS"
6216fi
6217
6218found="no"
6219
6220	if test $found = "no" ; then
6221		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6222			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6223		fi
6224
6225		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6226			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6227		fi
6228
6229		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6230
6231		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6232$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6233		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6234		if eval \${$cacheid+:} false; then :
6235  $as_echo_n "(cached) " >&6
6236else
6237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6238/* end confdefs.h.  */
6239int i;
6240int
6241main ()
6242{
6243
6244  ;
6245  return 0;
6246}
6247_ACEOF
6248if ac_fn_c_try_link "$LINENO"; then :
6249  eval $cacheid=yes
6250else
6251  eval $cacheid=no
6252fi
6253rm -f core conftest.err conftest.$ac_objext \
6254    conftest$ac_exeext conftest.$ac_ext
6255fi
6256
6257
6258		CFLAGS="$xorg_testset_save_CFLAGS"
6259
6260		eval supported=\$$cacheid
6261		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6262$as_echo "$supported" >&6; }
6263		if test "$supported" = "yes" ; then
6264			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6265			found="yes"
6266		fi
6267	fi
6268
6269
6270
6271
6272
6273# This chunk adds additional warnings that could catch undesired effects.
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287xorg_testset_save_CFLAGS="$CFLAGS"
6288
6289if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6290	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6291	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6292$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6293if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6294  $as_echo_n "(cached) " >&6
6295else
6296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6297/* end confdefs.h.  */
6298int i;
6299_ACEOF
6300if ac_fn_c_try_compile "$LINENO"; then :
6301  xorg_cv_cc_flag_unknown_warning_option=yes
6302else
6303  xorg_cv_cc_flag_unknown_warning_option=no
6304fi
6305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6306fi
6307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6308$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6309	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6310	CFLAGS="$xorg_testset_save_CFLAGS"
6311fi
6312
6313if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6314	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6315		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6316	fi
6317	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6318	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6319$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6320if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6321  $as_echo_n "(cached) " >&6
6322else
6323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6324/* end confdefs.h.  */
6325int i;
6326_ACEOF
6327if ac_fn_c_try_compile "$LINENO"; then :
6328  xorg_cv_cc_flag_unused_command_line_argument=yes
6329else
6330  xorg_cv_cc_flag_unused_command_line_argument=no
6331fi
6332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6333fi
6334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6335$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6336	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6337	CFLAGS="$xorg_testset_save_CFLAGS"
6338fi
6339
6340found="no"
6341
6342	if test $found = "no" ; then
6343		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6344			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6345		fi
6346
6347		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6348			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6349		fi
6350
6351		CFLAGS="$CFLAGS -Wunused"
6352
6353		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6354$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6355		cacheid=xorg_cv_cc_flag__Wunused
6356		if eval \${$cacheid+:} false; then :
6357  $as_echo_n "(cached) " >&6
6358else
6359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6360/* end confdefs.h.  */
6361int i;
6362int
6363main ()
6364{
6365
6366  ;
6367  return 0;
6368}
6369_ACEOF
6370if ac_fn_c_try_link "$LINENO"; then :
6371  eval $cacheid=yes
6372else
6373  eval $cacheid=no
6374fi
6375rm -f core conftest.err conftest.$ac_objext \
6376    conftest$ac_exeext conftest.$ac_ext
6377fi
6378
6379
6380		CFLAGS="$xorg_testset_save_CFLAGS"
6381
6382		eval supported=\$$cacheid
6383		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6384$as_echo "$supported" >&6; }
6385		if test "$supported" = "yes" ; then
6386			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6387			found="yes"
6388		fi
6389	fi
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405xorg_testset_save_CFLAGS="$CFLAGS"
6406
6407if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6408	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6409	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6410$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6411if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6412  $as_echo_n "(cached) " >&6
6413else
6414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6415/* end confdefs.h.  */
6416int i;
6417_ACEOF
6418if ac_fn_c_try_compile "$LINENO"; then :
6419  xorg_cv_cc_flag_unknown_warning_option=yes
6420else
6421  xorg_cv_cc_flag_unknown_warning_option=no
6422fi
6423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6424fi
6425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6426$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6427	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6428	CFLAGS="$xorg_testset_save_CFLAGS"
6429fi
6430
6431if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6432	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6433		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6434	fi
6435	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6436	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6437$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6438if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6439  $as_echo_n "(cached) " >&6
6440else
6441  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6442/* end confdefs.h.  */
6443int i;
6444_ACEOF
6445if ac_fn_c_try_compile "$LINENO"; then :
6446  xorg_cv_cc_flag_unused_command_line_argument=yes
6447else
6448  xorg_cv_cc_flag_unused_command_line_argument=no
6449fi
6450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6451fi
6452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6453$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6454	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6455	CFLAGS="$xorg_testset_save_CFLAGS"
6456fi
6457
6458found="no"
6459
6460	if test $found = "no" ; then
6461		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6462			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6463		fi
6464
6465		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6466			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6467		fi
6468
6469		CFLAGS="$CFLAGS -Wuninitialized"
6470
6471		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6472$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6473		cacheid=xorg_cv_cc_flag__Wuninitialized
6474		if eval \${$cacheid+:} false; then :
6475  $as_echo_n "(cached) " >&6
6476else
6477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6478/* end confdefs.h.  */
6479int i;
6480int
6481main ()
6482{
6483
6484  ;
6485  return 0;
6486}
6487_ACEOF
6488if ac_fn_c_try_link "$LINENO"; then :
6489  eval $cacheid=yes
6490else
6491  eval $cacheid=no
6492fi
6493rm -f core conftest.err conftest.$ac_objext \
6494    conftest$ac_exeext conftest.$ac_ext
6495fi
6496
6497
6498		CFLAGS="$xorg_testset_save_CFLAGS"
6499
6500		eval supported=\$$cacheid
6501		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6502$as_echo "$supported" >&6; }
6503		if test "$supported" = "yes" ; then
6504			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6505			found="yes"
6506		fi
6507	fi
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523xorg_testset_save_CFLAGS="$CFLAGS"
6524
6525if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6526	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6527	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6528$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6529if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6530  $as_echo_n "(cached) " >&6
6531else
6532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6533/* end confdefs.h.  */
6534int i;
6535_ACEOF
6536if ac_fn_c_try_compile "$LINENO"; then :
6537  xorg_cv_cc_flag_unknown_warning_option=yes
6538else
6539  xorg_cv_cc_flag_unknown_warning_option=no
6540fi
6541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6542fi
6543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6544$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6545	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6546	CFLAGS="$xorg_testset_save_CFLAGS"
6547fi
6548
6549if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6550	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6551		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6552	fi
6553	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6554	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6555$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6556if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6557  $as_echo_n "(cached) " >&6
6558else
6559  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6560/* end confdefs.h.  */
6561int i;
6562_ACEOF
6563if ac_fn_c_try_compile "$LINENO"; then :
6564  xorg_cv_cc_flag_unused_command_line_argument=yes
6565else
6566  xorg_cv_cc_flag_unused_command_line_argument=no
6567fi
6568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6569fi
6570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6571$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6572	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6573	CFLAGS="$xorg_testset_save_CFLAGS"
6574fi
6575
6576found="no"
6577
6578	if test $found = "no" ; then
6579		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6580			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6581		fi
6582
6583		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6584			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6585		fi
6586
6587		CFLAGS="$CFLAGS -Wshadow"
6588
6589		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6590$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6591		cacheid=xorg_cv_cc_flag__Wshadow
6592		if eval \${$cacheid+:} false; then :
6593  $as_echo_n "(cached) " >&6
6594else
6595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6596/* end confdefs.h.  */
6597int i;
6598int
6599main ()
6600{
6601
6602  ;
6603  return 0;
6604}
6605_ACEOF
6606if ac_fn_c_try_link "$LINENO"; then :
6607  eval $cacheid=yes
6608else
6609  eval $cacheid=no
6610fi
6611rm -f core conftest.err conftest.$ac_objext \
6612    conftest$ac_exeext conftest.$ac_ext
6613fi
6614
6615
6616		CFLAGS="$xorg_testset_save_CFLAGS"
6617
6618		eval supported=\$$cacheid
6619		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6620$as_echo "$supported" >&6; }
6621		if test "$supported" = "yes" ; then
6622			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6623			found="yes"
6624		fi
6625	fi
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641xorg_testset_save_CFLAGS="$CFLAGS"
6642
6643if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6644	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6645	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6646$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6647if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6648  $as_echo_n "(cached) " >&6
6649else
6650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6651/* end confdefs.h.  */
6652int i;
6653_ACEOF
6654if ac_fn_c_try_compile "$LINENO"; then :
6655  xorg_cv_cc_flag_unknown_warning_option=yes
6656else
6657  xorg_cv_cc_flag_unknown_warning_option=no
6658fi
6659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6660fi
6661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6662$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6663	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6664	CFLAGS="$xorg_testset_save_CFLAGS"
6665fi
6666
6667if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6668	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6669		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6670	fi
6671	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6672	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6673$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6674if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6675  $as_echo_n "(cached) " >&6
6676else
6677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6678/* end confdefs.h.  */
6679int i;
6680_ACEOF
6681if ac_fn_c_try_compile "$LINENO"; then :
6682  xorg_cv_cc_flag_unused_command_line_argument=yes
6683else
6684  xorg_cv_cc_flag_unused_command_line_argument=no
6685fi
6686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6687fi
6688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6689$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6690	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6691	CFLAGS="$xorg_testset_save_CFLAGS"
6692fi
6693
6694found="no"
6695
6696	if test $found = "no" ; then
6697		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6698			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6699		fi
6700
6701		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6702			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6703		fi
6704
6705		CFLAGS="$CFLAGS -Wmissing-noreturn"
6706
6707		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6708$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6709		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6710		if eval \${$cacheid+:} false; then :
6711  $as_echo_n "(cached) " >&6
6712else
6713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6714/* end confdefs.h.  */
6715int i;
6716int
6717main ()
6718{
6719
6720  ;
6721  return 0;
6722}
6723_ACEOF
6724if ac_fn_c_try_link "$LINENO"; then :
6725  eval $cacheid=yes
6726else
6727  eval $cacheid=no
6728fi
6729rm -f core conftest.err conftest.$ac_objext \
6730    conftest$ac_exeext conftest.$ac_ext
6731fi
6732
6733
6734		CFLAGS="$xorg_testset_save_CFLAGS"
6735
6736		eval supported=\$$cacheid
6737		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6738$as_echo "$supported" >&6; }
6739		if test "$supported" = "yes" ; then
6740			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6741			found="yes"
6742		fi
6743	fi
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759xorg_testset_save_CFLAGS="$CFLAGS"
6760
6761if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6762	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6763	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6764$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6765if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6766  $as_echo_n "(cached) " >&6
6767else
6768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6769/* end confdefs.h.  */
6770int i;
6771_ACEOF
6772if ac_fn_c_try_compile "$LINENO"; then :
6773  xorg_cv_cc_flag_unknown_warning_option=yes
6774else
6775  xorg_cv_cc_flag_unknown_warning_option=no
6776fi
6777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6778fi
6779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6780$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6781	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6782	CFLAGS="$xorg_testset_save_CFLAGS"
6783fi
6784
6785if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6786	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6787		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6788	fi
6789	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6790	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6791$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6792if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6793  $as_echo_n "(cached) " >&6
6794else
6795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6796/* end confdefs.h.  */
6797int i;
6798_ACEOF
6799if ac_fn_c_try_compile "$LINENO"; then :
6800  xorg_cv_cc_flag_unused_command_line_argument=yes
6801else
6802  xorg_cv_cc_flag_unused_command_line_argument=no
6803fi
6804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6805fi
6806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6807$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6808	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6809	CFLAGS="$xorg_testset_save_CFLAGS"
6810fi
6811
6812found="no"
6813
6814	if test $found = "no" ; then
6815		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6816			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6817		fi
6818
6819		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6820			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6821		fi
6822
6823		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6824
6825		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6826$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6827		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6828		if eval \${$cacheid+:} false; then :
6829  $as_echo_n "(cached) " >&6
6830else
6831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6832/* end confdefs.h.  */
6833int i;
6834int
6835main ()
6836{
6837
6838  ;
6839  return 0;
6840}
6841_ACEOF
6842if ac_fn_c_try_link "$LINENO"; then :
6843  eval $cacheid=yes
6844else
6845  eval $cacheid=no
6846fi
6847rm -f core conftest.err conftest.$ac_objext \
6848    conftest$ac_exeext conftest.$ac_ext
6849fi
6850
6851
6852		CFLAGS="$xorg_testset_save_CFLAGS"
6853
6854		eval supported=\$$cacheid
6855		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6856$as_echo "$supported" >&6; }
6857		if test "$supported" = "yes" ; then
6858			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6859			found="yes"
6860		fi
6861	fi
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877xorg_testset_save_CFLAGS="$CFLAGS"
6878
6879if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6880	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6881	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6882$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6883if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6884  $as_echo_n "(cached) " >&6
6885else
6886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6887/* end confdefs.h.  */
6888int i;
6889_ACEOF
6890if ac_fn_c_try_compile "$LINENO"; then :
6891  xorg_cv_cc_flag_unknown_warning_option=yes
6892else
6893  xorg_cv_cc_flag_unknown_warning_option=no
6894fi
6895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6896fi
6897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6898$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6899	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6900	CFLAGS="$xorg_testset_save_CFLAGS"
6901fi
6902
6903if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6904	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6905		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6906	fi
6907	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6908	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6909$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6910if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6911  $as_echo_n "(cached) " >&6
6912else
6913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6914/* end confdefs.h.  */
6915int i;
6916_ACEOF
6917if ac_fn_c_try_compile "$LINENO"; then :
6918  xorg_cv_cc_flag_unused_command_line_argument=yes
6919else
6920  xorg_cv_cc_flag_unused_command_line_argument=no
6921fi
6922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6923fi
6924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6925$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6926	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6927	CFLAGS="$xorg_testset_save_CFLAGS"
6928fi
6929
6930found="no"
6931
6932	if test $found = "no" ; then
6933		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6934			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6935		fi
6936
6937		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6938			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6939		fi
6940
6941		CFLAGS="$CFLAGS -Wredundant-decls"
6942
6943		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6944$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6945		cacheid=xorg_cv_cc_flag__Wredundant_decls
6946		if eval \${$cacheid+:} false; then :
6947  $as_echo_n "(cached) " >&6
6948else
6949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6950/* end confdefs.h.  */
6951int i;
6952int
6953main ()
6954{
6955
6956  ;
6957  return 0;
6958}
6959_ACEOF
6960if ac_fn_c_try_link "$LINENO"; then :
6961  eval $cacheid=yes
6962else
6963  eval $cacheid=no
6964fi
6965rm -f core conftest.err conftest.$ac_objext \
6966    conftest$ac_exeext conftest.$ac_ext
6967fi
6968
6969
6970		CFLAGS="$xorg_testset_save_CFLAGS"
6971
6972		eval supported=\$$cacheid
6973		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6974$as_echo "$supported" >&6; }
6975		if test "$supported" = "yes" ; then
6976			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6977			found="yes"
6978		fi
6979	fi
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995xorg_testset_save_CFLAGS="$CFLAGS"
6996
6997if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6998	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6999	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7000$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7001if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7002  $as_echo_n "(cached) " >&6
7003else
7004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7005/* end confdefs.h.  */
7006int i;
7007_ACEOF
7008if ac_fn_c_try_compile "$LINENO"; then :
7009  xorg_cv_cc_flag_unknown_warning_option=yes
7010else
7011  xorg_cv_cc_flag_unknown_warning_option=no
7012fi
7013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7014fi
7015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7016$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7017	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7018	CFLAGS="$xorg_testset_save_CFLAGS"
7019fi
7020
7021if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7022	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7023		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7024	fi
7025	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7026	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7027$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7028if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7029  $as_echo_n "(cached) " >&6
7030else
7031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7032/* end confdefs.h.  */
7033int i;
7034_ACEOF
7035if ac_fn_c_try_compile "$LINENO"; then :
7036  xorg_cv_cc_flag_unused_command_line_argument=yes
7037else
7038  xorg_cv_cc_flag_unused_command_line_argument=no
7039fi
7040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7041fi
7042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7043$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7044	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7045	CFLAGS="$xorg_testset_save_CFLAGS"
7046fi
7047
7048found="no"
7049
7050	if test $found = "no" ; then
7051		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7052			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7053		fi
7054
7055		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7056			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7057		fi
7058
7059		CFLAGS="$CFLAGS -Wlogical-op"
7060
7061		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7062$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
7063		cacheid=xorg_cv_cc_flag__Wlogical_op
7064		if eval \${$cacheid+:} false; then :
7065  $as_echo_n "(cached) " >&6
7066else
7067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068/* end confdefs.h.  */
7069int i;
7070int
7071main ()
7072{
7073
7074  ;
7075  return 0;
7076}
7077_ACEOF
7078if ac_fn_c_try_link "$LINENO"; then :
7079  eval $cacheid=yes
7080else
7081  eval $cacheid=no
7082fi
7083rm -f core conftest.err conftest.$ac_objext \
7084    conftest$ac_exeext conftest.$ac_ext
7085fi
7086
7087
7088		CFLAGS="$xorg_testset_save_CFLAGS"
7089
7090		eval supported=\$$cacheid
7091		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7092$as_echo "$supported" >&6; }
7093		if test "$supported" = "yes" ; then
7094			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7095			found="yes"
7096		fi
7097	fi
7098
7099
7100
7101# These are currently disabled because they are noisy.  They will be enabled
7102# in the future once the codebase is sufficiently modernized to silence
7103# them.  For now, I don't want them to drown out the other warnings.
7104# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7105# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7106# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7107
7108# Turn some warnings into errors, so we don't accidently get successful builds
7109# when there are problems that should be fixed.
7110
7111if test "x$SELECTIVE_WERROR" = "xyes" ; then
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125xorg_testset_save_CFLAGS="$CFLAGS"
7126
7127if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7128	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7129	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7130$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7131if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7132  $as_echo_n "(cached) " >&6
7133else
7134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7135/* end confdefs.h.  */
7136int i;
7137_ACEOF
7138if ac_fn_c_try_compile "$LINENO"; then :
7139  xorg_cv_cc_flag_unknown_warning_option=yes
7140else
7141  xorg_cv_cc_flag_unknown_warning_option=no
7142fi
7143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7144fi
7145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7146$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7147	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7148	CFLAGS="$xorg_testset_save_CFLAGS"
7149fi
7150
7151if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7152	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7153		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7154	fi
7155	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7156	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7157$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7158if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7159  $as_echo_n "(cached) " >&6
7160else
7161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7162/* end confdefs.h.  */
7163int i;
7164_ACEOF
7165if ac_fn_c_try_compile "$LINENO"; then :
7166  xorg_cv_cc_flag_unused_command_line_argument=yes
7167else
7168  xorg_cv_cc_flag_unused_command_line_argument=no
7169fi
7170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7171fi
7172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7173$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7174	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7175	CFLAGS="$xorg_testset_save_CFLAGS"
7176fi
7177
7178found="no"
7179
7180	if test $found = "no" ; then
7181		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7182			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7183		fi
7184
7185		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7186			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7187		fi
7188
7189		CFLAGS="$CFLAGS -Werror=implicit"
7190
7191		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7192$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7193		cacheid=xorg_cv_cc_flag__Werror_implicit
7194		if eval \${$cacheid+:} false; then :
7195  $as_echo_n "(cached) " >&6
7196else
7197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7198/* end confdefs.h.  */
7199int i;
7200int
7201main ()
7202{
7203
7204  ;
7205  return 0;
7206}
7207_ACEOF
7208if ac_fn_c_try_link "$LINENO"; then :
7209  eval $cacheid=yes
7210else
7211  eval $cacheid=no
7212fi
7213rm -f core conftest.err conftest.$ac_objext \
7214    conftest$ac_exeext conftest.$ac_ext
7215fi
7216
7217
7218		CFLAGS="$xorg_testset_save_CFLAGS"
7219
7220		eval supported=\$$cacheid
7221		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7222$as_echo "$supported" >&6; }
7223		if test "$supported" = "yes" ; then
7224			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7225			found="yes"
7226		fi
7227	fi
7228
7229	if test $found = "no" ; then
7230		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7231			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7232		fi
7233
7234		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7235			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7236		fi
7237
7238		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7239
7240		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7241$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7242		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7243		if eval \${$cacheid+:} false; then :
7244  $as_echo_n "(cached) " >&6
7245else
7246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7247/* end confdefs.h.  */
7248int i;
7249int
7250main ()
7251{
7252
7253  ;
7254  return 0;
7255}
7256_ACEOF
7257if ac_fn_c_try_link "$LINENO"; then :
7258  eval $cacheid=yes
7259else
7260  eval $cacheid=no
7261fi
7262rm -f core conftest.err conftest.$ac_objext \
7263    conftest$ac_exeext conftest.$ac_ext
7264fi
7265
7266
7267		CFLAGS="$xorg_testset_save_CFLAGS"
7268
7269		eval supported=\$$cacheid
7270		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7271$as_echo "$supported" >&6; }
7272		if test "$supported" = "yes" ; then
7273			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7274			found="yes"
7275		fi
7276	fi
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292xorg_testset_save_CFLAGS="$CFLAGS"
7293
7294if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7295	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7296	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7297$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7298if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7299  $as_echo_n "(cached) " >&6
7300else
7301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7302/* end confdefs.h.  */
7303int i;
7304_ACEOF
7305if ac_fn_c_try_compile "$LINENO"; then :
7306  xorg_cv_cc_flag_unknown_warning_option=yes
7307else
7308  xorg_cv_cc_flag_unknown_warning_option=no
7309fi
7310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7311fi
7312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7313$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7314	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7315	CFLAGS="$xorg_testset_save_CFLAGS"
7316fi
7317
7318if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7319	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7320		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7321	fi
7322	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7323	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7324$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7325if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7326  $as_echo_n "(cached) " >&6
7327else
7328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7329/* end confdefs.h.  */
7330int i;
7331_ACEOF
7332if ac_fn_c_try_compile "$LINENO"; then :
7333  xorg_cv_cc_flag_unused_command_line_argument=yes
7334else
7335  xorg_cv_cc_flag_unused_command_line_argument=no
7336fi
7337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7338fi
7339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7340$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7341	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7342	CFLAGS="$xorg_testset_save_CFLAGS"
7343fi
7344
7345found="no"
7346
7347	if test $found = "no" ; then
7348		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7349			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7350		fi
7351
7352		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7353			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7354		fi
7355
7356		CFLAGS="$CFLAGS -Werror=nonnull"
7357
7358		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7359$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7360		cacheid=xorg_cv_cc_flag__Werror_nonnull
7361		if eval \${$cacheid+:} false; then :
7362  $as_echo_n "(cached) " >&6
7363else
7364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7365/* end confdefs.h.  */
7366int i;
7367int
7368main ()
7369{
7370
7371  ;
7372  return 0;
7373}
7374_ACEOF
7375if ac_fn_c_try_link "$LINENO"; then :
7376  eval $cacheid=yes
7377else
7378  eval $cacheid=no
7379fi
7380rm -f core conftest.err conftest.$ac_objext \
7381    conftest$ac_exeext conftest.$ac_ext
7382fi
7383
7384
7385		CFLAGS="$xorg_testset_save_CFLAGS"
7386
7387		eval supported=\$$cacheid
7388		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7389$as_echo "$supported" >&6; }
7390		if test "$supported" = "yes" ; then
7391			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7392			found="yes"
7393		fi
7394	fi
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410xorg_testset_save_CFLAGS="$CFLAGS"
7411
7412if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7413	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7414	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7415$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7416if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7417  $as_echo_n "(cached) " >&6
7418else
7419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7420/* end confdefs.h.  */
7421int i;
7422_ACEOF
7423if ac_fn_c_try_compile "$LINENO"; then :
7424  xorg_cv_cc_flag_unknown_warning_option=yes
7425else
7426  xorg_cv_cc_flag_unknown_warning_option=no
7427fi
7428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7429fi
7430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7431$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7432	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7433	CFLAGS="$xorg_testset_save_CFLAGS"
7434fi
7435
7436if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7437	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7438		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7439	fi
7440	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7441	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7442$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7443if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7444  $as_echo_n "(cached) " >&6
7445else
7446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7447/* end confdefs.h.  */
7448int i;
7449_ACEOF
7450if ac_fn_c_try_compile "$LINENO"; then :
7451  xorg_cv_cc_flag_unused_command_line_argument=yes
7452else
7453  xorg_cv_cc_flag_unused_command_line_argument=no
7454fi
7455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7456fi
7457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7458$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7459	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7460	CFLAGS="$xorg_testset_save_CFLAGS"
7461fi
7462
7463found="no"
7464
7465	if test $found = "no" ; then
7466		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7467			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7468		fi
7469
7470		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7471			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7472		fi
7473
7474		CFLAGS="$CFLAGS -Werror=init-self"
7475
7476		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7477$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7478		cacheid=xorg_cv_cc_flag__Werror_init_self
7479		if eval \${$cacheid+:} false; then :
7480  $as_echo_n "(cached) " >&6
7481else
7482  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7483/* end confdefs.h.  */
7484int i;
7485int
7486main ()
7487{
7488
7489  ;
7490  return 0;
7491}
7492_ACEOF
7493if ac_fn_c_try_link "$LINENO"; then :
7494  eval $cacheid=yes
7495else
7496  eval $cacheid=no
7497fi
7498rm -f core conftest.err conftest.$ac_objext \
7499    conftest$ac_exeext conftest.$ac_ext
7500fi
7501
7502
7503		CFLAGS="$xorg_testset_save_CFLAGS"
7504
7505		eval supported=\$$cacheid
7506		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7507$as_echo "$supported" >&6; }
7508		if test "$supported" = "yes" ; then
7509			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7510			found="yes"
7511		fi
7512	fi
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528xorg_testset_save_CFLAGS="$CFLAGS"
7529
7530if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7531	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7532	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7533$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7534if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7535  $as_echo_n "(cached) " >&6
7536else
7537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7538/* end confdefs.h.  */
7539int i;
7540_ACEOF
7541if ac_fn_c_try_compile "$LINENO"; then :
7542  xorg_cv_cc_flag_unknown_warning_option=yes
7543else
7544  xorg_cv_cc_flag_unknown_warning_option=no
7545fi
7546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7547fi
7548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7549$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7550	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7551	CFLAGS="$xorg_testset_save_CFLAGS"
7552fi
7553
7554if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7555	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7556		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7557	fi
7558	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7559	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7560$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7561if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7562  $as_echo_n "(cached) " >&6
7563else
7564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7565/* end confdefs.h.  */
7566int i;
7567_ACEOF
7568if ac_fn_c_try_compile "$LINENO"; then :
7569  xorg_cv_cc_flag_unused_command_line_argument=yes
7570else
7571  xorg_cv_cc_flag_unused_command_line_argument=no
7572fi
7573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7574fi
7575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7576$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7577	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7578	CFLAGS="$xorg_testset_save_CFLAGS"
7579fi
7580
7581found="no"
7582
7583	if test $found = "no" ; then
7584		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7585			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7586		fi
7587
7588		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7589			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7590		fi
7591
7592		CFLAGS="$CFLAGS -Werror=main"
7593
7594		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7595$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7596		cacheid=xorg_cv_cc_flag__Werror_main
7597		if eval \${$cacheid+:} false; then :
7598  $as_echo_n "(cached) " >&6
7599else
7600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601/* end confdefs.h.  */
7602int i;
7603int
7604main ()
7605{
7606
7607  ;
7608  return 0;
7609}
7610_ACEOF
7611if ac_fn_c_try_link "$LINENO"; then :
7612  eval $cacheid=yes
7613else
7614  eval $cacheid=no
7615fi
7616rm -f core conftest.err conftest.$ac_objext \
7617    conftest$ac_exeext conftest.$ac_ext
7618fi
7619
7620
7621		CFLAGS="$xorg_testset_save_CFLAGS"
7622
7623		eval supported=\$$cacheid
7624		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7625$as_echo "$supported" >&6; }
7626		if test "$supported" = "yes" ; then
7627			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7628			found="yes"
7629		fi
7630	fi
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646xorg_testset_save_CFLAGS="$CFLAGS"
7647
7648if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7649	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7650	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7651$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7652if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7653  $as_echo_n "(cached) " >&6
7654else
7655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656/* end confdefs.h.  */
7657int i;
7658_ACEOF
7659if ac_fn_c_try_compile "$LINENO"; then :
7660  xorg_cv_cc_flag_unknown_warning_option=yes
7661else
7662  xorg_cv_cc_flag_unknown_warning_option=no
7663fi
7664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7665fi
7666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7667$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7668	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7669	CFLAGS="$xorg_testset_save_CFLAGS"
7670fi
7671
7672if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7673	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7674		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7675	fi
7676	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7677	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7678$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7679if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7680  $as_echo_n "(cached) " >&6
7681else
7682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7683/* end confdefs.h.  */
7684int i;
7685_ACEOF
7686if ac_fn_c_try_compile "$LINENO"; then :
7687  xorg_cv_cc_flag_unused_command_line_argument=yes
7688else
7689  xorg_cv_cc_flag_unused_command_line_argument=no
7690fi
7691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7692fi
7693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7694$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7695	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7696	CFLAGS="$xorg_testset_save_CFLAGS"
7697fi
7698
7699found="no"
7700
7701	if test $found = "no" ; then
7702		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7703			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7704		fi
7705
7706		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7707			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7708		fi
7709
7710		CFLAGS="$CFLAGS -Werror=missing-braces"
7711
7712		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7713$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7714		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7715		if eval \${$cacheid+:} false; then :
7716  $as_echo_n "(cached) " >&6
7717else
7718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7719/* end confdefs.h.  */
7720int i;
7721int
7722main ()
7723{
7724
7725  ;
7726  return 0;
7727}
7728_ACEOF
7729if ac_fn_c_try_link "$LINENO"; then :
7730  eval $cacheid=yes
7731else
7732  eval $cacheid=no
7733fi
7734rm -f core conftest.err conftest.$ac_objext \
7735    conftest$ac_exeext conftest.$ac_ext
7736fi
7737
7738
7739		CFLAGS="$xorg_testset_save_CFLAGS"
7740
7741		eval supported=\$$cacheid
7742		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7743$as_echo "$supported" >&6; }
7744		if test "$supported" = "yes" ; then
7745			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7746			found="yes"
7747		fi
7748	fi
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764xorg_testset_save_CFLAGS="$CFLAGS"
7765
7766if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7767	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7768	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7769$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7770if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7771  $as_echo_n "(cached) " >&6
7772else
7773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7774/* end confdefs.h.  */
7775int i;
7776_ACEOF
7777if ac_fn_c_try_compile "$LINENO"; then :
7778  xorg_cv_cc_flag_unknown_warning_option=yes
7779else
7780  xorg_cv_cc_flag_unknown_warning_option=no
7781fi
7782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7783fi
7784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7785$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7786	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7787	CFLAGS="$xorg_testset_save_CFLAGS"
7788fi
7789
7790if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7791	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7792		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7793	fi
7794	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7795	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7796$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7797if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7798  $as_echo_n "(cached) " >&6
7799else
7800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7801/* end confdefs.h.  */
7802int i;
7803_ACEOF
7804if ac_fn_c_try_compile "$LINENO"; then :
7805  xorg_cv_cc_flag_unused_command_line_argument=yes
7806else
7807  xorg_cv_cc_flag_unused_command_line_argument=no
7808fi
7809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7810fi
7811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7812$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7813	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7814	CFLAGS="$xorg_testset_save_CFLAGS"
7815fi
7816
7817found="no"
7818
7819	if test $found = "no" ; then
7820		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7821			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7822		fi
7823
7824		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7825			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7826		fi
7827
7828		CFLAGS="$CFLAGS -Werror=sequence-point"
7829
7830		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7831$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7832		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7833		if eval \${$cacheid+:} false; then :
7834  $as_echo_n "(cached) " >&6
7835else
7836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7837/* end confdefs.h.  */
7838int i;
7839int
7840main ()
7841{
7842
7843  ;
7844  return 0;
7845}
7846_ACEOF
7847if ac_fn_c_try_link "$LINENO"; then :
7848  eval $cacheid=yes
7849else
7850  eval $cacheid=no
7851fi
7852rm -f core conftest.err conftest.$ac_objext \
7853    conftest$ac_exeext conftest.$ac_ext
7854fi
7855
7856
7857		CFLAGS="$xorg_testset_save_CFLAGS"
7858
7859		eval supported=\$$cacheid
7860		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7861$as_echo "$supported" >&6; }
7862		if test "$supported" = "yes" ; then
7863			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7864			found="yes"
7865		fi
7866	fi
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882xorg_testset_save_CFLAGS="$CFLAGS"
7883
7884if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7885	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7886	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7887$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7888if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7889  $as_echo_n "(cached) " >&6
7890else
7891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7892/* end confdefs.h.  */
7893int i;
7894_ACEOF
7895if ac_fn_c_try_compile "$LINENO"; then :
7896  xorg_cv_cc_flag_unknown_warning_option=yes
7897else
7898  xorg_cv_cc_flag_unknown_warning_option=no
7899fi
7900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7901fi
7902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7903$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7904	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7905	CFLAGS="$xorg_testset_save_CFLAGS"
7906fi
7907
7908if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7909	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7910		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7911	fi
7912	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7913	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7914$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7915if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7916  $as_echo_n "(cached) " >&6
7917else
7918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7919/* end confdefs.h.  */
7920int i;
7921_ACEOF
7922if ac_fn_c_try_compile "$LINENO"; then :
7923  xorg_cv_cc_flag_unused_command_line_argument=yes
7924else
7925  xorg_cv_cc_flag_unused_command_line_argument=no
7926fi
7927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7928fi
7929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7930$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7931	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7932	CFLAGS="$xorg_testset_save_CFLAGS"
7933fi
7934
7935found="no"
7936
7937	if test $found = "no" ; then
7938		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7939			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7940		fi
7941
7942		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7943			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7944		fi
7945
7946		CFLAGS="$CFLAGS -Werror=return-type"
7947
7948		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7949$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7950		cacheid=xorg_cv_cc_flag__Werror_return_type
7951		if eval \${$cacheid+:} false; then :
7952  $as_echo_n "(cached) " >&6
7953else
7954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7955/* end confdefs.h.  */
7956int i;
7957int
7958main ()
7959{
7960
7961  ;
7962  return 0;
7963}
7964_ACEOF
7965if ac_fn_c_try_link "$LINENO"; then :
7966  eval $cacheid=yes
7967else
7968  eval $cacheid=no
7969fi
7970rm -f core conftest.err conftest.$ac_objext \
7971    conftest$ac_exeext conftest.$ac_ext
7972fi
7973
7974
7975		CFLAGS="$xorg_testset_save_CFLAGS"
7976
7977		eval supported=\$$cacheid
7978		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7979$as_echo "$supported" >&6; }
7980		if test "$supported" = "yes" ; then
7981			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7982			found="yes"
7983		fi
7984	fi
7985
7986	if test $found = "no" ; then
7987		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7988			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7989		fi
7990
7991		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7992			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7993		fi
7994
7995		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7996
7997		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7998$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7999		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8000		if eval \${$cacheid+:} false; then :
8001  $as_echo_n "(cached) " >&6
8002else
8003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8004/* end confdefs.h.  */
8005int i;
8006int
8007main ()
8008{
8009
8010  ;
8011  return 0;
8012}
8013_ACEOF
8014if ac_fn_c_try_link "$LINENO"; then :
8015  eval $cacheid=yes
8016else
8017  eval $cacheid=no
8018fi
8019rm -f core conftest.err conftest.$ac_objext \
8020    conftest$ac_exeext conftest.$ac_ext
8021fi
8022
8023
8024		CFLAGS="$xorg_testset_save_CFLAGS"
8025
8026		eval supported=\$$cacheid
8027		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8028$as_echo "$supported" >&6; }
8029		if test "$supported" = "yes" ; then
8030			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8031			found="yes"
8032		fi
8033	fi
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049xorg_testset_save_CFLAGS="$CFLAGS"
8050
8051if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8052	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8053	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8054$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8055if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8056  $as_echo_n "(cached) " >&6
8057else
8058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8059/* end confdefs.h.  */
8060int i;
8061_ACEOF
8062if ac_fn_c_try_compile "$LINENO"; then :
8063  xorg_cv_cc_flag_unknown_warning_option=yes
8064else
8065  xorg_cv_cc_flag_unknown_warning_option=no
8066fi
8067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8068fi
8069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8070$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8071	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8072	CFLAGS="$xorg_testset_save_CFLAGS"
8073fi
8074
8075if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8076	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8077		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8078	fi
8079	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8080	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8081$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8082if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8083  $as_echo_n "(cached) " >&6
8084else
8085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8086/* end confdefs.h.  */
8087int i;
8088_ACEOF
8089if ac_fn_c_try_compile "$LINENO"; then :
8090  xorg_cv_cc_flag_unused_command_line_argument=yes
8091else
8092  xorg_cv_cc_flag_unused_command_line_argument=no
8093fi
8094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8095fi
8096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8097$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8098	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8099	CFLAGS="$xorg_testset_save_CFLAGS"
8100fi
8101
8102found="no"
8103
8104	if test $found = "no" ; then
8105		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8106			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8107		fi
8108
8109		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8110			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8111		fi
8112
8113		CFLAGS="$CFLAGS -Werror=trigraphs"
8114
8115		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8116$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
8117		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8118		if eval \${$cacheid+:} false; then :
8119  $as_echo_n "(cached) " >&6
8120else
8121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8122/* end confdefs.h.  */
8123int i;
8124int
8125main ()
8126{
8127
8128  ;
8129  return 0;
8130}
8131_ACEOF
8132if ac_fn_c_try_link "$LINENO"; then :
8133  eval $cacheid=yes
8134else
8135  eval $cacheid=no
8136fi
8137rm -f core conftest.err conftest.$ac_objext \
8138    conftest$ac_exeext conftest.$ac_ext
8139fi
8140
8141
8142		CFLAGS="$xorg_testset_save_CFLAGS"
8143
8144		eval supported=\$$cacheid
8145		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8146$as_echo "$supported" >&6; }
8147		if test "$supported" = "yes" ; then
8148			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8149			found="yes"
8150		fi
8151	fi
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167xorg_testset_save_CFLAGS="$CFLAGS"
8168
8169if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8170	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8171	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8172$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8173if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8174  $as_echo_n "(cached) " >&6
8175else
8176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8177/* end confdefs.h.  */
8178int i;
8179_ACEOF
8180if ac_fn_c_try_compile "$LINENO"; then :
8181  xorg_cv_cc_flag_unknown_warning_option=yes
8182else
8183  xorg_cv_cc_flag_unknown_warning_option=no
8184fi
8185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8186fi
8187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8188$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8189	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8190	CFLAGS="$xorg_testset_save_CFLAGS"
8191fi
8192
8193if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8194	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8195		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8196	fi
8197	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8198	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8199$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8200if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8201  $as_echo_n "(cached) " >&6
8202else
8203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8204/* end confdefs.h.  */
8205int i;
8206_ACEOF
8207if ac_fn_c_try_compile "$LINENO"; then :
8208  xorg_cv_cc_flag_unused_command_line_argument=yes
8209else
8210  xorg_cv_cc_flag_unused_command_line_argument=no
8211fi
8212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8213fi
8214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8215$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8216	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8217	CFLAGS="$xorg_testset_save_CFLAGS"
8218fi
8219
8220found="no"
8221
8222	if test $found = "no" ; then
8223		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8224			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8225		fi
8226
8227		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8228			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8229		fi
8230
8231		CFLAGS="$CFLAGS -Werror=array-bounds"
8232
8233		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8234$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8235		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8236		if eval \${$cacheid+:} false; then :
8237  $as_echo_n "(cached) " >&6
8238else
8239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8240/* end confdefs.h.  */
8241int i;
8242int
8243main ()
8244{
8245
8246  ;
8247  return 0;
8248}
8249_ACEOF
8250if ac_fn_c_try_link "$LINENO"; then :
8251  eval $cacheid=yes
8252else
8253  eval $cacheid=no
8254fi
8255rm -f core conftest.err conftest.$ac_objext \
8256    conftest$ac_exeext conftest.$ac_ext
8257fi
8258
8259
8260		CFLAGS="$xorg_testset_save_CFLAGS"
8261
8262		eval supported=\$$cacheid
8263		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8264$as_echo "$supported" >&6; }
8265		if test "$supported" = "yes" ; then
8266			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8267			found="yes"
8268		fi
8269	fi
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285xorg_testset_save_CFLAGS="$CFLAGS"
8286
8287if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8288	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8289	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8290$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8291if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8292  $as_echo_n "(cached) " >&6
8293else
8294  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8295/* end confdefs.h.  */
8296int i;
8297_ACEOF
8298if ac_fn_c_try_compile "$LINENO"; then :
8299  xorg_cv_cc_flag_unknown_warning_option=yes
8300else
8301  xorg_cv_cc_flag_unknown_warning_option=no
8302fi
8303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8304fi
8305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8306$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8307	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8308	CFLAGS="$xorg_testset_save_CFLAGS"
8309fi
8310
8311if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8312	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8313		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8314	fi
8315	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8316	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8317$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8318if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8319  $as_echo_n "(cached) " >&6
8320else
8321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8322/* end confdefs.h.  */
8323int i;
8324_ACEOF
8325if ac_fn_c_try_compile "$LINENO"; then :
8326  xorg_cv_cc_flag_unused_command_line_argument=yes
8327else
8328  xorg_cv_cc_flag_unused_command_line_argument=no
8329fi
8330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8331fi
8332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8333$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8334	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8335	CFLAGS="$xorg_testset_save_CFLAGS"
8336fi
8337
8338found="no"
8339
8340	if test $found = "no" ; then
8341		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8342			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8343		fi
8344
8345		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8346			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8347		fi
8348
8349		CFLAGS="$CFLAGS -Werror=write-strings"
8350
8351		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8352$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8353		cacheid=xorg_cv_cc_flag__Werror_write_strings
8354		if eval \${$cacheid+:} false; then :
8355  $as_echo_n "(cached) " >&6
8356else
8357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8358/* end confdefs.h.  */
8359int i;
8360int
8361main ()
8362{
8363
8364  ;
8365  return 0;
8366}
8367_ACEOF
8368if ac_fn_c_try_link "$LINENO"; then :
8369  eval $cacheid=yes
8370else
8371  eval $cacheid=no
8372fi
8373rm -f core conftest.err conftest.$ac_objext \
8374    conftest$ac_exeext conftest.$ac_ext
8375fi
8376
8377
8378		CFLAGS="$xorg_testset_save_CFLAGS"
8379
8380		eval supported=\$$cacheid
8381		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8382$as_echo "$supported" >&6; }
8383		if test "$supported" = "yes" ; then
8384			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8385			found="yes"
8386		fi
8387	fi
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403xorg_testset_save_CFLAGS="$CFLAGS"
8404
8405if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8406	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8407	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8408$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8409if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8410  $as_echo_n "(cached) " >&6
8411else
8412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8413/* end confdefs.h.  */
8414int i;
8415_ACEOF
8416if ac_fn_c_try_compile "$LINENO"; then :
8417  xorg_cv_cc_flag_unknown_warning_option=yes
8418else
8419  xorg_cv_cc_flag_unknown_warning_option=no
8420fi
8421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8422fi
8423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8424$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8425	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8426	CFLAGS="$xorg_testset_save_CFLAGS"
8427fi
8428
8429if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8430	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8431		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8432	fi
8433	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8434	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8435$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8436if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8437  $as_echo_n "(cached) " >&6
8438else
8439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8440/* end confdefs.h.  */
8441int i;
8442_ACEOF
8443if ac_fn_c_try_compile "$LINENO"; then :
8444  xorg_cv_cc_flag_unused_command_line_argument=yes
8445else
8446  xorg_cv_cc_flag_unused_command_line_argument=no
8447fi
8448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8449fi
8450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8451$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8452	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8453	CFLAGS="$xorg_testset_save_CFLAGS"
8454fi
8455
8456found="no"
8457
8458	if test $found = "no" ; then
8459		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8460			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8461		fi
8462
8463		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8464			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8465		fi
8466
8467		CFLAGS="$CFLAGS -Werror=address"
8468
8469		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8470$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8471		cacheid=xorg_cv_cc_flag__Werror_address
8472		if eval \${$cacheid+:} false; then :
8473  $as_echo_n "(cached) " >&6
8474else
8475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8476/* end confdefs.h.  */
8477int i;
8478int
8479main ()
8480{
8481
8482  ;
8483  return 0;
8484}
8485_ACEOF
8486if ac_fn_c_try_link "$LINENO"; then :
8487  eval $cacheid=yes
8488else
8489  eval $cacheid=no
8490fi
8491rm -f core conftest.err conftest.$ac_objext \
8492    conftest$ac_exeext conftest.$ac_ext
8493fi
8494
8495
8496		CFLAGS="$xorg_testset_save_CFLAGS"
8497
8498		eval supported=\$$cacheid
8499		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8500$as_echo "$supported" >&6; }
8501		if test "$supported" = "yes" ; then
8502			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8503			found="yes"
8504		fi
8505	fi
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521xorg_testset_save_CFLAGS="$CFLAGS"
8522
8523if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8524	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8525	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8526$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8527if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8528  $as_echo_n "(cached) " >&6
8529else
8530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8531/* end confdefs.h.  */
8532int i;
8533_ACEOF
8534if ac_fn_c_try_compile "$LINENO"; then :
8535  xorg_cv_cc_flag_unknown_warning_option=yes
8536else
8537  xorg_cv_cc_flag_unknown_warning_option=no
8538fi
8539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8540fi
8541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8542$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8543	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8544	CFLAGS="$xorg_testset_save_CFLAGS"
8545fi
8546
8547if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8548	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8549		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8550	fi
8551	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8552	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8553$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8554if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8555  $as_echo_n "(cached) " >&6
8556else
8557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8558/* end confdefs.h.  */
8559int i;
8560_ACEOF
8561if ac_fn_c_try_compile "$LINENO"; then :
8562  xorg_cv_cc_flag_unused_command_line_argument=yes
8563else
8564  xorg_cv_cc_flag_unused_command_line_argument=no
8565fi
8566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8567fi
8568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8569$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8570	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8571	CFLAGS="$xorg_testset_save_CFLAGS"
8572fi
8573
8574found="no"
8575
8576	if test $found = "no" ; then
8577		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8578			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8579		fi
8580
8581		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8582			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8583		fi
8584
8585		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8586
8587		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8588$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8589		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8590		if eval \${$cacheid+:} false; then :
8591  $as_echo_n "(cached) " >&6
8592else
8593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8594/* end confdefs.h.  */
8595int i;
8596int
8597main ()
8598{
8599
8600  ;
8601  return 0;
8602}
8603_ACEOF
8604if ac_fn_c_try_link "$LINENO"; then :
8605  eval $cacheid=yes
8606else
8607  eval $cacheid=no
8608fi
8609rm -f core conftest.err conftest.$ac_objext \
8610    conftest$ac_exeext conftest.$ac_ext
8611fi
8612
8613
8614		CFLAGS="$xorg_testset_save_CFLAGS"
8615
8616		eval supported=\$$cacheid
8617		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8618$as_echo "$supported" >&6; }
8619		if test "$supported" = "yes" ; then
8620			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8621			found="yes"
8622		fi
8623	fi
8624
8625	if test $found = "no" ; then
8626		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8627			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8628		fi
8629
8630		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8631			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8632		fi
8633
8634		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8635
8636		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8637$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8638		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8639		if eval \${$cacheid+:} false; then :
8640  $as_echo_n "(cached) " >&6
8641else
8642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8643/* end confdefs.h.  */
8644int i;
8645int
8646main ()
8647{
8648
8649  ;
8650  return 0;
8651}
8652_ACEOF
8653if ac_fn_c_try_link "$LINENO"; then :
8654  eval $cacheid=yes
8655else
8656  eval $cacheid=no
8657fi
8658rm -f core conftest.err conftest.$ac_objext \
8659    conftest$ac_exeext conftest.$ac_ext
8660fi
8661
8662
8663		CFLAGS="$xorg_testset_save_CFLAGS"
8664
8665		eval supported=\$$cacheid
8666		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8667$as_echo "$supported" >&6; }
8668		if test "$supported" = "yes" ; then
8669			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8670			found="yes"
8671		fi
8672	fi
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688xorg_testset_save_CFLAGS="$CFLAGS"
8689
8690if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8691	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8692	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8693$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8694if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8695  $as_echo_n "(cached) " >&6
8696else
8697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8698/* end confdefs.h.  */
8699int i;
8700_ACEOF
8701if ac_fn_c_try_compile "$LINENO"; then :
8702  xorg_cv_cc_flag_unknown_warning_option=yes
8703else
8704  xorg_cv_cc_flag_unknown_warning_option=no
8705fi
8706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8707fi
8708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8709$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8710	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8711	CFLAGS="$xorg_testset_save_CFLAGS"
8712fi
8713
8714if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8715	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8716		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8717	fi
8718	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8719	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8720$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8721if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8722  $as_echo_n "(cached) " >&6
8723else
8724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8725/* end confdefs.h.  */
8726int i;
8727_ACEOF
8728if ac_fn_c_try_compile "$LINENO"; then :
8729  xorg_cv_cc_flag_unused_command_line_argument=yes
8730else
8731  xorg_cv_cc_flag_unused_command_line_argument=no
8732fi
8733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8734fi
8735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8736$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8737	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8738	CFLAGS="$xorg_testset_save_CFLAGS"
8739fi
8740
8741found="no"
8742
8743	if test $found = "no" ; then
8744		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8745			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8746		fi
8747
8748		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8749			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8750		fi
8751
8752		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8753
8754		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8755$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8756		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8757		if eval \${$cacheid+:} false; then :
8758  $as_echo_n "(cached) " >&6
8759else
8760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8761/* end confdefs.h.  */
8762int i;
8763int
8764main ()
8765{
8766
8767  ;
8768  return 0;
8769}
8770_ACEOF
8771if ac_fn_c_try_link "$LINENO"; then :
8772  eval $cacheid=yes
8773else
8774  eval $cacheid=no
8775fi
8776rm -f core conftest.err conftest.$ac_objext \
8777    conftest$ac_exeext conftest.$ac_ext
8778fi
8779
8780
8781		CFLAGS="$xorg_testset_save_CFLAGS"
8782
8783		eval supported=\$$cacheid
8784		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8785$as_echo "$supported" >&6; }
8786		if test "$supported" = "yes" ; then
8787			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8788			found="yes"
8789		fi
8790	fi
8791
8792 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8793else
8794{ $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
8795$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;}
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809xorg_testset_save_CFLAGS="$CFLAGS"
8810
8811if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8812	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8813	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8814$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8815if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8816  $as_echo_n "(cached) " >&6
8817else
8818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8819/* end confdefs.h.  */
8820int i;
8821_ACEOF
8822if ac_fn_c_try_compile "$LINENO"; then :
8823  xorg_cv_cc_flag_unknown_warning_option=yes
8824else
8825  xorg_cv_cc_flag_unknown_warning_option=no
8826fi
8827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8828fi
8829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8830$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8831	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8832	CFLAGS="$xorg_testset_save_CFLAGS"
8833fi
8834
8835if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8836	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8837		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8838	fi
8839	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8840	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8841$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8842if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8843  $as_echo_n "(cached) " >&6
8844else
8845  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8846/* end confdefs.h.  */
8847int i;
8848_ACEOF
8849if ac_fn_c_try_compile "$LINENO"; then :
8850  xorg_cv_cc_flag_unused_command_line_argument=yes
8851else
8852  xorg_cv_cc_flag_unused_command_line_argument=no
8853fi
8854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8855fi
8856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8857$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8858	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8859	CFLAGS="$xorg_testset_save_CFLAGS"
8860fi
8861
8862found="no"
8863
8864	if test $found = "no" ; then
8865		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8866			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8867		fi
8868
8869		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8870			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8871		fi
8872
8873		CFLAGS="$CFLAGS -Wimplicit"
8874
8875		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8876$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8877		cacheid=xorg_cv_cc_flag__Wimplicit
8878		if eval \${$cacheid+:} false; then :
8879  $as_echo_n "(cached) " >&6
8880else
8881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8882/* end confdefs.h.  */
8883int i;
8884int
8885main ()
8886{
8887
8888  ;
8889  return 0;
8890}
8891_ACEOF
8892if ac_fn_c_try_link "$LINENO"; then :
8893  eval $cacheid=yes
8894else
8895  eval $cacheid=no
8896fi
8897rm -f core conftest.err conftest.$ac_objext \
8898    conftest$ac_exeext conftest.$ac_ext
8899fi
8900
8901
8902		CFLAGS="$xorg_testset_save_CFLAGS"
8903
8904		eval supported=\$$cacheid
8905		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8906$as_echo "$supported" >&6; }
8907		if test "$supported" = "yes" ; then
8908			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8909			found="yes"
8910		fi
8911	fi
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927xorg_testset_save_CFLAGS="$CFLAGS"
8928
8929if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8930	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8931	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8932$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8933if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8934  $as_echo_n "(cached) " >&6
8935else
8936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8937/* end confdefs.h.  */
8938int i;
8939_ACEOF
8940if ac_fn_c_try_compile "$LINENO"; then :
8941  xorg_cv_cc_flag_unknown_warning_option=yes
8942else
8943  xorg_cv_cc_flag_unknown_warning_option=no
8944fi
8945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8946fi
8947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8948$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8949	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8950	CFLAGS="$xorg_testset_save_CFLAGS"
8951fi
8952
8953if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8954	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8955		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8956	fi
8957	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8958	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8959$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8960if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8961  $as_echo_n "(cached) " >&6
8962else
8963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8964/* end confdefs.h.  */
8965int i;
8966_ACEOF
8967if ac_fn_c_try_compile "$LINENO"; then :
8968  xorg_cv_cc_flag_unused_command_line_argument=yes
8969else
8970  xorg_cv_cc_flag_unused_command_line_argument=no
8971fi
8972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8973fi
8974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8975$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8976	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8977	CFLAGS="$xorg_testset_save_CFLAGS"
8978fi
8979
8980found="no"
8981
8982	if test $found = "no" ; then
8983		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8984			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8985		fi
8986
8987		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8988			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8989		fi
8990
8991		CFLAGS="$CFLAGS -Wnonnull"
8992
8993		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8994$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8995		cacheid=xorg_cv_cc_flag__Wnonnull
8996		if eval \${$cacheid+:} false; then :
8997  $as_echo_n "(cached) " >&6
8998else
8999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9000/* end confdefs.h.  */
9001int i;
9002int
9003main ()
9004{
9005
9006  ;
9007  return 0;
9008}
9009_ACEOF
9010if ac_fn_c_try_link "$LINENO"; then :
9011  eval $cacheid=yes
9012else
9013  eval $cacheid=no
9014fi
9015rm -f core conftest.err conftest.$ac_objext \
9016    conftest$ac_exeext conftest.$ac_ext
9017fi
9018
9019
9020		CFLAGS="$xorg_testset_save_CFLAGS"
9021
9022		eval supported=\$$cacheid
9023		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9024$as_echo "$supported" >&6; }
9025		if test "$supported" = "yes" ; then
9026			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9027			found="yes"
9028		fi
9029	fi
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045xorg_testset_save_CFLAGS="$CFLAGS"
9046
9047if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9048	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9049	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9050$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9051if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9052  $as_echo_n "(cached) " >&6
9053else
9054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9055/* end confdefs.h.  */
9056int i;
9057_ACEOF
9058if ac_fn_c_try_compile "$LINENO"; then :
9059  xorg_cv_cc_flag_unknown_warning_option=yes
9060else
9061  xorg_cv_cc_flag_unknown_warning_option=no
9062fi
9063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9064fi
9065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9066$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9067	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9068	CFLAGS="$xorg_testset_save_CFLAGS"
9069fi
9070
9071if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9072	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9073		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9074	fi
9075	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9076	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9077$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9078if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9079  $as_echo_n "(cached) " >&6
9080else
9081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9082/* end confdefs.h.  */
9083int i;
9084_ACEOF
9085if ac_fn_c_try_compile "$LINENO"; then :
9086  xorg_cv_cc_flag_unused_command_line_argument=yes
9087else
9088  xorg_cv_cc_flag_unused_command_line_argument=no
9089fi
9090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9091fi
9092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9093$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9094	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9095	CFLAGS="$xorg_testset_save_CFLAGS"
9096fi
9097
9098found="no"
9099
9100	if test $found = "no" ; then
9101		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9102			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9103		fi
9104
9105		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9106			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9107		fi
9108
9109		CFLAGS="$CFLAGS -Winit-self"
9110
9111		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9112$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
9113		cacheid=xorg_cv_cc_flag__Winit_self
9114		if eval \${$cacheid+:} false; then :
9115  $as_echo_n "(cached) " >&6
9116else
9117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9118/* end confdefs.h.  */
9119int i;
9120int
9121main ()
9122{
9123
9124  ;
9125  return 0;
9126}
9127_ACEOF
9128if ac_fn_c_try_link "$LINENO"; then :
9129  eval $cacheid=yes
9130else
9131  eval $cacheid=no
9132fi
9133rm -f core conftest.err conftest.$ac_objext \
9134    conftest$ac_exeext conftest.$ac_ext
9135fi
9136
9137
9138		CFLAGS="$xorg_testset_save_CFLAGS"
9139
9140		eval supported=\$$cacheid
9141		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9142$as_echo "$supported" >&6; }
9143		if test "$supported" = "yes" ; then
9144			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9145			found="yes"
9146		fi
9147	fi
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163xorg_testset_save_CFLAGS="$CFLAGS"
9164
9165if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9166	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9167	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9168$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9169if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9170  $as_echo_n "(cached) " >&6
9171else
9172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9173/* end confdefs.h.  */
9174int i;
9175_ACEOF
9176if ac_fn_c_try_compile "$LINENO"; then :
9177  xorg_cv_cc_flag_unknown_warning_option=yes
9178else
9179  xorg_cv_cc_flag_unknown_warning_option=no
9180fi
9181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9182fi
9183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9184$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9185	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9186	CFLAGS="$xorg_testset_save_CFLAGS"
9187fi
9188
9189if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9190	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9191		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9192	fi
9193	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9194	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9195$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9196if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9197  $as_echo_n "(cached) " >&6
9198else
9199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9200/* end confdefs.h.  */
9201int i;
9202_ACEOF
9203if ac_fn_c_try_compile "$LINENO"; then :
9204  xorg_cv_cc_flag_unused_command_line_argument=yes
9205else
9206  xorg_cv_cc_flag_unused_command_line_argument=no
9207fi
9208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9209fi
9210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9211$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9212	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9213	CFLAGS="$xorg_testset_save_CFLAGS"
9214fi
9215
9216found="no"
9217
9218	if test $found = "no" ; then
9219		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9220			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9221		fi
9222
9223		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9224			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9225		fi
9226
9227		CFLAGS="$CFLAGS -Wmain"
9228
9229		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9230$as_echo_n "checking if $CC supports -Wmain... " >&6; }
9231		cacheid=xorg_cv_cc_flag__Wmain
9232		if eval \${$cacheid+:} false; then :
9233  $as_echo_n "(cached) " >&6
9234else
9235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9236/* end confdefs.h.  */
9237int i;
9238int
9239main ()
9240{
9241
9242  ;
9243  return 0;
9244}
9245_ACEOF
9246if ac_fn_c_try_link "$LINENO"; then :
9247  eval $cacheid=yes
9248else
9249  eval $cacheid=no
9250fi
9251rm -f core conftest.err conftest.$ac_objext \
9252    conftest$ac_exeext conftest.$ac_ext
9253fi
9254
9255
9256		CFLAGS="$xorg_testset_save_CFLAGS"
9257
9258		eval supported=\$$cacheid
9259		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9260$as_echo "$supported" >&6; }
9261		if test "$supported" = "yes" ; then
9262			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9263			found="yes"
9264		fi
9265	fi
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281xorg_testset_save_CFLAGS="$CFLAGS"
9282
9283if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9284	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9285	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9286$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9287if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9288  $as_echo_n "(cached) " >&6
9289else
9290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9291/* end confdefs.h.  */
9292int i;
9293_ACEOF
9294if ac_fn_c_try_compile "$LINENO"; then :
9295  xorg_cv_cc_flag_unknown_warning_option=yes
9296else
9297  xorg_cv_cc_flag_unknown_warning_option=no
9298fi
9299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9300fi
9301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9302$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9303	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9304	CFLAGS="$xorg_testset_save_CFLAGS"
9305fi
9306
9307if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9308	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9309		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9310	fi
9311	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9312	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9313$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9314if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9315  $as_echo_n "(cached) " >&6
9316else
9317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9318/* end confdefs.h.  */
9319int i;
9320_ACEOF
9321if ac_fn_c_try_compile "$LINENO"; then :
9322  xorg_cv_cc_flag_unused_command_line_argument=yes
9323else
9324  xorg_cv_cc_flag_unused_command_line_argument=no
9325fi
9326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9327fi
9328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9329$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9330	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9331	CFLAGS="$xorg_testset_save_CFLAGS"
9332fi
9333
9334found="no"
9335
9336	if test $found = "no" ; then
9337		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9338			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9339		fi
9340
9341		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9342			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9343		fi
9344
9345		CFLAGS="$CFLAGS -Wmissing-braces"
9346
9347		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9348$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9349		cacheid=xorg_cv_cc_flag__Wmissing_braces
9350		if eval \${$cacheid+:} false; then :
9351  $as_echo_n "(cached) " >&6
9352else
9353  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9354/* end confdefs.h.  */
9355int i;
9356int
9357main ()
9358{
9359
9360  ;
9361  return 0;
9362}
9363_ACEOF
9364if ac_fn_c_try_link "$LINENO"; then :
9365  eval $cacheid=yes
9366else
9367  eval $cacheid=no
9368fi
9369rm -f core conftest.err conftest.$ac_objext \
9370    conftest$ac_exeext conftest.$ac_ext
9371fi
9372
9373
9374		CFLAGS="$xorg_testset_save_CFLAGS"
9375
9376		eval supported=\$$cacheid
9377		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9378$as_echo "$supported" >&6; }
9379		if test "$supported" = "yes" ; then
9380			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9381			found="yes"
9382		fi
9383	fi
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399xorg_testset_save_CFLAGS="$CFLAGS"
9400
9401if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9402	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9403	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9404$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9405if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9406  $as_echo_n "(cached) " >&6
9407else
9408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9409/* end confdefs.h.  */
9410int i;
9411_ACEOF
9412if ac_fn_c_try_compile "$LINENO"; then :
9413  xorg_cv_cc_flag_unknown_warning_option=yes
9414else
9415  xorg_cv_cc_flag_unknown_warning_option=no
9416fi
9417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9418fi
9419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9420$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9421	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9422	CFLAGS="$xorg_testset_save_CFLAGS"
9423fi
9424
9425if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9426	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9427		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9428	fi
9429	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9430	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9431$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9432if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9433  $as_echo_n "(cached) " >&6
9434else
9435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9436/* end confdefs.h.  */
9437int i;
9438_ACEOF
9439if ac_fn_c_try_compile "$LINENO"; then :
9440  xorg_cv_cc_flag_unused_command_line_argument=yes
9441else
9442  xorg_cv_cc_flag_unused_command_line_argument=no
9443fi
9444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9445fi
9446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9447$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9448	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9449	CFLAGS="$xorg_testset_save_CFLAGS"
9450fi
9451
9452found="no"
9453
9454	if test $found = "no" ; then
9455		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9456			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9457		fi
9458
9459		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9460			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9461		fi
9462
9463		CFLAGS="$CFLAGS -Wsequence-point"
9464
9465		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9466$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9467		cacheid=xorg_cv_cc_flag__Wsequence_point
9468		if eval \${$cacheid+:} false; then :
9469  $as_echo_n "(cached) " >&6
9470else
9471  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9472/* end confdefs.h.  */
9473int i;
9474int
9475main ()
9476{
9477
9478  ;
9479  return 0;
9480}
9481_ACEOF
9482if ac_fn_c_try_link "$LINENO"; then :
9483  eval $cacheid=yes
9484else
9485  eval $cacheid=no
9486fi
9487rm -f core conftest.err conftest.$ac_objext \
9488    conftest$ac_exeext conftest.$ac_ext
9489fi
9490
9491
9492		CFLAGS="$xorg_testset_save_CFLAGS"
9493
9494		eval supported=\$$cacheid
9495		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9496$as_echo "$supported" >&6; }
9497		if test "$supported" = "yes" ; then
9498			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9499			found="yes"
9500		fi
9501	fi
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517xorg_testset_save_CFLAGS="$CFLAGS"
9518
9519if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9520	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9521	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9522$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9523if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9524  $as_echo_n "(cached) " >&6
9525else
9526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9527/* end confdefs.h.  */
9528int i;
9529_ACEOF
9530if ac_fn_c_try_compile "$LINENO"; then :
9531  xorg_cv_cc_flag_unknown_warning_option=yes
9532else
9533  xorg_cv_cc_flag_unknown_warning_option=no
9534fi
9535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9536fi
9537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9538$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9539	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9540	CFLAGS="$xorg_testset_save_CFLAGS"
9541fi
9542
9543if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9544	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9545		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9546	fi
9547	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9548	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9549$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9550if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9551  $as_echo_n "(cached) " >&6
9552else
9553  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9554/* end confdefs.h.  */
9555int i;
9556_ACEOF
9557if ac_fn_c_try_compile "$LINENO"; then :
9558  xorg_cv_cc_flag_unused_command_line_argument=yes
9559else
9560  xorg_cv_cc_flag_unused_command_line_argument=no
9561fi
9562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9563fi
9564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9565$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9566	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9567	CFLAGS="$xorg_testset_save_CFLAGS"
9568fi
9569
9570found="no"
9571
9572	if test $found = "no" ; then
9573		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9574			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9575		fi
9576
9577		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9578			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9579		fi
9580
9581		CFLAGS="$CFLAGS -Wreturn-type"
9582
9583		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9584$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9585		cacheid=xorg_cv_cc_flag__Wreturn_type
9586		if eval \${$cacheid+:} false; then :
9587  $as_echo_n "(cached) " >&6
9588else
9589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9590/* end confdefs.h.  */
9591int i;
9592int
9593main ()
9594{
9595
9596  ;
9597  return 0;
9598}
9599_ACEOF
9600if ac_fn_c_try_link "$LINENO"; then :
9601  eval $cacheid=yes
9602else
9603  eval $cacheid=no
9604fi
9605rm -f core conftest.err conftest.$ac_objext \
9606    conftest$ac_exeext conftest.$ac_ext
9607fi
9608
9609
9610		CFLAGS="$xorg_testset_save_CFLAGS"
9611
9612		eval supported=\$$cacheid
9613		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9614$as_echo "$supported" >&6; }
9615		if test "$supported" = "yes" ; then
9616			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9617			found="yes"
9618		fi
9619	fi
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635xorg_testset_save_CFLAGS="$CFLAGS"
9636
9637if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9638	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9639	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9640$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9641if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9642  $as_echo_n "(cached) " >&6
9643else
9644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9645/* end confdefs.h.  */
9646int i;
9647_ACEOF
9648if ac_fn_c_try_compile "$LINENO"; then :
9649  xorg_cv_cc_flag_unknown_warning_option=yes
9650else
9651  xorg_cv_cc_flag_unknown_warning_option=no
9652fi
9653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9654fi
9655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9656$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9657	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9658	CFLAGS="$xorg_testset_save_CFLAGS"
9659fi
9660
9661if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9662	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9663		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9664	fi
9665	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9666	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9667$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9668if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9669  $as_echo_n "(cached) " >&6
9670else
9671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9672/* end confdefs.h.  */
9673int i;
9674_ACEOF
9675if ac_fn_c_try_compile "$LINENO"; then :
9676  xorg_cv_cc_flag_unused_command_line_argument=yes
9677else
9678  xorg_cv_cc_flag_unused_command_line_argument=no
9679fi
9680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9681fi
9682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9683$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9684	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9685	CFLAGS="$xorg_testset_save_CFLAGS"
9686fi
9687
9688found="no"
9689
9690	if test $found = "no" ; then
9691		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9692			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9693		fi
9694
9695		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9696			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9697		fi
9698
9699		CFLAGS="$CFLAGS -Wtrigraphs"
9700
9701		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9702$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9703		cacheid=xorg_cv_cc_flag__Wtrigraphs
9704		if eval \${$cacheid+:} false; then :
9705  $as_echo_n "(cached) " >&6
9706else
9707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9708/* end confdefs.h.  */
9709int i;
9710int
9711main ()
9712{
9713
9714  ;
9715  return 0;
9716}
9717_ACEOF
9718if ac_fn_c_try_link "$LINENO"; then :
9719  eval $cacheid=yes
9720else
9721  eval $cacheid=no
9722fi
9723rm -f core conftest.err conftest.$ac_objext \
9724    conftest$ac_exeext conftest.$ac_ext
9725fi
9726
9727
9728		CFLAGS="$xorg_testset_save_CFLAGS"
9729
9730		eval supported=\$$cacheid
9731		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9732$as_echo "$supported" >&6; }
9733		if test "$supported" = "yes" ; then
9734			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9735			found="yes"
9736		fi
9737	fi
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753xorg_testset_save_CFLAGS="$CFLAGS"
9754
9755if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9756	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9757	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9758$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9759if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9760  $as_echo_n "(cached) " >&6
9761else
9762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9763/* end confdefs.h.  */
9764int i;
9765_ACEOF
9766if ac_fn_c_try_compile "$LINENO"; then :
9767  xorg_cv_cc_flag_unknown_warning_option=yes
9768else
9769  xorg_cv_cc_flag_unknown_warning_option=no
9770fi
9771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9772fi
9773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9774$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9775	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9776	CFLAGS="$xorg_testset_save_CFLAGS"
9777fi
9778
9779if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9780	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9781		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9782	fi
9783	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9784	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9785$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9786if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9787  $as_echo_n "(cached) " >&6
9788else
9789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9790/* end confdefs.h.  */
9791int i;
9792_ACEOF
9793if ac_fn_c_try_compile "$LINENO"; then :
9794  xorg_cv_cc_flag_unused_command_line_argument=yes
9795else
9796  xorg_cv_cc_flag_unused_command_line_argument=no
9797fi
9798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9799fi
9800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9801$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9802	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9803	CFLAGS="$xorg_testset_save_CFLAGS"
9804fi
9805
9806found="no"
9807
9808	if test $found = "no" ; then
9809		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9810			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9811		fi
9812
9813		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9814			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9815		fi
9816
9817		CFLAGS="$CFLAGS -Warray-bounds"
9818
9819		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9820$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9821		cacheid=xorg_cv_cc_flag__Warray_bounds
9822		if eval \${$cacheid+:} false; then :
9823  $as_echo_n "(cached) " >&6
9824else
9825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9826/* end confdefs.h.  */
9827int i;
9828int
9829main ()
9830{
9831
9832  ;
9833  return 0;
9834}
9835_ACEOF
9836if ac_fn_c_try_link "$LINENO"; then :
9837  eval $cacheid=yes
9838else
9839  eval $cacheid=no
9840fi
9841rm -f core conftest.err conftest.$ac_objext \
9842    conftest$ac_exeext conftest.$ac_ext
9843fi
9844
9845
9846		CFLAGS="$xorg_testset_save_CFLAGS"
9847
9848		eval supported=\$$cacheid
9849		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9850$as_echo "$supported" >&6; }
9851		if test "$supported" = "yes" ; then
9852			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9853			found="yes"
9854		fi
9855	fi
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871xorg_testset_save_CFLAGS="$CFLAGS"
9872
9873if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9874	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9875	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9876$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9877if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9878  $as_echo_n "(cached) " >&6
9879else
9880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9881/* end confdefs.h.  */
9882int i;
9883_ACEOF
9884if ac_fn_c_try_compile "$LINENO"; then :
9885  xorg_cv_cc_flag_unknown_warning_option=yes
9886else
9887  xorg_cv_cc_flag_unknown_warning_option=no
9888fi
9889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9890fi
9891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9892$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9893	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9894	CFLAGS="$xorg_testset_save_CFLAGS"
9895fi
9896
9897if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9898	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9899		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9900	fi
9901	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9902	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9903$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9904if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9905  $as_echo_n "(cached) " >&6
9906else
9907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9908/* end confdefs.h.  */
9909int i;
9910_ACEOF
9911if ac_fn_c_try_compile "$LINENO"; then :
9912  xorg_cv_cc_flag_unused_command_line_argument=yes
9913else
9914  xorg_cv_cc_flag_unused_command_line_argument=no
9915fi
9916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9917fi
9918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9919$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9920	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9921	CFLAGS="$xorg_testset_save_CFLAGS"
9922fi
9923
9924found="no"
9925
9926	if test $found = "no" ; then
9927		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9928			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9929		fi
9930
9931		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9932			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9933		fi
9934
9935		CFLAGS="$CFLAGS -Wwrite-strings"
9936
9937		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9938$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9939		cacheid=xorg_cv_cc_flag__Wwrite_strings
9940		if eval \${$cacheid+:} false; then :
9941  $as_echo_n "(cached) " >&6
9942else
9943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9944/* end confdefs.h.  */
9945int i;
9946int
9947main ()
9948{
9949
9950  ;
9951  return 0;
9952}
9953_ACEOF
9954if ac_fn_c_try_link "$LINENO"; then :
9955  eval $cacheid=yes
9956else
9957  eval $cacheid=no
9958fi
9959rm -f core conftest.err conftest.$ac_objext \
9960    conftest$ac_exeext conftest.$ac_ext
9961fi
9962
9963
9964		CFLAGS="$xorg_testset_save_CFLAGS"
9965
9966		eval supported=\$$cacheid
9967		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9968$as_echo "$supported" >&6; }
9969		if test "$supported" = "yes" ; then
9970			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9971			found="yes"
9972		fi
9973	fi
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989xorg_testset_save_CFLAGS="$CFLAGS"
9990
9991if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9992	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9993	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9994$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9995if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9996  $as_echo_n "(cached) " >&6
9997else
9998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9999/* end confdefs.h.  */
10000int i;
10001_ACEOF
10002if ac_fn_c_try_compile "$LINENO"; then :
10003  xorg_cv_cc_flag_unknown_warning_option=yes
10004else
10005  xorg_cv_cc_flag_unknown_warning_option=no
10006fi
10007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10008fi
10009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10010$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10011	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10012	CFLAGS="$xorg_testset_save_CFLAGS"
10013fi
10014
10015if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10016	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10017		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10018	fi
10019	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10020	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10021$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10022if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10023  $as_echo_n "(cached) " >&6
10024else
10025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10026/* end confdefs.h.  */
10027int i;
10028_ACEOF
10029if ac_fn_c_try_compile "$LINENO"; then :
10030  xorg_cv_cc_flag_unused_command_line_argument=yes
10031else
10032  xorg_cv_cc_flag_unused_command_line_argument=no
10033fi
10034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10035fi
10036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10037$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10038	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10039	CFLAGS="$xorg_testset_save_CFLAGS"
10040fi
10041
10042found="no"
10043
10044	if test $found = "no" ; then
10045		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10046			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10047		fi
10048
10049		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10050			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10051		fi
10052
10053		CFLAGS="$CFLAGS -Waddress"
10054
10055		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10056$as_echo_n "checking if $CC supports -Waddress... " >&6; }
10057		cacheid=xorg_cv_cc_flag__Waddress
10058		if eval \${$cacheid+:} false; then :
10059  $as_echo_n "(cached) " >&6
10060else
10061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10062/* end confdefs.h.  */
10063int i;
10064int
10065main ()
10066{
10067
10068  ;
10069  return 0;
10070}
10071_ACEOF
10072if ac_fn_c_try_link "$LINENO"; then :
10073  eval $cacheid=yes
10074else
10075  eval $cacheid=no
10076fi
10077rm -f core conftest.err conftest.$ac_objext \
10078    conftest$ac_exeext conftest.$ac_ext
10079fi
10080
10081
10082		CFLAGS="$xorg_testset_save_CFLAGS"
10083
10084		eval supported=\$$cacheid
10085		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10086$as_echo "$supported" >&6; }
10087		if test "$supported" = "yes" ; then
10088			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10089			found="yes"
10090		fi
10091	fi
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107xorg_testset_save_CFLAGS="$CFLAGS"
10108
10109if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10110	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10111	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10112$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10113if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10114  $as_echo_n "(cached) " >&6
10115else
10116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10117/* end confdefs.h.  */
10118int i;
10119_ACEOF
10120if ac_fn_c_try_compile "$LINENO"; then :
10121  xorg_cv_cc_flag_unknown_warning_option=yes
10122else
10123  xorg_cv_cc_flag_unknown_warning_option=no
10124fi
10125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10126fi
10127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10128$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10129	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10130	CFLAGS="$xorg_testset_save_CFLAGS"
10131fi
10132
10133if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10134	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10135		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10136	fi
10137	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10138	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10139$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10140if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10141  $as_echo_n "(cached) " >&6
10142else
10143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10144/* end confdefs.h.  */
10145int i;
10146_ACEOF
10147if ac_fn_c_try_compile "$LINENO"; then :
10148  xorg_cv_cc_flag_unused_command_line_argument=yes
10149else
10150  xorg_cv_cc_flag_unused_command_line_argument=no
10151fi
10152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10153fi
10154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10155$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10156	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10157	CFLAGS="$xorg_testset_save_CFLAGS"
10158fi
10159
10160found="no"
10161
10162	if test $found = "no" ; then
10163		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10164			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10165		fi
10166
10167		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10168			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10169		fi
10170
10171		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10172
10173		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10174$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10175		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10176		if eval \${$cacheid+:} false; then :
10177  $as_echo_n "(cached) " >&6
10178else
10179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10180/* end confdefs.h.  */
10181int i;
10182int
10183main ()
10184{
10185
10186  ;
10187  return 0;
10188}
10189_ACEOF
10190if ac_fn_c_try_link "$LINENO"; then :
10191  eval $cacheid=yes
10192else
10193  eval $cacheid=no
10194fi
10195rm -f core conftest.err conftest.$ac_objext \
10196    conftest$ac_exeext conftest.$ac_ext
10197fi
10198
10199
10200		CFLAGS="$xorg_testset_save_CFLAGS"
10201
10202		eval supported=\$$cacheid
10203		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10204$as_echo "$supported" >&6; }
10205		if test "$supported" = "yes" ; then
10206			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10207			found="yes"
10208		fi
10209	fi
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225xorg_testset_save_CFLAGS="$CFLAGS"
10226
10227if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10228	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10229	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10230$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10231if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10232  $as_echo_n "(cached) " >&6
10233else
10234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10235/* end confdefs.h.  */
10236int i;
10237_ACEOF
10238if ac_fn_c_try_compile "$LINENO"; then :
10239  xorg_cv_cc_flag_unknown_warning_option=yes
10240else
10241  xorg_cv_cc_flag_unknown_warning_option=no
10242fi
10243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10244fi
10245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10246$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10247	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10248	CFLAGS="$xorg_testset_save_CFLAGS"
10249fi
10250
10251if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10252	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10253		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10254	fi
10255	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10256	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10257$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10258if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
10267else
10268  xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
10273$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10274	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10275	CFLAGS="$xorg_testset_save_CFLAGS"
10276fi
10277
10278found="no"
10279
10280	if test $found = "no" ; then
10281		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10282			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10283		fi
10284
10285		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10286			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10287		fi
10288
10289		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10290
10291		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10292$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10293		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10294		if eval \${$cacheid+:} false; then :
10295  $as_echo_n "(cached) " >&6
10296else
10297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10298/* end confdefs.h.  */
10299int i;
10300int
10301main ()
10302{
10303
10304  ;
10305  return 0;
10306}
10307_ACEOF
10308if ac_fn_c_try_link "$LINENO"; then :
10309  eval $cacheid=yes
10310else
10311  eval $cacheid=no
10312fi
10313rm -f core conftest.err conftest.$ac_objext \
10314    conftest$ac_exeext conftest.$ac_ext
10315fi
10316
10317
10318		CFLAGS="$xorg_testset_save_CFLAGS"
10319
10320		eval supported=\$$cacheid
10321		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10322$as_echo "$supported" >&6; }
10323		if test "$supported" = "yes" ; then
10324			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10325			found="yes"
10326		fi
10327	fi
10328
10329
10330fi
10331
10332
10333
10334
10335
10336
10337
10338		CWARNFLAGS="$BASE_CFLAGS"
10339		if  test "x$GCC" = xyes ; then
10340		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10341		fi
10342
10343
10344
10345
10346
10347
10348
10349
10350# Check whether --enable-strict-compilation was given.
10351if test "${enable_strict_compilation+set}" = set; then :
10352  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10353else
10354  STRICT_COMPILE=no
10355fi
10356
10357
10358
10359
10360
10361
10362STRICT_CFLAGS=""
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376xorg_testset_save_CFLAGS="$CFLAGS"
10377
10378if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10379	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10380	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10381$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10382if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10383  $as_echo_n "(cached) " >&6
10384else
10385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10386/* end confdefs.h.  */
10387int i;
10388_ACEOF
10389if ac_fn_c_try_compile "$LINENO"; then :
10390  xorg_cv_cc_flag_unknown_warning_option=yes
10391else
10392  xorg_cv_cc_flag_unknown_warning_option=no
10393fi
10394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10395fi
10396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10397$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10398	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10399	CFLAGS="$xorg_testset_save_CFLAGS"
10400fi
10401
10402if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10403	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10404		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10405	fi
10406	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10407	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10408$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10409if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10410  $as_echo_n "(cached) " >&6
10411else
10412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10413/* end confdefs.h.  */
10414int i;
10415_ACEOF
10416if ac_fn_c_try_compile "$LINENO"; then :
10417  xorg_cv_cc_flag_unused_command_line_argument=yes
10418else
10419  xorg_cv_cc_flag_unused_command_line_argument=no
10420fi
10421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10422fi
10423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10424$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10425	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10426	CFLAGS="$xorg_testset_save_CFLAGS"
10427fi
10428
10429found="no"
10430
10431	if test $found = "no" ; then
10432		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10433			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10434		fi
10435
10436		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10437			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10438		fi
10439
10440		CFLAGS="$CFLAGS -pedantic"
10441
10442		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10443$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10444		cacheid=xorg_cv_cc_flag__pedantic
10445		if eval \${$cacheid+:} false; then :
10446  $as_echo_n "(cached) " >&6
10447else
10448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10449/* end confdefs.h.  */
10450int i;
10451int
10452main ()
10453{
10454
10455  ;
10456  return 0;
10457}
10458_ACEOF
10459if ac_fn_c_try_link "$LINENO"; then :
10460  eval $cacheid=yes
10461else
10462  eval $cacheid=no
10463fi
10464rm -f core conftest.err conftest.$ac_objext \
10465    conftest$ac_exeext conftest.$ac_ext
10466fi
10467
10468
10469		CFLAGS="$xorg_testset_save_CFLAGS"
10470
10471		eval supported=\$$cacheid
10472		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10473$as_echo "$supported" >&6; }
10474		if test "$supported" = "yes" ; then
10475			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10476			found="yes"
10477		fi
10478	fi
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494xorg_testset_save_CFLAGS="$CFLAGS"
10495
10496if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10497	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10498	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10499$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10500if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10501  $as_echo_n "(cached) " >&6
10502else
10503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10504/* end confdefs.h.  */
10505int i;
10506_ACEOF
10507if ac_fn_c_try_compile "$LINENO"; then :
10508  xorg_cv_cc_flag_unknown_warning_option=yes
10509else
10510  xorg_cv_cc_flag_unknown_warning_option=no
10511fi
10512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10513fi
10514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10515$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10516	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10517	CFLAGS="$xorg_testset_save_CFLAGS"
10518fi
10519
10520if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10521	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10522		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10523	fi
10524	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10525	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10526$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10527if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10528  $as_echo_n "(cached) " >&6
10529else
10530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10531/* end confdefs.h.  */
10532int i;
10533_ACEOF
10534if ac_fn_c_try_compile "$LINENO"; then :
10535  xorg_cv_cc_flag_unused_command_line_argument=yes
10536else
10537  xorg_cv_cc_flag_unused_command_line_argument=no
10538fi
10539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10540fi
10541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10542$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10543	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10544	CFLAGS="$xorg_testset_save_CFLAGS"
10545fi
10546
10547found="no"
10548
10549	if test $found = "no" ; then
10550		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10551			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10552		fi
10553
10554		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10555			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10556		fi
10557
10558		CFLAGS="$CFLAGS -Werror"
10559
10560		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10561$as_echo_n "checking if $CC supports -Werror... " >&6; }
10562		cacheid=xorg_cv_cc_flag__Werror
10563		if eval \${$cacheid+:} false; then :
10564  $as_echo_n "(cached) " >&6
10565else
10566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10567/* end confdefs.h.  */
10568int i;
10569int
10570main ()
10571{
10572
10573  ;
10574  return 0;
10575}
10576_ACEOF
10577if ac_fn_c_try_link "$LINENO"; then :
10578  eval $cacheid=yes
10579else
10580  eval $cacheid=no
10581fi
10582rm -f core conftest.err conftest.$ac_objext \
10583    conftest$ac_exeext conftest.$ac_ext
10584fi
10585
10586
10587		CFLAGS="$xorg_testset_save_CFLAGS"
10588
10589		eval supported=\$$cacheid
10590		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10591$as_echo "$supported" >&6; }
10592		if test "$supported" = "yes" ; then
10593			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10594			found="yes"
10595		fi
10596	fi
10597
10598	if test $found = "no" ; then
10599		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10600			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10601		fi
10602
10603		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10604			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10605		fi
10606
10607		CFLAGS="$CFLAGS -errwarn"
10608
10609		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10610$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10611		cacheid=xorg_cv_cc_flag__errwarn
10612		if eval \${$cacheid+:} false; then :
10613  $as_echo_n "(cached) " >&6
10614else
10615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10616/* end confdefs.h.  */
10617int i;
10618int
10619main ()
10620{
10621
10622  ;
10623  return 0;
10624}
10625_ACEOF
10626if ac_fn_c_try_link "$LINENO"; then :
10627  eval $cacheid=yes
10628else
10629  eval $cacheid=no
10630fi
10631rm -f core conftest.err conftest.$ac_objext \
10632    conftest$ac_exeext conftest.$ac_ext
10633fi
10634
10635
10636		CFLAGS="$xorg_testset_save_CFLAGS"
10637
10638		eval supported=\$$cacheid
10639		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10640$as_echo "$supported" >&6; }
10641		if test "$supported" = "yes" ; then
10642			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10643			found="yes"
10644		fi
10645	fi
10646
10647
10648
10649# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10650# activate it with -Werror, so we add it here explicitly.
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664xorg_testset_save_CFLAGS="$CFLAGS"
10665
10666if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10667	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10668	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10669$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10670if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10671  $as_echo_n "(cached) " >&6
10672else
10673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10674/* end confdefs.h.  */
10675int i;
10676_ACEOF
10677if ac_fn_c_try_compile "$LINENO"; then :
10678  xorg_cv_cc_flag_unknown_warning_option=yes
10679else
10680  xorg_cv_cc_flag_unknown_warning_option=no
10681fi
10682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10683fi
10684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10685$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10686	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10687	CFLAGS="$xorg_testset_save_CFLAGS"
10688fi
10689
10690if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10691	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10692		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10693	fi
10694	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10695	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10696$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10697if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10698  $as_echo_n "(cached) " >&6
10699else
10700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10701/* end confdefs.h.  */
10702int i;
10703_ACEOF
10704if ac_fn_c_try_compile "$LINENO"; then :
10705  xorg_cv_cc_flag_unused_command_line_argument=yes
10706else
10707  xorg_cv_cc_flag_unused_command_line_argument=no
10708fi
10709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10710fi
10711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10712$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10713	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10714	CFLAGS="$xorg_testset_save_CFLAGS"
10715fi
10716
10717found="no"
10718
10719	if test $found = "no" ; then
10720		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10721			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10722		fi
10723
10724		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10725			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10726		fi
10727
10728		CFLAGS="$CFLAGS -Werror=attributes"
10729
10730		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10731$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10732		cacheid=xorg_cv_cc_flag__Werror_attributes
10733		if eval \${$cacheid+:} false; then :
10734  $as_echo_n "(cached) " >&6
10735else
10736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10737/* end confdefs.h.  */
10738int i;
10739int
10740main ()
10741{
10742
10743  ;
10744  return 0;
10745}
10746_ACEOF
10747if ac_fn_c_try_link "$LINENO"; then :
10748  eval $cacheid=yes
10749else
10750  eval $cacheid=no
10751fi
10752rm -f core conftest.err conftest.$ac_objext \
10753    conftest$ac_exeext conftest.$ac_ext
10754fi
10755
10756
10757		CFLAGS="$xorg_testset_save_CFLAGS"
10758
10759		eval supported=\$$cacheid
10760		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10761$as_echo "$supported" >&6; }
10762		if test "$supported" = "yes" ; then
10763			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10764			found="yes"
10765		fi
10766	fi
10767
10768
10769
10770if test "x$STRICT_COMPILE" = "xyes"; then
10771    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10772    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10773fi
10774
10775
10776
10777
10778
10779
10780cat >>confdefs.h <<_ACEOF
10781#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10782_ACEOF
10783
10784	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10785	if test "x$PVM" = "x"; then
10786		PVM="0"
10787	fi
10788
10789cat >>confdefs.h <<_ACEOF
10790#define PACKAGE_VERSION_MINOR $PVM
10791_ACEOF
10792
10793	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10794	if test "x$PVP" = "x"; then
10795		PVP="0"
10796	fi
10797
10798cat >>confdefs.h <<_ACEOF
10799#define PACKAGE_VERSION_PATCHLEVEL $PVP
10800_ACEOF
10801
10802
10803
10804CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10805mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10806|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10807touch \$(top_srcdir)/ChangeLog; \
10808echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10809
10810
10811
10812
10813macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10814INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10815mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10816|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
10817touch \$(top_srcdir)/INSTALL; \
10818echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
10819
10820
10821
10822
10823
10824
10825case $host_os in
10826    solaris*)
10827        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
10828        # check for a man page file found in later versions that use
10829        # traditional section numbers instead
10830        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
10831$as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; }
10832if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then :
10833  $as_echo_n "(cached) " >&6
10834else
10835  test "$cross_compiling" = yes &&
10836  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10837if test -r "/usr/share/man/man7/attributes.7"; then
10838  ac_cv_file__usr_share_man_man7_attributes_7=yes
10839else
10840  ac_cv_file__usr_share_man_man7_attributes_7=no
10841fi
10842fi
10843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
10844$as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
10845if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then :
10846  SYSV_MAN_SECTIONS=false
10847else
10848  SYSV_MAN_SECTIONS=true
10849fi
10850
10851        ;;
10852    *) SYSV_MAN_SECTIONS=false ;;
10853esac
10854
10855if test x$APP_MAN_SUFFIX = x    ; then
10856    APP_MAN_SUFFIX=1
10857fi
10858if test x$APP_MAN_DIR = x    ; then
10859    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10860fi
10861
10862if test x$LIB_MAN_SUFFIX = x    ; then
10863    LIB_MAN_SUFFIX=3
10864fi
10865if test x$LIB_MAN_DIR = x    ; then
10866    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10867fi
10868
10869if test x$FILE_MAN_SUFFIX = x    ; then
10870    case $SYSV_MAN_SECTIONS in
10871	true)				FILE_MAN_SUFFIX=4  ;;
10872	*)				FILE_MAN_SUFFIX=5  ;;
10873    esac
10874fi
10875if test x$FILE_MAN_DIR = x    ; then
10876    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10877fi
10878
10879if test x$MISC_MAN_SUFFIX = x    ; then
10880    case $SYSV_MAN_SECTIONS in
10881	true)				MISC_MAN_SUFFIX=5  ;;
10882	*)				MISC_MAN_SUFFIX=7  ;;
10883    esac
10884fi
10885if test x$MISC_MAN_DIR = x    ; then
10886    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10887fi
10888
10889if test x$DRIVER_MAN_SUFFIX = x    ; then
10890    case $SYSV_MAN_SECTIONS in
10891	true)				DRIVER_MAN_SUFFIX=7  ;;
10892	*)				DRIVER_MAN_SUFFIX=4  ;;
10893    esac
10894fi
10895if test x$DRIVER_MAN_DIR = x    ; then
10896    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10897fi
10898
10899if test x$ADMIN_MAN_SUFFIX = x    ; then
10900    case $SYSV_MAN_SECTIONS in
10901	true)				ADMIN_MAN_SUFFIX=1m ;;
10902	*)				ADMIN_MAN_SUFFIX=8  ;;
10903    esac
10904fi
10905if test x$ADMIN_MAN_DIR = x    ; then
10906    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10907fi
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923XORG_MAN_PAGE="X Version 11"
10924
10925MAN_SUBSTS="\
10926	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10927	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10928	-e 's|__xservername__|Xorg|g' \
10929	-e 's|__xconfigfile__|xorg.conf|g' \
10930	-e 's|__projectroot__|\$(prefix)|g' \
10931	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10932	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10933	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10934	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10935	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10936	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10937	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10938
10939
10940
10941# Check whether --enable-silent-rules was given.
10942if test "${enable_silent_rules+set}" = set; then :
10943  enableval=$enable_silent_rules;
10944fi
10945
10946case $enable_silent_rules in # (((
10947  yes) AM_DEFAULT_VERBOSITY=0;;
10948   no) AM_DEFAULT_VERBOSITY=1;;
10949    *) AM_DEFAULT_VERBOSITY=0;;
10950esac
10951am_make=${MAKE-make}
10952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10953$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10954if ${am_cv_make_support_nested_variables+:} false; then :
10955  $as_echo_n "(cached) " >&6
10956else
10957  if $as_echo 'TRUE=$(BAR$(V))
10958BAR0=false
10959BAR1=true
10960V=1
10961am__doit:
10962	@$(TRUE)
10963.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10964  am_cv_make_support_nested_variables=yes
10965else
10966  am_cv_make_support_nested_variables=no
10967fi
10968fi
10969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10970$as_echo "$am_cv_make_support_nested_variables" >&6; }
10971if test $am_cv_make_support_nested_variables = yes; then
10972    AM_V='$(V)'
10973  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10974else
10975  AM_V=$AM_DEFAULT_VERBOSITY
10976  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10977fi
10978AM_BACKSLASH='\'
10979
10980
10981
10982for ac_header in net/errno.h
10983do :
10984  ac_fn_c_check_header_mongrel "$LINENO" "net/errno.h" "ac_cv_header_net_errno_h" "$ac_includes_default"
10985if test "x$ac_cv_header_net_errno_h" = xyes; then :
10986  cat >>confdefs.h <<_ACEOF
10987#define HAVE_NET_ERRNO_H 1
10988_ACEOF
10989
10990fi
10991
10992done
10993
10994
10995for ac_func in reallocarray strlcpy
10996do :
10997  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10998ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10999if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11000  cat >>confdefs.h <<_ACEOF
11001#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11002_ACEOF
11003
11004fi
11005done
11006
11007
11008# Checks for pkg-config packages
11009
11010pkg_failed=no
11011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XAUTH" >&5
11012$as_echo_n "checking for XAUTH... " >&6; }
11013
11014if test -n "$XAUTH_CFLAGS"; then
11015    pkg_cv_XAUTH_CFLAGS="$XAUTH_CFLAGS"
11016 elif test -n "$PKG_CONFIG"; then
11017    if test -n "$PKG_CONFIG" && \
11018    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xau xext xmuu xproto >= 7.0.17\""; } >&5
11019  ($PKG_CONFIG --exists --print-errors "x11 xau xext xmuu xproto >= 7.0.17") 2>&5
11020  ac_status=$?
11021  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11022  test $ac_status = 0; }; then
11023  pkg_cv_XAUTH_CFLAGS=`$PKG_CONFIG --cflags "x11 xau xext xmuu xproto >= 7.0.17" 2>/dev/null`
11024		      test "x$?" != "x0" && pkg_failed=yes
11025else
11026  pkg_failed=yes
11027fi
11028 else
11029    pkg_failed=untried
11030fi
11031if test -n "$XAUTH_LIBS"; then
11032    pkg_cv_XAUTH_LIBS="$XAUTH_LIBS"
11033 elif test -n "$PKG_CONFIG"; then
11034    if test -n "$PKG_CONFIG" && \
11035    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xau xext xmuu xproto >= 7.0.17\""; } >&5
11036  ($PKG_CONFIG --exists --print-errors "x11 xau xext xmuu xproto >= 7.0.17") 2>&5
11037  ac_status=$?
11038  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11039  test $ac_status = 0; }; then
11040  pkg_cv_XAUTH_LIBS=`$PKG_CONFIG --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>/dev/null`
11041		      test "x$?" != "x0" && pkg_failed=yes
11042else
11043  pkg_failed=yes
11044fi
11045 else
11046    pkg_failed=untried
11047fi
11048
11049
11050
11051if test $pkg_failed = yes; then
11052   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11053$as_echo "no" >&6; }
11054
11055if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11056        _pkg_short_errors_supported=yes
11057else
11058        _pkg_short_errors_supported=no
11059fi
11060        if test $_pkg_short_errors_supported = yes; then
11061	        XAUTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>&1`
11062        else
11063	        XAUTH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>&1`
11064        fi
11065	# Put the nasty error message in config.log where it belongs
11066	echo "$XAUTH_PKG_ERRORS" >&5
11067
11068	as_fn_error $? "Package requirements (x11 xau xext xmuu xproto >= 7.0.17) were not met:
11069
11070$XAUTH_PKG_ERRORS
11071
11072Consider adjusting the PKG_CONFIG_PATH environment variable if you
11073installed software in a non-standard prefix.
11074
11075Alternatively, you may set the environment variables XAUTH_CFLAGS
11076and XAUTH_LIBS to avoid the need to call pkg-config.
11077See the pkg-config man page for more details." "$LINENO" 5
11078elif test $pkg_failed = untried; then
11079     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11080$as_echo "no" >&6; }
11081	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11082$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11083as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11084is in your PATH or set the PKG_CONFIG environment variable to the full
11085path to pkg-config.
11086
11087Alternatively, you may set the environment variables XAUTH_CFLAGS
11088and XAUTH_LIBS to avoid the need to call pkg-config.
11089See the pkg-config man page for more details.
11090
11091To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11092See \`config.log' for more details" "$LINENO" 5; }
11093else
11094	XAUTH_CFLAGS=$pkg_cv_XAUTH_CFLAGS
11095	XAUTH_LIBS=$pkg_cv_XAUTH_LIBS
11096        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11097$as_echo "yes" >&6; }
11098
11099fi
11100
11101# Transport selection macro from xtrans.m4
11102# Needed to set *CONN defines for gethost.c & parsedpy.c
11103
11104
11105 case $host_os in
11106	mingw*)	unixdef="no"   ;;
11107	*)	unixdef="yes"  ;;
11108 esac
11109 # Check whether --enable-unix-transport was given.
11110if test "${enable_unix_transport+set}" = set; then :
11111  enableval=$enable_unix_transport; UNIXCONN=$enableval
11112else
11113  UNIXCONN=$unixdef
11114fi
11115
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
11117$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
11118 if test "$UNIXCONN" = "yes"; then
11119
11120$as_echo "#define UNIXCONN 1" >>confdefs.h
11121
11122 fi
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
11124$as_echo "$UNIXCONN" >&6; }
11125 # Check whether --enable-tcp-transport was given.
11126if test "${enable_tcp_transport+set}" = set; then :
11127  enableval=$enable_tcp_transport; TCPCONN=$enableval
11128else
11129  TCPCONN=yes
11130fi
11131
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
11133$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
11135$as_echo "$TCPCONN" >&6; }
11136 if test "$TCPCONN" = "yes"; then
11137
11138$as_echo "#define TCPCONN 1" >>confdefs.h
11139
11140
11141 # SVR4 hides these in libraries other than libc
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
11143$as_echo_n "checking for library containing socket... " >&6; }
11144if ${ac_cv_search_socket+:} false; then :
11145  $as_echo_n "(cached) " >&6
11146else
11147  ac_func_search_save_LIBS=$LIBS
11148cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11149/* end confdefs.h.  */
11150
11151/* Override any GCC internal prototype to avoid an error.
11152   Use char because int might match the return type of a GCC
11153   builtin and then its argument prototype would still apply.  */
11154#ifdef __cplusplus
11155extern "C"
11156#endif
11157char socket ();
11158int
11159main ()
11160{
11161return socket ();
11162  ;
11163  return 0;
11164}
11165_ACEOF
11166for ac_lib in '' socket; do
11167  if test -z "$ac_lib"; then
11168    ac_res="none required"
11169  else
11170    ac_res=-l$ac_lib
11171    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11172  fi
11173  if ac_fn_c_try_link "$LINENO"; then :
11174  ac_cv_search_socket=$ac_res
11175fi
11176rm -f core conftest.err conftest.$ac_objext \
11177    conftest$ac_exeext
11178  if ${ac_cv_search_socket+:} false; then :
11179  break
11180fi
11181done
11182if ${ac_cv_search_socket+:} false; then :
11183
11184else
11185  ac_cv_search_socket=no
11186fi
11187rm conftest.$ac_ext
11188LIBS=$ac_func_search_save_LIBS
11189fi
11190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
11191$as_echo "$ac_cv_search_socket" >&6; }
11192ac_res=$ac_cv_search_socket
11193if test "$ac_res" != no; then :
11194  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11195
11196fi
11197
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
11199$as_echo_n "checking for library containing gethostbyname... " >&6; }
11200if ${ac_cv_search_gethostbyname+:} false; then :
11201  $as_echo_n "(cached) " >&6
11202else
11203  ac_func_search_save_LIBS=$LIBS
11204cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11205/* end confdefs.h.  */
11206
11207/* Override any GCC internal prototype to avoid an error.
11208   Use char because int might match the return type of a GCC
11209   builtin and then its argument prototype would still apply.  */
11210#ifdef __cplusplus
11211extern "C"
11212#endif
11213char gethostbyname ();
11214int
11215main ()
11216{
11217return gethostbyname ();
11218  ;
11219  return 0;
11220}
11221_ACEOF
11222for ac_lib in '' nsl; do
11223  if test -z "$ac_lib"; then
11224    ac_res="none required"
11225  else
11226    ac_res=-l$ac_lib
11227    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11228  fi
11229  if ac_fn_c_try_link "$LINENO"; then :
11230  ac_cv_search_gethostbyname=$ac_res
11231fi
11232rm -f core conftest.err conftest.$ac_objext \
11233    conftest$ac_exeext
11234  if ${ac_cv_search_gethostbyname+:} false; then :
11235  break
11236fi
11237done
11238if ${ac_cv_search_gethostbyname+:} false; then :
11239
11240else
11241  ac_cv_search_gethostbyname=no
11242fi
11243rm conftest.$ac_ext
11244LIBS=$ac_func_search_save_LIBS
11245fi
11246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
11247$as_echo "$ac_cv_search_gethostbyname" >&6; }
11248ac_res=$ac_cv_search_gethostbyname
11249if test "$ac_res" != no; then :
11250  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11251
11252fi
11253
11254 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
11255   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
11256$as_echo_n "checking for main in -lws2_32... " >&6; }
11257if ${ac_cv_lib_ws2_32_main+:} false; then :
11258  $as_echo_n "(cached) " >&6
11259else
11260  ac_check_lib_save_LIBS=$LIBS
11261LIBS="-lws2_32  $LIBS"
11262cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11263/* end confdefs.h.  */
11264
11265
11266int
11267main ()
11268{
11269return main ();
11270  ;
11271  return 0;
11272}
11273_ACEOF
11274if ac_fn_c_try_link "$LINENO"; then :
11275  ac_cv_lib_ws2_32_main=yes
11276else
11277  ac_cv_lib_ws2_32_main=no
11278fi
11279rm -f core conftest.err conftest.$ac_objext \
11280    conftest$ac_exeext conftest.$ac_ext
11281LIBS=$ac_check_lib_save_LIBS
11282fi
11283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
11284$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
11285if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
11286  cat >>confdefs.h <<_ACEOF
11287#define HAVE_LIBWS2_32 1
11288_ACEOF
11289
11290  LIBS="-lws2_32 $LIBS"
11291
11292fi
11293
11294 fi
11295
11296 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
11297 # Check whether --enable-ipv6 was given.
11298if test "${enable_ipv6+set}" = set; then :
11299  enableval=$enable_ipv6; IPV6CONN=$enableval
11300else
11301  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
11302if test "x$ac_cv_func_getaddrinfo" = xyes; then :
11303  IPV6CONN=yes
11304else
11305  IPV6CONN=no
11306fi
11307
11308fi
11309
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
11311$as_echo_n "checking if IPv6 support should be built... " >&6; }
11312 if test "$IPV6CONN" = "yes"; then
11313
11314$as_echo "#define IPv6 1" >>confdefs.h
11315
11316 fi
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
11318$as_echo "$IPV6CONN" >&6; }
11319
11320 # 4.3BSD-Reno added a new member to struct sockaddr_in
11321 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
11322#include <sys/types.h>
11323#include <sys/socket.h>
11324#include <netinet/in.h>
11325
11326"
11327if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
11328
11329$as_echo "#define BSD44SOCKETS 1" >>confdefs.h
11330
11331fi
11332
11333
11334 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
11335 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
11336$ac_includes_default
11337#include <sys/socket.h>
11338"
11339if test "x$ac_cv_type_socklen_t" = xyes; then :
11340
11341cat >>confdefs.h <<_ACEOF
11342#define HAVE_SOCKLEN_T 1
11343_ACEOF
11344
11345
11346fi
11347
11348
11349 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
11350 # _XOPEN_SOURCE to get it (such as on Solaris)
11351 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
11352$ac_includes_default
11353#include <sys/socket.h>
11354
11355"
11356if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
11357
11358fi
11359
11360 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
11361 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
11362     unset ac_cv_member_struct_msghdr_msg_control
11363     { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
11364$as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
11365     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
11366#define _XOPEN_SOURCE 600
11367$ac_includes_default
11368#include <sys/socket.h>
11369
11370"
11371if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
11372
11373$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
11374
11375
11376fi
11377
11378 fi
11379 # If that didn't work, fall back to XPG5/UNIX98 with C89
11380 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
11381     unset ac_cv_member_struct_msghdr_msg_control
11382     { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
11383$as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
11384     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
11385#define _XOPEN_SOURCE 500
11386$ac_includes_default
11387#include <sys/socket.h>
11388
11389"
11390if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
11391
11392$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
11393
11394
11395fi
11396
11397 fi
11398
11399
11400
11401 fi
11402 case $host_os in
11403	solaris*|sco*|sysv4*)	localdef="yes" ;;
11404	*)			localdef="no"  ;;
11405 esac
11406 # Check whether --enable-local-transport was given.
11407if test "${enable_local_transport+set}" = set; then :
11408  enableval=$enable_local_transport; LOCALCONN=$enableval
11409else
11410  LOCALCONN=$localdef
11411fi
11412
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
11414$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
11416$as_echo "$LOCALCONN" >&6; }
11417 if test "$LOCALCONN" = "yes"; then
11418
11419$as_echo "#define LOCALCONN 1" >>confdefs.h
11420
11421 fi
11422
11423 # Other functions Xtrans may need
11424 for ac_func in strcasecmp strlcpy
11425do :
11426  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11427ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11428if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11429  cat >>confdefs.h <<_ACEOF
11430#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11431_ACEOF
11432
11433fi
11434done
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444# Check whether --with-lint was given.
11445if test "${with_lint+set}" = set; then :
11446  withval=$with_lint; use_lint=$withval
11447else
11448  use_lint=no
11449fi
11450
11451
11452# Obtain platform specific info like program name and options
11453# The lint program on FreeBSD and NetBSD is different from the one on Solaris
11454case $host_os in
11455  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
11456	lint_name=splint
11457	lint_options="-badflag"
11458	;;
11459  *freebsd* | *netbsd*)
11460	lint_name=lint
11461	lint_options="-u -b"
11462	;;
11463  *solaris*)
11464	lint_name=lint
11465	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
11466	;;
11467esac
11468
11469# Test for the presence of the program (either guessed by the code or spelled out by the user)
11470if test "x$use_lint" = x"yes" ; then
11471   # Extract the first word of "$lint_name", so it can be a program name with args.
11472set dummy $lint_name; ac_word=$2
11473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11474$as_echo_n "checking for $ac_word... " >&6; }
11475if ${ac_cv_path_LINT+:} false; then :
11476  $as_echo_n "(cached) " >&6
11477else
11478  case $LINT in
11479  [\\/]* | ?:[\\/]*)
11480  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
11481  ;;
11482  *)
11483  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11484for as_dir in $PATH
11485do
11486  IFS=$as_save_IFS
11487  test -z "$as_dir" && as_dir=.
11488    for ac_exec_ext in '' $ac_executable_extensions; do
11489  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11490    ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
11491    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11492    break 2
11493  fi
11494done
11495  done
11496IFS=$as_save_IFS
11497
11498  ;;
11499esac
11500fi
11501LINT=$ac_cv_path_LINT
11502if test -n "$LINT"; then
11503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
11504$as_echo "$LINT" >&6; }
11505else
11506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11507$as_echo "no" >&6; }
11508fi
11509
11510
11511   if test "x$LINT" = "x"; then
11512        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
11513   fi
11514elif test "x$use_lint" = x"no" ; then
11515   if test "x$LINT" != "x"; then
11516      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
11517$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
11518   fi
11519else
11520   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
11521fi
11522
11523# User supplied flags override default flags
11524if test "x$LINT_FLAGS" != "x"; then
11525   lint_options=$LINT_FLAGS
11526fi
11527
11528LINT_FLAGS=$lint_options
11529
11530 if test "x$LINT" != x; then
11531  LINT_TRUE=
11532  LINT_FALSE='#'
11533else
11534  LINT_TRUE='#'
11535  LINT_FALSE=
11536fi
11537
11538
11539
11540
11541ac_config_files="$ac_config_files Makefile tests/Makefile man/Makefile"
11542
11543cat >confcache <<\_ACEOF
11544# This file is a shell script that caches the results of configure
11545# tests run on this system so they can be shared between configure
11546# scripts and configure runs, see configure's option --config-cache.
11547# It is not useful on other systems.  If it contains results you don't
11548# want to keep, you may remove or edit it.
11549#
11550# config.status only pays attention to the cache file if you give it
11551# the --recheck option to rerun configure.
11552#
11553# `ac_cv_env_foo' variables (set or unset) will be overridden when
11554# loading this file, other *unset* `ac_cv_foo' will be assigned the
11555# following values.
11556
11557_ACEOF
11558
11559# The following way of writing the cache mishandles newlines in values,
11560# but we know of no workaround that is simple, portable, and efficient.
11561# So, we kill variables containing newlines.
11562# Ultrix sh set writes to stderr and can't be redirected directly,
11563# and sets the high bit in the cache file unless we assign to the vars.
11564(
11565  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11566    eval ac_val=\$$ac_var
11567    case $ac_val in #(
11568    *${as_nl}*)
11569      case $ac_var in #(
11570      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11571$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11572      esac
11573      case $ac_var in #(
11574      _ | IFS | as_nl) ;; #(
11575      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11576      *) { eval $ac_var=; unset $ac_var;} ;;
11577      esac ;;
11578    esac
11579  done
11580
11581  (set) 2>&1 |
11582    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11583    *${as_nl}ac_space=\ *)
11584      # `set' does not quote correctly, so add quotes: double-quote
11585      # substitution turns \\\\ into \\, and sed turns \\ into \.
11586      sed -n \
11587	"s/'/'\\\\''/g;
11588	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11589      ;; #(
11590    *)
11591      # `set' quotes correctly as required by POSIX, so do not add quotes.
11592      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11593      ;;
11594    esac |
11595    sort
11596) |
11597  sed '
11598     /^ac_cv_env_/b end
11599     t clear
11600     :clear
11601     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11602     t end
11603     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11604     :end' >>confcache
11605if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11606  if test -w "$cache_file"; then
11607    if test "x$cache_file" != "x/dev/null"; then
11608      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11609$as_echo "$as_me: updating cache $cache_file" >&6;}
11610      if test ! -f "$cache_file" || test -h "$cache_file"; then
11611	cat confcache >"$cache_file"
11612      else
11613        case $cache_file in #(
11614        */* | ?:*)
11615	  mv -f confcache "$cache_file"$$ &&
11616	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11617        *)
11618	  mv -f confcache "$cache_file" ;;
11619	esac
11620      fi
11621    fi
11622  else
11623    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11624$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11625  fi
11626fi
11627rm -f confcache
11628
11629test "x$prefix" = xNONE && prefix=$ac_default_prefix
11630# Let make expand exec_prefix.
11631test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11632
11633DEFS=-DHAVE_CONFIG_H
11634
11635ac_libobjs=
11636ac_ltlibobjs=
11637U=
11638for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11639  # 1. Remove the extension, and $U if already installed.
11640  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11641  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11642  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11643  #    will be set to the directory where LIBOBJS objects are built.
11644  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11645  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11646done
11647LIBOBJS=$ac_libobjs
11648
11649LTLIBOBJS=$ac_ltlibobjs
11650
11651
11652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11653$as_echo_n "checking that generated files are newer than configure... " >&6; }
11654   if test -n "$am_sleep_pid"; then
11655     # Hide warnings about reused PIDs.
11656     wait $am_sleep_pid 2>/dev/null
11657   fi
11658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11659$as_echo "done" >&6; }
11660 if test -n "$EXEEXT"; then
11661  am__EXEEXT_TRUE=
11662  am__EXEEXT_FALSE='#'
11663else
11664  am__EXEEXT_TRUE='#'
11665  am__EXEEXT_FALSE=
11666fi
11667
11668if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11669  as_fn_error $? "conditional \"AMDEP\" was never defined.
11670Usually this means the macro was only invoked conditionally." "$LINENO" 5
11671fi
11672if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11673  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11674Usually this means the macro was only invoked conditionally." "$LINENO" 5
11675fi
11676if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
11677  as_fn_error $? "conditional \"LINT\" was never defined.
11678Usually this means the macro was only invoked conditionally." "$LINENO" 5
11679fi
11680
11681: "${CONFIG_STATUS=./config.status}"
11682ac_write_fail=0
11683ac_clean_files_save=$ac_clean_files
11684ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11685{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11686$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11687as_write_fail=0
11688cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11689#! $SHELL
11690# Generated by $as_me.
11691# Run this file to recreate the current configuration.
11692# Compiler output produced by configure, useful for debugging
11693# configure, is in config.log if it exists.
11694
11695debug=false
11696ac_cs_recheck=false
11697ac_cs_silent=false
11698
11699SHELL=\${CONFIG_SHELL-$SHELL}
11700export SHELL
11701_ASEOF
11702cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11703## -------------------- ##
11704## M4sh Initialization. ##
11705## -------------------- ##
11706
11707# Be more Bourne compatible
11708DUALCASE=1; export DUALCASE # for MKS sh
11709if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11710  emulate sh
11711  NULLCMD=:
11712  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11713  # is contrary to our usage.  Disable this feature.
11714  alias -g '${1+"$@"}'='"$@"'
11715  setopt NO_GLOB_SUBST
11716else
11717  case `(set -o) 2>/dev/null` in #(
11718  *posix*) :
11719    set -o posix ;; #(
11720  *) :
11721     ;;
11722esac
11723fi
11724
11725
11726as_nl='
11727'
11728export as_nl
11729# Printing a long string crashes Solaris 7 /usr/bin/printf.
11730as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11731as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11732as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11733# Prefer a ksh shell builtin over an external printf program on Solaris,
11734# but without wasting forks for bash or zsh.
11735if test -z "$BASH_VERSION$ZSH_VERSION" \
11736    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11737  as_echo='print -r --'
11738  as_echo_n='print -rn --'
11739elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11740  as_echo='printf %s\n'
11741  as_echo_n='printf %s'
11742else
11743  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11744    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11745    as_echo_n='/usr/ucb/echo -n'
11746  else
11747    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11748    as_echo_n_body='eval
11749      arg=$1;
11750      case $arg in #(
11751      *"$as_nl"*)
11752	expr "X$arg" : "X\\(.*\\)$as_nl";
11753	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11754      esac;
11755      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11756    '
11757    export as_echo_n_body
11758    as_echo_n='sh -c $as_echo_n_body as_echo'
11759  fi
11760  export as_echo_body
11761  as_echo='sh -c $as_echo_body as_echo'
11762fi
11763
11764# The user is always right.
11765if test "${PATH_SEPARATOR+set}" != set; then
11766  PATH_SEPARATOR=:
11767  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11768    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11769      PATH_SEPARATOR=';'
11770  }
11771fi
11772
11773
11774# IFS
11775# We need space, tab and new line, in precisely that order.  Quoting is
11776# there to prevent editors from complaining about space-tab.
11777# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11778# splitting by setting IFS to empty value.)
11779IFS=" ""	$as_nl"
11780
11781# Find who we are.  Look in the path if we contain no directory separator.
11782as_myself=
11783case $0 in #((
11784  *[\\/]* ) as_myself=$0 ;;
11785  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11786for as_dir in $PATH
11787do
11788  IFS=$as_save_IFS
11789  test -z "$as_dir" && as_dir=.
11790    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11791  done
11792IFS=$as_save_IFS
11793
11794     ;;
11795esac
11796# We did not find ourselves, most probably we were run as `sh COMMAND'
11797# in which case we are not to be found in the path.
11798if test "x$as_myself" = x; then
11799  as_myself=$0
11800fi
11801if test ! -f "$as_myself"; then
11802  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11803  exit 1
11804fi
11805
11806# Unset variables that we do not need and which cause bugs (e.g. in
11807# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11808# suppresses any "Segmentation fault" message there.  '((' could
11809# trigger a bug in pdksh 5.2.14.
11810for as_var in BASH_ENV ENV MAIL MAILPATH
11811do eval test x\${$as_var+set} = xset \
11812  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11813done
11814PS1='$ '
11815PS2='> '
11816PS4='+ '
11817
11818# NLS nuisances.
11819LC_ALL=C
11820export LC_ALL
11821LANGUAGE=C
11822export LANGUAGE
11823
11824# CDPATH.
11825(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11826
11827
11828# as_fn_error STATUS ERROR [LINENO LOG_FD]
11829# ----------------------------------------
11830# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11831# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11832# script with STATUS, using 1 if that was 0.
11833as_fn_error ()
11834{
11835  as_status=$1; test $as_status -eq 0 && as_status=1
11836  if test "$4"; then
11837    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11838    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11839  fi
11840  $as_echo "$as_me: error: $2" >&2
11841  as_fn_exit $as_status
11842} # as_fn_error
11843
11844
11845# as_fn_set_status STATUS
11846# -----------------------
11847# Set $? to STATUS, without forking.
11848as_fn_set_status ()
11849{
11850  return $1
11851} # as_fn_set_status
11852
11853# as_fn_exit STATUS
11854# -----------------
11855# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11856as_fn_exit ()
11857{
11858  set +e
11859  as_fn_set_status $1
11860  exit $1
11861} # as_fn_exit
11862
11863# as_fn_unset VAR
11864# ---------------
11865# Portably unset VAR.
11866as_fn_unset ()
11867{
11868  { eval $1=; unset $1;}
11869}
11870as_unset=as_fn_unset
11871# as_fn_append VAR VALUE
11872# ----------------------
11873# Append the text in VALUE to the end of the definition contained in VAR. Take
11874# advantage of any shell optimizations that allow amortized linear growth over
11875# repeated appends, instead of the typical quadratic growth present in naive
11876# implementations.
11877if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11878  eval 'as_fn_append ()
11879  {
11880    eval $1+=\$2
11881  }'
11882else
11883  as_fn_append ()
11884  {
11885    eval $1=\$$1\$2
11886  }
11887fi # as_fn_append
11888
11889# as_fn_arith ARG...
11890# ------------------
11891# Perform arithmetic evaluation on the ARGs, and store the result in the
11892# global $as_val. Take advantage of shells that can avoid forks. The arguments
11893# must be portable across $(()) and expr.
11894if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11895  eval 'as_fn_arith ()
11896  {
11897    as_val=$(( $* ))
11898  }'
11899else
11900  as_fn_arith ()
11901  {
11902    as_val=`expr "$@" || test $? -eq 1`
11903  }
11904fi # as_fn_arith
11905
11906
11907if expr a : '\(a\)' >/dev/null 2>&1 &&
11908   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11909  as_expr=expr
11910else
11911  as_expr=false
11912fi
11913
11914if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11915  as_basename=basename
11916else
11917  as_basename=false
11918fi
11919
11920if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11921  as_dirname=dirname
11922else
11923  as_dirname=false
11924fi
11925
11926as_me=`$as_basename -- "$0" ||
11927$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11928	 X"$0" : 'X\(//\)$' \| \
11929	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11930$as_echo X/"$0" |
11931    sed '/^.*\/\([^/][^/]*\)\/*$/{
11932	    s//\1/
11933	    q
11934	  }
11935	  /^X\/\(\/\/\)$/{
11936	    s//\1/
11937	    q
11938	  }
11939	  /^X\/\(\/\).*/{
11940	    s//\1/
11941	    q
11942	  }
11943	  s/.*/./; q'`
11944
11945# Avoid depending upon Character Ranges.
11946as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11947as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11948as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11949as_cr_digits='0123456789'
11950as_cr_alnum=$as_cr_Letters$as_cr_digits
11951
11952ECHO_C= ECHO_N= ECHO_T=
11953case `echo -n x` in #(((((
11954-n*)
11955  case `echo 'xy\c'` in
11956  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11957  xy)  ECHO_C='\c';;
11958  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11959       ECHO_T='	';;
11960  esac;;
11961*)
11962  ECHO_N='-n';;
11963esac
11964
11965rm -f conf$$ conf$$.exe conf$$.file
11966if test -d conf$$.dir; then
11967  rm -f conf$$.dir/conf$$.file
11968else
11969  rm -f conf$$.dir
11970  mkdir conf$$.dir 2>/dev/null
11971fi
11972if (echo >conf$$.file) 2>/dev/null; then
11973  if ln -s conf$$.file conf$$ 2>/dev/null; then
11974    as_ln_s='ln -s'
11975    # ... but there are two gotchas:
11976    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11977    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11978    # In both cases, we have to default to `cp -pR'.
11979    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11980      as_ln_s='cp -pR'
11981  elif ln conf$$.file conf$$ 2>/dev/null; then
11982    as_ln_s=ln
11983  else
11984    as_ln_s='cp -pR'
11985  fi
11986else
11987  as_ln_s='cp -pR'
11988fi
11989rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11990rmdir conf$$.dir 2>/dev/null
11991
11992
11993# as_fn_mkdir_p
11994# -------------
11995# Create "$as_dir" as a directory, including parents if necessary.
11996as_fn_mkdir_p ()
11997{
11998
11999  case $as_dir in #(
12000  -*) as_dir=./$as_dir;;
12001  esac
12002  test -d "$as_dir" || eval $as_mkdir_p || {
12003    as_dirs=
12004    while :; do
12005      case $as_dir in #(
12006      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12007      *) as_qdir=$as_dir;;
12008      esac
12009      as_dirs="'$as_qdir' $as_dirs"
12010      as_dir=`$as_dirname -- "$as_dir" ||
12011$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12012	 X"$as_dir" : 'X\(//\)[^/]' \| \
12013	 X"$as_dir" : 'X\(//\)$' \| \
12014	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12015$as_echo X"$as_dir" |
12016    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12017	    s//\1/
12018	    q
12019	  }
12020	  /^X\(\/\/\)[^/].*/{
12021	    s//\1/
12022	    q
12023	  }
12024	  /^X\(\/\/\)$/{
12025	    s//\1/
12026	    q
12027	  }
12028	  /^X\(\/\).*/{
12029	    s//\1/
12030	    q
12031	  }
12032	  s/.*/./; q'`
12033      test -d "$as_dir" && break
12034    done
12035    test -z "$as_dirs" || eval "mkdir $as_dirs"
12036  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12037
12038
12039} # as_fn_mkdir_p
12040if mkdir -p . 2>/dev/null; then
12041  as_mkdir_p='mkdir -p "$as_dir"'
12042else
12043  test -d ./-p && rmdir ./-p
12044  as_mkdir_p=false
12045fi
12046
12047
12048# as_fn_executable_p FILE
12049# -----------------------
12050# Test if FILE is an executable regular file.
12051as_fn_executable_p ()
12052{
12053  test -f "$1" && test -x "$1"
12054} # as_fn_executable_p
12055as_test_x='test -x'
12056as_executable_p=as_fn_executable_p
12057
12058# Sed expression to map a string onto a valid CPP name.
12059as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12060
12061# Sed expression to map a string onto a valid variable name.
12062as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12063
12064
12065exec 6>&1
12066## ----------------------------------- ##
12067## Main body of $CONFIG_STATUS script. ##
12068## ----------------------------------- ##
12069_ASEOF
12070test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12071
12072cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12073# Save the log message, to keep $0 and so on meaningful, and to
12074# report actual input values of CONFIG_FILES etc. instead of their
12075# values after options handling.
12076ac_log="
12077This file was extended by xauth $as_me 1.1.1, which was
12078generated by GNU Autoconf 2.69.  Invocation command line was
12079
12080  CONFIG_FILES    = $CONFIG_FILES
12081  CONFIG_HEADERS  = $CONFIG_HEADERS
12082  CONFIG_LINKS    = $CONFIG_LINKS
12083  CONFIG_COMMANDS = $CONFIG_COMMANDS
12084  $ $0 $@
12085
12086on `(hostname || uname -n) 2>/dev/null | sed 1q`
12087"
12088
12089_ACEOF
12090
12091case $ac_config_files in *"
12092"*) set x $ac_config_files; shift; ac_config_files=$*;;
12093esac
12094
12095case $ac_config_headers in *"
12096"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12097esac
12098
12099
12100cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12101# Files that config.status was made for.
12102config_files="$ac_config_files"
12103config_headers="$ac_config_headers"
12104config_commands="$ac_config_commands"
12105
12106_ACEOF
12107
12108cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12109ac_cs_usage="\
12110\`$as_me' instantiates files and other configuration actions
12111from templates according to the current configuration.  Unless the files
12112and actions are specified as TAGs, all are instantiated by default.
12113
12114Usage: $0 [OPTION]... [TAG]...
12115
12116  -h, --help       print this help, then exit
12117  -V, --version    print version number and configuration settings, then exit
12118      --config     print configuration, then exit
12119  -q, --quiet, --silent
12120                   do not print progress messages
12121  -d, --debug      don't remove temporary files
12122      --recheck    update $as_me by reconfiguring in the same conditions
12123      --file=FILE[:TEMPLATE]
12124                   instantiate the configuration file FILE
12125      --header=FILE[:TEMPLATE]
12126                   instantiate the configuration header FILE
12127
12128Configuration files:
12129$config_files
12130
12131Configuration headers:
12132$config_headers
12133
12134Configuration commands:
12135$config_commands
12136
12137Report bugs to <https://gitlab.freedesktop.org/xorg/app/xauth/issues>."
12138
12139_ACEOF
12140cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12141ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12142ac_cs_version="\\
12143xauth config.status 1.1.1
12144configured by $0, generated by GNU Autoconf 2.69,
12145  with options \\"\$ac_cs_config\\"
12146
12147Copyright (C) 2012 Free Software Foundation, Inc.
12148This config.status script is free software; the Free Software Foundation
12149gives unlimited permission to copy, distribute and modify it."
12150
12151ac_pwd='$ac_pwd'
12152srcdir='$srcdir'
12153INSTALL='$INSTALL'
12154MKDIR_P='$MKDIR_P'
12155AWK='$AWK'
12156test -n "\$AWK" || AWK=awk
12157_ACEOF
12158
12159cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12160# The default lists apply if the user does not specify any file.
12161ac_need_defaults=:
12162while test $# != 0
12163do
12164  case $1 in
12165  --*=?*)
12166    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12167    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12168    ac_shift=:
12169    ;;
12170  --*=)
12171    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12172    ac_optarg=
12173    ac_shift=:
12174    ;;
12175  *)
12176    ac_option=$1
12177    ac_optarg=$2
12178    ac_shift=shift
12179    ;;
12180  esac
12181
12182  case $ac_option in
12183  # Handling of the options.
12184  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12185    ac_cs_recheck=: ;;
12186  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12187    $as_echo "$ac_cs_version"; exit ;;
12188  --config | --confi | --conf | --con | --co | --c )
12189    $as_echo "$ac_cs_config"; exit ;;
12190  --debug | --debu | --deb | --de | --d | -d )
12191    debug=: ;;
12192  --file | --fil | --fi | --f )
12193    $ac_shift
12194    case $ac_optarg in
12195    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12196    '') as_fn_error $? "missing file argument" ;;
12197    esac
12198    as_fn_append CONFIG_FILES " '$ac_optarg'"
12199    ac_need_defaults=false;;
12200  --header | --heade | --head | --hea )
12201    $ac_shift
12202    case $ac_optarg in
12203    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12204    esac
12205    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12206    ac_need_defaults=false;;
12207  --he | --h)
12208    # Conflict between --help and --header
12209    as_fn_error $? "ambiguous option: \`$1'
12210Try \`$0 --help' for more information.";;
12211  --help | --hel | -h )
12212    $as_echo "$ac_cs_usage"; exit ;;
12213  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12214  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12215    ac_cs_silent=: ;;
12216
12217  # This is an error.
12218  -*) as_fn_error $? "unrecognized option: \`$1'
12219Try \`$0 --help' for more information." ;;
12220
12221  *) as_fn_append ac_config_targets " $1"
12222     ac_need_defaults=false ;;
12223
12224  esac
12225  shift
12226done
12227
12228ac_configure_extra_args=
12229
12230if $ac_cs_silent; then
12231  exec 6>/dev/null
12232  ac_configure_extra_args="$ac_configure_extra_args --silent"
12233fi
12234
12235_ACEOF
12236cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12237if \$ac_cs_recheck; then
12238  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12239  shift
12240  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12241  CONFIG_SHELL='$SHELL'
12242  export CONFIG_SHELL
12243  exec "\$@"
12244fi
12245
12246_ACEOF
12247cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12248exec 5>>config.log
12249{
12250  echo
12251  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12252## Running $as_me. ##
12253_ASBOX
12254  $as_echo "$ac_log"
12255} >&5
12256
12257_ACEOF
12258cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12259#
12260# INIT-COMMANDS
12261#
12262AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12263
12264_ACEOF
12265
12266cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12267
12268# Handling of arguments.
12269for ac_config_target in $ac_config_targets
12270do
12271  case $ac_config_target in
12272    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12273    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12274    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12275    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
12276    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12277
12278  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12279  esac
12280done
12281
12282
12283# If the user did not use the arguments to specify the items to instantiate,
12284# then the envvar interface is used.  Set only those that are not.
12285# We use the long form for the default assignment because of an extremely
12286# bizarre bug on SunOS 4.1.3.
12287if $ac_need_defaults; then
12288  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12289  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12290  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12291fi
12292
12293# Have a temporary directory for convenience.  Make it in the build tree
12294# simply because there is no reason against having it here, and in addition,
12295# creating and moving files from /tmp can sometimes cause problems.
12296# Hook for its removal unless debugging.
12297# Note that there is a small window in which the directory will not be cleaned:
12298# after its creation but before its name has been assigned to `$tmp'.
12299$debug ||
12300{
12301  tmp= ac_tmp=
12302  trap 'exit_status=$?
12303  : "${ac_tmp:=$tmp}"
12304  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12305' 0
12306  trap 'as_fn_exit 1' 1 2 13 15
12307}
12308# Create a (secure) tmp directory for tmp files.
12309
12310{
12311  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12312  test -d "$tmp"
12313}  ||
12314{
12315  tmp=./conf$$-$RANDOM
12316  (umask 077 && mkdir "$tmp")
12317} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12318ac_tmp=$tmp
12319
12320# Set up the scripts for CONFIG_FILES section.
12321# No need to generate them if there are no CONFIG_FILES.
12322# This happens for instance with `./config.status config.h'.
12323if test -n "$CONFIG_FILES"; then
12324
12325
12326ac_cr=`echo X | tr X '\015'`
12327# On cygwin, bash can eat \r inside `` if the user requested igncr.
12328# But we know of no other shell where ac_cr would be empty at this
12329# point, so we can use a bashism as a fallback.
12330if test "x$ac_cr" = x; then
12331  eval ac_cr=\$\'\\r\'
12332fi
12333ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12334if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12335  ac_cs_awk_cr='\\r'
12336else
12337  ac_cs_awk_cr=$ac_cr
12338fi
12339
12340echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12341_ACEOF
12342
12343
12344{
12345  echo "cat >conf$$subs.awk <<_ACEOF" &&
12346  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12347  echo "_ACEOF"
12348} >conf$$subs.sh ||
12349  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12350ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12351ac_delim='%!_!# '
12352for ac_last_try in false false false false false :; do
12353  . ./conf$$subs.sh ||
12354    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12355
12356  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12357  if test $ac_delim_n = $ac_delim_num; then
12358    break
12359  elif $ac_last_try; then
12360    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12361  else
12362    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12363  fi
12364done
12365rm -f conf$$subs.sh
12366
12367cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12368cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12369_ACEOF
12370sed -n '
12371h
12372s/^/S["/; s/!.*/"]=/
12373p
12374g
12375s/^[^!]*!//
12376:repl
12377t repl
12378s/'"$ac_delim"'$//
12379t delim
12380:nl
12381h
12382s/\(.\{148\}\)..*/\1/
12383t more1
12384s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12385p
12386n
12387b repl
12388:more1
12389s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12390p
12391g
12392s/.\{148\}//
12393t nl
12394:delim
12395h
12396s/\(.\{148\}\)..*/\1/
12397t more2
12398s/["\\]/\\&/g; s/^/"/; s/$/"/
12399p
12400b
12401:more2
12402s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12403p
12404g
12405s/.\{148\}//
12406t delim
12407' <conf$$subs.awk | sed '
12408/^[^""]/{
12409  N
12410  s/\n//
12411}
12412' >>$CONFIG_STATUS || ac_write_fail=1
12413rm -f conf$$subs.awk
12414cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12415_ACAWK
12416cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12417  for (key in S) S_is_set[key] = 1
12418  FS = ""
12419
12420}
12421{
12422  line = $ 0
12423  nfields = split(line, field, "@")
12424  substed = 0
12425  len = length(field[1])
12426  for (i = 2; i < nfields; i++) {
12427    key = field[i]
12428    keylen = length(key)
12429    if (S_is_set[key]) {
12430      value = S[key]
12431      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12432      len += length(value) + length(field[++i])
12433      substed = 1
12434    } else
12435      len += 1 + keylen
12436  }
12437
12438  print line
12439}
12440
12441_ACAWK
12442_ACEOF
12443cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12444if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12445  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12446else
12447  cat
12448fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12449  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12450_ACEOF
12451
12452# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12453# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12454# trailing colons and then remove the whole line if VPATH becomes empty
12455# (actually we leave an empty line to preserve line numbers).
12456if test "x$srcdir" = x.; then
12457  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12458h
12459s///
12460s/^/:/
12461s/[	 ]*$/:/
12462s/:\$(srcdir):/:/g
12463s/:\${srcdir}:/:/g
12464s/:@srcdir@:/:/g
12465s/^:*//
12466s/:*$//
12467x
12468s/\(=[	 ]*\).*/\1/
12469G
12470s/\n//
12471s/^[^=]*=[	 ]*$//
12472}'
12473fi
12474
12475cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12476fi # test -n "$CONFIG_FILES"
12477
12478# Set up the scripts for CONFIG_HEADERS section.
12479# No need to generate them if there are no CONFIG_HEADERS.
12480# This happens for instance with `./config.status Makefile'.
12481if test -n "$CONFIG_HEADERS"; then
12482cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12483BEGIN {
12484_ACEOF
12485
12486# Transform confdefs.h into an awk script `defines.awk', embedded as
12487# here-document in config.status, that substitutes the proper values into
12488# config.h.in to produce config.h.
12489
12490# Create a delimiter string that does not exist in confdefs.h, to ease
12491# handling of long lines.
12492ac_delim='%!_!# '
12493for ac_last_try in false false :; do
12494  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12495  if test -z "$ac_tt"; then
12496    break
12497  elif $ac_last_try; then
12498    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12499  else
12500    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12501  fi
12502done
12503
12504# For the awk script, D is an array of macro values keyed by name,
12505# likewise P contains macro parameters if any.  Preserve backslash
12506# newline sequences.
12507
12508ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12509sed -n '
12510s/.\{148\}/&'"$ac_delim"'/g
12511t rset
12512:rset
12513s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12514t def
12515d
12516:def
12517s/\\$//
12518t bsnl
12519s/["\\]/\\&/g
12520s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12521D["\1"]=" \3"/p
12522s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12523d
12524:bsnl
12525s/["\\]/\\&/g
12526s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12527D["\1"]=" \3\\\\\\n"\\/p
12528t cont
12529s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12530t cont
12531d
12532:cont
12533n
12534s/.\{148\}/&'"$ac_delim"'/g
12535t clear
12536:clear
12537s/\\$//
12538t bsnlc
12539s/["\\]/\\&/g; s/^/"/; s/$/"/p
12540d
12541:bsnlc
12542s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12543b cont
12544' <confdefs.h | sed '
12545s/'"$ac_delim"'/"\\\
12546"/g' >>$CONFIG_STATUS || ac_write_fail=1
12547
12548cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12549  for (key in D) D_is_set[key] = 1
12550  FS = ""
12551}
12552/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12553  line = \$ 0
12554  split(line, arg, " ")
12555  if (arg[1] == "#") {
12556    defundef = arg[2]
12557    mac1 = arg[3]
12558  } else {
12559    defundef = substr(arg[1], 2)
12560    mac1 = arg[2]
12561  }
12562  split(mac1, mac2, "(") #)
12563  macro = mac2[1]
12564  prefix = substr(line, 1, index(line, defundef) - 1)
12565  if (D_is_set[macro]) {
12566    # Preserve the white space surrounding the "#".
12567    print prefix "define", macro P[macro] D[macro]
12568    next
12569  } else {
12570    # Replace #undef with comments.  This is necessary, for example,
12571    # in the case of _POSIX_SOURCE, which is predefined and required
12572    # on some systems where configure will not decide to define it.
12573    if (defundef == "undef") {
12574      print "/*", prefix defundef, macro, "*/"
12575      next
12576    }
12577  }
12578}
12579{ print }
12580_ACAWK
12581_ACEOF
12582cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12583  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12584fi # test -n "$CONFIG_HEADERS"
12585
12586
12587eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12588shift
12589for ac_tag
12590do
12591  case $ac_tag in
12592  :[FHLC]) ac_mode=$ac_tag; continue;;
12593  esac
12594  case $ac_mode$ac_tag in
12595  :[FHL]*:*);;
12596  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12597  :[FH]-) ac_tag=-:-;;
12598  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12599  esac
12600  ac_save_IFS=$IFS
12601  IFS=:
12602  set x $ac_tag
12603  IFS=$ac_save_IFS
12604  shift
12605  ac_file=$1
12606  shift
12607
12608  case $ac_mode in
12609  :L) ac_source=$1;;
12610  :[FH])
12611    ac_file_inputs=
12612    for ac_f
12613    do
12614      case $ac_f in
12615      -) ac_f="$ac_tmp/stdin";;
12616      *) # Look for the file first in the build tree, then in the source tree
12617	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12618	 # because $ac_f cannot contain `:'.
12619	 test -f "$ac_f" ||
12620	   case $ac_f in
12621	   [\\/$]*) false;;
12622	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12623	   esac ||
12624	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12625      esac
12626      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12627      as_fn_append ac_file_inputs " '$ac_f'"
12628    done
12629
12630    # Let's still pretend it is `configure' which instantiates (i.e., don't
12631    # use $as_me), people would be surprised to read:
12632    #    /* config.h.  Generated by config.status.  */
12633    configure_input='Generated from '`
12634	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12635	`' by configure.'
12636    if test x"$ac_file" != x-; then
12637      configure_input="$ac_file.  $configure_input"
12638      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12639$as_echo "$as_me: creating $ac_file" >&6;}
12640    fi
12641    # Neutralize special characters interpreted by sed in replacement strings.
12642    case $configure_input in #(
12643    *\&* | *\|* | *\\* )
12644       ac_sed_conf_input=`$as_echo "$configure_input" |
12645       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12646    *) ac_sed_conf_input=$configure_input;;
12647    esac
12648
12649    case $ac_tag in
12650    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12651      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12652    esac
12653    ;;
12654  esac
12655
12656  ac_dir=`$as_dirname -- "$ac_file" ||
12657$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12658	 X"$ac_file" : 'X\(//\)[^/]' \| \
12659	 X"$ac_file" : 'X\(//\)$' \| \
12660	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12661$as_echo X"$ac_file" |
12662    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12663	    s//\1/
12664	    q
12665	  }
12666	  /^X\(\/\/\)[^/].*/{
12667	    s//\1/
12668	    q
12669	  }
12670	  /^X\(\/\/\)$/{
12671	    s//\1/
12672	    q
12673	  }
12674	  /^X\(\/\).*/{
12675	    s//\1/
12676	    q
12677	  }
12678	  s/.*/./; q'`
12679  as_dir="$ac_dir"; as_fn_mkdir_p
12680  ac_builddir=.
12681
12682case "$ac_dir" in
12683.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12684*)
12685  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12686  # A ".." for each directory in $ac_dir_suffix.
12687  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12688  case $ac_top_builddir_sub in
12689  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12690  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12691  esac ;;
12692esac
12693ac_abs_top_builddir=$ac_pwd
12694ac_abs_builddir=$ac_pwd$ac_dir_suffix
12695# for backward compatibility:
12696ac_top_builddir=$ac_top_build_prefix
12697
12698case $srcdir in
12699  .)  # We are building in place.
12700    ac_srcdir=.
12701    ac_top_srcdir=$ac_top_builddir_sub
12702    ac_abs_top_srcdir=$ac_pwd ;;
12703  [\\/]* | ?:[\\/]* )  # Absolute name.
12704    ac_srcdir=$srcdir$ac_dir_suffix;
12705    ac_top_srcdir=$srcdir
12706    ac_abs_top_srcdir=$srcdir ;;
12707  *) # Relative name.
12708    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12709    ac_top_srcdir=$ac_top_build_prefix$srcdir
12710    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12711esac
12712ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12713
12714
12715  case $ac_mode in
12716  :F)
12717  #
12718  # CONFIG_FILE
12719  #
12720
12721  case $INSTALL in
12722  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12723  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12724  esac
12725  ac_MKDIR_P=$MKDIR_P
12726  case $MKDIR_P in
12727  [\\/$]* | ?:[\\/]* ) ;;
12728  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12729  esac
12730_ACEOF
12731
12732cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12733# If the template does not know about datarootdir, expand it.
12734# FIXME: This hack should be removed a few years after 2.60.
12735ac_datarootdir_hack=; ac_datarootdir_seen=
12736ac_sed_dataroot='
12737/datarootdir/ {
12738  p
12739  q
12740}
12741/@datadir@/p
12742/@docdir@/p
12743/@infodir@/p
12744/@localedir@/p
12745/@mandir@/p'
12746case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12747*datarootdir*) ac_datarootdir_seen=yes;;
12748*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12749  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12750$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12751_ACEOF
12752cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12753  ac_datarootdir_hack='
12754  s&@datadir@&$datadir&g
12755  s&@docdir@&$docdir&g
12756  s&@infodir@&$infodir&g
12757  s&@localedir@&$localedir&g
12758  s&@mandir@&$mandir&g
12759  s&\\\${datarootdir}&$datarootdir&g' ;;
12760esac
12761_ACEOF
12762
12763# Neutralize VPATH when `$srcdir' = `.'.
12764# Shell code in configure.ac might set extrasub.
12765# FIXME: do we really want to maintain this feature?
12766cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12767ac_sed_extra="$ac_vpsub
12768$extrasub
12769_ACEOF
12770cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12771:t
12772/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12773s|@configure_input@|$ac_sed_conf_input|;t t
12774s&@top_builddir@&$ac_top_builddir_sub&;t t
12775s&@top_build_prefix@&$ac_top_build_prefix&;t t
12776s&@srcdir@&$ac_srcdir&;t t
12777s&@abs_srcdir@&$ac_abs_srcdir&;t t
12778s&@top_srcdir@&$ac_top_srcdir&;t t
12779s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12780s&@builddir@&$ac_builddir&;t t
12781s&@abs_builddir@&$ac_abs_builddir&;t t
12782s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12783s&@INSTALL@&$ac_INSTALL&;t t
12784s&@MKDIR_P@&$ac_MKDIR_P&;t t
12785$ac_datarootdir_hack
12786"
12787eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12788  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12789
12790test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12791  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12792  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12793      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12794  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12795which seems to be undefined.  Please make sure it is defined" >&5
12796$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12797which seems to be undefined.  Please make sure it is defined" >&2;}
12798
12799  rm -f "$ac_tmp/stdin"
12800  case $ac_file in
12801  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12802  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12803  esac \
12804  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12805 ;;
12806  :H)
12807  #
12808  # CONFIG_HEADER
12809  #
12810  if test x"$ac_file" != x-; then
12811    {
12812      $as_echo "/* $configure_input  */" \
12813      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12814    } >"$ac_tmp/config.h" \
12815      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12816    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12817      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12818$as_echo "$as_me: $ac_file is unchanged" >&6;}
12819    else
12820      rm -f "$ac_file"
12821      mv "$ac_tmp/config.h" "$ac_file" \
12822	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12823    fi
12824  else
12825    $as_echo "/* $configure_input  */" \
12826      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12827      || as_fn_error $? "could not create -" "$LINENO" 5
12828  fi
12829# Compute "$ac_file"'s index in $config_headers.
12830_am_arg="$ac_file"
12831_am_stamp_count=1
12832for _am_header in $config_headers :; do
12833  case $_am_header in
12834    $_am_arg | $_am_arg:* )
12835      break ;;
12836    * )
12837      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12838  esac
12839done
12840echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12841$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12842	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12843	 X"$_am_arg" : 'X\(//\)$' \| \
12844	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12845$as_echo X"$_am_arg" |
12846    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12847	    s//\1/
12848	    q
12849	  }
12850	  /^X\(\/\/\)[^/].*/{
12851	    s//\1/
12852	    q
12853	  }
12854	  /^X\(\/\/\)$/{
12855	    s//\1/
12856	    q
12857	  }
12858	  /^X\(\/\).*/{
12859	    s//\1/
12860	    q
12861	  }
12862	  s/.*/./; q'`/stamp-h$_am_stamp_count
12863 ;;
12864
12865  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12866$as_echo "$as_me: executing $ac_file commands" >&6;}
12867 ;;
12868  esac
12869
12870
12871  case $ac_file$ac_mode in
12872    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12873  # Older Autoconf quotes --file arguments for eval, but not when files
12874  # are listed without --file.  Let's play safe and only enable the eval
12875  # if we detect the quoting.
12876  # TODO: see whether this extra hack can be removed once we start
12877  # requiring Autoconf 2.70 or later.
12878  case $CONFIG_FILES in #(
12879  *\'*) :
12880    eval set x "$CONFIG_FILES" ;; #(
12881  *) :
12882    set x $CONFIG_FILES ;; #(
12883  *) :
12884     ;;
12885esac
12886  shift
12887  # Used to flag and report bootstrapping failures.
12888  am_rc=0
12889  for am_mf
12890  do
12891    # Strip MF so we end up with the name of the file.
12892    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
12893    # Check whether this is an Automake generated Makefile which includes
12894    # dependency-tracking related rules and includes.
12895    # Grep'ing the whole file directly is not great: AIX grep has a line
12896    # limit of 2048, but all sed's we know have understand at least 4000.
12897    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12898      || continue
12899    am_dirpart=`$as_dirname -- "$am_mf" ||
12900$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12901	 X"$am_mf" : 'X\(//\)[^/]' \| \
12902	 X"$am_mf" : 'X\(//\)$' \| \
12903	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12904$as_echo X"$am_mf" |
12905    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12906	    s//\1/
12907	    q
12908	  }
12909	  /^X\(\/\/\)[^/].*/{
12910	    s//\1/
12911	    q
12912	  }
12913	  /^X\(\/\/\)$/{
12914	    s//\1/
12915	    q
12916	  }
12917	  /^X\(\/\).*/{
12918	    s//\1/
12919	    q
12920	  }
12921	  s/.*/./; q'`
12922    am_filepart=`$as_basename -- "$am_mf" ||
12923$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12924	 X"$am_mf" : 'X\(//\)$' \| \
12925	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12926$as_echo X/"$am_mf" |
12927    sed '/^.*\/\([^/][^/]*\)\/*$/{
12928	    s//\1/
12929	    q
12930	  }
12931	  /^X\/\(\/\/\)$/{
12932	    s//\1/
12933	    q
12934	  }
12935	  /^X\/\(\/\).*/{
12936	    s//\1/
12937	    q
12938	  }
12939	  s/.*/./; q'`
12940    { echo "$as_me:$LINENO: cd "$am_dirpart" \
12941      && sed -e '/# am--include-marker/d' "$am_filepart" \
12942        | $MAKE -f - am--depfiles" >&5
12943   (cd "$am_dirpart" \
12944      && sed -e '/# am--include-marker/d' "$am_filepart" \
12945        | $MAKE -f - am--depfiles) >&5 2>&5
12946   ac_status=$?
12947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948   (exit $ac_status); } || am_rc=$?
12949  done
12950  if test $am_rc -ne 0; then
12951    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12952$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12953as_fn_error $? "Something went wrong bootstrapping makefile fragments
12954    for automatic dependency tracking.  If GNU make was not used, consider
12955    re-running the configure script with MAKE=\"gmake\" (or whatever is
12956    necessary).  You can also try re-running configure with the
12957    '--disable-dependency-tracking' option to at least be able to build
12958    the package (albeit without support for automatic dependency tracking).
12959See \`config.log' for more details" "$LINENO" 5; }
12960  fi
12961  { am_dirpart=; unset am_dirpart;}
12962  { am_filepart=; unset am_filepart;}
12963  { am_mf=; unset am_mf;}
12964  { am_rc=; unset am_rc;}
12965  rm -f conftest-deps.mk
12966}
12967 ;;
12968
12969  esac
12970done # for ac_tag
12971
12972
12973as_fn_exit 0
12974_ACEOF
12975ac_clean_files=$ac_clean_files_save
12976
12977test $ac_write_fail = 0 ||
12978  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12979
12980
12981# configure is writing to config.log, and then calls config.status.
12982# config.status does its own redirection, appending to config.log.
12983# Unfortunately, on DOS this fails, as config.log is still kept open
12984# by configure, so config.status won't be able to write to it; its
12985# output is simply discarded.  So we exec the FD to /dev/null,
12986# effectively closing config.log, so it can be properly (re)opened and
12987# appended to by config.status.  When coming back to configure, we
12988# need to make the FD available again.
12989if test "$no_create" != yes; then
12990  ac_cs_success=:
12991  ac_config_status_args=
12992  test "$silent" = yes &&
12993    ac_config_status_args="$ac_config_status_args --quiet"
12994  exec 5>/dev/null
12995  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12996  exec 5>>config.log
12997  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12998  # would make configure fail if this is the last instruction.
12999  $ac_cs_success || as_fn_exit 1
13000fi
13001if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13002  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13003$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13004fi
13005
13006