configure revision aadd013e
164ce7165Smrg#! /bin/sh
264ce7165Smrg# Guess values for system-dependent variables and create Makefiles.
3aadd013eSmrg# Generated by GNU Autoconf 2.69 for xhost 1.0.8.
464ce7165Smrg#
5aadd013eSmrg# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xhost/issues>.
664ce7165Smrg#
7169a0819Smrg#
895fdd44cSmrg# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9169a0819Smrg#
10169a0819Smrg#
1164ce7165Smrg# This configure script is free software; the Free Software Foundation
1264ce7165Smrg# gives unlimited permission to copy, distribute and modify it.
13169a0819Smrg## -------------------- ##
14169a0819Smrg## M4sh Initialization. ##
15169a0819Smrg## -------------------- ##
1664ce7165Smrg
1764ce7165Smrg# Be more Bourne compatible
1864ce7165SmrgDUALCASE=1; export DUALCASE # for MKS sh
19169a0819Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
2064ce7165Smrg  emulate sh
2164ce7165Smrg  NULLCMD=:
22fb23d3a8Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2364ce7165Smrg  # is contrary to our usage.  Disable this feature.
2464ce7165Smrg  alias -g '${1+"$@"}'='"$@"'
2564ce7165Smrg  setopt NO_GLOB_SUBST
2664ce7165Smrgelse
27169a0819Smrg  case `(set -o) 2>/dev/null` in #(
28169a0819Smrg  *posix*) :
29169a0819Smrg    set -o posix ;; #(
30169a0819Smrg  *) :
31169a0819Smrg     ;;
3264ce7165Smrgesac
3364ce7165Smrgfi
3464ce7165Smrg
3564ce7165Smrg
36fb23d3a8Smrgas_nl='
37fb23d3a8Smrg'
38fb23d3a8Smrgexport as_nl
39fb23d3a8Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
40fb23d3a8Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41fb23d3a8Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42fb23d3a8Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43169a0819Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
44169a0819Smrg# but without wasting forks for bash or zsh.
45169a0819Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
46169a0819Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47169a0819Smrg  as_echo='print -r --'
48169a0819Smrg  as_echo_n='print -rn --'
49169a0819Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50fb23d3a8Smrg  as_echo='printf %s\n'
51fb23d3a8Smrg  as_echo_n='printf %s'
52fb23d3a8Smrgelse
53fb23d3a8Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54fb23d3a8Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55fb23d3a8Smrg    as_echo_n='/usr/ucb/echo -n'
5664ce7165Smrg  else
57fb23d3a8Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58fb23d3a8Smrg    as_echo_n_body='eval
59fb23d3a8Smrg      arg=$1;
60169a0819Smrg      case $arg in #(
61fb23d3a8Smrg      *"$as_nl"*)
62fb23d3a8Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
63fb23d3a8Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64fb23d3a8Smrg      esac;
65fb23d3a8Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66fb23d3a8Smrg    '
67fb23d3a8Smrg    export as_echo_n_body
68fb23d3a8Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
6964ce7165Smrg  fi
70fb23d3a8Smrg  export as_echo_body
71fb23d3a8Smrg  as_echo='sh -c $as_echo_body as_echo'
72fb23d3a8Smrgfi
73fb23d3a8Smrg
74fb23d3a8Smrg# The user is always right.
75fb23d3a8Smrgif test "${PATH_SEPARATOR+set}" != set; then
76fb23d3a8Smrg  PATH_SEPARATOR=:
77fb23d3a8Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78fb23d3a8Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79fb23d3a8Smrg      PATH_SEPARATOR=';'
80fb23d3a8Smrg  }
8164ce7165Smrgfi
8264ce7165Smrg
8364ce7165Smrg
8464ce7165Smrg# IFS
8564ce7165Smrg# We need space, tab and new line, in precisely that order.  Quoting is
8664ce7165Smrg# there to prevent editors from complaining about space-tab.
8764ce7165Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
8864ce7165Smrg# splitting by setting IFS to empty value.)
8964ce7165SmrgIFS=" ""	$as_nl"
9064ce7165Smrg
9164ce7165Smrg# Find who we are.  Look in the path if we contain no directory separator.
92169a0819Smrgas_myself=
93169a0819Smrgcase $0 in #((
9464ce7165Smrg  *[\\/]* ) as_myself=$0 ;;
9564ce7165Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9664ce7165Smrgfor as_dir in $PATH
9764ce7165Smrgdo
9864ce7165Smrg  IFS=$as_save_IFS
9964ce7165Smrg  test -z "$as_dir" && as_dir=.
100169a0819Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101169a0819Smrg  done
10264ce7165SmrgIFS=$as_save_IFS
10364ce7165Smrg
10464ce7165Smrg     ;;
10564ce7165Smrgesac
10664ce7165Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
10764ce7165Smrg# in which case we are not to be found in the path.
10864ce7165Smrgif test "x$as_myself" = x; then
10964ce7165Smrg  as_myself=$0
11064ce7165Smrgfi
11164ce7165Smrgif test ! -f "$as_myself"; then
112fb23d3a8Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113169a0819Smrg  exit 1
11464ce7165Smrgfi
11564ce7165Smrg
116169a0819Smrg# Unset variables that we do not need and which cause bugs (e.g. in
117169a0819Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118169a0819Smrg# suppresses any "Segmentation fault" message there.  '((' could
119169a0819Smrg# trigger a bug in pdksh 5.2.14.
120169a0819Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
121169a0819Smrgdo eval test x\${$as_var+set} = xset \
122169a0819Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12364ce7165Smrgdone
12464ce7165SmrgPS1='$ '
12564ce7165SmrgPS2='> '
12664ce7165SmrgPS4='+ '
12764ce7165Smrg
12864ce7165Smrg# NLS nuisances.
129fb23d3a8SmrgLC_ALL=C
130fb23d3a8Smrgexport LC_ALL
131fb23d3a8SmrgLANGUAGE=C
132fb23d3a8Smrgexport LANGUAGE
13364ce7165Smrg
134169a0819Smrg# CDPATH.
135169a0819Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136169a0819Smrg
13795fdd44cSmrg# Use a proper internal environment variable to ensure we don't fall
13895fdd44cSmrg  # into an infinite loop, continuously re-executing ourselves.
13995fdd44cSmrg  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
14095fdd44cSmrg    _as_can_reexec=no; export _as_can_reexec;
14195fdd44cSmrg    # We cannot yet assume a decent shell, so we have to provide a
14295fdd44cSmrg# neutralization value for shells without unset; and this also
14395fdd44cSmrg# works around shells that cannot unset nonexistent variables.
14495fdd44cSmrg# Preserve -v and -x to the replacement shell.
14595fdd44cSmrgBASH_ENV=/dev/null
14695fdd44cSmrgENV=/dev/null
14795fdd44cSmrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
14895fdd44cSmrgcase $- in # ((((
14995fdd44cSmrg  *v*x* | *x*v* ) as_opts=-vx ;;
15095fdd44cSmrg  *v* ) as_opts=-v ;;
15195fdd44cSmrg  *x* ) as_opts=-x ;;
15295fdd44cSmrg  * ) as_opts= ;;
15395fdd44cSmrgesac
15495fdd44cSmrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
15595fdd44cSmrg# Admittedly, this is quite paranoid, since all the known shells bail
15695fdd44cSmrg# out after a failed `exec'.
15795fdd44cSmrg$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
15895fdd44cSmrgas_fn_exit 255
15995fdd44cSmrg  fi
16095fdd44cSmrg  # We don't want this to propagate to other subprocesses.
16195fdd44cSmrg          { _as_can_reexec=; unset _as_can_reexec;}
162169a0819Smrgif test "x$CONFIG_SHELL" = x; then
163169a0819Smrg  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164169a0819Smrg  emulate sh
165169a0819Smrg  NULLCMD=:
166169a0819Smrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167169a0819Smrg  # is contrary to our usage.  Disable this feature.
168169a0819Smrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169169a0819Smrg  setopt NO_GLOB_SUBST
170169a0819Smrgelse
171169a0819Smrg  case \`(set -o) 2>/dev/null\` in #(
172169a0819Smrg  *posix*) :
173169a0819Smrg    set -o posix ;; #(
174169a0819Smrg  *) :
175169a0819Smrg     ;;
176169a0819Smrgesac
177169a0819Smrgfi
178169a0819Smrg"
179169a0819Smrg  as_required="as_fn_return () { (exit \$1); }
180169a0819Smrgas_fn_success () { as_fn_return 0; }
181169a0819Smrgas_fn_failure () { as_fn_return 1; }
182169a0819Smrgas_fn_ret_success () { return 0; }
183169a0819Smrgas_fn_ret_failure () { return 1; }
184169a0819Smrg
185169a0819Smrgexitcode=0
186169a0819Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
187169a0819Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188169a0819Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189169a0819Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190169a0819Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191169a0819Smrg
192169a0819Smrgelse
193169a0819Smrg  exitcode=1; echo positional parameters were not saved.
194169a0819Smrgfi
19595fdd44cSmrgtest x\$exitcode = x0 || exit 1
19695fdd44cSmrgtest -x / || exit 1"
197169a0819Smrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198169a0819Smrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199169a0819Smrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200169a0819Smrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201169a0819Smrgtest \$(( 1 + 1 )) = 2 || exit 1"
202169a0819Smrg  if (eval "$as_required") 2>/dev/null; then :
203169a0819Smrg  as_have_required=yes
204169a0819Smrgelse
205169a0819Smrg  as_have_required=no
206169a0819Smrgfi
207169a0819Smrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208169a0819Smrg
209169a0819Smrgelse
210169a0819Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211169a0819Smrgas_found=false
212169a0819Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213169a0819Smrgdo
214169a0819Smrg  IFS=$as_save_IFS
215169a0819Smrg  test -z "$as_dir" && as_dir=.
216169a0819Smrg  as_found=:
217169a0819Smrg  case $as_dir in #(
218169a0819Smrg	 /*)
219169a0819Smrg	   for as_base in sh bash ksh sh5; do
220169a0819Smrg	     # Try only shells that exist, to save several forks.
221169a0819Smrg	     as_shell=$as_dir/$as_base
222169a0819Smrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223169a0819Smrg		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224169a0819Smrg  CONFIG_SHELL=$as_shell as_have_required=yes
225169a0819Smrg		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226169a0819Smrg  break 2
227169a0819Smrgfi
228169a0819Smrgfi
229169a0819Smrg	   done;;
230169a0819Smrg       esac
231169a0819Smrg  as_found=false
232169a0819Smrgdone
233169a0819Smrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234169a0819Smrg	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235169a0819Smrg  CONFIG_SHELL=$SHELL as_have_required=yes
236169a0819Smrgfi; }
237169a0819SmrgIFS=$as_save_IFS
238169a0819Smrg
239169a0819Smrg
240169a0819Smrg      if test "x$CONFIG_SHELL" != x; then :
24195fdd44cSmrg  export CONFIG_SHELL
24295fdd44cSmrg             # We cannot yet assume a decent shell, so we have to provide a
24395fdd44cSmrg# neutralization value for shells without unset; and this also
24495fdd44cSmrg# works around shells that cannot unset nonexistent variables.
24595fdd44cSmrg# Preserve -v and -x to the replacement shell.
24695fdd44cSmrgBASH_ENV=/dev/null
24795fdd44cSmrgENV=/dev/null
24895fdd44cSmrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
24995fdd44cSmrgcase $- in # ((((
25095fdd44cSmrg  *v*x* | *x*v* ) as_opts=-vx ;;
25195fdd44cSmrg  *v* ) as_opts=-v ;;
25295fdd44cSmrg  *x* ) as_opts=-x ;;
25395fdd44cSmrg  * ) as_opts= ;;
25495fdd44cSmrgesac
25595fdd44cSmrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
25695fdd44cSmrg# Admittedly, this is quite paranoid, since all the known shells bail
25795fdd44cSmrg# out after a failed `exec'.
25895fdd44cSmrg$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
25995fdd44cSmrgexit 255
260169a0819Smrgfi
261169a0819Smrg
262169a0819Smrg    if test x$as_have_required = xno; then :
263169a0819Smrg  $as_echo "$0: This script requires a shell more modern than all"
264169a0819Smrg  $as_echo "$0: the shells that I found on your system."
265169a0819Smrg  if test x${ZSH_VERSION+set} = xset ; then
266169a0819Smrg    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267169a0819Smrg    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268169a0819Smrg  else
269169a0819Smrg    $as_echo "$0: Please tell bug-autoconf@gnu.org and
270aadd013eSmrg$0: https://gitlab.freedesktop.org/xorg/app/xhost/issues
271169a0819Smrg$0: about your system, including any error possibly output
272169a0819Smrg$0: before this message. Then install a modern shell, or
273169a0819Smrg$0: manually run the script under such a shell if you do
274169a0819Smrg$0: have one."
275169a0819Smrg  fi
276169a0819Smrg  exit 1
277169a0819Smrgfi
278169a0819Smrgfi
279169a0819Smrgfi
280169a0819SmrgSHELL=${CONFIG_SHELL-/bin/sh}
281169a0819Smrgexport SHELL
282169a0819Smrg# Unset more variables known to interfere with behavior of common tools.
283169a0819SmrgCLICOLOR_FORCE= GREP_OPTIONS=
284169a0819Smrgunset CLICOLOR_FORCE GREP_OPTIONS
285169a0819Smrg
286169a0819Smrg## --------------------- ##
287169a0819Smrg## M4sh Shell Functions. ##
288169a0819Smrg## --------------------- ##
289169a0819Smrg# as_fn_unset VAR
290169a0819Smrg# ---------------
291169a0819Smrg# Portably unset VAR.
292169a0819Smrgas_fn_unset ()
293169a0819Smrg{
294169a0819Smrg  { eval $1=; unset $1;}
295169a0819Smrg}
296169a0819Smrgas_unset=as_fn_unset
297169a0819Smrg
298169a0819Smrg# as_fn_set_status STATUS
299169a0819Smrg# -----------------------
300169a0819Smrg# Set $? to STATUS, without forking.
301169a0819Smrgas_fn_set_status ()
302169a0819Smrg{
303169a0819Smrg  return $1
304169a0819Smrg} # as_fn_set_status
305169a0819Smrg
306169a0819Smrg# as_fn_exit STATUS
307169a0819Smrg# -----------------
308169a0819Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309169a0819Smrgas_fn_exit ()
310169a0819Smrg{
311169a0819Smrg  set +e
312169a0819Smrg  as_fn_set_status $1
313169a0819Smrg  exit $1
314169a0819Smrg} # as_fn_exit
315169a0819Smrg
316169a0819Smrg# as_fn_mkdir_p
317169a0819Smrg# -------------
318169a0819Smrg# Create "$as_dir" as a directory, including parents if necessary.
319169a0819Smrgas_fn_mkdir_p ()
320169a0819Smrg{
321169a0819Smrg
322169a0819Smrg  case $as_dir in #(
323169a0819Smrg  -*) as_dir=./$as_dir;;
324169a0819Smrg  esac
325169a0819Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
326169a0819Smrg    as_dirs=
327169a0819Smrg    while :; do
328169a0819Smrg      case $as_dir in #(
329169a0819Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330169a0819Smrg      *) as_qdir=$as_dir;;
331169a0819Smrg      esac
332169a0819Smrg      as_dirs="'$as_qdir' $as_dirs"
333169a0819Smrg      as_dir=`$as_dirname -- "$as_dir" ||
334169a0819Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335169a0819Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
336169a0819Smrg	 X"$as_dir" : 'X\(//\)$' \| \
337169a0819Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338169a0819Smrg$as_echo X"$as_dir" |
339169a0819Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340169a0819Smrg	    s//\1/
341169a0819Smrg	    q
342169a0819Smrg	  }
343169a0819Smrg	  /^X\(\/\/\)[^/].*/{
344169a0819Smrg	    s//\1/
345169a0819Smrg	    q
346169a0819Smrg	  }
347169a0819Smrg	  /^X\(\/\/\)$/{
348169a0819Smrg	    s//\1/
349169a0819Smrg	    q
350169a0819Smrg	  }
351169a0819Smrg	  /^X\(\/\).*/{
352169a0819Smrg	    s//\1/
353169a0819Smrg	    q
354169a0819Smrg	  }
355169a0819Smrg	  s/.*/./; q'`
356169a0819Smrg      test -d "$as_dir" && break
357169a0819Smrg    done
358169a0819Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
359169a0819Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360169a0819Smrg
361169a0819Smrg
362169a0819Smrg} # as_fn_mkdir_p
36395fdd44cSmrg
36495fdd44cSmrg# as_fn_executable_p FILE
36595fdd44cSmrg# -----------------------
36695fdd44cSmrg# Test if FILE is an executable regular file.
36795fdd44cSmrgas_fn_executable_p ()
36895fdd44cSmrg{
36995fdd44cSmrg  test -f "$1" && test -x "$1"
37095fdd44cSmrg} # as_fn_executable_p
371169a0819Smrg# as_fn_append VAR VALUE
372169a0819Smrg# ----------------------
373169a0819Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
374169a0819Smrg# advantage of any shell optimizations that allow amortized linear growth over
375169a0819Smrg# repeated appends, instead of the typical quadratic growth present in naive
376169a0819Smrg# implementations.
377169a0819Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378169a0819Smrg  eval 'as_fn_append ()
379169a0819Smrg  {
380169a0819Smrg    eval $1+=\$2
381169a0819Smrg  }'
382169a0819Smrgelse
383169a0819Smrg  as_fn_append ()
384169a0819Smrg  {
385169a0819Smrg    eval $1=\$$1\$2
386169a0819Smrg  }
387169a0819Smrgfi # as_fn_append
388169a0819Smrg
389169a0819Smrg# as_fn_arith ARG...
390169a0819Smrg# ------------------
391169a0819Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
392169a0819Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
393169a0819Smrg# must be portable across $(()) and expr.
394169a0819Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395169a0819Smrg  eval 'as_fn_arith ()
396169a0819Smrg  {
397169a0819Smrg    as_val=$(( $* ))
398169a0819Smrg  }'
399169a0819Smrgelse
400169a0819Smrg  as_fn_arith ()
401169a0819Smrg  {
402169a0819Smrg    as_val=`expr "$@" || test $? -eq 1`
403169a0819Smrg  }
404169a0819Smrgfi # as_fn_arith
405169a0819Smrg
406169a0819Smrg
407169a0819Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
408169a0819Smrg# ----------------------------------------
409169a0819Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410169a0819Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411169a0819Smrg# script with STATUS, using 1 if that was 0.
412169a0819Smrgas_fn_error ()
413169a0819Smrg{
414169a0819Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
415169a0819Smrg  if test "$4"; then
416169a0819Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417169a0819Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418169a0819Smrg  fi
419169a0819Smrg  $as_echo "$as_me: error: $2" >&2
420169a0819Smrg  as_fn_exit $as_status
421169a0819Smrg} # as_fn_error
422169a0819Smrg
42364ce7165Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
42464ce7165Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
42564ce7165Smrg  as_expr=expr
42664ce7165Smrgelse
42764ce7165Smrg  as_expr=false
42864ce7165Smrgfi
42964ce7165Smrg
43064ce7165Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
43164ce7165Smrg  as_basename=basename
43264ce7165Smrgelse
43364ce7165Smrg  as_basename=false
43464ce7165Smrgfi
43564ce7165Smrg
436169a0819Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437169a0819Smrg  as_dirname=dirname
438169a0819Smrgelse
439169a0819Smrg  as_dirname=false
440169a0819Smrgfi
44164ce7165Smrg
44264ce7165Smrgas_me=`$as_basename -- "$0" ||
44364ce7165Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
44464ce7165Smrg	 X"$0" : 'X\(//\)$' \| \
44564ce7165Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446fb23d3a8Smrg$as_echo X/"$0" |
44764ce7165Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
44864ce7165Smrg	    s//\1/
44964ce7165Smrg	    q
45064ce7165Smrg	  }
45164ce7165Smrg	  /^X\/\(\/\/\)$/{
45264ce7165Smrg	    s//\1/
45364ce7165Smrg	    q
45464ce7165Smrg	  }
45564ce7165Smrg	  /^X\/\(\/\).*/{
45664ce7165Smrg	    s//\1/
45764ce7165Smrg	    q
45864ce7165Smrg	  }
45964ce7165Smrg	  s/.*/./; q'`
46064ce7165Smrg
461169a0819Smrg# Avoid depending upon Character Ranges.
462169a0819Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
463169a0819Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464169a0819Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
465169a0819Smrgas_cr_digits='0123456789'
466169a0819Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
46764ce7165Smrg
46864ce7165Smrg
469169a0819Smrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
470169a0819Smrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
471169a0819Smrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472169a0819Smrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473169a0819Smrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
474169a0819Smrg  sed -n '
475169a0819Smrg    p
476169a0819Smrg    /[$]LINENO/=
477169a0819Smrg  ' <$as_myself |
478169a0819Smrg    sed '
479169a0819Smrg      s/[$]LINENO.*/&-/
480169a0819Smrg      t lineno
481169a0819Smrg      b
482169a0819Smrg      :lineno
483169a0819Smrg      N
484169a0819Smrg      :loop
485169a0819Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486169a0819Smrg      t loop
487169a0819Smrg      s/-\n.*//
488169a0819Smrg    ' >$as_me.lineno &&
489169a0819Smrg  chmod +x "$as_me.lineno" ||
490169a0819Smrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
49164ce7165Smrg
49295fdd44cSmrg  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
49395fdd44cSmrg  # already done that, so ensure we don't try to do so again and fall
49495fdd44cSmrg  # in an infinite loop.  This has already happened in practice.
49595fdd44cSmrg  _as_can_reexec=no; export _as_can_reexec
496169a0819Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
497169a0819Smrg  # (the dirname of $[0] is not the place where we might find the
498169a0819Smrg  # original and so on.  Autoconf is especially sensitive to this).
499169a0819Smrg  . "./$as_me.lineno"
500169a0819Smrg  # Exit status is that of the last command.
501169a0819Smrg  exit
50264ce7165Smrg}
50364ce7165Smrg
504169a0819SmrgECHO_C= ECHO_N= ECHO_T=
505169a0819Smrgcase `echo -n x` in #(((((
506169a0819Smrg-n*)
507169a0819Smrg  case `echo 'xy\c'` in
508169a0819Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
509169a0819Smrg  xy)  ECHO_C='\c';;
510169a0819Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
511169a0819Smrg       ECHO_T='	';;
512169a0819Smrg  esac;;
513169a0819Smrg*)
514169a0819Smrg  ECHO_N='-n';;
515169a0819Smrgesac
51664ce7165Smrg
517169a0819Smrgrm -f conf$$ conf$$.exe conf$$.file
518169a0819Smrgif test -d conf$$.dir; then
519169a0819Smrg  rm -f conf$$.dir/conf$$.file
520169a0819Smrgelse
521169a0819Smrg  rm -f conf$$.dir
522169a0819Smrg  mkdir conf$$.dir 2>/dev/null
52364ce7165Smrgfi
524169a0819Smrgif (echo >conf$$.file) 2>/dev/null; then
525169a0819Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
526169a0819Smrg    as_ln_s='ln -s'
527169a0819Smrg    # ... but there are two gotchas:
528169a0819Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529169a0819Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
53095fdd44cSmrg    # In both cases, we have to default to `cp -pR'.
531169a0819Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
53295fdd44cSmrg      as_ln_s='cp -pR'
533169a0819Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
534169a0819Smrg    as_ln_s=ln
535169a0819Smrg  else
53695fdd44cSmrg    as_ln_s='cp -pR'
537169a0819Smrg  fi
53864ce7165Smrgelse
53995fdd44cSmrg  as_ln_s='cp -pR'
54064ce7165Smrgfi
541169a0819Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542169a0819Smrgrmdir conf$$.dir 2>/dev/null
54364ce7165Smrg
544169a0819Smrgif mkdir -p . 2>/dev/null; then
545169a0819Smrg  as_mkdir_p='mkdir -p "$as_dir"'
546169a0819Smrgelse
547169a0819Smrg  test -d ./-p && rmdir ./-p
548169a0819Smrg  as_mkdir_p=false
54964ce7165Smrgfi
55064ce7165Smrg
55195fdd44cSmrgas_test_x='test -x'
55295fdd44cSmrgas_executable_p=as_fn_executable_p
55364ce7165Smrg
554169a0819Smrg# Sed expression to map a string onto a valid CPP name.
555169a0819Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
55664ce7165Smrg
557169a0819Smrg# Sed expression to map a string onto a valid variable name.
558169a0819Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
55964ce7165Smrg
56064ce7165Smrg
561169a0819Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null
562169a0819Smrgexec 6>&1
56364ce7165Smrg
56464ce7165Smrg# Name of the host.
565169a0819Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
56664ce7165Smrg# so uname gets run too.
56764ce7165Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
56864ce7165Smrg
56964ce7165Smrg#
57064ce7165Smrg# Initializations.
57164ce7165Smrg#
57264ce7165Smrgac_default_prefix=/usr/local
57364ce7165Smrgac_clean_files=
57464ce7165Smrgac_config_libobj_dir=.
57564ce7165SmrgLIBOBJS=
57664ce7165Smrgcross_compiling=no
57764ce7165Smrgsubdirs=
57864ce7165SmrgMFLAGS=
57964ce7165SmrgMAKEFLAGS=
58064ce7165Smrg
58164ce7165Smrg# Identity of this package.
58264ce7165SmrgPACKAGE_NAME='xhost'
58364ce7165SmrgPACKAGE_TARNAME='xhost'
584aadd013eSmrgPACKAGE_VERSION='1.0.8'
585aadd013eSmrgPACKAGE_STRING='xhost 1.0.8'
586aadd013eSmrgPACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xhost/issues'
587169a0819SmrgPACKAGE_URL=''
58864ce7165Smrg
5893544ea2eSmrgac_unique_file="Makefile.am"
590fb23d3a8Smrg# Factoring default headers for most tests.
591fb23d3a8Smrgac_includes_default="\
592fb23d3a8Smrg#include <stdio.h>
593fb23d3a8Smrg#ifdef HAVE_SYS_TYPES_H
594fb23d3a8Smrg# include <sys/types.h>
595fb23d3a8Smrg#endif
596fb23d3a8Smrg#ifdef HAVE_SYS_STAT_H
597fb23d3a8Smrg# include <sys/stat.h>
598fb23d3a8Smrg#endif
599fb23d3a8Smrg#ifdef STDC_HEADERS
600fb23d3a8Smrg# include <stdlib.h>
601fb23d3a8Smrg# include <stddef.h>
602fb23d3a8Smrg#else
603fb23d3a8Smrg# ifdef HAVE_STDLIB_H
604fb23d3a8Smrg#  include <stdlib.h>
605fb23d3a8Smrg# endif
606fb23d3a8Smrg#endif
607fb23d3a8Smrg#ifdef HAVE_STRING_H
608fb23d3a8Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609fb23d3a8Smrg#  include <memory.h>
610fb23d3a8Smrg# endif
611fb23d3a8Smrg# include <string.h>
612fb23d3a8Smrg#endif
613fb23d3a8Smrg#ifdef HAVE_STRINGS_H
614fb23d3a8Smrg# include <strings.h>
615fb23d3a8Smrg#endif
616fb23d3a8Smrg#ifdef HAVE_INTTYPES_H
617fb23d3a8Smrg# include <inttypes.h>
618fb23d3a8Smrg#endif
619fb23d3a8Smrg#ifdef HAVE_STDINT_H
620fb23d3a8Smrg# include <stdint.h>
621fb23d3a8Smrg#endif
622fb23d3a8Smrg#ifdef HAVE_UNISTD_H
623fb23d3a8Smrg# include <unistd.h>
624fb23d3a8Smrg#endif"
625fb23d3a8Smrg
626fb23d3a8Smrgac_subst_vars='am__EXEEXT_FALSE
627fb23d3a8Smrgam__EXEEXT_TRUE
628fb23d3a8SmrgLTLIBOBJS
629fb23d3a8SmrgLIBOBJS
6303544ea2eSmrgXAU_LIBS
6313544ea2eSmrgXAU_CFLAGS
63264ce7165SmrgXHOST_LIBS
633fb23d3a8SmrgXHOST_CFLAGS
634169a0819SmrgMAN_SUBSTS
635169a0819SmrgXORG_MAN_PAGE
63664ce7165SmrgADMIN_MAN_DIR
637fb23d3a8SmrgDRIVER_MAN_DIR
638fb23d3a8SmrgMISC_MAN_DIR
639fb23d3a8SmrgFILE_MAN_DIR
640fb23d3a8SmrgLIB_MAN_DIR
641fb23d3a8SmrgAPP_MAN_DIR
642fb23d3a8SmrgADMIN_MAN_SUFFIX
643fb23d3a8SmrgDRIVER_MAN_SUFFIX
644fb23d3a8SmrgMISC_MAN_SUFFIX
645fb23d3a8SmrgFILE_MAN_SUFFIX
646fb23d3a8SmrgLIB_MAN_SUFFIX
647fb23d3a8SmrgAPP_MAN_SUFFIX
648169a0819SmrgSED
649fb23d3a8Smrghost_os
650fb23d3a8Smrghost_vendor
651fb23d3a8Smrghost_cpu
652fb23d3a8Smrghost
653fb23d3a8Smrgbuild_os
654fb23d3a8Smrgbuild_vendor
655fb23d3a8Smrgbuild_cpu
656fb23d3a8Smrgbuild
657169a0819SmrgINSTALL_CMD
658aadd013eSmrgPKG_CONFIG_LIBDIR
659aadd013eSmrgPKG_CONFIG_PATH
660169a0819SmrgPKG_CONFIG
661fb23d3a8SmrgCHANGELOG_CMD
6623544ea2eSmrgSTRICT_CFLAGS
663fb23d3a8SmrgCWARNFLAGS
6643544ea2eSmrgBASE_CFLAGS
665fb23d3a8SmrgEGREP
666fb23d3a8SmrgGREP
667fb23d3a8SmrgCPP
668fb23d3a8Smrgam__fastdepCC_FALSE
669fb23d3a8Smrgam__fastdepCC_TRUE
670fb23d3a8SmrgCCDEPMODE
67181440437Smrgam__nodep
672fb23d3a8SmrgAMDEPBACKSLASH
673fb23d3a8SmrgAMDEP_FALSE
674fb23d3a8SmrgAMDEP_TRUE
675fb23d3a8Smrgam__quote
676fb23d3a8Smrgam__include
677fb23d3a8SmrgDEPDIR
678fb23d3a8SmrgOBJEXT
679fb23d3a8SmrgEXEEXT
680fb23d3a8Smrgac_ct_CC
681fb23d3a8SmrgCPPFLAGS
682fb23d3a8SmrgLDFLAGS
683fb23d3a8SmrgCFLAGS
684fb23d3a8SmrgCC
68581440437SmrgAM_BACKSLASH
68681440437SmrgAM_DEFAULT_VERBOSITY
68781440437SmrgAM_DEFAULT_V
68881440437SmrgAM_V
689fb23d3a8Smrgam__untar
690fb23d3a8Smrgam__tar
691fb23d3a8SmrgAMTAR
692fb23d3a8Smrgam__leading_dot
693fb23d3a8SmrgSET_MAKE
694fb23d3a8SmrgAWK
695fb23d3a8Smrgmkdir_p
696fb23d3a8SmrgMKDIR_P
697fb23d3a8SmrgINSTALL_STRIP_PROGRAM
698fb23d3a8SmrgSTRIP
699fb23d3a8Smrginstall_sh
700fb23d3a8SmrgMAKEINFO
701fb23d3a8SmrgAUTOHEADER
702fb23d3a8SmrgAUTOMAKE
703fb23d3a8SmrgAUTOCONF
704fb23d3a8SmrgACLOCAL
705fb23d3a8SmrgVERSION
706fb23d3a8SmrgPACKAGE
707fb23d3a8SmrgCYGPATH_W
708fb23d3a8Smrgam__isrc
709fb23d3a8SmrgINSTALL_DATA
710fb23d3a8SmrgINSTALL_SCRIPT
711fb23d3a8SmrgINSTALL_PROGRAM
712fb23d3a8Smrgtarget_alias
713fb23d3a8Smrghost_alias
714fb23d3a8Smrgbuild_alias
715fb23d3a8SmrgLIBS
716fb23d3a8SmrgECHO_T
717fb23d3a8SmrgECHO_N
718fb23d3a8SmrgECHO_C
719fb23d3a8SmrgDEFS
720fb23d3a8Smrgmandir
721fb23d3a8Smrglocaledir
722fb23d3a8Smrglibdir
723fb23d3a8Smrgpsdir
724fb23d3a8Smrgpdfdir
725fb23d3a8Smrgdvidir
726fb23d3a8Smrghtmldir
727fb23d3a8Smrginfodir
728fb23d3a8Smrgdocdir
729fb23d3a8Smrgoldincludedir
730fb23d3a8Smrgincludedir
731fb23d3a8Smrglocalstatedir
732fb23d3a8Smrgsharedstatedir
733fb23d3a8Smrgsysconfdir
734fb23d3a8Smrgdatadir
735fb23d3a8Smrgdatarootdir
736fb23d3a8Smrglibexecdir
737fb23d3a8Smrgsbindir
738fb23d3a8Smrgbindir
739fb23d3a8Smrgprogram_transform_name
740fb23d3a8Smrgprefix
741fb23d3a8Smrgexec_prefix
742169a0819SmrgPACKAGE_URL
743fb23d3a8SmrgPACKAGE_BUGREPORT
744fb23d3a8SmrgPACKAGE_STRING
745fb23d3a8SmrgPACKAGE_VERSION
746fb23d3a8SmrgPACKAGE_TARNAME
747fb23d3a8SmrgPACKAGE_NAME
748fb23d3a8SmrgPATH_SEPARATOR
749fb23d3a8SmrgSHELL'
75064ce7165Smrgac_subst_files=''
751fb23d3a8Smrgac_user_opts='
752fb23d3a8Smrgenable_option_checking
75381440437Smrgenable_silent_rules
754fb23d3a8Smrgenable_dependency_tracking
7553544ea2eSmrgenable_selective_werror
756fb23d3a8Smrgenable_strict_compilation
757fb23d3a8Smrgenable_unix_transport
758fb23d3a8Smrgenable_tcp_transport
759fb23d3a8Smrgenable_ipv6
760fb23d3a8Smrgenable_local_transport
761fb23d3a8Smrgenable_secure_rpc
762fb23d3a8Smrg'
76364ce7165Smrg      ac_precious_vars='build_alias
76464ce7165Smrghost_alias
76564ce7165Smrgtarget_alias
76664ce7165SmrgCC
76764ce7165SmrgCFLAGS
76864ce7165SmrgLDFLAGS
76964ce7165SmrgLIBS
77064ce7165SmrgCPPFLAGS
771fb23d3a8SmrgCPP
77264ce7165SmrgPKG_CONFIG
773aadd013eSmrgPKG_CONFIG_PATH
774aadd013eSmrgPKG_CONFIG_LIBDIR
77564ce7165SmrgXHOST_CFLAGS
7763544ea2eSmrgXHOST_LIBS
7773544ea2eSmrgXAU_CFLAGS
7783544ea2eSmrgXAU_LIBS'
77964ce7165Smrg
78064ce7165Smrg
78164ce7165Smrg# Initialize some variables set by options.
78264ce7165Smrgac_init_help=
78364ce7165Smrgac_init_version=false
784fb23d3a8Smrgac_unrecognized_opts=
785fb23d3a8Smrgac_unrecognized_sep=
78664ce7165Smrg# The variables have the same names as the options, with
78764ce7165Smrg# dashes changed to underlines.
78864ce7165Smrgcache_file=/dev/null
78964ce7165Smrgexec_prefix=NONE
79064ce7165Smrgno_create=
79164ce7165Smrgno_recursion=
79264ce7165Smrgprefix=NONE
79364ce7165Smrgprogram_prefix=NONE
79464ce7165Smrgprogram_suffix=NONE
79564ce7165Smrgprogram_transform_name=s,x,x,
79664ce7165Smrgsilent=
79764ce7165Smrgsite=
79864ce7165Smrgsrcdir=
79964ce7165Smrgverbose=
80064ce7165Smrgx_includes=NONE
80164ce7165Smrgx_libraries=NONE
80264ce7165Smrg
80364ce7165Smrg# Installation directory options.
80464ce7165Smrg# These are left unexpanded so users can "make install exec_prefix=/foo"
80564ce7165Smrg# and all the variables that are supposed to be based on exec_prefix
80664ce7165Smrg# by default will actually change.
80764ce7165Smrg# Use braces instead of parens because sh, perl, etc. also accept them.
80864ce7165Smrg# (The list follows the same order as the GNU Coding Standards.)
80964ce7165Smrgbindir='${exec_prefix}/bin'
81064ce7165Smrgsbindir='${exec_prefix}/sbin'
81164ce7165Smrglibexecdir='${exec_prefix}/libexec'
81264ce7165Smrgdatarootdir='${prefix}/share'
81364ce7165Smrgdatadir='${datarootdir}'
81464ce7165Smrgsysconfdir='${prefix}/etc'
81564ce7165Smrgsharedstatedir='${prefix}/com'
81664ce7165Smrglocalstatedir='${prefix}/var'
81764ce7165Smrgincludedir='${prefix}/include'
81864ce7165Smrgoldincludedir='/usr/include'
81964ce7165Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
82064ce7165Smrginfodir='${datarootdir}/info'
82164ce7165Smrghtmldir='${docdir}'
82264ce7165Smrgdvidir='${docdir}'
82364ce7165Smrgpdfdir='${docdir}'
82464ce7165Smrgpsdir='${docdir}'
82564ce7165Smrglibdir='${exec_prefix}/lib'
82664ce7165Smrglocaledir='${datarootdir}/locale'
82764ce7165Smrgmandir='${datarootdir}/man'
82864ce7165Smrg
82964ce7165Smrgac_prev=
83064ce7165Smrgac_dashdash=
83164ce7165Smrgfor ac_option
83264ce7165Smrgdo
83364ce7165Smrg  # If the previous option needs an argument, assign it.
83464ce7165Smrg  if test -n "$ac_prev"; then
83564ce7165Smrg    eval $ac_prev=\$ac_option
83664ce7165Smrg    ac_prev=
83764ce7165Smrg    continue
83864ce7165Smrg  fi
83964ce7165Smrg
84064ce7165Smrg  case $ac_option in
841169a0819Smrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
842169a0819Smrg  *=)   ac_optarg= ;;
843169a0819Smrg  *)    ac_optarg=yes ;;
84464ce7165Smrg  esac
84564ce7165Smrg
84664ce7165Smrg  # Accept the important Cygnus configure options, so we can diagnose typos.
84764ce7165Smrg
84864ce7165Smrg  case $ac_dashdash$ac_option in
84964ce7165Smrg  --)
85064ce7165Smrg    ac_dashdash=yes ;;
85164ce7165Smrg
85264ce7165Smrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
85364ce7165Smrg    ac_prev=bindir ;;
85464ce7165Smrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
85564ce7165Smrg    bindir=$ac_optarg ;;
85664ce7165Smrg
85764ce7165Smrg  -build | --build | --buil | --bui | --bu)
85864ce7165Smrg    ac_prev=build_alias ;;
85964ce7165Smrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
86064ce7165Smrg    build_alias=$ac_optarg ;;
86164ce7165Smrg
86264ce7165Smrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
86364ce7165Smrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
86464ce7165Smrg    ac_prev=cache_file ;;
86564ce7165Smrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
86664ce7165Smrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
86764ce7165Smrg    cache_file=$ac_optarg ;;
86864ce7165Smrg
86964ce7165Smrg  --config-cache | -C)
87064ce7165Smrg    cache_file=config.cache ;;
87164ce7165Smrg
87264ce7165Smrg  -datadir | --datadir | --datadi | --datad)
87364ce7165Smrg    ac_prev=datadir ;;
87464ce7165Smrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
87564ce7165Smrg    datadir=$ac_optarg ;;
87664ce7165Smrg
87764ce7165Smrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
87864ce7165Smrg  | --dataroo | --dataro | --datar)
87964ce7165Smrg    ac_prev=datarootdir ;;
88064ce7165Smrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
88164ce7165Smrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
88264ce7165Smrg    datarootdir=$ac_optarg ;;
88364ce7165Smrg
88464ce7165Smrg  -disable-* | --disable-*)
885fb23d3a8Smrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
88664ce7165Smrg    # Reject names that are not valid shell variable names.
887fb23d3a8Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
888169a0819Smrg      as_fn_error $? "invalid feature name: $ac_useropt"
889fb23d3a8Smrg    ac_useropt_orig=$ac_useropt
890fb23d3a8Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
891fb23d3a8Smrg    case $ac_user_opts in
892fb23d3a8Smrg      *"
893fb23d3a8Smrg"enable_$ac_useropt"
894fb23d3a8Smrg"*) ;;
895fb23d3a8Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
896fb23d3a8Smrg	 ac_unrecognized_sep=', ';;
897fb23d3a8Smrg    esac
898fb23d3a8Smrg    eval enable_$ac_useropt=no ;;
89964ce7165Smrg
90064ce7165Smrg  -docdir | --docdir | --docdi | --doc | --do)
90164ce7165Smrg    ac_prev=docdir ;;
90264ce7165Smrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
90364ce7165Smrg    docdir=$ac_optarg ;;
90464ce7165Smrg
90564ce7165Smrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
90664ce7165Smrg    ac_prev=dvidir ;;
90764ce7165Smrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
90864ce7165Smrg    dvidir=$ac_optarg ;;
90964ce7165Smrg
91064ce7165Smrg  -enable-* | --enable-*)
911fb23d3a8Smrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
91264ce7165Smrg    # Reject names that are not valid shell variable names.
913fb23d3a8Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914169a0819Smrg      as_fn_error $? "invalid feature name: $ac_useropt"
915fb23d3a8Smrg    ac_useropt_orig=$ac_useropt
916fb23d3a8Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917fb23d3a8Smrg    case $ac_user_opts in
918fb23d3a8Smrg      *"
919fb23d3a8Smrg"enable_$ac_useropt"
920fb23d3a8Smrg"*) ;;
921fb23d3a8Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
922fb23d3a8Smrg	 ac_unrecognized_sep=', ';;
923fb23d3a8Smrg    esac
924fb23d3a8Smrg    eval enable_$ac_useropt=\$ac_optarg ;;
92564ce7165Smrg
92664ce7165Smrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
92764ce7165Smrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
92864ce7165Smrg  | --exec | --exe | --ex)
92964ce7165Smrg    ac_prev=exec_prefix ;;
93064ce7165Smrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
93164ce7165Smrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
93264ce7165Smrg  | --exec=* | --exe=* | --ex=*)
93364ce7165Smrg    exec_prefix=$ac_optarg ;;
93464ce7165Smrg
93564ce7165Smrg  -gas | --gas | --ga | --g)
93664ce7165Smrg    # Obsolete; use --with-gas.
93764ce7165Smrg    with_gas=yes ;;
93864ce7165Smrg
93964ce7165Smrg  -help | --help | --hel | --he | -h)
94064ce7165Smrg    ac_init_help=long ;;
94164ce7165Smrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
94264ce7165Smrg    ac_init_help=recursive ;;
94364ce7165Smrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
94464ce7165Smrg    ac_init_help=short ;;
94564ce7165Smrg
94664ce7165Smrg  -host | --host | --hos | --ho)
94764ce7165Smrg    ac_prev=host_alias ;;
94864ce7165Smrg  -host=* | --host=* | --hos=* | --ho=*)
94964ce7165Smrg    host_alias=$ac_optarg ;;
95064ce7165Smrg
95164ce7165Smrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
95264ce7165Smrg    ac_prev=htmldir ;;
95364ce7165Smrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
95464ce7165Smrg  | --ht=*)
95564ce7165Smrg    htmldir=$ac_optarg ;;
95664ce7165Smrg
95764ce7165Smrg  -includedir | --includedir | --includedi | --included | --include \
95864ce7165Smrg  | --includ | --inclu | --incl | --inc)
95964ce7165Smrg    ac_prev=includedir ;;
96064ce7165Smrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
96164ce7165Smrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
96264ce7165Smrg    includedir=$ac_optarg ;;
96364ce7165Smrg
96464ce7165Smrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
96564ce7165Smrg    ac_prev=infodir ;;
96664ce7165Smrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
96764ce7165Smrg    infodir=$ac_optarg ;;
96864ce7165Smrg
96964ce7165Smrg  -libdir | --libdir | --libdi | --libd)
97064ce7165Smrg    ac_prev=libdir ;;
97164ce7165Smrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
97264ce7165Smrg    libdir=$ac_optarg ;;
97364ce7165Smrg
97464ce7165Smrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
97564ce7165Smrg  | --libexe | --libex | --libe)
97664ce7165Smrg    ac_prev=libexecdir ;;
97764ce7165Smrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
97864ce7165Smrg  | --libexe=* | --libex=* | --libe=*)
97964ce7165Smrg    libexecdir=$ac_optarg ;;
98064ce7165Smrg
98164ce7165Smrg  -localedir | --localedir | --localedi | --localed | --locale)
98264ce7165Smrg    ac_prev=localedir ;;
98364ce7165Smrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
98464ce7165Smrg    localedir=$ac_optarg ;;
98564ce7165Smrg
98664ce7165Smrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
98764ce7165Smrg  | --localstate | --localstat | --localsta | --localst | --locals)
98864ce7165Smrg    ac_prev=localstatedir ;;
98964ce7165Smrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
99064ce7165Smrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
99164ce7165Smrg    localstatedir=$ac_optarg ;;
99264ce7165Smrg
99364ce7165Smrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
99464ce7165Smrg    ac_prev=mandir ;;
99564ce7165Smrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
99664ce7165Smrg    mandir=$ac_optarg ;;
99764ce7165Smrg
99864ce7165Smrg  -nfp | --nfp | --nf)
99964ce7165Smrg    # Obsolete; use --without-fp.
100064ce7165Smrg    with_fp=no ;;
100164ce7165Smrg
100264ce7165Smrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
100364ce7165Smrg  | --no-cr | --no-c | -n)
100464ce7165Smrg    no_create=yes ;;
100564ce7165Smrg
100664ce7165Smrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
100764ce7165Smrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
100864ce7165Smrg    no_recursion=yes ;;
100964ce7165Smrg
101064ce7165Smrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
101164ce7165Smrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
101264ce7165Smrg  | --oldin | --oldi | --old | --ol | --o)
101364ce7165Smrg    ac_prev=oldincludedir ;;
101464ce7165Smrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
101564ce7165Smrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
101664ce7165Smrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
101764ce7165Smrg    oldincludedir=$ac_optarg ;;
101864ce7165Smrg
101964ce7165Smrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
102064ce7165Smrg    ac_prev=prefix ;;
102164ce7165Smrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
102264ce7165Smrg    prefix=$ac_optarg ;;
102364ce7165Smrg
102464ce7165Smrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
102564ce7165Smrg  | --program-pre | --program-pr | --program-p)
102664ce7165Smrg    ac_prev=program_prefix ;;
102764ce7165Smrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
102864ce7165Smrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
102964ce7165Smrg    program_prefix=$ac_optarg ;;
103064ce7165Smrg
103164ce7165Smrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
103264ce7165Smrg  | --program-suf | --program-su | --program-s)
103364ce7165Smrg    ac_prev=program_suffix ;;
103464ce7165Smrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
103564ce7165Smrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
103664ce7165Smrg    program_suffix=$ac_optarg ;;
103764ce7165Smrg
103864ce7165Smrg  -program-transform-name | --program-transform-name \
103964ce7165Smrg  | --program-transform-nam | --program-transform-na \
104064ce7165Smrg  | --program-transform-n | --program-transform- \
104164ce7165Smrg  | --program-transform | --program-transfor \
104264ce7165Smrg  | --program-transfo | --program-transf \
104364ce7165Smrg  | --program-trans | --program-tran \
104464ce7165Smrg  | --progr-tra | --program-tr | --program-t)
104564ce7165Smrg    ac_prev=program_transform_name ;;
104664ce7165Smrg  -program-transform-name=* | --program-transform-name=* \
104764ce7165Smrg  | --program-transform-nam=* | --program-transform-na=* \
104864ce7165Smrg  | --program-transform-n=* | --program-transform-=* \
104964ce7165Smrg  | --program-transform=* | --program-transfor=* \
105064ce7165Smrg  | --program-transfo=* | --program-transf=* \
105164ce7165Smrg  | --program-trans=* | --program-tran=* \
105264ce7165Smrg  | --progr-tra=* | --program-tr=* | --program-t=*)
105364ce7165Smrg    program_transform_name=$ac_optarg ;;
105464ce7165Smrg
105564ce7165Smrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
105664ce7165Smrg    ac_prev=pdfdir ;;
105764ce7165Smrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
105864ce7165Smrg    pdfdir=$ac_optarg ;;
105964ce7165Smrg
106064ce7165Smrg  -psdir | --psdir | --psdi | --psd | --ps)
106164ce7165Smrg    ac_prev=psdir ;;
106264ce7165Smrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
106364ce7165Smrg    psdir=$ac_optarg ;;
106464ce7165Smrg
106564ce7165Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
106664ce7165Smrg  | -silent | --silent | --silen | --sile | --sil)
106764ce7165Smrg    silent=yes ;;
106864ce7165Smrg
106964ce7165Smrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
107064ce7165Smrg    ac_prev=sbindir ;;
107164ce7165Smrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
107264ce7165Smrg  | --sbi=* | --sb=*)
107364ce7165Smrg    sbindir=$ac_optarg ;;
107464ce7165Smrg
107564ce7165Smrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
107664ce7165Smrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
107764ce7165Smrg  | --sharedst | --shareds | --shared | --share | --shar \
107864ce7165Smrg  | --sha | --sh)
107964ce7165Smrg    ac_prev=sharedstatedir ;;
108064ce7165Smrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
108164ce7165Smrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
108264ce7165Smrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
108364ce7165Smrg  | --sha=* | --sh=*)
108464ce7165Smrg    sharedstatedir=$ac_optarg ;;
108564ce7165Smrg
108664ce7165Smrg  -site | --site | --sit)
108764ce7165Smrg    ac_prev=site ;;
108864ce7165Smrg  -site=* | --site=* | --sit=*)
108964ce7165Smrg    site=$ac_optarg ;;
109064ce7165Smrg
109164ce7165Smrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
109264ce7165Smrg    ac_prev=srcdir ;;
109364ce7165Smrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
109464ce7165Smrg    srcdir=$ac_optarg ;;
109564ce7165Smrg
109664ce7165Smrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
109764ce7165Smrg  | --syscon | --sysco | --sysc | --sys | --sy)
109864ce7165Smrg    ac_prev=sysconfdir ;;
109964ce7165Smrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
110064ce7165Smrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
110164ce7165Smrg    sysconfdir=$ac_optarg ;;
110264ce7165Smrg
110364ce7165Smrg  -target | --target | --targe | --targ | --tar | --ta | --t)
110464ce7165Smrg    ac_prev=target_alias ;;
110564ce7165Smrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
110664ce7165Smrg    target_alias=$ac_optarg ;;
110764ce7165Smrg
110864ce7165Smrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
110964ce7165Smrg    verbose=yes ;;
111064ce7165Smrg
111164ce7165Smrg  -version | --version | --versio | --versi | --vers | -V)
111264ce7165Smrg    ac_init_version=: ;;
111364ce7165Smrg
111464ce7165Smrg  -with-* | --with-*)
1115fb23d3a8Smrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
111664ce7165Smrg    # Reject names that are not valid shell variable names.
1117fb23d3a8Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118169a0819Smrg      as_fn_error $? "invalid package name: $ac_useropt"
1119fb23d3a8Smrg    ac_useropt_orig=$ac_useropt
1120fb23d3a8Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121fb23d3a8Smrg    case $ac_user_opts in
1122fb23d3a8Smrg      *"
1123fb23d3a8Smrg"with_$ac_useropt"
1124fb23d3a8Smrg"*) ;;
1125fb23d3a8Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1126fb23d3a8Smrg	 ac_unrecognized_sep=', ';;
1127fb23d3a8Smrg    esac
1128fb23d3a8Smrg    eval with_$ac_useropt=\$ac_optarg ;;
112964ce7165Smrg
113064ce7165Smrg  -without-* | --without-*)
1131fb23d3a8Smrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
113264ce7165Smrg    # Reject names that are not valid shell variable names.
1133fb23d3a8Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134169a0819Smrg      as_fn_error $? "invalid package name: $ac_useropt"
1135fb23d3a8Smrg    ac_useropt_orig=$ac_useropt
1136fb23d3a8Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137fb23d3a8Smrg    case $ac_user_opts in
1138fb23d3a8Smrg      *"
1139fb23d3a8Smrg"with_$ac_useropt"
1140fb23d3a8Smrg"*) ;;
1141fb23d3a8Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1142fb23d3a8Smrg	 ac_unrecognized_sep=', ';;
1143fb23d3a8Smrg    esac
1144fb23d3a8Smrg    eval with_$ac_useropt=no ;;
114564ce7165Smrg
114664ce7165Smrg  --x)
114764ce7165Smrg    # Obsolete; use --with-x.
114864ce7165Smrg    with_x=yes ;;
114964ce7165Smrg
115064ce7165Smrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
115164ce7165Smrg  | --x-incl | --x-inc | --x-in | --x-i)
115264ce7165Smrg    ac_prev=x_includes ;;
115364ce7165Smrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
115464ce7165Smrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
115564ce7165Smrg    x_includes=$ac_optarg ;;
115664ce7165Smrg
115764ce7165Smrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
115864ce7165Smrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
115964ce7165Smrg    ac_prev=x_libraries ;;
116064ce7165Smrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
116164ce7165Smrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
116264ce7165Smrg    x_libraries=$ac_optarg ;;
116364ce7165Smrg
1164169a0819Smrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1165169a0819SmrgTry \`$0 --help' for more information"
116664ce7165Smrg    ;;
116764ce7165Smrg
116864ce7165Smrg  *=*)
116964ce7165Smrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
117064ce7165Smrg    # Reject names that are not valid shell variable names.
1171169a0819Smrg    case $ac_envvar in #(
1172169a0819Smrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
1173169a0819Smrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1174169a0819Smrg    esac
117564ce7165Smrg    eval $ac_envvar=\$ac_optarg
117664ce7165Smrg    export $ac_envvar ;;
117764ce7165Smrg
117864ce7165Smrg  *)
117964ce7165Smrg    # FIXME: should be removed in autoconf 3.0.
1180fb23d3a8Smrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
118164ce7165Smrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1182fb23d3a8Smrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1183169a0819Smrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
118464ce7165Smrg    ;;
118564ce7165Smrg
118664ce7165Smrg  esac
118764ce7165Smrgdone
118864ce7165Smrg
118964ce7165Smrgif test -n "$ac_prev"; then
119064ce7165Smrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1191169a0819Smrg  as_fn_error $? "missing argument to $ac_option"
119264ce7165Smrgfi
119364ce7165Smrg
1194fb23d3a8Smrgif test -n "$ac_unrecognized_opts"; then
1195fb23d3a8Smrg  case $enable_option_checking in
1196fb23d3a8Smrg    no) ;;
1197169a0819Smrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1198fb23d3a8Smrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1199fb23d3a8Smrg  esac
1200fb23d3a8Smrgfi
1201fb23d3a8Smrg
1202fb23d3a8Smrg# Check all directory arguments for consistency.
120364ce7165Smrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
120464ce7165Smrg		datadir sysconfdir sharedstatedir localstatedir includedir \
120564ce7165Smrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
120664ce7165Smrg		libdir localedir mandir
120764ce7165Smrgdo
120864ce7165Smrg  eval ac_val=\$$ac_var
1209fb23d3a8Smrg  # Remove trailing slashes.
1210fb23d3a8Smrg  case $ac_val in
1211fb23d3a8Smrg    */ )
1212fb23d3a8Smrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1213fb23d3a8Smrg      eval $ac_var=\$ac_val;;
1214fb23d3a8Smrg  esac
1215fb23d3a8Smrg  # Be sure to have absolute directory names.
121664ce7165Smrg  case $ac_val in
121764ce7165Smrg    [\\/$]* | ?:[\\/]* )  continue;;
121864ce7165Smrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
121964ce7165Smrg  esac
1220169a0819Smrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
122164ce7165Smrgdone
122264ce7165Smrg
122364ce7165Smrg# There might be people who depend on the old broken behavior: `$host'
122464ce7165Smrg# used to hold the argument of --host etc.
122564ce7165Smrg# FIXME: To remove some day.
122664ce7165Smrgbuild=$build_alias
122764ce7165Smrghost=$host_alias
122864ce7165Smrgtarget=$target_alias
122964ce7165Smrg
123064ce7165Smrg# FIXME: To remove some day.
123164ce7165Smrgif test "x$host_alias" != x; then
123264ce7165Smrg  if test "x$build_alias" = x; then
123364ce7165Smrg    cross_compiling=maybe
123464ce7165Smrg  elif test "x$build_alias" != "x$host_alias"; then
123564ce7165Smrg    cross_compiling=yes
123664ce7165Smrg  fi
123764ce7165Smrgfi
123864ce7165Smrg
123964ce7165Smrgac_tool_prefix=
124064ce7165Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
124164ce7165Smrg
124264ce7165Smrgtest "$silent" = yes && exec 6>/dev/null
124364ce7165Smrg
124464ce7165Smrg
124564ce7165Smrgac_pwd=`pwd` && test -n "$ac_pwd" &&
124664ce7165Smrgac_ls_di=`ls -di .` &&
124764ce7165Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1248169a0819Smrg  as_fn_error $? "working directory cannot be determined"
124964ce7165Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1250169a0819Smrg  as_fn_error $? "pwd does not report name of working directory"
125164ce7165Smrg
125264ce7165Smrg
125364ce7165Smrg# Find the source files, if location was not specified.
125464ce7165Smrgif test -z "$srcdir"; then
125564ce7165Smrg  ac_srcdir_defaulted=yes
125664ce7165Smrg  # Try the directory containing this script, then the parent directory.
1257fb23d3a8Smrg  ac_confdir=`$as_dirname -- "$as_myself" ||
1258fb23d3a8Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259fb23d3a8Smrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
1260fb23d3a8Smrg	 X"$as_myself" : 'X\(//\)$' \| \
1261fb23d3a8Smrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1262fb23d3a8Smrg$as_echo X"$as_myself" |
126364ce7165Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
126464ce7165Smrg	    s//\1/
126564ce7165Smrg	    q
126664ce7165Smrg	  }
126764ce7165Smrg	  /^X\(\/\/\)[^/].*/{
126864ce7165Smrg	    s//\1/
126964ce7165Smrg	    q
127064ce7165Smrg	  }
127164ce7165Smrg	  /^X\(\/\/\)$/{
127264ce7165Smrg	    s//\1/
127364ce7165Smrg	    q
127464ce7165Smrg	  }
127564ce7165Smrg	  /^X\(\/\).*/{
127664ce7165Smrg	    s//\1/
127764ce7165Smrg	    q
127864ce7165Smrg	  }
127964ce7165Smrg	  s/.*/./; q'`
128064ce7165Smrg  srcdir=$ac_confdir
128164ce7165Smrg  if test ! -r "$srcdir/$ac_unique_file"; then
128264ce7165Smrg    srcdir=..
128364ce7165Smrg  fi
128464ce7165Smrgelse
128564ce7165Smrg  ac_srcdir_defaulted=no
128664ce7165Smrgfi
128764ce7165Smrgif test ! -r "$srcdir/$ac_unique_file"; then
128864ce7165Smrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1289169a0819Smrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
129064ce7165Smrgfi
129164ce7165Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
129264ce7165Smrgac_abs_confdir=`(
1293169a0819Smrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
129464ce7165Smrg	pwd)`
129564ce7165Smrg# When building in place, set srcdir=.
129664ce7165Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then
129764ce7165Smrg  srcdir=.
129864ce7165Smrgfi
129964ce7165Smrg# Remove unnecessary trailing slashes from srcdir.
130064ce7165Smrg# Double slashes in file names in object file debugging info
130164ce7165Smrg# mess up M-x gdb in Emacs.
130264ce7165Smrgcase $srcdir in
130364ce7165Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
130464ce7165Smrgesac
130564ce7165Smrgfor ac_var in $ac_precious_vars; do
130664ce7165Smrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
130764ce7165Smrg  eval ac_env_${ac_var}_value=\$${ac_var}
130864ce7165Smrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
130964ce7165Smrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
131064ce7165Smrgdone
131164ce7165Smrg
131264ce7165Smrg#
131364ce7165Smrg# Report the --help message.
131464ce7165Smrg#
131564ce7165Smrgif test "$ac_init_help" = "long"; then
131664ce7165Smrg  # Omit some internal or obsolete options to make the list less imposing.
131764ce7165Smrg  # This message is too long to be a string in the A/UX 3.1 sh.
131864ce7165Smrg  cat <<_ACEOF
1319aadd013eSmrg\`configure' configures xhost 1.0.8 to adapt to many kinds of systems.
132064ce7165Smrg
132164ce7165SmrgUsage: $0 [OPTION]... [VAR=VALUE]...
132264ce7165Smrg
132364ce7165SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
132464ce7165SmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
132564ce7165Smrg
132664ce7165SmrgDefaults for the options are specified in brackets.
132764ce7165Smrg
132864ce7165SmrgConfiguration:
132964ce7165Smrg  -h, --help              display this help and exit
133064ce7165Smrg      --help=short        display options specific to this package
133164ce7165Smrg      --help=recursive    display the short help of all the included packages
133264ce7165Smrg  -V, --version           display version information and exit
1333169a0819Smrg  -q, --quiet, --silent   do not print \`checking ...' messages
133464ce7165Smrg      --cache-file=FILE   cache test results in FILE [disabled]
133564ce7165Smrg  -C, --config-cache      alias for \`--cache-file=config.cache'
133664ce7165Smrg  -n, --no-create         do not create output files
133764ce7165Smrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
133864ce7165Smrg
133964ce7165SmrgInstallation directories:
134064ce7165Smrg  --prefix=PREFIX         install architecture-independent files in PREFIX
1341fb23d3a8Smrg                          [$ac_default_prefix]
134264ce7165Smrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1343fb23d3a8Smrg                          [PREFIX]
134464ce7165Smrg
134564ce7165SmrgBy default, \`make install' will install all the files in
134664ce7165Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
134764ce7165Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
134864ce7165Smrgfor instance \`--prefix=\$HOME'.
134964ce7165Smrg
135064ce7165SmrgFor better control, use the options below.
135164ce7165Smrg
135264ce7165SmrgFine tuning of the installation directories:
1353fb23d3a8Smrg  --bindir=DIR            user executables [EPREFIX/bin]
1354fb23d3a8Smrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1355fb23d3a8Smrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
1356fb23d3a8Smrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1357fb23d3a8Smrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1358fb23d3a8Smrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1359fb23d3a8Smrg  --libdir=DIR            object code libraries [EPREFIX/lib]
1360fb23d3a8Smrg  --includedir=DIR        C header files [PREFIX/include]
1361fb23d3a8Smrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1362fb23d3a8Smrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1363fb23d3a8Smrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1364fb23d3a8Smrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
1365fb23d3a8Smrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1366fb23d3a8Smrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
1367fb23d3a8Smrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/xhost]
1368fb23d3a8Smrg  --htmldir=DIR           html documentation [DOCDIR]
1369fb23d3a8Smrg  --dvidir=DIR            dvi documentation [DOCDIR]
1370fb23d3a8Smrg  --pdfdir=DIR            pdf documentation [DOCDIR]
1371fb23d3a8Smrg  --psdir=DIR             ps documentation [DOCDIR]
137264ce7165Smrg_ACEOF
137364ce7165Smrg
137464ce7165Smrg  cat <<\_ACEOF
137564ce7165Smrg
137664ce7165SmrgProgram names:
137764ce7165Smrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
137864ce7165Smrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
137964ce7165Smrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
138064ce7165Smrg
138164ce7165SmrgSystem types:
138264ce7165Smrg  --build=BUILD     configure for building on BUILD [guessed]
138364ce7165Smrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
138464ce7165Smrg_ACEOF
138564ce7165Smrgfi
138664ce7165Smrg
138764ce7165Smrgif test -n "$ac_init_help"; then
138864ce7165Smrg  case $ac_init_help in
1389aadd013eSmrg     short | recursive ) echo "Configuration of xhost 1.0.8:";;
139064ce7165Smrg   esac
139164ce7165Smrg  cat <<\_ACEOF
139264ce7165Smrg
139364ce7165SmrgOptional Features:
1394fb23d3a8Smrg  --disable-option-checking  ignore unrecognized --enable/--with options
139564ce7165Smrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
139664ce7165Smrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
139781440437Smrg  --enable-silent-rules   less verbose build output (undo: "make V=1")
139881440437Smrg  --disable-silent-rules  verbose build output (undo: "make V=0")
139981440437Smrg  --enable-dependency-tracking
140081440437Smrg                          do not reject slow dependency extractors
140181440437Smrg  --disable-dependency-tracking
140281440437Smrg                          speeds up one-time build
14033544ea2eSmrg  --disable-selective-werror
14043544ea2eSmrg                          Turn off selective compiler errors. (default:
14053544ea2eSmrg                          enabled)
1406fb23d3a8Smrg  --enable-strict-compilation
1407fb23d3a8Smrg                          Enable all warnings from compiler and make them
1408fb23d3a8Smrg                          errors (default: disabled)
140964ce7165Smrg  --enable-unix-transport Enable UNIX domain socket transport
141064ce7165Smrg  --enable-tcp-transport  Enable TCP socket transport
1411fb23d3a8Smrg  --enable-ipv6           Enable IPv6 support
141264ce7165Smrg  --enable-local-transport
141364ce7165Smrg                          Enable os-specific local transport
141464ce7165Smrg  --enable-secure-rpc     Enable Secure RPC
141564ce7165Smrg
141664ce7165SmrgSome influential environment variables:
141764ce7165Smrg  CC          C compiler command
141864ce7165Smrg  CFLAGS      C compiler flags
141964ce7165Smrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
142064ce7165Smrg              nonstandard directory <lib dir>
142164ce7165Smrg  LIBS        libraries to pass to the linker, e.g. -l<library>
1422169a0819Smrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
142364ce7165Smrg              you have headers in a nonstandard directory <include dir>
1424fb23d3a8Smrg  CPP         C preprocessor
142564ce7165Smrg  PKG_CONFIG  path to pkg-config utility
1426aadd013eSmrg  PKG_CONFIG_PATH
1427aadd013eSmrg              directories to add to pkg-config's search path
1428aadd013eSmrg  PKG_CONFIG_LIBDIR
1429aadd013eSmrg              path overriding pkg-config's built-in search path
143064ce7165Smrg  XHOST_CFLAGS
143164ce7165Smrg              C compiler flags for XHOST, overriding pkg-config
143264ce7165Smrg  XHOST_LIBS  linker flags for XHOST, overriding pkg-config
14333544ea2eSmrg  XAU_CFLAGS  C compiler flags for XAU, overriding pkg-config
14343544ea2eSmrg  XAU_LIBS    linker flags for XAU, overriding pkg-config
143564ce7165Smrg
143664ce7165SmrgUse these variables to override the choices made by `configure' or to help
143764ce7165Smrgit to find libraries and programs with nonstandard names/locations.
143864ce7165Smrg
1439aadd013eSmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/xhost/issues>.
144064ce7165Smrg_ACEOF
144164ce7165Smrgac_status=$?
144264ce7165Smrgfi
144364ce7165Smrg
144464ce7165Smrgif test "$ac_init_help" = "recursive"; then
144564ce7165Smrg  # If there are subdirs, report their specific --help.
144664ce7165Smrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1447fb23d3a8Smrg    test -d "$ac_dir" ||
1448fb23d3a8Smrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1449fb23d3a8Smrg      continue
145064ce7165Smrg    ac_builddir=.
145164ce7165Smrg
145264ce7165Smrgcase "$ac_dir" in
145364ce7165Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
145464ce7165Smrg*)
1455fb23d3a8Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
145664ce7165Smrg  # A ".." for each directory in $ac_dir_suffix.
1457fb23d3a8Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
145864ce7165Smrg  case $ac_top_builddir_sub in
145964ce7165Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
146064ce7165Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
146164ce7165Smrg  esac ;;
146264ce7165Smrgesac
146364ce7165Smrgac_abs_top_builddir=$ac_pwd
146464ce7165Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
146564ce7165Smrg# for backward compatibility:
146664ce7165Smrgac_top_builddir=$ac_top_build_prefix
146764ce7165Smrg
146864ce7165Smrgcase $srcdir in
146964ce7165Smrg  .)  # We are building in place.
147064ce7165Smrg    ac_srcdir=.
147164ce7165Smrg    ac_top_srcdir=$ac_top_builddir_sub
147264ce7165Smrg    ac_abs_top_srcdir=$ac_pwd ;;
147364ce7165Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
147464ce7165Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
147564ce7165Smrg    ac_top_srcdir=$srcdir
147664ce7165Smrg    ac_abs_top_srcdir=$srcdir ;;
147764ce7165Smrg  *) # Relative name.
147864ce7165Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
147964ce7165Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
148064ce7165Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
148164ce7165Smrgesac
148264ce7165Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
148364ce7165Smrg
148464ce7165Smrg    cd "$ac_dir" || { ac_status=$?; continue; }
148564ce7165Smrg    # Check for guested configure.
148664ce7165Smrg    if test -f "$ac_srcdir/configure.gnu"; then
148764ce7165Smrg      echo &&
148864ce7165Smrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
148964ce7165Smrg    elif test -f "$ac_srcdir/configure"; then
149064ce7165Smrg      echo &&
149164ce7165Smrg      $SHELL "$ac_srcdir/configure" --help=recursive
149264ce7165Smrg    else
1493fb23d3a8Smrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
149464ce7165Smrg    fi || ac_status=$?
149564ce7165Smrg    cd "$ac_pwd" || { ac_status=$?; break; }
149664ce7165Smrg  done
149764ce7165Smrgfi
149864ce7165Smrg
149964ce7165Smrgtest -n "$ac_init_help" && exit $ac_status
150064ce7165Smrgif $ac_init_version; then
150164ce7165Smrg  cat <<\_ACEOF
1502aadd013eSmrgxhost configure 1.0.8
150395fdd44cSmrggenerated by GNU Autoconf 2.69
150464ce7165Smrg
150595fdd44cSmrgCopyright (C) 2012 Free Software Foundation, Inc.
150664ce7165SmrgThis configure script is free software; the Free Software Foundation
150764ce7165Smrggives unlimited permission to copy, distribute and modify it.
150864ce7165Smrg_ACEOF
150964ce7165Smrg  exit
151064ce7165Smrgfi
151164ce7165Smrg
1512169a0819Smrg## ------------------------ ##
1513169a0819Smrg## Autoconf initialization. ##
1514169a0819Smrg## ------------------------ ##
151564ce7165Smrg
1516169a0819Smrg# ac_fn_c_try_compile LINENO
1517169a0819Smrg# --------------------------
1518169a0819Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
1519169a0819Smrgac_fn_c_try_compile ()
152064ce7165Smrg{
1521169a0819Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1522169a0819Smrg  rm -f conftest.$ac_objext
1523169a0819Smrg  if { { ac_try="$ac_compile"
1524169a0819Smrgcase "(($ac_try" in
1525169a0819Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1526169a0819Smrg  *) ac_try_echo=$ac_try;;
1527169a0819Smrgesac
1528169a0819Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1529169a0819Smrg$as_echo "$ac_try_echo"; } >&5
1530169a0819Smrg  (eval "$ac_compile") 2>conftest.err
1531169a0819Smrg  ac_status=$?
1532169a0819Smrg  if test -s conftest.err; then
1533169a0819Smrg    grep -v '^ *+' conftest.err >conftest.er1
1534169a0819Smrg    cat conftest.er1 >&5
1535169a0819Smrg    mv -f conftest.er1 conftest.err
1536169a0819Smrg  fi
1537169a0819Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1538169a0819Smrg  test $ac_status = 0; } && {
1539169a0819Smrg	 test -z "$ac_c_werror_flag" ||
1540169a0819Smrg	 test ! -s conftest.err
1541169a0819Smrg       } && test -s conftest.$ac_objext; then :
1542169a0819Smrg  ac_retval=0
1543169a0819Smrgelse
1544169a0819Smrg  $as_echo "$as_me: failed program was:" >&5
1545169a0819Smrgsed 's/^/| /' conftest.$ac_ext >&5
154664ce7165Smrg
1547169a0819Smrg	ac_retval=1
1548169a0819Smrgfi
1549169a0819Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1550169a0819Smrg  as_fn_set_status $ac_retval
155164ce7165Smrg
1552169a0819Smrg} # ac_fn_c_try_compile
155364ce7165Smrg
1554169a0819Smrg# ac_fn_c_try_cpp LINENO
1555169a0819Smrg# ----------------------
1556169a0819Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1557169a0819Smrgac_fn_c_try_cpp ()
1558169a0819Smrg{
1559169a0819Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560169a0819Smrg  if { { ac_try="$ac_cpp conftest.$ac_ext"
1561169a0819Smrgcase "(($ac_try" in
1562169a0819Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1563169a0819Smrg  *) ac_try_echo=$ac_try;;
1564169a0819Smrgesac
1565169a0819Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1566169a0819Smrg$as_echo "$ac_try_echo"; } >&5
1567169a0819Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1568169a0819Smrg  ac_status=$?
1569169a0819Smrg  if test -s conftest.err; then
1570169a0819Smrg    grep -v '^ *+' conftest.err >conftest.er1
1571169a0819Smrg    cat conftest.er1 >&5
1572169a0819Smrg    mv -f conftest.er1 conftest.err
1573169a0819Smrg  fi
1574169a0819Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1575169a0819Smrg  test $ac_status = 0; } > conftest.i && {
1576169a0819Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1577169a0819Smrg	 test ! -s conftest.err
1578169a0819Smrg       }; then :
1579169a0819Smrg  ac_retval=0
1580169a0819Smrgelse
1581169a0819Smrg  $as_echo "$as_me: failed program was:" >&5
1582169a0819Smrgsed 's/^/| /' conftest.$ac_ext >&5
1583169a0819Smrg
1584169a0819Smrg    ac_retval=1
1585169a0819Smrgfi
1586169a0819Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1587169a0819Smrg  as_fn_set_status $ac_retval
1588169a0819Smrg
1589169a0819Smrg} # ac_fn_c_try_cpp
1590169a0819Smrg
159195fdd44cSmrg# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
159295fdd44cSmrg# -------------------------------------------------------
159395fdd44cSmrg# Tests whether HEADER exists, giving a warning if it cannot be compiled using
159495fdd44cSmrg# the include files in INCLUDES and setting the cache variable VAR
159595fdd44cSmrg# accordingly.
159695fdd44cSmrgac_fn_c_check_header_mongrel ()
159795fdd44cSmrg{
159895fdd44cSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
159995fdd44cSmrg  if eval \${$3+:} false; then :
160095fdd44cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
160195fdd44cSmrg$as_echo_n "checking for $2... " >&6; }
160295fdd44cSmrgif eval \${$3+:} false; then :
160395fdd44cSmrg  $as_echo_n "(cached) " >&6
160495fdd44cSmrgfi
160595fdd44cSmrgeval ac_res=\$$3
160695fdd44cSmrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
160795fdd44cSmrg$as_echo "$ac_res" >&6; }
160895fdd44cSmrgelse
160995fdd44cSmrg  # Is the header compilable?
161095fdd44cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
161195fdd44cSmrg$as_echo_n "checking $2 usability... " >&6; }
161295fdd44cSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
161395fdd44cSmrg/* end confdefs.h.  */
161495fdd44cSmrg$4
161595fdd44cSmrg#include <$2>
161695fdd44cSmrg_ACEOF
161795fdd44cSmrgif ac_fn_c_try_compile "$LINENO"; then :
161895fdd44cSmrg  ac_header_compiler=yes
161995fdd44cSmrgelse
162095fdd44cSmrg  ac_header_compiler=no
162195fdd44cSmrgfi
162295fdd44cSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
162395fdd44cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
162495fdd44cSmrg$as_echo "$ac_header_compiler" >&6; }
162595fdd44cSmrg
162695fdd44cSmrg# Is the header present?
162795fdd44cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
162895fdd44cSmrg$as_echo_n "checking $2 presence... " >&6; }
162995fdd44cSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
163095fdd44cSmrg/* end confdefs.h.  */
163195fdd44cSmrg#include <$2>
163295fdd44cSmrg_ACEOF
163395fdd44cSmrgif ac_fn_c_try_cpp "$LINENO"; then :
163495fdd44cSmrg  ac_header_preproc=yes
163595fdd44cSmrgelse
163695fdd44cSmrg  ac_header_preproc=no
163795fdd44cSmrgfi
163895fdd44cSmrgrm -f conftest.err conftest.i conftest.$ac_ext
163995fdd44cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
164095fdd44cSmrg$as_echo "$ac_header_preproc" >&6; }
164195fdd44cSmrg
164295fdd44cSmrg# So?  What about this header?
164395fdd44cSmrgcase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
164495fdd44cSmrg  yes:no: )
164595fdd44cSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
164695fdd44cSmrg$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
164795fdd44cSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
164895fdd44cSmrg$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
164995fdd44cSmrg    ;;
165095fdd44cSmrg  no:yes:* )
165195fdd44cSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
165295fdd44cSmrg$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
165395fdd44cSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
165495fdd44cSmrg$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
165595fdd44cSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
165695fdd44cSmrg$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
165795fdd44cSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
165895fdd44cSmrg$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
165995fdd44cSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
166095fdd44cSmrg$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1661aadd013eSmrg( $as_echo "## ------------------------------------------------------------------- ##
1662aadd013eSmrg## Report this to https://gitlab.freedesktop.org/xorg/app/xhost/issues ##
1663aadd013eSmrg## ------------------------------------------------------------------- ##"
166495fdd44cSmrg     ) | sed "s/^/$as_me: WARNING:     /" >&2
166595fdd44cSmrg    ;;
166695fdd44cSmrgesac
166795fdd44cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
166895fdd44cSmrg$as_echo_n "checking for $2... " >&6; }
166995fdd44cSmrgif eval \${$3+:} false; then :
167095fdd44cSmrg  $as_echo_n "(cached) " >&6
167195fdd44cSmrgelse
167295fdd44cSmrg  eval "$3=\$ac_header_compiler"
167395fdd44cSmrgfi
167495fdd44cSmrgeval ac_res=\$$3
167595fdd44cSmrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
167695fdd44cSmrg$as_echo "$ac_res" >&6; }
167795fdd44cSmrgfi
167895fdd44cSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
167995fdd44cSmrg
168095fdd44cSmrg} # ac_fn_c_check_header_mongrel
168195fdd44cSmrg
1682169a0819Smrg# ac_fn_c_try_run LINENO
1683169a0819Smrg# ----------------------
1684169a0819Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1685169a0819Smrg# that executables *can* be run.
1686169a0819Smrgac_fn_c_try_run ()
1687169a0819Smrg{
1688169a0819Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689169a0819Smrg  if { { ac_try="$ac_link"
1690169a0819Smrgcase "(($ac_try" in
1691169a0819Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692169a0819Smrg  *) ac_try_echo=$ac_try;;
1693169a0819Smrgesac
1694169a0819Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695169a0819Smrg$as_echo "$ac_try_echo"; } >&5
1696169a0819Smrg  (eval "$ac_link") 2>&5
1697169a0819Smrg  ac_status=$?
1698169a0819Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699169a0819Smrg  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1700169a0819Smrg  { { case "(($ac_try" in
1701169a0819Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702169a0819Smrg  *) ac_try_echo=$ac_try;;
1703169a0819Smrgesac
1704169a0819Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705169a0819Smrg$as_echo "$ac_try_echo"; } >&5
1706169a0819Smrg  (eval "$ac_try") 2>&5
1707169a0819Smrg  ac_status=$?
1708169a0819Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709169a0819Smrg  test $ac_status = 0; }; }; then :
1710169a0819Smrg  ac_retval=0
1711169a0819Smrgelse
1712169a0819Smrg  $as_echo "$as_me: program exited with status $ac_status" >&5
1713169a0819Smrg       $as_echo "$as_me: failed program was:" >&5
1714169a0819Smrgsed 's/^/| /' conftest.$ac_ext >&5
1715169a0819Smrg
1716169a0819Smrg       ac_retval=$ac_status
1717169a0819Smrgfi
1718169a0819Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1719169a0819Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720169a0819Smrg  as_fn_set_status $ac_retval
1721169a0819Smrg
1722169a0819Smrg} # ac_fn_c_try_run
1723169a0819Smrg
1724169a0819Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1725169a0819Smrg# -------------------------------------------------------
1726169a0819Smrg# Tests whether HEADER exists and can be compiled using the include files in
1727169a0819Smrg# INCLUDES, setting the cache variable VAR accordingly.
1728169a0819Smrgac_fn_c_check_header_compile ()
1729169a0819Smrg{
1730169a0819Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1732169a0819Smrg$as_echo_n "checking for $2... " >&6; }
1733169a0819Smrgif eval \${$3+:} false; then :
1734169a0819Smrg  $as_echo_n "(cached) " >&6
1735169a0819Smrgelse
1736169a0819Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1737169a0819Smrg/* end confdefs.h.  */
1738169a0819Smrg$4
1739169a0819Smrg#include <$2>
1740169a0819Smrg_ACEOF
1741169a0819Smrgif ac_fn_c_try_compile "$LINENO"; then :
1742169a0819Smrg  eval "$3=yes"
1743169a0819Smrgelse
1744169a0819Smrg  eval "$3=no"
1745169a0819Smrgfi
1746169a0819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1747169a0819Smrgfi
1748169a0819Smrgeval ac_res=\$$3
1749169a0819Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1750169a0819Smrg$as_echo "$ac_res" >&6; }
1751169a0819Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752169a0819Smrg
1753169a0819Smrg} # ac_fn_c_check_header_compile
1754169a0819Smrg
175595fdd44cSmrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
175695fdd44cSmrg# ---------------------------------------------
175795fdd44cSmrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
175895fdd44cSmrg# accordingly.
175995fdd44cSmrgac_fn_c_check_decl ()
176095fdd44cSmrg{
176195fdd44cSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
176295fdd44cSmrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
176395fdd44cSmrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
176495fdd44cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
176595fdd44cSmrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
176695fdd44cSmrgif eval \${$3+:} false; then :
176795fdd44cSmrg  $as_echo_n "(cached) " >&6
176895fdd44cSmrgelse
176995fdd44cSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
177095fdd44cSmrg/* end confdefs.h.  */
177195fdd44cSmrg$4
177295fdd44cSmrgint
177395fdd44cSmrgmain ()
177495fdd44cSmrg{
177595fdd44cSmrg#ifndef $as_decl_name
177695fdd44cSmrg#ifdef __cplusplus
177795fdd44cSmrg  (void) $as_decl_use;
177895fdd44cSmrg#else
177995fdd44cSmrg  (void) $as_decl_name;
178095fdd44cSmrg#endif
178195fdd44cSmrg#endif
178295fdd44cSmrg
178395fdd44cSmrg  ;
178495fdd44cSmrg  return 0;
178595fdd44cSmrg}
178695fdd44cSmrg_ACEOF
178795fdd44cSmrgif ac_fn_c_try_compile "$LINENO"; then :
178895fdd44cSmrg  eval "$3=yes"
178995fdd44cSmrgelse
179095fdd44cSmrg  eval "$3=no"
179195fdd44cSmrgfi
179295fdd44cSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
179395fdd44cSmrgfi
179495fdd44cSmrgeval ac_res=\$$3
179595fdd44cSmrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
179695fdd44cSmrg$as_echo "$ac_res" >&6; }
179795fdd44cSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
179895fdd44cSmrg
179995fdd44cSmrg} # ac_fn_c_check_decl
180095fdd44cSmrg
1801169a0819Smrg# ac_fn_c_try_link LINENO
1802169a0819Smrg# -----------------------
1803169a0819Smrg# Try to link conftest.$ac_ext, and return whether this succeeded.
1804169a0819Smrgac_fn_c_try_link ()
1805169a0819Smrg{
1806169a0819Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807169a0819Smrg  rm -f conftest.$ac_objext conftest$ac_exeext
1808169a0819Smrg  if { { ac_try="$ac_link"
1809169a0819Smrgcase "(($ac_try" in
1810169a0819Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1811169a0819Smrg  *) ac_try_echo=$ac_try;;
1812169a0819Smrgesac
1813169a0819Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1814169a0819Smrg$as_echo "$ac_try_echo"; } >&5
1815169a0819Smrg  (eval "$ac_link") 2>conftest.err
1816169a0819Smrg  ac_status=$?
1817169a0819Smrg  if test -s conftest.err; then
1818169a0819Smrg    grep -v '^ *+' conftest.err >conftest.er1
1819169a0819Smrg    cat conftest.er1 >&5
1820169a0819Smrg    mv -f conftest.er1 conftest.err
1821169a0819Smrg  fi
1822169a0819Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1823169a0819Smrg  test $ac_status = 0; } && {
1824169a0819Smrg	 test -z "$ac_c_werror_flag" ||
1825169a0819Smrg	 test ! -s conftest.err
1826169a0819Smrg       } && test -s conftest$ac_exeext && {
1827169a0819Smrg	 test "$cross_compiling" = yes ||
182895fdd44cSmrg	 test -x conftest$ac_exeext
1829169a0819Smrg       }; then :
1830169a0819Smrg  ac_retval=0
1831169a0819Smrgelse
1832169a0819Smrg  $as_echo "$as_me: failed program was:" >&5
1833169a0819Smrgsed 's/^/| /' conftest.$ac_ext >&5
1834169a0819Smrg
1835169a0819Smrg	ac_retval=1
1836169a0819Smrgfi
1837169a0819Smrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1838169a0819Smrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1839169a0819Smrg  # interfere with the next link command; also delete a directory that is
1840169a0819Smrg  # left behind by Apple's compiler.  We do this before executing the actions.
1841169a0819Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1842169a0819Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843169a0819Smrg  as_fn_set_status $ac_retval
1844169a0819Smrg
1845169a0819Smrg} # ac_fn_c_try_link
1846169a0819Smrg
1847169a0819Smrg# ac_fn_c_check_func LINENO FUNC VAR
1848169a0819Smrg# ----------------------------------
1849169a0819Smrg# Tests whether FUNC exists, setting the cache variable VAR accordingly
1850169a0819Smrgac_fn_c_check_func ()
1851169a0819Smrg{
1852169a0819Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1854169a0819Smrg$as_echo_n "checking for $2... " >&6; }
1855169a0819Smrgif eval \${$3+:} false; then :
1856169a0819Smrg  $as_echo_n "(cached) " >&6
1857169a0819Smrgelse
1858169a0819Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1859169a0819Smrg/* end confdefs.h.  */
1860169a0819Smrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1861169a0819Smrg   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1862169a0819Smrg#define $2 innocuous_$2
1863169a0819Smrg
1864169a0819Smrg/* System header to define __stub macros and hopefully few prototypes,
1865169a0819Smrg    which can conflict with char $2 (); below.
1866169a0819Smrg    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1867169a0819Smrg    <limits.h> exists even on freestanding compilers.  */
1868169a0819Smrg
1869169a0819Smrg#ifdef __STDC__
1870169a0819Smrg# include <limits.h>
1871169a0819Smrg#else
1872169a0819Smrg# include <assert.h>
1873169a0819Smrg#endif
1874169a0819Smrg
1875169a0819Smrg#undef $2
1876169a0819Smrg
1877169a0819Smrg/* Override any GCC internal prototype to avoid an error.
1878169a0819Smrg   Use char because int might match the return type of a GCC
1879169a0819Smrg   builtin and then its argument prototype would still apply.  */
1880169a0819Smrg#ifdef __cplusplus
1881169a0819Smrgextern "C"
1882169a0819Smrg#endif
1883169a0819Smrgchar $2 ();
1884169a0819Smrg/* The GNU C library defines this for functions which it implements
1885169a0819Smrg    to always fail with ENOSYS.  Some functions are actually named
1886169a0819Smrg    something starting with __ and the normal name is an alias.  */
1887169a0819Smrg#if defined __stub_$2 || defined __stub___$2
1888169a0819Smrgchoke me
1889169a0819Smrg#endif
1890169a0819Smrg
1891169a0819Smrgint
1892169a0819Smrgmain ()
1893169a0819Smrg{
1894169a0819Smrgreturn $2 ();
1895169a0819Smrg  ;
1896169a0819Smrg  return 0;
1897169a0819Smrg}
1898169a0819Smrg_ACEOF
1899169a0819Smrgif ac_fn_c_try_link "$LINENO"; then :
1900169a0819Smrg  eval "$3=yes"
1901169a0819Smrgelse
1902169a0819Smrg  eval "$3=no"
1903169a0819Smrgfi
1904169a0819Smrgrm -f core conftest.err conftest.$ac_objext \
1905169a0819Smrg    conftest$ac_exeext conftest.$ac_ext
1906169a0819Smrgfi
1907169a0819Smrgeval ac_res=\$$3
1908169a0819Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1909169a0819Smrg$as_echo "$ac_res" >&6; }
1910169a0819Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1911169a0819Smrg
1912169a0819Smrg} # ac_fn_c_check_func
1913169a0819Smrg
1914169a0819Smrg# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1915169a0819Smrg# ----------------------------------------------------
1916169a0819Smrg# Tries to find if the field MEMBER exists in type AGGR, after including
1917169a0819Smrg# INCLUDES, setting cache variable VAR accordingly.
1918169a0819Smrgac_fn_c_check_member ()
1919169a0819Smrg{
1920169a0819Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1921169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1922169a0819Smrg$as_echo_n "checking for $2.$3... " >&6; }
1923169a0819Smrgif eval \${$4+:} false; then :
1924169a0819Smrg  $as_echo_n "(cached) " >&6
1925169a0819Smrgelse
1926169a0819Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927169a0819Smrg/* end confdefs.h.  */
1928169a0819Smrg$5
1929169a0819Smrgint
1930169a0819Smrgmain ()
1931169a0819Smrg{
1932169a0819Smrgstatic $2 ac_aggr;
1933169a0819Smrgif (ac_aggr.$3)
1934169a0819Smrgreturn 0;
1935169a0819Smrg  ;
1936169a0819Smrg  return 0;
1937169a0819Smrg}
1938169a0819Smrg_ACEOF
1939169a0819Smrgif ac_fn_c_try_compile "$LINENO"; then :
1940169a0819Smrg  eval "$4=yes"
1941169a0819Smrgelse
1942169a0819Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943169a0819Smrg/* end confdefs.h.  */
1944169a0819Smrg$5
1945169a0819Smrgint
1946169a0819Smrgmain ()
1947169a0819Smrg{
1948169a0819Smrgstatic $2 ac_aggr;
1949169a0819Smrgif (sizeof ac_aggr.$3)
1950169a0819Smrgreturn 0;
1951169a0819Smrg  ;
1952169a0819Smrg  return 0;
1953169a0819Smrg}
1954169a0819Smrg_ACEOF
1955169a0819Smrgif ac_fn_c_try_compile "$LINENO"; then :
1956169a0819Smrg  eval "$4=yes"
1957169a0819Smrgelse
1958169a0819Smrg  eval "$4=no"
1959169a0819Smrgfi
1960169a0819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1961169a0819Smrgfi
1962169a0819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1963169a0819Smrgfi
1964169a0819Smrgeval ac_res=\$$4
1965169a0819Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1966169a0819Smrg$as_echo "$ac_res" >&6; }
1967169a0819Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968169a0819Smrg
1969169a0819Smrg} # ac_fn_c_check_member
1970169a0819Smrg
1971169a0819Smrg# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1972169a0819Smrg# -------------------------------------------
1973169a0819Smrg# Tests whether TYPE exists after having included INCLUDES, setting cache
1974169a0819Smrg# variable VAR accordingly.
1975169a0819Smrgac_fn_c_check_type ()
1976169a0819Smrg{
1977169a0819Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1978169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1979169a0819Smrg$as_echo_n "checking for $2... " >&6; }
1980169a0819Smrgif eval \${$3+:} false; then :
1981169a0819Smrg  $as_echo_n "(cached) " >&6
1982169a0819Smrgelse
1983169a0819Smrg  eval "$3=no"
1984169a0819Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985169a0819Smrg/* end confdefs.h.  */
1986169a0819Smrg$4
1987169a0819Smrgint
1988169a0819Smrgmain ()
1989169a0819Smrg{
1990169a0819Smrgif (sizeof ($2))
1991169a0819Smrg	 return 0;
1992169a0819Smrg  ;
1993169a0819Smrg  return 0;
1994169a0819Smrg}
1995169a0819Smrg_ACEOF
1996169a0819Smrgif ac_fn_c_try_compile "$LINENO"; then :
1997169a0819Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998169a0819Smrg/* end confdefs.h.  */
1999169a0819Smrg$4
2000169a0819Smrgint
2001169a0819Smrgmain ()
2002169a0819Smrg{
2003169a0819Smrgif (sizeof (($2)))
2004169a0819Smrg	    return 0;
2005169a0819Smrg  ;
2006169a0819Smrg  return 0;
2007169a0819Smrg}
2008169a0819Smrg_ACEOF
2009169a0819Smrgif ac_fn_c_try_compile "$LINENO"; then :
2010169a0819Smrg
2011169a0819Smrgelse
2012169a0819Smrg  eval "$3=yes"
2013169a0819Smrgfi
2014169a0819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2015169a0819Smrgfi
2016169a0819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2017169a0819Smrgfi
2018169a0819Smrgeval ac_res=\$$3
2019169a0819Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2020169a0819Smrg$as_echo "$ac_res" >&6; }
2021169a0819Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2022169a0819Smrg
2023169a0819Smrg} # ac_fn_c_check_type
2024169a0819Smrgcat >config.log <<_ACEOF
2025169a0819SmrgThis file contains any messages produced by compilers while
2026169a0819Smrgrunning configure, to aid debugging if configure makes a mistake.
2027169a0819Smrg
2028aadd013eSmrgIt was created by xhost $as_me 1.0.8, which was
202995fdd44cSmrggenerated by GNU Autoconf 2.69.  Invocation command line was
2030169a0819Smrg
2031169a0819Smrg  $ $0 $@
2032169a0819Smrg
2033169a0819Smrg_ACEOF
2034169a0819Smrgexec 5>>config.log
2035169a0819Smrg{
2036169a0819Smrgcat <<_ASUNAME
2037169a0819Smrg## --------- ##
2038169a0819Smrg## Platform. ##
2039169a0819Smrg## --------- ##
2040169a0819Smrg
2041169a0819Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2042169a0819Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
2043169a0819Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
2044169a0819Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
2045169a0819Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
2046169a0819Smrg
2047169a0819Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2048169a0819Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2049169a0819Smrg
2050169a0819Smrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2051169a0819Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2052169a0819Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2053169a0819Smrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2054169a0819Smrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2055169a0819Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2056169a0819Smrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2057169a0819Smrg
2058169a0819Smrg_ASUNAME
2059169a0819Smrg
2060169a0819Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206164ce7165Smrgfor as_dir in $PATH
206264ce7165Smrgdo
206364ce7165Smrg  IFS=$as_save_IFS
206464ce7165Smrg  test -z "$as_dir" && as_dir=.
2065169a0819Smrg    $as_echo "PATH: $as_dir"
2066169a0819Smrg  done
206764ce7165SmrgIFS=$as_save_IFS
206864ce7165Smrg
206964ce7165Smrg} >&5
207064ce7165Smrg
207164ce7165Smrgcat >&5 <<_ACEOF
207264ce7165Smrg
207364ce7165Smrg
207464ce7165Smrg## ----------- ##
207564ce7165Smrg## Core tests. ##
207664ce7165Smrg## ----------- ##
207764ce7165Smrg
207864ce7165Smrg_ACEOF
207964ce7165Smrg
208064ce7165Smrg
208164ce7165Smrg# Keep a trace of the command line.
208264ce7165Smrg# Strip out --no-create and --no-recursion so they do not pile up.
208364ce7165Smrg# Strip out --silent because we don't want to record it for future runs.
208464ce7165Smrg# Also quote any args containing shell meta-characters.
208564ce7165Smrg# Make two passes to allow for proper duplicate-argument suppression.
208664ce7165Smrgac_configure_args=
208764ce7165Smrgac_configure_args0=
208864ce7165Smrgac_configure_args1=
208964ce7165Smrgac_must_keep_next=false
209064ce7165Smrgfor ac_pass in 1 2
209164ce7165Smrgdo
209264ce7165Smrg  for ac_arg
209364ce7165Smrg  do
209464ce7165Smrg    case $ac_arg in
209564ce7165Smrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
209664ce7165Smrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
209764ce7165Smrg    | -silent | --silent | --silen | --sile | --sil)
209864ce7165Smrg      continue ;;
209964ce7165Smrg    *\'*)
2100fb23d3a8Smrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
210164ce7165Smrg    esac
210264ce7165Smrg    case $ac_pass in
2103169a0819Smrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
210464ce7165Smrg    2)
2105169a0819Smrg      as_fn_append ac_configure_args1 " '$ac_arg'"
210664ce7165Smrg      if test $ac_must_keep_next = true; then
210764ce7165Smrg	ac_must_keep_next=false # Got value, back to normal.
210864ce7165Smrg      else
210964ce7165Smrg	case $ac_arg in
211064ce7165Smrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
211164ce7165Smrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
211264ce7165Smrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
211364ce7165Smrg	  | -with-* | --with-* | -without-* | --without-* | --x)
211464ce7165Smrg	    case "$ac_configure_args0 " in
211564ce7165Smrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
211664ce7165Smrg	    esac
211764ce7165Smrg	    ;;
211864ce7165Smrg	  -* ) ac_must_keep_next=true ;;
211964ce7165Smrg	esac
212064ce7165Smrg      fi
2121169a0819Smrg      as_fn_append ac_configure_args " '$ac_arg'"
212264ce7165Smrg      ;;
212364ce7165Smrg    esac
212464ce7165Smrg  done
212564ce7165Smrgdone
2126169a0819Smrg{ ac_configure_args0=; unset ac_configure_args0;}
2127169a0819Smrg{ ac_configure_args1=; unset ac_configure_args1;}
212864ce7165Smrg
212964ce7165Smrg# When interrupted or exit'd, cleanup temporary files, and complete
213064ce7165Smrg# config.log.  We remove comments because anyway the quotes in there
213164ce7165Smrg# would cause problems or look ugly.
213264ce7165Smrg# WARNING: Use '\'' to represent an apostrophe within the trap.
213364ce7165Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
213464ce7165Smrgtrap 'exit_status=$?
213564ce7165Smrg  # Save into config.log some information that might help in debugging.
213664ce7165Smrg  {
213764ce7165Smrg    echo
213864ce7165Smrg
2139169a0819Smrg    $as_echo "## ---------------- ##
214064ce7165Smrg## Cache variables. ##
2141169a0819Smrg## ---------------- ##"
214264ce7165Smrg    echo
214364ce7165Smrg    # The following way of writing the cache mishandles newlines in values,
214464ce7165Smrg(
214564ce7165Smrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
214664ce7165Smrg    eval ac_val=\$$ac_var
214764ce7165Smrg    case $ac_val in #(
214864ce7165Smrg    *${as_nl}*)
214964ce7165Smrg      case $ac_var in #(
2150169a0819Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2151fb23d3a8Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
215264ce7165Smrg      esac
215364ce7165Smrg      case $ac_var in #(
215464ce7165Smrg      _ | IFS | as_nl) ;; #(
2155fb23d3a8Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2156169a0819Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
215764ce7165Smrg      esac ;;
215864ce7165Smrg    esac
215964ce7165Smrg  done
216064ce7165Smrg  (set) 2>&1 |
216164ce7165Smrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
216264ce7165Smrg    *${as_nl}ac_space=\ *)
216364ce7165Smrg      sed -n \
216464ce7165Smrg	"s/'\''/'\''\\\\'\'''\''/g;
216564ce7165Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
216664ce7165Smrg      ;; #(
216764ce7165Smrg    *)
216864ce7165Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
216964ce7165Smrg      ;;
217064ce7165Smrg    esac |
217164ce7165Smrg    sort
217264ce7165Smrg)
217364ce7165Smrg    echo
217464ce7165Smrg
2175169a0819Smrg    $as_echo "## ----------------- ##
217664ce7165Smrg## Output variables. ##
2177169a0819Smrg## ----------------- ##"
217864ce7165Smrg    echo
217964ce7165Smrg    for ac_var in $ac_subst_vars
218064ce7165Smrg    do
218164ce7165Smrg      eval ac_val=\$$ac_var
218264ce7165Smrg      case $ac_val in
2183fb23d3a8Smrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
218464ce7165Smrg      esac
2185fb23d3a8Smrg      $as_echo "$ac_var='\''$ac_val'\''"
218664ce7165Smrg    done | sort
218764ce7165Smrg    echo
218864ce7165Smrg
218964ce7165Smrg    if test -n "$ac_subst_files"; then
2190169a0819Smrg      $as_echo "## ------------------- ##
219164ce7165Smrg## File substitutions. ##
2192169a0819Smrg## ------------------- ##"
219364ce7165Smrg      echo
219464ce7165Smrg      for ac_var in $ac_subst_files
219564ce7165Smrg      do
219664ce7165Smrg	eval ac_val=\$$ac_var
219764ce7165Smrg	case $ac_val in
2198fb23d3a8Smrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
219964ce7165Smrg	esac
2200fb23d3a8Smrg	$as_echo "$ac_var='\''$ac_val'\''"
220164ce7165Smrg      done | sort
220264ce7165Smrg      echo
220364ce7165Smrg    fi
220464ce7165Smrg
220564ce7165Smrg    if test -s confdefs.h; then
2206169a0819Smrg      $as_echo "## ----------- ##
220764ce7165Smrg## confdefs.h. ##
2208169a0819Smrg## ----------- ##"
220964ce7165Smrg      echo
221064ce7165Smrg      cat confdefs.h
221164ce7165Smrg      echo
221264ce7165Smrg    fi
221364ce7165Smrg    test "$ac_signal" != 0 &&
2214fb23d3a8Smrg      $as_echo "$as_me: caught signal $ac_signal"
2215fb23d3a8Smrg    $as_echo "$as_me: exit $exit_status"
221664ce7165Smrg  } >&5
221764ce7165Smrg  rm -f core *.core core.conftest.* &&
221864ce7165Smrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
221964ce7165Smrg    exit $exit_status
222064ce7165Smrg' 0
222164ce7165Smrgfor ac_signal in 1 2 13 15; do
2222169a0819Smrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
222364ce7165Smrgdone
222464ce7165Smrgac_signal=0
222564ce7165Smrg
222664ce7165Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
222764ce7165Smrgrm -f -r conftest* confdefs.h
222864ce7165Smrg
2229169a0819Smrg$as_echo "/* confdefs.h */" > confdefs.h
2230169a0819Smrg
223164ce7165Smrg# Predefined preprocessor variables.
223264ce7165Smrg
223364ce7165Smrgcat >>confdefs.h <<_ACEOF
223464ce7165Smrg#define PACKAGE_NAME "$PACKAGE_NAME"
223564ce7165Smrg_ACEOF
223664ce7165Smrg
223764ce7165Smrgcat >>confdefs.h <<_ACEOF
223864ce7165Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
223964ce7165Smrg_ACEOF
224064ce7165Smrg
224164ce7165Smrgcat >>confdefs.h <<_ACEOF
224264ce7165Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
224364ce7165Smrg_ACEOF
224464ce7165Smrg
224564ce7165Smrgcat >>confdefs.h <<_ACEOF
224664ce7165Smrg#define PACKAGE_STRING "$PACKAGE_STRING"
224764ce7165Smrg_ACEOF
224864ce7165Smrg
224964ce7165Smrgcat >>confdefs.h <<_ACEOF
225064ce7165Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
225164ce7165Smrg_ACEOF
225264ce7165Smrg
2253169a0819Smrgcat >>confdefs.h <<_ACEOF
2254169a0819Smrg#define PACKAGE_URL "$PACKAGE_URL"
2255169a0819Smrg_ACEOF
2256169a0819Smrg
225764ce7165Smrg
225864ce7165Smrg# Let the site file select an alternate cache file if it wants to.
2259fb23d3a8Smrg# Prefer an explicitly selected file to automatically selected ones.
2260fb23d3a8Smrgac_site_file1=NONE
2261fb23d3a8Smrgac_site_file2=NONE
226264ce7165Smrgif test -n "$CONFIG_SITE"; then
2263169a0819Smrg  # We do not want a PATH search for config.site.
2264169a0819Smrg  case $CONFIG_SITE in #((
2265169a0819Smrg    -*)  ac_site_file1=./$CONFIG_SITE;;
2266169a0819Smrg    */*) ac_site_file1=$CONFIG_SITE;;
2267169a0819Smrg    *)   ac_site_file1=./$CONFIG_SITE;;
2268169a0819Smrg  esac
226964ce7165Smrgelif test "x$prefix" != xNONE; then
2270fb23d3a8Smrg  ac_site_file1=$prefix/share/config.site
2271fb23d3a8Smrg  ac_site_file2=$prefix/etc/config.site
227264ce7165Smrgelse
2273fb23d3a8Smrg  ac_site_file1=$ac_default_prefix/share/config.site
2274fb23d3a8Smrg  ac_site_file2=$ac_default_prefix/etc/config.site
227564ce7165Smrgfi
2276fb23d3a8Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
227764ce7165Smrgdo
2278fb23d3a8Smrg  test "x$ac_site_file" = xNONE && continue
2279169a0819Smrg  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2280169a0819Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2281fb23d3a8Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
228264ce7165Smrg    sed 's/^/| /' "$ac_site_file" >&5
2283169a0819Smrg    . "$ac_site_file" \
2284169a0819Smrg      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2285169a0819Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2286169a0819Smrgas_fn_error $? "failed to load site script $ac_site_file
2287169a0819SmrgSee \`config.log' for more details" "$LINENO" 5; }
228864ce7165Smrg  fi
228964ce7165Smrgdone
229064ce7165Smrg
229164ce7165Smrgif test -r "$cache_file"; then
2292169a0819Smrg  # Some versions of bash will fail to source /dev/null (special files
2293169a0819Smrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2294169a0819Smrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2295169a0819Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2296fb23d3a8Smrg$as_echo "$as_me: loading cache $cache_file" >&6;}
229764ce7165Smrg    case $cache_file in
229864ce7165Smrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
229964ce7165Smrg      *)                      . "./$cache_file";;
230064ce7165Smrg    esac
230164ce7165Smrg  fi
230264ce7165Smrgelse
2303169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2304fb23d3a8Smrg$as_echo "$as_me: creating cache $cache_file" >&6;}
230564ce7165Smrg  >$cache_file
230664ce7165Smrgfi
230764ce7165Smrg
230864ce7165Smrg# Check that the precious variables saved in the cache have kept the same
230964ce7165Smrg# value.
231064ce7165Smrgac_cache_corrupted=false
231164ce7165Smrgfor ac_var in $ac_precious_vars; do
231264ce7165Smrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
231364ce7165Smrg  eval ac_new_set=\$ac_env_${ac_var}_set
231464ce7165Smrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
231564ce7165Smrg  eval ac_new_val=\$ac_env_${ac_var}_value
231664ce7165Smrg  case $ac_old_set,$ac_new_set in
231764ce7165Smrg    set,)
2318169a0819Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2319fb23d3a8Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
232064ce7165Smrg      ac_cache_corrupted=: ;;
232164ce7165Smrg    ,set)
2322169a0819Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2323fb23d3a8Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
232464ce7165Smrg      ac_cache_corrupted=: ;;
232564ce7165Smrg    ,);;
232664ce7165Smrg    *)
232764ce7165Smrg      if test "x$ac_old_val" != "x$ac_new_val"; then
2328fb23d3a8Smrg	# differences in whitespace do not lead to failure.
2329fb23d3a8Smrg	ac_old_val_w=`echo x $ac_old_val`
2330fb23d3a8Smrg	ac_new_val_w=`echo x $ac_new_val`
2331fb23d3a8Smrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2332169a0819Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2333fb23d3a8Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2334fb23d3a8Smrg	  ac_cache_corrupted=:
2335fb23d3a8Smrg	else
2336169a0819Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2337fb23d3a8Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2338fb23d3a8Smrg	  eval $ac_var=\$ac_old_val
2339fb23d3a8Smrg	fi
2340169a0819Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2341fb23d3a8Smrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2342169a0819Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2343fb23d3a8Smrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
234464ce7165Smrg      fi;;
234564ce7165Smrg  esac
234664ce7165Smrg  # Pass precious variables to config.status.
234764ce7165Smrg  if test "$ac_new_set" = set; then
234864ce7165Smrg    case $ac_new_val in
2349fb23d3a8Smrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
235064ce7165Smrg    *) ac_arg=$ac_var=$ac_new_val ;;
235164ce7165Smrg    esac
235264ce7165Smrg    case " $ac_configure_args " in
235364ce7165Smrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2354169a0819Smrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
235564ce7165Smrg    esac
235664ce7165Smrg  fi
235764ce7165Smrgdone
235864ce7165Smrgif $ac_cache_corrupted; then
2359169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2360fb23d3a8Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2361169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2362fb23d3a8Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2363169a0819Smrg  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
236464ce7165Smrgfi
2365169a0819Smrg## -------------------- ##
2366169a0819Smrg## Main body of script. ##
2367169a0819Smrg## -------------------- ##
236864ce7165Smrg
2369169a0819Smrgac_ext=c
2370169a0819Smrgac_cpp='$CPP $CPPFLAGS'
2371169a0819Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2372169a0819Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2373169a0819Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
237464ce7165Smrg
237564ce7165Smrg
23763544ea2eSmrg
23773544ea2eSmrgac_config_headers="$ac_config_headers config.h"
23783544ea2eSmrg
23793544ea2eSmrg
23803544ea2eSmrg# Initialize Automake
238195fdd44cSmrgam__api_version='1.15'
238264ce7165Smrg
238364ce7165Smrgac_aux_dir=
238464ce7165Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
238564ce7165Smrg  if test -f "$ac_dir/install-sh"; then
238664ce7165Smrg    ac_aux_dir=$ac_dir
238764ce7165Smrg    ac_install_sh="$ac_aux_dir/install-sh -c"
238864ce7165Smrg    break
238964ce7165Smrg  elif test -f "$ac_dir/install.sh"; then
239064ce7165Smrg    ac_aux_dir=$ac_dir
239164ce7165Smrg    ac_install_sh="$ac_aux_dir/install.sh -c"
239264ce7165Smrg    break
239364ce7165Smrg  elif test -f "$ac_dir/shtool"; then
239464ce7165Smrg    ac_aux_dir=$ac_dir
239564ce7165Smrg    ac_install_sh="$ac_aux_dir/shtool install -c"
239664ce7165Smrg    break
239764ce7165Smrg  fi
239864ce7165Smrgdone
239964ce7165Smrgif test -z "$ac_aux_dir"; then
2400169a0819Smrg  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
240164ce7165Smrgfi
240264ce7165Smrg
240364ce7165Smrg# These three variables are undocumented and unsupported,
240464ce7165Smrg# and are intended to be withdrawn in a future Autoconf release.
240564ce7165Smrg# They can cause serious problems if a builder's source tree is in a directory
240664ce7165Smrg# whose full name contains unusual characters.
240764ce7165Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
240864ce7165Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
240964ce7165Smrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
241064ce7165Smrg
241164ce7165Smrg
241264ce7165Smrg# Find a good install program.  We prefer a C program (faster),
241364ce7165Smrg# so one script is as good as another.  But avoid the broken or
241464ce7165Smrg# incompatible versions:
241564ce7165Smrg# SysV /etc/install, /usr/sbin/install
241664ce7165Smrg# SunOS /usr/etc/install
241764ce7165Smrg# IRIX /sbin/install
241864ce7165Smrg# AIX /bin/install
241964ce7165Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
242064ce7165Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
242164ce7165Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
242264ce7165Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
242364ce7165Smrg# OS/2's system install, which has a completely different semantic
242464ce7165Smrg# ./install, which can be erroneously created by make from ./install.sh.
2425fb23d3a8Smrg# Reject install programs that cannot install multiple files.
2426169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2427fb23d3a8Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
242864ce7165Smrgif test -z "$INSTALL"; then
2429169a0819Smrgif ${ac_cv_path_install+:} false; then :
2430fb23d3a8Smrg  $as_echo_n "(cached) " >&6
243164ce7165Smrgelse
243264ce7165Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243364ce7165Smrgfor as_dir in $PATH
243464ce7165Smrgdo
243564ce7165Smrg  IFS=$as_save_IFS
243664ce7165Smrg  test -z "$as_dir" && as_dir=.
2437169a0819Smrg    # Account for people who put trailing slashes in PATH elements.
2438169a0819Smrgcase $as_dir/ in #((
2439169a0819Smrg  ./ | .// | /[cC]/* | \
244064ce7165Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2441169a0819Smrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
244264ce7165Smrg  /usr/ucb/* ) ;;
244364ce7165Smrg  *)
244464ce7165Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
244564ce7165Smrg    # Don't use installbsd from OSF since it installs stuff as root
244664ce7165Smrg    # by default.
244764ce7165Smrg    for ac_prog in ginstall scoinst install; do
244864ce7165Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
244995fdd44cSmrg	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
245064ce7165Smrg	  if test $ac_prog = install &&
245164ce7165Smrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
245264ce7165Smrg	    # AIX install.  It has an incompatible calling convention.
245364ce7165Smrg	    :
245464ce7165Smrg	  elif test $ac_prog = install &&
245564ce7165Smrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
245664ce7165Smrg	    # program-specific install script used by HP pwplus--don't use.
245764ce7165Smrg	    :
245864ce7165Smrg	  else
2459fb23d3a8Smrg	    rm -rf conftest.one conftest.two conftest.dir
2460fb23d3a8Smrg	    echo one > conftest.one
2461fb23d3a8Smrg	    echo two > conftest.two
2462fb23d3a8Smrg	    mkdir conftest.dir
2463fb23d3a8Smrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2464fb23d3a8Smrg	      test -s conftest.one && test -s conftest.two &&
2465fb23d3a8Smrg	      test -s conftest.dir/conftest.one &&
2466fb23d3a8Smrg	      test -s conftest.dir/conftest.two
2467fb23d3a8Smrg	    then
2468fb23d3a8Smrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2469fb23d3a8Smrg	      break 3
2470fb23d3a8Smrg	    fi
247164ce7165Smrg	  fi
247264ce7165Smrg	fi
247364ce7165Smrg      done
247464ce7165Smrg    done
247564ce7165Smrg    ;;
247664ce7165Smrgesac
2477fb23d3a8Smrg
2478169a0819Smrg  done
247964ce7165SmrgIFS=$as_save_IFS
248064ce7165Smrg
2481fb23d3a8Smrgrm -rf conftest.one conftest.two conftest.dir
248264ce7165Smrg
248364ce7165Smrgfi
248464ce7165Smrg  if test "${ac_cv_path_install+set}" = set; then
248564ce7165Smrg    INSTALL=$ac_cv_path_install
248664ce7165Smrg  else
248764ce7165Smrg    # As a last resort, use the slow shell script.  Don't cache a
248864ce7165Smrg    # value for INSTALL within a source directory, because that will
248964ce7165Smrg    # break other packages using the cache if that directory is
249064ce7165Smrg    # removed, or if the value is a relative name.
249164ce7165Smrg    INSTALL=$ac_install_sh
249264ce7165Smrg  fi
249364ce7165Smrgfi
2494169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2495fb23d3a8Smrg$as_echo "$INSTALL" >&6; }
249664ce7165Smrg
249764ce7165Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
249864ce7165Smrg# It thinks the first close brace ends the variable substitution.
249964ce7165Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
250064ce7165Smrg
250164ce7165Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
250264ce7165Smrg
250364ce7165Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
250464ce7165Smrg
2505169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2506fb23d3a8Smrg$as_echo_n "checking whether build environment is sane... " >&6; }
2507fb23d3a8Smrg# Reject unsafe characters in $srcdir or the absolute working directory
2508fb23d3a8Smrg# name.  Accept space and tab only in the latter.
2509fb23d3a8Smrgam_lf='
2510fb23d3a8Smrg'
2511fb23d3a8Smrgcase `pwd` in
2512fb23d3a8Smrg  *[\\\"\#\$\&\'\`$am_lf]*)
2513169a0819Smrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2514fb23d3a8Smrgesac
2515fb23d3a8Smrgcase $srcdir in
2516fb23d3a8Smrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
251781440437Smrg    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2518fb23d3a8Smrgesac
2519fb23d3a8Smrg
252081440437Smrg# Do 'set' in a subshell so we don't clobber the current shell's
252164ce7165Smrg# arguments.  Must try -L first in case configure is actually a
252264ce7165Smrg# symlink; some systems play weird games with the mod time of symlinks
252364ce7165Smrg# (eg FreeBSD returns the mod time of the symlink's containing
252464ce7165Smrg# directory).
252564ce7165Smrgif (
252681440437Smrg   am_has_slept=no
252781440437Smrg   for am_try in 1 2; do
252881440437Smrg     echo "timestamp, slept: $am_has_slept" > conftest.file
252981440437Smrg     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
253081440437Smrg     if test "$*" = "X"; then
253181440437Smrg	# -L didn't work.
253281440437Smrg	set X `ls -t "$srcdir/configure" conftest.file`
253381440437Smrg     fi
253481440437Smrg     if test "$*" != "X $srcdir/configure conftest.file" \
253581440437Smrg	&& test "$*" != "X conftest.file $srcdir/configure"; then
253681440437Smrg
253781440437Smrg	# If neither matched, then we have a broken ls.  This can happen
253881440437Smrg	# if, for instance, CONFIG_SHELL is bash and it inherits a
253981440437Smrg	# broken ls alias from the environment.  This has actually
254081440437Smrg	# happened.  Such a system could not be considered "sane".
254181440437Smrg	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
254281440437Smrg  alias in your environment" "$LINENO" 5
254381440437Smrg     fi
254481440437Smrg     if test "$2" = conftest.file || test $am_try -eq 2; then
254581440437Smrg       break
254681440437Smrg     fi
254781440437Smrg     # Just in case.
254881440437Smrg     sleep 1
254981440437Smrg     am_has_slept=yes
255081440437Smrg   done
255164ce7165Smrg   test "$2" = conftest.file
255264ce7165Smrg   )
255364ce7165Smrgthen
255464ce7165Smrg   # Ok.
255564ce7165Smrg   :
255664ce7165Smrgelse
2557169a0819Smrg   as_fn_error $? "newly created file is older than distributed files!
2558169a0819SmrgCheck your system clock" "$LINENO" 5
255964ce7165Smrgfi
2560169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2561fb23d3a8Smrg$as_echo "yes" >&6; }
256281440437Smrg# If we didn't sleep, we still need to ensure time stamps of config.status and
256381440437Smrg# generated files are strictly newer.
256481440437Smrgam_sleep_pid=
256581440437Smrgif grep 'slept: no' conftest.file >/dev/null 2>&1; then
256681440437Smrg  ( sleep 1 ) &
256781440437Smrg  am_sleep_pid=$!
256881440437Smrgfi
256981440437Smrg
257081440437Smrgrm -f conftest.file
257181440437Smrg
257264ce7165Smrgtest "$program_prefix" != NONE &&
257364ce7165Smrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
257464ce7165Smrg# Use a double $ so make ignores it.
257564ce7165Smrgtest "$program_suffix" != NONE &&
257664ce7165Smrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2577fb23d3a8Smrg# Double any \ or $.
257864ce7165Smrg# By default was `s,x,x', remove it if useless.
2579fb23d3a8Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2580fb23d3a8Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
258164ce7165Smrg
258295fdd44cSmrg# Expand $ac_aux_dir to an absolute path.
258395fdd44cSmrgam_aux_dir=`cd "$ac_aux_dir" && pwd`
258464ce7165Smrg
2585fb23d3a8Smrgif test x"${MISSING+set}" != xset; then
2586fb23d3a8Smrg  case $am_aux_dir in
2587fb23d3a8Smrg  *\ * | *\	*)
2588fb23d3a8Smrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2589fb23d3a8Smrg  *)
2590fb23d3a8Smrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2591fb23d3a8Smrg  esac
2592fb23d3a8Smrgfi
259364ce7165Smrg# Use eval to expand $SHELL
259481440437Smrgif eval "$MISSING --is-lightweight"; then
259581440437Smrg  am_missing_run="$MISSING "
259664ce7165Smrgelse
259764ce7165Smrg  am_missing_run=
259881440437Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
259981440437Smrg$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
260064ce7165Smrgfi
260164ce7165Smrg
260295fdd44cSmrgif test x"${install_sh+set}" != xset; then
2603fb23d3a8Smrg  case $am_aux_dir in
2604fb23d3a8Smrg  *\ * | *\	*)
2605fb23d3a8Smrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2606fb23d3a8Smrg  *)
2607fb23d3a8Smrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
2608fb23d3a8Smrg  esac
2609fb23d3a8Smrgfi
2610fb23d3a8Smrg
261181440437Smrg# Installed binaries are usually stripped using 'strip' when the user
261281440437Smrg# run "make install-strip".  However 'strip' might not be the right
2613fb23d3a8Smrg# tool to use in cross-compilation environments, therefore Automake
261481440437Smrg# will honor the 'STRIP' environment variable to overrule this program.
2615fb23d3a8Smrgif test "$cross_compiling" != no; then
2616fb23d3a8Smrg  if test -n "$ac_tool_prefix"; then
2617fb23d3a8Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2618fb23d3a8Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
2619169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2620fb23d3a8Smrg$as_echo_n "checking for $ac_word... " >&6; }
2621169a0819Smrgif ${ac_cv_prog_STRIP+:} false; then :
2622fb23d3a8Smrg  $as_echo_n "(cached) " >&6
2623fb23d3a8Smrgelse
2624fb23d3a8Smrg  if test -n "$STRIP"; then
2625fb23d3a8Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2626fb23d3a8Smrgelse
2627fb23d3a8Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628fb23d3a8Smrgfor as_dir in $PATH
2629fb23d3a8Smrgdo
2630fb23d3a8Smrg  IFS=$as_save_IFS
2631fb23d3a8Smrg  test -z "$as_dir" && as_dir=.
2632169a0819Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
263395fdd44cSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2634fb23d3a8Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2635169a0819Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2636fb23d3a8Smrg    break 2
2637fb23d3a8Smrg  fi
2638fb23d3a8Smrgdone
2639169a0819Smrg  done
2640fb23d3a8SmrgIFS=$as_save_IFS
2641fb23d3a8Smrg
2642fb23d3a8Smrgfi
2643fb23d3a8Smrgfi
2644fb23d3a8SmrgSTRIP=$ac_cv_prog_STRIP
2645fb23d3a8Smrgif test -n "$STRIP"; then
2646169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2647fb23d3a8Smrg$as_echo "$STRIP" >&6; }
2648fb23d3a8Smrgelse
2649169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2650fb23d3a8Smrg$as_echo "no" >&6; }
2651fb23d3a8Smrgfi
2652fb23d3a8Smrg
2653fb23d3a8Smrg
2654fb23d3a8Smrgfi
2655fb23d3a8Smrgif test -z "$ac_cv_prog_STRIP"; then
2656fb23d3a8Smrg  ac_ct_STRIP=$STRIP
2657fb23d3a8Smrg  # Extract the first word of "strip", so it can be a program name with args.
2658fb23d3a8Smrgset dummy strip; ac_word=$2
2659169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2660fb23d3a8Smrg$as_echo_n "checking for $ac_word... " >&6; }
2661169a0819Smrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2662fb23d3a8Smrg  $as_echo_n "(cached) " >&6
2663fb23d3a8Smrgelse
2664fb23d3a8Smrg  if test -n "$ac_ct_STRIP"; then
2665fb23d3a8Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2666fb23d3a8Smrgelse
2667fb23d3a8Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668fb23d3a8Smrgfor as_dir in $PATH
2669fb23d3a8Smrgdo
2670fb23d3a8Smrg  IFS=$as_save_IFS
2671fb23d3a8Smrg  test -z "$as_dir" && as_dir=.
2672169a0819Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
267395fdd44cSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2674fb23d3a8Smrg    ac_cv_prog_ac_ct_STRIP="strip"
2675169a0819Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2676fb23d3a8Smrg    break 2
2677fb23d3a8Smrg  fi
2678fb23d3a8Smrgdone
2679169a0819Smrg  done
2680fb23d3a8SmrgIFS=$as_save_IFS
2681fb23d3a8Smrg
2682fb23d3a8Smrgfi
2683fb23d3a8Smrgfi
2684fb23d3a8Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2685fb23d3a8Smrgif test -n "$ac_ct_STRIP"; then
2686169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2687fb23d3a8Smrg$as_echo "$ac_ct_STRIP" >&6; }
2688fb23d3a8Smrgelse
2689169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2690fb23d3a8Smrg$as_echo "no" >&6; }
2691fb23d3a8Smrgfi
2692fb23d3a8Smrg
2693fb23d3a8Smrg  if test "x$ac_ct_STRIP" = x; then
2694fb23d3a8Smrg    STRIP=":"
2695fb23d3a8Smrg  else
2696fb23d3a8Smrg    case $cross_compiling:$ac_tool_warned in
2697fb23d3a8Smrgyes:)
2698169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2699fb23d3a8Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2700fb23d3a8Smrgac_tool_warned=yes ;;
2701fb23d3a8Smrgesac
2702fb23d3a8Smrg    STRIP=$ac_ct_STRIP
2703fb23d3a8Smrg  fi
2704fb23d3a8Smrgelse
2705fb23d3a8Smrg  STRIP="$ac_cv_prog_STRIP"
2706fb23d3a8Smrgfi
2707fb23d3a8Smrg
2708fb23d3a8Smrgfi
2709fb23d3a8SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2710fb23d3a8Smrg
2711169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2712fb23d3a8Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2713fb23d3a8Smrgif test -z "$MKDIR_P"; then
2714169a0819Smrg  if ${ac_cv_path_mkdir+:} false; then :
2715fb23d3a8Smrg  $as_echo_n "(cached) " >&6
2716fb23d3a8Smrgelse
271764ce7165Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
271864ce7165Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
271964ce7165Smrgdo
272064ce7165Smrg  IFS=$as_save_IFS
272164ce7165Smrg  test -z "$as_dir" && as_dir=.
2722169a0819Smrg    for ac_prog in mkdir gmkdir; do
272364ce7165Smrg	 for ac_exec_ext in '' $ac_executable_extensions; do
272495fdd44cSmrg	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
272564ce7165Smrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
272664ce7165Smrg	     'mkdir (GNU coreutils) '* | \
272764ce7165Smrg	     'mkdir (coreutils) '* | \
272864ce7165Smrg	     'mkdir (fileutils) '4.1*)
272964ce7165Smrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
273064ce7165Smrg	       break 3;;
273164ce7165Smrg	   esac
273264ce7165Smrg	 done
273364ce7165Smrg       done
2734169a0819Smrg  done
273564ce7165SmrgIFS=$as_save_IFS
273664ce7165Smrg
273764ce7165Smrgfi
273864ce7165Smrg
2739169a0819Smrg  test -d ./--version && rmdir ./--version
274064ce7165Smrg  if test "${ac_cv_path_mkdir+set}" = set; then
274164ce7165Smrg    MKDIR_P="$ac_cv_path_mkdir -p"
274264ce7165Smrg  else
274364ce7165Smrg    # As a last resort, use the slow shell script.  Don't cache a
274464ce7165Smrg    # value for MKDIR_P within a source directory, because that will
274564ce7165Smrg    # break other packages using the cache if that directory is
274664ce7165Smrg    # removed, or if the value is a relative name.
274764ce7165Smrg    MKDIR_P="$ac_install_sh -d"
274864ce7165Smrg  fi
274964ce7165Smrgfi
2750169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2751fb23d3a8Smrg$as_echo "$MKDIR_P" >&6; }
275264ce7165Smrg
275364ce7165Smrgfor ac_prog in gawk mawk nawk awk
275464ce7165Smrgdo
275564ce7165Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
275664ce7165Smrgset dummy $ac_prog; ac_word=$2
2757169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2758fb23d3a8Smrg$as_echo_n "checking for $ac_word... " >&6; }
2759169a0819Smrgif ${ac_cv_prog_AWK+:} false; then :
2760fb23d3a8Smrg  $as_echo_n "(cached) " >&6
276164ce7165Smrgelse
276264ce7165Smrg  if test -n "$AWK"; then
276364ce7165Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
276464ce7165Smrgelse
276564ce7165Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
276664ce7165Smrgfor as_dir in $PATH
276764ce7165Smrgdo
276864ce7165Smrg  IFS=$as_save_IFS
276964ce7165Smrg  test -z "$as_dir" && as_dir=.
2770169a0819Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
277195fdd44cSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
277264ce7165Smrg    ac_cv_prog_AWK="$ac_prog"
2773169a0819Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
277464ce7165Smrg    break 2
277564ce7165Smrg  fi
277664ce7165Smrgdone
2777169a0819Smrg  done
277864ce7165SmrgIFS=$as_save_IFS
277964ce7165Smrg
278064ce7165Smrgfi
278164ce7165Smrgfi
278264ce7165SmrgAWK=$ac_cv_prog_AWK
278364ce7165Smrgif test -n "$AWK"; then
2784169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2785fb23d3a8Smrg$as_echo "$AWK" >&6; }
278664ce7165Smrgelse
2787169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2788fb23d3a8Smrg$as_echo "no" >&6; }
278964ce7165Smrgfi
279064ce7165Smrg
279164ce7165Smrg
279264ce7165Smrg  test -n "$AWK" && break
279364ce7165Smrgdone
279464ce7165Smrg
2795169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2796fb23d3a8Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2797fb23d3a8Smrgset x ${MAKE-make}
2798fb23d3a8Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2799169a0819Smrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2800fb23d3a8Smrg  $as_echo_n "(cached) " >&6
280164ce7165Smrgelse
280264ce7165Smrg  cat >conftest.make <<\_ACEOF
280364ce7165SmrgSHELL = /bin/sh
280464ce7165Smrgall:
280564ce7165Smrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
280664ce7165Smrg_ACEOF
2807169a0819Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
280864ce7165Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
280964ce7165Smrg  *@@@%%%=?*=@@@%%%*)
281064ce7165Smrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
281164ce7165Smrg  *)
281264ce7165Smrg    eval ac_cv_prog_make_${ac_make}_set=no;;
281364ce7165Smrgesac
281464ce7165Smrgrm -f conftest.make
281564ce7165Smrgfi
281664ce7165Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2817169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2818fb23d3a8Smrg$as_echo "yes" >&6; }
281964ce7165Smrg  SET_MAKE=
282064ce7165Smrgelse
2821169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822fb23d3a8Smrg$as_echo "no" >&6; }
282364ce7165Smrg  SET_MAKE="MAKE=${MAKE-make}"
282464ce7165Smrgfi
282564ce7165Smrg
282664ce7165Smrgrm -rf .tst 2>/dev/null
282764ce7165Smrgmkdir .tst 2>/dev/null
282864ce7165Smrgif test -d .tst; then
282964ce7165Smrg  am__leading_dot=.
283064ce7165Smrgelse
283164ce7165Smrg  am__leading_dot=_
283264ce7165Smrgfi
283364ce7165Smrgrmdir .tst 2>/dev/null
283464ce7165Smrg
283581440437Smrg# Check whether --enable-silent-rules was given.
283681440437Smrgif test "${enable_silent_rules+set}" = set; then :
283781440437Smrg  enableval=$enable_silent_rules;
283881440437Smrgfi
283981440437Smrg
284081440437Smrgcase $enable_silent_rules in # (((
284181440437Smrg  yes) AM_DEFAULT_VERBOSITY=0;;
284281440437Smrg   no) AM_DEFAULT_VERBOSITY=1;;
284381440437Smrg    *) AM_DEFAULT_VERBOSITY=1;;
284481440437Smrgesac
284581440437Smrgam_make=${MAKE-make}
284681440437Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
284781440437Smrg$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
284881440437Smrgif ${am_cv_make_support_nested_variables+:} false; then :
284981440437Smrg  $as_echo_n "(cached) " >&6
285081440437Smrgelse
285181440437Smrg  if $as_echo 'TRUE=$(BAR$(V))
285281440437SmrgBAR0=false
285381440437SmrgBAR1=true
285481440437SmrgV=1
285581440437Smrgam__doit:
285681440437Smrg	@$(TRUE)
285781440437Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
285881440437Smrg  am_cv_make_support_nested_variables=yes
285981440437Smrgelse
286081440437Smrg  am_cv_make_support_nested_variables=no
286181440437Smrgfi
286281440437Smrgfi
286381440437Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
286481440437Smrg$as_echo "$am_cv_make_support_nested_variables" >&6; }
286581440437Smrgif test $am_cv_make_support_nested_variables = yes; then
286681440437Smrg    AM_V='$(V)'
286781440437Smrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
286881440437Smrgelse
286981440437Smrg  AM_V=$AM_DEFAULT_VERBOSITY
287081440437Smrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
287181440437Smrgfi
287281440437SmrgAM_BACKSLASH='\'
287381440437Smrg
287464ce7165Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
287564ce7165Smrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
287664ce7165Smrg  # is not polluted with repeated "-I."
287764ce7165Smrg  am__isrc=' -I$(srcdir)'
287864ce7165Smrg  # test to see if srcdir already configured
287964ce7165Smrg  if test -f $srcdir/config.status; then
2880169a0819Smrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
288164ce7165Smrg  fi
288264ce7165Smrgfi
288364ce7165Smrg
288464ce7165Smrg# test whether we have cygpath
288564ce7165Smrgif test -z "$CYGPATH_W"; then
288664ce7165Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
288764ce7165Smrg    CYGPATH_W='cygpath -w'
288864ce7165Smrg  else
288964ce7165Smrg    CYGPATH_W=echo
289064ce7165Smrg  fi
289164ce7165Smrgfi
289264ce7165Smrg
289364ce7165Smrg
289464ce7165Smrg# Define the identity of the package.
289564ce7165Smrg PACKAGE='xhost'
2896aadd013eSmrg VERSION='1.0.8'
289764ce7165Smrg
289864ce7165Smrg
289964ce7165Smrgcat >>confdefs.h <<_ACEOF
290064ce7165Smrg#define PACKAGE "$PACKAGE"
290164ce7165Smrg_ACEOF
290264ce7165Smrg
290364ce7165Smrg
290464ce7165Smrgcat >>confdefs.h <<_ACEOF
290564ce7165Smrg#define VERSION "$VERSION"
290664ce7165Smrg_ACEOF
290764ce7165Smrg
290864ce7165Smrg# Some tools Automake needs.
290964ce7165Smrg
291064ce7165SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
291164ce7165Smrg
291264ce7165Smrg
291364ce7165SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
291464ce7165Smrg
291564ce7165Smrg
291664ce7165SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
291764ce7165Smrg
291864ce7165Smrg
291964ce7165SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
292064ce7165Smrg
292164ce7165Smrg
292264ce7165SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
292364ce7165Smrg
292481440437Smrg# For better backward compatibility.  To be removed once Automake 1.9.x
292581440437Smrg# dies out for good.  For more background, see:
292681440437Smrg# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
292781440437Smrg# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
292881440437Smrgmkdir_p='$(MKDIR_P)'
292981440437Smrg
293095fdd44cSmrg# We need awk for the "check" target (and possibly the TAP driver).  The
293195fdd44cSmrg# system "awk" is bad on some platforms.
293281440437Smrg# Always define AMTAR for backward compatibility.  Yes, it's still used
293381440437Smrg# in the wild :-(  We should find a proper way to deprecate it ...
293481440437SmrgAMTAR='$${TAR-tar}'
293581440437Smrg
293664ce7165Smrg
293781440437Smrg# We'll loop over all known methods to create a tar archive until one works.
293881440437Smrg_am_tools='gnutar  pax cpio none'
293964ce7165Smrg
294081440437Smrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
294164ce7165Smrg
294264ce7165Smrg
294364ce7165Smrg
294464ce7165Smrg
294564ce7165Smrg
2946fb23d3a8Smrg
294781440437Smrg# POSIX will say in a future version that running "rm -f" with no argument
294881440437Smrg# is OK; and we want to be able to make that assumption in our Makefile
294981440437Smrg# recipes.  So use an aggressive probe to check that the usage we want is
295081440437Smrg# actually supported "in the wild" to an acceptable degree.
295181440437Smrg# See automake bug#10828.
295281440437Smrg# To make any issue more visible, cause the running configure to be aborted
295381440437Smrg# by default if the 'rm' program in use doesn't match our expectations; the
295481440437Smrg# user can still override this though.
295581440437Smrgif rm -f && rm -fr && rm -rf; then : OK; else
295681440437Smrg  cat >&2 <<'END'
295781440437SmrgOops!
295881440437Smrg
295981440437SmrgYour 'rm' program seems unable to run without file operands specified
296081440437Smrgon the command line, even when the '-f' option is present.  This is contrary
296181440437Smrgto the behaviour of most rm programs out there, and not conforming with
296281440437Smrgthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
296381440437Smrg
296481440437SmrgPlease tell bug-automake@gnu.org about your system, including the value
296581440437Smrgof your $PATH and any error possibly output before this message.  This
296681440437Smrgcan help us improve future automake versions.
296781440437Smrg
296881440437SmrgEND
296981440437Smrg  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
297081440437Smrg    echo 'Configuration will proceed anyway, since you have set the' >&2
297181440437Smrg    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
297281440437Smrg    echo >&2
297381440437Smrg  else
297481440437Smrg    cat >&2 <<'END'
297581440437SmrgAborting the configuration process, to ensure you take notice of the issue.
297681440437Smrg
297781440437SmrgYou can download and install GNU coreutils to get an 'rm' implementation
297881440437Smrgthat behaves properly: <http://www.gnu.org/software/coreutils/>.
297981440437Smrg
298081440437SmrgIf you want to complete the configuration process using your problematic
298181440437Smrg'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
298281440437Smrgto "yes", and re-run configure.
298381440437Smrg
298481440437SmrgEND
298581440437Smrg    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
298681440437Smrg  fi
298781440437Smrgfi
298881440437Smrg
2989fb23d3a8Smrg
299095fdd44cSmrg# Set common system defines for POSIX extensions, such as _GNU_SOURCE
299195fdd44cSmrg# Must be called before any macros that run the compiler (like
299295fdd44cSmrg# XORG_DEFAULT_OPTIONS) to avoid autoconf errors.
2993169a0819SmrgDEPDIR="${am__leading_dot}deps"
2994169a0819Smrg
2995169a0819Smrgac_config_commands="$ac_config_commands depfiles"
2996169a0819Smrg
2997169a0819Smrg
2998169a0819Smrgam_make=${MAKE-make}
2999169a0819Smrgcat > confinc << 'END'
3000169a0819Smrgam__doit:
3001169a0819Smrg	@echo this is the am__doit target
3002169a0819Smrg.PHONY: am__doit
3003169a0819SmrgEND
3004169a0819Smrg# If we don't find an include directive, just comment out the code.
3005169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3006169a0819Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
3007169a0819Smrgam__include="#"
3008169a0819Smrgam__quote=
3009169a0819Smrg_am_result=none
3010169a0819Smrg# First try GNU make style include.
3011169a0819Smrgecho "include confinc" > confmf
301281440437Smrg# Ignore all kinds of additional output from 'make'.
3013169a0819Smrgcase `$am_make -s -f confmf 2> /dev/null` in #(
3014169a0819Smrg*the\ am__doit\ target*)
3015169a0819Smrg  am__include=include
3016169a0819Smrg  am__quote=
3017169a0819Smrg  _am_result=GNU
3018169a0819Smrg  ;;
3019169a0819Smrgesac
3020169a0819Smrg# Now try BSD make style include.
3021169a0819Smrgif test "$am__include" = "#"; then
3022169a0819Smrg   echo '.include "confinc"' > confmf
3023169a0819Smrg   case `$am_make -s -f confmf 2> /dev/null` in #(
3024169a0819Smrg   *the\ am__doit\ target*)
3025169a0819Smrg     am__include=.include
3026169a0819Smrg     am__quote="\""
3027169a0819Smrg     _am_result=BSD
3028169a0819Smrg     ;;
3029169a0819Smrg   esac
3030169a0819Smrgfi
3031169a0819Smrg
3032169a0819Smrg
3033169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3034169a0819Smrg$as_echo "$_am_result" >&6; }
3035169a0819Smrgrm -f confinc confmf
3036169a0819Smrg
3037169a0819Smrg# Check whether --enable-dependency-tracking was given.
3038169a0819Smrgif test "${enable_dependency_tracking+set}" = set; then :
3039169a0819Smrg  enableval=$enable_dependency_tracking;
3040169a0819Smrgfi
3041169a0819Smrg
3042169a0819Smrgif test "x$enable_dependency_tracking" != xno; then
3043169a0819Smrg  am_depcomp="$ac_aux_dir/depcomp"
3044169a0819Smrg  AMDEPBACKSLASH='\'
304581440437Smrg  am__nodep='_no'
3046169a0819Smrgfi
3047169a0819Smrg if test "x$enable_dependency_tracking" != xno; then
3048169a0819Smrg  AMDEP_TRUE=
3049169a0819Smrg  AMDEP_FALSE='#'
3050169a0819Smrgelse
3051169a0819Smrg  AMDEP_TRUE='#'
3052169a0819Smrg  AMDEP_FALSE=
3053169a0819Smrgfi
3054169a0819Smrg
3055169a0819Smrg
305664ce7165Smrgac_ext=c
305764ce7165Smrgac_cpp='$CPP $CPPFLAGS'
305864ce7165Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
305964ce7165Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
306064ce7165Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
306164ce7165Smrgif test -n "$ac_tool_prefix"; then
306264ce7165Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
306364ce7165Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
3064169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3065fb23d3a8Smrg$as_echo_n "checking for $ac_word... " >&6; }
3066169a0819Smrgif ${ac_cv_prog_CC+:} false; then :
3067fb23d3a8Smrg  $as_echo_n "(cached) " >&6
306864ce7165Smrgelse
306964ce7165Smrg  if test -n "$CC"; then
307064ce7165Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
307164ce7165Smrgelse
307264ce7165Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
307364ce7165Smrgfor as_dir in $PATH
307464ce7165Smrgdo
307564ce7165Smrg  IFS=$as_save_IFS
307664ce7165Smrg  test -z "$as_dir" && as_dir=.
3077169a0819Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
307895fdd44cSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
307964ce7165Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3080169a0819Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
308164ce7165Smrg    break 2
308264ce7165Smrg  fi
308364ce7165Smrgdone
3084169a0819Smrg  done
308564ce7165SmrgIFS=$as_save_IFS
308664ce7165Smrg
308764ce7165Smrgfi
308864ce7165Smrgfi
308964ce7165SmrgCC=$ac_cv_prog_CC
309064ce7165Smrgif test -n "$CC"; then
3091169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3092fb23d3a8Smrg$as_echo "$CC" >&6; }
309364ce7165Smrgelse
3094169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3095fb23d3a8Smrg$as_echo "no" >&6; }
309664ce7165Smrgfi
309764ce7165Smrg
309864ce7165Smrg
309964ce7165Smrgfi
310064ce7165Smrgif test -z "$ac_cv_prog_CC"; then
310164ce7165Smrg  ac_ct_CC=$CC
310264ce7165Smrg  # Extract the first word of "gcc", so it can be a program name with args.
310364ce7165Smrgset dummy gcc; ac_word=$2
3104169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3105fb23d3a8Smrg$as_echo_n "checking for $ac_word... " >&6; }
3106169a0819Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
3107fb23d3a8Smrg  $as_echo_n "(cached) " >&6
310864ce7165Smrgelse
310964ce7165Smrg  if test -n "$ac_ct_CC"; then
311064ce7165Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
311164ce7165Smrgelse
311264ce7165Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
311364ce7165Smrgfor as_dir in $PATH
311464ce7165Smrgdo
311564ce7165Smrg  IFS=$as_save_IFS
311664ce7165Smrg  test -z "$as_dir" && as_dir=.
3117169a0819Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
311895fdd44cSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
311964ce7165Smrg    ac_cv_prog_ac_ct_CC="gcc"
3120169a0819Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
312164ce7165Smrg    break 2
312264ce7165Smrg  fi
312364ce7165Smrgdone
3124169a0819Smrg  done
312564ce7165SmrgIFS=$as_save_IFS
312664ce7165Smrg
312764ce7165Smrgfi
312864ce7165Smrgfi
312964ce7165Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
313064ce7165Smrgif test -n "$ac_ct_CC"; then
3131169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3132fb23d3a8Smrg$as_echo "$ac_ct_CC" >&6; }
313364ce7165Smrgelse
3134169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135fb23d3a8Smrg$as_echo "no" >&6; }
313664ce7165Smrgfi
313764ce7165Smrg
313864ce7165Smrg  if test "x$ac_ct_CC" = x; then
313964ce7165Smrg    CC=""
314064ce7165Smrg  else
314164ce7165Smrg    case $cross_compiling:$ac_tool_warned in
314264ce7165Smrgyes:)
3143169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3144fb23d3a8Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
314564ce7165Smrgac_tool_warned=yes ;;
314664ce7165Smrgesac
314764ce7165Smrg    CC=$ac_ct_CC
314864ce7165Smrg  fi
314964ce7165Smrgelse
315064ce7165Smrg  CC="$ac_cv_prog_CC"
315164ce7165Smrgfi
315264ce7165Smrg
315364ce7165Smrgif test -z "$CC"; then
315464ce7165Smrg          if test -n "$ac_tool_prefix"; then
315564ce7165Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
315664ce7165Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
3157169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3158fb23d3a8Smrg$as_echo_n "checking for $ac_word... " >&6; }
3159169a0819Smrgif ${ac_cv_prog_CC+:} false; then :
3160fb23d3a8Smrg  $as_echo_n "(cached) " >&6
316164ce7165Smrgelse
316264ce7165Smrg  if test -n "$CC"; then
316364ce7165Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
316464ce7165Smrgelse
316564ce7165Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
316664ce7165Smrgfor as_dir in $PATH
316764ce7165Smrgdo
316864ce7165Smrg  IFS=$as_save_IFS
316964ce7165Smrg  test -z "$as_dir" && as_dir=.
3170169a0819Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
317195fdd44cSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
317264ce7165Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
3173169a0819Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
317464ce7165Smrg    break 2
317564ce7165Smrg  fi
317664ce7165Smrgdone
3177169a0819Smrg  done
317864ce7165SmrgIFS=$as_save_IFS
317964ce7165Smrg
318064ce7165Smrgfi
318164ce7165Smrgfi
318264ce7165SmrgCC=$ac_cv_prog_CC
318364ce7165Smrgif test -n "$CC"; then
3184169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3185fb23d3a8Smrg$as_echo "$CC" >&6; }
318664ce7165Smrgelse
3187169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188fb23d3a8Smrg$as_echo "no" >&6; }
318964ce7165Smrgfi
319064ce7165Smrg
319164ce7165Smrg
319264ce7165Smrg  fi
319364ce7165Smrgfi
319464ce7165Smrgif test -z "$CC"; then
319564ce7165Smrg  # Extract the first word of "cc", so it can be a program name with args.
319664ce7165Smrgset dummy cc; ac_word=$2
3197169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3198fb23d3a8Smrg$as_echo_n "checking for $ac_word... " >&6; }
3199169a0819Smrgif ${ac_cv_prog_CC+:} false; then :
3200fb23d3a8Smrg  $as_echo_n "(cached) " >&6
320164ce7165Smrgelse
320264ce7165Smrg  if test -n "$CC"; then
320364ce7165Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
320464ce7165Smrgelse
320564ce7165Smrg  ac_prog_rejected=no
320664ce7165Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
320764ce7165Smrgfor as_dir in $PATH
320864ce7165Smrgdo
320964ce7165Smrg  IFS=$as_save_IFS
321064ce7165Smrg  test -z "$as_dir" && as_dir=.
3211169a0819Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
321295fdd44cSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
321364ce7165Smrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
321464ce7165Smrg       ac_prog_rejected=yes
321564ce7165Smrg       continue
321664ce7165Smrg     fi
321764ce7165Smrg    ac_cv_prog_CC="cc"
3218169a0819Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
321964ce7165Smrg    break 2
322064ce7165Smrg  fi
322164ce7165Smrgdone
3222169a0819Smrg  done
322364ce7165SmrgIFS=$as_save_IFS
322464ce7165Smrg
322564ce7165Smrgif test $ac_prog_rejected = yes; then
322664ce7165Smrg  # We found a bogon in the path, so make sure we never use it.
322764ce7165Smrg  set dummy $ac_cv_prog_CC
322864ce7165Smrg  shift
322964ce7165Smrg  if test $# != 0; then
323064ce7165Smrg    # We chose a different compiler from the bogus one.
323164ce7165Smrg    # However, it has the same basename, so the bogon will be chosen
323264ce7165Smrg    # first if we set CC to just the basename; use the full file name.
323364ce7165Smrg    shift
323464ce7165Smrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
323564ce7165Smrg  fi
323664ce7165Smrgfi
323764ce7165Smrgfi
323864ce7165Smrgfi
323964ce7165SmrgCC=$ac_cv_prog_CC
324064ce7165Smrgif test -n "$CC"; then
3241169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3242fb23d3a8Smrg$as_echo "$CC" >&6; }
324364ce7165Smrgelse
3244169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3245fb23d3a8Smrg$as_echo "no" >&6; }
324664ce7165Smrgfi
324764ce7165Smrg
324864ce7165Smrg
324964ce7165Smrgfi
325064ce7165Smrgif test -z "$CC"; then
325164ce7165Smrg  if test -n "$ac_tool_prefix"; then
325264ce7165Smrg  for ac_prog in cl.exe
325364ce7165Smrg  do
325464ce7165Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
325564ce7165Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
3256169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3257fb23d3a8Smrg$as_echo_n "checking for $ac_word... " >&6; }
3258169a0819Smrgif ${ac_cv_prog_CC+:} false; then :
3259fb23d3a8Smrg  $as_echo_n "(cached) " >&6
326064ce7165Smrgelse
326164ce7165Smrg  if test -n "$CC"; then
326264ce7165Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
326364ce7165Smrgelse
326464ce7165Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
326564ce7165Smrgfor as_dir in $PATH
326664ce7165Smrgdo
326764ce7165Smrg  IFS=$as_save_IFS
326864ce7165Smrg  test -z "$as_dir" && as_dir=.
3269169a0819Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
327095fdd44cSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
327164ce7165Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3272169a0819Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
327364ce7165Smrg    break 2
327464ce7165Smrg  fi
327564ce7165Smrgdone
3276169a0819Smrg  done
327764ce7165SmrgIFS=$as_save_IFS
327864ce7165Smrg
327964ce7165Smrgfi
328064ce7165Smrgfi
328164ce7165SmrgCC=$ac_cv_prog_CC
328264ce7165Smrgif test -n "$CC"; then
3283169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3284fb23d3a8Smrg$as_echo "$CC" >&6; }
328564ce7165Smrgelse
3286169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287fb23d3a8Smrg$as_echo "no" >&6; }
328864ce7165Smrgfi
328964ce7165Smrg
329064ce7165Smrg
329164ce7165Smrg    test -n "$CC" && break
329264ce7165Smrg  done
329364ce7165Smrgfi
329464ce7165Smrgif test -z "$CC"; then
329564ce7165Smrg  ac_ct_CC=$CC
329664ce7165Smrg  for ac_prog in cl.exe
329764ce7165Smrgdo
329864ce7165Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
329964ce7165Smrgset dummy $ac_prog; ac_word=$2
3300169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3301fb23d3a8Smrg$as_echo_n "checking for $ac_word... " >&6; }
3302169a0819Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
3303fb23d3a8Smrg  $as_echo_n "(cached) " >&6
330464ce7165Smrgelse
330564ce7165Smrg  if test -n "$ac_ct_CC"; then
330664ce7165Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
330764ce7165Smrgelse
330864ce7165Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
330964ce7165Smrgfor as_dir in $PATH
331064ce7165Smrgdo
331164ce7165Smrg  IFS=$as_save_IFS
331264ce7165Smrg  test -z "$as_dir" && as_dir=.
3313169a0819Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
331495fdd44cSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
331564ce7165Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
3316169a0819Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
331764ce7165Smrg    break 2
331864ce7165Smrg  fi
331964ce7165Smrgdone
3320169a0819Smrg  done
332164ce7165SmrgIFS=$as_save_IFS
332264ce7165Smrg
332364ce7165Smrgfi
332464ce7165Smrgfi
332564ce7165Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
332664ce7165Smrgif test -n "$ac_ct_CC"; then
3327169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3328fb23d3a8Smrg$as_echo "$ac_ct_CC" >&6; }
332964ce7165Smrgelse
3330169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331fb23d3a8Smrg$as_echo "no" >&6; }
333264ce7165Smrgfi
333364ce7165Smrg
333464ce7165Smrg
333564ce7165Smrg  test -n "$ac_ct_CC" && break
333664ce7165Smrgdone
333764ce7165Smrg
333864ce7165Smrg  if test "x$ac_ct_CC" = x; then
333964ce7165Smrg    CC=""
334064ce7165Smrg  else
334164ce7165Smrg    case $cross_compiling:$ac_tool_warned in
334264ce7165Smrgyes:)
3343169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3344fb23d3a8Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
334564ce7165Smrgac_tool_warned=yes ;;
334664ce7165Smrgesac
334764ce7165Smrg    CC=$ac_ct_CC
334864ce7165Smrg  fi
334964ce7165Smrgfi
335064ce7165Smrg
335164ce7165Smrgfi
335264ce7165Smrg
335364ce7165Smrg
3354169a0819Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3355fb23d3a8Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3356169a0819Smrgas_fn_error $? "no acceptable C compiler found in \$PATH
3357169a0819SmrgSee \`config.log' for more details" "$LINENO" 5; }
335864ce7165Smrg
335964ce7165Smrg# Provide some information about the compiler.
3360169a0819Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3361fb23d3a8Smrgset X $ac_compile
3362fb23d3a8Smrgac_compiler=$2
3363169a0819Smrgfor ac_option in --version -v -V -qversion; do
3364169a0819Smrg  { { ac_try="$ac_compiler $ac_option >&5"
336564ce7165Smrgcase "(($ac_try" in
336664ce7165Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
336764ce7165Smrg  *) ac_try_echo=$ac_try;;
336864ce7165Smrgesac
3369169a0819Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3370169a0819Smrg$as_echo "$ac_try_echo"; } >&5
3371169a0819Smrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
337264ce7165Smrg  ac_status=$?
3373169a0819Smrg  if test -s conftest.err; then
3374169a0819Smrg    sed '10a\
3375169a0819Smrg... rest of stderr output deleted ...
3376169a0819Smrg         10q' conftest.err >conftest.er1
3377169a0819Smrg    cat conftest.er1 >&5
3378169a0819Smrg  fi
3379169a0819Smrg  rm -f conftest.er1 conftest.err
3380169a0819Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3381169a0819Smrg  test $ac_status = 0; }
3382169a0819Smrgdone
338364ce7165Smrg
3384169a0819Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
338564ce7165Smrg/* end confdefs.h.  */
338664ce7165Smrg
338764ce7165Smrgint
338864ce7165Smrgmain ()
338964ce7165Smrg{
339064ce7165Smrg
339164ce7165Smrg  ;
339264ce7165Smrg  return 0;
339364ce7165Smrg}
339464ce7165Smrg_ACEOF
339564ce7165Smrgac_clean_files_save=$ac_clean_files
3396fb23d3a8Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
339764ce7165Smrg# Try to create an executable without -o first, disregard a.out.
339864ce7165Smrg# It will help us diagnose broken compilers, and finding out an intuition
339964ce7165Smrg# of exeext.
3400169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3401169a0819Smrg$as_echo_n "checking whether the C compiler works... " >&6; }
3402fb23d3a8Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3403fb23d3a8Smrg
3404fb23d3a8Smrg# The possible output files:
3405fb23d3a8Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3406fb23d3a8Smrg
340764ce7165Smrgac_rmfiles=
340864ce7165Smrgfor ac_file in $ac_files
340964ce7165Smrgdo
341064ce7165Smrg  case $ac_file in
3411fb23d3a8Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
341264ce7165Smrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
341364ce7165Smrg  esac
341464ce7165Smrgdone
341564ce7165Smrgrm -f $ac_rmfiles
341664ce7165Smrg
3417169a0819Smrgif { { ac_try="$ac_link_default"
341864ce7165Smrgcase "(($ac_try" in
341964ce7165Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
342064ce7165Smrg  *) ac_try_echo=$ac_try;;
342164ce7165Smrgesac
3422169a0819Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3423169a0819Smrg$as_echo "$ac_try_echo"; } >&5
342464ce7165Smrg  (eval "$ac_link_default") 2>&5
342564ce7165Smrg  ac_status=$?
3426169a0819Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3427169a0819Smrg  test $ac_status = 0; }; then :
342864ce7165Smrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
342964ce7165Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
343064ce7165Smrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
343164ce7165Smrg# so that the user can short-circuit this test for compilers unknown to
343264ce7165Smrg# Autoconf.
343364ce7165Smrgfor ac_file in $ac_files ''
343464ce7165Smrgdo
343564ce7165Smrg  test -f "$ac_file" || continue
343664ce7165Smrg  case $ac_file in
3437fb23d3a8Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
343864ce7165Smrg	;;
343964ce7165Smrg    [ab].out )
344064ce7165Smrg	# We found the default executable, but exeext='' is most
344164ce7165Smrg	# certainly right.
344264ce7165Smrg	break;;
344364ce7165Smrg    *.* )
3444169a0819Smrg	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
344564ce7165Smrg	then :; else
344664ce7165Smrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
344764ce7165Smrg	fi
344864ce7165Smrg	# We set ac_cv_exeext here because the later test for it is not
344964ce7165Smrg	# safe: cross compilers may not add the suffix if given an `-o'
345064ce7165Smrg	# argument, so we may need to know it at that point already.
345164ce7165Smrg	# Even if this section looks crufty: it has the advantage of
345264ce7165Smrg	# actually working.
345364ce7165Smrg	break;;
345464ce7165Smrg    * )
345564ce7165Smrg	break;;
345664ce7165Smrg  esac
345764ce7165Smrgdone
345864ce7165Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
345964ce7165Smrg
346064ce7165Smrgelse
346164ce7165Smrg  ac_file=''
346264ce7165Smrgfi
3463169a0819Smrgif test -z "$ac_file"; then :
3464169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3465169a0819Smrg$as_echo "no" >&6; }
3466169a0819Smrg$as_echo "$as_me: failed program was:" >&5
346764ce7165Smrgsed 's/^/| /' conftest.$ac_ext >&5
346864ce7165Smrg
3469169a0819Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3470fb23d3a8Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3471169a0819Smrgas_fn_error 77 "C compiler cannot create executables
3472169a0819SmrgSee \`config.log' for more details" "$LINENO" 5; }
3473169a0819Smrgelse
3474169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3475169a0819Smrg$as_echo "yes" >&6; }
347664ce7165Smrgfi
3477169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3478169a0819Smrg$as_echo_n "checking for C compiler default output file name... " >&6; }
3479169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3480169a0819Smrg$as_echo "$ac_file" >&6; }
348164ce7165Smrgac_exeext=$ac_cv_exeext
348264ce7165Smrg
3483fb23d3a8Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
348464ce7165Smrgac_clean_files=$ac_clean_files_save
3485169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3486fb23d3a8Smrg$as_echo_n "checking for suffix of executables... " >&6; }
3487169a0819Smrgif { { ac_try="$ac_link"
348864ce7165Smrgcase "(($ac_try" in
348964ce7165Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
349064ce7165Smrg  *) ac_try_echo=$ac_try;;
349164ce7165Smrgesac
3492169a0819Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3493169a0819Smrg$as_echo "$ac_try_echo"; } >&5
349464ce7165Smrg  (eval "$ac_link") 2>&5
349564ce7165Smrg  ac_status=$?
3496169a0819Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3497169a0819Smrg  test $ac_status = 0; }; then :
349864ce7165Smrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
349964ce7165Smrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
350064ce7165Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with
350164ce7165Smrg# `rm'.
350264ce7165Smrgfor ac_file in conftest.exe conftest conftest.*; do
350364ce7165Smrg  test -f "$ac_file" || continue
350464ce7165Smrg  case $ac_file in
3505fb23d3a8Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
350664ce7165Smrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
350764ce7165Smrg	  break;;
350864ce7165Smrg    * ) break;;
350964ce7165Smrg  esac
351064ce7165Smrgdone
351164ce7165Smrgelse
3512169a0819Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3513fb23d3a8Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3514169a0819Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
3515169a0819SmrgSee \`config.log' for more details" "$LINENO" 5; }
351664ce7165Smrgfi
3517169a0819Smrgrm -f conftest conftest$ac_cv_exeext
3518169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3519fb23d3a8Smrg$as_echo "$ac_cv_exeext" >&6; }
352064ce7165Smrg
352164ce7165Smrgrm -f conftest.$ac_ext
352264ce7165SmrgEXEEXT=$ac_cv_exeext
352364ce7165Smrgac_exeext=$EXEEXT
3524169a0819Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525169a0819Smrg/* end confdefs.h.  */
3526169a0819Smrg#include <stdio.h>
3527169a0819Smrgint
3528169a0819Smrgmain ()
3529169a0819Smrg{
3530169a0819SmrgFILE *f = fopen ("conftest.out", "w");
3531169a0819Smrg return ferror (f) || fclose (f) != 0;
3532169a0819Smrg
3533169a0819Smrg  ;
3534169a0819Smrg  return 0;
3535169a0819Smrg}
3536169a0819Smrg_ACEOF
3537169a0819Smrgac_clean_files="$ac_clean_files conftest.out"
3538169a0819Smrg# Check that the compiler produces executables we can run.  If not, either
3539169a0819Smrg# the compiler is broken, or we cross compile.
3540169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3541169a0819Smrg$as_echo_n "checking whether we are cross compiling... " >&6; }
3542169a0819Smrgif test "$cross_compiling" != yes; then
3543169a0819Smrg  { { ac_try="$ac_link"
3544169a0819Smrgcase "(($ac_try" in
3545169a0819Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546169a0819Smrg  *) ac_try_echo=$ac_try;;
3547169a0819Smrgesac
3548169a0819Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3549169a0819Smrg$as_echo "$ac_try_echo"; } >&5
3550169a0819Smrg  (eval "$ac_link") 2>&5
3551169a0819Smrg  ac_status=$?
3552169a0819Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3553169a0819Smrg  test $ac_status = 0; }
3554169a0819Smrg  if { ac_try='./conftest$ac_cv_exeext'
3555169a0819Smrg  { { case "(($ac_try" in
3556169a0819Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3557169a0819Smrg  *) ac_try_echo=$ac_try;;
3558169a0819Smrgesac
3559169a0819Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3560169a0819Smrg$as_echo "$ac_try_echo"; } >&5
3561169a0819Smrg  (eval "$ac_try") 2>&5
3562169a0819Smrg  ac_status=$?
3563169a0819Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3564169a0819Smrg  test $ac_status = 0; }; }; then
3565169a0819Smrg    cross_compiling=no
3566169a0819Smrg  else
3567169a0819Smrg    if test "$cross_compiling" = maybe; then
3568169a0819Smrg	cross_compiling=yes
3569169a0819Smrg    else
3570169a0819Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3571169a0819Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3572169a0819Smrgas_fn_error $? "cannot run C compiled programs.
3573169a0819SmrgIf you meant to cross compile, use \`--host'.
3574169a0819SmrgSee \`config.log' for more details" "$LINENO" 5; }
3575169a0819Smrg    fi
3576169a0819Smrg  fi
3577169a0819Smrgfi
3578169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3579169a0819Smrg$as_echo "$cross_compiling" >&6; }
3580169a0819Smrg
3581169a0819Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3582169a0819Smrgac_clean_files=$ac_clean_files_save
3583169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3584fb23d3a8Smrg$as_echo_n "checking for suffix of object files... " >&6; }
3585169a0819Smrgif ${ac_cv_objext+:} false; then :
3586fb23d3a8Smrg  $as_echo_n "(cached) " >&6
358764ce7165Smrgelse
3588169a0819Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
358964ce7165Smrg/* end confdefs.h.  */
359064ce7165Smrg
359164ce7165Smrgint
359264ce7165Smrgmain ()
359364ce7165Smrg{
359464ce7165Smrg
359564ce7165Smrg  ;
359664ce7165Smrg  return 0;
359764ce7165Smrg}
359864ce7165Smrg_ACEOF
359964ce7165Smrgrm -f conftest.o conftest.obj
3600169a0819Smrgif { { ac_try="$ac_compile"
360164ce7165Smrgcase "(($ac_try" in
360264ce7165Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
360364ce7165Smrg  *) ac_try_echo=$ac_try;;
360464ce7165Smrgesac
3605169a0819Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3606169a0819Smrg$as_echo "$ac_try_echo"; } >&5
360764ce7165Smrg  (eval "$ac_compile") 2>&5
360864ce7165Smrg  ac_status=$?
3609169a0819Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3610169a0819Smrg  test $ac_status = 0; }; then :
361164ce7165Smrg  for ac_file in conftest.o conftest.obj conftest.*; do
361264ce7165Smrg  test -f "$ac_file" || continue;
361364ce7165Smrg  case $ac_file in
3614fb23d3a8Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
361564ce7165Smrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
361664ce7165Smrg       break;;
361764ce7165Smrg  esac
361864ce7165Smrgdone
361964ce7165Smrgelse
3620fb23d3a8Smrg  $as_echo "$as_me: failed program was:" >&5
362164ce7165Smrgsed 's/^/| /' conftest.$ac_ext >&5
362264ce7165Smrg
3623169a0819Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3624fb23d3a8Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3625169a0819Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile
3626169a0819SmrgSee \`config.log' for more details" "$LINENO" 5; }
362764ce7165Smrgfi
362864ce7165Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
362964ce7165Smrgfi
3630169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3631fb23d3a8Smrg$as_echo "$ac_cv_objext" >&6; }
363264ce7165SmrgOBJEXT=$ac_cv_objext
363364ce7165Smrgac_objext=$OBJEXT
3634169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3635fb23d3a8Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3636169a0819Smrgif ${ac_cv_c_compiler_gnu+:} false; then :
3637fb23d3a8Smrg  $as_echo_n "(cached) " >&6
363864ce7165Smrgelse
3639169a0819Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
364064ce7165Smrg/* end confdefs.h.  */
364164ce7165Smrg
364264ce7165Smrgint
364364ce7165Smrgmain ()
364464ce7165Smrg{
364564ce7165Smrg#ifndef __GNUC__
364664ce7165Smrg       choke me
364764ce7165Smrg#endif
364864ce7165Smrg
364964ce7165Smrg  ;
365064ce7165Smrg  return 0;
365164ce7165Smrg}
365264ce7165Smrg_ACEOF
3653169a0819Smrgif ac_fn_c_try_compile "$LINENO"; then :
365464ce7165Smrg  ac_compiler_gnu=yes
365564ce7165Smrgelse
3656169a0819Smrg  ac_compiler_gnu=no
365764ce7165Smrgfi
365864ce7165Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
365964ce7165Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
366064ce7165Smrg
366164ce7165Smrgfi
3662169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3663fb23d3a8Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3664fb23d3a8Smrgif test $ac_compiler_gnu = yes; then
3665fb23d3a8Smrg  GCC=yes
3666fb23d3a8Smrgelse
3667fb23d3a8Smrg  GCC=
3668fb23d3a8Smrgfi
366964ce7165Smrgac_test_CFLAGS=${CFLAGS+set}
367064ce7165Smrgac_save_CFLAGS=$CFLAGS
3671169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3672fb23d3a8Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
3673169a0819Smrgif ${ac_cv_prog_cc_g+:} false; then :
3674fb23d3a8Smrg  $as_echo_n "(cached) " >&6
367564ce7165Smrgelse
367664ce7165Smrg  ac_save_c_werror_flag=$ac_c_werror_flag
367764ce7165Smrg   ac_c_werror_flag=yes
367864ce7165Smrg   ac_cv_prog_cc_g=no
367964ce7165Smrg   CFLAGS="-g"
3680169a0819Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
368164ce7165Smrg/* end confdefs.h.  */
368264ce7165Smrg
368364ce7165Smrgint
368464ce7165Smrgmain ()
368564ce7165Smrg{
368664ce7165Smrg
368764ce7165Smrg  ;
368864ce7165Smrg  return 0;
368964ce7165Smrg}
369064ce7165Smrg_ACEOF
3691169a0819Smrgif ac_fn_c_try_compile "$LINENO"; then :
369264ce7165Smrg  ac_cv_prog_cc_g=yes
369364ce7165Smrgelse
3694169a0819Smrg  CFLAGS=""
3695169a0819Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
369664ce7165Smrg/* end confdefs.h.  */
369764ce7165Smrg
369864ce7165Smrgint
369964ce7165Smrgmain ()
370064ce7165Smrg{
370164ce7165Smrg
370264ce7165Smrg  ;
370364ce7165Smrg  return 0;
370464ce7165Smrg}
370564ce7165Smrg_ACEOF
3706169a0819Smrgif ac_fn_c_try_compile "$LINENO"; then :
370764ce7165Smrg
3708169a0819Smrgelse
3709169a0819Smrg  ac_c_werror_flag=$ac_save_c_werror_flag
371064ce7165Smrg	 CFLAGS="-g"
3711169a0819Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
371264ce7165Smrg/* end confdefs.h.  */
371364ce7165Smrg
371464ce7165Smrgint
371564ce7165Smrgmain ()
371664ce7165Smrg{
371764ce7165Smrg
371864ce7165Smrg  ;
371964ce7165Smrg  return 0;
372064ce7165Smrg}
372164ce7165Smrg_ACEOF
3722169a0819Smrgif ac_fn_c_try_compile "$LINENO"; then :
372364ce7165Smrg  ac_cv_prog_cc_g=yes
372464ce7165Smrgfi
372564ce7165Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
372664ce7165Smrgfi
372764ce7165Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
372864ce7165Smrgfi
372964ce7165Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
373064ce7165Smrg   ac_c_werror_flag=$ac_save_c_werror_flag
373164ce7165Smrgfi
3732169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3733fb23d3a8Smrg$as_echo "$ac_cv_prog_cc_g" >&6; }
373464ce7165Smrgif test "$ac_test_CFLAGS" = set; then
373564ce7165Smrg  CFLAGS=$ac_save_CFLAGS
373664ce7165Smrgelif test $ac_cv_prog_cc_g = yes; then
373764ce7165Smrg  if test "$GCC" = yes; then
373864ce7165Smrg    CFLAGS="-g -O2"
373964ce7165Smrg  else
374064ce7165Smrg    CFLAGS="-g"
374164ce7165Smrg  fi
374264ce7165Smrgelse
374364ce7165Smrg  if test "$GCC" = yes; then
374464ce7165Smrg    CFLAGS="-O2"
374564ce7165Smrg  else
374664ce7165Smrg    CFLAGS=
374764ce7165Smrg  fi
374864ce7165Smrgfi
3749169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3750fb23d3a8Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3751169a0819Smrgif ${ac_cv_prog_cc_c89+:} false; then :
3752fb23d3a8Smrg  $as_echo_n "(cached) " >&6
375364ce7165Smrgelse
375464ce7165Smrg  ac_cv_prog_cc_c89=no
375564ce7165Smrgac_save_CC=$CC
3756169a0819Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
375764ce7165Smrg/* end confdefs.h.  */
375864ce7165Smrg#include <stdarg.h>
375964ce7165Smrg#include <stdio.h>
376095fdd44cSmrgstruct stat;
376164ce7165Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
376264ce7165Smrgstruct buf { int x; };
376364ce7165SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
376464ce7165Smrgstatic char *e (p, i)
376564ce7165Smrg     char **p;
376664ce7165Smrg     int i;
376764ce7165Smrg{
376864ce7165Smrg  return p[i];
376964ce7165Smrg}
377064ce7165Smrgstatic char *f (char * (*g) (char **, int), char **p, ...)
377164ce7165Smrg{
377264ce7165Smrg  char *s;
377364ce7165Smrg  va_list v;
377464ce7165Smrg  va_start (v,p);
377564ce7165Smrg  s = g (p, va_arg (v,int));
377664ce7165Smrg  va_end (v);
377764ce7165Smrg  return s;
377864ce7165Smrg}
377964ce7165Smrg
378064ce7165Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
378164ce7165Smrg   function prototypes and stuff, but not '\xHH' hex character constants.
378264ce7165Smrg   These don't provoke an error unfortunately, instead are silently treated
378364ce7165Smrg   as 'x'.  The following induces an error, until -std is added to get
378464ce7165Smrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
378564ce7165Smrg   array size at least.  It's necessary to write '\x00'==0 to get something
378664ce7165Smrg   that's true only with -std.  */
378764ce7165Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
378864ce7165Smrg
378964ce7165Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
379064ce7165Smrg   inside strings and character constants.  */
379164ce7165Smrg#define FOO(x) 'x'
379264ce7165Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
379364ce7165Smrg
379464ce7165Smrgint test (int i, double x);
379564ce7165Smrgstruct s1 {int (*f) (int a);};
379664ce7165Smrgstruct s2 {int (*f) (double a);};
379764ce7165Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
379864ce7165Smrgint argc;
379964ce7165Smrgchar **argv;
380064ce7165Smrgint
380164ce7165Smrgmain ()
380264ce7165Smrg{
380364ce7165Smrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
380464ce7165Smrg  ;
380564ce7165Smrg  return 0;
380664ce7165Smrg}
380764ce7165Smrg_ACEOF
380864ce7165Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
380964ce7165Smrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
381064ce7165Smrgdo
381164ce7165Smrg  CC="$ac_save_CC $ac_arg"
3812169a0819Smrg  if ac_fn_c_try_compile "$LINENO"; then :
381364ce7165Smrg  ac_cv_prog_cc_c89=$ac_arg
381464ce7165Smrgfi
381564ce7165Smrgrm -f core conftest.err conftest.$ac_objext
381664ce7165Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
381764ce7165Smrgdone
381864ce7165Smrgrm -f conftest.$ac_ext
381964ce7165SmrgCC=$ac_save_CC
382064ce7165Smrg
382164ce7165Smrgfi
382264ce7165Smrg# AC_CACHE_VAL
382364ce7165Smrgcase "x$ac_cv_prog_cc_c89" in
382464ce7165Smrg  x)
3825169a0819Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3826fb23d3a8Smrg$as_echo "none needed" >&6; } ;;
382764ce7165Smrg  xno)
3828169a0819Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3829fb23d3a8Smrg$as_echo "unsupported" >&6; } ;;
383064ce7165Smrg  *)
383164ce7165Smrg    CC="$CC $ac_cv_prog_cc_c89"
3832169a0819Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3833fb23d3a8Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
383464ce7165Smrgesac
3835169a0819Smrgif test "x$ac_cv_prog_cc_c89" != xno; then :
383664ce7165Smrg
3837169a0819Smrgfi
383864ce7165Smrg
383964ce7165Smrgac_ext=c
384064ce7165Smrgac_cpp='$CPP $CPPFLAGS'
384164ce7165Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
384264ce7165Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
384364ce7165Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
384464ce7165Smrg
384581440437Smrgac_ext=c
384681440437Smrgac_cpp='$CPP $CPPFLAGS'
384781440437Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
384881440437Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
384981440437Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
385081440437Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
385181440437Smrg$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
385281440437Smrgif ${am_cv_prog_cc_c_o+:} false; then :
385381440437Smrg  $as_echo_n "(cached) " >&6
385481440437Smrgelse
385581440437Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
385681440437Smrg/* end confdefs.h.  */
385781440437Smrg
385881440437Smrgint
385981440437Smrgmain ()
386081440437Smrg{
386181440437Smrg
386281440437Smrg  ;
386381440437Smrg  return 0;
386481440437Smrg}
386581440437Smrg_ACEOF
386681440437Smrg  # Make sure it works both with $CC and with simple cc.
386781440437Smrg  # Following AC_PROG_CC_C_O, we do the test twice because some
386881440437Smrg  # compilers refuse to overwrite an existing .o file with -o,
386981440437Smrg  # though they will create one.
387081440437Smrg  am_cv_prog_cc_c_o=yes
387181440437Smrg  for am_i in 1 2; do
387281440437Smrg    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
387381440437Smrg   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
387481440437Smrg   ac_status=$?
387581440437Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
387681440437Smrg   (exit $ac_status); } \
387781440437Smrg         && test -f conftest2.$ac_objext; then
387881440437Smrg      : OK
387981440437Smrg    else
388081440437Smrg      am_cv_prog_cc_c_o=no
388181440437Smrg      break
388281440437Smrg    fi
388381440437Smrg  done
388481440437Smrg  rm -f core conftest*
388581440437Smrg  unset am_i
388681440437Smrgfi
388781440437Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
388881440437Smrg$as_echo "$am_cv_prog_cc_c_o" >&6; }
388981440437Smrgif test "$am_cv_prog_cc_c_o" != yes; then
389081440437Smrg   # Losing compiler, so override with the script.
389181440437Smrg   # FIXME: It is wrong to rewrite CC.
389281440437Smrg   # But if we don't then we get into trouble of one sort or another.
389381440437Smrg   # A longer-term fix would be to have automake use am__CC in this case,
389481440437Smrg   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
389581440437Smrg   CC="$am_aux_dir/compile $CC"
389681440437Smrgfi
389781440437Smrgac_ext=c
389881440437Smrgac_cpp='$CPP $CPPFLAGS'
389981440437Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
390081440437Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
390181440437Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
390281440437Smrg
390381440437Smrg
390464ce7165Smrgdepcc="$CC"   am_compiler_list=
390564ce7165Smrg
3906169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3907fb23d3a8Smrg$as_echo_n "checking dependency style of $depcc... " >&6; }
3908169a0819Smrgif ${am_cv_CC_dependencies_compiler_type+:} false; then :
3909fb23d3a8Smrg  $as_echo_n "(cached) " >&6
391064ce7165Smrgelse
391164ce7165Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
391264ce7165Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
391364ce7165Smrg  # making bogus files that we don't know about and never remove.  For
391464ce7165Smrg  # instance it was reported that on HP-UX the gcc test will end up
391581440437Smrg  # making a dummy file named 'D' -- because '-MD' means "put the output
391681440437Smrg  # in D".
391781440437Smrg  rm -rf conftest.dir
391864ce7165Smrg  mkdir conftest.dir
391964ce7165Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
392064ce7165Smrg  # using a relative directory.
392164ce7165Smrg  cp "$am_depcomp" conftest.dir
392264ce7165Smrg  cd conftest.dir
392364ce7165Smrg  # We will build objects and dependencies in a subdirectory because
392464ce7165Smrg  # it helps to detect inapplicable dependency modes.  For instance
392564ce7165Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
392664ce7165Smrg  # side effect of compilation, but ICC will put the dependencies in
392764ce7165Smrg  # the current directory while Tru64 will put them in the object
392864ce7165Smrg  # directory.
392964ce7165Smrg  mkdir sub
393064ce7165Smrg
393164ce7165Smrg  am_cv_CC_dependencies_compiler_type=none
393264ce7165Smrg  if test "$am_compiler_list" = ""; then
393364ce7165Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
393464ce7165Smrg  fi
3935fb23d3a8Smrg  am__universal=false
3936fb23d3a8Smrg  case " $depcc " in #(
3937fb23d3a8Smrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3938fb23d3a8Smrg     esac
3939fb23d3a8Smrg
394064ce7165Smrg  for depmode in $am_compiler_list; do
394164ce7165Smrg    # Setup a source with many dependencies, because some compilers
394264ce7165Smrg    # like to wrap large dependency lists on column 80 (with \), and
394364ce7165Smrg    # we should not choose a depcomp mode which is confused by this.
394464ce7165Smrg    #
394564ce7165Smrg    # We need to recreate these files for each test, as the compiler may
394664ce7165Smrg    # overwrite some of them when testing with obscure command lines.
394764ce7165Smrg    # This happens at least with the AIX C compiler.
394864ce7165Smrg    : > sub/conftest.c
394964ce7165Smrg    for i in 1 2 3 4 5 6; do
395064ce7165Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
395181440437Smrg      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
395281440437Smrg      # Solaris 10 /bin/sh.
395381440437Smrg      echo '/* dummy */' > sub/conftst$i.h
395464ce7165Smrg    done
395564ce7165Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
395664ce7165Smrg
395781440437Smrg    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3958fb23d3a8Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
395981440437Smrg    # handle '-M -o', and we need to detect this.  Also, some Intel
396081440437Smrg    # versions had trouble with output in subdirs.
3961fb23d3a8Smrg    am__obj=sub/conftest.${OBJEXT-o}
3962fb23d3a8Smrg    am__minus_obj="-o $am__obj"
396364ce7165Smrg    case $depmode in
3964fb23d3a8Smrg    gcc)
3965fb23d3a8Smrg      # This depmode causes a compiler race in universal mode.
3966fb23d3a8Smrg      test "$am__universal" = false || continue
3967fb23d3a8Smrg      ;;
396864ce7165Smrg    nosideeffect)
396981440437Smrg      # After this tag, mechanisms are not by side-effect, so they'll
397081440437Smrg      # only be used when explicitly requested.
397164ce7165Smrg      if test "x$enable_dependency_tracking" = xyes; then
397264ce7165Smrg	continue
397364ce7165Smrg      else
397464ce7165Smrg	break
397564ce7165Smrg      fi
397664ce7165Smrg      ;;
397781440437Smrg    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
397881440437Smrg      # This compiler won't grok '-c -o', but also, the minuso test has
3979fb23d3a8Smrg      # not run yet.  These depmodes are late enough in the game, and
3980fb23d3a8Smrg      # so weak that their functioning should not be impacted.
3981fb23d3a8Smrg      am__obj=conftest.${OBJEXT-o}
3982fb23d3a8Smrg      am__minus_obj=
3983fb23d3a8Smrg      ;;
398464ce7165Smrg    none) break ;;
398564ce7165Smrg    esac
398664ce7165Smrg    if depmode=$depmode \
3987fb23d3a8Smrg       source=sub/conftest.c object=$am__obj \
398864ce7165Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3989fb23d3a8Smrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
399064ce7165Smrg         >/dev/null 2>conftest.err &&
399164ce7165Smrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
399264ce7165Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3993fb23d3a8Smrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
399464ce7165Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
399564ce7165Smrg      # icc doesn't choke on unknown options, it will just issue warnings
399664ce7165Smrg      # or remarks (even with -Werror).  So we grep stderr for any message
399764ce7165Smrg      # that says an option was ignored or not supported.
399864ce7165Smrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
399964ce7165Smrg      #   icc: Command line warning: ignoring option '-M'; no argument required
400064ce7165Smrg      # The diagnosis changed in icc 8.0:
400164ce7165Smrg      #   icc: Command line remark: option '-MP' not supported
400264ce7165Smrg      if (grep 'ignoring option' conftest.err ||
400364ce7165Smrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
400464ce7165Smrg        am_cv_CC_dependencies_compiler_type=$depmode
400564ce7165Smrg        break
400664ce7165Smrg      fi
400764ce7165Smrg    fi
400864ce7165Smrg  done
400964ce7165Smrg
401064ce7165Smrg  cd ..
401164ce7165Smrg  rm -rf conftest.dir
401264ce7165Smrgelse
401364ce7165Smrg  am_cv_CC_dependencies_compiler_type=none
401464ce7165Smrgfi
401564ce7165Smrg
401664ce7165Smrgfi
4017169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4018fb23d3a8Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
401964ce7165SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
402064ce7165Smrg
402164ce7165Smrg if
402264ce7165Smrg  test "x$enable_dependency_tracking" != xno \
402364ce7165Smrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
402464ce7165Smrg  am__fastdepCC_TRUE=
402564ce7165Smrg  am__fastdepCC_FALSE='#'
402664ce7165Smrgelse
402764ce7165Smrg  am__fastdepCC_TRUE='#'
402864ce7165Smrg  am__fastdepCC_FALSE=
402964ce7165Smrgfi
403064ce7165Smrg
403164ce7165Smrg
403295fdd44cSmrg
403395fdd44cSmrgac_ext=c
403495fdd44cSmrgac_cpp='$CPP $CPPFLAGS'
403595fdd44cSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
403695fdd44cSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
403795fdd44cSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
403895fdd44cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
403995fdd44cSmrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
404095fdd44cSmrg# On Suns, sometimes $CPP names a directory.
404195fdd44cSmrgif test -n "$CPP" && test -d "$CPP"; then
404295fdd44cSmrg  CPP=
404395fdd44cSmrgfi
404495fdd44cSmrgif test -z "$CPP"; then
404595fdd44cSmrg  if ${ac_cv_prog_CPP+:} false; then :
4046fb23d3a8Smrg  $as_echo_n "(cached) " >&6
4047fb23d3a8Smrgelse
404895fdd44cSmrg      # Double quotes because CPP needs to be expanded
404995fdd44cSmrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
405095fdd44cSmrg    do
405195fdd44cSmrg      ac_preproc_ok=false
405295fdd44cSmrgfor ac_c_preproc_warn_flag in '' yes
405395fdd44cSmrgdo
405495fdd44cSmrg  # Use a header file that comes with gcc, so configuring glibc
405595fdd44cSmrg  # with a fresh cross-compiler works.
405695fdd44cSmrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
405795fdd44cSmrg  # <limits.h> exists even on freestanding compilers.
405895fdd44cSmrg  # On the NeXT, cc -E runs the code through the compiler's parser,
405995fdd44cSmrg  # not just through cpp. "Syntax error" is here to catch this case.
406095fdd44cSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061fb23d3a8Smrg/* end confdefs.h.  */
406295fdd44cSmrg#ifdef __STDC__
406395fdd44cSmrg# include <limits.h>
4064fb23d3a8Smrg#else
406595fdd44cSmrg# include <assert.h>
4066fb23d3a8Smrg#endif
406795fdd44cSmrg		     Syntax error
406895fdd44cSmrg_ACEOF
406995fdd44cSmrgif ac_fn_c_try_cpp "$LINENO"; then :
407064ce7165Smrg
407195fdd44cSmrgelse
407295fdd44cSmrg  # Broken: fails on valid input.
407395fdd44cSmrgcontinue
407495fdd44cSmrgfi
407595fdd44cSmrgrm -f conftest.err conftest.i conftest.$ac_ext
4076fb23d3a8Smrg
4077fb23d3a8Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
4078fb23d3a8Smrg  # can be detected and how.
4079169a0819Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4080fb23d3a8Smrg/* end confdefs.h.  */
4081fb23d3a8Smrg#include <ac_nonexistent.h>
4082fb23d3a8Smrg_ACEOF
4083169a0819Smrgif ac_fn_c_try_cpp "$LINENO"; then :
4084fb23d3a8Smrg  # Broken: success on invalid input.
4085fb23d3a8Smrgcontinue
4086fb23d3a8Smrgelse
4087fb23d3a8Smrg  # Passes both tests.
4088fb23d3a8Smrgac_preproc_ok=:
4089fb23d3a8Smrgbreak
4090fb23d3a8Smrgfi
4091169a0819Smrgrm -f conftest.err conftest.i conftest.$ac_ext
4092fb23d3a8Smrg
4093fb23d3a8Smrgdone
4094fb23d3a8Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4095169a0819Smrgrm -f conftest.i conftest.err conftest.$ac_ext
4096169a0819Smrgif $ac_preproc_ok; then :
4097fb23d3a8Smrg  break
4098fb23d3a8Smrgfi
4099fb23d3a8Smrg
4100fb23d3a8Smrg    done
4101fb23d3a8Smrg    ac_cv_prog_CPP=$CPP
4102fb23d3a8Smrg
4103fb23d3a8Smrgfi
4104fb23d3a8Smrg  CPP=$ac_cv_prog_CPP
4105fb23d3a8Smrgelse
4106fb23d3a8Smrg  ac_cv_prog_CPP=$CPP
4107fb23d3a8Smrgfi
4108169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4109fb23d3a8Smrg$as_echo "$CPP" >&6; }
4110fb23d3a8Smrgac_preproc_ok=false
4111fb23d3a8Smrgfor ac_c_preproc_warn_flag in '' yes
4112fb23d3a8Smrgdo
4113fb23d3a8Smrg  # Use a header file that comes with gcc, so configuring glibc
4114fb23d3a8Smrg  # with a fresh cross-compiler works.
4115fb23d3a8Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4116fb23d3a8Smrg  # <limits.h> exists even on freestanding compilers.
4117fb23d3a8Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
4118fb23d3a8Smrg  # not just through cpp. "Syntax error" is here to catch this case.
4119169a0819Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120fb23d3a8Smrg/* end confdefs.h.  */
4121fb23d3a8Smrg#ifdef __STDC__
4122fb23d3a8Smrg# include <limits.h>
4123fb23d3a8Smrg#else
4124fb23d3a8Smrg# include <assert.h>
4125fb23d3a8Smrg#endif
4126fb23d3a8Smrg		     Syntax error
4127fb23d3a8Smrg_ACEOF
4128169a0819Smrgif ac_fn_c_try_cpp "$LINENO"; then :
4129fb23d3a8Smrg
4130169a0819Smrgelse
4131fb23d3a8Smrg  # Broken: fails on valid input.
4132fb23d3a8Smrgcontinue
4133fb23d3a8Smrgfi
4134169a0819Smrgrm -f conftest.err conftest.i conftest.$ac_ext
4135fb23d3a8Smrg
4136fb23d3a8Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
4137fb23d3a8Smrg  # can be detected and how.
4138169a0819Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4139fb23d3a8Smrg/* end confdefs.h.  */
4140fb23d3a8Smrg#include <ac_nonexistent.h>
4141fb23d3a8Smrg_ACEOF
4142169a0819Smrgif ac_fn_c_try_cpp "$LINENO"; then :
4143fb23d3a8Smrg  # Broken: success on invalid input.
4144fb23d3a8Smrgcontinue
4145fb23d3a8Smrgelse
4146fb23d3a8Smrg  # Passes both tests.
4147fb23d3a8Smrgac_preproc_ok=:
4148fb23d3a8Smrgbreak
4149fb23d3a8Smrgfi
4150169a0819Smrgrm -f conftest.err conftest.i conftest.$ac_ext
4151fb23d3a8Smrg
4152fb23d3a8Smrgdone
4153fb23d3a8Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4154169a0819Smrgrm -f conftest.i conftest.err conftest.$ac_ext
4155169a0819Smrgif $ac_preproc_ok; then :
4156169a0819Smrg
4157fb23d3a8Smrgelse
4158169a0819Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4159fb23d3a8Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4160169a0819Smrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4161169a0819SmrgSee \`config.log' for more details" "$LINENO" 5; }
4162fb23d3a8Smrgfi
4163fb23d3a8Smrg
4164fb23d3a8Smrgac_ext=c
4165fb23d3a8Smrgac_cpp='$CPP $CPPFLAGS'
4166fb23d3a8Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4167fb23d3a8Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4168fb23d3a8Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
4169fb23d3a8Smrg
4170fb23d3a8Smrg
4171169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4172fb23d3a8Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4173169a0819Smrgif ${ac_cv_path_GREP+:} false; then :
4174fb23d3a8Smrg  $as_echo_n "(cached) " >&6
4175fb23d3a8Smrgelse
4176fb23d3a8Smrg  if test -z "$GREP"; then
4177fb23d3a8Smrg  ac_path_GREP_found=false
4178fb23d3a8Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
4179fb23d3a8Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180fb23d3a8Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4181fb23d3a8Smrgdo
4182fb23d3a8Smrg  IFS=$as_save_IFS
4183fb23d3a8Smrg  test -z "$as_dir" && as_dir=.
4184169a0819Smrg    for ac_prog in grep ggrep; do
4185fb23d3a8Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4186fb23d3a8Smrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
418795fdd44cSmrg      as_fn_executable_p "$ac_path_GREP" || continue
4188fb23d3a8Smrg# Check for GNU ac_path_GREP and select it if it is found.
4189fb23d3a8Smrg  # Check for GNU $ac_path_GREP
4190fb23d3a8Smrgcase `"$ac_path_GREP" --version 2>&1` in
4191fb23d3a8Smrg*GNU*)
4192fb23d3a8Smrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4193fb23d3a8Smrg*)
4194fb23d3a8Smrg  ac_count=0
4195fb23d3a8Smrg  $as_echo_n 0123456789 >"conftest.in"
4196fb23d3a8Smrg  while :
4197fb23d3a8Smrg  do
4198fb23d3a8Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
4199fb23d3a8Smrg    mv "conftest.tmp" "conftest.in"
4200fb23d3a8Smrg    cp "conftest.in" "conftest.nl"
4201fb23d3a8Smrg    $as_echo 'GREP' >> "conftest.nl"
4202fb23d3a8Smrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4203fb23d3a8Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4204169a0819Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
4205fb23d3a8Smrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4206fb23d3a8Smrg      # Best one so far, save it but keep looking for a better one
4207fb23d3a8Smrg      ac_cv_path_GREP="$ac_path_GREP"
4208fb23d3a8Smrg      ac_path_GREP_max=$ac_count
4209fb23d3a8Smrg    fi
4210fb23d3a8Smrg    # 10*(2^10) chars as input seems more than enough
4211fb23d3a8Smrg    test $ac_count -gt 10 && break
4212fb23d3a8Smrg  done
4213fb23d3a8Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4214fb23d3a8Smrgesac
4215fb23d3a8Smrg
4216fb23d3a8Smrg      $ac_path_GREP_found && break 3
4217fb23d3a8Smrg    done
4218fb23d3a8Smrg  done
4219169a0819Smrg  done
4220fb23d3a8SmrgIFS=$as_save_IFS
4221fb23d3a8Smrg  if test -z "$ac_cv_path_GREP"; then
4222169a0819Smrg    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4223fb23d3a8Smrg  fi
4224fb23d3a8Smrgelse
4225fb23d3a8Smrg  ac_cv_path_GREP=$GREP
4226fb23d3a8Smrgfi
4227fb23d3a8Smrg
4228fb23d3a8Smrgfi
4229169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4230fb23d3a8Smrg$as_echo "$ac_cv_path_GREP" >&6; }
4231fb23d3a8Smrg GREP="$ac_cv_path_GREP"
4232fb23d3a8Smrg
4233fb23d3a8Smrg
4234169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4235fb23d3a8Smrg$as_echo_n "checking for egrep... " >&6; }
4236169a0819Smrgif ${ac_cv_path_EGREP+:} false; then :
4237fb23d3a8Smrg  $as_echo_n "(cached) " >&6
4238fb23d3a8Smrgelse
4239fb23d3a8Smrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4240fb23d3a8Smrg   then ac_cv_path_EGREP="$GREP -E"
4241fb23d3a8Smrg   else
4242fb23d3a8Smrg     if test -z "$EGREP"; then
4243fb23d3a8Smrg  ac_path_EGREP_found=false
4244fb23d3a8Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
4245fb23d3a8Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246fb23d3a8Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4247fb23d3a8Smrgdo
4248fb23d3a8Smrg  IFS=$as_save_IFS
4249fb23d3a8Smrg  test -z "$as_dir" && as_dir=.
4250169a0819Smrg    for ac_prog in egrep; do
4251fb23d3a8Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4252fb23d3a8Smrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
425395fdd44cSmrg      as_fn_executable_p "$ac_path_EGREP" || continue
4254fb23d3a8Smrg# Check for GNU ac_path_EGREP and select it if it is found.
4255fb23d3a8Smrg  # Check for GNU $ac_path_EGREP
4256fb23d3a8Smrgcase `"$ac_path_EGREP" --version 2>&1` in
4257fb23d3a8Smrg*GNU*)
4258fb23d3a8Smrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4259fb23d3a8Smrg*)
4260fb23d3a8Smrg  ac_count=0
4261fb23d3a8Smrg  $as_echo_n 0123456789 >"conftest.in"
4262fb23d3a8Smrg  while :
4263fb23d3a8Smrg  do
4264fb23d3a8Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
4265fb23d3a8Smrg    mv "conftest.tmp" "conftest.in"
4266fb23d3a8Smrg    cp "conftest.in" "conftest.nl"
4267fb23d3a8Smrg    $as_echo 'EGREP' >> "conftest.nl"
4268fb23d3a8Smrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4269fb23d3a8Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4270169a0819Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
4271fb23d3a8Smrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4272fb23d3a8Smrg      # Best one so far, save it but keep looking for a better one
4273fb23d3a8Smrg      ac_cv_path_EGREP="$ac_path_EGREP"
4274fb23d3a8Smrg      ac_path_EGREP_max=$ac_count
4275fb23d3a8Smrg    fi
4276fb23d3a8Smrg    # 10*(2^10) chars as input seems more than enough
4277fb23d3a8Smrg    test $ac_count -gt 10 && break
4278fb23d3a8Smrg  done
4279fb23d3a8Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4280fb23d3a8Smrgesac
4281fb23d3a8Smrg
4282fb23d3a8Smrg      $ac_path_EGREP_found && break 3
4283fb23d3a8Smrg    done
4284fb23d3a8Smrg  done
4285169a0819Smrg  done
4286fb23d3a8SmrgIFS=$as_save_IFS
4287fb23d3a8Smrg  if test -z "$ac_cv_path_EGREP"; then
4288169a0819Smrg    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4289fb23d3a8Smrg  fi
4290fb23d3a8Smrgelse
4291fb23d3a8Smrg  ac_cv_path_EGREP=$EGREP
4292fb23d3a8Smrgfi
4293fb23d3a8Smrg
4294fb23d3a8Smrg   fi
4295fb23d3a8Smrgfi
4296169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4297fb23d3a8Smrg$as_echo "$ac_cv_path_EGREP" >&6; }
4298fb23d3a8Smrg EGREP="$ac_cv_path_EGREP"
4299fb23d3a8Smrg
4300fb23d3a8Smrg
4301169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4302fb23d3a8Smrg$as_echo_n "checking for ANSI C header files... " >&6; }
4303169a0819Smrgif ${ac_cv_header_stdc+:} false; then :
4304fb23d3a8Smrg  $as_echo_n "(cached) " >&6
4305fb23d3a8Smrgelse
4306169a0819Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307fb23d3a8Smrg/* end confdefs.h.  */
4308fb23d3a8Smrg#include <stdlib.h>
4309fb23d3a8Smrg#include <stdarg.h>
4310fb23d3a8Smrg#include <string.h>
4311fb23d3a8Smrg#include <float.h>
4312fb23d3a8Smrg
4313fb23d3a8Smrgint
4314fb23d3a8Smrgmain ()
4315fb23d3a8Smrg{
4316fb23d3a8Smrg
4317fb23d3a8Smrg  ;
4318fb23d3a8Smrg  return 0;
4319fb23d3a8Smrg}
4320fb23d3a8Smrg_ACEOF
4321169a0819Smrgif ac_fn_c_try_compile "$LINENO"; then :
4322fb23d3a8Smrg  ac_cv_header_stdc=yes
4323fb23d3a8Smrgelse
4324169a0819Smrg  ac_cv_header_stdc=no
4325fb23d3a8Smrgfi
4326fb23d3a8Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4327fb23d3a8Smrg
4328fb23d3a8Smrgif test $ac_cv_header_stdc = yes; then
4329fb23d3a8Smrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4330169a0819Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331fb23d3a8Smrg/* end confdefs.h.  */
4332fb23d3a8Smrg#include <string.h>
4333fb23d3a8Smrg
4334fb23d3a8Smrg_ACEOF
4335fb23d3a8Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4336169a0819Smrg  $EGREP "memchr" >/dev/null 2>&1; then :
4337169a0819Smrg
4338fb23d3a8Smrgelse
4339fb23d3a8Smrg  ac_cv_header_stdc=no
4340fb23d3a8Smrgfi
4341fb23d3a8Smrgrm -f conftest*
4342fb23d3a8Smrg
434395fdd44cSmrgfi
434495fdd44cSmrg
434595fdd44cSmrgif test $ac_cv_header_stdc = yes; then
434695fdd44cSmrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
434795fdd44cSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
434895fdd44cSmrg/* end confdefs.h.  */
434995fdd44cSmrg#include <stdlib.h>
435095fdd44cSmrg
435195fdd44cSmrg_ACEOF
435295fdd44cSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
435395fdd44cSmrg  $EGREP "free" >/dev/null 2>&1; then :
435495fdd44cSmrg
435595fdd44cSmrgelse
435695fdd44cSmrg  ac_cv_header_stdc=no
435795fdd44cSmrgfi
435895fdd44cSmrgrm -f conftest*
435995fdd44cSmrg
436095fdd44cSmrgfi
436195fdd44cSmrg
436295fdd44cSmrgif test $ac_cv_header_stdc = yes; then
436395fdd44cSmrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
436495fdd44cSmrg  if test "$cross_compiling" = yes; then :
436595fdd44cSmrg  :
436695fdd44cSmrgelse
436795fdd44cSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
436895fdd44cSmrg/* end confdefs.h.  */
436995fdd44cSmrg#include <ctype.h>
437095fdd44cSmrg#include <stdlib.h>
437195fdd44cSmrg#if ((' ' & 0x0FF) == 0x020)
437295fdd44cSmrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
437395fdd44cSmrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
437495fdd44cSmrg#else
437595fdd44cSmrg# define ISLOWER(c) \
437695fdd44cSmrg		   (('a' <= (c) && (c) <= 'i') \
437795fdd44cSmrg		     || ('j' <= (c) && (c) <= 'r') \
437895fdd44cSmrg		     || ('s' <= (c) && (c) <= 'z'))
437995fdd44cSmrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
438095fdd44cSmrg#endif
438195fdd44cSmrg
438295fdd44cSmrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
438395fdd44cSmrgint
438495fdd44cSmrgmain ()
438595fdd44cSmrg{
438695fdd44cSmrg  int i;
438795fdd44cSmrg  for (i = 0; i < 256; i++)
438895fdd44cSmrg    if (XOR (islower (i), ISLOWER (i))
438995fdd44cSmrg	|| toupper (i) != TOUPPER (i))
439095fdd44cSmrg      return 2;
439195fdd44cSmrg  return 0;
439295fdd44cSmrg}
439395fdd44cSmrg_ACEOF
439495fdd44cSmrgif ac_fn_c_try_run "$LINENO"; then :
439595fdd44cSmrg
439695fdd44cSmrgelse
439795fdd44cSmrg  ac_cv_header_stdc=no
439895fdd44cSmrgfi
439995fdd44cSmrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
440095fdd44cSmrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
440195fdd44cSmrgfi
440295fdd44cSmrg
440395fdd44cSmrgfi
440495fdd44cSmrgfi
440595fdd44cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
440695fdd44cSmrg$as_echo "$ac_cv_header_stdc" >&6; }
440795fdd44cSmrgif test $ac_cv_header_stdc = yes; then
440895fdd44cSmrg
440995fdd44cSmrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h
441095fdd44cSmrg
441195fdd44cSmrgfi
441295fdd44cSmrg
441395fdd44cSmrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
441495fdd44cSmrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
441595fdd44cSmrg		  inttypes.h stdint.h unistd.h
441695fdd44cSmrgdo :
441795fdd44cSmrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
441895fdd44cSmrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
441995fdd44cSmrg"
442095fdd44cSmrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
442195fdd44cSmrg  cat >>confdefs.h <<_ACEOF
442295fdd44cSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
442395fdd44cSmrg_ACEOF
442495fdd44cSmrg
442595fdd44cSmrgfi
442695fdd44cSmrg
442795fdd44cSmrgdone
442895fdd44cSmrg
442995fdd44cSmrg
443095fdd44cSmrg
443195fdd44cSmrg  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
443295fdd44cSmrgif test "x$ac_cv_header_minix_config_h" = xyes; then :
443395fdd44cSmrg  MINIX=yes
443495fdd44cSmrgelse
443595fdd44cSmrg  MINIX=
443695fdd44cSmrgfi
443795fdd44cSmrg
443895fdd44cSmrg
443995fdd44cSmrg  if test "$MINIX" = yes; then
444095fdd44cSmrg
444195fdd44cSmrg$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
444295fdd44cSmrg
444395fdd44cSmrg
444495fdd44cSmrg$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
444595fdd44cSmrg
444695fdd44cSmrg
444795fdd44cSmrg$as_echo "#define _MINIX 1" >>confdefs.h
444895fdd44cSmrg
444995fdd44cSmrg  fi
445095fdd44cSmrg
445195fdd44cSmrg
445295fdd44cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
445395fdd44cSmrg$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
445495fdd44cSmrgif ${ac_cv_safe_to_define___extensions__+:} false; then :
445595fdd44cSmrg  $as_echo_n "(cached) " >&6
445695fdd44cSmrgelse
445795fdd44cSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
445895fdd44cSmrg/* end confdefs.h.  */
445995fdd44cSmrg
446095fdd44cSmrg#         define __EXTENSIONS__ 1
446195fdd44cSmrg          $ac_includes_default
446295fdd44cSmrgint
446395fdd44cSmrgmain ()
446495fdd44cSmrg{
446595fdd44cSmrg
446695fdd44cSmrg  ;
446795fdd44cSmrg  return 0;
446895fdd44cSmrg}
446995fdd44cSmrg_ACEOF
447095fdd44cSmrgif ac_fn_c_try_compile "$LINENO"; then :
447195fdd44cSmrg  ac_cv_safe_to_define___extensions__=yes
447295fdd44cSmrgelse
447395fdd44cSmrg  ac_cv_safe_to_define___extensions__=no
447495fdd44cSmrgfi
447595fdd44cSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
447695fdd44cSmrgfi
447795fdd44cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
447895fdd44cSmrg$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
447995fdd44cSmrg  test $ac_cv_safe_to_define___extensions__ = yes &&
448095fdd44cSmrg    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
448195fdd44cSmrg
448295fdd44cSmrg  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
448395fdd44cSmrg
448495fdd44cSmrg  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
448595fdd44cSmrg
448695fdd44cSmrg  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
448795fdd44cSmrg
448895fdd44cSmrg  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
448995fdd44cSmrg
449095fdd44cSmrg
449195fdd44cSmrg
449295fdd44cSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
449395fdd44cSmrg
449495fdd44cSmrg
449595fdd44cSmrg
449695fdd44cSmrg
449795fdd44cSmrg
449895fdd44cSmrg
449995fdd44cSmrg
450095fdd44cSmrg
450195fdd44cSmrg
450295fdd44cSmrg
450395fdd44cSmrg
450495fdd44cSmrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
450595fdd44cSmrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
450695fdd44cSmrgif ${ac_cv_prog_cc_c99+:} false; then :
450795fdd44cSmrg  $as_echo_n "(cached) " >&6
450895fdd44cSmrgelse
450995fdd44cSmrg  ac_cv_prog_cc_c99=no
451095fdd44cSmrgac_save_CC=$CC
451195fdd44cSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
451295fdd44cSmrg/* end confdefs.h.  */
451395fdd44cSmrg#include <stdarg.h>
451495fdd44cSmrg#include <stdbool.h>
451595fdd44cSmrg#include <stdlib.h>
451695fdd44cSmrg#include <wchar.h>
451795fdd44cSmrg#include <stdio.h>
451895fdd44cSmrg
451995fdd44cSmrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
452095fdd44cSmrg#define debug(...) fprintf (stderr, __VA_ARGS__)
452195fdd44cSmrg#define showlist(...) puts (#__VA_ARGS__)
452295fdd44cSmrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
452395fdd44cSmrgstatic void
452495fdd44cSmrgtest_varargs_macros (void)
452595fdd44cSmrg{
452695fdd44cSmrg  int x = 1234;
452795fdd44cSmrg  int y = 5678;
452895fdd44cSmrg  debug ("Flag");
452995fdd44cSmrg  debug ("X = %d\n", x);
453095fdd44cSmrg  showlist (The first, second, and third items.);
453195fdd44cSmrg  report (x>y, "x is %d but y is %d", x, y);
453295fdd44cSmrg}
453395fdd44cSmrg
453495fdd44cSmrg// Check long long types.
453595fdd44cSmrg#define BIG64 18446744073709551615ull
453695fdd44cSmrg#define BIG32 4294967295ul
453795fdd44cSmrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
453895fdd44cSmrg#if !BIG_OK
453995fdd44cSmrg  your preprocessor is broken;
454095fdd44cSmrg#endif
454195fdd44cSmrg#if BIG_OK
454295fdd44cSmrg#else
454395fdd44cSmrg  your preprocessor is broken;
454495fdd44cSmrg#endif
454595fdd44cSmrgstatic long long int bignum = -9223372036854775807LL;
454695fdd44cSmrgstatic unsigned long long int ubignum = BIG64;
454795fdd44cSmrg
454895fdd44cSmrgstruct incomplete_array
454995fdd44cSmrg{
455095fdd44cSmrg  int datasize;
455195fdd44cSmrg  double data[];
455295fdd44cSmrg};
455395fdd44cSmrg
455495fdd44cSmrgstruct named_init {
455595fdd44cSmrg  int number;
455695fdd44cSmrg  const wchar_t *name;
455795fdd44cSmrg  double average;
455895fdd44cSmrg};
455995fdd44cSmrg
456095fdd44cSmrgtypedef const char *ccp;
456195fdd44cSmrg
456295fdd44cSmrgstatic inline int
456395fdd44cSmrgtest_restrict (ccp restrict text)
456495fdd44cSmrg{
456595fdd44cSmrg  // See if C++-style comments work.
456695fdd44cSmrg  // Iterate through items via the restricted pointer.
456795fdd44cSmrg  // Also check for declarations in for loops.
456895fdd44cSmrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
456995fdd44cSmrg    continue;
457095fdd44cSmrg  return 0;
457195fdd44cSmrg}
457295fdd44cSmrg
457395fdd44cSmrg// Check varargs and va_copy.
457495fdd44cSmrgstatic void
457595fdd44cSmrgtest_varargs (const char *format, ...)
457695fdd44cSmrg{
457795fdd44cSmrg  va_list args;
457895fdd44cSmrg  va_start (args, format);
457995fdd44cSmrg  va_list args_copy;
458095fdd44cSmrg  va_copy (args_copy, args);
458195fdd44cSmrg
458295fdd44cSmrg  const char *str;
458395fdd44cSmrg  int number;
458495fdd44cSmrg  float fnumber;
458595fdd44cSmrg
458695fdd44cSmrg  while (*format)
458795fdd44cSmrg    {
458895fdd44cSmrg      switch (*format++)
458995fdd44cSmrg	{
459095fdd44cSmrg	case 's': // string
459195fdd44cSmrg	  str = va_arg (args_copy, const char *);
459295fdd44cSmrg	  break;
459395fdd44cSmrg	case 'd': // int
459495fdd44cSmrg	  number = va_arg (args_copy, int);
459595fdd44cSmrg	  break;
459695fdd44cSmrg	case 'f': // float
459795fdd44cSmrg	  fnumber = va_arg (args_copy, double);
459895fdd44cSmrg	  break;
459995fdd44cSmrg	default:
460095fdd44cSmrg	  break;
460195fdd44cSmrg	}
460295fdd44cSmrg    }
460395fdd44cSmrg  va_end (args_copy);
460495fdd44cSmrg  va_end (args);
460595fdd44cSmrg}
460695fdd44cSmrg
460795fdd44cSmrgint
460895fdd44cSmrgmain ()
460995fdd44cSmrg{
461095fdd44cSmrg
461195fdd44cSmrg  // Check bool.
461295fdd44cSmrg  _Bool success = false;
461395fdd44cSmrg
461495fdd44cSmrg  // Check restrict.
461595fdd44cSmrg  if (test_restrict ("String literal") == 0)
461695fdd44cSmrg    success = true;
461795fdd44cSmrg  char *restrict newvar = "Another string";
4618fb23d3a8Smrg
461995fdd44cSmrg  // Check varargs.
462095fdd44cSmrg  test_varargs ("s, d' f .", "string", 65, 34.234);
462195fdd44cSmrg  test_varargs_macros ();
4622fb23d3a8Smrg
462395fdd44cSmrg  // Check flexible array members.
462495fdd44cSmrg  struct incomplete_array *ia =
462595fdd44cSmrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
462695fdd44cSmrg  ia->datasize = 10;
462795fdd44cSmrg  for (int i = 0; i < ia->datasize; ++i)
462895fdd44cSmrg    ia->data[i] = i * 1.234;
4629169a0819Smrg
463095fdd44cSmrg  // Check named initializers.
463195fdd44cSmrg  struct named_init ni = {
463295fdd44cSmrg    .number = 34,
463395fdd44cSmrg    .name = L"Test wide string",
463495fdd44cSmrg    .average = 543.34343,
463595fdd44cSmrg  };
4636fb23d3a8Smrg
463795fdd44cSmrg  ni.number = 58;
4638fb23d3a8Smrg
463995fdd44cSmrg  int dynamic_array[ni.number];
464095fdd44cSmrg  dynamic_array[ni.number - 1] = 543;
4641fb23d3a8Smrg
464295fdd44cSmrg  // work around unused variable warnings
464395fdd44cSmrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
464495fdd44cSmrg	  || dynamic_array[ni.number - 1] != 543);
464595fdd44cSmrg
464695fdd44cSmrg  ;
4647fb23d3a8Smrg  return 0;
4648fb23d3a8Smrg}
4649fb23d3a8Smrg_ACEOF
465095fdd44cSmrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
465195fdd44cSmrgdo
465295fdd44cSmrg  CC="$ac_save_CC $ac_arg"
465395fdd44cSmrg  if ac_fn_c_try_compile "$LINENO"; then :
465495fdd44cSmrg  ac_cv_prog_cc_c99=$ac_arg
4655fb23d3a8Smrgfi
465695fdd44cSmrgrm -f core conftest.err conftest.$ac_objext
465795fdd44cSmrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
465895fdd44cSmrgdone
465995fdd44cSmrgrm -f conftest.$ac_ext
466095fdd44cSmrgCC=$ac_save_CC
4661fb23d3a8Smrg
4662fb23d3a8Smrgfi
466395fdd44cSmrg# AC_CACHE_VAL
466495fdd44cSmrgcase "x$ac_cv_prog_cc_c99" in
466595fdd44cSmrg  x)
466695fdd44cSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
466795fdd44cSmrg$as_echo "none needed" >&6; } ;;
466895fdd44cSmrg  xno)
466995fdd44cSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
467095fdd44cSmrg$as_echo "unsupported" >&6; } ;;
467195fdd44cSmrg  *)
467295fdd44cSmrg    CC="$CC $ac_cv_prog_cc_c99"
467395fdd44cSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
467495fdd44cSmrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
467595fdd44cSmrgesac
467695fdd44cSmrgif test "x$ac_cv_prog_cc_c99" != xno; then :
4677fb23d3a8Smrg
4678169a0819Smrgfi
4679fb23d3a8Smrg
4680fb23d3a8Smrg
4681fb23d3a8Smrg
4682fb23d3a8Smrg
46833544ea2eSmrg
46843544ea2eSmrg
46853544ea2eSmrgac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
46863544ea2eSmrgif test "x$ac_cv_have_decl___clang__" = xyes; then :
46873544ea2eSmrg  CLANGCC="yes"
46883544ea2eSmrgelse
46893544ea2eSmrg  CLANGCC="no"
46903544ea2eSmrgfi
46913544ea2eSmrg
46923544ea2eSmrgac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
46933544ea2eSmrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
46943544ea2eSmrg  INTELCC="yes"
46953544ea2eSmrgelse
46963544ea2eSmrg  INTELCC="no"
46973544ea2eSmrgfi
46983544ea2eSmrg
46993544ea2eSmrgac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
47003544ea2eSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
47013544ea2eSmrg  SUNCC="yes"
47023544ea2eSmrgelse
47033544ea2eSmrg  SUNCC="no"
47043544ea2eSmrgfi
47053544ea2eSmrg
47063544ea2eSmrg
47073544ea2eSmrg
47083544ea2eSmrg
4709aadd013eSmrg
4710aadd013eSmrg
4711aadd013eSmrg
4712aadd013eSmrg
4713aadd013eSmrg
4714169a0819Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4715169a0819Smrg	if test -n "$ac_tool_prefix"; then
4716169a0819Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4717169a0819Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4718169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4719169a0819Smrg$as_echo_n "checking for $ac_word... " >&6; }
4720169a0819Smrgif ${ac_cv_path_PKG_CONFIG+:} false; then :
4721fb23d3a8Smrg  $as_echo_n "(cached) " >&6
4722fb23d3a8Smrgelse
4723169a0819Smrg  case $PKG_CONFIG in
4724169a0819Smrg  [\\/]* | ?:[\\/]*)
4725169a0819Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4726169a0819Smrg  ;;
4727169a0819Smrg  *)
4728169a0819Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4729169a0819Smrgfor as_dir in $PATH
4730169a0819Smrgdo
4731169a0819Smrg  IFS=$as_save_IFS
4732169a0819Smrg  test -z "$as_dir" && as_dir=.
4733169a0819Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
473495fdd44cSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4735169a0819Smrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4736169a0819Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4737169a0819Smrg    break 2
4738169a0819Smrg  fi
4739169a0819Smrgdone
4740169a0819Smrg  done
4741169a0819SmrgIFS=$as_save_IFS
4742fb23d3a8Smrg
4743169a0819Smrg  ;;
4744fb23d3a8Smrgesac
4745169a0819Smrgfi
4746169a0819SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
4747169a0819Smrgif test -n "$PKG_CONFIG"; then
4748169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4749169a0819Smrg$as_echo "$PKG_CONFIG" >&6; }
4750fb23d3a8Smrgelse
4751169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4752169a0819Smrg$as_echo "no" >&6; }
4753fb23d3a8Smrgfi
4754fb23d3a8Smrg
4755fb23d3a8Smrg
4756fb23d3a8Smrgfi
4757169a0819Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
4758169a0819Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
4759169a0819Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
4760169a0819Smrgset dummy pkg-config; ac_word=$2
4761169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4762169a0819Smrg$as_echo_n "checking for $ac_word... " >&6; }
4763169a0819Smrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4764fb23d3a8Smrg  $as_echo_n "(cached) " >&6
4765fb23d3a8Smrgelse
4766169a0819Smrg  case $ac_pt_PKG_CONFIG in
4767169a0819Smrg  [\\/]* | ?:[\\/]*)
4768169a0819Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4769169a0819Smrg  ;;
4770169a0819Smrg  *)
4771169a0819Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772169a0819Smrgfor as_dir in $PATH
4773fb23d3a8Smrgdo
4774169a0819Smrg  IFS=$as_save_IFS
4775169a0819Smrg  test -z "$as_dir" && as_dir=.
4776169a0819Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
477795fdd44cSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4778169a0819Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4779169a0819Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4780169a0819Smrg    break 2
4781169a0819Smrg  fi
4782169a0819Smrgdone
4783169a0819Smrg  done
4784169a0819SmrgIFS=$as_save_IFS
4785169a0819Smrg
4786169a0819Smrg  ;;
4787fb23d3a8Smrgesac
4788169a0819Smrgfi
4789169a0819Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4790169a0819Smrgif test -n "$ac_pt_PKG_CONFIG"; then
4791169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4792169a0819Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4793fb23d3a8Smrgelse
4794169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4795169a0819Smrg$as_echo "no" >&6; }
4796fb23d3a8Smrgfi
4797fb23d3a8Smrg
4798169a0819Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
4799169a0819Smrg    PKG_CONFIG=""
4800169a0819Smrg  else
4801169a0819Smrg    case $cross_compiling:$ac_tool_warned in
4802169a0819Smrgyes:)
4803169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4804169a0819Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4805169a0819Smrgac_tool_warned=yes ;;
4806fb23d3a8Smrgesac
4807169a0819Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
4808169a0819Smrg  fi
4809169a0819Smrgelse
4810169a0819Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4811169a0819Smrgfi
4812fb23d3a8Smrg
4813169a0819Smrgfi
4814169a0819Smrgif test -n "$PKG_CONFIG"; then
4815169a0819Smrg	_pkg_min_version=0.9.0
4816169a0819Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4817169a0819Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4818169a0819Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4819169a0819Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4820169a0819Smrg$as_echo "yes" >&6; }
4821169a0819Smrg	else
4822169a0819Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4823169a0819Smrg$as_echo "no" >&6; }
4824169a0819Smrg		PKG_CONFIG=""
4825169a0819Smrg	fi
4826169a0819Smrgfi
4827fb23d3a8Smrg# Make sure we can run config.sub.
4828fb23d3a8Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4829169a0819Smrg  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4830fb23d3a8Smrg
4831169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4832fb23d3a8Smrg$as_echo_n "checking build system type... " >&6; }
4833169a0819Smrgif ${ac_cv_build+:} false; then :
4834fb23d3a8Smrg  $as_echo_n "(cached) " >&6
4835fb23d3a8Smrgelse
4836fb23d3a8Smrg  ac_build_alias=$build_alias
4837fb23d3a8Smrgtest "x$ac_build_alias" = x &&
4838fb23d3a8Smrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4839fb23d3a8Smrgtest "x$ac_build_alias" = x &&
4840169a0819Smrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4841fb23d3a8Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4842169a0819Smrg  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4843fb23d3a8Smrg
4844fb23d3a8Smrgfi
4845169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4846fb23d3a8Smrg$as_echo "$ac_cv_build" >&6; }
4847fb23d3a8Smrgcase $ac_cv_build in
4848fb23d3a8Smrg*-*-*) ;;
4849169a0819Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4850fb23d3a8Smrgesac
4851fb23d3a8Smrgbuild=$ac_cv_build
4852fb23d3a8Smrgac_save_IFS=$IFS; IFS='-'
4853fb23d3a8Smrgset x $ac_cv_build
4854fb23d3a8Smrgshift
4855fb23d3a8Smrgbuild_cpu=$1
4856fb23d3a8Smrgbuild_vendor=$2
4857fb23d3a8Smrgshift; shift
4858fb23d3a8Smrg# Remember, the first character of IFS is used to create $*,
4859fb23d3a8Smrg# except with old shells:
4860fb23d3a8Smrgbuild_os=$*
4861fb23d3a8SmrgIFS=$ac_save_IFS
4862fb23d3a8Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4863fb23d3a8Smrg
4864fb23d3a8Smrg
4865169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4866fb23d3a8Smrg$as_echo_n "checking host system type... " >&6; }
4867169a0819Smrgif ${ac_cv_host+:} false; then :
4868fb23d3a8Smrg  $as_echo_n "(cached) " >&6
4869fb23d3a8Smrgelse
4870fb23d3a8Smrg  if test "x$host_alias" = x; then
4871fb23d3a8Smrg  ac_cv_host=$ac_cv_build
4872fb23d3a8Smrgelse
4873fb23d3a8Smrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4874169a0819Smrg    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4875fb23d3a8Smrgfi
4876fb23d3a8Smrg
4877fb23d3a8Smrgfi
4878169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4879fb23d3a8Smrg$as_echo "$ac_cv_host" >&6; }
4880fb23d3a8Smrgcase $ac_cv_host in
4881fb23d3a8Smrg*-*-*) ;;
4882169a0819Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4883fb23d3a8Smrgesac
4884fb23d3a8Smrghost=$ac_cv_host
4885fb23d3a8Smrgac_save_IFS=$IFS; IFS='-'
4886fb23d3a8Smrgset x $ac_cv_host
4887fb23d3a8Smrgshift
4888fb23d3a8Smrghost_cpu=$1
4889fb23d3a8Smrghost_vendor=$2
4890fb23d3a8Smrgshift; shift
4891fb23d3a8Smrg# Remember, the first character of IFS is used to create $*,
4892fb23d3a8Smrg# except with old shells:
4893fb23d3a8Smrghost_os=$*
4894fb23d3a8SmrgIFS=$ac_save_IFS
4895fb23d3a8Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4896fb23d3a8Smrg
4897fb23d3a8Smrg
4898169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4899169a0819Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4900169a0819Smrgif ${ac_cv_path_SED+:} false; then :
4901fb23d3a8Smrg  $as_echo_n "(cached) " >&6
4902fb23d3a8Smrgelse
4903169a0819Smrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4904169a0819Smrg     for ac_i in 1 2 3 4 5 6 7; do
4905169a0819Smrg       ac_script="$ac_script$as_nl$ac_script"
4906169a0819Smrg     done
4907169a0819Smrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4908169a0819Smrg     { ac_script=; unset ac_script;}
4909169a0819Smrg     if test -z "$SED"; then
4910169a0819Smrg  ac_path_SED_found=false
4911169a0819Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
4912169a0819Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913169a0819Smrgfor as_dir in $PATH
4914169a0819Smrgdo
4915169a0819Smrg  IFS=$as_save_IFS
4916169a0819Smrg  test -z "$as_dir" && as_dir=.
4917169a0819Smrg    for ac_prog in sed gsed; do
4918169a0819Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4919169a0819Smrg      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
492095fdd44cSmrg      as_fn_executable_p "$ac_path_SED" || continue
4921169a0819Smrg# Check for GNU ac_path_SED and select it if it is found.
4922169a0819Smrg  # Check for GNU $ac_path_SED
4923169a0819Smrgcase `"$ac_path_SED" --version 2>&1` in
4924169a0819Smrg*GNU*)
4925169a0819Smrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4926169a0819Smrg*)
4927169a0819Smrg  ac_count=0
4928169a0819Smrg  $as_echo_n 0123456789 >"conftest.in"
4929169a0819Smrg  while :
4930169a0819Smrg  do
4931169a0819Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
4932169a0819Smrg    mv "conftest.tmp" "conftest.in"
4933169a0819Smrg    cp "conftest.in" "conftest.nl"
4934169a0819Smrg    $as_echo '' >> "conftest.nl"
4935169a0819Smrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4936169a0819Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4937169a0819Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
4938169a0819Smrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
4939169a0819Smrg      # Best one so far, save it but keep looking for a better one
4940169a0819Smrg      ac_cv_path_SED="$ac_path_SED"
4941169a0819Smrg      ac_path_SED_max=$ac_count
4942169a0819Smrg    fi
4943169a0819Smrg    # 10*(2^10) chars as input seems more than enough
4944169a0819Smrg    test $ac_count -gt 10 && break
4945169a0819Smrg  done
4946169a0819Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4947fb23d3a8Smrgesac
4948169a0819Smrg
4949169a0819Smrg      $ac_path_SED_found && break 3
4950169a0819Smrg    done
4951169a0819Smrg  done
4952169a0819Smrg  done
4953169a0819SmrgIFS=$as_save_IFS
4954169a0819Smrg  if test -z "$ac_cv_path_SED"; then
4955169a0819Smrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4956169a0819Smrg  fi
4957fb23d3a8Smrgelse
4958169a0819Smrg  ac_cv_path_SED=$SED
4959fb23d3a8Smrgfi
4960fb23d3a8Smrg
4961fb23d3a8Smrgfi
4962169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4963169a0819Smrg$as_echo "$ac_cv_path_SED" >&6; }
4964169a0819Smrg SED="$ac_cv_path_SED"
4965169a0819Smrg  rm -f conftest.sed
4966169a0819Smrg
4967169a0819Smrg
4968169a0819Smrg
4969169a0819Smrg
4970169a0819Smrg
49713544ea2eSmrg
49723544ea2eSmrg# Check whether --enable-selective-werror was given.
49733544ea2eSmrgif test "${enable_selective_werror+set}" = set; then :
49743544ea2eSmrg  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4975fb23d3a8Smrgelse
49763544ea2eSmrg  SELECTIVE_WERROR=yes
4977fb23d3a8Smrgfi
4978fb23d3a8Smrg
49793544ea2eSmrg
49803544ea2eSmrg
49813544ea2eSmrg
49823544ea2eSmrg
49833544ea2eSmrg# -v is too short to test reliably with XORG_TESTSET_CFLAG
49843544ea2eSmrgif test "x$SUNCC" = "xyes"; then
49853544ea2eSmrg    BASE_CFLAGS="-v"
49863544ea2eSmrgelse
49873544ea2eSmrg    BASE_CFLAGS=""
4988fb23d3a8Smrgfi
4989fb23d3a8Smrg
49903544ea2eSmrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4991fb23d3a8Smrg
4992fb23d3a8Smrg
4993fb23d3a8Smrg
4994fb23d3a8Smrg
4995fb23d3a8Smrg
4996fb23d3a8Smrg
4997fb23d3a8Smrg
49983544ea2eSmrg
49993544ea2eSmrg
50003544ea2eSmrg
50013544ea2eSmrg
50023544ea2eSmrg
50033544ea2eSmrg
50043544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
50053544ea2eSmrg
50063544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
50073544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
50083544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
50093544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
50103544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
50113544ea2eSmrg  $as_echo_n "(cached) " >&6
5012fb23d3a8Smrgelse
50133544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50143544ea2eSmrg/* end confdefs.h.  */
50153544ea2eSmrgint i;
50163544ea2eSmrg_ACEOF
50173544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
50183544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
50193544ea2eSmrgelse
50203544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
50213544ea2eSmrgfi
50223544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50233544ea2eSmrgfi
50243544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
50253544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
50263544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
50273544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5028fb23d3a8Smrgfi
5029fb23d3a8Smrg
50303544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
50313544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
50323544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5033fb23d3a8Smrg	fi
50343544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
50353544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
50363544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
50373544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
50383544ea2eSmrg  $as_echo_n "(cached) " >&6
50393544ea2eSmrgelse
50403544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50413544ea2eSmrg/* end confdefs.h.  */
50423544ea2eSmrgint i;
50433544ea2eSmrg_ACEOF
50443544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
50453544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
50463544ea2eSmrgelse
50473544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
50483544ea2eSmrgfi
50493544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50503544ea2eSmrgfi
50513544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
50523544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
50533544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
50543544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5055fb23d3a8Smrgfi
5056fb23d3a8Smrg
50573544ea2eSmrgfound="no"
5058fb23d3a8Smrg
50593544ea2eSmrg	if test $found = "no" ; then
506095fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
50613544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
50623544ea2eSmrg		fi
5063fb23d3a8Smrg
506495fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
50653544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
50663544ea2eSmrg		fi
5067fb23d3a8Smrg
50683544ea2eSmrg		CFLAGS="$CFLAGS -Wall"
5069fb23d3a8Smrg
507081440437Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
507181440437Smrg$as_echo_n "checking if $CC supports -Wall... " >&6; }
50723544ea2eSmrg		cacheid=xorg_cv_cc_flag__Wall
50733544ea2eSmrg		if eval \${$cacheid+:} false; then :
50743544ea2eSmrg  $as_echo_n "(cached) " >&6
50753544ea2eSmrgelse
50763544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50773544ea2eSmrg/* end confdefs.h.  */
50783544ea2eSmrgint i;
50793544ea2eSmrgint
50803544ea2eSmrgmain ()
50813544ea2eSmrg{
5082fb23d3a8Smrg
50833544ea2eSmrg  ;
50843544ea2eSmrg  return 0;
50853544ea2eSmrg}
5086fb23d3a8Smrg_ACEOF
50873544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
50883544ea2eSmrg  eval $cacheid=yes
50893544ea2eSmrgelse
50903544ea2eSmrg  eval $cacheid=no
50913544ea2eSmrgfi
50923544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
50933544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
50943544ea2eSmrgfi
5095fb23d3a8Smrg
50963544ea2eSmrg
50973544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
50983544ea2eSmrg
50993544ea2eSmrg		eval supported=\$$cacheid
51003544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
51013544ea2eSmrg$as_echo "$supported" >&6; }
51023544ea2eSmrg		if test "$supported" = "yes" ; then
51033544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wall"
51043544ea2eSmrg			found="yes"
51053544ea2eSmrg		fi
5106fb23d3a8Smrg	fi
5107fb23d3a8Smrg
5108fb23d3a8Smrg
5109fb23d3a8Smrg
5110fb23d3a8Smrg
5111fb23d3a8Smrg
5112169a0819Smrg
5113169a0819Smrg
5114169a0819Smrg
5115169a0819Smrg
5116fb23d3a8Smrg
5117fb23d3a8Smrg
5118fb23d3a8Smrg
5119fb23d3a8Smrg
5120fb23d3a8Smrg
5121fb23d3a8Smrg
51223544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
5123fb23d3a8Smrg
51243544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
51253544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
51263544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
51273544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
51283544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
51293544ea2eSmrg  $as_echo_n "(cached) " >&6
51303544ea2eSmrgelse
51313544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51323544ea2eSmrg/* end confdefs.h.  */
51333544ea2eSmrgint i;
51343544ea2eSmrg_ACEOF
51353544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
51363544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
51373544ea2eSmrgelse
51383544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
5139fb23d3a8Smrgfi
51403544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5141fb23d3a8Smrgfi
51423544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
51433544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
51443544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
51453544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5146fb23d3a8Smrgfi
5147fb23d3a8Smrg
51483544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
51493544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
51503544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
51513544ea2eSmrg	fi
51523544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
51533544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
51543544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
51553544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
51563544ea2eSmrg  $as_echo_n "(cached) " >&6
51573544ea2eSmrgelse
51583544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51593544ea2eSmrg/* end confdefs.h.  */
51603544ea2eSmrgint i;
51613544ea2eSmrg_ACEOF
51623544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
51633544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
51643544ea2eSmrgelse
51653544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
5166fb23d3a8Smrgfi
51673544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51683544ea2eSmrgfi
51693544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
51703544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
51713544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
51723544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5173fb23d3a8Smrgfi
5174fb23d3a8Smrg
51753544ea2eSmrgfound="no"
51763544ea2eSmrg
51773544ea2eSmrg	if test $found = "no" ; then
517895fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
51793544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
51803544ea2eSmrg		fi
51813544ea2eSmrg
518295fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
51833544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
51843544ea2eSmrg		fi
51853544ea2eSmrg
51863544ea2eSmrg		CFLAGS="$CFLAGS -Wpointer-arith"
51873544ea2eSmrg
518881440437Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
518981440437Smrg$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
51903544ea2eSmrg		cacheid=xorg_cv_cc_flag__Wpointer_arith
51913544ea2eSmrg		if eval \${$cacheid+:} false; then :
51923544ea2eSmrg  $as_echo_n "(cached) " >&6
51933544ea2eSmrgelse
51943544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51953544ea2eSmrg/* end confdefs.h.  */
51963544ea2eSmrgint i;
51973544ea2eSmrgint
51983544ea2eSmrgmain ()
51993544ea2eSmrg{
52003544ea2eSmrg
52013544ea2eSmrg  ;
52023544ea2eSmrg  return 0;
52033544ea2eSmrg}
52043544ea2eSmrg_ACEOF
52053544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
52063544ea2eSmrg  eval $cacheid=yes
52073544ea2eSmrgelse
52083544ea2eSmrg  eval $cacheid=no
5209fb23d3a8Smrgfi
52103544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
52113544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
5212fb23d3a8Smrgfi
5213fb23d3a8Smrg
5214fb23d3a8Smrg
52153544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5216fb23d3a8Smrg
52173544ea2eSmrg		eval supported=\$$cacheid
52183544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
52193544ea2eSmrg$as_echo "$supported" >&6; }
52203544ea2eSmrg		if test "$supported" = "yes" ; then
52213544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
52223544ea2eSmrg			found="yes"
52233544ea2eSmrg		fi
52243544ea2eSmrg	fi
5225fb23d3a8Smrg
5226fb23d3a8Smrg
5227fb23d3a8Smrg
5228fb23d3a8Smrg
5229fb23d3a8Smrg
5230fb23d3a8Smrg
5231fb23d3a8Smrg
5232fb23d3a8Smrg
5233fb23d3a8Smrg
5234fb23d3a8Smrg
5235fb23d3a8Smrg
5236fb23d3a8Smrg
5237fb23d3a8Smrg
52383544ea2eSmrg
52393544ea2eSmrg
52403544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
52413544ea2eSmrg
52423544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
52433544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
52443544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
52453544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
52463544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
52473544ea2eSmrg  $as_echo_n "(cached) " >&6
52483544ea2eSmrgelse
52493544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52503544ea2eSmrg/* end confdefs.h.  */
52513544ea2eSmrgint i;
52523544ea2eSmrg_ACEOF
52533544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
52543544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
52553544ea2eSmrgelse
52563544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
52573544ea2eSmrgfi
52583544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52593544ea2eSmrgfi
52603544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
52613544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
52623544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
52633544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
52643544ea2eSmrgfi
52653544ea2eSmrg
52663544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
52673544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
52683544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
52693544ea2eSmrg	fi
52703544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
52713544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
52723544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
52733544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
52743544ea2eSmrg  $as_echo_n "(cached) " >&6
52753544ea2eSmrgelse
52763544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52773544ea2eSmrg/* end confdefs.h.  */
52783544ea2eSmrgint i;
52793544ea2eSmrg_ACEOF
52803544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
52813544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
52823544ea2eSmrgelse
52833544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
52843544ea2eSmrgfi
52853544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52863544ea2eSmrgfi
52873544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
52883544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
52893544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
52903544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
52913544ea2eSmrgfi
52923544ea2eSmrg
52933544ea2eSmrgfound="no"
52943544ea2eSmrg
52953544ea2eSmrg	if test $found = "no" ; then
529695fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
52973544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
52983544ea2eSmrg		fi
52993544ea2eSmrg
530095fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
53013544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
53023544ea2eSmrg		fi
53033544ea2eSmrg
53043544ea2eSmrg		CFLAGS="$CFLAGS -Wmissing-declarations"
53053544ea2eSmrg
530681440437Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
530781440437Smrg$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
53083544ea2eSmrg		cacheid=xorg_cv_cc_flag__Wmissing_declarations
53093544ea2eSmrg		if eval \${$cacheid+:} false; then :
53103544ea2eSmrg  $as_echo_n "(cached) " >&6
53113544ea2eSmrgelse
53123544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53133544ea2eSmrg/* end confdefs.h.  */
53143544ea2eSmrgint i;
53153544ea2eSmrgint
53163544ea2eSmrgmain ()
53173544ea2eSmrg{
53183544ea2eSmrg
53193544ea2eSmrg  ;
53203544ea2eSmrg  return 0;
53213544ea2eSmrg}
53223544ea2eSmrg_ACEOF
53233544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
53243544ea2eSmrg  eval $cacheid=yes
53253544ea2eSmrgelse
53263544ea2eSmrg  eval $cacheid=no
53273544ea2eSmrgfi
53283544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
53293544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
53303544ea2eSmrgfi
53313544ea2eSmrg
53323544ea2eSmrg
53333544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
53343544ea2eSmrg
53353544ea2eSmrg		eval supported=\$$cacheid
53363544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
53373544ea2eSmrg$as_echo "$supported" >&6; }
53383544ea2eSmrg		if test "$supported" = "yes" ; then
53393544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
53403544ea2eSmrg			found="yes"
53413544ea2eSmrg		fi
53423544ea2eSmrg	fi
53433544ea2eSmrg
53443544ea2eSmrg
53453544ea2eSmrg
53463544ea2eSmrg
53473544ea2eSmrg
53483544ea2eSmrg
53493544ea2eSmrg
53503544ea2eSmrg
53513544ea2eSmrg
53523544ea2eSmrg
53533544ea2eSmrg
53543544ea2eSmrg
53553544ea2eSmrg
53563544ea2eSmrg
53573544ea2eSmrg
53583544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
53593544ea2eSmrg
53603544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
53613544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
53623544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
53633544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
53643544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
53653544ea2eSmrg  $as_echo_n "(cached) " >&6
53663544ea2eSmrgelse
53673544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53683544ea2eSmrg/* end confdefs.h.  */
53693544ea2eSmrgint i;
53703544ea2eSmrg_ACEOF
53713544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
53723544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
53733544ea2eSmrgelse
53743544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
53753544ea2eSmrgfi
53763544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53773544ea2eSmrgfi
53783544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
53793544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
53803544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
53813544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
53823544ea2eSmrgfi
53833544ea2eSmrg
53843544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
53853544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
53863544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
53873544ea2eSmrg	fi
53883544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
53893544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
53903544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
53913544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
53923544ea2eSmrg  $as_echo_n "(cached) " >&6
53933544ea2eSmrgelse
53943544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53953544ea2eSmrg/* end confdefs.h.  */
53963544ea2eSmrgint i;
53973544ea2eSmrg_ACEOF
53983544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
53993544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
54003544ea2eSmrgelse
54013544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
54023544ea2eSmrgfi
54033544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54043544ea2eSmrgfi
54053544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
54063544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
54073544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
54083544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
54093544ea2eSmrgfi
54103544ea2eSmrg
54113544ea2eSmrgfound="no"
54123544ea2eSmrg
54133544ea2eSmrg	if test $found = "no" ; then
541495fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
54153544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
54163544ea2eSmrg		fi
54173544ea2eSmrg
541895fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
54193544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
54203544ea2eSmrg		fi
54213544ea2eSmrg
54223544ea2eSmrg		CFLAGS="$CFLAGS -Wformat=2"
54233544ea2eSmrg
542481440437Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
542581440437Smrg$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
542695fdd44cSmrg		cacheid=xorg_cv_cc_flag__Wformat_2
54273544ea2eSmrg		if eval \${$cacheid+:} false; then :
54283544ea2eSmrg  $as_echo_n "(cached) " >&6
54293544ea2eSmrgelse
54303544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54313544ea2eSmrg/* end confdefs.h.  */
54323544ea2eSmrgint i;
54333544ea2eSmrgint
54343544ea2eSmrgmain ()
54353544ea2eSmrg{
54363544ea2eSmrg
54373544ea2eSmrg  ;
54383544ea2eSmrg  return 0;
54393544ea2eSmrg}
54403544ea2eSmrg_ACEOF
54413544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
54423544ea2eSmrg  eval $cacheid=yes
54433544ea2eSmrgelse
54443544ea2eSmrg  eval $cacheid=no
54453544ea2eSmrgfi
54463544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
54473544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
54483544ea2eSmrgfi
54493544ea2eSmrg
54503544ea2eSmrg
54513544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
54523544ea2eSmrg
54533544ea2eSmrg		eval supported=\$$cacheid
54543544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
54553544ea2eSmrg$as_echo "$supported" >&6; }
54563544ea2eSmrg		if test "$supported" = "yes" ; then
54573544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
54583544ea2eSmrg			found="yes"
54593544ea2eSmrg		fi
54603544ea2eSmrg	fi
54613544ea2eSmrg
54623544ea2eSmrg	if test $found = "no" ; then
546395fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
54643544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
54653544ea2eSmrg		fi
54663544ea2eSmrg
546795fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
54683544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
54693544ea2eSmrg		fi
54703544ea2eSmrg
54713544ea2eSmrg		CFLAGS="$CFLAGS -Wformat"
54723544ea2eSmrg
547381440437Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
547481440437Smrg$as_echo_n "checking if $CC supports -Wformat... " >&6; }
54753544ea2eSmrg		cacheid=xorg_cv_cc_flag__Wformat
54763544ea2eSmrg		if eval \${$cacheid+:} false; then :
54773544ea2eSmrg  $as_echo_n "(cached) " >&6
54783544ea2eSmrgelse
54793544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54803544ea2eSmrg/* end confdefs.h.  */
54813544ea2eSmrgint i;
54823544ea2eSmrgint
54833544ea2eSmrgmain ()
54843544ea2eSmrg{
54853544ea2eSmrg
54863544ea2eSmrg  ;
54873544ea2eSmrg  return 0;
54883544ea2eSmrg}
54893544ea2eSmrg_ACEOF
54903544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
54913544ea2eSmrg  eval $cacheid=yes
54923544ea2eSmrgelse
54933544ea2eSmrg  eval $cacheid=no
54943544ea2eSmrgfi
54953544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
54963544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
54973544ea2eSmrgfi
54983544ea2eSmrg
54993544ea2eSmrg
55003544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
55013544ea2eSmrg
55023544ea2eSmrg		eval supported=\$$cacheid
55033544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
55043544ea2eSmrg$as_echo "$supported" >&6; }
55053544ea2eSmrg		if test "$supported" = "yes" ; then
55063544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
55073544ea2eSmrg			found="yes"
55083544ea2eSmrg		fi
55093544ea2eSmrg	fi
55103544ea2eSmrg
55113544ea2eSmrg
55123544ea2eSmrg
55133544ea2eSmrg
55143544ea2eSmrg
55153544ea2eSmrg
55163544ea2eSmrg
55173544ea2eSmrg
55183544ea2eSmrg
55193544ea2eSmrg
55203544ea2eSmrg
55213544ea2eSmrg
55223544ea2eSmrg
55233544ea2eSmrg
55243544ea2eSmrg
55253544ea2eSmrg
55263544ea2eSmrg
55273544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
55283544ea2eSmrg
55293544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
55303544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
55313544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
55323544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
55333544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
55343544ea2eSmrg  $as_echo_n "(cached) " >&6
55353544ea2eSmrgelse
55363544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55373544ea2eSmrg/* end confdefs.h.  */
55383544ea2eSmrgint i;
55393544ea2eSmrg_ACEOF
55403544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
55413544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
55423544ea2eSmrgelse
55433544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
55443544ea2eSmrgfi
55453544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55463544ea2eSmrgfi
55473544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
55483544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
55493544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
55503544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
55513544ea2eSmrgfi
55523544ea2eSmrg
55533544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
55543544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
55553544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
55563544ea2eSmrg	fi
55573544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
55583544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
55593544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
55603544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
55613544ea2eSmrg  $as_echo_n "(cached) " >&6
55623544ea2eSmrgelse
55633544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55643544ea2eSmrg/* end confdefs.h.  */
55653544ea2eSmrgint i;
55663544ea2eSmrg_ACEOF
55673544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
55683544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
55693544ea2eSmrgelse
55703544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
55713544ea2eSmrgfi
55723544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55733544ea2eSmrgfi
55743544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
55753544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
55763544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
55773544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
55783544ea2eSmrgfi
55793544ea2eSmrg
55803544ea2eSmrgfound="no"
55813544ea2eSmrg
55823544ea2eSmrg	if test $found = "no" ; then
558395fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
55843544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
55853544ea2eSmrg		fi
55863544ea2eSmrg
558795fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
55883544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
55893544ea2eSmrg		fi
55903544ea2eSmrg
55913544ea2eSmrg		CFLAGS="$CFLAGS -Wstrict-prototypes"
55923544ea2eSmrg
559381440437Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
559481440437Smrg$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
55953544ea2eSmrg		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
55963544ea2eSmrg		if eval \${$cacheid+:} false; then :
55973544ea2eSmrg  $as_echo_n "(cached) " >&6
55983544ea2eSmrgelse
55993544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56003544ea2eSmrg/* end confdefs.h.  */
56013544ea2eSmrgint i;
56023544ea2eSmrgint
56033544ea2eSmrgmain ()
56043544ea2eSmrg{
56053544ea2eSmrg
56063544ea2eSmrg  ;
56073544ea2eSmrg  return 0;
56083544ea2eSmrg}
56093544ea2eSmrg_ACEOF
56103544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
56113544ea2eSmrg  eval $cacheid=yes
56123544ea2eSmrgelse
56133544ea2eSmrg  eval $cacheid=no
56143544ea2eSmrgfi
56153544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
56163544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
56173544ea2eSmrgfi
56183544ea2eSmrg
56193544ea2eSmrg
56203544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
56213544ea2eSmrg
56223544ea2eSmrg		eval supported=\$$cacheid
56233544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
56243544ea2eSmrg$as_echo "$supported" >&6; }
56253544ea2eSmrg		if test "$supported" = "yes" ; then
56263544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
56273544ea2eSmrg			found="yes"
56283544ea2eSmrg		fi
56293544ea2eSmrg	fi
56303544ea2eSmrg
56313544ea2eSmrg
56323544ea2eSmrg
56333544ea2eSmrg
56343544ea2eSmrg
56353544ea2eSmrg
56363544ea2eSmrg
56373544ea2eSmrg
56383544ea2eSmrg
56393544ea2eSmrg
56403544ea2eSmrg
56413544ea2eSmrg
56423544ea2eSmrg
56433544ea2eSmrg
56443544ea2eSmrg
56453544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
56463544ea2eSmrg
56473544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
56483544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
56493544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
56503544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
56513544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
56523544ea2eSmrg  $as_echo_n "(cached) " >&6
56533544ea2eSmrgelse
56543544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56553544ea2eSmrg/* end confdefs.h.  */
56563544ea2eSmrgint i;
56573544ea2eSmrg_ACEOF
56583544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
56593544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
56603544ea2eSmrgelse
56613544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
56623544ea2eSmrgfi
56633544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56643544ea2eSmrgfi
56653544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
56663544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
56673544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
56683544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
56693544ea2eSmrgfi
56703544ea2eSmrg
56713544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
56723544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
56733544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
56743544ea2eSmrg	fi
56753544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
56763544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
56773544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
56783544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
56793544ea2eSmrg  $as_echo_n "(cached) " >&6
56803544ea2eSmrgelse
56813544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56823544ea2eSmrg/* end confdefs.h.  */
56833544ea2eSmrgint i;
56843544ea2eSmrg_ACEOF
56853544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
56863544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
56873544ea2eSmrgelse
56883544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
56893544ea2eSmrgfi
56903544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56913544ea2eSmrgfi
56923544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
56933544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
56943544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
56953544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
56963544ea2eSmrgfi
56973544ea2eSmrg
56983544ea2eSmrgfound="no"
56993544ea2eSmrg
57003544ea2eSmrg	if test $found = "no" ; then
570195fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
57023544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
57033544ea2eSmrg		fi
57043544ea2eSmrg
570595fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
57063544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
57073544ea2eSmrg		fi
57083544ea2eSmrg
57093544ea2eSmrg		CFLAGS="$CFLAGS -Wmissing-prototypes"
57103544ea2eSmrg
571181440437Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
571281440437Smrg$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
57133544ea2eSmrg		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
57143544ea2eSmrg		if eval \${$cacheid+:} false; then :
57153544ea2eSmrg  $as_echo_n "(cached) " >&6
57163544ea2eSmrgelse
57173544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57183544ea2eSmrg/* end confdefs.h.  */
57193544ea2eSmrgint i;
57203544ea2eSmrgint
57213544ea2eSmrgmain ()
57223544ea2eSmrg{
57233544ea2eSmrg
57243544ea2eSmrg  ;
57253544ea2eSmrg  return 0;
57263544ea2eSmrg}
57273544ea2eSmrg_ACEOF
57283544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
57293544ea2eSmrg  eval $cacheid=yes
57303544ea2eSmrgelse
57313544ea2eSmrg  eval $cacheid=no
57323544ea2eSmrgfi
57333544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
57343544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
57353544ea2eSmrgfi
57363544ea2eSmrg
57373544ea2eSmrg
57383544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
57393544ea2eSmrg
57403544ea2eSmrg		eval supported=\$$cacheid
57413544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
57423544ea2eSmrg$as_echo "$supported" >&6; }
57433544ea2eSmrg		if test "$supported" = "yes" ; then
57443544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
57453544ea2eSmrg			found="yes"
57463544ea2eSmrg		fi
57473544ea2eSmrg	fi
57483544ea2eSmrg
57493544ea2eSmrg
57503544ea2eSmrg
57513544ea2eSmrg
57523544ea2eSmrg
57533544ea2eSmrg
57543544ea2eSmrg
57553544ea2eSmrg
57563544ea2eSmrg
57573544ea2eSmrg
57583544ea2eSmrg
57593544ea2eSmrg
57603544ea2eSmrg
57613544ea2eSmrg
57623544ea2eSmrg
57633544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
57643544ea2eSmrg
57653544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
57663544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
57673544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
57683544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
57693544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
57703544ea2eSmrg  $as_echo_n "(cached) " >&6
57713544ea2eSmrgelse
57723544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57733544ea2eSmrg/* end confdefs.h.  */
57743544ea2eSmrgint i;
57753544ea2eSmrg_ACEOF
57763544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
57773544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
57783544ea2eSmrgelse
57793544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
57803544ea2eSmrgfi
57813544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57823544ea2eSmrgfi
57833544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
57843544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
57853544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
57863544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
57873544ea2eSmrgfi
57883544ea2eSmrg
57893544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
57903544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
57913544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
57923544ea2eSmrg	fi
57933544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
57943544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
57953544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
57963544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
57973544ea2eSmrg  $as_echo_n "(cached) " >&6
57983544ea2eSmrgelse
57993544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58003544ea2eSmrg/* end confdefs.h.  */
58013544ea2eSmrgint i;
58023544ea2eSmrg_ACEOF
58033544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
58043544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
58053544ea2eSmrgelse
58063544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
58073544ea2eSmrgfi
58083544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58093544ea2eSmrgfi
58103544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
58113544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
58123544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
58133544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
58143544ea2eSmrgfi
58153544ea2eSmrg
58163544ea2eSmrgfound="no"
58173544ea2eSmrg
58183544ea2eSmrg	if test $found = "no" ; then
581995fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
58203544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
58213544ea2eSmrg		fi
58223544ea2eSmrg
582395fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
58243544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
58253544ea2eSmrg		fi
58263544ea2eSmrg
58273544ea2eSmrg		CFLAGS="$CFLAGS -Wnested-externs"
58283544ea2eSmrg
582981440437Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
583081440437Smrg$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
58313544ea2eSmrg		cacheid=xorg_cv_cc_flag__Wnested_externs
58323544ea2eSmrg		if eval \${$cacheid+:} false; then :
58333544ea2eSmrg  $as_echo_n "(cached) " >&6
58343544ea2eSmrgelse
58353544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58363544ea2eSmrg/* end confdefs.h.  */
58373544ea2eSmrgint i;
58383544ea2eSmrgint
58393544ea2eSmrgmain ()
58403544ea2eSmrg{
58413544ea2eSmrg
58423544ea2eSmrg  ;
58433544ea2eSmrg  return 0;
58443544ea2eSmrg}
58453544ea2eSmrg_ACEOF
58463544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
58473544ea2eSmrg  eval $cacheid=yes
58483544ea2eSmrgelse
58493544ea2eSmrg  eval $cacheid=no
58503544ea2eSmrgfi
58513544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
58523544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
58533544ea2eSmrgfi
58543544ea2eSmrg
58553544ea2eSmrg
58563544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
58573544ea2eSmrg
58583544ea2eSmrg		eval supported=\$$cacheid
58593544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
58603544ea2eSmrg$as_echo "$supported" >&6; }
58613544ea2eSmrg		if test "$supported" = "yes" ; then
58623544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
58633544ea2eSmrg			found="yes"
58643544ea2eSmrg		fi
58653544ea2eSmrg	fi
58663544ea2eSmrg
58673544ea2eSmrg
58683544ea2eSmrg
58693544ea2eSmrg
58703544ea2eSmrg
58713544ea2eSmrg
58723544ea2eSmrg
58733544ea2eSmrg
58743544ea2eSmrg
58753544ea2eSmrg
58763544ea2eSmrg
58773544ea2eSmrg
58783544ea2eSmrg
58793544ea2eSmrg
58803544ea2eSmrg
58813544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
58823544ea2eSmrg
58833544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
58843544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
58853544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
58863544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
58873544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
58883544ea2eSmrg  $as_echo_n "(cached) " >&6
58893544ea2eSmrgelse
58903544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58913544ea2eSmrg/* end confdefs.h.  */
58923544ea2eSmrgint i;
58933544ea2eSmrg_ACEOF
58943544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
58953544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
58963544ea2eSmrgelse
58973544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
58983544ea2eSmrgfi
58993544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59003544ea2eSmrgfi
59013544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
59023544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
59033544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
59043544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
59053544ea2eSmrgfi
59063544ea2eSmrg
59073544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
59083544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
59093544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
59103544ea2eSmrg	fi
59113544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
59123544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
59133544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
59143544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
59153544ea2eSmrg  $as_echo_n "(cached) " >&6
59163544ea2eSmrgelse
59173544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59183544ea2eSmrg/* end confdefs.h.  */
59193544ea2eSmrgint i;
59203544ea2eSmrg_ACEOF
59213544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
59223544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
59233544ea2eSmrgelse
59243544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
59253544ea2eSmrgfi
59263544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59273544ea2eSmrgfi
59283544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
59293544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
59303544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
59313544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
59323544ea2eSmrgfi
59333544ea2eSmrg
59343544ea2eSmrgfound="no"
59353544ea2eSmrg
59363544ea2eSmrg	if test $found = "no" ; then
593795fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
59383544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
59393544ea2eSmrg		fi
59403544ea2eSmrg
594195fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
59423544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
59433544ea2eSmrg		fi
59443544ea2eSmrg
59453544ea2eSmrg		CFLAGS="$CFLAGS -Wbad-function-cast"
59463544ea2eSmrg
594781440437Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
594881440437Smrg$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
59493544ea2eSmrg		cacheid=xorg_cv_cc_flag__Wbad_function_cast
59503544ea2eSmrg		if eval \${$cacheid+:} false; then :
59513544ea2eSmrg  $as_echo_n "(cached) " >&6
59523544ea2eSmrgelse
59533544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59543544ea2eSmrg/* end confdefs.h.  */
59553544ea2eSmrgint i;
59563544ea2eSmrgint
59573544ea2eSmrgmain ()
59583544ea2eSmrg{
59593544ea2eSmrg
59603544ea2eSmrg  ;
59613544ea2eSmrg  return 0;
59623544ea2eSmrg}
59633544ea2eSmrg_ACEOF
59643544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
59653544ea2eSmrg  eval $cacheid=yes
59663544ea2eSmrgelse
59673544ea2eSmrg  eval $cacheid=no
59683544ea2eSmrgfi
59693544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
59703544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
59713544ea2eSmrgfi
59723544ea2eSmrg
59733544ea2eSmrg
59743544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
59753544ea2eSmrg
59763544ea2eSmrg		eval supported=\$$cacheid
59773544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
59783544ea2eSmrg$as_echo "$supported" >&6; }
59793544ea2eSmrg		if test "$supported" = "yes" ; then
59803544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
59813544ea2eSmrg			found="yes"
59823544ea2eSmrg		fi
59833544ea2eSmrg	fi
59843544ea2eSmrg
59853544ea2eSmrg
59863544ea2eSmrg
59873544ea2eSmrg
59883544ea2eSmrg
59893544ea2eSmrg
59903544ea2eSmrg
59913544ea2eSmrg
59923544ea2eSmrg
59933544ea2eSmrg
59943544ea2eSmrg
59953544ea2eSmrg
59963544ea2eSmrg
59973544ea2eSmrg
59983544ea2eSmrg
59993544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
60003544ea2eSmrg
60013544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
60023544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
60033544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
60043544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
60053544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
60063544ea2eSmrg  $as_echo_n "(cached) " >&6
60073544ea2eSmrgelse
60083544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60093544ea2eSmrg/* end confdefs.h.  */
60103544ea2eSmrgint i;
60113544ea2eSmrg_ACEOF
60123544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
60133544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
60143544ea2eSmrgelse
60153544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
60163544ea2eSmrgfi
60173544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60183544ea2eSmrgfi
60193544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
60203544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
60213544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
60223544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
60233544ea2eSmrgfi
60243544ea2eSmrg
60253544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
60263544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
60273544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
60283544ea2eSmrg	fi
60293544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
60303544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
60313544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
60323544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
60333544ea2eSmrg  $as_echo_n "(cached) " >&6
60343544ea2eSmrgelse
60353544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60363544ea2eSmrg/* end confdefs.h.  */
60373544ea2eSmrgint i;
60383544ea2eSmrg_ACEOF
60393544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
60403544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
60413544ea2eSmrgelse
60423544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
60433544ea2eSmrgfi
60443544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60453544ea2eSmrgfi
60463544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
60473544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
60483544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
60493544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
60503544ea2eSmrgfi
60513544ea2eSmrg
60523544ea2eSmrgfound="no"
60533544ea2eSmrg
60543544ea2eSmrg	if test $found = "no" ; then
605595fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
60563544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
60573544ea2eSmrg		fi
60583544ea2eSmrg
605995fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
60603544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
60613544ea2eSmrg		fi
60623544ea2eSmrg
60633544ea2eSmrg		CFLAGS="$CFLAGS -Wold-style-definition"
60643544ea2eSmrg
606581440437Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
606681440437Smrg$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
60673544ea2eSmrg		cacheid=xorg_cv_cc_flag__Wold_style_definition
60683544ea2eSmrg		if eval \${$cacheid+:} false; then :
60693544ea2eSmrg  $as_echo_n "(cached) " >&6
60703544ea2eSmrgelse
60713544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60723544ea2eSmrg/* end confdefs.h.  */
60733544ea2eSmrgint i;
60743544ea2eSmrgint
60753544ea2eSmrgmain ()
60763544ea2eSmrg{
60773544ea2eSmrg
60783544ea2eSmrg  ;
60793544ea2eSmrg  return 0;
60803544ea2eSmrg}
60813544ea2eSmrg_ACEOF
60823544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
60833544ea2eSmrg  eval $cacheid=yes
60843544ea2eSmrgelse
60853544ea2eSmrg  eval $cacheid=no
60863544ea2eSmrgfi
60873544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
60883544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
60893544ea2eSmrgfi
60903544ea2eSmrg
60913544ea2eSmrg
60923544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
60933544ea2eSmrg
60943544ea2eSmrg		eval supported=\$$cacheid
60953544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
60963544ea2eSmrg$as_echo "$supported" >&6; }
60973544ea2eSmrg		if test "$supported" = "yes" ; then
60983544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
60993544ea2eSmrg			found="yes"
61003544ea2eSmrg		fi
61013544ea2eSmrg	fi
61023544ea2eSmrg
610395fdd44cSmrg	if test $found = "no" ; then
610495fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
610595fdd44cSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
610695fdd44cSmrg		fi
610795fdd44cSmrg
610895fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
610995fdd44cSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
611095fdd44cSmrg		fi
611195fdd44cSmrg
611295fdd44cSmrg		CFLAGS="$CFLAGS -fd"
611395fdd44cSmrg
611495fdd44cSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
611595fdd44cSmrg$as_echo_n "checking if $CC supports -fd... " >&6; }
611695fdd44cSmrg		cacheid=xorg_cv_cc_flag__fd
611795fdd44cSmrg		if eval \${$cacheid+:} false; then :
611895fdd44cSmrg  $as_echo_n "(cached) " >&6
611995fdd44cSmrgelse
612095fdd44cSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
612195fdd44cSmrg/* end confdefs.h.  */
612295fdd44cSmrgint i;
612395fdd44cSmrgint
612495fdd44cSmrgmain ()
612595fdd44cSmrg{
612695fdd44cSmrg
612795fdd44cSmrg  ;
612895fdd44cSmrg  return 0;
612995fdd44cSmrg}
613095fdd44cSmrg_ACEOF
613195fdd44cSmrgif ac_fn_c_try_link "$LINENO"; then :
613295fdd44cSmrg  eval $cacheid=yes
613395fdd44cSmrgelse
613495fdd44cSmrg  eval $cacheid=no
613595fdd44cSmrgfi
613695fdd44cSmrgrm -f core conftest.err conftest.$ac_objext \
613795fdd44cSmrg    conftest$ac_exeext conftest.$ac_ext
613895fdd44cSmrgfi
613995fdd44cSmrg
614095fdd44cSmrg
614195fdd44cSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
614295fdd44cSmrg
614395fdd44cSmrg		eval supported=\$$cacheid
614495fdd44cSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
614595fdd44cSmrg$as_echo "$supported" >&6; }
614695fdd44cSmrg		if test "$supported" = "yes" ; then
614795fdd44cSmrg			BASE_CFLAGS="$BASE_CFLAGS -fd"
614895fdd44cSmrg			found="yes"
614995fdd44cSmrg		fi
615095fdd44cSmrg	fi
615195fdd44cSmrg
61523544ea2eSmrg
61533544ea2eSmrg
61543544ea2eSmrg
61553544ea2eSmrg
61563544ea2eSmrg
61573544ea2eSmrg
61583544ea2eSmrg
61593544ea2eSmrg
61603544ea2eSmrg
61613544ea2eSmrg
61623544ea2eSmrg
61633544ea2eSmrg
61643544ea2eSmrg
61653544ea2eSmrg
61663544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
61673544ea2eSmrg
61683544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
61693544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
61703544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
61713544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
61723544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
61733544ea2eSmrg  $as_echo_n "(cached) " >&6
61743544ea2eSmrgelse
61753544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61763544ea2eSmrg/* end confdefs.h.  */
61773544ea2eSmrgint i;
61783544ea2eSmrg_ACEOF
61793544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
61803544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
61813544ea2eSmrgelse
61823544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
61833544ea2eSmrgfi
61843544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61853544ea2eSmrgfi
61863544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
61873544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
61883544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
61893544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
61903544ea2eSmrgfi
61913544ea2eSmrg
61923544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
61933544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
61943544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
61953544ea2eSmrg	fi
61963544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
61973544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
61983544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
61993544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
62003544ea2eSmrg  $as_echo_n "(cached) " >&6
62013544ea2eSmrgelse
62023544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62033544ea2eSmrg/* end confdefs.h.  */
62043544ea2eSmrgint i;
62053544ea2eSmrg_ACEOF
62063544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
62073544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
62083544ea2eSmrgelse
62093544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
62103544ea2eSmrgfi
62113544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62123544ea2eSmrgfi
62133544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
62143544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
62153544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
62163544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
62173544ea2eSmrgfi
62183544ea2eSmrg
62193544ea2eSmrgfound="no"
62203544ea2eSmrg
62213544ea2eSmrg	if test $found = "no" ; then
622295fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
62233544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
62243544ea2eSmrg		fi
62253544ea2eSmrg
622695fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
62273544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
62283544ea2eSmrg		fi
62293544ea2eSmrg
62303544ea2eSmrg		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
62313544ea2eSmrg
623281440437Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
623381440437Smrg$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
62343544ea2eSmrg		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
62353544ea2eSmrg		if eval \${$cacheid+:} false; then :
62363544ea2eSmrg  $as_echo_n "(cached) " >&6
62373544ea2eSmrgelse
62383544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62393544ea2eSmrg/* end confdefs.h.  */
62403544ea2eSmrgint i;
62413544ea2eSmrgint
62423544ea2eSmrgmain ()
62433544ea2eSmrg{
62443544ea2eSmrg
62453544ea2eSmrg  ;
62463544ea2eSmrg  return 0;
62473544ea2eSmrg}
62483544ea2eSmrg_ACEOF
62493544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
62503544ea2eSmrg  eval $cacheid=yes
62513544ea2eSmrgelse
62523544ea2eSmrg  eval $cacheid=no
62533544ea2eSmrgfi
62543544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
62553544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
62563544ea2eSmrgfi
62573544ea2eSmrg
62583544ea2eSmrg
62593544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
62603544ea2eSmrg
62613544ea2eSmrg		eval supported=\$$cacheid
62623544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
62633544ea2eSmrg$as_echo "$supported" >&6; }
62643544ea2eSmrg		if test "$supported" = "yes" ; then
62653544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
62663544ea2eSmrg			found="yes"
62673544ea2eSmrg		fi
62683544ea2eSmrg	fi
62693544ea2eSmrg
62703544ea2eSmrg
62713544ea2eSmrg
62723544ea2eSmrg
62733544ea2eSmrg
62743544ea2eSmrg# This chunk adds additional warnings that could catch undesired effects.
62753544ea2eSmrg
62763544ea2eSmrg
62773544ea2eSmrg
62783544ea2eSmrg
62793544ea2eSmrg
62803544ea2eSmrg
62813544ea2eSmrg
62823544ea2eSmrg
62833544ea2eSmrg
62843544ea2eSmrg
62853544ea2eSmrg
62863544ea2eSmrg
62873544ea2eSmrg
62883544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
62893544ea2eSmrg
62903544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
62913544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
62923544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
62933544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
62943544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
62953544ea2eSmrg  $as_echo_n "(cached) " >&6
62963544ea2eSmrgelse
62973544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62983544ea2eSmrg/* end confdefs.h.  */
62993544ea2eSmrgint i;
63003544ea2eSmrg_ACEOF
63013544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
63023544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
63033544ea2eSmrgelse
63043544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
63053544ea2eSmrgfi
63063544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63073544ea2eSmrgfi
63083544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
63093544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
63103544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
63113544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
63123544ea2eSmrgfi
63133544ea2eSmrg
63143544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
63153544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
63163544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
63173544ea2eSmrg	fi
63183544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
63193544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
63203544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
63213544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
63223544ea2eSmrg  $as_echo_n "(cached) " >&6
63233544ea2eSmrgelse
63243544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63253544ea2eSmrg/* end confdefs.h.  */
63263544ea2eSmrgint i;
63273544ea2eSmrg_ACEOF
63283544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
63293544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
63303544ea2eSmrgelse
63313544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
63323544ea2eSmrgfi
63333544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63343544ea2eSmrgfi
63353544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
63363544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
63373544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
63383544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
63393544ea2eSmrgfi
63403544ea2eSmrg
63413544ea2eSmrgfound="no"
63423544ea2eSmrg
63433544ea2eSmrg	if test $found = "no" ; then
634495fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
63453544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
63463544ea2eSmrg		fi
63473544ea2eSmrg
634895fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
63493544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
63503544ea2eSmrg		fi
63513544ea2eSmrg
63523544ea2eSmrg		CFLAGS="$CFLAGS -Wunused"
63533544ea2eSmrg
635481440437Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
635581440437Smrg$as_echo_n "checking if $CC supports -Wunused... " >&6; }
63563544ea2eSmrg		cacheid=xorg_cv_cc_flag__Wunused
63573544ea2eSmrg		if eval \${$cacheid+:} false; then :
63583544ea2eSmrg  $as_echo_n "(cached) " >&6
63593544ea2eSmrgelse
63603544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63613544ea2eSmrg/* end confdefs.h.  */
63623544ea2eSmrgint i;
63633544ea2eSmrgint
63643544ea2eSmrgmain ()
63653544ea2eSmrg{
63663544ea2eSmrg
63673544ea2eSmrg  ;
63683544ea2eSmrg  return 0;
63693544ea2eSmrg}
63703544ea2eSmrg_ACEOF
63713544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
63723544ea2eSmrg  eval $cacheid=yes
63733544ea2eSmrgelse
63743544ea2eSmrg  eval $cacheid=no
63753544ea2eSmrgfi
63763544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
63773544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
63783544ea2eSmrgfi
63793544ea2eSmrg
63803544ea2eSmrg
63813544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
63823544ea2eSmrg
63833544ea2eSmrg		eval supported=\$$cacheid
63843544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
63853544ea2eSmrg$as_echo "$supported" >&6; }
63863544ea2eSmrg		if test "$supported" = "yes" ; then
63873544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
63883544ea2eSmrg			found="yes"
63893544ea2eSmrg		fi
63903544ea2eSmrg	fi
63913544ea2eSmrg
63923544ea2eSmrg
63933544ea2eSmrg
63943544ea2eSmrg
63953544ea2eSmrg
63963544ea2eSmrg
63973544ea2eSmrg
63983544ea2eSmrg
63993544ea2eSmrg
64003544ea2eSmrg
64013544ea2eSmrg
64023544ea2eSmrg
64033544ea2eSmrg
64043544ea2eSmrg
64053544ea2eSmrg
64063544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
64073544ea2eSmrg
64083544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
64093544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
64103544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
64113544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
64123544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
64133544ea2eSmrg  $as_echo_n "(cached) " >&6
64143544ea2eSmrgelse
64153544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64163544ea2eSmrg/* end confdefs.h.  */
64173544ea2eSmrgint i;
64183544ea2eSmrg_ACEOF
64193544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
64203544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
64213544ea2eSmrgelse
64223544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
64233544ea2eSmrgfi
64243544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
64253544ea2eSmrgfi
64263544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
64273544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
64283544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
64293544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
64303544ea2eSmrgfi
64313544ea2eSmrg
64323544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
64333544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
64343544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
64353544ea2eSmrg	fi
64363544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
64373544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
64383544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
64393544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
64403544ea2eSmrg  $as_echo_n "(cached) " >&6
64413544ea2eSmrgelse
64423544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64433544ea2eSmrg/* end confdefs.h.  */
64443544ea2eSmrgint i;
64453544ea2eSmrg_ACEOF
64463544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
64473544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
64483544ea2eSmrgelse
64493544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
64503544ea2eSmrgfi
64513544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
64523544ea2eSmrgfi
64533544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
64543544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
64553544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
64563544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
64573544ea2eSmrgfi
64583544ea2eSmrg
64593544ea2eSmrgfound="no"
64603544ea2eSmrg
64613544ea2eSmrg	if test $found = "no" ; then
646295fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
64633544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
64643544ea2eSmrg		fi
64653544ea2eSmrg
646695fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
64673544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
64683544ea2eSmrg		fi
64693544ea2eSmrg
64703544ea2eSmrg		CFLAGS="$CFLAGS -Wuninitialized"
64713544ea2eSmrg
647281440437Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
647381440437Smrg$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
64743544ea2eSmrg		cacheid=xorg_cv_cc_flag__Wuninitialized
64753544ea2eSmrg		if eval \${$cacheid+:} false; then :
64763544ea2eSmrg  $as_echo_n "(cached) " >&6
64773544ea2eSmrgelse
64783544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64793544ea2eSmrg/* end confdefs.h.  */
64803544ea2eSmrgint i;
64813544ea2eSmrgint
64823544ea2eSmrgmain ()
64833544ea2eSmrg{
64843544ea2eSmrg
64853544ea2eSmrg  ;
64863544ea2eSmrg  return 0;
64873544ea2eSmrg}
64883544ea2eSmrg_ACEOF
64893544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
64903544ea2eSmrg  eval $cacheid=yes
64913544ea2eSmrgelse
64923544ea2eSmrg  eval $cacheid=no
64933544ea2eSmrgfi
64943544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
64953544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
64963544ea2eSmrgfi
64973544ea2eSmrg
64983544ea2eSmrg
64993544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
65003544ea2eSmrg
65013544ea2eSmrg		eval supported=\$$cacheid
65023544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
65033544ea2eSmrg$as_echo "$supported" >&6; }
65043544ea2eSmrg		if test "$supported" = "yes" ; then
65053544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
65063544ea2eSmrg			found="yes"
65073544ea2eSmrg		fi
65083544ea2eSmrg	fi
65093544ea2eSmrg
65103544ea2eSmrg
65113544ea2eSmrg
65123544ea2eSmrg
65133544ea2eSmrg
65143544ea2eSmrg
65153544ea2eSmrg
65163544ea2eSmrg
65173544ea2eSmrg
65183544ea2eSmrg
65193544ea2eSmrg
65203544ea2eSmrg
65213544ea2eSmrg
65223544ea2eSmrg
65233544ea2eSmrg
65243544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
65253544ea2eSmrg
65263544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
65273544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
65283544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
65293544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
65303544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
65313544ea2eSmrg  $as_echo_n "(cached) " >&6
65323544ea2eSmrgelse
65333544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65343544ea2eSmrg/* end confdefs.h.  */
65353544ea2eSmrgint i;
65363544ea2eSmrg_ACEOF
65373544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
65383544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
65393544ea2eSmrgelse
65403544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
65413544ea2eSmrgfi
65423544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65433544ea2eSmrgfi
65443544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
65453544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
65463544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
65473544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
65483544ea2eSmrgfi
65493544ea2eSmrg
65503544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
65513544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
65523544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
65533544ea2eSmrg	fi
65543544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
65553544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
65563544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
65573544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
65583544ea2eSmrg  $as_echo_n "(cached) " >&6
65593544ea2eSmrgelse
65603544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65613544ea2eSmrg/* end confdefs.h.  */
65623544ea2eSmrgint i;
65633544ea2eSmrg_ACEOF
65643544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
65653544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
65663544ea2eSmrgelse
65673544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
65683544ea2eSmrgfi
65693544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65703544ea2eSmrgfi
65713544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
65723544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
65733544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
65743544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
65753544ea2eSmrgfi
65763544ea2eSmrg
65773544ea2eSmrgfound="no"
65783544ea2eSmrg
65793544ea2eSmrg	if test $found = "no" ; then
658095fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
65813544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
65823544ea2eSmrg		fi
65833544ea2eSmrg
658495fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
65853544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
65863544ea2eSmrg		fi
65873544ea2eSmrg
65883544ea2eSmrg		CFLAGS="$CFLAGS -Wshadow"
65893544ea2eSmrg
659081440437Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
659181440437Smrg$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
65923544ea2eSmrg		cacheid=xorg_cv_cc_flag__Wshadow
65933544ea2eSmrg		if eval \${$cacheid+:} false; then :
65943544ea2eSmrg  $as_echo_n "(cached) " >&6
65953544ea2eSmrgelse
65963544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65973544ea2eSmrg/* end confdefs.h.  */
65983544ea2eSmrgint i;
65993544ea2eSmrgint
66003544ea2eSmrgmain ()
66013544ea2eSmrg{
66023544ea2eSmrg
66033544ea2eSmrg  ;
66043544ea2eSmrg  return 0;
66053544ea2eSmrg}
66063544ea2eSmrg_ACEOF
66073544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
66083544ea2eSmrg  eval $cacheid=yes
66093544ea2eSmrgelse
66103544ea2eSmrg  eval $cacheid=no
66113544ea2eSmrgfi
66123544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
66133544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
66143544ea2eSmrgfi
66153544ea2eSmrg
66163544ea2eSmrg
66173544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
66183544ea2eSmrg
66193544ea2eSmrg		eval supported=\$$cacheid
66203544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
66213544ea2eSmrg$as_echo "$supported" >&6; }
66223544ea2eSmrg		if test "$supported" = "yes" ; then
66233544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
66243544ea2eSmrg			found="yes"
66253544ea2eSmrg		fi
66263544ea2eSmrg	fi
66273544ea2eSmrg
66283544ea2eSmrg
66293544ea2eSmrg
66303544ea2eSmrg
66313544ea2eSmrg
66323544ea2eSmrg
66333544ea2eSmrg
66343544ea2eSmrg
66353544ea2eSmrg
66363544ea2eSmrg
66373544ea2eSmrg
66383544ea2eSmrg
66393544ea2eSmrg
66403544ea2eSmrg
66413544ea2eSmrg
66423544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
66433544ea2eSmrg
66443544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
66453544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
66463544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
66473544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
66483544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
66493544ea2eSmrg  $as_echo_n "(cached) " >&6
66503544ea2eSmrgelse
66513544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66523544ea2eSmrg/* end confdefs.h.  */
66533544ea2eSmrgint i;
66543544ea2eSmrg_ACEOF
66553544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
66563544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
66573544ea2eSmrgelse
66583544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
66593544ea2eSmrgfi
66603544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66613544ea2eSmrgfi
66623544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
66633544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
66643544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
66653544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
66663544ea2eSmrgfi
66673544ea2eSmrg
66683544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
66693544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
66703544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
66713544ea2eSmrg	fi
66723544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
66733544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
66743544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
66753544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
66763544ea2eSmrg  $as_echo_n "(cached) " >&6
66773544ea2eSmrgelse
66783544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66793544ea2eSmrg/* end confdefs.h.  */
66803544ea2eSmrgint i;
66813544ea2eSmrg_ACEOF
66823544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
66833544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
66843544ea2eSmrgelse
66853544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
66863544ea2eSmrgfi
66873544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66883544ea2eSmrgfi
66893544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
66903544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
66913544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
66923544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
66933544ea2eSmrgfi
66943544ea2eSmrg
66953544ea2eSmrgfound="no"
66963544ea2eSmrg
66973544ea2eSmrg	if test $found = "no" ; then
669895fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
66993544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
67003544ea2eSmrg		fi
67013544ea2eSmrg
670295fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
67033544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
67043544ea2eSmrg		fi
67053544ea2eSmrg
670695fdd44cSmrg		CFLAGS="$CFLAGS -Wmissing-noreturn"
67073544ea2eSmrg
670895fdd44cSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
670995fdd44cSmrg$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
671095fdd44cSmrg		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
67113544ea2eSmrg		if eval \${$cacheid+:} false; then :
67123544ea2eSmrg  $as_echo_n "(cached) " >&6
67133544ea2eSmrgelse
67143544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67153544ea2eSmrg/* end confdefs.h.  */
67163544ea2eSmrgint i;
67173544ea2eSmrgint
67183544ea2eSmrgmain ()
67193544ea2eSmrg{
67203544ea2eSmrg
67213544ea2eSmrg  ;
67223544ea2eSmrg  return 0;
67233544ea2eSmrg}
67243544ea2eSmrg_ACEOF
67253544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
67263544ea2eSmrg  eval $cacheid=yes
67273544ea2eSmrgelse
67283544ea2eSmrg  eval $cacheid=no
67293544ea2eSmrgfi
67303544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
67313544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
67323544ea2eSmrgfi
67333544ea2eSmrg
67343544ea2eSmrg
67353544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
67363544ea2eSmrg
67373544ea2eSmrg		eval supported=\$$cacheid
67383544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
67393544ea2eSmrg$as_echo "$supported" >&6; }
67403544ea2eSmrg		if test "$supported" = "yes" ; then
674195fdd44cSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
67423544ea2eSmrg			found="yes"
67433544ea2eSmrg		fi
67443544ea2eSmrg	fi
67453544ea2eSmrg
67463544ea2eSmrg
67473544ea2eSmrg
67483544ea2eSmrg
67493544ea2eSmrg
67503544ea2eSmrg
67513544ea2eSmrg
67523544ea2eSmrg
67533544ea2eSmrg
67543544ea2eSmrg
67553544ea2eSmrg
67563544ea2eSmrg
67573544ea2eSmrg
67583544ea2eSmrg
67593544ea2eSmrg
67603544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
67613544ea2eSmrg
67623544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
67633544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
67643544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
67653544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
67663544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
67673544ea2eSmrg  $as_echo_n "(cached) " >&6
67683544ea2eSmrgelse
67693544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67703544ea2eSmrg/* end confdefs.h.  */
67713544ea2eSmrgint i;
67723544ea2eSmrg_ACEOF
67733544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
67743544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
67753544ea2eSmrgelse
67763544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
67773544ea2eSmrgfi
67783544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
67793544ea2eSmrgfi
67803544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
67813544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
67823544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
67833544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
67843544ea2eSmrgfi
67853544ea2eSmrg
67863544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
67873544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
67883544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
67893544ea2eSmrg	fi
67903544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
67913544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
67923544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
67933544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
67943544ea2eSmrg  $as_echo_n "(cached) " >&6
67953544ea2eSmrgelse
67963544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67973544ea2eSmrg/* end confdefs.h.  */
67983544ea2eSmrgint i;
67993544ea2eSmrg_ACEOF
68003544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
68013544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
68023544ea2eSmrgelse
68033544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
68043544ea2eSmrgfi
68053544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68063544ea2eSmrgfi
68073544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
68083544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
68093544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
68103544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
68113544ea2eSmrgfi
68123544ea2eSmrg
68133544ea2eSmrgfound="no"
68143544ea2eSmrg
68153544ea2eSmrg	if test $found = "no" ; then
681695fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
68173544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
68183544ea2eSmrg		fi
68193544ea2eSmrg
682095fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
68213544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
68223544ea2eSmrg		fi
68233544ea2eSmrg
682495fdd44cSmrg		CFLAGS="$CFLAGS -Wmissing-format-attribute"
68253544ea2eSmrg
682695fdd44cSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
682795fdd44cSmrg$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
682895fdd44cSmrg		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
68293544ea2eSmrg		if eval \${$cacheid+:} false; then :
68303544ea2eSmrg  $as_echo_n "(cached) " >&6
68313544ea2eSmrgelse
68323544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68333544ea2eSmrg/* end confdefs.h.  */
68343544ea2eSmrgint i;
68353544ea2eSmrgint
68363544ea2eSmrgmain ()
68373544ea2eSmrg{
68383544ea2eSmrg
68393544ea2eSmrg  ;
68403544ea2eSmrg  return 0;
68413544ea2eSmrg}
68423544ea2eSmrg_ACEOF
68433544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
68443544ea2eSmrg  eval $cacheid=yes
68453544ea2eSmrgelse
68463544ea2eSmrg  eval $cacheid=no
68473544ea2eSmrgfi
68483544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
68493544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
68503544ea2eSmrgfi
68513544ea2eSmrg
68523544ea2eSmrg
68533544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
68543544ea2eSmrg
68553544ea2eSmrg		eval supported=\$$cacheid
68563544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
68573544ea2eSmrg$as_echo "$supported" >&6; }
68583544ea2eSmrg		if test "$supported" = "yes" ; then
685995fdd44cSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
68603544ea2eSmrg			found="yes"
68613544ea2eSmrg		fi
68623544ea2eSmrg	fi
68633544ea2eSmrg
68643544ea2eSmrg
68653544ea2eSmrg
68663544ea2eSmrg
68673544ea2eSmrg
68683544ea2eSmrg
68693544ea2eSmrg
68703544ea2eSmrg
68713544ea2eSmrg
68723544ea2eSmrg
68733544ea2eSmrg
68743544ea2eSmrg
68753544ea2eSmrg
68763544ea2eSmrg
68773544ea2eSmrg
68783544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
68793544ea2eSmrg
68803544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
68813544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
68823544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
68833544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
68843544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
68853544ea2eSmrg  $as_echo_n "(cached) " >&6
68863544ea2eSmrgelse
68873544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68883544ea2eSmrg/* end confdefs.h.  */
68893544ea2eSmrgint i;
68903544ea2eSmrg_ACEOF
68913544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
68923544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
68933544ea2eSmrgelse
68943544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
68953544ea2eSmrgfi
68963544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68973544ea2eSmrgfi
68983544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
68993544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
69003544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
69013544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
69023544ea2eSmrgfi
69033544ea2eSmrg
69043544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
69053544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
69063544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
69073544ea2eSmrg	fi
69083544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
69093544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
69103544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
69113544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
69123544ea2eSmrg  $as_echo_n "(cached) " >&6
69133544ea2eSmrgelse
69143544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69153544ea2eSmrg/* end confdefs.h.  */
69163544ea2eSmrgint i;
69173544ea2eSmrg_ACEOF
69183544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
69193544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
69203544ea2eSmrgelse
69213544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
69223544ea2eSmrgfi
69233544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
69243544ea2eSmrgfi
69253544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
69263544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
69273544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
69283544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
69293544ea2eSmrgfi
69303544ea2eSmrg
69313544ea2eSmrgfound="no"
69323544ea2eSmrg
69333544ea2eSmrg	if test $found = "no" ; then
693495fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
69353544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
69363544ea2eSmrg		fi
69373544ea2eSmrg
693895fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
69393544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
69403544ea2eSmrg		fi
69413544ea2eSmrg
694295fdd44cSmrg		CFLAGS="$CFLAGS -Wredundant-decls"
69433544ea2eSmrg
694495fdd44cSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
694595fdd44cSmrg$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
694695fdd44cSmrg		cacheid=xorg_cv_cc_flag__Wredundant_decls
69473544ea2eSmrg		if eval \${$cacheid+:} false; then :
69483544ea2eSmrg  $as_echo_n "(cached) " >&6
69493544ea2eSmrgelse
69503544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69513544ea2eSmrg/* end confdefs.h.  */
69523544ea2eSmrgint i;
69533544ea2eSmrgint
69543544ea2eSmrgmain ()
69553544ea2eSmrg{
69563544ea2eSmrg
69573544ea2eSmrg  ;
69583544ea2eSmrg  return 0;
69593544ea2eSmrg}
69603544ea2eSmrg_ACEOF
69613544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
69623544ea2eSmrg  eval $cacheid=yes
69633544ea2eSmrgelse
69643544ea2eSmrg  eval $cacheid=no
69653544ea2eSmrgfi
69663544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
69673544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
69683544ea2eSmrgfi
69693544ea2eSmrg
69703544ea2eSmrg
69713544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
69723544ea2eSmrg
69733544ea2eSmrg		eval supported=\$$cacheid
69743544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
69753544ea2eSmrg$as_echo "$supported" >&6; }
69763544ea2eSmrg		if test "$supported" = "yes" ; then
697795fdd44cSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
69783544ea2eSmrg			found="yes"
69793544ea2eSmrg		fi
69803544ea2eSmrg	fi
69813544ea2eSmrg
69823544ea2eSmrg
69833544ea2eSmrg
69843544ea2eSmrg
69853544ea2eSmrg
69863544ea2eSmrg
69873544ea2eSmrg
69883544ea2eSmrg
69893544ea2eSmrg
69903544ea2eSmrg
69913544ea2eSmrg
69923544ea2eSmrg
69933544ea2eSmrg
69943544ea2eSmrg
69953544ea2eSmrg
69963544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
69973544ea2eSmrg
69983544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
69993544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
70003544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
70013544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
70023544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
70033544ea2eSmrg  $as_echo_n "(cached) " >&6
70043544ea2eSmrgelse
70053544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
70063544ea2eSmrg/* end confdefs.h.  */
70073544ea2eSmrgint i;
70083544ea2eSmrg_ACEOF
70093544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
70103544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
70113544ea2eSmrgelse
70123544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
70133544ea2eSmrgfi
70143544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
70153544ea2eSmrgfi
70163544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
70173544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
70183544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
70193544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
70203544ea2eSmrgfi
70213544ea2eSmrg
70223544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
70233544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
70243544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
70253544ea2eSmrg	fi
70263544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
70273544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
70283544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
70293544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
70303544ea2eSmrg  $as_echo_n "(cached) " >&6
70313544ea2eSmrgelse
70323544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
70333544ea2eSmrg/* end confdefs.h.  */
70343544ea2eSmrgint i;
70353544ea2eSmrg_ACEOF
70363544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
70373544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
70383544ea2eSmrgelse
70393544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
70403544ea2eSmrgfi
70413544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
70423544ea2eSmrgfi
70433544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
70443544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
70453544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
70463544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
70473544ea2eSmrgfi
70483544ea2eSmrg
70493544ea2eSmrgfound="no"
70503544ea2eSmrg
70513544ea2eSmrg	if test $found = "no" ; then
705295fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
70533544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
70543544ea2eSmrg		fi
70553544ea2eSmrg
705695fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
70573544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
70583544ea2eSmrg		fi
70593544ea2eSmrg
706095fdd44cSmrg		CFLAGS="$CFLAGS -Wlogical-op"
70613544ea2eSmrg
706295fdd44cSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
706395fdd44cSmrg$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
706495fdd44cSmrg		cacheid=xorg_cv_cc_flag__Wlogical_op
70653544ea2eSmrg		if eval \${$cacheid+:} false; then :
70663544ea2eSmrg  $as_echo_n "(cached) " >&6
70673544ea2eSmrgelse
70683544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
70693544ea2eSmrg/* end confdefs.h.  */
70703544ea2eSmrgint i;
70713544ea2eSmrgint
70723544ea2eSmrgmain ()
70733544ea2eSmrg{
70743544ea2eSmrg
70753544ea2eSmrg  ;
70763544ea2eSmrg  return 0;
70773544ea2eSmrg}
70783544ea2eSmrg_ACEOF
70793544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
70803544ea2eSmrg  eval $cacheid=yes
70813544ea2eSmrgelse
70823544ea2eSmrg  eval $cacheid=no
70833544ea2eSmrgfi
70843544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
70853544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
70863544ea2eSmrgfi
70873544ea2eSmrg
70883544ea2eSmrg
70893544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
70903544ea2eSmrg
70913544ea2eSmrg		eval supported=\$$cacheid
70923544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
70933544ea2eSmrg$as_echo "$supported" >&6; }
70943544ea2eSmrg		if test "$supported" = "yes" ; then
709595fdd44cSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
70963544ea2eSmrg			found="yes"
70973544ea2eSmrg		fi
70983544ea2eSmrg	fi
70993544ea2eSmrg
71003544ea2eSmrg
71013544ea2eSmrg
71023544ea2eSmrg# These are currently disabled because they are noisy.  They will be enabled
71033544ea2eSmrg# in the future once the codebase is sufficiently modernized to silence
71043544ea2eSmrg# them.  For now, I don't want them to drown out the other warnings.
71053544ea2eSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
71063544ea2eSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
710795fdd44cSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
71083544ea2eSmrg
71093544ea2eSmrg# Turn some warnings into errors, so we don't accidently get successful builds
71103544ea2eSmrg# when there are problems that should be fixed.
71113544ea2eSmrg
71123544ea2eSmrgif test "x$SELECTIVE_WERROR" = "xyes" ; then
71133544ea2eSmrg
71143544ea2eSmrg
71153544ea2eSmrg
71163544ea2eSmrg
71173544ea2eSmrg
71183544ea2eSmrg
71193544ea2eSmrg
71203544ea2eSmrg
71213544ea2eSmrg
71223544ea2eSmrg
71233544ea2eSmrg
71243544ea2eSmrg
71253544ea2eSmrg
71263544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
71273544ea2eSmrg
71283544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
71293544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
71303544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
71313544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
71323544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
71333544ea2eSmrg  $as_echo_n "(cached) " >&6
71343544ea2eSmrgelse
71353544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71363544ea2eSmrg/* end confdefs.h.  */
71373544ea2eSmrgint i;
71383544ea2eSmrg_ACEOF
71393544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
71403544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
71413544ea2eSmrgelse
71423544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
71433544ea2eSmrgfi
71443544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
71453544ea2eSmrgfi
71463544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
71473544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
71483544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
71493544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
71503544ea2eSmrgfi
71513544ea2eSmrg
71523544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
71533544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
71543544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
71553544ea2eSmrg	fi
71563544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
71573544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
71583544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
71593544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
71603544ea2eSmrg  $as_echo_n "(cached) " >&6
71613544ea2eSmrgelse
71623544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71633544ea2eSmrg/* end confdefs.h.  */
71643544ea2eSmrgint i;
71653544ea2eSmrg_ACEOF
71663544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
71673544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
71683544ea2eSmrgelse
71693544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
71703544ea2eSmrgfi
71713544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
71723544ea2eSmrgfi
71733544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
71743544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
71753544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
71763544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
71773544ea2eSmrgfi
71783544ea2eSmrg
71793544ea2eSmrgfound="no"
71803544ea2eSmrg
71813544ea2eSmrg	if test $found = "no" ; then
718295fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
71833544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
71843544ea2eSmrg		fi
71853544ea2eSmrg
718695fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
71873544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
71883544ea2eSmrg		fi
71893544ea2eSmrg
71903544ea2eSmrg		CFLAGS="$CFLAGS -Werror=implicit"
71913544ea2eSmrg
719281440437Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
719381440437Smrg$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
719495fdd44cSmrg		cacheid=xorg_cv_cc_flag__Werror_implicit
71953544ea2eSmrg		if eval \${$cacheid+:} false; then :
71963544ea2eSmrg  $as_echo_n "(cached) " >&6
71973544ea2eSmrgelse
71983544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71993544ea2eSmrg/* end confdefs.h.  */
72003544ea2eSmrgint i;
72013544ea2eSmrgint
72023544ea2eSmrgmain ()
72033544ea2eSmrg{
72043544ea2eSmrg
72053544ea2eSmrg  ;
72063544ea2eSmrg  return 0;
72073544ea2eSmrg}
72083544ea2eSmrg_ACEOF
72093544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
72103544ea2eSmrg  eval $cacheid=yes
72113544ea2eSmrgelse
72123544ea2eSmrg  eval $cacheid=no
72133544ea2eSmrgfi
72143544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
72153544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
72163544ea2eSmrgfi
72173544ea2eSmrg
72183544ea2eSmrg
72193544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
72203544ea2eSmrg
72213544ea2eSmrg		eval supported=\$$cacheid
72223544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
72233544ea2eSmrg$as_echo "$supported" >&6; }
72243544ea2eSmrg		if test "$supported" = "yes" ; then
72253544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
72263544ea2eSmrg			found="yes"
72273544ea2eSmrg		fi
72283544ea2eSmrg	fi
72293544ea2eSmrg
72303544ea2eSmrg	if test $found = "no" ; then
723195fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
72323544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
72333544ea2eSmrg		fi
72343544ea2eSmrg
723595fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
72363544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
72373544ea2eSmrg		fi
72383544ea2eSmrg
72393544ea2eSmrg		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
72403544ea2eSmrg
724181440437Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
724281440437Smrg$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
724395fdd44cSmrg		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
72443544ea2eSmrg		if eval \${$cacheid+:} false; then :
72453544ea2eSmrg  $as_echo_n "(cached) " >&6
72463544ea2eSmrgelse
72473544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
72483544ea2eSmrg/* end confdefs.h.  */
72493544ea2eSmrgint i;
72503544ea2eSmrgint
72513544ea2eSmrgmain ()
72523544ea2eSmrg{
72533544ea2eSmrg
72543544ea2eSmrg  ;
72553544ea2eSmrg  return 0;
72563544ea2eSmrg}
72573544ea2eSmrg_ACEOF
72583544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
72593544ea2eSmrg  eval $cacheid=yes
72603544ea2eSmrgelse
72613544ea2eSmrg  eval $cacheid=no
72623544ea2eSmrgfi
72633544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
72643544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
72653544ea2eSmrgfi
72663544ea2eSmrg
72673544ea2eSmrg
72683544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
72693544ea2eSmrg
72703544ea2eSmrg		eval supported=\$$cacheid
72713544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
72723544ea2eSmrg$as_echo "$supported" >&6; }
72733544ea2eSmrg		if test "$supported" = "yes" ; then
72743544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
72753544ea2eSmrg			found="yes"
72763544ea2eSmrg		fi
72773544ea2eSmrg	fi
72783544ea2eSmrg
72793544ea2eSmrg
72803544ea2eSmrg
72813544ea2eSmrg
72823544ea2eSmrg
72833544ea2eSmrg
72843544ea2eSmrg
72853544ea2eSmrg
72863544ea2eSmrg
72873544ea2eSmrg
72883544ea2eSmrg
72893544ea2eSmrg
72903544ea2eSmrg
72913544ea2eSmrg
72923544ea2eSmrg
72933544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
72943544ea2eSmrg
72953544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
72963544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
72973544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
72983544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
72993544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
73003544ea2eSmrg  $as_echo_n "(cached) " >&6
73013544ea2eSmrgelse
73023544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
73033544ea2eSmrg/* end confdefs.h.  */
73043544ea2eSmrgint i;
73053544ea2eSmrg_ACEOF
73063544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
73073544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
73083544ea2eSmrgelse
73093544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
73103544ea2eSmrgfi
73113544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
73123544ea2eSmrgfi
73133544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
73143544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
73153544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
73163544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
73173544ea2eSmrgfi
73183544ea2eSmrg
73193544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
73203544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
73213544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
73223544ea2eSmrg	fi
73233544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
73243544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
73253544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
73263544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
73273544ea2eSmrg  $as_echo_n "(cached) " >&6
73283544ea2eSmrgelse
73293544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
73303544ea2eSmrg/* end confdefs.h.  */
73313544ea2eSmrgint i;
73323544ea2eSmrg_ACEOF
73333544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
73343544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
73353544ea2eSmrgelse
73363544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
73373544ea2eSmrgfi
73383544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
73393544ea2eSmrgfi
73403544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
73413544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
73423544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
73433544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
73443544ea2eSmrgfi
73453544ea2eSmrg
73463544ea2eSmrgfound="no"
73473544ea2eSmrg
73483544ea2eSmrg	if test $found = "no" ; then
734995fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
73503544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
73513544ea2eSmrg		fi
73523544ea2eSmrg
735395fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
73543544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
73553544ea2eSmrg		fi
73563544ea2eSmrg
73573544ea2eSmrg		CFLAGS="$CFLAGS -Werror=nonnull"
73583544ea2eSmrg
735981440437Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
736081440437Smrg$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
736195fdd44cSmrg		cacheid=xorg_cv_cc_flag__Werror_nonnull
73623544ea2eSmrg		if eval \${$cacheid+:} false; then :
73633544ea2eSmrg  $as_echo_n "(cached) " >&6
73643544ea2eSmrgelse
73653544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
73663544ea2eSmrg/* end confdefs.h.  */
73673544ea2eSmrgint i;
73683544ea2eSmrgint
73693544ea2eSmrgmain ()
73703544ea2eSmrg{
73713544ea2eSmrg
73723544ea2eSmrg  ;
73733544ea2eSmrg  return 0;
73743544ea2eSmrg}
73753544ea2eSmrg_ACEOF
73763544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
73773544ea2eSmrg  eval $cacheid=yes
73783544ea2eSmrgelse
73793544ea2eSmrg  eval $cacheid=no
73803544ea2eSmrgfi
73813544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
73823544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
73833544ea2eSmrgfi
73843544ea2eSmrg
73853544ea2eSmrg
73863544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
73873544ea2eSmrg
73883544ea2eSmrg		eval supported=\$$cacheid
73893544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
73903544ea2eSmrg$as_echo "$supported" >&6; }
73913544ea2eSmrg		if test "$supported" = "yes" ; then
73923544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
73933544ea2eSmrg			found="yes"
73943544ea2eSmrg		fi
73953544ea2eSmrg	fi
73963544ea2eSmrg
73973544ea2eSmrg
73983544ea2eSmrg
73993544ea2eSmrg
74003544ea2eSmrg
74013544ea2eSmrg
74023544ea2eSmrg
74033544ea2eSmrg
74043544ea2eSmrg
74053544ea2eSmrg
74063544ea2eSmrg
74073544ea2eSmrg
74083544ea2eSmrg
74093544ea2eSmrg
74103544ea2eSmrg
74113544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
74123544ea2eSmrg
74133544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
74143544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
74153544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
74163544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
74173544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
74183544ea2eSmrg  $as_echo_n "(cached) " >&6
74193544ea2eSmrgelse
74203544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
74213544ea2eSmrg/* end confdefs.h.  */
74223544ea2eSmrgint i;
74233544ea2eSmrg_ACEOF
74243544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
74253544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
74263544ea2eSmrgelse
74273544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
74283544ea2eSmrgfi
74293544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
74303544ea2eSmrgfi
74313544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
74323544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
74333544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
74343544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
74353544ea2eSmrgfi
74363544ea2eSmrg
74373544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
74383544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
74393544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
74403544ea2eSmrg	fi
74413544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
74423544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
74433544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
74443544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
74453544ea2eSmrg  $as_echo_n "(cached) " >&6
74463544ea2eSmrgelse
74473544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
74483544ea2eSmrg/* end confdefs.h.  */
74493544ea2eSmrgint i;
74503544ea2eSmrg_ACEOF
74513544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
74523544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
74533544ea2eSmrgelse
74543544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
74553544ea2eSmrgfi
74563544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
74573544ea2eSmrgfi
74583544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
74593544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
74603544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
74613544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
74623544ea2eSmrgfi
74633544ea2eSmrg
74643544ea2eSmrgfound="no"
74653544ea2eSmrg
74663544ea2eSmrg	if test $found = "no" ; then
746795fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
74683544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
74693544ea2eSmrg		fi
74703544ea2eSmrg
747195fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
74723544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
74733544ea2eSmrg		fi
74743544ea2eSmrg
74753544ea2eSmrg		CFLAGS="$CFLAGS -Werror=init-self"
74763544ea2eSmrg
747781440437Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
747881440437Smrg$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
747995fdd44cSmrg		cacheid=xorg_cv_cc_flag__Werror_init_self
74803544ea2eSmrg		if eval \${$cacheid+:} false; then :
74813544ea2eSmrg  $as_echo_n "(cached) " >&6
74823544ea2eSmrgelse
74833544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
74843544ea2eSmrg/* end confdefs.h.  */
74853544ea2eSmrgint i;
74863544ea2eSmrgint
74873544ea2eSmrgmain ()
74883544ea2eSmrg{
74893544ea2eSmrg
74903544ea2eSmrg  ;
74913544ea2eSmrg  return 0;
74923544ea2eSmrg}
74933544ea2eSmrg_ACEOF
74943544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
74953544ea2eSmrg  eval $cacheid=yes
74963544ea2eSmrgelse
74973544ea2eSmrg  eval $cacheid=no
74983544ea2eSmrgfi
74993544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
75003544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
75013544ea2eSmrgfi
75023544ea2eSmrg
75033544ea2eSmrg
75043544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
75053544ea2eSmrg
75063544ea2eSmrg		eval supported=\$$cacheid
75073544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
75083544ea2eSmrg$as_echo "$supported" >&6; }
75093544ea2eSmrg		if test "$supported" = "yes" ; then
75103544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
75113544ea2eSmrg			found="yes"
75123544ea2eSmrg		fi
75133544ea2eSmrg	fi
75143544ea2eSmrg
75153544ea2eSmrg
75163544ea2eSmrg
75173544ea2eSmrg
75183544ea2eSmrg
75193544ea2eSmrg
75203544ea2eSmrg
75213544ea2eSmrg
75223544ea2eSmrg
75233544ea2eSmrg
75243544ea2eSmrg
75253544ea2eSmrg
75263544ea2eSmrg
75273544ea2eSmrg
75283544ea2eSmrg
75293544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
75303544ea2eSmrg
75313544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
75323544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
75333544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
75343544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
75353544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
75363544ea2eSmrg  $as_echo_n "(cached) " >&6
75373544ea2eSmrgelse
75383544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
75393544ea2eSmrg/* end confdefs.h.  */
75403544ea2eSmrgint i;
75413544ea2eSmrg_ACEOF
75423544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
75433544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
75443544ea2eSmrgelse
75453544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
75463544ea2eSmrgfi
75473544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
75483544ea2eSmrgfi
75493544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
75503544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
75513544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
75523544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
75533544ea2eSmrgfi
75543544ea2eSmrg
75553544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
75563544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
75573544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
75583544ea2eSmrg	fi
75593544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
75603544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
75613544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
75623544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
75633544ea2eSmrg  $as_echo_n "(cached) " >&6
75643544ea2eSmrgelse
75653544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
75663544ea2eSmrg/* end confdefs.h.  */
75673544ea2eSmrgint i;
75683544ea2eSmrg_ACEOF
75693544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
75703544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
75713544ea2eSmrgelse
75723544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
75733544ea2eSmrgfi
75743544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
75753544ea2eSmrgfi
75763544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
75773544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
75783544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
75793544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
75803544ea2eSmrgfi
75813544ea2eSmrg
75823544ea2eSmrgfound="no"
75833544ea2eSmrg
75843544ea2eSmrg	if test $found = "no" ; then
758595fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
75863544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
75873544ea2eSmrg		fi
75883544ea2eSmrg
758995fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
75903544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
75913544ea2eSmrg		fi
75923544ea2eSmrg
75933544ea2eSmrg		CFLAGS="$CFLAGS -Werror=main"
75943544ea2eSmrg
759581440437Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
759681440437Smrg$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
759795fdd44cSmrg		cacheid=xorg_cv_cc_flag__Werror_main
75983544ea2eSmrg		if eval \${$cacheid+:} false; then :
75993544ea2eSmrg  $as_echo_n "(cached) " >&6
76003544ea2eSmrgelse
76013544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
76023544ea2eSmrg/* end confdefs.h.  */
76033544ea2eSmrgint i;
76043544ea2eSmrgint
76053544ea2eSmrgmain ()
76063544ea2eSmrg{
76073544ea2eSmrg
76083544ea2eSmrg  ;
76093544ea2eSmrg  return 0;
76103544ea2eSmrg}
76113544ea2eSmrg_ACEOF
76123544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
76133544ea2eSmrg  eval $cacheid=yes
76143544ea2eSmrgelse
76153544ea2eSmrg  eval $cacheid=no
76163544ea2eSmrgfi
76173544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
76183544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
76193544ea2eSmrgfi
76203544ea2eSmrg
76213544ea2eSmrg
76223544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
76233544ea2eSmrg
76243544ea2eSmrg		eval supported=\$$cacheid
76253544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
76263544ea2eSmrg$as_echo "$supported" >&6; }
76273544ea2eSmrg		if test "$supported" = "yes" ; then
76283544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
76293544ea2eSmrg			found="yes"
76303544ea2eSmrg		fi
76313544ea2eSmrg	fi
76323544ea2eSmrg
76333544ea2eSmrg
76343544ea2eSmrg
76353544ea2eSmrg
76363544ea2eSmrg
76373544ea2eSmrg
76383544ea2eSmrg
76393544ea2eSmrg
76403544ea2eSmrg
76413544ea2eSmrg
76423544ea2eSmrg
76433544ea2eSmrg
76443544ea2eSmrg
76453544ea2eSmrg
76463544ea2eSmrg
76473544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
76483544ea2eSmrg
76493544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
76503544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
76513544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
76523544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
76533544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
76543544ea2eSmrg  $as_echo_n "(cached) " >&6
76553544ea2eSmrgelse
76563544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
76573544ea2eSmrg/* end confdefs.h.  */
76583544ea2eSmrgint i;
76593544ea2eSmrg_ACEOF
76603544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
76613544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
76623544ea2eSmrgelse
76633544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
76643544ea2eSmrgfi
76653544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
76663544ea2eSmrgfi
76673544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
76683544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
76693544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
76703544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
76713544ea2eSmrgfi
76723544ea2eSmrg
76733544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
76743544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
76753544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
76763544ea2eSmrg	fi
76773544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
76783544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
76793544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
76803544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
76813544ea2eSmrg  $as_echo_n "(cached) " >&6
76823544ea2eSmrgelse
76833544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
76843544ea2eSmrg/* end confdefs.h.  */
76853544ea2eSmrgint i;
76863544ea2eSmrg_ACEOF
76873544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
76883544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
76893544ea2eSmrgelse
76903544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
76913544ea2eSmrgfi
76923544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
76933544ea2eSmrgfi
76943544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
76953544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
76963544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
76973544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
76983544ea2eSmrgfi
76993544ea2eSmrg
77003544ea2eSmrgfound="no"
77013544ea2eSmrg
77023544ea2eSmrg	if test $found = "no" ; then
770395fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
77043544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
77053544ea2eSmrg		fi
77063544ea2eSmrg
770795fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
77083544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
77093544ea2eSmrg		fi
77103544ea2eSmrg
77113544ea2eSmrg		CFLAGS="$CFLAGS -Werror=missing-braces"
77123544ea2eSmrg
771381440437Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
771481440437Smrg$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
771595fdd44cSmrg		cacheid=xorg_cv_cc_flag__Werror_missing_braces
77163544ea2eSmrg		if eval \${$cacheid+:} false; then :
77173544ea2eSmrg  $as_echo_n "(cached) " >&6
77183544ea2eSmrgelse
77193544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77203544ea2eSmrg/* end confdefs.h.  */
77213544ea2eSmrgint i;
77223544ea2eSmrgint
77233544ea2eSmrgmain ()
77243544ea2eSmrg{
77253544ea2eSmrg
77263544ea2eSmrg  ;
77273544ea2eSmrg  return 0;
77283544ea2eSmrg}
77293544ea2eSmrg_ACEOF
77303544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
77313544ea2eSmrg  eval $cacheid=yes
77323544ea2eSmrgelse
77333544ea2eSmrg  eval $cacheid=no
77343544ea2eSmrgfi
77353544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
77363544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
77373544ea2eSmrgfi
77383544ea2eSmrg
77393544ea2eSmrg
77403544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
77413544ea2eSmrg
77423544ea2eSmrg		eval supported=\$$cacheid
77433544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
77443544ea2eSmrg$as_echo "$supported" >&6; }
77453544ea2eSmrg		if test "$supported" = "yes" ; then
77463544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
77473544ea2eSmrg			found="yes"
77483544ea2eSmrg		fi
77493544ea2eSmrg	fi
77503544ea2eSmrg
77513544ea2eSmrg
77523544ea2eSmrg
77533544ea2eSmrg
77543544ea2eSmrg
77553544ea2eSmrg
77563544ea2eSmrg
77573544ea2eSmrg
77583544ea2eSmrg
77593544ea2eSmrg
77603544ea2eSmrg
77613544ea2eSmrg
77623544ea2eSmrg
77633544ea2eSmrg
77643544ea2eSmrg
77653544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
77663544ea2eSmrg
77673544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
77683544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
77693544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
77703544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
77713544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
77723544ea2eSmrg  $as_echo_n "(cached) " >&6
77733544ea2eSmrgelse
77743544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77753544ea2eSmrg/* end confdefs.h.  */
77763544ea2eSmrgint i;
77773544ea2eSmrg_ACEOF
77783544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
77793544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
77803544ea2eSmrgelse
77813544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
77823544ea2eSmrgfi
77833544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
77843544ea2eSmrgfi
77853544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
77863544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
77873544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
77883544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
77893544ea2eSmrgfi
77903544ea2eSmrg
77913544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
77923544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
77933544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
77943544ea2eSmrg	fi
77953544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
77963544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
77973544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
77983544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
77993544ea2eSmrg  $as_echo_n "(cached) " >&6
78003544ea2eSmrgelse
78013544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
78023544ea2eSmrg/* end confdefs.h.  */
78033544ea2eSmrgint i;
78043544ea2eSmrg_ACEOF
78053544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
78063544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
78073544ea2eSmrgelse
78083544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
78093544ea2eSmrgfi
78103544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
78113544ea2eSmrgfi
78123544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
78133544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
78143544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
78153544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
78163544ea2eSmrgfi
78173544ea2eSmrg
78183544ea2eSmrgfound="no"
78193544ea2eSmrg
78203544ea2eSmrg	if test $found = "no" ; then
782195fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
78223544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
78233544ea2eSmrg		fi
78243544ea2eSmrg
782595fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
78263544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
78273544ea2eSmrg		fi
78283544ea2eSmrg
78293544ea2eSmrg		CFLAGS="$CFLAGS -Werror=sequence-point"
78303544ea2eSmrg
783181440437Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
783281440437Smrg$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
783395fdd44cSmrg		cacheid=xorg_cv_cc_flag__Werror_sequence_point
78343544ea2eSmrg		if eval \${$cacheid+:} false; then :
78353544ea2eSmrg  $as_echo_n "(cached) " >&6
78363544ea2eSmrgelse
78373544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
78383544ea2eSmrg/* end confdefs.h.  */
78393544ea2eSmrgint i;
78403544ea2eSmrgint
78413544ea2eSmrgmain ()
78423544ea2eSmrg{
78433544ea2eSmrg
78443544ea2eSmrg  ;
78453544ea2eSmrg  return 0;
78463544ea2eSmrg}
78473544ea2eSmrg_ACEOF
78483544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
78493544ea2eSmrg  eval $cacheid=yes
78503544ea2eSmrgelse
78513544ea2eSmrg  eval $cacheid=no
78523544ea2eSmrgfi
78533544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
78543544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
78553544ea2eSmrgfi
78563544ea2eSmrg
78573544ea2eSmrg
78583544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
78593544ea2eSmrg
78603544ea2eSmrg		eval supported=\$$cacheid
78613544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
78623544ea2eSmrg$as_echo "$supported" >&6; }
78633544ea2eSmrg		if test "$supported" = "yes" ; then
78643544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
78653544ea2eSmrg			found="yes"
78663544ea2eSmrg		fi
78673544ea2eSmrg	fi
78683544ea2eSmrg
78693544ea2eSmrg
78703544ea2eSmrg
78713544ea2eSmrg
78723544ea2eSmrg
78733544ea2eSmrg
78743544ea2eSmrg
78753544ea2eSmrg
78763544ea2eSmrg
78773544ea2eSmrg
78783544ea2eSmrg
78793544ea2eSmrg
78803544ea2eSmrg
78813544ea2eSmrg
78823544ea2eSmrg
78833544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
78843544ea2eSmrg
78853544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
78863544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
78873544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
78883544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
78893544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
78903544ea2eSmrg  $as_echo_n "(cached) " >&6
78913544ea2eSmrgelse
78923544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
78933544ea2eSmrg/* end confdefs.h.  */
78943544ea2eSmrgint i;
78953544ea2eSmrg_ACEOF
78963544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
78973544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
78983544ea2eSmrgelse
78993544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
79003544ea2eSmrgfi
79013544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
79023544ea2eSmrgfi
79033544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
79043544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
79053544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
79063544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
79073544ea2eSmrgfi
79083544ea2eSmrg
79093544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
79103544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
79113544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
79123544ea2eSmrg	fi
79133544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
79143544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
79153544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
79163544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
79173544ea2eSmrg  $as_echo_n "(cached) " >&6
79183544ea2eSmrgelse
79193544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79203544ea2eSmrg/* end confdefs.h.  */
79213544ea2eSmrgint i;
79223544ea2eSmrg_ACEOF
79233544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
79243544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
79253544ea2eSmrgelse
79263544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
79273544ea2eSmrgfi
79283544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
79293544ea2eSmrgfi
79303544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
79313544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
79323544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
79333544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
79343544ea2eSmrgfi
79353544ea2eSmrg
79363544ea2eSmrgfound="no"
79373544ea2eSmrg
79383544ea2eSmrg	if test $found = "no" ; then
793995fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
79403544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
79413544ea2eSmrg		fi
79423544ea2eSmrg
794395fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
79443544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
79453544ea2eSmrg		fi
79463544ea2eSmrg
79473544ea2eSmrg		CFLAGS="$CFLAGS -Werror=return-type"
79483544ea2eSmrg
794981440437Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
795081440437Smrg$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
795195fdd44cSmrg		cacheid=xorg_cv_cc_flag__Werror_return_type
79523544ea2eSmrg		if eval \${$cacheid+:} false; then :
79533544ea2eSmrg  $as_echo_n "(cached) " >&6
79543544ea2eSmrgelse
79553544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79563544ea2eSmrg/* end confdefs.h.  */
79573544ea2eSmrgint i;
79583544ea2eSmrgint
79593544ea2eSmrgmain ()
79603544ea2eSmrg{
79613544ea2eSmrg
79623544ea2eSmrg  ;
79633544ea2eSmrg  return 0;
79643544ea2eSmrg}
79653544ea2eSmrg_ACEOF
79663544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
79673544ea2eSmrg  eval $cacheid=yes
79683544ea2eSmrgelse
79693544ea2eSmrg  eval $cacheid=no
79703544ea2eSmrgfi
79713544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
79723544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
79733544ea2eSmrgfi
79743544ea2eSmrg
79753544ea2eSmrg
79763544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
79773544ea2eSmrg
79783544ea2eSmrg		eval supported=\$$cacheid
79793544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
79803544ea2eSmrg$as_echo "$supported" >&6; }
79813544ea2eSmrg		if test "$supported" = "yes" ; then
79823544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
79833544ea2eSmrg			found="yes"
79843544ea2eSmrg		fi
79853544ea2eSmrg	fi
79863544ea2eSmrg
79873544ea2eSmrg	if test $found = "no" ; then
798895fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
79893544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
79903544ea2eSmrg		fi
79913544ea2eSmrg
799295fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
79933544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
79943544ea2eSmrg		fi
79953544ea2eSmrg
79963544ea2eSmrg		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
79973544ea2eSmrg
799881440437Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
799981440437Smrg$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
800095fdd44cSmrg		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
80013544ea2eSmrg		if eval \${$cacheid+:} false; then :
80023544ea2eSmrg  $as_echo_n "(cached) " >&6
80033544ea2eSmrgelse
80043544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
80053544ea2eSmrg/* end confdefs.h.  */
80063544ea2eSmrgint i;
80073544ea2eSmrgint
80083544ea2eSmrgmain ()
80093544ea2eSmrg{
80103544ea2eSmrg
80113544ea2eSmrg  ;
80123544ea2eSmrg  return 0;
80133544ea2eSmrg}
80143544ea2eSmrg_ACEOF
80153544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
80163544ea2eSmrg  eval $cacheid=yes
80173544ea2eSmrgelse
80183544ea2eSmrg  eval $cacheid=no
80193544ea2eSmrgfi
80203544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
80213544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
80223544ea2eSmrgfi
80233544ea2eSmrg
80243544ea2eSmrg
80253544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
80263544ea2eSmrg
80273544ea2eSmrg		eval supported=\$$cacheid
80283544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
80293544ea2eSmrg$as_echo "$supported" >&6; }
80303544ea2eSmrg		if test "$supported" = "yes" ; then
80313544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
80323544ea2eSmrg			found="yes"
80333544ea2eSmrg		fi
80343544ea2eSmrg	fi
80353544ea2eSmrg
80363544ea2eSmrg
80373544ea2eSmrg
80383544ea2eSmrg
80393544ea2eSmrg
80403544ea2eSmrg
80413544ea2eSmrg
80423544ea2eSmrg
80433544ea2eSmrg
80443544ea2eSmrg
80453544ea2eSmrg
80463544ea2eSmrg
80473544ea2eSmrg
80483544ea2eSmrg
80493544ea2eSmrg
80503544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
80513544ea2eSmrg
80523544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
80533544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
80543544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
80553544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
80563544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
80573544ea2eSmrg  $as_echo_n "(cached) " >&6
80583544ea2eSmrgelse
80593544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
80603544ea2eSmrg/* end confdefs.h.  */
80613544ea2eSmrgint i;
80623544ea2eSmrg_ACEOF
80633544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
80643544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
80653544ea2eSmrgelse
80663544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
80673544ea2eSmrgfi
80683544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80693544ea2eSmrgfi
80703544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
80713544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
80723544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
80733544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
80743544ea2eSmrgfi
80753544ea2eSmrg
80763544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
80773544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
80783544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
80793544ea2eSmrg	fi
80803544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
80813544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
80823544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
80833544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
80843544ea2eSmrg  $as_echo_n "(cached) " >&6
80853544ea2eSmrgelse
80863544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
80873544ea2eSmrg/* end confdefs.h.  */
80883544ea2eSmrgint i;
80893544ea2eSmrg_ACEOF
80903544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
80913544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
80923544ea2eSmrgelse
80933544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
80943544ea2eSmrgfi
80953544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80963544ea2eSmrgfi
80973544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
80983544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
80993544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
81003544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
81013544ea2eSmrgfi
81023544ea2eSmrg
81033544ea2eSmrgfound="no"
81043544ea2eSmrg
81053544ea2eSmrg	if test $found = "no" ; then
810695fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
81073544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
81083544ea2eSmrg		fi
81093544ea2eSmrg
811095fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
81113544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
81123544ea2eSmrg		fi
81133544ea2eSmrg
81143544ea2eSmrg		CFLAGS="$CFLAGS -Werror=trigraphs"
81153544ea2eSmrg
811681440437Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
811781440437Smrg$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
811895fdd44cSmrg		cacheid=xorg_cv_cc_flag__Werror_trigraphs
81193544ea2eSmrg		if eval \${$cacheid+:} false; then :
81203544ea2eSmrg  $as_echo_n "(cached) " >&6
81213544ea2eSmrgelse
81223544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81233544ea2eSmrg/* end confdefs.h.  */
81243544ea2eSmrgint i;
81253544ea2eSmrgint
81263544ea2eSmrgmain ()
81273544ea2eSmrg{
81283544ea2eSmrg
81293544ea2eSmrg  ;
81303544ea2eSmrg  return 0;
81313544ea2eSmrg}
81323544ea2eSmrg_ACEOF
81333544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
81343544ea2eSmrg  eval $cacheid=yes
81353544ea2eSmrgelse
81363544ea2eSmrg  eval $cacheid=no
81373544ea2eSmrgfi
81383544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
81393544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
81403544ea2eSmrgfi
81413544ea2eSmrg
81423544ea2eSmrg
81433544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
81443544ea2eSmrg
81453544ea2eSmrg		eval supported=\$$cacheid
81463544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
81473544ea2eSmrg$as_echo "$supported" >&6; }
81483544ea2eSmrg		if test "$supported" = "yes" ; then
81493544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
81503544ea2eSmrg			found="yes"
81513544ea2eSmrg		fi
81523544ea2eSmrg	fi
81533544ea2eSmrg
81543544ea2eSmrg
81553544ea2eSmrg
81563544ea2eSmrg
81573544ea2eSmrg
81583544ea2eSmrg
81593544ea2eSmrg
81603544ea2eSmrg
81613544ea2eSmrg
81623544ea2eSmrg
81633544ea2eSmrg
81643544ea2eSmrg
81653544ea2eSmrg
81663544ea2eSmrg
81673544ea2eSmrg
81683544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
81693544ea2eSmrg
81703544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
81713544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
81723544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
81733544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
81743544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
81753544ea2eSmrg  $as_echo_n "(cached) " >&6
81763544ea2eSmrgelse
81773544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81783544ea2eSmrg/* end confdefs.h.  */
81793544ea2eSmrgint i;
81803544ea2eSmrg_ACEOF
81813544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
81823544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
81833544ea2eSmrgelse
81843544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
81853544ea2eSmrgfi
81863544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
81873544ea2eSmrgfi
81883544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
81893544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
81903544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
81913544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
81923544ea2eSmrgfi
81933544ea2eSmrg
81943544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
81953544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
81963544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
81973544ea2eSmrg	fi
81983544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
81993544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
82003544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
82013544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
82023544ea2eSmrg  $as_echo_n "(cached) " >&6
82033544ea2eSmrgelse
82043544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
82053544ea2eSmrg/* end confdefs.h.  */
82063544ea2eSmrgint i;
82073544ea2eSmrg_ACEOF
82083544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
82093544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
82103544ea2eSmrgelse
82113544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
82123544ea2eSmrgfi
82133544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
82143544ea2eSmrgfi
82153544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
82163544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
82173544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
82183544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
82193544ea2eSmrgfi
82203544ea2eSmrg
82213544ea2eSmrgfound="no"
82223544ea2eSmrg
82233544ea2eSmrg	if test $found = "no" ; then
822495fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
82253544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
82263544ea2eSmrg		fi
82273544ea2eSmrg
822895fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
82293544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
82303544ea2eSmrg		fi
82313544ea2eSmrg
82323544ea2eSmrg		CFLAGS="$CFLAGS -Werror=array-bounds"
82333544ea2eSmrg
823481440437Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
823581440437Smrg$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
823695fdd44cSmrg		cacheid=xorg_cv_cc_flag__Werror_array_bounds
82373544ea2eSmrg		if eval \${$cacheid+:} false; then :
82383544ea2eSmrg  $as_echo_n "(cached) " >&6
82393544ea2eSmrgelse
82403544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
82413544ea2eSmrg/* end confdefs.h.  */
82423544ea2eSmrgint i;
82433544ea2eSmrgint
82443544ea2eSmrgmain ()
82453544ea2eSmrg{
82463544ea2eSmrg
82473544ea2eSmrg  ;
82483544ea2eSmrg  return 0;
82493544ea2eSmrg}
82503544ea2eSmrg_ACEOF
82513544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
82523544ea2eSmrg  eval $cacheid=yes
82533544ea2eSmrgelse
82543544ea2eSmrg  eval $cacheid=no
82553544ea2eSmrgfi
82563544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
82573544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
82583544ea2eSmrgfi
82593544ea2eSmrg
82603544ea2eSmrg
82613544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
82623544ea2eSmrg
82633544ea2eSmrg		eval supported=\$$cacheid
82643544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
82653544ea2eSmrg$as_echo "$supported" >&6; }
82663544ea2eSmrg		if test "$supported" = "yes" ; then
82673544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
82683544ea2eSmrg			found="yes"
82693544ea2eSmrg		fi
82703544ea2eSmrg	fi
82713544ea2eSmrg
82723544ea2eSmrg
82733544ea2eSmrg
82743544ea2eSmrg
82753544ea2eSmrg
82763544ea2eSmrg
82773544ea2eSmrg
82783544ea2eSmrg
82793544ea2eSmrg
82803544ea2eSmrg
82813544ea2eSmrg
82823544ea2eSmrg
82833544ea2eSmrg
82843544ea2eSmrg
82853544ea2eSmrg
82863544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
82873544ea2eSmrg
82883544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
82893544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
82903544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
82913544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
82923544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
82933544ea2eSmrg  $as_echo_n "(cached) " >&6
82943544ea2eSmrgelse
82953544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
82963544ea2eSmrg/* end confdefs.h.  */
82973544ea2eSmrgint i;
82983544ea2eSmrg_ACEOF
82993544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
83003544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
83013544ea2eSmrgelse
83023544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
83033544ea2eSmrgfi
83043544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
83053544ea2eSmrgfi
83063544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
83073544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
83083544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
83093544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
83103544ea2eSmrgfi
83113544ea2eSmrg
83123544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
83133544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
83143544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
83153544ea2eSmrg	fi
83163544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
83173544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
83183544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
83193544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
83203544ea2eSmrg  $as_echo_n "(cached) " >&6
83213544ea2eSmrgelse
83223544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
83233544ea2eSmrg/* end confdefs.h.  */
83243544ea2eSmrgint i;
83253544ea2eSmrg_ACEOF
83263544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
83273544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
83283544ea2eSmrgelse
83293544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
83303544ea2eSmrgfi
83313544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
83323544ea2eSmrgfi
83333544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
83343544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
83353544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
83363544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
83373544ea2eSmrgfi
83383544ea2eSmrg
83393544ea2eSmrgfound="no"
83403544ea2eSmrg
83413544ea2eSmrg	if test $found = "no" ; then
834295fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
83433544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
83443544ea2eSmrg		fi
83453544ea2eSmrg
834695fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
83473544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
83483544ea2eSmrg		fi
83493544ea2eSmrg
83503544ea2eSmrg		CFLAGS="$CFLAGS -Werror=write-strings"
83513544ea2eSmrg
835281440437Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
835381440437Smrg$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
835495fdd44cSmrg		cacheid=xorg_cv_cc_flag__Werror_write_strings
83553544ea2eSmrg		if eval \${$cacheid+:} false; then :
83563544ea2eSmrg  $as_echo_n "(cached) " >&6
83573544ea2eSmrgelse
83583544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
83593544ea2eSmrg/* end confdefs.h.  */
83603544ea2eSmrgint i;
83613544ea2eSmrgint
83623544ea2eSmrgmain ()
83633544ea2eSmrg{
83643544ea2eSmrg
83653544ea2eSmrg  ;
83663544ea2eSmrg  return 0;
83673544ea2eSmrg}
83683544ea2eSmrg_ACEOF
83693544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
83703544ea2eSmrg  eval $cacheid=yes
83713544ea2eSmrgelse
83723544ea2eSmrg  eval $cacheid=no
83733544ea2eSmrgfi
83743544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
83753544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
83763544ea2eSmrgfi
83773544ea2eSmrg
83783544ea2eSmrg
83793544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
83803544ea2eSmrg
83813544ea2eSmrg		eval supported=\$$cacheid
83823544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
83833544ea2eSmrg$as_echo "$supported" >&6; }
83843544ea2eSmrg		if test "$supported" = "yes" ; then
83853544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
83863544ea2eSmrg			found="yes"
83873544ea2eSmrg		fi
83883544ea2eSmrg	fi
83893544ea2eSmrg
83903544ea2eSmrg
83913544ea2eSmrg
83923544ea2eSmrg
83933544ea2eSmrg
83943544ea2eSmrg
83953544ea2eSmrg
83963544ea2eSmrg
83973544ea2eSmrg
83983544ea2eSmrg
83993544ea2eSmrg
84003544ea2eSmrg
84013544ea2eSmrg
84023544ea2eSmrg
84033544ea2eSmrg
84043544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
84053544ea2eSmrg
84063544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
84073544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
84083544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
84093544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
84103544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
84113544ea2eSmrg  $as_echo_n "(cached) " >&6
84123544ea2eSmrgelse
84133544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
84143544ea2eSmrg/* end confdefs.h.  */
84153544ea2eSmrgint i;
84163544ea2eSmrg_ACEOF
84173544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
84183544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
84193544ea2eSmrgelse
84203544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
84213544ea2eSmrgfi
84223544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
84233544ea2eSmrgfi
84243544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
84253544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
84263544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
84273544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
84283544ea2eSmrgfi
84293544ea2eSmrg
84303544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
84313544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
84323544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
84333544ea2eSmrg	fi
84343544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
84353544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
84363544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
84373544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
84383544ea2eSmrg  $as_echo_n "(cached) " >&6
84393544ea2eSmrgelse
84403544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
84413544ea2eSmrg/* end confdefs.h.  */
84423544ea2eSmrgint i;
84433544ea2eSmrg_ACEOF
84443544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
84453544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
84463544ea2eSmrgelse
84473544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
84483544ea2eSmrgfi
84493544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
84503544ea2eSmrgfi
84513544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
84523544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
84533544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
84543544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
84553544ea2eSmrgfi
84563544ea2eSmrg
84573544ea2eSmrgfound="no"
84583544ea2eSmrg
84593544ea2eSmrg	if test $found = "no" ; then
846095fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
84613544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
84623544ea2eSmrg		fi
84633544ea2eSmrg
846495fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
84653544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
84663544ea2eSmrg		fi
84673544ea2eSmrg
84683544ea2eSmrg		CFLAGS="$CFLAGS -Werror=address"
84693544ea2eSmrg
847081440437Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
847181440437Smrg$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
847295fdd44cSmrg		cacheid=xorg_cv_cc_flag__Werror_address
84733544ea2eSmrg		if eval \${$cacheid+:} false; then :
84743544ea2eSmrg  $as_echo_n "(cached) " >&6
84753544ea2eSmrgelse
84763544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
84773544ea2eSmrg/* end confdefs.h.  */
84783544ea2eSmrgint i;
84793544ea2eSmrgint
84803544ea2eSmrgmain ()
84813544ea2eSmrg{
84823544ea2eSmrg
84833544ea2eSmrg  ;
84843544ea2eSmrg  return 0;
84853544ea2eSmrg}
84863544ea2eSmrg_ACEOF
84873544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
84883544ea2eSmrg  eval $cacheid=yes
84893544ea2eSmrgelse
84903544ea2eSmrg  eval $cacheid=no
84913544ea2eSmrgfi
84923544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
84933544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
84943544ea2eSmrgfi
84953544ea2eSmrg
84963544ea2eSmrg
84973544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
84983544ea2eSmrg
84993544ea2eSmrg		eval supported=\$$cacheid
85003544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
85013544ea2eSmrg$as_echo "$supported" >&6; }
85023544ea2eSmrg		if test "$supported" = "yes" ; then
85033544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
85043544ea2eSmrg			found="yes"
85053544ea2eSmrg		fi
85063544ea2eSmrg	fi
85073544ea2eSmrg
85083544ea2eSmrg
85093544ea2eSmrg
85103544ea2eSmrg
85113544ea2eSmrg
85123544ea2eSmrg
85133544ea2eSmrg
85143544ea2eSmrg
85153544ea2eSmrg
85163544ea2eSmrg
85173544ea2eSmrg
85183544ea2eSmrg
85193544ea2eSmrg
85203544ea2eSmrg
85213544ea2eSmrg
85223544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
85233544ea2eSmrg
85243544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
85253544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
85263544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
85273544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
85283544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
85293544ea2eSmrg  $as_echo_n "(cached) " >&6
85303544ea2eSmrgelse
85313544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85323544ea2eSmrg/* end confdefs.h.  */
85333544ea2eSmrgint i;
85343544ea2eSmrg_ACEOF
85353544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
85363544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
85373544ea2eSmrgelse
85383544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
85393544ea2eSmrgfi
85403544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
85413544ea2eSmrgfi
85423544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
85433544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
85443544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
85453544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
85463544ea2eSmrgfi
85473544ea2eSmrg
85483544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
85493544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
85503544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
85513544ea2eSmrg	fi
85523544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
85533544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
85543544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
85553544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
85563544ea2eSmrg  $as_echo_n "(cached) " >&6
85573544ea2eSmrgelse
85583544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85593544ea2eSmrg/* end confdefs.h.  */
85603544ea2eSmrgint i;
85613544ea2eSmrg_ACEOF
85623544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
85633544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
85643544ea2eSmrgelse
85653544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
85663544ea2eSmrgfi
85673544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
85683544ea2eSmrgfi
85693544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
85703544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
85713544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
85723544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
85733544ea2eSmrgfi
85743544ea2eSmrg
85753544ea2eSmrgfound="no"
85763544ea2eSmrg
85773544ea2eSmrg	if test $found = "no" ; then
857895fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
85793544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
85803544ea2eSmrg		fi
85813544ea2eSmrg
858295fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
85833544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
85843544ea2eSmrg		fi
85853544ea2eSmrg
85863544ea2eSmrg		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
85873544ea2eSmrg
858881440437Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
858981440437Smrg$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
859095fdd44cSmrg		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
85913544ea2eSmrg		if eval \${$cacheid+:} false; then :
85923544ea2eSmrg  $as_echo_n "(cached) " >&6
85933544ea2eSmrgelse
85943544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85953544ea2eSmrg/* end confdefs.h.  */
85963544ea2eSmrgint i;
85973544ea2eSmrgint
85983544ea2eSmrgmain ()
85993544ea2eSmrg{
86003544ea2eSmrg
86013544ea2eSmrg  ;
86023544ea2eSmrg  return 0;
86033544ea2eSmrg}
86043544ea2eSmrg_ACEOF
86053544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
86063544ea2eSmrg  eval $cacheid=yes
86073544ea2eSmrgelse
86083544ea2eSmrg  eval $cacheid=no
86093544ea2eSmrgfi
86103544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
86113544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
86123544ea2eSmrgfi
86133544ea2eSmrg
86143544ea2eSmrg
86153544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
86163544ea2eSmrg
86173544ea2eSmrg		eval supported=\$$cacheid
86183544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
86193544ea2eSmrg$as_echo "$supported" >&6; }
86203544ea2eSmrg		if test "$supported" = "yes" ; then
86213544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
86223544ea2eSmrg			found="yes"
86233544ea2eSmrg		fi
86243544ea2eSmrg	fi
86253544ea2eSmrg
86263544ea2eSmrg	if test $found = "no" ; then
862795fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
86283544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
86293544ea2eSmrg		fi
86303544ea2eSmrg
863195fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
86323544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
86333544ea2eSmrg		fi
86343544ea2eSmrg
86353544ea2eSmrg		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
86363544ea2eSmrg
863781440437Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
863881440437Smrg$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
863995fdd44cSmrg		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
86403544ea2eSmrg		if eval \${$cacheid+:} false; then :
86413544ea2eSmrg  $as_echo_n "(cached) " >&6
86423544ea2eSmrgelse
86433544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86443544ea2eSmrg/* end confdefs.h.  */
86453544ea2eSmrgint i;
86463544ea2eSmrgint
86473544ea2eSmrgmain ()
86483544ea2eSmrg{
86493544ea2eSmrg
86503544ea2eSmrg  ;
86513544ea2eSmrg  return 0;
86523544ea2eSmrg}
86533544ea2eSmrg_ACEOF
86543544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
86553544ea2eSmrg  eval $cacheid=yes
86563544ea2eSmrgelse
86573544ea2eSmrg  eval $cacheid=no
86583544ea2eSmrgfi
86593544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
86603544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
86613544ea2eSmrgfi
86623544ea2eSmrg
86633544ea2eSmrg
86643544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
86653544ea2eSmrg
86663544ea2eSmrg		eval supported=\$$cacheid
86673544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
86683544ea2eSmrg$as_echo "$supported" >&6; }
86693544ea2eSmrg		if test "$supported" = "yes" ; then
86703544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
86713544ea2eSmrg			found="yes"
86723544ea2eSmrg		fi
86733544ea2eSmrg	fi
86743544ea2eSmrg
86753544ea2eSmrg
86763544ea2eSmrg
86773544ea2eSmrg
86783544ea2eSmrg
86793544ea2eSmrg
86803544ea2eSmrg
86813544ea2eSmrg
86823544ea2eSmrg
86833544ea2eSmrg
86843544ea2eSmrg
86853544ea2eSmrg
86863544ea2eSmrg
86873544ea2eSmrg
86883544ea2eSmrg
86893544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
86903544ea2eSmrg
86913544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
86923544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
86933544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
86943544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
86953544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
86963544ea2eSmrg  $as_echo_n "(cached) " >&6
86973544ea2eSmrgelse
86983544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86993544ea2eSmrg/* end confdefs.h.  */
87003544ea2eSmrgint i;
87013544ea2eSmrg_ACEOF
87023544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
87033544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
87043544ea2eSmrgelse
87053544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
87063544ea2eSmrgfi
87073544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
87083544ea2eSmrgfi
87093544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
87103544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
87113544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
87123544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
87133544ea2eSmrgfi
87143544ea2eSmrg
87153544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
87163544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
87173544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
87183544ea2eSmrg	fi
87193544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
87203544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
87213544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
87223544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
87233544ea2eSmrg  $as_echo_n "(cached) " >&6
87243544ea2eSmrgelse
87253544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87263544ea2eSmrg/* end confdefs.h.  */
87273544ea2eSmrgint i;
87283544ea2eSmrg_ACEOF
87293544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
87303544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
87313544ea2eSmrgelse
87323544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
87333544ea2eSmrgfi
87343544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
87353544ea2eSmrgfi
87363544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
87373544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
87383544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
87393544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
87403544ea2eSmrgfi
87413544ea2eSmrg
87423544ea2eSmrgfound="no"
87433544ea2eSmrg
87443544ea2eSmrg	if test $found = "no" ; then
874595fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
87463544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
87473544ea2eSmrg		fi
87483544ea2eSmrg
874995fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
87503544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
87513544ea2eSmrg		fi
87523544ea2eSmrg
87533544ea2eSmrg		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
87543544ea2eSmrg
875581440437Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
875681440437Smrg$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
875795fdd44cSmrg		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
87583544ea2eSmrg		if eval \${$cacheid+:} false; then :
87593544ea2eSmrg  $as_echo_n "(cached) " >&6
87603544ea2eSmrgelse
87613544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87623544ea2eSmrg/* end confdefs.h.  */
87633544ea2eSmrgint i;
87643544ea2eSmrgint
87653544ea2eSmrgmain ()
87663544ea2eSmrg{
87673544ea2eSmrg
87683544ea2eSmrg  ;
87693544ea2eSmrg  return 0;
87703544ea2eSmrg}
87713544ea2eSmrg_ACEOF
87723544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
87733544ea2eSmrg  eval $cacheid=yes
87743544ea2eSmrgelse
87753544ea2eSmrg  eval $cacheid=no
87763544ea2eSmrgfi
87773544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
87783544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
87793544ea2eSmrgfi
87803544ea2eSmrg
87813544ea2eSmrg
87823544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
87833544ea2eSmrg
87843544ea2eSmrg		eval supported=\$$cacheid
87853544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
87863544ea2eSmrg$as_echo "$supported" >&6; }
87873544ea2eSmrg		if test "$supported" = "yes" ; then
87883544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
87893544ea2eSmrg			found="yes"
87903544ea2eSmrg		fi
87913544ea2eSmrg	fi
87923544ea2eSmrg
87933544ea2eSmrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION
87943544ea2eSmrgelse
87953544ea2eSmrg{ $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
87963544ea2eSmrg$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;}
87973544ea2eSmrg
87983544ea2eSmrg
87993544ea2eSmrg
88003544ea2eSmrg
88013544ea2eSmrg
88023544ea2eSmrg
88033544ea2eSmrg
88043544ea2eSmrg
88053544ea2eSmrg
88063544ea2eSmrg
88073544ea2eSmrg
88083544ea2eSmrg
88093544ea2eSmrg
88103544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
88113544ea2eSmrg
88123544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
88133544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
88143544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
88153544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
88163544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
88173544ea2eSmrg  $as_echo_n "(cached) " >&6
88183544ea2eSmrgelse
88193544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88203544ea2eSmrg/* end confdefs.h.  */
88213544ea2eSmrgint i;
88223544ea2eSmrg_ACEOF
88233544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
88243544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
88253544ea2eSmrgelse
88263544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
88273544ea2eSmrgfi
88283544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
88293544ea2eSmrgfi
88303544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
88313544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
88323544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
88333544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
88343544ea2eSmrgfi
88353544ea2eSmrg
88363544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
88373544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
88383544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
88393544ea2eSmrg	fi
88403544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
88413544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
88423544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
88433544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
88443544ea2eSmrg  $as_echo_n "(cached) " >&6
88453544ea2eSmrgelse
88463544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88473544ea2eSmrg/* end confdefs.h.  */
88483544ea2eSmrgint i;
88493544ea2eSmrg_ACEOF
88503544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
88513544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
88523544ea2eSmrgelse
88533544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
88543544ea2eSmrgfi
88553544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
88563544ea2eSmrgfi
88573544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
88583544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
88593544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
88603544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
88613544ea2eSmrgfi
88623544ea2eSmrg
88633544ea2eSmrgfound="no"
88643544ea2eSmrg
88653544ea2eSmrg	if test $found = "no" ; then
886695fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
88673544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
88683544ea2eSmrg		fi
88693544ea2eSmrg
887095fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
88713544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
88723544ea2eSmrg		fi
88733544ea2eSmrg
88743544ea2eSmrg		CFLAGS="$CFLAGS -Wimplicit"
88753544ea2eSmrg
887681440437Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
887781440437Smrg$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
88783544ea2eSmrg		cacheid=xorg_cv_cc_flag__Wimplicit
88793544ea2eSmrg		if eval \${$cacheid+:} false; then :
88803544ea2eSmrg  $as_echo_n "(cached) " >&6
88813544ea2eSmrgelse
88823544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88833544ea2eSmrg/* end confdefs.h.  */
88843544ea2eSmrgint i;
88853544ea2eSmrgint
88863544ea2eSmrgmain ()
88873544ea2eSmrg{
88883544ea2eSmrg
88893544ea2eSmrg  ;
88903544ea2eSmrg  return 0;
88913544ea2eSmrg}
88923544ea2eSmrg_ACEOF
88933544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
88943544ea2eSmrg  eval $cacheid=yes
88953544ea2eSmrgelse
88963544ea2eSmrg  eval $cacheid=no
88973544ea2eSmrgfi
88983544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
88993544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
89003544ea2eSmrgfi
89013544ea2eSmrg
89023544ea2eSmrg
89033544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
89043544ea2eSmrg
89053544ea2eSmrg		eval supported=\$$cacheid
89063544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
89073544ea2eSmrg$as_echo "$supported" >&6; }
89083544ea2eSmrg		if test "$supported" = "yes" ; then
89093544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
89103544ea2eSmrg			found="yes"
89113544ea2eSmrg		fi
89123544ea2eSmrg	fi
89133544ea2eSmrg
89143544ea2eSmrg
89153544ea2eSmrg
89163544ea2eSmrg
89173544ea2eSmrg
89183544ea2eSmrg
89193544ea2eSmrg
89203544ea2eSmrg
89213544ea2eSmrg
89223544ea2eSmrg
89233544ea2eSmrg
89243544ea2eSmrg
89253544ea2eSmrg
89263544ea2eSmrg
89273544ea2eSmrg
89283544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
89293544ea2eSmrg
89303544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
89313544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
89323544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
89333544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
89343544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
89353544ea2eSmrg  $as_echo_n "(cached) " >&6
89363544ea2eSmrgelse
89373544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89383544ea2eSmrg/* end confdefs.h.  */
89393544ea2eSmrgint i;
89403544ea2eSmrg_ACEOF
89413544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
89423544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
89433544ea2eSmrgelse
89443544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
89453544ea2eSmrgfi
89463544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
89473544ea2eSmrgfi
89483544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
89493544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
89503544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
89513544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
89523544ea2eSmrgfi
89533544ea2eSmrg
89543544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
89553544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
89563544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
89573544ea2eSmrg	fi
89583544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
89593544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
89603544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
89613544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
89623544ea2eSmrg  $as_echo_n "(cached) " >&6
89633544ea2eSmrgelse
89643544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89653544ea2eSmrg/* end confdefs.h.  */
89663544ea2eSmrgint i;
89673544ea2eSmrg_ACEOF
89683544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
89693544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
89703544ea2eSmrgelse
89713544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
89723544ea2eSmrgfi
89733544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
89743544ea2eSmrgfi
89753544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
89763544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
89773544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
89783544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
89793544ea2eSmrgfi
89803544ea2eSmrg
89813544ea2eSmrgfound="no"
89823544ea2eSmrg
89833544ea2eSmrg	if test $found = "no" ; then
898495fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
89853544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
89863544ea2eSmrg		fi
89873544ea2eSmrg
898895fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
89893544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
89903544ea2eSmrg		fi
89913544ea2eSmrg
89923544ea2eSmrg		CFLAGS="$CFLAGS -Wnonnull"
89933544ea2eSmrg
899481440437Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
899581440437Smrg$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
89963544ea2eSmrg		cacheid=xorg_cv_cc_flag__Wnonnull
89973544ea2eSmrg		if eval \${$cacheid+:} false; then :
89983544ea2eSmrg  $as_echo_n "(cached) " >&6
89993544ea2eSmrgelse
90003544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90013544ea2eSmrg/* end confdefs.h.  */
90023544ea2eSmrgint i;
90033544ea2eSmrgint
90043544ea2eSmrgmain ()
90053544ea2eSmrg{
90063544ea2eSmrg
90073544ea2eSmrg  ;
90083544ea2eSmrg  return 0;
90093544ea2eSmrg}
90103544ea2eSmrg_ACEOF
90113544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
90123544ea2eSmrg  eval $cacheid=yes
90133544ea2eSmrgelse
90143544ea2eSmrg  eval $cacheid=no
90153544ea2eSmrgfi
90163544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
90173544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
90183544ea2eSmrgfi
90193544ea2eSmrg
90203544ea2eSmrg
90213544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
90223544ea2eSmrg
90233544ea2eSmrg		eval supported=\$$cacheid
90243544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
90253544ea2eSmrg$as_echo "$supported" >&6; }
90263544ea2eSmrg		if test "$supported" = "yes" ; then
90273544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
90283544ea2eSmrg			found="yes"
90293544ea2eSmrg		fi
90303544ea2eSmrg	fi
90313544ea2eSmrg
90323544ea2eSmrg
90333544ea2eSmrg
90343544ea2eSmrg
90353544ea2eSmrg
90363544ea2eSmrg
90373544ea2eSmrg
90383544ea2eSmrg
90393544ea2eSmrg
90403544ea2eSmrg
90413544ea2eSmrg
90423544ea2eSmrg
90433544ea2eSmrg
90443544ea2eSmrg
90453544ea2eSmrg
90463544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
90473544ea2eSmrg
90483544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
90493544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
90503544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
90513544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
90523544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
90533544ea2eSmrg  $as_echo_n "(cached) " >&6
90543544ea2eSmrgelse
90553544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90563544ea2eSmrg/* end confdefs.h.  */
90573544ea2eSmrgint i;
90583544ea2eSmrg_ACEOF
90593544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
90603544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
90613544ea2eSmrgelse
90623544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
90633544ea2eSmrgfi
90643544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
90653544ea2eSmrgfi
90663544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
90673544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
90683544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
90693544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
90703544ea2eSmrgfi
90713544ea2eSmrg
90723544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
90733544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
90743544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
90753544ea2eSmrg	fi
90763544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
90773544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
90783544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
90793544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
90803544ea2eSmrg  $as_echo_n "(cached) " >&6
90813544ea2eSmrgelse
90823544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90833544ea2eSmrg/* end confdefs.h.  */
90843544ea2eSmrgint i;
90853544ea2eSmrg_ACEOF
90863544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
90873544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
90883544ea2eSmrgelse
90893544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
90903544ea2eSmrgfi
90913544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
90923544ea2eSmrgfi
90933544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
90943544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
90953544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
90963544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
90973544ea2eSmrgfi
90983544ea2eSmrg
90993544ea2eSmrgfound="no"
91003544ea2eSmrg
91013544ea2eSmrg	if test $found = "no" ; then
910295fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
91033544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
91043544ea2eSmrg		fi
91053544ea2eSmrg
910695fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
91073544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
91083544ea2eSmrg		fi
91093544ea2eSmrg
91103544ea2eSmrg		CFLAGS="$CFLAGS -Winit-self"
91113544ea2eSmrg
911281440437Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
911381440437Smrg$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
91143544ea2eSmrg		cacheid=xorg_cv_cc_flag__Winit_self
91153544ea2eSmrg		if eval \${$cacheid+:} false; then :
91163544ea2eSmrg  $as_echo_n "(cached) " >&6
91173544ea2eSmrgelse
91183544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
91193544ea2eSmrg/* end confdefs.h.  */
91203544ea2eSmrgint i;
91213544ea2eSmrgint
91223544ea2eSmrgmain ()
91233544ea2eSmrg{
91243544ea2eSmrg
91253544ea2eSmrg  ;
91263544ea2eSmrg  return 0;
91273544ea2eSmrg}
91283544ea2eSmrg_ACEOF
91293544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
91303544ea2eSmrg  eval $cacheid=yes
91313544ea2eSmrgelse
91323544ea2eSmrg  eval $cacheid=no
91333544ea2eSmrgfi
91343544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
91353544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
91363544ea2eSmrgfi
91373544ea2eSmrg
91383544ea2eSmrg
91393544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
91403544ea2eSmrg
91413544ea2eSmrg		eval supported=\$$cacheid
91423544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
91433544ea2eSmrg$as_echo "$supported" >&6; }
91443544ea2eSmrg		if test "$supported" = "yes" ; then
91453544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
91463544ea2eSmrg			found="yes"
91473544ea2eSmrg		fi
91483544ea2eSmrg	fi
91493544ea2eSmrg
91503544ea2eSmrg
91513544ea2eSmrg
91523544ea2eSmrg
91533544ea2eSmrg
91543544ea2eSmrg
91553544ea2eSmrg
91563544ea2eSmrg
91573544ea2eSmrg
91583544ea2eSmrg
91593544ea2eSmrg
91603544ea2eSmrg
91613544ea2eSmrg
91623544ea2eSmrg
91633544ea2eSmrg
91643544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
91653544ea2eSmrg
91663544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
91673544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
91683544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
91693544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
91703544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
91713544ea2eSmrg  $as_echo_n "(cached) " >&6
91723544ea2eSmrgelse
91733544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
91743544ea2eSmrg/* end confdefs.h.  */
91753544ea2eSmrgint i;
91763544ea2eSmrg_ACEOF
91773544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
91783544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
91793544ea2eSmrgelse
91803544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
91813544ea2eSmrgfi
91823544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
91833544ea2eSmrgfi
91843544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
91853544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
91863544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
91873544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
91883544ea2eSmrgfi
91893544ea2eSmrg
91903544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
91913544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
91923544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
91933544ea2eSmrg	fi
91943544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
91953544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
91963544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
91973544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
91983544ea2eSmrg  $as_echo_n "(cached) " >&6
91993544ea2eSmrgelse
92003544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92013544ea2eSmrg/* end confdefs.h.  */
92023544ea2eSmrgint i;
92033544ea2eSmrg_ACEOF
92043544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
92053544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
92063544ea2eSmrgelse
92073544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
92083544ea2eSmrgfi
92093544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
92103544ea2eSmrgfi
92113544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
92123544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
92133544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
92143544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
92153544ea2eSmrgfi
92163544ea2eSmrg
92173544ea2eSmrgfound="no"
92183544ea2eSmrg
92193544ea2eSmrg	if test $found = "no" ; then
922095fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
92213544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
92223544ea2eSmrg		fi
92233544ea2eSmrg
922495fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
92253544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
92263544ea2eSmrg		fi
92273544ea2eSmrg
92283544ea2eSmrg		CFLAGS="$CFLAGS -Wmain"
92293544ea2eSmrg
923081440437Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
923181440437Smrg$as_echo_n "checking if $CC supports -Wmain... " >&6; }
92323544ea2eSmrg		cacheid=xorg_cv_cc_flag__Wmain
92333544ea2eSmrg		if eval \${$cacheid+:} false; then :
92343544ea2eSmrg  $as_echo_n "(cached) " >&6
92353544ea2eSmrgelse
92363544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92373544ea2eSmrg/* end confdefs.h.  */
92383544ea2eSmrgint i;
92393544ea2eSmrgint
92403544ea2eSmrgmain ()
92413544ea2eSmrg{
92423544ea2eSmrg
92433544ea2eSmrg  ;
92443544ea2eSmrg  return 0;
92453544ea2eSmrg}
92463544ea2eSmrg_ACEOF
92473544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
92483544ea2eSmrg  eval $cacheid=yes
92493544ea2eSmrgelse
92503544ea2eSmrg  eval $cacheid=no
92513544ea2eSmrgfi
92523544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
92533544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
92543544ea2eSmrgfi
92553544ea2eSmrg
92563544ea2eSmrg
92573544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
92583544ea2eSmrg
92593544ea2eSmrg		eval supported=\$$cacheid
92603544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
92613544ea2eSmrg$as_echo "$supported" >&6; }
92623544ea2eSmrg		if test "$supported" = "yes" ; then
92633544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
92643544ea2eSmrg			found="yes"
92653544ea2eSmrg		fi
92663544ea2eSmrg	fi
92673544ea2eSmrg
92683544ea2eSmrg
92693544ea2eSmrg
92703544ea2eSmrg
92713544ea2eSmrg
92723544ea2eSmrg
92733544ea2eSmrg
92743544ea2eSmrg
92753544ea2eSmrg
92763544ea2eSmrg
92773544ea2eSmrg
92783544ea2eSmrg
92793544ea2eSmrg
92803544ea2eSmrg
92813544ea2eSmrg
92823544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
92833544ea2eSmrg
92843544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
92853544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
92863544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
92873544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
92883544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
92893544ea2eSmrg  $as_echo_n "(cached) " >&6
92903544ea2eSmrgelse
92913544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92923544ea2eSmrg/* end confdefs.h.  */
92933544ea2eSmrgint i;
92943544ea2eSmrg_ACEOF
92953544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
92963544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
92973544ea2eSmrgelse
92983544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
92993544ea2eSmrgfi
93003544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
93013544ea2eSmrgfi
93023544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
93033544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
93043544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
93053544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
93063544ea2eSmrgfi
93073544ea2eSmrg
93083544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
93093544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
93103544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
93113544ea2eSmrg	fi
93123544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
93133544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
93143544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
93153544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
93163544ea2eSmrg  $as_echo_n "(cached) " >&6
93173544ea2eSmrgelse
93183544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93193544ea2eSmrg/* end confdefs.h.  */
93203544ea2eSmrgint i;
93213544ea2eSmrg_ACEOF
93223544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
93233544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
93243544ea2eSmrgelse
93253544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
93263544ea2eSmrgfi
93273544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
93283544ea2eSmrgfi
93293544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
93303544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
93313544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
93323544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
93333544ea2eSmrgfi
93343544ea2eSmrg
93353544ea2eSmrgfound="no"
93363544ea2eSmrg
93373544ea2eSmrg	if test $found = "no" ; then
933895fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
93393544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
93403544ea2eSmrg		fi
93413544ea2eSmrg
934295fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
93433544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
93443544ea2eSmrg		fi
93453544ea2eSmrg
93463544ea2eSmrg		CFLAGS="$CFLAGS -Wmissing-braces"
93473544ea2eSmrg
934881440437Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
934981440437Smrg$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
93503544ea2eSmrg		cacheid=xorg_cv_cc_flag__Wmissing_braces
93513544ea2eSmrg		if eval \${$cacheid+:} false; then :
93523544ea2eSmrg  $as_echo_n "(cached) " >&6
93533544ea2eSmrgelse
93543544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93553544ea2eSmrg/* end confdefs.h.  */
93563544ea2eSmrgint i;
93573544ea2eSmrgint
93583544ea2eSmrgmain ()
93593544ea2eSmrg{
93603544ea2eSmrg
93613544ea2eSmrg  ;
93623544ea2eSmrg  return 0;
93633544ea2eSmrg}
93643544ea2eSmrg_ACEOF
93653544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
93663544ea2eSmrg  eval $cacheid=yes
93673544ea2eSmrgelse
93683544ea2eSmrg  eval $cacheid=no
93693544ea2eSmrgfi
93703544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
93713544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
93723544ea2eSmrgfi
93733544ea2eSmrg
93743544ea2eSmrg
93753544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
93763544ea2eSmrg
93773544ea2eSmrg		eval supported=\$$cacheid
93783544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
93793544ea2eSmrg$as_echo "$supported" >&6; }
93803544ea2eSmrg		if test "$supported" = "yes" ; then
93813544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
93823544ea2eSmrg			found="yes"
93833544ea2eSmrg		fi
93843544ea2eSmrg	fi
93853544ea2eSmrg
93863544ea2eSmrg
93873544ea2eSmrg
93883544ea2eSmrg
93893544ea2eSmrg
93903544ea2eSmrg
93913544ea2eSmrg
93923544ea2eSmrg
93933544ea2eSmrg
93943544ea2eSmrg
93953544ea2eSmrg
93963544ea2eSmrg
93973544ea2eSmrg
93983544ea2eSmrg
93993544ea2eSmrg
94003544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
94013544ea2eSmrg
94023544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
94033544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
94043544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
94053544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
94063544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
94073544ea2eSmrg  $as_echo_n "(cached) " >&6
94083544ea2eSmrgelse
94093544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94103544ea2eSmrg/* end confdefs.h.  */
94113544ea2eSmrgint i;
94123544ea2eSmrg_ACEOF
94133544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
94143544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
94153544ea2eSmrgelse
94163544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
94173544ea2eSmrgfi
94183544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
94193544ea2eSmrgfi
94203544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
94213544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
94223544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
94233544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
94243544ea2eSmrgfi
94253544ea2eSmrg
94263544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
94273544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
94283544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
94293544ea2eSmrg	fi
94303544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
94313544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
94323544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
94333544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
94343544ea2eSmrg  $as_echo_n "(cached) " >&6
94353544ea2eSmrgelse
94363544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94373544ea2eSmrg/* end confdefs.h.  */
94383544ea2eSmrgint i;
94393544ea2eSmrg_ACEOF
94403544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
94413544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
94423544ea2eSmrgelse
94433544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
94443544ea2eSmrgfi
94453544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
94463544ea2eSmrgfi
94473544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
94483544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
94493544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
94503544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
94513544ea2eSmrgfi
94523544ea2eSmrg
94533544ea2eSmrgfound="no"
94543544ea2eSmrg
94553544ea2eSmrg	if test $found = "no" ; then
945695fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
94573544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
94583544ea2eSmrg		fi
94593544ea2eSmrg
946095fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
94613544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
94623544ea2eSmrg		fi
94633544ea2eSmrg
94643544ea2eSmrg		CFLAGS="$CFLAGS -Wsequence-point"
94653544ea2eSmrg
946681440437Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
946781440437Smrg$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
94683544ea2eSmrg		cacheid=xorg_cv_cc_flag__Wsequence_point
94693544ea2eSmrg		if eval \${$cacheid+:} false; then :
94703544ea2eSmrg  $as_echo_n "(cached) " >&6
94713544ea2eSmrgelse
94723544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94733544ea2eSmrg/* end confdefs.h.  */
94743544ea2eSmrgint i;
94753544ea2eSmrgint
94763544ea2eSmrgmain ()
94773544ea2eSmrg{
94783544ea2eSmrg
94793544ea2eSmrg  ;
94803544ea2eSmrg  return 0;
94813544ea2eSmrg}
94823544ea2eSmrg_ACEOF
94833544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
94843544ea2eSmrg  eval $cacheid=yes
94853544ea2eSmrgelse
94863544ea2eSmrg  eval $cacheid=no
94873544ea2eSmrgfi
94883544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
94893544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
94903544ea2eSmrgfi
94913544ea2eSmrg
94923544ea2eSmrg
94933544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
94943544ea2eSmrg
94953544ea2eSmrg		eval supported=\$$cacheid
94963544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
94973544ea2eSmrg$as_echo "$supported" >&6; }
94983544ea2eSmrg		if test "$supported" = "yes" ; then
94993544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
95003544ea2eSmrg			found="yes"
95013544ea2eSmrg		fi
95023544ea2eSmrg	fi
95033544ea2eSmrg
95043544ea2eSmrg
95053544ea2eSmrg
95063544ea2eSmrg
95073544ea2eSmrg
95083544ea2eSmrg
95093544ea2eSmrg
95103544ea2eSmrg
95113544ea2eSmrg
95123544ea2eSmrg
95133544ea2eSmrg
95143544ea2eSmrg
95153544ea2eSmrg
95163544ea2eSmrg
95173544ea2eSmrg
95183544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
95193544ea2eSmrg
95203544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
95213544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
95223544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
95233544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
95243544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
95253544ea2eSmrg  $as_echo_n "(cached) " >&6
95263544ea2eSmrgelse
95273544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
95283544ea2eSmrg/* end confdefs.h.  */
95293544ea2eSmrgint i;
95303544ea2eSmrg_ACEOF
95313544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
95323544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
95333544ea2eSmrgelse
95343544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
95353544ea2eSmrgfi
95363544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
95373544ea2eSmrgfi
95383544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
95393544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
95403544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
95413544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
95423544ea2eSmrgfi
95433544ea2eSmrg
95443544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
95453544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
95463544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
95473544ea2eSmrg	fi
95483544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
95493544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
95503544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
95513544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
95523544ea2eSmrg  $as_echo_n "(cached) " >&6
95533544ea2eSmrgelse
95543544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
95553544ea2eSmrg/* end confdefs.h.  */
95563544ea2eSmrgint i;
95573544ea2eSmrg_ACEOF
95583544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
95593544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
95603544ea2eSmrgelse
95613544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
95623544ea2eSmrgfi
95633544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
95643544ea2eSmrgfi
95653544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
95663544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
95673544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
95683544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
95693544ea2eSmrgfi
95703544ea2eSmrg
95713544ea2eSmrgfound="no"
95723544ea2eSmrg
95733544ea2eSmrg	if test $found = "no" ; then
957495fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
95753544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
95763544ea2eSmrg		fi
95773544ea2eSmrg
957895fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
95793544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
95803544ea2eSmrg		fi
95813544ea2eSmrg
95823544ea2eSmrg		CFLAGS="$CFLAGS -Wreturn-type"
95833544ea2eSmrg
958481440437Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
958581440437Smrg$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
95863544ea2eSmrg		cacheid=xorg_cv_cc_flag__Wreturn_type
95873544ea2eSmrg		if eval \${$cacheid+:} false; then :
95883544ea2eSmrg  $as_echo_n "(cached) " >&6
95893544ea2eSmrgelse
95903544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
95913544ea2eSmrg/* end confdefs.h.  */
95923544ea2eSmrgint i;
95933544ea2eSmrgint
95943544ea2eSmrgmain ()
95953544ea2eSmrg{
95963544ea2eSmrg
95973544ea2eSmrg  ;
95983544ea2eSmrg  return 0;
95993544ea2eSmrg}
96003544ea2eSmrg_ACEOF
96013544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
96023544ea2eSmrg  eval $cacheid=yes
96033544ea2eSmrgelse
96043544ea2eSmrg  eval $cacheid=no
96053544ea2eSmrgfi
96063544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
96073544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
96083544ea2eSmrgfi
96093544ea2eSmrg
96103544ea2eSmrg
96113544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
96123544ea2eSmrg
96133544ea2eSmrg		eval supported=\$$cacheid
96143544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
96153544ea2eSmrg$as_echo "$supported" >&6; }
96163544ea2eSmrg		if test "$supported" = "yes" ; then
96173544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
96183544ea2eSmrg			found="yes"
96193544ea2eSmrg		fi
96203544ea2eSmrg	fi
96213544ea2eSmrg
96223544ea2eSmrg
96233544ea2eSmrg
96243544ea2eSmrg
96253544ea2eSmrg
96263544ea2eSmrg
96273544ea2eSmrg
96283544ea2eSmrg
96293544ea2eSmrg
96303544ea2eSmrg
96313544ea2eSmrg
96323544ea2eSmrg
96333544ea2eSmrg
96343544ea2eSmrg
96353544ea2eSmrg
96363544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
96373544ea2eSmrg
96383544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
96393544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
96403544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
96413544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
96423544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
96433544ea2eSmrg  $as_echo_n "(cached) " >&6
96443544ea2eSmrgelse
96453544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
96463544ea2eSmrg/* end confdefs.h.  */
96473544ea2eSmrgint i;
96483544ea2eSmrg_ACEOF
96493544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
96503544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
96513544ea2eSmrgelse
96523544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
96533544ea2eSmrgfi
96543544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
96553544ea2eSmrgfi
96563544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
96573544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
96583544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
96593544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
96603544ea2eSmrgfi
96613544ea2eSmrg
96623544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
96633544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
96643544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
96653544ea2eSmrg	fi
96663544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
96673544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
96683544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
96693544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
96703544ea2eSmrg  $as_echo_n "(cached) " >&6
96713544ea2eSmrgelse
96723544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
96733544ea2eSmrg/* end confdefs.h.  */
96743544ea2eSmrgint i;
96753544ea2eSmrg_ACEOF
96763544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
96773544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
96783544ea2eSmrgelse
96793544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
96803544ea2eSmrgfi
96813544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
96823544ea2eSmrgfi
96833544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
96843544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
96853544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
96863544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
96873544ea2eSmrgfi
96883544ea2eSmrg
96893544ea2eSmrgfound="no"
96903544ea2eSmrg
96913544ea2eSmrg	if test $found = "no" ; then
969295fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
96933544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
96943544ea2eSmrg		fi
96953544ea2eSmrg
969695fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
96973544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
96983544ea2eSmrg		fi
96993544ea2eSmrg
97003544ea2eSmrg		CFLAGS="$CFLAGS -Wtrigraphs"
97013544ea2eSmrg
970281440437Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
970381440437Smrg$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
97043544ea2eSmrg		cacheid=xorg_cv_cc_flag__Wtrigraphs
97053544ea2eSmrg		if eval \${$cacheid+:} false; then :
97063544ea2eSmrg  $as_echo_n "(cached) " >&6
97073544ea2eSmrgelse
97083544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
97093544ea2eSmrg/* end confdefs.h.  */
97103544ea2eSmrgint i;
97113544ea2eSmrgint
97123544ea2eSmrgmain ()
97133544ea2eSmrg{
97143544ea2eSmrg
97153544ea2eSmrg  ;
97163544ea2eSmrg  return 0;
97173544ea2eSmrg}
97183544ea2eSmrg_ACEOF
97193544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
97203544ea2eSmrg  eval $cacheid=yes
97213544ea2eSmrgelse
97223544ea2eSmrg  eval $cacheid=no
97233544ea2eSmrgfi
97243544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
97253544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
97263544ea2eSmrgfi
97273544ea2eSmrg
97283544ea2eSmrg
97293544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
97303544ea2eSmrg
97313544ea2eSmrg		eval supported=\$$cacheid
97323544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
97333544ea2eSmrg$as_echo "$supported" >&6; }
97343544ea2eSmrg		if test "$supported" = "yes" ; then
97353544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
97363544ea2eSmrg			found="yes"
97373544ea2eSmrg		fi
97383544ea2eSmrg	fi
97393544ea2eSmrg
97403544ea2eSmrg
97413544ea2eSmrg
97423544ea2eSmrg
97433544ea2eSmrg
97443544ea2eSmrg
97453544ea2eSmrg
97463544ea2eSmrg
97473544ea2eSmrg
97483544ea2eSmrg
97493544ea2eSmrg
97503544ea2eSmrg
97513544ea2eSmrg
97523544ea2eSmrg
97533544ea2eSmrg
97543544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
97553544ea2eSmrg
97563544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
97573544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
97583544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
97593544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
97603544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
97613544ea2eSmrg  $as_echo_n "(cached) " >&6
97623544ea2eSmrgelse
97633544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
97643544ea2eSmrg/* end confdefs.h.  */
97653544ea2eSmrgint i;
97663544ea2eSmrg_ACEOF
97673544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
97683544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
97693544ea2eSmrgelse
97703544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
97713544ea2eSmrgfi
97723544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
97733544ea2eSmrgfi
97743544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
97753544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
97763544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
97773544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
97783544ea2eSmrgfi
97793544ea2eSmrg
97803544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
97813544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
97823544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
97833544ea2eSmrg	fi
97843544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
97853544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
97863544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
97873544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
97883544ea2eSmrg  $as_echo_n "(cached) " >&6
97893544ea2eSmrgelse
97903544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
97913544ea2eSmrg/* end confdefs.h.  */
97923544ea2eSmrgint i;
97933544ea2eSmrg_ACEOF
97943544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
97953544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
97963544ea2eSmrgelse
97973544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
97983544ea2eSmrgfi
97993544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
98003544ea2eSmrgfi
98013544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
98023544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
98033544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
98043544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
98053544ea2eSmrgfi
98063544ea2eSmrg
98073544ea2eSmrgfound="no"
98083544ea2eSmrg
98093544ea2eSmrg	if test $found = "no" ; then
981095fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
98113544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
98123544ea2eSmrg		fi
98133544ea2eSmrg
981495fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
98153544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
98163544ea2eSmrg		fi
98173544ea2eSmrg
98183544ea2eSmrg		CFLAGS="$CFLAGS -Warray-bounds"
98193544ea2eSmrg
982081440437Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
982181440437Smrg$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
98223544ea2eSmrg		cacheid=xorg_cv_cc_flag__Warray_bounds
98233544ea2eSmrg		if eval \${$cacheid+:} false; then :
98243544ea2eSmrg  $as_echo_n "(cached) " >&6
98253544ea2eSmrgelse
98263544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
98273544ea2eSmrg/* end confdefs.h.  */
98283544ea2eSmrgint i;
98293544ea2eSmrgint
98303544ea2eSmrgmain ()
98313544ea2eSmrg{
98323544ea2eSmrg
98333544ea2eSmrg  ;
98343544ea2eSmrg  return 0;
98353544ea2eSmrg}
98363544ea2eSmrg_ACEOF
98373544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
98383544ea2eSmrg  eval $cacheid=yes
98393544ea2eSmrgelse
98403544ea2eSmrg  eval $cacheid=no
98413544ea2eSmrgfi
98423544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
98433544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
98443544ea2eSmrgfi
98453544ea2eSmrg
98463544ea2eSmrg
98473544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
98483544ea2eSmrg
98493544ea2eSmrg		eval supported=\$$cacheid
98503544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
98513544ea2eSmrg$as_echo "$supported" >&6; }
98523544ea2eSmrg		if test "$supported" = "yes" ; then
98533544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
98543544ea2eSmrg			found="yes"
98553544ea2eSmrg		fi
98563544ea2eSmrg	fi
98573544ea2eSmrg
98583544ea2eSmrg
98593544ea2eSmrg
98603544ea2eSmrg
98613544ea2eSmrg
98623544ea2eSmrg
98633544ea2eSmrg
98643544ea2eSmrg
98653544ea2eSmrg
98663544ea2eSmrg
98673544ea2eSmrg
98683544ea2eSmrg
98693544ea2eSmrg
98703544ea2eSmrg
98713544ea2eSmrg
98723544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
98733544ea2eSmrg
98743544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
98753544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
98763544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
98773544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
98783544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
98793544ea2eSmrg  $as_echo_n "(cached) " >&6
98803544ea2eSmrgelse
98813544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
98823544ea2eSmrg/* end confdefs.h.  */
98833544ea2eSmrgint i;
98843544ea2eSmrg_ACEOF
98853544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
98863544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
98873544ea2eSmrgelse
98883544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
98893544ea2eSmrgfi
98903544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
98913544ea2eSmrgfi
98923544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
98933544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
98943544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
98953544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
98963544ea2eSmrgfi
98973544ea2eSmrg
98983544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
98993544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
99003544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
99013544ea2eSmrg	fi
99023544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
99033544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
99043544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
99053544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
99063544ea2eSmrg  $as_echo_n "(cached) " >&6
99073544ea2eSmrgelse
99083544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
99093544ea2eSmrg/* end confdefs.h.  */
99103544ea2eSmrgint i;
99113544ea2eSmrg_ACEOF
99123544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
99133544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
99143544ea2eSmrgelse
99153544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
99163544ea2eSmrgfi
99173544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
99183544ea2eSmrgfi
99193544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
99203544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
99213544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
99223544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
99233544ea2eSmrgfi
99243544ea2eSmrg
99253544ea2eSmrgfound="no"
99263544ea2eSmrg
99273544ea2eSmrg	if test $found = "no" ; then
992895fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
99293544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
99303544ea2eSmrg		fi
99313544ea2eSmrg
993295fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
99333544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
99343544ea2eSmrg		fi
99353544ea2eSmrg
99363544ea2eSmrg		CFLAGS="$CFLAGS -Wwrite-strings"
99373544ea2eSmrg
993881440437Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
993981440437Smrg$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
99403544ea2eSmrg		cacheid=xorg_cv_cc_flag__Wwrite_strings
99413544ea2eSmrg		if eval \${$cacheid+:} false; then :
99423544ea2eSmrg  $as_echo_n "(cached) " >&6
99433544ea2eSmrgelse
99443544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
99453544ea2eSmrg/* end confdefs.h.  */
99463544ea2eSmrgint i;
99473544ea2eSmrgint
99483544ea2eSmrgmain ()
99493544ea2eSmrg{
99503544ea2eSmrg
99513544ea2eSmrg  ;
99523544ea2eSmrg  return 0;
99533544ea2eSmrg}
99543544ea2eSmrg_ACEOF
99553544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
99563544ea2eSmrg  eval $cacheid=yes
99573544ea2eSmrgelse
99583544ea2eSmrg  eval $cacheid=no
99593544ea2eSmrgfi
99603544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
99613544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
99623544ea2eSmrgfi
99633544ea2eSmrg
99643544ea2eSmrg
99653544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
99663544ea2eSmrg
99673544ea2eSmrg		eval supported=\$$cacheid
99683544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
99693544ea2eSmrg$as_echo "$supported" >&6; }
99703544ea2eSmrg		if test "$supported" = "yes" ; then
99713544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
99723544ea2eSmrg			found="yes"
99733544ea2eSmrg		fi
99743544ea2eSmrg	fi
99753544ea2eSmrg
99763544ea2eSmrg
99773544ea2eSmrg
99783544ea2eSmrg
99793544ea2eSmrg
99803544ea2eSmrg
99813544ea2eSmrg
99823544ea2eSmrg
99833544ea2eSmrg
99843544ea2eSmrg
99853544ea2eSmrg
99863544ea2eSmrg
99873544ea2eSmrg
99883544ea2eSmrg
99893544ea2eSmrg
99903544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
99913544ea2eSmrg
99923544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
99933544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
99943544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
99953544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
99963544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
99973544ea2eSmrg  $as_echo_n "(cached) " >&6
99983544ea2eSmrgelse
99993544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
100003544ea2eSmrg/* end confdefs.h.  */
100013544ea2eSmrgint i;
100023544ea2eSmrg_ACEOF
100033544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
100043544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
100053544ea2eSmrgelse
100063544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
100073544ea2eSmrgfi
100083544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
100093544ea2eSmrgfi
100103544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
100113544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
100123544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
100133544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
100143544ea2eSmrgfi
100153544ea2eSmrg
100163544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
100173544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
100183544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
100193544ea2eSmrg	fi
100203544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
100213544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
100223544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
100233544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
100243544ea2eSmrg  $as_echo_n "(cached) " >&6
100253544ea2eSmrgelse
100263544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
100273544ea2eSmrg/* end confdefs.h.  */
100283544ea2eSmrgint i;
100293544ea2eSmrg_ACEOF
100303544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
100313544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
100323544ea2eSmrgelse
100333544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
100343544ea2eSmrgfi
100353544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
100363544ea2eSmrgfi
100373544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
100383544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
100393544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
100403544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
100413544ea2eSmrgfi
100423544ea2eSmrg
100433544ea2eSmrgfound="no"
100443544ea2eSmrg
100453544ea2eSmrg	if test $found = "no" ; then
1004695fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
100473544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
100483544ea2eSmrg		fi
100493544ea2eSmrg
1005095fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
100513544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
100523544ea2eSmrg		fi
100533544ea2eSmrg
100543544ea2eSmrg		CFLAGS="$CFLAGS -Waddress"
100553544ea2eSmrg
1005681440437Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
1005781440437Smrg$as_echo_n "checking if $CC supports -Waddress... " >&6; }
100583544ea2eSmrg		cacheid=xorg_cv_cc_flag__Waddress
100593544ea2eSmrg		if eval \${$cacheid+:} false; then :
100603544ea2eSmrg  $as_echo_n "(cached) " >&6
100613544ea2eSmrgelse
100623544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
100633544ea2eSmrg/* end confdefs.h.  */
100643544ea2eSmrgint i;
100653544ea2eSmrgint
100663544ea2eSmrgmain ()
100673544ea2eSmrg{
100683544ea2eSmrg
100693544ea2eSmrg  ;
100703544ea2eSmrg  return 0;
100713544ea2eSmrg}
100723544ea2eSmrg_ACEOF
100733544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
100743544ea2eSmrg  eval $cacheid=yes
100753544ea2eSmrgelse
100763544ea2eSmrg  eval $cacheid=no
100773544ea2eSmrgfi
100783544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
100793544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
100803544ea2eSmrgfi
100813544ea2eSmrg
100823544ea2eSmrg
100833544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
100843544ea2eSmrg
100853544ea2eSmrg		eval supported=\$$cacheid
100863544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
100873544ea2eSmrg$as_echo "$supported" >&6; }
100883544ea2eSmrg		if test "$supported" = "yes" ; then
100893544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
100903544ea2eSmrg			found="yes"
100913544ea2eSmrg		fi
100923544ea2eSmrg	fi
100933544ea2eSmrg
100943544ea2eSmrg
100953544ea2eSmrg
100963544ea2eSmrg
100973544ea2eSmrg
100983544ea2eSmrg
100993544ea2eSmrg
101003544ea2eSmrg
101013544ea2eSmrg
101023544ea2eSmrg
101033544ea2eSmrg
101043544ea2eSmrg
101053544ea2eSmrg
101063544ea2eSmrg
101073544ea2eSmrg
101083544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
101093544ea2eSmrg
101103544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
101113544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
101123544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
101133544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
101143544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
101153544ea2eSmrg  $as_echo_n "(cached) " >&6
101163544ea2eSmrgelse
101173544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
101183544ea2eSmrg/* end confdefs.h.  */
101193544ea2eSmrgint i;
101203544ea2eSmrg_ACEOF
101213544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
101223544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
101233544ea2eSmrgelse
101243544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
101253544ea2eSmrgfi
101263544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
101273544ea2eSmrgfi
101283544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
101293544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
101303544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
101313544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
101323544ea2eSmrgfi
101333544ea2eSmrg
101343544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
101353544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
101363544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
101373544ea2eSmrg	fi
101383544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
101393544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
101403544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
101413544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
101423544ea2eSmrg  $as_echo_n "(cached) " >&6
101433544ea2eSmrgelse
101443544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
101453544ea2eSmrg/* end confdefs.h.  */
101463544ea2eSmrgint i;
101473544ea2eSmrg_ACEOF
101483544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
101493544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
101503544ea2eSmrgelse
101513544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
101523544ea2eSmrgfi
101533544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
101543544ea2eSmrgfi
101553544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
101563544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
101573544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
101583544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
101593544ea2eSmrgfi
101603544ea2eSmrg
101613544ea2eSmrgfound="no"
101623544ea2eSmrg
101633544ea2eSmrg	if test $found = "no" ; then
1016495fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
101653544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
101663544ea2eSmrg		fi
101673544ea2eSmrg
1016895fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
101693544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
101703544ea2eSmrg		fi
101713544ea2eSmrg
101723544ea2eSmrg		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
101733544ea2eSmrg
1017481440437Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
1017581440437Smrg$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
101763544ea2eSmrg		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
101773544ea2eSmrg		if eval \${$cacheid+:} false; then :
101783544ea2eSmrg  $as_echo_n "(cached) " >&6
101793544ea2eSmrgelse
101803544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
101813544ea2eSmrg/* end confdefs.h.  */
101823544ea2eSmrgint i;
101833544ea2eSmrgint
101843544ea2eSmrgmain ()
101853544ea2eSmrg{
101863544ea2eSmrg
101873544ea2eSmrg  ;
101883544ea2eSmrg  return 0;
101893544ea2eSmrg}
101903544ea2eSmrg_ACEOF
101913544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
101923544ea2eSmrg  eval $cacheid=yes
101933544ea2eSmrgelse
101943544ea2eSmrg  eval $cacheid=no
101953544ea2eSmrgfi
101963544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
101973544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
101983544ea2eSmrgfi
101993544ea2eSmrg
102003544ea2eSmrg
102013544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
102023544ea2eSmrg
102033544ea2eSmrg		eval supported=\$$cacheid
102043544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
102053544ea2eSmrg$as_echo "$supported" >&6; }
102063544ea2eSmrg		if test "$supported" = "yes" ; then
102073544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
102083544ea2eSmrg			found="yes"
102093544ea2eSmrg		fi
102103544ea2eSmrg	fi
102113544ea2eSmrg
102123544ea2eSmrg
102133544ea2eSmrg
102143544ea2eSmrg
102153544ea2eSmrg
102163544ea2eSmrg
102173544ea2eSmrg
102183544ea2eSmrg
102193544ea2eSmrg
102203544ea2eSmrg
102213544ea2eSmrg
102223544ea2eSmrg
102233544ea2eSmrg
102243544ea2eSmrg
102253544ea2eSmrg
102263544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
102273544ea2eSmrg
102283544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
102293544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
102303544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
102313544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
102323544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
102333544ea2eSmrg  $as_echo_n "(cached) " >&6
102343544ea2eSmrgelse
102353544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
102363544ea2eSmrg/* end confdefs.h.  */
102373544ea2eSmrgint i;
102383544ea2eSmrg_ACEOF
102393544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
102403544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
102413544ea2eSmrgelse
102423544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
102433544ea2eSmrgfi
102443544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
102453544ea2eSmrgfi
102463544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
102473544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
102483544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
102493544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
102503544ea2eSmrgfi
102513544ea2eSmrg
102523544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
102533544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
102543544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
102553544ea2eSmrg	fi
102563544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
102573544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
102583544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
102593544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
102603544ea2eSmrg  $as_echo_n "(cached) " >&6
102613544ea2eSmrgelse
102623544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
102633544ea2eSmrg/* end confdefs.h.  */
102643544ea2eSmrgint i;
102653544ea2eSmrg_ACEOF
102663544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
102673544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
102683544ea2eSmrgelse
102693544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
102703544ea2eSmrgfi
102713544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
102723544ea2eSmrgfi
102733544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
102743544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
102753544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
102763544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
102773544ea2eSmrgfi
102783544ea2eSmrg
102793544ea2eSmrgfound="no"
102803544ea2eSmrg
102813544ea2eSmrg	if test $found = "no" ; then
1028295fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
102833544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
102843544ea2eSmrg		fi
102853544ea2eSmrg
1028695fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
102873544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
102883544ea2eSmrg		fi
102893544ea2eSmrg
102903544ea2eSmrg		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
102913544ea2eSmrg
1029281440437Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
1029381440437Smrg$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
102943544ea2eSmrg		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
102953544ea2eSmrg		if eval \${$cacheid+:} false; then :
102963544ea2eSmrg  $as_echo_n "(cached) " >&6
102973544ea2eSmrgelse
102983544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
102993544ea2eSmrg/* end confdefs.h.  */
103003544ea2eSmrgint i;
103013544ea2eSmrgint
103023544ea2eSmrgmain ()
103033544ea2eSmrg{
103043544ea2eSmrg
103053544ea2eSmrg  ;
103063544ea2eSmrg  return 0;
103073544ea2eSmrg}
103083544ea2eSmrg_ACEOF
103093544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
103103544ea2eSmrg  eval $cacheid=yes
103113544ea2eSmrgelse
103123544ea2eSmrg  eval $cacheid=no
103133544ea2eSmrgfi
103143544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
103153544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
103163544ea2eSmrgfi
103173544ea2eSmrg
103183544ea2eSmrg
103193544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
103203544ea2eSmrg
103213544ea2eSmrg		eval supported=\$$cacheid
103223544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
103233544ea2eSmrg$as_echo "$supported" >&6; }
103243544ea2eSmrg		if test "$supported" = "yes" ; then
103253544ea2eSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
103263544ea2eSmrg			found="yes"
103273544ea2eSmrg		fi
103283544ea2eSmrg	fi
103293544ea2eSmrg
103303544ea2eSmrg
103313544ea2eSmrgfi
103323544ea2eSmrg
103333544ea2eSmrg
103343544ea2eSmrg
103353544ea2eSmrg
103363544ea2eSmrg
103373544ea2eSmrg
103383544ea2eSmrg
103393544ea2eSmrg		CWARNFLAGS="$BASE_CFLAGS"
103403544ea2eSmrg		if  test "x$GCC" = xyes ; then
103413544ea2eSmrg		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
103423544ea2eSmrg		fi
103433544ea2eSmrg
103443544ea2eSmrg
103453544ea2eSmrg
103463544ea2eSmrg
103473544ea2eSmrg
103483544ea2eSmrg
103493544ea2eSmrg
103503544ea2eSmrg
103513544ea2eSmrg# Check whether --enable-strict-compilation was given.
103523544ea2eSmrgif test "${enable_strict_compilation+set}" = set; then :
103533544ea2eSmrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
103543544ea2eSmrgelse
103553544ea2eSmrg  STRICT_COMPILE=no
103563544ea2eSmrgfi
103573544ea2eSmrg
103583544ea2eSmrg
103593544ea2eSmrg
103603544ea2eSmrg
103613544ea2eSmrg
103623544ea2eSmrg
103633544ea2eSmrgSTRICT_CFLAGS=""
103643544ea2eSmrg
103653544ea2eSmrg
103663544ea2eSmrg
103673544ea2eSmrg
103683544ea2eSmrg
103693544ea2eSmrg
103703544ea2eSmrg
103713544ea2eSmrg
103723544ea2eSmrg
103733544ea2eSmrg
103743544ea2eSmrg
103753544ea2eSmrg
103763544ea2eSmrg
103773544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
103783544ea2eSmrg
103793544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
103803544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
103813544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
103823544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
103833544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
103843544ea2eSmrg  $as_echo_n "(cached) " >&6
103853544ea2eSmrgelse
103863544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
103873544ea2eSmrg/* end confdefs.h.  */
103883544ea2eSmrgint i;
103893544ea2eSmrg_ACEOF
103903544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
103913544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
103923544ea2eSmrgelse
103933544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
103943544ea2eSmrgfi
103953544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
103963544ea2eSmrgfi
103973544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
103983544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
103993544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
104003544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
104013544ea2eSmrgfi
104023544ea2eSmrg
104033544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
104043544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
104053544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
104063544ea2eSmrg	fi
104073544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
104083544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
104093544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
104103544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
104113544ea2eSmrg  $as_echo_n "(cached) " >&6
104123544ea2eSmrgelse
104133544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
104143544ea2eSmrg/* end confdefs.h.  */
104153544ea2eSmrgint i;
104163544ea2eSmrg_ACEOF
104173544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
104183544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
104193544ea2eSmrgelse
104203544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
104213544ea2eSmrgfi
104223544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
104233544ea2eSmrgfi
104243544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
104253544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
104263544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
104273544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
104283544ea2eSmrgfi
104293544ea2eSmrg
104303544ea2eSmrgfound="no"
104313544ea2eSmrg
104323544ea2eSmrg	if test $found = "no" ; then
1043395fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
104343544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
104353544ea2eSmrg		fi
104363544ea2eSmrg
1043795fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
104383544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
104393544ea2eSmrg		fi
104403544ea2eSmrg
104413544ea2eSmrg		CFLAGS="$CFLAGS -pedantic"
104423544ea2eSmrg
1044381440437Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
1044481440437Smrg$as_echo_n "checking if $CC supports -pedantic... " >&6; }
104453544ea2eSmrg		cacheid=xorg_cv_cc_flag__pedantic
104463544ea2eSmrg		if eval \${$cacheid+:} false; then :
104473544ea2eSmrg  $as_echo_n "(cached) " >&6
104483544ea2eSmrgelse
104493544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
104503544ea2eSmrg/* end confdefs.h.  */
104513544ea2eSmrgint i;
104523544ea2eSmrgint
104533544ea2eSmrgmain ()
104543544ea2eSmrg{
104553544ea2eSmrg
104563544ea2eSmrg  ;
104573544ea2eSmrg  return 0;
104583544ea2eSmrg}
104593544ea2eSmrg_ACEOF
104603544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
104613544ea2eSmrg  eval $cacheid=yes
104623544ea2eSmrgelse
104633544ea2eSmrg  eval $cacheid=no
104643544ea2eSmrgfi
104653544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
104663544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
104673544ea2eSmrgfi
104683544ea2eSmrg
104693544ea2eSmrg
104703544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
104713544ea2eSmrg
104723544ea2eSmrg		eval supported=\$$cacheid
104733544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
104743544ea2eSmrg$as_echo "$supported" >&6; }
104753544ea2eSmrg		if test "$supported" = "yes" ; then
104763544ea2eSmrg			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
104773544ea2eSmrg			found="yes"
104783544ea2eSmrg		fi
104793544ea2eSmrg	fi
104803544ea2eSmrg
104813544ea2eSmrg
104823544ea2eSmrg
104833544ea2eSmrg
104843544ea2eSmrg
104853544ea2eSmrg
104863544ea2eSmrg
104873544ea2eSmrg
104883544ea2eSmrg
104893544ea2eSmrg
104903544ea2eSmrg
104913544ea2eSmrg
104923544ea2eSmrg
104933544ea2eSmrg
104943544ea2eSmrg
104953544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
104963544ea2eSmrg
104973544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
104983544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
104993544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
105003544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
105013544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
105023544ea2eSmrg  $as_echo_n "(cached) " >&6
105033544ea2eSmrgelse
105043544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
105053544ea2eSmrg/* end confdefs.h.  */
105063544ea2eSmrgint i;
105073544ea2eSmrg_ACEOF
105083544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
105093544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
105103544ea2eSmrgelse
105113544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
105123544ea2eSmrgfi
105133544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
105143544ea2eSmrgfi
105153544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
105163544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
105173544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
105183544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
105193544ea2eSmrgfi
105203544ea2eSmrg
105213544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
105223544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
105233544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
105243544ea2eSmrg	fi
105253544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
105263544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
105273544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
105283544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
105293544ea2eSmrg  $as_echo_n "(cached) " >&6
105303544ea2eSmrgelse
105313544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
105323544ea2eSmrg/* end confdefs.h.  */
105333544ea2eSmrgint i;
105343544ea2eSmrg_ACEOF
105353544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
105363544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
105373544ea2eSmrgelse
105383544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
105393544ea2eSmrgfi
105403544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
105413544ea2eSmrgfi
105423544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
105433544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
105443544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
105453544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
105463544ea2eSmrgfi
105473544ea2eSmrg
105483544ea2eSmrgfound="no"
105493544ea2eSmrg
105503544ea2eSmrg	if test $found = "no" ; then
1055195fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
105523544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
105533544ea2eSmrg		fi
105543544ea2eSmrg
1055595fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
105563544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
105573544ea2eSmrg		fi
105583544ea2eSmrg
105593544ea2eSmrg		CFLAGS="$CFLAGS -Werror"
105603544ea2eSmrg
1056181440437Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
1056281440437Smrg$as_echo_n "checking if $CC supports -Werror... " >&6; }
105633544ea2eSmrg		cacheid=xorg_cv_cc_flag__Werror
105643544ea2eSmrg		if eval \${$cacheid+:} false; then :
105653544ea2eSmrg  $as_echo_n "(cached) " >&6
105663544ea2eSmrgelse
105673544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
105683544ea2eSmrg/* end confdefs.h.  */
105693544ea2eSmrgint i;
105703544ea2eSmrgint
105713544ea2eSmrgmain ()
105723544ea2eSmrg{
105733544ea2eSmrg
105743544ea2eSmrg  ;
105753544ea2eSmrg  return 0;
105763544ea2eSmrg}
105773544ea2eSmrg_ACEOF
105783544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
105793544ea2eSmrg  eval $cacheid=yes
105803544ea2eSmrgelse
105813544ea2eSmrg  eval $cacheid=no
105823544ea2eSmrgfi
105833544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
105843544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
105853544ea2eSmrgfi
105863544ea2eSmrg
105873544ea2eSmrg
105883544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
105893544ea2eSmrg
105903544ea2eSmrg		eval supported=\$$cacheid
105913544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
105923544ea2eSmrg$as_echo "$supported" >&6; }
105933544ea2eSmrg		if test "$supported" = "yes" ; then
105943544ea2eSmrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
105953544ea2eSmrg			found="yes"
105963544ea2eSmrg		fi
105973544ea2eSmrg	fi
105983544ea2eSmrg
105993544ea2eSmrg	if test $found = "no" ; then
1060095fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
106013544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
106023544ea2eSmrg		fi
106033544ea2eSmrg
1060495fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
106053544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
106063544ea2eSmrg		fi
106073544ea2eSmrg
106083544ea2eSmrg		CFLAGS="$CFLAGS -errwarn"
106093544ea2eSmrg
1061081440437Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
1061181440437Smrg$as_echo_n "checking if $CC supports -errwarn... " >&6; }
106123544ea2eSmrg		cacheid=xorg_cv_cc_flag__errwarn
106133544ea2eSmrg		if eval \${$cacheid+:} false; then :
106143544ea2eSmrg  $as_echo_n "(cached) " >&6
106153544ea2eSmrgelse
106163544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
106173544ea2eSmrg/* end confdefs.h.  */
106183544ea2eSmrgint i;
106193544ea2eSmrgint
106203544ea2eSmrgmain ()
106213544ea2eSmrg{
106223544ea2eSmrg
106233544ea2eSmrg  ;
106243544ea2eSmrg  return 0;
106253544ea2eSmrg}
106263544ea2eSmrg_ACEOF
106273544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
106283544ea2eSmrg  eval $cacheid=yes
106293544ea2eSmrgelse
106303544ea2eSmrg  eval $cacheid=no
106313544ea2eSmrgfi
106323544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
106333544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
106343544ea2eSmrgfi
106353544ea2eSmrg
106363544ea2eSmrg
106373544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
106383544ea2eSmrg
106393544ea2eSmrg		eval supported=\$$cacheid
106403544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
106413544ea2eSmrg$as_echo "$supported" >&6; }
106423544ea2eSmrg		if test "$supported" = "yes" ; then
106433544ea2eSmrg			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
106443544ea2eSmrg			found="yes"
106453544ea2eSmrg		fi
106463544ea2eSmrg	fi
106473544ea2eSmrg
106483544ea2eSmrg
106493544ea2eSmrg
106503544ea2eSmrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
106513544ea2eSmrg# activate it with -Werror, so we add it here explicitly.
106523544ea2eSmrg
106533544ea2eSmrg
106543544ea2eSmrg
106553544ea2eSmrg
106563544ea2eSmrg
106573544ea2eSmrg
106583544ea2eSmrg
106593544ea2eSmrg
106603544ea2eSmrg
106613544ea2eSmrg
106623544ea2eSmrg
106633544ea2eSmrg
106643544ea2eSmrg
106653544ea2eSmrgxorg_testset_save_CFLAGS="$CFLAGS"
106663544ea2eSmrg
106673544ea2eSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
106683544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
106693544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
106703544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
106713544ea2eSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
106723544ea2eSmrg  $as_echo_n "(cached) " >&6
106733544ea2eSmrgelse
106743544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
106753544ea2eSmrg/* end confdefs.h.  */
106763544ea2eSmrgint i;
106773544ea2eSmrg_ACEOF
106783544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
106793544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
106803544ea2eSmrgelse
106813544ea2eSmrg  xorg_cv_cc_flag_unknown_warning_option=no
106823544ea2eSmrgfi
106833544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
106843544ea2eSmrgfi
106853544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
106863544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
106873544ea2eSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
106883544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
106893544ea2eSmrgfi
106903544ea2eSmrg
106913544ea2eSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
106923544ea2eSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
106933544ea2eSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
106943544ea2eSmrg	fi
106953544ea2eSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
106963544ea2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
106973544ea2eSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
106983544ea2eSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
106993544ea2eSmrg  $as_echo_n "(cached) " >&6
107003544ea2eSmrgelse
107013544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107023544ea2eSmrg/* end confdefs.h.  */
107033544ea2eSmrgint i;
107043544ea2eSmrg_ACEOF
107053544ea2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
107063544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
107073544ea2eSmrgelse
107083544ea2eSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
107093544ea2eSmrgfi
107103544ea2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
107113544ea2eSmrgfi
107123544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
107133544ea2eSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
107143544ea2eSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
107153544ea2eSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
107163544ea2eSmrgfi
107173544ea2eSmrg
107183544ea2eSmrgfound="no"
107193544ea2eSmrg
107203544ea2eSmrg	if test $found = "no" ; then
1072195fdd44cSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
107223544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
107233544ea2eSmrg		fi
107243544ea2eSmrg
1072595fdd44cSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
107263544ea2eSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
107273544ea2eSmrg		fi
107283544ea2eSmrg
107293544ea2eSmrg		CFLAGS="$CFLAGS -Werror=attributes"
107303544ea2eSmrg
1073181440437Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
1073281440437Smrg$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
1073395fdd44cSmrg		cacheid=xorg_cv_cc_flag__Werror_attributes
107343544ea2eSmrg		if eval \${$cacheid+:} false; then :
107353544ea2eSmrg  $as_echo_n "(cached) " >&6
107363544ea2eSmrgelse
107373544ea2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107383544ea2eSmrg/* end confdefs.h.  */
107393544ea2eSmrgint i;
107403544ea2eSmrgint
107413544ea2eSmrgmain ()
107423544ea2eSmrg{
107433544ea2eSmrg
107443544ea2eSmrg  ;
107453544ea2eSmrg  return 0;
107463544ea2eSmrg}
107473544ea2eSmrg_ACEOF
107483544ea2eSmrgif ac_fn_c_try_link "$LINENO"; then :
107493544ea2eSmrg  eval $cacheid=yes
107503544ea2eSmrgelse
107513544ea2eSmrg  eval $cacheid=no
107523544ea2eSmrgfi
107533544ea2eSmrgrm -f core conftest.err conftest.$ac_objext \
107543544ea2eSmrg    conftest$ac_exeext conftest.$ac_ext
107553544ea2eSmrgfi
107563544ea2eSmrg
107573544ea2eSmrg
107583544ea2eSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
107593544ea2eSmrg
107603544ea2eSmrg		eval supported=\$$cacheid
107613544ea2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
107623544ea2eSmrg$as_echo "$supported" >&6; }
107633544ea2eSmrg		if test "$supported" = "yes" ; then
107643544ea2eSmrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
107653544ea2eSmrg			found="yes"
107663544ea2eSmrg		fi
107673544ea2eSmrg	fi
107683544ea2eSmrg
107693544ea2eSmrg
107703544ea2eSmrg
107713544ea2eSmrgif test "x$STRICT_COMPILE" = "xyes"; then
107723544ea2eSmrg    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
107733544ea2eSmrg    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
107743544ea2eSmrgfi
107753544ea2eSmrg
107763544ea2eSmrg
107773544ea2eSmrg
107783544ea2eSmrg
107793544ea2eSmrg
107803544ea2eSmrg
107813544ea2eSmrgcat >>confdefs.h <<_ACEOF
107823544ea2eSmrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
107833544ea2eSmrg_ACEOF
107843544ea2eSmrg
107853544ea2eSmrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
107863544ea2eSmrg	if test "x$PVM" = "x"; then
107873544ea2eSmrg		PVM="0"
107883544ea2eSmrg	fi
107893544ea2eSmrg
107903544ea2eSmrgcat >>confdefs.h <<_ACEOF
107913544ea2eSmrg#define PACKAGE_VERSION_MINOR $PVM
107923544ea2eSmrg_ACEOF
107933544ea2eSmrg
107943544ea2eSmrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
107953544ea2eSmrg	if test "x$PVP" = "x"; then
107963544ea2eSmrg		PVP="0"
107973544ea2eSmrg	fi
107983544ea2eSmrg
107993544ea2eSmrgcat >>confdefs.h <<_ACEOF
108003544ea2eSmrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
108013544ea2eSmrg_ACEOF
108023544ea2eSmrg
108033544ea2eSmrg
108043544ea2eSmrg
108053544ea2eSmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
108063544ea2eSmrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
108073544ea2eSmrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
108083544ea2eSmrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
108093544ea2eSmrg
108103544ea2eSmrg
108113544ea2eSmrg
108123544ea2eSmrg
108133544ea2eSmrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
108143544ea2eSmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
108153544ea2eSmrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
108163544ea2eSmrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
108173544ea2eSmrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
108183544ea2eSmrg
108193544ea2eSmrg
108203544ea2eSmrg
108213544ea2eSmrg
108223544ea2eSmrg
108233544ea2eSmrg
108243544ea2eSmrgif test x$APP_MAN_SUFFIX = x    ; then
108253544ea2eSmrg    APP_MAN_SUFFIX=1
108263544ea2eSmrgfi
108273544ea2eSmrgif test x$APP_MAN_DIR = x    ; then
108283544ea2eSmrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
108293544ea2eSmrgfi
108303544ea2eSmrg
108313544ea2eSmrgif test x$LIB_MAN_SUFFIX = x    ; then
108323544ea2eSmrg    LIB_MAN_SUFFIX=3
108333544ea2eSmrgfi
108343544ea2eSmrgif test x$LIB_MAN_DIR = x    ; then
108353544ea2eSmrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
108363544ea2eSmrgfi
108373544ea2eSmrg
108383544ea2eSmrgif test x$FILE_MAN_SUFFIX = x    ; then
108393544ea2eSmrg    case $host_os in
10840aadd013eSmrg	# Solaris 2.0 - 11 use SysV man page sections
10841aadd013eSmrg	solaris2.?|solaris2.1[01])	FILE_MAN_SUFFIX=4  ;;
10842aadd013eSmrg	*)				FILE_MAN_SUFFIX=5  ;;
108433544ea2eSmrg    esac
108443544ea2eSmrgfi
108453544ea2eSmrgif test x$FILE_MAN_DIR = x    ; then
108463544ea2eSmrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
108473544ea2eSmrgfi
108483544ea2eSmrg
108493544ea2eSmrgif test x$MISC_MAN_SUFFIX = x    ; then
108503544ea2eSmrg    case $host_os in
10851aadd013eSmrg	# Solaris 2.0 - 11 use SysV man page sections
10852aadd013eSmrg	solaris2.?|solaris2.1[01])	MISC_MAN_SUFFIX=5  ;;
10853aadd013eSmrg	*)				MISC_MAN_SUFFIX=7  ;;
108543544ea2eSmrg    esac
108553544ea2eSmrgfi
108563544ea2eSmrgif test x$MISC_MAN_DIR = x    ; then
108573544ea2eSmrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
108583544ea2eSmrgfi
108593544ea2eSmrg
108603544ea2eSmrgif test x$DRIVER_MAN_SUFFIX = x    ; then
108613544ea2eSmrg    case $host_os in
10862aadd013eSmrg	# Solaris 2.0 - 11 use SysV man page sections
10863aadd013eSmrg	solaris2.?|solaris2.1[01])	DRIVER_MAN_SUFFIX=7  ;;
10864aadd013eSmrg	*)				DRIVER_MAN_SUFFIX=4  ;;
108653544ea2eSmrg    esac
108663544ea2eSmrgfi
108673544ea2eSmrgif test x$DRIVER_MAN_DIR = x    ; then
108683544ea2eSmrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
108693544ea2eSmrgfi
108703544ea2eSmrg
108713544ea2eSmrgif test x$ADMIN_MAN_SUFFIX = x    ; then
108723544ea2eSmrg    case $host_os in
10873aadd013eSmrg	# Solaris 2.0 - 11 use SysV man page sections
10874aadd013eSmrg	solaris2.?|solaris2.1[01])	ADMIN_MAN_SUFFIX=1m ;;
10875aadd013eSmrg	*)				ADMIN_MAN_SUFFIX=8  ;;
108763544ea2eSmrg    esac
108773544ea2eSmrgfi
108783544ea2eSmrgif test x$ADMIN_MAN_DIR = x    ; then
108793544ea2eSmrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
108803544ea2eSmrgfi
108813544ea2eSmrg
108823544ea2eSmrg
108833544ea2eSmrg
108843544ea2eSmrg
108853544ea2eSmrg
108863544ea2eSmrg
108873544ea2eSmrg
108883544ea2eSmrg
108893544ea2eSmrg
108903544ea2eSmrg
108913544ea2eSmrg
108923544ea2eSmrg
108933544ea2eSmrg
108943544ea2eSmrg
108953544ea2eSmrg
108963544ea2eSmrgXORG_MAN_PAGE="X Version 11"
108973544ea2eSmrg
108983544ea2eSmrgMAN_SUBSTS="\
108993544ea2eSmrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
109003544ea2eSmrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
109013544ea2eSmrg	-e 's|__xservername__|Xorg|g' \
109023544ea2eSmrg	-e 's|__xconfigfile__|xorg.conf|g' \
109033544ea2eSmrg	-e 's|__projectroot__|\$(prefix)|g' \
109043544ea2eSmrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10905169a0819Smrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10906169a0819Smrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10907169a0819Smrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10908169a0819Smrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10909169a0819Smrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10910169a0819Smrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10911fb23d3a8Smrg
1091264ce7165Smrg
1091364ce7165Smrg
10914169a0819Smrg# Check whether --enable-silent-rules was given.
10915169a0819Smrgif test "${enable_silent_rules+set}" = set; then :
10916169a0819Smrg  enableval=$enable_silent_rules;
1091764ce7165Smrgfi
1091864ce7165Smrg
1091981440437Smrgcase $enable_silent_rules in # (((
1092081440437Smrg  yes) AM_DEFAULT_VERBOSITY=0;;
1092181440437Smrg   no) AM_DEFAULT_VERBOSITY=1;;
1092281440437Smrg    *) AM_DEFAULT_VERBOSITY=0;;
1092364ce7165Smrgesac
1092481440437Smrgam_make=${MAKE-make}
1092581440437Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
1092681440437Smrg$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
1092781440437Smrgif ${am_cv_make_support_nested_variables+:} false; then :
109283544ea2eSmrg  $as_echo_n "(cached) " >&6
109293544ea2eSmrgelse
1093081440437Smrg  if $as_echo 'TRUE=$(BAR$(V))
1093181440437SmrgBAR0=false
1093281440437SmrgBAR1=true
1093381440437SmrgV=1
1093481440437Smrgam__doit:
1093581440437Smrg	@$(TRUE)
1093681440437Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
1093781440437Smrg  am_cv_make_support_nested_variables=yes
109383544ea2eSmrgelse
1093981440437Smrg  am_cv_make_support_nested_variables=no
109403544ea2eSmrgfi
109413544ea2eSmrgfi
1094281440437Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
1094381440437Smrg$as_echo "$am_cv_make_support_nested_variables" >&6; }
1094481440437Smrgif test $am_cv_make_support_nested_variables = yes; then
1094581440437Smrg    AM_V='$(V)'
1094681440437Smrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1094781440437Smrgelse
1094881440437Smrg  AM_V=$AM_DEFAULT_VERBOSITY
1094981440437Smrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1095081440437Smrgfi
1095181440437SmrgAM_BACKSLASH='\'
109523544ea2eSmrg
109533544ea2eSmrg
109543544ea2eSmrg
10955169a0819Smrg# Checks for pkg-config packages
109563544ea2eSmrg# - Both CFLAGS & LIBS needed:
1095764ce7165Smrg
1095864ce7165Smrgpkg_failed=no
10959169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XHOST" >&5
10960fb23d3a8Smrg$as_echo_n "checking for XHOST... " >&6; }
10961fb23d3a8Smrg
10962fb23d3a8Smrgif test -n "$XHOST_CFLAGS"; then
10963fb23d3a8Smrg    pkg_cv_XHOST_CFLAGS="$XHOST_CFLAGS"
10964fb23d3a8Smrg elif test -n "$PKG_CONFIG"; then
10965fb23d3a8Smrg    if test -n "$PKG_CONFIG" && \
1096681440437Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.22 x11 xmuu\""; } >&5
1096781440437Smrg  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.22 x11 xmuu") 2>&5
1096864ce7165Smrg  ac_status=$?
10969169a0819Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10970169a0819Smrg  test $ac_status = 0; }; then
1097181440437Smrg  pkg_cv_XHOST_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.22 x11 xmuu" 2>/dev/null`
10972aadd013eSmrg		      test "x$?" != "x0" && pkg_failed=yes
1097364ce7165Smrgelse
1097464ce7165Smrg  pkg_failed=yes
1097564ce7165Smrgfi
10976fb23d3a8Smrg else
10977fb23d3a8Smrg    pkg_failed=untried
1097864ce7165Smrgfi
10979fb23d3a8Smrgif test -n "$XHOST_LIBS"; then
10980fb23d3a8Smrg    pkg_cv_XHOST_LIBS="$XHOST_LIBS"
10981fb23d3a8Smrg elif test -n "$PKG_CONFIG"; then
10982fb23d3a8Smrg    if test -n "$PKG_CONFIG" && \
1098381440437Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.22 x11 xmuu\""; } >&5
1098481440437Smrg  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.22 x11 xmuu") 2>&5
1098564ce7165Smrg  ac_status=$?
10986169a0819Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10987169a0819Smrg  test $ac_status = 0; }; then
1098881440437Smrg  pkg_cv_XHOST_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.22 x11 xmuu" 2>/dev/null`
10989aadd013eSmrg		      test "x$?" != "x0" && pkg_failed=yes
1099064ce7165Smrgelse
1099164ce7165Smrg  pkg_failed=yes
1099264ce7165Smrgfi
10993fb23d3a8Smrg else
10994fb23d3a8Smrg    pkg_failed=untried
1099564ce7165Smrgfi
1099664ce7165Smrg
10997fb23d3a8Smrg
10998fb23d3a8Smrg
1099964ce7165Smrgif test $pkg_failed = yes; then
11000aadd013eSmrg   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11001aadd013eSmrg$as_echo "no" >&6; }
11002fb23d3a8Smrg
11003fb23d3a8Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11004fb23d3a8Smrg        _pkg_short_errors_supported=yes
11005fb23d3a8Smrgelse
11006fb23d3a8Smrg        _pkg_short_errors_supported=no
11007fb23d3a8Smrgfi
11008fb23d3a8Smrg        if test $_pkg_short_errors_supported = yes; then
11009aadd013eSmrg	        XHOST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.22 x11 xmuu" 2>&1`
11010fb23d3a8Smrg        else
11011aadd013eSmrg	        XHOST_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.22 x11 xmuu" 2>&1`
11012fb23d3a8Smrg        fi
1101364ce7165Smrg	# Put the nasty error message in config.log where it belongs
11014fb23d3a8Smrg	echo "$XHOST_PKG_ERRORS" >&5
11015fb23d3a8Smrg
1101681440437Smrg	as_fn_error $? "Package requirements (xproto >= 7.0.22 x11 xmuu) were not met:
11017fb23d3a8Smrg
11018fb23d3a8Smrg$XHOST_PKG_ERRORS
11019fb23d3a8Smrg
1102064ce7165SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
1102164ce7165Smrginstalled software in a non-standard prefix.
1102264ce7165Smrg
11023fb23d3a8SmrgAlternatively, you may set the environment variables XHOST_CFLAGS
11024fb23d3a8Smrgand XHOST_LIBS to avoid the need to call pkg-config.
11025aadd013eSmrgSee the pkg-config man page for more details." "$LINENO" 5
1102664ce7165Smrgelif test $pkg_failed = untried; then
11027aadd013eSmrg     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11028aadd013eSmrg$as_echo "no" >&6; }
11029169a0819Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11030fb23d3a8Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11031169a0819Smrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
1103264ce7165Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
1103364ce7165Smrgpath to pkg-config.
1103464ce7165Smrg
11035fb23d3a8SmrgAlternatively, you may set the environment variables XHOST_CFLAGS
11036fb23d3a8Smrgand XHOST_LIBS to avoid the need to call pkg-config.
11037fb23d3a8SmrgSee the pkg-config man page for more details.
1103864ce7165Smrg
11039fb23d3a8SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
11040169a0819SmrgSee \`config.log' for more details" "$LINENO" 5; }
1104164ce7165Smrgelse
1104264ce7165Smrg	XHOST_CFLAGS=$pkg_cv_XHOST_CFLAGS
1104364ce7165Smrg	XHOST_LIBS=$pkg_cv_XHOST_LIBS
11044169a0819Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11045fb23d3a8Smrg$as_echo "yes" >&6; }
11046aadd013eSmrg
1104764ce7165Smrgfi
110483544ea2eSmrg# - Only CFLAGS needed, not libs:
110493544ea2eSmrg
110503544ea2eSmrgpkg_failed=no
110513544ea2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XAU" >&5
110523544ea2eSmrg$as_echo_n "checking for XAU... " >&6; }
110533544ea2eSmrg
110543544ea2eSmrgif test -n "$XAU_CFLAGS"; then
110553544ea2eSmrg    pkg_cv_XAU_CFLAGS="$XAU_CFLAGS"
110563544ea2eSmrg elif test -n "$PKG_CONFIG"; then
110573544ea2eSmrg    if test -n "$PKG_CONFIG" && \
110583544ea2eSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xau\""; } >&5
110593544ea2eSmrg  ($PKG_CONFIG --exists --print-errors "xau") 2>&5
110603544ea2eSmrg  ac_status=$?
110613544ea2eSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
110623544ea2eSmrg  test $ac_status = 0; }; then
110633544ea2eSmrg  pkg_cv_XAU_CFLAGS=`$PKG_CONFIG --cflags "xau" 2>/dev/null`
11064aadd013eSmrg		      test "x$?" != "x0" && pkg_failed=yes
110653544ea2eSmrgelse
110663544ea2eSmrg  pkg_failed=yes
110673544ea2eSmrgfi
110683544ea2eSmrg else
110693544ea2eSmrg    pkg_failed=untried
110703544ea2eSmrgfi
110713544ea2eSmrgif test -n "$XAU_LIBS"; then
110723544ea2eSmrg    pkg_cv_XAU_LIBS="$XAU_LIBS"
110733544ea2eSmrg elif test -n "$PKG_CONFIG"; then
110743544ea2eSmrg    if test -n "$PKG_CONFIG" && \
110753544ea2eSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xau\""; } >&5
110763544ea2eSmrg  ($PKG_CONFIG --exists --print-errors "xau") 2>&5
110773544ea2eSmrg  ac_status=$?
110783544ea2eSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
110793544ea2eSmrg  test $ac_status = 0; }; then
110803544ea2eSmrg  pkg_cv_XAU_LIBS=`$PKG_CONFIG --libs "xau" 2>/dev/null`
11081aadd013eSmrg		      test "x$?" != "x0" && pkg_failed=yes
110823544ea2eSmrgelse
110833544ea2eSmrg  pkg_failed=yes
110843544ea2eSmrgfi
110853544ea2eSmrg else
110863544ea2eSmrg    pkg_failed=untried
110873544ea2eSmrgfi
110883544ea2eSmrg
110893544ea2eSmrg
110903544ea2eSmrg
110913544ea2eSmrgif test $pkg_failed = yes; then
11092aadd013eSmrg   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11093aadd013eSmrg$as_echo "no" >&6; }
110943544ea2eSmrg
110953544ea2eSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
110963544ea2eSmrg        _pkg_short_errors_supported=yes
110973544ea2eSmrgelse
110983544ea2eSmrg        _pkg_short_errors_supported=no
110993544ea2eSmrgfi
111003544ea2eSmrg        if test $_pkg_short_errors_supported = yes; then
11101aadd013eSmrg	        XAU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xau" 2>&1`
111023544ea2eSmrg        else
11103aadd013eSmrg	        XAU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xau" 2>&1`
111043544ea2eSmrg        fi
111053544ea2eSmrg	# Put the nasty error message in config.log where it belongs
111063544ea2eSmrg	echo "$XAU_PKG_ERRORS" >&5
111073544ea2eSmrg
111083544ea2eSmrg	as_fn_error $? "Package requirements (xau) were not met:
111093544ea2eSmrg
111103544ea2eSmrg$XAU_PKG_ERRORS
111113544ea2eSmrg
111123544ea2eSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
111133544ea2eSmrginstalled software in a non-standard prefix.
111143544ea2eSmrg
111153544ea2eSmrgAlternatively, you may set the environment variables XAU_CFLAGS
111163544ea2eSmrgand XAU_LIBS to avoid the need to call pkg-config.
11117aadd013eSmrgSee the pkg-config man page for more details." "$LINENO" 5
111183544ea2eSmrgelif test $pkg_failed = untried; then
11119aadd013eSmrg     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11120aadd013eSmrg$as_echo "no" >&6; }
111213544ea2eSmrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
111223544ea2eSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
111233544ea2eSmrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
111243544ea2eSmrgis in your PATH or set the PKG_CONFIG environment variable to the full
111253544ea2eSmrgpath to pkg-config.
111263544ea2eSmrg
111273544ea2eSmrgAlternatively, you may set the environment variables XAU_CFLAGS
111283544ea2eSmrgand XAU_LIBS to avoid the need to call pkg-config.
111293544ea2eSmrgSee the pkg-config man page for more details.
111303544ea2eSmrg
111313544ea2eSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
111323544ea2eSmrgSee \`config.log' for more details" "$LINENO" 5; }
111333544ea2eSmrgelse
111343544ea2eSmrg	XAU_CFLAGS=$pkg_cv_XAU_CFLAGS
111353544ea2eSmrg	XAU_LIBS=$pkg_cv_XAU_LIBS
111363544ea2eSmrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
111373544ea2eSmrg$as_echo "yes" >&6; }
11138aadd013eSmrg
111393544ea2eSmrgfi
1114064ce7165Smrg
1114164ce7165Smrg# Transport selection macro from xtrans.m4
1114264ce7165Smrg
1114364ce7165Smrg
11144fb23d3a8Smrg case $host_os in
11145fb23d3a8Smrg	mingw*)	unixdef="no"   ;;
11146fb23d3a8Smrg	*)	unixdef="yes"  ;;
11147fb23d3a8Smrg esac
1114864ce7165Smrg # Check whether --enable-unix-transport was given.
11149169a0819Smrgif test "${enable_unix_transport+set}" = set; then :
1115064ce7165Smrg  enableval=$enable_unix_transport; UNIXCONN=$enableval
1115164ce7165Smrgelse
11152fb23d3a8Smrg  UNIXCONN=$unixdef
1115364ce7165Smrgfi
1115464ce7165Smrg
11155169a0819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
11156fb23d3a8Smrg$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
1115764ce7165Smrg if test "$UNIXCONN" = "yes"; then
1115864ce7165Smrg
11159169a0819Smrg$as_echo "#define UNIXCONN 1" >>confdefs.h
1116064ce7165Smrg
1116164ce7165Smrg fi
11162169a0819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
11163fb23d3a8Smrg$as_echo "$UNIXCONN" >&6; }
11164fb23d3a8Smrg # Check whether --enable-tcp-transport was given.
11165169a0819Smrgif test "${enable_tcp_transport+set}" = set; then :
11166fb23d3a8Smrg  enableval=$enable_tcp_transport; TCPCONN=$enableval
11167fb23d3a8Smrgelse
11168fb23d3a8Smrg  TCPCONN=yes
11169fb23d3a8Smrgfi
11170fb23d3a8Smrg
11171169a0819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
11172fb23d3a8Smrg$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
11173169a0819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
11174fb23d3a8Smrg$as_echo "$TCPCONN" >&6; }
1117564ce7165Smrg if test "$TCPCONN" = "yes"; then
1117664ce7165Smrg
11177169a0819Smrg$as_echo "#define TCPCONN 1" >>confdefs.h
1117864ce7165Smrg
1117964ce7165Smrg
1118064ce7165Smrg # SVR4 hides these in libraries other than libc
11181169a0819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
11182fb23d3a8Smrg$as_echo_n "checking for library containing socket... " >&6; }
11183169a0819Smrgif ${ac_cv_search_socket+:} false; then :
11184fb23d3a8Smrg  $as_echo_n "(cached) " >&6
1118564ce7165Smrgelse
1118664ce7165Smrg  ac_func_search_save_LIBS=$LIBS
11187169a0819Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
1118864ce7165Smrg/* end confdefs.h.  */
1118964ce7165Smrg
1119064ce7165Smrg/* Override any GCC internal prototype to avoid an error.
1119164ce7165Smrg   Use char because int might match the return type of a GCC
1119264ce7165Smrg   builtin and then its argument prototype would still apply.  */
1119364ce7165Smrg#ifdef __cplusplus
1119464ce7165Smrgextern "C"
1119564ce7165Smrg#endif
1119664ce7165Smrgchar socket ();
1119764ce7165Smrgint
1119864ce7165Smrgmain ()
1119964ce7165Smrg{
1120064ce7165Smrgreturn socket ();
1120164ce7165Smrg  ;
1120264ce7165Smrg  return 0;
1120364ce7165Smrg}
1120464ce7165Smrg_ACEOF
1120564ce7165Smrgfor ac_lib in '' socket; do
1120664ce7165Smrg  if test -z "$ac_lib"; then
1120764ce7165Smrg    ac_res="none required"
1120864ce7165Smrg  else
1120964ce7165Smrg    ac_res=-l$ac_lib
1121064ce7165Smrg    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
1121164ce7165Smrg  fi
11212169a0819Smrg  if ac_fn_c_try_link "$LINENO"; then :
1121364ce7165Smrg  ac_cv_search_socket=$ac_res
1121464ce7165Smrgfi
11215169a0819Smrgrm -f core conftest.err conftest.$ac_objext \
11216169a0819Smrg    conftest$ac_exeext
11217169a0819Smrg  if ${ac_cv_search_socket+:} false; then :
1121864ce7165Smrg  break
1121964ce7165Smrgfi
1122064ce7165Smrgdone
11221169a0819Smrgif ${ac_cv_search_socket+:} false; then :
11222169a0819Smrg
1122364ce7165Smrgelse
1122464ce7165Smrg  ac_cv_search_socket=no
1122564ce7165Smrgfi
1122664ce7165Smrgrm conftest.$ac_ext
1122764ce7165SmrgLIBS=$ac_func_search_save_LIBS
1122864ce7165Smrgfi
11229169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
11230fb23d3a8Smrg$as_echo "$ac_cv_search_socket" >&6; }
1123164ce7165Smrgac_res=$ac_cv_search_socket
11232169a0819Smrgif test "$ac_res" != no; then :
1123364ce7165Smrg  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1123464ce7165Smrg
1123564ce7165Smrgfi
1123664ce7165Smrg
11237169a0819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
11238fb23d3a8Smrg$as_echo_n "checking for library containing gethostbyname... " >&6; }
11239169a0819Smrgif ${ac_cv_search_gethostbyname+:} false; then :
11240fb23d3a8Smrg  $as_echo_n "(cached) " >&6
1124164ce7165Smrgelse
1124264ce7165Smrg  ac_func_search_save_LIBS=$LIBS
11243169a0819Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
1124464ce7165Smrg/* end confdefs.h.  */
1124564ce7165Smrg
1124664ce7165Smrg/* Override any GCC internal prototype to avoid an error.
1124764ce7165Smrg   Use char because int might match the return type of a GCC
1124864ce7165Smrg   builtin and then its argument prototype would still apply.  */
1124964ce7165Smrg#ifdef __cplusplus
1125064ce7165Smrgextern "C"
1125164ce7165Smrg#endif
1125264ce7165Smrgchar gethostbyname ();
1125364ce7165Smrgint
1125464ce7165Smrgmain ()
1125564ce7165Smrg{
1125664ce7165Smrgreturn gethostbyname ();
1125764ce7165Smrg  ;
1125864ce7165Smrg  return 0;
1125964ce7165Smrg}
1126064ce7165Smrg_ACEOF
1126164ce7165Smrgfor ac_lib in '' nsl; do
1126264ce7165Smrg  if test -z "$ac_lib"; then
1126364ce7165Smrg    ac_res="none required"
1126464ce7165Smrg  else
1126564ce7165Smrg    ac_res=-l$ac_lib
1126664ce7165Smrg    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
1126764ce7165Smrg  fi
11268169a0819Smrg  if ac_fn_c_try_link "$LINENO"; then :
1126964ce7165Smrg  ac_cv_search_gethostbyname=$ac_res
1127064ce7165Smrgfi
11271169a0819Smrgrm -f core conftest.err conftest.$ac_objext \
11272169a0819Smrg    conftest$ac_exeext
11273169a0819Smrg  if ${ac_cv_search_gethostbyname+:} false; then :
1127464ce7165Smrg  break
1127564ce7165Smrgfi
1127664ce7165Smrgdone
11277169a0819Smrgif ${ac_cv_search_gethostbyname+:} false; then :
11278169a0819Smrg
1127964ce7165Smrgelse
1128064ce7165Smrg  ac_cv_search_gethostbyname=no
1128164ce7165Smrgfi
1128264ce7165Smrgrm conftest.$ac_ext
1128364ce7165SmrgLIBS=$ac_func_search_save_LIBS
1128464ce7165Smrgfi
11285169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
11286fb23d3a8Smrg$as_echo "$ac_cv_search_gethostbyname" >&6; }
1128764ce7165Smrgac_res=$ac_cv_search_gethostbyname
11288169a0819Smrgif test "$ac_res" != no; then :
1128964ce7165Smrg  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1129064ce7165Smrg
1129164ce7165Smrgfi
1129264ce7165Smrg
11293169a0819Smrg if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
11294169a0819Smrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
11295fb23d3a8Smrg$as_echo_n "checking for main in -lws2_32... " >&6; }
11296169a0819Smrgif ${ac_cv_lib_ws2_32_main+:} false; then :
11297fb23d3a8Smrg  $as_echo_n "(cached) " >&6
11298fb23d3a8Smrgelse
11299fb23d3a8Smrg  ac_check_lib_save_LIBS=$LIBS
11300fb23d3a8SmrgLIBS="-lws2_32  $LIBS"
11301169a0819Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
11302fb23d3a8Smrg/* end confdefs.h.  */
11303fb23d3a8Smrg
11304fb23d3a8Smrg
11305fb23d3a8Smrgint
11306fb23d3a8Smrgmain ()
11307fb23d3a8Smrg{
11308fb23d3a8Smrgreturn main ();
11309fb23d3a8Smrg  ;
11310fb23d3a8Smrg  return 0;
11311fb23d3a8Smrg}
11312fb23d3a8Smrg_ACEOF
11313169a0819Smrgif ac_fn_c_try_link "$LINENO"; then :
11314fb23d3a8Smrg  ac_cv_lib_ws2_32_main=yes
11315fb23d3a8Smrgelse
11316169a0819Smrg  ac_cv_lib_ws2_32_main=no
11317fb23d3a8Smrgfi
11318169a0819Smrgrm -f core conftest.err conftest.$ac_objext \
11319169a0819Smrg    conftest$ac_exeext conftest.$ac_ext
11320fb23d3a8SmrgLIBS=$ac_check_lib_save_LIBS
11321fb23d3a8Smrgfi
11322169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
11323fb23d3a8Smrg$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
11324169a0819Smrgif test "x$ac_cv_lib_ws2_32_main" = xyes; then :
11325fb23d3a8Smrg  cat >>confdefs.h <<_ACEOF
11326fb23d3a8Smrg#define HAVE_LIBWS2_32 1
11327fb23d3a8Smrg_ACEOF
11328fb23d3a8Smrg
11329fb23d3a8Smrg  LIBS="-lws2_32 $LIBS"
11330fb23d3a8Smrg
11331fb23d3a8Smrgfi
11332fb23d3a8Smrg
11333169a0819Smrg fi
11334fb23d3a8Smrg
1133564ce7165Smrg # Needs to come after above checks for libsocket & libnsl for SVR4 systems
1133664ce7165Smrg # Check whether --enable-ipv6 was given.
11337169a0819Smrgif test "${enable_ipv6+set}" = set; then :
1133864ce7165Smrg  enableval=$enable_ipv6; IPV6CONN=$enableval
1133964ce7165Smrgelse
11340169a0819Smrg  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
11341169a0819Smrgif test "x$ac_cv_func_getaddrinfo" = xyes; then :
1134264ce7165Smrg  IPV6CONN=yes
1134364ce7165Smrgelse
1134464ce7165Smrg  IPV6CONN=no
1134564ce7165Smrgfi
1134664ce7165Smrg
1134764ce7165Smrgfi
1134864ce7165Smrg
11349169a0819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
11350fb23d3a8Smrg$as_echo_n "checking if IPv6 support should be built... " >&6; }
1135164ce7165Smrg if test "$IPV6CONN" = "yes"; then
1135264ce7165Smrg
11353169a0819Smrg$as_echo "#define IPv6 1" >>confdefs.h
1135464ce7165Smrg
1135564ce7165Smrg fi
11356169a0819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
11357fb23d3a8Smrg$as_echo "$IPV6CONN" >&6; }
1135864ce7165Smrg
1135964ce7165Smrg # 4.3BSD-Reno added a new member to struct sockaddr_in
11360169a0819Smrg ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
11361fb23d3a8Smrg#include <sys/types.h>
11362fb23d3a8Smrg#include <sys/socket.h>
11363fb23d3a8Smrg#include <netinet/in.h>
11364fb23d3a8Smrg
11365169a0819Smrg"
11366169a0819Smrgif test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
11367fb23d3a8Smrg
11368169a0819Smrg$as_echo "#define BSD44SOCKETS 1" >>confdefs.h
11369fb23d3a8Smrg
11370fb23d3a8Smrgfi
11371fb23d3a8Smrg
11372fb23d3a8Smrg
11373fb23d3a8Smrg # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
11374169a0819Smrg ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
11375fb23d3a8Smrg$ac_includes_default
1137664ce7165Smrg#include <sys/socket.h>
11377169a0819Smrg"
11378169a0819Smrgif test "x$ac_cv_type_socklen_t" = xyes; then :
1137964ce7165Smrg
11380fb23d3a8Smrgcat >>confdefs.h <<_ACEOF
11381fb23d3a8Smrg#define HAVE_SOCKLEN_T 1
1138264ce7165Smrg_ACEOF
1138364ce7165Smrg
11384fb23d3a8Smrg
1138564ce7165Smrgfi
1138664ce7165Smrg
1138764ce7165Smrg
1138895fdd44cSmrg # XPG4v2/UNIX95 added msg_control - check to see if we need to define
1138995fdd44cSmrg # _XOPEN_SOURCE to get it (such as on Solaris)
1139095fdd44cSmrg ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
1139195fdd44cSmrg$ac_includes_default
1139295fdd44cSmrg#include <sys/socket.h>
1139395fdd44cSmrg
1139495fdd44cSmrg"
1139595fdd44cSmrgif test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
1139695fdd44cSmrg
1139795fdd44cSmrgfi
1139895fdd44cSmrg
1139995fdd44cSmrg # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
1140095fdd44cSmrg if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
1140195fdd44cSmrg     unset ac_cv_member_struct_msghdr_msg_control
1140295fdd44cSmrg     { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
1140395fdd44cSmrg$as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
1140495fdd44cSmrg     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
1140595fdd44cSmrg#define _XOPEN_SOURCE 600
1140695fdd44cSmrg$ac_includes_default
1140795fdd44cSmrg#include <sys/socket.h>
1140895fdd44cSmrg
1140995fdd44cSmrg"
1141095fdd44cSmrgif test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
1141195fdd44cSmrg
1141295fdd44cSmrg$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
1141395fdd44cSmrg
1141495fdd44cSmrg
1141595fdd44cSmrgfi
1141695fdd44cSmrg
1141795fdd44cSmrg fi
1141895fdd44cSmrg # If that didn't work, fall back to XPG5/UNIX98 with C89
1141995fdd44cSmrg if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
1142095fdd44cSmrg     unset ac_cv_member_struct_msghdr_msg_control
1142195fdd44cSmrg     { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
1142295fdd44cSmrg$as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
1142395fdd44cSmrg     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
1142495fdd44cSmrg#define _XOPEN_SOURCE 500
1142595fdd44cSmrg$ac_includes_default
1142695fdd44cSmrg#include <sys/socket.h>
1142795fdd44cSmrg
1142895fdd44cSmrg"
1142995fdd44cSmrgif test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
1143095fdd44cSmrg
1143195fdd44cSmrg$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
1143295fdd44cSmrg
1143395fdd44cSmrg
1143495fdd44cSmrgfi
1143595fdd44cSmrg
1143695fdd44cSmrg fi
1143795fdd44cSmrg
1143895fdd44cSmrg
11439fb23d3a8Smrg
1144064ce7165Smrg fi
1144164ce7165Smrg case $host_os in
1144264ce7165Smrg	solaris*|sco*|sysv4*)	localdef="yes" ;;
1144364ce7165Smrg	*)			localdef="no"  ;;
1144464ce7165Smrg esac
1144564ce7165Smrg # Check whether --enable-local-transport was given.
11446169a0819Smrgif test "${enable_local_transport+set}" = set; then :
1144764ce7165Smrg  enableval=$enable_local_transport; LOCALCONN=$enableval
1144864ce7165Smrgelse
1144964ce7165Smrg  LOCALCONN=$localdef
1145064ce7165Smrgfi
1145164ce7165Smrg
11452169a0819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
11453fb23d3a8Smrg$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
11454169a0819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
11455fb23d3a8Smrg$as_echo "$LOCALCONN" >&6; }
1145664ce7165Smrg if test "$LOCALCONN" = "yes"; then
1145764ce7165Smrg
11458169a0819Smrg$as_echo "#define LOCALCONN 1" >>confdefs.h
1145964ce7165Smrg
1146064ce7165Smrg fi
1146164ce7165Smrg
1146264ce7165Smrg
1146364ce7165Smrg
1146464ce7165Smrg# Secure RPC detection macro from xtrans.m4
1146564ce7165Smrg
11466169a0819Smrg # Check whether --enable-secure-rpc was given.
11467169a0819Smrgif test "${enable_secure_rpc+set}" = set; then :
11468169a0819Smrg  enableval=$enable_secure_rpc; SECURE_RPC=$enableval
11469169a0819Smrgelse
11470169a0819Smrg  SECURE_RPC="try"
1147164ce7165Smrgfi
1147264ce7165Smrg
11473169a0819Smrg
11474169a0819Smrg if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then
11475169a0819Smrg	FOUND_SECURE_RPC="no"
11476169a0819Smrg	for ac_func in authdes_seccreate authdes_create
11477169a0819Smrgdo :
11478169a0819Smrg  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11479169a0819Smrgac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11480169a0819Smrgif eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1148164ce7165Smrg  cat >>confdefs.h <<_ACEOF
11482fb23d3a8Smrg#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1148364ce7165Smrg_ACEOF
1148464ce7165Smrg FOUND_SECURE_RPC="yes"
1148564ce7165Smrgfi
1148664ce7165Smrgdone
1148764ce7165Smrg
1148864ce7165Smrg	if test "x$FOUND_SECURE_RPC" = "xno" ; then
1148964ce7165Smrg		if test "x$SECURE_RPC" = "xyes" ; then
11490169a0819Smrg	as_fn_error $? "Secure RPC requested, but required functions not found" "$LINENO" 5
1149164ce7165Smrg		fi
1149264ce7165Smrg		SECURE_RPC="no"
1149364ce7165Smrg	else
11494169a0819Smrg				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsecretkey" >&5
11495fb23d3a8Smrg$as_echo_n "checking for library containing getsecretkey... " >&6; }
11496169a0819Smrgif ${ac_cv_search_getsecretkey+:} false; then :
11497fb23d3a8Smrg  $as_echo_n "(cached) " >&6
1149864ce7165Smrgelse
1149964ce7165Smrg  ac_func_search_save_LIBS=$LIBS
11500169a0819Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
1150164ce7165Smrg/* end confdefs.h.  */
1150264ce7165Smrg
1150364ce7165Smrg/* Override any GCC internal prototype to avoid an error.
1150464ce7165Smrg   Use char because int might match the return type of a GCC
1150564ce7165Smrg   builtin and then its argument prototype would still apply.  */
1150664ce7165Smrg#ifdef __cplusplus
1150764ce7165Smrgextern "C"
1150864ce7165Smrg#endif
1150964ce7165Smrgchar getsecretkey ();
1151064ce7165Smrgint
1151164ce7165Smrgmain ()
1151264ce7165Smrg{
1151364ce7165Smrgreturn getsecretkey ();
1151464ce7165Smrg  ;
1151564ce7165Smrg  return 0;
1151664ce7165Smrg}
1151764ce7165Smrg_ACEOF
1151864ce7165Smrgfor ac_lib in '' rpcsvc; do
1151964ce7165Smrg  if test -z "$ac_lib"; then
1152064ce7165Smrg    ac_res="none required"
1152164ce7165Smrg  else
1152264ce7165Smrg    ac_res=-l$ac_lib
1152364ce7165Smrg    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
1152464ce7165Smrg  fi
11525169a0819Smrg  if ac_fn_c_try_link "$LINENO"; then :
1152664ce7165Smrg  ac_cv_search_getsecretkey=$ac_res
1152764ce7165Smrgfi
11528169a0819Smrgrm -f core conftest.err conftest.$ac_objext \
11529169a0819Smrg    conftest$ac_exeext
11530169a0819Smrg  if ${ac_cv_search_getsecretkey+:} false; then :
1153164ce7165Smrg  break
1153264ce7165Smrgfi
1153364ce7165Smrgdone
11534169a0819Smrgif ${ac_cv_search_getsecretkey+:} false; then :
11535169a0819Smrg
1153664ce7165Smrgelse
1153764ce7165Smrg  ac_cv_search_getsecretkey=no
1153864ce7165Smrgfi
1153964ce7165Smrgrm conftest.$ac_ext
1154064ce7165SmrgLIBS=$ac_func_search_save_LIBS
1154164ce7165Smrgfi
11542169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsecretkey" >&5
11543fb23d3a8Smrg$as_echo "$ac_cv_search_getsecretkey" >&6; }
1154464ce7165Smrgac_res=$ac_cv_search_getsecretkey
11545169a0819Smrgif test "$ac_res" != no; then :
1154664ce7165Smrg  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1154764ce7165Smrg
1154864ce7165Smrgfi
1154964ce7165Smrg
1155064ce7165Smrg		SECURE_RPC="yes"
1155164ce7165Smrg	fi
1155264ce7165Smrg fi
11553169a0819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5
11554fb23d3a8Smrg$as_echo_n "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... " >&6; }
1155564ce7165Smrg if test "x$SECURE_RPC" = "xyes" ; then
1155664ce7165Smrg
11557169a0819Smrg$as_echo "#define SECURE_RPC 1" >>confdefs.h
1155864ce7165Smrg
1155964ce7165Smrg fi
11560169a0819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SECURE_RPC" >&5
11561fb23d3a8Smrg$as_echo "$SECURE_RPC" >&6; }
1156264ce7165Smrg
1156364ce7165Smrg
1156481440437Smrg# Link with winsock if mingw target
1156581440437Smrgcase $host_os in
1156681440437Smrg *mingw*)
1156781440437Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
1156881440437Smrg$as_echo_n "checking for main in -lws2_32... " >&6; }
1156981440437Smrgif ${ac_cv_lib_ws2_32_main+:} false; then :
1157081440437Smrg  $as_echo_n "(cached) " >&6
1157181440437Smrgelse
1157281440437Smrg  ac_check_lib_save_LIBS=$LIBS
1157381440437SmrgLIBS="-lws2_32  $LIBS"
1157481440437Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
1157581440437Smrg/* end confdefs.h.  */
1157681440437Smrg
1157781440437Smrg
1157881440437Smrgint
1157981440437Smrgmain ()
1158081440437Smrg{
1158181440437Smrgreturn main ();
1158281440437Smrg  ;
1158381440437Smrg  return 0;
1158481440437Smrg}
1158581440437Smrg_ACEOF
1158681440437Smrgif ac_fn_c_try_link "$LINENO"; then :
1158781440437Smrg  ac_cv_lib_ws2_32_main=yes
1158881440437Smrgelse
1158981440437Smrg  ac_cv_lib_ws2_32_main=no
1159081440437Smrgfi
1159181440437Smrgrm -f core conftest.err conftest.$ac_objext \
1159281440437Smrg    conftest$ac_exeext conftest.$ac_ext
1159381440437SmrgLIBS=$ac_check_lib_save_LIBS
1159481440437Smrgfi
1159581440437Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
1159681440437Smrg$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
1159781440437Smrgif test "x$ac_cv_lib_ws2_32_main" = xyes; then :
1159881440437Smrg  cat >>confdefs.h <<_ACEOF
1159981440437Smrg#define HAVE_LIBWS2_32 1
1160081440437Smrg_ACEOF
1160181440437Smrg
1160281440437Smrg  LIBS="-lws2_32 $LIBS"
1160381440437Smrg
1160481440437Smrgfi
1160581440437Smrg
1160681440437Smrg  ;;
1160781440437Smrg *)
1160881440437Smrg  ;;
1160981440437Smrgesac
1161081440437Smrg
11611aadd013eSmrg# Checks for library functions.
11612aadd013eSmrgfor ac_func in inet_aton
11613aadd013eSmrgdo :
11614aadd013eSmrg  ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
11615aadd013eSmrgif test "x$ac_cv_func_inet_aton" = xyes; then :
11616aadd013eSmrg  cat >>confdefs.h <<_ACEOF
11617aadd013eSmrg#define HAVE_INET_ATON 1
11618aadd013eSmrg_ACEOF
11619aadd013eSmrg
11620aadd013eSmrgfi
11621aadd013eSmrgdone
11622aadd013eSmrg
11623aadd013eSmrg
116243544ea2eSmrgac_config_files="$ac_config_files Makefile man/Makefile"
1162564ce7165Smrg
1162664ce7165Smrgcat >confcache <<\_ACEOF
1162764ce7165Smrg# This file is a shell script that caches the results of configure
1162864ce7165Smrg# tests run on this system so they can be shared between configure
1162964ce7165Smrg# scripts and configure runs, see configure's option --config-cache.
1163064ce7165Smrg# It is not useful on other systems.  If it contains results you don't
1163164ce7165Smrg# want to keep, you may remove or edit it.
1163264ce7165Smrg#
1163364ce7165Smrg# config.status only pays attention to the cache file if you give it
1163464ce7165Smrg# the --recheck option to rerun configure.
1163564ce7165Smrg#
1163664ce7165Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
1163764ce7165Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
1163864ce7165Smrg# following values.
1163964ce7165Smrg
1164064ce7165Smrg_ACEOF
1164164ce7165Smrg
1164264ce7165Smrg# The following way of writing the cache mishandles newlines in values,
1164364ce7165Smrg# but we know of no workaround that is simple, portable, and efficient.
1164464ce7165Smrg# So, we kill variables containing newlines.
1164564ce7165Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
1164664ce7165Smrg# and sets the high bit in the cache file unless we assign to the vars.
1164764ce7165Smrg(
1164864ce7165Smrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
1164964ce7165Smrg    eval ac_val=\$$ac_var
1165064ce7165Smrg    case $ac_val in #(
1165164ce7165Smrg    *${as_nl}*)
1165264ce7165Smrg      case $ac_var in #(
11653169a0819Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11654fb23d3a8Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1165564ce7165Smrg      esac
1165664ce7165Smrg      case $ac_var in #(
1165764ce7165Smrg      _ | IFS | as_nl) ;; #(
11658fb23d3a8Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11659169a0819Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
1166064ce7165Smrg      esac ;;
1166164ce7165Smrg    esac
1166264ce7165Smrg  done
1166364ce7165Smrg
1166464ce7165Smrg  (set) 2>&1 |
1166564ce7165Smrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
1166664ce7165Smrg    *${as_nl}ac_space=\ *)
11667169a0819Smrg      # `set' does not quote correctly, so add quotes: double-quote
11668169a0819Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
1166964ce7165Smrg      sed -n \
1167064ce7165Smrg	"s/'/'\\\\''/g;
1167164ce7165Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1167264ce7165Smrg      ;; #(
1167364ce7165Smrg    *)
1167464ce7165Smrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
1167564ce7165Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1167664ce7165Smrg      ;;
1167764ce7165Smrg    esac |
1167864ce7165Smrg    sort
1167964ce7165Smrg) |
1168064ce7165Smrg  sed '
1168164ce7165Smrg     /^ac_cv_env_/b end
1168264ce7165Smrg     t clear
1168364ce7165Smrg     :clear
1168464ce7165Smrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
1168564ce7165Smrg     t end
1168664ce7165Smrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
1168764ce7165Smrg     :end' >>confcache
1168864ce7165Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
1168964ce7165Smrg  if test -w "$cache_file"; then
11690169a0819Smrg    if test "x$cache_file" != "x/dev/null"; then
11691169a0819Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11692fb23d3a8Smrg$as_echo "$as_me: updating cache $cache_file" >&6;}
11693169a0819Smrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
11694169a0819Smrg	cat confcache >"$cache_file"
11695169a0819Smrg      else
11696169a0819Smrg        case $cache_file in #(
11697169a0819Smrg        */* | ?:*)
11698169a0819Smrg	  mv -f confcache "$cache_file"$$ &&
11699169a0819Smrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11700169a0819Smrg        *)
11701169a0819Smrg	  mv -f confcache "$cache_file" ;;
11702169a0819Smrg	esac
11703169a0819Smrg      fi
11704169a0819Smrg    fi
1170564ce7165Smrg  else
11706169a0819Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11707fb23d3a8Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1170864ce7165Smrg  fi
1170964ce7165Smrgfi
1171064ce7165Smrgrm -f confcache
1171164ce7165Smrg
1171264ce7165Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
1171364ce7165Smrg# Let make expand exec_prefix.
1171464ce7165Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1171564ce7165Smrg
1171664ce7165SmrgDEFS=-DHAVE_CONFIG_H
1171764ce7165Smrg
1171864ce7165Smrgac_libobjs=
1171964ce7165Smrgac_ltlibobjs=
11720169a0819SmrgU=
1172164ce7165Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
1172264ce7165Smrg  # 1. Remove the extension, and $U if already installed.
1172364ce7165Smrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11724fb23d3a8Smrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
1172564ce7165Smrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
1172664ce7165Smrg  #    will be set to the directory where LIBOBJS objects are built.
11727169a0819Smrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11728169a0819Smrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1172964ce7165Smrgdone
1173064ce7165SmrgLIBOBJS=$ac_libobjs
1173164ce7165Smrg
1173264ce7165SmrgLTLIBOBJS=$ac_ltlibobjs
1173364ce7165Smrg
1173464ce7165Smrg
1173581440437Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
1173681440437Smrg$as_echo_n "checking that generated files are newer than configure... " >&6; }
1173781440437Smrg   if test -n "$am_sleep_pid"; then
1173881440437Smrg     # Hide warnings about reused PIDs.
1173981440437Smrg     wait $am_sleep_pid 2>/dev/null
1174081440437Smrg   fi
1174181440437Smrg   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
1174281440437Smrg$as_echo "done" >&6; }
11743fb23d3a8Smrg if test -n "$EXEEXT"; then
11744fb23d3a8Smrg  am__EXEEXT_TRUE=
11745fb23d3a8Smrg  am__EXEEXT_FALSE='#'
11746fb23d3a8Smrgelse
11747fb23d3a8Smrg  am__EXEEXT_TRUE='#'
11748fb23d3a8Smrg  am__EXEEXT_FALSE=
11749fb23d3a8Smrgfi
11750fb23d3a8Smrg
1175164ce7165Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11752169a0819Smrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
11753169a0819SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
1175464ce7165Smrgfi
1175564ce7165Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11756169a0819Smrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11757169a0819SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
1175864ce7165Smrgfi
1175964ce7165Smrg
11760169a0819Smrg: "${CONFIG_STATUS=./config.status}"
11761fb23d3a8Smrgac_write_fail=0
1176264ce7165Smrgac_clean_files_save=$ac_clean_files
1176364ce7165Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
11764169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11765fb23d3a8Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11766169a0819Smrgas_write_fail=0
11767169a0819Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1176864ce7165Smrg#! $SHELL
1176964ce7165Smrg# Generated by $as_me.
1177064ce7165Smrg# Run this file to recreate the current configuration.
1177164ce7165Smrg# Compiler output produced by configure, useful for debugging
1177264ce7165Smrg# configure, is in config.log if it exists.
1177364ce7165Smrg
1177464ce7165Smrgdebug=false
1177564ce7165Smrgac_cs_recheck=false
1177664ce7165Smrgac_cs_silent=false
1177764ce7165Smrg
11778169a0819SmrgSHELL=\${CONFIG_SHELL-$SHELL}
11779169a0819Smrgexport SHELL
11780169a0819Smrg_ASEOF
11781169a0819Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11782169a0819Smrg## -------------------- ##
11783169a0819Smrg## M4sh Initialization. ##
11784169a0819Smrg## -------------------- ##
1178564ce7165Smrg
1178664ce7165Smrg# Be more Bourne compatible
1178764ce7165SmrgDUALCASE=1; export DUALCASE # for MKS sh
11788169a0819Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1178964ce7165Smrg  emulate sh
1179064ce7165Smrg  NULLCMD=:
11791fb23d3a8Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1179264ce7165Smrg  # is contrary to our usage.  Disable this feature.
1179364ce7165Smrg  alias -g '${1+"$@"}'='"$@"'
1179464ce7165Smrg  setopt NO_GLOB_SUBST
1179564ce7165Smrgelse
11796169a0819Smrg  case `(set -o) 2>/dev/null` in #(
11797169a0819Smrg  *posix*) :
11798169a0819Smrg    set -o posix ;; #(
11799169a0819Smrg  *) :
11800169a0819Smrg     ;;
1180164ce7165Smrgesac
1180264ce7165Smrgfi
1180364ce7165Smrg
1180464ce7165Smrg
11805fb23d3a8Smrgas_nl='
11806fb23d3a8Smrg'
11807fb23d3a8Smrgexport as_nl
11808fb23d3a8Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
11809fb23d3a8Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11810fb23d3a8Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11811fb23d3a8Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11812169a0819Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
11813169a0819Smrg# but without wasting forks for bash or zsh.
11814169a0819Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
11815169a0819Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11816169a0819Smrg  as_echo='print -r --'
11817169a0819Smrg  as_echo_n='print -rn --'
11818169a0819Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11819fb23d3a8Smrg  as_echo='printf %s\n'
11820fb23d3a8Smrg  as_echo_n='printf %s'
11821fb23d3a8Smrgelse
11822fb23d3a8Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11823fb23d3a8Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11824fb23d3a8Smrg    as_echo_n='/usr/ucb/echo -n'
1182564ce7165Smrg  else
11826fb23d3a8Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11827fb23d3a8Smrg    as_echo_n_body='eval
11828fb23d3a8Smrg      arg=$1;
11829169a0819Smrg      case $arg in #(
11830fb23d3a8Smrg      *"$as_nl"*)
11831fb23d3a8Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
11832fb23d3a8Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11833fb23d3a8Smrg      esac;
11834fb23d3a8Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11835fb23d3a8Smrg    '
11836fb23d3a8Smrg    export as_echo_n_body
11837fb23d3a8Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
1183864ce7165Smrg  fi
11839fb23d3a8Smrg  export as_echo_body
11840fb23d3a8Smrg  as_echo='sh -c $as_echo_body as_echo'
11841fb23d3a8Smrgfi
11842fb23d3a8Smrg
11843fb23d3a8Smrg# The user is always right.
11844fb23d3a8Smrgif test "${PATH_SEPARATOR+set}" != set; then
11845fb23d3a8Smrg  PATH_SEPARATOR=:
11846fb23d3a8Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11847fb23d3a8Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11848fb23d3a8Smrg      PATH_SEPARATOR=';'
11849fb23d3a8Smrg  }
1185064ce7165Smrgfi
1185164ce7165Smrg
1185264ce7165Smrg
1185364ce7165Smrg# IFS
1185464ce7165Smrg# We need space, tab and new line, in precisely that order.  Quoting is
1185564ce7165Smrg# there to prevent editors from complaining about space-tab.
1185664ce7165Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
1185764ce7165Smrg# splitting by setting IFS to empty value.)
1185864ce7165SmrgIFS=" ""	$as_nl"
1185964ce7165Smrg
1186064ce7165Smrg# Find who we are.  Look in the path if we contain no directory separator.
11861169a0819Smrgas_myself=
11862169a0819Smrgcase $0 in #((
1186364ce7165Smrg  *[\\/]* ) as_myself=$0 ;;
1186464ce7165Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1186564ce7165Smrgfor as_dir in $PATH
1186664ce7165Smrgdo
1186764ce7165Smrg  IFS=$as_save_IFS
1186864ce7165Smrg  test -z "$as_dir" && as_dir=.
11869169a0819Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11870169a0819Smrg  done
1187164ce7165SmrgIFS=$as_save_IFS
1187264ce7165Smrg
1187364ce7165Smrg     ;;
1187464ce7165Smrgesac
1187564ce7165Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
1187664ce7165Smrg# in which case we are not to be found in the path.
1187764ce7165Smrgif test "x$as_myself" = x; then
1187864ce7165Smrg  as_myself=$0
1187964ce7165Smrgfi
1188064ce7165Smrgif test ! -f "$as_myself"; then
11881fb23d3a8Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11882169a0819Smrg  exit 1
1188364ce7165Smrgfi
1188464ce7165Smrg
11885169a0819Smrg# Unset variables that we do not need and which cause bugs (e.g. in
11886169a0819Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11887169a0819Smrg# suppresses any "Segmentation fault" message there.  '((' could
11888169a0819Smrg# trigger a bug in pdksh 5.2.14.
11889169a0819Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
11890169a0819Smrgdo eval test x\${$as_var+set} = xset \
11891169a0819Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1189264ce7165Smrgdone
1189364ce7165SmrgPS1='$ '
1189464ce7165SmrgPS2='> '
1189564ce7165SmrgPS4='+ '
1189664ce7165Smrg
1189764ce7165Smrg# NLS nuisances.
11898fb23d3a8SmrgLC_ALL=C
11899fb23d3a8Smrgexport LC_ALL
11900fb23d3a8SmrgLANGUAGE=C
11901fb23d3a8Smrgexport LANGUAGE
1190264ce7165Smrg
11903169a0819Smrg# CDPATH.
11904169a0819Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11905169a0819Smrg
11906169a0819Smrg
11907169a0819Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
11908169a0819Smrg# ----------------------------------------
11909169a0819Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11910169a0819Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11911169a0819Smrg# script with STATUS, using 1 if that was 0.
11912169a0819Smrgas_fn_error ()
11913169a0819Smrg{
11914169a0819Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
11915169a0819Smrg  if test "$4"; then
11916169a0819Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11917169a0819Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11918169a0819Smrg  fi
11919169a0819Smrg  $as_echo "$as_me: error: $2" >&2
11920169a0819Smrg  as_fn_exit $as_status
11921169a0819Smrg} # as_fn_error
11922169a0819Smrg
11923169a0819Smrg
11924169a0819Smrg# as_fn_set_status STATUS
11925169a0819Smrg# -----------------------
11926169a0819Smrg# Set $? to STATUS, without forking.
11927169a0819Smrgas_fn_set_status ()
11928169a0819Smrg{
11929169a0819Smrg  return $1
11930169a0819Smrg} # as_fn_set_status
11931169a0819Smrg
11932169a0819Smrg# as_fn_exit STATUS
11933169a0819Smrg# -----------------
11934169a0819Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11935169a0819Smrgas_fn_exit ()
11936169a0819Smrg{
11937169a0819Smrg  set +e
11938169a0819Smrg  as_fn_set_status $1
11939169a0819Smrg  exit $1
11940169a0819Smrg} # as_fn_exit
11941169a0819Smrg
11942169a0819Smrg# as_fn_unset VAR
11943169a0819Smrg# ---------------
11944169a0819Smrg# Portably unset VAR.
11945169a0819Smrgas_fn_unset ()
11946169a0819Smrg{
11947169a0819Smrg  { eval $1=; unset $1;}
11948169a0819Smrg}
11949169a0819Smrgas_unset=as_fn_unset
11950169a0819Smrg# as_fn_append VAR VALUE
11951169a0819Smrg# ----------------------
11952169a0819Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
11953169a0819Smrg# advantage of any shell optimizations that allow amortized linear growth over
11954169a0819Smrg# repeated appends, instead of the typical quadratic growth present in naive
11955169a0819Smrg# implementations.
11956169a0819Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11957169a0819Smrg  eval 'as_fn_append ()
11958169a0819Smrg  {
11959169a0819Smrg    eval $1+=\$2
11960169a0819Smrg  }'
11961169a0819Smrgelse
11962169a0819Smrg  as_fn_append ()
11963169a0819Smrg  {
11964169a0819Smrg    eval $1=\$$1\$2
11965169a0819Smrg  }
11966169a0819Smrgfi # as_fn_append
11967169a0819Smrg
11968169a0819Smrg# as_fn_arith ARG...
11969169a0819Smrg# ------------------
11970169a0819Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
11971169a0819Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
11972169a0819Smrg# must be portable across $(()) and expr.
11973169a0819Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11974169a0819Smrg  eval 'as_fn_arith ()
11975169a0819Smrg  {
11976169a0819Smrg    as_val=$(( $* ))
11977169a0819Smrg  }'
11978169a0819Smrgelse
11979169a0819Smrg  as_fn_arith ()
11980169a0819Smrg  {
11981169a0819Smrg    as_val=`expr "$@" || test $? -eq 1`
11982169a0819Smrg  }
11983169a0819Smrgfi # as_fn_arith
11984169a0819Smrg
11985169a0819Smrg
1198664ce7165Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
1198764ce7165Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
1198864ce7165Smrg  as_expr=expr
1198964ce7165Smrgelse
1199064ce7165Smrg  as_expr=false
1199164ce7165Smrgfi
1199264ce7165Smrg
1199364ce7165Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1199464ce7165Smrg  as_basename=basename
1199564ce7165Smrgelse
1199664ce7165Smrg  as_basename=false
1199764ce7165Smrgfi
1199864ce7165Smrg
11999169a0819Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12000169a0819Smrg  as_dirname=dirname
12001169a0819Smrgelse
12002169a0819Smrg  as_dirname=false
12003169a0819Smrgfi
1200464ce7165Smrg
1200564ce7165Smrgas_me=`$as_basename -- "$0" ||
1200664ce7165Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
1200764ce7165Smrg	 X"$0" : 'X\(//\)$' \| \
1200864ce7165Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12009fb23d3a8Smrg$as_echo X/"$0" |
1201064ce7165Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
1201164ce7165Smrg	    s//\1/
1201264ce7165Smrg	    q
1201364ce7165Smrg	  }
1201464ce7165Smrg	  /^X\/\(\/\/\)$/{
1201564ce7165Smrg	    s//\1/
1201664ce7165Smrg	    q
1201764ce7165Smrg	  }
1201864ce7165Smrg	  /^X\/\(\/\).*/{
1201964ce7165Smrg	    s//\1/
1202064ce7165Smrg	    q
1202164ce7165Smrg	  }
1202264ce7165Smrg	  s/.*/./; q'`
1202364ce7165Smrg
12024169a0819Smrg# Avoid depending upon Character Ranges.
12025169a0819Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
12026169a0819Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12027169a0819Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
12028169a0819Smrgas_cr_digits='0123456789'
12029169a0819Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
1203064ce7165Smrg
1203164ce7165SmrgECHO_C= ECHO_N= ECHO_T=
12032169a0819Smrgcase `echo -n x` in #(((((
1203364ce7165Smrg-n*)
12034169a0819Smrg  case `echo 'xy\c'` in
1203564ce7165Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12036169a0819Smrg  xy)  ECHO_C='\c';;
12037169a0819Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12038169a0819Smrg       ECHO_T='	';;
1203964ce7165Smrg  esac;;
1204064ce7165Smrg*)
1204164ce7165Smrg  ECHO_N='-n';;
1204264ce7165Smrgesac
1204364ce7165Smrg
1204464ce7165Smrgrm -f conf$$ conf$$.exe conf$$.file
1204564ce7165Smrgif test -d conf$$.dir; then
1204664ce7165Smrg  rm -f conf$$.dir/conf$$.file
1204764ce7165Smrgelse
1204864ce7165Smrg  rm -f conf$$.dir
12049fb23d3a8Smrg  mkdir conf$$.dir 2>/dev/null
12050fb23d3a8Smrgfi
12051fb23d3a8Smrgif (echo >conf$$.file) 2>/dev/null; then
12052fb23d3a8Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
12053fb23d3a8Smrg    as_ln_s='ln -s'
12054fb23d3a8Smrg    # ... but there are two gotchas:
12055fb23d3a8Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12056fb23d3a8Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1205795fdd44cSmrg    # In both cases, we have to default to `cp -pR'.
12058fb23d3a8Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1205995fdd44cSmrg      as_ln_s='cp -pR'
12060fb23d3a8Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
12061fb23d3a8Smrg    as_ln_s=ln
12062fb23d3a8Smrg  else
1206395fdd44cSmrg    as_ln_s='cp -pR'
12064fb23d3a8Smrg  fi
1206564ce7165Smrgelse
1206695fdd44cSmrg  as_ln_s='cp -pR'
1206764ce7165Smrgfi
1206864ce7165Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
1206964ce7165Smrgrmdir conf$$.dir 2>/dev/null
1207064ce7165Smrg
12071169a0819Smrg
12072169a0819Smrg# as_fn_mkdir_p
12073169a0819Smrg# -------------
12074169a0819Smrg# Create "$as_dir" as a directory, including parents if necessary.
12075169a0819Smrgas_fn_mkdir_p ()
12076169a0819Smrg{
12077169a0819Smrg
12078169a0819Smrg  case $as_dir in #(
12079169a0819Smrg  -*) as_dir=./$as_dir;;
12080169a0819Smrg  esac
12081169a0819Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
12082169a0819Smrg    as_dirs=
12083169a0819Smrg    while :; do
12084169a0819Smrg      case $as_dir in #(
12085169a0819Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12086169a0819Smrg      *) as_qdir=$as_dir;;
12087169a0819Smrg      esac
12088169a0819Smrg      as_dirs="'$as_qdir' $as_dirs"
12089169a0819Smrg      as_dir=`$as_dirname -- "$as_dir" ||
12090169a0819Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12091169a0819Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
12092169a0819Smrg	 X"$as_dir" : 'X\(//\)$' \| \
12093169a0819Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12094169a0819Smrg$as_echo X"$as_dir" |
12095169a0819Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12096169a0819Smrg	    s//\1/
12097169a0819Smrg	    q
12098169a0819Smrg	  }
12099169a0819Smrg	  /^X\(\/\/\)[^/].*/{
12100169a0819Smrg	    s//\1/
12101169a0819Smrg	    q
12102169a0819Smrg	  }
12103169a0819Smrg	  /^X\(\/\/\)$/{
12104169a0819Smrg	    s//\1/
12105169a0819Smrg	    q
12106169a0819Smrg	  }
12107169a0819Smrg	  /^X\(\/\).*/{
12108169a0819Smrg	    s//\1/
12109169a0819Smrg	    q
12110169a0819Smrg	  }
12111169a0819Smrg	  s/.*/./; q'`
12112169a0819Smrg      test -d "$as_dir" && break
12113169a0819Smrg    done
12114169a0819Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
12115169a0819Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12116169a0819Smrg
12117169a0819Smrg
12118169a0819Smrg} # as_fn_mkdir_p
1211964ce7165Smrgif mkdir -p . 2>/dev/null; then
12120169a0819Smrg  as_mkdir_p='mkdir -p "$as_dir"'
1212164ce7165Smrgelse
1212264ce7165Smrg  test -d ./-p && rmdir ./-p
1212364ce7165Smrg  as_mkdir_p=false
1212464ce7165Smrgfi
1212564ce7165Smrg
1212695fdd44cSmrg
1212795fdd44cSmrg# as_fn_executable_p FILE
1212895fdd44cSmrg# -----------------------
1212995fdd44cSmrg# Test if FILE is an executable regular file.
1213095fdd44cSmrgas_fn_executable_p ()
1213195fdd44cSmrg{
1213295fdd44cSmrg  test -f "$1" && test -x "$1"
1213395fdd44cSmrg} # as_fn_executable_p
1213495fdd44cSmrgas_test_x='test -x'
1213595fdd44cSmrgas_executable_p=as_fn_executable_p
1213664ce7165Smrg
1213764ce7165Smrg# Sed expression to map a string onto a valid CPP name.
1213864ce7165Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1213964ce7165Smrg
1214064ce7165Smrg# Sed expression to map a string onto a valid variable name.
1214164ce7165Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1214264ce7165Smrg
1214364ce7165Smrg
1214464ce7165Smrgexec 6>&1
12145169a0819Smrg## ----------------------------------- ##
12146169a0819Smrg## Main body of $CONFIG_STATUS script. ##
12147169a0819Smrg## ----------------------------------- ##
12148169a0819Smrg_ASEOF
12149169a0819Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1215064ce7165Smrg
12151169a0819Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12152169a0819Smrg# Save the log message, to keep $0 and so on meaningful, and to
1215364ce7165Smrg# report actual input values of CONFIG_FILES etc. instead of their
1215464ce7165Smrg# values after options handling.
1215564ce7165Smrgac_log="
12156aadd013eSmrgThis file was extended by xhost $as_me 1.0.8, which was
1215795fdd44cSmrggenerated by GNU Autoconf 2.69.  Invocation command line was
1215864ce7165Smrg
1215964ce7165Smrg  CONFIG_FILES    = $CONFIG_FILES
1216064ce7165Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
1216164ce7165Smrg  CONFIG_LINKS    = $CONFIG_LINKS
1216264ce7165Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
1216364ce7165Smrg  $ $0 $@
1216464ce7165Smrg
1216564ce7165Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
1216664ce7165Smrg"
1216764ce7165Smrg
1216864ce7165Smrg_ACEOF
1216964ce7165Smrg
12170fb23d3a8Smrgcase $ac_config_files in *"
12171fb23d3a8Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
12172fb23d3a8Smrgesac
12173fb23d3a8Smrg
12174fb23d3a8Smrgcase $ac_config_headers in *"
12175fb23d3a8Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12176fb23d3a8Smrgesac
12177fb23d3a8Smrg
12178fb23d3a8Smrg
12179fb23d3a8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1218064ce7165Smrg# Files that config.status was made for.
1218164ce7165Smrgconfig_files="$ac_config_files"
1218264ce7165Smrgconfig_headers="$ac_config_headers"
1218364ce7165Smrgconfig_commands="$ac_config_commands"
1218464ce7165Smrg
1218564ce7165Smrg_ACEOF
1218664ce7165Smrg
12187fb23d3a8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1218864ce7165Smrgac_cs_usage="\
12189169a0819Smrg\`$as_me' instantiates files and other configuration actions
12190169a0819Smrgfrom templates according to the current configuration.  Unless the files
12191169a0819Smrgand actions are specified as TAGs, all are instantiated by default.
1219264ce7165Smrg
12193169a0819SmrgUsage: $0 [OPTION]... [TAG]...
1219464ce7165Smrg
1219564ce7165Smrg  -h, --help       print this help, then exit
1219664ce7165Smrg  -V, --version    print version number and configuration settings, then exit
12197169a0819Smrg      --config     print configuration, then exit
12198fb23d3a8Smrg  -q, --quiet, --silent
12199fb23d3a8Smrg                   do not print progress messages
1220064ce7165Smrg  -d, --debug      don't remove temporary files
1220164ce7165Smrg      --recheck    update $as_me by reconfiguring in the same conditions
12202fb23d3a8Smrg      --file=FILE[:TEMPLATE]
12203fb23d3a8Smrg                   instantiate the configuration file FILE
12204fb23d3a8Smrg      --header=FILE[:TEMPLATE]
12205fb23d3a8Smrg                   instantiate the configuration header FILE
1220664ce7165Smrg
1220764ce7165SmrgConfiguration files:
1220864ce7165Smrg$config_files
1220964ce7165Smrg
1221064ce7165SmrgConfiguration headers:
1221164ce7165Smrg$config_headers
1221264ce7165Smrg
1221364ce7165SmrgConfiguration commands:
1221464ce7165Smrg$config_commands
1221564ce7165Smrg
12216aadd013eSmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/xhost/issues>."
1221764ce7165Smrg
1221864ce7165Smrg_ACEOF
12219fb23d3a8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12220169a0819Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1222164ce7165Smrgac_cs_version="\\
12222aadd013eSmrgxhost config.status 1.0.8
1222395fdd44cSmrgconfigured by $0, generated by GNU Autoconf 2.69,
12224169a0819Smrg  with options \\"\$ac_cs_config\\"
1222564ce7165Smrg
1222695fdd44cSmrgCopyright (C) 2012 Free Software Foundation, Inc.
1222764ce7165SmrgThis config.status script is free software; the Free Software Foundation
1222864ce7165Smrggives unlimited permission to copy, distribute and modify it."
1222964ce7165Smrg
1223064ce7165Smrgac_pwd='$ac_pwd'
1223164ce7165Smrgsrcdir='$srcdir'
1223264ce7165SmrgINSTALL='$INSTALL'
1223364ce7165SmrgMKDIR_P='$MKDIR_P'
12234fb23d3a8SmrgAWK='$AWK'
12235fb23d3a8Smrgtest -n "\$AWK" || AWK=awk
1223664ce7165Smrg_ACEOF
1223764ce7165Smrg
12238fb23d3a8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12239fb23d3a8Smrg# The default lists apply if the user does not specify any file.
1224064ce7165Smrgac_need_defaults=:
1224164ce7165Smrgwhile test $# != 0
1224264ce7165Smrgdo
1224364ce7165Smrg  case $1 in
12244169a0819Smrg  --*=?*)
1224564ce7165Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
1224664ce7165Smrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1224764ce7165Smrg    ac_shift=:
1224864ce7165Smrg    ;;
12249169a0819Smrg  --*=)
12250169a0819Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12251169a0819Smrg    ac_optarg=
12252169a0819Smrg    ac_shift=:
12253169a0819Smrg    ;;
1225464ce7165Smrg  *)
1225564ce7165Smrg    ac_option=$1
1225664ce7165Smrg    ac_optarg=$2
1225764ce7165Smrg    ac_shift=shift
1225864ce7165Smrg    ;;
1225964ce7165Smrg  esac
1226064ce7165Smrg
1226164ce7165Smrg  case $ac_option in
1226264ce7165Smrg  # Handling of the options.
1226364ce7165Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1226464ce7165Smrg    ac_cs_recheck=: ;;
1226564ce7165Smrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12266fb23d3a8Smrg    $as_echo "$ac_cs_version"; exit ;;
12267169a0819Smrg  --config | --confi | --conf | --con | --co | --c )
12268169a0819Smrg    $as_echo "$ac_cs_config"; exit ;;
1226964ce7165Smrg  --debug | --debu | --deb | --de | --d | -d )
1227064ce7165Smrg    debug=: ;;
1227164ce7165Smrg  --file | --fil | --fi | --f )
1227264ce7165Smrg    $ac_shift
12273fb23d3a8Smrg    case $ac_optarg in
12274fb23d3a8Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12275169a0819Smrg    '') as_fn_error $? "missing file argument" ;;
12276fb23d3a8Smrg    esac
12277169a0819Smrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
1227864ce7165Smrg    ac_need_defaults=false;;
1227964ce7165Smrg  --header | --heade | --head | --hea )
1228064ce7165Smrg    $ac_shift
12281fb23d3a8Smrg    case $ac_optarg in
12282fb23d3a8Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12283fb23d3a8Smrg    esac
12284169a0819Smrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1228564ce7165Smrg    ac_need_defaults=false;;
1228664ce7165Smrg  --he | --h)
1228764ce7165Smrg    # Conflict between --help and --header
12288169a0819Smrg    as_fn_error $? "ambiguous option: \`$1'
12289169a0819SmrgTry \`$0 --help' for more information.";;
1229064ce7165Smrg  --help | --hel | -h )
12291fb23d3a8Smrg    $as_echo "$ac_cs_usage"; exit ;;
1229264ce7165Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1229364ce7165Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
1229464ce7165Smrg    ac_cs_silent=: ;;
1229564ce7165Smrg
1229664ce7165Smrg  # This is an error.
12297169a0819Smrg  -*) as_fn_error $? "unrecognized option: \`$1'
12298169a0819SmrgTry \`$0 --help' for more information." ;;
1229964ce7165Smrg
12300169a0819Smrg  *) as_fn_append ac_config_targets " $1"
1230164ce7165Smrg     ac_need_defaults=false ;;
1230264ce7165Smrg
1230364ce7165Smrg  esac
1230464ce7165Smrg  shift
1230564ce7165Smrgdone
1230664ce7165Smrg
1230764ce7165Smrgac_configure_extra_args=
1230864ce7165Smrg
1230964ce7165Smrgif $ac_cs_silent; then
1231064ce7165Smrg  exec 6>/dev/null
1231164ce7165Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
1231264ce7165Smrgfi
1231364ce7165Smrg
1231464ce7165Smrg_ACEOF
12315fb23d3a8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1231664ce7165Smrgif \$ac_cs_recheck; then
1231795fdd44cSmrg  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12318fb23d3a8Smrg  shift
12319fb23d3a8Smrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12320fb23d3a8Smrg  CONFIG_SHELL='$SHELL'
1232164ce7165Smrg  export CONFIG_SHELL
12322fb23d3a8Smrg  exec "\$@"
1232364ce7165Smrgfi
1232464ce7165Smrg
1232564ce7165Smrg_ACEOF
12326fb23d3a8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1232764ce7165Smrgexec 5>>config.log
1232864ce7165Smrg{
1232964ce7165Smrg  echo
1233064ce7165Smrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
1233164ce7165Smrg## Running $as_me. ##
1233264ce7165Smrg_ASBOX
12333fb23d3a8Smrg  $as_echo "$ac_log"
1233464ce7165Smrg} >&5
1233564ce7165Smrg
1233664ce7165Smrg_ACEOF
12337fb23d3a8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1233864ce7165Smrg#
1233964ce7165Smrg# INIT-COMMANDS
1234064ce7165Smrg#
1234164ce7165SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
1234264ce7165Smrg
1234364ce7165Smrg_ACEOF
1234464ce7165Smrg
12345fb23d3a8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1234664ce7165Smrg
1234764ce7165Smrg# Handling of arguments.
1234864ce7165Smrgfor ac_config_target in $ac_config_targets
1234964ce7165Smrgdo
1235064ce7165Smrg  case $ac_config_target in
1235164ce7165Smrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
1235264ce7165Smrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
1235364ce7165Smrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
123543544ea2eSmrg    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
1235564ce7165Smrg
12356169a0819Smrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1235764ce7165Smrg  esac
1235864ce7165Smrgdone
1235964ce7165Smrg
1236064ce7165Smrg
1236164ce7165Smrg# If the user did not use the arguments to specify the items to instantiate,
1236264ce7165Smrg# then the envvar interface is used.  Set only those that are not.
1236364ce7165Smrg# We use the long form for the default assignment because of an extremely
1236464ce7165Smrg# bizarre bug on SunOS 4.1.3.
1236564ce7165Smrgif $ac_need_defaults; then
1236664ce7165Smrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
1236764ce7165Smrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
1236864ce7165Smrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
1236964ce7165Smrgfi
1237064ce7165Smrg
1237164ce7165Smrg# Have a temporary directory for convenience.  Make it in the build tree
1237264ce7165Smrg# simply because there is no reason against having it here, and in addition,
1237364ce7165Smrg# creating and moving files from /tmp can sometimes cause problems.
1237464ce7165Smrg# Hook for its removal unless debugging.
1237564ce7165Smrg# Note that there is a small window in which the directory will not be cleaned:
1237664ce7165Smrg# after its creation but before its name has been assigned to `$tmp'.
1237764ce7165Smrg$debug ||
1237864ce7165Smrg{
12379169a0819Smrg  tmp= ac_tmp=
1238064ce7165Smrg  trap 'exit_status=$?
12381169a0819Smrg  : "${ac_tmp:=$tmp}"
12382169a0819Smrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
1238364ce7165Smrg' 0
12384169a0819Smrg  trap 'as_fn_exit 1' 1 2 13 15
1238564ce7165Smrg}
1238664ce7165Smrg# Create a (secure) tmp directory for tmp files.
1238764ce7165Smrg
1238864ce7165Smrg{
1238964ce7165Smrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12390169a0819Smrg  test -d "$tmp"
1239164ce7165Smrg}  ||
1239264ce7165Smrg{
1239364ce7165Smrg  tmp=./conf$$-$RANDOM
1239464ce7165Smrg  (umask 077 && mkdir "$tmp")
12395169a0819Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12396169a0819Smrgac_tmp=$tmp
1239764ce7165Smrg
12398fb23d3a8Smrg# Set up the scripts for CONFIG_FILES section.
12399fb23d3a8Smrg# No need to generate them if there are no CONFIG_FILES.
12400fb23d3a8Smrg# This happens for instance with `./config.status config.h'.
1240164ce7165Smrgif test -n "$CONFIG_FILES"; then
1240264ce7165Smrg
1240364ce7165Smrg
12404169a0819Smrgac_cr=`echo X | tr X '\015'`
12405169a0819Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
12406169a0819Smrg# But we know of no other shell where ac_cr would be empty at this
12407169a0819Smrg# point, so we can use a bashism as a fallback.
12408169a0819Smrgif test "x$ac_cr" = x; then
12409169a0819Smrg  eval ac_cr=\$\'\\r\'
12410169a0819Smrgfi
12411fb23d3a8Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12412fb23d3a8Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12413fb23d3a8Smrg  ac_cs_awk_cr='\\r'
12414fb23d3a8Smrgelse
12415fb23d3a8Smrg  ac_cs_awk_cr=$ac_cr
1241664ce7165Smrgfi
1241764ce7165Smrg
12418169a0819Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
1241964ce7165Smrg_ACEOF
1242064ce7165Smrg
1242164ce7165Smrg
12422fb23d3a8Smrg{
12423fb23d3a8Smrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
12424fb23d3a8Smrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12425fb23d3a8Smrg  echo "_ACEOF"
12426fb23d3a8Smrg} >conf$$subs.sh ||
12427169a0819Smrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12428169a0819Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1242964ce7165Smrgac_delim='%!_!# '
1243064ce7165Smrgfor ac_last_try in false false false false false :; do
12431fb23d3a8Smrg  . ./conf$$subs.sh ||
12432169a0819Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1243364ce7165Smrg
12434fb23d3a8Smrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12435fb23d3a8Smrg  if test $ac_delim_n = $ac_delim_num; then
1243664ce7165Smrg    break
1243764ce7165Smrg  elif $ac_last_try; then
12438169a0819Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1243964ce7165Smrg  else
1244064ce7165Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1244164ce7165Smrg  fi
1244264ce7165Smrgdone
12443fb23d3a8Smrgrm -f conf$$subs.sh
1244464ce7165Smrg
12445fb23d3a8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12446169a0819Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12447fb23d3a8Smrg_ACEOF
12448fb23d3a8Smrgsed -n '
12449fb23d3a8Smrgh
12450fb23d3a8Smrgs/^/S["/; s/!.*/"]=/
12451fb23d3a8Smrgp
12452fb23d3a8Smrgg
12453fb23d3a8Smrgs/^[^!]*!//
12454fb23d3a8Smrg:repl
12455fb23d3a8Smrgt repl
12456fb23d3a8Smrgs/'"$ac_delim"'$//
12457fb23d3a8Smrgt delim
12458fb23d3a8Smrg:nl
12459fb23d3a8Smrgh
12460169a0819Smrgs/\(.\{148\}\)..*/\1/
12461fb23d3a8Smrgt more1
12462fb23d3a8Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12463fb23d3a8Smrgp
12464fb23d3a8Smrgn
12465fb23d3a8Smrgb repl
12466fb23d3a8Smrg:more1
12467fb23d3a8Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
12468fb23d3a8Smrgp
12469fb23d3a8Smrgg
12470fb23d3a8Smrgs/.\{148\}//
12471fb23d3a8Smrgt nl
12472fb23d3a8Smrg:delim
12473fb23d3a8Smrgh
12474169a0819Smrgs/\(.\{148\}\)..*/\1/
12475fb23d3a8Smrgt more2
12476fb23d3a8Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/
12477fb23d3a8Smrgp
12478fb23d3a8Smrgb
12479fb23d3a8Smrg:more2
12480fb23d3a8Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
12481fb23d3a8Smrgp
12482fb23d3a8Smrgg
12483fb23d3a8Smrgs/.\{148\}//
12484fb23d3a8Smrgt delim
12485fb23d3a8Smrg' <conf$$subs.awk | sed '
12486fb23d3a8Smrg/^[^""]/{
12487fb23d3a8Smrg  N
12488fb23d3a8Smrg  s/\n//
12489fb23d3a8Smrg}
12490fb23d3a8Smrg' >>$CONFIG_STATUS || ac_write_fail=1
12491fb23d3a8Smrgrm -f conf$$subs.awk
12492fb23d3a8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12493fb23d3a8Smrg_ACAWK
12494169a0819Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12495fb23d3a8Smrg  for (key in S) S_is_set[key] = 1
12496fb23d3a8Smrg  FS = ""
12497fb23d3a8Smrg
12498fb23d3a8Smrg}
12499fb23d3a8Smrg{
12500fb23d3a8Smrg  line = $ 0
12501fb23d3a8Smrg  nfields = split(line, field, "@")
12502fb23d3a8Smrg  substed = 0
12503fb23d3a8Smrg  len = length(field[1])
12504fb23d3a8Smrg  for (i = 2; i < nfields; i++) {
12505fb23d3a8Smrg    key = field[i]
12506fb23d3a8Smrg    keylen = length(key)
12507fb23d3a8Smrg    if (S_is_set[key]) {
12508fb23d3a8Smrg      value = S[key]
12509fb23d3a8Smrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12510fb23d3a8Smrg      len += length(value) + length(field[++i])
12511fb23d3a8Smrg      substed = 1
12512fb23d3a8Smrg    } else
12513fb23d3a8Smrg      len += 1 + keylen
12514fb23d3a8Smrg  }
12515fb23d3a8Smrg
12516fb23d3a8Smrg  print line
12517fb23d3a8Smrg}
1251864ce7165Smrg
12519fb23d3a8Smrg_ACAWK
1252064ce7165Smrg_ACEOF
12521fb23d3a8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12522fb23d3a8Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12523fb23d3a8Smrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12524fb23d3a8Smrgelse
12525fb23d3a8Smrg  cat
12526169a0819Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12527169a0819Smrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1252864ce7165Smrg_ACEOF
1252964ce7165Smrg
12530169a0819Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12531169a0819Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
1253264ce7165Smrg# trailing colons and then remove the whole line if VPATH becomes empty
1253364ce7165Smrg# (actually we leave an empty line to preserve line numbers).
1253464ce7165Smrgif test "x$srcdir" = x.; then
12535169a0819Smrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12536169a0819Smrgh
12537169a0819Smrgs///
12538169a0819Smrgs/^/:/
12539169a0819Smrgs/[	 ]*$/:/
12540169a0819Smrgs/:\$(srcdir):/:/g
12541169a0819Smrgs/:\${srcdir}:/:/g
12542169a0819Smrgs/:@srcdir@:/:/g
12543169a0819Smrgs/^:*//
1254464ce7165Smrgs/:*$//
12545169a0819Smrgx
12546169a0819Smrgs/\(=[	 ]*\).*/\1/
12547169a0819SmrgG
12548169a0819Smrgs/\n//
1254964ce7165Smrgs/^[^=]*=[	 ]*$//
1255064ce7165Smrg}'
1255164ce7165Smrgfi
1255264ce7165Smrg
12553fb23d3a8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1255464ce7165Smrgfi # test -n "$CONFIG_FILES"
1255564ce7165Smrg
12556fb23d3a8Smrg# Set up the scripts for CONFIG_HEADERS section.
12557fb23d3a8Smrg# No need to generate them if there are no CONFIG_HEADERS.
12558fb23d3a8Smrg# This happens for instance with `./config.status Makefile'.
12559fb23d3a8Smrgif test -n "$CONFIG_HEADERS"; then
12560169a0819Smrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12561fb23d3a8SmrgBEGIN {
12562fb23d3a8Smrg_ACEOF
12563fb23d3a8Smrg
12564fb23d3a8Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as
12565fb23d3a8Smrg# here-document in config.status, that substitutes the proper values into
12566fb23d3a8Smrg# config.h.in to produce config.h.
12567fb23d3a8Smrg
12568fb23d3a8Smrg# Create a delimiter string that does not exist in confdefs.h, to ease
12569fb23d3a8Smrg# handling of long lines.
12570fb23d3a8Smrgac_delim='%!_!# '
12571fb23d3a8Smrgfor ac_last_try in false false :; do
12572169a0819Smrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12573169a0819Smrg  if test -z "$ac_tt"; then
12574fb23d3a8Smrg    break
12575fb23d3a8Smrg  elif $ac_last_try; then
12576169a0819Smrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12577fb23d3a8Smrg  else
12578fb23d3a8Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12579fb23d3a8Smrg  fi
12580fb23d3a8Smrgdone
12581fb23d3a8Smrg
12582fb23d3a8Smrg# For the awk script, D is an array of macro values keyed by name,
12583fb23d3a8Smrg# likewise P contains macro parameters if any.  Preserve backslash
12584fb23d3a8Smrg# newline sequences.
12585fb23d3a8Smrg
12586fb23d3a8Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12587fb23d3a8Smrgsed -n '
12588fb23d3a8Smrgs/.\{148\}/&'"$ac_delim"'/g
12589fb23d3a8Smrgt rset
12590fb23d3a8Smrg:rset
12591fb23d3a8Smrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12592fb23d3a8Smrgt def
12593fb23d3a8Smrgd
12594fb23d3a8Smrg:def
12595fb23d3a8Smrgs/\\$//
12596fb23d3a8Smrgt bsnl
12597fb23d3a8Smrgs/["\\]/\\&/g
12598fb23d3a8Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12599fb23d3a8SmrgD["\1"]=" \3"/p
12600fb23d3a8Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12601fb23d3a8Smrgd
12602fb23d3a8Smrg:bsnl
12603fb23d3a8Smrgs/["\\]/\\&/g
12604fb23d3a8Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12605fb23d3a8SmrgD["\1"]=" \3\\\\\\n"\\/p
12606fb23d3a8Smrgt cont
12607fb23d3a8Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12608fb23d3a8Smrgt cont
12609fb23d3a8Smrgd
12610fb23d3a8Smrg:cont
12611fb23d3a8Smrgn
12612fb23d3a8Smrgs/.\{148\}/&'"$ac_delim"'/g
12613fb23d3a8Smrgt clear
12614fb23d3a8Smrg:clear
12615fb23d3a8Smrgs/\\$//
12616fb23d3a8Smrgt bsnlc
12617fb23d3a8Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
12618fb23d3a8Smrgd
12619fb23d3a8Smrg:bsnlc
12620fb23d3a8Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12621fb23d3a8Smrgb cont
12622fb23d3a8Smrg' <confdefs.h | sed '
12623fb23d3a8Smrgs/'"$ac_delim"'/"\\\
12624fb23d3a8Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
12625fb23d3a8Smrg
12626fb23d3a8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12627fb23d3a8Smrg  for (key in D) D_is_set[key] = 1
12628fb23d3a8Smrg  FS = ""
12629fb23d3a8Smrg}
12630fb23d3a8Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12631fb23d3a8Smrg  line = \$ 0
12632fb23d3a8Smrg  split(line, arg, " ")
12633fb23d3a8Smrg  if (arg[1] == "#") {
12634fb23d3a8Smrg    defundef = arg[2]
12635fb23d3a8Smrg    mac1 = arg[3]
12636fb23d3a8Smrg  } else {
12637fb23d3a8Smrg    defundef = substr(arg[1], 2)
12638fb23d3a8Smrg    mac1 = arg[2]
12639fb23d3a8Smrg  }
12640fb23d3a8Smrg  split(mac1, mac2, "(") #)
12641fb23d3a8Smrg  macro = mac2[1]
12642fb23d3a8Smrg  prefix = substr(line, 1, index(line, defundef) - 1)
12643fb23d3a8Smrg  if (D_is_set[macro]) {
12644fb23d3a8Smrg    # Preserve the white space surrounding the "#".
12645fb23d3a8Smrg    print prefix "define", macro P[macro] D[macro]
12646fb23d3a8Smrg    next
12647fb23d3a8Smrg  } else {
12648fb23d3a8Smrg    # Replace #undef with comments.  This is necessary, for example,
12649fb23d3a8Smrg    # in the case of _POSIX_SOURCE, which is predefined and required
12650fb23d3a8Smrg    # on some systems where configure will not decide to define it.
12651fb23d3a8Smrg    if (defundef == "undef") {
12652fb23d3a8Smrg      print "/*", prefix defundef, macro, "*/"
12653fb23d3a8Smrg      next
12654fb23d3a8Smrg    }
12655fb23d3a8Smrg  }
12656fb23d3a8Smrg}
12657fb23d3a8Smrg{ print }
12658fb23d3a8Smrg_ACAWK
12659fb23d3a8Smrg_ACEOF
12660fb23d3a8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12661169a0819Smrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12662fb23d3a8Smrgfi # test -n "$CONFIG_HEADERS"
12663fb23d3a8Smrg
1266464ce7165Smrg
12665fb23d3a8Smrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12666fb23d3a8Smrgshift
12667fb23d3a8Smrgfor ac_tag
1266864ce7165Smrgdo
1266964ce7165Smrg  case $ac_tag in
1267064ce7165Smrg  :[FHLC]) ac_mode=$ac_tag; continue;;
1267164ce7165Smrg  esac
1267264ce7165Smrg  case $ac_mode$ac_tag in
1267364ce7165Smrg  :[FHL]*:*);;
12674169a0819Smrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
1267564ce7165Smrg  :[FH]-) ac_tag=-:-;;
1267664ce7165Smrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
1267764ce7165Smrg  esac
1267864ce7165Smrg  ac_save_IFS=$IFS
1267964ce7165Smrg  IFS=:
1268064ce7165Smrg  set x $ac_tag
1268164ce7165Smrg  IFS=$ac_save_IFS
1268264ce7165Smrg  shift
1268364ce7165Smrg  ac_file=$1
1268464ce7165Smrg  shift
1268564ce7165Smrg
1268664ce7165Smrg  case $ac_mode in
1268764ce7165Smrg  :L) ac_source=$1;;
1268864ce7165Smrg  :[FH])
1268964ce7165Smrg    ac_file_inputs=
1269064ce7165Smrg    for ac_f
1269164ce7165Smrg    do
1269264ce7165Smrg      case $ac_f in
12693169a0819Smrg      -) ac_f="$ac_tmp/stdin";;
1269464ce7165Smrg      *) # Look for the file first in the build tree, then in the source tree
1269564ce7165Smrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
1269664ce7165Smrg	 # because $ac_f cannot contain `:'.
1269764ce7165Smrg	 test -f "$ac_f" ||
1269864ce7165Smrg	   case $ac_f in
1269964ce7165Smrg	   [\\/$]*) false;;
1270064ce7165Smrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
1270164ce7165Smrg	   esac ||
12702169a0819Smrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
1270364ce7165Smrg      esac
12704fb23d3a8Smrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12705169a0819Smrg      as_fn_append ac_file_inputs " '$ac_f'"
1270664ce7165Smrg    done
1270764ce7165Smrg
1270864ce7165Smrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
1270964ce7165Smrg    # use $as_me), people would be surprised to read:
1271064ce7165Smrg    #    /* config.h.  Generated by config.status.  */
12711fb23d3a8Smrg    configure_input='Generated from '`
12712fb23d3a8Smrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12713fb23d3a8Smrg	`' by configure.'
1271464ce7165Smrg    if test x"$ac_file" != x-; then
1271564ce7165Smrg      configure_input="$ac_file.  $configure_input"
12716169a0819Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12717fb23d3a8Smrg$as_echo "$as_me: creating $ac_file" >&6;}
1271864ce7165Smrg    fi
12719fb23d3a8Smrg    # Neutralize special characters interpreted by sed in replacement strings.
12720fb23d3a8Smrg    case $configure_input in #(
12721fb23d3a8Smrg    *\&* | *\|* | *\\* )
12722fb23d3a8Smrg       ac_sed_conf_input=`$as_echo "$configure_input" |
12723fb23d3a8Smrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12724fb23d3a8Smrg    *) ac_sed_conf_input=$configure_input;;
12725fb23d3a8Smrg    esac
1272664ce7165Smrg
1272764ce7165Smrg    case $ac_tag in
12728169a0819Smrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12729169a0819Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
1273064ce7165Smrg    esac
1273164ce7165Smrg    ;;
1273264ce7165Smrg  esac
1273364ce7165Smrg
1273464ce7165Smrg  ac_dir=`$as_dirname -- "$ac_file" ||
1273564ce7165Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1273664ce7165Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
1273764ce7165Smrg	 X"$ac_file" : 'X\(//\)$' \| \
1273864ce7165Smrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12739fb23d3a8Smrg$as_echo X"$ac_file" |
1274064ce7165Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1274164ce7165Smrg	    s//\1/
1274264ce7165Smrg	    q
1274364ce7165Smrg	  }
1274464ce7165Smrg	  /^X\(\/\/\)[^/].*/{
1274564ce7165Smrg	    s//\1/
1274664ce7165Smrg	    q
1274764ce7165Smrg	  }
1274864ce7165Smrg	  /^X\(\/\/\)$/{
1274964ce7165Smrg	    s//\1/
1275064ce7165Smrg	    q
1275164ce7165Smrg	  }
1275264ce7165Smrg	  /^X\(\/\).*/{
1275364ce7165Smrg	    s//\1/
1275464ce7165Smrg	    q
1275564ce7165Smrg	  }
1275664ce7165Smrg	  s/.*/./; q'`
12757169a0819Smrg  as_dir="$ac_dir"; as_fn_mkdir_p
1275864ce7165Smrg  ac_builddir=.
1275964ce7165Smrg
1276064ce7165Smrgcase "$ac_dir" in
1276164ce7165Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1276264ce7165Smrg*)
12763fb23d3a8Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1276464ce7165Smrg  # A ".." for each directory in $ac_dir_suffix.
12765fb23d3a8Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1276664ce7165Smrg  case $ac_top_builddir_sub in
1276764ce7165Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1276864ce7165Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1276964ce7165Smrg  esac ;;
1277064ce7165Smrgesac
1277164ce7165Smrgac_abs_top_builddir=$ac_pwd
1277264ce7165Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
1277364ce7165Smrg# for backward compatibility:
1277464ce7165Smrgac_top_builddir=$ac_top_build_prefix
1277564ce7165Smrg
1277664ce7165Smrgcase $srcdir in
1277764ce7165Smrg  .)  # We are building in place.
1277864ce7165Smrg    ac_srcdir=.
1277964ce7165Smrg    ac_top_srcdir=$ac_top_builddir_sub
1278064ce7165Smrg    ac_abs_top_srcdir=$ac_pwd ;;
1278164ce7165Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
1278264ce7165Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
1278364ce7165Smrg    ac_top_srcdir=$srcdir
1278464ce7165Smrg    ac_abs_top_srcdir=$srcdir ;;
1278564ce7165Smrg  *) # Relative name.
1278664ce7165Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1278764ce7165Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
1278864ce7165Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1278964ce7165Smrgesac
1279064ce7165Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1279164ce7165Smrg
1279264ce7165Smrg
1279364ce7165Smrg  case $ac_mode in
1279464ce7165Smrg  :F)
1279564ce7165Smrg  #
1279664ce7165Smrg  # CONFIG_FILE
1279764ce7165Smrg  #
1279864ce7165Smrg
1279964ce7165Smrg  case $INSTALL in
1280064ce7165Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1280164ce7165Smrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
1280264ce7165Smrg  esac
1280364ce7165Smrg  ac_MKDIR_P=$MKDIR_P
1280464ce7165Smrg  case $MKDIR_P in
1280564ce7165Smrg  [\\/$]* | ?:[\\/]* ) ;;
1280664ce7165Smrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
1280764ce7165Smrg  esac
1280864ce7165Smrg_ACEOF
1280964ce7165Smrg
12810fb23d3a8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1281164ce7165Smrg# If the template does not know about datarootdir, expand it.
1281264ce7165Smrg# FIXME: This hack should be removed a few years after 2.60.
1281364ce7165Smrgac_datarootdir_hack=; ac_datarootdir_seen=
12814fb23d3a8Smrgac_sed_dataroot='
12815fb23d3a8Smrg/datarootdir/ {
1281664ce7165Smrg  p
1281764ce7165Smrg  q
1281864ce7165Smrg}
1281964ce7165Smrg/@datadir@/p
1282064ce7165Smrg/@docdir@/p
1282164ce7165Smrg/@infodir@/p
1282264ce7165Smrg/@localedir@/p
12823169a0819Smrg/@mandir@/p'
12824fb23d3a8Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
1282564ce7165Smrg*datarootdir*) ac_datarootdir_seen=yes;;
1282664ce7165Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12827169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12828fb23d3a8Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1282964ce7165Smrg_ACEOF
12830fb23d3a8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1283164ce7165Smrg  ac_datarootdir_hack='
1283264ce7165Smrg  s&@datadir@&$datadir&g
1283364ce7165Smrg  s&@docdir@&$docdir&g
1283464ce7165Smrg  s&@infodir@&$infodir&g
1283564ce7165Smrg  s&@localedir@&$localedir&g
1283664ce7165Smrg  s&@mandir@&$mandir&g
12837169a0819Smrg  s&\\\${datarootdir}&$datarootdir&g' ;;
1283864ce7165Smrgesac
1283964ce7165Smrg_ACEOF
1284064ce7165Smrg
1284164ce7165Smrg# Neutralize VPATH when `$srcdir' = `.'.
1284264ce7165Smrg# Shell code in configure.ac might set extrasub.
1284364ce7165Smrg# FIXME: do we really want to maintain this feature?
12844fb23d3a8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12845fb23d3a8Smrgac_sed_extra="$ac_vpsub
1284664ce7165Smrg$extrasub
1284764ce7165Smrg_ACEOF
12848fb23d3a8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1284964ce7165Smrg:t
1285064ce7165Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12851fb23d3a8Smrgs|@configure_input@|$ac_sed_conf_input|;t t
1285264ce7165Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t
12853fb23d3a8Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
1285464ce7165Smrgs&@srcdir@&$ac_srcdir&;t t
1285564ce7165Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
1285664ce7165Smrgs&@top_srcdir@&$ac_top_srcdir&;t t
1285764ce7165Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
1285864ce7165Smrgs&@builddir@&$ac_builddir&;t t
1285964ce7165Smrgs&@abs_builddir@&$ac_abs_builddir&;t t
1286064ce7165Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
1286164ce7165Smrgs&@INSTALL@&$ac_INSTALL&;t t
1286264ce7165Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
1286364ce7165Smrg$ac_datarootdir_hack
12864fb23d3a8Smrg"
12865169a0819Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12866169a0819Smrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1286764ce7165Smrg
1286864ce7165Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12869169a0819Smrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12870169a0819Smrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12871169a0819Smrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12872169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12873169a0819Smrgwhich seems to be undefined.  Please make sure it is defined" >&5
12874fb23d3a8Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12875169a0819Smrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
1287664ce7165Smrg
12877169a0819Smrg  rm -f "$ac_tmp/stdin"
1287864ce7165Smrg  case $ac_file in
12879169a0819Smrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12880169a0819Smrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12881fb23d3a8Smrg  esac \
12882169a0819Smrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1288364ce7165Smrg ;;
1288464ce7165Smrg  :H)
1288564ce7165Smrg  #
1288664ce7165Smrg  # CONFIG_HEADER
1288764ce7165Smrg  #
1288864ce7165Smrg  if test x"$ac_file" != x-; then
12889fb23d3a8Smrg    {
12890fb23d3a8Smrg      $as_echo "/* $configure_input  */" \
12891169a0819Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12892169a0819Smrg    } >"$ac_tmp/config.h" \
12893169a0819Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12894169a0819Smrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12895169a0819Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12896fb23d3a8Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
1289764ce7165Smrg    else
12898fb23d3a8Smrg      rm -f "$ac_file"
12899169a0819Smrg      mv "$ac_tmp/config.h" "$ac_file" \
12900169a0819Smrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
1290164ce7165Smrg    fi
1290264ce7165Smrg  else
12903fb23d3a8Smrg    $as_echo "/* $configure_input  */" \
12904169a0819Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12905169a0819Smrg      || as_fn_error $? "could not create -" "$LINENO" 5
1290664ce7165Smrg  fi
12907fb23d3a8Smrg# Compute "$ac_file"'s index in $config_headers.
12908fb23d3a8Smrg_am_arg="$ac_file"
1290964ce7165Smrg_am_stamp_count=1
1291064ce7165Smrgfor _am_header in $config_headers :; do
1291164ce7165Smrg  case $_am_header in
12912fb23d3a8Smrg    $_am_arg | $_am_arg:* )
1291364ce7165Smrg      break ;;
1291464ce7165Smrg    * )
1291564ce7165Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
1291664ce7165Smrg  esac
1291764ce7165Smrgdone
12918fb23d3a8Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12919fb23d3a8Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12920fb23d3a8Smrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12921fb23d3a8Smrg	 X"$_am_arg" : 'X\(//\)$' \| \
12922fb23d3a8Smrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12923fb23d3a8Smrg$as_echo X"$_am_arg" |
1292464ce7165Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1292564ce7165Smrg	    s//\1/
1292664ce7165Smrg	    q
1292764ce7165Smrg	  }
1292864ce7165Smrg	  /^X\(\/\/\)[^/].*/{
1292964ce7165Smrg	    s//\1/
1293064ce7165Smrg	    q
1293164ce7165Smrg	  }
1293264ce7165Smrg	  /^X\(\/\/\)$/{
1293364ce7165Smrg	    s//\1/
1293464ce7165Smrg	    q
1293564ce7165Smrg	  }
1293664ce7165Smrg	  /^X\(\/\).*/{
1293764ce7165Smrg	    s//\1/
1293864ce7165Smrg	    q
1293964ce7165Smrg	  }
1294064ce7165Smrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
1294164ce7165Smrg ;;
1294264ce7165Smrg
12943169a0819Smrg  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12944fb23d3a8Smrg$as_echo "$as_me: executing $ac_file commands" >&6;}
1294564ce7165Smrg ;;
1294664ce7165Smrg  esac
1294764ce7165Smrg
1294864ce7165Smrg
1294964ce7165Smrg  case $ac_file$ac_mode in
12950fb23d3a8Smrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
1295181440437Smrg  # Older Autoconf quotes --file arguments for eval, but not when files
12952fb23d3a8Smrg  # are listed without --file.  Let's play safe and only enable the eval
12953fb23d3a8Smrg  # if we detect the quoting.
12954fb23d3a8Smrg  case $CONFIG_FILES in
12955fb23d3a8Smrg  *\'*) eval set x "$CONFIG_FILES" ;;
12956fb23d3a8Smrg  *)   set x $CONFIG_FILES ;;
12957fb23d3a8Smrg  esac
12958fb23d3a8Smrg  shift
12959fb23d3a8Smrg  for mf
12960fb23d3a8Smrg  do
12961fb23d3a8Smrg    # Strip MF so we end up with the name of the file.
12962fb23d3a8Smrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
12963fb23d3a8Smrg    # Check whether this is an Automake generated Makefile or not.
1296481440437Smrg    # We used to match only the files named 'Makefile.in', but
12965fb23d3a8Smrg    # some people rename them; so instead we look at the file content.
12966fb23d3a8Smrg    # Grep'ing the first line is not enough: some people post-process
12967fb23d3a8Smrg    # each Makefile.in and add a new line on top of each file to say so.
12968fb23d3a8Smrg    # Grep'ing the whole file is not good either: AIX grep has a line
12969fb23d3a8Smrg    # limit of 2048, but all sed's we know have understand at least 4000.
12970fb23d3a8Smrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12971fb23d3a8Smrg      dirpart=`$as_dirname -- "$mf" ||
1297264ce7165Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1297364ce7165Smrg	 X"$mf" : 'X\(//\)[^/]' \| \
1297464ce7165Smrg	 X"$mf" : 'X\(//\)$' \| \
1297564ce7165Smrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12976fb23d3a8Smrg$as_echo X"$mf" |
1297764ce7165Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1297864ce7165Smrg	    s//\1/
1297964ce7165Smrg	    q
1298064ce7165Smrg	  }
1298164ce7165Smrg	  /^X\(\/\/\)[^/].*/{
1298264ce7165Smrg	    s//\1/
1298364ce7165Smrg	    q
1298464ce7165Smrg	  }
1298564ce7165Smrg	  /^X\(\/\/\)$/{
1298664ce7165Smrg	    s//\1/
1298764ce7165Smrg	    q
1298864ce7165Smrg	  }
1298964ce7165Smrg	  /^X\(\/\).*/{
1299064ce7165Smrg	    s//\1/
1299164ce7165Smrg	    q
1299264ce7165Smrg	  }
1299364ce7165Smrg	  s/.*/./; q'`
12994fb23d3a8Smrg    else
12995fb23d3a8Smrg      continue
12996fb23d3a8Smrg    fi
12997fb23d3a8Smrg    # Extract the definition of DEPDIR, am__include, and am__quote
1299881440437Smrg    # from the Makefile without running 'make'.
12999fb23d3a8Smrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13000fb23d3a8Smrg    test -z "$DEPDIR" && continue
13001fb23d3a8Smrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
1300281440437Smrg    test -z "$am__include" && continue
13003fb23d3a8Smrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13004fb23d3a8Smrg    # Find all dependency output files, they are included files with
13005fb23d3a8Smrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
13006fb23d3a8Smrg    # simplest approach to changing $(DEPDIR) to its actual value in the
13007fb23d3a8Smrg    # expansion.
13008fb23d3a8Smrg    for file in `sed -n "
13009fb23d3a8Smrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1301081440437Smrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
13011fb23d3a8Smrg      # Make sure the directory exists.
13012fb23d3a8Smrg      test -f "$dirpart/$file" && continue
13013fb23d3a8Smrg      fdir=`$as_dirname -- "$file" ||
1301464ce7165Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1301564ce7165Smrg	 X"$file" : 'X\(//\)[^/]' \| \
1301664ce7165Smrg	 X"$file" : 'X\(//\)$' \| \
1301764ce7165Smrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13018fb23d3a8Smrg$as_echo X"$file" |
1301964ce7165Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1302064ce7165Smrg	    s//\1/
1302164ce7165Smrg	    q
1302264ce7165Smrg	  }
1302364ce7165Smrg	  /^X\(\/\/\)[^/].*/{
1302464ce7165Smrg	    s//\1/
1302564ce7165Smrg	    q
1302664ce7165Smrg	  }
1302764ce7165Smrg	  /^X\(\/\/\)$/{
1302864ce7165Smrg	    s//\1/
1302964ce7165Smrg	    q
1303064ce7165Smrg	  }
1303164ce7165Smrg	  /^X\(\/\).*/{
1303264ce7165Smrg	    s//\1/
1303364ce7165Smrg	    q
1303464ce7165Smrg	  }
1303564ce7165Smrg	  s/.*/./; q'`
13036169a0819Smrg      as_dir=$dirpart/$fdir; as_fn_mkdir_p
13037fb23d3a8Smrg      # echo "creating $dirpart/$file"
13038fb23d3a8Smrg      echo '# dummy' > "$dirpart/$file"
13039fb23d3a8Smrg    done
1304064ce7165Smrg  done
13041fb23d3a8Smrg}
1304264ce7165Smrg ;;
1304364ce7165Smrg
1304464ce7165Smrg  esac
1304564ce7165Smrgdone # for ac_tag
1304664ce7165Smrg
1304764ce7165Smrg
13048169a0819Smrgas_fn_exit 0
1304964ce7165Smrg_ACEOF
1305064ce7165Smrgac_clean_files=$ac_clean_files_save
1305164ce7165Smrg
13052fb23d3a8Smrgtest $ac_write_fail = 0 ||
13053169a0819Smrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13054fb23d3a8Smrg
1305564ce7165Smrg
1305664ce7165Smrg# configure is writing to config.log, and then calls config.status.
1305764ce7165Smrg# config.status does its own redirection, appending to config.log.
1305864ce7165Smrg# Unfortunately, on DOS this fails, as config.log is still kept open
1305964ce7165Smrg# by configure, so config.status won't be able to write to it; its
1306064ce7165Smrg# output is simply discarded.  So we exec the FD to /dev/null,
1306164ce7165Smrg# effectively closing config.log, so it can be properly (re)opened and
1306264ce7165Smrg# appended to by config.status.  When coming back to configure, we
1306364ce7165Smrg# need to make the FD available again.
1306464ce7165Smrgif test "$no_create" != yes; then
1306564ce7165Smrg  ac_cs_success=:
1306664ce7165Smrg  ac_config_status_args=
1306764ce7165Smrg  test "$silent" = yes &&
1306864ce7165Smrg    ac_config_status_args="$ac_config_status_args --quiet"
1306964ce7165Smrg  exec 5>/dev/null
1307064ce7165Smrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
1307164ce7165Smrg  exec 5>>config.log
1307264ce7165Smrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
1307364ce7165Smrg  # would make configure fail if this is the last instruction.
13074169a0819Smrg  $ac_cs_success || as_fn_exit 1
1307564ce7165Smrgfi
13076fb23d3a8Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13077169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13078fb23d3a8Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13079fb23d3a8Smrgfi
1308064ce7165Smrg
13081