configure revision 3544ea2e
164ce7165Smrg#! /bin/sh
264ce7165Smrg# Guess values for system-dependent variables and create Makefiles.
33544ea2eSmrg# Generated by GNU Autoconf 2.68 for xhost 1.0.5.
464ce7165Smrg#
564ce7165Smrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
664ce7165Smrg#
7169a0819Smrg#
864ce7165Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9169a0819Smrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10169a0819Smrg# Foundation, Inc.
11169a0819Smrg#
12169a0819Smrg#
1364ce7165Smrg# This configure script is free software; the Free Software Foundation
1464ce7165Smrg# gives unlimited permission to copy, distribute and modify it.
15169a0819Smrg## -------------------- ##
16169a0819Smrg## M4sh Initialization. ##
17169a0819Smrg## -------------------- ##
1864ce7165Smrg
1964ce7165Smrg# Be more Bourne compatible
2064ce7165SmrgDUALCASE=1; export DUALCASE # for MKS sh
21169a0819Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
2264ce7165Smrg  emulate sh
2364ce7165Smrg  NULLCMD=:
24fb23d3a8Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2564ce7165Smrg  # is contrary to our usage.  Disable this feature.
2664ce7165Smrg  alias -g '${1+"$@"}'='"$@"'
2764ce7165Smrg  setopt NO_GLOB_SUBST
2864ce7165Smrgelse
29169a0819Smrg  case `(set -o) 2>/dev/null` in #(
30169a0819Smrg  *posix*) :
31169a0819Smrg    set -o posix ;; #(
32169a0819Smrg  *) :
33169a0819Smrg     ;;
3464ce7165Smrgesac
3564ce7165Smrgfi
3664ce7165Smrg
3764ce7165Smrg
38fb23d3a8Smrgas_nl='
39fb23d3a8Smrg'
40fb23d3a8Smrgexport as_nl
41fb23d3a8Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
42fb23d3a8Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43fb23d3a8Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44fb23d3a8Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45169a0819Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
46169a0819Smrg# but without wasting forks for bash or zsh.
47169a0819Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
48169a0819Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49169a0819Smrg  as_echo='print -r --'
50169a0819Smrg  as_echo_n='print -rn --'
51169a0819Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52fb23d3a8Smrg  as_echo='printf %s\n'
53fb23d3a8Smrg  as_echo_n='printf %s'
54fb23d3a8Smrgelse
55fb23d3a8Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56fb23d3a8Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57fb23d3a8Smrg    as_echo_n='/usr/ucb/echo -n'
5864ce7165Smrg  else
59fb23d3a8Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60fb23d3a8Smrg    as_echo_n_body='eval
61fb23d3a8Smrg      arg=$1;
62169a0819Smrg      case $arg in #(
63fb23d3a8Smrg      *"$as_nl"*)
64fb23d3a8Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
65fb23d3a8Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66fb23d3a8Smrg      esac;
67fb23d3a8Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68fb23d3a8Smrg    '
69fb23d3a8Smrg    export as_echo_n_body
70fb23d3a8Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
7164ce7165Smrg  fi
72fb23d3a8Smrg  export as_echo_body
73fb23d3a8Smrg  as_echo='sh -c $as_echo_body as_echo'
74fb23d3a8Smrgfi
75fb23d3a8Smrg
76fb23d3a8Smrg# The user is always right.
77fb23d3a8Smrgif test "${PATH_SEPARATOR+set}" != set; then
78fb23d3a8Smrg  PATH_SEPARATOR=:
79fb23d3a8Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80fb23d3a8Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81fb23d3a8Smrg      PATH_SEPARATOR=';'
82fb23d3a8Smrg  }
8364ce7165Smrgfi
8464ce7165Smrg
8564ce7165Smrg
8664ce7165Smrg# IFS
8764ce7165Smrg# We need space, tab and new line, in precisely that order.  Quoting is
8864ce7165Smrg# there to prevent editors from complaining about space-tab.
8964ce7165Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
9064ce7165Smrg# splitting by setting IFS to empty value.)
9164ce7165SmrgIFS=" ""	$as_nl"
9264ce7165Smrg
9364ce7165Smrg# Find who we are.  Look in the path if we contain no directory separator.
94169a0819Smrgas_myself=
95169a0819Smrgcase $0 in #((
9664ce7165Smrg  *[\\/]* ) as_myself=$0 ;;
9764ce7165Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9864ce7165Smrgfor as_dir in $PATH
9964ce7165Smrgdo
10064ce7165Smrg  IFS=$as_save_IFS
10164ce7165Smrg  test -z "$as_dir" && as_dir=.
102169a0819Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103169a0819Smrg  done
10464ce7165SmrgIFS=$as_save_IFS
10564ce7165Smrg
10664ce7165Smrg     ;;
10764ce7165Smrgesac
10864ce7165Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
10964ce7165Smrg# in which case we are not to be found in the path.
11064ce7165Smrgif test "x$as_myself" = x; then
11164ce7165Smrg  as_myself=$0
11264ce7165Smrgfi
11364ce7165Smrgif test ! -f "$as_myself"; then
114fb23d3a8Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115169a0819Smrg  exit 1
11664ce7165Smrgfi
11764ce7165Smrg
118169a0819Smrg# Unset variables that we do not need and which cause bugs (e.g. in
119169a0819Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120169a0819Smrg# suppresses any "Segmentation fault" message there.  '((' could
121169a0819Smrg# trigger a bug in pdksh 5.2.14.
122169a0819Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
123169a0819Smrgdo eval test x\${$as_var+set} = xset \
124169a0819Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12564ce7165Smrgdone
12664ce7165SmrgPS1='$ '
12764ce7165SmrgPS2='> '
12864ce7165SmrgPS4='+ '
12964ce7165Smrg
13064ce7165Smrg# NLS nuisances.
131fb23d3a8SmrgLC_ALL=C
132fb23d3a8Smrgexport LC_ALL
133fb23d3a8SmrgLANGUAGE=C
134fb23d3a8Smrgexport LANGUAGE
13564ce7165Smrg
136169a0819Smrg# CDPATH.
137169a0819Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138169a0819Smrg
139169a0819Smrgif test "x$CONFIG_SHELL" = x; then
140169a0819Smrg  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141169a0819Smrg  emulate sh
142169a0819Smrg  NULLCMD=:
143169a0819Smrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144169a0819Smrg  # is contrary to our usage.  Disable this feature.
145169a0819Smrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146169a0819Smrg  setopt NO_GLOB_SUBST
147169a0819Smrgelse
148169a0819Smrg  case \`(set -o) 2>/dev/null\` in #(
149169a0819Smrg  *posix*) :
150169a0819Smrg    set -o posix ;; #(
151169a0819Smrg  *) :
152169a0819Smrg     ;;
153169a0819Smrgesac
154169a0819Smrgfi
155169a0819Smrg"
156169a0819Smrg  as_required="as_fn_return () { (exit \$1); }
157169a0819Smrgas_fn_success () { as_fn_return 0; }
158169a0819Smrgas_fn_failure () { as_fn_return 1; }
159169a0819Smrgas_fn_ret_success () { return 0; }
160169a0819Smrgas_fn_ret_failure () { return 1; }
161169a0819Smrg
162169a0819Smrgexitcode=0
163169a0819Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
164169a0819Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165169a0819Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166169a0819Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167169a0819Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168169a0819Smrg
169169a0819Smrgelse
170169a0819Smrg  exitcode=1; echo positional parameters were not saved.
171169a0819Smrgfi
172169a0819Smrgtest x\$exitcode = x0 || exit 1"
173169a0819Smrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174169a0819Smrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175169a0819Smrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176169a0819Smrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177169a0819Smrgtest \$(( 1 + 1 )) = 2 || exit 1"
178169a0819Smrg  if (eval "$as_required") 2>/dev/null; then :
179169a0819Smrg  as_have_required=yes
180169a0819Smrgelse
181169a0819Smrg  as_have_required=no
182169a0819Smrgfi
183169a0819Smrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184169a0819Smrg
185169a0819Smrgelse
186169a0819Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187169a0819Smrgas_found=false
188169a0819Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189169a0819Smrgdo
190169a0819Smrg  IFS=$as_save_IFS
191169a0819Smrg  test -z "$as_dir" && as_dir=.
192169a0819Smrg  as_found=:
193169a0819Smrg  case $as_dir in #(
194169a0819Smrg	 /*)
195169a0819Smrg	   for as_base in sh bash ksh sh5; do
196169a0819Smrg	     # Try only shells that exist, to save several forks.
197169a0819Smrg	     as_shell=$as_dir/$as_base
198169a0819Smrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199169a0819Smrg		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200169a0819Smrg  CONFIG_SHELL=$as_shell as_have_required=yes
201169a0819Smrg		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202169a0819Smrg  break 2
203169a0819Smrgfi
204169a0819Smrgfi
205169a0819Smrg	   done;;
206169a0819Smrg       esac
207169a0819Smrg  as_found=false
208169a0819Smrgdone
209169a0819Smrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210169a0819Smrg	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211169a0819Smrg  CONFIG_SHELL=$SHELL as_have_required=yes
212169a0819Smrgfi; }
213169a0819SmrgIFS=$as_save_IFS
214169a0819Smrg
215169a0819Smrg
216169a0819Smrg      if test "x$CONFIG_SHELL" != x; then :
217169a0819Smrg  # We cannot yet assume a decent shell, so we have to provide a
218169a0819Smrg	# neutralization value for shells without unset; and this also
219169a0819Smrg	# works around shells that cannot unset nonexistent variables.
220169a0819Smrg	# Preserve -v and -x to the replacement shell.
221169a0819Smrg	BASH_ENV=/dev/null
222169a0819Smrg	ENV=/dev/null
223169a0819Smrg	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224169a0819Smrg	export CONFIG_SHELL
225169a0819Smrg	case $- in # ((((
226169a0819Smrg	  *v*x* | *x*v* ) as_opts=-vx ;;
227169a0819Smrg	  *v* ) as_opts=-v ;;
228169a0819Smrg	  *x* ) as_opts=-x ;;
229169a0819Smrg	  * ) as_opts= ;;
230169a0819Smrg	esac
231169a0819Smrg	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232169a0819Smrgfi
233169a0819Smrg
234169a0819Smrg    if test x$as_have_required = xno; then :
235169a0819Smrg  $as_echo "$0: This script requires a shell more modern than all"
236169a0819Smrg  $as_echo "$0: the shells that I found on your system."
237169a0819Smrg  if test x${ZSH_VERSION+set} = xset ; then
238169a0819Smrg    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239169a0819Smrg    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240169a0819Smrg  else
241169a0819Smrg    $as_echo "$0: Please tell bug-autoconf@gnu.org and
242169a0819Smrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243169a0819Smrg$0: about your system, including any error possibly output
244169a0819Smrg$0: before this message. Then install a modern shell, or
245169a0819Smrg$0: manually run the script under such a shell if you do
246169a0819Smrg$0: have one."
247169a0819Smrg  fi
248169a0819Smrg  exit 1
249169a0819Smrgfi
250169a0819Smrgfi
251169a0819Smrgfi
252169a0819SmrgSHELL=${CONFIG_SHELL-/bin/sh}
253169a0819Smrgexport SHELL
254169a0819Smrg# Unset more variables known to interfere with behavior of common tools.
255169a0819SmrgCLICOLOR_FORCE= GREP_OPTIONS=
256169a0819Smrgunset CLICOLOR_FORCE GREP_OPTIONS
257169a0819Smrg
258169a0819Smrg## --------------------- ##
259169a0819Smrg## M4sh Shell Functions. ##
260169a0819Smrg## --------------------- ##
261169a0819Smrg# as_fn_unset VAR
262169a0819Smrg# ---------------
263169a0819Smrg# Portably unset VAR.
264169a0819Smrgas_fn_unset ()
265169a0819Smrg{
266169a0819Smrg  { eval $1=; unset $1;}
267169a0819Smrg}
268169a0819Smrgas_unset=as_fn_unset
269169a0819Smrg
270169a0819Smrg# as_fn_set_status STATUS
271169a0819Smrg# -----------------------
272169a0819Smrg# Set $? to STATUS, without forking.
273169a0819Smrgas_fn_set_status ()
274169a0819Smrg{
275169a0819Smrg  return $1
276169a0819Smrg} # as_fn_set_status
277169a0819Smrg
278169a0819Smrg# as_fn_exit STATUS
279169a0819Smrg# -----------------
280169a0819Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281169a0819Smrgas_fn_exit ()
282169a0819Smrg{
283169a0819Smrg  set +e
284169a0819Smrg  as_fn_set_status $1
285169a0819Smrg  exit $1
286169a0819Smrg} # as_fn_exit
287169a0819Smrg
288169a0819Smrg# as_fn_mkdir_p
289169a0819Smrg# -------------
290169a0819Smrg# Create "$as_dir" as a directory, including parents if necessary.
291169a0819Smrgas_fn_mkdir_p ()
292169a0819Smrg{
293169a0819Smrg
294169a0819Smrg  case $as_dir in #(
295169a0819Smrg  -*) as_dir=./$as_dir;;
296169a0819Smrg  esac
297169a0819Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
298169a0819Smrg    as_dirs=
299169a0819Smrg    while :; do
300169a0819Smrg      case $as_dir in #(
301169a0819Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302169a0819Smrg      *) as_qdir=$as_dir;;
303169a0819Smrg      esac
304169a0819Smrg      as_dirs="'$as_qdir' $as_dirs"
305169a0819Smrg      as_dir=`$as_dirname -- "$as_dir" ||
306169a0819Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307169a0819Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
308169a0819Smrg	 X"$as_dir" : 'X\(//\)$' \| \
309169a0819Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310169a0819Smrg$as_echo X"$as_dir" |
311169a0819Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312169a0819Smrg	    s//\1/
313169a0819Smrg	    q
314169a0819Smrg	  }
315169a0819Smrg	  /^X\(\/\/\)[^/].*/{
316169a0819Smrg	    s//\1/
317169a0819Smrg	    q
318169a0819Smrg	  }
319169a0819Smrg	  /^X\(\/\/\)$/{
320169a0819Smrg	    s//\1/
321169a0819Smrg	    q
322169a0819Smrg	  }
323169a0819Smrg	  /^X\(\/\).*/{
324169a0819Smrg	    s//\1/
325169a0819Smrg	    q
326169a0819Smrg	  }
327169a0819Smrg	  s/.*/./; q'`
328169a0819Smrg      test -d "$as_dir" && break
329169a0819Smrg    done
330169a0819Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
331169a0819Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332169a0819Smrg
333169a0819Smrg
334169a0819Smrg} # as_fn_mkdir_p
335169a0819Smrg# as_fn_append VAR VALUE
336169a0819Smrg# ----------------------
337169a0819Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
338169a0819Smrg# advantage of any shell optimizations that allow amortized linear growth over
339169a0819Smrg# repeated appends, instead of the typical quadratic growth present in naive
340169a0819Smrg# implementations.
341169a0819Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342169a0819Smrg  eval 'as_fn_append ()
343169a0819Smrg  {
344169a0819Smrg    eval $1+=\$2
345169a0819Smrg  }'
346169a0819Smrgelse
347169a0819Smrg  as_fn_append ()
348169a0819Smrg  {
349169a0819Smrg    eval $1=\$$1\$2
350169a0819Smrg  }
351169a0819Smrgfi # as_fn_append
352169a0819Smrg
353169a0819Smrg# as_fn_arith ARG...
354169a0819Smrg# ------------------
355169a0819Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
356169a0819Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
357169a0819Smrg# must be portable across $(()) and expr.
358169a0819Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359169a0819Smrg  eval 'as_fn_arith ()
360169a0819Smrg  {
361169a0819Smrg    as_val=$(( $* ))
362169a0819Smrg  }'
363169a0819Smrgelse
364169a0819Smrg  as_fn_arith ()
365169a0819Smrg  {
366169a0819Smrg    as_val=`expr "$@" || test $? -eq 1`
367169a0819Smrg  }
368169a0819Smrgfi # as_fn_arith
369169a0819Smrg
370169a0819Smrg
371169a0819Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
372169a0819Smrg# ----------------------------------------
373169a0819Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374169a0819Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375169a0819Smrg# script with STATUS, using 1 if that was 0.
376169a0819Smrgas_fn_error ()
377169a0819Smrg{
378169a0819Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
379169a0819Smrg  if test "$4"; then
380169a0819Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381169a0819Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382169a0819Smrg  fi
383169a0819Smrg  $as_echo "$as_me: error: $2" >&2
384169a0819Smrg  as_fn_exit $as_status
385169a0819Smrg} # as_fn_error
386169a0819Smrg
38764ce7165Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
38864ce7165Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
38964ce7165Smrg  as_expr=expr
39064ce7165Smrgelse
39164ce7165Smrg  as_expr=false
39264ce7165Smrgfi
39364ce7165Smrg
39464ce7165Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
39564ce7165Smrg  as_basename=basename
39664ce7165Smrgelse
39764ce7165Smrg  as_basename=false
39864ce7165Smrgfi
39964ce7165Smrg
400169a0819Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401169a0819Smrg  as_dirname=dirname
402169a0819Smrgelse
403169a0819Smrg  as_dirname=false
404169a0819Smrgfi
40564ce7165Smrg
40664ce7165Smrgas_me=`$as_basename -- "$0" ||
40764ce7165Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
40864ce7165Smrg	 X"$0" : 'X\(//\)$' \| \
40964ce7165Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410fb23d3a8Smrg$as_echo X/"$0" |
41164ce7165Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
41264ce7165Smrg	    s//\1/
41364ce7165Smrg	    q
41464ce7165Smrg	  }
41564ce7165Smrg	  /^X\/\(\/\/\)$/{
41664ce7165Smrg	    s//\1/
41764ce7165Smrg	    q
41864ce7165Smrg	  }
41964ce7165Smrg	  /^X\/\(\/\).*/{
42064ce7165Smrg	    s//\1/
42164ce7165Smrg	    q
42264ce7165Smrg	  }
42364ce7165Smrg	  s/.*/./; q'`
42464ce7165Smrg
425169a0819Smrg# Avoid depending upon Character Ranges.
426169a0819Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
427169a0819Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428169a0819Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
429169a0819Smrgas_cr_digits='0123456789'
430169a0819Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
43164ce7165Smrg
43264ce7165Smrg
433169a0819Smrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
434169a0819Smrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
435169a0819Smrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436169a0819Smrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437169a0819Smrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
438169a0819Smrg  sed -n '
439169a0819Smrg    p
440169a0819Smrg    /[$]LINENO/=
441169a0819Smrg  ' <$as_myself |
442169a0819Smrg    sed '
443169a0819Smrg      s/[$]LINENO.*/&-/
444169a0819Smrg      t lineno
445169a0819Smrg      b
446169a0819Smrg      :lineno
447169a0819Smrg      N
448169a0819Smrg      :loop
449169a0819Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450169a0819Smrg      t loop
451169a0819Smrg      s/-\n.*//
452169a0819Smrg    ' >$as_me.lineno &&
453169a0819Smrg  chmod +x "$as_me.lineno" ||
454169a0819Smrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
45564ce7165Smrg
456169a0819Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
457169a0819Smrg  # (the dirname of $[0] is not the place where we might find the
458169a0819Smrg  # original and so on.  Autoconf is especially sensitive to this).
459169a0819Smrg  . "./$as_me.lineno"
460169a0819Smrg  # Exit status is that of the last command.
461169a0819Smrg  exit
46264ce7165Smrg}
46364ce7165Smrg
464169a0819SmrgECHO_C= ECHO_N= ECHO_T=
465169a0819Smrgcase `echo -n x` in #(((((
466169a0819Smrg-n*)
467169a0819Smrg  case `echo 'xy\c'` in
468169a0819Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
469169a0819Smrg  xy)  ECHO_C='\c';;
470169a0819Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
471169a0819Smrg       ECHO_T='	';;
472169a0819Smrg  esac;;
473169a0819Smrg*)
474169a0819Smrg  ECHO_N='-n';;
475169a0819Smrgesac
47664ce7165Smrg
477169a0819Smrgrm -f conf$$ conf$$.exe conf$$.file
478169a0819Smrgif test -d conf$$.dir; then
479169a0819Smrg  rm -f conf$$.dir/conf$$.file
480169a0819Smrgelse
481169a0819Smrg  rm -f conf$$.dir
482169a0819Smrg  mkdir conf$$.dir 2>/dev/null
48364ce7165Smrgfi
484169a0819Smrgif (echo >conf$$.file) 2>/dev/null; then
485169a0819Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
486169a0819Smrg    as_ln_s='ln -s'
487169a0819Smrg    # ... but there are two gotchas:
488169a0819Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489169a0819Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490169a0819Smrg    # In both cases, we have to default to `cp -p'.
491169a0819Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492169a0819Smrg      as_ln_s='cp -p'
493169a0819Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
494169a0819Smrg    as_ln_s=ln
495169a0819Smrg  else
496169a0819Smrg    as_ln_s='cp -p'
497169a0819Smrg  fi
49864ce7165Smrgelse
499169a0819Smrg  as_ln_s='cp -p'
50064ce7165Smrgfi
501169a0819Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502169a0819Smrgrmdir conf$$.dir 2>/dev/null
50364ce7165Smrg
504169a0819Smrgif mkdir -p . 2>/dev/null; then
505169a0819Smrg  as_mkdir_p='mkdir -p "$as_dir"'
506169a0819Smrgelse
507169a0819Smrg  test -d ./-p && rmdir ./-p
508169a0819Smrg  as_mkdir_p=false
50964ce7165Smrgfi
51064ce7165Smrg
511169a0819Smrgif test -x / >/dev/null 2>&1; then
512169a0819Smrg  as_test_x='test -x'
51364ce7165Smrgelse
514169a0819Smrg  if ls -dL / >/dev/null 2>&1; then
515169a0819Smrg    as_ls_L_option=L
516169a0819Smrg  else
517169a0819Smrg    as_ls_L_option=
518169a0819Smrg  fi
519169a0819Smrg  as_test_x='
520169a0819Smrg    eval sh -c '\''
521169a0819Smrg      if test -d "$1"; then
522169a0819Smrg	test -d "$1/.";
523169a0819Smrg      else
524169a0819Smrg	case $1 in #(
525169a0819Smrg	-*)set "./$1";;
526169a0819Smrg	esac;
527169a0819Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528169a0819Smrg	???[sx]*):;;*)false;;esac;fi
529169a0819Smrg    '\'' sh
530169a0819Smrg  '
53164ce7165Smrgfi
532169a0819Smrgas_executable_p=$as_test_x
53364ce7165Smrg
534169a0819Smrg# Sed expression to map a string onto a valid CPP name.
535169a0819Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
53664ce7165Smrg
537169a0819Smrg# Sed expression to map a string onto a valid variable name.
538169a0819Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
53964ce7165Smrg
54064ce7165Smrg
541169a0819Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null
542169a0819Smrgexec 6>&1
54364ce7165Smrg
54464ce7165Smrg# Name of the host.
545169a0819Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
54664ce7165Smrg# so uname gets run too.
54764ce7165Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
54864ce7165Smrg
54964ce7165Smrg#
55064ce7165Smrg# Initializations.
55164ce7165Smrg#
55264ce7165Smrgac_default_prefix=/usr/local
55364ce7165Smrgac_clean_files=
55464ce7165Smrgac_config_libobj_dir=.
55564ce7165SmrgLIBOBJS=
55664ce7165Smrgcross_compiling=no
55764ce7165Smrgsubdirs=
55864ce7165SmrgMFLAGS=
55964ce7165SmrgMAKEFLAGS=
56064ce7165Smrg
56164ce7165Smrg# Identity of this package.
56264ce7165SmrgPACKAGE_NAME='xhost'
56364ce7165SmrgPACKAGE_TARNAME='xhost'
5643544ea2eSmrgPACKAGE_VERSION='1.0.5'
5653544ea2eSmrgPACKAGE_STRING='xhost 1.0.5'
56664ce7165SmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567169a0819SmrgPACKAGE_URL=''
56864ce7165Smrg
5693544ea2eSmrgac_unique_file="Makefile.am"
570fb23d3a8Smrg# Factoring default headers for most tests.
571fb23d3a8Smrgac_includes_default="\
572fb23d3a8Smrg#include <stdio.h>
573fb23d3a8Smrg#ifdef HAVE_SYS_TYPES_H
574fb23d3a8Smrg# include <sys/types.h>
575fb23d3a8Smrg#endif
576fb23d3a8Smrg#ifdef HAVE_SYS_STAT_H
577fb23d3a8Smrg# include <sys/stat.h>
578fb23d3a8Smrg#endif
579fb23d3a8Smrg#ifdef STDC_HEADERS
580fb23d3a8Smrg# include <stdlib.h>
581fb23d3a8Smrg# include <stddef.h>
582fb23d3a8Smrg#else
583fb23d3a8Smrg# ifdef HAVE_STDLIB_H
584fb23d3a8Smrg#  include <stdlib.h>
585fb23d3a8Smrg# endif
586fb23d3a8Smrg#endif
587fb23d3a8Smrg#ifdef HAVE_STRING_H
588fb23d3a8Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589fb23d3a8Smrg#  include <memory.h>
590fb23d3a8Smrg# endif
591fb23d3a8Smrg# include <string.h>
592fb23d3a8Smrg#endif
593fb23d3a8Smrg#ifdef HAVE_STRINGS_H
594fb23d3a8Smrg# include <strings.h>
595fb23d3a8Smrg#endif
596fb23d3a8Smrg#ifdef HAVE_INTTYPES_H
597fb23d3a8Smrg# include <inttypes.h>
598fb23d3a8Smrg#endif
599fb23d3a8Smrg#ifdef HAVE_STDINT_H
600fb23d3a8Smrg# include <stdint.h>
601fb23d3a8Smrg#endif
602fb23d3a8Smrg#ifdef HAVE_UNISTD_H
603fb23d3a8Smrg# include <unistd.h>
604fb23d3a8Smrg#endif"
605fb23d3a8Smrg
606fb23d3a8Smrgac_subst_vars='am__EXEEXT_FALSE
607fb23d3a8Smrgam__EXEEXT_TRUE
608fb23d3a8SmrgLTLIBOBJS
609fb23d3a8SmrgLIBOBJS
6103544ea2eSmrgXAU_LIBS
6113544ea2eSmrgXAU_CFLAGS
61264ce7165SmrgXHOST_LIBS
613fb23d3a8SmrgXHOST_CFLAGS
614169a0819SmrgAM_BACKSLASH
615169a0819SmrgAM_DEFAULT_VERBOSITY
616169a0819SmrgMAN_SUBSTS
617169a0819SmrgXORG_MAN_PAGE
61864ce7165SmrgADMIN_MAN_DIR
619fb23d3a8SmrgDRIVER_MAN_DIR
620fb23d3a8SmrgMISC_MAN_DIR
621fb23d3a8SmrgFILE_MAN_DIR
622fb23d3a8SmrgLIB_MAN_DIR
623fb23d3a8SmrgAPP_MAN_DIR
624fb23d3a8SmrgADMIN_MAN_SUFFIX
625fb23d3a8SmrgDRIVER_MAN_SUFFIX
626fb23d3a8SmrgMISC_MAN_SUFFIX
627fb23d3a8SmrgFILE_MAN_SUFFIX
628fb23d3a8SmrgLIB_MAN_SUFFIX
629fb23d3a8SmrgAPP_MAN_SUFFIX
630169a0819SmrgSED
631fb23d3a8Smrghost_os
632fb23d3a8Smrghost_vendor
633fb23d3a8Smrghost_cpu
634fb23d3a8Smrghost
635fb23d3a8Smrgbuild_os
636fb23d3a8Smrgbuild_vendor
637fb23d3a8Smrgbuild_cpu
638fb23d3a8Smrgbuild
639169a0819SmrgINSTALL_CMD
640169a0819SmrgPKG_CONFIG
641fb23d3a8SmrgCHANGELOG_CMD
6423544ea2eSmrgSTRICT_CFLAGS
643fb23d3a8SmrgCWARNFLAGS
6443544ea2eSmrgBASE_CFLAGS
645fb23d3a8SmrgEGREP
646fb23d3a8SmrgGREP
647fb23d3a8SmrgCPP
648fb23d3a8Smrgam__fastdepCC_FALSE
649fb23d3a8Smrgam__fastdepCC_TRUE
650fb23d3a8SmrgCCDEPMODE
651fb23d3a8SmrgAMDEPBACKSLASH
652fb23d3a8SmrgAMDEP_FALSE
653fb23d3a8SmrgAMDEP_TRUE
654fb23d3a8Smrgam__quote
655fb23d3a8Smrgam__include
656fb23d3a8SmrgDEPDIR
657fb23d3a8SmrgOBJEXT
658fb23d3a8SmrgEXEEXT
659fb23d3a8Smrgac_ct_CC
660fb23d3a8SmrgCPPFLAGS
661fb23d3a8SmrgLDFLAGS
662fb23d3a8SmrgCFLAGS
663fb23d3a8SmrgCC
664fb23d3a8SmrgMAINT
665fb23d3a8SmrgMAINTAINER_MODE_FALSE
666fb23d3a8SmrgMAINTAINER_MODE_TRUE
667fb23d3a8Smrgam__untar
668fb23d3a8Smrgam__tar
669fb23d3a8SmrgAMTAR
670fb23d3a8Smrgam__leading_dot
671fb23d3a8SmrgSET_MAKE
672fb23d3a8SmrgAWK
673fb23d3a8Smrgmkdir_p
674fb23d3a8SmrgMKDIR_P
675fb23d3a8SmrgINSTALL_STRIP_PROGRAM
676fb23d3a8SmrgSTRIP
677fb23d3a8Smrginstall_sh
678fb23d3a8SmrgMAKEINFO
679fb23d3a8SmrgAUTOHEADER
680fb23d3a8SmrgAUTOMAKE
681fb23d3a8SmrgAUTOCONF
682fb23d3a8SmrgACLOCAL
683fb23d3a8SmrgVERSION
684fb23d3a8SmrgPACKAGE
685fb23d3a8SmrgCYGPATH_W
686fb23d3a8Smrgam__isrc
687fb23d3a8SmrgINSTALL_DATA
688fb23d3a8SmrgINSTALL_SCRIPT
689fb23d3a8SmrgINSTALL_PROGRAM
690fb23d3a8Smrgtarget_alias
691fb23d3a8Smrghost_alias
692fb23d3a8Smrgbuild_alias
693fb23d3a8SmrgLIBS
694fb23d3a8SmrgECHO_T
695fb23d3a8SmrgECHO_N
696fb23d3a8SmrgECHO_C
697fb23d3a8SmrgDEFS
698fb23d3a8Smrgmandir
699fb23d3a8Smrglocaledir
700fb23d3a8Smrglibdir
701fb23d3a8Smrgpsdir
702fb23d3a8Smrgpdfdir
703fb23d3a8Smrgdvidir
704fb23d3a8Smrghtmldir
705fb23d3a8Smrginfodir
706fb23d3a8Smrgdocdir
707fb23d3a8Smrgoldincludedir
708fb23d3a8Smrgincludedir
709fb23d3a8Smrglocalstatedir
710fb23d3a8Smrgsharedstatedir
711fb23d3a8Smrgsysconfdir
712fb23d3a8Smrgdatadir
713fb23d3a8Smrgdatarootdir
714fb23d3a8Smrglibexecdir
715fb23d3a8Smrgsbindir
716fb23d3a8Smrgbindir
717fb23d3a8Smrgprogram_transform_name
718fb23d3a8Smrgprefix
719fb23d3a8Smrgexec_prefix
720169a0819SmrgPACKAGE_URL
721fb23d3a8SmrgPACKAGE_BUGREPORT
722fb23d3a8SmrgPACKAGE_STRING
723fb23d3a8SmrgPACKAGE_VERSION
724fb23d3a8SmrgPACKAGE_TARNAME
725fb23d3a8SmrgPACKAGE_NAME
726fb23d3a8SmrgPATH_SEPARATOR
727fb23d3a8SmrgSHELL'
72864ce7165Smrgac_subst_files=''
729fb23d3a8Smrgac_user_opts='
730fb23d3a8Smrgenable_option_checking
731fb23d3a8Smrgenable_maintainer_mode
732fb23d3a8Smrgenable_dependency_tracking
7333544ea2eSmrgenable_selective_werror
734fb23d3a8Smrgenable_strict_compilation
735169a0819Smrgenable_silent_rules
736fb23d3a8Smrgenable_unix_transport
737fb23d3a8Smrgenable_tcp_transport
738fb23d3a8Smrgenable_ipv6
739fb23d3a8Smrgenable_local_transport
740fb23d3a8Smrgenable_secure_rpc
741fb23d3a8Smrg'
74264ce7165Smrg      ac_precious_vars='build_alias
74364ce7165Smrghost_alias
74464ce7165Smrgtarget_alias
74564ce7165SmrgCC
74664ce7165SmrgCFLAGS
74764ce7165SmrgLDFLAGS
74864ce7165SmrgLIBS
74964ce7165SmrgCPPFLAGS
750fb23d3a8SmrgCPP
75164ce7165SmrgPKG_CONFIG
75264ce7165SmrgXHOST_CFLAGS
7533544ea2eSmrgXHOST_LIBS
7543544ea2eSmrgXAU_CFLAGS
7553544ea2eSmrgXAU_LIBS'
75664ce7165Smrg
75764ce7165Smrg
75864ce7165Smrg# Initialize some variables set by options.
75964ce7165Smrgac_init_help=
76064ce7165Smrgac_init_version=false
761fb23d3a8Smrgac_unrecognized_opts=
762fb23d3a8Smrgac_unrecognized_sep=
76364ce7165Smrg# The variables have the same names as the options, with
76464ce7165Smrg# dashes changed to underlines.
76564ce7165Smrgcache_file=/dev/null
76664ce7165Smrgexec_prefix=NONE
76764ce7165Smrgno_create=
76864ce7165Smrgno_recursion=
76964ce7165Smrgprefix=NONE
77064ce7165Smrgprogram_prefix=NONE
77164ce7165Smrgprogram_suffix=NONE
77264ce7165Smrgprogram_transform_name=s,x,x,
77364ce7165Smrgsilent=
77464ce7165Smrgsite=
77564ce7165Smrgsrcdir=
77664ce7165Smrgverbose=
77764ce7165Smrgx_includes=NONE
77864ce7165Smrgx_libraries=NONE
77964ce7165Smrg
78064ce7165Smrg# Installation directory options.
78164ce7165Smrg# These are left unexpanded so users can "make install exec_prefix=/foo"
78264ce7165Smrg# and all the variables that are supposed to be based on exec_prefix
78364ce7165Smrg# by default will actually change.
78464ce7165Smrg# Use braces instead of parens because sh, perl, etc. also accept them.
78564ce7165Smrg# (The list follows the same order as the GNU Coding Standards.)
78664ce7165Smrgbindir='${exec_prefix}/bin'
78764ce7165Smrgsbindir='${exec_prefix}/sbin'
78864ce7165Smrglibexecdir='${exec_prefix}/libexec'
78964ce7165Smrgdatarootdir='${prefix}/share'
79064ce7165Smrgdatadir='${datarootdir}'
79164ce7165Smrgsysconfdir='${prefix}/etc'
79264ce7165Smrgsharedstatedir='${prefix}/com'
79364ce7165Smrglocalstatedir='${prefix}/var'
79464ce7165Smrgincludedir='${prefix}/include'
79564ce7165Smrgoldincludedir='/usr/include'
79664ce7165Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
79764ce7165Smrginfodir='${datarootdir}/info'
79864ce7165Smrghtmldir='${docdir}'
79964ce7165Smrgdvidir='${docdir}'
80064ce7165Smrgpdfdir='${docdir}'
80164ce7165Smrgpsdir='${docdir}'
80264ce7165Smrglibdir='${exec_prefix}/lib'
80364ce7165Smrglocaledir='${datarootdir}/locale'
80464ce7165Smrgmandir='${datarootdir}/man'
80564ce7165Smrg
80664ce7165Smrgac_prev=
80764ce7165Smrgac_dashdash=
80864ce7165Smrgfor ac_option
80964ce7165Smrgdo
81064ce7165Smrg  # If the previous option needs an argument, assign it.
81164ce7165Smrg  if test -n "$ac_prev"; then
81264ce7165Smrg    eval $ac_prev=\$ac_option
81364ce7165Smrg    ac_prev=
81464ce7165Smrg    continue
81564ce7165Smrg  fi
81664ce7165Smrg
81764ce7165Smrg  case $ac_option in
818169a0819Smrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
819169a0819Smrg  *=)   ac_optarg= ;;
820169a0819Smrg  *)    ac_optarg=yes ;;
82164ce7165Smrg  esac
82264ce7165Smrg
82364ce7165Smrg  # Accept the important Cygnus configure options, so we can diagnose typos.
82464ce7165Smrg
82564ce7165Smrg  case $ac_dashdash$ac_option in
82664ce7165Smrg  --)
82764ce7165Smrg    ac_dashdash=yes ;;
82864ce7165Smrg
82964ce7165Smrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
83064ce7165Smrg    ac_prev=bindir ;;
83164ce7165Smrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
83264ce7165Smrg    bindir=$ac_optarg ;;
83364ce7165Smrg
83464ce7165Smrg  -build | --build | --buil | --bui | --bu)
83564ce7165Smrg    ac_prev=build_alias ;;
83664ce7165Smrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
83764ce7165Smrg    build_alias=$ac_optarg ;;
83864ce7165Smrg
83964ce7165Smrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
84064ce7165Smrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
84164ce7165Smrg    ac_prev=cache_file ;;
84264ce7165Smrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
84364ce7165Smrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
84464ce7165Smrg    cache_file=$ac_optarg ;;
84564ce7165Smrg
84664ce7165Smrg  --config-cache | -C)
84764ce7165Smrg    cache_file=config.cache ;;
84864ce7165Smrg
84964ce7165Smrg  -datadir | --datadir | --datadi | --datad)
85064ce7165Smrg    ac_prev=datadir ;;
85164ce7165Smrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
85264ce7165Smrg    datadir=$ac_optarg ;;
85364ce7165Smrg
85464ce7165Smrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
85564ce7165Smrg  | --dataroo | --dataro | --datar)
85664ce7165Smrg    ac_prev=datarootdir ;;
85764ce7165Smrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
85864ce7165Smrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
85964ce7165Smrg    datarootdir=$ac_optarg ;;
86064ce7165Smrg
86164ce7165Smrg  -disable-* | --disable-*)
862fb23d3a8Smrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
86364ce7165Smrg    # Reject names that are not valid shell variable names.
864fb23d3a8Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
865169a0819Smrg      as_fn_error $? "invalid feature name: $ac_useropt"
866fb23d3a8Smrg    ac_useropt_orig=$ac_useropt
867fb23d3a8Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
868fb23d3a8Smrg    case $ac_user_opts in
869fb23d3a8Smrg      *"
870fb23d3a8Smrg"enable_$ac_useropt"
871fb23d3a8Smrg"*) ;;
872fb23d3a8Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
873fb23d3a8Smrg	 ac_unrecognized_sep=', ';;
874fb23d3a8Smrg    esac
875fb23d3a8Smrg    eval enable_$ac_useropt=no ;;
87664ce7165Smrg
87764ce7165Smrg  -docdir | --docdir | --docdi | --doc | --do)
87864ce7165Smrg    ac_prev=docdir ;;
87964ce7165Smrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
88064ce7165Smrg    docdir=$ac_optarg ;;
88164ce7165Smrg
88264ce7165Smrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
88364ce7165Smrg    ac_prev=dvidir ;;
88464ce7165Smrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
88564ce7165Smrg    dvidir=$ac_optarg ;;
88664ce7165Smrg
88764ce7165Smrg  -enable-* | --enable-*)
888fb23d3a8Smrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
88964ce7165Smrg    # Reject names that are not valid shell variable names.
890fb23d3a8Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
891169a0819Smrg      as_fn_error $? "invalid feature name: $ac_useropt"
892fb23d3a8Smrg    ac_useropt_orig=$ac_useropt
893fb23d3a8Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
894fb23d3a8Smrg    case $ac_user_opts in
895fb23d3a8Smrg      *"
896fb23d3a8Smrg"enable_$ac_useropt"
897fb23d3a8Smrg"*) ;;
898fb23d3a8Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
899fb23d3a8Smrg	 ac_unrecognized_sep=', ';;
900fb23d3a8Smrg    esac
901fb23d3a8Smrg    eval enable_$ac_useropt=\$ac_optarg ;;
90264ce7165Smrg
90364ce7165Smrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
90464ce7165Smrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
90564ce7165Smrg  | --exec | --exe | --ex)
90664ce7165Smrg    ac_prev=exec_prefix ;;
90764ce7165Smrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
90864ce7165Smrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
90964ce7165Smrg  | --exec=* | --exe=* | --ex=*)
91064ce7165Smrg    exec_prefix=$ac_optarg ;;
91164ce7165Smrg
91264ce7165Smrg  -gas | --gas | --ga | --g)
91364ce7165Smrg    # Obsolete; use --with-gas.
91464ce7165Smrg    with_gas=yes ;;
91564ce7165Smrg
91664ce7165Smrg  -help | --help | --hel | --he | -h)
91764ce7165Smrg    ac_init_help=long ;;
91864ce7165Smrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
91964ce7165Smrg    ac_init_help=recursive ;;
92064ce7165Smrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
92164ce7165Smrg    ac_init_help=short ;;
92264ce7165Smrg
92364ce7165Smrg  -host | --host | --hos | --ho)
92464ce7165Smrg    ac_prev=host_alias ;;
92564ce7165Smrg  -host=* | --host=* | --hos=* | --ho=*)
92664ce7165Smrg    host_alias=$ac_optarg ;;
92764ce7165Smrg
92864ce7165Smrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
92964ce7165Smrg    ac_prev=htmldir ;;
93064ce7165Smrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
93164ce7165Smrg  | --ht=*)
93264ce7165Smrg    htmldir=$ac_optarg ;;
93364ce7165Smrg
93464ce7165Smrg  -includedir | --includedir | --includedi | --included | --include \
93564ce7165Smrg  | --includ | --inclu | --incl | --inc)
93664ce7165Smrg    ac_prev=includedir ;;
93764ce7165Smrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
93864ce7165Smrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
93964ce7165Smrg    includedir=$ac_optarg ;;
94064ce7165Smrg
94164ce7165Smrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
94264ce7165Smrg    ac_prev=infodir ;;
94364ce7165Smrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
94464ce7165Smrg    infodir=$ac_optarg ;;
94564ce7165Smrg
94664ce7165Smrg  -libdir | --libdir | --libdi | --libd)
94764ce7165Smrg    ac_prev=libdir ;;
94864ce7165Smrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
94964ce7165Smrg    libdir=$ac_optarg ;;
95064ce7165Smrg
95164ce7165Smrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
95264ce7165Smrg  | --libexe | --libex | --libe)
95364ce7165Smrg    ac_prev=libexecdir ;;
95464ce7165Smrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
95564ce7165Smrg  | --libexe=* | --libex=* | --libe=*)
95664ce7165Smrg    libexecdir=$ac_optarg ;;
95764ce7165Smrg
95864ce7165Smrg  -localedir | --localedir | --localedi | --localed | --locale)
95964ce7165Smrg    ac_prev=localedir ;;
96064ce7165Smrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
96164ce7165Smrg    localedir=$ac_optarg ;;
96264ce7165Smrg
96364ce7165Smrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
96464ce7165Smrg  | --localstate | --localstat | --localsta | --localst | --locals)
96564ce7165Smrg    ac_prev=localstatedir ;;
96664ce7165Smrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
96764ce7165Smrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
96864ce7165Smrg    localstatedir=$ac_optarg ;;
96964ce7165Smrg
97064ce7165Smrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
97164ce7165Smrg    ac_prev=mandir ;;
97264ce7165Smrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
97364ce7165Smrg    mandir=$ac_optarg ;;
97464ce7165Smrg
97564ce7165Smrg  -nfp | --nfp | --nf)
97664ce7165Smrg    # Obsolete; use --without-fp.
97764ce7165Smrg    with_fp=no ;;
97864ce7165Smrg
97964ce7165Smrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
98064ce7165Smrg  | --no-cr | --no-c | -n)
98164ce7165Smrg    no_create=yes ;;
98264ce7165Smrg
98364ce7165Smrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
98464ce7165Smrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
98564ce7165Smrg    no_recursion=yes ;;
98664ce7165Smrg
98764ce7165Smrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
98864ce7165Smrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
98964ce7165Smrg  | --oldin | --oldi | --old | --ol | --o)
99064ce7165Smrg    ac_prev=oldincludedir ;;
99164ce7165Smrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
99264ce7165Smrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
99364ce7165Smrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
99464ce7165Smrg    oldincludedir=$ac_optarg ;;
99564ce7165Smrg
99664ce7165Smrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
99764ce7165Smrg    ac_prev=prefix ;;
99864ce7165Smrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
99964ce7165Smrg    prefix=$ac_optarg ;;
100064ce7165Smrg
100164ce7165Smrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
100264ce7165Smrg  | --program-pre | --program-pr | --program-p)
100364ce7165Smrg    ac_prev=program_prefix ;;
100464ce7165Smrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
100564ce7165Smrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
100664ce7165Smrg    program_prefix=$ac_optarg ;;
100764ce7165Smrg
100864ce7165Smrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
100964ce7165Smrg  | --program-suf | --program-su | --program-s)
101064ce7165Smrg    ac_prev=program_suffix ;;
101164ce7165Smrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
101264ce7165Smrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
101364ce7165Smrg    program_suffix=$ac_optarg ;;
101464ce7165Smrg
101564ce7165Smrg  -program-transform-name | --program-transform-name \
101664ce7165Smrg  | --program-transform-nam | --program-transform-na \
101764ce7165Smrg  | --program-transform-n | --program-transform- \
101864ce7165Smrg  | --program-transform | --program-transfor \
101964ce7165Smrg  | --program-transfo | --program-transf \
102064ce7165Smrg  | --program-trans | --program-tran \
102164ce7165Smrg  | --progr-tra | --program-tr | --program-t)
102264ce7165Smrg    ac_prev=program_transform_name ;;
102364ce7165Smrg  -program-transform-name=* | --program-transform-name=* \
102464ce7165Smrg  | --program-transform-nam=* | --program-transform-na=* \
102564ce7165Smrg  | --program-transform-n=* | --program-transform-=* \
102664ce7165Smrg  | --program-transform=* | --program-transfor=* \
102764ce7165Smrg  | --program-transfo=* | --program-transf=* \
102864ce7165Smrg  | --program-trans=* | --program-tran=* \
102964ce7165Smrg  | --progr-tra=* | --program-tr=* | --program-t=*)
103064ce7165Smrg    program_transform_name=$ac_optarg ;;
103164ce7165Smrg
103264ce7165Smrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
103364ce7165Smrg    ac_prev=pdfdir ;;
103464ce7165Smrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
103564ce7165Smrg    pdfdir=$ac_optarg ;;
103664ce7165Smrg
103764ce7165Smrg  -psdir | --psdir | --psdi | --psd | --ps)
103864ce7165Smrg    ac_prev=psdir ;;
103964ce7165Smrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
104064ce7165Smrg    psdir=$ac_optarg ;;
104164ce7165Smrg
104264ce7165Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
104364ce7165Smrg  | -silent | --silent | --silen | --sile | --sil)
104464ce7165Smrg    silent=yes ;;
104564ce7165Smrg
104664ce7165Smrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
104764ce7165Smrg    ac_prev=sbindir ;;
104864ce7165Smrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
104964ce7165Smrg  | --sbi=* | --sb=*)
105064ce7165Smrg    sbindir=$ac_optarg ;;
105164ce7165Smrg
105264ce7165Smrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
105364ce7165Smrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
105464ce7165Smrg  | --sharedst | --shareds | --shared | --share | --shar \
105564ce7165Smrg  | --sha | --sh)
105664ce7165Smrg    ac_prev=sharedstatedir ;;
105764ce7165Smrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
105864ce7165Smrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
105964ce7165Smrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
106064ce7165Smrg  | --sha=* | --sh=*)
106164ce7165Smrg    sharedstatedir=$ac_optarg ;;
106264ce7165Smrg
106364ce7165Smrg  -site | --site | --sit)
106464ce7165Smrg    ac_prev=site ;;
106564ce7165Smrg  -site=* | --site=* | --sit=*)
106664ce7165Smrg    site=$ac_optarg ;;
106764ce7165Smrg
106864ce7165Smrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
106964ce7165Smrg    ac_prev=srcdir ;;
107064ce7165Smrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
107164ce7165Smrg    srcdir=$ac_optarg ;;
107264ce7165Smrg
107364ce7165Smrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
107464ce7165Smrg  | --syscon | --sysco | --sysc | --sys | --sy)
107564ce7165Smrg    ac_prev=sysconfdir ;;
107664ce7165Smrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
107764ce7165Smrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
107864ce7165Smrg    sysconfdir=$ac_optarg ;;
107964ce7165Smrg
108064ce7165Smrg  -target | --target | --targe | --targ | --tar | --ta | --t)
108164ce7165Smrg    ac_prev=target_alias ;;
108264ce7165Smrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
108364ce7165Smrg    target_alias=$ac_optarg ;;
108464ce7165Smrg
108564ce7165Smrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
108664ce7165Smrg    verbose=yes ;;
108764ce7165Smrg
108864ce7165Smrg  -version | --version | --versio | --versi | --vers | -V)
108964ce7165Smrg    ac_init_version=: ;;
109064ce7165Smrg
109164ce7165Smrg  -with-* | --with-*)
1092fb23d3a8Smrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
109364ce7165Smrg    # Reject names that are not valid shell variable names.
1094fb23d3a8Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1095169a0819Smrg      as_fn_error $? "invalid package name: $ac_useropt"
1096fb23d3a8Smrg    ac_useropt_orig=$ac_useropt
1097fb23d3a8Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098fb23d3a8Smrg    case $ac_user_opts in
1099fb23d3a8Smrg      *"
1100fb23d3a8Smrg"with_$ac_useropt"
1101fb23d3a8Smrg"*) ;;
1102fb23d3a8Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1103fb23d3a8Smrg	 ac_unrecognized_sep=', ';;
1104fb23d3a8Smrg    esac
1105fb23d3a8Smrg    eval with_$ac_useropt=\$ac_optarg ;;
110664ce7165Smrg
110764ce7165Smrg  -without-* | --without-*)
1108fb23d3a8Smrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
110964ce7165Smrg    # Reject names that are not valid shell variable names.
1110fb23d3a8Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1111169a0819Smrg      as_fn_error $? "invalid package name: $ac_useropt"
1112fb23d3a8Smrg    ac_useropt_orig=$ac_useropt
1113fb23d3a8Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1114fb23d3a8Smrg    case $ac_user_opts in
1115fb23d3a8Smrg      *"
1116fb23d3a8Smrg"with_$ac_useropt"
1117fb23d3a8Smrg"*) ;;
1118fb23d3a8Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1119fb23d3a8Smrg	 ac_unrecognized_sep=', ';;
1120fb23d3a8Smrg    esac
1121fb23d3a8Smrg    eval with_$ac_useropt=no ;;
112264ce7165Smrg
112364ce7165Smrg  --x)
112464ce7165Smrg    # Obsolete; use --with-x.
112564ce7165Smrg    with_x=yes ;;
112664ce7165Smrg
112764ce7165Smrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
112864ce7165Smrg  | --x-incl | --x-inc | --x-in | --x-i)
112964ce7165Smrg    ac_prev=x_includes ;;
113064ce7165Smrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
113164ce7165Smrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
113264ce7165Smrg    x_includes=$ac_optarg ;;
113364ce7165Smrg
113464ce7165Smrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
113564ce7165Smrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
113664ce7165Smrg    ac_prev=x_libraries ;;
113764ce7165Smrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
113864ce7165Smrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
113964ce7165Smrg    x_libraries=$ac_optarg ;;
114064ce7165Smrg
1141169a0819Smrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1142169a0819SmrgTry \`$0 --help' for more information"
114364ce7165Smrg    ;;
114464ce7165Smrg
114564ce7165Smrg  *=*)
114664ce7165Smrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
114764ce7165Smrg    # Reject names that are not valid shell variable names.
1148169a0819Smrg    case $ac_envvar in #(
1149169a0819Smrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
1150169a0819Smrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1151169a0819Smrg    esac
115264ce7165Smrg    eval $ac_envvar=\$ac_optarg
115364ce7165Smrg    export $ac_envvar ;;
115464ce7165Smrg
115564ce7165Smrg  *)
115664ce7165Smrg    # FIXME: should be removed in autoconf 3.0.
1157fb23d3a8Smrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
115864ce7165Smrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1159fb23d3a8Smrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1160169a0819Smrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
116164ce7165Smrg    ;;
116264ce7165Smrg
116364ce7165Smrg  esac
116464ce7165Smrgdone
116564ce7165Smrg
116664ce7165Smrgif test -n "$ac_prev"; then
116764ce7165Smrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1168169a0819Smrg  as_fn_error $? "missing argument to $ac_option"
116964ce7165Smrgfi
117064ce7165Smrg
1171fb23d3a8Smrgif test -n "$ac_unrecognized_opts"; then
1172fb23d3a8Smrg  case $enable_option_checking in
1173fb23d3a8Smrg    no) ;;
1174169a0819Smrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1175fb23d3a8Smrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1176fb23d3a8Smrg  esac
1177fb23d3a8Smrgfi
1178fb23d3a8Smrg
1179fb23d3a8Smrg# Check all directory arguments for consistency.
118064ce7165Smrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
118164ce7165Smrg		datadir sysconfdir sharedstatedir localstatedir includedir \
118264ce7165Smrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
118364ce7165Smrg		libdir localedir mandir
118464ce7165Smrgdo
118564ce7165Smrg  eval ac_val=\$$ac_var
1186fb23d3a8Smrg  # Remove trailing slashes.
1187fb23d3a8Smrg  case $ac_val in
1188fb23d3a8Smrg    */ )
1189fb23d3a8Smrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1190fb23d3a8Smrg      eval $ac_var=\$ac_val;;
1191fb23d3a8Smrg  esac
1192fb23d3a8Smrg  # Be sure to have absolute directory names.
119364ce7165Smrg  case $ac_val in
119464ce7165Smrg    [\\/$]* | ?:[\\/]* )  continue;;
119564ce7165Smrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
119664ce7165Smrg  esac
1197169a0819Smrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
119864ce7165Smrgdone
119964ce7165Smrg
120064ce7165Smrg# There might be people who depend on the old broken behavior: `$host'
120164ce7165Smrg# used to hold the argument of --host etc.
120264ce7165Smrg# FIXME: To remove some day.
120364ce7165Smrgbuild=$build_alias
120464ce7165Smrghost=$host_alias
120564ce7165Smrgtarget=$target_alias
120664ce7165Smrg
120764ce7165Smrg# FIXME: To remove some day.
120864ce7165Smrgif test "x$host_alias" != x; then
120964ce7165Smrg  if test "x$build_alias" = x; then
121064ce7165Smrg    cross_compiling=maybe
1211169a0819Smrg    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1212169a0819Smrg    If a cross compiler is detected then cross compile mode will be used" >&2
121364ce7165Smrg  elif test "x$build_alias" != "x$host_alias"; then
121464ce7165Smrg    cross_compiling=yes
121564ce7165Smrg  fi
121664ce7165Smrgfi
121764ce7165Smrg
121864ce7165Smrgac_tool_prefix=
121964ce7165Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
122064ce7165Smrg
122164ce7165Smrgtest "$silent" = yes && exec 6>/dev/null
122264ce7165Smrg
122364ce7165Smrg
122464ce7165Smrgac_pwd=`pwd` && test -n "$ac_pwd" &&
122564ce7165Smrgac_ls_di=`ls -di .` &&
122664ce7165Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1227169a0819Smrg  as_fn_error $? "working directory cannot be determined"
122864ce7165Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1229169a0819Smrg  as_fn_error $? "pwd does not report name of working directory"
123064ce7165Smrg
123164ce7165Smrg
123264ce7165Smrg# Find the source files, if location was not specified.
123364ce7165Smrgif test -z "$srcdir"; then
123464ce7165Smrg  ac_srcdir_defaulted=yes
123564ce7165Smrg  # Try the directory containing this script, then the parent directory.
1236fb23d3a8Smrg  ac_confdir=`$as_dirname -- "$as_myself" ||
1237fb23d3a8Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1238fb23d3a8Smrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
1239fb23d3a8Smrg	 X"$as_myself" : 'X\(//\)$' \| \
1240fb23d3a8Smrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1241fb23d3a8Smrg$as_echo X"$as_myself" |
124264ce7165Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
124364ce7165Smrg	    s//\1/
124464ce7165Smrg	    q
124564ce7165Smrg	  }
124664ce7165Smrg	  /^X\(\/\/\)[^/].*/{
124764ce7165Smrg	    s//\1/
124864ce7165Smrg	    q
124964ce7165Smrg	  }
125064ce7165Smrg	  /^X\(\/\/\)$/{
125164ce7165Smrg	    s//\1/
125264ce7165Smrg	    q
125364ce7165Smrg	  }
125464ce7165Smrg	  /^X\(\/\).*/{
125564ce7165Smrg	    s//\1/
125664ce7165Smrg	    q
125764ce7165Smrg	  }
125864ce7165Smrg	  s/.*/./; q'`
125964ce7165Smrg  srcdir=$ac_confdir
126064ce7165Smrg  if test ! -r "$srcdir/$ac_unique_file"; then
126164ce7165Smrg    srcdir=..
126264ce7165Smrg  fi
126364ce7165Smrgelse
126464ce7165Smrg  ac_srcdir_defaulted=no
126564ce7165Smrgfi
126664ce7165Smrgif test ! -r "$srcdir/$ac_unique_file"; then
126764ce7165Smrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1268169a0819Smrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
126964ce7165Smrgfi
127064ce7165Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
127164ce7165Smrgac_abs_confdir=`(
1272169a0819Smrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
127364ce7165Smrg	pwd)`
127464ce7165Smrg# When building in place, set srcdir=.
127564ce7165Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then
127664ce7165Smrg  srcdir=.
127764ce7165Smrgfi
127864ce7165Smrg# Remove unnecessary trailing slashes from srcdir.
127964ce7165Smrg# Double slashes in file names in object file debugging info
128064ce7165Smrg# mess up M-x gdb in Emacs.
128164ce7165Smrgcase $srcdir in
128264ce7165Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
128364ce7165Smrgesac
128464ce7165Smrgfor ac_var in $ac_precious_vars; do
128564ce7165Smrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
128664ce7165Smrg  eval ac_env_${ac_var}_value=\$${ac_var}
128764ce7165Smrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
128864ce7165Smrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
128964ce7165Smrgdone
129064ce7165Smrg
129164ce7165Smrg#
129264ce7165Smrg# Report the --help message.
129364ce7165Smrg#
129464ce7165Smrgif test "$ac_init_help" = "long"; then
129564ce7165Smrg  # Omit some internal or obsolete options to make the list less imposing.
129664ce7165Smrg  # This message is too long to be a string in the A/UX 3.1 sh.
129764ce7165Smrg  cat <<_ACEOF
12983544ea2eSmrg\`configure' configures xhost 1.0.5 to adapt to many kinds of systems.
129964ce7165Smrg
130064ce7165SmrgUsage: $0 [OPTION]... [VAR=VALUE]...
130164ce7165Smrg
130264ce7165SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
130364ce7165SmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
130464ce7165Smrg
130564ce7165SmrgDefaults for the options are specified in brackets.
130664ce7165Smrg
130764ce7165SmrgConfiguration:
130864ce7165Smrg  -h, --help              display this help and exit
130964ce7165Smrg      --help=short        display options specific to this package
131064ce7165Smrg      --help=recursive    display the short help of all the included packages
131164ce7165Smrg  -V, --version           display version information and exit
1312169a0819Smrg  -q, --quiet, --silent   do not print \`checking ...' messages
131364ce7165Smrg      --cache-file=FILE   cache test results in FILE [disabled]
131464ce7165Smrg  -C, --config-cache      alias for \`--cache-file=config.cache'
131564ce7165Smrg  -n, --no-create         do not create output files
131664ce7165Smrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
131764ce7165Smrg
131864ce7165SmrgInstallation directories:
131964ce7165Smrg  --prefix=PREFIX         install architecture-independent files in PREFIX
1320fb23d3a8Smrg                          [$ac_default_prefix]
132164ce7165Smrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1322fb23d3a8Smrg                          [PREFIX]
132364ce7165Smrg
132464ce7165SmrgBy default, \`make install' will install all the files in
132564ce7165Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
132664ce7165Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
132764ce7165Smrgfor instance \`--prefix=\$HOME'.
132864ce7165Smrg
132964ce7165SmrgFor better control, use the options below.
133064ce7165Smrg
133164ce7165SmrgFine tuning of the installation directories:
1332fb23d3a8Smrg  --bindir=DIR            user executables [EPREFIX/bin]
1333fb23d3a8Smrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1334fb23d3a8Smrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
1335fb23d3a8Smrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1336fb23d3a8Smrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1337fb23d3a8Smrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1338fb23d3a8Smrg  --libdir=DIR            object code libraries [EPREFIX/lib]
1339fb23d3a8Smrg  --includedir=DIR        C header files [PREFIX/include]
1340fb23d3a8Smrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1341fb23d3a8Smrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1342fb23d3a8Smrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1343fb23d3a8Smrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
1344fb23d3a8Smrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1345fb23d3a8Smrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
1346fb23d3a8Smrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/xhost]
1347fb23d3a8Smrg  --htmldir=DIR           html documentation [DOCDIR]
1348fb23d3a8Smrg  --dvidir=DIR            dvi documentation [DOCDIR]
1349fb23d3a8Smrg  --pdfdir=DIR            pdf documentation [DOCDIR]
1350fb23d3a8Smrg  --psdir=DIR             ps documentation [DOCDIR]
135164ce7165Smrg_ACEOF
135264ce7165Smrg
135364ce7165Smrg  cat <<\_ACEOF
135464ce7165Smrg
135564ce7165SmrgProgram names:
135664ce7165Smrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
135764ce7165Smrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
135864ce7165Smrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
135964ce7165Smrg
136064ce7165SmrgSystem types:
136164ce7165Smrg  --build=BUILD     configure for building on BUILD [guessed]
136264ce7165Smrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
136364ce7165Smrg_ACEOF
136464ce7165Smrgfi
136564ce7165Smrg
136664ce7165Smrgif test -n "$ac_init_help"; then
136764ce7165Smrg  case $ac_init_help in
13683544ea2eSmrg     short | recursive ) echo "Configuration of xhost 1.0.5:";;
136964ce7165Smrg   esac
137064ce7165Smrg  cat <<\_ACEOF
137164ce7165Smrg
137264ce7165SmrgOptional Features:
1373fb23d3a8Smrg  --disable-option-checking  ignore unrecognized --enable/--with options
137464ce7165Smrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
137564ce7165Smrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
137664ce7165Smrg  --enable-maintainer-mode  enable make rules and dependencies not useful
137764ce7165Smrg			  (and sometimes confusing) to the casual installer
137864ce7165Smrg  --disable-dependency-tracking  speeds up one-time build
137964ce7165Smrg  --enable-dependency-tracking   do not reject slow dependency extractors
13803544ea2eSmrg  --disable-selective-werror
13813544ea2eSmrg                          Turn off selective compiler errors. (default:
13823544ea2eSmrg                          enabled)
1383fb23d3a8Smrg  --enable-strict-compilation
1384fb23d3a8Smrg                          Enable all warnings from compiler and make them
1385fb23d3a8Smrg                          errors (default: disabled)
1386169a0819Smrg  --enable-silent-rules          less verbose build output (undo: `make V=1')
1387169a0819Smrg  --disable-silent-rules         verbose build output (undo: `make V=0')
138864ce7165Smrg  --enable-unix-transport Enable UNIX domain socket transport
138964ce7165Smrg  --enable-tcp-transport  Enable TCP socket transport
1390fb23d3a8Smrg  --enable-ipv6           Enable IPv6 support
139164ce7165Smrg  --enable-local-transport
139264ce7165Smrg                          Enable os-specific local transport
139364ce7165Smrg  --enable-secure-rpc     Enable Secure RPC
139464ce7165Smrg
139564ce7165SmrgSome influential environment variables:
139664ce7165Smrg  CC          C compiler command
139764ce7165Smrg  CFLAGS      C compiler flags
139864ce7165Smrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
139964ce7165Smrg              nonstandard directory <lib dir>
140064ce7165Smrg  LIBS        libraries to pass to the linker, e.g. -l<library>
1401169a0819Smrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
140264ce7165Smrg              you have headers in a nonstandard directory <include dir>
1403fb23d3a8Smrg  CPP         C preprocessor
140464ce7165Smrg  PKG_CONFIG  path to pkg-config utility
140564ce7165Smrg  XHOST_CFLAGS
140664ce7165Smrg              C compiler flags for XHOST, overriding pkg-config
140764ce7165Smrg  XHOST_LIBS  linker flags for XHOST, overriding pkg-config
14083544ea2eSmrg  XAU_CFLAGS  C compiler flags for XAU, overriding pkg-config
14093544ea2eSmrg  XAU_LIBS    linker flags for XAU, overriding pkg-config
141064ce7165Smrg
141164ce7165SmrgUse these variables to override the choices made by `configure' or to help
141264ce7165Smrgit to find libraries and programs with nonstandard names/locations.
141364ce7165Smrg
141464ce7165SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
141564ce7165Smrg_ACEOF
141664ce7165Smrgac_status=$?
141764ce7165Smrgfi
141864ce7165Smrg
141964ce7165Smrgif test "$ac_init_help" = "recursive"; then
142064ce7165Smrg  # If there are subdirs, report their specific --help.
142164ce7165Smrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1422fb23d3a8Smrg    test -d "$ac_dir" ||
1423fb23d3a8Smrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1424fb23d3a8Smrg      continue
142564ce7165Smrg    ac_builddir=.
142664ce7165Smrg
142764ce7165Smrgcase "$ac_dir" in
142864ce7165Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
142964ce7165Smrg*)
1430fb23d3a8Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
143164ce7165Smrg  # A ".." for each directory in $ac_dir_suffix.
1432fb23d3a8Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
143364ce7165Smrg  case $ac_top_builddir_sub in
143464ce7165Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
143564ce7165Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
143664ce7165Smrg  esac ;;
143764ce7165Smrgesac
143864ce7165Smrgac_abs_top_builddir=$ac_pwd
143964ce7165Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
144064ce7165Smrg# for backward compatibility:
144164ce7165Smrgac_top_builddir=$ac_top_build_prefix
144264ce7165Smrg
144364ce7165Smrgcase $srcdir in
144464ce7165Smrg  .)  # We are building in place.
144564ce7165Smrg    ac_srcdir=.
144664ce7165Smrg    ac_top_srcdir=$ac_top_builddir_sub
144764ce7165Smrg    ac_abs_top_srcdir=$ac_pwd ;;
144864ce7165Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
144964ce7165Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
145064ce7165Smrg    ac_top_srcdir=$srcdir
145164ce7165Smrg    ac_abs_top_srcdir=$srcdir ;;
145264ce7165Smrg  *) # Relative name.
145364ce7165Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
145464ce7165Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
145564ce7165Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
145664ce7165Smrgesac
145764ce7165Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
145864ce7165Smrg
145964ce7165Smrg    cd "$ac_dir" || { ac_status=$?; continue; }
146064ce7165Smrg    # Check for guested configure.
146164ce7165Smrg    if test -f "$ac_srcdir/configure.gnu"; then
146264ce7165Smrg      echo &&
146364ce7165Smrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
146464ce7165Smrg    elif test -f "$ac_srcdir/configure"; then
146564ce7165Smrg      echo &&
146664ce7165Smrg      $SHELL "$ac_srcdir/configure" --help=recursive
146764ce7165Smrg    else
1468fb23d3a8Smrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
146964ce7165Smrg    fi || ac_status=$?
147064ce7165Smrg    cd "$ac_pwd" || { ac_status=$?; break; }
147164ce7165Smrg  done
147264ce7165Smrgfi
147364ce7165Smrg
147464ce7165Smrgtest -n "$ac_init_help" && exit $ac_status
147564ce7165Smrgif $ac_init_version; then
147664ce7165Smrg  cat <<\_ACEOF
14773544ea2eSmrgxhost configure 1.0.5
1478169a0819Smrggenerated by GNU Autoconf 2.68
147964ce7165Smrg
1480169a0819SmrgCopyright (C) 2010 Free Software Foundation, Inc.
148164ce7165SmrgThis configure script is free software; the Free Software Foundation
148264ce7165Smrggives unlimited permission to copy, distribute and modify it.
148364ce7165Smrg_ACEOF
148464ce7165Smrg  exit
148564ce7165Smrgfi
148664ce7165Smrg
1487169a0819Smrg## ------------------------ ##
1488169a0819Smrg## Autoconf initialization. ##
1489169a0819Smrg## ------------------------ ##
149064ce7165Smrg
1491169a0819Smrg# ac_fn_c_try_compile LINENO
1492169a0819Smrg# --------------------------
1493169a0819Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
1494169a0819Smrgac_fn_c_try_compile ()
149564ce7165Smrg{
1496169a0819Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1497169a0819Smrg  rm -f conftest.$ac_objext
1498169a0819Smrg  if { { ac_try="$ac_compile"
1499169a0819Smrgcase "(($ac_try" in
1500169a0819Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1501169a0819Smrg  *) ac_try_echo=$ac_try;;
1502169a0819Smrgesac
1503169a0819Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1504169a0819Smrg$as_echo "$ac_try_echo"; } >&5
1505169a0819Smrg  (eval "$ac_compile") 2>conftest.err
1506169a0819Smrg  ac_status=$?
1507169a0819Smrg  if test -s conftest.err; then
1508169a0819Smrg    grep -v '^ *+' conftest.err >conftest.er1
1509169a0819Smrg    cat conftest.er1 >&5
1510169a0819Smrg    mv -f conftest.er1 conftest.err
1511169a0819Smrg  fi
1512169a0819Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1513169a0819Smrg  test $ac_status = 0; } && {
1514169a0819Smrg	 test -z "$ac_c_werror_flag" ||
1515169a0819Smrg	 test ! -s conftest.err
1516169a0819Smrg       } && test -s conftest.$ac_objext; then :
1517169a0819Smrg  ac_retval=0
1518169a0819Smrgelse
1519169a0819Smrg  $as_echo "$as_me: failed program was:" >&5
1520169a0819Smrgsed 's/^/| /' conftest.$ac_ext >&5
152164ce7165Smrg
1522169a0819Smrg	ac_retval=1
1523169a0819Smrgfi
1524169a0819Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1525169a0819Smrg  as_fn_set_status $ac_retval
152664ce7165Smrg
1527169a0819Smrg} # ac_fn_c_try_compile
152864ce7165Smrg
1529169a0819Smrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1530169a0819Smrg# ---------------------------------------------
1531169a0819Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1532169a0819Smrg# accordingly.
1533169a0819Smrgac_fn_c_check_decl ()
1534169a0819Smrg{
1535169a0819Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1536169a0819Smrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
1537169a0819Smrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1538169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1539169a0819Smrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1540169a0819Smrgif eval \${$3+:} false; then :
1541169a0819Smrg  $as_echo_n "(cached) " >&6
1542169a0819Smrgelse
1543169a0819Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1544169a0819Smrg/* end confdefs.h.  */
1545169a0819Smrg$4
1546169a0819Smrgint
1547169a0819Smrgmain ()
1548169a0819Smrg{
1549169a0819Smrg#ifndef $as_decl_name
1550169a0819Smrg#ifdef __cplusplus
1551169a0819Smrg  (void) $as_decl_use;
1552169a0819Smrg#else
1553169a0819Smrg  (void) $as_decl_name;
1554169a0819Smrg#endif
1555169a0819Smrg#endif
1556169a0819Smrg
1557169a0819Smrg  ;
1558169a0819Smrg  return 0;
1559169a0819Smrg}
1560169a0819Smrg_ACEOF
1561169a0819Smrgif ac_fn_c_try_compile "$LINENO"; then :
1562169a0819Smrg  eval "$3=yes"
1563169a0819Smrgelse
1564169a0819Smrg  eval "$3=no"
1565169a0819Smrgfi
1566169a0819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1567169a0819Smrgfi
1568169a0819Smrgeval ac_res=\$$3
1569169a0819Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1570169a0819Smrg$as_echo "$ac_res" >&6; }
1571169a0819Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1572169a0819Smrg
1573169a0819Smrg} # ac_fn_c_check_decl
1574169a0819Smrg
1575169a0819Smrg# ac_fn_c_try_cpp LINENO
1576169a0819Smrg# ----------------------
1577169a0819Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1578169a0819Smrgac_fn_c_try_cpp ()
1579169a0819Smrg{
1580169a0819Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581169a0819Smrg  if { { ac_try="$ac_cpp conftest.$ac_ext"
1582169a0819Smrgcase "(($ac_try" in
1583169a0819Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584169a0819Smrg  *) ac_try_echo=$ac_try;;
1585169a0819Smrgesac
1586169a0819Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587169a0819Smrg$as_echo "$ac_try_echo"; } >&5
1588169a0819Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1589169a0819Smrg  ac_status=$?
1590169a0819Smrg  if test -s conftest.err; then
1591169a0819Smrg    grep -v '^ *+' conftest.err >conftest.er1
1592169a0819Smrg    cat conftest.er1 >&5
1593169a0819Smrg    mv -f conftest.er1 conftest.err
1594169a0819Smrg  fi
1595169a0819Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596169a0819Smrg  test $ac_status = 0; } > conftest.i && {
1597169a0819Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1598169a0819Smrg	 test ! -s conftest.err
1599169a0819Smrg       }; then :
1600169a0819Smrg  ac_retval=0
1601169a0819Smrgelse
1602169a0819Smrg  $as_echo "$as_me: failed program was:" >&5
1603169a0819Smrgsed 's/^/| /' conftest.$ac_ext >&5
1604169a0819Smrg
1605169a0819Smrg    ac_retval=1
1606169a0819Smrgfi
1607169a0819Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1608169a0819Smrg  as_fn_set_status $ac_retval
1609169a0819Smrg
1610169a0819Smrg} # ac_fn_c_try_cpp
1611169a0819Smrg
1612169a0819Smrg# ac_fn_c_try_run LINENO
1613169a0819Smrg# ----------------------
1614169a0819Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1615169a0819Smrg# that executables *can* be run.
1616169a0819Smrgac_fn_c_try_run ()
1617169a0819Smrg{
1618169a0819Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619169a0819Smrg  if { { ac_try="$ac_link"
1620169a0819Smrgcase "(($ac_try" in
1621169a0819Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622169a0819Smrg  *) ac_try_echo=$ac_try;;
1623169a0819Smrgesac
1624169a0819Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625169a0819Smrg$as_echo "$ac_try_echo"; } >&5
1626169a0819Smrg  (eval "$ac_link") 2>&5
1627169a0819Smrg  ac_status=$?
1628169a0819Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629169a0819Smrg  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1630169a0819Smrg  { { case "(($ac_try" in
1631169a0819Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632169a0819Smrg  *) ac_try_echo=$ac_try;;
1633169a0819Smrgesac
1634169a0819Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635169a0819Smrg$as_echo "$ac_try_echo"; } >&5
1636169a0819Smrg  (eval "$ac_try") 2>&5
1637169a0819Smrg  ac_status=$?
1638169a0819Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639169a0819Smrg  test $ac_status = 0; }; }; then :
1640169a0819Smrg  ac_retval=0
1641169a0819Smrgelse
1642169a0819Smrg  $as_echo "$as_me: program exited with status $ac_status" >&5
1643169a0819Smrg       $as_echo "$as_me: failed program was:" >&5
1644169a0819Smrgsed 's/^/| /' conftest.$ac_ext >&5
1645169a0819Smrg
1646169a0819Smrg       ac_retval=$ac_status
1647169a0819Smrgfi
1648169a0819Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1649169a0819Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650169a0819Smrg  as_fn_set_status $ac_retval
1651169a0819Smrg
1652169a0819Smrg} # ac_fn_c_try_run
1653169a0819Smrg
1654169a0819Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1655169a0819Smrg# -------------------------------------------------------
1656169a0819Smrg# Tests whether HEADER exists and can be compiled using the include files in
1657169a0819Smrg# INCLUDES, setting the cache variable VAR accordingly.
1658169a0819Smrgac_fn_c_check_header_compile ()
1659169a0819Smrg{
1660169a0819Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1662169a0819Smrg$as_echo_n "checking for $2... " >&6; }
1663169a0819Smrgif eval \${$3+:} false; then :
1664169a0819Smrg  $as_echo_n "(cached) " >&6
1665169a0819Smrgelse
1666169a0819Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1667169a0819Smrg/* end confdefs.h.  */
1668169a0819Smrg$4
1669169a0819Smrg#include <$2>
1670169a0819Smrg_ACEOF
1671169a0819Smrgif ac_fn_c_try_compile "$LINENO"; then :
1672169a0819Smrg  eval "$3=yes"
1673169a0819Smrgelse
1674169a0819Smrg  eval "$3=no"
1675169a0819Smrgfi
1676169a0819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1677169a0819Smrgfi
1678169a0819Smrgeval ac_res=\$$3
1679169a0819Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1680169a0819Smrg$as_echo "$ac_res" >&6; }
1681169a0819Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682169a0819Smrg
1683169a0819Smrg} # ac_fn_c_check_header_compile
1684169a0819Smrg
1685169a0819Smrg# ac_fn_c_try_link LINENO
1686169a0819Smrg# -----------------------
1687169a0819Smrg# Try to link conftest.$ac_ext, and return whether this succeeded.
1688169a0819Smrgac_fn_c_try_link ()
1689169a0819Smrg{
1690169a0819Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691169a0819Smrg  rm -f conftest.$ac_objext conftest$ac_exeext
1692169a0819Smrg  if { { ac_try="$ac_link"
1693169a0819Smrgcase "(($ac_try" in
1694169a0819Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695169a0819Smrg  *) ac_try_echo=$ac_try;;
1696169a0819Smrgesac
1697169a0819Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698169a0819Smrg$as_echo "$ac_try_echo"; } >&5
1699169a0819Smrg  (eval "$ac_link") 2>conftest.err
1700169a0819Smrg  ac_status=$?
1701169a0819Smrg  if test -s conftest.err; then
1702169a0819Smrg    grep -v '^ *+' conftest.err >conftest.er1
1703169a0819Smrg    cat conftest.er1 >&5
1704169a0819Smrg    mv -f conftest.er1 conftest.err
1705169a0819Smrg  fi
1706169a0819Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707169a0819Smrg  test $ac_status = 0; } && {
1708169a0819Smrg	 test -z "$ac_c_werror_flag" ||
1709169a0819Smrg	 test ! -s conftest.err
1710169a0819Smrg       } && test -s conftest$ac_exeext && {
1711169a0819Smrg	 test "$cross_compiling" = yes ||
1712169a0819Smrg	 $as_test_x conftest$ac_exeext
1713169a0819Smrg       }; then :
1714169a0819Smrg  ac_retval=0
1715169a0819Smrgelse
1716169a0819Smrg  $as_echo "$as_me: failed program was:" >&5
1717169a0819Smrgsed 's/^/| /' conftest.$ac_ext >&5
1718169a0819Smrg
1719169a0819Smrg	ac_retval=1
1720169a0819Smrgfi
1721169a0819Smrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1722169a0819Smrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1723169a0819Smrg  # interfere with the next link command; also delete a directory that is
1724169a0819Smrg  # left behind by Apple's compiler.  We do this before executing the actions.
1725169a0819Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1726169a0819Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727169a0819Smrg  as_fn_set_status $ac_retval
1728169a0819Smrg
1729169a0819Smrg} # ac_fn_c_try_link
1730169a0819Smrg
1731169a0819Smrg# ac_fn_c_check_func LINENO FUNC VAR
1732169a0819Smrg# ----------------------------------
1733169a0819Smrg# Tests whether FUNC exists, setting the cache variable VAR accordingly
1734169a0819Smrgac_fn_c_check_func ()
1735169a0819Smrg{
1736169a0819Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1738169a0819Smrg$as_echo_n "checking for $2... " >&6; }
1739169a0819Smrgif eval \${$3+:} false; then :
1740169a0819Smrg  $as_echo_n "(cached) " >&6
1741169a0819Smrgelse
1742169a0819Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1743169a0819Smrg/* end confdefs.h.  */
1744169a0819Smrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1745169a0819Smrg   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1746169a0819Smrg#define $2 innocuous_$2
1747169a0819Smrg
1748169a0819Smrg/* System header to define __stub macros and hopefully few prototypes,
1749169a0819Smrg    which can conflict with char $2 (); below.
1750169a0819Smrg    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1751169a0819Smrg    <limits.h> exists even on freestanding compilers.  */
1752169a0819Smrg
1753169a0819Smrg#ifdef __STDC__
1754169a0819Smrg# include <limits.h>
1755169a0819Smrg#else
1756169a0819Smrg# include <assert.h>
1757169a0819Smrg#endif
1758169a0819Smrg
1759169a0819Smrg#undef $2
1760169a0819Smrg
1761169a0819Smrg/* Override any GCC internal prototype to avoid an error.
1762169a0819Smrg   Use char because int might match the return type of a GCC
1763169a0819Smrg   builtin and then its argument prototype would still apply.  */
1764169a0819Smrg#ifdef __cplusplus
1765169a0819Smrgextern "C"
1766169a0819Smrg#endif
1767169a0819Smrgchar $2 ();
1768169a0819Smrg/* The GNU C library defines this for functions which it implements
1769169a0819Smrg    to always fail with ENOSYS.  Some functions are actually named
1770169a0819Smrg    something starting with __ and the normal name is an alias.  */
1771169a0819Smrg#if defined __stub_$2 || defined __stub___$2
1772169a0819Smrgchoke me
1773169a0819Smrg#endif
1774169a0819Smrg
1775169a0819Smrgint
1776169a0819Smrgmain ()
1777169a0819Smrg{
1778169a0819Smrgreturn $2 ();
1779169a0819Smrg  ;
1780169a0819Smrg  return 0;
1781169a0819Smrg}
1782169a0819Smrg_ACEOF
1783169a0819Smrgif ac_fn_c_try_link "$LINENO"; then :
1784169a0819Smrg  eval "$3=yes"
1785169a0819Smrgelse
1786169a0819Smrg  eval "$3=no"
1787169a0819Smrgfi
1788169a0819Smrgrm -f core conftest.err conftest.$ac_objext \
1789169a0819Smrg    conftest$ac_exeext conftest.$ac_ext
1790169a0819Smrgfi
1791169a0819Smrgeval ac_res=\$$3
1792169a0819Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793169a0819Smrg$as_echo "$ac_res" >&6; }
1794169a0819Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795169a0819Smrg
1796169a0819Smrg} # ac_fn_c_check_func
1797169a0819Smrg
1798169a0819Smrg# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1799169a0819Smrg# ----------------------------------------------------
1800169a0819Smrg# Tries to find if the field MEMBER exists in type AGGR, after including
1801169a0819Smrg# INCLUDES, setting cache variable VAR accordingly.
1802169a0819Smrgac_fn_c_check_member ()
1803169a0819Smrg{
1804169a0819Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1806169a0819Smrg$as_echo_n "checking for $2.$3... " >&6; }
1807169a0819Smrgif eval \${$4+:} false; then :
1808169a0819Smrg  $as_echo_n "(cached) " >&6
1809169a0819Smrgelse
1810169a0819Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811169a0819Smrg/* end confdefs.h.  */
1812169a0819Smrg$5
1813169a0819Smrgint
1814169a0819Smrgmain ()
1815169a0819Smrg{
1816169a0819Smrgstatic $2 ac_aggr;
1817169a0819Smrgif (ac_aggr.$3)
1818169a0819Smrgreturn 0;
1819169a0819Smrg  ;
1820169a0819Smrg  return 0;
1821169a0819Smrg}
1822169a0819Smrg_ACEOF
1823169a0819Smrgif ac_fn_c_try_compile "$LINENO"; then :
1824169a0819Smrg  eval "$4=yes"
1825169a0819Smrgelse
1826169a0819Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827169a0819Smrg/* end confdefs.h.  */
1828169a0819Smrg$5
1829169a0819Smrgint
1830169a0819Smrgmain ()
1831169a0819Smrg{
1832169a0819Smrgstatic $2 ac_aggr;
1833169a0819Smrgif (sizeof ac_aggr.$3)
1834169a0819Smrgreturn 0;
1835169a0819Smrg  ;
1836169a0819Smrg  return 0;
1837169a0819Smrg}
1838169a0819Smrg_ACEOF
1839169a0819Smrgif ac_fn_c_try_compile "$LINENO"; then :
1840169a0819Smrg  eval "$4=yes"
1841169a0819Smrgelse
1842169a0819Smrg  eval "$4=no"
1843169a0819Smrgfi
1844169a0819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1845169a0819Smrgfi
1846169a0819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1847169a0819Smrgfi
1848169a0819Smrgeval ac_res=\$$4
1849169a0819Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1850169a0819Smrg$as_echo "$ac_res" >&6; }
1851169a0819Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1852169a0819Smrg
1853169a0819Smrg} # ac_fn_c_check_member
1854169a0819Smrg
1855169a0819Smrg# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1856169a0819Smrg# -------------------------------------------
1857169a0819Smrg# Tests whether TYPE exists after having included INCLUDES, setting cache
1858169a0819Smrg# variable VAR accordingly.
1859169a0819Smrgac_fn_c_check_type ()
1860169a0819Smrg{
1861169a0819Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1863169a0819Smrg$as_echo_n "checking for $2... " >&6; }
1864169a0819Smrgif eval \${$3+:} false; then :
1865169a0819Smrg  $as_echo_n "(cached) " >&6
1866169a0819Smrgelse
1867169a0819Smrg  eval "$3=no"
1868169a0819Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869169a0819Smrg/* end confdefs.h.  */
1870169a0819Smrg$4
1871169a0819Smrgint
1872169a0819Smrgmain ()
1873169a0819Smrg{
1874169a0819Smrgif (sizeof ($2))
1875169a0819Smrg	 return 0;
1876169a0819Smrg  ;
1877169a0819Smrg  return 0;
1878169a0819Smrg}
1879169a0819Smrg_ACEOF
1880169a0819Smrgif ac_fn_c_try_compile "$LINENO"; then :
1881169a0819Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1882169a0819Smrg/* end confdefs.h.  */
1883169a0819Smrg$4
1884169a0819Smrgint
1885169a0819Smrgmain ()
1886169a0819Smrg{
1887169a0819Smrgif (sizeof (($2)))
1888169a0819Smrg	    return 0;
1889169a0819Smrg  ;
1890169a0819Smrg  return 0;
1891169a0819Smrg}
1892169a0819Smrg_ACEOF
1893169a0819Smrgif ac_fn_c_try_compile "$LINENO"; then :
1894169a0819Smrg
1895169a0819Smrgelse
1896169a0819Smrg  eval "$3=yes"
1897169a0819Smrgfi
1898169a0819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1899169a0819Smrgfi
1900169a0819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1901169a0819Smrgfi
1902169a0819Smrgeval ac_res=\$$3
1903169a0819Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1904169a0819Smrg$as_echo "$ac_res" >&6; }
1905169a0819Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906169a0819Smrg
1907169a0819Smrg} # ac_fn_c_check_type
1908169a0819Smrgcat >config.log <<_ACEOF
1909169a0819SmrgThis file contains any messages produced by compilers while
1910169a0819Smrgrunning configure, to aid debugging if configure makes a mistake.
1911169a0819Smrg
19123544ea2eSmrgIt was created by xhost $as_me 1.0.5, which was
1913169a0819Smrggenerated by GNU Autoconf 2.68.  Invocation command line was
1914169a0819Smrg
1915169a0819Smrg  $ $0 $@
1916169a0819Smrg
1917169a0819Smrg_ACEOF
1918169a0819Smrgexec 5>>config.log
1919169a0819Smrg{
1920169a0819Smrgcat <<_ASUNAME
1921169a0819Smrg## --------- ##
1922169a0819Smrg## Platform. ##
1923169a0819Smrg## --------- ##
1924169a0819Smrg
1925169a0819Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1926169a0819Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
1927169a0819Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
1928169a0819Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
1929169a0819Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
1930169a0819Smrg
1931169a0819Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1932169a0819Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1933169a0819Smrg
1934169a0819Smrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1935169a0819Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1936169a0819Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1937169a0819Smrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1938169a0819Smrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1939169a0819Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1940169a0819Smrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1941169a0819Smrg
1942169a0819Smrg_ASUNAME
1943169a0819Smrg
1944169a0819Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194564ce7165Smrgfor as_dir in $PATH
194664ce7165Smrgdo
194764ce7165Smrg  IFS=$as_save_IFS
194864ce7165Smrg  test -z "$as_dir" && as_dir=.
1949169a0819Smrg    $as_echo "PATH: $as_dir"
1950169a0819Smrg  done
195164ce7165SmrgIFS=$as_save_IFS
195264ce7165Smrg
195364ce7165Smrg} >&5
195464ce7165Smrg
195564ce7165Smrgcat >&5 <<_ACEOF
195664ce7165Smrg
195764ce7165Smrg
195864ce7165Smrg## ----------- ##
195964ce7165Smrg## Core tests. ##
196064ce7165Smrg## ----------- ##
196164ce7165Smrg
196264ce7165Smrg_ACEOF
196364ce7165Smrg
196464ce7165Smrg
196564ce7165Smrg# Keep a trace of the command line.
196664ce7165Smrg# Strip out --no-create and --no-recursion so they do not pile up.
196764ce7165Smrg# Strip out --silent because we don't want to record it for future runs.
196864ce7165Smrg# Also quote any args containing shell meta-characters.
196964ce7165Smrg# Make two passes to allow for proper duplicate-argument suppression.
197064ce7165Smrgac_configure_args=
197164ce7165Smrgac_configure_args0=
197264ce7165Smrgac_configure_args1=
197364ce7165Smrgac_must_keep_next=false
197464ce7165Smrgfor ac_pass in 1 2
197564ce7165Smrgdo
197664ce7165Smrg  for ac_arg
197764ce7165Smrg  do
197864ce7165Smrg    case $ac_arg in
197964ce7165Smrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
198064ce7165Smrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
198164ce7165Smrg    | -silent | --silent | --silen | --sile | --sil)
198264ce7165Smrg      continue ;;
198364ce7165Smrg    *\'*)
1984fb23d3a8Smrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
198564ce7165Smrg    esac
198664ce7165Smrg    case $ac_pass in
1987169a0819Smrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
198864ce7165Smrg    2)
1989169a0819Smrg      as_fn_append ac_configure_args1 " '$ac_arg'"
199064ce7165Smrg      if test $ac_must_keep_next = true; then
199164ce7165Smrg	ac_must_keep_next=false # Got value, back to normal.
199264ce7165Smrg      else
199364ce7165Smrg	case $ac_arg in
199464ce7165Smrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
199564ce7165Smrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
199664ce7165Smrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
199764ce7165Smrg	  | -with-* | --with-* | -without-* | --without-* | --x)
199864ce7165Smrg	    case "$ac_configure_args0 " in
199964ce7165Smrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
200064ce7165Smrg	    esac
200164ce7165Smrg	    ;;
200264ce7165Smrg	  -* ) ac_must_keep_next=true ;;
200364ce7165Smrg	esac
200464ce7165Smrg      fi
2005169a0819Smrg      as_fn_append ac_configure_args " '$ac_arg'"
200664ce7165Smrg      ;;
200764ce7165Smrg    esac
200864ce7165Smrg  done
200964ce7165Smrgdone
2010169a0819Smrg{ ac_configure_args0=; unset ac_configure_args0;}
2011169a0819Smrg{ ac_configure_args1=; unset ac_configure_args1;}
201264ce7165Smrg
201364ce7165Smrg# When interrupted or exit'd, cleanup temporary files, and complete
201464ce7165Smrg# config.log.  We remove comments because anyway the quotes in there
201564ce7165Smrg# would cause problems or look ugly.
201664ce7165Smrg# WARNING: Use '\'' to represent an apostrophe within the trap.
201764ce7165Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
201864ce7165Smrgtrap 'exit_status=$?
201964ce7165Smrg  # Save into config.log some information that might help in debugging.
202064ce7165Smrg  {
202164ce7165Smrg    echo
202264ce7165Smrg
2023169a0819Smrg    $as_echo "## ---------------- ##
202464ce7165Smrg## Cache variables. ##
2025169a0819Smrg## ---------------- ##"
202664ce7165Smrg    echo
202764ce7165Smrg    # The following way of writing the cache mishandles newlines in values,
202864ce7165Smrg(
202964ce7165Smrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
203064ce7165Smrg    eval ac_val=\$$ac_var
203164ce7165Smrg    case $ac_val in #(
203264ce7165Smrg    *${as_nl}*)
203364ce7165Smrg      case $ac_var in #(
2034169a0819Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2035fb23d3a8Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
203664ce7165Smrg      esac
203764ce7165Smrg      case $ac_var in #(
203864ce7165Smrg      _ | IFS | as_nl) ;; #(
2039fb23d3a8Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2040169a0819Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
204164ce7165Smrg      esac ;;
204264ce7165Smrg    esac
204364ce7165Smrg  done
204464ce7165Smrg  (set) 2>&1 |
204564ce7165Smrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
204664ce7165Smrg    *${as_nl}ac_space=\ *)
204764ce7165Smrg      sed -n \
204864ce7165Smrg	"s/'\''/'\''\\\\'\'''\''/g;
204964ce7165Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
205064ce7165Smrg      ;; #(
205164ce7165Smrg    *)
205264ce7165Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
205364ce7165Smrg      ;;
205464ce7165Smrg    esac |
205564ce7165Smrg    sort
205664ce7165Smrg)
205764ce7165Smrg    echo
205864ce7165Smrg
2059169a0819Smrg    $as_echo "## ----------------- ##
206064ce7165Smrg## Output variables. ##
2061169a0819Smrg## ----------------- ##"
206264ce7165Smrg    echo
206364ce7165Smrg    for ac_var in $ac_subst_vars
206464ce7165Smrg    do
206564ce7165Smrg      eval ac_val=\$$ac_var
206664ce7165Smrg      case $ac_val in
2067fb23d3a8Smrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
206864ce7165Smrg      esac
2069fb23d3a8Smrg      $as_echo "$ac_var='\''$ac_val'\''"
207064ce7165Smrg    done | sort
207164ce7165Smrg    echo
207264ce7165Smrg
207364ce7165Smrg    if test -n "$ac_subst_files"; then
2074169a0819Smrg      $as_echo "## ------------------- ##
207564ce7165Smrg## File substitutions. ##
2076169a0819Smrg## ------------------- ##"
207764ce7165Smrg      echo
207864ce7165Smrg      for ac_var in $ac_subst_files
207964ce7165Smrg      do
208064ce7165Smrg	eval ac_val=\$$ac_var
208164ce7165Smrg	case $ac_val in
2082fb23d3a8Smrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
208364ce7165Smrg	esac
2084fb23d3a8Smrg	$as_echo "$ac_var='\''$ac_val'\''"
208564ce7165Smrg      done | sort
208664ce7165Smrg      echo
208764ce7165Smrg    fi
208864ce7165Smrg
208964ce7165Smrg    if test -s confdefs.h; then
2090169a0819Smrg      $as_echo "## ----------- ##
209164ce7165Smrg## confdefs.h. ##
2092169a0819Smrg## ----------- ##"
209364ce7165Smrg      echo
209464ce7165Smrg      cat confdefs.h
209564ce7165Smrg      echo
209664ce7165Smrg    fi
209764ce7165Smrg    test "$ac_signal" != 0 &&
2098fb23d3a8Smrg      $as_echo "$as_me: caught signal $ac_signal"
2099fb23d3a8Smrg    $as_echo "$as_me: exit $exit_status"
210064ce7165Smrg  } >&5
210164ce7165Smrg  rm -f core *.core core.conftest.* &&
210264ce7165Smrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
210364ce7165Smrg    exit $exit_status
210464ce7165Smrg' 0
210564ce7165Smrgfor ac_signal in 1 2 13 15; do
2106169a0819Smrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
210764ce7165Smrgdone
210864ce7165Smrgac_signal=0
210964ce7165Smrg
211064ce7165Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
211164ce7165Smrgrm -f -r conftest* confdefs.h
211264ce7165Smrg
2113169a0819Smrg$as_echo "/* confdefs.h */" > confdefs.h
2114169a0819Smrg
211564ce7165Smrg# Predefined preprocessor variables.
211664ce7165Smrg
211764ce7165Smrgcat >>confdefs.h <<_ACEOF
211864ce7165Smrg#define PACKAGE_NAME "$PACKAGE_NAME"
211964ce7165Smrg_ACEOF
212064ce7165Smrg
212164ce7165Smrgcat >>confdefs.h <<_ACEOF
212264ce7165Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
212364ce7165Smrg_ACEOF
212464ce7165Smrg
212564ce7165Smrgcat >>confdefs.h <<_ACEOF
212664ce7165Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
212764ce7165Smrg_ACEOF
212864ce7165Smrg
212964ce7165Smrgcat >>confdefs.h <<_ACEOF
213064ce7165Smrg#define PACKAGE_STRING "$PACKAGE_STRING"
213164ce7165Smrg_ACEOF
213264ce7165Smrg
213364ce7165Smrgcat >>confdefs.h <<_ACEOF
213464ce7165Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
213564ce7165Smrg_ACEOF
213664ce7165Smrg
2137169a0819Smrgcat >>confdefs.h <<_ACEOF
2138169a0819Smrg#define PACKAGE_URL "$PACKAGE_URL"
2139169a0819Smrg_ACEOF
2140169a0819Smrg
214164ce7165Smrg
214264ce7165Smrg# Let the site file select an alternate cache file if it wants to.
2143fb23d3a8Smrg# Prefer an explicitly selected file to automatically selected ones.
2144fb23d3a8Smrgac_site_file1=NONE
2145fb23d3a8Smrgac_site_file2=NONE
214664ce7165Smrgif test -n "$CONFIG_SITE"; then
2147169a0819Smrg  # We do not want a PATH search for config.site.
2148169a0819Smrg  case $CONFIG_SITE in #((
2149169a0819Smrg    -*)  ac_site_file1=./$CONFIG_SITE;;
2150169a0819Smrg    */*) ac_site_file1=$CONFIG_SITE;;
2151169a0819Smrg    *)   ac_site_file1=./$CONFIG_SITE;;
2152169a0819Smrg  esac
215364ce7165Smrgelif test "x$prefix" != xNONE; then
2154fb23d3a8Smrg  ac_site_file1=$prefix/share/config.site
2155fb23d3a8Smrg  ac_site_file2=$prefix/etc/config.site
215664ce7165Smrgelse
2157fb23d3a8Smrg  ac_site_file1=$ac_default_prefix/share/config.site
2158fb23d3a8Smrg  ac_site_file2=$ac_default_prefix/etc/config.site
215964ce7165Smrgfi
2160fb23d3a8Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
216164ce7165Smrgdo
2162fb23d3a8Smrg  test "x$ac_site_file" = xNONE && continue
2163169a0819Smrg  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2164169a0819Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2165fb23d3a8Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
216664ce7165Smrg    sed 's/^/| /' "$ac_site_file" >&5
2167169a0819Smrg    . "$ac_site_file" \
2168169a0819Smrg      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2169169a0819Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2170169a0819Smrgas_fn_error $? "failed to load site script $ac_site_file
2171169a0819SmrgSee \`config.log' for more details" "$LINENO" 5; }
217264ce7165Smrg  fi
217364ce7165Smrgdone
217464ce7165Smrg
217564ce7165Smrgif test -r "$cache_file"; then
2176169a0819Smrg  # Some versions of bash will fail to source /dev/null (special files
2177169a0819Smrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2178169a0819Smrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2179169a0819Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2180fb23d3a8Smrg$as_echo "$as_me: loading cache $cache_file" >&6;}
218164ce7165Smrg    case $cache_file in
218264ce7165Smrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
218364ce7165Smrg      *)                      . "./$cache_file";;
218464ce7165Smrg    esac
218564ce7165Smrg  fi
218664ce7165Smrgelse
2187169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2188fb23d3a8Smrg$as_echo "$as_me: creating cache $cache_file" >&6;}
218964ce7165Smrg  >$cache_file
219064ce7165Smrgfi
219164ce7165Smrg
219264ce7165Smrg# Check that the precious variables saved in the cache have kept the same
219364ce7165Smrg# value.
219464ce7165Smrgac_cache_corrupted=false
219564ce7165Smrgfor ac_var in $ac_precious_vars; do
219664ce7165Smrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
219764ce7165Smrg  eval ac_new_set=\$ac_env_${ac_var}_set
219864ce7165Smrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
219964ce7165Smrg  eval ac_new_val=\$ac_env_${ac_var}_value
220064ce7165Smrg  case $ac_old_set,$ac_new_set in
220164ce7165Smrg    set,)
2202169a0819Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2203fb23d3a8Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
220464ce7165Smrg      ac_cache_corrupted=: ;;
220564ce7165Smrg    ,set)
2206169a0819Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2207fb23d3a8Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
220864ce7165Smrg      ac_cache_corrupted=: ;;
220964ce7165Smrg    ,);;
221064ce7165Smrg    *)
221164ce7165Smrg      if test "x$ac_old_val" != "x$ac_new_val"; then
2212fb23d3a8Smrg	# differences in whitespace do not lead to failure.
2213fb23d3a8Smrg	ac_old_val_w=`echo x $ac_old_val`
2214fb23d3a8Smrg	ac_new_val_w=`echo x $ac_new_val`
2215fb23d3a8Smrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2216169a0819Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2217fb23d3a8Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2218fb23d3a8Smrg	  ac_cache_corrupted=:
2219fb23d3a8Smrg	else
2220169a0819Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2221fb23d3a8Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2222fb23d3a8Smrg	  eval $ac_var=\$ac_old_val
2223fb23d3a8Smrg	fi
2224169a0819Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2225fb23d3a8Smrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2226169a0819Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2227fb23d3a8Smrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
222864ce7165Smrg      fi;;
222964ce7165Smrg  esac
223064ce7165Smrg  # Pass precious variables to config.status.
223164ce7165Smrg  if test "$ac_new_set" = set; then
223264ce7165Smrg    case $ac_new_val in
2233fb23d3a8Smrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
223464ce7165Smrg    *) ac_arg=$ac_var=$ac_new_val ;;
223564ce7165Smrg    esac
223664ce7165Smrg    case " $ac_configure_args " in
223764ce7165Smrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2238169a0819Smrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
223964ce7165Smrg    esac
224064ce7165Smrg  fi
224164ce7165Smrgdone
224264ce7165Smrgif $ac_cache_corrupted; then
2243169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2244fb23d3a8Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2245169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2246fb23d3a8Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2247169a0819Smrg  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
224864ce7165Smrgfi
2249169a0819Smrg## -------------------- ##
2250169a0819Smrg## Main body of script. ##
2251169a0819Smrg## -------------------- ##
225264ce7165Smrg
2253169a0819Smrgac_ext=c
2254169a0819Smrgac_cpp='$CPP $CPPFLAGS'
2255169a0819Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2256169a0819Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2257169a0819Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
225864ce7165Smrg
225964ce7165Smrg
22603544ea2eSmrg
22613544ea2eSmrgac_config_headers="$ac_config_headers config.h"
22623544ea2eSmrg
22633544ea2eSmrg
22643544ea2eSmrg# Initialize Automake
2265169a0819Smrgam__api_version='1.11'
226664ce7165Smrg
226764ce7165Smrgac_aux_dir=
226864ce7165Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
226964ce7165Smrg  if test -f "$ac_dir/install-sh"; then
227064ce7165Smrg    ac_aux_dir=$ac_dir
227164ce7165Smrg    ac_install_sh="$ac_aux_dir/install-sh -c"
227264ce7165Smrg    break
227364ce7165Smrg  elif test -f "$ac_dir/install.sh"; then
227464ce7165Smrg    ac_aux_dir=$ac_dir
227564ce7165Smrg    ac_install_sh="$ac_aux_dir/install.sh -c"
227664ce7165Smrg    break
227764ce7165Smrg  elif test -f "$ac_dir/shtool"; then
227864ce7165Smrg    ac_aux_dir=$ac_dir
227964ce7165Smrg    ac_install_sh="$ac_aux_dir/shtool install -c"
228064ce7165Smrg    break
228164ce7165Smrg  fi
228264ce7165Smrgdone
228364ce7165Smrgif test -z "$ac_aux_dir"; then
2284169a0819Smrg  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
228564ce7165Smrgfi
228664ce7165Smrg
228764ce7165Smrg# These three variables are undocumented and unsupported,
228864ce7165Smrg# and are intended to be withdrawn in a future Autoconf release.
228964ce7165Smrg# They can cause serious problems if a builder's source tree is in a directory
229064ce7165Smrg# whose full name contains unusual characters.
229164ce7165Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
229264ce7165Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
229364ce7165Smrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
229464ce7165Smrg
229564ce7165Smrg
229664ce7165Smrg# Find a good install program.  We prefer a C program (faster),
229764ce7165Smrg# so one script is as good as another.  But avoid the broken or
229864ce7165Smrg# incompatible versions:
229964ce7165Smrg# SysV /etc/install, /usr/sbin/install
230064ce7165Smrg# SunOS /usr/etc/install
230164ce7165Smrg# IRIX /sbin/install
230264ce7165Smrg# AIX /bin/install
230364ce7165Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
230464ce7165Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
230564ce7165Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
230664ce7165Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
230764ce7165Smrg# OS/2's system install, which has a completely different semantic
230864ce7165Smrg# ./install, which can be erroneously created by make from ./install.sh.
2309fb23d3a8Smrg# Reject install programs that cannot install multiple files.
2310169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2311fb23d3a8Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
231264ce7165Smrgif test -z "$INSTALL"; then
2313169a0819Smrgif ${ac_cv_path_install+:} false; then :
2314fb23d3a8Smrg  $as_echo_n "(cached) " >&6
231564ce7165Smrgelse
231664ce7165Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
231764ce7165Smrgfor as_dir in $PATH
231864ce7165Smrgdo
231964ce7165Smrg  IFS=$as_save_IFS
232064ce7165Smrg  test -z "$as_dir" && as_dir=.
2321169a0819Smrg    # Account for people who put trailing slashes in PATH elements.
2322169a0819Smrgcase $as_dir/ in #((
2323169a0819Smrg  ./ | .// | /[cC]/* | \
232464ce7165Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2325169a0819Smrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
232664ce7165Smrg  /usr/ucb/* ) ;;
232764ce7165Smrg  *)
232864ce7165Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
232964ce7165Smrg    # Don't use installbsd from OSF since it installs stuff as root
233064ce7165Smrg    # by default.
233164ce7165Smrg    for ac_prog in ginstall scoinst install; do
233264ce7165Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
233364ce7165Smrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
233464ce7165Smrg	  if test $ac_prog = install &&
233564ce7165Smrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
233664ce7165Smrg	    # AIX install.  It has an incompatible calling convention.
233764ce7165Smrg	    :
233864ce7165Smrg	  elif test $ac_prog = install &&
233964ce7165Smrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
234064ce7165Smrg	    # program-specific install script used by HP pwplus--don't use.
234164ce7165Smrg	    :
234264ce7165Smrg	  else
2343fb23d3a8Smrg	    rm -rf conftest.one conftest.two conftest.dir
2344fb23d3a8Smrg	    echo one > conftest.one
2345fb23d3a8Smrg	    echo two > conftest.two
2346fb23d3a8Smrg	    mkdir conftest.dir
2347fb23d3a8Smrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2348fb23d3a8Smrg	      test -s conftest.one && test -s conftest.two &&
2349fb23d3a8Smrg	      test -s conftest.dir/conftest.one &&
2350fb23d3a8Smrg	      test -s conftest.dir/conftest.two
2351fb23d3a8Smrg	    then
2352fb23d3a8Smrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2353fb23d3a8Smrg	      break 3
2354fb23d3a8Smrg	    fi
235564ce7165Smrg	  fi
235664ce7165Smrg	fi
235764ce7165Smrg      done
235864ce7165Smrg    done
235964ce7165Smrg    ;;
236064ce7165Smrgesac
2361fb23d3a8Smrg
2362169a0819Smrg  done
236364ce7165SmrgIFS=$as_save_IFS
236464ce7165Smrg
2365fb23d3a8Smrgrm -rf conftest.one conftest.two conftest.dir
236664ce7165Smrg
236764ce7165Smrgfi
236864ce7165Smrg  if test "${ac_cv_path_install+set}" = set; then
236964ce7165Smrg    INSTALL=$ac_cv_path_install
237064ce7165Smrg  else
237164ce7165Smrg    # As a last resort, use the slow shell script.  Don't cache a
237264ce7165Smrg    # value for INSTALL within a source directory, because that will
237364ce7165Smrg    # break other packages using the cache if that directory is
237464ce7165Smrg    # removed, or if the value is a relative name.
237564ce7165Smrg    INSTALL=$ac_install_sh
237664ce7165Smrg  fi
237764ce7165Smrgfi
2378169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2379fb23d3a8Smrg$as_echo "$INSTALL" >&6; }
238064ce7165Smrg
238164ce7165Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
238264ce7165Smrg# It thinks the first close brace ends the variable substitution.
238364ce7165Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
238464ce7165Smrg
238564ce7165Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
238664ce7165Smrg
238764ce7165Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
238864ce7165Smrg
2389169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2390fb23d3a8Smrg$as_echo_n "checking whether build environment is sane... " >&6; }
239164ce7165Smrg# Just in case
239264ce7165Smrgsleep 1
239364ce7165Smrgecho timestamp > conftest.file
2394fb23d3a8Smrg# Reject unsafe characters in $srcdir or the absolute working directory
2395fb23d3a8Smrg# name.  Accept space and tab only in the latter.
2396fb23d3a8Smrgam_lf='
2397fb23d3a8Smrg'
2398fb23d3a8Smrgcase `pwd` in
2399fb23d3a8Smrg  *[\\\"\#\$\&\'\`$am_lf]*)
2400169a0819Smrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2401fb23d3a8Smrgesac
2402fb23d3a8Smrgcase $srcdir in
2403fb23d3a8Smrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2404169a0819Smrg    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2405fb23d3a8Smrgesac
2406fb23d3a8Smrg
240764ce7165Smrg# Do `set' in a subshell so we don't clobber the current shell's
240864ce7165Smrg# arguments.  Must try -L first in case configure is actually a
240964ce7165Smrg# symlink; some systems play weird games with the mod time of symlinks
241064ce7165Smrg# (eg FreeBSD returns the mod time of the symlink's containing
241164ce7165Smrg# directory).
241264ce7165Smrgif (
2413fb23d3a8Smrg   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
241464ce7165Smrg   if test "$*" = "X"; then
241564ce7165Smrg      # -L didn't work.
2416fb23d3a8Smrg      set X `ls -t "$srcdir/configure" conftest.file`
241764ce7165Smrg   fi
241864ce7165Smrg   rm -f conftest.file
241964ce7165Smrg   if test "$*" != "X $srcdir/configure conftest.file" \
242064ce7165Smrg      && test "$*" != "X conftest.file $srcdir/configure"; then
242164ce7165Smrg
242264ce7165Smrg      # If neither matched, then we have a broken ls.  This can happen
242364ce7165Smrg      # if, for instance, CONFIG_SHELL is bash and it inherits a
242464ce7165Smrg      # broken ls alias from the environment.  This has actually
242564ce7165Smrg      # happened.  Such a system could not be considered "sane".
2426169a0819Smrg      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2427169a0819Smrgalias in your environment" "$LINENO" 5
242864ce7165Smrg   fi
242964ce7165Smrg
243064ce7165Smrg   test "$2" = conftest.file
243164ce7165Smrg   )
243264ce7165Smrgthen
243364ce7165Smrg   # Ok.
243464ce7165Smrg   :
243564ce7165Smrgelse
2436169a0819Smrg   as_fn_error $? "newly created file is older than distributed files!
2437169a0819SmrgCheck your system clock" "$LINENO" 5
243864ce7165Smrgfi
2439169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2440fb23d3a8Smrg$as_echo "yes" >&6; }
244164ce7165Smrgtest "$program_prefix" != NONE &&
244264ce7165Smrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
244364ce7165Smrg# Use a double $ so make ignores it.
244464ce7165Smrgtest "$program_suffix" != NONE &&
244564ce7165Smrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2446fb23d3a8Smrg# Double any \ or $.
244764ce7165Smrg# By default was `s,x,x', remove it if useless.
2448fb23d3a8Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2449fb23d3a8Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
245064ce7165Smrg
245164ce7165Smrg# expand $ac_aux_dir to an absolute path
245264ce7165Smrgam_aux_dir=`cd $ac_aux_dir && pwd`
245364ce7165Smrg
2454fb23d3a8Smrgif test x"${MISSING+set}" != xset; then
2455fb23d3a8Smrg  case $am_aux_dir in
2456fb23d3a8Smrg  *\ * | *\	*)
2457fb23d3a8Smrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2458fb23d3a8Smrg  *)
2459fb23d3a8Smrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2460fb23d3a8Smrg  esac
2461fb23d3a8Smrgfi
246264ce7165Smrg# Use eval to expand $SHELL
246364ce7165Smrgif eval "$MISSING --run true"; then
246464ce7165Smrg  am_missing_run="$MISSING --run "
246564ce7165Smrgelse
246664ce7165Smrg  am_missing_run=
2467169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2468fb23d3a8Smrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
246964ce7165Smrgfi
247064ce7165Smrg
2471fb23d3a8Smrgif test x"${install_sh}" != xset; then
2472fb23d3a8Smrg  case $am_aux_dir in
2473fb23d3a8Smrg  *\ * | *\	*)
2474fb23d3a8Smrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2475fb23d3a8Smrg  *)
2476fb23d3a8Smrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
2477fb23d3a8Smrg  esac
2478fb23d3a8Smrgfi
2479fb23d3a8Smrg
2480fb23d3a8Smrg# Installed binaries are usually stripped using `strip' when the user
2481fb23d3a8Smrg# run `make install-strip'.  However `strip' might not be the right
2482fb23d3a8Smrg# tool to use in cross-compilation environments, therefore Automake
2483fb23d3a8Smrg# will honor the `STRIP' environment variable to overrule this program.
2484fb23d3a8Smrgif test "$cross_compiling" != no; then
2485fb23d3a8Smrg  if test -n "$ac_tool_prefix"; then
2486fb23d3a8Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2487fb23d3a8Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
2488169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2489fb23d3a8Smrg$as_echo_n "checking for $ac_word... " >&6; }
2490169a0819Smrgif ${ac_cv_prog_STRIP+:} false; then :
2491fb23d3a8Smrg  $as_echo_n "(cached) " >&6
2492fb23d3a8Smrgelse
2493fb23d3a8Smrg  if test -n "$STRIP"; then
2494fb23d3a8Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2495fb23d3a8Smrgelse
2496fb23d3a8Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497fb23d3a8Smrgfor as_dir in $PATH
2498fb23d3a8Smrgdo
2499fb23d3a8Smrg  IFS=$as_save_IFS
2500fb23d3a8Smrg  test -z "$as_dir" && as_dir=.
2501169a0819Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2502fb23d3a8Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2503fb23d3a8Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2504169a0819Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2505fb23d3a8Smrg    break 2
2506fb23d3a8Smrg  fi
2507fb23d3a8Smrgdone
2508169a0819Smrg  done
2509fb23d3a8SmrgIFS=$as_save_IFS
2510fb23d3a8Smrg
2511fb23d3a8Smrgfi
2512fb23d3a8Smrgfi
2513fb23d3a8SmrgSTRIP=$ac_cv_prog_STRIP
2514fb23d3a8Smrgif test -n "$STRIP"; then
2515169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2516fb23d3a8Smrg$as_echo "$STRIP" >&6; }
2517fb23d3a8Smrgelse
2518169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2519fb23d3a8Smrg$as_echo "no" >&6; }
2520fb23d3a8Smrgfi
2521fb23d3a8Smrg
2522fb23d3a8Smrg
2523fb23d3a8Smrgfi
2524fb23d3a8Smrgif test -z "$ac_cv_prog_STRIP"; then
2525fb23d3a8Smrg  ac_ct_STRIP=$STRIP
2526fb23d3a8Smrg  # Extract the first word of "strip", so it can be a program name with args.
2527fb23d3a8Smrgset dummy strip; ac_word=$2
2528169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2529fb23d3a8Smrg$as_echo_n "checking for $ac_word... " >&6; }
2530169a0819Smrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2531fb23d3a8Smrg  $as_echo_n "(cached) " >&6
2532fb23d3a8Smrgelse
2533fb23d3a8Smrg  if test -n "$ac_ct_STRIP"; then
2534fb23d3a8Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2535fb23d3a8Smrgelse
2536fb23d3a8Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537fb23d3a8Smrgfor as_dir in $PATH
2538fb23d3a8Smrgdo
2539fb23d3a8Smrg  IFS=$as_save_IFS
2540fb23d3a8Smrg  test -z "$as_dir" && as_dir=.
2541169a0819Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2542fb23d3a8Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2543fb23d3a8Smrg    ac_cv_prog_ac_ct_STRIP="strip"
2544169a0819Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2545fb23d3a8Smrg    break 2
2546fb23d3a8Smrg  fi
2547fb23d3a8Smrgdone
2548169a0819Smrg  done
2549fb23d3a8SmrgIFS=$as_save_IFS
2550fb23d3a8Smrg
2551fb23d3a8Smrgfi
2552fb23d3a8Smrgfi
2553fb23d3a8Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2554fb23d3a8Smrgif test -n "$ac_ct_STRIP"; then
2555169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2556fb23d3a8Smrg$as_echo "$ac_ct_STRIP" >&6; }
2557fb23d3a8Smrgelse
2558169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2559fb23d3a8Smrg$as_echo "no" >&6; }
2560fb23d3a8Smrgfi
2561fb23d3a8Smrg
2562fb23d3a8Smrg  if test "x$ac_ct_STRIP" = x; then
2563fb23d3a8Smrg    STRIP=":"
2564fb23d3a8Smrg  else
2565fb23d3a8Smrg    case $cross_compiling:$ac_tool_warned in
2566fb23d3a8Smrgyes:)
2567169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2568fb23d3a8Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2569fb23d3a8Smrgac_tool_warned=yes ;;
2570fb23d3a8Smrgesac
2571fb23d3a8Smrg    STRIP=$ac_ct_STRIP
2572fb23d3a8Smrg  fi
2573fb23d3a8Smrgelse
2574fb23d3a8Smrg  STRIP="$ac_cv_prog_STRIP"
2575fb23d3a8Smrgfi
2576fb23d3a8Smrg
2577fb23d3a8Smrgfi
2578fb23d3a8SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2579fb23d3a8Smrg
2580169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2581fb23d3a8Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2582fb23d3a8Smrgif test -z "$MKDIR_P"; then
2583169a0819Smrg  if ${ac_cv_path_mkdir+:} false; then :
2584fb23d3a8Smrg  $as_echo_n "(cached) " >&6
2585fb23d3a8Smrgelse
258664ce7165Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
258764ce7165Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
258864ce7165Smrgdo
258964ce7165Smrg  IFS=$as_save_IFS
259064ce7165Smrg  test -z "$as_dir" && as_dir=.
2591169a0819Smrg    for ac_prog in mkdir gmkdir; do
259264ce7165Smrg	 for ac_exec_ext in '' $ac_executable_extensions; do
259364ce7165Smrg	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
259464ce7165Smrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
259564ce7165Smrg	     'mkdir (GNU coreutils) '* | \
259664ce7165Smrg	     'mkdir (coreutils) '* | \
259764ce7165Smrg	     'mkdir (fileutils) '4.1*)
259864ce7165Smrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
259964ce7165Smrg	       break 3;;
260064ce7165Smrg	   esac
260164ce7165Smrg	 done
260264ce7165Smrg       done
2603169a0819Smrg  done
260464ce7165SmrgIFS=$as_save_IFS
260564ce7165Smrg
260664ce7165Smrgfi
260764ce7165Smrg
2608169a0819Smrg  test -d ./--version && rmdir ./--version
260964ce7165Smrg  if test "${ac_cv_path_mkdir+set}" = set; then
261064ce7165Smrg    MKDIR_P="$ac_cv_path_mkdir -p"
261164ce7165Smrg  else
261264ce7165Smrg    # As a last resort, use the slow shell script.  Don't cache a
261364ce7165Smrg    # value for MKDIR_P within a source directory, because that will
261464ce7165Smrg    # break other packages using the cache if that directory is
261564ce7165Smrg    # removed, or if the value is a relative name.
261664ce7165Smrg    MKDIR_P="$ac_install_sh -d"
261764ce7165Smrg  fi
261864ce7165Smrgfi
2619169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2620fb23d3a8Smrg$as_echo "$MKDIR_P" >&6; }
262164ce7165Smrg
262264ce7165Smrgmkdir_p="$MKDIR_P"
262364ce7165Smrgcase $mkdir_p in
262464ce7165Smrg  [\\/$]* | ?:[\\/]*) ;;
262564ce7165Smrg  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
262664ce7165Smrgesac
262764ce7165Smrg
262864ce7165Smrgfor ac_prog in gawk mawk nawk awk
262964ce7165Smrgdo
263064ce7165Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
263164ce7165Smrgset dummy $ac_prog; ac_word=$2
2632169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2633fb23d3a8Smrg$as_echo_n "checking for $ac_word... " >&6; }
2634169a0819Smrgif ${ac_cv_prog_AWK+:} false; then :
2635fb23d3a8Smrg  $as_echo_n "(cached) " >&6
263664ce7165Smrgelse
263764ce7165Smrg  if test -n "$AWK"; then
263864ce7165Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
263964ce7165Smrgelse
264064ce7165Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
264164ce7165Smrgfor as_dir in $PATH
264264ce7165Smrgdo
264364ce7165Smrg  IFS=$as_save_IFS
264464ce7165Smrg  test -z "$as_dir" && as_dir=.
2645169a0819Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
264664ce7165Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
264764ce7165Smrg    ac_cv_prog_AWK="$ac_prog"
2648169a0819Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
264964ce7165Smrg    break 2
265064ce7165Smrg  fi
265164ce7165Smrgdone
2652169a0819Smrg  done
265364ce7165SmrgIFS=$as_save_IFS
265464ce7165Smrg
265564ce7165Smrgfi
265664ce7165Smrgfi
265764ce7165SmrgAWK=$ac_cv_prog_AWK
265864ce7165Smrgif test -n "$AWK"; then
2659169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2660fb23d3a8Smrg$as_echo "$AWK" >&6; }
266164ce7165Smrgelse
2662169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2663fb23d3a8Smrg$as_echo "no" >&6; }
266464ce7165Smrgfi
266564ce7165Smrg
266664ce7165Smrg
266764ce7165Smrg  test -n "$AWK" && break
266864ce7165Smrgdone
266964ce7165Smrg
2670169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2671fb23d3a8Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2672fb23d3a8Smrgset x ${MAKE-make}
2673fb23d3a8Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2674169a0819Smrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2675fb23d3a8Smrg  $as_echo_n "(cached) " >&6
267664ce7165Smrgelse
267764ce7165Smrg  cat >conftest.make <<\_ACEOF
267864ce7165SmrgSHELL = /bin/sh
267964ce7165Smrgall:
268064ce7165Smrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
268164ce7165Smrg_ACEOF
2682169a0819Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
268364ce7165Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
268464ce7165Smrg  *@@@%%%=?*=@@@%%%*)
268564ce7165Smrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
268664ce7165Smrg  *)
268764ce7165Smrg    eval ac_cv_prog_make_${ac_make}_set=no;;
268864ce7165Smrgesac
268964ce7165Smrgrm -f conftest.make
269064ce7165Smrgfi
269164ce7165Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2692169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2693fb23d3a8Smrg$as_echo "yes" >&6; }
269464ce7165Smrg  SET_MAKE=
269564ce7165Smrgelse
2696169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2697fb23d3a8Smrg$as_echo "no" >&6; }
269864ce7165Smrg  SET_MAKE="MAKE=${MAKE-make}"
269964ce7165Smrgfi
270064ce7165Smrg
270164ce7165Smrgrm -rf .tst 2>/dev/null
270264ce7165Smrgmkdir .tst 2>/dev/null
270364ce7165Smrgif test -d .tst; then
270464ce7165Smrg  am__leading_dot=.
270564ce7165Smrgelse
270664ce7165Smrg  am__leading_dot=_
270764ce7165Smrgfi
270864ce7165Smrgrmdir .tst 2>/dev/null
270964ce7165Smrg
271064ce7165Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
271164ce7165Smrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
271264ce7165Smrg  # is not polluted with repeated "-I."
271364ce7165Smrg  am__isrc=' -I$(srcdir)'
271464ce7165Smrg  # test to see if srcdir already configured
271564ce7165Smrg  if test -f $srcdir/config.status; then
2716169a0819Smrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
271764ce7165Smrg  fi
271864ce7165Smrgfi
271964ce7165Smrg
272064ce7165Smrg# test whether we have cygpath
272164ce7165Smrgif test -z "$CYGPATH_W"; then
272264ce7165Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
272364ce7165Smrg    CYGPATH_W='cygpath -w'
272464ce7165Smrg  else
272564ce7165Smrg    CYGPATH_W=echo
272664ce7165Smrg  fi
272764ce7165Smrgfi
272864ce7165Smrg
272964ce7165Smrg
273064ce7165Smrg# Define the identity of the package.
273164ce7165Smrg PACKAGE='xhost'
27323544ea2eSmrg VERSION='1.0.5'
273364ce7165Smrg
273464ce7165Smrg
273564ce7165Smrgcat >>confdefs.h <<_ACEOF
273664ce7165Smrg#define PACKAGE "$PACKAGE"
273764ce7165Smrg_ACEOF
273864ce7165Smrg
273964ce7165Smrg
274064ce7165Smrgcat >>confdefs.h <<_ACEOF
274164ce7165Smrg#define VERSION "$VERSION"
274264ce7165Smrg_ACEOF
274364ce7165Smrg
274464ce7165Smrg# Some tools Automake needs.
274564ce7165Smrg
274664ce7165SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
274764ce7165Smrg
274864ce7165Smrg
274964ce7165SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
275064ce7165Smrg
275164ce7165Smrg
275264ce7165SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
275364ce7165Smrg
275464ce7165Smrg
275564ce7165SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
275664ce7165Smrg
275764ce7165Smrg
275864ce7165SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
275964ce7165Smrg
276064ce7165Smrg# We need awk for the "check" target.  The system "awk" is bad on
276164ce7165Smrg# some platforms.
276264ce7165Smrg# Always define AMTAR for backward compatibility.
276364ce7165Smrg
276464ce7165SmrgAMTAR=${AMTAR-"${am_missing_run}tar"}
276564ce7165Smrg
276664ce7165Smrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
276764ce7165Smrg
276864ce7165Smrg
276964ce7165Smrg
277064ce7165Smrg
277164ce7165Smrg
2772fb23d3a8Smrg
2773169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2774fb23d3a8Smrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
277564ce7165Smrg    # Check whether --enable-maintainer-mode was given.
2776169a0819Smrgif test "${enable_maintainer_mode+set}" = set; then :
277764ce7165Smrg  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
277864ce7165Smrgelse
277964ce7165Smrg  USE_MAINTAINER_MODE=no
278064ce7165Smrgfi
278164ce7165Smrg
2782169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2783fb23d3a8Smrg$as_echo "$USE_MAINTAINER_MODE" >&6; }
278464ce7165Smrg   if test $USE_MAINTAINER_MODE = yes; then
278564ce7165Smrg  MAINTAINER_MODE_TRUE=
278664ce7165Smrg  MAINTAINER_MODE_FALSE='#'
278764ce7165Smrgelse
278864ce7165Smrg  MAINTAINER_MODE_TRUE='#'
278964ce7165Smrg  MAINTAINER_MODE_FALSE=
279064ce7165Smrgfi
279164ce7165Smrg
279264ce7165Smrg  MAINT=$MAINTAINER_MODE_TRUE
279364ce7165Smrg
279464ce7165Smrg
279564ce7165Smrg
2796169a0819Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2797fb23d3a8Smrg
2798fb23d3a8Smrg
2799fb23d3a8Smrg
2800fb23d3a8Smrg
2801fb23d3a8Smrg
2802fb23d3a8Smrg
2803fb23d3a8Smrg
2804fb23d3a8Smrg
2805fb23d3a8Smrg
2806fb23d3a8Smrg
2807fb23d3a8Smrg
2808169a0819SmrgDEPDIR="${am__leading_dot}deps"
2809169a0819Smrg
2810169a0819Smrgac_config_commands="$ac_config_commands depfiles"
2811169a0819Smrg
2812169a0819Smrg
2813169a0819Smrgam_make=${MAKE-make}
2814169a0819Smrgcat > confinc << 'END'
2815169a0819Smrgam__doit:
2816169a0819Smrg	@echo this is the am__doit target
2817169a0819Smrg.PHONY: am__doit
2818169a0819SmrgEND
2819169a0819Smrg# If we don't find an include directive, just comment out the code.
2820169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2821169a0819Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
2822169a0819Smrgam__include="#"
2823169a0819Smrgam__quote=
2824169a0819Smrg_am_result=none
2825169a0819Smrg# First try GNU make style include.
2826169a0819Smrgecho "include confinc" > confmf
2827169a0819Smrg# Ignore all kinds of additional output from `make'.
2828169a0819Smrgcase `$am_make -s -f confmf 2> /dev/null` in #(
2829169a0819Smrg*the\ am__doit\ target*)
2830169a0819Smrg  am__include=include
2831169a0819Smrg  am__quote=
2832169a0819Smrg  _am_result=GNU
2833169a0819Smrg  ;;
2834169a0819Smrgesac
2835169a0819Smrg# Now try BSD make style include.
2836169a0819Smrgif test "$am__include" = "#"; then
2837169a0819Smrg   echo '.include "confinc"' > confmf
2838169a0819Smrg   case `$am_make -s -f confmf 2> /dev/null` in #(
2839169a0819Smrg   *the\ am__doit\ target*)
2840169a0819Smrg     am__include=.include
2841169a0819Smrg     am__quote="\""
2842169a0819Smrg     _am_result=BSD
2843169a0819Smrg     ;;
2844169a0819Smrg   esac
2845169a0819Smrgfi
2846169a0819Smrg
2847169a0819Smrg
2848169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2849169a0819Smrg$as_echo "$_am_result" >&6; }
2850169a0819Smrgrm -f confinc confmf
2851169a0819Smrg
2852169a0819Smrg# Check whether --enable-dependency-tracking was given.
2853169a0819Smrgif test "${enable_dependency_tracking+set}" = set; then :
2854169a0819Smrg  enableval=$enable_dependency_tracking;
2855169a0819Smrgfi
2856169a0819Smrg
2857169a0819Smrgif test "x$enable_dependency_tracking" != xno; then
2858169a0819Smrg  am_depcomp="$ac_aux_dir/depcomp"
2859169a0819Smrg  AMDEPBACKSLASH='\'
2860169a0819Smrgfi
2861169a0819Smrg if test "x$enable_dependency_tracking" != xno; then
2862169a0819Smrg  AMDEP_TRUE=
2863169a0819Smrg  AMDEP_FALSE='#'
2864169a0819Smrgelse
2865169a0819Smrg  AMDEP_TRUE='#'
2866169a0819Smrg  AMDEP_FALSE=
2867169a0819Smrgfi
2868169a0819Smrg
2869169a0819Smrg
287064ce7165Smrgac_ext=c
287164ce7165Smrgac_cpp='$CPP $CPPFLAGS'
287264ce7165Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
287364ce7165Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
287464ce7165Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
287564ce7165Smrgif test -n "$ac_tool_prefix"; then
287664ce7165Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
287764ce7165Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
2878169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2879fb23d3a8Smrg$as_echo_n "checking for $ac_word... " >&6; }
2880169a0819Smrgif ${ac_cv_prog_CC+:} false; then :
2881fb23d3a8Smrg  $as_echo_n "(cached) " >&6
288264ce7165Smrgelse
288364ce7165Smrg  if test -n "$CC"; then
288464ce7165Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
288564ce7165Smrgelse
288664ce7165Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
288764ce7165Smrgfor as_dir in $PATH
288864ce7165Smrgdo
288964ce7165Smrg  IFS=$as_save_IFS
289064ce7165Smrg  test -z "$as_dir" && as_dir=.
2891169a0819Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
289264ce7165Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
289364ce7165Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2894169a0819Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
289564ce7165Smrg    break 2
289664ce7165Smrg  fi
289764ce7165Smrgdone
2898169a0819Smrg  done
289964ce7165SmrgIFS=$as_save_IFS
290064ce7165Smrg
290164ce7165Smrgfi
290264ce7165Smrgfi
290364ce7165SmrgCC=$ac_cv_prog_CC
290464ce7165Smrgif test -n "$CC"; then
2905169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2906fb23d3a8Smrg$as_echo "$CC" >&6; }
290764ce7165Smrgelse
2908169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2909fb23d3a8Smrg$as_echo "no" >&6; }
291064ce7165Smrgfi
291164ce7165Smrg
291264ce7165Smrg
291364ce7165Smrgfi
291464ce7165Smrgif test -z "$ac_cv_prog_CC"; then
291564ce7165Smrg  ac_ct_CC=$CC
291664ce7165Smrg  # Extract the first word of "gcc", so it can be a program name with args.
291764ce7165Smrgset dummy gcc; ac_word=$2
2918169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2919fb23d3a8Smrg$as_echo_n "checking for $ac_word... " >&6; }
2920169a0819Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
2921fb23d3a8Smrg  $as_echo_n "(cached) " >&6
292264ce7165Smrgelse
292364ce7165Smrg  if test -n "$ac_ct_CC"; then
292464ce7165Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
292564ce7165Smrgelse
292664ce7165Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
292764ce7165Smrgfor as_dir in $PATH
292864ce7165Smrgdo
292964ce7165Smrg  IFS=$as_save_IFS
293064ce7165Smrg  test -z "$as_dir" && as_dir=.
2931169a0819Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
293264ce7165Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
293364ce7165Smrg    ac_cv_prog_ac_ct_CC="gcc"
2934169a0819Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
293564ce7165Smrg    break 2
293664ce7165Smrg  fi
293764ce7165Smrgdone
2938169a0819Smrg  done
293964ce7165SmrgIFS=$as_save_IFS
294064ce7165Smrg
294164ce7165Smrgfi
294264ce7165Smrgfi
294364ce7165Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
294464ce7165Smrgif test -n "$ac_ct_CC"; then
2945169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2946fb23d3a8Smrg$as_echo "$ac_ct_CC" >&6; }
294764ce7165Smrgelse
2948169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2949fb23d3a8Smrg$as_echo "no" >&6; }
295064ce7165Smrgfi
295164ce7165Smrg
295264ce7165Smrg  if test "x$ac_ct_CC" = x; then
295364ce7165Smrg    CC=""
295464ce7165Smrg  else
295564ce7165Smrg    case $cross_compiling:$ac_tool_warned in
295664ce7165Smrgyes:)
2957169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2958fb23d3a8Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
295964ce7165Smrgac_tool_warned=yes ;;
296064ce7165Smrgesac
296164ce7165Smrg    CC=$ac_ct_CC
296264ce7165Smrg  fi
296364ce7165Smrgelse
296464ce7165Smrg  CC="$ac_cv_prog_CC"
296564ce7165Smrgfi
296664ce7165Smrg
296764ce7165Smrgif test -z "$CC"; then
296864ce7165Smrg          if test -n "$ac_tool_prefix"; then
296964ce7165Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
297064ce7165Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
2971169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2972fb23d3a8Smrg$as_echo_n "checking for $ac_word... " >&6; }
2973169a0819Smrgif ${ac_cv_prog_CC+:} false; then :
2974fb23d3a8Smrg  $as_echo_n "(cached) " >&6
297564ce7165Smrgelse
297664ce7165Smrg  if test -n "$CC"; then
297764ce7165Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
297864ce7165Smrgelse
297964ce7165Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
298064ce7165Smrgfor as_dir in $PATH
298164ce7165Smrgdo
298264ce7165Smrg  IFS=$as_save_IFS
298364ce7165Smrg  test -z "$as_dir" && as_dir=.
2984169a0819Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
298564ce7165Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
298664ce7165Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
2987169a0819Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
298864ce7165Smrg    break 2
298964ce7165Smrg  fi
299064ce7165Smrgdone
2991169a0819Smrg  done
299264ce7165SmrgIFS=$as_save_IFS
299364ce7165Smrg
299464ce7165Smrgfi
299564ce7165Smrgfi
299664ce7165SmrgCC=$ac_cv_prog_CC
299764ce7165Smrgif test -n "$CC"; then
2998169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2999fb23d3a8Smrg$as_echo "$CC" >&6; }
300064ce7165Smrgelse
3001169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3002fb23d3a8Smrg$as_echo "no" >&6; }
300364ce7165Smrgfi
300464ce7165Smrg
300564ce7165Smrg
300664ce7165Smrg  fi
300764ce7165Smrgfi
300864ce7165Smrgif test -z "$CC"; then
300964ce7165Smrg  # Extract the first word of "cc", so it can be a program name with args.
301064ce7165Smrgset dummy cc; ac_word=$2
3011169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3012fb23d3a8Smrg$as_echo_n "checking for $ac_word... " >&6; }
3013169a0819Smrgif ${ac_cv_prog_CC+:} false; then :
3014fb23d3a8Smrg  $as_echo_n "(cached) " >&6
301564ce7165Smrgelse
301664ce7165Smrg  if test -n "$CC"; then
301764ce7165Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
301864ce7165Smrgelse
301964ce7165Smrg  ac_prog_rejected=no
302064ce7165Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
302164ce7165Smrgfor as_dir in $PATH
302264ce7165Smrgdo
302364ce7165Smrg  IFS=$as_save_IFS
302464ce7165Smrg  test -z "$as_dir" && as_dir=.
3025169a0819Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
302664ce7165Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
302764ce7165Smrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
302864ce7165Smrg       ac_prog_rejected=yes
302964ce7165Smrg       continue
303064ce7165Smrg     fi
303164ce7165Smrg    ac_cv_prog_CC="cc"
3032169a0819Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
303364ce7165Smrg    break 2
303464ce7165Smrg  fi
303564ce7165Smrgdone
3036169a0819Smrg  done
303764ce7165SmrgIFS=$as_save_IFS
303864ce7165Smrg
303964ce7165Smrgif test $ac_prog_rejected = yes; then
304064ce7165Smrg  # We found a bogon in the path, so make sure we never use it.
304164ce7165Smrg  set dummy $ac_cv_prog_CC
304264ce7165Smrg  shift
304364ce7165Smrg  if test $# != 0; then
304464ce7165Smrg    # We chose a different compiler from the bogus one.
304564ce7165Smrg    # However, it has the same basename, so the bogon will be chosen
304664ce7165Smrg    # first if we set CC to just the basename; use the full file name.
304764ce7165Smrg    shift
304864ce7165Smrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
304964ce7165Smrg  fi
305064ce7165Smrgfi
305164ce7165Smrgfi
305264ce7165Smrgfi
305364ce7165SmrgCC=$ac_cv_prog_CC
305464ce7165Smrgif test -n "$CC"; then
3055169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3056fb23d3a8Smrg$as_echo "$CC" >&6; }
305764ce7165Smrgelse
3058169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3059fb23d3a8Smrg$as_echo "no" >&6; }
306064ce7165Smrgfi
306164ce7165Smrg
306264ce7165Smrg
306364ce7165Smrgfi
306464ce7165Smrgif test -z "$CC"; then
306564ce7165Smrg  if test -n "$ac_tool_prefix"; then
306664ce7165Smrg  for ac_prog in cl.exe
306764ce7165Smrg  do
306864ce7165Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
306964ce7165Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
3070169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3071fb23d3a8Smrg$as_echo_n "checking for $ac_word... " >&6; }
3072169a0819Smrgif ${ac_cv_prog_CC+:} false; then :
3073fb23d3a8Smrg  $as_echo_n "(cached) " >&6
307464ce7165Smrgelse
307564ce7165Smrg  if test -n "$CC"; then
307664ce7165Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
307764ce7165Smrgelse
307864ce7165Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
307964ce7165Smrgfor as_dir in $PATH
308064ce7165Smrgdo
308164ce7165Smrg  IFS=$as_save_IFS
308264ce7165Smrg  test -z "$as_dir" && as_dir=.
3083169a0819Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
308464ce7165Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
308564ce7165Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3086169a0819Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
308764ce7165Smrg    break 2
308864ce7165Smrg  fi
308964ce7165Smrgdone
3090169a0819Smrg  done
309164ce7165SmrgIFS=$as_save_IFS
309264ce7165Smrg
309364ce7165Smrgfi
309464ce7165Smrgfi
309564ce7165SmrgCC=$ac_cv_prog_CC
309664ce7165Smrgif test -n "$CC"; then
3097169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3098fb23d3a8Smrg$as_echo "$CC" >&6; }
309964ce7165Smrgelse
3100169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3101fb23d3a8Smrg$as_echo "no" >&6; }
310264ce7165Smrgfi
310364ce7165Smrg
310464ce7165Smrg
310564ce7165Smrg    test -n "$CC" && break
310664ce7165Smrg  done
310764ce7165Smrgfi
310864ce7165Smrgif test -z "$CC"; then
310964ce7165Smrg  ac_ct_CC=$CC
311064ce7165Smrg  for ac_prog in cl.exe
311164ce7165Smrgdo
311264ce7165Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
311364ce7165Smrgset dummy $ac_prog; ac_word=$2
3114169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3115fb23d3a8Smrg$as_echo_n "checking for $ac_word... " >&6; }
3116169a0819Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
3117fb23d3a8Smrg  $as_echo_n "(cached) " >&6
311864ce7165Smrgelse
311964ce7165Smrg  if test -n "$ac_ct_CC"; then
312064ce7165Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
312164ce7165Smrgelse
312264ce7165Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
312364ce7165Smrgfor as_dir in $PATH
312464ce7165Smrgdo
312564ce7165Smrg  IFS=$as_save_IFS
312664ce7165Smrg  test -z "$as_dir" && as_dir=.
3127169a0819Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
312864ce7165Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
312964ce7165Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
3130169a0819Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
313164ce7165Smrg    break 2
313264ce7165Smrg  fi
313364ce7165Smrgdone
3134169a0819Smrg  done
313564ce7165SmrgIFS=$as_save_IFS
313664ce7165Smrg
313764ce7165Smrgfi
313864ce7165Smrgfi
313964ce7165Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
314064ce7165Smrgif test -n "$ac_ct_CC"; then
3141169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3142fb23d3a8Smrg$as_echo "$ac_ct_CC" >&6; }
314364ce7165Smrgelse
3144169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145fb23d3a8Smrg$as_echo "no" >&6; }
314664ce7165Smrgfi
314764ce7165Smrg
314864ce7165Smrg
314964ce7165Smrg  test -n "$ac_ct_CC" && break
315064ce7165Smrgdone
315164ce7165Smrg
315264ce7165Smrg  if test "x$ac_ct_CC" = x; then
315364ce7165Smrg    CC=""
315464ce7165Smrg  else
315564ce7165Smrg    case $cross_compiling:$ac_tool_warned in
315664ce7165Smrgyes:)
3157169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3158fb23d3a8Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
315964ce7165Smrgac_tool_warned=yes ;;
316064ce7165Smrgesac
316164ce7165Smrg    CC=$ac_ct_CC
316264ce7165Smrg  fi
316364ce7165Smrgfi
316464ce7165Smrg
316564ce7165Smrgfi
316664ce7165Smrg
316764ce7165Smrg
3168169a0819Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3169fb23d3a8Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3170169a0819Smrgas_fn_error $? "no acceptable C compiler found in \$PATH
3171169a0819SmrgSee \`config.log' for more details" "$LINENO" 5; }
317264ce7165Smrg
317364ce7165Smrg# Provide some information about the compiler.
3174169a0819Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3175fb23d3a8Smrgset X $ac_compile
3176fb23d3a8Smrgac_compiler=$2
3177169a0819Smrgfor ac_option in --version -v -V -qversion; do
3178169a0819Smrg  { { ac_try="$ac_compiler $ac_option >&5"
317964ce7165Smrgcase "(($ac_try" in
318064ce7165Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
318164ce7165Smrg  *) ac_try_echo=$ac_try;;
318264ce7165Smrgesac
3183169a0819Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3184169a0819Smrg$as_echo "$ac_try_echo"; } >&5
3185169a0819Smrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
318664ce7165Smrg  ac_status=$?
3187169a0819Smrg  if test -s conftest.err; then
3188169a0819Smrg    sed '10a\
3189169a0819Smrg... rest of stderr output deleted ...
3190169a0819Smrg         10q' conftest.err >conftest.er1
3191169a0819Smrg    cat conftest.er1 >&5
3192169a0819Smrg  fi
3193169a0819Smrg  rm -f conftest.er1 conftest.err
3194169a0819Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3195169a0819Smrg  test $ac_status = 0; }
3196169a0819Smrgdone
319764ce7165Smrg
3198169a0819Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
319964ce7165Smrg/* end confdefs.h.  */
320064ce7165Smrg
320164ce7165Smrgint
320264ce7165Smrgmain ()
320364ce7165Smrg{
320464ce7165Smrg
320564ce7165Smrg  ;
320664ce7165Smrg  return 0;
320764ce7165Smrg}
320864ce7165Smrg_ACEOF
320964ce7165Smrgac_clean_files_save=$ac_clean_files
3210fb23d3a8Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
321164ce7165Smrg# Try to create an executable without -o first, disregard a.out.
321264ce7165Smrg# It will help us diagnose broken compilers, and finding out an intuition
321364ce7165Smrg# of exeext.
3214169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3215169a0819Smrg$as_echo_n "checking whether the C compiler works... " >&6; }
3216fb23d3a8Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3217fb23d3a8Smrg
3218fb23d3a8Smrg# The possible output files:
3219fb23d3a8Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3220fb23d3a8Smrg
322164ce7165Smrgac_rmfiles=
322264ce7165Smrgfor ac_file in $ac_files
322364ce7165Smrgdo
322464ce7165Smrg  case $ac_file in
3225fb23d3a8Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
322664ce7165Smrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
322764ce7165Smrg  esac
322864ce7165Smrgdone
322964ce7165Smrgrm -f $ac_rmfiles
323064ce7165Smrg
3231169a0819Smrgif { { ac_try="$ac_link_default"
323264ce7165Smrgcase "(($ac_try" in
323364ce7165Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
323464ce7165Smrg  *) ac_try_echo=$ac_try;;
323564ce7165Smrgesac
3236169a0819Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3237169a0819Smrg$as_echo "$ac_try_echo"; } >&5
323864ce7165Smrg  (eval "$ac_link_default") 2>&5
323964ce7165Smrg  ac_status=$?
3240169a0819Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3241169a0819Smrg  test $ac_status = 0; }; then :
324264ce7165Smrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
324364ce7165Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
324464ce7165Smrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
324564ce7165Smrg# so that the user can short-circuit this test for compilers unknown to
324664ce7165Smrg# Autoconf.
324764ce7165Smrgfor ac_file in $ac_files ''
324864ce7165Smrgdo
324964ce7165Smrg  test -f "$ac_file" || continue
325064ce7165Smrg  case $ac_file in
3251fb23d3a8Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
325264ce7165Smrg	;;
325364ce7165Smrg    [ab].out )
325464ce7165Smrg	# We found the default executable, but exeext='' is most
325564ce7165Smrg	# certainly right.
325664ce7165Smrg	break;;
325764ce7165Smrg    *.* )
3258169a0819Smrg	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
325964ce7165Smrg	then :; else
326064ce7165Smrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
326164ce7165Smrg	fi
326264ce7165Smrg	# We set ac_cv_exeext here because the later test for it is not
326364ce7165Smrg	# safe: cross compilers may not add the suffix if given an `-o'
326464ce7165Smrg	# argument, so we may need to know it at that point already.
326564ce7165Smrg	# Even if this section looks crufty: it has the advantage of
326664ce7165Smrg	# actually working.
326764ce7165Smrg	break;;
326864ce7165Smrg    * )
326964ce7165Smrg	break;;
327064ce7165Smrg  esac
327164ce7165Smrgdone
327264ce7165Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
327364ce7165Smrg
327464ce7165Smrgelse
327564ce7165Smrg  ac_file=''
327664ce7165Smrgfi
3277169a0819Smrgif test -z "$ac_file"; then :
3278169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3279169a0819Smrg$as_echo "no" >&6; }
3280169a0819Smrg$as_echo "$as_me: failed program was:" >&5
328164ce7165Smrgsed 's/^/| /' conftest.$ac_ext >&5
328264ce7165Smrg
3283169a0819Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3284fb23d3a8Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3285169a0819Smrgas_fn_error 77 "C compiler cannot create executables
3286169a0819SmrgSee \`config.log' for more details" "$LINENO" 5; }
3287169a0819Smrgelse
3288169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3289169a0819Smrg$as_echo "yes" >&6; }
329064ce7165Smrgfi
3291169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3292169a0819Smrg$as_echo_n "checking for C compiler default output file name... " >&6; }
3293169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3294169a0819Smrg$as_echo "$ac_file" >&6; }
329564ce7165Smrgac_exeext=$ac_cv_exeext
329664ce7165Smrg
3297fb23d3a8Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
329864ce7165Smrgac_clean_files=$ac_clean_files_save
3299169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3300fb23d3a8Smrg$as_echo_n "checking for suffix of executables... " >&6; }
3301169a0819Smrgif { { ac_try="$ac_link"
330264ce7165Smrgcase "(($ac_try" in
330364ce7165Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
330464ce7165Smrg  *) ac_try_echo=$ac_try;;
330564ce7165Smrgesac
3306169a0819Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3307169a0819Smrg$as_echo "$ac_try_echo"; } >&5
330864ce7165Smrg  (eval "$ac_link") 2>&5
330964ce7165Smrg  ac_status=$?
3310169a0819Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3311169a0819Smrg  test $ac_status = 0; }; then :
331264ce7165Smrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
331364ce7165Smrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
331464ce7165Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with
331564ce7165Smrg# `rm'.
331664ce7165Smrgfor ac_file in conftest.exe conftest conftest.*; do
331764ce7165Smrg  test -f "$ac_file" || continue
331864ce7165Smrg  case $ac_file in
3319fb23d3a8Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
332064ce7165Smrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
332164ce7165Smrg	  break;;
332264ce7165Smrg    * ) break;;
332364ce7165Smrg  esac
332464ce7165Smrgdone
332564ce7165Smrgelse
3326169a0819Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3327fb23d3a8Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3328169a0819Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
3329169a0819SmrgSee \`config.log' for more details" "$LINENO" 5; }
333064ce7165Smrgfi
3331169a0819Smrgrm -f conftest conftest$ac_cv_exeext
3332169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3333fb23d3a8Smrg$as_echo "$ac_cv_exeext" >&6; }
333464ce7165Smrg
333564ce7165Smrgrm -f conftest.$ac_ext
333664ce7165SmrgEXEEXT=$ac_cv_exeext
333764ce7165Smrgac_exeext=$EXEEXT
3338169a0819Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3339169a0819Smrg/* end confdefs.h.  */
3340169a0819Smrg#include <stdio.h>
3341169a0819Smrgint
3342169a0819Smrgmain ()
3343169a0819Smrg{
3344169a0819SmrgFILE *f = fopen ("conftest.out", "w");
3345169a0819Smrg return ferror (f) || fclose (f) != 0;
3346169a0819Smrg
3347169a0819Smrg  ;
3348169a0819Smrg  return 0;
3349169a0819Smrg}
3350169a0819Smrg_ACEOF
3351169a0819Smrgac_clean_files="$ac_clean_files conftest.out"
3352169a0819Smrg# Check that the compiler produces executables we can run.  If not, either
3353169a0819Smrg# the compiler is broken, or we cross compile.
3354169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3355169a0819Smrg$as_echo_n "checking whether we are cross compiling... " >&6; }
3356169a0819Smrgif test "$cross_compiling" != yes; then
3357169a0819Smrg  { { ac_try="$ac_link"
3358169a0819Smrgcase "(($ac_try" in
3359169a0819Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360169a0819Smrg  *) ac_try_echo=$ac_try;;
3361169a0819Smrgesac
3362169a0819Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3363169a0819Smrg$as_echo "$ac_try_echo"; } >&5
3364169a0819Smrg  (eval "$ac_link") 2>&5
3365169a0819Smrg  ac_status=$?
3366169a0819Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3367169a0819Smrg  test $ac_status = 0; }
3368169a0819Smrg  if { ac_try='./conftest$ac_cv_exeext'
3369169a0819Smrg  { { case "(($ac_try" in
3370169a0819Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371169a0819Smrg  *) ac_try_echo=$ac_try;;
3372169a0819Smrgesac
3373169a0819Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3374169a0819Smrg$as_echo "$ac_try_echo"; } >&5
3375169a0819Smrg  (eval "$ac_try") 2>&5
3376169a0819Smrg  ac_status=$?
3377169a0819Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3378169a0819Smrg  test $ac_status = 0; }; }; then
3379169a0819Smrg    cross_compiling=no
3380169a0819Smrg  else
3381169a0819Smrg    if test "$cross_compiling" = maybe; then
3382169a0819Smrg	cross_compiling=yes
3383169a0819Smrg    else
3384169a0819Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3385169a0819Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3386169a0819Smrgas_fn_error $? "cannot run C compiled programs.
3387169a0819SmrgIf you meant to cross compile, use \`--host'.
3388169a0819SmrgSee \`config.log' for more details" "$LINENO" 5; }
3389169a0819Smrg    fi
3390169a0819Smrg  fi
3391169a0819Smrgfi
3392169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3393169a0819Smrg$as_echo "$cross_compiling" >&6; }
3394169a0819Smrg
3395169a0819Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3396169a0819Smrgac_clean_files=$ac_clean_files_save
3397169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3398fb23d3a8Smrg$as_echo_n "checking for suffix of object files... " >&6; }
3399169a0819Smrgif ${ac_cv_objext+:} false; then :
3400fb23d3a8Smrg  $as_echo_n "(cached) " >&6
340164ce7165Smrgelse
3402169a0819Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
340364ce7165Smrg/* end confdefs.h.  */
340464ce7165Smrg
340564ce7165Smrgint
340664ce7165Smrgmain ()
340764ce7165Smrg{
340864ce7165Smrg
340964ce7165Smrg  ;
341064ce7165Smrg  return 0;
341164ce7165Smrg}
341264ce7165Smrg_ACEOF
341364ce7165Smrgrm -f conftest.o conftest.obj
3414169a0819Smrgif { { ac_try="$ac_compile"
341564ce7165Smrgcase "(($ac_try" in
341664ce7165Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
341764ce7165Smrg  *) ac_try_echo=$ac_try;;
341864ce7165Smrgesac
3419169a0819Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3420169a0819Smrg$as_echo "$ac_try_echo"; } >&5
342164ce7165Smrg  (eval "$ac_compile") 2>&5
342264ce7165Smrg  ac_status=$?
3423169a0819Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3424169a0819Smrg  test $ac_status = 0; }; then :
342564ce7165Smrg  for ac_file in conftest.o conftest.obj conftest.*; do
342664ce7165Smrg  test -f "$ac_file" || continue;
342764ce7165Smrg  case $ac_file in
3428fb23d3a8Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
342964ce7165Smrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
343064ce7165Smrg       break;;
343164ce7165Smrg  esac
343264ce7165Smrgdone
343364ce7165Smrgelse
3434fb23d3a8Smrg  $as_echo "$as_me: failed program was:" >&5
343564ce7165Smrgsed 's/^/| /' conftest.$ac_ext >&5
343664ce7165Smrg
3437169a0819Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3438fb23d3a8Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3439169a0819Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile
3440169a0819SmrgSee \`config.log' for more details" "$LINENO" 5; }
344164ce7165Smrgfi
344264ce7165Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
344364ce7165Smrgfi
3444169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3445fb23d3a8Smrg$as_echo "$ac_cv_objext" >&6; }
344664ce7165SmrgOBJEXT=$ac_cv_objext
344764ce7165Smrgac_objext=$OBJEXT
3448169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3449fb23d3a8Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3450169a0819Smrgif ${ac_cv_c_compiler_gnu+:} false; then :
3451fb23d3a8Smrg  $as_echo_n "(cached) " >&6
345264ce7165Smrgelse
3453169a0819Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
345464ce7165Smrg/* end confdefs.h.  */
345564ce7165Smrg
345664ce7165Smrgint
345764ce7165Smrgmain ()
345864ce7165Smrg{
345964ce7165Smrg#ifndef __GNUC__
346064ce7165Smrg       choke me
346164ce7165Smrg#endif
346264ce7165Smrg
346364ce7165Smrg  ;
346464ce7165Smrg  return 0;
346564ce7165Smrg}
346664ce7165Smrg_ACEOF
3467169a0819Smrgif ac_fn_c_try_compile "$LINENO"; then :
346864ce7165Smrg  ac_compiler_gnu=yes
346964ce7165Smrgelse
3470169a0819Smrg  ac_compiler_gnu=no
347164ce7165Smrgfi
347264ce7165Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
347364ce7165Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
347464ce7165Smrg
347564ce7165Smrgfi
3476169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3477fb23d3a8Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3478fb23d3a8Smrgif test $ac_compiler_gnu = yes; then
3479fb23d3a8Smrg  GCC=yes
3480fb23d3a8Smrgelse
3481fb23d3a8Smrg  GCC=
3482fb23d3a8Smrgfi
348364ce7165Smrgac_test_CFLAGS=${CFLAGS+set}
348464ce7165Smrgac_save_CFLAGS=$CFLAGS
3485169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3486fb23d3a8Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
3487169a0819Smrgif ${ac_cv_prog_cc_g+:} false; then :
3488fb23d3a8Smrg  $as_echo_n "(cached) " >&6
348964ce7165Smrgelse
349064ce7165Smrg  ac_save_c_werror_flag=$ac_c_werror_flag
349164ce7165Smrg   ac_c_werror_flag=yes
349264ce7165Smrg   ac_cv_prog_cc_g=no
349364ce7165Smrg   CFLAGS="-g"
3494169a0819Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
349564ce7165Smrg/* end confdefs.h.  */
349664ce7165Smrg
349764ce7165Smrgint
349864ce7165Smrgmain ()
349964ce7165Smrg{
350064ce7165Smrg
350164ce7165Smrg  ;
350264ce7165Smrg  return 0;
350364ce7165Smrg}
350464ce7165Smrg_ACEOF
3505169a0819Smrgif ac_fn_c_try_compile "$LINENO"; then :
350664ce7165Smrg  ac_cv_prog_cc_g=yes
350764ce7165Smrgelse
3508169a0819Smrg  CFLAGS=""
3509169a0819Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
351064ce7165Smrg/* end confdefs.h.  */
351164ce7165Smrg
351264ce7165Smrgint
351364ce7165Smrgmain ()
351464ce7165Smrg{
351564ce7165Smrg
351664ce7165Smrg  ;
351764ce7165Smrg  return 0;
351864ce7165Smrg}
351964ce7165Smrg_ACEOF
3520169a0819Smrgif ac_fn_c_try_compile "$LINENO"; then :
352164ce7165Smrg
3522169a0819Smrgelse
3523169a0819Smrg  ac_c_werror_flag=$ac_save_c_werror_flag
352464ce7165Smrg	 CFLAGS="-g"
3525169a0819Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
352664ce7165Smrg/* end confdefs.h.  */
352764ce7165Smrg
352864ce7165Smrgint
352964ce7165Smrgmain ()
353064ce7165Smrg{
353164ce7165Smrg
353264ce7165Smrg  ;
353364ce7165Smrg  return 0;
353464ce7165Smrg}
353564ce7165Smrg_ACEOF
3536169a0819Smrgif ac_fn_c_try_compile "$LINENO"; then :
353764ce7165Smrg  ac_cv_prog_cc_g=yes
353864ce7165Smrgfi
353964ce7165Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
354064ce7165Smrgfi
354164ce7165Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
354264ce7165Smrgfi
354364ce7165Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
354464ce7165Smrg   ac_c_werror_flag=$ac_save_c_werror_flag
354564ce7165Smrgfi
3546169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3547fb23d3a8Smrg$as_echo "$ac_cv_prog_cc_g" >&6; }
354864ce7165Smrgif test "$ac_test_CFLAGS" = set; then
354964ce7165Smrg  CFLAGS=$ac_save_CFLAGS
355064ce7165Smrgelif test $ac_cv_prog_cc_g = yes; then
355164ce7165Smrg  if test "$GCC" = yes; then
355264ce7165Smrg    CFLAGS="-g -O2"
355364ce7165Smrg  else
355464ce7165Smrg    CFLAGS="-g"
355564ce7165Smrg  fi
355664ce7165Smrgelse
355764ce7165Smrg  if test "$GCC" = yes; then
355864ce7165Smrg    CFLAGS="-O2"
355964ce7165Smrg  else
356064ce7165Smrg    CFLAGS=
356164ce7165Smrg  fi
356264ce7165Smrgfi
3563169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3564fb23d3a8Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3565169a0819Smrgif ${ac_cv_prog_cc_c89+:} false; then :
3566fb23d3a8Smrg  $as_echo_n "(cached) " >&6
356764ce7165Smrgelse
356864ce7165Smrg  ac_cv_prog_cc_c89=no
356964ce7165Smrgac_save_CC=$CC
3570169a0819Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
357164ce7165Smrg/* end confdefs.h.  */
357264ce7165Smrg#include <stdarg.h>
357364ce7165Smrg#include <stdio.h>
357464ce7165Smrg#include <sys/types.h>
357564ce7165Smrg#include <sys/stat.h>
357664ce7165Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
357764ce7165Smrgstruct buf { int x; };
357864ce7165SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
357964ce7165Smrgstatic char *e (p, i)
358064ce7165Smrg     char **p;
358164ce7165Smrg     int i;
358264ce7165Smrg{
358364ce7165Smrg  return p[i];
358464ce7165Smrg}
358564ce7165Smrgstatic char *f (char * (*g) (char **, int), char **p, ...)
358664ce7165Smrg{
358764ce7165Smrg  char *s;
358864ce7165Smrg  va_list v;
358964ce7165Smrg  va_start (v,p);
359064ce7165Smrg  s = g (p, va_arg (v,int));
359164ce7165Smrg  va_end (v);
359264ce7165Smrg  return s;
359364ce7165Smrg}
359464ce7165Smrg
359564ce7165Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
359664ce7165Smrg   function prototypes and stuff, but not '\xHH' hex character constants.
359764ce7165Smrg   These don't provoke an error unfortunately, instead are silently treated
359864ce7165Smrg   as 'x'.  The following induces an error, until -std is added to get
359964ce7165Smrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
360064ce7165Smrg   array size at least.  It's necessary to write '\x00'==0 to get something
360164ce7165Smrg   that's true only with -std.  */
360264ce7165Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
360364ce7165Smrg
360464ce7165Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
360564ce7165Smrg   inside strings and character constants.  */
360664ce7165Smrg#define FOO(x) 'x'
360764ce7165Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
360864ce7165Smrg
360964ce7165Smrgint test (int i, double x);
361064ce7165Smrgstruct s1 {int (*f) (int a);};
361164ce7165Smrgstruct s2 {int (*f) (double a);};
361264ce7165Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
361364ce7165Smrgint argc;
361464ce7165Smrgchar **argv;
361564ce7165Smrgint
361664ce7165Smrgmain ()
361764ce7165Smrg{
361864ce7165Smrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
361964ce7165Smrg  ;
362064ce7165Smrg  return 0;
362164ce7165Smrg}
362264ce7165Smrg_ACEOF
362364ce7165Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
362464ce7165Smrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
362564ce7165Smrgdo
362664ce7165Smrg  CC="$ac_save_CC $ac_arg"
3627169a0819Smrg  if ac_fn_c_try_compile "$LINENO"; then :
362864ce7165Smrg  ac_cv_prog_cc_c89=$ac_arg
362964ce7165Smrgfi
363064ce7165Smrgrm -f core conftest.err conftest.$ac_objext
363164ce7165Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
363264ce7165Smrgdone
363364ce7165Smrgrm -f conftest.$ac_ext
363464ce7165SmrgCC=$ac_save_CC
363564ce7165Smrg
363664ce7165Smrgfi
363764ce7165Smrg# AC_CACHE_VAL
363864ce7165Smrgcase "x$ac_cv_prog_cc_c89" in
363964ce7165Smrg  x)
3640169a0819Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3641fb23d3a8Smrg$as_echo "none needed" >&6; } ;;
364264ce7165Smrg  xno)
3643169a0819Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3644fb23d3a8Smrg$as_echo "unsupported" >&6; } ;;
364564ce7165Smrg  *)
364664ce7165Smrg    CC="$CC $ac_cv_prog_cc_c89"
3647169a0819Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3648fb23d3a8Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
364964ce7165Smrgesac
3650169a0819Smrgif test "x$ac_cv_prog_cc_c89" != xno; then :
365164ce7165Smrg
3652169a0819Smrgfi
365364ce7165Smrg
365464ce7165Smrgac_ext=c
365564ce7165Smrgac_cpp='$CPP $CPPFLAGS'
365664ce7165Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
365764ce7165Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
365864ce7165Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
365964ce7165Smrg
366064ce7165Smrgdepcc="$CC"   am_compiler_list=
366164ce7165Smrg
3662169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3663fb23d3a8Smrg$as_echo_n "checking dependency style of $depcc... " >&6; }
3664169a0819Smrgif ${am_cv_CC_dependencies_compiler_type+:} false; then :
3665fb23d3a8Smrg  $as_echo_n "(cached) " >&6
366664ce7165Smrgelse
366764ce7165Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
366864ce7165Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
366964ce7165Smrg  # making bogus files that we don't know about and never remove.  For
367064ce7165Smrg  # instance it was reported that on HP-UX the gcc test will end up
367164ce7165Smrg  # making a dummy file named `D' -- because `-MD' means `put the output
367264ce7165Smrg  # in D'.
367364ce7165Smrg  mkdir conftest.dir
367464ce7165Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
367564ce7165Smrg  # using a relative directory.
367664ce7165Smrg  cp "$am_depcomp" conftest.dir
367764ce7165Smrg  cd conftest.dir
367864ce7165Smrg  # We will build objects and dependencies in a subdirectory because
367964ce7165Smrg  # it helps to detect inapplicable dependency modes.  For instance
368064ce7165Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
368164ce7165Smrg  # side effect of compilation, but ICC will put the dependencies in
368264ce7165Smrg  # the current directory while Tru64 will put them in the object
368364ce7165Smrg  # directory.
368464ce7165Smrg  mkdir sub
368564ce7165Smrg
368664ce7165Smrg  am_cv_CC_dependencies_compiler_type=none
368764ce7165Smrg  if test "$am_compiler_list" = ""; then
368864ce7165Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
368964ce7165Smrg  fi
3690fb23d3a8Smrg  am__universal=false
3691fb23d3a8Smrg  case " $depcc " in #(
3692fb23d3a8Smrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3693fb23d3a8Smrg     esac
3694fb23d3a8Smrg
369564ce7165Smrg  for depmode in $am_compiler_list; do
369664ce7165Smrg    # Setup a source with many dependencies, because some compilers
369764ce7165Smrg    # like to wrap large dependency lists on column 80 (with \), and
369864ce7165Smrg    # we should not choose a depcomp mode which is confused by this.
369964ce7165Smrg    #
370064ce7165Smrg    # We need to recreate these files for each test, as the compiler may
370164ce7165Smrg    # overwrite some of them when testing with obscure command lines.
370264ce7165Smrg    # This happens at least with the AIX C compiler.
370364ce7165Smrg    : > sub/conftest.c
370464ce7165Smrg    for i in 1 2 3 4 5 6; do
370564ce7165Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
370664ce7165Smrg      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
370764ce7165Smrg      # Solaris 8's {/usr,}/bin/sh.
370864ce7165Smrg      touch sub/conftst$i.h
370964ce7165Smrg    done
371064ce7165Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
371164ce7165Smrg
3712fb23d3a8Smrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3713fb23d3a8Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
3714fb23d3a8Smrg    # handle `-M -o', and we need to detect this.  Also, some Intel
3715fb23d3a8Smrg    # versions had trouble with output in subdirs
3716fb23d3a8Smrg    am__obj=sub/conftest.${OBJEXT-o}
3717fb23d3a8Smrg    am__minus_obj="-o $am__obj"
371864ce7165Smrg    case $depmode in
3719fb23d3a8Smrg    gcc)
3720fb23d3a8Smrg      # This depmode causes a compiler race in universal mode.
3721fb23d3a8Smrg      test "$am__universal" = false || continue
3722fb23d3a8Smrg      ;;
372364ce7165Smrg    nosideeffect)
372464ce7165Smrg      # after this tag, mechanisms are not by side-effect, so they'll
372564ce7165Smrg      # only be used when explicitly requested
372664ce7165Smrg      if test "x$enable_dependency_tracking" = xyes; then
372764ce7165Smrg	continue
372864ce7165Smrg      else
372964ce7165Smrg	break
373064ce7165Smrg      fi
373164ce7165Smrg      ;;
3732fb23d3a8Smrg    msvisualcpp | msvcmsys)
3733fb23d3a8Smrg      # This compiler won't grok `-c -o', but also, the minuso test has
3734fb23d3a8Smrg      # not run yet.  These depmodes are late enough in the game, and
3735fb23d3a8Smrg      # so weak that their functioning should not be impacted.
3736fb23d3a8Smrg      am__obj=conftest.${OBJEXT-o}
3737fb23d3a8Smrg      am__minus_obj=
3738fb23d3a8Smrg      ;;
373964ce7165Smrg    none) break ;;
374064ce7165Smrg    esac
374164ce7165Smrg    if depmode=$depmode \
3742fb23d3a8Smrg       source=sub/conftest.c object=$am__obj \
374364ce7165Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3744fb23d3a8Smrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
374564ce7165Smrg         >/dev/null 2>conftest.err &&
374664ce7165Smrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
374764ce7165Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3748fb23d3a8Smrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
374964ce7165Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
375064ce7165Smrg      # icc doesn't choke on unknown options, it will just issue warnings
375164ce7165Smrg      # or remarks (even with -Werror).  So we grep stderr for any message
375264ce7165Smrg      # that says an option was ignored or not supported.
375364ce7165Smrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
375464ce7165Smrg      #   icc: Command line warning: ignoring option '-M'; no argument required
375564ce7165Smrg      # The diagnosis changed in icc 8.0:
375664ce7165Smrg      #   icc: Command line remark: option '-MP' not supported
375764ce7165Smrg      if (grep 'ignoring option' conftest.err ||
375864ce7165Smrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
375964ce7165Smrg        am_cv_CC_dependencies_compiler_type=$depmode
376064ce7165Smrg        break
376164ce7165Smrg      fi
376264ce7165Smrg    fi
376364ce7165Smrg  done
376464ce7165Smrg
376564ce7165Smrg  cd ..
376664ce7165Smrg  rm -rf conftest.dir
376764ce7165Smrgelse
376864ce7165Smrg  am_cv_CC_dependencies_compiler_type=none
376964ce7165Smrgfi
377064ce7165Smrg
377164ce7165Smrgfi
3772169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3773fb23d3a8Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
377464ce7165SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
377564ce7165Smrg
377664ce7165Smrg if
377764ce7165Smrg  test "x$enable_dependency_tracking" != xno \
377864ce7165Smrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
377964ce7165Smrg  am__fastdepCC_TRUE=
378064ce7165Smrg  am__fastdepCC_FALSE='#'
378164ce7165Smrgelse
378264ce7165Smrg  am__fastdepCC_TRUE='#'
378364ce7165Smrg  am__fastdepCC_FALSE=
378464ce7165Smrgfi
378564ce7165Smrg
378664ce7165Smrg
3787169a0819Smrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3788169a0819Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3789169a0819Smrgif ${ac_cv_prog_cc_c99+:} false; then :
3790fb23d3a8Smrg  $as_echo_n "(cached) " >&6
3791fb23d3a8Smrgelse
3792169a0819Smrg  ac_cv_prog_cc_c99=no
3793169a0819Smrgac_save_CC=$CC
3794169a0819Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3795fb23d3a8Smrg/* end confdefs.h.  */
3796169a0819Smrg#include <stdarg.h>
3797169a0819Smrg#include <stdbool.h>
3798169a0819Smrg#include <stdlib.h>
3799169a0819Smrg#include <wchar.h>
3800169a0819Smrg#include <stdio.h>
3801169a0819Smrg
3802169a0819Smrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3803169a0819Smrg#define debug(...) fprintf (stderr, __VA_ARGS__)
3804169a0819Smrg#define showlist(...) puts (#__VA_ARGS__)
3805169a0819Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3806169a0819Smrgstatic void
3807169a0819Smrgtest_varargs_macros (void)
3808169a0819Smrg{
3809169a0819Smrg  int x = 1234;
3810169a0819Smrg  int y = 5678;
3811169a0819Smrg  debug ("Flag");
3812169a0819Smrg  debug ("X = %d\n", x);
3813169a0819Smrg  showlist (The first, second, and third items.);
3814169a0819Smrg  report (x>y, "x is %d but y is %d", x, y);
3815169a0819Smrg}
3816169a0819Smrg
3817169a0819Smrg// Check long long types.
3818169a0819Smrg#define BIG64 18446744073709551615ull
3819169a0819Smrg#define BIG32 4294967295ul
3820169a0819Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3821169a0819Smrg#if !BIG_OK
3822169a0819Smrg  your preprocessor is broken;
3823169a0819Smrg#endif
3824169a0819Smrg#if BIG_OK
3825fb23d3a8Smrg#else
3826169a0819Smrg  your preprocessor is broken;
3827fb23d3a8Smrg#endif
3828169a0819Smrgstatic long long int bignum = -9223372036854775807LL;
3829169a0819Smrgstatic unsigned long long int ubignum = BIG64;
383064ce7165Smrg
3831169a0819Smrgstruct incomplete_array
3832169a0819Smrg{
3833169a0819Smrg  int datasize;
3834169a0819Smrg  double data[];
3835169a0819Smrg};
3836169a0819Smrg
3837169a0819Smrgstruct named_init {
3838169a0819Smrg  int number;
3839169a0819Smrg  const wchar_t *name;
3840169a0819Smrg  double average;
3841169a0819Smrg};
3842169a0819Smrg
3843169a0819Smrgtypedef const char *ccp;
3844169a0819Smrg
3845169a0819Smrgstatic inline int
3846169a0819Smrgtest_restrict (ccp restrict text)
3847169a0819Smrg{
3848169a0819Smrg  // See if C++-style comments work.
3849169a0819Smrg  // Iterate through items via the restricted pointer.
3850169a0819Smrg  // Also check for declarations in for loops.
3851169a0819Smrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3852169a0819Smrg    continue;
3853169a0819Smrg  return 0;
3854169a0819Smrg}
3855169a0819Smrg
3856169a0819Smrg// Check varargs and va_copy.
3857169a0819Smrgstatic void
3858169a0819Smrgtest_varargs (const char *format, ...)
3859169a0819Smrg{
3860169a0819Smrg  va_list args;
3861169a0819Smrg  va_start (args, format);
3862169a0819Smrg  va_list args_copy;
3863169a0819Smrg  va_copy (args_copy, args);
3864169a0819Smrg
3865169a0819Smrg  const char *str;
3866169a0819Smrg  int number;
3867169a0819Smrg  float fnumber;
3868169a0819Smrg
3869169a0819Smrg  while (*format)
3870169a0819Smrg    {
3871169a0819Smrg      switch (*format++)
3872169a0819Smrg	{
3873169a0819Smrg	case 's': // string
3874169a0819Smrg	  str = va_arg (args_copy, const char *);
3875169a0819Smrg	  break;
3876169a0819Smrg	case 'd': // int
3877169a0819Smrg	  number = va_arg (args_copy, int);
3878169a0819Smrg	  break;
3879169a0819Smrg	case 'f': // float
3880169a0819Smrg	  fnumber = va_arg (args_copy, double);
3881169a0819Smrg	  break;
3882169a0819Smrg	default:
3883169a0819Smrg	  break;
3884169a0819Smrg	}
3885169a0819Smrg    }
3886169a0819Smrg  va_end (args_copy);
3887169a0819Smrg  va_end (args);
3888169a0819Smrg}
3889169a0819Smrg
3890169a0819Smrgint
3891169a0819Smrgmain ()
3892169a0819Smrg{
3893169a0819Smrg
3894169a0819Smrg  // Check bool.
3895169a0819Smrg  _Bool success = false;
3896169a0819Smrg
3897169a0819Smrg  // Check restrict.
3898169a0819Smrg  if (test_restrict ("String literal") == 0)
3899169a0819Smrg    success = true;
3900169a0819Smrg  char *restrict newvar = "Another string";
3901169a0819Smrg
3902169a0819Smrg  // Check varargs.
3903169a0819Smrg  test_varargs ("s, d' f .", "string", 65, 34.234);
3904169a0819Smrg  test_varargs_macros ();
3905169a0819Smrg
3906169a0819Smrg  // Check flexible array members.
3907169a0819Smrg  struct incomplete_array *ia =
3908169a0819Smrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3909169a0819Smrg  ia->datasize = 10;
3910169a0819Smrg  for (int i = 0; i < ia->datasize; ++i)
3911169a0819Smrg    ia->data[i] = i * 1.234;
3912169a0819Smrg
3913169a0819Smrg  // Check named initializers.
3914169a0819Smrg  struct named_init ni = {
3915169a0819Smrg    .number = 34,
3916169a0819Smrg    .name = L"Test wide string",
3917169a0819Smrg    .average = 543.34343,
3918169a0819Smrg  };
3919169a0819Smrg
3920169a0819Smrg  ni.number = 58;
3921169a0819Smrg
3922169a0819Smrg  int dynamic_array[ni.number];
3923169a0819Smrg  dynamic_array[ni.number - 1] = 543;
3924169a0819Smrg
3925169a0819Smrg  // work around unused variable warnings
3926169a0819Smrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3927169a0819Smrg	  || dynamic_array[ni.number - 1] != 543);
3928169a0819Smrg
3929169a0819Smrg  ;
3930169a0819Smrg  return 0;
3931169a0819Smrg}
3932169a0819Smrg_ACEOF
3933169a0819Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3934169a0819Smrgdo
3935169a0819Smrg  CC="$ac_save_CC $ac_arg"
3936169a0819Smrg  if ac_fn_c_try_compile "$LINENO"; then :
3937169a0819Smrg  ac_cv_prog_cc_c99=$ac_arg
3938169a0819Smrgfi
3939169a0819Smrgrm -f core conftest.err conftest.$ac_objext
3940169a0819Smrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
3941169a0819Smrgdone
3942169a0819Smrgrm -f conftest.$ac_ext
3943169a0819SmrgCC=$ac_save_CC
3944169a0819Smrg
3945169a0819Smrgfi
3946169a0819Smrg# AC_CACHE_VAL
3947169a0819Smrgcase "x$ac_cv_prog_cc_c99" in
3948169a0819Smrg  x)
3949169a0819Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3950169a0819Smrg$as_echo "none needed" >&6; } ;;
3951169a0819Smrg  xno)
3952169a0819Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3953169a0819Smrg$as_echo "unsupported" >&6; } ;;
3954169a0819Smrg  *)
3955169a0819Smrg    CC="$CC $ac_cv_prog_cc_c99"
3956169a0819Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3957169a0819Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3958169a0819Smrgesac
3959169a0819Smrgif test "x$ac_cv_prog_cc_c99" != xno; then :
3960169a0819Smrg
3961169a0819Smrgfi
3962169a0819Smrg
3963169a0819Smrg
39643544ea2eSmrg
3965169a0819Smrgac_ext=c
3966169a0819Smrgac_cpp='$CPP $CPPFLAGS'
3967169a0819Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3968169a0819Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3969169a0819Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3970169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3971169a0819Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
3972169a0819Smrg# On Suns, sometimes $CPP names a directory.
3973169a0819Smrgif test -n "$CPP" && test -d "$CPP"; then
3974169a0819Smrg  CPP=
3975169a0819Smrgfi
3976169a0819Smrgif test -z "$CPP"; then
3977169a0819Smrg  if ${ac_cv_prog_CPP+:} false; then :
3978169a0819Smrg  $as_echo_n "(cached) " >&6
3979169a0819Smrgelse
3980169a0819Smrg      # Double quotes because CPP needs to be expanded
3981169a0819Smrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3982169a0819Smrg    do
3983169a0819Smrg      ac_preproc_ok=false
3984169a0819Smrgfor ac_c_preproc_warn_flag in '' yes
3985169a0819Smrgdo
3986169a0819Smrg  # Use a header file that comes with gcc, so configuring glibc
3987169a0819Smrg  # with a fresh cross-compiler works.
3988169a0819Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3989169a0819Smrg  # <limits.h> exists even on freestanding compilers.
3990169a0819Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
3991169a0819Smrg  # not just through cpp. "Syntax error" is here to catch this case.
3992169a0819Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993169a0819Smrg/* end confdefs.h.  */
3994169a0819Smrg#ifdef __STDC__
3995169a0819Smrg# include <limits.h>
3996169a0819Smrg#else
3997169a0819Smrg# include <assert.h>
3998169a0819Smrg#endif
3999169a0819Smrg		     Syntax error
4000169a0819Smrg_ACEOF
4001169a0819Smrgif ac_fn_c_try_cpp "$LINENO"; then :
400264ce7165Smrg
4003169a0819Smrgelse
4004169a0819Smrg  # Broken: fails on valid input.
4005169a0819Smrgcontinue
4006169a0819Smrgfi
4007169a0819Smrgrm -f conftest.err conftest.i conftest.$ac_ext
4008fb23d3a8Smrg
4009fb23d3a8Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
4010fb23d3a8Smrg  # can be detected and how.
4011169a0819Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012fb23d3a8Smrg/* end confdefs.h.  */
4013fb23d3a8Smrg#include <ac_nonexistent.h>
4014fb23d3a8Smrg_ACEOF
4015169a0819Smrgif ac_fn_c_try_cpp "$LINENO"; then :
4016fb23d3a8Smrg  # Broken: success on invalid input.
4017fb23d3a8Smrgcontinue
4018fb23d3a8Smrgelse
4019fb23d3a8Smrg  # Passes both tests.
4020fb23d3a8Smrgac_preproc_ok=:
4021fb23d3a8Smrgbreak
4022fb23d3a8Smrgfi
4023169a0819Smrgrm -f conftest.err conftest.i conftest.$ac_ext
4024fb23d3a8Smrg
4025fb23d3a8Smrgdone
4026fb23d3a8Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4027169a0819Smrgrm -f conftest.i conftest.err conftest.$ac_ext
4028169a0819Smrgif $ac_preproc_ok; then :
4029fb23d3a8Smrg  break
4030fb23d3a8Smrgfi
4031fb23d3a8Smrg
4032fb23d3a8Smrg    done
4033fb23d3a8Smrg    ac_cv_prog_CPP=$CPP
4034fb23d3a8Smrg
4035fb23d3a8Smrgfi
4036fb23d3a8Smrg  CPP=$ac_cv_prog_CPP
4037fb23d3a8Smrgelse
4038fb23d3a8Smrg  ac_cv_prog_CPP=$CPP
4039fb23d3a8Smrgfi
4040169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4041fb23d3a8Smrg$as_echo "$CPP" >&6; }
4042fb23d3a8Smrgac_preproc_ok=false
4043fb23d3a8Smrgfor ac_c_preproc_warn_flag in '' yes
4044fb23d3a8Smrgdo
4045fb23d3a8Smrg  # Use a header file that comes with gcc, so configuring glibc
4046fb23d3a8Smrg  # with a fresh cross-compiler works.
4047fb23d3a8Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4048fb23d3a8Smrg  # <limits.h> exists even on freestanding compilers.
4049fb23d3a8Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
4050fb23d3a8Smrg  # not just through cpp. "Syntax error" is here to catch this case.
4051169a0819Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4052fb23d3a8Smrg/* end confdefs.h.  */
4053fb23d3a8Smrg#ifdef __STDC__
4054fb23d3a8Smrg# include <limits.h>
4055fb23d3a8Smrg#else
4056fb23d3a8Smrg# include <assert.h>
4057fb23d3a8Smrg#endif
4058fb23d3a8Smrg		     Syntax error
4059fb23d3a8Smrg_ACEOF
4060169a0819Smrgif ac_fn_c_try_cpp "$LINENO"; then :
4061fb23d3a8Smrg
4062169a0819Smrgelse
4063fb23d3a8Smrg  # Broken: fails on valid input.
4064fb23d3a8Smrgcontinue
4065fb23d3a8Smrgfi
4066169a0819Smrgrm -f conftest.err conftest.i conftest.$ac_ext
4067fb23d3a8Smrg
4068fb23d3a8Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
4069fb23d3a8Smrg  # can be detected and how.
4070169a0819Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071fb23d3a8Smrg/* end confdefs.h.  */
4072fb23d3a8Smrg#include <ac_nonexistent.h>
4073fb23d3a8Smrg_ACEOF
4074169a0819Smrgif ac_fn_c_try_cpp "$LINENO"; then :
4075fb23d3a8Smrg  # Broken: success on invalid input.
4076fb23d3a8Smrgcontinue
4077fb23d3a8Smrgelse
4078fb23d3a8Smrg  # Passes both tests.
4079fb23d3a8Smrgac_preproc_ok=:
4080fb23d3a8Smrgbreak
4081fb23d3a8Smrgfi
4082169a0819Smrgrm -f conftest.err conftest.i conftest.$ac_ext
4083fb23d3a8Smrg
4084fb23d3a8Smrgdone
4085fb23d3a8Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4086169a0819Smrgrm -f conftest.i conftest.err conftest.$ac_ext
4087169a0819Smrgif $ac_preproc_ok; then :
4088169a0819Smrg
4089fb23d3a8Smrgelse
4090169a0819Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4091fb23d3a8Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4092169a0819Smrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4093169a0819SmrgSee \`config.log' for more details" "$LINENO" 5; }
4094fb23d3a8Smrgfi
4095fb23d3a8Smrg
4096fb23d3a8Smrgac_ext=c
4097fb23d3a8Smrgac_cpp='$CPP $CPPFLAGS'
4098fb23d3a8Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4099fb23d3a8Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4100fb23d3a8Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
4101fb23d3a8Smrg
4102fb23d3a8Smrg
4103169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4104fb23d3a8Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4105169a0819Smrgif ${ac_cv_path_GREP+:} false; then :
4106fb23d3a8Smrg  $as_echo_n "(cached) " >&6
4107fb23d3a8Smrgelse
4108fb23d3a8Smrg  if test -z "$GREP"; then
4109fb23d3a8Smrg  ac_path_GREP_found=false
4110fb23d3a8Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
4111fb23d3a8Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4112fb23d3a8Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4113fb23d3a8Smrgdo
4114fb23d3a8Smrg  IFS=$as_save_IFS
4115fb23d3a8Smrg  test -z "$as_dir" && as_dir=.
4116169a0819Smrg    for ac_prog in grep ggrep; do
4117fb23d3a8Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4118fb23d3a8Smrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4119fb23d3a8Smrg      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4120fb23d3a8Smrg# Check for GNU ac_path_GREP and select it if it is found.
4121fb23d3a8Smrg  # Check for GNU $ac_path_GREP
4122fb23d3a8Smrgcase `"$ac_path_GREP" --version 2>&1` in
4123fb23d3a8Smrg*GNU*)
4124fb23d3a8Smrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4125fb23d3a8Smrg*)
4126fb23d3a8Smrg  ac_count=0
4127fb23d3a8Smrg  $as_echo_n 0123456789 >"conftest.in"
4128fb23d3a8Smrg  while :
4129fb23d3a8Smrg  do
4130fb23d3a8Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
4131fb23d3a8Smrg    mv "conftest.tmp" "conftest.in"
4132fb23d3a8Smrg    cp "conftest.in" "conftest.nl"
4133fb23d3a8Smrg    $as_echo 'GREP' >> "conftest.nl"
4134fb23d3a8Smrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4135fb23d3a8Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4136169a0819Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
4137fb23d3a8Smrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4138fb23d3a8Smrg      # Best one so far, save it but keep looking for a better one
4139fb23d3a8Smrg      ac_cv_path_GREP="$ac_path_GREP"
4140fb23d3a8Smrg      ac_path_GREP_max=$ac_count
4141fb23d3a8Smrg    fi
4142fb23d3a8Smrg    # 10*(2^10) chars as input seems more than enough
4143fb23d3a8Smrg    test $ac_count -gt 10 && break
4144fb23d3a8Smrg  done
4145fb23d3a8Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4146fb23d3a8Smrgesac
4147fb23d3a8Smrg
4148fb23d3a8Smrg      $ac_path_GREP_found && break 3
4149fb23d3a8Smrg    done
4150fb23d3a8Smrg  done
4151169a0819Smrg  done
4152fb23d3a8SmrgIFS=$as_save_IFS
4153fb23d3a8Smrg  if test -z "$ac_cv_path_GREP"; then
4154169a0819Smrg    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4155fb23d3a8Smrg  fi
4156fb23d3a8Smrgelse
4157fb23d3a8Smrg  ac_cv_path_GREP=$GREP
4158fb23d3a8Smrgfi
4159fb23d3a8Smrg
4160fb23d3a8Smrgfi
4161169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4162fb23d3a8Smrg$as_echo "$ac_cv_path_GREP" >&6; }
4163fb23d3a8Smrg GREP="$ac_cv_path_GREP"
4164fb23d3a8Smrg
4165fb23d3a8Smrg
4166169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4167fb23d3a8Smrg$as_echo_n "checking for egrep... " >&6; }
4168169a0819Smrgif ${ac_cv_path_EGREP+:} false; then :
4169fb23d3a8Smrg  $as_echo_n "(cached) " >&6
4170fb23d3a8Smrgelse
4171fb23d3a8Smrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4172fb23d3a8Smrg   then ac_cv_path_EGREP="$GREP -E"
4173fb23d3a8Smrg   else
4174fb23d3a8Smrg     if test -z "$EGREP"; then
4175fb23d3a8Smrg  ac_path_EGREP_found=false
4176fb23d3a8Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
4177fb23d3a8Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178fb23d3a8Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4179fb23d3a8Smrgdo
4180fb23d3a8Smrg  IFS=$as_save_IFS
4181fb23d3a8Smrg  test -z "$as_dir" && as_dir=.
4182169a0819Smrg    for ac_prog in egrep; do
4183fb23d3a8Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4184fb23d3a8Smrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4185fb23d3a8Smrg      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4186fb23d3a8Smrg# Check for GNU ac_path_EGREP and select it if it is found.
4187fb23d3a8Smrg  # Check for GNU $ac_path_EGREP
4188fb23d3a8Smrgcase `"$ac_path_EGREP" --version 2>&1` in
4189fb23d3a8Smrg*GNU*)
4190fb23d3a8Smrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4191fb23d3a8Smrg*)
4192fb23d3a8Smrg  ac_count=0
4193fb23d3a8Smrg  $as_echo_n 0123456789 >"conftest.in"
4194fb23d3a8Smrg  while :
4195fb23d3a8Smrg  do
4196fb23d3a8Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
4197fb23d3a8Smrg    mv "conftest.tmp" "conftest.in"
4198fb23d3a8Smrg    cp "conftest.in" "conftest.nl"
4199fb23d3a8Smrg    $as_echo 'EGREP' >> "conftest.nl"
4200fb23d3a8Smrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4201fb23d3a8Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4202169a0819Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
4203fb23d3a8Smrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4204fb23d3a8Smrg      # Best one so far, save it but keep looking for a better one
4205fb23d3a8Smrg      ac_cv_path_EGREP="$ac_path_EGREP"
4206fb23d3a8Smrg      ac_path_EGREP_max=$ac_count
4207fb23d3a8Smrg    fi
4208fb23d3a8Smrg    # 10*(2^10) chars as input seems more than enough
4209fb23d3a8Smrg    test $ac_count -gt 10 && break
4210fb23d3a8Smrg  done
4211fb23d3a8Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4212fb23d3a8Smrgesac
4213fb23d3a8Smrg
4214fb23d3a8Smrg      $ac_path_EGREP_found && break 3
4215fb23d3a8Smrg    done
4216fb23d3a8Smrg  done
4217169a0819Smrg  done
4218fb23d3a8SmrgIFS=$as_save_IFS
4219fb23d3a8Smrg  if test -z "$ac_cv_path_EGREP"; then
4220169a0819Smrg    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4221fb23d3a8Smrg  fi
4222fb23d3a8Smrgelse
4223fb23d3a8Smrg  ac_cv_path_EGREP=$EGREP
4224fb23d3a8Smrgfi
4225fb23d3a8Smrg
4226fb23d3a8Smrg   fi
4227fb23d3a8Smrgfi
4228169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4229fb23d3a8Smrg$as_echo "$ac_cv_path_EGREP" >&6; }
4230fb23d3a8Smrg EGREP="$ac_cv_path_EGREP"
4231fb23d3a8Smrg
4232fb23d3a8Smrg
4233169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4234fb23d3a8Smrg$as_echo_n "checking for ANSI C header files... " >&6; }
4235169a0819Smrgif ${ac_cv_header_stdc+:} false; then :
4236fb23d3a8Smrg  $as_echo_n "(cached) " >&6
4237fb23d3a8Smrgelse
4238169a0819Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239fb23d3a8Smrg/* end confdefs.h.  */
4240fb23d3a8Smrg#include <stdlib.h>
4241fb23d3a8Smrg#include <stdarg.h>
4242fb23d3a8Smrg#include <string.h>
4243fb23d3a8Smrg#include <float.h>
4244fb23d3a8Smrg
4245fb23d3a8Smrgint
4246fb23d3a8Smrgmain ()
4247fb23d3a8Smrg{
4248fb23d3a8Smrg
4249fb23d3a8Smrg  ;
4250fb23d3a8Smrg  return 0;
4251fb23d3a8Smrg}
4252fb23d3a8Smrg_ACEOF
4253169a0819Smrgif ac_fn_c_try_compile "$LINENO"; then :
4254fb23d3a8Smrg  ac_cv_header_stdc=yes
4255fb23d3a8Smrgelse
4256169a0819Smrg  ac_cv_header_stdc=no
4257fb23d3a8Smrgfi
4258fb23d3a8Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4259fb23d3a8Smrg
4260fb23d3a8Smrgif test $ac_cv_header_stdc = yes; then
4261fb23d3a8Smrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4262169a0819Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4263fb23d3a8Smrg/* end confdefs.h.  */
4264fb23d3a8Smrg#include <string.h>
4265fb23d3a8Smrg
4266fb23d3a8Smrg_ACEOF
4267fb23d3a8Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4268169a0819Smrg  $EGREP "memchr" >/dev/null 2>&1; then :
4269169a0819Smrg
4270fb23d3a8Smrgelse
4271fb23d3a8Smrg  ac_cv_header_stdc=no
4272fb23d3a8Smrgfi
4273fb23d3a8Smrgrm -f conftest*
4274fb23d3a8Smrg
4275fb23d3a8Smrgfi
4276fb23d3a8Smrg
4277fb23d3a8Smrgif test $ac_cv_header_stdc = yes; then
4278fb23d3a8Smrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4279169a0819Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280fb23d3a8Smrg/* end confdefs.h.  */
4281fb23d3a8Smrg#include <stdlib.h>
4282fb23d3a8Smrg
4283fb23d3a8Smrg_ACEOF
4284fb23d3a8Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4285169a0819Smrg  $EGREP "free" >/dev/null 2>&1; then :
4286169a0819Smrg
4287fb23d3a8Smrgelse
4288fb23d3a8Smrg  ac_cv_header_stdc=no
4289fb23d3a8Smrgfi
4290fb23d3a8Smrgrm -f conftest*
4291fb23d3a8Smrg
4292fb23d3a8Smrgfi
4293fb23d3a8Smrg
4294fb23d3a8Smrgif test $ac_cv_header_stdc = yes; then
4295fb23d3a8Smrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4296169a0819Smrg  if test "$cross_compiling" = yes; then :
4297fb23d3a8Smrg  :
4298fb23d3a8Smrgelse
4299169a0819Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4300fb23d3a8Smrg/* end confdefs.h.  */
4301fb23d3a8Smrg#include <ctype.h>
4302fb23d3a8Smrg#include <stdlib.h>
4303fb23d3a8Smrg#if ((' ' & 0x0FF) == 0x020)
4304fb23d3a8Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4305fb23d3a8Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4306fb23d3a8Smrg#else
4307fb23d3a8Smrg# define ISLOWER(c) \
4308fb23d3a8Smrg		   (('a' <= (c) && (c) <= 'i') \
4309fb23d3a8Smrg		     || ('j' <= (c) && (c) <= 'r') \
4310fb23d3a8Smrg		     || ('s' <= (c) && (c) <= 'z'))
4311fb23d3a8Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4312fb23d3a8Smrg#endif
4313fb23d3a8Smrg
4314fb23d3a8Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4315fb23d3a8Smrgint
4316fb23d3a8Smrgmain ()
4317fb23d3a8Smrg{
4318fb23d3a8Smrg  int i;
4319fb23d3a8Smrg  for (i = 0; i < 256; i++)
4320fb23d3a8Smrg    if (XOR (islower (i), ISLOWER (i))
4321fb23d3a8Smrg	|| toupper (i) != TOUPPER (i))
4322fb23d3a8Smrg      return 2;
4323fb23d3a8Smrg  return 0;
4324fb23d3a8Smrg}
4325fb23d3a8Smrg_ACEOF
4326169a0819Smrgif ac_fn_c_try_run "$LINENO"; then :
4327fb23d3a8Smrg
4328169a0819Smrgelse
4329169a0819Smrg  ac_cv_header_stdc=no
4330fb23d3a8Smrgfi
4331169a0819Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4332169a0819Smrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
4333fb23d3a8Smrgfi
4334fb23d3a8Smrg
4335fb23d3a8Smrgfi
4336fb23d3a8Smrgfi
4337169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4338fb23d3a8Smrg$as_echo "$ac_cv_header_stdc" >&6; }
4339fb23d3a8Smrgif test $ac_cv_header_stdc = yes; then
4340fb23d3a8Smrg
4341169a0819Smrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4342fb23d3a8Smrg
4343fb23d3a8Smrgfi
4344fb23d3a8Smrg
4345fb23d3a8Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4346169a0819Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4347169a0819Smrg		  inttypes.h stdint.h unistd.h
4348169a0819Smrgdo :
4349169a0819Smrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4350169a0819Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4351169a0819Smrg"
4352169a0819Smrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4353169a0819Smrg  cat >>confdefs.h <<_ACEOF
4354169a0819Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4355169a0819Smrg_ACEOF
4356fb23d3a8Smrg
4357169a0819Smrgfi
4358fb23d3a8Smrg
4359169a0819Smrgdone
4360fb23d3a8Smrg
4361fb23d3a8Smrg
4362fb23d3a8Smrg
4363fb23d3a8Smrg
43643544ea2eSmrg
43653544ea2eSmrg
43663544ea2eSmrgac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
43673544ea2eSmrgif test "x$ac_cv_have_decl___clang__" = xyes; then :
43683544ea2eSmrg  CLANGCC="yes"
43693544ea2eSmrgelse
43703544ea2eSmrg  CLANGCC="no"
43713544ea2eSmrgfi
43723544ea2eSmrg
43733544ea2eSmrgac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
43743544ea2eSmrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
43753544ea2eSmrg  INTELCC="yes"
43763544ea2eSmrgelse
43773544ea2eSmrg  INTELCC="no"
43783544ea2eSmrgfi
43793544ea2eSmrg
43803544ea2eSmrgac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
43813544ea2eSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
43823544ea2eSmrg  SUNCC="yes"
43833544ea2eSmrgelse
43843544ea2eSmrg  SUNCC="no"
43853544ea2eSmrgfi
43863544ea2eSmrg
43873544ea2eSmrg
43883544ea2eSmrg
43893544ea2eSmrg
4390169a0819Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4391169a0819Smrg	if test -n "$ac_tool_prefix"; then
4392169a0819Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4393169a0819Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4394169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4395169a0819Smrg$as_echo_n "checking for $ac_word... " >&6; }
4396169a0819Smrgif ${ac_cv_path_PKG_CONFIG+:} false; then :
4397fb23d3a8Smrg  $as_echo_n "(cached) " >&6
4398fb23d3a8Smrgelse
4399169a0819Smrg  case $PKG_CONFIG in
4400169a0819Smrg  [\\/]* | ?:[\\/]*)
4401169a0819Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4402169a0819Smrg  ;;
4403169a0819Smrg  *)
4404169a0819Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405169a0819Smrgfor as_dir in $PATH
4406169a0819Smrgdo
4407169a0819Smrg  IFS=$as_save_IFS
4408169a0819Smrg  test -z "$as_dir" && as_dir=.
4409169a0819Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4410169a0819Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4411169a0819Smrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4412169a0819Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4413169a0819Smrg    break 2
4414169a0819Smrg  fi
4415169a0819Smrgdone
4416169a0819Smrg  done
4417169a0819SmrgIFS=$as_save_IFS
4418fb23d3a8Smrg
4419169a0819Smrg  ;;
4420fb23d3a8Smrgesac
4421169a0819Smrgfi
4422169a0819SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
4423169a0819Smrgif test -n "$PKG_CONFIG"; then
4424169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4425169a0819Smrg$as_echo "$PKG_CONFIG" >&6; }
4426fb23d3a8Smrgelse
4427169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4428169a0819Smrg$as_echo "no" >&6; }
4429fb23d3a8Smrgfi
4430fb23d3a8Smrg
4431fb23d3a8Smrg
4432fb23d3a8Smrgfi
4433169a0819Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
4434169a0819Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
4435169a0819Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
4436169a0819Smrgset dummy pkg-config; ac_word=$2
4437169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4438169a0819Smrg$as_echo_n "checking for $ac_word... " >&6; }
4439169a0819Smrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4440fb23d3a8Smrg  $as_echo_n "(cached) " >&6
4441fb23d3a8Smrgelse
4442169a0819Smrg  case $ac_pt_PKG_CONFIG in
4443169a0819Smrg  [\\/]* | ?:[\\/]*)
4444169a0819Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4445169a0819Smrg  ;;
4446169a0819Smrg  *)
4447169a0819Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448169a0819Smrgfor as_dir in $PATH
4449fb23d3a8Smrgdo
4450169a0819Smrg  IFS=$as_save_IFS
4451169a0819Smrg  test -z "$as_dir" && as_dir=.
4452169a0819Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4453169a0819Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4454169a0819Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4455169a0819Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4456169a0819Smrg    break 2
4457169a0819Smrg  fi
4458169a0819Smrgdone
4459169a0819Smrg  done
4460169a0819SmrgIFS=$as_save_IFS
4461169a0819Smrg
4462169a0819Smrg  ;;
4463fb23d3a8Smrgesac
4464169a0819Smrgfi
4465169a0819Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4466169a0819Smrgif test -n "$ac_pt_PKG_CONFIG"; then
4467169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4468169a0819Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4469fb23d3a8Smrgelse
4470169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4471169a0819Smrg$as_echo "no" >&6; }
4472fb23d3a8Smrgfi
4473fb23d3a8Smrg
4474169a0819Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
4475169a0819Smrg    PKG_CONFIG=""
4476169a0819Smrg  else
4477169a0819Smrg    case $cross_compiling:$ac_tool_warned in
4478169a0819Smrgyes:)
4479169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4480169a0819Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4481169a0819Smrgac_tool_warned=yes ;;
4482fb23d3a8Smrgesac
4483169a0819Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
4484169a0819Smrg  fi
4485169a0819Smrgelse
4486169a0819Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4487169a0819Smrgfi
4488fb23d3a8Smrg
4489169a0819Smrgfi
4490169a0819Smrgif test -n "$PKG_CONFIG"; then
4491169a0819Smrg	_pkg_min_version=0.9.0
4492169a0819Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4493169a0819Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4494169a0819Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4495169a0819Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4496169a0819Smrg$as_echo "yes" >&6; }
4497169a0819Smrg	else
4498169a0819Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4499169a0819Smrg$as_echo "no" >&6; }
4500169a0819Smrg		PKG_CONFIG=""
4501169a0819Smrg	fi
4502fb23d3a8Smrg
4503169a0819Smrgfi
4504fb23d3a8Smrg# Make sure we can run config.sub.
4505fb23d3a8Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4506169a0819Smrg  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4507fb23d3a8Smrg
4508169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4509fb23d3a8Smrg$as_echo_n "checking build system type... " >&6; }
4510169a0819Smrgif ${ac_cv_build+:} false; then :
4511fb23d3a8Smrg  $as_echo_n "(cached) " >&6
4512fb23d3a8Smrgelse
4513fb23d3a8Smrg  ac_build_alias=$build_alias
4514fb23d3a8Smrgtest "x$ac_build_alias" = x &&
4515fb23d3a8Smrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4516fb23d3a8Smrgtest "x$ac_build_alias" = x &&
4517169a0819Smrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4518fb23d3a8Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4519169a0819Smrg  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4520fb23d3a8Smrg
4521fb23d3a8Smrgfi
4522169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4523fb23d3a8Smrg$as_echo "$ac_cv_build" >&6; }
4524fb23d3a8Smrgcase $ac_cv_build in
4525fb23d3a8Smrg*-*-*) ;;
4526169a0819Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4527fb23d3a8Smrgesac
4528fb23d3a8Smrgbuild=$ac_cv_build
4529fb23d3a8Smrgac_save_IFS=$IFS; IFS='-'
4530fb23d3a8Smrgset x $ac_cv_build
4531fb23d3a8Smrgshift
4532fb23d3a8Smrgbuild_cpu=$1
4533fb23d3a8Smrgbuild_vendor=$2
4534fb23d3a8Smrgshift; shift
4535fb23d3a8Smrg# Remember, the first character of IFS is used to create $*,
4536fb23d3a8Smrg# except with old shells:
4537fb23d3a8Smrgbuild_os=$*
4538fb23d3a8SmrgIFS=$ac_save_IFS
4539fb23d3a8Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4540fb23d3a8Smrg
4541fb23d3a8Smrg
4542169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4543fb23d3a8Smrg$as_echo_n "checking host system type... " >&6; }
4544169a0819Smrgif ${ac_cv_host+:} false; then :
4545fb23d3a8Smrg  $as_echo_n "(cached) " >&6
4546fb23d3a8Smrgelse
4547fb23d3a8Smrg  if test "x$host_alias" = x; then
4548fb23d3a8Smrg  ac_cv_host=$ac_cv_build
4549fb23d3a8Smrgelse
4550fb23d3a8Smrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4551169a0819Smrg    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4552fb23d3a8Smrgfi
4553fb23d3a8Smrg
4554fb23d3a8Smrgfi
4555169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4556fb23d3a8Smrg$as_echo "$ac_cv_host" >&6; }
4557fb23d3a8Smrgcase $ac_cv_host in
4558fb23d3a8Smrg*-*-*) ;;
4559169a0819Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4560fb23d3a8Smrgesac
4561fb23d3a8Smrghost=$ac_cv_host
4562fb23d3a8Smrgac_save_IFS=$IFS; IFS='-'
4563fb23d3a8Smrgset x $ac_cv_host
4564fb23d3a8Smrgshift
4565fb23d3a8Smrghost_cpu=$1
4566fb23d3a8Smrghost_vendor=$2
4567fb23d3a8Smrgshift; shift
4568fb23d3a8Smrg# Remember, the first character of IFS is used to create $*,
4569fb23d3a8Smrg# except with old shells:
4570fb23d3a8Smrghost_os=$*
4571fb23d3a8SmrgIFS=$ac_save_IFS
4572fb23d3a8Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4573fb23d3a8Smrg
4574fb23d3a8Smrg
4575169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4576169a0819Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4577169a0819Smrgif ${ac_cv_path_SED+:} false; then :
4578fb23d3a8Smrg  $as_echo_n "(cached) " >&6
4579fb23d3a8Smrgelse
4580169a0819Smrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4581169a0819Smrg     for ac_i in 1 2 3 4 5 6 7; do
4582169a0819Smrg       ac_script="$ac_script$as_nl$ac_script"
4583169a0819Smrg     done
4584169a0819Smrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4585169a0819Smrg     { ac_script=; unset ac_script;}
4586169a0819Smrg     if test -z "$SED"; then
4587169a0819Smrg  ac_path_SED_found=false
4588169a0819Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
4589169a0819Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590169a0819Smrgfor as_dir in $PATH
4591169a0819Smrgdo
4592169a0819Smrg  IFS=$as_save_IFS
4593169a0819Smrg  test -z "$as_dir" && as_dir=.
4594169a0819Smrg    for ac_prog in sed gsed; do
4595169a0819Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4596169a0819Smrg      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4597169a0819Smrg      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4598169a0819Smrg# Check for GNU ac_path_SED and select it if it is found.
4599169a0819Smrg  # Check for GNU $ac_path_SED
4600169a0819Smrgcase `"$ac_path_SED" --version 2>&1` in
4601169a0819Smrg*GNU*)
4602169a0819Smrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4603169a0819Smrg*)
4604169a0819Smrg  ac_count=0
4605169a0819Smrg  $as_echo_n 0123456789 >"conftest.in"
4606169a0819Smrg  while :
4607169a0819Smrg  do
4608169a0819Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
4609169a0819Smrg    mv "conftest.tmp" "conftest.in"
4610169a0819Smrg    cp "conftest.in" "conftest.nl"
4611169a0819Smrg    $as_echo '' >> "conftest.nl"
4612169a0819Smrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4613169a0819Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4614169a0819Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
4615169a0819Smrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
4616169a0819Smrg      # Best one so far, save it but keep looking for a better one
4617169a0819Smrg      ac_cv_path_SED="$ac_path_SED"
4618169a0819Smrg      ac_path_SED_max=$ac_count
4619169a0819Smrg    fi
4620169a0819Smrg    # 10*(2^10) chars as input seems more than enough
4621169a0819Smrg    test $ac_count -gt 10 && break
4622169a0819Smrg  done
4623169a0819Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4624fb23d3a8Smrgesac
4625169a0819Smrg
4626169a0819Smrg      $ac_path_SED_found && break 3
4627169a0819Smrg    done
4628169a0819Smrg  done
4629169a0819Smrg  done
4630169a0819SmrgIFS=$as_save_IFS
4631169a0819Smrg  if test -z "$ac_cv_path_SED"; then
4632169a0819Smrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4633169a0819Smrg  fi
4634fb23d3a8Smrgelse
4635169a0819Smrg  ac_cv_path_SED=$SED
4636fb23d3a8Smrgfi
4637fb23d3a8Smrg
4638fb23d3a8Smrgfi
4639169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4640169a0819Smrg$as_echo "$ac_cv_path_SED" >&6; }
4641169a0819Smrg SED="$ac_cv_path_SED"
4642169a0819Smrg  rm -f conftest.sed
4643169a0819Smrg
4644169a0819Smrg
4645169a0819Smrg
4646169a0819Smrg
4647169a0819Smrg
46483544ea2eSmrg
46493544ea2eSmrg# Check whether --enable-selective-werror was given.
46503544ea2eSmrgif test "${enable_selective_werror+set}" = set; then :
46513544ea2eSmrg  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4652fb23d3a8Smrgelse
46533544ea2eSmrg  SELECTIVE_WERROR=yes
4654fb23d3a8Smrgfi
4655fb23d3a8Smrg
46563544ea2eSmrg
46573544ea2eSmrg
46583544ea2eSmrg
46593544ea2eSmrg
46603544ea2eSmrg# -v is too short to test reliably with XORG_TESTSET_CFLAG
46613544ea2eSmrgif test "x$SUNCC" = "xyes"; then
46623544ea2eSmrg    BASE_CFLAGS="-v"
46633544ea2eSmrgelse
46643544ea2eSmrg    BASE_CFLAGS=""
4665fb23d3a8Smrgfi
4666fb23d3a8Smrg
46673544ea2eSmrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4668fb23d3a8Smrg
4669fb23d3a8Smrg
4670fb23d3a8Smrg
4671fb23d3a8Smrg
4672fb23d3a8Smrg
4673fb23d3a8Smrg
4674fb23d3a8Smrg
46753544ea2eSmrg
46763544ea2eSmrg
46773544ea2eSmrg
46783544ea2eSmrg
46793544ea2eSmrg
46803544ea2eSmrg
46813544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
46823544ea2eSmrg
46833544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
46843544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
46853544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
46863544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
46873544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
46883544ea2eSmrg  $as_echo_n "(cached) " >&6
4689fb23d3a8Smrgelse
46903544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46913544ea2eSmrg/* end confdefs.h.  */
46923544ea2eSmrgint i;
46933544ea2eSmrg_ACEOF
46943544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
46953544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
46963544ea2eSmrgelse
46973544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
46983544ea2eSmrgfi
46993544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47003544ea2eSmrgfi
47013544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
47023544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
47033544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
47043544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
4705fb23d3a8Smrgfi
4706fb23d3a8Smrg
47073544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
47083544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
47093544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4710fb23d3a8Smrg	fi
47113544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
47123544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
47133544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
47143544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
47153544ea2eSmrg  $as_echo_n "(cached) " >&6
47163544ea2eSmrgelse
47173544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47183544ea2eSmrg/* end confdefs.h.  */
47193544ea2eSmrgint i;
47203544ea2eSmrg_ACEOF
47213544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
47223544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
47233544ea2eSmrgelse
47243544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
47253544ea2eSmrgfi
47263544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47273544ea2eSmrgfi
47283544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
47293544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
47303544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
47313544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
4732fb23d3a8Smrgfi
4733fb23d3a8Smrg
47343544ea2eSmrgfound="no"
4735fb23d3a8Smrg
47363544ea2eSmrg	if test $found = "no" ; then
47373544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
47383544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
47393544ea2eSmrg		fi
4740fb23d3a8Smrg
47413544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
47423544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
47433544ea2eSmrg		fi
4744fb23d3a8Smrg
47453544ea2eSmrg		CFLAGS="$CFLAGS -Wall"
4746fb23d3a8Smrg
47473544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5
47483544ea2eSmrg$as_echo_n "checking if $CC supports-Wall... " >&6; }
47493544ea2eSmrg		cacheid=xorg_cv_cc_flag__Wall
47503544ea2eSmrg		if eval \${$cacheid+:} false; then :
47513544ea2eSmrg  $as_echo_n "(cached) " >&6
47523544ea2eSmrgelse
47533544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47543544ea2eSmrg/* end confdefs.h.  */
47553544ea2eSmrgint i;
47563544ea2eSmrgint
47573544ea2eSmrgmain ()
47583544ea2eSmrg{
4759fb23d3a8Smrg
47603544ea2eSmrg  ;
47613544ea2eSmrg  return 0;
47623544ea2eSmrg}
4763fb23d3a8Smrg_ACEOF
47643544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
47653544ea2eSmrg  eval $cacheid=yes
47663544ea2eSmrgelse
47673544ea2eSmrg  eval $cacheid=no
47683544ea2eSmrgfi
47693544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
47703544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
47713544ea2eSmrgfi
4772fb23d3a8Smrg
47733544ea2eSmrg
47743544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
47753544ea2eSmrg
47763544ea2eSmrg		eval supported=\$$cacheid
47773544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
47783544ea2eSmrg$as_echo "$supported" >&6; }
47793544ea2eSmrg		if test "$supported" = "yes" ; then
47803544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wall"
47813544ea2eSmrg			found="yes"
47823544ea2eSmrg		fi
4783fb23d3a8Smrg	fi
4784fb23d3a8Smrg
4785fb23d3a8Smrg
4786fb23d3a8Smrg
4787fb23d3a8Smrg
4788fb23d3a8Smrg
4789169a0819Smrg
4790169a0819Smrg
4791169a0819Smrg
4792169a0819Smrg
4793fb23d3a8Smrg
4794fb23d3a8Smrg
4795fb23d3a8Smrg
4796fb23d3a8Smrg
4797fb23d3a8Smrg
4798fb23d3a8Smrg
47993544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
4800fb23d3a8Smrg
48013544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
48023544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
48033544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
48043544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
48053544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
48063544ea2eSmrg  $as_echo_n "(cached) " >&6
48073544ea2eSmrgelse
48083544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48093544ea2eSmrg/* end confdefs.h.  */
48103544ea2eSmrgint i;
48113544ea2eSmrg_ACEOF
48123544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
48133544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
48143544ea2eSmrgelse
48153544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
4816fb23d3a8Smrgfi
48173544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4818fb23d3a8Smrgfi
48193544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
48203544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
48213544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
48223544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
4823fb23d3a8Smrgfi
4824fb23d3a8Smrg
48253544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
48263544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
48273544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
48283544ea2eSmrg	fi
48293544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
48303544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
48313544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
48323544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
48333544ea2eSmrg  $as_echo_n "(cached) " >&6
48343544ea2eSmrgelse
48353544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48363544ea2eSmrg/* end confdefs.h.  */
48373544ea2eSmrgint i;
48383544ea2eSmrg_ACEOF
48393544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
48403544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
48413544ea2eSmrgelse
48423544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
4843fb23d3a8Smrgfi
48443544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48453544ea2eSmrgfi
48463544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
48473544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
48483544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
48493544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
4850fb23d3a8Smrgfi
4851fb23d3a8Smrg
48523544ea2eSmrgfound="no"
48533544ea2eSmrg
48543544ea2eSmrg	if test $found = "no" ; then
48553544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
48563544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
48573544ea2eSmrg		fi
48583544ea2eSmrg
48593544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
48603544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
48613544ea2eSmrg		fi
48623544ea2eSmrg
48633544ea2eSmrg		CFLAGS="$CFLAGS -Wpointer-arith"
48643544ea2eSmrg
48653544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5
48663544ea2eSmrg$as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; }
48673544ea2eSmrg		cacheid=xorg_cv_cc_flag__Wpointer_arith
48683544ea2eSmrg		if eval \${$cacheid+:} false; then :
48693544ea2eSmrg  $as_echo_n "(cached) " >&6
48703544ea2eSmrgelse
48713544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48723544ea2eSmrg/* end confdefs.h.  */
48733544ea2eSmrgint i;
48743544ea2eSmrgint
48753544ea2eSmrgmain ()
48763544ea2eSmrg{
48773544ea2eSmrg
48783544ea2eSmrg  ;
48793544ea2eSmrg  return 0;
48803544ea2eSmrg}
48813544ea2eSmrg_ACEOF
48823544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
48833544ea2eSmrg  eval $cacheid=yes
48843544ea2eSmrgelse
48853544ea2eSmrg  eval $cacheid=no
4886fb23d3a8Smrgfi
48873544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
48883544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
4889fb23d3a8Smrgfi
4890fb23d3a8Smrg
4891fb23d3a8Smrg
48923544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
4893fb23d3a8Smrg
48943544ea2eSmrg		eval supported=\$$cacheid
48953544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
48963544ea2eSmrg$as_echo "$supported" >&6; }
48973544ea2eSmrg		if test "$supported" = "yes" ; then
48983544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
48993544ea2eSmrg			found="yes"
49003544ea2eSmrg		fi
49013544ea2eSmrg	fi
4902fb23d3a8Smrg
4903fb23d3a8Smrg
4904fb23d3a8Smrg
4905fb23d3a8Smrg
4906fb23d3a8Smrg
4907fb23d3a8Smrg
4908fb23d3a8Smrg
4909fb23d3a8Smrg
4910fb23d3a8Smrg
4911fb23d3a8Smrg
4912fb23d3a8Smrg
4913fb23d3a8Smrg
4914fb23d3a8Smrg
49153544ea2eSmrg
49163544ea2eSmrg
49173544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
49183544ea2eSmrg
49193544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
49203544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
49213544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
49223544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
49233544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
49243544ea2eSmrg  $as_echo_n "(cached) " >&6
49253544ea2eSmrgelse
49263544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49273544ea2eSmrg/* end confdefs.h.  */
49283544ea2eSmrgint i;
49293544ea2eSmrg_ACEOF
49303544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
49313544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
49323544ea2eSmrgelse
49333544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
49343544ea2eSmrgfi
49353544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49363544ea2eSmrgfi
49373544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
49383544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
49393544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
49403544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
49413544ea2eSmrgfi
49423544ea2eSmrg
49433544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
49443544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
49453544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
49463544ea2eSmrg	fi
49473544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
49483544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
49493544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
49503544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
49513544ea2eSmrg  $as_echo_n "(cached) " >&6
49523544ea2eSmrgelse
49533544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49543544ea2eSmrg/* end confdefs.h.  */
49553544ea2eSmrgint i;
49563544ea2eSmrg_ACEOF
49573544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
49583544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
49593544ea2eSmrgelse
49603544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
49613544ea2eSmrgfi
49623544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49633544ea2eSmrgfi
49643544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
49653544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
49663544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
49673544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
49683544ea2eSmrgfi
49693544ea2eSmrg
49703544ea2eSmrgfound="no"
49713544ea2eSmrg
49723544ea2eSmrg	if test $found = "no" ; then
49733544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
49743544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
49753544ea2eSmrg		fi
49763544ea2eSmrg
49773544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
49783544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
49793544ea2eSmrg		fi
49803544ea2eSmrg
49813544ea2eSmrg		CFLAGS="$CFLAGS -Wmissing-declarations"
49823544ea2eSmrg
49833544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5
49843544ea2eSmrg$as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; }
49853544ea2eSmrg		cacheid=xorg_cv_cc_flag__Wmissing_declarations
49863544ea2eSmrg		if eval \${$cacheid+:} false; then :
49873544ea2eSmrg  $as_echo_n "(cached) " >&6
49883544ea2eSmrgelse
49893544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49903544ea2eSmrg/* end confdefs.h.  */
49913544ea2eSmrgint i;
49923544ea2eSmrgint
49933544ea2eSmrgmain ()
49943544ea2eSmrg{
49953544ea2eSmrg
49963544ea2eSmrg  ;
49973544ea2eSmrg  return 0;
49983544ea2eSmrg}
49993544ea2eSmrg_ACEOF
50003544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
50013544ea2eSmrg  eval $cacheid=yes
50023544ea2eSmrgelse
50033544ea2eSmrg  eval $cacheid=no
50043544ea2eSmrgfi
50053544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
50063544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
50073544ea2eSmrgfi
50083544ea2eSmrg
50093544ea2eSmrg
50103544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
50113544ea2eSmrg
50123544ea2eSmrg		eval supported=\$$cacheid
50133544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
50143544ea2eSmrg$as_echo "$supported" >&6; }
50153544ea2eSmrg		if test "$supported" = "yes" ; then
50163544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
50173544ea2eSmrg			found="yes"
50183544ea2eSmrg		fi
50193544ea2eSmrg	fi
50203544ea2eSmrg
50213544ea2eSmrg
50223544ea2eSmrg
50233544ea2eSmrg
50243544ea2eSmrg
50253544ea2eSmrg
50263544ea2eSmrg
50273544ea2eSmrg
50283544ea2eSmrg
50293544ea2eSmrg
50303544ea2eSmrg
50313544ea2eSmrg
50323544ea2eSmrg
50333544ea2eSmrg
50343544ea2eSmrg
50353544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
50363544ea2eSmrg
50373544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
50383544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
50393544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
50403544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
50413544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
50423544ea2eSmrg  $as_echo_n "(cached) " >&6
50433544ea2eSmrgelse
50443544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50453544ea2eSmrg/* end confdefs.h.  */
50463544ea2eSmrgint i;
50473544ea2eSmrg_ACEOF
50483544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
50493544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
50503544ea2eSmrgelse
50513544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
50523544ea2eSmrgfi
50533544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50543544ea2eSmrgfi
50553544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
50563544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
50573544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
50583544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
50593544ea2eSmrgfi
50603544ea2eSmrg
50613544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
50623544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
50633544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
50643544ea2eSmrg	fi
50653544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
50663544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
50673544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
50683544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
50693544ea2eSmrg  $as_echo_n "(cached) " >&6
50703544ea2eSmrgelse
50713544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50723544ea2eSmrg/* end confdefs.h.  */
50733544ea2eSmrgint i;
50743544ea2eSmrg_ACEOF
50753544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
50763544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
50773544ea2eSmrgelse
50783544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
50793544ea2eSmrgfi
50803544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50813544ea2eSmrgfi
50823544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
50833544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
50843544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
50853544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
50863544ea2eSmrgfi
50873544ea2eSmrg
50883544ea2eSmrgfound="no"
50893544ea2eSmrg
50903544ea2eSmrg	if test $found = "no" ; then
50913544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
50923544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
50933544ea2eSmrg		fi
50943544ea2eSmrg
50953544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
50963544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
50973544ea2eSmrg		fi
50983544ea2eSmrg
50993544ea2eSmrg		CFLAGS="$CFLAGS -Wformat=2"
51003544ea2eSmrg
51013544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5
51023544ea2eSmrg$as_echo_n "checking if $CC supports-Wformat=2... " >&6; }
51033544ea2eSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
51043544ea2eSmrg		if eval \${$cacheid+:} false; then :
51053544ea2eSmrg  $as_echo_n "(cached) " >&6
51063544ea2eSmrgelse
51073544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51083544ea2eSmrg/* end confdefs.h.  */
51093544ea2eSmrgint i;
51103544ea2eSmrgint
51113544ea2eSmrgmain ()
51123544ea2eSmrg{
51133544ea2eSmrg
51143544ea2eSmrg  ;
51153544ea2eSmrg  return 0;
51163544ea2eSmrg}
51173544ea2eSmrg_ACEOF
51183544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
51193544ea2eSmrg  eval $cacheid=yes
51203544ea2eSmrgelse
51213544ea2eSmrg  eval $cacheid=no
51223544ea2eSmrgfi
51233544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
51243544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
51253544ea2eSmrgfi
51263544ea2eSmrg
51273544ea2eSmrg
51283544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
51293544ea2eSmrg
51303544ea2eSmrg		eval supported=\$$cacheid
51313544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
51323544ea2eSmrg$as_echo "$supported" >&6; }
51333544ea2eSmrg		if test "$supported" = "yes" ; then
51343544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
51353544ea2eSmrg			found="yes"
51363544ea2eSmrg		fi
51373544ea2eSmrg	fi
51383544ea2eSmrg
51393544ea2eSmrg	if test $found = "no" ; then
51403544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
51413544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
51423544ea2eSmrg		fi
51433544ea2eSmrg
51443544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
51453544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
51463544ea2eSmrg		fi
51473544ea2eSmrg
51483544ea2eSmrg		CFLAGS="$CFLAGS -Wformat"
51493544ea2eSmrg
51503544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5
51513544ea2eSmrg$as_echo_n "checking if $CC supports-Wformat... " >&6; }
51523544ea2eSmrg		cacheid=xorg_cv_cc_flag__Wformat
51533544ea2eSmrg		if eval \${$cacheid+:} false; then :
51543544ea2eSmrg  $as_echo_n "(cached) " >&6
51553544ea2eSmrgelse
51563544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51573544ea2eSmrg/* end confdefs.h.  */
51583544ea2eSmrgint i;
51593544ea2eSmrgint
51603544ea2eSmrgmain ()
51613544ea2eSmrg{
51623544ea2eSmrg
51633544ea2eSmrg  ;
51643544ea2eSmrg  return 0;
51653544ea2eSmrg}
51663544ea2eSmrg_ACEOF
51673544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
51683544ea2eSmrg  eval $cacheid=yes
51693544ea2eSmrgelse
51703544ea2eSmrg  eval $cacheid=no
51713544ea2eSmrgfi
51723544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
51733544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
51743544ea2eSmrgfi
51753544ea2eSmrg
51763544ea2eSmrg
51773544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
51783544ea2eSmrg
51793544ea2eSmrg		eval supported=\$$cacheid
51803544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
51813544ea2eSmrg$as_echo "$supported" >&6; }
51823544ea2eSmrg		if test "$supported" = "yes" ; then
51833544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
51843544ea2eSmrg			found="yes"
51853544ea2eSmrg		fi
51863544ea2eSmrg	fi
51873544ea2eSmrg
51883544ea2eSmrg
51893544ea2eSmrg
51903544ea2eSmrg
51913544ea2eSmrg
51923544ea2eSmrg
51933544ea2eSmrg
51943544ea2eSmrg
51953544ea2eSmrg
51963544ea2eSmrg
51973544ea2eSmrg
51983544ea2eSmrg
51993544ea2eSmrg
52003544ea2eSmrg
52013544ea2eSmrg
52023544ea2eSmrg
52033544ea2eSmrg
52043544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
52053544ea2eSmrg
52063544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
52073544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
52083544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
52093544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
52103544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
52113544ea2eSmrg  $as_echo_n "(cached) " >&6
52123544ea2eSmrgelse
52133544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52143544ea2eSmrg/* end confdefs.h.  */
52153544ea2eSmrgint i;
52163544ea2eSmrg_ACEOF
52173544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
52183544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
52193544ea2eSmrgelse
52203544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
52213544ea2eSmrgfi
52223544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52233544ea2eSmrgfi
52243544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
52253544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
52263544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
52273544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
52283544ea2eSmrgfi
52293544ea2eSmrg
52303544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
52313544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
52323544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
52333544ea2eSmrg	fi
52343544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
52353544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
52363544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
52373544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
52383544ea2eSmrg  $as_echo_n "(cached) " >&6
52393544ea2eSmrgelse
52403544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52413544ea2eSmrg/* end confdefs.h.  */
52423544ea2eSmrgint i;
52433544ea2eSmrg_ACEOF
52443544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
52453544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
52463544ea2eSmrgelse
52473544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
52483544ea2eSmrgfi
52493544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52503544ea2eSmrgfi
52513544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
52523544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
52533544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
52543544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
52553544ea2eSmrgfi
52563544ea2eSmrg
52573544ea2eSmrgfound="no"
52583544ea2eSmrg
52593544ea2eSmrg	if test $found = "no" ; then
52603544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
52613544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
52623544ea2eSmrg		fi
52633544ea2eSmrg
52643544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
52653544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
52663544ea2eSmrg		fi
52673544ea2eSmrg
52683544ea2eSmrg		CFLAGS="$CFLAGS -Wstrict-prototypes"
52693544ea2eSmrg
52703544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5
52713544ea2eSmrg$as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; }
52723544ea2eSmrg		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
52733544ea2eSmrg		if eval \${$cacheid+:} false; then :
52743544ea2eSmrg  $as_echo_n "(cached) " >&6
52753544ea2eSmrgelse
52763544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52773544ea2eSmrg/* end confdefs.h.  */
52783544ea2eSmrgint i;
52793544ea2eSmrgint
52803544ea2eSmrgmain ()
52813544ea2eSmrg{
52823544ea2eSmrg
52833544ea2eSmrg  ;
52843544ea2eSmrg  return 0;
52853544ea2eSmrg}
52863544ea2eSmrg_ACEOF
52873544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
52883544ea2eSmrg  eval $cacheid=yes
52893544ea2eSmrgelse
52903544ea2eSmrg  eval $cacheid=no
52913544ea2eSmrgfi
52923544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
52933544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
52943544ea2eSmrgfi
52953544ea2eSmrg
52963544ea2eSmrg
52973544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
52983544ea2eSmrg
52993544ea2eSmrg		eval supported=\$$cacheid
53003544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
53013544ea2eSmrg$as_echo "$supported" >&6; }
53023544ea2eSmrg		if test "$supported" = "yes" ; then
53033544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
53043544ea2eSmrg			found="yes"
53053544ea2eSmrg		fi
53063544ea2eSmrg	fi
53073544ea2eSmrg
53083544ea2eSmrg
53093544ea2eSmrg
53103544ea2eSmrg
53113544ea2eSmrg
53123544ea2eSmrg
53133544ea2eSmrg
53143544ea2eSmrg
53153544ea2eSmrg
53163544ea2eSmrg
53173544ea2eSmrg
53183544ea2eSmrg
53193544ea2eSmrg
53203544ea2eSmrg
53213544ea2eSmrg
53223544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
53233544ea2eSmrg
53243544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
53253544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
53263544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
53273544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
53283544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
53293544ea2eSmrg  $as_echo_n "(cached) " >&6
53303544ea2eSmrgelse
53313544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53323544ea2eSmrg/* end confdefs.h.  */
53333544ea2eSmrgint i;
53343544ea2eSmrg_ACEOF
53353544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
53363544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
53373544ea2eSmrgelse
53383544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
53393544ea2eSmrgfi
53403544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53413544ea2eSmrgfi
53423544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
53433544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
53443544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
53453544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
53463544ea2eSmrgfi
53473544ea2eSmrg
53483544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
53493544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
53503544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
53513544ea2eSmrg	fi
53523544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
53533544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
53543544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
53553544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
53563544ea2eSmrg  $as_echo_n "(cached) " >&6
53573544ea2eSmrgelse
53583544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53593544ea2eSmrg/* end confdefs.h.  */
53603544ea2eSmrgint i;
53613544ea2eSmrg_ACEOF
53623544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
53633544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
53643544ea2eSmrgelse
53653544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
53663544ea2eSmrgfi
53673544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53683544ea2eSmrgfi
53693544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
53703544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
53713544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
53723544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
53733544ea2eSmrgfi
53743544ea2eSmrg
53753544ea2eSmrgfound="no"
53763544ea2eSmrg
53773544ea2eSmrg	if test $found = "no" ; then
53783544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
53793544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
53803544ea2eSmrg		fi
53813544ea2eSmrg
53823544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
53833544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
53843544ea2eSmrg		fi
53853544ea2eSmrg
53863544ea2eSmrg		CFLAGS="$CFLAGS -Wmissing-prototypes"
53873544ea2eSmrg
53883544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5
53893544ea2eSmrg$as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; }
53903544ea2eSmrg		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
53913544ea2eSmrg		if eval \${$cacheid+:} false; then :
53923544ea2eSmrg  $as_echo_n "(cached) " >&6
53933544ea2eSmrgelse
53943544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53953544ea2eSmrg/* end confdefs.h.  */
53963544ea2eSmrgint i;
53973544ea2eSmrgint
53983544ea2eSmrgmain ()
53993544ea2eSmrg{
54003544ea2eSmrg
54013544ea2eSmrg  ;
54023544ea2eSmrg  return 0;
54033544ea2eSmrg}
54043544ea2eSmrg_ACEOF
54053544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
54063544ea2eSmrg  eval $cacheid=yes
54073544ea2eSmrgelse
54083544ea2eSmrg  eval $cacheid=no
54093544ea2eSmrgfi
54103544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
54113544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
54123544ea2eSmrgfi
54133544ea2eSmrg
54143544ea2eSmrg
54153544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
54163544ea2eSmrg
54173544ea2eSmrg		eval supported=\$$cacheid
54183544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
54193544ea2eSmrg$as_echo "$supported" >&6; }
54203544ea2eSmrg		if test "$supported" = "yes" ; then
54213544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
54223544ea2eSmrg			found="yes"
54233544ea2eSmrg		fi
54243544ea2eSmrg	fi
54253544ea2eSmrg
54263544ea2eSmrg
54273544ea2eSmrg
54283544ea2eSmrg
54293544ea2eSmrg
54303544ea2eSmrg
54313544ea2eSmrg
54323544ea2eSmrg
54333544ea2eSmrg
54343544ea2eSmrg
54353544ea2eSmrg
54363544ea2eSmrg
54373544ea2eSmrg
54383544ea2eSmrg
54393544ea2eSmrg
54403544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
54413544ea2eSmrg
54423544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
54433544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
54443544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
54453544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
54463544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
54473544ea2eSmrg  $as_echo_n "(cached) " >&6
54483544ea2eSmrgelse
54493544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54503544ea2eSmrg/* end confdefs.h.  */
54513544ea2eSmrgint i;
54523544ea2eSmrg_ACEOF
54533544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
54543544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
54553544ea2eSmrgelse
54563544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
54573544ea2eSmrgfi
54583544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54593544ea2eSmrgfi
54603544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
54613544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
54623544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
54633544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
54643544ea2eSmrgfi
54653544ea2eSmrg
54663544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
54673544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
54683544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
54693544ea2eSmrg	fi
54703544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
54713544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
54723544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
54733544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
54743544ea2eSmrg  $as_echo_n "(cached) " >&6
54753544ea2eSmrgelse
54763544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54773544ea2eSmrg/* end confdefs.h.  */
54783544ea2eSmrgint i;
54793544ea2eSmrg_ACEOF
54803544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
54813544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
54823544ea2eSmrgelse
54833544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
54843544ea2eSmrgfi
54853544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54863544ea2eSmrgfi
54873544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
54883544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
54893544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
54903544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
54913544ea2eSmrgfi
54923544ea2eSmrg
54933544ea2eSmrgfound="no"
54943544ea2eSmrg
54953544ea2eSmrg	if test $found = "no" ; then
54963544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
54973544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
54983544ea2eSmrg		fi
54993544ea2eSmrg
55003544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
55013544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
55023544ea2eSmrg		fi
55033544ea2eSmrg
55043544ea2eSmrg		CFLAGS="$CFLAGS -Wnested-externs"
55053544ea2eSmrg
55063544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5
55073544ea2eSmrg$as_echo_n "checking if $CC supports-Wnested-externs... " >&6; }
55083544ea2eSmrg		cacheid=xorg_cv_cc_flag__Wnested_externs
55093544ea2eSmrg		if eval \${$cacheid+:} false; then :
55103544ea2eSmrg  $as_echo_n "(cached) " >&6
55113544ea2eSmrgelse
55123544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55133544ea2eSmrg/* end confdefs.h.  */
55143544ea2eSmrgint i;
55153544ea2eSmrgint
55163544ea2eSmrgmain ()
55173544ea2eSmrg{
55183544ea2eSmrg
55193544ea2eSmrg  ;
55203544ea2eSmrg  return 0;
55213544ea2eSmrg}
55223544ea2eSmrg_ACEOF
55233544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
55243544ea2eSmrg  eval $cacheid=yes
55253544ea2eSmrgelse
55263544ea2eSmrg  eval $cacheid=no
55273544ea2eSmrgfi
55283544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
55293544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
55303544ea2eSmrgfi
55313544ea2eSmrg
55323544ea2eSmrg
55333544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
55343544ea2eSmrg
55353544ea2eSmrg		eval supported=\$$cacheid
55363544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
55373544ea2eSmrg$as_echo "$supported" >&6; }
55383544ea2eSmrg		if test "$supported" = "yes" ; then
55393544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
55403544ea2eSmrg			found="yes"
55413544ea2eSmrg		fi
55423544ea2eSmrg	fi
55433544ea2eSmrg
55443544ea2eSmrg
55453544ea2eSmrg
55463544ea2eSmrg
55473544ea2eSmrg
55483544ea2eSmrg
55493544ea2eSmrg
55503544ea2eSmrg
55513544ea2eSmrg
55523544ea2eSmrg
55533544ea2eSmrg
55543544ea2eSmrg
55553544ea2eSmrg
55563544ea2eSmrg
55573544ea2eSmrg
55583544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
55593544ea2eSmrg
55603544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
55613544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
55623544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
55633544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
55643544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
55653544ea2eSmrg  $as_echo_n "(cached) " >&6
55663544ea2eSmrgelse
55673544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55683544ea2eSmrg/* end confdefs.h.  */
55693544ea2eSmrgint i;
55703544ea2eSmrg_ACEOF
55713544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
55723544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
55733544ea2eSmrgelse
55743544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
55753544ea2eSmrgfi
55763544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55773544ea2eSmrgfi
55783544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
55793544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
55803544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
55813544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
55823544ea2eSmrgfi
55833544ea2eSmrg
55843544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
55853544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
55863544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
55873544ea2eSmrg	fi
55883544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
55893544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
55903544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
55913544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
55923544ea2eSmrg  $as_echo_n "(cached) " >&6
55933544ea2eSmrgelse
55943544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55953544ea2eSmrg/* end confdefs.h.  */
55963544ea2eSmrgint i;
55973544ea2eSmrg_ACEOF
55983544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
55993544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
56003544ea2eSmrgelse
56013544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
56023544ea2eSmrgfi
56033544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56043544ea2eSmrgfi
56053544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
56063544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
56073544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
56083544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
56093544ea2eSmrgfi
56103544ea2eSmrg
56113544ea2eSmrgfound="no"
56123544ea2eSmrg
56133544ea2eSmrg	if test $found = "no" ; then
56143544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
56153544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
56163544ea2eSmrg		fi
56173544ea2eSmrg
56183544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
56193544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
56203544ea2eSmrg		fi
56213544ea2eSmrg
56223544ea2eSmrg		CFLAGS="$CFLAGS -Wbad-function-cast"
56233544ea2eSmrg
56243544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5
56253544ea2eSmrg$as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; }
56263544ea2eSmrg		cacheid=xorg_cv_cc_flag__Wbad_function_cast
56273544ea2eSmrg		if eval \${$cacheid+:} false; then :
56283544ea2eSmrg  $as_echo_n "(cached) " >&6
56293544ea2eSmrgelse
56303544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56313544ea2eSmrg/* end confdefs.h.  */
56323544ea2eSmrgint i;
56333544ea2eSmrgint
56343544ea2eSmrgmain ()
56353544ea2eSmrg{
56363544ea2eSmrg
56373544ea2eSmrg  ;
56383544ea2eSmrg  return 0;
56393544ea2eSmrg}
56403544ea2eSmrg_ACEOF
56413544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
56423544ea2eSmrg  eval $cacheid=yes
56433544ea2eSmrgelse
56443544ea2eSmrg  eval $cacheid=no
56453544ea2eSmrgfi
56463544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
56473544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
56483544ea2eSmrgfi
56493544ea2eSmrg
56503544ea2eSmrg
56513544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
56523544ea2eSmrg
56533544ea2eSmrg		eval supported=\$$cacheid
56543544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
56553544ea2eSmrg$as_echo "$supported" >&6; }
56563544ea2eSmrg		if test "$supported" = "yes" ; then
56573544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
56583544ea2eSmrg			found="yes"
56593544ea2eSmrg		fi
56603544ea2eSmrg	fi
56613544ea2eSmrg
56623544ea2eSmrg
56633544ea2eSmrg
56643544ea2eSmrg
56653544ea2eSmrg
56663544ea2eSmrg
56673544ea2eSmrg
56683544ea2eSmrg
56693544ea2eSmrg
56703544ea2eSmrg
56713544ea2eSmrg
56723544ea2eSmrg
56733544ea2eSmrg
56743544ea2eSmrg
56753544ea2eSmrg
56763544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
56773544ea2eSmrg
56783544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
56793544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
56803544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
56813544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
56823544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
56833544ea2eSmrg  $as_echo_n "(cached) " >&6
56843544ea2eSmrgelse
56853544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56863544ea2eSmrg/* end confdefs.h.  */
56873544ea2eSmrgint i;
56883544ea2eSmrg_ACEOF
56893544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
56903544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
56913544ea2eSmrgelse
56923544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
56933544ea2eSmrgfi
56943544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56953544ea2eSmrgfi
56963544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
56973544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
56983544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
56993544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
57003544ea2eSmrgfi
57013544ea2eSmrg
57023544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
57033544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
57043544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
57053544ea2eSmrg	fi
57063544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
57073544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
57083544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
57093544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
57103544ea2eSmrg  $as_echo_n "(cached) " >&6
57113544ea2eSmrgelse
57123544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57133544ea2eSmrg/* end confdefs.h.  */
57143544ea2eSmrgint i;
57153544ea2eSmrg_ACEOF
57163544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
57173544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
57183544ea2eSmrgelse
57193544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
57203544ea2eSmrgfi
57213544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57223544ea2eSmrgfi
57233544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
57243544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
57253544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
57263544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
57273544ea2eSmrgfi
57283544ea2eSmrg
57293544ea2eSmrgfound="no"
57303544ea2eSmrg
57313544ea2eSmrg	if test $found = "no" ; then
57323544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
57333544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
57343544ea2eSmrg		fi
57353544ea2eSmrg
57363544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
57373544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
57383544ea2eSmrg		fi
57393544ea2eSmrg
57403544ea2eSmrg		CFLAGS="$CFLAGS -Wold-style-definition"
57413544ea2eSmrg
57423544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5
57433544ea2eSmrg$as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; }
57443544ea2eSmrg		cacheid=xorg_cv_cc_flag__Wold_style_definition
57453544ea2eSmrg		if eval \${$cacheid+:} false; then :
57463544ea2eSmrg  $as_echo_n "(cached) " >&6
57473544ea2eSmrgelse
57483544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57493544ea2eSmrg/* end confdefs.h.  */
57503544ea2eSmrgint i;
57513544ea2eSmrgint
57523544ea2eSmrgmain ()
57533544ea2eSmrg{
57543544ea2eSmrg
57553544ea2eSmrg  ;
57563544ea2eSmrg  return 0;
57573544ea2eSmrg}
57583544ea2eSmrg_ACEOF
57593544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
57603544ea2eSmrg  eval $cacheid=yes
57613544ea2eSmrgelse
57623544ea2eSmrg  eval $cacheid=no
57633544ea2eSmrgfi
57643544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
57653544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
57663544ea2eSmrgfi
57673544ea2eSmrg
57683544ea2eSmrg
57693544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
57703544ea2eSmrg
57713544ea2eSmrg		eval supported=\$$cacheid
57723544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
57733544ea2eSmrg$as_echo "$supported" >&6; }
57743544ea2eSmrg		if test "$supported" = "yes" ; then
57753544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
57763544ea2eSmrg			found="yes"
57773544ea2eSmrg		fi
57783544ea2eSmrg	fi
57793544ea2eSmrg
57803544ea2eSmrg
57813544ea2eSmrg
57823544ea2eSmrg
57833544ea2eSmrg
57843544ea2eSmrg
57853544ea2eSmrg
57863544ea2eSmrg
57873544ea2eSmrg
57883544ea2eSmrg
57893544ea2eSmrg
57903544ea2eSmrg
57913544ea2eSmrg
57923544ea2eSmrg
57933544ea2eSmrg
57943544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
57953544ea2eSmrg
57963544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
57973544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
57983544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
57993544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
58003544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
58013544ea2eSmrg  $as_echo_n "(cached) " >&6
58023544ea2eSmrgelse
58033544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58043544ea2eSmrg/* end confdefs.h.  */
58053544ea2eSmrgint i;
58063544ea2eSmrg_ACEOF
58073544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
58083544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
58093544ea2eSmrgelse
58103544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
58113544ea2eSmrgfi
58123544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58133544ea2eSmrgfi
58143544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
58153544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
58163544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
58173544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
58183544ea2eSmrgfi
58193544ea2eSmrg
58203544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
58213544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
58223544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
58233544ea2eSmrg	fi
58243544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
58253544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
58263544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
58273544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
58283544ea2eSmrg  $as_echo_n "(cached) " >&6
58293544ea2eSmrgelse
58303544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58313544ea2eSmrg/* end confdefs.h.  */
58323544ea2eSmrgint i;
58333544ea2eSmrg_ACEOF
58343544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
58353544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
58363544ea2eSmrgelse
58373544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
58383544ea2eSmrgfi
58393544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58403544ea2eSmrgfi
58413544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
58423544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
58433544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
58443544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
58453544ea2eSmrgfi
58463544ea2eSmrg
58473544ea2eSmrgfound="no"
58483544ea2eSmrg
58493544ea2eSmrg	if test $found = "no" ; then
58503544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
58513544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
58523544ea2eSmrg		fi
58533544ea2eSmrg
58543544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
58553544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
58563544ea2eSmrg		fi
58573544ea2eSmrg
58583544ea2eSmrg		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
58593544ea2eSmrg
58603544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5
58613544ea2eSmrg$as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; }
58623544ea2eSmrg		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
58633544ea2eSmrg		if eval \${$cacheid+:} false; then :
58643544ea2eSmrg  $as_echo_n "(cached) " >&6
58653544ea2eSmrgelse
58663544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58673544ea2eSmrg/* end confdefs.h.  */
58683544ea2eSmrgint i;
58693544ea2eSmrgint
58703544ea2eSmrgmain ()
58713544ea2eSmrg{
58723544ea2eSmrg
58733544ea2eSmrg  ;
58743544ea2eSmrg  return 0;
58753544ea2eSmrg}
58763544ea2eSmrg_ACEOF
58773544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
58783544ea2eSmrg  eval $cacheid=yes
58793544ea2eSmrgelse
58803544ea2eSmrg  eval $cacheid=no
58813544ea2eSmrgfi
58823544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
58833544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
58843544ea2eSmrgfi
58853544ea2eSmrg
58863544ea2eSmrg
58873544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
58883544ea2eSmrg
58893544ea2eSmrg		eval supported=\$$cacheid
58903544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
58913544ea2eSmrg$as_echo "$supported" >&6; }
58923544ea2eSmrg		if test "$supported" = "yes" ; then
58933544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
58943544ea2eSmrg			found="yes"
58953544ea2eSmrg		fi
58963544ea2eSmrg	fi
58973544ea2eSmrg
58983544ea2eSmrg
58993544ea2eSmrg
59003544ea2eSmrg
59013544ea2eSmrg
59023544ea2eSmrg# This chunk adds additional warnings that could catch undesired effects.
59033544ea2eSmrg
59043544ea2eSmrg
59053544ea2eSmrg
59063544ea2eSmrg
59073544ea2eSmrg
59083544ea2eSmrg
59093544ea2eSmrg
59103544ea2eSmrg
59113544ea2eSmrg
59123544ea2eSmrg
59133544ea2eSmrg
59143544ea2eSmrg
59153544ea2eSmrg
59163544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
59173544ea2eSmrg
59183544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
59193544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
59203544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
59213544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
59223544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
59233544ea2eSmrg  $as_echo_n "(cached) " >&6
59243544ea2eSmrgelse
59253544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59263544ea2eSmrg/* end confdefs.h.  */
59273544ea2eSmrgint i;
59283544ea2eSmrg_ACEOF
59293544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
59303544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
59313544ea2eSmrgelse
59323544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
59333544ea2eSmrgfi
59343544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59353544ea2eSmrgfi
59363544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
59373544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
59383544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
59393544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
59403544ea2eSmrgfi
59413544ea2eSmrg
59423544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
59433544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
59443544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
59453544ea2eSmrg	fi
59463544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
59473544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
59483544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
59493544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
59503544ea2eSmrg  $as_echo_n "(cached) " >&6
59513544ea2eSmrgelse
59523544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59533544ea2eSmrg/* end confdefs.h.  */
59543544ea2eSmrgint i;
59553544ea2eSmrg_ACEOF
59563544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
59573544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
59583544ea2eSmrgelse
59593544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
59603544ea2eSmrgfi
59613544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59623544ea2eSmrgfi
59633544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
59643544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
59653544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
59663544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
59673544ea2eSmrgfi
59683544ea2eSmrg
59693544ea2eSmrgfound="no"
59703544ea2eSmrg
59713544ea2eSmrg	if test $found = "no" ; then
59723544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
59733544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
59743544ea2eSmrg		fi
59753544ea2eSmrg
59763544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
59773544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
59783544ea2eSmrg		fi
59793544ea2eSmrg
59803544ea2eSmrg		CFLAGS="$CFLAGS -Wunused"
59813544ea2eSmrg
59823544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5
59833544ea2eSmrg$as_echo_n "checking if $CC supports-Wunused... " >&6; }
59843544ea2eSmrg		cacheid=xorg_cv_cc_flag__Wunused
59853544ea2eSmrg		if eval \${$cacheid+:} false; then :
59863544ea2eSmrg  $as_echo_n "(cached) " >&6
59873544ea2eSmrgelse
59883544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59893544ea2eSmrg/* end confdefs.h.  */
59903544ea2eSmrgint i;
59913544ea2eSmrgint
59923544ea2eSmrgmain ()
59933544ea2eSmrg{
59943544ea2eSmrg
59953544ea2eSmrg  ;
59963544ea2eSmrg  return 0;
59973544ea2eSmrg}
59983544ea2eSmrg_ACEOF
59993544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
60003544ea2eSmrg  eval $cacheid=yes
60013544ea2eSmrgelse
60023544ea2eSmrg  eval $cacheid=no
60033544ea2eSmrgfi
60043544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
60053544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
60063544ea2eSmrgfi
60073544ea2eSmrg
60083544ea2eSmrg
60093544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
60103544ea2eSmrg
60113544ea2eSmrg		eval supported=\$$cacheid
60123544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
60133544ea2eSmrg$as_echo "$supported" >&6; }
60143544ea2eSmrg		if test "$supported" = "yes" ; then
60153544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
60163544ea2eSmrg			found="yes"
60173544ea2eSmrg		fi
60183544ea2eSmrg	fi
60193544ea2eSmrg
60203544ea2eSmrg
60213544ea2eSmrg
60223544ea2eSmrg
60233544ea2eSmrg
60243544ea2eSmrg
60253544ea2eSmrg
60263544ea2eSmrg
60273544ea2eSmrg
60283544ea2eSmrg
60293544ea2eSmrg
60303544ea2eSmrg
60313544ea2eSmrg
60323544ea2eSmrg
60333544ea2eSmrg
60343544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
60353544ea2eSmrg
60363544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
60373544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
60383544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
60393544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
60403544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
60413544ea2eSmrg  $as_echo_n "(cached) " >&6
60423544ea2eSmrgelse
60433544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60443544ea2eSmrg/* end confdefs.h.  */
60453544ea2eSmrgint i;
60463544ea2eSmrg_ACEOF
60473544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
60483544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
60493544ea2eSmrgelse
60503544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
60513544ea2eSmrgfi
60523544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60533544ea2eSmrgfi
60543544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
60553544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
60563544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
60573544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
60583544ea2eSmrgfi
60593544ea2eSmrg
60603544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
60613544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
60623544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
60633544ea2eSmrg	fi
60643544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
60653544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
60663544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
60673544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
60683544ea2eSmrg  $as_echo_n "(cached) " >&6
60693544ea2eSmrgelse
60703544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60713544ea2eSmrg/* end confdefs.h.  */
60723544ea2eSmrgint i;
60733544ea2eSmrg_ACEOF
60743544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
60753544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
60763544ea2eSmrgelse
60773544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
60783544ea2eSmrgfi
60793544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60803544ea2eSmrgfi
60813544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
60823544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
60833544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
60843544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
60853544ea2eSmrgfi
60863544ea2eSmrg
60873544ea2eSmrgfound="no"
60883544ea2eSmrg
60893544ea2eSmrg	if test $found = "no" ; then
60903544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
60913544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
60923544ea2eSmrg		fi
60933544ea2eSmrg
60943544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
60953544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
60963544ea2eSmrg		fi
60973544ea2eSmrg
60983544ea2eSmrg		CFLAGS="$CFLAGS -Wuninitialized"
60993544ea2eSmrg
61003544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5
61013544ea2eSmrg$as_echo_n "checking if $CC supports-Wuninitialized... " >&6; }
61023544ea2eSmrg		cacheid=xorg_cv_cc_flag__Wuninitialized
61033544ea2eSmrg		if eval \${$cacheid+:} false; then :
61043544ea2eSmrg  $as_echo_n "(cached) " >&6
61053544ea2eSmrgelse
61063544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61073544ea2eSmrg/* end confdefs.h.  */
61083544ea2eSmrgint i;
61093544ea2eSmrgint
61103544ea2eSmrgmain ()
61113544ea2eSmrg{
61123544ea2eSmrg
61133544ea2eSmrg  ;
61143544ea2eSmrg  return 0;
61153544ea2eSmrg}
61163544ea2eSmrg_ACEOF
61173544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
61183544ea2eSmrg  eval $cacheid=yes
61193544ea2eSmrgelse
61203544ea2eSmrg  eval $cacheid=no
61213544ea2eSmrgfi
61223544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
61233544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
61243544ea2eSmrgfi
61253544ea2eSmrg
61263544ea2eSmrg
61273544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
61283544ea2eSmrg
61293544ea2eSmrg		eval supported=\$$cacheid
61303544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
61313544ea2eSmrg$as_echo "$supported" >&6; }
61323544ea2eSmrg		if test "$supported" = "yes" ; then
61333544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
61343544ea2eSmrg			found="yes"
61353544ea2eSmrg		fi
61363544ea2eSmrg	fi
61373544ea2eSmrg
61383544ea2eSmrg
61393544ea2eSmrg
61403544ea2eSmrg
61413544ea2eSmrg
61423544ea2eSmrg
61433544ea2eSmrg
61443544ea2eSmrg
61453544ea2eSmrg
61463544ea2eSmrg
61473544ea2eSmrg
61483544ea2eSmrg
61493544ea2eSmrg
61503544ea2eSmrg
61513544ea2eSmrg
61523544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
61533544ea2eSmrg
61543544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
61553544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
61563544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
61573544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
61583544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
61593544ea2eSmrg  $as_echo_n "(cached) " >&6
61603544ea2eSmrgelse
61613544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61623544ea2eSmrg/* end confdefs.h.  */
61633544ea2eSmrgint i;
61643544ea2eSmrg_ACEOF
61653544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
61663544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
61673544ea2eSmrgelse
61683544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
61693544ea2eSmrgfi
61703544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61713544ea2eSmrgfi
61723544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
61733544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
61743544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
61753544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
61763544ea2eSmrgfi
61773544ea2eSmrg
61783544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
61793544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
61803544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
61813544ea2eSmrg	fi
61823544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
61833544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
61843544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
61853544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
61863544ea2eSmrg  $as_echo_n "(cached) " >&6
61873544ea2eSmrgelse
61883544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61893544ea2eSmrg/* end confdefs.h.  */
61903544ea2eSmrgint i;
61913544ea2eSmrg_ACEOF
61923544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
61933544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
61943544ea2eSmrgelse
61953544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
61963544ea2eSmrgfi
61973544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61983544ea2eSmrgfi
61993544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
62003544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
62013544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
62023544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
62033544ea2eSmrgfi
62043544ea2eSmrg
62053544ea2eSmrgfound="no"
62063544ea2eSmrg
62073544ea2eSmrg	if test $found = "no" ; then
62083544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
62093544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
62103544ea2eSmrg		fi
62113544ea2eSmrg
62123544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
62133544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
62143544ea2eSmrg		fi
62153544ea2eSmrg
62163544ea2eSmrg		CFLAGS="$CFLAGS -Wshadow"
62173544ea2eSmrg
62183544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5
62193544ea2eSmrg$as_echo_n "checking if $CC supports-Wshadow... " >&6; }
62203544ea2eSmrg		cacheid=xorg_cv_cc_flag__Wshadow
62213544ea2eSmrg		if eval \${$cacheid+:} false; then :
62223544ea2eSmrg  $as_echo_n "(cached) " >&6
62233544ea2eSmrgelse
62243544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62253544ea2eSmrg/* end confdefs.h.  */
62263544ea2eSmrgint i;
62273544ea2eSmrgint
62283544ea2eSmrgmain ()
62293544ea2eSmrg{
62303544ea2eSmrg
62313544ea2eSmrg  ;
62323544ea2eSmrg  return 0;
62333544ea2eSmrg}
62343544ea2eSmrg_ACEOF
62353544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
62363544ea2eSmrg  eval $cacheid=yes
62373544ea2eSmrgelse
62383544ea2eSmrg  eval $cacheid=no
62393544ea2eSmrgfi
62403544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
62413544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
62423544ea2eSmrgfi
62433544ea2eSmrg
62443544ea2eSmrg
62453544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
62463544ea2eSmrg
62473544ea2eSmrg		eval supported=\$$cacheid
62483544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
62493544ea2eSmrg$as_echo "$supported" >&6; }
62503544ea2eSmrg		if test "$supported" = "yes" ; then
62513544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
62523544ea2eSmrg			found="yes"
62533544ea2eSmrg		fi
62543544ea2eSmrg	fi
62553544ea2eSmrg
62563544ea2eSmrg
62573544ea2eSmrg
62583544ea2eSmrg
62593544ea2eSmrg
62603544ea2eSmrg
62613544ea2eSmrg
62623544ea2eSmrg
62633544ea2eSmrg
62643544ea2eSmrg
62653544ea2eSmrg
62663544ea2eSmrg
62673544ea2eSmrg
62683544ea2eSmrg
62693544ea2eSmrg
62703544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
62713544ea2eSmrg
62723544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
62733544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
62743544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
62753544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
62763544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
62773544ea2eSmrg  $as_echo_n "(cached) " >&6
62783544ea2eSmrgelse
62793544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62803544ea2eSmrg/* end confdefs.h.  */
62813544ea2eSmrgint i;
62823544ea2eSmrg_ACEOF
62833544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
62843544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
62853544ea2eSmrgelse
62863544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
62873544ea2eSmrgfi
62883544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62893544ea2eSmrgfi
62903544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
62913544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
62923544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
62933544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
62943544ea2eSmrgfi
62953544ea2eSmrg
62963544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
62973544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
62983544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
62993544ea2eSmrg	fi
63003544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
63013544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
63023544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
63033544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
63043544ea2eSmrg  $as_echo_n "(cached) " >&6
63053544ea2eSmrgelse
63063544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63073544ea2eSmrg/* end confdefs.h.  */
63083544ea2eSmrgint i;
63093544ea2eSmrg_ACEOF
63103544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
63113544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
63123544ea2eSmrgelse
63133544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
63143544ea2eSmrgfi
63153544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63163544ea2eSmrgfi
63173544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
63183544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
63193544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
63203544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
63213544ea2eSmrgfi
63223544ea2eSmrg
63233544ea2eSmrgfound="no"
63243544ea2eSmrg
63253544ea2eSmrg	if test $found = "no" ; then
63263544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
63273544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
63283544ea2eSmrg		fi
63293544ea2eSmrg
63303544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
63313544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
63323544ea2eSmrg		fi
63333544ea2eSmrg
63343544ea2eSmrg		CFLAGS="$CFLAGS -Wcast-qual"
63353544ea2eSmrg
63363544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5
63373544ea2eSmrg$as_echo_n "checking if $CC supports-Wcast-qual... " >&6; }
63383544ea2eSmrg		cacheid=xorg_cv_cc_flag__Wcast_qual
63393544ea2eSmrg		if eval \${$cacheid+:} false; then :
63403544ea2eSmrg  $as_echo_n "(cached) " >&6
63413544ea2eSmrgelse
63423544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63433544ea2eSmrg/* end confdefs.h.  */
63443544ea2eSmrgint i;
63453544ea2eSmrgint
63463544ea2eSmrgmain ()
63473544ea2eSmrg{
63483544ea2eSmrg
63493544ea2eSmrg  ;
63503544ea2eSmrg  return 0;
63513544ea2eSmrg}
63523544ea2eSmrg_ACEOF
63533544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
63543544ea2eSmrg  eval $cacheid=yes
63553544ea2eSmrgelse
63563544ea2eSmrg  eval $cacheid=no
63573544ea2eSmrgfi
63583544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
63593544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
63603544ea2eSmrgfi
63613544ea2eSmrg
63623544ea2eSmrg
63633544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
63643544ea2eSmrg
63653544ea2eSmrg		eval supported=\$$cacheid
63663544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
63673544ea2eSmrg$as_echo "$supported" >&6; }
63683544ea2eSmrg		if test "$supported" = "yes" ; then
63693544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
63703544ea2eSmrg			found="yes"
63713544ea2eSmrg		fi
63723544ea2eSmrg	fi
63733544ea2eSmrg
63743544ea2eSmrg
63753544ea2eSmrg
63763544ea2eSmrg
63773544ea2eSmrg
63783544ea2eSmrg
63793544ea2eSmrg
63803544ea2eSmrg
63813544ea2eSmrg
63823544ea2eSmrg
63833544ea2eSmrg
63843544ea2eSmrg
63853544ea2eSmrg
63863544ea2eSmrg
63873544ea2eSmrg
63883544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
63893544ea2eSmrg
63903544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
63913544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
63923544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
63933544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
63943544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
63953544ea2eSmrg  $as_echo_n "(cached) " >&6
63963544ea2eSmrgelse
63973544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63983544ea2eSmrg/* end confdefs.h.  */
63993544ea2eSmrgint i;
64003544ea2eSmrg_ACEOF
64013544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
64023544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
64033544ea2eSmrgelse
64043544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
64053544ea2eSmrgfi
64063544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
64073544ea2eSmrgfi
64083544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
64093544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
64103544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
64113544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
64123544ea2eSmrgfi
64133544ea2eSmrg
64143544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
64153544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
64163544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
64173544ea2eSmrg	fi
64183544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
64193544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
64203544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
64213544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
64223544ea2eSmrg  $as_echo_n "(cached) " >&6
64233544ea2eSmrgelse
64243544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64253544ea2eSmrg/* end confdefs.h.  */
64263544ea2eSmrgint i;
64273544ea2eSmrg_ACEOF
64283544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
64293544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
64303544ea2eSmrgelse
64313544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
64323544ea2eSmrgfi
64333544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
64343544ea2eSmrgfi
64353544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
64363544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
64373544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
64383544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
64393544ea2eSmrgfi
64403544ea2eSmrg
64413544ea2eSmrgfound="no"
64423544ea2eSmrg
64433544ea2eSmrg	if test $found = "no" ; then
64443544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
64453544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
64463544ea2eSmrg		fi
64473544ea2eSmrg
64483544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
64493544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
64503544ea2eSmrg		fi
64513544ea2eSmrg
64523544ea2eSmrg		CFLAGS="$CFLAGS -Wmissing-noreturn"
64533544ea2eSmrg
64543544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5
64553544ea2eSmrg$as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; }
64563544ea2eSmrg		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
64573544ea2eSmrg		if eval \${$cacheid+:} false; then :
64583544ea2eSmrg  $as_echo_n "(cached) " >&6
64593544ea2eSmrgelse
64603544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64613544ea2eSmrg/* end confdefs.h.  */
64623544ea2eSmrgint i;
64633544ea2eSmrgint
64643544ea2eSmrgmain ()
64653544ea2eSmrg{
64663544ea2eSmrg
64673544ea2eSmrg  ;
64683544ea2eSmrg  return 0;
64693544ea2eSmrg}
64703544ea2eSmrg_ACEOF
64713544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
64723544ea2eSmrg  eval $cacheid=yes
64733544ea2eSmrgelse
64743544ea2eSmrg  eval $cacheid=no
64753544ea2eSmrgfi
64763544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
64773544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
64783544ea2eSmrgfi
64793544ea2eSmrg
64803544ea2eSmrg
64813544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
64823544ea2eSmrg
64833544ea2eSmrg		eval supported=\$$cacheid
64843544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
64853544ea2eSmrg$as_echo "$supported" >&6; }
64863544ea2eSmrg		if test "$supported" = "yes" ; then
64873544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
64883544ea2eSmrg			found="yes"
64893544ea2eSmrg		fi
64903544ea2eSmrg	fi
64913544ea2eSmrg
64923544ea2eSmrg
64933544ea2eSmrg
64943544ea2eSmrg
64953544ea2eSmrg
64963544ea2eSmrg
64973544ea2eSmrg
64983544ea2eSmrg
64993544ea2eSmrg
65003544ea2eSmrg
65013544ea2eSmrg
65023544ea2eSmrg
65033544ea2eSmrg
65043544ea2eSmrg
65053544ea2eSmrg
65063544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
65073544ea2eSmrg
65083544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
65093544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
65103544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
65113544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
65123544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
65133544ea2eSmrg  $as_echo_n "(cached) " >&6
65143544ea2eSmrgelse
65153544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65163544ea2eSmrg/* end confdefs.h.  */
65173544ea2eSmrgint i;
65183544ea2eSmrg_ACEOF
65193544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
65203544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
65213544ea2eSmrgelse
65223544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
65233544ea2eSmrgfi
65243544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65253544ea2eSmrgfi
65263544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
65273544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
65283544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
65293544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
65303544ea2eSmrgfi
65313544ea2eSmrg
65323544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
65333544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
65343544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
65353544ea2eSmrg	fi
65363544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
65373544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
65383544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
65393544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
65403544ea2eSmrg  $as_echo_n "(cached) " >&6
65413544ea2eSmrgelse
65423544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65433544ea2eSmrg/* end confdefs.h.  */
65443544ea2eSmrgint i;
65453544ea2eSmrg_ACEOF
65463544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
65473544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
65483544ea2eSmrgelse
65493544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
65503544ea2eSmrgfi
65513544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65523544ea2eSmrgfi
65533544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
65543544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
65553544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
65563544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
65573544ea2eSmrgfi
65583544ea2eSmrg
65593544ea2eSmrgfound="no"
65603544ea2eSmrg
65613544ea2eSmrg	if test $found = "no" ; then
65623544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
65633544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
65643544ea2eSmrg		fi
65653544ea2eSmrg
65663544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
65673544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
65683544ea2eSmrg		fi
65693544ea2eSmrg
65703544ea2eSmrg		CFLAGS="$CFLAGS -Wmissing-format-attribute"
65713544ea2eSmrg
65723544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5
65733544ea2eSmrg$as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; }
65743544ea2eSmrg		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
65753544ea2eSmrg		if eval \${$cacheid+:} false; then :
65763544ea2eSmrg  $as_echo_n "(cached) " >&6
65773544ea2eSmrgelse
65783544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65793544ea2eSmrg/* end confdefs.h.  */
65803544ea2eSmrgint i;
65813544ea2eSmrgint
65823544ea2eSmrgmain ()
65833544ea2eSmrg{
65843544ea2eSmrg
65853544ea2eSmrg  ;
65863544ea2eSmrg  return 0;
65873544ea2eSmrg}
65883544ea2eSmrg_ACEOF
65893544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
65903544ea2eSmrg  eval $cacheid=yes
65913544ea2eSmrgelse
65923544ea2eSmrg  eval $cacheid=no
65933544ea2eSmrgfi
65943544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
65953544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
65963544ea2eSmrgfi
65973544ea2eSmrg
65983544ea2eSmrg
65993544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
66003544ea2eSmrg
66013544ea2eSmrg		eval supported=\$$cacheid
66023544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
66033544ea2eSmrg$as_echo "$supported" >&6; }
66043544ea2eSmrg		if test "$supported" = "yes" ; then
66053544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
66063544ea2eSmrg			found="yes"
66073544ea2eSmrg		fi
66083544ea2eSmrg	fi
66093544ea2eSmrg
66103544ea2eSmrg
66113544ea2eSmrg
66123544ea2eSmrg
66133544ea2eSmrg
66143544ea2eSmrg
66153544ea2eSmrg
66163544ea2eSmrg
66173544ea2eSmrg
66183544ea2eSmrg
66193544ea2eSmrg
66203544ea2eSmrg
66213544ea2eSmrg
66223544ea2eSmrg
66233544ea2eSmrg
66243544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
66253544ea2eSmrg
66263544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
66273544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
66283544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
66293544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
66303544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
66313544ea2eSmrg  $as_echo_n "(cached) " >&6
66323544ea2eSmrgelse
66333544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66343544ea2eSmrg/* end confdefs.h.  */
66353544ea2eSmrgint i;
66363544ea2eSmrg_ACEOF
66373544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
66383544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
66393544ea2eSmrgelse
66403544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
66413544ea2eSmrgfi
66423544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66433544ea2eSmrgfi
66443544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
66453544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
66463544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
66473544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
66483544ea2eSmrgfi
66493544ea2eSmrg
66503544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
66513544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
66523544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
66533544ea2eSmrg	fi
66543544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
66553544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
66563544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
66573544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
66583544ea2eSmrg  $as_echo_n "(cached) " >&6
66593544ea2eSmrgelse
66603544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66613544ea2eSmrg/* end confdefs.h.  */
66623544ea2eSmrgint i;
66633544ea2eSmrg_ACEOF
66643544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
66653544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
66663544ea2eSmrgelse
66673544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
66683544ea2eSmrgfi
66693544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66703544ea2eSmrgfi
66713544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
66723544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
66733544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
66743544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
66753544ea2eSmrgfi
66763544ea2eSmrg
66773544ea2eSmrgfound="no"
66783544ea2eSmrg
66793544ea2eSmrg	if test $found = "no" ; then
66803544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
66813544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
66823544ea2eSmrg		fi
66833544ea2eSmrg
66843544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
66853544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
66863544ea2eSmrg		fi
66873544ea2eSmrg
66883544ea2eSmrg		CFLAGS="$CFLAGS -Wredundant-decls"
66893544ea2eSmrg
66903544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5
66913544ea2eSmrg$as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; }
66923544ea2eSmrg		cacheid=xorg_cv_cc_flag__Wredundant_decls
66933544ea2eSmrg		if eval \${$cacheid+:} false; then :
66943544ea2eSmrg  $as_echo_n "(cached) " >&6
66953544ea2eSmrgelse
66963544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66973544ea2eSmrg/* end confdefs.h.  */
66983544ea2eSmrgint i;
66993544ea2eSmrgint
67003544ea2eSmrgmain ()
67013544ea2eSmrg{
67023544ea2eSmrg
67033544ea2eSmrg  ;
67043544ea2eSmrg  return 0;
67053544ea2eSmrg}
67063544ea2eSmrg_ACEOF
67073544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
67083544ea2eSmrg  eval $cacheid=yes
67093544ea2eSmrgelse
67103544ea2eSmrg  eval $cacheid=no
67113544ea2eSmrgfi
67123544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
67133544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
67143544ea2eSmrgfi
67153544ea2eSmrg
67163544ea2eSmrg
67173544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
67183544ea2eSmrg
67193544ea2eSmrg		eval supported=\$$cacheid
67203544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
67213544ea2eSmrg$as_echo "$supported" >&6; }
67223544ea2eSmrg		if test "$supported" = "yes" ; then
67233544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
67243544ea2eSmrg			found="yes"
67253544ea2eSmrg		fi
67263544ea2eSmrg	fi
67273544ea2eSmrg
67283544ea2eSmrg
67293544ea2eSmrg
67303544ea2eSmrg# These are currently disabled because they are noisy.  They will be enabled
67313544ea2eSmrg# in the future once the codebase is sufficiently modernized to silence
67323544ea2eSmrg# them.  For now, I don't want them to drown out the other warnings.
67333544ea2eSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
67343544ea2eSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
67353544ea2eSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
67363544ea2eSmrg
67373544ea2eSmrg# Turn some warnings into errors, so we don't accidently get successful builds
67383544ea2eSmrg# when there are problems that should be fixed.
67393544ea2eSmrg
67403544ea2eSmrgif test "x$SELECTIVE_WERROR" = "xyes" ; then
67413544ea2eSmrg
67423544ea2eSmrg
67433544ea2eSmrg
67443544ea2eSmrg
67453544ea2eSmrg
67463544ea2eSmrg
67473544ea2eSmrg
67483544ea2eSmrg
67493544ea2eSmrg
67503544ea2eSmrg
67513544ea2eSmrg
67523544ea2eSmrg
67533544ea2eSmrg
67543544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
67553544ea2eSmrg
67563544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
67573544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
67583544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
67593544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
67603544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
67613544ea2eSmrg  $as_echo_n "(cached) " >&6
67623544ea2eSmrgelse
67633544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67643544ea2eSmrg/* end confdefs.h.  */
67653544ea2eSmrgint i;
67663544ea2eSmrg_ACEOF
67673544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
67683544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
67693544ea2eSmrgelse
67703544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
67713544ea2eSmrgfi
67723544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
67733544ea2eSmrgfi
67743544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
67753544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
67763544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
67773544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
67783544ea2eSmrgfi
67793544ea2eSmrg
67803544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
67813544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
67823544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
67833544ea2eSmrg	fi
67843544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
67853544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
67863544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
67873544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
67883544ea2eSmrg  $as_echo_n "(cached) " >&6
67893544ea2eSmrgelse
67903544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67913544ea2eSmrg/* end confdefs.h.  */
67923544ea2eSmrgint i;
67933544ea2eSmrg_ACEOF
67943544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
67953544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
67963544ea2eSmrgelse
67973544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
67983544ea2eSmrgfi
67993544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68003544ea2eSmrgfi
68013544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
68023544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
68033544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
68043544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
68053544ea2eSmrgfi
68063544ea2eSmrg
68073544ea2eSmrgfound="no"
68083544ea2eSmrg
68093544ea2eSmrg	if test $found = "no" ; then
68103544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
68113544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
68123544ea2eSmrg		fi
68133544ea2eSmrg
68143544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
68153544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
68163544ea2eSmrg		fi
68173544ea2eSmrg
68183544ea2eSmrg		CFLAGS="$CFLAGS -Werror=implicit"
68193544ea2eSmrg
68203544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5
68213544ea2eSmrg$as_echo_n "checking if $CC supports-Werror=implicit... " >&6; }
68223544ea2eSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
68233544ea2eSmrg		if eval \${$cacheid+:} false; then :
68243544ea2eSmrg  $as_echo_n "(cached) " >&6
68253544ea2eSmrgelse
68263544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68273544ea2eSmrg/* end confdefs.h.  */
68283544ea2eSmrgint i;
68293544ea2eSmrgint
68303544ea2eSmrgmain ()
68313544ea2eSmrg{
68323544ea2eSmrg
68333544ea2eSmrg  ;
68343544ea2eSmrg  return 0;
68353544ea2eSmrg}
68363544ea2eSmrg_ACEOF
68373544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
68383544ea2eSmrg  eval $cacheid=yes
68393544ea2eSmrgelse
68403544ea2eSmrg  eval $cacheid=no
68413544ea2eSmrgfi
68423544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
68433544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
68443544ea2eSmrgfi
68453544ea2eSmrg
68463544ea2eSmrg
68473544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
68483544ea2eSmrg
68493544ea2eSmrg		eval supported=\$$cacheid
68503544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
68513544ea2eSmrg$as_echo "$supported" >&6; }
68523544ea2eSmrg		if test "$supported" = "yes" ; then
68533544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
68543544ea2eSmrg			found="yes"
68553544ea2eSmrg		fi
68563544ea2eSmrg	fi
68573544ea2eSmrg
68583544ea2eSmrg	if test $found = "no" ; then
68593544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
68603544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
68613544ea2eSmrg		fi
68623544ea2eSmrg
68633544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
68643544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
68653544ea2eSmrg		fi
68663544ea2eSmrg
68673544ea2eSmrg		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
68683544ea2eSmrg
68693544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
68703544ea2eSmrg$as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
68713544ea2eSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
68723544ea2eSmrg		if eval \${$cacheid+:} false; then :
68733544ea2eSmrg  $as_echo_n "(cached) " >&6
68743544ea2eSmrgelse
68753544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68763544ea2eSmrg/* end confdefs.h.  */
68773544ea2eSmrgint i;
68783544ea2eSmrgint
68793544ea2eSmrgmain ()
68803544ea2eSmrg{
68813544ea2eSmrg
68823544ea2eSmrg  ;
68833544ea2eSmrg  return 0;
68843544ea2eSmrg}
68853544ea2eSmrg_ACEOF
68863544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
68873544ea2eSmrg  eval $cacheid=yes
68883544ea2eSmrgelse
68893544ea2eSmrg  eval $cacheid=no
68903544ea2eSmrgfi
68913544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
68923544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
68933544ea2eSmrgfi
68943544ea2eSmrg
68953544ea2eSmrg
68963544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
68973544ea2eSmrg
68983544ea2eSmrg		eval supported=\$$cacheid
68993544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
69003544ea2eSmrg$as_echo "$supported" >&6; }
69013544ea2eSmrg		if test "$supported" = "yes" ; then
69023544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
69033544ea2eSmrg			found="yes"
69043544ea2eSmrg		fi
69053544ea2eSmrg	fi
69063544ea2eSmrg
69073544ea2eSmrg
69083544ea2eSmrg
69093544ea2eSmrg
69103544ea2eSmrg
69113544ea2eSmrg
69123544ea2eSmrg
69133544ea2eSmrg
69143544ea2eSmrg
69153544ea2eSmrg
69163544ea2eSmrg
69173544ea2eSmrg
69183544ea2eSmrg
69193544ea2eSmrg
69203544ea2eSmrg
69213544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
69223544ea2eSmrg
69233544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
69243544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
69253544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
69263544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
69273544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
69283544ea2eSmrg  $as_echo_n "(cached) " >&6
69293544ea2eSmrgelse
69303544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69313544ea2eSmrg/* end confdefs.h.  */
69323544ea2eSmrgint i;
69333544ea2eSmrg_ACEOF
69343544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
69353544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
69363544ea2eSmrgelse
69373544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
69383544ea2eSmrgfi
69393544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
69403544ea2eSmrgfi
69413544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
69423544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
69433544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
69443544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
69453544ea2eSmrgfi
69463544ea2eSmrg
69473544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
69483544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
69493544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
69503544ea2eSmrg	fi
69513544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
69523544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
69533544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
69543544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
69553544ea2eSmrg  $as_echo_n "(cached) " >&6
69563544ea2eSmrgelse
69573544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69583544ea2eSmrg/* end confdefs.h.  */
69593544ea2eSmrgint i;
69603544ea2eSmrg_ACEOF
69613544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
69623544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
69633544ea2eSmrgelse
69643544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
69653544ea2eSmrgfi
69663544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
69673544ea2eSmrgfi
69683544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
69693544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
69703544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
69713544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
69723544ea2eSmrgfi
69733544ea2eSmrg
69743544ea2eSmrgfound="no"
69753544ea2eSmrg
69763544ea2eSmrg	if test $found = "no" ; then
69773544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
69783544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
69793544ea2eSmrg		fi
69803544ea2eSmrg
69813544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
69823544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
69833544ea2eSmrg		fi
69843544ea2eSmrg
69853544ea2eSmrg		CFLAGS="$CFLAGS -Werror=nonnull"
69863544ea2eSmrg
69873544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5
69883544ea2eSmrg$as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; }
69893544ea2eSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
69903544ea2eSmrg		if eval \${$cacheid+:} false; then :
69913544ea2eSmrg  $as_echo_n "(cached) " >&6
69923544ea2eSmrgelse
69933544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69943544ea2eSmrg/* end confdefs.h.  */
69953544ea2eSmrgint i;
69963544ea2eSmrgint
69973544ea2eSmrgmain ()
69983544ea2eSmrg{
69993544ea2eSmrg
70003544ea2eSmrg  ;
70013544ea2eSmrg  return 0;
70023544ea2eSmrg}
70033544ea2eSmrg_ACEOF
70043544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
70053544ea2eSmrg  eval $cacheid=yes
70063544ea2eSmrgelse
70073544ea2eSmrg  eval $cacheid=no
70083544ea2eSmrgfi
70093544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
70103544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
70113544ea2eSmrgfi
70123544ea2eSmrg
70133544ea2eSmrg
70143544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
70153544ea2eSmrg
70163544ea2eSmrg		eval supported=\$$cacheid
70173544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
70183544ea2eSmrg$as_echo "$supported" >&6; }
70193544ea2eSmrg		if test "$supported" = "yes" ; then
70203544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
70213544ea2eSmrg			found="yes"
70223544ea2eSmrg		fi
70233544ea2eSmrg	fi
70243544ea2eSmrg
70253544ea2eSmrg
70263544ea2eSmrg
70273544ea2eSmrg
70283544ea2eSmrg
70293544ea2eSmrg
70303544ea2eSmrg
70313544ea2eSmrg
70323544ea2eSmrg
70333544ea2eSmrg
70343544ea2eSmrg
70353544ea2eSmrg
70363544ea2eSmrg
70373544ea2eSmrg
70383544ea2eSmrg
70393544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
70403544ea2eSmrg
70413544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
70423544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
70433544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
70443544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
70453544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
70463544ea2eSmrg  $as_echo_n "(cached) " >&6
70473544ea2eSmrgelse
70483544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
70493544ea2eSmrg/* end confdefs.h.  */
70503544ea2eSmrgint i;
70513544ea2eSmrg_ACEOF
70523544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
70533544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
70543544ea2eSmrgelse
70553544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
70563544ea2eSmrgfi
70573544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
70583544ea2eSmrgfi
70593544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
70603544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
70613544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
70623544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
70633544ea2eSmrgfi
70643544ea2eSmrg
70653544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
70663544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
70673544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
70683544ea2eSmrg	fi
70693544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
70703544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
70713544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
70723544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
70733544ea2eSmrg  $as_echo_n "(cached) " >&6
70743544ea2eSmrgelse
70753544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
70763544ea2eSmrg/* end confdefs.h.  */
70773544ea2eSmrgint i;
70783544ea2eSmrg_ACEOF
70793544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
70803544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
70813544ea2eSmrgelse
70823544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
70833544ea2eSmrgfi
70843544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
70853544ea2eSmrgfi
70863544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
70873544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
70883544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
70893544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
70903544ea2eSmrgfi
70913544ea2eSmrg
70923544ea2eSmrgfound="no"
70933544ea2eSmrg
70943544ea2eSmrg	if test $found = "no" ; then
70953544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
70963544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
70973544ea2eSmrg		fi
70983544ea2eSmrg
70993544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
71003544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
71013544ea2eSmrg		fi
71023544ea2eSmrg
71033544ea2eSmrg		CFLAGS="$CFLAGS -Werror=init-self"
71043544ea2eSmrg
71053544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5
71063544ea2eSmrg$as_echo_n "checking if $CC supports-Werror=init-self... " >&6; }
71073544ea2eSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
71083544ea2eSmrg		if eval \${$cacheid+:} false; then :
71093544ea2eSmrg  $as_echo_n "(cached) " >&6
71103544ea2eSmrgelse
71113544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71123544ea2eSmrg/* end confdefs.h.  */
71133544ea2eSmrgint i;
71143544ea2eSmrgint
71153544ea2eSmrgmain ()
71163544ea2eSmrg{
71173544ea2eSmrg
71183544ea2eSmrg  ;
71193544ea2eSmrg  return 0;
71203544ea2eSmrg}
71213544ea2eSmrg_ACEOF
71223544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
71233544ea2eSmrg  eval $cacheid=yes
71243544ea2eSmrgelse
71253544ea2eSmrg  eval $cacheid=no
71263544ea2eSmrgfi
71273544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
71283544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
71293544ea2eSmrgfi
71303544ea2eSmrg
71313544ea2eSmrg
71323544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
71333544ea2eSmrg
71343544ea2eSmrg		eval supported=\$$cacheid
71353544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
71363544ea2eSmrg$as_echo "$supported" >&6; }
71373544ea2eSmrg		if test "$supported" = "yes" ; then
71383544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
71393544ea2eSmrg			found="yes"
71403544ea2eSmrg		fi
71413544ea2eSmrg	fi
71423544ea2eSmrg
71433544ea2eSmrg
71443544ea2eSmrg
71453544ea2eSmrg
71463544ea2eSmrg
71473544ea2eSmrg
71483544ea2eSmrg
71493544ea2eSmrg
71503544ea2eSmrg
71513544ea2eSmrg
71523544ea2eSmrg
71533544ea2eSmrg
71543544ea2eSmrg
71553544ea2eSmrg
71563544ea2eSmrg
71573544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
71583544ea2eSmrg
71593544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
71603544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
71613544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
71623544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
71633544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
71643544ea2eSmrg  $as_echo_n "(cached) " >&6
71653544ea2eSmrgelse
71663544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71673544ea2eSmrg/* end confdefs.h.  */
71683544ea2eSmrgint i;
71693544ea2eSmrg_ACEOF
71703544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
71713544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
71723544ea2eSmrgelse
71733544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
71743544ea2eSmrgfi
71753544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
71763544ea2eSmrgfi
71773544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
71783544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
71793544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
71803544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
71813544ea2eSmrgfi
71823544ea2eSmrg
71833544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
71843544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
71853544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
71863544ea2eSmrg	fi
71873544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
71883544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
71893544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
71903544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
71913544ea2eSmrg  $as_echo_n "(cached) " >&6
71923544ea2eSmrgelse
71933544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71943544ea2eSmrg/* end confdefs.h.  */
71953544ea2eSmrgint i;
71963544ea2eSmrg_ACEOF
71973544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
71983544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
71993544ea2eSmrgelse
72003544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
72013544ea2eSmrgfi
72023544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
72033544ea2eSmrgfi
72043544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
72053544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
72063544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
72073544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
72083544ea2eSmrgfi
72093544ea2eSmrg
72103544ea2eSmrgfound="no"
72113544ea2eSmrg
72123544ea2eSmrg	if test $found = "no" ; then
72133544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
72143544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
72153544ea2eSmrg		fi
72163544ea2eSmrg
72173544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
72183544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
72193544ea2eSmrg		fi
72203544ea2eSmrg
72213544ea2eSmrg		CFLAGS="$CFLAGS -Werror=main"
72223544ea2eSmrg
72233544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5
72243544ea2eSmrg$as_echo_n "checking if $CC supports-Werror=main... " >&6; }
72253544ea2eSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
72263544ea2eSmrg		if eval \${$cacheid+:} false; then :
72273544ea2eSmrg  $as_echo_n "(cached) " >&6
72283544ea2eSmrgelse
72293544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
72303544ea2eSmrg/* end confdefs.h.  */
72313544ea2eSmrgint i;
72323544ea2eSmrgint
72333544ea2eSmrgmain ()
72343544ea2eSmrg{
72353544ea2eSmrg
72363544ea2eSmrg  ;
72373544ea2eSmrg  return 0;
72383544ea2eSmrg}
72393544ea2eSmrg_ACEOF
72403544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
72413544ea2eSmrg  eval $cacheid=yes
72423544ea2eSmrgelse
72433544ea2eSmrg  eval $cacheid=no
72443544ea2eSmrgfi
72453544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
72463544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
72473544ea2eSmrgfi
72483544ea2eSmrg
72493544ea2eSmrg
72503544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
72513544ea2eSmrg
72523544ea2eSmrg		eval supported=\$$cacheid
72533544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
72543544ea2eSmrg$as_echo "$supported" >&6; }
72553544ea2eSmrg		if test "$supported" = "yes" ; then
72563544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
72573544ea2eSmrg			found="yes"
72583544ea2eSmrg		fi
72593544ea2eSmrg	fi
72603544ea2eSmrg
72613544ea2eSmrg
72623544ea2eSmrg
72633544ea2eSmrg
72643544ea2eSmrg
72653544ea2eSmrg
72663544ea2eSmrg
72673544ea2eSmrg
72683544ea2eSmrg
72693544ea2eSmrg
72703544ea2eSmrg
72713544ea2eSmrg
72723544ea2eSmrg
72733544ea2eSmrg
72743544ea2eSmrg
72753544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
72763544ea2eSmrg
72773544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
72783544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
72793544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
72803544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
72813544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
72823544ea2eSmrg  $as_echo_n "(cached) " >&6
72833544ea2eSmrgelse
72843544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
72853544ea2eSmrg/* end confdefs.h.  */
72863544ea2eSmrgint i;
72873544ea2eSmrg_ACEOF
72883544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
72893544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
72903544ea2eSmrgelse
72913544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
72923544ea2eSmrgfi
72933544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
72943544ea2eSmrgfi
72953544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
72963544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
72973544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
72983544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
72993544ea2eSmrgfi
73003544ea2eSmrg
73013544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
73023544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
73033544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
73043544ea2eSmrg	fi
73053544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
73063544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
73073544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
73083544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
73093544ea2eSmrg  $as_echo_n "(cached) " >&6
73103544ea2eSmrgelse
73113544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
73123544ea2eSmrg/* end confdefs.h.  */
73133544ea2eSmrgint i;
73143544ea2eSmrg_ACEOF
73153544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
73163544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
73173544ea2eSmrgelse
73183544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
73193544ea2eSmrgfi
73203544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
73213544ea2eSmrgfi
73223544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
73233544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
73243544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
73253544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
73263544ea2eSmrgfi
73273544ea2eSmrg
73283544ea2eSmrgfound="no"
73293544ea2eSmrg
73303544ea2eSmrg	if test $found = "no" ; then
73313544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
73323544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
73333544ea2eSmrg		fi
73343544ea2eSmrg
73353544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
73363544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
73373544ea2eSmrg		fi
73383544ea2eSmrg
73393544ea2eSmrg		CFLAGS="$CFLAGS -Werror=missing-braces"
73403544ea2eSmrg
73413544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5
73423544ea2eSmrg$as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; }
73433544ea2eSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
73443544ea2eSmrg		if eval \${$cacheid+:} false; then :
73453544ea2eSmrg  $as_echo_n "(cached) " >&6
73463544ea2eSmrgelse
73473544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
73483544ea2eSmrg/* end confdefs.h.  */
73493544ea2eSmrgint i;
73503544ea2eSmrgint
73513544ea2eSmrgmain ()
73523544ea2eSmrg{
73533544ea2eSmrg
73543544ea2eSmrg  ;
73553544ea2eSmrg  return 0;
73563544ea2eSmrg}
73573544ea2eSmrg_ACEOF
73583544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
73593544ea2eSmrg  eval $cacheid=yes
73603544ea2eSmrgelse
73613544ea2eSmrg  eval $cacheid=no
73623544ea2eSmrgfi
73633544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
73643544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
73653544ea2eSmrgfi
73663544ea2eSmrg
73673544ea2eSmrg
73683544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
73693544ea2eSmrg
73703544ea2eSmrg		eval supported=\$$cacheid
73713544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
73723544ea2eSmrg$as_echo "$supported" >&6; }
73733544ea2eSmrg		if test "$supported" = "yes" ; then
73743544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
73753544ea2eSmrg			found="yes"
73763544ea2eSmrg		fi
73773544ea2eSmrg	fi
73783544ea2eSmrg
73793544ea2eSmrg
73803544ea2eSmrg
73813544ea2eSmrg
73823544ea2eSmrg
73833544ea2eSmrg
73843544ea2eSmrg
73853544ea2eSmrg
73863544ea2eSmrg
73873544ea2eSmrg
73883544ea2eSmrg
73893544ea2eSmrg
73903544ea2eSmrg
73913544ea2eSmrg
73923544ea2eSmrg
73933544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
73943544ea2eSmrg
73953544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
73963544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
73973544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
73983544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
73993544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
74003544ea2eSmrg  $as_echo_n "(cached) " >&6
74013544ea2eSmrgelse
74023544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
74033544ea2eSmrg/* end confdefs.h.  */
74043544ea2eSmrgint i;
74053544ea2eSmrg_ACEOF
74063544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
74073544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
74083544ea2eSmrgelse
74093544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
74103544ea2eSmrgfi
74113544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
74123544ea2eSmrgfi
74133544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
74143544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
74153544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
74163544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
74173544ea2eSmrgfi
74183544ea2eSmrg
74193544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
74203544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
74213544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
74223544ea2eSmrg	fi
74233544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
74243544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
74253544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
74263544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
74273544ea2eSmrg  $as_echo_n "(cached) " >&6
74283544ea2eSmrgelse
74293544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
74303544ea2eSmrg/* end confdefs.h.  */
74313544ea2eSmrgint i;
74323544ea2eSmrg_ACEOF
74333544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
74343544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
74353544ea2eSmrgelse
74363544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
74373544ea2eSmrgfi
74383544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
74393544ea2eSmrgfi
74403544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
74413544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
74423544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
74433544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
74443544ea2eSmrgfi
74453544ea2eSmrg
74463544ea2eSmrgfound="no"
74473544ea2eSmrg
74483544ea2eSmrg	if test $found = "no" ; then
74493544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
74503544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
74513544ea2eSmrg		fi
74523544ea2eSmrg
74533544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
74543544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
74553544ea2eSmrg		fi
74563544ea2eSmrg
74573544ea2eSmrg		CFLAGS="$CFLAGS -Werror=sequence-point"
74583544ea2eSmrg
74593544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5
74603544ea2eSmrg$as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; }
74613544ea2eSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
74623544ea2eSmrg		if eval \${$cacheid+:} false; then :
74633544ea2eSmrg  $as_echo_n "(cached) " >&6
74643544ea2eSmrgelse
74653544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
74663544ea2eSmrg/* end confdefs.h.  */
74673544ea2eSmrgint i;
74683544ea2eSmrgint
74693544ea2eSmrgmain ()
74703544ea2eSmrg{
74713544ea2eSmrg
74723544ea2eSmrg  ;
74733544ea2eSmrg  return 0;
74743544ea2eSmrg}
74753544ea2eSmrg_ACEOF
74763544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
74773544ea2eSmrg  eval $cacheid=yes
74783544ea2eSmrgelse
74793544ea2eSmrg  eval $cacheid=no
74803544ea2eSmrgfi
74813544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
74823544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
74833544ea2eSmrgfi
74843544ea2eSmrg
74853544ea2eSmrg
74863544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
74873544ea2eSmrg
74883544ea2eSmrg		eval supported=\$$cacheid
74893544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
74903544ea2eSmrg$as_echo "$supported" >&6; }
74913544ea2eSmrg		if test "$supported" = "yes" ; then
74923544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
74933544ea2eSmrg			found="yes"
74943544ea2eSmrg		fi
74953544ea2eSmrg	fi
74963544ea2eSmrg
74973544ea2eSmrg
74983544ea2eSmrg
74993544ea2eSmrg
75003544ea2eSmrg
75013544ea2eSmrg
75023544ea2eSmrg
75033544ea2eSmrg
75043544ea2eSmrg
75053544ea2eSmrg
75063544ea2eSmrg
75073544ea2eSmrg
75083544ea2eSmrg
75093544ea2eSmrg
75103544ea2eSmrg
75113544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
75123544ea2eSmrg
75133544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
75143544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
75153544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
75163544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
75173544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
75183544ea2eSmrg  $as_echo_n "(cached) " >&6
75193544ea2eSmrgelse
75203544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
75213544ea2eSmrg/* end confdefs.h.  */
75223544ea2eSmrgint i;
75233544ea2eSmrg_ACEOF
75243544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
75253544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
75263544ea2eSmrgelse
75273544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
75283544ea2eSmrgfi
75293544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
75303544ea2eSmrgfi
75313544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
75323544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
75333544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
75343544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
75353544ea2eSmrgfi
75363544ea2eSmrg
75373544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
75383544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
75393544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
75403544ea2eSmrg	fi
75413544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
75423544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
75433544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
75443544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
75453544ea2eSmrg  $as_echo_n "(cached) " >&6
75463544ea2eSmrgelse
75473544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
75483544ea2eSmrg/* end confdefs.h.  */
75493544ea2eSmrgint i;
75503544ea2eSmrg_ACEOF
75513544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
75523544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
75533544ea2eSmrgelse
75543544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
75553544ea2eSmrgfi
75563544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
75573544ea2eSmrgfi
75583544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
75593544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
75603544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
75613544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
75623544ea2eSmrgfi
75633544ea2eSmrg
75643544ea2eSmrgfound="no"
75653544ea2eSmrg
75663544ea2eSmrg	if test $found = "no" ; then
75673544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
75683544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
75693544ea2eSmrg		fi
75703544ea2eSmrg
75713544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
75723544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
75733544ea2eSmrg		fi
75743544ea2eSmrg
75753544ea2eSmrg		CFLAGS="$CFLAGS -Werror=return-type"
75763544ea2eSmrg
75773544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5
75783544ea2eSmrg$as_echo_n "checking if $CC supports-Werror=return-type... " >&6; }
75793544ea2eSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
75803544ea2eSmrg		if eval \${$cacheid+:} false; then :
75813544ea2eSmrg  $as_echo_n "(cached) " >&6
75823544ea2eSmrgelse
75833544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
75843544ea2eSmrg/* end confdefs.h.  */
75853544ea2eSmrgint i;
75863544ea2eSmrgint
75873544ea2eSmrgmain ()
75883544ea2eSmrg{
75893544ea2eSmrg
75903544ea2eSmrg  ;
75913544ea2eSmrg  return 0;
75923544ea2eSmrg}
75933544ea2eSmrg_ACEOF
75943544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
75953544ea2eSmrg  eval $cacheid=yes
75963544ea2eSmrgelse
75973544ea2eSmrg  eval $cacheid=no
75983544ea2eSmrgfi
75993544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
76003544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
76013544ea2eSmrgfi
76023544ea2eSmrg
76033544ea2eSmrg
76043544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
76053544ea2eSmrg
76063544ea2eSmrg		eval supported=\$$cacheid
76073544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
76083544ea2eSmrg$as_echo "$supported" >&6; }
76093544ea2eSmrg		if test "$supported" = "yes" ; then
76103544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
76113544ea2eSmrg			found="yes"
76123544ea2eSmrg		fi
76133544ea2eSmrg	fi
76143544ea2eSmrg
76153544ea2eSmrg	if test $found = "no" ; then
76163544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
76173544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
76183544ea2eSmrg		fi
76193544ea2eSmrg
76203544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
76213544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
76223544ea2eSmrg		fi
76233544ea2eSmrg
76243544ea2eSmrg		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
76253544ea2eSmrg
76263544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
76273544ea2eSmrg$as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
76283544ea2eSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
76293544ea2eSmrg		if eval \${$cacheid+:} false; then :
76303544ea2eSmrg  $as_echo_n "(cached) " >&6
76313544ea2eSmrgelse
76323544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
76333544ea2eSmrg/* end confdefs.h.  */
76343544ea2eSmrgint i;
76353544ea2eSmrgint
76363544ea2eSmrgmain ()
76373544ea2eSmrg{
76383544ea2eSmrg
76393544ea2eSmrg  ;
76403544ea2eSmrg  return 0;
76413544ea2eSmrg}
76423544ea2eSmrg_ACEOF
76433544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
76443544ea2eSmrg  eval $cacheid=yes
76453544ea2eSmrgelse
76463544ea2eSmrg  eval $cacheid=no
76473544ea2eSmrgfi
76483544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
76493544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
76503544ea2eSmrgfi
76513544ea2eSmrg
76523544ea2eSmrg
76533544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
76543544ea2eSmrg
76553544ea2eSmrg		eval supported=\$$cacheid
76563544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
76573544ea2eSmrg$as_echo "$supported" >&6; }
76583544ea2eSmrg		if test "$supported" = "yes" ; then
76593544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
76603544ea2eSmrg			found="yes"
76613544ea2eSmrg		fi
76623544ea2eSmrg	fi
76633544ea2eSmrg
76643544ea2eSmrg
76653544ea2eSmrg
76663544ea2eSmrg
76673544ea2eSmrg
76683544ea2eSmrg
76693544ea2eSmrg
76703544ea2eSmrg
76713544ea2eSmrg
76723544ea2eSmrg
76733544ea2eSmrg
76743544ea2eSmrg
76753544ea2eSmrg
76763544ea2eSmrg
76773544ea2eSmrg
76783544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
76793544ea2eSmrg
76803544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
76813544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
76823544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
76833544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
76843544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
76853544ea2eSmrg  $as_echo_n "(cached) " >&6
76863544ea2eSmrgelse
76873544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
76883544ea2eSmrg/* end confdefs.h.  */
76893544ea2eSmrgint i;
76903544ea2eSmrg_ACEOF
76913544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
76923544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
76933544ea2eSmrgelse
76943544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
76953544ea2eSmrgfi
76963544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
76973544ea2eSmrgfi
76983544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
76993544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
77003544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
77013544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
77023544ea2eSmrgfi
77033544ea2eSmrg
77043544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
77053544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
77063544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
77073544ea2eSmrg	fi
77083544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
77093544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
77103544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
77113544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
77123544ea2eSmrg  $as_echo_n "(cached) " >&6
77133544ea2eSmrgelse
77143544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77153544ea2eSmrg/* end confdefs.h.  */
77163544ea2eSmrgint i;
77173544ea2eSmrg_ACEOF
77183544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
77193544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
77203544ea2eSmrgelse
77213544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
77223544ea2eSmrgfi
77233544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
77243544ea2eSmrgfi
77253544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
77263544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
77273544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
77283544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
77293544ea2eSmrgfi
77303544ea2eSmrg
77313544ea2eSmrgfound="no"
77323544ea2eSmrg
77333544ea2eSmrg	if test $found = "no" ; then
77343544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
77353544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
77363544ea2eSmrg		fi
77373544ea2eSmrg
77383544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
77393544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
77403544ea2eSmrg		fi
77413544ea2eSmrg
77423544ea2eSmrg		CFLAGS="$CFLAGS -Werror=trigraphs"
77433544ea2eSmrg
77443544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5
77453544ea2eSmrg$as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; }
77463544ea2eSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
77473544ea2eSmrg		if eval \${$cacheid+:} false; then :
77483544ea2eSmrg  $as_echo_n "(cached) " >&6
77493544ea2eSmrgelse
77503544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77513544ea2eSmrg/* end confdefs.h.  */
77523544ea2eSmrgint i;
77533544ea2eSmrgint
77543544ea2eSmrgmain ()
77553544ea2eSmrg{
77563544ea2eSmrg
77573544ea2eSmrg  ;
77583544ea2eSmrg  return 0;
77593544ea2eSmrg}
77603544ea2eSmrg_ACEOF
77613544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
77623544ea2eSmrg  eval $cacheid=yes
77633544ea2eSmrgelse
77643544ea2eSmrg  eval $cacheid=no
77653544ea2eSmrgfi
77663544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
77673544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
77683544ea2eSmrgfi
77693544ea2eSmrg
77703544ea2eSmrg
77713544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
77723544ea2eSmrg
77733544ea2eSmrg		eval supported=\$$cacheid
77743544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
77753544ea2eSmrg$as_echo "$supported" >&6; }
77763544ea2eSmrg		if test "$supported" = "yes" ; then
77773544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
77783544ea2eSmrg			found="yes"
77793544ea2eSmrg		fi
77803544ea2eSmrg	fi
77813544ea2eSmrg
77823544ea2eSmrg
77833544ea2eSmrg
77843544ea2eSmrg
77853544ea2eSmrg
77863544ea2eSmrg
77873544ea2eSmrg
77883544ea2eSmrg
77893544ea2eSmrg
77903544ea2eSmrg
77913544ea2eSmrg
77923544ea2eSmrg
77933544ea2eSmrg
77943544ea2eSmrg
77953544ea2eSmrg
77963544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
77973544ea2eSmrg
77983544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
77993544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
78003544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
78013544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
78023544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
78033544ea2eSmrg  $as_echo_n "(cached) " >&6
78043544ea2eSmrgelse
78053544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
78063544ea2eSmrg/* end confdefs.h.  */
78073544ea2eSmrgint i;
78083544ea2eSmrg_ACEOF
78093544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
78103544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
78113544ea2eSmrgelse
78123544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
78133544ea2eSmrgfi
78143544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
78153544ea2eSmrgfi
78163544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
78173544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
78183544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
78193544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
78203544ea2eSmrgfi
78213544ea2eSmrg
78223544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
78233544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
78243544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
78253544ea2eSmrg	fi
78263544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
78273544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
78283544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
78293544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
78303544ea2eSmrg  $as_echo_n "(cached) " >&6
78313544ea2eSmrgelse
78323544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
78333544ea2eSmrg/* end confdefs.h.  */
78343544ea2eSmrgint i;
78353544ea2eSmrg_ACEOF
78363544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
78373544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
78383544ea2eSmrgelse
78393544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
78403544ea2eSmrgfi
78413544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
78423544ea2eSmrgfi
78433544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
78443544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
78453544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
78463544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
78473544ea2eSmrgfi
78483544ea2eSmrg
78493544ea2eSmrgfound="no"
78503544ea2eSmrg
78513544ea2eSmrg	if test $found = "no" ; then
78523544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
78533544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
78543544ea2eSmrg		fi
78553544ea2eSmrg
78563544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
78573544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
78583544ea2eSmrg		fi
78593544ea2eSmrg
78603544ea2eSmrg		CFLAGS="$CFLAGS -Werror=array-bounds"
78613544ea2eSmrg
78623544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5
78633544ea2eSmrg$as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; }
78643544ea2eSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
78653544ea2eSmrg		if eval \${$cacheid+:} false; then :
78663544ea2eSmrg  $as_echo_n "(cached) " >&6
78673544ea2eSmrgelse
78683544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
78693544ea2eSmrg/* end confdefs.h.  */
78703544ea2eSmrgint i;
78713544ea2eSmrgint
78723544ea2eSmrgmain ()
78733544ea2eSmrg{
78743544ea2eSmrg
78753544ea2eSmrg  ;
78763544ea2eSmrg  return 0;
78773544ea2eSmrg}
78783544ea2eSmrg_ACEOF
78793544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
78803544ea2eSmrg  eval $cacheid=yes
78813544ea2eSmrgelse
78823544ea2eSmrg  eval $cacheid=no
78833544ea2eSmrgfi
78843544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
78853544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
78863544ea2eSmrgfi
78873544ea2eSmrg
78883544ea2eSmrg
78893544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
78903544ea2eSmrg
78913544ea2eSmrg		eval supported=\$$cacheid
78923544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
78933544ea2eSmrg$as_echo "$supported" >&6; }
78943544ea2eSmrg		if test "$supported" = "yes" ; then
78953544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
78963544ea2eSmrg			found="yes"
78973544ea2eSmrg		fi
78983544ea2eSmrg	fi
78993544ea2eSmrg
79003544ea2eSmrg
79013544ea2eSmrg
79023544ea2eSmrg
79033544ea2eSmrg
79043544ea2eSmrg
79053544ea2eSmrg
79063544ea2eSmrg
79073544ea2eSmrg
79083544ea2eSmrg
79093544ea2eSmrg
79103544ea2eSmrg
79113544ea2eSmrg
79123544ea2eSmrg
79133544ea2eSmrg
79143544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
79153544ea2eSmrg
79163544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
79173544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
79183544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
79193544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
79203544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
79213544ea2eSmrg  $as_echo_n "(cached) " >&6
79223544ea2eSmrgelse
79233544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79243544ea2eSmrg/* end confdefs.h.  */
79253544ea2eSmrgint i;
79263544ea2eSmrg_ACEOF
79273544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
79283544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
79293544ea2eSmrgelse
79303544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
79313544ea2eSmrgfi
79323544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
79333544ea2eSmrgfi
79343544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
79353544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
79363544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
79373544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
79383544ea2eSmrgfi
79393544ea2eSmrg
79403544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
79413544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
79423544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
79433544ea2eSmrg	fi
79443544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
79453544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
79463544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
79473544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
79483544ea2eSmrg  $as_echo_n "(cached) " >&6
79493544ea2eSmrgelse
79503544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79513544ea2eSmrg/* end confdefs.h.  */
79523544ea2eSmrgint i;
79533544ea2eSmrg_ACEOF
79543544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
79553544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
79563544ea2eSmrgelse
79573544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
79583544ea2eSmrgfi
79593544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
79603544ea2eSmrgfi
79613544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
79623544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
79633544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
79643544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
79653544ea2eSmrgfi
79663544ea2eSmrg
79673544ea2eSmrgfound="no"
79683544ea2eSmrg
79693544ea2eSmrg	if test $found = "no" ; then
79703544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
79713544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
79723544ea2eSmrg		fi
79733544ea2eSmrg
79743544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
79753544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
79763544ea2eSmrg		fi
79773544ea2eSmrg
79783544ea2eSmrg		CFLAGS="$CFLAGS -Werror=write-strings"
79793544ea2eSmrg
79803544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5
79813544ea2eSmrg$as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; }
79823544ea2eSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
79833544ea2eSmrg		if eval \${$cacheid+:} false; then :
79843544ea2eSmrg  $as_echo_n "(cached) " >&6
79853544ea2eSmrgelse
79863544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79873544ea2eSmrg/* end confdefs.h.  */
79883544ea2eSmrgint i;
79893544ea2eSmrgint
79903544ea2eSmrgmain ()
79913544ea2eSmrg{
79923544ea2eSmrg
79933544ea2eSmrg  ;
79943544ea2eSmrg  return 0;
79953544ea2eSmrg}
79963544ea2eSmrg_ACEOF
79973544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
79983544ea2eSmrg  eval $cacheid=yes
79993544ea2eSmrgelse
80003544ea2eSmrg  eval $cacheid=no
80013544ea2eSmrgfi
80023544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
80033544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
80043544ea2eSmrgfi
80053544ea2eSmrg
80063544ea2eSmrg
80073544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
80083544ea2eSmrg
80093544ea2eSmrg		eval supported=\$$cacheid
80103544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
80113544ea2eSmrg$as_echo "$supported" >&6; }
80123544ea2eSmrg		if test "$supported" = "yes" ; then
80133544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
80143544ea2eSmrg			found="yes"
80153544ea2eSmrg		fi
80163544ea2eSmrg	fi
80173544ea2eSmrg
80183544ea2eSmrg
80193544ea2eSmrg
80203544ea2eSmrg
80213544ea2eSmrg
80223544ea2eSmrg
80233544ea2eSmrg
80243544ea2eSmrg
80253544ea2eSmrg
80263544ea2eSmrg
80273544ea2eSmrg
80283544ea2eSmrg
80293544ea2eSmrg
80303544ea2eSmrg
80313544ea2eSmrg
80323544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
80333544ea2eSmrg
80343544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
80353544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
80363544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
80373544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
80383544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
80393544ea2eSmrg  $as_echo_n "(cached) " >&6
80403544ea2eSmrgelse
80413544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
80423544ea2eSmrg/* end confdefs.h.  */
80433544ea2eSmrgint i;
80443544ea2eSmrg_ACEOF
80453544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
80463544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
80473544ea2eSmrgelse
80483544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
80493544ea2eSmrgfi
80503544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80513544ea2eSmrgfi
80523544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
80533544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
80543544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
80553544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
80563544ea2eSmrgfi
80573544ea2eSmrg
80583544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
80593544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
80603544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
80613544ea2eSmrg	fi
80623544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
80633544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
80643544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
80653544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
80663544ea2eSmrg  $as_echo_n "(cached) " >&6
80673544ea2eSmrgelse
80683544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
80693544ea2eSmrg/* end confdefs.h.  */
80703544ea2eSmrgint i;
80713544ea2eSmrg_ACEOF
80723544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
80733544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
80743544ea2eSmrgelse
80753544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
80763544ea2eSmrgfi
80773544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80783544ea2eSmrgfi
80793544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
80803544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
80813544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
80823544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
80833544ea2eSmrgfi
80843544ea2eSmrg
80853544ea2eSmrgfound="no"
80863544ea2eSmrg
80873544ea2eSmrg	if test $found = "no" ; then
80883544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
80893544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
80903544ea2eSmrg		fi
80913544ea2eSmrg
80923544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
80933544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
80943544ea2eSmrg		fi
80953544ea2eSmrg
80963544ea2eSmrg		CFLAGS="$CFLAGS -Werror=address"
80973544ea2eSmrg
80983544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5
80993544ea2eSmrg$as_echo_n "checking if $CC supports-Werror=address... " >&6; }
81003544ea2eSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
81013544ea2eSmrg		if eval \${$cacheid+:} false; then :
81023544ea2eSmrg  $as_echo_n "(cached) " >&6
81033544ea2eSmrgelse
81043544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81053544ea2eSmrg/* end confdefs.h.  */
81063544ea2eSmrgint i;
81073544ea2eSmrgint
81083544ea2eSmrgmain ()
81093544ea2eSmrg{
81103544ea2eSmrg
81113544ea2eSmrg  ;
81123544ea2eSmrg  return 0;
81133544ea2eSmrg}
81143544ea2eSmrg_ACEOF
81153544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
81163544ea2eSmrg  eval $cacheid=yes
81173544ea2eSmrgelse
81183544ea2eSmrg  eval $cacheid=no
81193544ea2eSmrgfi
81203544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
81213544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
81223544ea2eSmrgfi
81233544ea2eSmrg
81243544ea2eSmrg
81253544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
81263544ea2eSmrg
81273544ea2eSmrg		eval supported=\$$cacheid
81283544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
81293544ea2eSmrg$as_echo "$supported" >&6; }
81303544ea2eSmrg		if test "$supported" = "yes" ; then
81313544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
81323544ea2eSmrg			found="yes"
81333544ea2eSmrg		fi
81343544ea2eSmrg	fi
81353544ea2eSmrg
81363544ea2eSmrg
81373544ea2eSmrg
81383544ea2eSmrg
81393544ea2eSmrg
81403544ea2eSmrg
81413544ea2eSmrg
81423544ea2eSmrg
81433544ea2eSmrg
81443544ea2eSmrg
81453544ea2eSmrg
81463544ea2eSmrg
81473544ea2eSmrg
81483544ea2eSmrg
81493544ea2eSmrg
81503544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
81513544ea2eSmrg
81523544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
81533544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
81543544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
81553544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
81563544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
81573544ea2eSmrg  $as_echo_n "(cached) " >&6
81583544ea2eSmrgelse
81593544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81603544ea2eSmrg/* end confdefs.h.  */
81613544ea2eSmrgint i;
81623544ea2eSmrg_ACEOF
81633544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
81643544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
81653544ea2eSmrgelse
81663544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
81673544ea2eSmrgfi
81683544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
81693544ea2eSmrgfi
81703544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
81713544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
81723544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
81733544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
81743544ea2eSmrgfi
81753544ea2eSmrg
81763544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
81773544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
81783544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
81793544ea2eSmrg	fi
81803544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
81813544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
81823544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
81833544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
81843544ea2eSmrg  $as_echo_n "(cached) " >&6
81853544ea2eSmrgelse
81863544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81873544ea2eSmrg/* end confdefs.h.  */
81883544ea2eSmrgint i;
81893544ea2eSmrg_ACEOF
81903544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
81913544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
81923544ea2eSmrgelse
81933544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
81943544ea2eSmrgfi
81953544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
81963544ea2eSmrgfi
81973544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
81983544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
81993544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
82003544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
82013544ea2eSmrgfi
82023544ea2eSmrg
82033544ea2eSmrgfound="no"
82043544ea2eSmrg
82053544ea2eSmrg	if test $found = "no" ; then
82063544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
82073544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
82083544ea2eSmrg		fi
82093544ea2eSmrg
82103544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
82113544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
82123544ea2eSmrg		fi
82133544ea2eSmrg
82143544ea2eSmrg		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
82153544ea2eSmrg
82163544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5
82173544ea2eSmrg$as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; }
82183544ea2eSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
82193544ea2eSmrg		if eval \${$cacheid+:} false; then :
82203544ea2eSmrg  $as_echo_n "(cached) " >&6
82213544ea2eSmrgelse
82223544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
82233544ea2eSmrg/* end confdefs.h.  */
82243544ea2eSmrgint i;
82253544ea2eSmrgint
82263544ea2eSmrgmain ()
82273544ea2eSmrg{
82283544ea2eSmrg
82293544ea2eSmrg  ;
82303544ea2eSmrg  return 0;
82313544ea2eSmrg}
82323544ea2eSmrg_ACEOF
82333544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
82343544ea2eSmrg  eval $cacheid=yes
82353544ea2eSmrgelse
82363544ea2eSmrg  eval $cacheid=no
82373544ea2eSmrgfi
82383544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
82393544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
82403544ea2eSmrgfi
82413544ea2eSmrg
82423544ea2eSmrg
82433544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
82443544ea2eSmrg
82453544ea2eSmrg		eval supported=\$$cacheid
82463544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
82473544ea2eSmrg$as_echo "$supported" >&6; }
82483544ea2eSmrg		if test "$supported" = "yes" ; then
82493544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
82503544ea2eSmrg			found="yes"
82513544ea2eSmrg		fi
82523544ea2eSmrg	fi
82533544ea2eSmrg
82543544ea2eSmrg	if test $found = "no" ; then
82553544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
82563544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
82573544ea2eSmrg		fi
82583544ea2eSmrg
82593544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
82603544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
82613544ea2eSmrg		fi
82623544ea2eSmrg
82633544ea2eSmrg		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
82643544ea2eSmrg
82653544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5
82663544ea2eSmrg$as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
82673544ea2eSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
82683544ea2eSmrg		if eval \${$cacheid+:} false; then :
82693544ea2eSmrg  $as_echo_n "(cached) " >&6
82703544ea2eSmrgelse
82713544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
82723544ea2eSmrg/* end confdefs.h.  */
82733544ea2eSmrgint i;
82743544ea2eSmrgint
82753544ea2eSmrgmain ()
82763544ea2eSmrg{
82773544ea2eSmrg
82783544ea2eSmrg  ;
82793544ea2eSmrg  return 0;
82803544ea2eSmrg}
82813544ea2eSmrg_ACEOF
82823544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
82833544ea2eSmrg  eval $cacheid=yes
82843544ea2eSmrgelse
82853544ea2eSmrg  eval $cacheid=no
82863544ea2eSmrgfi
82873544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
82883544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
82893544ea2eSmrgfi
82903544ea2eSmrg
82913544ea2eSmrg
82923544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
82933544ea2eSmrg
82943544ea2eSmrg		eval supported=\$$cacheid
82953544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
82963544ea2eSmrg$as_echo "$supported" >&6; }
82973544ea2eSmrg		if test "$supported" = "yes" ; then
82983544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
82993544ea2eSmrg			found="yes"
83003544ea2eSmrg		fi
83013544ea2eSmrg	fi
83023544ea2eSmrg
83033544ea2eSmrg
83043544ea2eSmrg
83053544ea2eSmrg
83063544ea2eSmrg
83073544ea2eSmrg
83083544ea2eSmrg
83093544ea2eSmrg
83103544ea2eSmrg
83113544ea2eSmrg
83123544ea2eSmrg
83133544ea2eSmrg
83143544ea2eSmrg
83153544ea2eSmrg
83163544ea2eSmrg
83173544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
83183544ea2eSmrg
83193544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
83203544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
83213544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
83223544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
83233544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
83243544ea2eSmrg  $as_echo_n "(cached) " >&6
83253544ea2eSmrgelse
83263544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
83273544ea2eSmrg/* end confdefs.h.  */
83283544ea2eSmrgint i;
83293544ea2eSmrg_ACEOF
83303544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
83313544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
83323544ea2eSmrgelse
83333544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
83343544ea2eSmrgfi
83353544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
83363544ea2eSmrgfi
83373544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
83383544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
83393544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
83403544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
83413544ea2eSmrgfi
83423544ea2eSmrg
83433544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
83443544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
83453544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
83463544ea2eSmrg	fi
83473544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
83483544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
83493544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
83503544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
83513544ea2eSmrg  $as_echo_n "(cached) " >&6
83523544ea2eSmrgelse
83533544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
83543544ea2eSmrg/* end confdefs.h.  */
83553544ea2eSmrgint i;
83563544ea2eSmrg_ACEOF
83573544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
83583544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
83593544ea2eSmrgelse
83603544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
83613544ea2eSmrgfi
83623544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
83633544ea2eSmrgfi
83643544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
83653544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
83663544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
83673544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
83683544ea2eSmrgfi
83693544ea2eSmrg
83703544ea2eSmrgfound="no"
83713544ea2eSmrg
83723544ea2eSmrg	if test $found = "no" ; then
83733544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
83743544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
83753544ea2eSmrg		fi
83763544ea2eSmrg
83773544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
83783544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
83793544ea2eSmrg		fi
83803544ea2eSmrg
83813544ea2eSmrg		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
83823544ea2eSmrg
83833544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5
83843544ea2eSmrg$as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; }
83853544ea2eSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
83863544ea2eSmrg		if eval \${$cacheid+:} false; then :
83873544ea2eSmrg  $as_echo_n "(cached) " >&6
83883544ea2eSmrgelse
83893544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
83903544ea2eSmrg/* end confdefs.h.  */
83913544ea2eSmrgint i;
83923544ea2eSmrgint
83933544ea2eSmrgmain ()
83943544ea2eSmrg{
83953544ea2eSmrg
83963544ea2eSmrg  ;
83973544ea2eSmrg  return 0;
83983544ea2eSmrg}
83993544ea2eSmrg_ACEOF
84003544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
84013544ea2eSmrg  eval $cacheid=yes
84023544ea2eSmrgelse
84033544ea2eSmrg  eval $cacheid=no
84043544ea2eSmrgfi
84053544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
84063544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
84073544ea2eSmrgfi
84083544ea2eSmrg
84093544ea2eSmrg
84103544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
84113544ea2eSmrg
84123544ea2eSmrg		eval supported=\$$cacheid
84133544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
84143544ea2eSmrg$as_echo "$supported" >&6; }
84153544ea2eSmrg		if test "$supported" = "yes" ; then
84163544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
84173544ea2eSmrg			found="yes"
84183544ea2eSmrg		fi
84193544ea2eSmrg	fi
84203544ea2eSmrg
84213544ea2eSmrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION
84223544ea2eSmrgelse
84233544ea2eSmrg{ $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
84243544ea2eSmrg$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;}
84253544ea2eSmrg
84263544ea2eSmrg
84273544ea2eSmrg
84283544ea2eSmrg
84293544ea2eSmrg
84303544ea2eSmrg
84313544ea2eSmrg
84323544ea2eSmrg
84333544ea2eSmrg
84343544ea2eSmrg
84353544ea2eSmrg
84363544ea2eSmrg
84373544ea2eSmrg
84383544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
84393544ea2eSmrg
84403544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
84413544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
84423544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
84433544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
84443544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
84453544ea2eSmrg  $as_echo_n "(cached) " >&6
84463544ea2eSmrgelse
84473544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
84483544ea2eSmrg/* end confdefs.h.  */
84493544ea2eSmrgint i;
84503544ea2eSmrg_ACEOF
84513544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
84523544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
84533544ea2eSmrgelse
84543544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
84553544ea2eSmrgfi
84563544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
84573544ea2eSmrgfi
84583544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
84593544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
84603544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
84613544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
84623544ea2eSmrgfi
84633544ea2eSmrg
84643544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
84653544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
84663544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
84673544ea2eSmrg	fi
84683544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
84693544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
84703544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
84713544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
84723544ea2eSmrg  $as_echo_n "(cached) " >&6
84733544ea2eSmrgelse
84743544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
84753544ea2eSmrg/* end confdefs.h.  */
84763544ea2eSmrgint i;
84773544ea2eSmrg_ACEOF
84783544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
84793544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
84803544ea2eSmrgelse
84813544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
84823544ea2eSmrgfi
84833544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
84843544ea2eSmrgfi
84853544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
84863544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
84873544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
84883544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
84893544ea2eSmrgfi
84903544ea2eSmrg
84913544ea2eSmrgfound="no"
84923544ea2eSmrg
84933544ea2eSmrg	if test $found = "no" ; then
84943544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
84953544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
84963544ea2eSmrg		fi
84973544ea2eSmrg
84983544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
84993544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
85003544ea2eSmrg		fi
85013544ea2eSmrg
85023544ea2eSmrg		CFLAGS="$CFLAGS -Wimplicit"
85033544ea2eSmrg
85043544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5
85053544ea2eSmrg$as_echo_n "checking if $CC supports-Wimplicit... " >&6; }
85063544ea2eSmrg		cacheid=xorg_cv_cc_flag__Wimplicit
85073544ea2eSmrg		if eval \${$cacheid+:} false; then :
85083544ea2eSmrg  $as_echo_n "(cached) " >&6
85093544ea2eSmrgelse
85103544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85113544ea2eSmrg/* end confdefs.h.  */
85123544ea2eSmrgint i;
85133544ea2eSmrgint
85143544ea2eSmrgmain ()
85153544ea2eSmrg{
85163544ea2eSmrg
85173544ea2eSmrg  ;
85183544ea2eSmrg  return 0;
85193544ea2eSmrg}
85203544ea2eSmrg_ACEOF
85213544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
85223544ea2eSmrg  eval $cacheid=yes
85233544ea2eSmrgelse
85243544ea2eSmrg  eval $cacheid=no
85253544ea2eSmrgfi
85263544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
85273544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
85283544ea2eSmrgfi
85293544ea2eSmrg
85303544ea2eSmrg
85313544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
85323544ea2eSmrg
85333544ea2eSmrg		eval supported=\$$cacheid
85343544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
85353544ea2eSmrg$as_echo "$supported" >&6; }
85363544ea2eSmrg		if test "$supported" = "yes" ; then
85373544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
85383544ea2eSmrg			found="yes"
85393544ea2eSmrg		fi
85403544ea2eSmrg	fi
85413544ea2eSmrg
85423544ea2eSmrg
85433544ea2eSmrg
85443544ea2eSmrg
85453544ea2eSmrg
85463544ea2eSmrg
85473544ea2eSmrg
85483544ea2eSmrg
85493544ea2eSmrg
85503544ea2eSmrg
85513544ea2eSmrg
85523544ea2eSmrg
85533544ea2eSmrg
85543544ea2eSmrg
85553544ea2eSmrg
85563544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
85573544ea2eSmrg
85583544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
85593544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
85603544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
85613544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
85623544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
85633544ea2eSmrg  $as_echo_n "(cached) " >&6
85643544ea2eSmrgelse
85653544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85663544ea2eSmrg/* end confdefs.h.  */
85673544ea2eSmrgint i;
85683544ea2eSmrg_ACEOF
85693544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
85703544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
85713544ea2eSmrgelse
85723544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
85733544ea2eSmrgfi
85743544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
85753544ea2eSmrgfi
85763544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
85773544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
85783544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
85793544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
85803544ea2eSmrgfi
85813544ea2eSmrg
85823544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
85833544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
85843544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
85853544ea2eSmrg	fi
85863544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
85873544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
85883544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
85893544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
85903544ea2eSmrg  $as_echo_n "(cached) " >&6
85913544ea2eSmrgelse
85923544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85933544ea2eSmrg/* end confdefs.h.  */
85943544ea2eSmrgint i;
85953544ea2eSmrg_ACEOF
85963544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
85973544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
85983544ea2eSmrgelse
85993544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
86003544ea2eSmrgfi
86013544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
86023544ea2eSmrgfi
86033544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
86043544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
86053544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
86063544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
86073544ea2eSmrgfi
86083544ea2eSmrg
86093544ea2eSmrgfound="no"
86103544ea2eSmrg
86113544ea2eSmrg	if test $found = "no" ; then
86123544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
86133544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
86143544ea2eSmrg		fi
86153544ea2eSmrg
86163544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
86173544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
86183544ea2eSmrg		fi
86193544ea2eSmrg
86203544ea2eSmrg		CFLAGS="$CFLAGS -Wnonnull"
86213544ea2eSmrg
86223544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5
86233544ea2eSmrg$as_echo_n "checking if $CC supports-Wnonnull... " >&6; }
86243544ea2eSmrg		cacheid=xorg_cv_cc_flag__Wnonnull
86253544ea2eSmrg		if eval \${$cacheid+:} false; then :
86263544ea2eSmrg  $as_echo_n "(cached) " >&6
86273544ea2eSmrgelse
86283544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86293544ea2eSmrg/* end confdefs.h.  */
86303544ea2eSmrgint i;
86313544ea2eSmrgint
86323544ea2eSmrgmain ()
86333544ea2eSmrg{
86343544ea2eSmrg
86353544ea2eSmrg  ;
86363544ea2eSmrg  return 0;
86373544ea2eSmrg}
86383544ea2eSmrg_ACEOF
86393544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
86403544ea2eSmrg  eval $cacheid=yes
86413544ea2eSmrgelse
86423544ea2eSmrg  eval $cacheid=no
86433544ea2eSmrgfi
86443544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
86453544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
86463544ea2eSmrgfi
86473544ea2eSmrg
86483544ea2eSmrg
86493544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
86503544ea2eSmrg
86513544ea2eSmrg		eval supported=\$$cacheid
86523544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
86533544ea2eSmrg$as_echo "$supported" >&6; }
86543544ea2eSmrg		if test "$supported" = "yes" ; then
86553544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
86563544ea2eSmrg			found="yes"
86573544ea2eSmrg		fi
86583544ea2eSmrg	fi
86593544ea2eSmrg
86603544ea2eSmrg
86613544ea2eSmrg
86623544ea2eSmrg
86633544ea2eSmrg
86643544ea2eSmrg
86653544ea2eSmrg
86663544ea2eSmrg
86673544ea2eSmrg
86683544ea2eSmrg
86693544ea2eSmrg
86703544ea2eSmrg
86713544ea2eSmrg
86723544ea2eSmrg
86733544ea2eSmrg
86743544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
86753544ea2eSmrg
86763544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
86773544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
86783544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
86793544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
86803544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
86813544ea2eSmrg  $as_echo_n "(cached) " >&6
86823544ea2eSmrgelse
86833544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86843544ea2eSmrg/* end confdefs.h.  */
86853544ea2eSmrgint i;
86863544ea2eSmrg_ACEOF
86873544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
86883544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
86893544ea2eSmrgelse
86903544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
86913544ea2eSmrgfi
86923544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
86933544ea2eSmrgfi
86943544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
86953544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
86963544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
86973544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
86983544ea2eSmrgfi
86993544ea2eSmrg
87003544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
87013544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
87023544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
87033544ea2eSmrg	fi
87043544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
87053544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
87063544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
87073544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
87083544ea2eSmrg  $as_echo_n "(cached) " >&6
87093544ea2eSmrgelse
87103544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87113544ea2eSmrg/* end confdefs.h.  */
87123544ea2eSmrgint i;
87133544ea2eSmrg_ACEOF
87143544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
87153544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
87163544ea2eSmrgelse
87173544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
87183544ea2eSmrgfi
87193544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
87203544ea2eSmrgfi
87213544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
87223544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
87233544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
87243544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
87253544ea2eSmrgfi
87263544ea2eSmrg
87273544ea2eSmrgfound="no"
87283544ea2eSmrg
87293544ea2eSmrg	if test $found = "no" ; then
87303544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
87313544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
87323544ea2eSmrg		fi
87333544ea2eSmrg
87343544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
87353544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
87363544ea2eSmrg		fi
87373544ea2eSmrg
87383544ea2eSmrg		CFLAGS="$CFLAGS -Winit-self"
87393544ea2eSmrg
87403544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5
87413544ea2eSmrg$as_echo_n "checking if $CC supports-Winit-self... " >&6; }
87423544ea2eSmrg		cacheid=xorg_cv_cc_flag__Winit_self
87433544ea2eSmrg		if eval \${$cacheid+:} false; then :
87443544ea2eSmrg  $as_echo_n "(cached) " >&6
87453544ea2eSmrgelse
87463544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87473544ea2eSmrg/* end confdefs.h.  */
87483544ea2eSmrgint i;
87493544ea2eSmrgint
87503544ea2eSmrgmain ()
87513544ea2eSmrg{
87523544ea2eSmrg
87533544ea2eSmrg  ;
87543544ea2eSmrg  return 0;
87553544ea2eSmrg}
87563544ea2eSmrg_ACEOF
87573544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
87583544ea2eSmrg  eval $cacheid=yes
87593544ea2eSmrgelse
87603544ea2eSmrg  eval $cacheid=no
87613544ea2eSmrgfi
87623544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
87633544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
87643544ea2eSmrgfi
87653544ea2eSmrg
87663544ea2eSmrg
87673544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
87683544ea2eSmrg
87693544ea2eSmrg		eval supported=\$$cacheid
87703544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
87713544ea2eSmrg$as_echo "$supported" >&6; }
87723544ea2eSmrg		if test "$supported" = "yes" ; then
87733544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
87743544ea2eSmrg			found="yes"
87753544ea2eSmrg		fi
87763544ea2eSmrg	fi
87773544ea2eSmrg
87783544ea2eSmrg
87793544ea2eSmrg
87803544ea2eSmrg
87813544ea2eSmrg
87823544ea2eSmrg
87833544ea2eSmrg
87843544ea2eSmrg
87853544ea2eSmrg
87863544ea2eSmrg
87873544ea2eSmrg
87883544ea2eSmrg
87893544ea2eSmrg
87903544ea2eSmrg
87913544ea2eSmrg
87923544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
87933544ea2eSmrg
87943544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
87953544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
87963544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
87973544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
87983544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
87993544ea2eSmrg  $as_echo_n "(cached) " >&6
88003544ea2eSmrgelse
88013544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88023544ea2eSmrg/* end confdefs.h.  */
88033544ea2eSmrgint i;
88043544ea2eSmrg_ACEOF
88053544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
88063544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
88073544ea2eSmrgelse
88083544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
88093544ea2eSmrgfi
88103544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
88113544ea2eSmrgfi
88123544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
88133544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
88143544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
88153544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
88163544ea2eSmrgfi
88173544ea2eSmrg
88183544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
88193544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
88203544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
88213544ea2eSmrg	fi
88223544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
88233544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
88243544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
88253544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
88263544ea2eSmrg  $as_echo_n "(cached) " >&6
88273544ea2eSmrgelse
88283544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88293544ea2eSmrg/* end confdefs.h.  */
88303544ea2eSmrgint i;
88313544ea2eSmrg_ACEOF
88323544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
88333544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
88343544ea2eSmrgelse
88353544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
88363544ea2eSmrgfi
88373544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
88383544ea2eSmrgfi
88393544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
88403544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
88413544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
88423544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
88433544ea2eSmrgfi
88443544ea2eSmrg
88453544ea2eSmrgfound="no"
88463544ea2eSmrg
88473544ea2eSmrg	if test $found = "no" ; then
88483544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
88493544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
88503544ea2eSmrg		fi
88513544ea2eSmrg
88523544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
88533544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
88543544ea2eSmrg		fi
88553544ea2eSmrg
88563544ea2eSmrg		CFLAGS="$CFLAGS -Wmain"
88573544ea2eSmrg
88583544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5
88593544ea2eSmrg$as_echo_n "checking if $CC supports-Wmain... " >&6; }
88603544ea2eSmrg		cacheid=xorg_cv_cc_flag__Wmain
88613544ea2eSmrg		if eval \${$cacheid+:} false; then :
88623544ea2eSmrg  $as_echo_n "(cached) " >&6
88633544ea2eSmrgelse
88643544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88653544ea2eSmrg/* end confdefs.h.  */
88663544ea2eSmrgint i;
88673544ea2eSmrgint
88683544ea2eSmrgmain ()
88693544ea2eSmrg{
88703544ea2eSmrg
88713544ea2eSmrg  ;
88723544ea2eSmrg  return 0;
88733544ea2eSmrg}
88743544ea2eSmrg_ACEOF
88753544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
88763544ea2eSmrg  eval $cacheid=yes
88773544ea2eSmrgelse
88783544ea2eSmrg  eval $cacheid=no
88793544ea2eSmrgfi
88803544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
88813544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
88823544ea2eSmrgfi
88833544ea2eSmrg
88843544ea2eSmrg
88853544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
88863544ea2eSmrg
88873544ea2eSmrg		eval supported=\$$cacheid
88883544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
88893544ea2eSmrg$as_echo "$supported" >&6; }
88903544ea2eSmrg		if test "$supported" = "yes" ; then
88913544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
88923544ea2eSmrg			found="yes"
88933544ea2eSmrg		fi
88943544ea2eSmrg	fi
88953544ea2eSmrg
88963544ea2eSmrg
88973544ea2eSmrg
88983544ea2eSmrg
88993544ea2eSmrg
89003544ea2eSmrg
89013544ea2eSmrg
89023544ea2eSmrg
89033544ea2eSmrg
89043544ea2eSmrg
89053544ea2eSmrg
89063544ea2eSmrg
89073544ea2eSmrg
89083544ea2eSmrg
89093544ea2eSmrg
89103544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
89113544ea2eSmrg
89123544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
89133544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
89143544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
89153544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
89163544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
89173544ea2eSmrg  $as_echo_n "(cached) " >&6
89183544ea2eSmrgelse
89193544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89203544ea2eSmrg/* end confdefs.h.  */
89213544ea2eSmrgint i;
89223544ea2eSmrg_ACEOF
89233544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
89243544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
89253544ea2eSmrgelse
89263544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
89273544ea2eSmrgfi
89283544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
89293544ea2eSmrgfi
89303544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
89313544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
89323544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
89333544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
89343544ea2eSmrgfi
89353544ea2eSmrg
89363544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
89373544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
89383544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
89393544ea2eSmrg	fi
89403544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
89413544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
89423544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
89433544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
89443544ea2eSmrg  $as_echo_n "(cached) " >&6
89453544ea2eSmrgelse
89463544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89473544ea2eSmrg/* end confdefs.h.  */
89483544ea2eSmrgint i;
89493544ea2eSmrg_ACEOF
89503544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
89513544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
89523544ea2eSmrgelse
89533544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
89543544ea2eSmrgfi
89553544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
89563544ea2eSmrgfi
89573544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
89583544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
89593544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
89603544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
89613544ea2eSmrgfi
89623544ea2eSmrg
89633544ea2eSmrgfound="no"
89643544ea2eSmrg
89653544ea2eSmrg	if test $found = "no" ; then
89663544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
89673544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
89683544ea2eSmrg		fi
89693544ea2eSmrg
89703544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
89713544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
89723544ea2eSmrg		fi
89733544ea2eSmrg
89743544ea2eSmrg		CFLAGS="$CFLAGS -Wmissing-braces"
89753544ea2eSmrg
89763544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5
89773544ea2eSmrg$as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; }
89783544ea2eSmrg		cacheid=xorg_cv_cc_flag__Wmissing_braces
89793544ea2eSmrg		if eval \${$cacheid+:} false; then :
89803544ea2eSmrg  $as_echo_n "(cached) " >&6
89813544ea2eSmrgelse
89823544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89833544ea2eSmrg/* end confdefs.h.  */
89843544ea2eSmrgint i;
89853544ea2eSmrgint
89863544ea2eSmrgmain ()
89873544ea2eSmrg{
89883544ea2eSmrg
89893544ea2eSmrg  ;
89903544ea2eSmrg  return 0;
89913544ea2eSmrg}
89923544ea2eSmrg_ACEOF
89933544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
89943544ea2eSmrg  eval $cacheid=yes
89953544ea2eSmrgelse
89963544ea2eSmrg  eval $cacheid=no
89973544ea2eSmrgfi
89983544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
89993544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
90003544ea2eSmrgfi
90013544ea2eSmrg
90023544ea2eSmrg
90033544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
90043544ea2eSmrg
90053544ea2eSmrg		eval supported=\$$cacheid
90063544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
90073544ea2eSmrg$as_echo "$supported" >&6; }
90083544ea2eSmrg		if test "$supported" = "yes" ; then
90093544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
90103544ea2eSmrg			found="yes"
90113544ea2eSmrg		fi
90123544ea2eSmrg	fi
90133544ea2eSmrg
90143544ea2eSmrg
90153544ea2eSmrg
90163544ea2eSmrg
90173544ea2eSmrg
90183544ea2eSmrg
90193544ea2eSmrg
90203544ea2eSmrg
90213544ea2eSmrg
90223544ea2eSmrg
90233544ea2eSmrg
90243544ea2eSmrg
90253544ea2eSmrg
90263544ea2eSmrg
90273544ea2eSmrg
90283544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
90293544ea2eSmrg
90303544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
90313544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
90323544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
90333544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
90343544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
90353544ea2eSmrg  $as_echo_n "(cached) " >&6
90363544ea2eSmrgelse
90373544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90383544ea2eSmrg/* end confdefs.h.  */
90393544ea2eSmrgint i;
90403544ea2eSmrg_ACEOF
90413544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
90423544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
90433544ea2eSmrgelse
90443544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
90453544ea2eSmrgfi
90463544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
90473544ea2eSmrgfi
90483544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
90493544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
90503544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
90513544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
90523544ea2eSmrgfi
90533544ea2eSmrg
90543544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
90553544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
90563544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
90573544ea2eSmrg	fi
90583544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
90593544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
90603544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
90613544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
90623544ea2eSmrg  $as_echo_n "(cached) " >&6
90633544ea2eSmrgelse
90643544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90653544ea2eSmrg/* end confdefs.h.  */
90663544ea2eSmrgint i;
90673544ea2eSmrg_ACEOF
90683544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
90693544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
90703544ea2eSmrgelse
90713544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
90723544ea2eSmrgfi
90733544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
90743544ea2eSmrgfi
90753544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
90763544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
90773544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
90783544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
90793544ea2eSmrgfi
90803544ea2eSmrg
90813544ea2eSmrgfound="no"
90823544ea2eSmrg
90833544ea2eSmrg	if test $found = "no" ; then
90843544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
90853544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
90863544ea2eSmrg		fi
90873544ea2eSmrg
90883544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
90893544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
90903544ea2eSmrg		fi
90913544ea2eSmrg
90923544ea2eSmrg		CFLAGS="$CFLAGS -Wsequence-point"
90933544ea2eSmrg
90943544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5
90953544ea2eSmrg$as_echo_n "checking if $CC supports-Wsequence-point... " >&6; }
90963544ea2eSmrg		cacheid=xorg_cv_cc_flag__Wsequence_point
90973544ea2eSmrg		if eval \${$cacheid+:} false; then :
90983544ea2eSmrg  $as_echo_n "(cached) " >&6
90993544ea2eSmrgelse
91003544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
91013544ea2eSmrg/* end confdefs.h.  */
91023544ea2eSmrgint i;
91033544ea2eSmrgint
91043544ea2eSmrgmain ()
91053544ea2eSmrg{
91063544ea2eSmrg
91073544ea2eSmrg  ;
91083544ea2eSmrg  return 0;
91093544ea2eSmrg}
91103544ea2eSmrg_ACEOF
91113544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
91123544ea2eSmrg  eval $cacheid=yes
91133544ea2eSmrgelse
91143544ea2eSmrg  eval $cacheid=no
91153544ea2eSmrgfi
91163544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
91173544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
91183544ea2eSmrgfi
91193544ea2eSmrg
91203544ea2eSmrg
91213544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
91223544ea2eSmrg
91233544ea2eSmrg		eval supported=\$$cacheid
91243544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
91253544ea2eSmrg$as_echo "$supported" >&6; }
91263544ea2eSmrg		if test "$supported" = "yes" ; then
91273544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
91283544ea2eSmrg			found="yes"
91293544ea2eSmrg		fi
91303544ea2eSmrg	fi
91313544ea2eSmrg
91323544ea2eSmrg
91333544ea2eSmrg
91343544ea2eSmrg
91353544ea2eSmrg
91363544ea2eSmrg
91373544ea2eSmrg
91383544ea2eSmrg
91393544ea2eSmrg
91403544ea2eSmrg
91413544ea2eSmrg
91423544ea2eSmrg
91433544ea2eSmrg
91443544ea2eSmrg
91453544ea2eSmrg
91463544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
91473544ea2eSmrg
91483544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
91493544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
91503544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
91513544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
91523544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
91533544ea2eSmrg  $as_echo_n "(cached) " >&6
91543544ea2eSmrgelse
91553544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
91563544ea2eSmrg/* end confdefs.h.  */
91573544ea2eSmrgint i;
91583544ea2eSmrg_ACEOF
91593544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
91603544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
91613544ea2eSmrgelse
91623544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
91633544ea2eSmrgfi
91643544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
91653544ea2eSmrgfi
91663544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
91673544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
91683544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
91693544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
91703544ea2eSmrgfi
91713544ea2eSmrg
91723544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
91733544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
91743544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
91753544ea2eSmrg	fi
91763544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
91773544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
91783544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
91793544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
91803544ea2eSmrg  $as_echo_n "(cached) " >&6
91813544ea2eSmrgelse
91823544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
91833544ea2eSmrg/* end confdefs.h.  */
91843544ea2eSmrgint i;
91853544ea2eSmrg_ACEOF
91863544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
91873544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
91883544ea2eSmrgelse
91893544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
91903544ea2eSmrgfi
91913544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
91923544ea2eSmrgfi
91933544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
91943544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
91953544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
91963544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
91973544ea2eSmrgfi
91983544ea2eSmrg
91993544ea2eSmrgfound="no"
92003544ea2eSmrg
92013544ea2eSmrg	if test $found = "no" ; then
92023544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
92033544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
92043544ea2eSmrg		fi
92053544ea2eSmrg
92063544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
92073544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
92083544ea2eSmrg		fi
92093544ea2eSmrg
92103544ea2eSmrg		CFLAGS="$CFLAGS -Wreturn-type"
92113544ea2eSmrg
92123544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5
92133544ea2eSmrg$as_echo_n "checking if $CC supports-Wreturn-type... " >&6; }
92143544ea2eSmrg		cacheid=xorg_cv_cc_flag__Wreturn_type
92153544ea2eSmrg		if eval \${$cacheid+:} false; then :
92163544ea2eSmrg  $as_echo_n "(cached) " >&6
92173544ea2eSmrgelse
92183544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92193544ea2eSmrg/* end confdefs.h.  */
92203544ea2eSmrgint i;
92213544ea2eSmrgint
92223544ea2eSmrgmain ()
92233544ea2eSmrg{
92243544ea2eSmrg
92253544ea2eSmrg  ;
92263544ea2eSmrg  return 0;
92273544ea2eSmrg}
92283544ea2eSmrg_ACEOF
92293544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
92303544ea2eSmrg  eval $cacheid=yes
92313544ea2eSmrgelse
92323544ea2eSmrg  eval $cacheid=no
92333544ea2eSmrgfi
92343544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
92353544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
92363544ea2eSmrgfi
92373544ea2eSmrg
92383544ea2eSmrg
92393544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
92403544ea2eSmrg
92413544ea2eSmrg		eval supported=\$$cacheid
92423544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
92433544ea2eSmrg$as_echo "$supported" >&6; }
92443544ea2eSmrg		if test "$supported" = "yes" ; then
92453544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
92463544ea2eSmrg			found="yes"
92473544ea2eSmrg		fi
92483544ea2eSmrg	fi
92493544ea2eSmrg
92503544ea2eSmrg
92513544ea2eSmrg
92523544ea2eSmrg
92533544ea2eSmrg
92543544ea2eSmrg
92553544ea2eSmrg
92563544ea2eSmrg
92573544ea2eSmrg
92583544ea2eSmrg
92593544ea2eSmrg
92603544ea2eSmrg
92613544ea2eSmrg
92623544ea2eSmrg
92633544ea2eSmrg
92643544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
92653544ea2eSmrg
92663544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
92673544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
92683544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
92693544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
92703544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
92713544ea2eSmrg  $as_echo_n "(cached) " >&6
92723544ea2eSmrgelse
92733544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92743544ea2eSmrg/* end confdefs.h.  */
92753544ea2eSmrgint i;
92763544ea2eSmrg_ACEOF
92773544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
92783544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
92793544ea2eSmrgelse
92803544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
92813544ea2eSmrgfi
92823544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
92833544ea2eSmrgfi
92843544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
92853544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
92863544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
92873544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
92883544ea2eSmrgfi
92893544ea2eSmrg
92903544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
92913544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
92923544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
92933544ea2eSmrg	fi
92943544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
92953544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
92963544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
92973544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
92983544ea2eSmrg  $as_echo_n "(cached) " >&6
92993544ea2eSmrgelse
93003544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93013544ea2eSmrg/* end confdefs.h.  */
93023544ea2eSmrgint i;
93033544ea2eSmrg_ACEOF
93043544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
93053544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
93063544ea2eSmrgelse
93073544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
93083544ea2eSmrgfi
93093544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
93103544ea2eSmrgfi
93113544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
93123544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
93133544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
93143544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
93153544ea2eSmrgfi
93163544ea2eSmrg
93173544ea2eSmrgfound="no"
93183544ea2eSmrg
93193544ea2eSmrg	if test $found = "no" ; then
93203544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
93213544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
93223544ea2eSmrg		fi
93233544ea2eSmrg
93243544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
93253544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
93263544ea2eSmrg		fi
93273544ea2eSmrg
93283544ea2eSmrg		CFLAGS="$CFLAGS -Wtrigraphs"
93293544ea2eSmrg
93303544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5
93313544ea2eSmrg$as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; }
93323544ea2eSmrg		cacheid=xorg_cv_cc_flag__Wtrigraphs
93333544ea2eSmrg		if eval \${$cacheid+:} false; then :
93343544ea2eSmrg  $as_echo_n "(cached) " >&6
93353544ea2eSmrgelse
93363544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93373544ea2eSmrg/* end confdefs.h.  */
93383544ea2eSmrgint i;
93393544ea2eSmrgint
93403544ea2eSmrgmain ()
93413544ea2eSmrg{
93423544ea2eSmrg
93433544ea2eSmrg  ;
93443544ea2eSmrg  return 0;
93453544ea2eSmrg}
93463544ea2eSmrg_ACEOF
93473544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
93483544ea2eSmrg  eval $cacheid=yes
93493544ea2eSmrgelse
93503544ea2eSmrg  eval $cacheid=no
93513544ea2eSmrgfi
93523544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
93533544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
93543544ea2eSmrgfi
93553544ea2eSmrg
93563544ea2eSmrg
93573544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
93583544ea2eSmrg
93593544ea2eSmrg		eval supported=\$$cacheid
93603544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
93613544ea2eSmrg$as_echo "$supported" >&6; }
93623544ea2eSmrg		if test "$supported" = "yes" ; then
93633544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
93643544ea2eSmrg			found="yes"
93653544ea2eSmrg		fi
93663544ea2eSmrg	fi
93673544ea2eSmrg
93683544ea2eSmrg
93693544ea2eSmrg
93703544ea2eSmrg
93713544ea2eSmrg
93723544ea2eSmrg
93733544ea2eSmrg
93743544ea2eSmrg
93753544ea2eSmrg
93763544ea2eSmrg
93773544ea2eSmrg
93783544ea2eSmrg
93793544ea2eSmrg
93803544ea2eSmrg
93813544ea2eSmrg
93823544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
93833544ea2eSmrg
93843544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
93853544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
93863544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
93873544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
93883544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
93893544ea2eSmrg  $as_echo_n "(cached) " >&6
93903544ea2eSmrgelse
93913544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93923544ea2eSmrg/* end confdefs.h.  */
93933544ea2eSmrgint i;
93943544ea2eSmrg_ACEOF
93953544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
93963544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
93973544ea2eSmrgelse
93983544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
93993544ea2eSmrgfi
94003544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
94013544ea2eSmrgfi
94023544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
94033544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
94043544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
94053544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
94063544ea2eSmrgfi
94073544ea2eSmrg
94083544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
94093544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
94103544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
94113544ea2eSmrg	fi
94123544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
94133544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
94143544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
94153544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
94163544ea2eSmrg  $as_echo_n "(cached) " >&6
94173544ea2eSmrgelse
94183544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94193544ea2eSmrg/* end confdefs.h.  */
94203544ea2eSmrgint i;
94213544ea2eSmrg_ACEOF
94223544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
94233544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
94243544ea2eSmrgelse
94253544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
94263544ea2eSmrgfi
94273544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
94283544ea2eSmrgfi
94293544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
94303544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
94313544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
94323544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
94333544ea2eSmrgfi
94343544ea2eSmrg
94353544ea2eSmrgfound="no"
94363544ea2eSmrg
94373544ea2eSmrg	if test $found = "no" ; then
94383544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
94393544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
94403544ea2eSmrg		fi
94413544ea2eSmrg
94423544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
94433544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
94443544ea2eSmrg		fi
94453544ea2eSmrg
94463544ea2eSmrg		CFLAGS="$CFLAGS -Warray-bounds"
94473544ea2eSmrg
94483544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5
94493544ea2eSmrg$as_echo_n "checking if $CC supports-Warray-bounds... " >&6; }
94503544ea2eSmrg		cacheid=xorg_cv_cc_flag__Warray_bounds
94513544ea2eSmrg		if eval \${$cacheid+:} false; then :
94523544ea2eSmrg  $as_echo_n "(cached) " >&6
94533544ea2eSmrgelse
94543544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94553544ea2eSmrg/* end confdefs.h.  */
94563544ea2eSmrgint i;
94573544ea2eSmrgint
94583544ea2eSmrgmain ()
94593544ea2eSmrg{
94603544ea2eSmrg
94613544ea2eSmrg  ;
94623544ea2eSmrg  return 0;
94633544ea2eSmrg}
94643544ea2eSmrg_ACEOF
94653544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
94663544ea2eSmrg  eval $cacheid=yes
94673544ea2eSmrgelse
94683544ea2eSmrg  eval $cacheid=no
94693544ea2eSmrgfi
94703544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
94713544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
94723544ea2eSmrgfi
94733544ea2eSmrg
94743544ea2eSmrg
94753544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
94763544ea2eSmrg
94773544ea2eSmrg		eval supported=\$$cacheid
94783544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
94793544ea2eSmrg$as_echo "$supported" >&6; }
94803544ea2eSmrg		if test "$supported" = "yes" ; then
94813544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
94823544ea2eSmrg			found="yes"
94833544ea2eSmrg		fi
94843544ea2eSmrg	fi
94853544ea2eSmrg
94863544ea2eSmrg
94873544ea2eSmrg
94883544ea2eSmrg
94893544ea2eSmrg
94903544ea2eSmrg
94913544ea2eSmrg
94923544ea2eSmrg
94933544ea2eSmrg
94943544ea2eSmrg
94953544ea2eSmrg
94963544ea2eSmrg
94973544ea2eSmrg
94983544ea2eSmrg
94993544ea2eSmrg
95003544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
95013544ea2eSmrg
95023544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
95033544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
95043544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
95053544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
95063544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
95073544ea2eSmrg  $as_echo_n "(cached) " >&6
95083544ea2eSmrgelse
95093544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
95103544ea2eSmrg/* end confdefs.h.  */
95113544ea2eSmrgint i;
95123544ea2eSmrg_ACEOF
95133544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
95143544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
95153544ea2eSmrgelse
95163544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
95173544ea2eSmrgfi
95183544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
95193544ea2eSmrgfi
95203544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
95213544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
95223544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
95233544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
95243544ea2eSmrgfi
95253544ea2eSmrg
95263544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
95273544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
95283544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
95293544ea2eSmrg	fi
95303544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
95313544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
95323544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
95333544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
95343544ea2eSmrg  $as_echo_n "(cached) " >&6
95353544ea2eSmrgelse
95363544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
95373544ea2eSmrg/* end confdefs.h.  */
95383544ea2eSmrgint i;
95393544ea2eSmrg_ACEOF
95403544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
95413544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
95423544ea2eSmrgelse
95433544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
95443544ea2eSmrgfi
95453544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
95463544ea2eSmrgfi
95473544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
95483544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
95493544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
95503544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
95513544ea2eSmrgfi
95523544ea2eSmrg
95533544ea2eSmrgfound="no"
95543544ea2eSmrg
95553544ea2eSmrg	if test $found = "no" ; then
95563544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
95573544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
95583544ea2eSmrg		fi
95593544ea2eSmrg
95603544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
95613544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
95623544ea2eSmrg		fi
95633544ea2eSmrg
95643544ea2eSmrg		CFLAGS="$CFLAGS -Wwrite-strings"
95653544ea2eSmrg
95663544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5
95673544ea2eSmrg$as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; }
95683544ea2eSmrg		cacheid=xorg_cv_cc_flag__Wwrite_strings
95693544ea2eSmrg		if eval \${$cacheid+:} false; then :
95703544ea2eSmrg  $as_echo_n "(cached) " >&6
95713544ea2eSmrgelse
95723544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
95733544ea2eSmrg/* end confdefs.h.  */
95743544ea2eSmrgint i;
95753544ea2eSmrgint
95763544ea2eSmrgmain ()
95773544ea2eSmrg{
95783544ea2eSmrg
95793544ea2eSmrg  ;
95803544ea2eSmrg  return 0;
95813544ea2eSmrg}
95823544ea2eSmrg_ACEOF
95833544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
95843544ea2eSmrg  eval $cacheid=yes
95853544ea2eSmrgelse
95863544ea2eSmrg  eval $cacheid=no
95873544ea2eSmrgfi
95883544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
95893544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
95903544ea2eSmrgfi
95913544ea2eSmrg
95923544ea2eSmrg
95933544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
95943544ea2eSmrg
95953544ea2eSmrg		eval supported=\$$cacheid
95963544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
95973544ea2eSmrg$as_echo "$supported" >&6; }
95983544ea2eSmrg		if test "$supported" = "yes" ; then
95993544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
96003544ea2eSmrg			found="yes"
96013544ea2eSmrg		fi
96023544ea2eSmrg	fi
96033544ea2eSmrg
96043544ea2eSmrg
96053544ea2eSmrg
96063544ea2eSmrg
96073544ea2eSmrg
96083544ea2eSmrg
96093544ea2eSmrg
96103544ea2eSmrg
96113544ea2eSmrg
96123544ea2eSmrg
96133544ea2eSmrg
96143544ea2eSmrg
96153544ea2eSmrg
96163544ea2eSmrg
96173544ea2eSmrg
96183544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
96193544ea2eSmrg
96203544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
96213544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
96223544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
96233544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
96243544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
96253544ea2eSmrg  $as_echo_n "(cached) " >&6
96263544ea2eSmrgelse
96273544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
96283544ea2eSmrg/* end confdefs.h.  */
96293544ea2eSmrgint i;
96303544ea2eSmrg_ACEOF
96313544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
96323544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
96333544ea2eSmrgelse
96343544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
96353544ea2eSmrgfi
96363544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
96373544ea2eSmrgfi
96383544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
96393544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
96403544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
96413544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
96423544ea2eSmrgfi
96433544ea2eSmrg
96443544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
96453544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
96463544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
96473544ea2eSmrg	fi
96483544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
96493544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
96503544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
96513544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
96523544ea2eSmrg  $as_echo_n "(cached) " >&6
96533544ea2eSmrgelse
96543544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
96553544ea2eSmrg/* end confdefs.h.  */
96563544ea2eSmrgint i;
96573544ea2eSmrg_ACEOF
96583544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
96593544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
96603544ea2eSmrgelse
96613544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
96623544ea2eSmrgfi
96633544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
96643544ea2eSmrgfi
96653544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
96663544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
96673544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
96683544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
96693544ea2eSmrgfi
96703544ea2eSmrg
96713544ea2eSmrgfound="no"
96723544ea2eSmrg
96733544ea2eSmrg	if test $found = "no" ; then
96743544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
96753544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
96763544ea2eSmrg		fi
96773544ea2eSmrg
96783544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
96793544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
96803544ea2eSmrg		fi
96813544ea2eSmrg
96823544ea2eSmrg		CFLAGS="$CFLAGS -Waddress"
96833544ea2eSmrg
96843544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5
96853544ea2eSmrg$as_echo_n "checking if $CC supports-Waddress... " >&6; }
96863544ea2eSmrg		cacheid=xorg_cv_cc_flag__Waddress
96873544ea2eSmrg		if eval \${$cacheid+:} false; then :
96883544ea2eSmrg  $as_echo_n "(cached) " >&6
96893544ea2eSmrgelse
96903544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
96913544ea2eSmrg/* end confdefs.h.  */
96923544ea2eSmrgint i;
96933544ea2eSmrgint
96943544ea2eSmrgmain ()
96953544ea2eSmrg{
96963544ea2eSmrg
96973544ea2eSmrg  ;
96983544ea2eSmrg  return 0;
96993544ea2eSmrg}
97003544ea2eSmrg_ACEOF
97013544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
97023544ea2eSmrg  eval $cacheid=yes
97033544ea2eSmrgelse
97043544ea2eSmrg  eval $cacheid=no
97053544ea2eSmrgfi
97063544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
97073544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
97083544ea2eSmrgfi
97093544ea2eSmrg
97103544ea2eSmrg
97113544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
97123544ea2eSmrg
97133544ea2eSmrg		eval supported=\$$cacheid
97143544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
97153544ea2eSmrg$as_echo "$supported" >&6; }
97163544ea2eSmrg		if test "$supported" = "yes" ; then
97173544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
97183544ea2eSmrg			found="yes"
97193544ea2eSmrg		fi
97203544ea2eSmrg	fi
97213544ea2eSmrg
97223544ea2eSmrg
97233544ea2eSmrg
97243544ea2eSmrg
97253544ea2eSmrg
97263544ea2eSmrg
97273544ea2eSmrg
97283544ea2eSmrg
97293544ea2eSmrg
97303544ea2eSmrg
97313544ea2eSmrg
97323544ea2eSmrg
97333544ea2eSmrg
97343544ea2eSmrg
97353544ea2eSmrg
97363544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
97373544ea2eSmrg
97383544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
97393544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
97403544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
97413544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
97423544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
97433544ea2eSmrg  $as_echo_n "(cached) " >&6
97443544ea2eSmrgelse
97453544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
97463544ea2eSmrg/* end confdefs.h.  */
97473544ea2eSmrgint i;
97483544ea2eSmrg_ACEOF
97493544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
97503544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
97513544ea2eSmrgelse
97523544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
97533544ea2eSmrgfi
97543544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
97553544ea2eSmrgfi
97563544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
97573544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
97583544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
97593544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
97603544ea2eSmrgfi
97613544ea2eSmrg
97623544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
97633544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
97643544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
97653544ea2eSmrg	fi
97663544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
97673544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
97683544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
97693544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
97703544ea2eSmrg  $as_echo_n "(cached) " >&6
97713544ea2eSmrgelse
97723544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
97733544ea2eSmrg/* end confdefs.h.  */
97743544ea2eSmrgint i;
97753544ea2eSmrg_ACEOF
97763544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
97773544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
97783544ea2eSmrgelse
97793544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
97803544ea2eSmrgfi
97813544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
97823544ea2eSmrgfi
97833544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
97843544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
97853544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
97863544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
97873544ea2eSmrgfi
97883544ea2eSmrg
97893544ea2eSmrgfound="no"
97903544ea2eSmrg
97913544ea2eSmrg	if test $found = "no" ; then
97923544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
97933544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
97943544ea2eSmrg		fi
97953544ea2eSmrg
97963544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
97973544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
97983544ea2eSmrg		fi
97993544ea2eSmrg
98003544ea2eSmrg		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
98013544ea2eSmrg
98023544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5
98033544ea2eSmrg$as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; }
98043544ea2eSmrg		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
98053544ea2eSmrg		if eval \${$cacheid+:} false; then :
98063544ea2eSmrg  $as_echo_n "(cached) " >&6
98073544ea2eSmrgelse
98083544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
98093544ea2eSmrg/* end confdefs.h.  */
98103544ea2eSmrgint i;
98113544ea2eSmrgint
98123544ea2eSmrgmain ()
98133544ea2eSmrg{
98143544ea2eSmrg
98153544ea2eSmrg  ;
98163544ea2eSmrg  return 0;
98173544ea2eSmrg}
98183544ea2eSmrg_ACEOF
98193544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
98203544ea2eSmrg  eval $cacheid=yes
98213544ea2eSmrgelse
98223544ea2eSmrg  eval $cacheid=no
98233544ea2eSmrgfi
98243544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
98253544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
98263544ea2eSmrgfi
98273544ea2eSmrg
98283544ea2eSmrg
98293544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
98303544ea2eSmrg
98313544ea2eSmrg		eval supported=\$$cacheid
98323544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
98333544ea2eSmrg$as_echo "$supported" >&6; }
98343544ea2eSmrg		if test "$supported" = "yes" ; then
98353544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
98363544ea2eSmrg			found="yes"
98373544ea2eSmrg		fi
98383544ea2eSmrg	fi
98393544ea2eSmrg
98403544ea2eSmrg
98413544ea2eSmrg
98423544ea2eSmrg
98433544ea2eSmrg
98443544ea2eSmrg
98453544ea2eSmrg
98463544ea2eSmrg
98473544ea2eSmrg
98483544ea2eSmrg
98493544ea2eSmrg
98503544ea2eSmrg
98513544ea2eSmrg
98523544ea2eSmrg
98533544ea2eSmrg
98543544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
98553544ea2eSmrg
98563544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
98573544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
98583544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
98593544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
98603544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
98613544ea2eSmrg  $as_echo_n "(cached) " >&6
98623544ea2eSmrgelse
98633544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
98643544ea2eSmrg/* end confdefs.h.  */
98653544ea2eSmrgint i;
98663544ea2eSmrg_ACEOF
98673544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
98683544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
98693544ea2eSmrgelse
98703544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
98713544ea2eSmrgfi
98723544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
98733544ea2eSmrgfi
98743544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
98753544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
98763544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
98773544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
98783544ea2eSmrgfi
98793544ea2eSmrg
98803544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
98813544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
98823544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
98833544ea2eSmrg	fi
98843544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
98853544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
98863544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
98873544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
98883544ea2eSmrg  $as_echo_n "(cached) " >&6
98893544ea2eSmrgelse
98903544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
98913544ea2eSmrg/* end confdefs.h.  */
98923544ea2eSmrgint i;
98933544ea2eSmrg_ACEOF
98943544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
98953544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
98963544ea2eSmrgelse
98973544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
98983544ea2eSmrgfi
98993544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
99003544ea2eSmrgfi
99013544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
99023544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
99033544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
99043544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
99053544ea2eSmrgfi
99063544ea2eSmrg
99073544ea2eSmrgfound="no"
99083544ea2eSmrg
99093544ea2eSmrg	if test $found = "no" ; then
99103544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
99113544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
99123544ea2eSmrg		fi
99133544ea2eSmrg
99143544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
99153544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
99163544ea2eSmrg		fi
99173544ea2eSmrg
99183544ea2eSmrg		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
99193544ea2eSmrg
99203544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5
99213544ea2eSmrg$as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; }
99223544ea2eSmrg		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
99233544ea2eSmrg		if eval \${$cacheid+:} false; then :
99243544ea2eSmrg  $as_echo_n "(cached) " >&6
99253544ea2eSmrgelse
99263544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
99273544ea2eSmrg/* end confdefs.h.  */
99283544ea2eSmrgint i;
99293544ea2eSmrgint
99303544ea2eSmrgmain ()
99313544ea2eSmrg{
99323544ea2eSmrg
99333544ea2eSmrg  ;
99343544ea2eSmrg  return 0;
99353544ea2eSmrg}
99363544ea2eSmrg_ACEOF
99373544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
99383544ea2eSmrg  eval $cacheid=yes
99393544ea2eSmrgelse
99403544ea2eSmrg  eval $cacheid=no
99413544ea2eSmrgfi
99423544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
99433544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
99443544ea2eSmrgfi
99453544ea2eSmrg
99463544ea2eSmrg
99473544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
99483544ea2eSmrg
99493544ea2eSmrg		eval supported=\$$cacheid
99503544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
99513544ea2eSmrg$as_echo "$supported" >&6; }
99523544ea2eSmrg		if test "$supported" = "yes" ; then
99533544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
99543544ea2eSmrg			found="yes"
99553544ea2eSmrg		fi
99563544ea2eSmrg	fi
99573544ea2eSmrg
99583544ea2eSmrg
99593544ea2eSmrgfi
99603544ea2eSmrg
99613544ea2eSmrg
99623544ea2eSmrg
99633544ea2eSmrg
99643544ea2eSmrg
99653544ea2eSmrg
99663544ea2eSmrg
99673544ea2eSmrg		CWARNFLAGS="$BASE_CFLAGS"
99683544ea2eSmrg		if  test "x$GCC" = xyes ; then
99693544ea2eSmrg		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
99703544ea2eSmrg		fi
99713544ea2eSmrg
99723544ea2eSmrg
99733544ea2eSmrg
99743544ea2eSmrg
99753544ea2eSmrg
99763544ea2eSmrg
99773544ea2eSmrg
99783544ea2eSmrg
99793544ea2eSmrg# Check whether --enable-strict-compilation was given.
99803544ea2eSmrgif test "${enable_strict_compilation+set}" = set; then :
99813544ea2eSmrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
99823544ea2eSmrgelse
99833544ea2eSmrg  STRICT_COMPILE=no
99843544ea2eSmrgfi
99853544ea2eSmrg
99863544ea2eSmrg
99873544ea2eSmrg
99883544ea2eSmrg
99893544ea2eSmrg
99903544ea2eSmrg
99913544ea2eSmrgSTRICT_CFLAGS=""
99923544ea2eSmrg
99933544ea2eSmrg
99943544ea2eSmrg
99953544ea2eSmrg
99963544ea2eSmrg
99973544ea2eSmrg
99983544ea2eSmrg
99993544ea2eSmrg
100003544ea2eSmrg
100013544ea2eSmrg
100023544ea2eSmrg
100033544ea2eSmrg
100043544ea2eSmrg
100053544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
100063544ea2eSmrg
100073544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
100083544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
100093544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
100103544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
100113544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
100123544ea2eSmrg  $as_echo_n "(cached) " >&6
100133544ea2eSmrgelse
100143544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
100153544ea2eSmrg/* end confdefs.h.  */
100163544ea2eSmrgint i;
100173544ea2eSmrg_ACEOF
100183544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
100193544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
100203544ea2eSmrgelse
100213544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
100223544ea2eSmrgfi
100233544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
100243544ea2eSmrgfi
100253544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
100263544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
100273544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
100283544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
100293544ea2eSmrgfi
100303544ea2eSmrg
100313544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
100323544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
100333544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
100343544ea2eSmrg	fi
100353544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
100363544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
100373544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
100383544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
100393544ea2eSmrg  $as_echo_n "(cached) " >&6
100403544ea2eSmrgelse
100413544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
100423544ea2eSmrg/* end confdefs.h.  */
100433544ea2eSmrgint i;
100443544ea2eSmrg_ACEOF
100453544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
100463544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
100473544ea2eSmrgelse
100483544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
100493544ea2eSmrgfi
100503544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
100513544ea2eSmrgfi
100523544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
100533544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
100543544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
100553544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
100563544ea2eSmrgfi
100573544ea2eSmrg
100583544ea2eSmrgfound="no"
100593544ea2eSmrg
100603544ea2eSmrg	if test $found = "no" ; then
100613544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
100623544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
100633544ea2eSmrg		fi
100643544ea2eSmrg
100653544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
100663544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
100673544ea2eSmrg		fi
100683544ea2eSmrg
100693544ea2eSmrg		CFLAGS="$CFLAGS -pedantic"
100703544ea2eSmrg
100713544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5
100723544ea2eSmrg$as_echo_n "checking if $CC supports-pedantic... " >&6; }
100733544ea2eSmrg		cacheid=xorg_cv_cc_flag__pedantic
100743544ea2eSmrg		if eval \${$cacheid+:} false; then :
100753544ea2eSmrg  $as_echo_n "(cached) " >&6
100763544ea2eSmrgelse
100773544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
100783544ea2eSmrg/* end confdefs.h.  */
100793544ea2eSmrgint i;
100803544ea2eSmrgint
100813544ea2eSmrgmain ()
100823544ea2eSmrg{
100833544ea2eSmrg
100843544ea2eSmrg  ;
100853544ea2eSmrg  return 0;
100863544ea2eSmrg}
100873544ea2eSmrg_ACEOF
100883544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
100893544ea2eSmrg  eval $cacheid=yes
100903544ea2eSmrgelse
100913544ea2eSmrg  eval $cacheid=no
100923544ea2eSmrgfi
100933544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
100943544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
100953544ea2eSmrgfi
100963544ea2eSmrg
100973544ea2eSmrg
100983544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
100993544ea2eSmrg
101003544ea2eSmrg		eval supported=\$$cacheid
101013544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
101023544ea2eSmrg$as_echo "$supported" >&6; }
101033544ea2eSmrg		if test "$supported" = "yes" ; then
101043544ea2eSmrg			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
101053544ea2eSmrg			found="yes"
101063544ea2eSmrg		fi
101073544ea2eSmrg	fi
101083544ea2eSmrg
101093544ea2eSmrg
101103544ea2eSmrg
101113544ea2eSmrg
101123544ea2eSmrg
101133544ea2eSmrg
101143544ea2eSmrg
101153544ea2eSmrg
101163544ea2eSmrg
101173544ea2eSmrg
101183544ea2eSmrg
101193544ea2eSmrg
101203544ea2eSmrg
101213544ea2eSmrg
101223544ea2eSmrg
101233544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
101243544ea2eSmrg
101253544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
101263544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
101273544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
101283544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
101293544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
101303544ea2eSmrg  $as_echo_n "(cached) " >&6
101313544ea2eSmrgelse
101323544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
101333544ea2eSmrg/* end confdefs.h.  */
101343544ea2eSmrgint i;
101353544ea2eSmrg_ACEOF
101363544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
101373544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
101383544ea2eSmrgelse
101393544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
101403544ea2eSmrgfi
101413544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
101423544ea2eSmrgfi
101433544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
101443544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
101453544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
101463544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
101473544ea2eSmrgfi
101483544ea2eSmrg
101493544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
101503544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
101513544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
101523544ea2eSmrg	fi
101533544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
101543544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
101553544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
101563544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
101573544ea2eSmrg  $as_echo_n "(cached) " >&6
101583544ea2eSmrgelse
101593544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
101603544ea2eSmrg/* end confdefs.h.  */
101613544ea2eSmrgint i;
101623544ea2eSmrg_ACEOF
101633544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
101643544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
101653544ea2eSmrgelse
101663544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
101673544ea2eSmrgfi
101683544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
101693544ea2eSmrgfi
101703544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
101713544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
101723544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
101733544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
101743544ea2eSmrgfi
101753544ea2eSmrg
101763544ea2eSmrgfound="no"
101773544ea2eSmrg
101783544ea2eSmrg	if test $found = "no" ; then
101793544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
101803544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
101813544ea2eSmrg		fi
101823544ea2eSmrg
101833544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
101843544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
101853544ea2eSmrg		fi
101863544ea2eSmrg
101873544ea2eSmrg		CFLAGS="$CFLAGS -Werror"
101883544ea2eSmrg
101893544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5
101903544ea2eSmrg$as_echo_n "checking if $CC supports-Werror... " >&6; }
101913544ea2eSmrg		cacheid=xorg_cv_cc_flag__Werror
101923544ea2eSmrg		if eval \${$cacheid+:} false; then :
101933544ea2eSmrg  $as_echo_n "(cached) " >&6
101943544ea2eSmrgelse
101953544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
101963544ea2eSmrg/* end confdefs.h.  */
101973544ea2eSmrgint i;
101983544ea2eSmrgint
101993544ea2eSmrgmain ()
102003544ea2eSmrg{
102013544ea2eSmrg
102023544ea2eSmrg  ;
102033544ea2eSmrg  return 0;
102043544ea2eSmrg}
102053544ea2eSmrg_ACEOF
102063544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
102073544ea2eSmrg  eval $cacheid=yes
102083544ea2eSmrgelse
102093544ea2eSmrg  eval $cacheid=no
102103544ea2eSmrgfi
102113544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
102123544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
102133544ea2eSmrgfi
102143544ea2eSmrg
102153544ea2eSmrg
102163544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
102173544ea2eSmrg
102183544ea2eSmrg		eval supported=\$$cacheid
102193544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
102203544ea2eSmrg$as_echo "$supported" >&6; }
102213544ea2eSmrg		if test "$supported" = "yes" ; then
102223544ea2eSmrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
102233544ea2eSmrg			found="yes"
102243544ea2eSmrg		fi
102253544ea2eSmrg	fi
102263544ea2eSmrg
102273544ea2eSmrg	if test $found = "no" ; then
102283544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
102293544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
102303544ea2eSmrg		fi
102313544ea2eSmrg
102323544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
102333544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
102343544ea2eSmrg		fi
102353544ea2eSmrg
102363544ea2eSmrg		CFLAGS="$CFLAGS -errwarn"
102373544ea2eSmrg
102383544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5
102393544ea2eSmrg$as_echo_n "checking if $CC supports-errwarn... " >&6; }
102403544ea2eSmrg		cacheid=xorg_cv_cc_flag__errwarn
102413544ea2eSmrg		if eval \${$cacheid+:} false; then :
102423544ea2eSmrg  $as_echo_n "(cached) " >&6
102433544ea2eSmrgelse
102443544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
102453544ea2eSmrg/* end confdefs.h.  */
102463544ea2eSmrgint i;
102473544ea2eSmrgint
102483544ea2eSmrgmain ()
102493544ea2eSmrg{
102503544ea2eSmrg
102513544ea2eSmrg  ;
102523544ea2eSmrg  return 0;
102533544ea2eSmrg}
102543544ea2eSmrg_ACEOF
102553544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
102563544ea2eSmrg  eval $cacheid=yes
102573544ea2eSmrgelse
102583544ea2eSmrg  eval $cacheid=no
102593544ea2eSmrgfi
102603544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
102613544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
102623544ea2eSmrgfi
102633544ea2eSmrg
102643544ea2eSmrg
102653544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
102663544ea2eSmrg
102673544ea2eSmrg		eval supported=\$$cacheid
102683544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
102693544ea2eSmrg$as_echo "$supported" >&6; }
102703544ea2eSmrg		if test "$supported" = "yes" ; then
102713544ea2eSmrg			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
102723544ea2eSmrg			found="yes"
102733544ea2eSmrg		fi
102743544ea2eSmrg	fi
102753544ea2eSmrg
102763544ea2eSmrg
102773544ea2eSmrg
102783544ea2eSmrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
102793544ea2eSmrg# activate it with -Werror, so we add it here explicitly.
102803544ea2eSmrg
102813544ea2eSmrg
102823544ea2eSmrg
102833544ea2eSmrg
102843544ea2eSmrg
102853544ea2eSmrg
102863544ea2eSmrg
102873544ea2eSmrg
102883544ea2eSmrg
102893544ea2eSmrg
102903544ea2eSmrg
102913544ea2eSmrg
102923544ea2eSmrg
102933544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
102943544ea2eSmrg
102953544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
102963544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
102973544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
102983544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
102993544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
103003544ea2eSmrg  $as_echo_n "(cached) " >&6
103013544ea2eSmrgelse
103023544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
103033544ea2eSmrg/* end confdefs.h.  */
103043544ea2eSmrgint i;
103053544ea2eSmrg_ACEOF
103063544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
103073544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
103083544ea2eSmrgelse
103093544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
103103544ea2eSmrgfi
103113544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
103123544ea2eSmrgfi
103133544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
103143544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
103153544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
103163544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
103173544ea2eSmrgfi
103183544ea2eSmrg
103193544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
103203544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
103213544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
103223544ea2eSmrg	fi
103233544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
103243544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
103253544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
103263544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
103273544ea2eSmrg  $as_echo_n "(cached) " >&6
103283544ea2eSmrgelse
103293544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
103303544ea2eSmrg/* end confdefs.h.  */
103313544ea2eSmrgint i;
103323544ea2eSmrg_ACEOF
103333544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
103343544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
103353544ea2eSmrgelse
103363544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
103373544ea2eSmrgfi
103383544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
103393544ea2eSmrgfi
103403544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
103413544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
103423544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
103433544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
103443544ea2eSmrgfi
103453544ea2eSmrg
103463544ea2eSmrgfound="no"
103473544ea2eSmrg
103483544ea2eSmrg	if test $found = "no" ; then
103493544ea2eSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
103503544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
103513544ea2eSmrg		fi
103523544ea2eSmrg
103533544ea2eSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
103543544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
103553544ea2eSmrg		fi
103563544ea2eSmrg
103573544ea2eSmrg		CFLAGS="$CFLAGS -Werror=attributes"
103583544ea2eSmrg
103593544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5
103603544ea2eSmrg$as_echo_n "checking if $CC supports-Werror=attributes... " >&6; }
103613544ea2eSmrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
103623544ea2eSmrg		if eval \${$cacheid+:} false; then :
103633544ea2eSmrg  $as_echo_n "(cached) " >&6
103643544ea2eSmrgelse
103653544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
103663544ea2eSmrg/* end confdefs.h.  */
103673544ea2eSmrgint i;
103683544ea2eSmrgint
103693544ea2eSmrgmain ()
103703544ea2eSmrg{
103713544ea2eSmrg
103723544ea2eSmrg  ;
103733544ea2eSmrg  return 0;
103743544ea2eSmrg}
103753544ea2eSmrg_ACEOF
103763544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
103773544ea2eSmrg  eval $cacheid=yes
103783544ea2eSmrgelse
103793544ea2eSmrg  eval $cacheid=no
103803544ea2eSmrgfi
103813544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
103823544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
103833544ea2eSmrgfi
103843544ea2eSmrg
103853544ea2eSmrg
103863544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
103873544ea2eSmrg
103883544ea2eSmrg		eval supported=\$$cacheid
103893544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
103903544ea2eSmrg$as_echo "$supported" >&6; }
103913544ea2eSmrg		if test "$supported" = "yes" ; then
103923544ea2eSmrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
103933544ea2eSmrg			found="yes"
103943544ea2eSmrg		fi
103953544ea2eSmrg	fi
103963544ea2eSmrg
103973544ea2eSmrg
103983544ea2eSmrg
103993544ea2eSmrgif test "x$STRICT_COMPILE" = "xyes"; then
104003544ea2eSmrg    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
104013544ea2eSmrg    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
104023544ea2eSmrgfi
104033544ea2eSmrg
104043544ea2eSmrg
104053544ea2eSmrg
104063544ea2eSmrg
104073544ea2eSmrg
104083544ea2eSmrg
104093544ea2eSmrgcat >>confdefs.h <<_ACEOF
104103544ea2eSmrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
104113544ea2eSmrg_ACEOF
104123544ea2eSmrg
104133544ea2eSmrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
104143544ea2eSmrg	if test "x$PVM" = "x"; then
104153544ea2eSmrg		PVM="0"
104163544ea2eSmrg	fi
104173544ea2eSmrg
104183544ea2eSmrgcat >>confdefs.h <<_ACEOF
104193544ea2eSmrg#define PACKAGE_VERSION_MINOR $PVM
104203544ea2eSmrg_ACEOF
104213544ea2eSmrg
104223544ea2eSmrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
104233544ea2eSmrg	if test "x$PVP" = "x"; then
104243544ea2eSmrg		PVP="0"
104253544ea2eSmrg	fi
104263544ea2eSmrg
104273544ea2eSmrgcat >>confdefs.h <<_ACEOF
104283544ea2eSmrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
104293544ea2eSmrg_ACEOF
104303544ea2eSmrg
104313544ea2eSmrg
104323544ea2eSmrg
104333544ea2eSmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
104343544ea2eSmrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
104353544ea2eSmrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
104363544ea2eSmrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
104373544ea2eSmrg
104383544ea2eSmrg
104393544ea2eSmrg
104403544ea2eSmrg
104413544ea2eSmrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
104423544ea2eSmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
104433544ea2eSmrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
104443544ea2eSmrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
104453544ea2eSmrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
104463544ea2eSmrg
104473544ea2eSmrg
104483544ea2eSmrg
104493544ea2eSmrg
104503544ea2eSmrg
104513544ea2eSmrg
104523544ea2eSmrgif test x$APP_MAN_SUFFIX = x    ; then
104533544ea2eSmrg    APP_MAN_SUFFIX=1
104543544ea2eSmrgfi
104553544ea2eSmrgif test x$APP_MAN_DIR = x    ; then
104563544ea2eSmrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
104573544ea2eSmrgfi
104583544ea2eSmrg
104593544ea2eSmrgif test x$LIB_MAN_SUFFIX = x    ; then
104603544ea2eSmrg    LIB_MAN_SUFFIX=3
104613544ea2eSmrgfi
104623544ea2eSmrgif test x$LIB_MAN_DIR = x    ; then
104633544ea2eSmrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
104643544ea2eSmrgfi
104653544ea2eSmrg
104663544ea2eSmrgif test x$FILE_MAN_SUFFIX = x    ; then
104673544ea2eSmrg    case $host_os in
104683544ea2eSmrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
104693544ea2eSmrg	*)		FILE_MAN_SUFFIX=5  ;;
104703544ea2eSmrg    esac
104713544ea2eSmrgfi
104723544ea2eSmrgif test x$FILE_MAN_DIR = x    ; then
104733544ea2eSmrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
104743544ea2eSmrgfi
104753544ea2eSmrg
104763544ea2eSmrgif test x$MISC_MAN_SUFFIX = x    ; then
104773544ea2eSmrg    case $host_os in
104783544ea2eSmrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
104793544ea2eSmrg	*)		MISC_MAN_SUFFIX=7  ;;
104803544ea2eSmrg    esac
104813544ea2eSmrgfi
104823544ea2eSmrgif test x$MISC_MAN_DIR = x    ; then
104833544ea2eSmrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
104843544ea2eSmrgfi
104853544ea2eSmrg
104863544ea2eSmrgif test x$DRIVER_MAN_SUFFIX = x    ; then
104873544ea2eSmrg    case $host_os in
104883544ea2eSmrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
104893544ea2eSmrg	*)		DRIVER_MAN_SUFFIX=4  ;;
104903544ea2eSmrg    esac
104913544ea2eSmrgfi
104923544ea2eSmrgif test x$DRIVER_MAN_DIR = x    ; then
104933544ea2eSmrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
104943544ea2eSmrgfi
104953544ea2eSmrg
104963544ea2eSmrgif test x$ADMIN_MAN_SUFFIX = x    ; then
104973544ea2eSmrg    case $host_os in
104983544ea2eSmrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
104993544ea2eSmrg	*)		ADMIN_MAN_SUFFIX=8  ;;
105003544ea2eSmrg    esac
105013544ea2eSmrgfi
105023544ea2eSmrgif test x$ADMIN_MAN_DIR = x    ; then
105033544ea2eSmrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
105043544ea2eSmrgfi
105053544ea2eSmrg
105063544ea2eSmrg
105073544ea2eSmrg
105083544ea2eSmrg
105093544ea2eSmrg
105103544ea2eSmrg
105113544ea2eSmrg
105123544ea2eSmrg
105133544ea2eSmrg
105143544ea2eSmrg
105153544ea2eSmrg
105163544ea2eSmrg
105173544ea2eSmrg
105183544ea2eSmrg
105193544ea2eSmrg
105203544ea2eSmrgXORG_MAN_PAGE="X Version 11"
105213544ea2eSmrg
105223544ea2eSmrgMAN_SUBSTS="\
105233544ea2eSmrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
105243544ea2eSmrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
105253544ea2eSmrg	-e 's|__xservername__|Xorg|g' \
105263544ea2eSmrg	-e 's|__xconfigfile__|xorg.conf|g' \
105273544ea2eSmrg	-e 's|__projectroot__|\$(prefix)|g' \
105283544ea2eSmrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10529169a0819Smrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10530169a0819Smrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10531169a0819Smrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10532169a0819Smrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10533169a0819Smrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10534169a0819Smrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10535fb23d3a8Smrg
1053664ce7165Smrg
1053764ce7165Smrg
10538169a0819Smrg# Check whether --enable-silent-rules was given.
10539169a0819Smrgif test "${enable_silent_rules+set}" = set; then :
10540169a0819Smrg  enableval=$enable_silent_rules;
1054164ce7165Smrgfi
1054264ce7165Smrg
10543169a0819Smrgcase $enable_silent_rules in
10544169a0819Smrgyes) AM_DEFAULT_VERBOSITY=0;;
10545169a0819Smrgno)  AM_DEFAULT_VERBOSITY=1;;
10546169a0819Smrg*)   AM_DEFAULT_VERBOSITY=0;;
1054764ce7165Smrgesac
10548169a0819SmrgAM_BACKSLASH='\'
1054964ce7165Smrg
1055064ce7165Smrg
1055164ce7165Smrg
105523544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
105533544ea2eSmrg$as_echo_n "checking return type of signal handlers... " >&6; }
105543544ea2eSmrgif ${ac_cv_type_signal+:} false; then :
105553544ea2eSmrg  $as_echo_n "(cached) " >&6
105563544ea2eSmrgelse
105573544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
105583544ea2eSmrg/* end confdefs.h.  */
105593544ea2eSmrg#include <sys/types.h>
105603544ea2eSmrg#include <signal.h>
105613544ea2eSmrg
105623544ea2eSmrgint
105633544ea2eSmrgmain ()
105643544ea2eSmrg{
105653544ea2eSmrgreturn *(signal (0, 0)) (0) == 1;
105663544ea2eSmrg  ;
105673544ea2eSmrg  return 0;
105683544ea2eSmrg}
105693544ea2eSmrg_ACEOF
105703544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
105713544ea2eSmrg  ac_cv_type_signal=int
105723544ea2eSmrgelse
105733544ea2eSmrg  ac_cv_type_signal=void
105743544ea2eSmrgfi
105753544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
105763544ea2eSmrgfi
105773544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
105783544ea2eSmrg$as_echo "$ac_cv_type_signal" >&6; }
105793544ea2eSmrg
105803544ea2eSmrgcat >>confdefs.h <<_ACEOF
105813544ea2eSmrg#define RETSIGTYPE $ac_cv_type_signal
105823544ea2eSmrg_ACEOF
105833544ea2eSmrg
105843544ea2eSmrg
105853544ea2eSmrg
10586169a0819Smrg# Checks for pkg-config packages
105873544ea2eSmrg# - Both CFLAGS & LIBS needed:
1058864ce7165Smrg
1058964ce7165Smrgpkg_failed=no
10590169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XHOST" >&5
10591fb23d3a8Smrg$as_echo_n "checking for XHOST... " >&6; }
10592fb23d3a8Smrg
10593fb23d3a8Smrgif test -n "$XHOST_CFLAGS"; then
10594fb23d3a8Smrg    pkg_cv_XHOST_CFLAGS="$XHOST_CFLAGS"
10595fb23d3a8Smrg elif test -n "$PKG_CONFIG"; then
10596fb23d3a8Smrg    if test -n "$PKG_CONFIG" && \
105973544ea2eSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xmuu\""; } >&5
105983544ea2eSmrg  ($PKG_CONFIG --exists --print-errors "x11 xmuu") 2>&5
1059964ce7165Smrg  ac_status=$?
10600169a0819Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10601169a0819Smrg  test $ac_status = 0; }; then
106023544ea2eSmrg  pkg_cv_XHOST_CFLAGS=`$PKG_CONFIG --cflags "x11 xmuu" 2>/dev/null`
1060364ce7165Smrgelse
1060464ce7165Smrg  pkg_failed=yes
1060564ce7165Smrgfi
10606fb23d3a8Smrg else
10607fb23d3a8Smrg    pkg_failed=untried
1060864ce7165Smrgfi
10609fb23d3a8Smrgif test -n "$XHOST_LIBS"; then
10610fb23d3a8Smrg    pkg_cv_XHOST_LIBS="$XHOST_LIBS"
10611fb23d3a8Smrg elif test -n "$PKG_CONFIG"; then
10612fb23d3a8Smrg    if test -n "$PKG_CONFIG" && \
106133544ea2eSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xmuu\""; } >&5
106143544ea2eSmrg  ($PKG_CONFIG --exists --print-errors "x11 xmuu") 2>&5
1061564ce7165Smrg  ac_status=$?
10616169a0819Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10617169a0819Smrg  test $ac_status = 0; }; then
106183544ea2eSmrg  pkg_cv_XHOST_LIBS=`$PKG_CONFIG --libs "x11 xmuu" 2>/dev/null`
1061964ce7165Smrgelse
1062064ce7165Smrg  pkg_failed=yes
1062164ce7165Smrgfi
10622fb23d3a8Smrg else
10623fb23d3a8Smrg    pkg_failed=untried
1062464ce7165Smrgfi
1062564ce7165Smrg
10626fb23d3a8Smrg
10627fb23d3a8Smrg
1062864ce7165Smrgif test $pkg_failed = yes; then
10629fb23d3a8Smrg
10630fb23d3a8Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10631fb23d3a8Smrg        _pkg_short_errors_supported=yes
10632fb23d3a8Smrgelse
10633fb23d3a8Smrg        _pkg_short_errors_supported=no
10634fb23d3a8Smrgfi
10635fb23d3a8Smrg        if test $_pkg_short_errors_supported = yes; then
106363544ea2eSmrg	        XHOST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xmuu" 2>&1`
10637fb23d3a8Smrg        else
106383544ea2eSmrg	        XHOST_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xmuu" 2>&1`
10639fb23d3a8Smrg        fi
1064064ce7165Smrg	# Put the nasty error message in config.log where it belongs
10641fb23d3a8Smrg	echo "$XHOST_PKG_ERRORS" >&5
10642fb23d3a8Smrg
106433544ea2eSmrg	as_fn_error $? "Package requirements (x11 xmuu) were not met:
10644fb23d3a8Smrg
10645fb23d3a8Smrg$XHOST_PKG_ERRORS
10646fb23d3a8Smrg
1064764ce7165SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
1064864ce7165Smrginstalled software in a non-standard prefix.
1064964ce7165Smrg
10650fb23d3a8SmrgAlternatively, you may set the environment variables XHOST_CFLAGS
10651fb23d3a8Smrgand XHOST_LIBS to avoid the need to call pkg-config.
10652fb23d3a8SmrgSee the pkg-config man page for more details.
10653169a0819Smrg" "$LINENO" 5
1065464ce7165Smrgelif test $pkg_failed = untried; then
10655169a0819Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10656fb23d3a8Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10657169a0819Smrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
1065864ce7165Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
1065964ce7165Smrgpath to pkg-config.
1066064ce7165Smrg
10661fb23d3a8SmrgAlternatively, you may set the environment variables XHOST_CFLAGS
10662fb23d3a8Smrgand XHOST_LIBS to avoid the need to call pkg-config.
10663fb23d3a8SmrgSee the pkg-config man page for more details.
1066464ce7165Smrg
10665fb23d3a8SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
10666169a0819SmrgSee \`config.log' for more details" "$LINENO" 5; }
1066764ce7165Smrgelse
1066864ce7165Smrg	XHOST_CFLAGS=$pkg_cv_XHOST_CFLAGS
1066964ce7165Smrg	XHOST_LIBS=$pkg_cv_XHOST_LIBS
10670169a0819Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10671fb23d3a8Smrg$as_echo "yes" >&6; }
1067264ce7165Smrg	:
1067364ce7165Smrgfi
106743544ea2eSmrg# - Only CFLAGS needed, not libs:
106753544ea2eSmrg
106763544ea2eSmrgpkg_failed=no
106773544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XAU" >&5
106783544ea2eSmrg$as_echo_n "checking for XAU... " >&6; }
106793544ea2eSmrg
106803544ea2eSmrgif test -n "$XAU_CFLAGS"; then
106813544ea2eSmrg    pkg_cv_XAU_CFLAGS="$XAU_CFLAGS"
106823544ea2eSmrg elif test -n "$PKG_CONFIG"; then
106833544ea2eSmrg    if test -n "$PKG_CONFIG" && \
106843544ea2eSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xau\""; } >&5
106853544ea2eSmrg  ($PKG_CONFIG --exists --print-errors "xau") 2>&5
106863544ea2eSmrg  ac_status=$?
106873544ea2eSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
106883544ea2eSmrg  test $ac_status = 0; }; then
106893544ea2eSmrg  pkg_cv_XAU_CFLAGS=`$PKG_CONFIG --cflags "xau" 2>/dev/null`
106903544ea2eSmrgelse
106913544ea2eSmrg  pkg_failed=yes
106923544ea2eSmrgfi
106933544ea2eSmrg else
106943544ea2eSmrg    pkg_failed=untried
106953544ea2eSmrgfi
106963544ea2eSmrgif test -n "$XAU_LIBS"; then
106973544ea2eSmrg    pkg_cv_XAU_LIBS="$XAU_LIBS"
106983544ea2eSmrg elif test -n "$PKG_CONFIG"; then
106993544ea2eSmrg    if test -n "$PKG_CONFIG" && \
107003544ea2eSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xau\""; } >&5
107013544ea2eSmrg  ($PKG_CONFIG --exists --print-errors "xau") 2>&5
107023544ea2eSmrg  ac_status=$?
107033544ea2eSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
107043544ea2eSmrg  test $ac_status = 0; }; then
107053544ea2eSmrg  pkg_cv_XAU_LIBS=`$PKG_CONFIG --libs "xau" 2>/dev/null`
107063544ea2eSmrgelse
107073544ea2eSmrg  pkg_failed=yes
107083544ea2eSmrgfi
107093544ea2eSmrg else
107103544ea2eSmrg    pkg_failed=untried
107113544ea2eSmrgfi
107123544ea2eSmrg
107133544ea2eSmrg
107143544ea2eSmrg
107153544ea2eSmrgif test $pkg_failed = yes; then
107163544ea2eSmrg
107173544ea2eSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
107183544ea2eSmrg        _pkg_short_errors_supported=yes
107193544ea2eSmrgelse
107203544ea2eSmrg        _pkg_short_errors_supported=no
107213544ea2eSmrgfi
107223544ea2eSmrg        if test $_pkg_short_errors_supported = yes; then
107233544ea2eSmrg	        XAU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xau" 2>&1`
107243544ea2eSmrg        else
107253544ea2eSmrg	        XAU_PKG_ERRORS=`$PKG_CONFIG --print-errors "xau" 2>&1`
107263544ea2eSmrg        fi
107273544ea2eSmrg	# Put the nasty error message in config.log where it belongs
107283544ea2eSmrg	echo "$XAU_PKG_ERRORS" >&5
107293544ea2eSmrg
107303544ea2eSmrg	as_fn_error $? "Package requirements (xau) were not met:
107313544ea2eSmrg
107323544ea2eSmrg$XAU_PKG_ERRORS
107333544ea2eSmrg
107343544ea2eSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
107353544ea2eSmrginstalled software in a non-standard prefix.
107363544ea2eSmrg
107373544ea2eSmrgAlternatively, you may set the environment variables XAU_CFLAGS
107383544ea2eSmrgand XAU_LIBS to avoid the need to call pkg-config.
107393544ea2eSmrgSee the pkg-config man page for more details.
107403544ea2eSmrg" "$LINENO" 5
107413544ea2eSmrgelif test $pkg_failed = untried; then
107423544ea2eSmrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
107433544ea2eSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
107443544ea2eSmrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
107453544ea2eSmrgis in your PATH or set the PKG_CONFIG environment variable to the full
107463544ea2eSmrgpath to pkg-config.
107473544ea2eSmrg
107483544ea2eSmrgAlternatively, you may set the environment variables XAU_CFLAGS
107493544ea2eSmrgand XAU_LIBS to avoid the need to call pkg-config.
107503544ea2eSmrgSee the pkg-config man page for more details.
107513544ea2eSmrg
107523544ea2eSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
107533544ea2eSmrgSee \`config.log' for more details" "$LINENO" 5; }
107543544ea2eSmrgelse
107553544ea2eSmrg	XAU_CFLAGS=$pkg_cv_XAU_CFLAGS
107563544ea2eSmrg	XAU_LIBS=$pkg_cv_XAU_LIBS
107573544ea2eSmrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
107583544ea2eSmrg$as_echo "yes" >&6; }
107593544ea2eSmrg	:
107603544ea2eSmrgfi
1076164ce7165Smrg
1076264ce7165Smrg# Transport selection macro from xtrans.m4
1076364ce7165Smrg
1076464ce7165Smrg
1076564ce7165Smrg
10766fb23d3a8Smrg case $host_os in
10767fb23d3a8Smrg	mingw*)	unixdef="no"   ;;
10768fb23d3a8Smrg	*)	unixdef="yes"  ;;
10769fb23d3a8Smrg esac
1077064ce7165Smrg # Check whether --enable-unix-transport was given.
10771169a0819Smrgif test "${enable_unix_transport+set}" = set; then :
1077264ce7165Smrg  enableval=$enable_unix_transport; UNIXCONN=$enableval
1077364ce7165Smrgelse
10774fb23d3a8Smrg  UNIXCONN=$unixdef
1077564ce7165Smrgfi
1077664ce7165Smrg
10777169a0819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
10778fb23d3a8Smrg$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
1077964ce7165Smrg if test "$UNIXCONN" = "yes"; then
1078064ce7165Smrg
10781169a0819Smrg$as_echo "#define UNIXCONN 1" >>confdefs.h
1078264ce7165Smrg
1078364ce7165Smrg fi
10784169a0819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
10785fb23d3a8Smrg$as_echo "$UNIXCONN" >&6; }
10786fb23d3a8Smrg # Check whether --enable-tcp-transport was given.
10787169a0819Smrgif test "${enable_tcp_transport+set}" = set; then :
10788fb23d3a8Smrg  enableval=$enable_tcp_transport; TCPCONN=$enableval
10789fb23d3a8Smrgelse
10790fb23d3a8Smrg  TCPCONN=yes
10791fb23d3a8Smrgfi
10792fb23d3a8Smrg
10793169a0819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
10794fb23d3a8Smrg$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
10795169a0819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
10796fb23d3a8Smrg$as_echo "$TCPCONN" >&6; }
1079764ce7165Smrg if test "$TCPCONN" = "yes"; then
1079864ce7165Smrg
10799169a0819Smrg$as_echo "#define TCPCONN 1" >>confdefs.h
1080064ce7165Smrg
1080164ce7165Smrg
1080264ce7165Smrg # SVR4 hides these in libraries other than libc
10803169a0819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
10804fb23d3a8Smrg$as_echo_n "checking for library containing socket... " >&6; }
10805169a0819Smrgif ${ac_cv_search_socket+:} false; then :
10806fb23d3a8Smrg  $as_echo_n "(cached) " >&6
1080764ce7165Smrgelse
1080864ce7165Smrg  ac_func_search_save_LIBS=$LIBS
10809169a0819Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
1081064ce7165Smrg/* end confdefs.h.  */
1081164ce7165Smrg
1081264ce7165Smrg/* Override any GCC internal prototype to avoid an error.
1081364ce7165Smrg   Use char because int might match the return type of a GCC
1081464ce7165Smrg   builtin and then its argument prototype would still apply.  */
1081564ce7165Smrg#ifdef __cplusplus
1081664ce7165Smrgextern "C"
1081764ce7165Smrg#endif
1081864ce7165Smrgchar socket ();
1081964ce7165Smrgint
1082064ce7165Smrgmain ()
1082164ce7165Smrg{
1082264ce7165Smrgreturn socket ();
1082364ce7165Smrg  ;
1082464ce7165Smrg  return 0;
1082564ce7165Smrg}
1082664ce7165Smrg_ACEOF
1082764ce7165Smrgfor ac_lib in '' socket; do
1082864ce7165Smrg  if test -z "$ac_lib"; then
1082964ce7165Smrg    ac_res="none required"
1083064ce7165Smrg  else
1083164ce7165Smrg    ac_res=-l$ac_lib
1083264ce7165Smrg    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
1083364ce7165Smrg  fi
10834169a0819Smrg  if ac_fn_c_try_link "$LINENO"; then :
1083564ce7165Smrg  ac_cv_search_socket=$ac_res
1083664ce7165Smrgfi
10837169a0819Smrgrm -f core conftest.err conftest.$ac_objext \
10838169a0819Smrg    conftest$ac_exeext
10839169a0819Smrg  if ${ac_cv_search_socket+:} false; then :
1084064ce7165Smrg  break
1084164ce7165Smrgfi
1084264ce7165Smrgdone
10843169a0819Smrgif ${ac_cv_search_socket+:} false; then :
10844169a0819Smrg
1084564ce7165Smrgelse
1084664ce7165Smrg  ac_cv_search_socket=no
1084764ce7165Smrgfi
1084864ce7165Smrgrm conftest.$ac_ext
1084964ce7165SmrgLIBS=$ac_func_search_save_LIBS
1085064ce7165Smrgfi
10851169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
10852fb23d3a8Smrg$as_echo "$ac_cv_search_socket" >&6; }
1085364ce7165Smrgac_res=$ac_cv_search_socket
10854169a0819Smrgif test "$ac_res" != no; then :
1085564ce7165Smrg  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1085664ce7165Smrg
1085764ce7165Smrgfi
1085864ce7165Smrg
10859169a0819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
10860fb23d3a8Smrg$as_echo_n "checking for library containing gethostbyname... " >&6; }
10861169a0819Smrgif ${ac_cv_search_gethostbyname+:} false; then :
10862fb23d3a8Smrg  $as_echo_n "(cached) " >&6
1086364ce7165Smrgelse
1086464ce7165Smrg  ac_func_search_save_LIBS=$LIBS
10865169a0819Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
1086664ce7165Smrg/* end confdefs.h.  */
1086764ce7165Smrg
1086864ce7165Smrg/* Override any GCC internal prototype to avoid an error.
1086964ce7165Smrg   Use char because int might match the return type of a GCC
1087064ce7165Smrg   builtin and then its argument prototype would still apply.  */
1087164ce7165Smrg#ifdef __cplusplus
1087264ce7165Smrgextern "C"
1087364ce7165Smrg#endif
1087464ce7165Smrgchar gethostbyname ();
1087564ce7165Smrgint
1087664ce7165Smrgmain ()
1087764ce7165Smrg{
1087864ce7165Smrgreturn gethostbyname ();
1087964ce7165Smrg  ;
1088064ce7165Smrg  return 0;
1088164ce7165Smrg}
1088264ce7165Smrg_ACEOF
1088364ce7165Smrgfor ac_lib in '' nsl; do
1088464ce7165Smrg  if test -z "$ac_lib"; then
1088564ce7165Smrg    ac_res="none required"
1088664ce7165Smrg  else
1088764ce7165Smrg    ac_res=-l$ac_lib
1088864ce7165Smrg    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
1088964ce7165Smrg  fi
10890169a0819Smrg  if ac_fn_c_try_link "$LINENO"; then :
1089164ce7165Smrg  ac_cv_search_gethostbyname=$ac_res
1089264ce7165Smrgfi
10893169a0819Smrgrm -f core conftest.err conftest.$ac_objext \
10894169a0819Smrg    conftest$ac_exeext
10895169a0819Smrg  if ${ac_cv_search_gethostbyname+:} false; then :
1089664ce7165Smrg  break
1089764ce7165Smrgfi
1089864ce7165Smrgdone
10899169a0819Smrgif ${ac_cv_search_gethostbyname+:} false; then :
10900169a0819Smrg
1090164ce7165Smrgelse
1090264ce7165Smrg  ac_cv_search_gethostbyname=no
1090364ce7165Smrgfi
1090464ce7165Smrgrm conftest.$ac_ext
1090564ce7165SmrgLIBS=$ac_func_search_save_LIBS
1090664ce7165Smrgfi
10907169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
10908fb23d3a8Smrg$as_echo "$ac_cv_search_gethostbyname" >&6; }
1090964ce7165Smrgac_res=$ac_cv_search_gethostbyname
10910169a0819Smrgif test "$ac_res" != no; then :
1091164ce7165Smrg  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1091264ce7165Smrg
1091364ce7165Smrgfi
1091464ce7165Smrg
10915169a0819Smrg if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
10916169a0819Smrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
10917fb23d3a8Smrg$as_echo_n "checking for main in -lws2_32... " >&6; }
10918169a0819Smrgif ${ac_cv_lib_ws2_32_main+:} false; then :
10919fb23d3a8Smrg  $as_echo_n "(cached) " >&6
10920fb23d3a8Smrgelse
10921fb23d3a8Smrg  ac_check_lib_save_LIBS=$LIBS
10922fb23d3a8SmrgLIBS="-lws2_32  $LIBS"
10923169a0819Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
10924fb23d3a8Smrg/* end confdefs.h.  */
10925fb23d3a8Smrg
10926fb23d3a8Smrg
10927fb23d3a8Smrgint
10928fb23d3a8Smrgmain ()
10929fb23d3a8Smrg{
10930fb23d3a8Smrgreturn main ();
10931fb23d3a8Smrg  ;
10932fb23d3a8Smrg  return 0;
10933fb23d3a8Smrg}
10934fb23d3a8Smrg_ACEOF
10935169a0819Smrgif ac_fn_c_try_link "$LINENO"; then :
10936fb23d3a8Smrg  ac_cv_lib_ws2_32_main=yes
10937fb23d3a8Smrgelse
10938169a0819Smrg  ac_cv_lib_ws2_32_main=no
10939fb23d3a8Smrgfi
10940169a0819Smrgrm -f core conftest.err conftest.$ac_objext \
10941169a0819Smrg    conftest$ac_exeext conftest.$ac_ext
10942fb23d3a8SmrgLIBS=$ac_check_lib_save_LIBS
10943fb23d3a8Smrgfi
10944169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
10945fb23d3a8Smrg$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
10946169a0819Smrgif test "x$ac_cv_lib_ws2_32_main" = xyes; then :
10947fb23d3a8Smrg  cat >>confdefs.h <<_ACEOF
10948fb23d3a8Smrg#define HAVE_LIBWS2_32 1
10949fb23d3a8Smrg_ACEOF
10950fb23d3a8Smrg
10951fb23d3a8Smrg  LIBS="-lws2_32 $LIBS"
10952fb23d3a8Smrg
10953fb23d3a8Smrgfi
10954fb23d3a8Smrgac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main
10955fb23d3a8Smrg
10956169a0819Smrg fi
10957fb23d3a8Smrg
1095864ce7165Smrg # Needs to come after above checks for libsocket & libnsl for SVR4 systems
1095964ce7165Smrg # Check whether --enable-ipv6 was given.
10960169a0819Smrgif test "${enable_ipv6+set}" = set; then :
1096164ce7165Smrg  enableval=$enable_ipv6; IPV6CONN=$enableval
1096264ce7165Smrgelse
10963169a0819Smrg  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
10964169a0819Smrgif test "x$ac_cv_func_getaddrinfo" = xyes; then :
1096564ce7165Smrg  IPV6CONN=yes
1096664ce7165Smrgelse
1096764ce7165Smrg  IPV6CONN=no
1096864ce7165Smrgfi
1096964ce7165Smrg
1097064ce7165Smrgfi
1097164ce7165Smrg
10972169a0819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
10973fb23d3a8Smrg$as_echo_n "checking if IPv6 support should be built... " >&6; }
1097464ce7165Smrg if test "$IPV6CONN" = "yes"; then
1097564ce7165Smrg
10976169a0819Smrg$as_echo "#define IPv6 1" >>confdefs.h
1097764ce7165Smrg
1097864ce7165Smrg fi
10979169a0819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
10980fb23d3a8Smrg$as_echo "$IPV6CONN" >&6; }
1098164ce7165Smrg
1098264ce7165Smrg # 4.3BSD-Reno added a new member to struct sockaddr_in
10983169a0819Smrg ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
10984fb23d3a8Smrg#include <sys/types.h>
10985fb23d3a8Smrg#include <sys/socket.h>
10986fb23d3a8Smrg#include <netinet/in.h>
10987fb23d3a8Smrg
10988169a0819Smrg"
10989169a0819Smrgif test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
10990fb23d3a8Smrg
10991169a0819Smrg$as_echo "#define BSD44SOCKETS 1" >>confdefs.h
10992fb23d3a8Smrg
10993fb23d3a8Smrgfi
10994fb23d3a8Smrg
10995fb23d3a8Smrg
10996fb23d3a8Smrg # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
10997169a0819Smrg ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
10998fb23d3a8Smrg$ac_includes_default
1099964ce7165Smrg#include <sys/socket.h>
11000169a0819Smrg"
11001169a0819Smrgif test "x$ac_cv_type_socklen_t" = xyes; then :
1100264ce7165Smrg
11003fb23d3a8Smrgcat >>confdefs.h <<_ACEOF
11004fb23d3a8Smrg#define HAVE_SOCKLEN_T 1
1100564ce7165Smrg_ACEOF
1100664ce7165Smrg
11007fb23d3a8Smrg
1100864ce7165Smrgfi
1100964ce7165Smrg
1101064ce7165Smrg
11011fb23d3a8Smrg
1101264ce7165Smrg fi
1101364ce7165Smrg case $host_os in
1101464ce7165Smrg	solaris*|sco*|sysv4*)	localdef="yes" ;;
1101564ce7165Smrg	*)			localdef="no"  ;;
1101664ce7165Smrg esac
1101764ce7165Smrg # Check whether --enable-local-transport was given.
11018169a0819Smrgif test "${enable_local_transport+set}" = set; then :
1101964ce7165Smrg  enableval=$enable_local_transport; LOCALCONN=$enableval
1102064ce7165Smrgelse
1102164ce7165Smrg  LOCALCONN=$localdef
1102264ce7165Smrgfi
1102364ce7165Smrg
11024169a0819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
11025fb23d3a8Smrg$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
11026169a0819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
11027fb23d3a8Smrg$as_echo "$LOCALCONN" >&6; }
1102864ce7165Smrg if test "$LOCALCONN" = "yes"; then
1102964ce7165Smrg
11030169a0819Smrg$as_echo "#define LOCALCONN 1" >>confdefs.h
1103164ce7165Smrg
1103264ce7165Smrg fi
1103364ce7165Smrg
1103464ce7165Smrg
1103564ce7165Smrg
1103664ce7165Smrg# Secure RPC detection macro from xtrans.m4
1103764ce7165Smrg
11038169a0819Smrg # Check whether --enable-secure-rpc was given.
11039169a0819Smrgif test "${enable_secure_rpc+set}" = set; then :
11040169a0819Smrg  enableval=$enable_secure_rpc; SECURE_RPC=$enableval
11041169a0819Smrgelse
11042169a0819Smrg  SECURE_RPC="try"
1104364ce7165Smrgfi
1104464ce7165Smrg
11045169a0819Smrg
11046169a0819Smrg if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then
11047169a0819Smrg	FOUND_SECURE_RPC="no"
11048169a0819Smrg	for ac_func in authdes_seccreate authdes_create
11049169a0819Smrgdo :
11050169a0819Smrg  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11051169a0819Smrgac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11052169a0819Smrgif eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1105364ce7165Smrg  cat >>confdefs.h <<_ACEOF
11054fb23d3a8Smrg#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1105564ce7165Smrg_ACEOF
1105664ce7165Smrg FOUND_SECURE_RPC="yes"
1105764ce7165Smrgfi
1105864ce7165Smrgdone
1105964ce7165Smrg
1106064ce7165Smrg	if test "x$FOUND_SECURE_RPC" = "xno" ; then
1106164ce7165Smrg		if test "x$SECURE_RPC" = "xyes" ; then
11062169a0819Smrg	as_fn_error $? "Secure RPC requested, but required functions not found" "$LINENO" 5
1106364ce7165Smrg		fi
1106464ce7165Smrg		SECURE_RPC="no"
1106564ce7165Smrg	else
11066169a0819Smrg				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsecretkey" >&5
11067fb23d3a8Smrg$as_echo_n "checking for library containing getsecretkey... " >&6; }
11068169a0819Smrgif ${ac_cv_search_getsecretkey+:} false; then :
11069fb23d3a8Smrg  $as_echo_n "(cached) " >&6
1107064ce7165Smrgelse
1107164ce7165Smrg  ac_func_search_save_LIBS=$LIBS
11072169a0819Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
1107364ce7165Smrg/* end confdefs.h.  */
1107464ce7165Smrg
1107564ce7165Smrg/* Override any GCC internal prototype to avoid an error.
1107664ce7165Smrg   Use char because int might match the return type of a GCC
1107764ce7165Smrg   builtin and then its argument prototype would still apply.  */
1107864ce7165Smrg#ifdef __cplusplus
1107964ce7165Smrgextern "C"
1108064ce7165Smrg#endif
1108164ce7165Smrgchar getsecretkey ();
1108264ce7165Smrgint
1108364ce7165Smrgmain ()
1108464ce7165Smrg{
1108564ce7165Smrgreturn getsecretkey ();
1108664ce7165Smrg  ;
1108764ce7165Smrg  return 0;
1108864ce7165Smrg}
1108964ce7165Smrg_ACEOF
1109064ce7165Smrgfor ac_lib in '' rpcsvc; do
1109164ce7165Smrg  if test -z "$ac_lib"; then
1109264ce7165Smrg    ac_res="none required"
1109364ce7165Smrg  else
1109464ce7165Smrg    ac_res=-l$ac_lib
1109564ce7165Smrg    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
1109664ce7165Smrg  fi
11097169a0819Smrg  if ac_fn_c_try_link "$LINENO"; then :
1109864ce7165Smrg  ac_cv_search_getsecretkey=$ac_res
1109964ce7165Smrgfi
11100169a0819Smrgrm -f core conftest.err conftest.$ac_objext \
11101169a0819Smrg    conftest$ac_exeext
11102169a0819Smrg  if ${ac_cv_search_getsecretkey+:} false; then :
1110364ce7165Smrg  break
1110464ce7165Smrgfi
1110564ce7165Smrgdone
11106169a0819Smrgif ${ac_cv_search_getsecretkey+:} false; then :
11107169a0819Smrg
1110864ce7165Smrgelse
1110964ce7165Smrg  ac_cv_search_getsecretkey=no
1111064ce7165Smrgfi
1111164ce7165Smrgrm conftest.$ac_ext
1111264ce7165SmrgLIBS=$ac_func_search_save_LIBS
1111364ce7165Smrgfi
11114169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsecretkey" >&5
11115fb23d3a8Smrg$as_echo "$ac_cv_search_getsecretkey" >&6; }
1111664ce7165Smrgac_res=$ac_cv_search_getsecretkey
11117169a0819Smrgif test "$ac_res" != no; then :
1111864ce7165Smrg  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1111964ce7165Smrg
1112064ce7165Smrgfi
1112164ce7165Smrg
1112264ce7165Smrg		SECURE_RPC="yes"
1112364ce7165Smrg	fi
1112464ce7165Smrg fi
11125169a0819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5
11126fb23d3a8Smrg$as_echo_n "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... " >&6; }
1112764ce7165Smrg if test "x$SECURE_RPC" = "xyes" ; then
1112864ce7165Smrg
11129169a0819Smrg$as_echo "#define SECURE_RPC 1" >>confdefs.h
1113064ce7165Smrg
1113164ce7165Smrg fi
11132169a0819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SECURE_RPC" >&5
11133fb23d3a8Smrg$as_echo "$SECURE_RPC" >&6; }
1113464ce7165Smrg
1113564ce7165Smrg
111363544ea2eSmrgac_config_files="$ac_config_files Makefile man/Makefile"
1113764ce7165Smrg
1113864ce7165Smrgcat >confcache <<\_ACEOF
1113964ce7165Smrg# This file is a shell script that caches the results of configure
1114064ce7165Smrg# tests run on this system so they can be shared between configure
1114164ce7165Smrg# scripts and configure runs, see configure's option --config-cache.
1114264ce7165Smrg# It is not useful on other systems.  If it contains results you don't
1114364ce7165Smrg# want to keep, you may remove or edit it.
1114464ce7165Smrg#
1114564ce7165Smrg# config.status only pays attention to the cache file if you give it
1114664ce7165Smrg# the --recheck option to rerun configure.
1114764ce7165Smrg#
1114864ce7165Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
1114964ce7165Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
1115064ce7165Smrg# following values.
1115164ce7165Smrg
1115264ce7165Smrg_ACEOF
1115364ce7165Smrg
1115464ce7165Smrg# The following way of writing the cache mishandles newlines in values,
1115564ce7165Smrg# but we know of no workaround that is simple, portable, and efficient.
1115664ce7165Smrg# So, we kill variables containing newlines.
1115764ce7165Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
1115864ce7165Smrg# and sets the high bit in the cache file unless we assign to the vars.
1115964ce7165Smrg(
1116064ce7165Smrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
1116164ce7165Smrg    eval ac_val=\$$ac_var
1116264ce7165Smrg    case $ac_val in #(
1116364ce7165Smrg    *${as_nl}*)
1116464ce7165Smrg      case $ac_var in #(
11165169a0819Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11166fb23d3a8Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1116764ce7165Smrg      esac
1116864ce7165Smrg      case $ac_var in #(
1116964ce7165Smrg      _ | IFS | as_nl) ;; #(
11170fb23d3a8Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11171169a0819Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
1117264ce7165Smrg      esac ;;
1117364ce7165Smrg    esac
1117464ce7165Smrg  done
1117564ce7165Smrg
1117664ce7165Smrg  (set) 2>&1 |
1117764ce7165Smrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
1117864ce7165Smrg    *${as_nl}ac_space=\ *)
11179169a0819Smrg      # `set' does not quote correctly, so add quotes: double-quote
11180169a0819Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
1118164ce7165Smrg      sed -n \
1118264ce7165Smrg	"s/'/'\\\\''/g;
1118364ce7165Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1118464ce7165Smrg      ;; #(
1118564ce7165Smrg    *)
1118664ce7165Smrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
1118764ce7165Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1118864ce7165Smrg      ;;
1118964ce7165Smrg    esac |
1119064ce7165Smrg    sort
1119164ce7165Smrg) |
1119264ce7165Smrg  sed '
1119364ce7165Smrg     /^ac_cv_env_/b end
1119464ce7165Smrg     t clear
1119564ce7165Smrg     :clear
1119664ce7165Smrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
1119764ce7165Smrg     t end
1119864ce7165Smrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
1119964ce7165Smrg     :end' >>confcache
1120064ce7165Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
1120164ce7165Smrg  if test -w "$cache_file"; then
11202169a0819Smrg    if test "x$cache_file" != "x/dev/null"; then
11203169a0819Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11204fb23d3a8Smrg$as_echo "$as_me: updating cache $cache_file" >&6;}
11205169a0819Smrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
11206169a0819Smrg	cat confcache >"$cache_file"
11207169a0819Smrg      else
11208169a0819Smrg        case $cache_file in #(
11209169a0819Smrg        */* | ?:*)
11210169a0819Smrg	  mv -f confcache "$cache_file"$$ &&
11211169a0819Smrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11212169a0819Smrg        *)
11213169a0819Smrg	  mv -f confcache "$cache_file" ;;
11214169a0819Smrg	esac
11215169a0819Smrg      fi
11216169a0819Smrg    fi
1121764ce7165Smrg  else
11218169a0819Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11219fb23d3a8Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1122064ce7165Smrg  fi
1122164ce7165Smrgfi
1122264ce7165Smrgrm -f confcache
1122364ce7165Smrg
1122464ce7165Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
1122564ce7165Smrg# Let make expand exec_prefix.
1122664ce7165Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1122764ce7165Smrg
1122864ce7165SmrgDEFS=-DHAVE_CONFIG_H
1122964ce7165Smrg
1123064ce7165Smrgac_libobjs=
1123164ce7165Smrgac_ltlibobjs=
11232169a0819SmrgU=
1123364ce7165Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
1123464ce7165Smrg  # 1. Remove the extension, and $U if already installed.
1123564ce7165Smrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11236fb23d3a8Smrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
1123764ce7165Smrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
1123864ce7165Smrg  #    will be set to the directory where LIBOBJS objects are built.
11239169a0819Smrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11240169a0819Smrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1124164ce7165Smrgdone
1124264ce7165SmrgLIBOBJS=$ac_libobjs
1124364ce7165Smrg
1124464ce7165SmrgLTLIBOBJS=$ac_ltlibobjs
1124564ce7165Smrg
1124664ce7165Smrg
11247fb23d3a8Smrg if test -n "$EXEEXT"; then
11248fb23d3a8Smrg  am__EXEEXT_TRUE=
11249fb23d3a8Smrg  am__EXEEXT_FALSE='#'
11250fb23d3a8Smrgelse
11251fb23d3a8Smrg  am__EXEEXT_TRUE='#'
11252fb23d3a8Smrg  am__EXEEXT_FALSE=
11253fb23d3a8Smrgfi
11254fb23d3a8Smrg
1125564ce7165Smrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11256169a0819Smrg  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11257169a0819SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
1125864ce7165Smrgfi
1125964ce7165Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11260169a0819Smrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
11261169a0819SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
1126264ce7165Smrgfi
1126364ce7165Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11264169a0819Smrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11265169a0819SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
1126664ce7165Smrgfi
1126764ce7165Smrg
11268169a0819Smrg: "${CONFIG_STATUS=./config.status}"
11269fb23d3a8Smrgac_write_fail=0
1127064ce7165Smrgac_clean_files_save=$ac_clean_files
1127164ce7165Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
11272169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11273fb23d3a8Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11274169a0819Smrgas_write_fail=0
11275169a0819Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1127664ce7165Smrg#! $SHELL
1127764ce7165Smrg# Generated by $as_me.
1127864ce7165Smrg# Run this file to recreate the current configuration.
1127964ce7165Smrg# Compiler output produced by configure, useful for debugging
1128064ce7165Smrg# configure, is in config.log if it exists.
1128164ce7165Smrg
1128264ce7165Smrgdebug=false
1128364ce7165Smrgac_cs_recheck=false
1128464ce7165Smrgac_cs_silent=false
1128564ce7165Smrg
11286169a0819SmrgSHELL=\${CONFIG_SHELL-$SHELL}
11287169a0819Smrgexport SHELL
11288169a0819Smrg_ASEOF
11289169a0819Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11290169a0819Smrg## -------------------- ##
11291169a0819Smrg## M4sh Initialization. ##
11292169a0819Smrg## -------------------- ##
1129364ce7165Smrg
1129464ce7165Smrg# Be more Bourne compatible
1129564ce7165SmrgDUALCASE=1; export DUALCASE # for MKS sh
11296169a0819Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1129764ce7165Smrg  emulate sh
1129864ce7165Smrg  NULLCMD=:
11299fb23d3a8Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1130064ce7165Smrg  # is contrary to our usage.  Disable this feature.
1130164ce7165Smrg  alias -g '${1+"$@"}'='"$@"'
1130264ce7165Smrg  setopt NO_GLOB_SUBST
1130364ce7165Smrgelse
11304169a0819Smrg  case `(set -o) 2>/dev/null` in #(
11305169a0819Smrg  *posix*) :
11306169a0819Smrg    set -o posix ;; #(
11307169a0819Smrg  *) :
11308169a0819Smrg     ;;
1130964ce7165Smrgesac
1131064ce7165Smrgfi
1131164ce7165Smrg
1131264ce7165Smrg
11313fb23d3a8Smrgas_nl='
11314fb23d3a8Smrg'
11315fb23d3a8Smrgexport as_nl
11316fb23d3a8Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
11317fb23d3a8Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11318fb23d3a8Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11319fb23d3a8Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11320169a0819Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
11321169a0819Smrg# but without wasting forks for bash or zsh.
11322169a0819Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
11323169a0819Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11324169a0819Smrg  as_echo='print -r --'
11325169a0819Smrg  as_echo_n='print -rn --'
11326169a0819Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11327fb23d3a8Smrg  as_echo='printf %s\n'
11328fb23d3a8Smrg  as_echo_n='printf %s'
11329fb23d3a8Smrgelse
11330fb23d3a8Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11331fb23d3a8Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11332fb23d3a8Smrg    as_echo_n='/usr/ucb/echo -n'
1133364ce7165Smrg  else
11334fb23d3a8Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11335fb23d3a8Smrg    as_echo_n_body='eval
11336fb23d3a8Smrg      arg=$1;
11337169a0819Smrg      case $arg in #(
11338fb23d3a8Smrg      *"$as_nl"*)
11339fb23d3a8Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
11340fb23d3a8Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11341fb23d3a8Smrg      esac;
11342fb23d3a8Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11343fb23d3a8Smrg    '
11344fb23d3a8Smrg    export as_echo_n_body
11345fb23d3a8Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
1134664ce7165Smrg  fi
11347fb23d3a8Smrg  export as_echo_body
11348fb23d3a8Smrg  as_echo='sh -c $as_echo_body as_echo'
11349fb23d3a8Smrgfi
11350fb23d3a8Smrg
11351fb23d3a8Smrg# The user is always right.
11352fb23d3a8Smrgif test "${PATH_SEPARATOR+set}" != set; then
11353fb23d3a8Smrg  PATH_SEPARATOR=:
11354fb23d3a8Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11355fb23d3a8Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11356fb23d3a8Smrg      PATH_SEPARATOR=';'
11357fb23d3a8Smrg  }
1135864ce7165Smrgfi
1135964ce7165Smrg
1136064ce7165Smrg
1136164ce7165Smrg# IFS
1136264ce7165Smrg# We need space, tab and new line, in precisely that order.  Quoting is
1136364ce7165Smrg# there to prevent editors from complaining about space-tab.
1136464ce7165Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
1136564ce7165Smrg# splitting by setting IFS to empty value.)
1136664ce7165SmrgIFS=" ""	$as_nl"
1136764ce7165Smrg
1136864ce7165Smrg# Find who we are.  Look in the path if we contain no directory separator.
11369169a0819Smrgas_myself=
11370169a0819Smrgcase $0 in #((
1137164ce7165Smrg  *[\\/]* ) as_myself=$0 ;;
1137264ce7165Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1137364ce7165Smrgfor as_dir in $PATH
1137464ce7165Smrgdo
1137564ce7165Smrg  IFS=$as_save_IFS
1137664ce7165Smrg  test -z "$as_dir" && as_dir=.
11377169a0819Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11378169a0819Smrg  done
1137964ce7165SmrgIFS=$as_save_IFS
1138064ce7165Smrg
1138164ce7165Smrg     ;;
1138264ce7165Smrgesac
1138364ce7165Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
1138464ce7165Smrg# in which case we are not to be found in the path.
1138564ce7165Smrgif test "x$as_myself" = x; then
1138664ce7165Smrg  as_myself=$0
1138764ce7165Smrgfi
1138864ce7165Smrgif test ! -f "$as_myself"; then
11389fb23d3a8Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11390169a0819Smrg  exit 1
1139164ce7165Smrgfi
1139264ce7165Smrg
11393169a0819Smrg# Unset variables that we do not need and which cause bugs (e.g. in
11394169a0819Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11395169a0819Smrg# suppresses any "Segmentation fault" message there.  '((' could
11396169a0819Smrg# trigger a bug in pdksh 5.2.14.
11397169a0819Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
11398169a0819Smrgdo eval test x\${$as_var+set} = xset \
11399169a0819Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1140064ce7165Smrgdone
1140164ce7165SmrgPS1='$ '
1140264ce7165SmrgPS2='> '
1140364ce7165SmrgPS4='+ '
1140464ce7165Smrg
1140564ce7165Smrg# NLS nuisances.
11406fb23d3a8SmrgLC_ALL=C
11407fb23d3a8Smrgexport LC_ALL
11408fb23d3a8SmrgLANGUAGE=C
11409fb23d3a8Smrgexport LANGUAGE
1141064ce7165Smrg
11411169a0819Smrg# CDPATH.
11412169a0819Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11413169a0819Smrg
11414169a0819Smrg
11415169a0819Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
11416169a0819Smrg# ----------------------------------------
11417169a0819Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11418169a0819Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11419169a0819Smrg# script with STATUS, using 1 if that was 0.
11420169a0819Smrgas_fn_error ()
11421169a0819Smrg{
11422169a0819Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
11423169a0819Smrg  if test "$4"; then
11424169a0819Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11425169a0819Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11426169a0819Smrg  fi
11427169a0819Smrg  $as_echo "$as_me: error: $2" >&2
11428169a0819Smrg  as_fn_exit $as_status
11429169a0819Smrg} # as_fn_error
11430169a0819Smrg
11431169a0819Smrg
11432169a0819Smrg# as_fn_set_status STATUS
11433169a0819Smrg# -----------------------
11434169a0819Smrg# Set $? to STATUS, without forking.
11435169a0819Smrgas_fn_set_status ()
11436169a0819Smrg{
11437169a0819Smrg  return $1
11438169a0819Smrg} # as_fn_set_status
11439169a0819Smrg
11440169a0819Smrg# as_fn_exit STATUS
11441169a0819Smrg# -----------------
11442169a0819Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11443169a0819Smrgas_fn_exit ()
11444169a0819Smrg{
11445169a0819Smrg  set +e
11446169a0819Smrg  as_fn_set_status $1
11447169a0819Smrg  exit $1
11448169a0819Smrg} # as_fn_exit
11449169a0819Smrg
11450169a0819Smrg# as_fn_unset VAR
11451169a0819Smrg# ---------------
11452169a0819Smrg# Portably unset VAR.
11453169a0819Smrgas_fn_unset ()
11454169a0819Smrg{
11455169a0819Smrg  { eval $1=; unset $1;}
11456169a0819Smrg}
11457169a0819Smrgas_unset=as_fn_unset
11458169a0819Smrg# as_fn_append VAR VALUE
11459169a0819Smrg# ----------------------
11460169a0819Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
11461169a0819Smrg# advantage of any shell optimizations that allow amortized linear growth over
11462169a0819Smrg# repeated appends, instead of the typical quadratic growth present in naive
11463169a0819Smrg# implementations.
11464169a0819Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11465169a0819Smrg  eval 'as_fn_append ()
11466169a0819Smrg  {
11467169a0819Smrg    eval $1+=\$2
11468169a0819Smrg  }'
11469169a0819Smrgelse
11470169a0819Smrg  as_fn_append ()
11471169a0819Smrg  {
11472169a0819Smrg    eval $1=\$$1\$2
11473169a0819Smrg  }
11474169a0819Smrgfi # as_fn_append
11475169a0819Smrg
11476169a0819Smrg# as_fn_arith ARG...
11477169a0819Smrg# ------------------
11478169a0819Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
11479169a0819Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
11480169a0819Smrg# must be portable across $(()) and expr.
11481169a0819Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11482169a0819Smrg  eval 'as_fn_arith ()
11483169a0819Smrg  {
11484169a0819Smrg    as_val=$(( $* ))
11485169a0819Smrg  }'
11486169a0819Smrgelse
11487169a0819Smrg  as_fn_arith ()
11488169a0819Smrg  {
11489169a0819Smrg    as_val=`expr "$@" || test $? -eq 1`
11490169a0819Smrg  }
11491169a0819Smrgfi # as_fn_arith
11492169a0819Smrg
11493169a0819Smrg
1149464ce7165Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
1149564ce7165Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
1149664ce7165Smrg  as_expr=expr
1149764ce7165Smrgelse
1149864ce7165Smrg  as_expr=false
1149964ce7165Smrgfi
1150064ce7165Smrg
1150164ce7165Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1150264ce7165Smrg  as_basename=basename
1150364ce7165Smrgelse
1150464ce7165Smrg  as_basename=false
1150564ce7165Smrgfi
1150664ce7165Smrg
11507169a0819Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11508169a0819Smrg  as_dirname=dirname
11509169a0819Smrgelse
11510169a0819Smrg  as_dirname=false
11511169a0819Smrgfi
1151264ce7165Smrg
1151364ce7165Smrgas_me=`$as_basename -- "$0" ||
1151464ce7165Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
1151564ce7165Smrg	 X"$0" : 'X\(//\)$' \| \
1151664ce7165Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11517fb23d3a8Smrg$as_echo X/"$0" |
1151864ce7165Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
1151964ce7165Smrg	    s//\1/
1152064ce7165Smrg	    q
1152164ce7165Smrg	  }
1152264ce7165Smrg	  /^X\/\(\/\/\)$/{
1152364ce7165Smrg	    s//\1/
1152464ce7165Smrg	    q
1152564ce7165Smrg	  }
1152664ce7165Smrg	  /^X\/\(\/\).*/{
1152764ce7165Smrg	    s//\1/
1152864ce7165Smrg	    q
1152964ce7165Smrg	  }
1153064ce7165Smrg	  s/.*/./; q'`
1153164ce7165Smrg
11532169a0819Smrg# Avoid depending upon Character Ranges.
11533169a0819Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
11534169a0819Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11535169a0819Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
11536169a0819Smrgas_cr_digits='0123456789'
11537169a0819Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
1153864ce7165Smrg
1153964ce7165SmrgECHO_C= ECHO_N= ECHO_T=
11540169a0819Smrgcase `echo -n x` in #(((((
1154164ce7165Smrg-n*)
11542169a0819Smrg  case `echo 'xy\c'` in
1154364ce7165Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11544169a0819Smrg  xy)  ECHO_C='\c';;
11545169a0819Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11546169a0819Smrg       ECHO_T='	';;
1154764ce7165Smrg  esac;;
1154864ce7165Smrg*)
1154964ce7165Smrg  ECHO_N='-n';;
1155064ce7165Smrgesac
1155164ce7165Smrg
1155264ce7165Smrgrm -f conf$$ conf$$.exe conf$$.file
1155364ce7165Smrgif test -d conf$$.dir; then
1155464ce7165Smrg  rm -f conf$$.dir/conf$$.file
1155564ce7165Smrgelse
1155664ce7165Smrg  rm -f conf$$.dir
11557fb23d3a8Smrg  mkdir conf$$.dir 2>/dev/null
11558fb23d3a8Smrgfi
11559fb23d3a8Smrgif (echo >conf$$.file) 2>/dev/null; then
11560fb23d3a8Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
11561fb23d3a8Smrg    as_ln_s='ln -s'
11562fb23d3a8Smrg    # ... but there are two gotchas:
11563fb23d3a8Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11564fb23d3a8Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11565fb23d3a8Smrg    # In both cases, we have to default to `cp -p'.
11566fb23d3a8Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11567fb23d3a8Smrg      as_ln_s='cp -p'
11568fb23d3a8Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
11569fb23d3a8Smrg    as_ln_s=ln
11570fb23d3a8Smrg  else
1157164ce7165Smrg    as_ln_s='cp -p'
11572fb23d3a8Smrg  fi
1157364ce7165Smrgelse
1157464ce7165Smrg  as_ln_s='cp -p'
1157564ce7165Smrgfi
1157664ce7165Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
1157764ce7165Smrgrmdir conf$$.dir 2>/dev/null
1157864ce7165Smrg
11579169a0819Smrg
11580169a0819Smrg# as_fn_mkdir_p
11581169a0819Smrg# -------------
11582169a0819Smrg# Create "$as_dir" as a directory, including parents if necessary.
11583169a0819Smrgas_fn_mkdir_p ()
11584169a0819Smrg{
11585169a0819Smrg
11586169a0819Smrg  case $as_dir in #(
11587169a0819Smrg  -*) as_dir=./$as_dir;;
11588169a0819Smrg  esac
11589169a0819Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
11590169a0819Smrg    as_dirs=
11591169a0819Smrg    while :; do
11592169a0819Smrg      case $as_dir in #(
11593169a0819Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11594169a0819Smrg      *) as_qdir=$as_dir;;
11595169a0819Smrg      esac
11596169a0819Smrg      as_dirs="'$as_qdir' $as_dirs"
11597169a0819Smrg      as_dir=`$as_dirname -- "$as_dir" ||
11598169a0819Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11599169a0819Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
11600169a0819Smrg	 X"$as_dir" : 'X\(//\)$' \| \
11601169a0819Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11602169a0819Smrg$as_echo X"$as_dir" |
11603169a0819Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11604169a0819Smrg	    s//\1/
11605169a0819Smrg	    q
11606169a0819Smrg	  }
11607169a0819Smrg	  /^X\(\/\/\)[^/].*/{
11608169a0819Smrg	    s//\1/
11609169a0819Smrg	    q
11610169a0819Smrg	  }
11611169a0819Smrg	  /^X\(\/\/\)$/{
11612169a0819Smrg	    s//\1/
11613169a0819Smrg	    q
11614169a0819Smrg	  }
11615169a0819Smrg	  /^X\(\/\).*/{
11616169a0819Smrg	    s//\1/
11617169a0819Smrg	    q
11618169a0819Smrg	  }
11619169a0819Smrg	  s/.*/./; q'`
11620169a0819Smrg      test -d "$as_dir" && break
11621169a0819Smrg    done
11622169a0819Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
11623169a0819Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11624169a0819Smrg
11625169a0819Smrg
11626169a0819Smrg} # as_fn_mkdir_p
1162764ce7165Smrgif mkdir -p . 2>/dev/null; then
11628169a0819Smrg  as_mkdir_p='mkdir -p "$as_dir"'
1162964ce7165Smrgelse
1163064ce7165Smrg  test -d ./-p && rmdir ./-p
1163164ce7165Smrg  as_mkdir_p=false
1163264ce7165Smrgfi
1163364ce7165Smrg
1163464ce7165Smrgif test -x / >/dev/null 2>&1; then
1163564ce7165Smrg  as_test_x='test -x'
1163664ce7165Smrgelse
1163764ce7165Smrg  if ls -dL / >/dev/null 2>&1; then
1163864ce7165Smrg    as_ls_L_option=L
1163964ce7165Smrg  else
1164064ce7165Smrg    as_ls_L_option=
1164164ce7165Smrg  fi
1164264ce7165Smrg  as_test_x='
1164364ce7165Smrg    eval sh -c '\''
1164464ce7165Smrg      if test -d "$1"; then
11645fb23d3a8Smrg	test -d "$1/.";
1164664ce7165Smrg      else
11647169a0819Smrg	case $1 in #(
11648fb23d3a8Smrg	-*)set "./$1";;
1164964ce7165Smrg	esac;
11650169a0819Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1165164ce7165Smrg	???[sx]*):;;*)false;;esac;fi
1165264ce7165Smrg    '\'' sh
1165364ce7165Smrg  '
1165464ce7165Smrgfi
1165564ce7165Smrgas_executable_p=$as_test_x
1165664ce7165Smrg
1165764ce7165Smrg# Sed expression to map a string onto a valid CPP name.
1165864ce7165Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1165964ce7165Smrg
1166064ce7165Smrg# Sed expression to map a string onto a valid variable name.
1166164ce7165Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1166264ce7165Smrg
1166364ce7165Smrg
1166464ce7165Smrgexec 6>&1
11665169a0819Smrg## ----------------------------------- ##
11666169a0819Smrg## Main body of $CONFIG_STATUS script. ##
11667169a0819Smrg## ----------------------------------- ##
11668169a0819Smrg_ASEOF
11669169a0819Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1167064ce7165Smrg
11671169a0819Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11672169a0819Smrg# Save the log message, to keep $0 and so on meaningful, and to
1167364ce7165Smrg# report actual input values of CONFIG_FILES etc. instead of their
1167464ce7165Smrg# values after options handling.
1167564ce7165Smrgac_log="
116763544ea2eSmrgThis file was extended by xhost $as_me 1.0.5, which was
11677169a0819Smrggenerated by GNU Autoconf 2.68.  Invocation command line was
1167864ce7165Smrg
1167964ce7165Smrg  CONFIG_FILES    = $CONFIG_FILES
1168064ce7165Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
1168164ce7165Smrg  CONFIG_LINKS    = $CONFIG_LINKS
1168264ce7165Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
1168364ce7165Smrg  $ $0 $@
1168464ce7165Smrg
1168564ce7165Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
1168664ce7165Smrg"
1168764ce7165Smrg
1168864ce7165Smrg_ACEOF
1168964ce7165Smrg
11690fb23d3a8Smrgcase $ac_config_files in *"
11691fb23d3a8Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
11692fb23d3a8Smrgesac
11693fb23d3a8Smrg
11694fb23d3a8Smrgcase $ac_config_headers in *"
11695fb23d3a8Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11696fb23d3a8Smrgesac
11697fb23d3a8Smrg
11698fb23d3a8Smrg
11699fb23d3a8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1170064ce7165Smrg# Files that config.status was made for.
1170164ce7165Smrgconfig_files="$ac_config_files"
1170264ce7165Smrgconfig_headers="$ac_config_headers"
1170364ce7165Smrgconfig_commands="$ac_config_commands"
1170464ce7165Smrg
1170564ce7165Smrg_ACEOF
1170664ce7165Smrg
11707fb23d3a8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1170864ce7165Smrgac_cs_usage="\
11709169a0819Smrg\`$as_me' instantiates files and other configuration actions
11710169a0819Smrgfrom templates according to the current configuration.  Unless the files
11711169a0819Smrgand actions are specified as TAGs, all are instantiated by default.
1171264ce7165Smrg
11713169a0819SmrgUsage: $0 [OPTION]... [TAG]...
1171464ce7165Smrg
1171564ce7165Smrg  -h, --help       print this help, then exit
1171664ce7165Smrg  -V, --version    print version number and configuration settings, then exit
11717169a0819Smrg      --config     print configuration, then exit
11718fb23d3a8Smrg  -q, --quiet, --silent
11719fb23d3a8Smrg                   do not print progress messages
1172064ce7165Smrg  -d, --debug      don't remove temporary files
1172164ce7165Smrg      --recheck    update $as_me by reconfiguring in the same conditions
11722fb23d3a8Smrg      --file=FILE[:TEMPLATE]
11723fb23d3a8Smrg                   instantiate the configuration file FILE
11724fb23d3a8Smrg      --header=FILE[:TEMPLATE]
11725fb23d3a8Smrg                   instantiate the configuration header FILE
1172664ce7165Smrg
1172764ce7165SmrgConfiguration files:
1172864ce7165Smrg$config_files
1172964ce7165Smrg
1173064ce7165SmrgConfiguration headers:
1173164ce7165Smrg$config_headers
1173264ce7165Smrg
1173364ce7165SmrgConfiguration commands:
1173464ce7165Smrg$config_commands
1173564ce7165Smrg
11736169a0819SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
1173764ce7165Smrg
1173864ce7165Smrg_ACEOF
11739fb23d3a8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11740169a0819Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1174164ce7165Smrgac_cs_version="\\
117423544ea2eSmrgxhost config.status 1.0.5
11743169a0819Smrgconfigured by $0, generated by GNU Autoconf 2.68,
11744169a0819Smrg  with options \\"\$ac_cs_config\\"
1174564ce7165Smrg
11746169a0819SmrgCopyright (C) 2010 Free Software Foundation, Inc.
1174764ce7165SmrgThis config.status script is free software; the Free Software Foundation
1174864ce7165Smrggives unlimited permission to copy, distribute and modify it."
1174964ce7165Smrg
1175064ce7165Smrgac_pwd='$ac_pwd'
1175164ce7165Smrgsrcdir='$srcdir'
1175264ce7165SmrgINSTALL='$INSTALL'
1175364ce7165SmrgMKDIR_P='$MKDIR_P'
11754fb23d3a8SmrgAWK='$AWK'
11755fb23d3a8Smrgtest -n "\$AWK" || AWK=awk
1175664ce7165Smrg_ACEOF
1175764ce7165Smrg
11758fb23d3a8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11759fb23d3a8Smrg# The default lists apply if the user does not specify any file.
1176064ce7165Smrgac_need_defaults=:
1176164ce7165Smrgwhile test $# != 0
1176264ce7165Smrgdo
1176364ce7165Smrg  case $1 in
11764169a0819Smrg  --*=?*)
1176564ce7165Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
1176664ce7165Smrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1176764ce7165Smrg    ac_shift=:
1176864ce7165Smrg    ;;
11769169a0819Smrg  --*=)
11770169a0819Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11771169a0819Smrg    ac_optarg=
11772169a0819Smrg    ac_shift=:
11773169a0819Smrg    ;;
1177464ce7165Smrg  *)
1177564ce7165Smrg    ac_option=$1
1177664ce7165Smrg    ac_optarg=$2
1177764ce7165Smrg    ac_shift=shift
1177864ce7165Smrg    ;;
1177964ce7165Smrg  esac
1178064ce7165Smrg
1178164ce7165Smrg  case $ac_option in
1178264ce7165Smrg  # Handling of the options.
1178364ce7165Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1178464ce7165Smrg    ac_cs_recheck=: ;;
1178564ce7165Smrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11786fb23d3a8Smrg    $as_echo "$ac_cs_version"; exit ;;
11787169a0819Smrg  --config | --confi | --conf | --con | --co | --c )
11788169a0819Smrg    $as_echo "$ac_cs_config"; exit ;;
1178964ce7165Smrg  --debug | --debu | --deb | --de | --d | -d )
1179064ce7165Smrg    debug=: ;;
1179164ce7165Smrg  --file | --fil | --fi | --f )
1179264ce7165Smrg    $ac_shift
11793fb23d3a8Smrg    case $ac_optarg in
11794fb23d3a8Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11795169a0819Smrg    '') as_fn_error $? "missing file argument" ;;
11796fb23d3a8Smrg    esac
11797169a0819Smrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
1179864ce7165Smrg    ac_need_defaults=false;;
1179964ce7165Smrg  --header | --heade | --head | --hea )
1180064ce7165Smrg    $ac_shift
11801fb23d3a8Smrg    case $ac_optarg in
11802fb23d3a8Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11803fb23d3a8Smrg    esac
11804169a0819Smrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1180564ce7165Smrg    ac_need_defaults=false;;
1180664ce7165Smrg  --he | --h)
1180764ce7165Smrg    # Conflict between --help and --header
11808169a0819Smrg    as_fn_error $? "ambiguous option: \`$1'
11809169a0819SmrgTry \`$0 --help' for more information.";;
1181064ce7165Smrg  --help | --hel | -h )
11811fb23d3a8Smrg    $as_echo "$ac_cs_usage"; exit ;;
1181264ce7165Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1181364ce7165Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
1181464ce7165Smrg    ac_cs_silent=: ;;
1181564ce7165Smrg
1181664ce7165Smrg  # This is an error.
11817169a0819Smrg  -*) as_fn_error $? "unrecognized option: \`$1'
11818169a0819SmrgTry \`$0 --help' for more information." ;;
1181964ce7165Smrg
11820169a0819Smrg  *) as_fn_append ac_config_targets " $1"
1182164ce7165Smrg     ac_need_defaults=false ;;
1182264ce7165Smrg
1182364ce7165Smrg  esac
1182464ce7165Smrg  shift
1182564ce7165Smrgdone
1182664ce7165Smrg
1182764ce7165Smrgac_configure_extra_args=
1182864ce7165Smrg
1182964ce7165Smrgif $ac_cs_silent; then
1183064ce7165Smrg  exec 6>/dev/null
1183164ce7165Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
1183264ce7165Smrgfi
1183364ce7165Smrg
1183464ce7165Smrg_ACEOF
11835fb23d3a8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1183664ce7165Smrgif \$ac_cs_recheck; then
11837fb23d3a8Smrg  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11838fb23d3a8Smrg  shift
11839fb23d3a8Smrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11840fb23d3a8Smrg  CONFIG_SHELL='$SHELL'
1184164ce7165Smrg  export CONFIG_SHELL
11842fb23d3a8Smrg  exec "\$@"
1184364ce7165Smrgfi
1184464ce7165Smrg
1184564ce7165Smrg_ACEOF
11846fb23d3a8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1184764ce7165Smrgexec 5>>config.log
1184864ce7165Smrg{
1184964ce7165Smrg  echo
1185064ce7165Smrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
1185164ce7165Smrg## Running $as_me. ##
1185264ce7165Smrg_ASBOX
11853fb23d3a8Smrg  $as_echo "$ac_log"
1185464ce7165Smrg} >&5
1185564ce7165Smrg
1185664ce7165Smrg_ACEOF
11857fb23d3a8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1185864ce7165Smrg#
1185964ce7165Smrg# INIT-COMMANDS
1186064ce7165Smrg#
1186164ce7165SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
1186264ce7165Smrg
1186364ce7165Smrg_ACEOF
1186464ce7165Smrg
11865fb23d3a8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1186664ce7165Smrg
1186764ce7165Smrg# Handling of arguments.
1186864ce7165Smrgfor ac_config_target in $ac_config_targets
1186964ce7165Smrgdo
1187064ce7165Smrg  case $ac_config_target in
1187164ce7165Smrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
1187264ce7165Smrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
1187364ce7165Smrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
118743544ea2eSmrg    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
1187564ce7165Smrg
11876169a0819Smrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1187764ce7165Smrg  esac
1187864ce7165Smrgdone
1187964ce7165Smrg
1188064ce7165Smrg
1188164ce7165Smrg# If the user did not use the arguments to specify the items to instantiate,
1188264ce7165Smrg# then the envvar interface is used.  Set only those that are not.
1188364ce7165Smrg# We use the long form for the default assignment because of an extremely
1188464ce7165Smrg# bizarre bug on SunOS 4.1.3.
1188564ce7165Smrgif $ac_need_defaults; then
1188664ce7165Smrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
1188764ce7165Smrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
1188864ce7165Smrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
1188964ce7165Smrgfi
1189064ce7165Smrg
1189164ce7165Smrg# Have a temporary directory for convenience.  Make it in the build tree
1189264ce7165Smrg# simply because there is no reason against having it here, and in addition,
1189364ce7165Smrg# creating and moving files from /tmp can sometimes cause problems.
1189464ce7165Smrg# Hook for its removal unless debugging.
1189564ce7165Smrg# Note that there is a small window in which the directory will not be cleaned:
1189664ce7165Smrg# after its creation but before its name has been assigned to `$tmp'.
1189764ce7165Smrg$debug ||
1189864ce7165Smrg{
11899169a0819Smrg  tmp= ac_tmp=
1190064ce7165Smrg  trap 'exit_status=$?
11901169a0819Smrg  : "${ac_tmp:=$tmp}"
11902169a0819Smrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
1190364ce7165Smrg' 0
11904169a0819Smrg  trap 'as_fn_exit 1' 1 2 13 15
1190564ce7165Smrg}
1190664ce7165Smrg# Create a (secure) tmp directory for tmp files.
1190764ce7165Smrg
1190864ce7165Smrg{
1190964ce7165Smrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11910169a0819Smrg  test -d "$tmp"
1191164ce7165Smrg}  ||
1191264ce7165Smrg{
1191364ce7165Smrg  tmp=./conf$$-$RANDOM
1191464ce7165Smrg  (umask 077 && mkdir "$tmp")
11915169a0819Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11916169a0819Smrgac_tmp=$tmp
1191764ce7165Smrg
11918fb23d3a8Smrg# Set up the scripts for CONFIG_FILES section.
11919fb23d3a8Smrg# No need to generate them if there are no CONFIG_FILES.
11920fb23d3a8Smrg# This happens for instance with `./config.status config.h'.
1192164ce7165Smrgif test -n "$CONFIG_FILES"; then
1192264ce7165Smrg
1192364ce7165Smrg
11924169a0819Smrgac_cr=`echo X | tr X '\015'`
11925169a0819Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
11926169a0819Smrg# But we know of no other shell where ac_cr would be empty at this
11927169a0819Smrg# point, so we can use a bashism as a fallback.
11928169a0819Smrgif test "x$ac_cr" = x; then
11929169a0819Smrg  eval ac_cr=\$\'\\r\'
11930169a0819Smrgfi
11931fb23d3a8Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11932fb23d3a8Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11933fb23d3a8Smrg  ac_cs_awk_cr='\\r'
11934fb23d3a8Smrgelse
11935fb23d3a8Smrg  ac_cs_awk_cr=$ac_cr
1193664ce7165Smrgfi
1193764ce7165Smrg
11938169a0819Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
1193964ce7165Smrg_ACEOF
1194064ce7165Smrg
1194164ce7165Smrg
11942fb23d3a8Smrg{
11943fb23d3a8Smrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
11944fb23d3a8Smrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11945fb23d3a8Smrg  echo "_ACEOF"
11946fb23d3a8Smrg} >conf$$subs.sh ||
11947169a0819Smrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11948169a0819Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1194964ce7165Smrgac_delim='%!_!# '
1195064ce7165Smrgfor ac_last_try in false false false false false :; do
11951fb23d3a8Smrg  . ./conf$$subs.sh ||
11952169a0819Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1195364ce7165Smrg
11954fb23d3a8Smrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11955fb23d3a8Smrg  if test $ac_delim_n = $ac_delim_num; then
1195664ce7165Smrg    break
1195764ce7165Smrg  elif $ac_last_try; then
11958169a0819Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1195964ce7165Smrg  else
1196064ce7165Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1196164ce7165Smrg  fi
1196264ce7165Smrgdone
11963fb23d3a8Smrgrm -f conf$$subs.sh
1196464ce7165Smrg
11965fb23d3a8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11966169a0819Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11967fb23d3a8Smrg_ACEOF
11968fb23d3a8Smrgsed -n '
11969fb23d3a8Smrgh
11970fb23d3a8Smrgs/^/S["/; s/!.*/"]=/
11971fb23d3a8Smrgp
11972fb23d3a8Smrgg
11973fb23d3a8Smrgs/^[^!]*!//
11974fb23d3a8Smrg:repl
11975fb23d3a8Smrgt repl
11976fb23d3a8Smrgs/'"$ac_delim"'$//
11977fb23d3a8Smrgt delim
11978fb23d3a8Smrg:nl
11979fb23d3a8Smrgh
11980169a0819Smrgs/\(.\{148\}\)..*/\1/
11981fb23d3a8Smrgt more1
11982fb23d3a8Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11983fb23d3a8Smrgp
11984fb23d3a8Smrgn
11985fb23d3a8Smrgb repl
11986fb23d3a8Smrg:more1
11987fb23d3a8Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
11988fb23d3a8Smrgp
11989fb23d3a8Smrgg
11990fb23d3a8Smrgs/.\{148\}//
11991fb23d3a8Smrgt nl
11992fb23d3a8Smrg:delim
11993fb23d3a8Smrgh
11994169a0819Smrgs/\(.\{148\}\)..*/\1/
11995fb23d3a8Smrgt more2
11996fb23d3a8Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/
11997fb23d3a8Smrgp
11998fb23d3a8Smrgb
11999fb23d3a8Smrg:more2
12000fb23d3a8Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
12001fb23d3a8Smrgp
12002fb23d3a8Smrgg
12003fb23d3a8Smrgs/.\{148\}//
12004fb23d3a8Smrgt delim
12005fb23d3a8Smrg' <conf$$subs.awk | sed '
12006fb23d3a8Smrg/^[^""]/{
12007fb23d3a8Smrg  N
12008fb23d3a8Smrg  s/\n//
12009fb23d3a8Smrg}
12010fb23d3a8Smrg' >>$CONFIG_STATUS || ac_write_fail=1
12011fb23d3a8Smrgrm -f conf$$subs.awk
12012fb23d3a8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12013fb23d3a8Smrg_ACAWK
12014169a0819Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12015fb23d3a8Smrg  for (key in S) S_is_set[key] = 1
12016fb23d3a8Smrg  FS = ""
12017fb23d3a8Smrg
12018fb23d3a8Smrg}
12019fb23d3a8Smrg{
12020fb23d3a8Smrg  line = $ 0
12021fb23d3a8Smrg  nfields = split(line, field, "@")
12022fb23d3a8Smrg  substed = 0
12023fb23d3a8Smrg  len = length(field[1])
12024fb23d3a8Smrg  for (i = 2; i < nfields; i++) {
12025fb23d3a8Smrg    key = field[i]
12026fb23d3a8Smrg    keylen = length(key)
12027fb23d3a8Smrg    if (S_is_set[key]) {
12028fb23d3a8Smrg      value = S[key]
12029fb23d3a8Smrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12030fb23d3a8Smrg      len += length(value) + length(field[++i])
12031fb23d3a8Smrg      substed = 1
12032fb23d3a8Smrg    } else
12033fb23d3a8Smrg      len += 1 + keylen
12034fb23d3a8Smrg  }
12035fb23d3a8Smrg
12036fb23d3a8Smrg  print line
12037fb23d3a8Smrg}
1203864ce7165Smrg
12039fb23d3a8Smrg_ACAWK
1204064ce7165Smrg_ACEOF
12041fb23d3a8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12042fb23d3a8Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12043fb23d3a8Smrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12044fb23d3a8Smrgelse
12045fb23d3a8Smrg  cat
12046169a0819Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12047169a0819Smrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1204864ce7165Smrg_ACEOF
1204964ce7165Smrg
12050169a0819Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12051169a0819Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
1205264ce7165Smrg# trailing colons and then remove the whole line if VPATH becomes empty
1205364ce7165Smrg# (actually we leave an empty line to preserve line numbers).
1205464ce7165Smrgif test "x$srcdir" = x.; then
12055169a0819Smrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12056169a0819Smrgh
12057169a0819Smrgs///
12058169a0819Smrgs/^/:/
12059169a0819Smrgs/[	 ]*$/:/
12060169a0819Smrgs/:\$(srcdir):/:/g
12061169a0819Smrgs/:\${srcdir}:/:/g
12062169a0819Smrgs/:@srcdir@:/:/g
12063169a0819Smrgs/^:*//
1206464ce7165Smrgs/:*$//
12065169a0819Smrgx
12066169a0819Smrgs/\(=[	 ]*\).*/\1/
12067169a0819SmrgG
12068169a0819Smrgs/\n//
1206964ce7165Smrgs/^[^=]*=[	 ]*$//
1207064ce7165Smrg}'
1207164ce7165Smrgfi
1207264ce7165Smrg
12073fb23d3a8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1207464ce7165Smrgfi # test -n "$CONFIG_FILES"
1207564ce7165Smrg
12076fb23d3a8Smrg# Set up the scripts for CONFIG_HEADERS section.
12077fb23d3a8Smrg# No need to generate them if there are no CONFIG_HEADERS.
12078fb23d3a8Smrg# This happens for instance with `./config.status Makefile'.
12079fb23d3a8Smrgif test -n "$CONFIG_HEADERS"; then
12080169a0819Smrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12081fb23d3a8SmrgBEGIN {
12082fb23d3a8Smrg_ACEOF
12083fb23d3a8Smrg
12084fb23d3a8Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as
12085fb23d3a8Smrg# here-document in config.status, that substitutes the proper values into
12086fb23d3a8Smrg# config.h.in to produce config.h.
12087fb23d3a8Smrg
12088fb23d3a8Smrg# Create a delimiter string that does not exist in confdefs.h, to ease
12089fb23d3a8Smrg# handling of long lines.
12090fb23d3a8Smrgac_delim='%!_!# '
12091fb23d3a8Smrgfor ac_last_try in false false :; do
12092169a0819Smrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12093169a0819Smrg  if test -z "$ac_tt"; then
12094fb23d3a8Smrg    break
12095fb23d3a8Smrg  elif $ac_last_try; then
12096169a0819Smrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12097fb23d3a8Smrg  else
12098fb23d3a8Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12099fb23d3a8Smrg  fi
12100fb23d3a8Smrgdone
12101fb23d3a8Smrg
12102fb23d3a8Smrg# For the awk script, D is an array of macro values keyed by name,
12103fb23d3a8Smrg# likewise P contains macro parameters if any.  Preserve backslash
12104fb23d3a8Smrg# newline sequences.
12105fb23d3a8Smrg
12106fb23d3a8Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12107fb23d3a8Smrgsed -n '
12108fb23d3a8Smrgs/.\{148\}/&'"$ac_delim"'/g
12109fb23d3a8Smrgt rset
12110fb23d3a8Smrg:rset
12111fb23d3a8Smrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12112fb23d3a8Smrgt def
12113fb23d3a8Smrgd
12114fb23d3a8Smrg:def
12115fb23d3a8Smrgs/\\$//
12116fb23d3a8Smrgt bsnl
12117fb23d3a8Smrgs/["\\]/\\&/g
12118fb23d3a8Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12119fb23d3a8SmrgD["\1"]=" \3"/p
12120fb23d3a8Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12121fb23d3a8Smrgd
12122fb23d3a8Smrg:bsnl
12123fb23d3a8Smrgs/["\\]/\\&/g
12124fb23d3a8Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12125fb23d3a8SmrgD["\1"]=" \3\\\\\\n"\\/p
12126fb23d3a8Smrgt cont
12127fb23d3a8Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12128fb23d3a8Smrgt cont
12129fb23d3a8Smrgd
12130fb23d3a8Smrg:cont
12131fb23d3a8Smrgn
12132fb23d3a8Smrgs/.\{148\}/&'"$ac_delim"'/g
12133fb23d3a8Smrgt clear
12134fb23d3a8Smrg:clear
12135fb23d3a8Smrgs/\\$//
12136fb23d3a8Smrgt bsnlc
12137fb23d3a8Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
12138fb23d3a8Smrgd
12139fb23d3a8Smrg:bsnlc
12140fb23d3a8Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12141fb23d3a8Smrgb cont
12142fb23d3a8Smrg' <confdefs.h | sed '
12143fb23d3a8Smrgs/'"$ac_delim"'/"\\\
12144fb23d3a8Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
12145fb23d3a8Smrg
12146fb23d3a8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12147fb23d3a8Smrg  for (key in D) D_is_set[key] = 1
12148fb23d3a8Smrg  FS = ""
12149fb23d3a8Smrg}
12150fb23d3a8Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12151fb23d3a8Smrg  line = \$ 0
12152fb23d3a8Smrg  split(line, arg, " ")
12153fb23d3a8Smrg  if (arg[1] == "#") {
12154fb23d3a8Smrg    defundef = arg[2]
12155fb23d3a8Smrg    mac1 = arg[3]
12156fb23d3a8Smrg  } else {
12157fb23d3a8Smrg    defundef = substr(arg[1], 2)
12158fb23d3a8Smrg    mac1 = arg[2]
12159fb23d3a8Smrg  }
12160fb23d3a8Smrg  split(mac1, mac2, "(") #)
12161fb23d3a8Smrg  macro = mac2[1]
12162fb23d3a8Smrg  prefix = substr(line, 1, index(line, defundef) - 1)
12163fb23d3a8Smrg  if (D_is_set[macro]) {
12164fb23d3a8Smrg    # Preserve the white space surrounding the "#".
12165fb23d3a8Smrg    print prefix "define", macro P[macro] D[macro]
12166fb23d3a8Smrg    next
12167fb23d3a8Smrg  } else {
12168fb23d3a8Smrg    # Replace #undef with comments.  This is necessary, for example,
12169fb23d3a8Smrg    # in the case of _POSIX_SOURCE, which is predefined and required
12170fb23d3a8Smrg    # on some systems where configure will not decide to define it.
12171fb23d3a8Smrg    if (defundef == "undef") {
12172fb23d3a8Smrg      print "/*", prefix defundef, macro, "*/"
12173fb23d3a8Smrg      next
12174fb23d3a8Smrg    }
12175fb23d3a8Smrg  }
12176fb23d3a8Smrg}
12177fb23d3a8Smrg{ print }
12178fb23d3a8Smrg_ACAWK
12179fb23d3a8Smrg_ACEOF
12180fb23d3a8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12181169a0819Smrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12182fb23d3a8Smrgfi # test -n "$CONFIG_HEADERS"
12183fb23d3a8Smrg
1218464ce7165Smrg
12185fb23d3a8Smrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12186fb23d3a8Smrgshift
12187fb23d3a8Smrgfor ac_tag
1218864ce7165Smrgdo
1218964ce7165Smrg  case $ac_tag in
1219064ce7165Smrg  :[FHLC]) ac_mode=$ac_tag; continue;;
1219164ce7165Smrg  esac
1219264ce7165Smrg  case $ac_mode$ac_tag in
1219364ce7165Smrg  :[FHL]*:*);;
12194169a0819Smrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
1219564ce7165Smrg  :[FH]-) ac_tag=-:-;;
1219664ce7165Smrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
1219764ce7165Smrg  esac
1219864ce7165Smrg  ac_save_IFS=$IFS
1219964ce7165Smrg  IFS=:
1220064ce7165Smrg  set x $ac_tag
1220164ce7165Smrg  IFS=$ac_save_IFS
1220264ce7165Smrg  shift
1220364ce7165Smrg  ac_file=$1
1220464ce7165Smrg  shift
1220564ce7165Smrg
1220664ce7165Smrg  case $ac_mode in
1220764ce7165Smrg  :L) ac_source=$1;;
1220864ce7165Smrg  :[FH])
1220964ce7165Smrg    ac_file_inputs=
1221064ce7165Smrg    for ac_f
1221164ce7165Smrg    do
1221264ce7165Smrg      case $ac_f in
12213169a0819Smrg      -) ac_f="$ac_tmp/stdin";;
1221464ce7165Smrg      *) # Look for the file first in the build tree, then in the source tree
1221564ce7165Smrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
1221664ce7165Smrg	 # because $ac_f cannot contain `:'.
1221764ce7165Smrg	 test -f "$ac_f" ||
1221864ce7165Smrg	   case $ac_f in
1221964ce7165Smrg	   [\\/$]*) false;;
1222064ce7165Smrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
1222164ce7165Smrg	   esac ||
12222169a0819Smrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
1222364ce7165Smrg      esac
12224fb23d3a8Smrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12225169a0819Smrg      as_fn_append ac_file_inputs " '$ac_f'"
1222664ce7165Smrg    done
1222764ce7165Smrg
1222864ce7165Smrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
1222964ce7165Smrg    # use $as_me), people would be surprised to read:
1223064ce7165Smrg    #    /* config.h.  Generated by config.status.  */
12231fb23d3a8Smrg    configure_input='Generated from '`
12232fb23d3a8Smrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12233fb23d3a8Smrg	`' by configure.'
1223464ce7165Smrg    if test x"$ac_file" != x-; then
1223564ce7165Smrg      configure_input="$ac_file.  $configure_input"
12236169a0819Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12237fb23d3a8Smrg$as_echo "$as_me: creating $ac_file" >&6;}
1223864ce7165Smrg    fi
12239fb23d3a8Smrg    # Neutralize special characters interpreted by sed in replacement strings.
12240fb23d3a8Smrg    case $configure_input in #(
12241fb23d3a8Smrg    *\&* | *\|* | *\\* )
12242fb23d3a8Smrg       ac_sed_conf_input=`$as_echo "$configure_input" |
12243fb23d3a8Smrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12244fb23d3a8Smrg    *) ac_sed_conf_input=$configure_input;;
12245fb23d3a8Smrg    esac
1224664ce7165Smrg
1224764ce7165Smrg    case $ac_tag in
12248169a0819Smrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12249169a0819Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
1225064ce7165Smrg    esac
1225164ce7165Smrg    ;;
1225264ce7165Smrg  esac
1225364ce7165Smrg
1225464ce7165Smrg  ac_dir=`$as_dirname -- "$ac_file" ||
1225564ce7165Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1225664ce7165Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
1225764ce7165Smrg	 X"$ac_file" : 'X\(//\)$' \| \
1225864ce7165Smrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12259fb23d3a8Smrg$as_echo X"$ac_file" |
1226064ce7165Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1226164ce7165Smrg	    s//\1/
1226264ce7165Smrg	    q
1226364ce7165Smrg	  }
1226464ce7165Smrg	  /^X\(\/\/\)[^/].*/{
1226564ce7165Smrg	    s//\1/
1226664ce7165Smrg	    q
1226764ce7165Smrg	  }
1226864ce7165Smrg	  /^X\(\/\/\)$/{
1226964ce7165Smrg	    s//\1/
1227064ce7165Smrg	    q
1227164ce7165Smrg	  }
1227264ce7165Smrg	  /^X\(\/\).*/{
1227364ce7165Smrg	    s//\1/
1227464ce7165Smrg	    q
1227564ce7165Smrg	  }
1227664ce7165Smrg	  s/.*/./; q'`
12277169a0819Smrg  as_dir="$ac_dir"; as_fn_mkdir_p
1227864ce7165Smrg  ac_builddir=.
1227964ce7165Smrg
1228064ce7165Smrgcase "$ac_dir" in
1228164ce7165Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1228264ce7165Smrg*)
12283fb23d3a8Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1228464ce7165Smrg  # A ".." for each directory in $ac_dir_suffix.
12285fb23d3a8Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1228664ce7165Smrg  case $ac_top_builddir_sub in
1228764ce7165Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1228864ce7165Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1228964ce7165Smrg  esac ;;
1229064ce7165Smrgesac
1229164ce7165Smrgac_abs_top_builddir=$ac_pwd
1229264ce7165Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
1229364ce7165Smrg# for backward compatibility:
1229464ce7165Smrgac_top_builddir=$ac_top_build_prefix
1229564ce7165Smrg
1229664ce7165Smrgcase $srcdir in
1229764ce7165Smrg  .)  # We are building in place.
1229864ce7165Smrg    ac_srcdir=.
1229964ce7165Smrg    ac_top_srcdir=$ac_top_builddir_sub
1230064ce7165Smrg    ac_abs_top_srcdir=$ac_pwd ;;
1230164ce7165Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
1230264ce7165Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
1230364ce7165Smrg    ac_top_srcdir=$srcdir
1230464ce7165Smrg    ac_abs_top_srcdir=$srcdir ;;
1230564ce7165Smrg  *) # Relative name.
1230664ce7165Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1230764ce7165Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
1230864ce7165Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1230964ce7165Smrgesac
1231064ce7165Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1231164ce7165Smrg
1231264ce7165Smrg
1231364ce7165Smrg  case $ac_mode in
1231464ce7165Smrg  :F)
1231564ce7165Smrg  #
1231664ce7165Smrg  # CONFIG_FILE
1231764ce7165Smrg  #
1231864ce7165Smrg
1231964ce7165Smrg  case $INSTALL in
1232064ce7165Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1232164ce7165Smrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
1232264ce7165Smrg  esac
1232364ce7165Smrg  ac_MKDIR_P=$MKDIR_P
1232464ce7165Smrg  case $MKDIR_P in
1232564ce7165Smrg  [\\/$]* | ?:[\\/]* ) ;;
1232664ce7165Smrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
1232764ce7165Smrg  esac
1232864ce7165Smrg_ACEOF
1232964ce7165Smrg
12330fb23d3a8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1233164ce7165Smrg# If the template does not know about datarootdir, expand it.
1233264ce7165Smrg# FIXME: This hack should be removed a few years after 2.60.
1233364ce7165Smrgac_datarootdir_hack=; ac_datarootdir_seen=
12334fb23d3a8Smrgac_sed_dataroot='
12335fb23d3a8Smrg/datarootdir/ {
1233664ce7165Smrg  p
1233764ce7165Smrg  q
1233864ce7165Smrg}
1233964ce7165Smrg/@datadir@/p
1234064ce7165Smrg/@docdir@/p
1234164ce7165Smrg/@infodir@/p
1234264ce7165Smrg/@localedir@/p
12343169a0819Smrg/@mandir@/p'
12344fb23d3a8Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
1234564ce7165Smrg*datarootdir*) ac_datarootdir_seen=yes;;
1234664ce7165Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12347169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12348fb23d3a8Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1234964ce7165Smrg_ACEOF
12350fb23d3a8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1235164ce7165Smrg  ac_datarootdir_hack='
1235264ce7165Smrg  s&@datadir@&$datadir&g
1235364ce7165Smrg  s&@docdir@&$docdir&g
1235464ce7165Smrg  s&@infodir@&$infodir&g
1235564ce7165Smrg  s&@localedir@&$localedir&g
1235664ce7165Smrg  s&@mandir@&$mandir&g
12357169a0819Smrg  s&\\\${datarootdir}&$datarootdir&g' ;;
1235864ce7165Smrgesac
1235964ce7165Smrg_ACEOF
1236064ce7165Smrg
1236164ce7165Smrg# Neutralize VPATH when `$srcdir' = `.'.
1236264ce7165Smrg# Shell code in configure.ac might set extrasub.
1236364ce7165Smrg# FIXME: do we really want to maintain this feature?
12364fb23d3a8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12365fb23d3a8Smrgac_sed_extra="$ac_vpsub
1236664ce7165Smrg$extrasub
1236764ce7165Smrg_ACEOF
12368fb23d3a8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1236964ce7165Smrg:t
1237064ce7165Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12371fb23d3a8Smrgs|@configure_input@|$ac_sed_conf_input|;t t
1237264ce7165Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t
12373fb23d3a8Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
1237464ce7165Smrgs&@srcdir@&$ac_srcdir&;t t
1237564ce7165Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
1237664ce7165Smrgs&@top_srcdir@&$ac_top_srcdir&;t t
1237764ce7165Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
1237864ce7165Smrgs&@builddir@&$ac_builddir&;t t
1237964ce7165Smrgs&@abs_builddir@&$ac_abs_builddir&;t t
1238064ce7165Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
1238164ce7165Smrgs&@INSTALL@&$ac_INSTALL&;t t
1238264ce7165Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
1238364ce7165Smrg$ac_datarootdir_hack
12384fb23d3a8Smrg"
12385169a0819Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12386169a0819Smrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1238764ce7165Smrg
1238864ce7165Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12389169a0819Smrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12390169a0819Smrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12391169a0819Smrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12392169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12393169a0819Smrgwhich seems to be undefined.  Please make sure it is defined" >&5
12394fb23d3a8Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12395169a0819Smrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
1239664ce7165Smrg
12397169a0819Smrg  rm -f "$ac_tmp/stdin"
1239864ce7165Smrg  case $ac_file in
12399169a0819Smrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12400169a0819Smrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12401fb23d3a8Smrg  esac \
12402169a0819Smrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1240364ce7165Smrg ;;
1240464ce7165Smrg  :H)
1240564ce7165Smrg  #
1240664ce7165Smrg  # CONFIG_HEADER
1240764ce7165Smrg  #
1240864ce7165Smrg  if test x"$ac_file" != x-; then
12409fb23d3a8Smrg    {
12410fb23d3a8Smrg      $as_echo "/* $configure_input  */" \
12411169a0819Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12412169a0819Smrg    } >"$ac_tmp/config.h" \
12413169a0819Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12414169a0819Smrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12415169a0819Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12416fb23d3a8Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
1241764ce7165Smrg    else
12418fb23d3a8Smrg      rm -f "$ac_file"
12419169a0819Smrg      mv "$ac_tmp/config.h" "$ac_file" \
12420169a0819Smrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
1242164ce7165Smrg    fi
1242264ce7165Smrg  else
12423fb23d3a8Smrg    $as_echo "/* $configure_input  */" \
12424169a0819Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12425169a0819Smrg      || as_fn_error $? "could not create -" "$LINENO" 5
1242664ce7165Smrg  fi
12427fb23d3a8Smrg# Compute "$ac_file"'s index in $config_headers.
12428fb23d3a8Smrg_am_arg="$ac_file"
1242964ce7165Smrg_am_stamp_count=1
1243064ce7165Smrgfor _am_header in $config_headers :; do
1243164ce7165Smrg  case $_am_header in
12432fb23d3a8Smrg    $_am_arg | $_am_arg:* )
1243364ce7165Smrg      break ;;
1243464ce7165Smrg    * )
1243564ce7165Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
1243664ce7165Smrg  esac
1243764ce7165Smrgdone
12438fb23d3a8Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12439fb23d3a8Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12440fb23d3a8Smrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12441fb23d3a8Smrg	 X"$_am_arg" : 'X\(//\)$' \| \
12442fb23d3a8Smrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12443fb23d3a8Smrg$as_echo X"$_am_arg" |
1244464ce7165Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1244564ce7165Smrg	    s//\1/
1244664ce7165Smrg	    q
1244764ce7165Smrg	  }
1244864ce7165Smrg	  /^X\(\/\/\)[^/].*/{
1244964ce7165Smrg	    s//\1/
1245064ce7165Smrg	    q
1245164ce7165Smrg	  }
1245264ce7165Smrg	  /^X\(\/\/\)$/{
1245364ce7165Smrg	    s//\1/
1245464ce7165Smrg	    q
1245564ce7165Smrg	  }
1245664ce7165Smrg	  /^X\(\/\).*/{
1245764ce7165Smrg	    s//\1/
1245864ce7165Smrg	    q
1245964ce7165Smrg	  }
1246064ce7165Smrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
1246164ce7165Smrg ;;
1246264ce7165Smrg
12463169a0819Smrg  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12464fb23d3a8Smrg$as_echo "$as_me: executing $ac_file commands" >&6;}
1246564ce7165Smrg ;;
1246664ce7165Smrg  esac
1246764ce7165Smrg
1246864ce7165Smrg
1246964ce7165Smrg  case $ac_file$ac_mode in
12470fb23d3a8Smrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12471fb23d3a8Smrg  # Autoconf 2.62 quotes --file arguments for eval, but not when files
12472fb23d3a8Smrg  # are listed without --file.  Let's play safe and only enable the eval
12473fb23d3a8Smrg  # if we detect the quoting.
12474fb23d3a8Smrg  case $CONFIG_FILES in
12475fb23d3a8Smrg  *\'*) eval set x "$CONFIG_FILES" ;;
12476fb23d3a8Smrg  *)   set x $CONFIG_FILES ;;
12477fb23d3a8Smrg  esac
12478fb23d3a8Smrg  shift
12479fb23d3a8Smrg  for mf
12480fb23d3a8Smrg  do
12481fb23d3a8Smrg    # Strip MF so we end up with the name of the file.
12482fb23d3a8Smrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
12483fb23d3a8Smrg    # Check whether this is an Automake generated Makefile or not.
12484fb23d3a8Smrg    # We used to match only the files named `Makefile.in', but
12485fb23d3a8Smrg    # some people rename them; so instead we look at the file content.
12486fb23d3a8Smrg    # Grep'ing the first line is not enough: some people post-process
12487fb23d3a8Smrg    # each Makefile.in and add a new line on top of each file to say so.
12488fb23d3a8Smrg    # Grep'ing the whole file is not good either: AIX grep has a line
12489fb23d3a8Smrg    # limit of 2048, but all sed's we know have understand at least 4000.
12490fb23d3a8Smrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12491fb23d3a8Smrg      dirpart=`$as_dirname -- "$mf" ||
1249264ce7165Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1249364ce7165Smrg	 X"$mf" : 'X\(//\)[^/]' \| \
1249464ce7165Smrg	 X"$mf" : 'X\(//\)$' \| \
1249564ce7165Smrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12496fb23d3a8Smrg$as_echo X"$mf" |
1249764ce7165Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1249864ce7165Smrg	    s//\1/
1249964ce7165Smrg	    q
1250064ce7165Smrg	  }
1250164ce7165Smrg	  /^X\(\/\/\)[^/].*/{
1250264ce7165Smrg	    s//\1/
1250364ce7165Smrg	    q
1250464ce7165Smrg	  }
1250564ce7165Smrg	  /^X\(\/\/\)$/{
1250664ce7165Smrg	    s//\1/
1250764ce7165Smrg	    q
1250864ce7165Smrg	  }
1250964ce7165Smrg	  /^X\(\/\).*/{
1251064ce7165Smrg	    s//\1/
1251164ce7165Smrg	    q
1251264ce7165Smrg	  }
1251364ce7165Smrg	  s/.*/./; q'`
12514fb23d3a8Smrg    else
12515fb23d3a8Smrg      continue
12516fb23d3a8Smrg    fi
12517fb23d3a8Smrg    # Extract the definition of DEPDIR, am__include, and am__quote
12518fb23d3a8Smrg    # from the Makefile without running `make'.
12519fb23d3a8Smrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12520fb23d3a8Smrg    test -z "$DEPDIR" && continue
12521fb23d3a8Smrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12522fb23d3a8Smrg    test -z "am__include" && continue
12523fb23d3a8Smrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12524fb23d3a8Smrg    # When using ansi2knr, U may be empty or an underscore; expand it
12525fb23d3a8Smrg    U=`sed -n 's/^U = //p' < "$mf"`
12526fb23d3a8Smrg    # Find all dependency output files, they are included files with
12527fb23d3a8Smrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12528fb23d3a8Smrg    # simplest approach to changing $(DEPDIR) to its actual value in the
12529fb23d3a8Smrg    # expansion.
12530fb23d3a8Smrg    for file in `sed -n "
12531fb23d3a8Smrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12532fb23d3a8Smrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12533fb23d3a8Smrg      # Make sure the directory exists.
12534fb23d3a8Smrg      test -f "$dirpart/$file" && continue
12535fb23d3a8Smrg      fdir=`$as_dirname -- "$file" ||
1253664ce7165Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1253764ce7165Smrg	 X"$file" : 'X\(//\)[^/]' \| \
1253864ce7165Smrg	 X"$file" : 'X\(//\)$' \| \
1253964ce7165Smrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12540fb23d3a8Smrg$as_echo X"$file" |
1254164ce7165Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1254264ce7165Smrg	    s//\1/
1254364ce7165Smrg	    q
1254464ce7165Smrg	  }
1254564ce7165Smrg	  /^X\(\/\/\)[^/].*/{
1254664ce7165Smrg	    s//\1/
1254764ce7165Smrg	    q
1254864ce7165Smrg	  }
1254964ce7165Smrg	  /^X\(\/\/\)$/{
1255064ce7165Smrg	    s//\1/
1255164ce7165Smrg	    q
1255264ce7165Smrg	  }
1255364ce7165Smrg	  /^X\(\/\).*/{
1255464ce7165Smrg	    s//\1/
1255564ce7165Smrg	    q
1255664ce7165Smrg	  }
1255764ce7165Smrg	  s/.*/./; q'`
12558169a0819Smrg      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12559fb23d3a8Smrg      # echo "creating $dirpart/$file"
12560fb23d3a8Smrg      echo '# dummy' > "$dirpart/$file"
12561fb23d3a8Smrg    done
1256264ce7165Smrg  done
12563fb23d3a8Smrg}
1256464ce7165Smrg ;;
1256564ce7165Smrg
1256664ce7165Smrg  esac
1256764ce7165Smrgdone # for ac_tag
1256864ce7165Smrg
1256964ce7165Smrg
12570169a0819Smrgas_fn_exit 0
1257164ce7165Smrg_ACEOF
1257264ce7165Smrgac_clean_files=$ac_clean_files_save
1257364ce7165Smrg
12574fb23d3a8Smrgtest $ac_write_fail = 0 ||
12575169a0819Smrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12576fb23d3a8Smrg
1257764ce7165Smrg
1257864ce7165Smrg# configure is writing to config.log, and then calls config.status.
1257964ce7165Smrg# config.status does its own redirection, appending to config.log.
1258064ce7165Smrg# Unfortunately, on DOS this fails, as config.log is still kept open
1258164ce7165Smrg# by configure, so config.status won't be able to write to it; its
1258264ce7165Smrg# output is simply discarded.  So we exec the FD to /dev/null,
1258364ce7165Smrg# effectively closing config.log, so it can be properly (re)opened and
1258464ce7165Smrg# appended to by config.status.  When coming back to configure, we
1258564ce7165Smrg# need to make the FD available again.
1258664ce7165Smrgif test "$no_create" != yes; then
1258764ce7165Smrg  ac_cs_success=:
1258864ce7165Smrg  ac_config_status_args=
1258964ce7165Smrg  test "$silent" = yes &&
1259064ce7165Smrg    ac_config_status_args="$ac_config_status_args --quiet"
1259164ce7165Smrg  exec 5>/dev/null
1259264ce7165Smrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
1259364ce7165Smrg  exec 5>>config.log
1259464ce7165Smrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
1259564ce7165Smrg  # would make configure fail if this is the last instruction.
12596169a0819Smrg  $ac_cs_success || as_fn_exit 1
1259764ce7165Smrgfi
12598fb23d3a8Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12599169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12600fb23d3a8Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12601fb23d3a8Smrgfi
1260264ce7165Smrg
12603