configure revision aadd013e
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xhost 1.0.8.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xhost/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/xhost/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='xhost'
583PACKAGE_TARNAME='xhost'
584PACKAGE_VERSION='1.0.8'
585PACKAGE_STRING='xhost 1.0.8'
586PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xhost/issues'
587PACKAGE_URL=''
588
589ac_unique_file="Makefile.am"
590# Factoring default headers for most tests.
591ac_includes_default="\
592#include <stdio.h>
593#ifdef HAVE_SYS_TYPES_H
594# include <sys/types.h>
595#endif
596#ifdef HAVE_SYS_STAT_H
597# include <sys/stat.h>
598#endif
599#ifdef STDC_HEADERS
600# include <stdlib.h>
601# include <stddef.h>
602#else
603# ifdef HAVE_STDLIB_H
604#  include <stdlib.h>
605# endif
606#endif
607#ifdef HAVE_STRING_H
608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609#  include <memory.h>
610# endif
611# include <string.h>
612#endif
613#ifdef HAVE_STRINGS_H
614# include <strings.h>
615#endif
616#ifdef HAVE_INTTYPES_H
617# include <inttypes.h>
618#endif
619#ifdef HAVE_STDINT_H
620# include <stdint.h>
621#endif
622#ifdef HAVE_UNISTD_H
623# include <unistd.h>
624#endif"
625
626ac_subst_vars='am__EXEEXT_FALSE
627am__EXEEXT_TRUE
628LTLIBOBJS
629LIBOBJS
630XAU_LIBS
631XAU_CFLAGS
632XHOST_LIBS
633XHOST_CFLAGS
634MAN_SUBSTS
635XORG_MAN_PAGE
636ADMIN_MAN_DIR
637DRIVER_MAN_DIR
638MISC_MAN_DIR
639FILE_MAN_DIR
640LIB_MAN_DIR
641APP_MAN_DIR
642ADMIN_MAN_SUFFIX
643DRIVER_MAN_SUFFIX
644MISC_MAN_SUFFIX
645FILE_MAN_SUFFIX
646LIB_MAN_SUFFIX
647APP_MAN_SUFFIX
648SED
649host_os
650host_vendor
651host_cpu
652host
653build_os
654build_vendor
655build_cpu
656build
657INSTALL_CMD
658PKG_CONFIG_LIBDIR
659PKG_CONFIG_PATH
660PKG_CONFIG
661CHANGELOG_CMD
662STRICT_CFLAGS
663CWARNFLAGS
664BASE_CFLAGS
665EGREP
666GREP
667CPP
668am__fastdepCC_FALSE
669am__fastdepCC_TRUE
670CCDEPMODE
671am__nodep
672AMDEPBACKSLASH
673AMDEP_FALSE
674AMDEP_TRUE
675am__quote
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'
750ac_subst_files=''
751ac_user_opts='
752enable_option_checking
753enable_silent_rules
754enable_dependency_tracking
755enable_selective_werror
756enable_strict_compilation
757enable_unix_transport
758enable_tcp_transport
759enable_ipv6
760enable_local_transport
761enable_secure_rpc
762'
763      ac_precious_vars='build_alias
764host_alias
765target_alias
766CC
767CFLAGS
768LDFLAGS
769LIBS
770CPPFLAGS
771CPP
772PKG_CONFIG
773PKG_CONFIG_PATH
774PKG_CONFIG_LIBDIR
775XHOST_CFLAGS
776XHOST_LIBS
777XAU_CFLAGS
778XAU_LIBS'
779
780
781# Initialize some variables set by options.
782ac_init_help=
783ac_init_version=false
784ac_unrecognized_opts=
785ac_unrecognized_sep=
786# The variables have the same names as the options, with
787# dashes changed to underlines.
788cache_file=/dev/null
789exec_prefix=NONE
790no_create=
791no_recursion=
792prefix=NONE
793program_prefix=NONE
794program_suffix=NONE
795program_transform_name=s,x,x,
796silent=
797site=
798srcdir=
799verbose=
800x_includes=NONE
801x_libraries=NONE
802
803# Installation directory options.
804# These are left unexpanded so users can "make install exec_prefix=/foo"
805# and all the variables that are supposed to be based on exec_prefix
806# by default will actually change.
807# Use braces instead of parens because sh, perl, etc. also accept them.
808# (The list follows the same order as the GNU Coding Standards.)
809bindir='${exec_prefix}/bin'
810sbindir='${exec_prefix}/sbin'
811libexecdir='${exec_prefix}/libexec'
812datarootdir='${prefix}/share'
813datadir='${datarootdir}'
814sysconfdir='${prefix}/etc'
815sharedstatedir='${prefix}/com'
816localstatedir='${prefix}/var'
817includedir='${prefix}/include'
818oldincludedir='/usr/include'
819docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
820infodir='${datarootdir}/info'
821htmldir='${docdir}'
822dvidir='${docdir}'
823pdfdir='${docdir}'
824psdir='${docdir}'
825libdir='${exec_prefix}/lib'
826localedir='${datarootdir}/locale'
827mandir='${datarootdir}/man'
828
829ac_prev=
830ac_dashdash=
831for ac_option
832do
833  # If the previous option needs an argument, assign it.
834  if test -n "$ac_prev"; then
835    eval $ac_prev=\$ac_option
836    ac_prev=
837    continue
838  fi
839
840  case $ac_option in
841  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
842  *=)   ac_optarg= ;;
843  *)    ac_optarg=yes ;;
844  esac
845
846  # Accept the important Cygnus configure options, so we can diagnose typos.
847
848  case $ac_dashdash$ac_option in
849  --)
850    ac_dashdash=yes ;;
851
852  -bindir | --bindir | --bindi | --bind | --bin | --bi)
853    ac_prev=bindir ;;
854  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
855    bindir=$ac_optarg ;;
856
857  -build | --build | --buil | --bui | --bu)
858    ac_prev=build_alias ;;
859  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
860    build_alias=$ac_optarg ;;
861
862  -cache-file | --cache-file | --cache-fil | --cache-fi \
863  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
864    ac_prev=cache_file ;;
865  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
866  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
867    cache_file=$ac_optarg ;;
868
869  --config-cache | -C)
870    cache_file=config.cache ;;
871
872  -datadir | --datadir | --datadi | --datad)
873    ac_prev=datadir ;;
874  -datadir=* | --datadir=* | --datadi=* | --datad=*)
875    datadir=$ac_optarg ;;
876
877  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
878  | --dataroo | --dataro | --datar)
879    ac_prev=datarootdir ;;
880  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
881  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
882    datarootdir=$ac_optarg ;;
883
884  -disable-* | --disable-*)
885    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
886    # Reject names that are not valid shell variable names.
887    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
888      as_fn_error $? "invalid feature name: $ac_useropt"
889    ac_useropt_orig=$ac_useropt
890    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
891    case $ac_user_opts in
892      *"
893"enable_$ac_useropt"
894"*) ;;
895      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
896	 ac_unrecognized_sep=', ';;
897    esac
898    eval enable_$ac_useropt=no ;;
899
900  -docdir | --docdir | --docdi | --doc | --do)
901    ac_prev=docdir ;;
902  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
903    docdir=$ac_optarg ;;
904
905  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
906    ac_prev=dvidir ;;
907  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
908    dvidir=$ac_optarg ;;
909
910  -enable-* | --enable-*)
911    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
912    # Reject names that are not valid shell variable names.
913    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914      as_fn_error $? "invalid feature name: $ac_useropt"
915    ac_useropt_orig=$ac_useropt
916    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917    case $ac_user_opts in
918      *"
919"enable_$ac_useropt"
920"*) ;;
921      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
922	 ac_unrecognized_sep=', ';;
923    esac
924    eval enable_$ac_useropt=\$ac_optarg ;;
925
926  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
927  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
928  | --exec | --exe | --ex)
929    ac_prev=exec_prefix ;;
930  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
931  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
932  | --exec=* | --exe=* | --ex=*)
933    exec_prefix=$ac_optarg ;;
934
935  -gas | --gas | --ga | --g)
936    # Obsolete; use --with-gas.
937    with_gas=yes ;;
938
939  -help | --help | --hel | --he | -h)
940    ac_init_help=long ;;
941  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
942    ac_init_help=recursive ;;
943  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
944    ac_init_help=short ;;
945
946  -host | --host | --hos | --ho)
947    ac_prev=host_alias ;;
948  -host=* | --host=* | --hos=* | --ho=*)
949    host_alias=$ac_optarg ;;
950
951  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
952    ac_prev=htmldir ;;
953  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
954  | --ht=*)
955    htmldir=$ac_optarg ;;
956
957  -includedir | --includedir | --includedi | --included | --include \
958  | --includ | --inclu | --incl | --inc)
959    ac_prev=includedir ;;
960  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
961  | --includ=* | --inclu=* | --incl=* | --inc=*)
962    includedir=$ac_optarg ;;
963
964  -infodir | --infodir | --infodi | --infod | --info | --inf)
965    ac_prev=infodir ;;
966  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
967    infodir=$ac_optarg ;;
968
969  -libdir | --libdir | --libdi | --libd)
970    ac_prev=libdir ;;
971  -libdir=* | --libdir=* | --libdi=* | --libd=*)
972    libdir=$ac_optarg ;;
973
974  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
975  | --libexe | --libex | --libe)
976    ac_prev=libexecdir ;;
977  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
978  | --libexe=* | --libex=* | --libe=*)
979    libexecdir=$ac_optarg ;;
980
981  -localedir | --localedir | --localedi | --localed | --locale)
982    ac_prev=localedir ;;
983  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
984    localedir=$ac_optarg ;;
985
986  -localstatedir | --localstatedir | --localstatedi | --localstated \
987  | --localstate | --localstat | --localsta | --localst | --locals)
988    ac_prev=localstatedir ;;
989  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
990  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
991    localstatedir=$ac_optarg ;;
992
993  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
994    ac_prev=mandir ;;
995  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
996    mandir=$ac_optarg ;;
997
998  -nfp | --nfp | --nf)
999    # Obsolete; use --without-fp.
1000    with_fp=no ;;
1001
1002  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1003  | --no-cr | --no-c | -n)
1004    no_create=yes ;;
1005
1006  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1007  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1008    no_recursion=yes ;;
1009
1010  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1011  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1012  | --oldin | --oldi | --old | --ol | --o)
1013    ac_prev=oldincludedir ;;
1014  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1015  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1016  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1017    oldincludedir=$ac_optarg ;;
1018
1019  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1020    ac_prev=prefix ;;
1021  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1022    prefix=$ac_optarg ;;
1023
1024  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1025  | --program-pre | --program-pr | --program-p)
1026    ac_prev=program_prefix ;;
1027  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1028  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1029    program_prefix=$ac_optarg ;;
1030
1031  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1032  | --program-suf | --program-su | --program-s)
1033    ac_prev=program_suffix ;;
1034  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1035  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1036    program_suffix=$ac_optarg ;;
1037
1038  -program-transform-name | --program-transform-name \
1039  | --program-transform-nam | --program-transform-na \
1040  | --program-transform-n | --program-transform- \
1041  | --program-transform | --program-transfor \
1042  | --program-transfo | --program-transf \
1043  | --program-trans | --program-tran \
1044  | --progr-tra | --program-tr | --program-t)
1045    ac_prev=program_transform_name ;;
1046  -program-transform-name=* | --program-transform-name=* \
1047  | --program-transform-nam=* | --program-transform-na=* \
1048  | --program-transform-n=* | --program-transform-=* \
1049  | --program-transform=* | --program-transfor=* \
1050  | --program-transfo=* | --program-transf=* \
1051  | --program-trans=* | --program-tran=* \
1052  | --progr-tra=* | --program-tr=* | --program-t=*)
1053    program_transform_name=$ac_optarg ;;
1054
1055  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1056    ac_prev=pdfdir ;;
1057  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1058    pdfdir=$ac_optarg ;;
1059
1060  -psdir | --psdir | --psdi | --psd | --ps)
1061    ac_prev=psdir ;;
1062  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1063    psdir=$ac_optarg ;;
1064
1065  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1066  | -silent | --silent | --silen | --sile | --sil)
1067    silent=yes ;;
1068
1069  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1070    ac_prev=sbindir ;;
1071  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1072  | --sbi=* | --sb=*)
1073    sbindir=$ac_optarg ;;
1074
1075  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1076  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1077  | --sharedst | --shareds | --shared | --share | --shar \
1078  | --sha | --sh)
1079    ac_prev=sharedstatedir ;;
1080  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1081  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1082  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1083  | --sha=* | --sh=*)
1084    sharedstatedir=$ac_optarg ;;
1085
1086  -site | --site | --sit)
1087    ac_prev=site ;;
1088  -site=* | --site=* | --sit=*)
1089    site=$ac_optarg ;;
1090
1091  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1092    ac_prev=srcdir ;;
1093  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1094    srcdir=$ac_optarg ;;
1095
1096  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1097  | --syscon | --sysco | --sysc | --sys | --sy)
1098    ac_prev=sysconfdir ;;
1099  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1100  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1101    sysconfdir=$ac_optarg ;;
1102
1103  -target | --target | --targe | --targ | --tar | --ta | --t)
1104    ac_prev=target_alias ;;
1105  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1106    target_alias=$ac_optarg ;;
1107
1108  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1109    verbose=yes ;;
1110
1111  -version | --version | --versio | --versi | --vers | -V)
1112    ac_init_version=: ;;
1113
1114  -with-* | --with-*)
1115    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1116    # Reject names that are not valid shell variable names.
1117    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118      as_fn_error $? "invalid package name: $ac_useropt"
1119    ac_useropt_orig=$ac_useropt
1120    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121    case $ac_user_opts in
1122      *"
1123"with_$ac_useropt"
1124"*) ;;
1125      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1126	 ac_unrecognized_sep=', ';;
1127    esac
1128    eval with_$ac_useropt=\$ac_optarg ;;
1129
1130  -without-* | --without-*)
1131    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1132    # Reject names that are not valid shell variable names.
1133    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134      as_fn_error $? "invalid package name: $ac_useropt"
1135    ac_useropt_orig=$ac_useropt
1136    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137    case $ac_user_opts in
1138      *"
1139"with_$ac_useropt"
1140"*) ;;
1141      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1142	 ac_unrecognized_sep=', ';;
1143    esac
1144    eval with_$ac_useropt=no ;;
1145
1146  --x)
1147    # Obsolete; use --with-x.
1148    with_x=yes ;;
1149
1150  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1151  | --x-incl | --x-inc | --x-in | --x-i)
1152    ac_prev=x_includes ;;
1153  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1154  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1155    x_includes=$ac_optarg ;;
1156
1157  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1158  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1159    ac_prev=x_libraries ;;
1160  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1161  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1162    x_libraries=$ac_optarg ;;
1163
1164  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1165Try \`$0 --help' for more information"
1166    ;;
1167
1168  *=*)
1169    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1170    # Reject names that are not valid shell variable names.
1171    case $ac_envvar in #(
1172      '' | [0-9]* | *[!_$as_cr_alnum]* )
1173      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1174    esac
1175    eval $ac_envvar=\$ac_optarg
1176    export $ac_envvar ;;
1177
1178  *)
1179    # FIXME: should be removed in autoconf 3.0.
1180    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1181    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1182      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1183    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1184    ;;
1185
1186  esac
1187done
1188
1189if test -n "$ac_prev"; then
1190  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1191  as_fn_error $? "missing argument to $ac_option"
1192fi
1193
1194if test -n "$ac_unrecognized_opts"; then
1195  case $enable_option_checking in
1196    no) ;;
1197    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1198    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1199  esac
1200fi
1201
1202# Check all directory arguments for consistency.
1203for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204		datadir sysconfdir sharedstatedir localstatedir includedir \
1205		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206		libdir localedir mandir
1207do
1208  eval ac_val=\$$ac_var
1209  # Remove trailing slashes.
1210  case $ac_val in
1211    */ )
1212      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1213      eval $ac_var=\$ac_val;;
1214  esac
1215  # Be sure to have absolute directory names.
1216  case $ac_val in
1217    [\\/$]* | ?:[\\/]* )  continue;;
1218    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1219  esac
1220  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1221done
1222
1223# There might be people who depend on the old broken behavior: `$host'
1224# used to hold the argument of --host etc.
1225# FIXME: To remove some day.
1226build=$build_alias
1227host=$host_alias
1228target=$target_alias
1229
1230# FIXME: To remove some day.
1231if test "x$host_alias" != x; then
1232  if test "x$build_alias" = x; then
1233    cross_compiling=maybe
1234  elif test "x$build_alias" != "x$host_alias"; then
1235    cross_compiling=yes
1236  fi
1237fi
1238
1239ac_tool_prefix=
1240test -n "$host_alias" && ac_tool_prefix=$host_alias-
1241
1242test "$silent" = yes && exec 6>/dev/null
1243
1244
1245ac_pwd=`pwd` && test -n "$ac_pwd" &&
1246ac_ls_di=`ls -di .` &&
1247ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1248  as_fn_error $? "working directory cannot be determined"
1249test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1250  as_fn_error $? "pwd does not report name of working directory"
1251
1252
1253# Find the source files, if location was not specified.
1254if test -z "$srcdir"; then
1255  ac_srcdir_defaulted=yes
1256  # Try the directory containing this script, then the parent directory.
1257  ac_confdir=`$as_dirname -- "$as_myself" ||
1258$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259	 X"$as_myself" : 'X\(//\)[^/]' \| \
1260	 X"$as_myself" : 'X\(//\)$' \| \
1261	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1262$as_echo X"$as_myself" |
1263    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1264	    s//\1/
1265	    q
1266	  }
1267	  /^X\(\/\/\)[^/].*/{
1268	    s//\1/
1269	    q
1270	  }
1271	  /^X\(\/\/\)$/{
1272	    s//\1/
1273	    q
1274	  }
1275	  /^X\(\/\).*/{
1276	    s//\1/
1277	    q
1278	  }
1279	  s/.*/./; q'`
1280  srcdir=$ac_confdir
1281  if test ! -r "$srcdir/$ac_unique_file"; then
1282    srcdir=..
1283  fi
1284else
1285  ac_srcdir_defaulted=no
1286fi
1287if test ! -r "$srcdir/$ac_unique_file"; then
1288  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1289  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1290fi
1291ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1292ac_abs_confdir=`(
1293	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1294	pwd)`
1295# When building in place, set srcdir=.
1296if test "$ac_abs_confdir" = "$ac_pwd"; then
1297  srcdir=.
1298fi
1299# Remove unnecessary trailing slashes from srcdir.
1300# Double slashes in file names in object file debugging info
1301# mess up M-x gdb in Emacs.
1302case $srcdir in
1303*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1304esac
1305for ac_var in $ac_precious_vars; do
1306  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1307  eval ac_env_${ac_var}_value=\$${ac_var}
1308  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1309  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1310done
1311
1312#
1313# Report the --help message.
1314#
1315if test "$ac_init_help" = "long"; then
1316  # Omit some internal or obsolete options to make the list less imposing.
1317  # This message is too long to be a string in the A/UX 3.1 sh.
1318  cat <<_ACEOF
1319\`configure' configures xhost 1.0.8 to adapt to many kinds of systems.
1320
1321Usage: $0 [OPTION]... [VAR=VALUE]...
1322
1323To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324VAR=VALUE.  See below for descriptions of some of the useful variables.
1325
1326Defaults for the options are specified in brackets.
1327
1328Configuration:
1329  -h, --help              display this help and exit
1330      --help=short        display options specific to this package
1331      --help=recursive    display the short help of all the included packages
1332  -V, --version           display version information and exit
1333  -q, --quiet, --silent   do not print \`checking ...' messages
1334      --cache-file=FILE   cache test results in FILE [disabled]
1335  -C, --config-cache      alias for \`--cache-file=config.cache'
1336  -n, --no-create         do not create output files
1337      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1338
1339Installation directories:
1340  --prefix=PREFIX         install architecture-independent files in PREFIX
1341                          [$ac_default_prefix]
1342  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1343                          [PREFIX]
1344
1345By default, \`make install' will install all the files in
1346\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1347an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348for instance \`--prefix=\$HOME'.
1349
1350For better control, use the options below.
1351
1352Fine tuning of the installation directories:
1353  --bindir=DIR            user executables [EPREFIX/bin]
1354  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1355  --libexecdir=DIR        program executables [EPREFIX/libexec]
1356  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1357  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1358  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1359  --libdir=DIR            object code libraries [EPREFIX/lib]
1360  --includedir=DIR        C header files [PREFIX/include]
1361  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1362  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1363  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1364  --infodir=DIR           info documentation [DATAROOTDIR/info]
1365  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1366  --mandir=DIR            man documentation [DATAROOTDIR/man]
1367  --docdir=DIR            documentation root [DATAROOTDIR/doc/xhost]
1368  --htmldir=DIR           html documentation [DOCDIR]
1369  --dvidir=DIR            dvi documentation [DOCDIR]
1370  --pdfdir=DIR            pdf documentation [DOCDIR]
1371  --psdir=DIR             ps documentation [DOCDIR]
1372_ACEOF
1373
1374  cat <<\_ACEOF
1375
1376Program names:
1377  --program-prefix=PREFIX            prepend PREFIX to installed program names
1378  --program-suffix=SUFFIX            append SUFFIX to installed program names
1379  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1380
1381System types:
1382  --build=BUILD     configure for building on BUILD [guessed]
1383  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1384_ACEOF
1385fi
1386
1387if test -n "$ac_init_help"; then
1388  case $ac_init_help in
1389     short | recursive ) echo "Configuration of xhost 1.0.8:";;
1390   esac
1391  cat <<\_ACEOF
1392
1393Optional Features:
1394  --disable-option-checking  ignore unrecognized --enable/--with options
1395  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1396  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1397  --enable-silent-rules   less verbose build output (undo: "make V=1")
1398  --disable-silent-rules  verbose build output (undo: "make V=0")
1399  --enable-dependency-tracking
1400                          do not reject slow dependency extractors
1401  --disable-dependency-tracking
1402                          speeds up one-time build
1403  --disable-selective-werror
1404                          Turn off selective compiler errors. (default:
1405                          enabled)
1406  --enable-strict-compilation
1407                          Enable all warnings from compiler and make them
1408                          errors (default: disabled)
1409  --enable-unix-transport Enable UNIX domain socket transport
1410  --enable-tcp-transport  Enable TCP socket transport
1411  --enable-ipv6           Enable IPv6 support
1412  --enable-local-transport
1413                          Enable os-specific local transport
1414  --enable-secure-rpc     Enable Secure RPC
1415
1416Some influential environment variables:
1417  CC          C compiler command
1418  CFLAGS      C compiler flags
1419  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1420              nonstandard directory <lib dir>
1421  LIBS        libraries to pass to the linker, e.g. -l<library>
1422  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1423              you have headers in a nonstandard directory <include dir>
1424  CPP         C preprocessor
1425  PKG_CONFIG  path to pkg-config utility
1426  PKG_CONFIG_PATH
1427              directories to add to pkg-config's search path
1428  PKG_CONFIG_LIBDIR
1429              path overriding pkg-config's built-in search path
1430  XHOST_CFLAGS
1431              C compiler flags for XHOST, overriding pkg-config
1432  XHOST_LIBS  linker flags for XHOST, overriding pkg-config
1433  XAU_CFLAGS  C compiler flags for XAU, overriding pkg-config
1434  XAU_LIBS    linker flags for XAU, overriding pkg-config
1435
1436Use these variables to override the choices made by `configure' or to help
1437it to find libraries and programs with nonstandard names/locations.
1438
1439Report bugs to <https://gitlab.freedesktop.org/xorg/app/xhost/issues>.
1440_ACEOF
1441ac_status=$?
1442fi
1443
1444if test "$ac_init_help" = "recursive"; then
1445  # If there are subdirs, report their specific --help.
1446  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1447    test -d "$ac_dir" ||
1448      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1449      continue
1450    ac_builddir=.
1451
1452case "$ac_dir" in
1453.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1454*)
1455  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1456  # A ".." for each directory in $ac_dir_suffix.
1457  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1458  case $ac_top_builddir_sub in
1459  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1460  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1461  esac ;;
1462esac
1463ac_abs_top_builddir=$ac_pwd
1464ac_abs_builddir=$ac_pwd$ac_dir_suffix
1465# for backward compatibility:
1466ac_top_builddir=$ac_top_build_prefix
1467
1468case $srcdir in
1469  .)  # We are building in place.
1470    ac_srcdir=.
1471    ac_top_srcdir=$ac_top_builddir_sub
1472    ac_abs_top_srcdir=$ac_pwd ;;
1473  [\\/]* | ?:[\\/]* )  # Absolute name.
1474    ac_srcdir=$srcdir$ac_dir_suffix;
1475    ac_top_srcdir=$srcdir
1476    ac_abs_top_srcdir=$srcdir ;;
1477  *) # Relative name.
1478    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1479    ac_top_srcdir=$ac_top_build_prefix$srcdir
1480    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1481esac
1482ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1483
1484    cd "$ac_dir" || { ac_status=$?; continue; }
1485    # Check for guested configure.
1486    if test -f "$ac_srcdir/configure.gnu"; then
1487      echo &&
1488      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1489    elif test -f "$ac_srcdir/configure"; then
1490      echo &&
1491      $SHELL "$ac_srcdir/configure" --help=recursive
1492    else
1493      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1494    fi || ac_status=$?
1495    cd "$ac_pwd" || { ac_status=$?; break; }
1496  done
1497fi
1498
1499test -n "$ac_init_help" && exit $ac_status
1500if $ac_init_version; then
1501  cat <<\_ACEOF
1502xhost configure 1.0.8
1503generated by GNU Autoconf 2.69
1504
1505Copyright (C) 2012 Free Software Foundation, Inc.
1506This configure script is free software; the Free Software Foundation
1507gives unlimited permission to copy, distribute and modify it.
1508_ACEOF
1509  exit
1510fi
1511
1512## ------------------------ ##
1513## Autoconf initialization. ##
1514## ------------------------ ##
1515
1516# ac_fn_c_try_compile LINENO
1517# --------------------------
1518# Try to compile conftest.$ac_ext, and return whether this succeeded.
1519ac_fn_c_try_compile ()
1520{
1521  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1522  rm -f conftest.$ac_objext
1523  if { { ac_try="$ac_compile"
1524case "(($ac_try" in
1525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1526  *) ac_try_echo=$ac_try;;
1527esac
1528eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1529$as_echo "$ac_try_echo"; } >&5
1530  (eval "$ac_compile") 2>conftest.err
1531  ac_status=$?
1532  if test -s conftest.err; then
1533    grep -v '^ *+' conftest.err >conftest.er1
1534    cat conftest.er1 >&5
1535    mv -f conftest.er1 conftest.err
1536  fi
1537  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1538  test $ac_status = 0; } && {
1539	 test -z "$ac_c_werror_flag" ||
1540	 test ! -s conftest.err
1541       } && test -s conftest.$ac_objext; then :
1542  ac_retval=0
1543else
1544  $as_echo "$as_me: failed program was:" >&5
1545sed 's/^/| /' conftest.$ac_ext >&5
1546
1547	ac_retval=1
1548fi
1549  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1550  as_fn_set_status $ac_retval
1551
1552} # ac_fn_c_try_compile
1553
1554# ac_fn_c_try_cpp LINENO
1555# ----------------------
1556# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1557ac_fn_c_try_cpp ()
1558{
1559  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560  if { { ac_try="$ac_cpp conftest.$ac_ext"
1561case "(($ac_try" in
1562  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1563  *) ac_try_echo=$ac_try;;
1564esac
1565eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1566$as_echo "$ac_try_echo"; } >&5
1567  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1568  ac_status=$?
1569  if test -s conftest.err; then
1570    grep -v '^ *+' conftest.err >conftest.er1
1571    cat conftest.er1 >&5
1572    mv -f conftest.er1 conftest.err
1573  fi
1574  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1575  test $ac_status = 0; } > conftest.i && {
1576	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1577	 test ! -s conftest.err
1578       }; then :
1579  ac_retval=0
1580else
1581  $as_echo "$as_me: failed program was:" >&5
1582sed 's/^/| /' conftest.$ac_ext >&5
1583
1584    ac_retval=1
1585fi
1586  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1587  as_fn_set_status $ac_retval
1588
1589} # ac_fn_c_try_cpp
1590
1591# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1592# -------------------------------------------------------
1593# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1594# the include files in INCLUDES and setting the cache variable VAR
1595# accordingly.
1596ac_fn_c_check_header_mongrel ()
1597{
1598  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599  if eval \${$3+:} false; then :
1600  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1601$as_echo_n "checking for $2... " >&6; }
1602if eval \${$3+:} false; then :
1603  $as_echo_n "(cached) " >&6
1604fi
1605eval ac_res=\$$3
1606	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1607$as_echo "$ac_res" >&6; }
1608else
1609  # Is the header compilable?
1610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1611$as_echo_n "checking $2 usability... " >&6; }
1612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1613/* end confdefs.h.  */
1614$4
1615#include <$2>
1616_ACEOF
1617if ac_fn_c_try_compile "$LINENO"; then :
1618  ac_header_compiler=yes
1619else
1620  ac_header_compiler=no
1621fi
1622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1624$as_echo "$ac_header_compiler" >&6; }
1625
1626# Is the header present?
1627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1628$as_echo_n "checking $2 presence... " >&6; }
1629cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1630/* end confdefs.h.  */
1631#include <$2>
1632_ACEOF
1633if ac_fn_c_try_cpp "$LINENO"; then :
1634  ac_header_preproc=yes
1635else
1636  ac_header_preproc=no
1637fi
1638rm -f conftest.err conftest.i conftest.$ac_ext
1639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1640$as_echo "$ac_header_preproc" >&6; }
1641
1642# So?  What about this header?
1643case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1644  yes:no: )
1645    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1646$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1647    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1648$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1649    ;;
1650  no:yes:* )
1651    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1652$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1653    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1654$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1655    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1656$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1657    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1658$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1659    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1660$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1661( $as_echo "## ------------------------------------------------------------------- ##
1662## Report this to https://gitlab.freedesktop.org/xorg/app/xhost/issues ##
1663## ------------------------------------------------------------------- ##"
1664     ) | sed "s/^/$as_me: WARNING:     /" >&2
1665    ;;
1666esac
1667  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1668$as_echo_n "checking for $2... " >&6; }
1669if eval \${$3+:} false; then :
1670  $as_echo_n "(cached) " >&6
1671else
1672  eval "$3=\$ac_header_compiler"
1673fi
1674eval ac_res=\$$3
1675	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1676$as_echo "$ac_res" >&6; }
1677fi
1678  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679
1680} # ac_fn_c_check_header_mongrel
1681
1682# ac_fn_c_try_run LINENO
1683# ----------------------
1684# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1685# that executables *can* be run.
1686ac_fn_c_try_run ()
1687{
1688  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689  if { { ac_try="$ac_link"
1690case "(($ac_try" in
1691  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692  *) ac_try_echo=$ac_try;;
1693esac
1694eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695$as_echo "$ac_try_echo"; } >&5
1696  (eval "$ac_link") 2>&5
1697  ac_status=$?
1698  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1700  { { case "(($ac_try" in
1701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702  *) ac_try_echo=$ac_try;;
1703esac
1704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705$as_echo "$ac_try_echo"; } >&5
1706  (eval "$ac_try") 2>&5
1707  ac_status=$?
1708  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709  test $ac_status = 0; }; }; then :
1710  ac_retval=0
1711else
1712  $as_echo "$as_me: program exited with status $ac_status" >&5
1713       $as_echo "$as_me: failed program was:" >&5
1714sed 's/^/| /' conftest.$ac_ext >&5
1715
1716       ac_retval=$ac_status
1717fi
1718  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1719  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720  as_fn_set_status $ac_retval
1721
1722} # ac_fn_c_try_run
1723
1724# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1725# -------------------------------------------------------
1726# Tests whether HEADER exists and can be compiled using the include files in
1727# INCLUDES, setting the cache variable VAR accordingly.
1728ac_fn_c_check_header_compile ()
1729{
1730  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1732$as_echo_n "checking for $2... " >&6; }
1733if eval \${$3+:} false; then :
1734  $as_echo_n "(cached) " >&6
1735else
1736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1737/* end confdefs.h.  */
1738$4
1739#include <$2>
1740_ACEOF
1741if ac_fn_c_try_compile "$LINENO"; then :
1742  eval "$3=yes"
1743else
1744  eval "$3=no"
1745fi
1746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1747fi
1748eval ac_res=\$$3
1749	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1750$as_echo "$ac_res" >&6; }
1751  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752
1753} # ac_fn_c_check_header_compile
1754
1755# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1756# ---------------------------------------------
1757# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1758# accordingly.
1759ac_fn_c_check_decl ()
1760{
1761  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762  as_decl_name=`echo $2|sed 's/ *(.*//'`
1763  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1764  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1765$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1766if eval \${$3+:} false; then :
1767  $as_echo_n "(cached) " >&6
1768else
1769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770/* end confdefs.h.  */
1771$4
1772int
1773main ()
1774{
1775#ifndef $as_decl_name
1776#ifdef __cplusplus
1777  (void) $as_decl_use;
1778#else
1779  (void) $as_decl_name;
1780#endif
1781#endif
1782
1783  ;
1784  return 0;
1785}
1786_ACEOF
1787if ac_fn_c_try_compile "$LINENO"; then :
1788  eval "$3=yes"
1789else
1790  eval "$3=no"
1791fi
1792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1793fi
1794eval ac_res=\$$3
1795	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1796$as_echo "$ac_res" >&6; }
1797  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1798
1799} # ac_fn_c_check_decl
1800
1801# ac_fn_c_try_link LINENO
1802# -----------------------
1803# Try to link conftest.$ac_ext, and return whether this succeeded.
1804ac_fn_c_try_link ()
1805{
1806  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807  rm -f conftest.$ac_objext conftest$ac_exeext
1808  if { { ac_try="$ac_link"
1809case "(($ac_try" in
1810  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1811  *) ac_try_echo=$ac_try;;
1812esac
1813eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1814$as_echo "$ac_try_echo"; } >&5
1815  (eval "$ac_link") 2>conftest.err
1816  ac_status=$?
1817  if test -s conftest.err; then
1818    grep -v '^ *+' conftest.err >conftest.er1
1819    cat conftest.er1 >&5
1820    mv -f conftest.er1 conftest.err
1821  fi
1822  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1823  test $ac_status = 0; } && {
1824	 test -z "$ac_c_werror_flag" ||
1825	 test ! -s conftest.err
1826       } && test -s conftest$ac_exeext && {
1827	 test "$cross_compiling" = yes ||
1828	 test -x conftest$ac_exeext
1829       }; then :
1830  ac_retval=0
1831else
1832  $as_echo "$as_me: failed program was:" >&5
1833sed 's/^/| /' conftest.$ac_ext >&5
1834
1835	ac_retval=1
1836fi
1837  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1838  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1839  # interfere with the next link command; also delete a directory that is
1840  # left behind by Apple's compiler.  We do this before executing the actions.
1841  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1842  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843  as_fn_set_status $ac_retval
1844
1845} # ac_fn_c_try_link
1846
1847# ac_fn_c_check_func LINENO FUNC VAR
1848# ----------------------------------
1849# Tests whether FUNC exists, setting the cache variable VAR accordingly
1850ac_fn_c_check_func ()
1851{
1852  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1854$as_echo_n "checking for $2... " >&6; }
1855if eval \${$3+:} false; then :
1856  $as_echo_n "(cached) " >&6
1857else
1858  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1859/* end confdefs.h.  */
1860/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1861   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1862#define $2 innocuous_$2
1863
1864/* System header to define __stub macros and hopefully few prototypes,
1865    which can conflict with char $2 (); below.
1866    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1867    <limits.h> exists even on freestanding compilers.  */
1868
1869#ifdef __STDC__
1870# include <limits.h>
1871#else
1872# include <assert.h>
1873#endif
1874
1875#undef $2
1876
1877/* Override any GCC internal prototype to avoid an error.
1878   Use char because int might match the return type of a GCC
1879   builtin and then its argument prototype would still apply.  */
1880#ifdef __cplusplus
1881extern "C"
1882#endif
1883char $2 ();
1884/* The GNU C library defines this for functions which it implements
1885    to always fail with ENOSYS.  Some functions are actually named
1886    something starting with __ and the normal name is an alias.  */
1887#if defined __stub_$2 || defined __stub___$2
1888choke me
1889#endif
1890
1891int
1892main ()
1893{
1894return $2 ();
1895  ;
1896  return 0;
1897}
1898_ACEOF
1899if ac_fn_c_try_link "$LINENO"; then :
1900  eval "$3=yes"
1901else
1902  eval "$3=no"
1903fi
1904rm -f core conftest.err conftest.$ac_objext \
1905    conftest$ac_exeext conftest.$ac_ext
1906fi
1907eval ac_res=\$$3
1908	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1909$as_echo "$ac_res" >&6; }
1910  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1911
1912} # ac_fn_c_check_func
1913
1914# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1915# ----------------------------------------------------
1916# Tries to find if the field MEMBER exists in type AGGR, after including
1917# INCLUDES, setting cache variable VAR accordingly.
1918ac_fn_c_check_member ()
1919{
1920  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1921  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1922$as_echo_n "checking for $2.$3... " >&6; }
1923if eval \${$4+:} false; then :
1924  $as_echo_n "(cached) " >&6
1925else
1926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927/* end confdefs.h.  */
1928$5
1929int
1930main ()
1931{
1932static $2 ac_aggr;
1933if (ac_aggr.$3)
1934return 0;
1935  ;
1936  return 0;
1937}
1938_ACEOF
1939if ac_fn_c_try_compile "$LINENO"; then :
1940  eval "$4=yes"
1941else
1942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943/* end confdefs.h.  */
1944$5
1945int
1946main ()
1947{
1948static $2 ac_aggr;
1949if (sizeof ac_aggr.$3)
1950return 0;
1951  ;
1952  return 0;
1953}
1954_ACEOF
1955if ac_fn_c_try_compile "$LINENO"; then :
1956  eval "$4=yes"
1957else
1958  eval "$4=no"
1959fi
1960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1961fi
1962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1963fi
1964eval ac_res=\$$4
1965	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1966$as_echo "$ac_res" >&6; }
1967  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968
1969} # ac_fn_c_check_member
1970
1971# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1972# -------------------------------------------
1973# Tests whether TYPE exists after having included INCLUDES, setting cache
1974# variable VAR accordingly.
1975ac_fn_c_check_type ()
1976{
1977  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1978  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1979$as_echo_n "checking for $2... " >&6; }
1980if eval \${$3+:} false; then :
1981  $as_echo_n "(cached) " >&6
1982else
1983  eval "$3=no"
1984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985/* end confdefs.h.  */
1986$4
1987int
1988main ()
1989{
1990if (sizeof ($2))
1991	 return 0;
1992  ;
1993  return 0;
1994}
1995_ACEOF
1996if ac_fn_c_try_compile "$LINENO"; then :
1997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998/* end confdefs.h.  */
1999$4
2000int
2001main ()
2002{
2003if (sizeof (($2)))
2004	    return 0;
2005  ;
2006  return 0;
2007}
2008_ACEOF
2009if ac_fn_c_try_compile "$LINENO"; then :
2010
2011else
2012  eval "$3=yes"
2013fi
2014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2015fi
2016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2017fi
2018eval ac_res=\$$3
2019	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2020$as_echo "$ac_res" >&6; }
2021  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2022
2023} # ac_fn_c_check_type
2024cat >config.log <<_ACEOF
2025This file contains any messages produced by compilers while
2026running configure, to aid debugging if configure makes a mistake.
2027
2028It was created by xhost $as_me 1.0.8, which was
2029generated by GNU Autoconf 2.69.  Invocation command line was
2030
2031  $ $0 $@
2032
2033_ACEOF
2034exec 5>>config.log
2035{
2036cat <<_ASUNAME
2037## --------- ##
2038## Platform. ##
2039## --------- ##
2040
2041hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2042uname -m = `(uname -m) 2>/dev/null || echo unknown`
2043uname -r = `(uname -r) 2>/dev/null || echo unknown`
2044uname -s = `(uname -s) 2>/dev/null || echo unknown`
2045uname -v = `(uname -v) 2>/dev/null || echo unknown`
2046
2047/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2048/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2049
2050/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2051/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2052/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2053/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2054/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2055/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2056/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2057
2058_ASUNAME
2059
2060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061for as_dir in $PATH
2062do
2063  IFS=$as_save_IFS
2064  test -z "$as_dir" && as_dir=.
2065    $as_echo "PATH: $as_dir"
2066  done
2067IFS=$as_save_IFS
2068
2069} >&5
2070
2071cat >&5 <<_ACEOF
2072
2073
2074## ----------- ##
2075## Core tests. ##
2076## ----------- ##
2077
2078_ACEOF
2079
2080
2081# Keep a trace of the command line.
2082# Strip out --no-create and --no-recursion so they do not pile up.
2083# Strip out --silent because we don't want to record it for future runs.
2084# Also quote any args containing shell meta-characters.
2085# Make two passes to allow for proper duplicate-argument suppression.
2086ac_configure_args=
2087ac_configure_args0=
2088ac_configure_args1=
2089ac_must_keep_next=false
2090for ac_pass in 1 2
2091do
2092  for ac_arg
2093  do
2094    case $ac_arg in
2095    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2096    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2097    | -silent | --silent | --silen | --sile | --sil)
2098      continue ;;
2099    *\'*)
2100      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2101    esac
2102    case $ac_pass in
2103    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2104    2)
2105      as_fn_append ac_configure_args1 " '$ac_arg'"
2106      if test $ac_must_keep_next = true; then
2107	ac_must_keep_next=false # Got value, back to normal.
2108      else
2109	case $ac_arg in
2110	  *=* | --config-cache | -C | -disable-* | --disable-* \
2111	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2112	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2113	  | -with-* | --with-* | -without-* | --without-* | --x)
2114	    case "$ac_configure_args0 " in
2115	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2116	    esac
2117	    ;;
2118	  -* ) ac_must_keep_next=true ;;
2119	esac
2120      fi
2121      as_fn_append ac_configure_args " '$ac_arg'"
2122      ;;
2123    esac
2124  done
2125done
2126{ ac_configure_args0=; unset ac_configure_args0;}
2127{ ac_configure_args1=; unset ac_configure_args1;}
2128
2129# When interrupted or exit'd, cleanup temporary files, and complete
2130# config.log.  We remove comments because anyway the quotes in there
2131# would cause problems or look ugly.
2132# WARNING: Use '\'' to represent an apostrophe within the trap.
2133# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2134trap 'exit_status=$?
2135  # Save into config.log some information that might help in debugging.
2136  {
2137    echo
2138
2139    $as_echo "## ---------------- ##
2140## Cache variables. ##
2141## ---------------- ##"
2142    echo
2143    # The following way of writing the cache mishandles newlines in values,
2144(
2145  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2146    eval ac_val=\$$ac_var
2147    case $ac_val in #(
2148    *${as_nl}*)
2149      case $ac_var in #(
2150      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2151$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2152      esac
2153      case $ac_var in #(
2154      _ | IFS | as_nl) ;; #(
2155      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2156      *) { eval $ac_var=; unset $ac_var;} ;;
2157      esac ;;
2158    esac
2159  done
2160  (set) 2>&1 |
2161    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2162    *${as_nl}ac_space=\ *)
2163      sed -n \
2164	"s/'\''/'\''\\\\'\'''\''/g;
2165	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2166      ;; #(
2167    *)
2168      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2169      ;;
2170    esac |
2171    sort
2172)
2173    echo
2174
2175    $as_echo "## ----------------- ##
2176## Output variables. ##
2177## ----------------- ##"
2178    echo
2179    for ac_var in $ac_subst_vars
2180    do
2181      eval ac_val=\$$ac_var
2182      case $ac_val in
2183      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2184      esac
2185      $as_echo "$ac_var='\''$ac_val'\''"
2186    done | sort
2187    echo
2188
2189    if test -n "$ac_subst_files"; then
2190      $as_echo "## ------------------- ##
2191## File substitutions. ##
2192## ------------------- ##"
2193      echo
2194      for ac_var in $ac_subst_files
2195      do
2196	eval ac_val=\$$ac_var
2197	case $ac_val in
2198	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2199	esac
2200	$as_echo "$ac_var='\''$ac_val'\''"
2201      done | sort
2202      echo
2203    fi
2204
2205    if test -s confdefs.h; then
2206      $as_echo "## ----------- ##
2207## confdefs.h. ##
2208## ----------- ##"
2209      echo
2210      cat confdefs.h
2211      echo
2212    fi
2213    test "$ac_signal" != 0 &&
2214      $as_echo "$as_me: caught signal $ac_signal"
2215    $as_echo "$as_me: exit $exit_status"
2216  } >&5
2217  rm -f core *.core core.conftest.* &&
2218    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2219    exit $exit_status
2220' 0
2221for ac_signal in 1 2 13 15; do
2222  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2223done
2224ac_signal=0
2225
2226# confdefs.h avoids OS command line length limits that DEFS can exceed.
2227rm -f -r conftest* confdefs.h
2228
2229$as_echo "/* confdefs.h */" > confdefs.h
2230
2231# Predefined preprocessor variables.
2232
2233cat >>confdefs.h <<_ACEOF
2234#define PACKAGE_NAME "$PACKAGE_NAME"
2235_ACEOF
2236
2237cat >>confdefs.h <<_ACEOF
2238#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2239_ACEOF
2240
2241cat >>confdefs.h <<_ACEOF
2242#define PACKAGE_VERSION "$PACKAGE_VERSION"
2243_ACEOF
2244
2245cat >>confdefs.h <<_ACEOF
2246#define PACKAGE_STRING "$PACKAGE_STRING"
2247_ACEOF
2248
2249cat >>confdefs.h <<_ACEOF
2250#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2251_ACEOF
2252
2253cat >>confdefs.h <<_ACEOF
2254#define PACKAGE_URL "$PACKAGE_URL"
2255_ACEOF
2256
2257
2258# Let the site file select an alternate cache file if it wants to.
2259# Prefer an explicitly selected file to automatically selected ones.
2260ac_site_file1=NONE
2261ac_site_file2=NONE
2262if test -n "$CONFIG_SITE"; then
2263  # We do not want a PATH search for config.site.
2264  case $CONFIG_SITE in #((
2265    -*)  ac_site_file1=./$CONFIG_SITE;;
2266    */*) ac_site_file1=$CONFIG_SITE;;
2267    *)   ac_site_file1=./$CONFIG_SITE;;
2268  esac
2269elif test "x$prefix" != xNONE; then
2270  ac_site_file1=$prefix/share/config.site
2271  ac_site_file2=$prefix/etc/config.site
2272else
2273  ac_site_file1=$ac_default_prefix/share/config.site
2274  ac_site_file2=$ac_default_prefix/etc/config.site
2275fi
2276for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2277do
2278  test "x$ac_site_file" = xNONE && continue
2279  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2280    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2281$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2282    sed 's/^/| /' "$ac_site_file" >&5
2283    . "$ac_site_file" \
2284      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2285$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2286as_fn_error $? "failed to load site script $ac_site_file
2287See \`config.log' for more details" "$LINENO" 5; }
2288  fi
2289done
2290
2291if test -r "$cache_file"; then
2292  # Some versions of bash will fail to source /dev/null (special files
2293  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2294  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2295    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2296$as_echo "$as_me: loading cache $cache_file" >&6;}
2297    case $cache_file in
2298      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2299      *)                      . "./$cache_file";;
2300    esac
2301  fi
2302else
2303  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2304$as_echo "$as_me: creating cache $cache_file" >&6;}
2305  >$cache_file
2306fi
2307
2308# Check that the precious variables saved in the cache have kept the same
2309# value.
2310ac_cache_corrupted=false
2311for ac_var in $ac_precious_vars; do
2312  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2313  eval ac_new_set=\$ac_env_${ac_var}_set
2314  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2315  eval ac_new_val=\$ac_env_${ac_var}_value
2316  case $ac_old_set,$ac_new_set in
2317    set,)
2318      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2319$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2320      ac_cache_corrupted=: ;;
2321    ,set)
2322      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2323$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2324      ac_cache_corrupted=: ;;
2325    ,);;
2326    *)
2327      if test "x$ac_old_val" != "x$ac_new_val"; then
2328	# differences in whitespace do not lead to failure.
2329	ac_old_val_w=`echo x $ac_old_val`
2330	ac_new_val_w=`echo x $ac_new_val`
2331	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2332	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2333$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2334	  ac_cache_corrupted=:
2335	else
2336	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2337$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2338	  eval $ac_var=\$ac_old_val
2339	fi
2340	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2341$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2342	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2343$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2344      fi;;
2345  esac
2346  # Pass precious variables to config.status.
2347  if test "$ac_new_set" = set; then
2348    case $ac_new_val in
2349    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2350    *) ac_arg=$ac_var=$ac_new_val ;;
2351    esac
2352    case " $ac_configure_args " in
2353      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2354      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2355    esac
2356  fi
2357done
2358if $ac_cache_corrupted; then
2359  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2360$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2361  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2362$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2363  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2364fi
2365## -------------------- ##
2366## Main body of script. ##
2367## -------------------- ##
2368
2369ac_ext=c
2370ac_cpp='$CPP $CPPFLAGS'
2371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2373ac_compiler_gnu=$ac_cv_c_compiler_gnu
2374
2375
2376
2377ac_config_headers="$ac_config_headers config.h"
2378
2379
2380# Initialize Automake
2381am__api_version='1.15'
2382
2383ac_aux_dir=
2384for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2385  if test -f "$ac_dir/install-sh"; then
2386    ac_aux_dir=$ac_dir
2387    ac_install_sh="$ac_aux_dir/install-sh -c"
2388    break
2389  elif test -f "$ac_dir/install.sh"; then
2390    ac_aux_dir=$ac_dir
2391    ac_install_sh="$ac_aux_dir/install.sh -c"
2392    break
2393  elif test -f "$ac_dir/shtool"; then
2394    ac_aux_dir=$ac_dir
2395    ac_install_sh="$ac_aux_dir/shtool install -c"
2396    break
2397  fi
2398done
2399if test -z "$ac_aux_dir"; then
2400  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2401fi
2402
2403# These three variables are undocumented and unsupported,
2404# and are intended to be withdrawn in a future Autoconf release.
2405# They can cause serious problems if a builder's source tree is in a directory
2406# whose full name contains unusual characters.
2407ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2408ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2409ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2410
2411
2412# Find a good install program.  We prefer a C program (faster),
2413# so one script is as good as another.  But avoid the broken or
2414# incompatible versions:
2415# SysV /etc/install, /usr/sbin/install
2416# SunOS /usr/etc/install
2417# IRIX /sbin/install
2418# AIX /bin/install
2419# AmigaOS /C/install, which installs bootblocks on floppy discs
2420# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2421# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2422# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2423# OS/2's system install, which has a completely different semantic
2424# ./install, which can be erroneously created by make from ./install.sh.
2425# Reject install programs that cannot install multiple files.
2426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2427$as_echo_n "checking for a BSD-compatible install... " >&6; }
2428if test -z "$INSTALL"; then
2429if ${ac_cv_path_install+:} false; then :
2430  $as_echo_n "(cached) " >&6
2431else
2432  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433for as_dir in $PATH
2434do
2435  IFS=$as_save_IFS
2436  test -z "$as_dir" && as_dir=.
2437    # Account for people who put trailing slashes in PATH elements.
2438case $as_dir/ in #((
2439  ./ | .// | /[cC]/* | \
2440  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2441  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2442  /usr/ucb/* ) ;;
2443  *)
2444    # OSF1 and SCO ODT 3.0 have their own names for install.
2445    # Don't use installbsd from OSF since it installs stuff as root
2446    # by default.
2447    for ac_prog in ginstall scoinst install; do
2448      for ac_exec_ext in '' $ac_executable_extensions; do
2449	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2450	  if test $ac_prog = install &&
2451	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2452	    # AIX install.  It has an incompatible calling convention.
2453	    :
2454	  elif test $ac_prog = install &&
2455	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2456	    # program-specific install script used by HP pwplus--don't use.
2457	    :
2458	  else
2459	    rm -rf conftest.one conftest.two conftest.dir
2460	    echo one > conftest.one
2461	    echo two > conftest.two
2462	    mkdir conftest.dir
2463	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2464	      test -s conftest.one && test -s conftest.two &&
2465	      test -s conftest.dir/conftest.one &&
2466	      test -s conftest.dir/conftest.two
2467	    then
2468	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2469	      break 3
2470	    fi
2471	  fi
2472	fi
2473      done
2474    done
2475    ;;
2476esac
2477
2478  done
2479IFS=$as_save_IFS
2480
2481rm -rf conftest.one conftest.two conftest.dir
2482
2483fi
2484  if test "${ac_cv_path_install+set}" = set; then
2485    INSTALL=$ac_cv_path_install
2486  else
2487    # As a last resort, use the slow shell script.  Don't cache a
2488    # value for INSTALL within a source directory, because that will
2489    # break other packages using the cache if that directory is
2490    # removed, or if the value is a relative name.
2491    INSTALL=$ac_install_sh
2492  fi
2493fi
2494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2495$as_echo "$INSTALL" >&6; }
2496
2497# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2498# It thinks the first close brace ends the variable substitution.
2499test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2500
2501test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2502
2503test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2504
2505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2506$as_echo_n "checking whether build environment is sane... " >&6; }
2507# Reject unsafe characters in $srcdir or the absolute working directory
2508# name.  Accept space and tab only in the latter.
2509am_lf='
2510'
2511case `pwd` in
2512  *[\\\"\#\$\&\'\`$am_lf]*)
2513    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2514esac
2515case $srcdir in
2516  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2517    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2518esac
2519
2520# Do 'set' in a subshell so we don't clobber the current shell's
2521# arguments.  Must try -L first in case configure is actually a
2522# symlink; some systems play weird games with the mod time of symlinks
2523# (eg FreeBSD returns the mod time of the symlink's containing
2524# directory).
2525if (
2526   am_has_slept=no
2527   for am_try in 1 2; do
2528     echo "timestamp, slept: $am_has_slept" > conftest.file
2529     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2530     if test "$*" = "X"; then
2531	# -L didn't work.
2532	set X `ls -t "$srcdir/configure" conftest.file`
2533     fi
2534     if test "$*" != "X $srcdir/configure conftest.file" \
2535	&& test "$*" != "X conftest.file $srcdir/configure"; then
2536
2537	# If neither matched, then we have a broken ls.  This can happen
2538	# if, for instance, CONFIG_SHELL is bash and it inherits a
2539	# broken ls alias from the environment.  This has actually
2540	# happened.  Such a system could not be considered "sane".
2541	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2542  alias in your environment" "$LINENO" 5
2543     fi
2544     if test "$2" = conftest.file || test $am_try -eq 2; then
2545       break
2546     fi
2547     # Just in case.
2548     sleep 1
2549     am_has_slept=yes
2550   done
2551   test "$2" = conftest.file
2552   )
2553then
2554   # Ok.
2555   :
2556else
2557   as_fn_error $? "newly created file is older than distributed files!
2558Check your system clock" "$LINENO" 5
2559fi
2560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2561$as_echo "yes" >&6; }
2562# If we didn't sleep, we still need to ensure time stamps of config.status and
2563# generated files are strictly newer.
2564am_sleep_pid=
2565if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2566  ( sleep 1 ) &
2567  am_sleep_pid=$!
2568fi
2569
2570rm -f conftest.file
2571
2572test "$program_prefix" != NONE &&
2573  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2574# Use a double $ so make ignores it.
2575test "$program_suffix" != NONE &&
2576  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2577# Double any \ or $.
2578# By default was `s,x,x', remove it if useless.
2579ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2580program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2581
2582# Expand $ac_aux_dir to an absolute path.
2583am_aux_dir=`cd "$ac_aux_dir" && pwd`
2584
2585if test x"${MISSING+set}" != xset; then
2586  case $am_aux_dir in
2587  *\ * | *\	*)
2588    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2589  *)
2590    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2591  esac
2592fi
2593# Use eval to expand $SHELL
2594if eval "$MISSING --is-lightweight"; then
2595  am_missing_run="$MISSING "
2596else
2597  am_missing_run=
2598  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2599$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2600fi
2601
2602if test x"${install_sh+set}" != xset; then
2603  case $am_aux_dir in
2604  *\ * | *\	*)
2605    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2606  *)
2607    install_sh="\${SHELL} $am_aux_dir/install-sh"
2608  esac
2609fi
2610
2611# Installed binaries are usually stripped using 'strip' when the user
2612# run "make install-strip".  However 'strip' might not be the right
2613# tool to use in cross-compilation environments, therefore Automake
2614# will honor the 'STRIP' environment variable to overrule this program.
2615if test "$cross_compiling" != no; then
2616  if test -n "$ac_tool_prefix"; then
2617  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2618set dummy ${ac_tool_prefix}strip; ac_word=$2
2619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2620$as_echo_n "checking for $ac_word... " >&6; }
2621if ${ac_cv_prog_STRIP+:} false; then :
2622  $as_echo_n "(cached) " >&6
2623else
2624  if test -n "$STRIP"; then
2625  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2626else
2627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628for as_dir in $PATH
2629do
2630  IFS=$as_save_IFS
2631  test -z "$as_dir" && as_dir=.
2632    for ac_exec_ext in '' $ac_executable_extensions; do
2633  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2634    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2635    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2636    break 2
2637  fi
2638done
2639  done
2640IFS=$as_save_IFS
2641
2642fi
2643fi
2644STRIP=$ac_cv_prog_STRIP
2645if test -n "$STRIP"; then
2646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2647$as_echo "$STRIP" >&6; }
2648else
2649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2650$as_echo "no" >&6; }
2651fi
2652
2653
2654fi
2655if test -z "$ac_cv_prog_STRIP"; then
2656  ac_ct_STRIP=$STRIP
2657  # Extract the first word of "strip", so it can be a program name with args.
2658set dummy strip; ac_word=$2
2659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2660$as_echo_n "checking for $ac_word... " >&6; }
2661if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2662  $as_echo_n "(cached) " >&6
2663else
2664  if test -n "$ac_ct_STRIP"; then
2665  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2666else
2667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668for as_dir in $PATH
2669do
2670  IFS=$as_save_IFS
2671  test -z "$as_dir" && as_dir=.
2672    for ac_exec_ext in '' $ac_executable_extensions; do
2673  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2674    ac_cv_prog_ac_ct_STRIP="strip"
2675    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2676    break 2
2677  fi
2678done
2679  done
2680IFS=$as_save_IFS
2681
2682fi
2683fi
2684ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2685if test -n "$ac_ct_STRIP"; then
2686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2687$as_echo "$ac_ct_STRIP" >&6; }
2688else
2689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2690$as_echo "no" >&6; }
2691fi
2692
2693  if test "x$ac_ct_STRIP" = x; then
2694    STRIP=":"
2695  else
2696    case $cross_compiling:$ac_tool_warned in
2697yes:)
2698{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2699$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2700ac_tool_warned=yes ;;
2701esac
2702    STRIP=$ac_ct_STRIP
2703  fi
2704else
2705  STRIP="$ac_cv_prog_STRIP"
2706fi
2707
2708fi
2709INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2710
2711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2712$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2713if test -z "$MKDIR_P"; then
2714  if ${ac_cv_path_mkdir+:} false; then :
2715  $as_echo_n "(cached) " >&6
2716else
2717  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2719do
2720  IFS=$as_save_IFS
2721  test -z "$as_dir" && as_dir=.
2722    for ac_prog in mkdir gmkdir; do
2723	 for ac_exec_ext in '' $ac_executable_extensions; do
2724	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2725	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2726	     'mkdir (GNU coreutils) '* | \
2727	     'mkdir (coreutils) '* | \
2728	     'mkdir (fileutils) '4.1*)
2729	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2730	       break 3;;
2731	   esac
2732	 done
2733       done
2734  done
2735IFS=$as_save_IFS
2736
2737fi
2738
2739  test -d ./--version && rmdir ./--version
2740  if test "${ac_cv_path_mkdir+set}" = set; then
2741    MKDIR_P="$ac_cv_path_mkdir -p"
2742  else
2743    # As a last resort, use the slow shell script.  Don't cache a
2744    # value for MKDIR_P within a source directory, because that will
2745    # break other packages using the cache if that directory is
2746    # removed, or if the value is a relative name.
2747    MKDIR_P="$ac_install_sh -d"
2748  fi
2749fi
2750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2751$as_echo "$MKDIR_P" >&6; }
2752
2753for ac_prog in gawk mawk nawk awk
2754do
2755  # Extract the first word of "$ac_prog", so it can be a program name with args.
2756set dummy $ac_prog; ac_word=$2
2757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2758$as_echo_n "checking for $ac_word... " >&6; }
2759if ${ac_cv_prog_AWK+:} false; then :
2760  $as_echo_n "(cached) " >&6
2761else
2762  if test -n "$AWK"; then
2763  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2764else
2765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766for as_dir in $PATH
2767do
2768  IFS=$as_save_IFS
2769  test -z "$as_dir" && as_dir=.
2770    for ac_exec_ext in '' $ac_executable_extensions; do
2771  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2772    ac_cv_prog_AWK="$ac_prog"
2773    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2774    break 2
2775  fi
2776done
2777  done
2778IFS=$as_save_IFS
2779
2780fi
2781fi
2782AWK=$ac_cv_prog_AWK
2783if test -n "$AWK"; then
2784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2785$as_echo "$AWK" >&6; }
2786else
2787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2788$as_echo "no" >&6; }
2789fi
2790
2791
2792  test -n "$AWK" && break
2793done
2794
2795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2796$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2797set x ${MAKE-make}
2798ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2799if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2800  $as_echo_n "(cached) " >&6
2801else
2802  cat >conftest.make <<\_ACEOF
2803SHELL = /bin/sh
2804all:
2805	@echo '@@@%%%=$(MAKE)=@@@%%%'
2806_ACEOF
2807# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2808case `${MAKE-make} -f conftest.make 2>/dev/null` in
2809  *@@@%%%=?*=@@@%%%*)
2810    eval ac_cv_prog_make_${ac_make}_set=yes;;
2811  *)
2812    eval ac_cv_prog_make_${ac_make}_set=no;;
2813esac
2814rm -f conftest.make
2815fi
2816if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2818$as_echo "yes" >&6; }
2819  SET_MAKE=
2820else
2821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822$as_echo "no" >&6; }
2823  SET_MAKE="MAKE=${MAKE-make}"
2824fi
2825
2826rm -rf .tst 2>/dev/null
2827mkdir .tst 2>/dev/null
2828if test -d .tst; then
2829  am__leading_dot=.
2830else
2831  am__leading_dot=_
2832fi
2833rmdir .tst 2>/dev/null
2834
2835# Check whether --enable-silent-rules was given.
2836if test "${enable_silent_rules+set}" = set; then :
2837  enableval=$enable_silent_rules;
2838fi
2839
2840case $enable_silent_rules in # (((
2841  yes) AM_DEFAULT_VERBOSITY=0;;
2842   no) AM_DEFAULT_VERBOSITY=1;;
2843    *) AM_DEFAULT_VERBOSITY=1;;
2844esac
2845am_make=${MAKE-make}
2846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2847$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2848if ${am_cv_make_support_nested_variables+:} false; then :
2849  $as_echo_n "(cached) " >&6
2850else
2851  if $as_echo 'TRUE=$(BAR$(V))
2852BAR0=false
2853BAR1=true
2854V=1
2855am__doit:
2856	@$(TRUE)
2857.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2858  am_cv_make_support_nested_variables=yes
2859else
2860  am_cv_make_support_nested_variables=no
2861fi
2862fi
2863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2864$as_echo "$am_cv_make_support_nested_variables" >&6; }
2865if test $am_cv_make_support_nested_variables = yes; then
2866    AM_V='$(V)'
2867  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2868else
2869  AM_V=$AM_DEFAULT_VERBOSITY
2870  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2871fi
2872AM_BACKSLASH='\'
2873
2874if test "`cd $srcdir && pwd`" != "`pwd`"; then
2875  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2876  # is not polluted with repeated "-I."
2877  am__isrc=' -I$(srcdir)'
2878  # test to see if srcdir already configured
2879  if test -f $srcdir/config.status; then
2880    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2881  fi
2882fi
2883
2884# test whether we have cygpath
2885if test -z "$CYGPATH_W"; then
2886  if (cygpath --version) >/dev/null 2>/dev/null; then
2887    CYGPATH_W='cygpath -w'
2888  else
2889    CYGPATH_W=echo
2890  fi
2891fi
2892
2893
2894# Define the identity of the package.
2895 PACKAGE='xhost'
2896 VERSION='1.0.8'
2897
2898
2899cat >>confdefs.h <<_ACEOF
2900#define PACKAGE "$PACKAGE"
2901_ACEOF
2902
2903
2904cat >>confdefs.h <<_ACEOF
2905#define VERSION "$VERSION"
2906_ACEOF
2907
2908# Some tools Automake needs.
2909
2910ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2911
2912
2913AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2914
2915
2916AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2917
2918
2919AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2920
2921
2922MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2923
2924# For better backward compatibility.  To be removed once Automake 1.9.x
2925# dies out for good.  For more background, see:
2926# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2927# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2928mkdir_p='$(MKDIR_P)'
2929
2930# We need awk for the "check" target (and possibly the TAP driver).  The
2931# system "awk" is bad on some platforms.
2932# Always define AMTAR for backward compatibility.  Yes, it's still used
2933# in the wild :-(  We should find a proper way to deprecate it ...
2934AMTAR='$${TAR-tar}'
2935
2936
2937# We'll loop over all known methods to create a tar archive until one works.
2938_am_tools='gnutar  pax cpio none'
2939
2940am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2941
2942
2943
2944
2945
2946
2947# POSIX will say in a future version that running "rm -f" with no argument
2948# is OK; and we want to be able to make that assumption in our Makefile
2949# recipes.  So use an aggressive probe to check that the usage we want is
2950# actually supported "in the wild" to an acceptable degree.
2951# See automake bug#10828.
2952# To make any issue more visible, cause the running configure to be aborted
2953# by default if the 'rm' program in use doesn't match our expectations; the
2954# user can still override this though.
2955if rm -f && rm -fr && rm -rf; then : OK; else
2956  cat >&2 <<'END'
2957Oops!
2958
2959Your 'rm' program seems unable to run without file operands specified
2960on the command line, even when the '-f' option is present.  This is contrary
2961to the behaviour of most rm programs out there, and not conforming with
2962the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2963
2964Please tell bug-automake@gnu.org about your system, including the value
2965of your $PATH and any error possibly output before this message.  This
2966can help us improve future automake versions.
2967
2968END
2969  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2970    echo 'Configuration will proceed anyway, since you have set the' >&2
2971    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2972    echo >&2
2973  else
2974    cat >&2 <<'END'
2975Aborting the configuration process, to ensure you take notice of the issue.
2976
2977You can download and install GNU coreutils to get an 'rm' implementation
2978that behaves properly: <http://www.gnu.org/software/coreutils/>.
2979
2980If you want to complete the configuration process using your problematic
2981'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2982to "yes", and re-run configure.
2983
2984END
2985    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2986  fi
2987fi
2988
2989
2990# Set common system defines for POSIX extensions, such as _GNU_SOURCE
2991# Must be called before any macros that run the compiler (like
2992# XORG_DEFAULT_OPTIONS) to avoid autoconf errors.
2993DEPDIR="${am__leading_dot}deps"
2994
2995ac_config_commands="$ac_config_commands depfiles"
2996
2997
2998am_make=${MAKE-make}
2999cat > confinc << 'END'
3000am__doit:
3001	@echo this is the am__doit target
3002.PHONY: am__doit
3003END
3004# If we don't find an include directive, just comment out the code.
3005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3006$as_echo_n "checking for style of include used by $am_make... " >&6; }
3007am__include="#"
3008am__quote=
3009_am_result=none
3010# First try GNU make style include.
3011echo "include confinc" > confmf
3012# Ignore all kinds of additional output from 'make'.
3013case `$am_make -s -f confmf 2> /dev/null` in #(
3014*the\ am__doit\ target*)
3015  am__include=include
3016  am__quote=
3017  _am_result=GNU
3018  ;;
3019esac
3020# Now try BSD make style include.
3021if test "$am__include" = "#"; then
3022   echo '.include "confinc"' > confmf
3023   case `$am_make -s -f confmf 2> /dev/null` in #(
3024   *the\ am__doit\ target*)
3025     am__include=.include
3026     am__quote="\""
3027     _am_result=BSD
3028     ;;
3029   esac
3030fi
3031
3032
3033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3034$as_echo "$_am_result" >&6; }
3035rm -f confinc confmf
3036
3037# Check whether --enable-dependency-tracking was given.
3038if test "${enable_dependency_tracking+set}" = set; then :
3039  enableval=$enable_dependency_tracking;
3040fi
3041
3042if test "x$enable_dependency_tracking" != xno; then
3043  am_depcomp="$ac_aux_dir/depcomp"
3044  AMDEPBACKSLASH='\'
3045  am__nodep='_no'
3046fi
3047 if test "x$enable_dependency_tracking" != xno; then
3048  AMDEP_TRUE=
3049  AMDEP_FALSE='#'
3050else
3051  AMDEP_TRUE='#'
3052  AMDEP_FALSE=
3053fi
3054
3055
3056ac_ext=c
3057ac_cpp='$CPP $CPPFLAGS'
3058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3060ac_compiler_gnu=$ac_cv_c_compiler_gnu
3061if test -n "$ac_tool_prefix"; then
3062  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3063set dummy ${ac_tool_prefix}gcc; ac_word=$2
3064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3065$as_echo_n "checking for $ac_word... " >&6; }
3066if ${ac_cv_prog_CC+:} false; then :
3067  $as_echo_n "(cached) " >&6
3068else
3069  if test -n "$CC"; then
3070  ac_cv_prog_CC="$CC" # Let the user override the test.
3071else
3072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073for as_dir in $PATH
3074do
3075  IFS=$as_save_IFS
3076  test -z "$as_dir" && as_dir=.
3077    for ac_exec_ext in '' $ac_executable_extensions; do
3078  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3079    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3080    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3081    break 2
3082  fi
3083done
3084  done
3085IFS=$as_save_IFS
3086
3087fi
3088fi
3089CC=$ac_cv_prog_CC
3090if test -n "$CC"; then
3091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3092$as_echo "$CC" >&6; }
3093else
3094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3095$as_echo "no" >&6; }
3096fi
3097
3098
3099fi
3100if test -z "$ac_cv_prog_CC"; then
3101  ac_ct_CC=$CC
3102  # Extract the first word of "gcc", so it can be a program name with args.
3103set dummy gcc; ac_word=$2
3104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3105$as_echo_n "checking for $ac_word... " >&6; }
3106if ${ac_cv_prog_ac_ct_CC+:} false; then :
3107  $as_echo_n "(cached) " >&6
3108else
3109  if test -n "$ac_ct_CC"; then
3110  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3111else
3112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113for as_dir in $PATH
3114do
3115  IFS=$as_save_IFS
3116  test -z "$as_dir" && as_dir=.
3117    for ac_exec_ext in '' $ac_executable_extensions; do
3118  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3119    ac_cv_prog_ac_ct_CC="gcc"
3120    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3121    break 2
3122  fi
3123done
3124  done
3125IFS=$as_save_IFS
3126
3127fi
3128fi
3129ac_ct_CC=$ac_cv_prog_ac_ct_CC
3130if test -n "$ac_ct_CC"; then
3131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3132$as_echo "$ac_ct_CC" >&6; }
3133else
3134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135$as_echo "no" >&6; }
3136fi
3137
3138  if test "x$ac_ct_CC" = x; then
3139    CC=""
3140  else
3141    case $cross_compiling:$ac_tool_warned in
3142yes:)
3143{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3144$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3145ac_tool_warned=yes ;;
3146esac
3147    CC=$ac_ct_CC
3148  fi
3149else
3150  CC="$ac_cv_prog_CC"
3151fi
3152
3153if test -z "$CC"; then
3154          if test -n "$ac_tool_prefix"; then
3155    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3156set dummy ${ac_tool_prefix}cc; ac_word=$2
3157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3158$as_echo_n "checking for $ac_word... " >&6; }
3159if ${ac_cv_prog_CC+:} false; then :
3160  $as_echo_n "(cached) " >&6
3161else
3162  if test -n "$CC"; then
3163  ac_cv_prog_CC="$CC" # Let the user override the test.
3164else
3165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3166for as_dir in $PATH
3167do
3168  IFS=$as_save_IFS
3169  test -z "$as_dir" && as_dir=.
3170    for ac_exec_ext in '' $ac_executable_extensions; do
3171  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3172    ac_cv_prog_CC="${ac_tool_prefix}cc"
3173    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3174    break 2
3175  fi
3176done
3177  done
3178IFS=$as_save_IFS
3179
3180fi
3181fi
3182CC=$ac_cv_prog_CC
3183if test -n "$CC"; then
3184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3185$as_echo "$CC" >&6; }
3186else
3187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188$as_echo "no" >&6; }
3189fi
3190
3191
3192  fi
3193fi
3194if test -z "$CC"; then
3195  # Extract the first word of "cc", so it can be a program name with args.
3196set dummy cc; ac_word=$2
3197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3198$as_echo_n "checking for $ac_word... " >&6; }
3199if ${ac_cv_prog_CC+:} false; then :
3200  $as_echo_n "(cached) " >&6
3201else
3202  if test -n "$CC"; then
3203  ac_cv_prog_CC="$CC" # Let the user override the test.
3204else
3205  ac_prog_rejected=no
3206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207for as_dir in $PATH
3208do
3209  IFS=$as_save_IFS
3210  test -z "$as_dir" && as_dir=.
3211    for ac_exec_ext in '' $ac_executable_extensions; do
3212  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3213    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3214       ac_prog_rejected=yes
3215       continue
3216     fi
3217    ac_cv_prog_CC="cc"
3218    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3219    break 2
3220  fi
3221done
3222  done
3223IFS=$as_save_IFS
3224
3225if test $ac_prog_rejected = yes; then
3226  # We found a bogon in the path, so make sure we never use it.
3227  set dummy $ac_cv_prog_CC
3228  shift
3229  if test $# != 0; then
3230    # We chose a different compiler from the bogus one.
3231    # However, it has the same basename, so the bogon will be chosen
3232    # first if we set CC to just the basename; use the full file name.
3233    shift
3234    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3235  fi
3236fi
3237fi
3238fi
3239CC=$ac_cv_prog_CC
3240if test -n "$CC"; then
3241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3242$as_echo "$CC" >&6; }
3243else
3244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3245$as_echo "no" >&6; }
3246fi
3247
3248
3249fi
3250if test -z "$CC"; then
3251  if test -n "$ac_tool_prefix"; then
3252  for ac_prog in cl.exe
3253  do
3254    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3255set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3257$as_echo_n "checking for $ac_word... " >&6; }
3258if ${ac_cv_prog_CC+:} false; then :
3259  $as_echo_n "(cached) " >&6
3260else
3261  if test -n "$CC"; then
3262  ac_cv_prog_CC="$CC" # Let the user override the test.
3263else
3264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3265for as_dir in $PATH
3266do
3267  IFS=$as_save_IFS
3268  test -z "$as_dir" && as_dir=.
3269    for ac_exec_ext in '' $ac_executable_extensions; do
3270  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3271    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3272    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3273    break 2
3274  fi
3275done
3276  done
3277IFS=$as_save_IFS
3278
3279fi
3280fi
3281CC=$ac_cv_prog_CC
3282if test -n "$CC"; then
3283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3284$as_echo "$CC" >&6; }
3285else
3286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287$as_echo "no" >&6; }
3288fi
3289
3290
3291    test -n "$CC" && break
3292  done
3293fi
3294if test -z "$CC"; then
3295  ac_ct_CC=$CC
3296  for ac_prog in cl.exe
3297do
3298  # Extract the first word of "$ac_prog", so it can be a program name with args.
3299set dummy $ac_prog; ac_word=$2
3300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3301$as_echo_n "checking for $ac_word... " >&6; }
3302if ${ac_cv_prog_ac_ct_CC+:} false; then :
3303  $as_echo_n "(cached) " >&6
3304else
3305  if test -n "$ac_ct_CC"; then
3306  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3307else
3308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309for as_dir in $PATH
3310do
3311  IFS=$as_save_IFS
3312  test -z "$as_dir" && as_dir=.
3313    for ac_exec_ext in '' $ac_executable_extensions; do
3314  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3315    ac_cv_prog_ac_ct_CC="$ac_prog"
3316    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3317    break 2
3318  fi
3319done
3320  done
3321IFS=$as_save_IFS
3322
3323fi
3324fi
3325ac_ct_CC=$ac_cv_prog_ac_ct_CC
3326if test -n "$ac_ct_CC"; then
3327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3328$as_echo "$ac_ct_CC" >&6; }
3329else
3330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331$as_echo "no" >&6; }
3332fi
3333
3334
3335  test -n "$ac_ct_CC" && break
3336done
3337
3338  if test "x$ac_ct_CC" = x; then
3339    CC=""
3340  else
3341    case $cross_compiling:$ac_tool_warned in
3342yes:)
3343{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3344$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3345ac_tool_warned=yes ;;
3346esac
3347    CC=$ac_ct_CC
3348  fi
3349fi
3350
3351fi
3352
3353
3354test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3355$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3356as_fn_error $? "no acceptable C compiler found in \$PATH
3357See \`config.log' for more details" "$LINENO" 5; }
3358
3359# Provide some information about the compiler.
3360$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3361set X $ac_compile
3362ac_compiler=$2
3363for ac_option in --version -v -V -qversion; do
3364  { { ac_try="$ac_compiler $ac_option >&5"
3365case "(($ac_try" in
3366  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367  *) ac_try_echo=$ac_try;;
3368esac
3369eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3370$as_echo "$ac_try_echo"; } >&5
3371  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3372  ac_status=$?
3373  if test -s conftest.err; then
3374    sed '10a\
3375... rest of stderr output deleted ...
3376         10q' conftest.err >conftest.er1
3377    cat conftest.er1 >&5
3378  fi
3379  rm -f conftest.er1 conftest.err
3380  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3381  test $ac_status = 0; }
3382done
3383
3384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3385/* end confdefs.h.  */
3386
3387int
3388main ()
3389{
3390
3391  ;
3392  return 0;
3393}
3394_ACEOF
3395ac_clean_files_save=$ac_clean_files
3396ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3397# Try to create an executable without -o first, disregard a.out.
3398# It will help us diagnose broken compilers, and finding out an intuition
3399# of exeext.
3400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3401$as_echo_n "checking whether the C compiler works... " >&6; }
3402ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3403
3404# The possible output files:
3405ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3406
3407ac_rmfiles=
3408for ac_file in $ac_files
3409do
3410  case $ac_file in
3411    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3412    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3413  esac
3414done
3415rm -f $ac_rmfiles
3416
3417if { { ac_try="$ac_link_default"
3418case "(($ac_try" in
3419  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3420  *) ac_try_echo=$ac_try;;
3421esac
3422eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3423$as_echo "$ac_try_echo"; } >&5
3424  (eval "$ac_link_default") 2>&5
3425  ac_status=$?
3426  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3427  test $ac_status = 0; }; then :
3428  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3429# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3430# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3431# so that the user can short-circuit this test for compilers unknown to
3432# Autoconf.
3433for ac_file in $ac_files ''
3434do
3435  test -f "$ac_file" || continue
3436  case $ac_file in
3437    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3438	;;
3439    [ab].out )
3440	# We found the default executable, but exeext='' is most
3441	# certainly right.
3442	break;;
3443    *.* )
3444	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3445	then :; else
3446	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3447	fi
3448	# We set ac_cv_exeext here because the later test for it is not
3449	# safe: cross compilers may not add the suffix if given an `-o'
3450	# argument, so we may need to know it at that point already.
3451	# Even if this section looks crufty: it has the advantage of
3452	# actually working.
3453	break;;
3454    * )
3455	break;;
3456  esac
3457done
3458test "$ac_cv_exeext" = no && ac_cv_exeext=
3459
3460else
3461  ac_file=''
3462fi
3463if test -z "$ac_file"; then :
3464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3465$as_echo "no" >&6; }
3466$as_echo "$as_me: failed program was:" >&5
3467sed 's/^/| /' conftest.$ac_ext >&5
3468
3469{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3470$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3471as_fn_error 77 "C compiler cannot create executables
3472See \`config.log' for more details" "$LINENO" 5; }
3473else
3474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3475$as_echo "yes" >&6; }
3476fi
3477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3478$as_echo_n "checking for C compiler default output file name... " >&6; }
3479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3480$as_echo "$ac_file" >&6; }
3481ac_exeext=$ac_cv_exeext
3482
3483rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3484ac_clean_files=$ac_clean_files_save
3485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3486$as_echo_n "checking for suffix of executables... " >&6; }
3487if { { ac_try="$ac_link"
3488case "(($ac_try" in
3489  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3490  *) ac_try_echo=$ac_try;;
3491esac
3492eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3493$as_echo "$ac_try_echo"; } >&5
3494  (eval "$ac_link") 2>&5
3495  ac_status=$?
3496  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3497  test $ac_status = 0; }; then :
3498  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3499# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3500# work properly (i.e., refer to `conftest.exe'), while it won't with
3501# `rm'.
3502for ac_file in conftest.exe conftest conftest.*; do
3503  test -f "$ac_file" || continue
3504  case $ac_file in
3505    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3506    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3507	  break;;
3508    * ) break;;
3509  esac
3510done
3511else
3512  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3513$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3514as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3515See \`config.log' for more details" "$LINENO" 5; }
3516fi
3517rm -f conftest conftest$ac_cv_exeext
3518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3519$as_echo "$ac_cv_exeext" >&6; }
3520
3521rm -f conftest.$ac_ext
3522EXEEXT=$ac_cv_exeext
3523ac_exeext=$EXEEXT
3524cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525/* end confdefs.h.  */
3526#include <stdio.h>
3527int
3528main ()
3529{
3530FILE *f = fopen ("conftest.out", "w");
3531 return ferror (f) || fclose (f) != 0;
3532
3533  ;
3534  return 0;
3535}
3536_ACEOF
3537ac_clean_files="$ac_clean_files conftest.out"
3538# Check that the compiler produces executables we can run.  If not, either
3539# the compiler is broken, or we cross compile.
3540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3541$as_echo_n "checking whether we are cross compiling... " >&6; }
3542if test "$cross_compiling" != yes; then
3543  { { ac_try="$ac_link"
3544case "(($ac_try" in
3545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546  *) ac_try_echo=$ac_try;;
3547esac
3548eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3549$as_echo "$ac_try_echo"; } >&5
3550  (eval "$ac_link") 2>&5
3551  ac_status=$?
3552  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3553  test $ac_status = 0; }
3554  if { ac_try='./conftest$ac_cv_exeext'
3555  { { case "(($ac_try" in
3556  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3557  *) ac_try_echo=$ac_try;;
3558esac
3559eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3560$as_echo "$ac_try_echo"; } >&5
3561  (eval "$ac_try") 2>&5
3562  ac_status=$?
3563  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3564  test $ac_status = 0; }; }; then
3565    cross_compiling=no
3566  else
3567    if test "$cross_compiling" = maybe; then
3568	cross_compiling=yes
3569    else
3570	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3571$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3572as_fn_error $? "cannot run C compiled programs.
3573If you meant to cross compile, use \`--host'.
3574See \`config.log' for more details" "$LINENO" 5; }
3575    fi
3576  fi
3577fi
3578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3579$as_echo "$cross_compiling" >&6; }
3580
3581rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3582ac_clean_files=$ac_clean_files_save
3583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3584$as_echo_n "checking for suffix of object files... " >&6; }
3585if ${ac_cv_objext+:} false; then :
3586  $as_echo_n "(cached) " >&6
3587else
3588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3589/* end confdefs.h.  */
3590
3591int
3592main ()
3593{
3594
3595  ;
3596  return 0;
3597}
3598_ACEOF
3599rm -f conftest.o conftest.obj
3600if { { ac_try="$ac_compile"
3601case "(($ac_try" in
3602  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603  *) ac_try_echo=$ac_try;;
3604esac
3605eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3606$as_echo "$ac_try_echo"; } >&5
3607  (eval "$ac_compile") 2>&5
3608  ac_status=$?
3609  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3610  test $ac_status = 0; }; then :
3611  for ac_file in conftest.o conftest.obj conftest.*; do
3612  test -f "$ac_file" || continue;
3613  case $ac_file in
3614    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3615    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3616       break;;
3617  esac
3618done
3619else
3620  $as_echo "$as_me: failed program was:" >&5
3621sed 's/^/| /' conftest.$ac_ext >&5
3622
3623{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3624$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3625as_fn_error $? "cannot compute suffix of object files: cannot compile
3626See \`config.log' for more details" "$LINENO" 5; }
3627fi
3628rm -f conftest.$ac_cv_objext conftest.$ac_ext
3629fi
3630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3631$as_echo "$ac_cv_objext" >&6; }
3632OBJEXT=$ac_cv_objext
3633ac_objext=$OBJEXT
3634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3635$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3636if ${ac_cv_c_compiler_gnu+:} false; then :
3637  $as_echo_n "(cached) " >&6
3638else
3639  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640/* end confdefs.h.  */
3641
3642int
3643main ()
3644{
3645#ifndef __GNUC__
3646       choke me
3647#endif
3648
3649  ;
3650  return 0;
3651}
3652_ACEOF
3653if ac_fn_c_try_compile "$LINENO"; then :
3654  ac_compiler_gnu=yes
3655else
3656  ac_compiler_gnu=no
3657fi
3658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3659ac_cv_c_compiler_gnu=$ac_compiler_gnu
3660
3661fi
3662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3663$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3664if test $ac_compiler_gnu = yes; then
3665  GCC=yes
3666else
3667  GCC=
3668fi
3669ac_test_CFLAGS=${CFLAGS+set}
3670ac_save_CFLAGS=$CFLAGS
3671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3672$as_echo_n "checking whether $CC accepts -g... " >&6; }
3673if ${ac_cv_prog_cc_g+:} false; then :
3674  $as_echo_n "(cached) " >&6
3675else
3676  ac_save_c_werror_flag=$ac_c_werror_flag
3677   ac_c_werror_flag=yes
3678   ac_cv_prog_cc_g=no
3679   CFLAGS="-g"
3680   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3681/* end confdefs.h.  */
3682
3683int
3684main ()
3685{
3686
3687  ;
3688  return 0;
3689}
3690_ACEOF
3691if ac_fn_c_try_compile "$LINENO"; then :
3692  ac_cv_prog_cc_g=yes
3693else
3694  CFLAGS=""
3695      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696/* end confdefs.h.  */
3697
3698int
3699main ()
3700{
3701
3702  ;
3703  return 0;
3704}
3705_ACEOF
3706if ac_fn_c_try_compile "$LINENO"; then :
3707
3708else
3709  ac_c_werror_flag=$ac_save_c_werror_flag
3710	 CFLAGS="-g"
3711	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712/* end confdefs.h.  */
3713
3714int
3715main ()
3716{
3717
3718  ;
3719  return 0;
3720}
3721_ACEOF
3722if ac_fn_c_try_compile "$LINENO"; then :
3723  ac_cv_prog_cc_g=yes
3724fi
3725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3726fi
3727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3728fi
3729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3730   ac_c_werror_flag=$ac_save_c_werror_flag
3731fi
3732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3733$as_echo "$ac_cv_prog_cc_g" >&6; }
3734if test "$ac_test_CFLAGS" = set; then
3735  CFLAGS=$ac_save_CFLAGS
3736elif test $ac_cv_prog_cc_g = yes; then
3737  if test "$GCC" = yes; then
3738    CFLAGS="-g -O2"
3739  else
3740    CFLAGS="-g"
3741  fi
3742else
3743  if test "$GCC" = yes; then
3744    CFLAGS="-O2"
3745  else
3746    CFLAGS=
3747  fi
3748fi
3749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3750$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3751if ${ac_cv_prog_cc_c89+:} false; then :
3752  $as_echo_n "(cached) " >&6
3753else
3754  ac_cv_prog_cc_c89=no
3755ac_save_CC=$CC
3756cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757/* end confdefs.h.  */
3758#include <stdarg.h>
3759#include <stdio.h>
3760struct stat;
3761/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3762struct buf { int x; };
3763FILE * (*rcsopen) (struct buf *, struct stat *, int);
3764static char *e (p, i)
3765     char **p;
3766     int i;
3767{
3768  return p[i];
3769}
3770static char *f (char * (*g) (char **, int), char **p, ...)
3771{
3772  char *s;
3773  va_list v;
3774  va_start (v,p);
3775  s = g (p, va_arg (v,int));
3776  va_end (v);
3777  return s;
3778}
3779
3780/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3781   function prototypes and stuff, but not '\xHH' hex character constants.
3782   These don't provoke an error unfortunately, instead are silently treated
3783   as 'x'.  The following induces an error, until -std is added to get
3784   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3785   array size at least.  It's necessary to write '\x00'==0 to get something
3786   that's true only with -std.  */
3787int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3788
3789/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3790   inside strings and character constants.  */
3791#define FOO(x) 'x'
3792int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3793
3794int test (int i, double x);
3795struct s1 {int (*f) (int a);};
3796struct s2 {int (*f) (double a);};
3797int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3798int argc;
3799char **argv;
3800int
3801main ()
3802{
3803return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3804  ;
3805  return 0;
3806}
3807_ACEOF
3808for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3809	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3810do
3811  CC="$ac_save_CC $ac_arg"
3812  if ac_fn_c_try_compile "$LINENO"; then :
3813  ac_cv_prog_cc_c89=$ac_arg
3814fi
3815rm -f core conftest.err conftest.$ac_objext
3816  test "x$ac_cv_prog_cc_c89" != "xno" && break
3817done
3818rm -f conftest.$ac_ext
3819CC=$ac_save_CC
3820
3821fi
3822# AC_CACHE_VAL
3823case "x$ac_cv_prog_cc_c89" in
3824  x)
3825    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3826$as_echo "none needed" >&6; } ;;
3827  xno)
3828    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3829$as_echo "unsupported" >&6; } ;;
3830  *)
3831    CC="$CC $ac_cv_prog_cc_c89"
3832    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3833$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3834esac
3835if test "x$ac_cv_prog_cc_c89" != xno; then :
3836
3837fi
3838
3839ac_ext=c
3840ac_cpp='$CPP $CPPFLAGS'
3841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3843ac_compiler_gnu=$ac_cv_c_compiler_gnu
3844
3845ac_ext=c
3846ac_cpp='$CPP $CPPFLAGS'
3847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3849ac_compiler_gnu=$ac_cv_c_compiler_gnu
3850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3851$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3852if ${am_cv_prog_cc_c_o+:} false; then :
3853  $as_echo_n "(cached) " >&6
3854else
3855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856/* end confdefs.h.  */
3857
3858int
3859main ()
3860{
3861
3862  ;
3863  return 0;
3864}
3865_ACEOF
3866  # Make sure it works both with $CC and with simple cc.
3867  # Following AC_PROG_CC_C_O, we do the test twice because some
3868  # compilers refuse to overwrite an existing .o file with -o,
3869  # though they will create one.
3870  am_cv_prog_cc_c_o=yes
3871  for am_i in 1 2; do
3872    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3873   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3874   ac_status=$?
3875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876   (exit $ac_status); } \
3877         && test -f conftest2.$ac_objext; then
3878      : OK
3879    else
3880      am_cv_prog_cc_c_o=no
3881      break
3882    fi
3883  done
3884  rm -f core conftest*
3885  unset am_i
3886fi
3887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3888$as_echo "$am_cv_prog_cc_c_o" >&6; }
3889if test "$am_cv_prog_cc_c_o" != yes; then
3890   # Losing compiler, so override with the script.
3891   # FIXME: It is wrong to rewrite CC.
3892   # But if we don't then we get into trouble of one sort or another.
3893   # A longer-term fix would be to have automake use am__CC in this case,
3894   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3895   CC="$am_aux_dir/compile $CC"
3896fi
3897ac_ext=c
3898ac_cpp='$CPP $CPPFLAGS'
3899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3901ac_compiler_gnu=$ac_cv_c_compiler_gnu
3902
3903
3904depcc="$CC"   am_compiler_list=
3905
3906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3907$as_echo_n "checking dependency style of $depcc... " >&6; }
3908if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3909  $as_echo_n "(cached) " >&6
3910else
3911  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3912  # We make a subdir and do the tests there.  Otherwise we can end up
3913  # making bogus files that we don't know about and never remove.  For
3914  # instance it was reported that on HP-UX the gcc test will end up
3915  # making a dummy file named 'D' -- because '-MD' means "put the output
3916  # in D".
3917  rm -rf conftest.dir
3918  mkdir conftest.dir
3919  # Copy depcomp to subdir because otherwise we won't find it if we're
3920  # using a relative directory.
3921  cp "$am_depcomp" conftest.dir
3922  cd conftest.dir
3923  # We will build objects and dependencies in a subdirectory because
3924  # it helps to detect inapplicable dependency modes.  For instance
3925  # both Tru64's cc and ICC support -MD to output dependencies as a
3926  # side effect of compilation, but ICC will put the dependencies in
3927  # the current directory while Tru64 will put them in the object
3928  # directory.
3929  mkdir sub
3930
3931  am_cv_CC_dependencies_compiler_type=none
3932  if test "$am_compiler_list" = ""; then
3933     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3934  fi
3935  am__universal=false
3936  case " $depcc " in #(
3937     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3938     esac
3939
3940  for depmode in $am_compiler_list; do
3941    # Setup a source with many dependencies, because some compilers
3942    # like to wrap large dependency lists on column 80 (with \), and
3943    # we should not choose a depcomp mode which is confused by this.
3944    #
3945    # We need to recreate these files for each test, as the compiler may
3946    # overwrite some of them when testing with obscure command lines.
3947    # This happens at least with the AIX C compiler.
3948    : > sub/conftest.c
3949    for i in 1 2 3 4 5 6; do
3950      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3951      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3952      # Solaris 10 /bin/sh.
3953      echo '/* dummy */' > sub/conftst$i.h
3954    done
3955    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3956
3957    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3958    # mode.  It turns out that the SunPro C++ compiler does not properly
3959    # handle '-M -o', and we need to detect this.  Also, some Intel
3960    # versions had trouble with output in subdirs.
3961    am__obj=sub/conftest.${OBJEXT-o}
3962    am__minus_obj="-o $am__obj"
3963    case $depmode in
3964    gcc)
3965      # This depmode causes a compiler race in universal mode.
3966      test "$am__universal" = false || continue
3967      ;;
3968    nosideeffect)
3969      # After this tag, mechanisms are not by side-effect, so they'll
3970      # only be used when explicitly requested.
3971      if test "x$enable_dependency_tracking" = xyes; then
3972	continue
3973      else
3974	break
3975      fi
3976      ;;
3977    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3978      # This compiler won't grok '-c -o', but also, the minuso test has
3979      # not run yet.  These depmodes are late enough in the game, and
3980      # so weak that their functioning should not be impacted.
3981      am__obj=conftest.${OBJEXT-o}
3982      am__minus_obj=
3983      ;;
3984    none) break ;;
3985    esac
3986    if depmode=$depmode \
3987       source=sub/conftest.c object=$am__obj \
3988       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3989       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3990         >/dev/null 2>conftest.err &&
3991       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3992       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3993       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3994       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3995      # icc doesn't choke on unknown options, it will just issue warnings
3996      # or remarks (even with -Werror).  So we grep stderr for any message
3997      # that says an option was ignored or not supported.
3998      # When given -MP, icc 7.0 and 7.1 complain thusly:
3999      #   icc: Command line warning: ignoring option '-M'; no argument required
4000      # The diagnosis changed in icc 8.0:
4001      #   icc: Command line remark: option '-MP' not supported
4002      if (grep 'ignoring option' conftest.err ||
4003          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4004        am_cv_CC_dependencies_compiler_type=$depmode
4005        break
4006      fi
4007    fi
4008  done
4009
4010  cd ..
4011  rm -rf conftest.dir
4012else
4013  am_cv_CC_dependencies_compiler_type=none
4014fi
4015
4016fi
4017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4018$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4019CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4020
4021 if
4022  test "x$enable_dependency_tracking" != xno \
4023  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4024  am__fastdepCC_TRUE=
4025  am__fastdepCC_FALSE='#'
4026else
4027  am__fastdepCC_TRUE='#'
4028  am__fastdepCC_FALSE=
4029fi
4030
4031
4032
4033ac_ext=c
4034ac_cpp='$CPP $CPPFLAGS'
4035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4037ac_compiler_gnu=$ac_cv_c_compiler_gnu
4038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4039$as_echo_n "checking how to run the C preprocessor... " >&6; }
4040# On Suns, sometimes $CPP names a directory.
4041if test -n "$CPP" && test -d "$CPP"; then
4042  CPP=
4043fi
4044if test -z "$CPP"; then
4045  if ${ac_cv_prog_CPP+:} false; then :
4046  $as_echo_n "(cached) " >&6
4047else
4048      # Double quotes because CPP needs to be expanded
4049    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4050    do
4051      ac_preproc_ok=false
4052for ac_c_preproc_warn_flag in '' yes
4053do
4054  # Use a header file that comes with gcc, so configuring glibc
4055  # with a fresh cross-compiler works.
4056  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4057  # <limits.h> exists even on freestanding compilers.
4058  # On the NeXT, cc -E runs the code through the compiler's parser,
4059  # not just through cpp. "Syntax error" is here to catch this case.
4060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061/* end confdefs.h.  */
4062#ifdef __STDC__
4063# include <limits.h>
4064#else
4065# include <assert.h>
4066#endif
4067		     Syntax error
4068_ACEOF
4069if ac_fn_c_try_cpp "$LINENO"; then :
4070
4071else
4072  # Broken: fails on valid input.
4073continue
4074fi
4075rm -f conftest.err conftest.i conftest.$ac_ext
4076
4077  # OK, works on sane cases.  Now check whether nonexistent headers
4078  # can be detected and how.
4079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4080/* end confdefs.h.  */
4081#include <ac_nonexistent.h>
4082_ACEOF
4083if ac_fn_c_try_cpp "$LINENO"; then :
4084  # Broken: success on invalid input.
4085continue
4086else
4087  # Passes both tests.
4088ac_preproc_ok=:
4089break
4090fi
4091rm -f conftest.err conftest.i conftest.$ac_ext
4092
4093done
4094# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4095rm -f conftest.i conftest.err conftest.$ac_ext
4096if $ac_preproc_ok; then :
4097  break
4098fi
4099
4100    done
4101    ac_cv_prog_CPP=$CPP
4102
4103fi
4104  CPP=$ac_cv_prog_CPP
4105else
4106  ac_cv_prog_CPP=$CPP
4107fi
4108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4109$as_echo "$CPP" >&6; }
4110ac_preproc_ok=false
4111for ac_c_preproc_warn_flag in '' yes
4112do
4113  # Use a header file that comes with gcc, so configuring glibc
4114  # with a fresh cross-compiler works.
4115  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4116  # <limits.h> exists even on freestanding compilers.
4117  # On the NeXT, cc -E runs the code through the compiler's parser,
4118  # not just through cpp. "Syntax error" is here to catch this case.
4119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120/* end confdefs.h.  */
4121#ifdef __STDC__
4122# include <limits.h>
4123#else
4124# include <assert.h>
4125#endif
4126		     Syntax error
4127_ACEOF
4128if ac_fn_c_try_cpp "$LINENO"; then :
4129
4130else
4131  # Broken: fails on valid input.
4132continue
4133fi
4134rm -f conftest.err conftest.i conftest.$ac_ext
4135
4136  # OK, works on sane cases.  Now check whether nonexistent headers
4137  # can be detected and how.
4138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4139/* end confdefs.h.  */
4140#include <ac_nonexistent.h>
4141_ACEOF
4142if ac_fn_c_try_cpp "$LINENO"; then :
4143  # Broken: success on invalid input.
4144continue
4145else
4146  # Passes both tests.
4147ac_preproc_ok=:
4148break
4149fi
4150rm -f conftest.err conftest.i conftest.$ac_ext
4151
4152done
4153# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4154rm -f conftest.i conftest.err conftest.$ac_ext
4155if $ac_preproc_ok; then :
4156
4157else
4158  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4159$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4160as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4161See \`config.log' for more details" "$LINENO" 5; }
4162fi
4163
4164ac_ext=c
4165ac_cpp='$CPP $CPPFLAGS'
4166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4168ac_compiler_gnu=$ac_cv_c_compiler_gnu
4169
4170
4171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4172$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4173if ${ac_cv_path_GREP+:} false; then :
4174  $as_echo_n "(cached) " >&6
4175else
4176  if test -z "$GREP"; then
4177  ac_path_GREP_found=false
4178  # Loop through the user's path and test for each of PROGNAME-LIST
4179  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4181do
4182  IFS=$as_save_IFS
4183  test -z "$as_dir" && as_dir=.
4184    for ac_prog in grep ggrep; do
4185    for ac_exec_ext in '' $ac_executable_extensions; do
4186      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4187      as_fn_executable_p "$ac_path_GREP" || continue
4188# Check for GNU ac_path_GREP and select it if it is found.
4189  # Check for GNU $ac_path_GREP
4190case `"$ac_path_GREP" --version 2>&1` in
4191*GNU*)
4192  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4193*)
4194  ac_count=0
4195  $as_echo_n 0123456789 >"conftest.in"
4196  while :
4197  do
4198    cat "conftest.in" "conftest.in" >"conftest.tmp"
4199    mv "conftest.tmp" "conftest.in"
4200    cp "conftest.in" "conftest.nl"
4201    $as_echo 'GREP' >> "conftest.nl"
4202    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4203    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4204    as_fn_arith $ac_count + 1 && ac_count=$as_val
4205    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4206      # Best one so far, save it but keep looking for a better one
4207      ac_cv_path_GREP="$ac_path_GREP"
4208      ac_path_GREP_max=$ac_count
4209    fi
4210    # 10*(2^10) chars as input seems more than enough
4211    test $ac_count -gt 10 && break
4212  done
4213  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4214esac
4215
4216      $ac_path_GREP_found && break 3
4217    done
4218  done
4219  done
4220IFS=$as_save_IFS
4221  if test -z "$ac_cv_path_GREP"; then
4222    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4223  fi
4224else
4225  ac_cv_path_GREP=$GREP
4226fi
4227
4228fi
4229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4230$as_echo "$ac_cv_path_GREP" >&6; }
4231 GREP="$ac_cv_path_GREP"
4232
4233
4234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4235$as_echo_n "checking for egrep... " >&6; }
4236if ${ac_cv_path_EGREP+:} false; then :
4237  $as_echo_n "(cached) " >&6
4238else
4239  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4240   then ac_cv_path_EGREP="$GREP -E"
4241   else
4242     if test -z "$EGREP"; then
4243  ac_path_EGREP_found=false
4244  # Loop through the user's path and test for each of PROGNAME-LIST
4245  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4247do
4248  IFS=$as_save_IFS
4249  test -z "$as_dir" && as_dir=.
4250    for ac_prog in egrep; do
4251    for ac_exec_ext in '' $ac_executable_extensions; do
4252      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4253      as_fn_executable_p "$ac_path_EGREP" || continue
4254# Check for GNU ac_path_EGREP and select it if it is found.
4255  # Check for GNU $ac_path_EGREP
4256case `"$ac_path_EGREP" --version 2>&1` in
4257*GNU*)
4258  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4259*)
4260  ac_count=0
4261  $as_echo_n 0123456789 >"conftest.in"
4262  while :
4263  do
4264    cat "conftest.in" "conftest.in" >"conftest.tmp"
4265    mv "conftest.tmp" "conftest.in"
4266    cp "conftest.in" "conftest.nl"
4267    $as_echo 'EGREP' >> "conftest.nl"
4268    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4269    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4270    as_fn_arith $ac_count + 1 && ac_count=$as_val
4271    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4272      # Best one so far, save it but keep looking for a better one
4273      ac_cv_path_EGREP="$ac_path_EGREP"
4274      ac_path_EGREP_max=$ac_count
4275    fi
4276    # 10*(2^10) chars as input seems more than enough
4277    test $ac_count -gt 10 && break
4278  done
4279  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4280esac
4281
4282      $ac_path_EGREP_found && break 3
4283    done
4284  done
4285  done
4286IFS=$as_save_IFS
4287  if test -z "$ac_cv_path_EGREP"; then
4288    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4289  fi
4290else
4291  ac_cv_path_EGREP=$EGREP
4292fi
4293
4294   fi
4295fi
4296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4297$as_echo "$ac_cv_path_EGREP" >&6; }
4298 EGREP="$ac_cv_path_EGREP"
4299
4300
4301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4302$as_echo_n "checking for ANSI C header files... " >&6; }
4303if ${ac_cv_header_stdc+:} false; then :
4304  $as_echo_n "(cached) " >&6
4305else
4306  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307/* end confdefs.h.  */
4308#include <stdlib.h>
4309#include <stdarg.h>
4310#include <string.h>
4311#include <float.h>
4312
4313int
4314main ()
4315{
4316
4317  ;
4318  return 0;
4319}
4320_ACEOF
4321if ac_fn_c_try_compile "$LINENO"; then :
4322  ac_cv_header_stdc=yes
4323else
4324  ac_cv_header_stdc=no
4325fi
4326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4327
4328if test $ac_cv_header_stdc = yes; then
4329  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331/* end confdefs.h.  */
4332#include <string.h>
4333
4334_ACEOF
4335if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4336  $EGREP "memchr" >/dev/null 2>&1; then :
4337
4338else
4339  ac_cv_header_stdc=no
4340fi
4341rm -f conftest*
4342
4343fi
4344
4345if test $ac_cv_header_stdc = yes; then
4346  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348/* end confdefs.h.  */
4349#include <stdlib.h>
4350
4351_ACEOF
4352if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4353  $EGREP "free" >/dev/null 2>&1; then :
4354
4355else
4356  ac_cv_header_stdc=no
4357fi
4358rm -f conftest*
4359
4360fi
4361
4362if test $ac_cv_header_stdc = yes; then
4363  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4364  if test "$cross_compiling" = yes; then :
4365  :
4366else
4367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368/* end confdefs.h.  */
4369#include <ctype.h>
4370#include <stdlib.h>
4371#if ((' ' & 0x0FF) == 0x020)
4372# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4373# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4374#else
4375# define ISLOWER(c) \
4376		   (('a' <= (c) && (c) <= 'i') \
4377		     || ('j' <= (c) && (c) <= 'r') \
4378		     || ('s' <= (c) && (c) <= 'z'))
4379# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4380#endif
4381
4382#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4383int
4384main ()
4385{
4386  int i;
4387  for (i = 0; i < 256; i++)
4388    if (XOR (islower (i), ISLOWER (i))
4389	|| toupper (i) != TOUPPER (i))
4390      return 2;
4391  return 0;
4392}
4393_ACEOF
4394if ac_fn_c_try_run "$LINENO"; then :
4395
4396else
4397  ac_cv_header_stdc=no
4398fi
4399rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4400  conftest.$ac_objext conftest.beam conftest.$ac_ext
4401fi
4402
4403fi
4404fi
4405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4406$as_echo "$ac_cv_header_stdc" >&6; }
4407if test $ac_cv_header_stdc = yes; then
4408
4409$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4410
4411fi
4412
4413# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4414for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4415		  inttypes.h stdint.h unistd.h
4416do :
4417  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4418ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4419"
4420if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4421  cat >>confdefs.h <<_ACEOF
4422#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4423_ACEOF
4424
4425fi
4426
4427done
4428
4429
4430
4431  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4432if test "x$ac_cv_header_minix_config_h" = xyes; then :
4433  MINIX=yes
4434else
4435  MINIX=
4436fi
4437
4438
4439  if test "$MINIX" = yes; then
4440
4441$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4442
4443
4444$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4445
4446
4447$as_echo "#define _MINIX 1" >>confdefs.h
4448
4449  fi
4450
4451
4452  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4453$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4454if ${ac_cv_safe_to_define___extensions__+:} false; then :
4455  $as_echo_n "(cached) " >&6
4456else
4457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458/* end confdefs.h.  */
4459
4460#         define __EXTENSIONS__ 1
4461          $ac_includes_default
4462int
4463main ()
4464{
4465
4466  ;
4467  return 0;
4468}
4469_ACEOF
4470if ac_fn_c_try_compile "$LINENO"; then :
4471  ac_cv_safe_to_define___extensions__=yes
4472else
4473  ac_cv_safe_to_define___extensions__=no
4474fi
4475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4476fi
4477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4478$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4479  test $ac_cv_safe_to_define___extensions__ = yes &&
4480    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4481
4482  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4483
4484  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4485
4486  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4487
4488  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4489
4490
4491
4492# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4505$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4506if ${ac_cv_prog_cc_c99+:} false; then :
4507  $as_echo_n "(cached) " >&6
4508else
4509  ac_cv_prog_cc_c99=no
4510ac_save_CC=$CC
4511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4512/* end confdefs.h.  */
4513#include <stdarg.h>
4514#include <stdbool.h>
4515#include <stdlib.h>
4516#include <wchar.h>
4517#include <stdio.h>
4518
4519// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4520#define debug(...) fprintf (stderr, __VA_ARGS__)
4521#define showlist(...) puts (#__VA_ARGS__)
4522#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4523static void
4524test_varargs_macros (void)
4525{
4526  int x = 1234;
4527  int y = 5678;
4528  debug ("Flag");
4529  debug ("X = %d\n", x);
4530  showlist (The first, second, and third items.);
4531  report (x>y, "x is %d but y is %d", x, y);
4532}
4533
4534// Check long long types.
4535#define BIG64 18446744073709551615ull
4536#define BIG32 4294967295ul
4537#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4538#if !BIG_OK
4539  your preprocessor is broken;
4540#endif
4541#if BIG_OK
4542#else
4543  your preprocessor is broken;
4544#endif
4545static long long int bignum = -9223372036854775807LL;
4546static unsigned long long int ubignum = BIG64;
4547
4548struct incomplete_array
4549{
4550  int datasize;
4551  double data[];
4552};
4553
4554struct named_init {
4555  int number;
4556  const wchar_t *name;
4557  double average;
4558};
4559
4560typedef const char *ccp;
4561
4562static inline int
4563test_restrict (ccp restrict text)
4564{
4565  // See if C++-style comments work.
4566  // Iterate through items via the restricted pointer.
4567  // Also check for declarations in for loops.
4568  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4569    continue;
4570  return 0;
4571}
4572
4573// Check varargs and va_copy.
4574static void
4575test_varargs (const char *format, ...)
4576{
4577  va_list args;
4578  va_start (args, format);
4579  va_list args_copy;
4580  va_copy (args_copy, args);
4581
4582  const char *str;
4583  int number;
4584  float fnumber;
4585
4586  while (*format)
4587    {
4588      switch (*format++)
4589	{
4590	case 's': // string
4591	  str = va_arg (args_copy, const char *);
4592	  break;
4593	case 'd': // int
4594	  number = va_arg (args_copy, int);
4595	  break;
4596	case 'f': // float
4597	  fnumber = va_arg (args_copy, double);
4598	  break;
4599	default:
4600	  break;
4601	}
4602    }
4603  va_end (args_copy);
4604  va_end (args);
4605}
4606
4607int
4608main ()
4609{
4610
4611  // Check bool.
4612  _Bool success = false;
4613
4614  // Check restrict.
4615  if (test_restrict ("String literal") == 0)
4616    success = true;
4617  char *restrict newvar = "Another string";
4618
4619  // Check varargs.
4620  test_varargs ("s, d' f .", "string", 65, 34.234);
4621  test_varargs_macros ();
4622
4623  // Check flexible array members.
4624  struct incomplete_array *ia =
4625    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4626  ia->datasize = 10;
4627  for (int i = 0; i < ia->datasize; ++i)
4628    ia->data[i] = i * 1.234;
4629
4630  // Check named initializers.
4631  struct named_init ni = {
4632    .number = 34,
4633    .name = L"Test wide string",
4634    .average = 543.34343,
4635  };
4636
4637  ni.number = 58;
4638
4639  int dynamic_array[ni.number];
4640  dynamic_array[ni.number - 1] = 543;
4641
4642  // work around unused variable warnings
4643  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4644	  || dynamic_array[ni.number - 1] != 543);
4645
4646  ;
4647  return 0;
4648}
4649_ACEOF
4650for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4651do
4652  CC="$ac_save_CC $ac_arg"
4653  if ac_fn_c_try_compile "$LINENO"; then :
4654  ac_cv_prog_cc_c99=$ac_arg
4655fi
4656rm -f core conftest.err conftest.$ac_objext
4657  test "x$ac_cv_prog_cc_c99" != "xno" && break
4658done
4659rm -f conftest.$ac_ext
4660CC=$ac_save_CC
4661
4662fi
4663# AC_CACHE_VAL
4664case "x$ac_cv_prog_cc_c99" in
4665  x)
4666    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4667$as_echo "none needed" >&6; } ;;
4668  xno)
4669    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4670$as_echo "unsupported" >&6; } ;;
4671  *)
4672    CC="$CC $ac_cv_prog_cc_c99"
4673    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4674$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4675esac
4676if test "x$ac_cv_prog_cc_c99" != xno; then :
4677
4678fi
4679
4680
4681
4682
4683
4684
4685ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4686if test "x$ac_cv_have_decl___clang__" = xyes; then :
4687  CLANGCC="yes"
4688else
4689  CLANGCC="no"
4690fi
4691
4692ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4693if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4694  INTELCC="yes"
4695else
4696  INTELCC="no"
4697fi
4698
4699ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4700if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4701  SUNCC="yes"
4702else
4703  SUNCC="no"
4704fi
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4715	if test -n "$ac_tool_prefix"; then
4716  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4717set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4719$as_echo_n "checking for $ac_word... " >&6; }
4720if ${ac_cv_path_PKG_CONFIG+:} false; then :
4721  $as_echo_n "(cached) " >&6
4722else
4723  case $PKG_CONFIG in
4724  [\\/]* | ?:[\\/]*)
4725  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4726  ;;
4727  *)
4728  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4729for as_dir in $PATH
4730do
4731  IFS=$as_save_IFS
4732  test -z "$as_dir" && as_dir=.
4733    for ac_exec_ext in '' $ac_executable_extensions; do
4734  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4735    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4736    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4737    break 2
4738  fi
4739done
4740  done
4741IFS=$as_save_IFS
4742
4743  ;;
4744esac
4745fi
4746PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4747if test -n "$PKG_CONFIG"; then
4748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4749$as_echo "$PKG_CONFIG" >&6; }
4750else
4751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4752$as_echo "no" >&6; }
4753fi
4754
4755
4756fi
4757if test -z "$ac_cv_path_PKG_CONFIG"; then
4758  ac_pt_PKG_CONFIG=$PKG_CONFIG
4759  # Extract the first word of "pkg-config", so it can be a program name with args.
4760set dummy pkg-config; ac_word=$2
4761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4762$as_echo_n "checking for $ac_word... " >&6; }
4763if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4764  $as_echo_n "(cached) " >&6
4765else
4766  case $ac_pt_PKG_CONFIG in
4767  [\\/]* | ?:[\\/]*)
4768  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4769  ;;
4770  *)
4771  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772for as_dir in $PATH
4773do
4774  IFS=$as_save_IFS
4775  test -z "$as_dir" && as_dir=.
4776    for ac_exec_ext in '' $ac_executable_extensions; do
4777  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4778    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4779    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4780    break 2
4781  fi
4782done
4783  done
4784IFS=$as_save_IFS
4785
4786  ;;
4787esac
4788fi
4789ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4790if test -n "$ac_pt_PKG_CONFIG"; then
4791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4792$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4793else
4794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4795$as_echo "no" >&6; }
4796fi
4797
4798  if test "x$ac_pt_PKG_CONFIG" = x; then
4799    PKG_CONFIG=""
4800  else
4801    case $cross_compiling:$ac_tool_warned in
4802yes:)
4803{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4804$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4805ac_tool_warned=yes ;;
4806esac
4807    PKG_CONFIG=$ac_pt_PKG_CONFIG
4808  fi
4809else
4810  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4811fi
4812
4813fi
4814if test -n "$PKG_CONFIG"; then
4815	_pkg_min_version=0.9.0
4816	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4817$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4818	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4819		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4820$as_echo "yes" >&6; }
4821	else
4822		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4823$as_echo "no" >&6; }
4824		PKG_CONFIG=""
4825	fi
4826fi
4827# Make sure we can run config.sub.
4828$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4829  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4830
4831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4832$as_echo_n "checking build system type... " >&6; }
4833if ${ac_cv_build+:} false; then :
4834  $as_echo_n "(cached) " >&6
4835else
4836  ac_build_alias=$build_alias
4837test "x$ac_build_alias" = x &&
4838  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4839test "x$ac_build_alias" = x &&
4840  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4841ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4842  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4843
4844fi
4845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4846$as_echo "$ac_cv_build" >&6; }
4847case $ac_cv_build in
4848*-*-*) ;;
4849*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4850esac
4851build=$ac_cv_build
4852ac_save_IFS=$IFS; IFS='-'
4853set x $ac_cv_build
4854shift
4855build_cpu=$1
4856build_vendor=$2
4857shift; shift
4858# Remember, the first character of IFS is used to create $*,
4859# except with old shells:
4860build_os=$*
4861IFS=$ac_save_IFS
4862case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4863
4864
4865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4866$as_echo_n "checking host system type... " >&6; }
4867if ${ac_cv_host+:} false; then :
4868  $as_echo_n "(cached) " >&6
4869else
4870  if test "x$host_alias" = x; then
4871  ac_cv_host=$ac_cv_build
4872else
4873  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4874    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4875fi
4876
4877fi
4878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4879$as_echo "$ac_cv_host" >&6; }
4880case $ac_cv_host in
4881*-*-*) ;;
4882*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4883esac
4884host=$ac_cv_host
4885ac_save_IFS=$IFS; IFS='-'
4886set x $ac_cv_host
4887shift
4888host_cpu=$1
4889host_vendor=$2
4890shift; shift
4891# Remember, the first character of IFS is used to create $*,
4892# except with old shells:
4893host_os=$*
4894IFS=$ac_save_IFS
4895case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4896
4897
4898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4899$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4900if ${ac_cv_path_SED+:} false; then :
4901  $as_echo_n "(cached) " >&6
4902else
4903            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4904     for ac_i in 1 2 3 4 5 6 7; do
4905       ac_script="$ac_script$as_nl$ac_script"
4906     done
4907     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4908     { ac_script=; unset ac_script;}
4909     if test -z "$SED"; then
4910  ac_path_SED_found=false
4911  # Loop through the user's path and test for each of PROGNAME-LIST
4912  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913for as_dir in $PATH
4914do
4915  IFS=$as_save_IFS
4916  test -z "$as_dir" && as_dir=.
4917    for ac_prog in sed gsed; do
4918    for ac_exec_ext in '' $ac_executable_extensions; do
4919      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4920      as_fn_executable_p "$ac_path_SED" || continue
4921# Check for GNU ac_path_SED and select it if it is found.
4922  # Check for GNU $ac_path_SED
4923case `"$ac_path_SED" --version 2>&1` in
4924*GNU*)
4925  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4926*)
4927  ac_count=0
4928  $as_echo_n 0123456789 >"conftest.in"
4929  while :
4930  do
4931    cat "conftest.in" "conftest.in" >"conftest.tmp"
4932    mv "conftest.tmp" "conftest.in"
4933    cp "conftest.in" "conftest.nl"
4934    $as_echo '' >> "conftest.nl"
4935    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4936    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4937    as_fn_arith $ac_count + 1 && ac_count=$as_val
4938    if test $ac_count -gt ${ac_path_SED_max-0}; then
4939      # Best one so far, save it but keep looking for a better one
4940      ac_cv_path_SED="$ac_path_SED"
4941      ac_path_SED_max=$ac_count
4942    fi
4943    # 10*(2^10) chars as input seems more than enough
4944    test $ac_count -gt 10 && break
4945  done
4946  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4947esac
4948
4949      $ac_path_SED_found && break 3
4950    done
4951  done
4952  done
4953IFS=$as_save_IFS
4954  if test -z "$ac_cv_path_SED"; then
4955    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4956  fi
4957else
4958  ac_cv_path_SED=$SED
4959fi
4960
4961fi
4962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4963$as_echo "$ac_cv_path_SED" >&6; }
4964 SED="$ac_cv_path_SED"
4965  rm -f conftest.sed
4966
4967
4968
4969
4970
4971
4972# Check whether --enable-selective-werror was given.
4973if test "${enable_selective_werror+set}" = set; then :
4974  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4975else
4976  SELECTIVE_WERROR=yes
4977fi
4978
4979
4980
4981
4982
4983# -v is too short to test reliably with XORG_TESTSET_CFLAG
4984if test "x$SUNCC" = "xyes"; then
4985    BASE_CFLAGS="-v"
4986else
4987    BASE_CFLAGS=""
4988fi
4989
4990# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004xorg_testset_save_CFLAGS="$CFLAGS"
5005
5006if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5007	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5008	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5009$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5010if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5011  $as_echo_n "(cached) " >&6
5012else
5013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5014/* end confdefs.h.  */
5015int i;
5016_ACEOF
5017if ac_fn_c_try_compile "$LINENO"; then :
5018  xorg_cv_cc_flag_unknown_warning_option=yes
5019else
5020  xorg_cv_cc_flag_unknown_warning_option=no
5021fi
5022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5023fi
5024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5025$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5026	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5027	CFLAGS="$xorg_testset_save_CFLAGS"
5028fi
5029
5030if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5031	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5032		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5033	fi
5034	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5035	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5036$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5037if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5038  $as_echo_n "(cached) " >&6
5039else
5040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5041/* end confdefs.h.  */
5042int i;
5043_ACEOF
5044if ac_fn_c_try_compile "$LINENO"; then :
5045  xorg_cv_cc_flag_unused_command_line_argument=yes
5046else
5047  xorg_cv_cc_flag_unused_command_line_argument=no
5048fi
5049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5050fi
5051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5052$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5053	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5054	CFLAGS="$xorg_testset_save_CFLAGS"
5055fi
5056
5057found="no"
5058
5059	if test $found = "no" ; then
5060		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5061			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5062		fi
5063
5064		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5065			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5066		fi
5067
5068		CFLAGS="$CFLAGS -Wall"
5069
5070		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5071$as_echo_n "checking if $CC supports -Wall... " >&6; }
5072		cacheid=xorg_cv_cc_flag__Wall
5073		if eval \${$cacheid+:} false; then :
5074  $as_echo_n "(cached) " >&6
5075else
5076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5077/* end confdefs.h.  */
5078int i;
5079int
5080main ()
5081{
5082
5083  ;
5084  return 0;
5085}
5086_ACEOF
5087if ac_fn_c_try_link "$LINENO"; then :
5088  eval $cacheid=yes
5089else
5090  eval $cacheid=no
5091fi
5092rm -f core conftest.err conftest.$ac_objext \
5093    conftest$ac_exeext conftest.$ac_ext
5094fi
5095
5096
5097		CFLAGS="$xorg_testset_save_CFLAGS"
5098
5099		eval supported=\$$cacheid
5100		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5101$as_echo "$supported" >&6; }
5102		if test "$supported" = "yes" ; then
5103			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5104			found="yes"
5105		fi
5106	fi
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122xorg_testset_save_CFLAGS="$CFLAGS"
5123
5124if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5125	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5126	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5127$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5128if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5129  $as_echo_n "(cached) " >&6
5130else
5131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5132/* end confdefs.h.  */
5133int i;
5134_ACEOF
5135if ac_fn_c_try_compile "$LINENO"; then :
5136  xorg_cv_cc_flag_unknown_warning_option=yes
5137else
5138  xorg_cv_cc_flag_unknown_warning_option=no
5139fi
5140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5141fi
5142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5143$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5144	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5145	CFLAGS="$xorg_testset_save_CFLAGS"
5146fi
5147
5148if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5149	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5150		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5151	fi
5152	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5153	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5154$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5155if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5156  $as_echo_n "(cached) " >&6
5157else
5158  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5159/* end confdefs.h.  */
5160int i;
5161_ACEOF
5162if ac_fn_c_try_compile "$LINENO"; then :
5163  xorg_cv_cc_flag_unused_command_line_argument=yes
5164else
5165  xorg_cv_cc_flag_unused_command_line_argument=no
5166fi
5167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5168fi
5169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5170$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5171	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5172	CFLAGS="$xorg_testset_save_CFLAGS"
5173fi
5174
5175found="no"
5176
5177	if test $found = "no" ; then
5178		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5179			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5180		fi
5181
5182		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5183			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5184		fi
5185
5186		CFLAGS="$CFLAGS -Wpointer-arith"
5187
5188		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5189$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5190		cacheid=xorg_cv_cc_flag__Wpointer_arith
5191		if eval \${$cacheid+:} false; then :
5192  $as_echo_n "(cached) " >&6
5193else
5194  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5195/* end confdefs.h.  */
5196int i;
5197int
5198main ()
5199{
5200
5201  ;
5202  return 0;
5203}
5204_ACEOF
5205if ac_fn_c_try_link "$LINENO"; then :
5206  eval $cacheid=yes
5207else
5208  eval $cacheid=no
5209fi
5210rm -f core conftest.err conftest.$ac_objext \
5211    conftest$ac_exeext conftest.$ac_ext
5212fi
5213
5214
5215		CFLAGS="$xorg_testset_save_CFLAGS"
5216
5217		eval supported=\$$cacheid
5218		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5219$as_echo "$supported" >&6; }
5220		if test "$supported" = "yes" ; then
5221			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5222			found="yes"
5223		fi
5224	fi
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240xorg_testset_save_CFLAGS="$CFLAGS"
5241
5242if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5243	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5244	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5245$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5246if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5247  $as_echo_n "(cached) " >&6
5248else
5249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5250/* end confdefs.h.  */
5251int i;
5252_ACEOF
5253if ac_fn_c_try_compile "$LINENO"; then :
5254  xorg_cv_cc_flag_unknown_warning_option=yes
5255else
5256  xorg_cv_cc_flag_unknown_warning_option=no
5257fi
5258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5259fi
5260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5261$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5262	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5263	CFLAGS="$xorg_testset_save_CFLAGS"
5264fi
5265
5266if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5267	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5268		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5269	fi
5270	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5271	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5272$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5273if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5274  $as_echo_n "(cached) " >&6
5275else
5276  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277/* end confdefs.h.  */
5278int i;
5279_ACEOF
5280if ac_fn_c_try_compile "$LINENO"; then :
5281  xorg_cv_cc_flag_unused_command_line_argument=yes
5282else
5283  xorg_cv_cc_flag_unused_command_line_argument=no
5284fi
5285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5286fi
5287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5288$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5289	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5290	CFLAGS="$xorg_testset_save_CFLAGS"
5291fi
5292
5293found="no"
5294
5295	if test $found = "no" ; then
5296		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5297			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5298		fi
5299
5300		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5301			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5302		fi
5303
5304		CFLAGS="$CFLAGS -Wmissing-declarations"
5305
5306		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5307$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5308		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5309		if eval \${$cacheid+:} false; then :
5310  $as_echo_n "(cached) " >&6
5311else
5312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5313/* end confdefs.h.  */
5314int i;
5315int
5316main ()
5317{
5318
5319  ;
5320  return 0;
5321}
5322_ACEOF
5323if ac_fn_c_try_link "$LINENO"; then :
5324  eval $cacheid=yes
5325else
5326  eval $cacheid=no
5327fi
5328rm -f core conftest.err conftest.$ac_objext \
5329    conftest$ac_exeext conftest.$ac_ext
5330fi
5331
5332
5333		CFLAGS="$xorg_testset_save_CFLAGS"
5334
5335		eval supported=\$$cacheid
5336		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5337$as_echo "$supported" >&6; }
5338		if test "$supported" = "yes" ; then
5339			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5340			found="yes"
5341		fi
5342	fi
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358xorg_testset_save_CFLAGS="$CFLAGS"
5359
5360if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5361	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5362	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5363$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5364if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5365  $as_echo_n "(cached) " >&6
5366else
5367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5368/* end confdefs.h.  */
5369int i;
5370_ACEOF
5371if ac_fn_c_try_compile "$LINENO"; then :
5372  xorg_cv_cc_flag_unknown_warning_option=yes
5373else
5374  xorg_cv_cc_flag_unknown_warning_option=no
5375fi
5376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5377fi
5378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5379$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5380	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5381	CFLAGS="$xorg_testset_save_CFLAGS"
5382fi
5383
5384if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5385	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5386		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5387	fi
5388	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5389	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5390$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5391if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5392  $as_echo_n "(cached) " >&6
5393else
5394  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5395/* end confdefs.h.  */
5396int i;
5397_ACEOF
5398if ac_fn_c_try_compile "$LINENO"; then :
5399  xorg_cv_cc_flag_unused_command_line_argument=yes
5400else
5401  xorg_cv_cc_flag_unused_command_line_argument=no
5402fi
5403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5404fi
5405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5406$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5407	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5408	CFLAGS="$xorg_testset_save_CFLAGS"
5409fi
5410
5411found="no"
5412
5413	if test $found = "no" ; then
5414		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5415			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5416		fi
5417
5418		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5419			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5420		fi
5421
5422		CFLAGS="$CFLAGS -Wformat=2"
5423
5424		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5425$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5426		cacheid=xorg_cv_cc_flag__Wformat_2
5427		if eval \${$cacheid+:} false; then :
5428  $as_echo_n "(cached) " >&6
5429else
5430  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5431/* end confdefs.h.  */
5432int i;
5433int
5434main ()
5435{
5436
5437  ;
5438  return 0;
5439}
5440_ACEOF
5441if ac_fn_c_try_link "$LINENO"; then :
5442  eval $cacheid=yes
5443else
5444  eval $cacheid=no
5445fi
5446rm -f core conftest.err conftest.$ac_objext \
5447    conftest$ac_exeext conftest.$ac_ext
5448fi
5449
5450
5451		CFLAGS="$xorg_testset_save_CFLAGS"
5452
5453		eval supported=\$$cacheid
5454		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5455$as_echo "$supported" >&6; }
5456		if test "$supported" = "yes" ; then
5457			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5458			found="yes"
5459		fi
5460	fi
5461
5462	if test $found = "no" ; then
5463		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5464			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5465		fi
5466
5467		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5468			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5469		fi
5470
5471		CFLAGS="$CFLAGS -Wformat"
5472
5473		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5474$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5475		cacheid=xorg_cv_cc_flag__Wformat
5476		if eval \${$cacheid+:} false; then :
5477  $as_echo_n "(cached) " >&6
5478else
5479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480/* end confdefs.h.  */
5481int i;
5482int
5483main ()
5484{
5485
5486  ;
5487  return 0;
5488}
5489_ACEOF
5490if ac_fn_c_try_link "$LINENO"; then :
5491  eval $cacheid=yes
5492else
5493  eval $cacheid=no
5494fi
5495rm -f core conftest.err conftest.$ac_objext \
5496    conftest$ac_exeext conftest.$ac_ext
5497fi
5498
5499
5500		CFLAGS="$xorg_testset_save_CFLAGS"
5501
5502		eval supported=\$$cacheid
5503		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5504$as_echo "$supported" >&6; }
5505		if test "$supported" = "yes" ; then
5506			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5507			found="yes"
5508		fi
5509	fi
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527xorg_testset_save_CFLAGS="$CFLAGS"
5528
5529if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5530	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5531	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5532$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5533if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5534  $as_echo_n "(cached) " >&6
5535else
5536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5537/* end confdefs.h.  */
5538int i;
5539_ACEOF
5540if ac_fn_c_try_compile "$LINENO"; then :
5541  xorg_cv_cc_flag_unknown_warning_option=yes
5542else
5543  xorg_cv_cc_flag_unknown_warning_option=no
5544fi
5545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5546fi
5547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5548$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5549	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5550	CFLAGS="$xorg_testset_save_CFLAGS"
5551fi
5552
5553if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5554	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5555		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5556	fi
5557	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5558	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5559$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5560if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5561  $as_echo_n "(cached) " >&6
5562else
5563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5564/* end confdefs.h.  */
5565int i;
5566_ACEOF
5567if ac_fn_c_try_compile "$LINENO"; then :
5568  xorg_cv_cc_flag_unused_command_line_argument=yes
5569else
5570  xorg_cv_cc_flag_unused_command_line_argument=no
5571fi
5572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5573fi
5574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5575$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5576	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5577	CFLAGS="$xorg_testset_save_CFLAGS"
5578fi
5579
5580found="no"
5581
5582	if test $found = "no" ; then
5583		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5584			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5585		fi
5586
5587		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5588			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5589		fi
5590
5591		CFLAGS="$CFLAGS -Wstrict-prototypes"
5592
5593		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5594$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5595		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5596		if eval \${$cacheid+:} false; then :
5597  $as_echo_n "(cached) " >&6
5598else
5599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5600/* end confdefs.h.  */
5601int i;
5602int
5603main ()
5604{
5605
5606  ;
5607  return 0;
5608}
5609_ACEOF
5610if ac_fn_c_try_link "$LINENO"; then :
5611  eval $cacheid=yes
5612else
5613  eval $cacheid=no
5614fi
5615rm -f core conftest.err conftest.$ac_objext \
5616    conftest$ac_exeext conftest.$ac_ext
5617fi
5618
5619
5620		CFLAGS="$xorg_testset_save_CFLAGS"
5621
5622		eval supported=\$$cacheid
5623		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5624$as_echo "$supported" >&6; }
5625		if test "$supported" = "yes" ; then
5626			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5627			found="yes"
5628		fi
5629	fi
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645xorg_testset_save_CFLAGS="$CFLAGS"
5646
5647if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5648	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5649	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5650$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5651if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5652  $as_echo_n "(cached) " >&6
5653else
5654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5655/* end confdefs.h.  */
5656int i;
5657_ACEOF
5658if ac_fn_c_try_compile "$LINENO"; then :
5659  xorg_cv_cc_flag_unknown_warning_option=yes
5660else
5661  xorg_cv_cc_flag_unknown_warning_option=no
5662fi
5663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5664fi
5665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5666$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5667	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5668	CFLAGS="$xorg_testset_save_CFLAGS"
5669fi
5670
5671if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5672	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5673		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5674	fi
5675	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5676	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5677$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5678if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5679  $as_echo_n "(cached) " >&6
5680else
5681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5682/* end confdefs.h.  */
5683int i;
5684_ACEOF
5685if ac_fn_c_try_compile "$LINENO"; then :
5686  xorg_cv_cc_flag_unused_command_line_argument=yes
5687else
5688  xorg_cv_cc_flag_unused_command_line_argument=no
5689fi
5690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5691fi
5692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5693$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5694	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5695	CFLAGS="$xorg_testset_save_CFLAGS"
5696fi
5697
5698found="no"
5699
5700	if test $found = "no" ; then
5701		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5702			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5703		fi
5704
5705		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5706			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5707		fi
5708
5709		CFLAGS="$CFLAGS -Wmissing-prototypes"
5710
5711		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5712$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5713		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5714		if eval \${$cacheid+:} false; then :
5715  $as_echo_n "(cached) " >&6
5716else
5717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5718/* end confdefs.h.  */
5719int i;
5720int
5721main ()
5722{
5723
5724  ;
5725  return 0;
5726}
5727_ACEOF
5728if ac_fn_c_try_link "$LINENO"; then :
5729  eval $cacheid=yes
5730else
5731  eval $cacheid=no
5732fi
5733rm -f core conftest.err conftest.$ac_objext \
5734    conftest$ac_exeext conftest.$ac_ext
5735fi
5736
5737
5738		CFLAGS="$xorg_testset_save_CFLAGS"
5739
5740		eval supported=\$$cacheid
5741		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5742$as_echo "$supported" >&6; }
5743		if test "$supported" = "yes" ; then
5744			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5745			found="yes"
5746		fi
5747	fi
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763xorg_testset_save_CFLAGS="$CFLAGS"
5764
5765if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5766	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5767	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5768$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5769if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5770  $as_echo_n "(cached) " >&6
5771else
5772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5773/* end confdefs.h.  */
5774int i;
5775_ACEOF
5776if ac_fn_c_try_compile "$LINENO"; then :
5777  xorg_cv_cc_flag_unknown_warning_option=yes
5778else
5779  xorg_cv_cc_flag_unknown_warning_option=no
5780fi
5781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5782fi
5783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5784$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5785	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5786	CFLAGS="$xorg_testset_save_CFLAGS"
5787fi
5788
5789if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5790	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5791		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5792	fi
5793	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5794	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5795$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5796if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5797  $as_echo_n "(cached) " >&6
5798else
5799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5800/* end confdefs.h.  */
5801int i;
5802_ACEOF
5803if ac_fn_c_try_compile "$LINENO"; then :
5804  xorg_cv_cc_flag_unused_command_line_argument=yes
5805else
5806  xorg_cv_cc_flag_unused_command_line_argument=no
5807fi
5808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5809fi
5810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5811$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5812	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5813	CFLAGS="$xorg_testset_save_CFLAGS"
5814fi
5815
5816found="no"
5817
5818	if test $found = "no" ; then
5819		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5820			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5821		fi
5822
5823		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5824			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5825		fi
5826
5827		CFLAGS="$CFLAGS -Wnested-externs"
5828
5829		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5830$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5831		cacheid=xorg_cv_cc_flag__Wnested_externs
5832		if eval \${$cacheid+:} false; then :
5833  $as_echo_n "(cached) " >&6
5834else
5835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5836/* end confdefs.h.  */
5837int i;
5838int
5839main ()
5840{
5841
5842  ;
5843  return 0;
5844}
5845_ACEOF
5846if ac_fn_c_try_link "$LINENO"; then :
5847  eval $cacheid=yes
5848else
5849  eval $cacheid=no
5850fi
5851rm -f core conftest.err conftest.$ac_objext \
5852    conftest$ac_exeext conftest.$ac_ext
5853fi
5854
5855
5856		CFLAGS="$xorg_testset_save_CFLAGS"
5857
5858		eval supported=\$$cacheid
5859		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5860$as_echo "$supported" >&6; }
5861		if test "$supported" = "yes" ; then
5862			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5863			found="yes"
5864		fi
5865	fi
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881xorg_testset_save_CFLAGS="$CFLAGS"
5882
5883if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5884	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5885	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5886$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5887if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5888  $as_echo_n "(cached) " >&6
5889else
5890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5891/* end confdefs.h.  */
5892int i;
5893_ACEOF
5894if ac_fn_c_try_compile "$LINENO"; then :
5895  xorg_cv_cc_flag_unknown_warning_option=yes
5896else
5897  xorg_cv_cc_flag_unknown_warning_option=no
5898fi
5899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5900fi
5901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5902$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5903	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5904	CFLAGS="$xorg_testset_save_CFLAGS"
5905fi
5906
5907if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5908	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5909		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5910	fi
5911	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5912	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5913$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5914if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5915  $as_echo_n "(cached) " >&6
5916else
5917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5918/* end confdefs.h.  */
5919int i;
5920_ACEOF
5921if ac_fn_c_try_compile "$LINENO"; then :
5922  xorg_cv_cc_flag_unused_command_line_argument=yes
5923else
5924  xorg_cv_cc_flag_unused_command_line_argument=no
5925fi
5926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5927fi
5928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5929$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5930	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5931	CFLAGS="$xorg_testset_save_CFLAGS"
5932fi
5933
5934found="no"
5935
5936	if test $found = "no" ; then
5937		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5938			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5939		fi
5940
5941		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5942			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5943		fi
5944
5945		CFLAGS="$CFLAGS -Wbad-function-cast"
5946
5947		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5948$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5949		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5950		if eval \${$cacheid+:} false; then :
5951  $as_echo_n "(cached) " >&6
5952else
5953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5954/* end confdefs.h.  */
5955int i;
5956int
5957main ()
5958{
5959
5960  ;
5961  return 0;
5962}
5963_ACEOF
5964if ac_fn_c_try_link "$LINENO"; then :
5965  eval $cacheid=yes
5966else
5967  eval $cacheid=no
5968fi
5969rm -f core conftest.err conftest.$ac_objext \
5970    conftest$ac_exeext conftest.$ac_ext
5971fi
5972
5973
5974		CFLAGS="$xorg_testset_save_CFLAGS"
5975
5976		eval supported=\$$cacheid
5977		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5978$as_echo "$supported" >&6; }
5979		if test "$supported" = "yes" ; then
5980			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5981			found="yes"
5982		fi
5983	fi
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999xorg_testset_save_CFLAGS="$CFLAGS"
6000
6001if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6002	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6003	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6004$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6005if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6006  $as_echo_n "(cached) " >&6
6007else
6008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6009/* end confdefs.h.  */
6010int i;
6011_ACEOF
6012if ac_fn_c_try_compile "$LINENO"; then :
6013  xorg_cv_cc_flag_unknown_warning_option=yes
6014else
6015  xorg_cv_cc_flag_unknown_warning_option=no
6016fi
6017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6018fi
6019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6020$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6021	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6022	CFLAGS="$xorg_testset_save_CFLAGS"
6023fi
6024
6025if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6026	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6027		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6028	fi
6029	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6030	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6031$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6032if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6033  $as_echo_n "(cached) " >&6
6034else
6035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6036/* end confdefs.h.  */
6037int i;
6038_ACEOF
6039if ac_fn_c_try_compile "$LINENO"; then :
6040  xorg_cv_cc_flag_unused_command_line_argument=yes
6041else
6042  xorg_cv_cc_flag_unused_command_line_argument=no
6043fi
6044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6045fi
6046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6047$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6048	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6049	CFLAGS="$xorg_testset_save_CFLAGS"
6050fi
6051
6052found="no"
6053
6054	if test $found = "no" ; then
6055		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6056			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6057		fi
6058
6059		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6060			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6061		fi
6062
6063		CFLAGS="$CFLAGS -Wold-style-definition"
6064
6065		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6066$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
6067		cacheid=xorg_cv_cc_flag__Wold_style_definition
6068		if eval \${$cacheid+:} false; then :
6069  $as_echo_n "(cached) " >&6
6070else
6071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6072/* end confdefs.h.  */
6073int i;
6074int
6075main ()
6076{
6077
6078  ;
6079  return 0;
6080}
6081_ACEOF
6082if ac_fn_c_try_link "$LINENO"; then :
6083  eval $cacheid=yes
6084else
6085  eval $cacheid=no
6086fi
6087rm -f core conftest.err conftest.$ac_objext \
6088    conftest$ac_exeext conftest.$ac_ext
6089fi
6090
6091
6092		CFLAGS="$xorg_testset_save_CFLAGS"
6093
6094		eval supported=\$$cacheid
6095		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6096$as_echo "$supported" >&6; }
6097		if test "$supported" = "yes" ; then
6098			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6099			found="yes"
6100		fi
6101	fi
6102
6103	if test $found = "no" ; then
6104		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6105			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6106		fi
6107
6108		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6109			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6110		fi
6111
6112		CFLAGS="$CFLAGS -fd"
6113
6114		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6115$as_echo_n "checking if $CC supports -fd... " >&6; }
6116		cacheid=xorg_cv_cc_flag__fd
6117		if eval \${$cacheid+:} false; then :
6118  $as_echo_n "(cached) " >&6
6119else
6120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6121/* end confdefs.h.  */
6122int i;
6123int
6124main ()
6125{
6126
6127  ;
6128  return 0;
6129}
6130_ACEOF
6131if ac_fn_c_try_link "$LINENO"; then :
6132  eval $cacheid=yes
6133else
6134  eval $cacheid=no
6135fi
6136rm -f core conftest.err conftest.$ac_objext \
6137    conftest$ac_exeext conftest.$ac_ext
6138fi
6139
6140
6141		CFLAGS="$xorg_testset_save_CFLAGS"
6142
6143		eval supported=\$$cacheid
6144		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6145$as_echo "$supported" >&6; }
6146		if test "$supported" = "yes" ; then
6147			BASE_CFLAGS="$BASE_CFLAGS -fd"
6148			found="yes"
6149		fi
6150	fi
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166xorg_testset_save_CFLAGS="$CFLAGS"
6167
6168if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6169	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6170	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6171$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6172if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6173  $as_echo_n "(cached) " >&6
6174else
6175  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6176/* end confdefs.h.  */
6177int i;
6178_ACEOF
6179if ac_fn_c_try_compile "$LINENO"; then :
6180  xorg_cv_cc_flag_unknown_warning_option=yes
6181else
6182  xorg_cv_cc_flag_unknown_warning_option=no
6183fi
6184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6185fi
6186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6187$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6188	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6189	CFLAGS="$xorg_testset_save_CFLAGS"
6190fi
6191
6192if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6193	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6194		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6195	fi
6196	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6197	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6198$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6199if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6200  $as_echo_n "(cached) " >&6
6201else
6202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6203/* end confdefs.h.  */
6204int i;
6205_ACEOF
6206if ac_fn_c_try_compile "$LINENO"; then :
6207  xorg_cv_cc_flag_unused_command_line_argument=yes
6208else
6209  xorg_cv_cc_flag_unused_command_line_argument=no
6210fi
6211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6212fi
6213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6214$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6215	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6216	CFLAGS="$xorg_testset_save_CFLAGS"
6217fi
6218
6219found="no"
6220
6221	if test $found = "no" ; then
6222		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6223			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6224		fi
6225
6226		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6227			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6228		fi
6229
6230		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6231
6232		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6233$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6234		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6235		if eval \${$cacheid+:} false; then :
6236  $as_echo_n "(cached) " >&6
6237else
6238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6239/* end confdefs.h.  */
6240int i;
6241int
6242main ()
6243{
6244
6245  ;
6246  return 0;
6247}
6248_ACEOF
6249if ac_fn_c_try_link "$LINENO"; then :
6250  eval $cacheid=yes
6251else
6252  eval $cacheid=no
6253fi
6254rm -f core conftest.err conftest.$ac_objext \
6255    conftest$ac_exeext conftest.$ac_ext
6256fi
6257
6258
6259		CFLAGS="$xorg_testset_save_CFLAGS"
6260
6261		eval supported=\$$cacheid
6262		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6263$as_echo "$supported" >&6; }
6264		if test "$supported" = "yes" ; then
6265			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6266			found="yes"
6267		fi
6268	fi
6269
6270
6271
6272
6273
6274# This chunk adds additional warnings that could catch undesired effects.
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288xorg_testset_save_CFLAGS="$CFLAGS"
6289
6290if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6291	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6292	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6293$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6294if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6295  $as_echo_n "(cached) " >&6
6296else
6297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6298/* end confdefs.h.  */
6299int i;
6300_ACEOF
6301if ac_fn_c_try_compile "$LINENO"; then :
6302  xorg_cv_cc_flag_unknown_warning_option=yes
6303else
6304  xorg_cv_cc_flag_unknown_warning_option=no
6305fi
6306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6307fi
6308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6309$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6310	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6311	CFLAGS="$xorg_testset_save_CFLAGS"
6312fi
6313
6314if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6315	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6316		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6317	fi
6318	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6319	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6320$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6321if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6322  $as_echo_n "(cached) " >&6
6323else
6324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6325/* end confdefs.h.  */
6326int i;
6327_ACEOF
6328if ac_fn_c_try_compile "$LINENO"; then :
6329  xorg_cv_cc_flag_unused_command_line_argument=yes
6330else
6331  xorg_cv_cc_flag_unused_command_line_argument=no
6332fi
6333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6334fi
6335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6336$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6337	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6338	CFLAGS="$xorg_testset_save_CFLAGS"
6339fi
6340
6341found="no"
6342
6343	if test $found = "no" ; then
6344		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6345			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6346		fi
6347
6348		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6349			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6350		fi
6351
6352		CFLAGS="$CFLAGS -Wunused"
6353
6354		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6355$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6356		cacheid=xorg_cv_cc_flag__Wunused
6357		if eval \${$cacheid+:} false; then :
6358  $as_echo_n "(cached) " >&6
6359else
6360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6361/* end confdefs.h.  */
6362int i;
6363int
6364main ()
6365{
6366
6367  ;
6368  return 0;
6369}
6370_ACEOF
6371if ac_fn_c_try_link "$LINENO"; then :
6372  eval $cacheid=yes
6373else
6374  eval $cacheid=no
6375fi
6376rm -f core conftest.err conftest.$ac_objext \
6377    conftest$ac_exeext conftest.$ac_ext
6378fi
6379
6380
6381		CFLAGS="$xorg_testset_save_CFLAGS"
6382
6383		eval supported=\$$cacheid
6384		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6385$as_echo "$supported" >&6; }
6386		if test "$supported" = "yes" ; then
6387			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6388			found="yes"
6389		fi
6390	fi
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406xorg_testset_save_CFLAGS="$CFLAGS"
6407
6408if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6409	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6410	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6411$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6412if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6413  $as_echo_n "(cached) " >&6
6414else
6415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6416/* end confdefs.h.  */
6417int i;
6418_ACEOF
6419if ac_fn_c_try_compile "$LINENO"; then :
6420  xorg_cv_cc_flag_unknown_warning_option=yes
6421else
6422  xorg_cv_cc_flag_unknown_warning_option=no
6423fi
6424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6425fi
6426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6427$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6428	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6429	CFLAGS="$xorg_testset_save_CFLAGS"
6430fi
6431
6432if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6433	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6434		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6435	fi
6436	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6437	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6438$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6439if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6440  $as_echo_n "(cached) " >&6
6441else
6442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6443/* end confdefs.h.  */
6444int i;
6445_ACEOF
6446if ac_fn_c_try_compile "$LINENO"; then :
6447  xorg_cv_cc_flag_unused_command_line_argument=yes
6448else
6449  xorg_cv_cc_flag_unused_command_line_argument=no
6450fi
6451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6452fi
6453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6454$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6455	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6456	CFLAGS="$xorg_testset_save_CFLAGS"
6457fi
6458
6459found="no"
6460
6461	if test $found = "no" ; then
6462		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6463			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6464		fi
6465
6466		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6467			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6468		fi
6469
6470		CFLAGS="$CFLAGS -Wuninitialized"
6471
6472		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6473$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6474		cacheid=xorg_cv_cc_flag__Wuninitialized
6475		if eval \${$cacheid+:} false; then :
6476  $as_echo_n "(cached) " >&6
6477else
6478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6479/* end confdefs.h.  */
6480int i;
6481int
6482main ()
6483{
6484
6485  ;
6486  return 0;
6487}
6488_ACEOF
6489if ac_fn_c_try_link "$LINENO"; then :
6490  eval $cacheid=yes
6491else
6492  eval $cacheid=no
6493fi
6494rm -f core conftest.err conftest.$ac_objext \
6495    conftest$ac_exeext conftest.$ac_ext
6496fi
6497
6498
6499		CFLAGS="$xorg_testset_save_CFLAGS"
6500
6501		eval supported=\$$cacheid
6502		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6503$as_echo "$supported" >&6; }
6504		if test "$supported" = "yes" ; then
6505			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6506			found="yes"
6507		fi
6508	fi
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524xorg_testset_save_CFLAGS="$CFLAGS"
6525
6526if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6527	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6528	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6529$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6530if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6531  $as_echo_n "(cached) " >&6
6532else
6533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6534/* end confdefs.h.  */
6535int i;
6536_ACEOF
6537if ac_fn_c_try_compile "$LINENO"; then :
6538  xorg_cv_cc_flag_unknown_warning_option=yes
6539else
6540  xorg_cv_cc_flag_unknown_warning_option=no
6541fi
6542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6543fi
6544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6545$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6546	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6547	CFLAGS="$xorg_testset_save_CFLAGS"
6548fi
6549
6550if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6551	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6552		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6553	fi
6554	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6555	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6556$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6557if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6558  $as_echo_n "(cached) " >&6
6559else
6560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6561/* end confdefs.h.  */
6562int i;
6563_ACEOF
6564if ac_fn_c_try_compile "$LINENO"; then :
6565  xorg_cv_cc_flag_unused_command_line_argument=yes
6566else
6567  xorg_cv_cc_flag_unused_command_line_argument=no
6568fi
6569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6570fi
6571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6572$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6573	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6574	CFLAGS="$xorg_testset_save_CFLAGS"
6575fi
6576
6577found="no"
6578
6579	if test $found = "no" ; then
6580		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6581			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6582		fi
6583
6584		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6585			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6586		fi
6587
6588		CFLAGS="$CFLAGS -Wshadow"
6589
6590		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6591$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6592		cacheid=xorg_cv_cc_flag__Wshadow
6593		if eval \${$cacheid+:} false; then :
6594  $as_echo_n "(cached) " >&6
6595else
6596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6597/* end confdefs.h.  */
6598int i;
6599int
6600main ()
6601{
6602
6603  ;
6604  return 0;
6605}
6606_ACEOF
6607if ac_fn_c_try_link "$LINENO"; then :
6608  eval $cacheid=yes
6609else
6610  eval $cacheid=no
6611fi
6612rm -f core conftest.err conftest.$ac_objext \
6613    conftest$ac_exeext conftest.$ac_ext
6614fi
6615
6616
6617		CFLAGS="$xorg_testset_save_CFLAGS"
6618
6619		eval supported=\$$cacheid
6620		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6621$as_echo "$supported" >&6; }
6622		if test "$supported" = "yes" ; then
6623			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6624			found="yes"
6625		fi
6626	fi
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642xorg_testset_save_CFLAGS="$CFLAGS"
6643
6644if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6645	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6646	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6647$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6648if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6649  $as_echo_n "(cached) " >&6
6650else
6651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6652/* end confdefs.h.  */
6653int i;
6654_ACEOF
6655if ac_fn_c_try_compile "$LINENO"; then :
6656  xorg_cv_cc_flag_unknown_warning_option=yes
6657else
6658  xorg_cv_cc_flag_unknown_warning_option=no
6659fi
6660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6661fi
6662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6663$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6664	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6665	CFLAGS="$xorg_testset_save_CFLAGS"
6666fi
6667
6668if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6669	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6670		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6671	fi
6672	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6673	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6674$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6675if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6676  $as_echo_n "(cached) " >&6
6677else
6678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6679/* end confdefs.h.  */
6680int i;
6681_ACEOF
6682if ac_fn_c_try_compile "$LINENO"; then :
6683  xorg_cv_cc_flag_unused_command_line_argument=yes
6684else
6685  xorg_cv_cc_flag_unused_command_line_argument=no
6686fi
6687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6688fi
6689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6690$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6691	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6692	CFLAGS="$xorg_testset_save_CFLAGS"
6693fi
6694
6695found="no"
6696
6697	if test $found = "no" ; then
6698		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6699			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6700		fi
6701
6702		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6703			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6704		fi
6705
6706		CFLAGS="$CFLAGS -Wmissing-noreturn"
6707
6708		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6709$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6710		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6711		if eval \${$cacheid+:} false; then :
6712  $as_echo_n "(cached) " >&6
6713else
6714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6715/* end confdefs.h.  */
6716int i;
6717int
6718main ()
6719{
6720
6721  ;
6722  return 0;
6723}
6724_ACEOF
6725if ac_fn_c_try_link "$LINENO"; then :
6726  eval $cacheid=yes
6727else
6728  eval $cacheid=no
6729fi
6730rm -f core conftest.err conftest.$ac_objext \
6731    conftest$ac_exeext conftest.$ac_ext
6732fi
6733
6734
6735		CFLAGS="$xorg_testset_save_CFLAGS"
6736
6737		eval supported=\$$cacheid
6738		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6739$as_echo "$supported" >&6; }
6740		if test "$supported" = "yes" ; then
6741			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6742			found="yes"
6743		fi
6744	fi
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760xorg_testset_save_CFLAGS="$CFLAGS"
6761
6762if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6763	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6764	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6765$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6766if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6767  $as_echo_n "(cached) " >&6
6768else
6769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6770/* end confdefs.h.  */
6771int i;
6772_ACEOF
6773if ac_fn_c_try_compile "$LINENO"; then :
6774  xorg_cv_cc_flag_unknown_warning_option=yes
6775else
6776  xorg_cv_cc_flag_unknown_warning_option=no
6777fi
6778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6779fi
6780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6781$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6782	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6783	CFLAGS="$xorg_testset_save_CFLAGS"
6784fi
6785
6786if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6787	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6788		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6789	fi
6790	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6791	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6792$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6793if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6794  $as_echo_n "(cached) " >&6
6795else
6796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6797/* end confdefs.h.  */
6798int i;
6799_ACEOF
6800if ac_fn_c_try_compile "$LINENO"; then :
6801  xorg_cv_cc_flag_unused_command_line_argument=yes
6802else
6803  xorg_cv_cc_flag_unused_command_line_argument=no
6804fi
6805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6806fi
6807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6808$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6809	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6810	CFLAGS="$xorg_testset_save_CFLAGS"
6811fi
6812
6813found="no"
6814
6815	if test $found = "no" ; then
6816		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6817			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6818		fi
6819
6820		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6821			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6822		fi
6823
6824		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6825
6826		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6827$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6828		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6829		if eval \${$cacheid+:} false; then :
6830  $as_echo_n "(cached) " >&6
6831else
6832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6833/* end confdefs.h.  */
6834int i;
6835int
6836main ()
6837{
6838
6839  ;
6840  return 0;
6841}
6842_ACEOF
6843if ac_fn_c_try_link "$LINENO"; then :
6844  eval $cacheid=yes
6845else
6846  eval $cacheid=no
6847fi
6848rm -f core conftest.err conftest.$ac_objext \
6849    conftest$ac_exeext conftest.$ac_ext
6850fi
6851
6852
6853		CFLAGS="$xorg_testset_save_CFLAGS"
6854
6855		eval supported=\$$cacheid
6856		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6857$as_echo "$supported" >&6; }
6858		if test "$supported" = "yes" ; then
6859			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6860			found="yes"
6861		fi
6862	fi
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878xorg_testset_save_CFLAGS="$CFLAGS"
6879
6880if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6881	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6882	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6883$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6884if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6885  $as_echo_n "(cached) " >&6
6886else
6887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6888/* end confdefs.h.  */
6889int i;
6890_ACEOF
6891if ac_fn_c_try_compile "$LINENO"; then :
6892  xorg_cv_cc_flag_unknown_warning_option=yes
6893else
6894  xorg_cv_cc_flag_unknown_warning_option=no
6895fi
6896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6897fi
6898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6899$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6900	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6901	CFLAGS="$xorg_testset_save_CFLAGS"
6902fi
6903
6904if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6905	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6906		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6907	fi
6908	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6909	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6910$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6911if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6912  $as_echo_n "(cached) " >&6
6913else
6914  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6915/* end confdefs.h.  */
6916int i;
6917_ACEOF
6918if ac_fn_c_try_compile "$LINENO"; then :
6919  xorg_cv_cc_flag_unused_command_line_argument=yes
6920else
6921  xorg_cv_cc_flag_unused_command_line_argument=no
6922fi
6923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6924fi
6925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6926$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6927	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6928	CFLAGS="$xorg_testset_save_CFLAGS"
6929fi
6930
6931found="no"
6932
6933	if test $found = "no" ; then
6934		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6935			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6936		fi
6937
6938		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6939			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6940		fi
6941
6942		CFLAGS="$CFLAGS -Wredundant-decls"
6943
6944		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6945$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6946		cacheid=xorg_cv_cc_flag__Wredundant_decls
6947		if eval \${$cacheid+:} false; then :
6948  $as_echo_n "(cached) " >&6
6949else
6950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6951/* end confdefs.h.  */
6952int i;
6953int
6954main ()
6955{
6956
6957  ;
6958  return 0;
6959}
6960_ACEOF
6961if ac_fn_c_try_link "$LINENO"; then :
6962  eval $cacheid=yes
6963else
6964  eval $cacheid=no
6965fi
6966rm -f core conftest.err conftest.$ac_objext \
6967    conftest$ac_exeext conftest.$ac_ext
6968fi
6969
6970
6971		CFLAGS="$xorg_testset_save_CFLAGS"
6972
6973		eval supported=\$$cacheid
6974		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6975$as_echo "$supported" >&6; }
6976		if test "$supported" = "yes" ; then
6977			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6978			found="yes"
6979		fi
6980	fi
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996xorg_testset_save_CFLAGS="$CFLAGS"
6997
6998if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6999	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7000	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7001$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7002if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7003  $as_echo_n "(cached) " >&6
7004else
7005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7006/* end confdefs.h.  */
7007int i;
7008_ACEOF
7009if ac_fn_c_try_compile "$LINENO"; then :
7010  xorg_cv_cc_flag_unknown_warning_option=yes
7011else
7012  xorg_cv_cc_flag_unknown_warning_option=no
7013fi
7014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7015fi
7016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7017$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7018	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7019	CFLAGS="$xorg_testset_save_CFLAGS"
7020fi
7021
7022if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7023	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7024		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7025	fi
7026	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7027	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7028$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7029if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7030  $as_echo_n "(cached) " >&6
7031else
7032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7033/* end confdefs.h.  */
7034int i;
7035_ACEOF
7036if ac_fn_c_try_compile "$LINENO"; then :
7037  xorg_cv_cc_flag_unused_command_line_argument=yes
7038else
7039  xorg_cv_cc_flag_unused_command_line_argument=no
7040fi
7041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7042fi
7043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7044$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7045	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7046	CFLAGS="$xorg_testset_save_CFLAGS"
7047fi
7048
7049found="no"
7050
7051	if test $found = "no" ; then
7052		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7053			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7054		fi
7055
7056		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7057			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7058		fi
7059
7060		CFLAGS="$CFLAGS -Wlogical-op"
7061
7062		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7063$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
7064		cacheid=xorg_cv_cc_flag__Wlogical_op
7065		if eval \${$cacheid+:} false; then :
7066  $as_echo_n "(cached) " >&6
7067else
7068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7069/* end confdefs.h.  */
7070int i;
7071int
7072main ()
7073{
7074
7075  ;
7076  return 0;
7077}
7078_ACEOF
7079if ac_fn_c_try_link "$LINENO"; then :
7080  eval $cacheid=yes
7081else
7082  eval $cacheid=no
7083fi
7084rm -f core conftest.err conftest.$ac_objext \
7085    conftest$ac_exeext conftest.$ac_ext
7086fi
7087
7088
7089		CFLAGS="$xorg_testset_save_CFLAGS"
7090
7091		eval supported=\$$cacheid
7092		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7093$as_echo "$supported" >&6; }
7094		if test "$supported" = "yes" ; then
7095			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7096			found="yes"
7097		fi
7098	fi
7099
7100
7101
7102# These are currently disabled because they are noisy.  They will be enabled
7103# in the future once the codebase is sufficiently modernized to silence
7104# them.  For now, I don't want them to drown out the other warnings.
7105# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7106# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7107# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7108
7109# Turn some warnings into errors, so we don't accidently get successful builds
7110# when there are problems that should be fixed.
7111
7112if test "x$SELECTIVE_WERROR" = "xyes" ; then
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126xorg_testset_save_CFLAGS="$CFLAGS"
7127
7128if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7129	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7130	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7131$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7132if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7133  $as_echo_n "(cached) " >&6
7134else
7135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7136/* end confdefs.h.  */
7137int i;
7138_ACEOF
7139if ac_fn_c_try_compile "$LINENO"; then :
7140  xorg_cv_cc_flag_unknown_warning_option=yes
7141else
7142  xorg_cv_cc_flag_unknown_warning_option=no
7143fi
7144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7145fi
7146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7147$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7148	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7149	CFLAGS="$xorg_testset_save_CFLAGS"
7150fi
7151
7152if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7153	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7154		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7155	fi
7156	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7157	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7158$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7159if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7160  $as_echo_n "(cached) " >&6
7161else
7162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7163/* end confdefs.h.  */
7164int i;
7165_ACEOF
7166if ac_fn_c_try_compile "$LINENO"; then :
7167  xorg_cv_cc_flag_unused_command_line_argument=yes
7168else
7169  xorg_cv_cc_flag_unused_command_line_argument=no
7170fi
7171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7172fi
7173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7174$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7175	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7176	CFLAGS="$xorg_testset_save_CFLAGS"
7177fi
7178
7179found="no"
7180
7181	if test $found = "no" ; then
7182		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7183			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7184		fi
7185
7186		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7187			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7188		fi
7189
7190		CFLAGS="$CFLAGS -Werror=implicit"
7191
7192		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7193$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7194		cacheid=xorg_cv_cc_flag__Werror_implicit
7195		if eval \${$cacheid+:} false; then :
7196  $as_echo_n "(cached) " >&6
7197else
7198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7199/* end confdefs.h.  */
7200int i;
7201int
7202main ()
7203{
7204
7205  ;
7206  return 0;
7207}
7208_ACEOF
7209if ac_fn_c_try_link "$LINENO"; then :
7210  eval $cacheid=yes
7211else
7212  eval $cacheid=no
7213fi
7214rm -f core conftest.err conftest.$ac_objext \
7215    conftest$ac_exeext conftest.$ac_ext
7216fi
7217
7218
7219		CFLAGS="$xorg_testset_save_CFLAGS"
7220
7221		eval supported=\$$cacheid
7222		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7223$as_echo "$supported" >&6; }
7224		if test "$supported" = "yes" ; then
7225			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7226			found="yes"
7227		fi
7228	fi
7229
7230	if test $found = "no" ; then
7231		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7232			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7233		fi
7234
7235		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7236			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7237		fi
7238
7239		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7240
7241		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7242$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7243		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7244		if eval \${$cacheid+:} false; then :
7245  $as_echo_n "(cached) " >&6
7246else
7247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7248/* end confdefs.h.  */
7249int i;
7250int
7251main ()
7252{
7253
7254  ;
7255  return 0;
7256}
7257_ACEOF
7258if ac_fn_c_try_link "$LINENO"; then :
7259  eval $cacheid=yes
7260else
7261  eval $cacheid=no
7262fi
7263rm -f core conftest.err conftest.$ac_objext \
7264    conftest$ac_exeext conftest.$ac_ext
7265fi
7266
7267
7268		CFLAGS="$xorg_testset_save_CFLAGS"
7269
7270		eval supported=\$$cacheid
7271		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7272$as_echo "$supported" >&6; }
7273		if test "$supported" = "yes" ; then
7274			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7275			found="yes"
7276		fi
7277	fi
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293xorg_testset_save_CFLAGS="$CFLAGS"
7294
7295if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7296	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7297	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7298$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7299if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7300  $as_echo_n "(cached) " >&6
7301else
7302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7303/* end confdefs.h.  */
7304int i;
7305_ACEOF
7306if ac_fn_c_try_compile "$LINENO"; then :
7307  xorg_cv_cc_flag_unknown_warning_option=yes
7308else
7309  xorg_cv_cc_flag_unknown_warning_option=no
7310fi
7311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7312fi
7313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7314$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7315	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7316	CFLAGS="$xorg_testset_save_CFLAGS"
7317fi
7318
7319if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7320	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7321		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7322	fi
7323	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7324	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7325$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7326if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7327  $as_echo_n "(cached) " >&6
7328else
7329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7330/* end confdefs.h.  */
7331int i;
7332_ACEOF
7333if ac_fn_c_try_compile "$LINENO"; then :
7334  xorg_cv_cc_flag_unused_command_line_argument=yes
7335else
7336  xorg_cv_cc_flag_unused_command_line_argument=no
7337fi
7338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7339fi
7340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7341$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7342	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7343	CFLAGS="$xorg_testset_save_CFLAGS"
7344fi
7345
7346found="no"
7347
7348	if test $found = "no" ; then
7349		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7350			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7351		fi
7352
7353		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7354			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7355		fi
7356
7357		CFLAGS="$CFLAGS -Werror=nonnull"
7358
7359		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7360$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7361		cacheid=xorg_cv_cc_flag__Werror_nonnull
7362		if eval \${$cacheid+:} false; then :
7363  $as_echo_n "(cached) " >&6
7364else
7365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7366/* end confdefs.h.  */
7367int i;
7368int
7369main ()
7370{
7371
7372  ;
7373  return 0;
7374}
7375_ACEOF
7376if ac_fn_c_try_link "$LINENO"; then :
7377  eval $cacheid=yes
7378else
7379  eval $cacheid=no
7380fi
7381rm -f core conftest.err conftest.$ac_objext \
7382    conftest$ac_exeext conftest.$ac_ext
7383fi
7384
7385
7386		CFLAGS="$xorg_testset_save_CFLAGS"
7387
7388		eval supported=\$$cacheid
7389		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7390$as_echo "$supported" >&6; }
7391		if test "$supported" = "yes" ; then
7392			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7393			found="yes"
7394		fi
7395	fi
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411xorg_testset_save_CFLAGS="$CFLAGS"
7412
7413if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7414	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7415	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7416$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7417if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7418  $as_echo_n "(cached) " >&6
7419else
7420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7421/* end confdefs.h.  */
7422int i;
7423_ACEOF
7424if ac_fn_c_try_compile "$LINENO"; then :
7425  xorg_cv_cc_flag_unknown_warning_option=yes
7426else
7427  xorg_cv_cc_flag_unknown_warning_option=no
7428fi
7429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7430fi
7431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7432$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7433	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7434	CFLAGS="$xorg_testset_save_CFLAGS"
7435fi
7436
7437if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7438	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7439		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7440	fi
7441	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7442	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7443$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7444if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7445  $as_echo_n "(cached) " >&6
7446else
7447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7448/* end confdefs.h.  */
7449int i;
7450_ACEOF
7451if ac_fn_c_try_compile "$LINENO"; then :
7452  xorg_cv_cc_flag_unused_command_line_argument=yes
7453else
7454  xorg_cv_cc_flag_unused_command_line_argument=no
7455fi
7456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7457fi
7458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7459$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7460	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7461	CFLAGS="$xorg_testset_save_CFLAGS"
7462fi
7463
7464found="no"
7465
7466	if test $found = "no" ; then
7467		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7468			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7469		fi
7470
7471		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7472			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7473		fi
7474
7475		CFLAGS="$CFLAGS -Werror=init-self"
7476
7477		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7478$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7479		cacheid=xorg_cv_cc_flag__Werror_init_self
7480		if eval \${$cacheid+:} false; then :
7481  $as_echo_n "(cached) " >&6
7482else
7483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7484/* end confdefs.h.  */
7485int i;
7486int
7487main ()
7488{
7489
7490  ;
7491  return 0;
7492}
7493_ACEOF
7494if ac_fn_c_try_link "$LINENO"; then :
7495  eval $cacheid=yes
7496else
7497  eval $cacheid=no
7498fi
7499rm -f core conftest.err conftest.$ac_objext \
7500    conftest$ac_exeext conftest.$ac_ext
7501fi
7502
7503
7504		CFLAGS="$xorg_testset_save_CFLAGS"
7505
7506		eval supported=\$$cacheid
7507		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7508$as_echo "$supported" >&6; }
7509		if test "$supported" = "yes" ; then
7510			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7511			found="yes"
7512		fi
7513	fi
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529xorg_testset_save_CFLAGS="$CFLAGS"
7530
7531if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7532	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7533	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7534$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7535if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7536  $as_echo_n "(cached) " >&6
7537else
7538  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7539/* end confdefs.h.  */
7540int i;
7541_ACEOF
7542if ac_fn_c_try_compile "$LINENO"; then :
7543  xorg_cv_cc_flag_unknown_warning_option=yes
7544else
7545  xorg_cv_cc_flag_unknown_warning_option=no
7546fi
7547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7548fi
7549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7550$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7551	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7552	CFLAGS="$xorg_testset_save_CFLAGS"
7553fi
7554
7555if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7556	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7557		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7558	fi
7559	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7560	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7561$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7562if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7563  $as_echo_n "(cached) " >&6
7564else
7565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7566/* end confdefs.h.  */
7567int i;
7568_ACEOF
7569if ac_fn_c_try_compile "$LINENO"; then :
7570  xorg_cv_cc_flag_unused_command_line_argument=yes
7571else
7572  xorg_cv_cc_flag_unused_command_line_argument=no
7573fi
7574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7575fi
7576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7577$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7578	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7579	CFLAGS="$xorg_testset_save_CFLAGS"
7580fi
7581
7582found="no"
7583
7584	if test $found = "no" ; then
7585		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7586			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7587		fi
7588
7589		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7590			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7591		fi
7592
7593		CFLAGS="$CFLAGS -Werror=main"
7594
7595		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7596$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7597		cacheid=xorg_cv_cc_flag__Werror_main
7598		if eval \${$cacheid+:} false; then :
7599  $as_echo_n "(cached) " >&6
7600else
7601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7602/* end confdefs.h.  */
7603int i;
7604int
7605main ()
7606{
7607
7608  ;
7609  return 0;
7610}
7611_ACEOF
7612if ac_fn_c_try_link "$LINENO"; then :
7613  eval $cacheid=yes
7614else
7615  eval $cacheid=no
7616fi
7617rm -f core conftest.err conftest.$ac_objext \
7618    conftest$ac_exeext conftest.$ac_ext
7619fi
7620
7621
7622		CFLAGS="$xorg_testset_save_CFLAGS"
7623
7624		eval supported=\$$cacheid
7625		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7626$as_echo "$supported" >&6; }
7627		if test "$supported" = "yes" ; then
7628			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7629			found="yes"
7630		fi
7631	fi
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647xorg_testset_save_CFLAGS="$CFLAGS"
7648
7649if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7650	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7651	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7652$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7653if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7654  $as_echo_n "(cached) " >&6
7655else
7656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7657/* end confdefs.h.  */
7658int i;
7659_ACEOF
7660if ac_fn_c_try_compile "$LINENO"; then :
7661  xorg_cv_cc_flag_unknown_warning_option=yes
7662else
7663  xorg_cv_cc_flag_unknown_warning_option=no
7664fi
7665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7666fi
7667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7668$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7669	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7670	CFLAGS="$xorg_testset_save_CFLAGS"
7671fi
7672
7673if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7674	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7675		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7676	fi
7677	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7678	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7679$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7680if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7681  $as_echo_n "(cached) " >&6
7682else
7683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7684/* end confdefs.h.  */
7685int i;
7686_ACEOF
7687if ac_fn_c_try_compile "$LINENO"; then :
7688  xorg_cv_cc_flag_unused_command_line_argument=yes
7689else
7690  xorg_cv_cc_flag_unused_command_line_argument=no
7691fi
7692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7693fi
7694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7695$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7696	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7697	CFLAGS="$xorg_testset_save_CFLAGS"
7698fi
7699
7700found="no"
7701
7702	if test $found = "no" ; then
7703		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7704			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7705		fi
7706
7707		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7708			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7709		fi
7710
7711		CFLAGS="$CFLAGS -Werror=missing-braces"
7712
7713		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7714$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7715		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7716		if eval \${$cacheid+:} false; then :
7717  $as_echo_n "(cached) " >&6
7718else
7719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7720/* end confdefs.h.  */
7721int i;
7722int
7723main ()
7724{
7725
7726  ;
7727  return 0;
7728}
7729_ACEOF
7730if ac_fn_c_try_link "$LINENO"; then :
7731  eval $cacheid=yes
7732else
7733  eval $cacheid=no
7734fi
7735rm -f core conftest.err conftest.$ac_objext \
7736    conftest$ac_exeext conftest.$ac_ext
7737fi
7738
7739
7740		CFLAGS="$xorg_testset_save_CFLAGS"
7741
7742		eval supported=\$$cacheid
7743		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7744$as_echo "$supported" >&6; }
7745		if test "$supported" = "yes" ; then
7746			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7747			found="yes"
7748		fi
7749	fi
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765xorg_testset_save_CFLAGS="$CFLAGS"
7766
7767if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7768	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7769	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7770$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7771if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7772  $as_echo_n "(cached) " >&6
7773else
7774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7775/* end confdefs.h.  */
7776int i;
7777_ACEOF
7778if ac_fn_c_try_compile "$LINENO"; then :
7779  xorg_cv_cc_flag_unknown_warning_option=yes
7780else
7781  xorg_cv_cc_flag_unknown_warning_option=no
7782fi
7783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7784fi
7785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7786$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7787	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7788	CFLAGS="$xorg_testset_save_CFLAGS"
7789fi
7790
7791if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7792	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7793		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7794	fi
7795	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7796	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7797$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7798if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7799  $as_echo_n "(cached) " >&6
7800else
7801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7802/* end confdefs.h.  */
7803int i;
7804_ACEOF
7805if ac_fn_c_try_compile "$LINENO"; then :
7806  xorg_cv_cc_flag_unused_command_line_argument=yes
7807else
7808  xorg_cv_cc_flag_unused_command_line_argument=no
7809fi
7810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7811fi
7812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7813$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7814	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7815	CFLAGS="$xorg_testset_save_CFLAGS"
7816fi
7817
7818found="no"
7819
7820	if test $found = "no" ; then
7821		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7822			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7823		fi
7824
7825		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7826			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7827		fi
7828
7829		CFLAGS="$CFLAGS -Werror=sequence-point"
7830
7831		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7832$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7833		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7834		if eval \${$cacheid+:} false; then :
7835  $as_echo_n "(cached) " >&6
7836else
7837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7838/* end confdefs.h.  */
7839int i;
7840int
7841main ()
7842{
7843
7844  ;
7845  return 0;
7846}
7847_ACEOF
7848if ac_fn_c_try_link "$LINENO"; then :
7849  eval $cacheid=yes
7850else
7851  eval $cacheid=no
7852fi
7853rm -f core conftest.err conftest.$ac_objext \
7854    conftest$ac_exeext conftest.$ac_ext
7855fi
7856
7857
7858		CFLAGS="$xorg_testset_save_CFLAGS"
7859
7860		eval supported=\$$cacheid
7861		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7862$as_echo "$supported" >&6; }
7863		if test "$supported" = "yes" ; then
7864			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7865			found="yes"
7866		fi
7867	fi
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883xorg_testset_save_CFLAGS="$CFLAGS"
7884
7885if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7886	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7887	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7888$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7889if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7890  $as_echo_n "(cached) " >&6
7891else
7892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7893/* end confdefs.h.  */
7894int i;
7895_ACEOF
7896if ac_fn_c_try_compile "$LINENO"; then :
7897  xorg_cv_cc_flag_unknown_warning_option=yes
7898else
7899  xorg_cv_cc_flag_unknown_warning_option=no
7900fi
7901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7902fi
7903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7904$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7905	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7906	CFLAGS="$xorg_testset_save_CFLAGS"
7907fi
7908
7909if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7910	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7911		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7912	fi
7913	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7914	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7915$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7916if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7917  $as_echo_n "(cached) " >&6
7918else
7919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7920/* end confdefs.h.  */
7921int i;
7922_ACEOF
7923if ac_fn_c_try_compile "$LINENO"; then :
7924  xorg_cv_cc_flag_unused_command_line_argument=yes
7925else
7926  xorg_cv_cc_flag_unused_command_line_argument=no
7927fi
7928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7929fi
7930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7931$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7932	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7933	CFLAGS="$xorg_testset_save_CFLAGS"
7934fi
7935
7936found="no"
7937
7938	if test $found = "no" ; then
7939		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7940			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7941		fi
7942
7943		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7944			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7945		fi
7946
7947		CFLAGS="$CFLAGS -Werror=return-type"
7948
7949		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7950$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7951		cacheid=xorg_cv_cc_flag__Werror_return_type
7952		if eval \${$cacheid+:} false; then :
7953  $as_echo_n "(cached) " >&6
7954else
7955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7956/* end confdefs.h.  */
7957int i;
7958int
7959main ()
7960{
7961
7962  ;
7963  return 0;
7964}
7965_ACEOF
7966if ac_fn_c_try_link "$LINENO"; then :
7967  eval $cacheid=yes
7968else
7969  eval $cacheid=no
7970fi
7971rm -f core conftest.err conftest.$ac_objext \
7972    conftest$ac_exeext conftest.$ac_ext
7973fi
7974
7975
7976		CFLAGS="$xorg_testset_save_CFLAGS"
7977
7978		eval supported=\$$cacheid
7979		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7980$as_echo "$supported" >&6; }
7981		if test "$supported" = "yes" ; then
7982			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7983			found="yes"
7984		fi
7985	fi
7986
7987	if test $found = "no" ; then
7988		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7989			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7990		fi
7991
7992		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7993			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7994		fi
7995
7996		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7997
7998		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7999$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8000		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8001		if eval \${$cacheid+:} false; then :
8002  $as_echo_n "(cached) " >&6
8003else
8004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8005/* end confdefs.h.  */
8006int i;
8007int
8008main ()
8009{
8010
8011  ;
8012  return 0;
8013}
8014_ACEOF
8015if ac_fn_c_try_link "$LINENO"; then :
8016  eval $cacheid=yes
8017else
8018  eval $cacheid=no
8019fi
8020rm -f core conftest.err conftest.$ac_objext \
8021    conftest$ac_exeext conftest.$ac_ext
8022fi
8023
8024
8025		CFLAGS="$xorg_testset_save_CFLAGS"
8026
8027		eval supported=\$$cacheid
8028		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8029$as_echo "$supported" >&6; }
8030		if test "$supported" = "yes" ; then
8031			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8032			found="yes"
8033		fi
8034	fi
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050xorg_testset_save_CFLAGS="$CFLAGS"
8051
8052if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8053	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8054	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8055$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8056if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8057  $as_echo_n "(cached) " >&6
8058else
8059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8060/* end confdefs.h.  */
8061int i;
8062_ACEOF
8063if ac_fn_c_try_compile "$LINENO"; then :
8064  xorg_cv_cc_flag_unknown_warning_option=yes
8065else
8066  xorg_cv_cc_flag_unknown_warning_option=no
8067fi
8068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8069fi
8070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8071$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8072	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8073	CFLAGS="$xorg_testset_save_CFLAGS"
8074fi
8075
8076if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8077	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8078		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8079	fi
8080	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8081	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8082$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8083if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8084  $as_echo_n "(cached) " >&6
8085else
8086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8087/* end confdefs.h.  */
8088int i;
8089_ACEOF
8090if ac_fn_c_try_compile "$LINENO"; then :
8091  xorg_cv_cc_flag_unused_command_line_argument=yes
8092else
8093  xorg_cv_cc_flag_unused_command_line_argument=no
8094fi
8095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8096fi
8097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8098$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8099	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8100	CFLAGS="$xorg_testset_save_CFLAGS"
8101fi
8102
8103found="no"
8104
8105	if test $found = "no" ; then
8106		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8107			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8108		fi
8109
8110		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8111			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8112		fi
8113
8114		CFLAGS="$CFLAGS -Werror=trigraphs"
8115
8116		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8117$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
8118		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8119		if eval \${$cacheid+:} false; then :
8120  $as_echo_n "(cached) " >&6
8121else
8122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8123/* end confdefs.h.  */
8124int i;
8125int
8126main ()
8127{
8128
8129  ;
8130  return 0;
8131}
8132_ACEOF
8133if ac_fn_c_try_link "$LINENO"; then :
8134  eval $cacheid=yes
8135else
8136  eval $cacheid=no
8137fi
8138rm -f core conftest.err conftest.$ac_objext \
8139    conftest$ac_exeext conftest.$ac_ext
8140fi
8141
8142
8143		CFLAGS="$xorg_testset_save_CFLAGS"
8144
8145		eval supported=\$$cacheid
8146		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8147$as_echo "$supported" >&6; }
8148		if test "$supported" = "yes" ; then
8149			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8150			found="yes"
8151		fi
8152	fi
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168xorg_testset_save_CFLAGS="$CFLAGS"
8169
8170if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8171	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8172	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8173$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8174if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8175  $as_echo_n "(cached) " >&6
8176else
8177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8178/* end confdefs.h.  */
8179int i;
8180_ACEOF
8181if ac_fn_c_try_compile "$LINENO"; then :
8182  xorg_cv_cc_flag_unknown_warning_option=yes
8183else
8184  xorg_cv_cc_flag_unknown_warning_option=no
8185fi
8186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8187fi
8188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8189$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8190	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8191	CFLAGS="$xorg_testset_save_CFLAGS"
8192fi
8193
8194if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8195	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8196		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8197	fi
8198	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8199	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8200$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8201if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8202  $as_echo_n "(cached) " >&6
8203else
8204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8205/* end confdefs.h.  */
8206int i;
8207_ACEOF
8208if ac_fn_c_try_compile "$LINENO"; then :
8209  xorg_cv_cc_flag_unused_command_line_argument=yes
8210else
8211  xorg_cv_cc_flag_unused_command_line_argument=no
8212fi
8213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8214fi
8215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8216$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8217	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8218	CFLAGS="$xorg_testset_save_CFLAGS"
8219fi
8220
8221found="no"
8222
8223	if test $found = "no" ; then
8224		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8225			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8226		fi
8227
8228		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8229			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8230		fi
8231
8232		CFLAGS="$CFLAGS -Werror=array-bounds"
8233
8234		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8235$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8236		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8237		if eval \${$cacheid+:} false; then :
8238  $as_echo_n "(cached) " >&6
8239else
8240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8241/* end confdefs.h.  */
8242int i;
8243int
8244main ()
8245{
8246
8247  ;
8248  return 0;
8249}
8250_ACEOF
8251if ac_fn_c_try_link "$LINENO"; then :
8252  eval $cacheid=yes
8253else
8254  eval $cacheid=no
8255fi
8256rm -f core conftest.err conftest.$ac_objext \
8257    conftest$ac_exeext conftest.$ac_ext
8258fi
8259
8260
8261		CFLAGS="$xorg_testset_save_CFLAGS"
8262
8263		eval supported=\$$cacheid
8264		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8265$as_echo "$supported" >&6; }
8266		if test "$supported" = "yes" ; then
8267			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8268			found="yes"
8269		fi
8270	fi
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286xorg_testset_save_CFLAGS="$CFLAGS"
8287
8288if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8289	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8290	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8291$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8292if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8293  $as_echo_n "(cached) " >&6
8294else
8295  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8296/* end confdefs.h.  */
8297int i;
8298_ACEOF
8299if ac_fn_c_try_compile "$LINENO"; then :
8300  xorg_cv_cc_flag_unknown_warning_option=yes
8301else
8302  xorg_cv_cc_flag_unknown_warning_option=no
8303fi
8304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8305fi
8306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8307$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8308	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8309	CFLAGS="$xorg_testset_save_CFLAGS"
8310fi
8311
8312if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8313	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8314		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8315	fi
8316	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8317	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8318$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8319if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8320  $as_echo_n "(cached) " >&6
8321else
8322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8323/* end confdefs.h.  */
8324int i;
8325_ACEOF
8326if ac_fn_c_try_compile "$LINENO"; then :
8327  xorg_cv_cc_flag_unused_command_line_argument=yes
8328else
8329  xorg_cv_cc_flag_unused_command_line_argument=no
8330fi
8331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8332fi
8333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8334$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8335	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8336	CFLAGS="$xorg_testset_save_CFLAGS"
8337fi
8338
8339found="no"
8340
8341	if test $found = "no" ; then
8342		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8343			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8344		fi
8345
8346		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8347			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8348		fi
8349
8350		CFLAGS="$CFLAGS -Werror=write-strings"
8351
8352		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8353$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8354		cacheid=xorg_cv_cc_flag__Werror_write_strings
8355		if eval \${$cacheid+:} false; then :
8356  $as_echo_n "(cached) " >&6
8357else
8358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8359/* end confdefs.h.  */
8360int i;
8361int
8362main ()
8363{
8364
8365  ;
8366  return 0;
8367}
8368_ACEOF
8369if ac_fn_c_try_link "$LINENO"; then :
8370  eval $cacheid=yes
8371else
8372  eval $cacheid=no
8373fi
8374rm -f core conftest.err conftest.$ac_objext \
8375    conftest$ac_exeext conftest.$ac_ext
8376fi
8377
8378
8379		CFLAGS="$xorg_testset_save_CFLAGS"
8380
8381		eval supported=\$$cacheid
8382		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8383$as_echo "$supported" >&6; }
8384		if test "$supported" = "yes" ; then
8385			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8386			found="yes"
8387		fi
8388	fi
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404xorg_testset_save_CFLAGS="$CFLAGS"
8405
8406if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8407	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8408	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8409$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8410if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8411  $as_echo_n "(cached) " >&6
8412else
8413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414/* end confdefs.h.  */
8415int i;
8416_ACEOF
8417if ac_fn_c_try_compile "$LINENO"; then :
8418  xorg_cv_cc_flag_unknown_warning_option=yes
8419else
8420  xorg_cv_cc_flag_unknown_warning_option=no
8421fi
8422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8423fi
8424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8425$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8426	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8427	CFLAGS="$xorg_testset_save_CFLAGS"
8428fi
8429
8430if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8431	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8432		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8433	fi
8434	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8435	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8436$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8437if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8438  $as_echo_n "(cached) " >&6
8439else
8440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8441/* end confdefs.h.  */
8442int i;
8443_ACEOF
8444if ac_fn_c_try_compile "$LINENO"; then :
8445  xorg_cv_cc_flag_unused_command_line_argument=yes
8446else
8447  xorg_cv_cc_flag_unused_command_line_argument=no
8448fi
8449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8450fi
8451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8452$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8453	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8454	CFLAGS="$xorg_testset_save_CFLAGS"
8455fi
8456
8457found="no"
8458
8459	if test $found = "no" ; then
8460		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8461			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8462		fi
8463
8464		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8465			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8466		fi
8467
8468		CFLAGS="$CFLAGS -Werror=address"
8469
8470		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8471$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8472		cacheid=xorg_cv_cc_flag__Werror_address
8473		if eval \${$cacheid+:} false; then :
8474  $as_echo_n "(cached) " >&6
8475else
8476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8477/* end confdefs.h.  */
8478int i;
8479int
8480main ()
8481{
8482
8483  ;
8484  return 0;
8485}
8486_ACEOF
8487if ac_fn_c_try_link "$LINENO"; then :
8488  eval $cacheid=yes
8489else
8490  eval $cacheid=no
8491fi
8492rm -f core conftest.err conftest.$ac_objext \
8493    conftest$ac_exeext conftest.$ac_ext
8494fi
8495
8496
8497		CFLAGS="$xorg_testset_save_CFLAGS"
8498
8499		eval supported=\$$cacheid
8500		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8501$as_echo "$supported" >&6; }
8502		if test "$supported" = "yes" ; then
8503			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8504			found="yes"
8505		fi
8506	fi
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522xorg_testset_save_CFLAGS="$CFLAGS"
8523
8524if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8525	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8526	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8527$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8528if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8529  $as_echo_n "(cached) " >&6
8530else
8531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8532/* end confdefs.h.  */
8533int i;
8534_ACEOF
8535if ac_fn_c_try_compile "$LINENO"; then :
8536  xorg_cv_cc_flag_unknown_warning_option=yes
8537else
8538  xorg_cv_cc_flag_unknown_warning_option=no
8539fi
8540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8541fi
8542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8543$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8544	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8545	CFLAGS="$xorg_testset_save_CFLAGS"
8546fi
8547
8548if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8549	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8550		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8551	fi
8552	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8553	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8554$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8555if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8556  $as_echo_n "(cached) " >&6
8557else
8558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8559/* end confdefs.h.  */
8560int i;
8561_ACEOF
8562if ac_fn_c_try_compile "$LINENO"; then :
8563  xorg_cv_cc_flag_unused_command_line_argument=yes
8564else
8565  xorg_cv_cc_flag_unused_command_line_argument=no
8566fi
8567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8568fi
8569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8570$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8571	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8572	CFLAGS="$xorg_testset_save_CFLAGS"
8573fi
8574
8575found="no"
8576
8577	if test $found = "no" ; then
8578		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8579			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8580		fi
8581
8582		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8583			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8584		fi
8585
8586		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8587
8588		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8589$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8590		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8591		if eval \${$cacheid+:} false; then :
8592  $as_echo_n "(cached) " >&6
8593else
8594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8595/* end confdefs.h.  */
8596int i;
8597int
8598main ()
8599{
8600
8601  ;
8602  return 0;
8603}
8604_ACEOF
8605if ac_fn_c_try_link "$LINENO"; then :
8606  eval $cacheid=yes
8607else
8608  eval $cacheid=no
8609fi
8610rm -f core conftest.err conftest.$ac_objext \
8611    conftest$ac_exeext conftest.$ac_ext
8612fi
8613
8614
8615		CFLAGS="$xorg_testset_save_CFLAGS"
8616
8617		eval supported=\$$cacheid
8618		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8619$as_echo "$supported" >&6; }
8620		if test "$supported" = "yes" ; then
8621			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8622			found="yes"
8623		fi
8624	fi
8625
8626	if test $found = "no" ; then
8627		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8628			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8629		fi
8630
8631		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8632			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8633		fi
8634
8635		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8636
8637		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8638$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8639		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8640		if eval \${$cacheid+:} false; then :
8641  $as_echo_n "(cached) " >&6
8642else
8643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8644/* end confdefs.h.  */
8645int i;
8646int
8647main ()
8648{
8649
8650  ;
8651  return 0;
8652}
8653_ACEOF
8654if ac_fn_c_try_link "$LINENO"; then :
8655  eval $cacheid=yes
8656else
8657  eval $cacheid=no
8658fi
8659rm -f core conftest.err conftest.$ac_objext \
8660    conftest$ac_exeext conftest.$ac_ext
8661fi
8662
8663
8664		CFLAGS="$xorg_testset_save_CFLAGS"
8665
8666		eval supported=\$$cacheid
8667		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8668$as_echo "$supported" >&6; }
8669		if test "$supported" = "yes" ; then
8670			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8671			found="yes"
8672		fi
8673	fi
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689xorg_testset_save_CFLAGS="$CFLAGS"
8690
8691if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8692	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8693	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8694$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8695if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8696  $as_echo_n "(cached) " >&6
8697else
8698  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8699/* end confdefs.h.  */
8700int i;
8701_ACEOF
8702if ac_fn_c_try_compile "$LINENO"; then :
8703  xorg_cv_cc_flag_unknown_warning_option=yes
8704else
8705  xorg_cv_cc_flag_unknown_warning_option=no
8706fi
8707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8708fi
8709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8710$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8711	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8712	CFLAGS="$xorg_testset_save_CFLAGS"
8713fi
8714
8715if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8716	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8717		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8718	fi
8719	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8720	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8721$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8722if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8723  $as_echo_n "(cached) " >&6
8724else
8725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8726/* end confdefs.h.  */
8727int i;
8728_ACEOF
8729if ac_fn_c_try_compile "$LINENO"; then :
8730  xorg_cv_cc_flag_unused_command_line_argument=yes
8731else
8732  xorg_cv_cc_flag_unused_command_line_argument=no
8733fi
8734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8735fi
8736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8737$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8738	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8739	CFLAGS="$xorg_testset_save_CFLAGS"
8740fi
8741
8742found="no"
8743
8744	if test $found = "no" ; then
8745		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8746			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8747		fi
8748
8749		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8750			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8751		fi
8752
8753		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8754
8755		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8756$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8757		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8758		if eval \${$cacheid+:} false; then :
8759  $as_echo_n "(cached) " >&6
8760else
8761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8762/* end confdefs.h.  */
8763int i;
8764int
8765main ()
8766{
8767
8768  ;
8769  return 0;
8770}
8771_ACEOF
8772if ac_fn_c_try_link "$LINENO"; then :
8773  eval $cacheid=yes
8774else
8775  eval $cacheid=no
8776fi
8777rm -f core conftest.err conftest.$ac_objext \
8778    conftest$ac_exeext conftest.$ac_ext
8779fi
8780
8781
8782		CFLAGS="$xorg_testset_save_CFLAGS"
8783
8784		eval supported=\$$cacheid
8785		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8786$as_echo "$supported" >&6; }
8787		if test "$supported" = "yes" ; then
8788			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8789			found="yes"
8790		fi
8791	fi
8792
8793 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8794else
8795{ $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
8796$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;}
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810xorg_testset_save_CFLAGS="$CFLAGS"
8811
8812if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8813	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8814	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8815$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8816if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8817  $as_echo_n "(cached) " >&6
8818else
8819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8820/* end confdefs.h.  */
8821int i;
8822_ACEOF
8823if ac_fn_c_try_compile "$LINENO"; then :
8824  xorg_cv_cc_flag_unknown_warning_option=yes
8825else
8826  xorg_cv_cc_flag_unknown_warning_option=no
8827fi
8828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8829fi
8830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8831$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8832	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8833	CFLAGS="$xorg_testset_save_CFLAGS"
8834fi
8835
8836if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8837	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8838		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8839	fi
8840	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8841	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8842$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8843if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8844  $as_echo_n "(cached) " >&6
8845else
8846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8847/* end confdefs.h.  */
8848int i;
8849_ACEOF
8850if ac_fn_c_try_compile "$LINENO"; then :
8851  xorg_cv_cc_flag_unused_command_line_argument=yes
8852else
8853  xorg_cv_cc_flag_unused_command_line_argument=no
8854fi
8855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8856fi
8857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8858$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8859	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8860	CFLAGS="$xorg_testset_save_CFLAGS"
8861fi
8862
8863found="no"
8864
8865	if test $found = "no" ; then
8866		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8867			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8868		fi
8869
8870		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8871			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8872		fi
8873
8874		CFLAGS="$CFLAGS -Wimplicit"
8875
8876		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8877$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8878		cacheid=xorg_cv_cc_flag__Wimplicit
8879		if eval \${$cacheid+:} false; then :
8880  $as_echo_n "(cached) " >&6
8881else
8882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8883/* end confdefs.h.  */
8884int i;
8885int
8886main ()
8887{
8888
8889  ;
8890  return 0;
8891}
8892_ACEOF
8893if ac_fn_c_try_link "$LINENO"; then :
8894  eval $cacheid=yes
8895else
8896  eval $cacheid=no
8897fi
8898rm -f core conftest.err conftest.$ac_objext \
8899    conftest$ac_exeext conftest.$ac_ext
8900fi
8901
8902
8903		CFLAGS="$xorg_testset_save_CFLAGS"
8904
8905		eval supported=\$$cacheid
8906		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8907$as_echo "$supported" >&6; }
8908		if test "$supported" = "yes" ; then
8909			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8910			found="yes"
8911		fi
8912	fi
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928xorg_testset_save_CFLAGS="$CFLAGS"
8929
8930if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8931	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8932	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8933$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8934if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8935  $as_echo_n "(cached) " >&6
8936else
8937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8938/* end confdefs.h.  */
8939int i;
8940_ACEOF
8941if ac_fn_c_try_compile "$LINENO"; then :
8942  xorg_cv_cc_flag_unknown_warning_option=yes
8943else
8944  xorg_cv_cc_flag_unknown_warning_option=no
8945fi
8946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8947fi
8948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8949$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8950	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8951	CFLAGS="$xorg_testset_save_CFLAGS"
8952fi
8953
8954if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8955	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8956		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8957	fi
8958	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8959	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8960$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8961if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8962  $as_echo_n "(cached) " >&6
8963else
8964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8965/* end confdefs.h.  */
8966int i;
8967_ACEOF
8968if ac_fn_c_try_compile "$LINENO"; then :
8969  xorg_cv_cc_flag_unused_command_line_argument=yes
8970else
8971  xorg_cv_cc_flag_unused_command_line_argument=no
8972fi
8973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8974fi
8975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8976$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8977	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8978	CFLAGS="$xorg_testset_save_CFLAGS"
8979fi
8980
8981found="no"
8982
8983	if test $found = "no" ; then
8984		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8985			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8986		fi
8987
8988		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8989			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8990		fi
8991
8992		CFLAGS="$CFLAGS -Wnonnull"
8993
8994		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8995$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8996		cacheid=xorg_cv_cc_flag__Wnonnull
8997		if eval \${$cacheid+:} false; then :
8998  $as_echo_n "(cached) " >&6
8999else
9000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9001/* end confdefs.h.  */
9002int i;
9003int
9004main ()
9005{
9006
9007  ;
9008  return 0;
9009}
9010_ACEOF
9011if ac_fn_c_try_link "$LINENO"; then :
9012  eval $cacheid=yes
9013else
9014  eval $cacheid=no
9015fi
9016rm -f core conftest.err conftest.$ac_objext \
9017    conftest$ac_exeext conftest.$ac_ext
9018fi
9019
9020
9021		CFLAGS="$xorg_testset_save_CFLAGS"
9022
9023		eval supported=\$$cacheid
9024		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9025$as_echo "$supported" >&6; }
9026		if test "$supported" = "yes" ; then
9027			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9028			found="yes"
9029		fi
9030	fi
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046xorg_testset_save_CFLAGS="$CFLAGS"
9047
9048if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9049	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9050	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9051$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9052if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9053  $as_echo_n "(cached) " >&6
9054else
9055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9056/* end confdefs.h.  */
9057int i;
9058_ACEOF
9059if ac_fn_c_try_compile "$LINENO"; then :
9060  xorg_cv_cc_flag_unknown_warning_option=yes
9061else
9062  xorg_cv_cc_flag_unknown_warning_option=no
9063fi
9064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9065fi
9066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9067$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9068	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9069	CFLAGS="$xorg_testset_save_CFLAGS"
9070fi
9071
9072if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9073	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9074		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9075	fi
9076	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9077	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9078$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9079if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9080  $as_echo_n "(cached) " >&6
9081else
9082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9083/* end confdefs.h.  */
9084int i;
9085_ACEOF
9086if ac_fn_c_try_compile "$LINENO"; then :
9087  xorg_cv_cc_flag_unused_command_line_argument=yes
9088else
9089  xorg_cv_cc_flag_unused_command_line_argument=no
9090fi
9091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9092fi
9093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9094$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9095	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9096	CFLAGS="$xorg_testset_save_CFLAGS"
9097fi
9098
9099found="no"
9100
9101	if test $found = "no" ; then
9102		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9103			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9104		fi
9105
9106		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9107			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9108		fi
9109
9110		CFLAGS="$CFLAGS -Winit-self"
9111
9112		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9113$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
9114		cacheid=xorg_cv_cc_flag__Winit_self
9115		if eval \${$cacheid+:} false; then :
9116  $as_echo_n "(cached) " >&6
9117else
9118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9119/* end confdefs.h.  */
9120int i;
9121int
9122main ()
9123{
9124
9125  ;
9126  return 0;
9127}
9128_ACEOF
9129if ac_fn_c_try_link "$LINENO"; then :
9130  eval $cacheid=yes
9131else
9132  eval $cacheid=no
9133fi
9134rm -f core conftest.err conftest.$ac_objext \
9135    conftest$ac_exeext conftest.$ac_ext
9136fi
9137
9138
9139		CFLAGS="$xorg_testset_save_CFLAGS"
9140
9141		eval supported=\$$cacheid
9142		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9143$as_echo "$supported" >&6; }
9144		if test "$supported" = "yes" ; then
9145			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9146			found="yes"
9147		fi
9148	fi
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164xorg_testset_save_CFLAGS="$CFLAGS"
9165
9166if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9167	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9168	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9169$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9170if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9171  $as_echo_n "(cached) " >&6
9172else
9173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9174/* end confdefs.h.  */
9175int i;
9176_ACEOF
9177if ac_fn_c_try_compile "$LINENO"; then :
9178  xorg_cv_cc_flag_unknown_warning_option=yes
9179else
9180  xorg_cv_cc_flag_unknown_warning_option=no
9181fi
9182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9183fi
9184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9185$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9186	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9187	CFLAGS="$xorg_testset_save_CFLAGS"
9188fi
9189
9190if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9191	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9192		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9193	fi
9194	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9195	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9196$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9197if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9198  $as_echo_n "(cached) " >&6
9199else
9200  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9201/* end confdefs.h.  */
9202int i;
9203_ACEOF
9204if ac_fn_c_try_compile "$LINENO"; then :
9205  xorg_cv_cc_flag_unused_command_line_argument=yes
9206else
9207  xorg_cv_cc_flag_unused_command_line_argument=no
9208fi
9209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9210fi
9211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9212$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9213	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9214	CFLAGS="$xorg_testset_save_CFLAGS"
9215fi
9216
9217found="no"
9218
9219	if test $found = "no" ; then
9220		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9221			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9222		fi
9223
9224		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9225			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9226		fi
9227
9228		CFLAGS="$CFLAGS -Wmain"
9229
9230		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9231$as_echo_n "checking if $CC supports -Wmain... " >&6; }
9232		cacheid=xorg_cv_cc_flag__Wmain
9233		if eval \${$cacheid+:} false; then :
9234  $as_echo_n "(cached) " >&6
9235else
9236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9237/* end confdefs.h.  */
9238int i;
9239int
9240main ()
9241{
9242
9243  ;
9244  return 0;
9245}
9246_ACEOF
9247if ac_fn_c_try_link "$LINENO"; then :
9248  eval $cacheid=yes
9249else
9250  eval $cacheid=no
9251fi
9252rm -f core conftest.err conftest.$ac_objext \
9253    conftest$ac_exeext conftest.$ac_ext
9254fi
9255
9256
9257		CFLAGS="$xorg_testset_save_CFLAGS"
9258
9259		eval supported=\$$cacheid
9260		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9261$as_echo "$supported" >&6; }
9262		if test "$supported" = "yes" ; then
9263			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9264			found="yes"
9265		fi
9266	fi
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282xorg_testset_save_CFLAGS="$CFLAGS"
9283
9284if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9285	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9286	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9287$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9288if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9289  $as_echo_n "(cached) " >&6
9290else
9291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9292/* end confdefs.h.  */
9293int i;
9294_ACEOF
9295if ac_fn_c_try_compile "$LINENO"; then :
9296  xorg_cv_cc_flag_unknown_warning_option=yes
9297else
9298  xorg_cv_cc_flag_unknown_warning_option=no
9299fi
9300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9301fi
9302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9303$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9304	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9305	CFLAGS="$xorg_testset_save_CFLAGS"
9306fi
9307
9308if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9309	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9310		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9311	fi
9312	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9313	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9314$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9315if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9316  $as_echo_n "(cached) " >&6
9317else
9318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9319/* end confdefs.h.  */
9320int i;
9321_ACEOF
9322if ac_fn_c_try_compile "$LINENO"; then :
9323  xorg_cv_cc_flag_unused_command_line_argument=yes
9324else
9325  xorg_cv_cc_flag_unused_command_line_argument=no
9326fi
9327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9328fi
9329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9330$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9331	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9332	CFLAGS="$xorg_testset_save_CFLAGS"
9333fi
9334
9335found="no"
9336
9337	if test $found = "no" ; then
9338		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9339			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9340		fi
9341
9342		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9343			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9344		fi
9345
9346		CFLAGS="$CFLAGS -Wmissing-braces"
9347
9348		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9349$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9350		cacheid=xorg_cv_cc_flag__Wmissing_braces
9351		if eval \${$cacheid+:} false; then :
9352  $as_echo_n "(cached) " >&6
9353else
9354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9355/* end confdefs.h.  */
9356int i;
9357int
9358main ()
9359{
9360
9361  ;
9362  return 0;
9363}
9364_ACEOF
9365if ac_fn_c_try_link "$LINENO"; then :
9366  eval $cacheid=yes
9367else
9368  eval $cacheid=no
9369fi
9370rm -f core conftest.err conftest.$ac_objext \
9371    conftest$ac_exeext conftest.$ac_ext
9372fi
9373
9374
9375		CFLAGS="$xorg_testset_save_CFLAGS"
9376
9377		eval supported=\$$cacheid
9378		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9379$as_echo "$supported" >&6; }
9380		if test "$supported" = "yes" ; then
9381			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9382			found="yes"
9383		fi
9384	fi
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400xorg_testset_save_CFLAGS="$CFLAGS"
9401
9402if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9403	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9404	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9405$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9406if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9407  $as_echo_n "(cached) " >&6
9408else
9409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9410/* end confdefs.h.  */
9411int i;
9412_ACEOF
9413if ac_fn_c_try_compile "$LINENO"; then :
9414  xorg_cv_cc_flag_unknown_warning_option=yes
9415else
9416  xorg_cv_cc_flag_unknown_warning_option=no
9417fi
9418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9419fi
9420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9421$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9422	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9423	CFLAGS="$xorg_testset_save_CFLAGS"
9424fi
9425
9426if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9427	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9428		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9429	fi
9430	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9431	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9432$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9433if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9434  $as_echo_n "(cached) " >&6
9435else
9436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9437/* end confdefs.h.  */
9438int i;
9439_ACEOF
9440if ac_fn_c_try_compile "$LINENO"; then :
9441  xorg_cv_cc_flag_unused_command_line_argument=yes
9442else
9443  xorg_cv_cc_flag_unused_command_line_argument=no
9444fi
9445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9446fi
9447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9448$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9449	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9450	CFLAGS="$xorg_testset_save_CFLAGS"
9451fi
9452
9453found="no"
9454
9455	if test $found = "no" ; then
9456		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9457			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9458		fi
9459
9460		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9461			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9462		fi
9463
9464		CFLAGS="$CFLAGS -Wsequence-point"
9465
9466		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9467$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9468		cacheid=xorg_cv_cc_flag__Wsequence_point
9469		if eval \${$cacheid+:} false; then :
9470  $as_echo_n "(cached) " >&6
9471else
9472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9473/* end confdefs.h.  */
9474int i;
9475int
9476main ()
9477{
9478
9479  ;
9480  return 0;
9481}
9482_ACEOF
9483if ac_fn_c_try_link "$LINENO"; then :
9484  eval $cacheid=yes
9485else
9486  eval $cacheid=no
9487fi
9488rm -f core conftest.err conftest.$ac_objext \
9489    conftest$ac_exeext conftest.$ac_ext
9490fi
9491
9492
9493		CFLAGS="$xorg_testset_save_CFLAGS"
9494
9495		eval supported=\$$cacheid
9496		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9497$as_echo "$supported" >&6; }
9498		if test "$supported" = "yes" ; then
9499			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9500			found="yes"
9501		fi
9502	fi
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518xorg_testset_save_CFLAGS="$CFLAGS"
9519
9520if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9521	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9522	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9523$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9524if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9525  $as_echo_n "(cached) " >&6
9526else
9527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9528/* end confdefs.h.  */
9529int i;
9530_ACEOF
9531if ac_fn_c_try_compile "$LINENO"; then :
9532  xorg_cv_cc_flag_unknown_warning_option=yes
9533else
9534  xorg_cv_cc_flag_unknown_warning_option=no
9535fi
9536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9537fi
9538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9539$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9540	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9541	CFLAGS="$xorg_testset_save_CFLAGS"
9542fi
9543
9544if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9545	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9546		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9547	fi
9548	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9549	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9550$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9551if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9552  $as_echo_n "(cached) " >&6
9553else
9554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9555/* end confdefs.h.  */
9556int i;
9557_ACEOF
9558if ac_fn_c_try_compile "$LINENO"; then :
9559  xorg_cv_cc_flag_unused_command_line_argument=yes
9560else
9561  xorg_cv_cc_flag_unused_command_line_argument=no
9562fi
9563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9564fi
9565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9566$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9567	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9568	CFLAGS="$xorg_testset_save_CFLAGS"
9569fi
9570
9571found="no"
9572
9573	if test $found = "no" ; then
9574		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9575			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9576		fi
9577
9578		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9579			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9580		fi
9581
9582		CFLAGS="$CFLAGS -Wreturn-type"
9583
9584		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9585$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9586		cacheid=xorg_cv_cc_flag__Wreturn_type
9587		if eval \${$cacheid+:} false; then :
9588  $as_echo_n "(cached) " >&6
9589else
9590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9591/* end confdefs.h.  */
9592int i;
9593int
9594main ()
9595{
9596
9597  ;
9598  return 0;
9599}
9600_ACEOF
9601if ac_fn_c_try_link "$LINENO"; then :
9602  eval $cacheid=yes
9603else
9604  eval $cacheid=no
9605fi
9606rm -f core conftest.err conftest.$ac_objext \
9607    conftest$ac_exeext conftest.$ac_ext
9608fi
9609
9610
9611		CFLAGS="$xorg_testset_save_CFLAGS"
9612
9613		eval supported=\$$cacheid
9614		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9615$as_echo "$supported" >&6; }
9616		if test "$supported" = "yes" ; then
9617			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9618			found="yes"
9619		fi
9620	fi
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636xorg_testset_save_CFLAGS="$CFLAGS"
9637
9638if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9639	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9640	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9641$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9642if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9643  $as_echo_n "(cached) " >&6
9644else
9645  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9646/* end confdefs.h.  */
9647int i;
9648_ACEOF
9649if ac_fn_c_try_compile "$LINENO"; then :
9650  xorg_cv_cc_flag_unknown_warning_option=yes
9651else
9652  xorg_cv_cc_flag_unknown_warning_option=no
9653fi
9654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9655fi
9656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9657$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9658	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9659	CFLAGS="$xorg_testset_save_CFLAGS"
9660fi
9661
9662if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9663	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9664		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9665	fi
9666	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9667	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9668$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9669if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9670  $as_echo_n "(cached) " >&6
9671else
9672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9673/* end confdefs.h.  */
9674int i;
9675_ACEOF
9676if ac_fn_c_try_compile "$LINENO"; then :
9677  xorg_cv_cc_flag_unused_command_line_argument=yes
9678else
9679  xorg_cv_cc_flag_unused_command_line_argument=no
9680fi
9681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9682fi
9683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9684$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9685	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9686	CFLAGS="$xorg_testset_save_CFLAGS"
9687fi
9688
9689found="no"
9690
9691	if test $found = "no" ; then
9692		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9693			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9694		fi
9695
9696		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9697			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9698		fi
9699
9700		CFLAGS="$CFLAGS -Wtrigraphs"
9701
9702		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9703$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9704		cacheid=xorg_cv_cc_flag__Wtrigraphs
9705		if eval \${$cacheid+:} false; then :
9706  $as_echo_n "(cached) " >&6
9707else
9708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9709/* end confdefs.h.  */
9710int i;
9711int
9712main ()
9713{
9714
9715  ;
9716  return 0;
9717}
9718_ACEOF
9719if ac_fn_c_try_link "$LINENO"; then :
9720  eval $cacheid=yes
9721else
9722  eval $cacheid=no
9723fi
9724rm -f core conftest.err conftest.$ac_objext \
9725    conftest$ac_exeext conftest.$ac_ext
9726fi
9727
9728
9729		CFLAGS="$xorg_testset_save_CFLAGS"
9730
9731		eval supported=\$$cacheid
9732		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9733$as_echo "$supported" >&6; }
9734		if test "$supported" = "yes" ; then
9735			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9736			found="yes"
9737		fi
9738	fi
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754xorg_testset_save_CFLAGS="$CFLAGS"
9755
9756if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9757	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9758	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9759$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9760if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9761  $as_echo_n "(cached) " >&6
9762else
9763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9764/* end confdefs.h.  */
9765int i;
9766_ACEOF
9767if ac_fn_c_try_compile "$LINENO"; then :
9768  xorg_cv_cc_flag_unknown_warning_option=yes
9769else
9770  xorg_cv_cc_flag_unknown_warning_option=no
9771fi
9772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9773fi
9774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9775$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9776	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9777	CFLAGS="$xorg_testset_save_CFLAGS"
9778fi
9779
9780if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9781	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9782		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9783	fi
9784	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9785	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9786$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9787if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9788  $as_echo_n "(cached) " >&6
9789else
9790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9791/* end confdefs.h.  */
9792int i;
9793_ACEOF
9794if ac_fn_c_try_compile "$LINENO"; then :
9795  xorg_cv_cc_flag_unused_command_line_argument=yes
9796else
9797  xorg_cv_cc_flag_unused_command_line_argument=no
9798fi
9799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9800fi
9801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9802$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9803	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9804	CFLAGS="$xorg_testset_save_CFLAGS"
9805fi
9806
9807found="no"
9808
9809	if test $found = "no" ; then
9810		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9811			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9812		fi
9813
9814		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9815			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9816		fi
9817
9818		CFLAGS="$CFLAGS -Warray-bounds"
9819
9820		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9821$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9822		cacheid=xorg_cv_cc_flag__Warray_bounds
9823		if eval \${$cacheid+:} false; then :
9824  $as_echo_n "(cached) " >&6
9825else
9826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9827/* end confdefs.h.  */
9828int i;
9829int
9830main ()
9831{
9832
9833  ;
9834  return 0;
9835}
9836_ACEOF
9837if ac_fn_c_try_link "$LINENO"; then :
9838  eval $cacheid=yes
9839else
9840  eval $cacheid=no
9841fi
9842rm -f core conftest.err conftest.$ac_objext \
9843    conftest$ac_exeext conftest.$ac_ext
9844fi
9845
9846
9847		CFLAGS="$xorg_testset_save_CFLAGS"
9848
9849		eval supported=\$$cacheid
9850		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9851$as_echo "$supported" >&6; }
9852		if test "$supported" = "yes" ; then
9853			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9854			found="yes"
9855		fi
9856	fi
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872xorg_testset_save_CFLAGS="$CFLAGS"
9873
9874if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9875	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9876	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9877$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9878if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9879  $as_echo_n "(cached) " >&6
9880else
9881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9882/* end confdefs.h.  */
9883int i;
9884_ACEOF
9885if ac_fn_c_try_compile "$LINENO"; then :
9886  xorg_cv_cc_flag_unknown_warning_option=yes
9887else
9888  xorg_cv_cc_flag_unknown_warning_option=no
9889fi
9890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9891fi
9892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9893$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9894	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9895	CFLAGS="$xorg_testset_save_CFLAGS"
9896fi
9897
9898if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9899	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9900		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9901	fi
9902	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9903	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9904$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9905if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9906  $as_echo_n "(cached) " >&6
9907else
9908  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9909/* end confdefs.h.  */
9910int i;
9911_ACEOF
9912if ac_fn_c_try_compile "$LINENO"; then :
9913  xorg_cv_cc_flag_unused_command_line_argument=yes
9914else
9915  xorg_cv_cc_flag_unused_command_line_argument=no
9916fi
9917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9918fi
9919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9920$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9921	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9922	CFLAGS="$xorg_testset_save_CFLAGS"
9923fi
9924
9925found="no"
9926
9927	if test $found = "no" ; then
9928		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9929			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9930		fi
9931
9932		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9933			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9934		fi
9935
9936		CFLAGS="$CFLAGS -Wwrite-strings"
9937
9938		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9939$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9940		cacheid=xorg_cv_cc_flag__Wwrite_strings
9941		if eval \${$cacheid+:} false; then :
9942  $as_echo_n "(cached) " >&6
9943else
9944  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9945/* end confdefs.h.  */
9946int i;
9947int
9948main ()
9949{
9950
9951  ;
9952  return 0;
9953}
9954_ACEOF
9955if ac_fn_c_try_link "$LINENO"; then :
9956  eval $cacheid=yes
9957else
9958  eval $cacheid=no
9959fi
9960rm -f core conftest.err conftest.$ac_objext \
9961    conftest$ac_exeext conftest.$ac_ext
9962fi
9963
9964
9965		CFLAGS="$xorg_testset_save_CFLAGS"
9966
9967		eval supported=\$$cacheid
9968		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9969$as_echo "$supported" >&6; }
9970		if test "$supported" = "yes" ; then
9971			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9972			found="yes"
9973		fi
9974	fi
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990xorg_testset_save_CFLAGS="$CFLAGS"
9991
9992if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9993	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9994	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9995$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9996if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9997  $as_echo_n "(cached) " >&6
9998else
9999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10000/* end confdefs.h.  */
10001int i;
10002_ACEOF
10003if ac_fn_c_try_compile "$LINENO"; then :
10004  xorg_cv_cc_flag_unknown_warning_option=yes
10005else
10006  xorg_cv_cc_flag_unknown_warning_option=no
10007fi
10008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10009fi
10010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10011$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10012	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10013	CFLAGS="$xorg_testset_save_CFLAGS"
10014fi
10015
10016if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10017	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10018		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10019	fi
10020	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10021	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10022$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10023if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10024  $as_echo_n "(cached) " >&6
10025else
10026  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10027/* end confdefs.h.  */
10028int i;
10029_ACEOF
10030if ac_fn_c_try_compile "$LINENO"; then :
10031  xorg_cv_cc_flag_unused_command_line_argument=yes
10032else
10033  xorg_cv_cc_flag_unused_command_line_argument=no
10034fi
10035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10036fi
10037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10038$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10039	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10040	CFLAGS="$xorg_testset_save_CFLAGS"
10041fi
10042
10043found="no"
10044
10045	if test $found = "no" ; then
10046		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10047			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10048		fi
10049
10050		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10051			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10052		fi
10053
10054		CFLAGS="$CFLAGS -Waddress"
10055
10056		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10057$as_echo_n "checking if $CC supports -Waddress... " >&6; }
10058		cacheid=xorg_cv_cc_flag__Waddress
10059		if eval \${$cacheid+:} false; then :
10060  $as_echo_n "(cached) " >&6
10061else
10062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10063/* end confdefs.h.  */
10064int i;
10065int
10066main ()
10067{
10068
10069  ;
10070  return 0;
10071}
10072_ACEOF
10073if ac_fn_c_try_link "$LINENO"; then :
10074  eval $cacheid=yes
10075else
10076  eval $cacheid=no
10077fi
10078rm -f core conftest.err conftest.$ac_objext \
10079    conftest$ac_exeext conftest.$ac_ext
10080fi
10081
10082
10083		CFLAGS="$xorg_testset_save_CFLAGS"
10084
10085		eval supported=\$$cacheid
10086		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10087$as_echo "$supported" >&6; }
10088		if test "$supported" = "yes" ; then
10089			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10090			found="yes"
10091		fi
10092	fi
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108xorg_testset_save_CFLAGS="$CFLAGS"
10109
10110if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10111	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10112	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10113$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10114if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10115  $as_echo_n "(cached) " >&6
10116else
10117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10118/* end confdefs.h.  */
10119int i;
10120_ACEOF
10121if ac_fn_c_try_compile "$LINENO"; then :
10122  xorg_cv_cc_flag_unknown_warning_option=yes
10123else
10124  xorg_cv_cc_flag_unknown_warning_option=no
10125fi
10126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10127fi
10128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10129$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10130	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10131	CFLAGS="$xorg_testset_save_CFLAGS"
10132fi
10133
10134if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10135	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10136		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10137	fi
10138	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10139	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10140$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10141if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10142  $as_echo_n "(cached) " >&6
10143else
10144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10145/* end confdefs.h.  */
10146int i;
10147_ACEOF
10148if ac_fn_c_try_compile "$LINENO"; then :
10149  xorg_cv_cc_flag_unused_command_line_argument=yes
10150else
10151  xorg_cv_cc_flag_unused_command_line_argument=no
10152fi
10153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10154fi
10155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10156$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10157	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10158	CFLAGS="$xorg_testset_save_CFLAGS"
10159fi
10160
10161found="no"
10162
10163	if test $found = "no" ; then
10164		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10165			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10166		fi
10167
10168		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10169			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10170		fi
10171
10172		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10173
10174		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10175$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10176		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10177		if eval \${$cacheid+:} false; then :
10178  $as_echo_n "(cached) " >&6
10179else
10180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10181/* end confdefs.h.  */
10182int i;
10183int
10184main ()
10185{
10186
10187  ;
10188  return 0;
10189}
10190_ACEOF
10191if ac_fn_c_try_link "$LINENO"; then :
10192  eval $cacheid=yes
10193else
10194  eval $cacheid=no
10195fi
10196rm -f core conftest.err conftest.$ac_objext \
10197    conftest$ac_exeext conftest.$ac_ext
10198fi
10199
10200
10201		CFLAGS="$xorg_testset_save_CFLAGS"
10202
10203		eval supported=\$$cacheid
10204		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10205$as_echo "$supported" >&6; }
10206		if test "$supported" = "yes" ; then
10207			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10208			found="yes"
10209		fi
10210	fi
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226xorg_testset_save_CFLAGS="$CFLAGS"
10227
10228if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10229	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10230	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10231$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10232if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10233  $as_echo_n "(cached) " >&6
10234else
10235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10236/* end confdefs.h.  */
10237int i;
10238_ACEOF
10239if ac_fn_c_try_compile "$LINENO"; then :
10240  xorg_cv_cc_flag_unknown_warning_option=yes
10241else
10242  xorg_cv_cc_flag_unknown_warning_option=no
10243fi
10244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10245fi
10246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10247$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10248	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10249	CFLAGS="$xorg_testset_save_CFLAGS"
10250fi
10251
10252if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10253	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10254		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10255	fi
10256	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10257	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10258$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10259if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10260  $as_echo_n "(cached) " >&6
10261else
10262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10263/* end confdefs.h.  */
10264int i;
10265_ACEOF
10266if ac_fn_c_try_compile "$LINENO"; then :
10267  xorg_cv_cc_flag_unused_command_line_argument=yes
10268else
10269  xorg_cv_cc_flag_unused_command_line_argument=no
10270fi
10271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10272fi
10273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10274$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10275	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10276	CFLAGS="$xorg_testset_save_CFLAGS"
10277fi
10278
10279found="no"
10280
10281	if test $found = "no" ; then
10282		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10283			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10284		fi
10285
10286		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10287			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10288		fi
10289
10290		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10291
10292		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10293$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10294		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10295		if eval \${$cacheid+:} false; then :
10296  $as_echo_n "(cached) " >&6
10297else
10298  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10299/* end confdefs.h.  */
10300int i;
10301int
10302main ()
10303{
10304
10305  ;
10306  return 0;
10307}
10308_ACEOF
10309if ac_fn_c_try_link "$LINENO"; then :
10310  eval $cacheid=yes
10311else
10312  eval $cacheid=no
10313fi
10314rm -f core conftest.err conftest.$ac_objext \
10315    conftest$ac_exeext conftest.$ac_ext
10316fi
10317
10318
10319		CFLAGS="$xorg_testset_save_CFLAGS"
10320
10321		eval supported=\$$cacheid
10322		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10323$as_echo "$supported" >&6; }
10324		if test "$supported" = "yes" ; then
10325			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10326			found="yes"
10327		fi
10328	fi
10329
10330
10331fi
10332
10333
10334
10335
10336
10337
10338
10339		CWARNFLAGS="$BASE_CFLAGS"
10340		if  test "x$GCC" = xyes ; then
10341		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10342		fi
10343
10344
10345
10346
10347
10348
10349
10350
10351# Check whether --enable-strict-compilation was given.
10352if test "${enable_strict_compilation+set}" = set; then :
10353  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10354else
10355  STRICT_COMPILE=no
10356fi
10357
10358
10359
10360
10361
10362
10363STRICT_CFLAGS=""
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377xorg_testset_save_CFLAGS="$CFLAGS"
10378
10379if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10380	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10381	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10382$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10383if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10384  $as_echo_n "(cached) " >&6
10385else
10386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10387/* end confdefs.h.  */
10388int i;
10389_ACEOF
10390if ac_fn_c_try_compile "$LINENO"; then :
10391  xorg_cv_cc_flag_unknown_warning_option=yes
10392else
10393  xorg_cv_cc_flag_unknown_warning_option=no
10394fi
10395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10396fi
10397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10398$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10399	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10400	CFLAGS="$xorg_testset_save_CFLAGS"
10401fi
10402
10403if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10404	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10405		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10406	fi
10407	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10408	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10409$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10410if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10411  $as_echo_n "(cached) " >&6
10412else
10413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10414/* end confdefs.h.  */
10415int i;
10416_ACEOF
10417if ac_fn_c_try_compile "$LINENO"; then :
10418  xorg_cv_cc_flag_unused_command_line_argument=yes
10419else
10420  xorg_cv_cc_flag_unused_command_line_argument=no
10421fi
10422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10423fi
10424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10425$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10426	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10427	CFLAGS="$xorg_testset_save_CFLAGS"
10428fi
10429
10430found="no"
10431
10432	if test $found = "no" ; then
10433		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10434			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10435		fi
10436
10437		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10438			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10439		fi
10440
10441		CFLAGS="$CFLAGS -pedantic"
10442
10443		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10444$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10445		cacheid=xorg_cv_cc_flag__pedantic
10446		if eval \${$cacheid+:} false; then :
10447  $as_echo_n "(cached) " >&6
10448else
10449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10450/* end confdefs.h.  */
10451int i;
10452int
10453main ()
10454{
10455
10456  ;
10457  return 0;
10458}
10459_ACEOF
10460if ac_fn_c_try_link "$LINENO"; then :
10461  eval $cacheid=yes
10462else
10463  eval $cacheid=no
10464fi
10465rm -f core conftest.err conftest.$ac_objext \
10466    conftest$ac_exeext conftest.$ac_ext
10467fi
10468
10469
10470		CFLAGS="$xorg_testset_save_CFLAGS"
10471
10472		eval supported=\$$cacheid
10473		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10474$as_echo "$supported" >&6; }
10475		if test "$supported" = "yes" ; then
10476			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10477			found="yes"
10478		fi
10479	fi
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495xorg_testset_save_CFLAGS="$CFLAGS"
10496
10497if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10498	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10499	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10500$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10501if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10502  $as_echo_n "(cached) " >&6
10503else
10504  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10505/* end confdefs.h.  */
10506int i;
10507_ACEOF
10508if ac_fn_c_try_compile "$LINENO"; then :
10509  xorg_cv_cc_flag_unknown_warning_option=yes
10510else
10511  xorg_cv_cc_flag_unknown_warning_option=no
10512fi
10513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10514fi
10515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10516$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10517	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10518	CFLAGS="$xorg_testset_save_CFLAGS"
10519fi
10520
10521if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10522	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10523		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10524	fi
10525	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10526	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10527$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10528if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10529  $as_echo_n "(cached) " >&6
10530else
10531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10532/* end confdefs.h.  */
10533int i;
10534_ACEOF
10535if ac_fn_c_try_compile "$LINENO"; then :
10536  xorg_cv_cc_flag_unused_command_line_argument=yes
10537else
10538  xorg_cv_cc_flag_unused_command_line_argument=no
10539fi
10540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10541fi
10542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10543$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10544	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10545	CFLAGS="$xorg_testset_save_CFLAGS"
10546fi
10547
10548found="no"
10549
10550	if test $found = "no" ; then
10551		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10552			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10553		fi
10554
10555		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10556			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10557		fi
10558
10559		CFLAGS="$CFLAGS -Werror"
10560
10561		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10562$as_echo_n "checking if $CC supports -Werror... " >&6; }
10563		cacheid=xorg_cv_cc_flag__Werror
10564		if eval \${$cacheid+:} false; then :
10565  $as_echo_n "(cached) " >&6
10566else
10567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10568/* end confdefs.h.  */
10569int i;
10570int
10571main ()
10572{
10573
10574  ;
10575  return 0;
10576}
10577_ACEOF
10578if ac_fn_c_try_link "$LINENO"; then :
10579  eval $cacheid=yes
10580else
10581  eval $cacheid=no
10582fi
10583rm -f core conftest.err conftest.$ac_objext \
10584    conftest$ac_exeext conftest.$ac_ext
10585fi
10586
10587
10588		CFLAGS="$xorg_testset_save_CFLAGS"
10589
10590		eval supported=\$$cacheid
10591		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10592$as_echo "$supported" >&6; }
10593		if test "$supported" = "yes" ; then
10594			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10595			found="yes"
10596		fi
10597	fi
10598
10599	if test $found = "no" ; then
10600		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10601			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10602		fi
10603
10604		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10605			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10606		fi
10607
10608		CFLAGS="$CFLAGS -errwarn"
10609
10610		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10611$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10612		cacheid=xorg_cv_cc_flag__errwarn
10613		if eval \${$cacheid+:} false; then :
10614  $as_echo_n "(cached) " >&6
10615else
10616  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10617/* end confdefs.h.  */
10618int i;
10619int
10620main ()
10621{
10622
10623  ;
10624  return 0;
10625}
10626_ACEOF
10627if ac_fn_c_try_link "$LINENO"; then :
10628  eval $cacheid=yes
10629else
10630  eval $cacheid=no
10631fi
10632rm -f core conftest.err conftest.$ac_objext \
10633    conftest$ac_exeext conftest.$ac_ext
10634fi
10635
10636
10637		CFLAGS="$xorg_testset_save_CFLAGS"
10638
10639		eval supported=\$$cacheid
10640		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10641$as_echo "$supported" >&6; }
10642		if test "$supported" = "yes" ; then
10643			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10644			found="yes"
10645		fi
10646	fi
10647
10648
10649
10650# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10651# activate it with -Werror, so we add it here explicitly.
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665xorg_testset_save_CFLAGS="$CFLAGS"
10666
10667if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10668	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10669	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10670$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10671if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10672  $as_echo_n "(cached) " >&6
10673else
10674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10675/* end confdefs.h.  */
10676int i;
10677_ACEOF
10678if ac_fn_c_try_compile "$LINENO"; then :
10679  xorg_cv_cc_flag_unknown_warning_option=yes
10680else
10681  xorg_cv_cc_flag_unknown_warning_option=no
10682fi
10683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10684fi
10685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10686$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10687	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10688	CFLAGS="$xorg_testset_save_CFLAGS"
10689fi
10690
10691if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10692	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10693		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10694	fi
10695	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10696	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10697$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10698if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10699  $as_echo_n "(cached) " >&6
10700else
10701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10702/* end confdefs.h.  */
10703int i;
10704_ACEOF
10705if ac_fn_c_try_compile "$LINENO"; then :
10706  xorg_cv_cc_flag_unused_command_line_argument=yes
10707else
10708  xorg_cv_cc_flag_unused_command_line_argument=no
10709fi
10710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10711fi
10712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10713$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10714	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10715	CFLAGS="$xorg_testset_save_CFLAGS"
10716fi
10717
10718found="no"
10719
10720	if test $found = "no" ; then
10721		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10722			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10723		fi
10724
10725		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10726			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10727		fi
10728
10729		CFLAGS="$CFLAGS -Werror=attributes"
10730
10731		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10732$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10733		cacheid=xorg_cv_cc_flag__Werror_attributes
10734		if eval \${$cacheid+:} false; then :
10735  $as_echo_n "(cached) " >&6
10736else
10737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10738/* end confdefs.h.  */
10739int i;
10740int
10741main ()
10742{
10743
10744  ;
10745  return 0;
10746}
10747_ACEOF
10748if ac_fn_c_try_link "$LINENO"; then :
10749  eval $cacheid=yes
10750else
10751  eval $cacheid=no
10752fi
10753rm -f core conftest.err conftest.$ac_objext \
10754    conftest$ac_exeext conftest.$ac_ext
10755fi
10756
10757
10758		CFLAGS="$xorg_testset_save_CFLAGS"
10759
10760		eval supported=\$$cacheid
10761		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10762$as_echo "$supported" >&6; }
10763		if test "$supported" = "yes" ; then
10764			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10765			found="yes"
10766		fi
10767	fi
10768
10769
10770
10771if test "x$STRICT_COMPILE" = "xyes"; then
10772    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10773    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10774fi
10775
10776
10777
10778
10779
10780
10781cat >>confdefs.h <<_ACEOF
10782#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10783_ACEOF
10784
10785	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10786	if test "x$PVM" = "x"; then
10787		PVM="0"
10788	fi
10789
10790cat >>confdefs.h <<_ACEOF
10791#define PACKAGE_VERSION_MINOR $PVM
10792_ACEOF
10793
10794	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10795	if test "x$PVP" = "x"; then
10796		PVP="0"
10797	fi
10798
10799cat >>confdefs.h <<_ACEOF
10800#define PACKAGE_VERSION_PATCHLEVEL $PVP
10801_ACEOF
10802
10803
10804
10805CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10806mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10807|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10808echo 'git directory not found: installing possibly 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; touch \$(top_srcdir)/INSTALL; \
10817echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10818
10819
10820
10821
10822
10823
10824if test x$APP_MAN_SUFFIX = x    ; then
10825    APP_MAN_SUFFIX=1
10826fi
10827if test x$APP_MAN_DIR = x    ; then
10828    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10829fi
10830
10831if test x$LIB_MAN_SUFFIX = x    ; then
10832    LIB_MAN_SUFFIX=3
10833fi
10834if test x$LIB_MAN_DIR = x    ; then
10835    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10836fi
10837
10838if test x$FILE_MAN_SUFFIX = x    ; then
10839    case $host_os in
10840	# Solaris 2.0 - 11 use SysV man page sections
10841	solaris2.?|solaris2.1[01])	FILE_MAN_SUFFIX=4  ;;
10842	*)				FILE_MAN_SUFFIX=5  ;;
10843    esac
10844fi
10845if test x$FILE_MAN_DIR = x    ; then
10846    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10847fi
10848
10849if test x$MISC_MAN_SUFFIX = x    ; then
10850    case $host_os in
10851	# Solaris 2.0 - 11 use SysV man page sections
10852	solaris2.?|solaris2.1[01])	MISC_MAN_SUFFIX=5  ;;
10853	*)				MISC_MAN_SUFFIX=7  ;;
10854    esac
10855fi
10856if test x$MISC_MAN_DIR = x    ; then
10857    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10858fi
10859
10860if test x$DRIVER_MAN_SUFFIX = x    ; then
10861    case $host_os in
10862	# Solaris 2.0 - 11 use SysV man page sections
10863	solaris2.?|solaris2.1[01])	DRIVER_MAN_SUFFIX=7  ;;
10864	*)				DRIVER_MAN_SUFFIX=4  ;;
10865    esac
10866fi
10867if test x$DRIVER_MAN_DIR = x    ; then
10868    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10869fi
10870
10871if test x$ADMIN_MAN_SUFFIX = x    ; then
10872    case $host_os in
10873	# Solaris 2.0 - 11 use SysV man page sections
10874	solaris2.?|solaris2.1[01])	ADMIN_MAN_SUFFIX=1m ;;
10875	*)				ADMIN_MAN_SUFFIX=8  ;;
10876    esac
10877fi
10878if test x$ADMIN_MAN_DIR = x    ; then
10879    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10880fi
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896XORG_MAN_PAGE="X Version 11"
10897
10898MAN_SUBSTS="\
10899	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10900	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10901	-e 's|__xservername__|Xorg|g' \
10902	-e 's|__xconfigfile__|xorg.conf|g' \
10903	-e 's|__projectroot__|\$(prefix)|g' \
10904	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10905	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10906	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10907	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10908	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10909	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10910	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10911
10912
10913
10914# Check whether --enable-silent-rules was given.
10915if test "${enable_silent_rules+set}" = set; then :
10916  enableval=$enable_silent_rules;
10917fi
10918
10919case $enable_silent_rules in # (((
10920  yes) AM_DEFAULT_VERBOSITY=0;;
10921   no) AM_DEFAULT_VERBOSITY=1;;
10922    *) AM_DEFAULT_VERBOSITY=0;;
10923esac
10924am_make=${MAKE-make}
10925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10926$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10927if ${am_cv_make_support_nested_variables+:} false; then :
10928  $as_echo_n "(cached) " >&6
10929else
10930  if $as_echo 'TRUE=$(BAR$(V))
10931BAR0=false
10932BAR1=true
10933V=1
10934am__doit:
10935	@$(TRUE)
10936.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10937  am_cv_make_support_nested_variables=yes
10938else
10939  am_cv_make_support_nested_variables=no
10940fi
10941fi
10942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10943$as_echo "$am_cv_make_support_nested_variables" >&6; }
10944if test $am_cv_make_support_nested_variables = yes; then
10945    AM_V='$(V)'
10946  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10947else
10948  AM_V=$AM_DEFAULT_VERBOSITY
10949  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10950fi
10951AM_BACKSLASH='\'
10952
10953
10954
10955# Checks for pkg-config packages
10956# - Both CFLAGS & LIBS needed:
10957
10958pkg_failed=no
10959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XHOST" >&5
10960$as_echo_n "checking for XHOST... " >&6; }
10961
10962if test -n "$XHOST_CFLAGS"; then
10963    pkg_cv_XHOST_CFLAGS="$XHOST_CFLAGS"
10964 elif test -n "$PKG_CONFIG"; then
10965    if test -n "$PKG_CONFIG" && \
10966    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.22 x11 xmuu\""; } >&5
10967  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.22 x11 xmuu") 2>&5
10968  ac_status=$?
10969  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10970  test $ac_status = 0; }; then
10971  pkg_cv_XHOST_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.22 x11 xmuu" 2>/dev/null`
10972		      test "x$?" != "x0" && pkg_failed=yes
10973else
10974  pkg_failed=yes
10975fi
10976 else
10977    pkg_failed=untried
10978fi
10979if test -n "$XHOST_LIBS"; then
10980    pkg_cv_XHOST_LIBS="$XHOST_LIBS"
10981 elif test -n "$PKG_CONFIG"; then
10982    if test -n "$PKG_CONFIG" && \
10983    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.22 x11 xmuu\""; } >&5
10984  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.22 x11 xmuu") 2>&5
10985  ac_status=$?
10986  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10987  test $ac_status = 0; }; then
10988  pkg_cv_XHOST_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.22 x11 xmuu" 2>/dev/null`
10989		      test "x$?" != "x0" && pkg_failed=yes
10990else
10991  pkg_failed=yes
10992fi
10993 else
10994    pkg_failed=untried
10995fi
10996
10997
10998
10999if test $pkg_failed = yes; then
11000   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11001$as_echo "no" >&6; }
11002
11003if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11004        _pkg_short_errors_supported=yes
11005else
11006        _pkg_short_errors_supported=no
11007fi
11008        if test $_pkg_short_errors_supported = yes; then
11009	        XHOST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.22 x11 xmuu" 2>&1`
11010        else
11011	        XHOST_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.22 x11 xmuu" 2>&1`
11012        fi
11013	# Put the nasty error message in config.log where it belongs
11014	echo "$XHOST_PKG_ERRORS" >&5
11015
11016	as_fn_error $? "Package requirements (xproto >= 7.0.22 x11 xmuu) were not met:
11017
11018$XHOST_PKG_ERRORS
11019
11020Consider adjusting the PKG_CONFIG_PATH environment variable if you
11021installed software in a non-standard prefix.
11022
11023Alternatively, you may set the environment variables XHOST_CFLAGS
11024and XHOST_LIBS to avoid the need to call pkg-config.
11025See the pkg-config man page for more details." "$LINENO" 5
11026elif test $pkg_failed = untried; then
11027     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11028$as_echo "no" >&6; }
11029	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11030$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11031as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11032is in your PATH or set the PKG_CONFIG environment variable to the full
11033path to pkg-config.
11034
11035Alternatively, you may set the environment variables XHOST_CFLAGS
11036and XHOST_LIBS to avoid the need to call pkg-config.
11037See the pkg-config man page for more details.
11038
11039To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11040See \`config.log' for more details" "$LINENO" 5; }
11041else
11042	XHOST_CFLAGS=$pkg_cv_XHOST_CFLAGS
11043	XHOST_LIBS=$pkg_cv_XHOST_LIBS
11044        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11045$as_echo "yes" >&6; }
11046
11047fi
11048# - Only CFLAGS needed, not libs:
11049
11050pkg_failed=no
11051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XAU" >&5
11052$as_echo_n "checking for XAU... " >&6; }
11053
11054if test -n "$XAU_CFLAGS"; then
11055    pkg_cv_XAU_CFLAGS="$XAU_CFLAGS"
11056 elif test -n "$PKG_CONFIG"; then
11057    if test -n "$PKG_CONFIG" && \
11058    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xau\""; } >&5
11059  ($PKG_CONFIG --exists --print-errors "xau") 2>&5
11060  ac_status=$?
11061  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11062  test $ac_status = 0; }; then
11063  pkg_cv_XAU_CFLAGS=`$PKG_CONFIG --cflags "xau" 2>/dev/null`
11064		      test "x$?" != "x0" && pkg_failed=yes
11065else
11066  pkg_failed=yes
11067fi
11068 else
11069    pkg_failed=untried
11070fi
11071if test -n "$XAU_LIBS"; then
11072    pkg_cv_XAU_LIBS="$XAU_LIBS"
11073 elif test -n "$PKG_CONFIG"; then
11074    if test -n "$PKG_CONFIG" && \
11075    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xau\""; } >&5
11076  ($PKG_CONFIG --exists --print-errors "xau") 2>&5
11077  ac_status=$?
11078  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11079  test $ac_status = 0; }; then
11080  pkg_cv_XAU_LIBS=`$PKG_CONFIG --libs "xau" 2>/dev/null`
11081		      test "x$?" != "x0" && pkg_failed=yes
11082else
11083  pkg_failed=yes
11084fi
11085 else
11086    pkg_failed=untried
11087fi
11088
11089
11090
11091if test $pkg_failed = yes; then
11092   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11093$as_echo "no" >&6; }
11094
11095if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11096        _pkg_short_errors_supported=yes
11097else
11098        _pkg_short_errors_supported=no
11099fi
11100        if test $_pkg_short_errors_supported = yes; then
11101	        XAU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xau" 2>&1`
11102        else
11103	        XAU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xau" 2>&1`
11104        fi
11105	# Put the nasty error message in config.log where it belongs
11106	echo "$XAU_PKG_ERRORS" >&5
11107
11108	as_fn_error $? "Package requirements (xau) were not met:
11109
11110$XAU_PKG_ERRORS
11111
11112Consider adjusting the PKG_CONFIG_PATH environment variable if you
11113installed software in a non-standard prefix.
11114
11115Alternatively, you may set the environment variables XAU_CFLAGS
11116and XAU_LIBS to avoid the need to call pkg-config.
11117See the pkg-config man page for more details." "$LINENO" 5
11118elif test $pkg_failed = untried; then
11119     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11120$as_echo "no" >&6; }
11121	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11122$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11123as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11124is in your PATH or set the PKG_CONFIG environment variable to the full
11125path to pkg-config.
11126
11127Alternatively, you may set the environment variables XAU_CFLAGS
11128and XAU_LIBS to avoid the need to call pkg-config.
11129See the pkg-config man page for more details.
11130
11131To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11132See \`config.log' for more details" "$LINENO" 5; }
11133else
11134	XAU_CFLAGS=$pkg_cv_XAU_CFLAGS
11135	XAU_LIBS=$pkg_cv_XAU_LIBS
11136        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11137$as_echo "yes" >&6; }
11138
11139fi
11140
11141# Transport selection macro from xtrans.m4
11142
11143
11144 case $host_os in
11145	mingw*)	unixdef="no"   ;;
11146	*)	unixdef="yes"  ;;
11147 esac
11148 # Check whether --enable-unix-transport was given.
11149if test "${enable_unix_transport+set}" = set; then :
11150  enableval=$enable_unix_transport; UNIXCONN=$enableval
11151else
11152  UNIXCONN=$unixdef
11153fi
11154
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
11156$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
11157 if test "$UNIXCONN" = "yes"; then
11158
11159$as_echo "#define UNIXCONN 1" >>confdefs.h
11160
11161 fi
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
11163$as_echo "$UNIXCONN" >&6; }
11164 # Check whether --enable-tcp-transport was given.
11165if test "${enable_tcp_transport+set}" = set; then :
11166  enableval=$enable_tcp_transport; TCPCONN=$enableval
11167else
11168  TCPCONN=yes
11169fi
11170
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
11172$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
11174$as_echo "$TCPCONN" >&6; }
11175 if test "$TCPCONN" = "yes"; then
11176
11177$as_echo "#define TCPCONN 1" >>confdefs.h
11178
11179
11180 # SVR4 hides these in libraries other than libc
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
11182$as_echo_n "checking for library containing socket... " >&6; }
11183if ${ac_cv_search_socket+:} false; then :
11184  $as_echo_n "(cached) " >&6
11185else
11186  ac_func_search_save_LIBS=$LIBS
11187cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11188/* end confdefs.h.  */
11189
11190/* Override any GCC internal prototype to avoid an error.
11191   Use char because int might match the return type of a GCC
11192   builtin and then its argument prototype would still apply.  */
11193#ifdef __cplusplus
11194extern "C"
11195#endif
11196char socket ();
11197int
11198main ()
11199{
11200return socket ();
11201  ;
11202  return 0;
11203}
11204_ACEOF
11205for ac_lib in '' socket; do
11206  if test -z "$ac_lib"; then
11207    ac_res="none required"
11208  else
11209    ac_res=-l$ac_lib
11210    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11211  fi
11212  if ac_fn_c_try_link "$LINENO"; then :
11213  ac_cv_search_socket=$ac_res
11214fi
11215rm -f core conftest.err conftest.$ac_objext \
11216    conftest$ac_exeext
11217  if ${ac_cv_search_socket+:} false; then :
11218  break
11219fi
11220done
11221if ${ac_cv_search_socket+:} false; then :
11222
11223else
11224  ac_cv_search_socket=no
11225fi
11226rm conftest.$ac_ext
11227LIBS=$ac_func_search_save_LIBS
11228fi
11229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
11230$as_echo "$ac_cv_search_socket" >&6; }
11231ac_res=$ac_cv_search_socket
11232if test "$ac_res" != no; then :
11233  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11234
11235fi
11236
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
11238$as_echo_n "checking for library containing gethostbyname... " >&6; }
11239if ${ac_cv_search_gethostbyname+:} false; then :
11240  $as_echo_n "(cached) " >&6
11241else
11242  ac_func_search_save_LIBS=$LIBS
11243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11244/* end confdefs.h.  */
11245
11246/* Override any GCC internal prototype to avoid an error.
11247   Use char because int might match the return type of a GCC
11248   builtin and then its argument prototype would still apply.  */
11249#ifdef __cplusplus
11250extern "C"
11251#endif
11252char gethostbyname ();
11253int
11254main ()
11255{
11256return gethostbyname ();
11257  ;
11258  return 0;
11259}
11260_ACEOF
11261for ac_lib in '' nsl; do
11262  if test -z "$ac_lib"; then
11263    ac_res="none required"
11264  else
11265    ac_res=-l$ac_lib
11266    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11267  fi
11268  if ac_fn_c_try_link "$LINENO"; then :
11269  ac_cv_search_gethostbyname=$ac_res
11270fi
11271rm -f core conftest.err conftest.$ac_objext \
11272    conftest$ac_exeext
11273  if ${ac_cv_search_gethostbyname+:} false; then :
11274  break
11275fi
11276done
11277if ${ac_cv_search_gethostbyname+:} false; then :
11278
11279else
11280  ac_cv_search_gethostbyname=no
11281fi
11282rm conftest.$ac_ext
11283LIBS=$ac_func_search_save_LIBS
11284fi
11285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
11286$as_echo "$ac_cv_search_gethostbyname" >&6; }
11287ac_res=$ac_cv_search_gethostbyname
11288if test "$ac_res" != no; then :
11289  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11290
11291fi
11292
11293 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
11294   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
11295$as_echo_n "checking for main in -lws2_32... " >&6; }
11296if ${ac_cv_lib_ws2_32_main+:} false; then :
11297  $as_echo_n "(cached) " >&6
11298else
11299  ac_check_lib_save_LIBS=$LIBS
11300LIBS="-lws2_32  $LIBS"
11301cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11302/* end confdefs.h.  */
11303
11304
11305int
11306main ()
11307{
11308return main ();
11309  ;
11310  return 0;
11311}
11312_ACEOF
11313if ac_fn_c_try_link "$LINENO"; then :
11314  ac_cv_lib_ws2_32_main=yes
11315else
11316  ac_cv_lib_ws2_32_main=no
11317fi
11318rm -f core conftest.err conftest.$ac_objext \
11319    conftest$ac_exeext conftest.$ac_ext
11320LIBS=$ac_check_lib_save_LIBS
11321fi
11322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
11323$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
11324if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
11325  cat >>confdefs.h <<_ACEOF
11326#define HAVE_LIBWS2_32 1
11327_ACEOF
11328
11329  LIBS="-lws2_32 $LIBS"
11330
11331fi
11332
11333 fi
11334
11335 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
11336 # Check whether --enable-ipv6 was given.
11337if test "${enable_ipv6+set}" = set; then :
11338  enableval=$enable_ipv6; IPV6CONN=$enableval
11339else
11340  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
11341if test "x$ac_cv_func_getaddrinfo" = xyes; then :
11342  IPV6CONN=yes
11343else
11344  IPV6CONN=no
11345fi
11346
11347fi
11348
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
11350$as_echo_n "checking if IPv6 support should be built... " >&6; }
11351 if test "$IPV6CONN" = "yes"; then
11352
11353$as_echo "#define IPv6 1" >>confdefs.h
11354
11355 fi
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
11357$as_echo "$IPV6CONN" >&6; }
11358
11359 # 4.3BSD-Reno added a new member to struct sockaddr_in
11360 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
11361#include <sys/types.h>
11362#include <sys/socket.h>
11363#include <netinet/in.h>
11364
11365"
11366if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
11367
11368$as_echo "#define BSD44SOCKETS 1" >>confdefs.h
11369
11370fi
11371
11372
11373 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
11374 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
11375$ac_includes_default
11376#include <sys/socket.h>
11377"
11378if test "x$ac_cv_type_socklen_t" = xyes; then :
11379
11380cat >>confdefs.h <<_ACEOF
11381#define HAVE_SOCKLEN_T 1
11382_ACEOF
11383
11384
11385fi
11386
11387
11388 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
11389 # _XOPEN_SOURCE to get it (such as on Solaris)
11390 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
11391$ac_includes_default
11392#include <sys/socket.h>
11393
11394"
11395if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
11396
11397fi
11398
11399 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
11400 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
11401     unset ac_cv_member_struct_msghdr_msg_control
11402     { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
11403$as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
11404     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
11405#define _XOPEN_SOURCE 600
11406$ac_includes_default
11407#include <sys/socket.h>
11408
11409"
11410if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
11411
11412$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
11413
11414
11415fi
11416
11417 fi
11418 # If that didn't work, fall back to XPG5/UNIX98 with C89
11419 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
11420     unset ac_cv_member_struct_msghdr_msg_control
11421     { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
11422$as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
11423     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
11424#define _XOPEN_SOURCE 500
11425$ac_includes_default
11426#include <sys/socket.h>
11427
11428"
11429if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
11430
11431$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
11432
11433
11434fi
11435
11436 fi
11437
11438
11439
11440 fi
11441 case $host_os in
11442	solaris*|sco*|sysv4*)	localdef="yes" ;;
11443	*)			localdef="no"  ;;
11444 esac
11445 # Check whether --enable-local-transport was given.
11446if test "${enable_local_transport+set}" = set; then :
11447  enableval=$enable_local_transport; LOCALCONN=$enableval
11448else
11449  LOCALCONN=$localdef
11450fi
11451
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
11453$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
11455$as_echo "$LOCALCONN" >&6; }
11456 if test "$LOCALCONN" = "yes"; then
11457
11458$as_echo "#define LOCALCONN 1" >>confdefs.h
11459
11460 fi
11461
11462
11463
11464# Secure RPC detection macro from xtrans.m4
11465
11466 # Check whether --enable-secure-rpc was given.
11467if test "${enable_secure_rpc+set}" = set; then :
11468  enableval=$enable_secure_rpc; SECURE_RPC=$enableval
11469else
11470  SECURE_RPC="try"
11471fi
11472
11473
11474 if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then
11475	FOUND_SECURE_RPC="no"
11476	for ac_func in authdes_seccreate authdes_create
11477do :
11478  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11479ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11480if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11481  cat >>confdefs.h <<_ACEOF
11482#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11483_ACEOF
11484 FOUND_SECURE_RPC="yes"
11485fi
11486done
11487
11488	if test "x$FOUND_SECURE_RPC" = "xno" ; then
11489		if test "x$SECURE_RPC" = "xyes" ; then
11490	as_fn_error $? "Secure RPC requested, but required functions not found" "$LINENO" 5
11491		fi
11492		SECURE_RPC="no"
11493	else
11494				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsecretkey" >&5
11495$as_echo_n "checking for library containing getsecretkey... " >&6; }
11496if ${ac_cv_search_getsecretkey+:} false; then :
11497  $as_echo_n "(cached) " >&6
11498else
11499  ac_func_search_save_LIBS=$LIBS
11500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11501/* end confdefs.h.  */
11502
11503/* Override any GCC internal prototype to avoid an error.
11504   Use char because int might match the return type of a GCC
11505   builtin and then its argument prototype would still apply.  */
11506#ifdef __cplusplus
11507extern "C"
11508#endif
11509char getsecretkey ();
11510int
11511main ()
11512{
11513return getsecretkey ();
11514  ;
11515  return 0;
11516}
11517_ACEOF
11518for ac_lib in '' rpcsvc; do
11519  if test -z "$ac_lib"; then
11520    ac_res="none required"
11521  else
11522    ac_res=-l$ac_lib
11523    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11524  fi
11525  if ac_fn_c_try_link "$LINENO"; then :
11526  ac_cv_search_getsecretkey=$ac_res
11527fi
11528rm -f core conftest.err conftest.$ac_objext \
11529    conftest$ac_exeext
11530  if ${ac_cv_search_getsecretkey+:} false; then :
11531  break
11532fi
11533done
11534if ${ac_cv_search_getsecretkey+:} false; then :
11535
11536else
11537  ac_cv_search_getsecretkey=no
11538fi
11539rm conftest.$ac_ext
11540LIBS=$ac_func_search_save_LIBS
11541fi
11542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsecretkey" >&5
11543$as_echo "$ac_cv_search_getsecretkey" >&6; }
11544ac_res=$ac_cv_search_getsecretkey
11545if test "$ac_res" != no; then :
11546  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11547
11548fi
11549
11550		SECURE_RPC="yes"
11551	fi
11552 fi
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5
11554$as_echo_n "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... " >&6; }
11555 if test "x$SECURE_RPC" = "xyes" ; then
11556
11557$as_echo "#define SECURE_RPC 1" >>confdefs.h
11558
11559 fi
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SECURE_RPC" >&5
11561$as_echo "$SECURE_RPC" >&6; }
11562
11563
11564# Link with winsock if mingw target
11565case $host_os in
11566 *mingw*)
11567  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
11568$as_echo_n "checking for main in -lws2_32... " >&6; }
11569if ${ac_cv_lib_ws2_32_main+:} false; then :
11570  $as_echo_n "(cached) " >&6
11571else
11572  ac_check_lib_save_LIBS=$LIBS
11573LIBS="-lws2_32  $LIBS"
11574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11575/* end confdefs.h.  */
11576
11577
11578int
11579main ()
11580{
11581return main ();
11582  ;
11583  return 0;
11584}
11585_ACEOF
11586if ac_fn_c_try_link "$LINENO"; then :
11587  ac_cv_lib_ws2_32_main=yes
11588else
11589  ac_cv_lib_ws2_32_main=no
11590fi
11591rm -f core conftest.err conftest.$ac_objext \
11592    conftest$ac_exeext conftest.$ac_ext
11593LIBS=$ac_check_lib_save_LIBS
11594fi
11595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
11596$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
11597if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
11598  cat >>confdefs.h <<_ACEOF
11599#define HAVE_LIBWS2_32 1
11600_ACEOF
11601
11602  LIBS="-lws2_32 $LIBS"
11603
11604fi
11605
11606  ;;
11607 *)
11608  ;;
11609esac
11610
11611# Checks for library functions.
11612for ac_func in inet_aton
11613do :
11614  ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
11615if test "x$ac_cv_func_inet_aton" = xyes; then :
11616  cat >>confdefs.h <<_ACEOF
11617#define HAVE_INET_ATON 1
11618_ACEOF
11619
11620fi
11621done
11622
11623
11624ac_config_files="$ac_config_files Makefile man/Makefile"
11625
11626cat >confcache <<\_ACEOF
11627# This file is a shell script that caches the results of configure
11628# tests run on this system so they can be shared between configure
11629# scripts and configure runs, see configure's option --config-cache.
11630# It is not useful on other systems.  If it contains results you don't
11631# want to keep, you may remove or edit it.
11632#
11633# config.status only pays attention to the cache file if you give it
11634# the --recheck option to rerun configure.
11635#
11636# `ac_cv_env_foo' variables (set or unset) will be overridden when
11637# loading this file, other *unset* `ac_cv_foo' will be assigned the
11638# following values.
11639
11640_ACEOF
11641
11642# The following way of writing the cache mishandles newlines in values,
11643# but we know of no workaround that is simple, portable, and efficient.
11644# So, we kill variables containing newlines.
11645# Ultrix sh set writes to stderr and can't be redirected directly,
11646# and sets the high bit in the cache file unless we assign to the vars.
11647(
11648  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11649    eval ac_val=\$$ac_var
11650    case $ac_val in #(
11651    *${as_nl}*)
11652      case $ac_var in #(
11653      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11654$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11655      esac
11656      case $ac_var in #(
11657      _ | IFS | as_nl) ;; #(
11658      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11659      *) { eval $ac_var=; unset $ac_var;} ;;
11660      esac ;;
11661    esac
11662  done
11663
11664  (set) 2>&1 |
11665    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11666    *${as_nl}ac_space=\ *)
11667      # `set' does not quote correctly, so add quotes: double-quote
11668      # substitution turns \\\\ into \\, and sed turns \\ into \.
11669      sed -n \
11670	"s/'/'\\\\''/g;
11671	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11672      ;; #(
11673    *)
11674      # `set' quotes correctly as required by POSIX, so do not add quotes.
11675      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11676      ;;
11677    esac |
11678    sort
11679) |
11680  sed '
11681     /^ac_cv_env_/b end
11682     t clear
11683     :clear
11684     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11685     t end
11686     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11687     :end' >>confcache
11688if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11689  if test -w "$cache_file"; then
11690    if test "x$cache_file" != "x/dev/null"; then
11691      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11692$as_echo "$as_me: updating cache $cache_file" >&6;}
11693      if test ! -f "$cache_file" || test -h "$cache_file"; then
11694	cat confcache >"$cache_file"
11695      else
11696        case $cache_file in #(
11697        */* | ?:*)
11698	  mv -f confcache "$cache_file"$$ &&
11699	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11700        *)
11701	  mv -f confcache "$cache_file" ;;
11702	esac
11703      fi
11704    fi
11705  else
11706    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11707$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11708  fi
11709fi
11710rm -f confcache
11711
11712test "x$prefix" = xNONE && prefix=$ac_default_prefix
11713# Let make expand exec_prefix.
11714test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11715
11716DEFS=-DHAVE_CONFIG_H
11717
11718ac_libobjs=
11719ac_ltlibobjs=
11720U=
11721for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11722  # 1. Remove the extension, and $U if already installed.
11723  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11724  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11725  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11726  #    will be set to the directory where LIBOBJS objects are built.
11727  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11728  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11729done
11730LIBOBJS=$ac_libobjs
11731
11732LTLIBOBJS=$ac_ltlibobjs
11733
11734
11735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11736$as_echo_n "checking that generated files are newer than configure... " >&6; }
11737   if test -n "$am_sleep_pid"; then
11738     # Hide warnings about reused PIDs.
11739     wait $am_sleep_pid 2>/dev/null
11740   fi
11741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11742$as_echo "done" >&6; }
11743 if test -n "$EXEEXT"; then
11744  am__EXEEXT_TRUE=
11745  am__EXEEXT_FALSE='#'
11746else
11747  am__EXEEXT_TRUE='#'
11748  am__EXEEXT_FALSE=
11749fi
11750
11751if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11752  as_fn_error $? "conditional \"AMDEP\" was never defined.
11753Usually this means the macro was only invoked conditionally." "$LINENO" 5
11754fi
11755if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11756  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11757Usually this means the macro was only invoked conditionally." "$LINENO" 5
11758fi
11759
11760: "${CONFIG_STATUS=./config.status}"
11761ac_write_fail=0
11762ac_clean_files_save=$ac_clean_files
11763ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11764{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11765$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11766as_write_fail=0
11767cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11768#! $SHELL
11769# Generated by $as_me.
11770# Run this file to recreate the current configuration.
11771# Compiler output produced by configure, useful for debugging
11772# configure, is in config.log if it exists.
11773
11774debug=false
11775ac_cs_recheck=false
11776ac_cs_silent=false
11777
11778SHELL=\${CONFIG_SHELL-$SHELL}
11779export SHELL
11780_ASEOF
11781cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11782## -------------------- ##
11783## M4sh Initialization. ##
11784## -------------------- ##
11785
11786# Be more Bourne compatible
11787DUALCASE=1; export DUALCASE # for MKS sh
11788if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11789  emulate sh
11790  NULLCMD=:
11791  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11792  # is contrary to our usage.  Disable this feature.
11793  alias -g '${1+"$@"}'='"$@"'
11794  setopt NO_GLOB_SUBST
11795else
11796  case `(set -o) 2>/dev/null` in #(
11797  *posix*) :
11798    set -o posix ;; #(
11799  *) :
11800     ;;
11801esac
11802fi
11803
11804
11805as_nl='
11806'
11807export as_nl
11808# Printing a long string crashes Solaris 7 /usr/bin/printf.
11809as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11810as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11811as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11812# Prefer a ksh shell builtin over an external printf program on Solaris,
11813# but without wasting forks for bash or zsh.
11814if test -z "$BASH_VERSION$ZSH_VERSION" \
11815    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11816  as_echo='print -r --'
11817  as_echo_n='print -rn --'
11818elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11819  as_echo='printf %s\n'
11820  as_echo_n='printf %s'
11821else
11822  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11823    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11824    as_echo_n='/usr/ucb/echo -n'
11825  else
11826    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11827    as_echo_n_body='eval
11828      arg=$1;
11829      case $arg in #(
11830      *"$as_nl"*)
11831	expr "X$arg" : "X\\(.*\\)$as_nl";
11832	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11833      esac;
11834      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11835    '
11836    export as_echo_n_body
11837    as_echo_n='sh -c $as_echo_n_body as_echo'
11838  fi
11839  export as_echo_body
11840  as_echo='sh -c $as_echo_body as_echo'
11841fi
11842
11843# The user is always right.
11844if test "${PATH_SEPARATOR+set}" != set; then
11845  PATH_SEPARATOR=:
11846  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11847    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11848      PATH_SEPARATOR=';'
11849  }
11850fi
11851
11852
11853# IFS
11854# We need space, tab and new line, in precisely that order.  Quoting is
11855# there to prevent editors from complaining about space-tab.
11856# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11857# splitting by setting IFS to empty value.)
11858IFS=" ""	$as_nl"
11859
11860# Find who we are.  Look in the path if we contain no directory separator.
11861as_myself=
11862case $0 in #((
11863  *[\\/]* ) as_myself=$0 ;;
11864  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11865for as_dir in $PATH
11866do
11867  IFS=$as_save_IFS
11868  test -z "$as_dir" && as_dir=.
11869    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11870  done
11871IFS=$as_save_IFS
11872
11873     ;;
11874esac
11875# We did not find ourselves, most probably we were run as `sh COMMAND'
11876# in which case we are not to be found in the path.
11877if test "x$as_myself" = x; then
11878  as_myself=$0
11879fi
11880if test ! -f "$as_myself"; then
11881  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11882  exit 1
11883fi
11884
11885# Unset variables that we do not need and which cause bugs (e.g. in
11886# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11887# suppresses any "Segmentation fault" message there.  '((' could
11888# trigger a bug in pdksh 5.2.14.
11889for as_var in BASH_ENV ENV MAIL MAILPATH
11890do eval test x\${$as_var+set} = xset \
11891  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11892done
11893PS1='$ '
11894PS2='> '
11895PS4='+ '
11896
11897# NLS nuisances.
11898LC_ALL=C
11899export LC_ALL
11900LANGUAGE=C
11901export LANGUAGE
11902
11903# CDPATH.
11904(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11905
11906
11907# as_fn_error STATUS ERROR [LINENO LOG_FD]
11908# ----------------------------------------
11909# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11910# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11911# script with STATUS, using 1 if that was 0.
11912as_fn_error ()
11913{
11914  as_status=$1; test $as_status -eq 0 && as_status=1
11915  if test "$4"; then
11916    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11917    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11918  fi
11919  $as_echo "$as_me: error: $2" >&2
11920  as_fn_exit $as_status
11921} # as_fn_error
11922
11923
11924# as_fn_set_status STATUS
11925# -----------------------
11926# Set $? to STATUS, without forking.
11927as_fn_set_status ()
11928{
11929  return $1
11930} # as_fn_set_status
11931
11932# as_fn_exit STATUS
11933# -----------------
11934# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11935as_fn_exit ()
11936{
11937  set +e
11938  as_fn_set_status $1
11939  exit $1
11940} # as_fn_exit
11941
11942# as_fn_unset VAR
11943# ---------------
11944# Portably unset VAR.
11945as_fn_unset ()
11946{
11947  { eval $1=; unset $1;}
11948}
11949as_unset=as_fn_unset
11950# as_fn_append VAR VALUE
11951# ----------------------
11952# Append the text in VALUE to the end of the definition contained in VAR. Take
11953# advantage of any shell optimizations that allow amortized linear growth over
11954# repeated appends, instead of the typical quadratic growth present in naive
11955# implementations.
11956if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11957  eval 'as_fn_append ()
11958  {
11959    eval $1+=\$2
11960  }'
11961else
11962  as_fn_append ()
11963  {
11964    eval $1=\$$1\$2
11965  }
11966fi # as_fn_append
11967
11968# as_fn_arith ARG...
11969# ------------------
11970# Perform arithmetic evaluation on the ARGs, and store the result in the
11971# global $as_val. Take advantage of shells that can avoid forks. The arguments
11972# must be portable across $(()) and expr.
11973if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11974  eval 'as_fn_arith ()
11975  {
11976    as_val=$(( $* ))
11977  }'
11978else
11979  as_fn_arith ()
11980  {
11981    as_val=`expr "$@" || test $? -eq 1`
11982  }
11983fi # as_fn_arith
11984
11985
11986if expr a : '\(a\)' >/dev/null 2>&1 &&
11987   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11988  as_expr=expr
11989else
11990  as_expr=false
11991fi
11992
11993if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11994  as_basename=basename
11995else
11996  as_basename=false
11997fi
11998
11999if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12000  as_dirname=dirname
12001else
12002  as_dirname=false
12003fi
12004
12005as_me=`$as_basename -- "$0" ||
12006$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12007	 X"$0" : 'X\(//\)$' \| \
12008	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12009$as_echo X/"$0" |
12010    sed '/^.*\/\([^/][^/]*\)\/*$/{
12011	    s//\1/
12012	    q
12013	  }
12014	  /^X\/\(\/\/\)$/{
12015	    s//\1/
12016	    q
12017	  }
12018	  /^X\/\(\/\).*/{
12019	    s//\1/
12020	    q
12021	  }
12022	  s/.*/./; q'`
12023
12024# Avoid depending upon Character Ranges.
12025as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12026as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12027as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12028as_cr_digits='0123456789'
12029as_cr_alnum=$as_cr_Letters$as_cr_digits
12030
12031ECHO_C= ECHO_N= ECHO_T=
12032case `echo -n x` in #(((((
12033-n*)
12034  case `echo 'xy\c'` in
12035  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12036  xy)  ECHO_C='\c';;
12037  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12038       ECHO_T='	';;
12039  esac;;
12040*)
12041  ECHO_N='-n';;
12042esac
12043
12044rm -f conf$$ conf$$.exe conf$$.file
12045if test -d conf$$.dir; then
12046  rm -f conf$$.dir/conf$$.file
12047else
12048  rm -f conf$$.dir
12049  mkdir conf$$.dir 2>/dev/null
12050fi
12051if (echo >conf$$.file) 2>/dev/null; then
12052  if ln -s conf$$.file conf$$ 2>/dev/null; then
12053    as_ln_s='ln -s'
12054    # ... but there are two gotchas:
12055    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12056    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12057    # In both cases, we have to default to `cp -pR'.
12058    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12059      as_ln_s='cp -pR'
12060  elif ln conf$$.file conf$$ 2>/dev/null; then
12061    as_ln_s=ln
12062  else
12063    as_ln_s='cp -pR'
12064  fi
12065else
12066  as_ln_s='cp -pR'
12067fi
12068rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12069rmdir conf$$.dir 2>/dev/null
12070
12071
12072# as_fn_mkdir_p
12073# -------------
12074# Create "$as_dir" as a directory, including parents if necessary.
12075as_fn_mkdir_p ()
12076{
12077
12078  case $as_dir in #(
12079  -*) as_dir=./$as_dir;;
12080  esac
12081  test -d "$as_dir" || eval $as_mkdir_p || {
12082    as_dirs=
12083    while :; do
12084      case $as_dir in #(
12085      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12086      *) as_qdir=$as_dir;;
12087      esac
12088      as_dirs="'$as_qdir' $as_dirs"
12089      as_dir=`$as_dirname -- "$as_dir" ||
12090$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12091	 X"$as_dir" : 'X\(//\)[^/]' \| \
12092	 X"$as_dir" : 'X\(//\)$' \| \
12093	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12094$as_echo X"$as_dir" |
12095    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12096	    s//\1/
12097	    q
12098	  }
12099	  /^X\(\/\/\)[^/].*/{
12100	    s//\1/
12101	    q
12102	  }
12103	  /^X\(\/\/\)$/{
12104	    s//\1/
12105	    q
12106	  }
12107	  /^X\(\/\).*/{
12108	    s//\1/
12109	    q
12110	  }
12111	  s/.*/./; q'`
12112      test -d "$as_dir" && break
12113    done
12114    test -z "$as_dirs" || eval "mkdir $as_dirs"
12115  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12116
12117
12118} # as_fn_mkdir_p
12119if mkdir -p . 2>/dev/null; then
12120  as_mkdir_p='mkdir -p "$as_dir"'
12121else
12122  test -d ./-p && rmdir ./-p
12123  as_mkdir_p=false
12124fi
12125
12126
12127# as_fn_executable_p FILE
12128# -----------------------
12129# Test if FILE is an executable regular file.
12130as_fn_executable_p ()
12131{
12132  test -f "$1" && test -x "$1"
12133} # as_fn_executable_p
12134as_test_x='test -x'
12135as_executable_p=as_fn_executable_p
12136
12137# Sed expression to map a string onto a valid CPP name.
12138as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12139
12140# Sed expression to map a string onto a valid variable name.
12141as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12142
12143
12144exec 6>&1
12145## ----------------------------------- ##
12146## Main body of $CONFIG_STATUS script. ##
12147## ----------------------------------- ##
12148_ASEOF
12149test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12150
12151cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12152# Save the log message, to keep $0 and so on meaningful, and to
12153# report actual input values of CONFIG_FILES etc. instead of their
12154# values after options handling.
12155ac_log="
12156This file was extended by xhost $as_me 1.0.8, which was
12157generated by GNU Autoconf 2.69.  Invocation command line was
12158
12159  CONFIG_FILES    = $CONFIG_FILES
12160  CONFIG_HEADERS  = $CONFIG_HEADERS
12161  CONFIG_LINKS    = $CONFIG_LINKS
12162  CONFIG_COMMANDS = $CONFIG_COMMANDS
12163  $ $0 $@
12164
12165on `(hostname || uname -n) 2>/dev/null | sed 1q`
12166"
12167
12168_ACEOF
12169
12170case $ac_config_files in *"
12171"*) set x $ac_config_files; shift; ac_config_files=$*;;
12172esac
12173
12174case $ac_config_headers in *"
12175"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12176esac
12177
12178
12179cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12180# Files that config.status was made for.
12181config_files="$ac_config_files"
12182config_headers="$ac_config_headers"
12183config_commands="$ac_config_commands"
12184
12185_ACEOF
12186
12187cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12188ac_cs_usage="\
12189\`$as_me' instantiates files and other configuration actions
12190from templates according to the current configuration.  Unless the files
12191and actions are specified as TAGs, all are instantiated by default.
12192
12193Usage: $0 [OPTION]... [TAG]...
12194
12195  -h, --help       print this help, then exit
12196  -V, --version    print version number and configuration settings, then exit
12197      --config     print configuration, then exit
12198  -q, --quiet, --silent
12199                   do not print progress messages
12200  -d, --debug      don't remove temporary files
12201      --recheck    update $as_me by reconfiguring in the same conditions
12202      --file=FILE[:TEMPLATE]
12203                   instantiate the configuration file FILE
12204      --header=FILE[:TEMPLATE]
12205                   instantiate the configuration header FILE
12206
12207Configuration files:
12208$config_files
12209
12210Configuration headers:
12211$config_headers
12212
12213Configuration commands:
12214$config_commands
12215
12216Report bugs to <https://gitlab.freedesktop.org/xorg/app/xhost/issues>."
12217
12218_ACEOF
12219cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12220ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12221ac_cs_version="\\
12222xhost config.status 1.0.8
12223configured by $0, generated by GNU Autoconf 2.69,
12224  with options \\"\$ac_cs_config\\"
12225
12226Copyright (C) 2012 Free Software Foundation, Inc.
12227This config.status script is free software; the Free Software Foundation
12228gives unlimited permission to copy, distribute and modify it."
12229
12230ac_pwd='$ac_pwd'
12231srcdir='$srcdir'
12232INSTALL='$INSTALL'
12233MKDIR_P='$MKDIR_P'
12234AWK='$AWK'
12235test -n "\$AWK" || AWK=awk
12236_ACEOF
12237
12238cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12239# The default lists apply if the user does not specify any file.
12240ac_need_defaults=:
12241while test $# != 0
12242do
12243  case $1 in
12244  --*=?*)
12245    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12246    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12247    ac_shift=:
12248    ;;
12249  --*=)
12250    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12251    ac_optarg=
12252    ac_shift=:
12253    ;;
12254  *)
12255    ac_option=$1
12256    ac_optarg=$2
12257    ac_shift=shift
12258    ;;
12259  esac
12260
12261  case $ac_option in
12262  # Handling of the options.
12263  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12264    ac_cs_recheck=: ;;
12265  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12266    $as_echo "$ac_cs_version"; exit ;;
12267  --config | --confi | --conf | --con | --co | --c )
12268    $as_echo "$ac_cs_config"; exit ;;
12269  --debug | --debu | --deb | --de | --d | -d )
12270    debug=: ;;
12271  --file | --fil | --fi | --f )
12272    $ac_shift
12273    case $ac_optarg in
12274    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12275    '') as_fn_error $? "missing file argument" ;;
12276    esac
12277    as_fn_append CONFIG_FILES " '$ac_optarg'"
12278    ac_need_defaults=false;;
12279  --header | --heade | --head | --hea )
12280    $ac_shift
12281    case $ac_optarg in
12282    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12283    esac
12284    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12285    ac_need_defaults=false;;
12286  --he | --h)
12287    # Conflict between --help and --header
12288    as_fn_error $? "ambiguous option: \`$1'
12289Try \`$0 --help' for more information.";;
12290  --help | --hel | -h )
12291    $as_echo "$ac_cs_usage"; exit ;;
12292  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12293  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12294    ac_cs_silent=: ;;
12295
12296  # This is an error.
12297  -*) as_fn_error $? "unrecognized option: \`$1'
12298Try \`$0 --help' for more information." ;;
12299
12300  *) as_fn_append ac_config_targets " $1"
12301     ac_need_defaults=false ;;
12302
12303  esac
12304  shift
12305done
12306
12307ac_configure_extra_args=
12308
12309if $ac_cs_silent; then
12310  exec 6>/dev/null
12311  ac_configure_extra_args="$ac_configure_extra_args --silent"
12312fi
12313
12314_ACEOF
12315cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12316if \$ac_cs_recheck; then
12317  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12318  shift
12319  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12320  CONFIG_SHELL='$SHELL'
12321  export CONFIG_SHELL
12322  exec "\$@"
12323fi
12324
12325_ACEOF
12326cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12327exec 5>>config.log
12328{
12329  echo
12330  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12331## Running $as_me. ##
12332_ASBOX
12333  $as_echo "$ac_log"
12334} >&5
12335
12336_ACEOF
12337cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12338#
12339# INIT-COMMANDS
12340#
12341AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12342
12343_ACEOF
12344
12345cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12346
12347# Handling of arguments.
12348for ac_config_target in $ac_config_targets
12349do
12350  case $ac_config_target in
12351    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12352    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12353    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12354    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12355
12356  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12357  esac
12358done
12359
12360
12361# If the user did not use the arguments to specify the items to instantiate,
12362# then the envvar interface is used.  Set only those that are not.
12363# We use the long form for the default assignment because of an extremely
12364# bizarre bug on SunOS 4.1.3.
12365if $ac_need_defaults; then
12366  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12367  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12368  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12369fi
12370
12371# Have a temporary directory for convenience.  Make it in the build tree
12372# simply because there is no reason against having it here, and in addition,
12373# creating and moving files from /tmp can sometimes cause problems.
12374# Hook for its removal unless debugging.
12375# Note that there is a small window in which the directory will not be cleaned:
12376# after its creation but before its name has been assigned to `$tmp'.
12377$debug ||
12378{
12379  tmp= ac_tmp=
12380  trap 'exit_status=$?
12381  : "${ac_tmp:=$tmp}"
12382  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12383' 0
12384  trap 'as_fn_exit 1' 1 2 13 15
12385}
12386# Create a (secure) tmp directory for tmp files.
12387
12388{
12389  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12390  test -d "$tmp"
12391}  ||
12392{
12393  tmp=./conf$$-$RANDOM
12394  (umask 077 && mkdir "$tmp")
12395} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12396ac_tmp=$tmp
12397
12398# Set up the scripts for CONFIG_FILES section.
12399# No need to generate them if there are no CONFIG_FILES.
12400# This happens for instance with `./config.status config.h'.
12401if test -n "$CONFIG_FILES"; then
12402
12403
12404ac_cr=`echo X | tr X '\015'`
12405# On cygwin, bash can eat \r inside `` if the user requested igncr.
12406# But we know of no other shell where ac_cr would be empty at this
12407# point, so we can use a bashism as a fallback.
12408if test "x$ac_cr" = x; then
12409  eval ac_cr=\$\'\\r\'
12410fi
12411ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12412if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12413  ac_cs_awk_cr='\\r'
12414else
12415  ac_cs_awk_cr=$ac_cr
12416fi
12417
12418echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12419_ACEOF
12420
12421
12422{
12423  echo "cat >conf$$subs.awk <<_ACEOF" &&
12424  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12425  echo "_ACEOF"
12426} >conf$$subs.sh ||
12427  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12428ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12429ac_delim='%!_!# '
12430for ac_last_try in false false false false false :; do
12431  . ./conf$$subs.sh ||
12432    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12433
12434  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12435  if test $ac_delim_n = $ac_delim_num; then
12436    break
12437  elif $ac_last_try; then
12438    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12439  else
12440    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12441  fi
12442done
12443rm -f conf$$subs.sh
12444
12445cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12446cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12447_ACEOF
12448sed -n '
12449h
12450s/^/S["/; s/!.*/"]=/
12451p
12452g
12453s/^[^!]*!//
12454:repl
12455t repl
12456s/'"$ac_delim"'$//
12457t delim
12458:nl
12459h
12460s/\(.\{148\}\)..*/\1/
12461t more1
12462s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12463p
12464n
12465b repl
12466:more1
12467s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12468p
12469g
12470s/.\{148\}//
12471t nl
12472:delim
12473h
12474s/\(.\{148\}\)..*/\1/
12475t more2
12476s/["\\]/\\&/g; s/^/"/; s/$/"/
12477p
12478b
12479:more2
12480s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12481p
12482g
12483s/.\{148\}//
12484t delim
12485' <conf$$subs.awk | sed '
12486/^[^""]/{
12487  N
12488  s/\n//
12489}
12490' >>$CONFIG_STATUS || ac_write_fail=1
12491rm -f conf$$subs.awk
12492cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12493_ACAWK
12494cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12495  for (key in S) S_is_set[key] = 1
12496  FS = ""
12497
12498}
12499{
12500  line = $ 0
12501  nfields = split(line, field, "@")
12502  substed = 0
12503  len = length(field[1])
12504  for (i = 2; i < nfields; i++) {
12505    key = field[i]
12506    keylen = length(key)
12507    if (S_is_set[key]) {
12508      value = S[key]
12509      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12510      len += length(value) + length(field[++i])
12511      substed = 1
12512    } else
12513      len += 1 + keylen
12514  }
12515
12516  print line
12517}
12518
12519_ACAWK
12520_ACEOF
12521cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12522if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12523  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12524else
12525  cat
12526fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12527  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12528_ACEOF
12529
12530# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12531# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12532# trailing colons and then remove the whole line if VPATH becomes empty
12533# (actually we leave an empty line to preserve line numbers).
12534if test "x$srcdir" = x.; then
12535  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12536h
12537s///
12538s/^/:/
12539s/[	 ]*$/:/
12540s/:\$(srcdir):/:/g
12541s/:\${srcdir}:/:/g
12542s/:@srcdir@:/:/g
12543s/^:*//
12544s/:*$//
12545x
12546s/\(=[	 ]*\).*/\1/
12547G
12548s/\n//
12549s/^[^=]*=[	 ]*$//
12550}'
12551fi
12552
12553cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12554fi # test -n "$CONFIG_FILES"
12555
12556# Set up the scripts for CONFIG_HEADERS section.
12557# No need to generate them if there are no CONFIG_HEADERS.
12558# This happens for instance with `./config.status Makefile'.
12559if test -n "$CONFIG_HEADERS"; then
12560cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12561BEGIN {
12562_ACEOF
12563
12564# Transform confdefs.h into an awk script `defines.awk', embedded as
12565# here-document in config.status, that substitutes the proper values into
12566# config.h.in to produce config.h.
12567
12568# Create a delimiter string that does not exist in confdefs.h, to ease
12569# handling of long lines.
12570ac_delim='%!_!# '
12571for ac_last_try in false false :; do
12572  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12573  if test -z "$ac_tt"; then
12574    break
12575  elif $ac_last_try; then
12576    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12577  else
12578    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12579  fi
12580done
12581
12582# For the awk script, D is an array of macro values keyed by name,
12583# likewise P contains macro parameters if any.  Preserve backslash
12584# newline sequences.
12585
12586ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12587sed -n '
12588s/.\{148\}/&'"$ac_delim"'/g
12589t rset
12590:rset
12591s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12592t def
12593d
12594:def
12595s/\\$//
12596t bsnl
12597s/["\\]/\\&/g
12598s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12599D["\1"]=" \3"/p
12600s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12601d
12602:bsnl
12603s/["\\]/\\&/g
12604s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12605D["\1"]=" \3\\\\\\n"\\/p
12606t cont
12607s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12608t cont
12609d
12610:cont
12611n
12612s/.\{148\}/&'"$ac_delim"'/g
12613t clear
12614:clear
12615s/\\$//
12616t bsnlc
12617s/["\\]/\\&/g; s/^/"/; s/$/"/p
12618d
12619:bsnlc
12620s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12621b cont
12622' <confdefs.h | sed '
12623s/'"$ac_delim"'/"\\\
12624"/g' >>$CONFIG_STATUS || ac_write_fail=1
12625
12626cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12627  for (key in D) D_is_set[key] = 1
12628  FS = ""
12629}
12630/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12631  line = \$ 0
12632  split(line, arg, " ")
12633  if (arg[1] == "#") {
12634    defundef = arg[2]
12635    mac1 = arg[3]
12636  } else {
12637    defundef = substr(arg[1], 2)
12638    mac1 = arg[2]
12639  }
12640  split(mac1, mac2, "(") #)
12641  macro = mac2[1]
12642  prefix = substr(line, 1, index(line, defundef) - 1)
12643  if (D_is_set[macro]) {
12644    # Preserve the white space surrounding the "#".
12645    print prefix "define", macro P[macro] D[macro]
12646    next
12647  } else {
12648    # Replace #undef with comments.  This is necessary, for example,
12649    # in the case of _POSIX_SOURCE, which is predefined and required
12650    # on some systems where configure will not decide to define it.
12651    if (defundef == "undef") {
12652      print "/*", prefix defundef, macro, "*/"
12653      next
12654    }
12655  }
12656}
12657{ print }
12658_ACAWK
12659_ACEOF
12660cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12661  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12662fi # test -n "$CONFIG_HEADERS"
12663
12664
12665eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12666shift
12667for ac_tag
12668do
12669  case $ac_tag in
12670  :[FHLC]) ac_mode=$ac_tag; continue;;
12671  esac
12672  case $ac_mode$ac_tag in
12673  :[FHL]*:*);;
12674  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12675  :[FH]-) ac_tag=-:-;;
12676  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12677  esac
12678  ac_save_IFS=$IFS
12679  IFS=:
12680  set x $ac_tag
12681  IFS=$ac_save_IFS
12682  shift
12683  ac_file=$1
12684  shift
12685
12686  case $ac_mode in
12687  :L) ac_source=$1;;
12688  :[FH])
12689    ac_file_inputs=
12690    for ac_f
12691    do
12692      case $ac_f in
12693      -) ac_f="$ac_tmp/stdin";;
12694      *) # Look for the file first in the build tree, then in the source tree
12695	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12696	 # because $ac_f cannot contain `:'.
12697	 test -f "$ac_f" ||
12698	   case $ac_f in
12699	   [\\/$]*) false;;
12700	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12701	   esac ||
12702	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12703      esac
12704      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12705      as_fn_append ac_file_inputs " '$ac_f'"
12706    done
12707
12708    # Let's still pretend it is `configure' which instantiates (i.e., don't
12709    # use $as_me), people would be surprised to read:
12710    #    /* config.h.  Generated by config.status.  */
12711    configure_input='Generated from '`
12712	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12713	`' by configure.'
12714    if test x"$ac_file" != x-; then
12715      configure_input="$ac_file.  $configure_input"
12716      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12717$as_echo "$as_me: creating $ac_file" >&6;}
12718    fi
12719    # Neutralize special characters interpreted by sed in replacement strings.
12720    case $configure_input in #(
12721    *\&* | *\|* | *\\* )
12722       ac_sed_conf_input=`$as_echo "$configure_input" |
12723       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12724    *) ac_sed_conf_input=$configure_input;;
12725    esac
12726
12727    case $ac_tag in
12728    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12729      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12730    esac
12731    ;;
12732  esac
12733
12734  ac_dir=`$as_dirname -- "$ac_file" ||
12735$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12736	 X"$ac_file" : 'X\(//\)[^/]' \| \
12737	 X"$ac_file" : 'X\(//\)$' \| \
12738	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12739$as_echo X"$ac_file" |
12740    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12741	    s//\1/
12742	    q
12743	  }
12744	  /^X\(\/\/\)[^/].*/{
12745	    s//\1/
12746	    q
12747	  }
12748	  /^X\(\/\/\)$/{
12749	    s//\1/
12750	    q
12751	  }
12752	  /^X\(\/\).*/{
12753	    s//\1/
12754	    q
12755	  }
12756	  s/.*/./; q'`
12757  as_dir="$ac_dir"; as_fn_mkdir_p
12758  ac_builddir=.
12759
12760case "$ac_dir" in
12761.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12762*)
12763  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12764  # A ".." for each directory in $ac_dir_suffix.
12765  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12766  case $ac_top_builddir_sub in
12767  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12768  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12769  esac ;;
12770esac
12771ac_abs_top_builddir=$ac_pwd
12772ac_abs_builddir=$ac_pwd$ac_dir_suffix
12773# for backward compatibility:
12774ac_top_builddir=$ac_top_build_prefix
12775
12776case $srcdir in
12777  .)  # We are building in place.
12778    ac_srcdir=.
12779    ac_top_srcdir=$ac_top_builddir_sub
12780    ac_abs_top_srcdir=$ac_pwd ;;
12781  [\\/]* | ?:[\\/]* )  # Absolute name.
12782    ac_srcdir=$srcdir$ac_dir_suffix;
12783    ac_top_srcdir=$srcdir
12784    ac_abs_top_srcdir=$srcdir ;;
12785  *) # Relative name.
12786    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12787    ac_top_srcdir=$ac_top_build_prefix$srcdir
12788    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12789esac
12790ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12791
12792
12793  case $ac_mode in
12794  :F)
12795  #
12796  # CONFIG_FILE
12797  #
12798
12799  case $INSTALL in
12800  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12801  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12802  esac
12803  ac_MKDIR_P=$MKDIR_P
12804  case $MKDIR_P in
12805  [\\/$]* | ?:[\\/]* ) ;;
12806  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12807  esac
12808_ACEOF
12809
12810cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12811# If the template does not know about datarootdir, expand it.
12812# FIXME: This hack should be removed a few years after 2.60.
12813ac_datarootdir_hack=; ac_datarootdir_seen=
12814ac_sed_dataroot='
12815/datarootdir/ {
12816  p
12817  q
12818}
12819/@datadir@/p
12820/@docdir@/p
12821/@infodir@/p
12822/@localedir@/p
12823/@mandir@/p'
12824case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12825*datarootdir*) ac_datarootdir_seen=yes;;
12826*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12827  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12828$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12829_ACEOF
12830cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12831  ac_datarootdir_hack='
12832  s&@datadir@&$datadir&g
12833  s&@docdir@&$docdir&g
12834  s&@infodir@&$infodir&g
12835  s&@localedir@&$localedir&g
12836  s&@mandir@&$mandir&g
12837  s&\\\${datarootdir}&$datarootdir&g' ;;
12838esac
12839_ACEOF
12840
12841# Neutralize VPATH when `$srcdir' = `.'.
12842# Shell code in configure.ac might set extrasub.
12843# FIXME: do we really want to maintain this feature?
12844cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12845ac_sed_extra="$ac_vpsub
12846$extrasub
12847_ACEOF
12848cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12849:t
12850/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12851s|@configure_input@|$ac_sed_conf_input|;t t
12852s&@top_builddir@&$ac_top_builddir_sub&;t t
12853s&@top_build_prefix@&$ac_top_build_prefix&;t t
12854s&@srcdir@&$ac_srcdir&;t t
12855s&@abs_srcdir@&$ac_abs_srcdir&;t t
12856s&@top_srcdir@&$ac_top_srcdir&;t t
12857s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12858s&@builddir@&$ac_builddir&;t t
12859s&@abs_builddir@&$ac_abs_builddir&;t t
12860s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12861s&@INSTALL@&$ac_INSTALL&;t t
12862s&@MKDIR_P@&$ac_MKDIR_P&;t t
12863$ac_datarootdir_hack
12864"
12865eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12866  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12867
12868test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12869  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12870  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12871      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12872  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12873which seems to be undefined.  Please make sure it is defined" >&5
12874$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12875which seems to be undefined.  Please make sure it is defined" >&2;}
12876
12877  rm -f "$ac_tmp/stdin"
12878  case $ac_file in
12879  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12880  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12881  esac \
12882  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12883 ;;
12884  :H)
12885  #
12886  # CONFIG_HEADER
12887  #
12888  if test x"$ac_file" != x-; then
12889    {
12890      $as_echo "/* $configure_input  */" \
12891      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12892    } >"$ac_tmp/config.h" \
12893      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12894    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12895      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12896$as_echo "$as_me: $ac_file is unchanged" >&6;}
12897    else
12898      rm -f "$ac_file"
12899      mv "$ac_tmp/config.h" "$ac_file" \
12900	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12901    fi
12902  else
12903    $as_echo "/* $configure_input  */" \
12904      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12905      || as_fn_error $? "could not create -" "$LINENO" 5
12906  fi
12907# Compute "$ac_file"'s index in $config_headers.
12908_am_arg="$ac_file"
12909_am_stamp_count=1
12910for _am_header in $config_headers :; do
12911  case $_am_header in
12912    $_am_arg | $_am_arg:* )
12913      break ;;
12914    * )
12915      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12916  esac
12917done
12918echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12919$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12920	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12921	 X"$_am_arg" : 'X\(//\)$' \| \
12922	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12923$as_echo X"$_am_arg" |
12924    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12925	    s//\1/
12926	    q
12927	  }
12928	  /^X\(\/\/\)[^/].*/{
12929	    s//\1/
12930	    q
12931	  }
12932	  /^X\(\/\/\)$/{
12933	    s//\1/
12934	    q
12935	  }
12936	  /^X\(\/\).*/{
12937	    s//\1/
12938	    q
12939	  }
12940	  s/.*/./; q'`/stamp-h$_am_stamp_count
12941 ;;
12942
12943  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12944$as_echo "$as_me: executing $ac_file commands" >&6;}
12945 ;;
12946  esac
12947
12948
12949  case $ac_file$ac_mode in
12950    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12951  # Older Autoconf quotes --file arguments for eval, but not when files
12952  # are listed without --file.  Let's play safe and only enable the eval
12953  # if we detect the quoting.
12954  case $CONFIG_FILES in
12955  *\'*) eval set x "$CONFIG_FILES" ;;
12956  *)   set x $CONFIG_FILES ;;
12957  esac
12958  shift
12959  for mf
12960  do
12961    # Strip MF so we end up with the name of the file.
12962    mf=`echo "$mf" | sed -e 's/:.*$//'`
12963    # Check whether this is an Automake generated Makefile or not.
12964    # We used to match only the files named 'Makefile.in', but
12965    # some people rename them; so instead we look at the file content.
12966    # Grep'ing the first line is not enough: some people post-process
12967    # each Makefile.in and add a new line on top of each file to say so.
12968    # Grep'ing the whole file is not good either: AIX grep has a line
12969    # limit of 2048, but all sed's we know have understand at least 4000.
12970    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12971      dirpart=`$as_dirname -- "$mf" ||
12972$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12973	 X"$mf" : 'X\(//\)[^/]' \| \
12974	 X"$mf" : 'X\(//\)$' \| \
12975	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12976$as_echo X"$mf" |
12977    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12978	    s//\1/
12979	    q
12980	  }
12981	  /^X\(\/\/\)[^/].*/{
12982	    s//\1/
12983	    q
12984	  }
12985	  /^X\(\/\/\)$/{
12986	    s//\1/
12987	    q
12988	  }
12989	  /^X\(\/\).*/{
12990	    s//\1/
12991	    q
12992	  }
12993	  s/.*/./; q'`
12994    else
12995      continue
12996    fi
12997    # Extract the definition of DEPDIR, am__include, and am__quote
12998    # from the Makefile without running 'make'.
12999    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13000    test -z "$DEPDIR" && continue
13001    am__include=`sed -n 's/^am__include = //p' < "$mf"`
13002    test -z "$am__include" && continue
13003    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13004    # Find all dependency output files, they are included files with
13005    # $(DEPDIR) in their names.  We invoke sed twice because it is the
13006    # simplest approach to changing $(DEPDIR) to its actual value in the
13007    # expansion.
13008    for file in `sed -n "
13009      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13010	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
13011      # Make sure the directory exists.
13012      test -f "$dirpart/$file" && continue
13013      fdir=`$as_dirname -- "$file" ||
13014$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13015	 X"$file" : 'X\(//\)[^/]' \| \
13016	 X"$file" : 'X\(//\)$' \| \
13017	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13018$as_echo X"$file" |
13019    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13020	    s//\1/
13021	    q
13022	  }
13023	  /^X\(\/\/\)[^/].*/{
13024	    s//\1/
13025	    q
13026	  }
13027	  /^X\(\/\/\)$/{
13028	    s//\1/
13029	    q
13030	  }
13031	  /^X\(\/\).*/{
13032	    s//\1/
13033	    q
13034	  }
13035	  s/.*/./; q'`
13036      as_dir=$dirpart/$fdir; as_fn_mkdir_p
13037      # echo "creating $dirpart/$file"
13038      echo '# dummy' > "$dirpart/$file"
13039    done
13040  done
13041}
13042 ;;
13043
13044  esac
13045done # for ac_tag
13046
13047
13048as_fn_exit 0
13049_ACEOF
13050ac_clean_files=$ac_clean_files_save
13051
13052test $ac_write_fail = 0 ||
13053  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13054
13055
13056# configure is writing to config.log, and then calls config.status.
13057# config.status does its own redirection, appending to config.log.
13058# Unfortunately, on DOS this fails, as config.log is still kept open
13059# by configure, so config.status won't be able to write to it; its
13060# output is simply discarded.  So we exec the FD to /dev/null,
13061# effectively closing config.log, so it can be properly (re)opened and
13062# appended to by config.status.  When coming back to configure, we
13063# need to make the FD available again.
13064if test "$no_create" != yes; then
13065  ac_cs_success=:
13066  ac_config_status_args=
13067  test "$silent" = yes &&
13068    ac_config_status_args="$ac_config_status_args --quiet"
13069  exec 5>/dev/null
13070  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13071  exec 5>>config.log
13072  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13073  # would make configure fail if this is the last instruction.
13074  $ac_cs_success || as_fn_exit 1
13075fi
13076if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13077  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13078$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13079fi
13080
13081