176910425Smrg#! /bin/sh
276910425Smrg# Guess values for system-dependent variables and create Makefiles.
38bfe6addSmrg# Generated by GNU Autoconf 2.72 for xkbevd 1.1.6.
476910425Smrg#
5a67f45c3Smrg# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkbevd/-/issues>.
676910425Smrg#
7482df631Smrg#
88bfe6addSmrg# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9a67f45c3Smrg# Inc.
10482df631Smrg#
11482df631Smrg#
1276910425Smrg# This configure script is free software; the Free Software Foundation
1376910425Smrg# gives unlimited permission to copy, distribute and modify it.
14482df631Smrg## -------------------- ##
15482df631Smrg## M4sh Initialization. ##
16482df631Smrg## -------------------- ##
1776910425Smrg
18db17cd6dSmrg# Be more Bourne compatible
19db17cd6dSmrgDUALCASE=1; export DUALCASE # for MKS sh
20a67f45c3Smrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21a67f45c3Smrgthen :
2276910425Smrg  emulate sh
2376910425Smrg  NULLCMD=:
24db17cd6dSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2576910425Smrg  # is contrary to our usage.  Disable this feature.
2676910425Smrg  alias -g '${1+"$@"}'='"$@"'
27db17cd6dSmrg  setopt NO_GLOB_SUBST
288bfe6addSmrgelse case e in #(
298bfe6addSmrg  e) case `(set -o) 2>/dev/null` in #(
30482df631Smrg  *posix*) :
31482df631Smrg    set -o posix ;; #(
32482df631Smrg  *) :
33482df631Smrg     ;;
348bfe6addSmrgesac ;;
35db17cd6dSmrgesac
36db17cd6dSmrgfi
37db17cd6dSmrg
38db17cd6dSmrg
39a67f45c3Smrg
40a67f45c3Smrg# Reset variables that may have inherited troublesome values from
41a67f45c3Smrg# the environment.
42a67f45c3Smrg
43a67f45c3Smrg# IFS needs to be set, to space, tab, and newline, in precisely that order.
44a67f45c3Smrg# (If _AS_PATH_WALK were called with IFS unset, it would have the
45a67f45c3Smrg# side effect of setting IFS to empty, thus disabling word splitting.)
46a67f45c3Smrg# Quoting is to prevent editors from complaining about space-tab.
47db17cd6dSmrgas_nl='
48db17cd6dSmrg'
49db17cd6dSmrgexport as_nl
50a67f45c3SmrgIFS=" ""	$as_nl"
51a67f45c3Smrg
52a67f45c3SmrgPS1='$ '
53a67f45c3SmrgPS2='> '
54a67f45c3SmrgPS4='+ '
55a67f45c3Smrg
56a67f45c3Smrg# Ensure predictable behavior from utilities with locale-dependent output.
57a67f45c3SmrgLC_ALL=C
58a67f45c3Smrgexport LC_ALL
59a67f45c3SmrgLANGUAGE=C
60a67f45c3Smrgexport LANGUAGE
61a67f45c3Smrg
62a67f45c3Smrg# We cannot yet rely on "unset" to work, but we need these variables
63a67f45c3Smrg# to be unset--not just set to an empty or harmless value--now, to
64a67f45c3Smrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65a67f45c3Smrg# also avoids known problems related to "unset" and subshell syntax
66a67f45c3Smrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67a67f45c3Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68a67f45c3Smrgdo eval test \${$as_var+y} \
69a67f45c3Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70a67f45c3Smrgdone
71a67f45c3Smrg
72a67f45c3Smrg# Ensure that fds 0, 1, and 2 are open.
73a67f45c3Smrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74a67f45c3Smrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75a67f45c3Smrgif (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76db17cd6dSmrg
77db17cd6dSmrg# The user is always right.
78a67f45c3Smrgif ${PATH_SEPARATOR+false} :; then
79db17cd6dSmrg  PATH_SEPARATOR=:
80db17cd6dSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81db17cd6dSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82db17cd6dSmrg      PATH_SEPARATOR=';'
83db17cd6dSmrg  }
8476910425Smrgfi
8576910425Smrg
8676910425Smrg
87db17cd6dSmrg# Find who we are.  Look in the path if we contain no directory separator.
88482df631Smrgas_myself=
89482df631Smrgcase $0 in #((
90db17cd6dSmrg  *[\\/]* ) as_myself=$0 ;;
91db17cd6dSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92db17cd6dSmrgfor as_dir in $PATH
93db17cd6dSmrgdo
94db17cd6dSmrg  IFS=$as_save_IFS
95a67f45c3Smrg  case $as_dir in #(((
96a67f45c3Smrg    '') as_dir=./ ;;
97a67f45c3Smrg    */) ;;
98a67f45c3Smrg    *) as_dir=$as_dir/ ;;
99a67f45c3Smrg  esac
100a67f45c3Smrg    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101482df631Smrg  done
102db17cd6dSmrgIFS=$as_save_IFS
103db17cd6dSmrg
104db17cd6dSmrg     ;;
105db17cd6dSmrgesac
1068bfe6addSmrg# We did not find ourselves, most probably we were run as 'sh COMMAND'
107db17cd6dSmrg# in which case we are not to be found in the path.
108db17cd6dSmrgif test "x$as_myself" = x; then
109db17cd6dSmrg  as_myself=$0
110db17cd6dSmrgfi
111db17cd6dSmrgif test ! -f "$as_myself"; then
112a67f45c3Smrg  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113482df631Smrg  exit 1
114db17cd6dSmrgfi
115db17cd6dSmrg
116482df631Smrg
1179ff100acSmrg# Use a proper internal environment variable to ensure we don't fall
1189ff100acSmrg  # into an infinite loop, continuously re-executing ourselves.
1199ff100acSmrg  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
1209ff100acSmrg    _as_can_reexec=no; export _as_can_reexec;
1219ff100acSmrg    # We cannot yet assume a decent shell, so we have to provide a
1229ff100acSmrg# neutralization value for shells without unset; and this also
1239ff100acSmrg# works around shells that cannot unset nonexistent variables.
1249ff100acSmrg# Preserve -v and -x to the replacement shell.
1259ff100acSmrgBASH_ENV=/dev/null
1269ff100acSmrgENV=/dev/null
1279ff100acSmrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
1289ff100acSmrgcase $- in # ((((
1299ff100acSmrg  *v*x* | *x*v* ) as_opts=-vx ;;
1309ff100acSmrg  *v* ) as_opts=-v ;;
1319ff100acSmrg  *x* ) as_opts=-x ;;
1329ff100acSmrg  * ) as_opts= ;;
1339ff100acSmrgesac
1349ff100acSmrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
1359ff100acSmrg# Admittedly, this is quite paranoid, since all the known shells bail
1368bfe6addSmrg# out after a failed 'exec'.
137a67f45c3Smrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138a67f45c3Smrgexit 255
1399ff100acSmrg  fi
1409ff100acSmrg  # We don't want this to propagate to other subprocesses.
1419ff100acSmrg          { _as_can_reexec=; unset _as_can_reexec;}
142482df631Smrgif test "x$CONFIG_SHELL" = x; then
1438bfe6addSmrg  as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144a67f45c3Smrgthen :
145482df631Smrg  emulate sh
146482df631Smrg  NULLCMD=:
147482df631Smrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148482df631Smrg  # is contrary to our usage.  Disable this feature.
149482df631Smrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
150482df631Smrg  setopt NO_GLOB_SUBST
1518bfe6addSmrgelse case e in #(
1528bfe6addSmrg  e) case \`(set -o) 2>/dev/null\` in #(
153482df631Smrg  *posix*) :
154482df631Smrg    set -o posix ;; #(
155482df631Smrg  *) :
156482df631Smrg     ;;
1578bfe6addSmrgesac ;;
158482df631Smrgesac
159482df631Smrgfi
160482df631Smrg"
161482df631Smrg  as_required="as_fn_return () { (exit \$1); }
162482df631Smrgas_fn_success () { as_fn_return 0; }
163482df631Smrgas_fn_failure () { as_fn_return 1; }
164482df631Smrgas_fn_ret_success () { return 0; }
165482df631Smrgas_fn_ret_failure () { return 1; }
166482df631Smrg
167482df631Smrgexitcode=0
168482df631Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
169482df631Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170482df631Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171482df631Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172a67f45c3Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" )
173a67f45c3Smrgthen :
174482df631Smrg
1758bfe6addSmrgelse case e in #(
1768bfe6addSmrg  e) exitcode=1; echo positional parameters were not saved. ;;
1778bfe6addSmrgesac
178482df631Smrgfi
1799ff100acSmrgtest x\$exitcode = x0 || exit 1
180a67f45c3Smrgblah=\$(echo \$(echo blah))
181a67f45c3Smrgtest x\"\$blah\" = xblah || exit 1
1829ff100acSmrgtest -x / || exit 1"
183482df631Smrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184482df631Smrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185482df631Smrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186482df631Smrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187482df631Smrgtest \$(( 1 + 1 )) = 2 || exit 1"
188a67f45c3Smrg  if (eval "$as_required") 2>/dev/null
189a67f45c3Smrgthen :
190482df631Smrg  as_have_required=yes
1918bfe6addSmrgelse case e in #(
1928bfe6addSmrg  e) as_have_required=no ;;
1938bfe6addSmrgesac
194482df631Smrgfi
195a67f45c3Smrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
196a67f45c3Smrgthen :
197482df631Smrg
1988bfe6addSmrgelse case e in #(
1998bfe6addSmrg  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
200482df631Smrgas_found=false
201482df631Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
202482df631Smrgdo
203482df631Smrg  IFS=$as_save_IFS
204a67f45c3Smrg  case $as_dir in #(((
205a67f45c3Smrg    '') as_dir=./ ;;
206a67f45c3Smrg    */) ;;
207a67f45c3Smrg    *) as_dir=$as_dir/ ;;
208a67f45c3Smrg  esac
209482df631Smrg  as_found=:
210482df631Smrg  case $as_dir in #(
211482df631Smrg	 /*)
212482df631Smrg	   for as_base in sh bash ksh sh5; do
213482df631Smrg	     # Try only shells that exist, to save several forks.
214a67f45c3Smrg	     as_shell=$as_dir$as_base
215482df631Smrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
216a67f45c3Smrg		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
217a67f45c3Smrgthen :
218482df631Smrg  CONFIG_SHELL=$as_shell as_have_required=yes
219a67f45c3Smrg		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
220a67f45c3Smrgthen :
221482df631Smrg  break 2
222482df631Smrgfi
223482df631Smrgfi
224482df631Smrg	   done;;
225482df631Smrg       esac
226482df631Smrg  as_found=false
227482df631Smrgdone
228482df631SmrgIFS=$as_save_IFS
229a67f45c3Smrgif $as_found
230a67f45c3Smrgthen :
231a67f45c3Smrg
2328bfe6addSmrgelse case e in #(
2338bfe6addSmrg  e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234a67f45c3Smrg	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
235a67f45c3Smrgthen :
236a67f45c3Smrg  CONFIG_SHELL=$SHELL as_have_required=yes
2378bfe6addSmrgfi ;;
2388bfe6addSmrgesac
239a67f45c3Smrgfi
240482df631Smrg
241482df631Smrg
242a67f45c3Smrg      if test "x$CONFIG_SHELL" != x
243a67f45c3Smrgthen :
2449ff100acSmrg  export CONFIG_SHELL
2459ff100acSmrg             # We cannot yet assume a decent shell, so we have to provide a
2469ff100acSmrg# neutralization value for shells without unset; and this also
2479ff100acSmrg# works around shells that cannot unset nonexistent variables.
2489ff100acSmrg# Preserve -v and -x to the replacement shell.
2499ff100acSmrgBASH_ENV=/dev/null
2509ff100acSmrgENV=/dev/null
2519ff100acSmrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
2529ff100acSmrgcase $- in # ((((
2539ff100acSmrg  *v*x* | *x*v* ) as_opts=-vx ;;
2549ff100acSmrg  *v* ) as_opts=-v ;;
2559ff100acSmrg  *x* ) as_opts=-x ;;
2569ff100acSmrg  * ) as_opts= ;;
2579ff100acSmrgesac
2589ff100acSmrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
2599ff100acSmrg# Admittedly, this is quite paranoid, since all the known shells bail
2608bfe6addSmrg# out after a failed 'exec'.
261a67f45c3Smrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
2629ff100acSmrgexit 255
263482df631Smrgfi
264482df631Smrg
265a67f45c3Smrg    if test x$as_have_required = xno
266a67f45c3Smrgthen :
267a67f45c3Smrg  printf "%s\n" "$0: This script requires a shell more modern than all"
268a67f45c3Smrg  printf "%s\n" "$0: the shells that I found on your system."
269a67f45c3Smrg  if test ${ZSH_VERSION+y} ; then
270a67f45c3Smrg    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
271a67f45c3Smrg    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
272482df631Smrg  else
273a67f45c3Smrg    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
274a67f45c3Smrg$0: https://gitlab.freedesktop.org/xorg/app/xkbevd/-/issues
275482df631Smrg$0: about your system, including any error possibly output
276482df631Smrg$0: before this message. Then install a modern shell, or
277482df631Smrg$0: manually run the script under such a shell if you do
278482df631Smrg$0: have one."
279482df631Smrg  fi
280482df631Smrg  exit 1
2818bfe6addSmrgfi ;;
2828bfe6addSmrgesac
283482df631Smrgfi
284482df631Smrgfi
285482df631SmrgSHELL=${CONFIG_SHELL-/bin/sh}
286482df631Smrgexport SHELL
287482df631Smrg# Unset more variables known to interfere with behavior of common tools.
288482df631SmrgCLICOLOR_FORCE= GREP_OPTIONS=
289482df631Smrgunset CLICOLOR_FORCE GREP_OPTIONS
290482df631Smrg
291482df631Smrg## --------------------- ##
292482df631Smrg## M4sh Shell Functions. ##
293482df631Smrg## --------------------- ##
294482df631Smrg# as_fn_unset VAR
295482df631Smrg# ---------------
296482df631Smrg# Portably unset VAR.
297482df631Smrgas_fn_unset ()
298482df631Smrg{
299482df631Smrg  { eval $1=; unset $1;}
300482df631Smrg}
301482df631Smrgas_unset=as_fn_unset
302482df631Smrg
303a67f45c3Smrg
304482df631Smrg# as_fn_set_status STATUS
305482df631Smrg# -----------------------
306482df631Smrg# Set $? to STATUS, without forking.
307482df631Smrgas_fn_set_status ()
308482df631Smrg{
309482df631Smrg  return $1
310482df631Smrg} # as_fn_set_status
311482df631Smrg
312482df631Smrg# as_fn_exit STATUS
313482df631Smrg# -----------------
314482df631Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315482df631Smrgas_fn_exit ()
316482df631Smrg{
317482df631Smrg  set +e
318482df631Smrg  as_fn_set_status $1
319482df631Smrg  exit $1
320482df631Smrg} # as_fn_exit
321482df631Smrg
322482df631Smrg# as_fn_mkdir_p
323482df631Smrg# -------------
324482df631Smrg# Create "$as_dir" as a directory, including parents if necessary.
325482df631Smrgas_fn_mkdir_p ()
326482df631Smrg{
327482df631Smrg
328482df631Smrg  case $as_dir in #(
329482df631Smrg  -*) as_dir=./$as_dir;;
330482df631Smrg  esac
331482df631Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
332482df631Smrg    as_dirs=
333482df631Smrg    while :; do
334482df631Smrg      case $as_dir in #(
335a67f45c3Smrg      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336482df631Smrg      *) as_qdir=$as_dir;;
337482df631Smrg      esac
338482df631Smrg      as_dirs="'$as_qdir' $as_dirs"
339482df631Smrg      as_dir=`$as_dirname -- "$as_dir" ||
340482df631Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341482df631Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
342482df631Smrg	 X"$as_dir" : 'X\(//\)$' \| \
343482df631Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344a67f45c3Smrgprintf "%s\n" X"$as_dir" |
345482df631Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346482df631Smrg	    s//\1/
347482df631Smrg	    q
348482df631Smrg	  }
349482df631Smrg	  /^X\(\/\/\)[^/].*/{
350482df631Smrg	    s//\1/
351482df631Smrg	    q
352482df631Smrg	  }
353482df631Smrg	  /^X\(\/\/\)$/{
354482df631Smrg	    s//\1/
355482df631Smrg	    q
356482df631Smrg	  }
357482df631Smrg	  /^X\(\/\).*/{
358482df631Smrg	    s//\1/
359482df631Smrg	    q
360482df631Smrg	  }
361482df631Smrg	  s/.*/./; q'`
362482df631Smrg      test -d "$as_dir" && break
363482df631Smrg    done
364482df631Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
365482df631Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366482df631Smrg
367482df631Smrg
368482df631Smrg} # as_fn_mkdir_p
3699ff100acSmrg
3709ff100acSmrg# as_fn_executable_p FILE
3719ff100acSmrg# -----------------------
3729ff100acSmrg# Test if FILE is an executable regular file.
3739ff100acSmrgas_fn_executable_p ()
3749ff100acSmrg{
3759ff100acSmrg  test -f "$1" && test -x "$1"
3769ff100acSmrg} # as_fn_executable_p
377482df631Smrg# as_fn_append VAR VALUE
378482df631Smrg# ----------------------
379482df631Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
380482df631Smrg# advantage of any shell optimizations that allow amortized linear growth over
381482df631Smrg# repeated appends, instead of the typical quadratic growth present in naive
382482df631Smrg# implementations.
383a67f45c3Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
384a67f45c3Smrgthen :
385482df631Smrg  eval 'as_fn_append ()
386482df631Smrg  {
387482df631Smrg    eval $1+=\$2
388482df631Smrg  }'
3898bfe6addSmrgelse case e in #(
3908bfe6addSmrg  e) as_fn_append ()
391482df631Smrg  {
392482df631Smrg    eval $1=\$$1\$2
3938bfe6addSmrg  } ;;
3948bfe6addSmrgesac
395482df631Smrgfi # as_fn_append
396482df631Smrg
397482df631Smrg# as_fn_arith ARG...
398482df631Smrg# ------------------
399482df631Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
400482df631Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
401482df631Smrg# must be portable across $(()) and expr.
402a67f45c3Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
403a67f45c3Smrgthen :
404482df631Smrg  eval 'as_fn_arith ()
405482df631Smrg  {
406482df631Smrg    as_val=$(( $* ))
407482df631Smrg  }'
4088bfe6addSmrgelse case e in #(
4098bfe6addSmrg  e) as_fn_arith ()
410482df631Smrg  {
411482df631Smrg    as_val=`expr "$@" || test $? -eq 1`
4128bfe6addSmrg  } ;;
4138bfe6addSmrgesac
414482df631Smrgfi # as_fn_arith
415482df631Smrg
416482df631Smrg
417482df631Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
418482df631Smrg# ----------------------------------------
419482df631Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
420482df631Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
421482df631Smrg# script with STATUS, using 1 if that was 0.
422482df631Smrgas_fn_error ()
423482df631Smrg{
424482df631Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
425482df631Smrg  if test "$4"; then
426482df631Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
427a67f45c3Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
428482df631Smrg  fi
429a67f45c3Smrg  printf "%s\n" "$as_me: error: $2" >&2
430482df631Smrg  as_fn_exit $as_status
431482df631Smrg} # as_fn_error
432482df631Smrg
433db17cd6dSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
434db17cd6dSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
43576910425Smrg  as_expr=expr
43676910425Smrgelse
43776910425Smrg  as_expr=false
43876910425Smrgfi
43976910425Smrg
440db17cd6dSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
44176910425Smrg  as_basename=basename
44276910425Smrgelse
44376910425Smrg  as_basename=false
44476910425Smrgfi
44576910425Smrg
446482df631Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
447482df631Smrg  as_dirname=dirname
448482df631Smrgelse
449482df631Smrg  as_dirname=false
450482df631Smrgfi
45176910425Smrg
452db17cd6dSmrgas_me=`$as_basename -- "$0" ||
45376910425Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
45476910425Smrg	 X"$0" : 'X\(//\)$' \| \
455db17cd6dSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
456a67f45c3Smrgprintf "%s\n" X/"$0" |
457db17cd6dSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
458db17cd6dSmrg	    s//\1/
459db17cd6dSmrg	    q
460db17cd6dSmrg	  }
461db17cd6dSmrg	  /^X\/\(\/\/\)$/{
462db17cd6dSmrg	    s//\1/
463db17cd6dSmrg	    q
464db17cd6dSmrg	  }
465db17cd6dSmrg	  /^X\/\(\/\).*/{
466db17cd6dSmrg	    s//\1/
467db17cd6dSmrg	    q
468db17cd6dSmrg	  }
469db17cd6dSmrg	  s/.*/./; q'`
47076910425Smrg
471482df631Smrg# Avoid depending upon Character Ranges.
472482df631Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
473482df631Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
474482df631Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
475482df631Smrgas_cr_digits='0123456789'
476482df631Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
47776910425Smrg
47876910425Smrg
479482df631Smrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
480482df631Smrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
481482df631Smrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
482482df631Smrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
483482df631Smrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
484482df631Smrg  sed -n '
485482df631Smrg    p
486482df631Smrg    /[$]LINENO/=
487482df631Smrg  ' <$as_myself |
488482df631Smrg    sed '
4898bfe6addSmrg      t clear
4908bfe6addSmrg      :clear
491482df631Smrg      s/[$]LINENO.*/&-/
492482df631Smrg      t lineno
493482df631Smrg      b
494482df631Smrg      :lineno
495482df631Smrg      N
496482df631Smrg      :loop
497482df631Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
498482df631Smrg      t loop
499482df631Smrg      s/-\n.*//
500482df631Smrg    ' >$as_me.lineno &&
501482df631Smrg  chmod +x "$as_me.lineno" ||
502a67f45c3Smrg    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
50376910425Smrg
5049ff100acSmrg  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
5059ff100acSmrg  # already done that, so ensure we don't try to do so again and fall
5069ff100acSmrg  # in an infinite loop.  This has already happened in practice.
5079ff100acSmrg  _as_can_reexec=no; export _as_can_reexec
508482df631Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
509482df631Smrg  # (the dirname of $[0] is not the place where we might find the
510482df631Smrg  # original and so on.  Autoconf is especially sensitive to this).
511482df631Smrg  . "./$as_me.lineno"
512482df631Smrg  # Exit status is that of the last command.
513482df631Smrg  exit
514db17cd6dSmrg}
51576910425Smrg
516a67f45c3Smrg
517a67f45c3Smrg# Determine whether it's possible to make 'echo' print without a newline.
518a67f45c3Smrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
519a67f45c3Smrg# for compatibility with existing Makefiles.
520482df631SmrgECHO_C= ECHO_N= ECHO_T=
521482df631Smrgcase `echo -n x` in #(((((
522482df631Smrg-n*)
523482df631Smrg  case `echo 'xy\c'` in
524482df631Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
525482df631Smrg  xy)  ECHO_C='\c';;
526482df631Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
527482df631Smrg       ECHO_T='	';;
528482df631Smrg  esac;;
529482df631Smrg*)
530482df631Smrg  ECHO_N='-n';;
531482df631Smrgesac
53276910425Smrg
533a67f45c3Smrg# For backward compatibility with old third-party macros, we provide
534a67f45c3Smrg# the shell variables $as_echo and $as_echo_n.  New code should use
535a67f45c3Smrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
536a67f45c3Smrgas_echo='printf %s\n'
537a67f45c3Smrgas_echo_n='printf %s'
538a67f45c3Smrg
539482df631Smrgrm -f conf$$ conf$$.exe conf$$.file
540482df631Smrgif test -d conf$$.dir; then
541482df631Smrg  rm -f conf$$.dir/conf$$.file
542482df631Smrgelse
543482df631Smrg  rm -f conf$$.dir
544482df631Smrg  mkdir conf$$.dir 2>/dev/null
545db17cd6dSmrgfi
546482df631Smrgif (echo >conf$$.file) 2>/dev/null; then
547482df631Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
548482df631Smrg    as_ln_s='ln -s'
549482df631Smrg    # ... but there are two gotchas:
5508bfe6addSmrg    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
5518bfe6addSmrg    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
5528bfe6addSmrg    # In both cases, we have to default to 'cp -pR'.
553482df631Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5549ff100acSmrg      as_ln_s='cp -pR'
555482df631Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
556482df631Smrg    as_ln_s=ln
557482df631Smrg  else
5589ff100acSmrg    as_ln_s='cp -pR'
559482df631Smrg  fi
560db17cd6dSmrgelse
5619ff100acSmrg  as_ln_s='cp -pR'
562db17cd6dSmrgfi
563482df631Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
564482df631Smrgrmdir conf$$.dir 2>/dev/null
565db17cd6dSmrg
566482df631Smrgif mkdir -p . 2>/dev/null; then
567482df631Smrg  as_mkdir_p='mkdir -p "$as_dir"'
568482df631Smrgelse
569482df631Smrg  test -d ./-p && rmdir ./-p
570482df631Smrg  as_mkdir_p=false
571db17cd6dSmrgfi
572db17cd6dSmrg
5739ff100acSmrgas_test_x='test -x'
5749ff100acSmrgas_executable_p=as_fn_executable_p
575db17cd6dSmrg
576482df631Smrg# Sed expression to map a string onto a valid CPP name.
5778bfe6addSmrgas_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
5788bfe6addSmrgas_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
579db17cd6dSmrg
580482df631Smrg# Sed expression to map a string onto a valid variable name.
5818bfe6addSmrgas_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
5828bfe6addSmrgas_tr_sh="eval sed '$as_sed_sh'" # deprecated
583db17cd6dSmrg
584db17cd6dSmrg
585482df631Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null
586482df631Smrgexec 6>&1
58776910425Smrg
58876910425Smrg# Name of the host.
589482df631Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
59076910425Smrg# so uname gets run too.
59176910425Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
59276910425Smrg
59376910425Smrg#
59476910425Smrg# Initializations.
59576910425Smrg#
59676910425Smrgac_default_prefix=/usr/local
597db17cd6dSmrgac_clean_files=
59876910425Smrgac_config_libobj_dir=.
599db17cd6dSmrgLIBOBJS=
60076910425Smrgcross_compiling=no
60176910425Smrgsubdirs=
60276910425SmrgMFLAGS=
60376910425SmrgMAKEFLAGS=
60476910425Smrg
60576910425Smrg# Identity of this package.
60676910425SmrgPACKAGE_NAME='xkbevd'
60776910425SmrgPACKAGE_TARNAME='xkbevd'
6088bfe6addSmrgPACKAGE_VERSION='1.1.6'
6098bfe6addSmrgPACKAGE_STRING='xkbevd 1.1.6'
610a67f45c3SmrgPACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xkbevd/-/issues'
611482df631SmrgPACKAGE_URL=''
61276910425Smrg
6139ff100acSmrgac_unique_file="Makefile.am"
614db17cd6dSmrg# Factoring default headers for most tests.
615db17cd6dSmrgac_includes_default="\
616a67f45c3Smrg#include <stddef.h>
617a67f45c3Smrg#ifdef HAVE_STDIO_H
618a67f45c3Smrg# include <stdio.h>
619db17cd6dSmrg#endif
620a67f45c3Smrg#ifdef HAVE_STDLIB_H
621db17cd6dSmrg# include <stdlib.h>
622db17cd6dSmrg#endif
623db17cd6dSmrg#ifdef HAVE_STRING_H
624db17cd6dSmrg# include <string.h>
625db17cd6dSmrg#endif
626db17cd6dSmrg#ifdef HAVE_INTTYPES_H
627db17cd6dSmrg# include <inttypes.h>
628db17cd6dSmrg#endif
629db17cd6dSmrg#ifdef HAVE_STDINT_H
630db17cd6dSmrg# include <stdint.h>
631db17cd6dSmrg#endif
632a67f45c3Smrg#ifdef HAVE_STRINGS_H
633a67f45c3Smrg# include <strings.h>
634a67f45c3Smrg#endif
635a67f45c3Smrg#ifdef HAVE_SYS_TYPES_H
636a67f45c3Smrg# include <sys/types.h>
637a67f45c3Smrg#endif
638a67f45c3Smrg#ifdef HAVE_SYS_STAT_H
639a67f45c3Smrg# include <sys/stat.h>
640a67f45c3Smrg#endif
641db17cd6dSmrg#ifdef HAVE_UNISTD_H
642db17cd6dSmrg# include <unistd.h>
643db17cd6dSmrg#endif"
644db17cd6dSmrg
645a67f45c3Smrgac_header_c_list=
646db17cd6dSmrgac_subst_vars='am__EXEEXT_FALSE
647db17cd6dSmrgam__EXEEXT_TRUE
648db17cd6dSmrgLTLIBOBJS
649db17cd6dSmrgLIBOBJS
650db17cd6dSmrgXKBEVD_LIBS
651db17cd6dSmrgXKBEVD_CFLAGS
6529ff100acSmrgYACC_INST
6539ff100acSmrgYFLAGS
6549ff100acSmrgYACC
655482df631SmrgMAN_SUBSTS
656482df631SmrgXORG_MAN_PAGE
657db17cd6dSmrgADMIN_MAN_DIR
658db17cd6dSmrgDRIVER_MAN_DIR
659db17cd6dSmrgMISC_MAN_DIR
660db17cd6dSmrgFILE_MAN_DIR
661db17cd6dSmrgLIB_MAN_DIR
662db17cd6dSmrgAPP_MAN_DIR
663db17cd6dSmrgADMIN_MAN_SUFFIX
664db17cd6dSmrgDRIVER_MAN_SUFFIX
665db17cd6dSmrgMISC_MAN_SUFFIX
666db17cd6dSmrgFILE_MAN_SUFFIX
667db17cd6dSmrgLIB_MAN_SUFFIX
668db17cd6dSmrgAPP_MAN_SUFFIX
669482df631SmrgSED
670db17cd6dSmrghost_os
671db17cd6dSmrghost_vendor
672db17cd6dSmrghost_cpu
673db17cd6dSmrghost
674db17cd6dSmrgbuild_os
675db17cd6dSmrgbuild_vendor
676db17cd6dSmrgbuild_cpu
677db17cd6dSmrgbuild
678482df631SmrgINSTALL_CMD
679a67f45c3SmrgPKG_CONFIG_LIBDIR
680a67f45c3SmrgPKG_CONFIG_PATH
681482df631SmrgPKG_CONFIG
682db17cd6dSmrgCHANGELOG_CMD
6839ff100acSmrgSTRICT_CFLAGS
684db17cd6dSmrgCWARNFLAGS
6859ff100acSmrgBASE_CFLAGS
686db17cd6dSmrgam__fastdepCC_FALSE
687db17cd6dSmrgam__fastdepCC_TRUE
688db17cd6dSmrgCCDEPMODE
6899ff100acSmrgam__nodep
690db17cd6dSmrgAMDEPBACKSLASH
691db17cd6dSmrgAMDEP_FALSE
692db17cd6dSmrgAMDEP_TRUE
693db17cd6dSmrgam__include
694db17cd6dSmrgDEPDIR
695db17cd6dSmrgOBJEXT
696db17cd6dSmrgEXEEXT
697db17cd6dSmrgac_ct_CC
698db17cd6dSmrgCPPFLAGS
699db17cd6dSmrgLDFLAGS
700db17cd6dSmrgCFLAGS
701db17cd6dSmrgCC
7028bfe6addSmrgam__xargs_n
7038bfe6addSmrgam__rm_f_notfound
7049ff100acSmrgAM_BACKSLASH
7059ff100acSmrgAM_DEFAULT_VERBOSITY
7069ff100acSmrgAM_DEFAULT_V
7079ff100acSmrgAM_V
708a67f45c3SmrgCSCOPE
709a67f45c3SmrgETAGS
710a67f45c3SmrgCTAGS
711db17cd6dSmrgam__untar
712db17cd6dSmrgam__tar
713db17cd6dSmrgAMTAR
714db17cd6dSmrgam__leading_dot
715db17cd6dSmrgSET_MAKE
716db17cd6dSmrgAWK
717db17cd6dSmrgmkdir_p
718db17cd6dSmrgMKDIR_P
719db17cd6dSmrgINSTALL_STRIP_PROGRAM
720db17cd6dSmrgSTRIP
721db17cd6dSmrginstall_sh
722db17cd6dSmrgMAKEINFO
723db17cd6dSmrgAUTOHEADER
724db17cd6dSmrgAUTOMAKE
725db17cd6dSmrgAUTOCONF
726db17cd6dSmrgACLOCAL
727db17cd6dSmrgVERSION
728db17cd6dSmrgPACKAGE
729db17cd6dSmrgCYGPATH_W
730db17cd6dSmrgam__isrc
731db17cd6dSmrgINSTALL_DATA
732db17cd6dSmrgINSTALL_SCRIPT
733db17cd6dSmrgINSTALL_PROGRAM
734db17cd6dSmrgtarget_alias
735db17cd6dSmrghost_alias
736db17cd6dSmrgbuild_alias
737db17cd6dSmrgLIBS
738db17cd6dSmrgECHO_T
739db17cd6dSmrgECHO_N
740db17cd6dSmrgECHO_C
741db17cd6dSmrgDEFS
742db17cd6dSmrgmandir
743db17cd6dSmrglocaledir
744db17cd6dSmrglibdir
745db17cd6dSmrgpsdir
746db17cd6dSmrgpdfdir
747db17cd6dSmrgdvidir
748db17cd6dSmrghtmldir
749db17cd6dSmrginfodir
750db17cd6dSmrgdocdir
751db17cd6dSmrgoldincludedir
752db17cd6dSmrgincludedir
753a67f45c3Smrgrunstatedir
754db17cd6dSmrglocalstatedir
755db17cd6dSmrgsharedstatedir
756db17cd6dSmrgsysconfdir
757db17cd6dSmrgdatadir
758db17cd6dSmrgdatarootdir
759db17cd6dSmrglibexecdir
760db17cd6dSmrgsbindir
761db17cd6dSmrgbindir
762db17cd6dSmrgprogram_transform_name
763db17cd6dSmrgprefix
764db17cd6dSmrgexec_prefix
765482df631SmrgPACKAGE_URL
766db17cd6dSmrgPACKAGE_BUGREPORT
767db17cd6dSmrgPACKAGE_STRING
768db17cd6dSmrgPACKAGE_VERSION
769db17cd6dSmrgPACKAGE_TARNAME
770db17cd6dSmrgPACKAGE_NAME
771db17cd6dSmrgPATH_SEPARATOR
772a67f45c3SmrgSHELL
773a67f45c3Smrgam__quote'
77476910425Smrgac_subst_files=''
775db17cd6dSmrgac_user_opts='
776db17cd6dSmrgenable_option_checking
7779ff100acSmrgenable_silent_rules
778db17cd6dSmrgenable_dependency_tracking
7799ff100acSmrgenable_selective_werror
780db17cd6dSmrgenable_strict_compilation
781db17cd6dSmrg'
782db17cd6dSmrg      ac_precious_vars='build_alias
783db17cd6dSmrghost_alias
784db17cd6dSmrgtarget_alias
785db17cd6dSmrgCC
786db17cd6dSmrgCFLAGS
787db17cd6dSmrgLDFLAGS
788db17cd6dSmrgLIBS
789db17cd6dSmrgCPPFLAGS
790db17cd6dSmrgPKG_CONFIG
791a67f45c3SmrgPKG_CONFIG_PATH
792a67f45c3SmrgPKG_CONFIG_LIBDIR
7939ff100acSmrgYACC
7949ff100acSmrgYFLAGS
795db17cd6dSmrgXKBEVD_CFLAGS
796db17cd6dSmrgXKBEVD_LIBS'
797db17cd6dSmrg
79876910425Smrg
79976910425Smrg# Initialize some variables set by options.
80076910425Smrgac_init_help=
80176910425Smrgac_init_version=false
802db17cd6dSmrgac_unrecognized_opts=
803db17cd6dSmrgac_unrecognized_sep=
80476910425Smrg# The variables have the same names as the options, with
80576910425Smrg# dashes changed to underlines.
80676910425Smrgcache_file=/dev/null
80776910425Smrgexec_prefix=NONE
80876910425Smrgno_create=
80976910425Smrgno_recursion=
81076910425Smrgprefix=NONE
81176910425Smrgprogram_prefix=NONE
81276910425Smrgprogram_suffix=NONE
81376910425Smrgprogram_transform_name=s,x,x,
81476910425Smrgsilent=
81576910425Smrgsite=
81676910425Smrgsrcdir=
81776910425Smrgverbose=
81876910425Smrgx_includes=NONE
81976910425Smrgx_libraries=NONE
82076910425Smrg
82176910425Smrg# Installation directory options.
82276910425Smrg# These are left unexpanded so users can "make install exec_prefix=/foo"
82376910425Smrg# and all the variables that are supposed to be based on exec_prefix
82476910425Smrg# by default will actually change.
82576910425Smrg# Use braces instead of parens because sh, perl, etc. also accept them.
826db17cd6dSmrg# (The list follows the same order as the GNU Coding Standards.)
82776910425Smrgbindir='${exec_prefix}/bin'
82876910425Smrgsbindir='${exec_prefix}/sbin'
82976910425Smrglibexecdir='${exec_prefix}/libexec'
830db17cd6dSmrgdatarootdir='${prefix}/share'
831db17cd6dSmrgdatadir='${datarootdir}'
83276910425Smrgsysconfdir='${prefix}/etc'
83376910425Smrgsharedstatedir='${prefix}/com'
83476910425Smrglocalstatedir='${prefix}/var'
835a67f45c3Smrgrunstatedir='${localstatedir}/run'
83676910425Smrgincludedir='${prefix}/include'
83776910425Smrgoldincludedir='/usr/include'
838db17cd6dSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
839db17cd6dSmrginfodir='${datarootdir}/info'
840db17cd6dSmrghtmldir='${docdir}'
841db17cd6dSmrgdvidir='${docdir}'
842db17cd6dSmrgpdfdir='${docdir}'
843db17cd6dSmrgpsdir='${docdir}'
844db17cd6dSmrglibdir='${exec_prefix}/lib'
845db17cd6dSmrglocaledir='${datarootdir}/locale'
846db17cd6dSmrgmandir='${datarootdir}/man'
84776910425Smrg
84876910425Smrgac_prev=
849db17cd6dSmrgac_dashdash=
85076910425Smrgfor ac_option
85176910425Smrgdo
85276910425Smrg  # If the previous option needs an argument, assign it.
85376910425Smrg  if test -n "$ac_prev"; then
854db17cd6dSmrg    eval $ac_prev=\$ac_option
85576910425Smrg    ac_prev=
85676910425Smrg    continue
85776910425Smrg  fi
85876910425Smrg
859db17cd6dSmrg  case $ac_option in
860482df631Smrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
861482df631Smrg  *=)   ac_optarg= ;;
862482df631Smrg  *)    ac_optarg=yes ;;
863db17cd6dSmrg  esac
86476910425Smrg
865db17cd6dSmrg  case $ac_dashdash$ac_option in
866db17cd6dSmrg  --)
867db17cd6dSmrg    ac_dashdash=yes ;;
86876910425Smrg
86976910425Smrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
87076910425Smrg    ac_prev=bindir ;;
87176910425Smrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
87276910425Smrg    bindir=$ac_optarg ;;
87376910425Smrg
87476910425Smrg  -build | --build | --buil | --bui | --bu)
87576910425Smrg    ac_prev=build_alias ;;
87676910425Smrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
87776910425Smrg    build_alias=$ac_optarg ;;
87876910425Smrg
87976910425Smrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
88076910425Smrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
88176910425Smrg    ac_prev=cache_file ;;
88276910425Smrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
88376910425Smrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
88476910425Smrg    cache_file=$ac_optarg ;;
88576910425Smrg
88676910425Smrg  --config-cache | -C)
88776910425Smrg    cache_file=config.cache ;;
88876910425Smrg
889db17cd6dSmrg  -datadir | --datadir | --datadi | --datad)
89076910425Smrg    ac_prev=datadir ;;
891db17cd6dSmrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
89276910425Smrg    datadir=$ac_optarg ;;
89376910425Smrg
894db17cd6dSmrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
895db17cd6dSmrg  | --dataroo | --dataro | --datar)
896db17cd6dSmrg    ac_prev=datarootdir ;;
897db17cd6dSmrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
898db17cd6dSmrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
899db17cd6dSmrg    datarootdir=$ac_optarg ;;
900db17cd6dSmrg
90176910425Smrg  -disable-* | --disable-*)
902db17cd6dSmrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
90376910425Smrg    # Reject names that are not valid shell variable names.
904db17cd6dSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
9058bfe6addSmrg      as_fn_error $? "invalid feature name: '$ac_useropt'"
906db17cd6dSmrg    ac_useropt_orig=$ac_useropt
907a67f45c3Smrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
908db17cd6dSmrg    case $ac_user_opts in
909db17cd6dSmrg      *"
910db17cd6dSmrg"enable_$ac_useropt"
911db17cd6dSmrg"*) ;;
912db17cd6dSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
913db17cd6dSmrg	 ac_unrecognized_sep=', ';;
914db17cd6dSmrg    esac
915db17cd6dSmrg    eval enable_$ac_useropt=no ;;
916db17cd6dSmrg
917db17cd6dSmrg  -docdir | --docdir | --docdi | --doc | --do)
918db17cd6dSmrg    ac_prev=docdir ;;
919db17cd6dSmrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
920db17cd6dSmrg    docdir=$ac_optarg ;;
921db17cd6dSmrg
922db17cd6dSmrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
923db17cd6dSmrg    ac_prev=dvidir ;;
924db17cd6dSmrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
925db17cd6dSmrg    dvidir=$ac_optarg ;;
92676910425Smrg
92776910425Smrg  -enable-* | --enable-*)
928db17cd6dSmrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
92976910425Smrg    # Reject names that are not valid shell variable names.
930db17cd6dSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
9318bfe6addSmrg      as_fn_error $? "invalid feature name: '$ac_useropt'"
932db17cd6dSmrg    ac_useropt_orig=$ac_useropt
933a67f45c3Smrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
934db17cd6dSmrg    case $ac_user_opts in
935db17cd6dSmrg      *"
936db17cd6dSmrg"enable_$ac_useropt"
937db17cd6dSmrg"*) ;;
938db17cd6dSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
939db17cd6dSmrg	 ac_unrecognized_sep=', ';;
94076910425Smrg    esac
941db17cd6dSmrg    eval enable_$ac_useropt=\$ac_optarg ;;
94276910425Smrg
94376910425Smrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
94476910425Smrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
94576910425Smrg  | --exec | --exe | --ex)
94676910425Smrg    ac_prev=exec_prefix ;;
94776910425Smrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
94876910425Smrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
94976910425Smrg  | --exec=* | --exe=* | --ex=*)
95076910425Smrg    exec_prefix=$ac_optarg ;;
95176910425Smrg
95276910425Smrg  -gas | --gas | --ga | --g)
95376910425Smrg    # Obsolete; use --with-gas.
95476910425Smrg    with_gas=yes ;;
95576910425Smrg
95676910425Smrg  -help | --help | --hel | --he | -h)
95776910425Smrg    ac_init_help=long ;;
95876910425Smrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
95976910425Smrg    ac_init_help=recursive ;;
96076910425Smrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
96176910425Smrg    ac_init_help=short ;;
96276910425Smrg
96376910425Smrg  -host | --host | --hos | --ho)
96476910425Smrg    ac_prev=host_alias ;;
96576910425Smrg  -host=* | --host=* | --hos=* | --ho=*)
96676910425Smrg    host_alias=$ac_optarg ;;
96776910425Smrg
968db17cd6dSmrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
969db17cd6dSmrg    ac_prev=htmldir ;;
970db17cd6dSmrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
971db17cd6dSmrg  | --ht=*)
972db17cd6dSmrg    htmldir=$ac_optarg ;;
973db17cd6dSmrg
97476910425Smrg  -includedir | --includedir | --includedi | --included | --include \
97576910425Smrg  | --includ | --inclu | --incl | --inc)
97676910425Smrg    ac_prev=includedir ;;
97776910425Smrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
97876910425Smrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
97976910425Smrg    includedir=$ac_optarg ;;
98076910425Smrg
98176910425Smrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
98276910425Smrg    ac_prev=infodir ;;
98376910425Smrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
98476910425Smrg    infodir=$ac_optarg ;;
98576910425Smrg
98676910425Smrg  -libdir | --libdir | --libdi | --libd)
98776910425Smrg    ac_prev=libdir ;;
98876910425Smrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
98976910425Smrg    libdir=$ac_optarg ;;
99076910425Smrg
99176910425Smrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
99276910425Smrg  | --libexe | --libex | --libe)
99376910425Smrg    ac_prev=libexecdir ;;
99476910425Smrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
99576910425Smrg  | --libexe=* | --libex=* | --libe=*)
99676910425Smrg    libexecdir=$ac_optarg ;;
99776910425Smrg
998db17cd6dSmrg  -localedir | --localedir | --localedi | --localed | --locale)
999db17cd6dSmrg    ac_prev=localedir ;;
1000db17cd6dSmrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1001db17cd6dSmrg    localedir=$ac_optarg ;;
1002db17cd6dSmrg
100376910425Smrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
1004db17cd6dSmrg  | --localstate | --localstat | --localsta | --localst | --locals)
100576910425Smrg    ac_prev=localstatedir ;;
100676910425Smrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1007db17cd6dSmrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
100876910425Smrg    localstatedir=$ac_optarg ;;
100976910425Smrg
101076910425Smrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
101176910425Smrg    ac_prev=mandir ;;
101276910425Smrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
101376910425Smrg    mandir=$ac_optarg ;;
101476910425Smrg
101576910425Smrg  -nfp | --nfp | --nf)
101676910425Smrg    # Obsolete; use --without-fp.
101776910425Smrg    with_fp=no ;;
101876910425Smrg
101976910425Smrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
102076910425Smrg  | --no-cr | --no-c | -n)
102176910425Smrg    no_create=yes ;;
102276910425Smrg
102376910425Smrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
102476910425Smrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
102576910425Smrg    no_recursion=yes ;;
102676910425Smrg
102776910425Smrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
102876910425Smrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
102976910425Smrg  | --oldin | --oldi | --old | --ol | --o)
103076910425Smrg    ac_prev=oldincludedir ;;
103176910425Smrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
103276910425Smrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
103376910425Smrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
103476910425Smrg    oldincludedir=$ac_optarg ;;
103576910425Smrg
103676910425Smrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
103776910425Smrg    ac_prev=prefix ;;
103876910425Smrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
103976910425Smrg    prefix=$ac_optarg ;;
104076910425Smrg
104176910425Smrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
104276910425Smrg  | --program-pre | --program-pr | --program-p)
104376910425Smrg    ac_prev=program_prefix ;;
104476910425Smrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
104576910425Smrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
104676910425Smrg    program_prefix=$ac_optarg ;;
104776910425Smrg
104876910425Smrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
104976910425Smrg  | --program-suf | --program-su | --program-s)
105076910425Smrg    ac_prev=program_suffix ;;
105176910425Smrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
105276910425Smrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
105376910425Smrg    program_suffix=$ac_optarg ;;
105476910425Smrg
105576910425Smrg  -program-transform-name | --program-transform-name \
105676910425Smrg  | --program-transform-nam | --program-transform-na \
105776910425Smrg  | --program-transform-n | --program-transform- \
105876910425Smrg  | --program-transform | --program-transfor \
105976910425Smrg  | --program-transfo | --program-transf \
106076910425Smrg  | --program-trans | --program-tran \
106176910425Smrg  | --progr-tra | --program-tr | --program-t)
106276910425Smrg    ac_prev=program_transform_name ;;
106376910425Smrg  -program-transform-name=* | --program-transform-name=* \
106476910425Smrg  | --program-transform-nam=* | --program-transform-na=* \
106576910425Smrg  | --program-transform-n=* | --program-transform-=* \
106676910425Smrg  | --program-transform=* | --program-transfor=* \
106776910425Smrg  | --program-transfo=* | --program-transf=* \
106876910425Smrg  | --program-trans=* | --program-tran=* \
106976910425Smrg  | --progr-tra=* | --program-tr=* | --program-t=*)
107076910425Smrg    program_transform_name=$ac_optarg ;;
107176910425Smrg
1072db17cd6dSmrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1073db17cd6dSmrg    ac_prev=pdfdir ;;
1074db17cd6dSmrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1075db17cd6dSmrg    pdfdir=$ac_optarg ;;
1076db17cd6dSmrg
1077db17cd6dSmrg  -psdir | --psdir | --psdi | --psd | --ps)
1078db17cd6dSmrg    ac_prev=psdir ;;
1079db17cd6dSmrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1080db17cd6dSmrg    psdir=$ac_optarg ;;
1081db17cd6dSmrg
108276910425Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
108376910425Smrg  | -silent | --silent | --silen | --sile | --sil)
108476910425Smrg    silent=yes ;;
108576910425Smrg
1086a67f45c3Smrg  -runstatedir | --runstatedir | --runstatedi | --runstated \
1087a67f45c3Smrg  | --runstate | --runstat | --runsta | --runst | --runs \
1088a67f45c3Smrg  | --run | --ru | --r)
1089a67f45c3Smrg    ac_prev=runstatedir ;;
1090a67f45c3Smrg  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1091a67f45c3Smrg  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1092a67f45c3Smrg  | --run=* | --ru=* | --r=*)
1093a67f45c3Smrg    runstatedir=$ac_optarg ;;
1094a67f45c3Smrg
109576910425Smrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
109676910425Smrg    ac_prev=sbindir ;;
109776910425Smrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
109876910425Smrg  | --sbi=* | --sb=*)
109976910425Smrg    sbindir=$ac_optarg ;;
110076910425Smrg
110176910425Smrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
110276910425Smrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
110376910425Smrg  | --sharedst | --shareds | --shared | --share | --shar \
110476910425Smrg  | --sha | --sh)
110576910425Smrg    ac_prev=sharedstatedir ;;
110676910425Smrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
110776910425Smrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
110876910425Smrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
110976910425Smrg  | --sha=* | --sh=*)
111076910425Smrg    sharedstatedir=$ac_optarg ;;
111176910425Smrg
111276910425Smrg  -site | --site | --sit)
111376910425Smrg    ac_prev=site ;;
111476910425Smrg  -site=* | --site=* | --sit=*)
111576910425Smrg    site=$ac_optarg ;;
111676910425Smrg
111776910425Smrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
111876910425Smrg    ac_prev=srcdir ;;
111976910425Smrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
112076910425Smrg    srcdir=$ac_optarg ;;
112176910425Smrg
112276910425Smrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
112376910425Smrg  | --syscon | --sysco | --sysc | --sys | --sy)
112476910425Smrg    ac_prev=sysconfdir ;;
112576910425Smrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
112676910425Smrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
112776910425Smrg    sysconfdir=$ac_optarg ;;
112876910425Smrg
112976910425Smrg  -target | --target | --targe | --targ | --tar | --ta | --t)
113076910425Smrg    ac_prev=target_alias ;;
113176910425Smrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
113276910425Smrg    target_alias=$ac_optarg ;;
113376910425Smrg
113476910425Smrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
113576910425Smrg    verbose=yes ;;
113676910425Smrg
113776910425Smrg  -version | --version | --versio | --versi | --vers | -V)
113876910425Smrg    ac_init_version=: ;;
113976910425Smrg
114076910425Smrg  -with-* | --with-*)
1141db17cd6dSmrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
114276910425Smrg    # Reject names that are not valid shell variable names.
1143db17cd6dSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
11448bfe6addSmrg      as_fn_error $? "invalid package name: '$ac_useropt'"
1145db17cd6dSmrg    ac_useropt_orig=$ac_useropt
1146a67f45c3Smrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1147db17cd6dSmrg    case $ac_user_opts in
1148db17cd6dSmrg      *"
1149db17cd6dSmrg"with_$ac_useropt"
1150db17cd6dSmrg"*) ;;
1151db17cd6dSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1152db17cd6dSmrg	 ac_unrecognized_sep=', ';;
115376910425Smrg    esac
1154db17cd6dSmrg    eval with_$ac_useropt=\$ac_optarg ;;
115576910425Smrg
115676910425Smrg  -without-* | --without-*)
1157db17cd6dSmrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
115876910425Smrg    # Reject names that are not valid shell variable names.
1159db17cd6dSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
11608bfe6addSmrg      as_fn_error $? "invalid package name: '$ac_useropt'"
1161db17cd6dSmrg    ac_useropt_orig=$ac_useropt
1162a67f45c3Smrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1163db17cd6dSmrg    case $ac_user_opts in
1164db17cd6dSmrg      *"
1165db17cd6dSmrg"with_$ac_useropt"
1166db17cd6dSmrg"*) ;;
1167db17cd6dSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1168db17cd6dSmrg	 ac_unrecognized_sep=', ';;
1169db17cd6dSmrg    esac
1170db17cd6dSmrg    eval with_$ac_useropt=no ;;
117176910425Smrg
117276910425Smrg  --x)
117376910425Smrg    # Obsolete; use --with-x.
117476910425Smrg    with_x=yes ;;
117576910425Smrg
117676910425Smrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
117776910425Smrg  | --x-incl | --x-inc | --x-in | --x-i)
117876910425Smrg    ac_prev=x_includes ;;
117976910425Smrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
118076910425Smrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
118176910425Smrg    x_includes=$ac_optarg ;;
118276910425Smrg
118376910425Smrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
118476910425Smrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
118576910425Smrg    ac_prev=x_libraries ;;
118676910425Smrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
118776910425Smrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
118876910425Smrg    x_libraries=$ac_optarg ;;
118976910425Smrg
11908bfe6addSmrg  -*) as_fn_error $? "unrecognized option: '$ac_option'
11918bfe6addSmrgTry '$0 --help' for more information"
119276910425Smrg    ;;
119376910425Smrg
119476910425Smrg  *=*)
119576910425Smrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
119676910425Smrg    # Reject names that are not valid shell variable names.
1197482df631Smrg    case $ac_envvar in #(
1198482df631Smrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
11998bfe6addSmrg      as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1200482df631Smrg    esac
1201db17cd6dSmrg    eval $ac_envvar=\$ac_optarg
120276910425Smrg    export $ac_envvar ;;
120376910425Smrg
120476910425Smrg  *)
120576910425Smrg    # FIXME: should be removed in autoconf 3.0.
1206a67f45c3Smrg    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
120776910425Smrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1208a67f45c3Smrg      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1209482df631Smrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
121076910425Smrg    ;;
121176910425Smrg
121276910425Smrg  esac
121376910425Smrgdone
121476910425Smrg
121576910425Smrgif test -n "$ac_prev"; then
121676910425Smrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1217482df631Smrg  as_fn_error $? "missing argument to $ac_option"
121876910425Smrgfi
121976910425Smrg
1220db17cd6dSmrgif test -n "$ac_unrecognized_opts"; then
1221db17cd6dSmrg  case $enable_option_checking in
1222db17cd6dSmrg    no) ;;
1223482df631Smrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1224a67f45c3Smrg    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
122576910425Smrg  esac
1226db17cd6dSmrgfi
122776910425Smrg
1228db17cd6dSmrg# Check all directory arguments for consistency.
1229db17cd6dSmrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1230db17cd6dSmrg		datadir sysconfdir sharedstatedir localstatedir includedir \
1231db17cd6dSmrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1232a67f45c3Smrg		libdir localedir mandir runstatedir
123376910425Smrgdo
1234db17cd6dSmrg  eval ac_val=\$$ac_var
1235db17cd6dSmrg  # Remove trailing slashes.
123676910425Smrg  case $ac_val in
1237db17cd6dSmrg    */ )
1238db17cd6dSmrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1239db17cd6dSmrg      eval $ac_var=\$ac_val;;
1240db17cd6dSmrg  esac
1241db17cd6dSmrg  # Be sure to have absolute directory names.
1242db17cd6dSmrg  case $ac_val in
1243db17cd6dSmrg    [\\/$]* | ?:[\\/]* )  continue;;
1244db17cd6dSmrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
124576910425Smrg  esac
1246482df631Smrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
124776910425Smrgdone
124876910425Smrg
12498bfe6addSmrg# There might be people who depend on the old broken behavior: '$host'
125076910425Smrg# used to hold the argument of --host etc.
125176910425Smrg# FIXME: To remove some day.
125276910425Smrgbuild=$build_alias
125376910425Smrghost=$host_alias
125476910425Smrgtarget=$target_alias
125576910425Smrg
125676910425Smrg# FIXME: To remove some day.
125776910425Smrgif test "x$host_alias" != x; then
125876910425Smrg  if test "x$build_alias" = x; then
125976910425Smrg    cross_compiling=maybe
126076910425Smrg  elif test "x$build_alias" != "x$host_alias"; then
126176910425Smrg    cross_compiling=yes
126276910425Smrg  fi
126376910425Smrgfi
126476910425Smrg
126576910425Smrgac_tool_prefix=
126676910425Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
126776910425Smrg
126876910425Smrgtest "$silent" = yes && exec 6>/dev/null
126976910425Smrg
127076910425Smrg
1271db17cd6dSmrgac_pwd=`pwd` && test -n "$ac_pwd" &&
1272db17cd6dSmrgac_ls_di=`ls -di .` &&
1273db17cd6dSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1274482df631Smrg  as_fn_error $? "working directory cannot be determined"
1275db17cd6dSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1276482df631Smrg  as_fn_error $? "pwd does not report name of working directory"
1277db17cd6dSmrg
1278db17cd6dSmrg
1279db17cd6dSmrg# Find the source files, if location was not specified.
1280db17cd6dSmrgif test -z "$srcdir"; then
1281db17cd6dSmrg  ac_srcdir_defaulted=yes
1282db17cd6dSmrg  # Try the directory containing this script, then the parent directory.
1283db17cd6dSmrg  ac_confdir=`$as_dirname -- "$as_myself" ||
1284db17cd6dSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1285db17cd6dSmrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
1286db17cd6dSmrg	 X"$as_myself" : 'X\(//\)$' \| \
1287db17cd6dSmrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1288a67f45c3Smrgprintf "%s\n" X"$as_myself" |
1289db17cd6dSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1290db17cd6dSmrg	    s//\1/
1291db17cd6dSmrg	    q
1292db17cd6dSmrg	  }
1293db17cd6dSmrg	  /^X\(\/\/\)[^/].*/{
1294db17cd6dSmrg	    s//\1/
1295db17cd6dSmrg	    q
1296db17cd6dSmrg	  }
1297db17cd6dSmrg	  /^X\(\/\/\)$/{
1298db17cd6dSmrg	    s//\1/
1299db17cd6dSmrg	    q
1300db17cd6dSmrg	  }
1301db17cd6dSmrg	  /^X\(\/\).*/{
1302db17cd6dSmrg	    s//\1/
1303db17cd6dSmrg	    q
1304db17cd6dSmrg	  }
1305db17cd6dSmrg	  s/.*/./; q'`
130676910425Smrg  srcdir=$ac_confdir
1307db17cd6dSmrg  if test ! -r "$srcdir/$ac_unique_file"; then
130876910425Smrg    srcdir=..
130976910425Smrg  fi
131076910425Smrgelse
131176910425Smrg  ac_srcdir_defaulted=no
131276910425Smrgfi
1313db17cd6dSmrgif test ! -r "$srcdir/$ac_unique_file"; then
1314db17cd6dSmrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1315482df631Smrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
131676910425Smrgfi
13178bfe6addSmrgac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1318db17cd6dSmrgac_abs_confdir=`(
1319482df631Smrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1320db17cd6dSmrg	pwd)`
1321db17cd6dSmrg# When building in place, set srcdir=.
1322db17cd6dSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then
1323db17cd6dSmrg  srcdir=.
1324db17cd6dSmrgfi
1325db17cd6dSmrg# Remove unnecessary trailing slashes from srcdir.
1326db17cd6dSmrg# Double slashes in file names in object file debugging info
1327db17cd6dSmrg# mess up M-x gdb in Emacs.
1328db17cd6dSmrgcase $srcdir in
1329db17cd6dSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1330db17cd6dSmrgesac
1331db17cd6dSmrgfor ac_var in $ac_precious_vars; do
1332db17cd6dSmrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1333db17cd6dSmrg  eval ac_env_${ac_var}_value=\$${ac_var}
1334db17cd6dSmrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1335db17cd6dSmrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1336db17cd6dSmrgdone
133776910425Smrg
133876910425Smrg#
133976910425Smrg# Report the --help message.
134076910425Smrg#
134176910425Smrgif test "$ac_init_help" = "long"; then
134276910425Smrg  # Omit some internal or obsolete options to make the list less imposing.
134376910425Smrg  # This message is too long to be a string in the A/UX 3.1 sh.
134476910425Smrg  cat <<_ACEOF
13458bfe6addSmrg'configure' configures xkbevd 1.1.6 to adapt to many kinds of systems.
134676910425Smrg
134776910425SmrgUsage: $0 [OPTION]... [VAR=VALUE]...
134876910425Smrg
134976910425SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
135076910425SmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
135176910425Smrg
135276910425SmrgDefaults for the options are specified in brackets.
135376910425Smrg
135476910425SmrgConfiguration:
135576910425Smrg  -h, --help              display this help and exit
135676910425Smrg      --help=short        display options specific to this package
135776910425Smrg      --help=recursive    display the short help of all the included packages
135876910425Smrg  -V, --version           display version information and exit
13598bfe6addSmrg  -q, --quiet, --silent   do not print 'checking ...' messages
136076910425Smrg      --cache-file=FILE   cache test results in FILE [disabled]
13618bfe6addSmrg  -C, --config-cache      alias for '--cache-file=config.cache'
136276910425Smrg  -n, --no-create         do not create output files
13638bfe6addSmrg      --srcdir=DIR        find the sources in DIR [configure dir or '..']
136476910425Smrg
136576910425SmrgInstallation directories:
136676910425Smrg  --prefix=PREFIX         install architecture-independent files in PREFIX
1367db17cd6dSmrg                          [$ac_default_prefix]
136876910425Smrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1369db17cd6dSmrg                          [PREFIX]
137076910425Smrg
13718bfe6addSmrgBy default, 'make install' will install all the files in
13728bfe6addSmrg'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc.  You can specify
13738bfe6addSmrgan installation prefix other than '$ac_default_prefix' using '--prefix',
13748bfe6addSmrgfor instance '--prefix=\$HOME'.
137576910425Smrg
137676910425SmrgFor better control, use the options below.
137776910425Smrg
137876910425SmrgFine tuning of the installation directories:
1379db17cd6dSmrg  --bindir=DIR            user executables [EPREFIX/bin]
1380db17cd6dSmrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1381db17cd6dSmrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
1382db17cd6dSmrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1383db17cd6dSmrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1384db17cd6dSmrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1385a67f45c3Smrg  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1386db17cd6dSmrg  --libdir=DIR            object code libraries [EPREFIX/lib]
1387db17cd6dSmrg  --includedir=DIR        C header files [PREFIX/include]
1388db17cd6dSmrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1389db17cd6dSmrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1390db17cd6dSmrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1391db17cd6dSmrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
1392db17cd6dSmrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1393db17cd6dSmrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
1394db17cd6dSmrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/xkbevd]
1395db17cd6dSmrg  --htmldir=DIR           html documentation [DOCDIR]
1396db17cd6dSmrg  --dvidir=DIR            dvi documentation [DOCDIR]
1397db17cd6dSmrg  --pdfdir=DIR            pdf documentation [DOCDIR]
1398db17cd6dSmrg  --psdir=DIR             ps documentation [DOCDIR]
139976910425Smrg_ACEOF
140076910425Smrg
140176910425Smrg  cat <<\_ACEOF
140276910425Smrg
140376910425SmrgProgram names:
140476910425Smrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
140576910425Smrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
140676910425Smrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
140776910425Smrg
140876910425SmrgSystem types:
140976910425Smrg  --build=BUILD     configure for building on BUILD [guessed]
141076910425Smrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
141176910425Smrg_ACEOF
141276910425Smrgfi
141376910425Smrg
141476910425Smrgif test -n "$ac_init_help"; then
141576910425Smrg  case $ac_init_help in
14168bfe6addSmrg     short | recursive ) echo "Configuration of xkbevd 1.1.6:";;
141776910425Smrg   esac
141876910425Smrg  cat <<\_ACEOF
141976910425Smrg
142076910425SmrgOptional Features:
1421db17cd6dSmrg  --disable-option-checking  ignore unrecognized --enable/--with options
142276910425Smrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
142376910425Smrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
14249ff100acSmrg  --enable-silent-rules   less verbose build output (undo: "make V=1")
14259ff100acSmrg  --disable-silent-rules  verbose build output (undo: "make V=0")
14269ff100acSmrg  --enable-dependency-tracking
14279ff100acSmrg                          do not reject slow dependency extractors
14289ff100acSmrg  --disable-dependency-tracking
14299ff100acSmrg                          speeds up one-time build
14309ff100acSmrg  --disable-selective-werror
14319ff100acSmrg                          Turn off selective compiler errors. (default:
14329ff100acSmrg                          enabled)
1433db17cd6dSmrg  --enable-strict-compilation
1434db17cd6dSmrg                          Enable all warnings from compiler and make them
1435db17cd6dSmrg                          errors (default: disabled)
143676910425Smrg
143776910425SmrgSome influential environment variables:
143876910425Smrg  CC          C compiler command
143976910425Smrg  CFLAGS      C compiler flags
144076910425Smrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
144176910425Smrg              nonstandard directory <lib dir>
1442db17cd6dSmrg  LIBS        libraries to pass to the linker, e.g. -l<library>
1443482df631Smrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1444db17cd6dSmrg              you have headers in a nonstandard directory <include dir>
144576910425Smrg  PKG_CONFIG  path to pkg-config utility
1446a67f45c3Smrg  PKG_CONFIG_PATH
1447a67f45c3Smrg              directories to add to pkg-config's search path
1448a67f45c3Smrg  PKG_CONFIG_LIBDIR
1449a67f45c3Smrg              path overriding pkg-config's built-in search path
14508bfe6addSmrg  YACC        The 'Yet Another Compiler Compiler' implementation to use.
14518bfe6addSmrg              Defaults to the first program found out of: 'bison -y', 'byacc',
14528bfe6addSmrg              'yacc'.
14539ff100acSmrg  YFLAGS      The list of arguments that will be passed by default to $YACC.
14549ff100acSmrg              This script will default YFLAGS to the empty string to avoid a
14558bfe6addSmrg              default value of '-d' given by some make applications.
145676910425Smrg  XKBEVD_CFLAGS
145776910425Smrg              C compiler flags for XKBEVD, overriding pkg-config
145876910425Smrg  XKBEVD_LIBS linker flags for XKBEVD, overriding pkg-config
145976910425Smrg
14608bfe6addSmrgUse these variables to override the choices made by 'configure' or to help
146176910425Smrgit to find libraries and programs with nonstandard names/locations.
146276910425Smrg
1463a67f45c3SmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/xkbevd/-/issues>.
146476910425Smrg_ACEOF
1465db17cd6dSmrgac_status=$?
146676910425Smrgfi
146776910425Smrg
146876910425Smrgif test "$ac_init_help" = "recursive"; then
146976910425Smrg  # If there are subdirs, report their specific --help.
147076910425Smrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1471db17cd6dSmrg    test -d "$ac_dir" ||
1472db17cd6dSmrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1473db17cd6dSmrg      continue
147476910425Smrg    ac_builddir=.
147576910425Smrg
1476db17cd6dSmrgcase "$ac_dir" in
1477db17cd6dSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478db17cd6dSmrg*)
1479a67f45c3Smrg  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1480db17cd6dSmrg  # A ".." for each directory in $ac_dir_suffix.
1481a67f45c3Smrg  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1482db17cd6dSmrg  case $ac_top_builddir_sub in
1483db17cd6dSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484db17cd6dSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1485db17cd6dSmrg  esac ;;
1486db17cd6dSmrgesac
1487db17cd6dSmrgac_abs_top_builddir=$ac_pwd
1488db17cd6dSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
1489db17cd6dSmrg# for backward compatibility:
1490db17cd6dSmrgac_top_builddir=$ac_top_build_prefix
149176910425Smrg
149276910425Smrgcase $srcdir in
1493db17cd6dSmrg  .)  # We are building in place.
149476910425Smrg    ac_srcdir=.
1495db17cd6dSmrg    ac_top_srcdir=$ac_top_builddir_sub
1496db17cd6dSmrg    ac_abs_top_srcdir=$ac_pwd ;;
1497db17cd6dSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
149876910425Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
1499db17cd6dSmrg    ac_top_srcdir=$srcdir
1500db17cd6dSmrg    ac_abs_top_srcdir=$srcdir ;;
1501db17cd6dSmrg  *) # Relative name.
1502db17cd6dSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1503db17cd6dSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
1504db17cd6dSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
150576910425Smrgesac
1506db17cd6dSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1507db17cd6dSmrg
1508db17cd6dSmrg    cd "$ac_dir" || { ac_status=$?; continue; }
1509a67f45c3Smrg    # Check for configure.gnu first; this name is used for a wrapper for
1510a67f45c3Smrg    # Metaconfig's "Configure" on case-insensitive file systems.
1511db17cd6dSmrg    if test -f "$ac_srcdir/configure.gnu"; then
1512db17cd6dSmrg      echo &&
1513db17cd6dSmrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1514db17cd6dSmrg    elif test -f "$ac_srcdir/configure"; then
1515db17cd6dSmrg      echo &&
1516db17cd6dSmrg      $SHELL "$ac_srcdir/configure" --help=recursive
151776910425Smrg    else
1518a67f45c3Smrg      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1519db17cd6dSmrg    fi || ac_status=$?
1520db17cd6dSmrg    cd "$ac_pwd" || { ac_status=$?; break; }
152176910425Smrg  done
152276910425Smrgfi
152376910425Smrg
1524db17cd6dSmrgtest -n "$ac_init_help" && exit $ac_status
152576910425Smrgif $ac_init_version; then
152676910425Smrg  cat <<\_ACEOF
15278bfe6addSmrgxkbevd configure 1.1.6
15288bfe6addSmrggenerated by GNU Autoconf 2.72
152976910425Smrg
15308bfe6addSmrgCopyright (C) 2023 Free Software Foundation, Inc.
153176910425SmrgThis configure script is free software; the Free Software Foundation
153276910425Smrggives unlimited permission to copy, distribute and modify it.
153376910425Smrg_ACEOF
1534db17cd6dSmrg  exit
153576910425Smrgfi
153676910425Smrg
1537482df631Smrg## ------------------------ ##
1538482df631Smrg## Autoconf initialization. ##
1539482df631Smrg## ------------------------ ##
154076910425Smrg
1541482df631Smrg# ac_fn_c_try_compile LINENO
1542482df631Smrg# --------------------------
1543482df631Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
1544482df631Smrgac_fn_c_try_compile ()
154576910425Smrg{
1546482df631Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1547a67f45c3Smrg  rm -f conftest.$ac_objext conftest.beam
1548482df631Smrg  if { { ac_try="$ac_compile"
1549482df631Smrgcase "(($ac_try" in
1550482df631Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1551482df631Smrg  *) ac_try_echo=$ac_try;;
1552482df631Smrgesac
1553482df631Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1554a67f45c3Smrgprintf "%s\n" "$ac_try_echo"; } >&5
1555482df631Smrg  (eval "$ac_compile") 2>conftest.err
1556482df631Smrg  ac_status=$?
1557482df631Smrg  if test -s conftest.err; then
1558482df631Smrg    grep -v '^ *+' conftest.err >conftest.er1
1559482df631Smrg    cat conftest.er1 >&5
1560482df631Smrg    mv -f conftest.er1 conftest.err
1561482df631Smrg  fi
1562a67f45c3Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1563482df631Smrg  test $ac_status = 0; } && {
1564482df631Smrg	 test -z "$ac_c_werror_flag" ||
1565482df631Smrg	 test ! -s conftest.err
1566a67f45c3Smrg       } && test -s conftest.$ac_objext
1567a67f45c3Smrgthen :
1568482df631Smrg  ac_retval=0
15698bfe6addSmrgelse case e in #(
15708bfe6addSmrg  e) printf "%s\n" "$as_me: failed program was:" >&5
1571482df631Smrgsed 's/^/| /' conftest.$ac_ext >&5
157276910425Smrg
15738bfe6addSmrg	ac_retval=1 ;;
15748bfe6addSmrgesac
1575482df631Smrgfi
1576482df631Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1577482df631Smrg  as_fn_set_status $ac_retval
1578482df631Smrg
1579482df631Smrg} # ac_fn_c_try_compile
1580482df631Smrg
1581a67f45c3Smrg# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1582a67f45c3Smrg# ------------------------------------------------------------------
1583482df631Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1584a67f45c3Smrg# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1585a67f45c3Smrgac_fn_check_decl ()
1586482df631Smrg{
1587482df631Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588482df631Smrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
1589a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1590a67f45c3Smrgprintf %s "checking whether $as_decl_name is declared... " >&6; }
1591a67f45c3Smrgif eval test \${$3+y}
1592a67f45c3Smrgthen :
1593a67f45c3Smrg  printf %s "(cached) " >&6
15948bfe6addSmrgelse case e in #(
15958bfe6addSmrg  e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1596a67f45c3Smrg  eval ac_save_FLAGS=\$$6
1597a67f45c3Smrg  as_fn_append $6 " $5"
1598482df631Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1599482df631Smrg/* end confdefs.h.  */
1600482df631Smrg$4
1601482df631Smrgint
1602a67f45c3Smrgmain (void)
1603482df631Smrg{
1604482df631Smrg#ifndef $as_decl_name
1605482df631Smrg#ifdef __cplusplus
1606482df631Smrg  (void) $as_decl_use;
1607482df631Smrg#else
1608482df631Smrg  (void) $as_decl_name;
1609482df631Smrg#endif
1610482df631Smrg#endif
1611482df631Smrg
1612482df631Smrg  ;
1613482df631Smrg  return 0;
1614482df631Smrg}
1615482df631Smrg_ACEOF
1616a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
1617a67f45c3Smrgthen :
1618482df631Smrg  eval "$3=yes"
16198bfe6addSmrgelse case e in #(
16208bfe6addSmrg  e) eval "$3=no" ;;
16218bfe6addSmrgesac
1622482df631Smrgfi
1623a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1624a67f45c3Smrg  eval $6=\$ac_save_FLAGS
16258bfe6addSmrg ;;
16268bfe6addSmrgesac
1627482df631Smrgfi
1628a67f45c3Smrgeval ac_res=\$$3
1629a67f45c3Smrg	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1630a67f45c3Smrgprintf "%s\n" "$ac_res" >&6; }
1631482df631Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1632482df631Smrg
1633a67f45c3Smrg} # ac_fn_check_decl
1634482df631Smrg
1635482df631Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1636482df631Smrg# -------------------------------------------------------
1637482df631Smrg# Tests whether HEADER exists and can be compiled using the include files in
1638482df631Smrg# INCLUDES, setting the cache variable VAR accordingly.
1639482df631Smrgac_fn_c_check_header_compile ()
1640482df631Smrg{
1641482df631Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1643a67f45c3Smrgprintf %s "checking for $2... " >&6; }
1644a67f45c3Smrgif eval test \${$3+y}
1645a67f45c3Smrgthen :
1646a67f45c3Smrg  printf %s "(cached) " >&6
16478bfe6addSmrgelse case e in #(
16488bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1649482df631Smrg/* end confdefs.h.  */
1650482df631Smrg$4
1651482df631Smrg#include <$2>
1652482df631Smrg_ACEOF
1653a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
1654a67f45c3Smrgthen :
1655482df631Smrg  eval "$3=yes"
16568bfe6addSmrgelse case e in #(
16578bfe6addSmrg  e) eval "$3=no" ;;
16588bfe6addSmrgesac
1659482df631Smrgfi
16608bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16618bfe6addSmrgesac
1662482df631Smrgfi
1663482df631Smrgeval ac_res=\$$3
1664a67f45c3Smrg	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1665a67f45c3Smrgprintf "%s\n" "$ac_res" >&6; }
1666482df631Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667482df631Smrg
1668482df631Smrg} # ac_fn_c_check_header_compile
16699ff100acSmrg
16709ff100acSmrg# ac_fn_c_try_link LINENO
16719ff100acSmrg# -----------------------
16729ff100acSmrg# Try to link conftest.$ac_ext, and return whether this succeeded.
16739ff100acSmrgac_fn_c_try_link ()
16749ff100acSmrg{
16759ff100acSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676a67f45c3Smrg  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
16779ff100acSmrg  if { { ac_try="$ac_link"
16789ff100acSmrgcase "(($ac_try" in
16799ff100acSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16809ff100acSmrg  *) ac_try_echo=$ac_try;;
16819ff100acSmrgesac
16829ff100acSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683a67f45c3Smrgprintf "%s\n" "$ac_try_echo"; } >&5
16849ff100acSmrg  (eval "$ac_link") 2>conftest.err
16859ff100acSmrg  ac_status=$?
16869ff100acSmrg  if test -s conftest.err; then
16879ff100acSmrg    grep -v '^ *+' conftest.err >conftest.er1
16889ff100acSmrg    cat conftest.er1 >&5
16899ff100acSmrg    mv -f conftest.er1 conftest.err
16909ff100acSmrg  fi
1691a67f45c3Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16929ff100acSmrg  test $ac_status = 0; } && {
16939ff100acSmrg	 test -z "$ac_c_werror_flag" ||
16949ff100acSmrg	 test ! -s conftest.err
16959ff100acSmrg       } && test -s conftest$ac_exeext && {
16969ff100acSmrg	 test "$cross_compiling" = yes ||
16979ff100acSmrg	 test -x conftest$ac_exeext
1698a67f45c3Smrg       }
1699a67f45c3Smrgthen :
17009ff100acSmrg  ac_retval=0
17018bfe6addSmrgelse case e in #(
17028bfe6addSmrg  e) printf "%s\n" "$as_me: failed program was:" >&5
17039ff100acSmrgsed 's/^/| /' conftest.$ac_ext >&5
17049ff100acSmrg
17058bfe6addSmrg	ac_retval=1 ;;
17068bfe6addSmrgesac
17079ff100acSmrgfi
17089ff100acSmrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
17099ff100acSmrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
17109ff100acSmrg  # interfere with the next link command; also delete a directory that is
17119ff100acSmrg  # left behind by Apple's compiler.  We do this before executing the actions.
17129ff100acSmrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
17139ff100acSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17149ff100acSmrg  as_fn_set_status $ac_retval
17159ff100acSmrg
17169ff100acSmrg} # ac_fn_c_try_link
1717a67f45c3Smrgac_configure_args_raw=
1718a67f45c3Smrgfor ac_arg
1719a67f45c3Smrgdo
1720a67f45c3Smrg  case $ac_arg in
1721a67f45c3Smrg  *\'*)
1722a67f45c3Smrg    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1723a67f45c3Smrg  esac
1724a67f45c3Smrg  as_fn_append ac_configure_args_raw " '$ac_arg'"
1725a67f45c3Smrgdone
1726a67f45c3Smrg
1727a67f45c3Smrgcase $ac_configure_args_raw in
1728a67f45c3Smrg  *$as_nl*)
1729a67f45c3Smrg    ac_safe_unquote= ;;
1730a67f45c3Smrg  *)
1731a67f45c3Smrg    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1732a67f45c3Smrg    ac_unsafe_a="$ac_unsafe_z#~"
1733a67f45c3Smrg    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1734a67f45c3Smrg    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1735a67f45c3Smrgesac
1736a67f45c3Smrg
1737482df631Smrgcat >config.log <<_ACEOF
1738482df631SmrgThis file contains any messages produced by compilers while
1739482df631Smrgrunning configure, to aid debugging if configure makes a mistake.
1740482df631Smrg
17418bfe6addSmrgIt was created by xkbevd $as_me 1.1.6, which was
17428bfe6addSmrggenerated by GNU Autoconf 2.72.  Invocation command line was
1743482df631Smrg
1744a67f45c3Smrg  $ $0$ac_configure_args_raw
1745482df631Smrg
1746482df631Smrg_ACEOF
1747482df631Smrgexec 5>>config.log
1748482df631Smrg{
1749482df631Smrgcat <<_ASUNAME
1750482df631Smrg## --------- ##
1751482df631Smrg## Platform. ##
1752482df631Smrg## --------- ##
1753482df631Smrg
1754482df631Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1755482df631Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
1756482df631Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
1757482df631Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
1758482df631Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
175976910425Smrg
176076910425Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
176176910425Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
176276910425Smrg
176376910425Smrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
176476910425Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
176576910425Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1766db17cd6dSmrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
176776910425Smrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
176876910425Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
176976910425Smrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
177076910425Smrg
177176910425Smrg_ASUNAME
177276910425Smrg
177376910425Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
177476910425Smrgfor as_dir in $PATH
177576910425Smrgdo
177676910425Smrg  IFS=$as_save_IFS
1777a67f45c3Smrg  case $as_dir in #(((
1778a67f45c3Smrg    '') as_dir=./ ;;
1779a67f45c3Smrg    */) ;;
1780a67f45c3Smrg    *) as_dir=$as_dir/ ;;
1781a67f45c3Smrg  esac
1782a67f45c3Smrg    printf "%s\n" "PATH: $as_dir"
1783482df631Smrg  done
1784db17cd6dSmrgIFS=$as_save_IFS
178576910425Smrg
178676910425Smrg} >&5
178776910425Smrg
178876910425Smrgcat >&5 <<_ACEOF
178976910425Smrg
179076910425Smrg
179176910425Smrg## ----------- ##
179276910425Smrg## Core tests. ##
179376910425Smrg## ----------- ##
179476910425Smrg
179576910425Smrg_ACEOF
179676910425Smrg
179776910425Smrg
179876910425Smrg# Keep a trace of the command line.
179976910425Smrg# Strip out --no-create and --no-recursion so they do not pile up.
180076910425Smrg# Strip out --silent because we don't want to record it for future runs.
180176910425Smrg# Also quote any args containing shell meta-characters.
180276910425Smrg# Make two passes to allow for proper duplicate-argument suppression.
180376910425Smrgac_configure_args=
180476910425Smrgac_configure_args0=
180576910425Smrgac_configure_args1=
180676910425Smrgac_must_keep_next=false
180776910425Smrgfor ac_pass in 1 2
180876910425Smrgdo
180976910425Smrg  for ac_arg
181076910425Smrg  do
181176910425Smrg    case $ac_arg in
181276910425Smrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
181376910425Smrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
181476910425Smrg    | -silent | --silent | --silen | --sile | --sil)
181576910425Smrg      continue ;;
1816db17cd6dSmrg    *\'*)
1817a67f45c3Smrg      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
181876910425Smrg    esac
181976910425Smrg    case $ac_pass in
1820482df631Smrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
182176910425Smrg    2)
1822482df631Smrg      as_fn_append ac_configure_args1 " '$ac_arg'"
182376910425Smrg      if test $ac_must_keep_next = true; then
182476910425Smrg	ac_must_keep_next=false # Got value, back to normal.
182576910425Smrg      else
182676910425Smrg	case $ac_arg in
182776910425Smrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
182876910425Smrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
182976910425Smrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
183076910425Smrg	  | -with-* | --with-* | -without-* | --without-* | --x)
183176910425Smrg	    case "$ac_configure_args0 " in
183276910425Smrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
183376910425Smrg	    esac
183476910425Smrg	    ;;
183576910425Smrg	  -* ) ac_must_keep_next=true ;;
183676910425Smrg	esac
183776910425Smrg      fi
1838482df631Smrg      as_fn_append ac_configure_args " '$ac_arg'"
183976910425Smrg      ;;
184076910425Smrg    esac
184176910425Smrg  done
184276910425Smrgdone
1843482df631Smrg{ ac_configure_args0=; unset ac_configure_args0;}
1844482df631Smrg{ ac_configure_args1=; unset ac_configure_args1;}
184576910425Smrg
184676910425Smrg# When interrupted or exit'd, cleanup temporary files, and complete
184776910425Smrg# config.log.  We remove comments because anyway the quotes in there
184876910425Smrg# would cause problems or look ugly.
1849db17cd6dSmrg# WARNING: Use '\'' to represent an apostrophe within the trap.
1850db17cd6dSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
185176910425Smrgtrap 'exit_status=$?
1852a67f45c3Smrg  # Sanitize IFS.
1853a67f45c3Smrg  IFS=" ""	$as_nl"
185476910425Smrg  # Save into config.log some information that might help in debugging.
185576910425Smrg  {
185676910425Smrg    echo
185776910425Smrg
1858a67f45c3Smrg    printf "%s\n" "## ---------------- ##
185976910425Smrg## Cache variables. ##
1860482df631Smrg## ---------------- ##"
186176910425Smrg    echo
186276910425Smrg    # The following way of writing the cache mishandles newlines in values,
1863db17cd6dSmrg(
1864db17cd6dSmrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1865db17cd6dSmrg    eval ac_val=\$$ac_var
1866db17cd6dSmrg    case $ac_val in #(
1867db17cd6dSmrg    *${as_nl}*)
1868db17cd6dSmrg      case $ac_var in #(
1869a67f45c3Smrg      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1870a67f45c3Smrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1871db17cd6dSmrg      esac
1872db17cd6dSmrg      case $ac_var in #(
1873db17cd6dSmrg      _ | IFS | as_nl) ;; #(
1874db17cd6dSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1875482df631Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
1876db17cd6dSmrg      esac ;;
1877db17cd6dSmrg    esac
1878db17cd6dSmrg  done
187976910425Smrg  (set) 2>&1 |
1880db17cd6dSmrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1881db17cd6dSmrg    *${as_nl}ac_space=\ *)
188276910425Smrg      sed -n \
1883db17cd6dSmrg	"s/'\''/'\''\\\\'\'''\''/g;
1884db17cd6dSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1885db17cd6dSmrg      ;; #(
188676910425Smrg    *)
1887db17cd6dSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
188876910425Smrg      ;;
1889db17cd6dSmrg    esac |
1890db17cd6dSmrg    sort
1891db17cd6dSmrg)
189276910425Smrg    echo
189376910425Smrg
1894a67f45c3Smrg    printf "%s\n" "## ----------------- ##
189576910425Smrg## Output variables. ##
1896482df631Smrg## ----------------- ##"
189776910425Smrg    echo
189876910425Smrg    for ac_var in $ac_subst_vars
189976910425Smrg    do
1900db17cd6dSmrg      eval ac_val=\$$ac_var
1901db17cd6dSmrg      case $ac_val in
1902a67f45c3Smrg      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1903db17cd6dSmrg      esac
1904a67f45c3Smrg      printf "%s\n" "$ac_var='\''$ac_val'\''"
190576910425Smrg    done | sort
190676910425Smrg    echo
190776910425Smrg
190876910425Smrg    if test -n "$ac_subst_files"; then
1909a67f45c3Smrg      printf "%s\n" "## ------------------- ##
1910db17cd6dSmrg## File substitutions. ##
1911482df631Smrg## ------------------- ##"
191276910425Smrg      echo
191376910425Smrg      for ac_var in $ac_subst_files
191476910425Smrg      do
1915db17cd6dSmrg	eval ac_val=\$$ac_var
1916db17cd6dSmrg	case $ac_val in
1917a67f45c3Smrg	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1918db17cd6dSmrg	esac
1919a67f45c3Smrg	printf "%s\n" "$ac_var='\''$ac_val'\''"
192076910425Smrg      done | sort
192176910425Smrg      echo
192276910425Smrg    fi
192376910425Smrg
192476910425Smrg    if test -s confdefs.h; then
1925a67f45c3Smrg      printf "%s\n" "## ----------- ##
192676910425Smrg## confdefs.h. ##
1927482df631Smrg## ----------- ##"
192876910425Smrg      echo
1929db17cd6dSmrg      cat confdefs.h
193076910425Smrg      echo
193176910425Smrg    fi
193276910425Smrg    test "$ac_signal" != 0 &&
1933a67f45c3Smrg      printf "%s\n" "$as_me: caught signal $ac_signal"
1934a67f45c3Smrg    printf "%s\n" "$as_me: exit $exit_status"
193576910425Smrg  } >&5
1936db17cd6dSmrg  rm -f core *.core core.conftest.* &&
1937db17cd6dSmrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
193876910425Smrg    exit $exit_status
1939db17cd6dSmrg' 0
194076910425Smrgfor ac_signal in 1 2 13 15; do
1941482df631Smrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
194276910425Smrgdone
194376910425Smrgac_signal=0
194476910425Smrg
194576910425Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
1946db17cd6dSmrgrm -f -r conftest* confdefs.h
194776910425Smrg
1948a67f45c3Smrgprintf "%s\n" "/* confdefs.h */" > confdefs.h
1949482df631Smrg
195076910425Smrg# Predefined preprocessor variables.
195176910425Smrg
1952a67f45c3Smrgprintf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
195376910425Smrg
1954a67f45c3Smrgprintf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
195576910425Smrg
1956a67f45c3Smrgprintf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
195776910425Smrg
1958a67f45c3Smrgprintf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
195976910425Smrg
1960a67f45c3Smrgprintf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
196176910425Smrg
1962a67f45c3Smrgprintf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1963482df631Smrg
196476910425Smrg
196576910425Smrg# Let the site file select an alternate cache file if it wants to.
1966db17cd6dSmrg# Prefer an explicitly selected file to automatically selected ones.
1967db17cd6dSmrgif test -n "$CONFIG_SITE"; then
1968a67f45c3Smrg  ac_site_files="$CONFIG_SITE"
1969db17cd6dSmrgelif test "x$prefix" != xNONE; then
1970a67f45c3Smrg  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1971db17cd6dSmrgelse
1972a67f45c3Smrg  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
197376910425Smrgfi
1974a67f45c3Smrg
1975a67f45c3Smrgfor ac_site_file in $ac_site_files
1976db17cd6dSmrgdo
1977a67f45c3Smrg  case $ac_site_file in #(
1978a67f45c3Smrg  */*) :
1979a67f45c3Smrg     ;; #(
1980a67f45c3Smrg  *) :
1981a67f45c3Smrg    ac_site_file=./$ac_site_file ;;
1982a67f45c3Smrgesac
1983a67f45c3Smrg  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1984a67f45c3Smrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1985a67f45c3Smrgprintf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
198676910425Smrg    sed 's/^/| /' "$ac_site_file" >&5
1987482df631Smrg    . "$ac_site_file" \
19888bfe6addSmrg      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
19898bfe6addSmrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1990482df631Smrgas_fn_error $? "failed to load site script $ac_site_file
19918bfe6addSmrgSee 'config.log' for more details" "$LINENO" 5; }
199276910425Smrg  fi
199376910425Smrgdone
199476910425Smrg
199576910425Smrgif test -r "$cache_file"; then
1996482df631Smrg  # Some versions of bash will fail to source /dev/null (special files
1997482df631Smrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1998482df631Smrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1999a67f45c3Smrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2000a67f45c3Smrgprintf "%s\n" "$as_me: loading cache $cache_file" >&6;}
200176910425Smrg    case $cache_file in
2002db17cd6dSmrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2003db17cd6dSmrg      *)                      . "./$cache_file";;
200476910425Smrg    esac
200576910425Smrg  fi
200676910425Smrgelse
2007a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2008a67f45c3Smrgprintf "%s\n" "$as_me: creating cache $cache_file" >&6;}
200976910425Smrg  >$cache_file
201076910425Smrgfi
201176910425Smrg
2012a67f45c3Smrg# Test code for whether the C compiler supports C89 (global declarations)
2013a67f45c3Smrgac_c_conftest_c89_globals='
2014a67f45c3Smrg/* Does the compiler advertise C89 conformance?
2015a67f45c3Smrg   Do not test the value of __STDC__, because some compilers set it to 0
2016a67f45c3Smrg   while being otherwise adequately conformant. */
2017a67f45c3Smrg#if !defined __STDC__
2018a67f45c3Smrg# error "Compiler does not advertise C89 conformance"
2019a67f45c3Smrg#endif
202076910425Smrg
2021a67f45c3Smrg#include <stddef.h>
2022a67f45c3Smrg#include <stdarg.h>
2023a67f45c3Smrgstruct stat;
2024a67f45c3Smrg/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2025a67f45c3Smrgstruct buf { int x; };
2026a67f45c3Smrgstruct buf * (*rcsopen) (struct buf *, struct stat *, int);
20278bfe6addSmrgstatic char *e (char **p, int i)
2028a67f45c3Smrg{
2029a67f45c3Smrg  return p[i];
2030a67f45c3Smrg}
2031a67f45c3Smrgstatic char *f (char * (*g) (char **, int), char **p, ...)
2032a67f45c3Smrg{
2033a67f45c3Smrg  char *s;
2034a67f45c3Smrg  va_list v;
2035a67f45c3Smrg  va_start (v,p);
2036a67f45c3Smrg  s = g (p, va_arg (v,int));
2037a67f45c3Smrg  va_end (v);
2038a67f45c3Smrg  return s;
2039a67f45c3Smrg}
20409ff100acSmrg
20418bfe6addSmrg/* C89 style stringification. */
20428bfe6addSmrg#define noexpand_stringify(a) #a
20438bfe6addSmrgconst char *stringified = noexpand_stringify(arbitrary+token=sequence);
20448bfe6addSmrg
20458bfe6addSmrg/* C89 style token pasting.  Exercises some of the corner cases that
20468bfe6addSmrg   e.g. old MSVC gets wrong, but not very hard. */
20478bfe6addSmrg#define noexpand_concat(a,b) a##b
20488bfe6addSmrg#define expand_concat(a,b) noexpand_concat(a,b)
20498bfe6addSmrgextern int vA;
20508bfe6addSmrgextern int vbee;
20518bfe6addSmrg#define aye A
20528bfe6addSmrg#define bee B
20538bfe6addSmrgint *pvA = &expand_concat(v,aye);
20548bfe6addSmrgint *pvbee = &noexpand_concat(v,bee);
20558bfe6addSmrg
2056a67f45c3Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2057a67f45c3Smrg   function prototypes and stuff, but not \xHH hex character constants.
2058a67f45c3Smrg   These do not provoke an error unfortunately, instead are silently treated
2059a67f45c3Smrg   as an "x".  The following induces an error, until -std is added to get
2060a67f45c3Smrg   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2061a67f45c3Smrg   array size at least.  It is necessary to write \x00 == 0 to get something
2062a67f45c3Smrg   that is true only with -std.  */
2063a67f45c3Smrgint osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
20649ff100acSmrg
2065a67f45c3Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2066a67f45c3Smrg   inside strings and character constants.  */
2067a67f45c3Smrg#define FOO(x) '\''x'\''
2068a67f45c3Smrgint xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
20699ff100acSmrg
2070a67f45c3Smrgint test (int i, double x);
2071a67f45c3Smrgstruct s1 {int (*f) (int a);};
2072a67f45c3Smrgstruct s2 {int (*f) (double a);};
2073a67f45c3Smrgint pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2074a67f45c3Smrg               int, int);'
207576910425Smrg
2076a67f45c3Smrg# Test code for whether the C compiler supports C89 (body of main).
2077a67f45c3Smrgac_c_conftest_c89_main='
2078a67f45c3Smrgok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2079a67f45c3Smrg'
2080db17cd6dSmrg
2081a67f45c3Smrg# Test code for whether the C compiler supports C99 (global declarations)
2082a67f45c3Smrgac_c_conftest_c99_globals='
20838bfe6addSmrg/* Does the compiler advertise C99 conformance? */
2084a67f45c3Smrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2085a67f45c3Smrg# error "Compiler does not advertise C99 conformance"
2086a67f45c3Smrg#endif
2087db17cd6dSmrg
20888bfe6addSmrg// See if C++-style comments work.
20898bfe6addSmrg
2090a67f45c3Smrg#include <stdbool.h>
2091a67f45c3Smrgextern int puts (const char *);
2092a67f45c3Smrgextern int printf (const char *, ...);
2093a67f45c3Smrgextern int dprintf (int, const char *, ...);
2094a67f45c3Smrgextern void *malloc (size_t);
20958bfe6addSmrgextern void free (void *);
209676910425Smrg
2097a67f45c3Smrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2098a67f45c3Smrg// dprintf is used instead of fprintf to avoid needing to declare
2099a67f45c3Smrg// FILE and stderr.
2100a67f45c3Smrg#define debug(...) dprintf (2, __VA_ARGS__)
2101a67f45c3Smrg#define showlist(...) puts (#__VA_ARGS__)
2102a67f45c3Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2103a67f45c3Smrgstatic void
2104a67f45c3Smrgtest_varargs_macros (void)
2105a67f45c3Smrg{
2106a67f45c3Smrg  int x = 1234;
2107a67f45c3Smrg  int y = 5678;
2108a67f45c3Smrg  debug ("Flag");
2109a67f45c3Smrg  debug ("X = %d\n", x);
2110a67f45c3Smrg  showlist (The first, second, and third items.);
2111a67f45c3Smrg  report (x>y, "x is %d but y is %d", x, y);
2112a67f45c3Smrg}
2113a67f45c3Smrg
2114a67f45c3Smrg// Check long long types.
2115a67f45c3Smrg#define BIG64 18446744073709551615ull
2116a67f45c3Smrg#define BIG32 4294967295ul
2117a67f45c3Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2118a67f45c3Smrg#if !BIG_OK
2119a67f45c3Smrg  #error "your preprocessor is broken"
2120a67f45c3Smrg#endif
2121a67f45c3Smrg#if BIG_OK
2122a67f45c3Smrg#else
2123a67f45c3Smrg  #error "your preprocessor is broken"
2124a67f45c3Smrg#endif
2125a67f45c3Smrgstatic long long int bignum = -9223372036854775807LL;
2126a67f45c3Smrgstatic unsigned long long int ubignum = BIG64;
2127a67f45c3Smrg
2128a67f45c3Smrgstruct incomplete_array
2129a67f45c3Smrg{
2130a67f45c3Smrg  int datasize;
2131a67f45c3Smrg  double data[];
2132a67f45c3Smrg};
2133a67f45c3Smrg
2134a67f45c3Smrgstruct named_init {
2135a67f45c3Smrg  int number;
2136a67f45c3Smrg  const wchar_t *name;
2137a67f45c3Smrg  double average;
2138a67f45c3Smrg};
2139a67f45c3Smrg
2140a67f45c3Smrgtypedef const char *ccp;
2141a67f45c3Smrg
2142a67f45c3Smrgstatic inline int
2143a67f45c3Smrgtest_restrict (ccp restrict text)
2144a67f45c3Smrg{
2145a67f45c3Smrg  // Iterate through items via the restricted pointer.
2146a67f45c3Smrg  // Also check for declarations in for loops.
2147a67f45c3Smrg  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2148a67f45c3Smrg    continue;
2149a67f45c3Smrg  return 0;
2150a67f45c3Smrg}
2151a67f45c3Smrg
2152a67f45c3Smrg// Check varargs and va_copy.
2153a67f45c3Smrgstatic bool
2154a67f45c3Smrgtest_varargs (const char *format, ...)
2155a67f45c3Smrg{
2156a67f45c3Smrg  va_list args;
2157a67f45c3Smrg  va_start (args, format);
2158a67f45c3Smrg  va_list args_copy;
2159a67f45c3Smrg  va_copy (args_copy, args);
2160a67f45c3Smrg
2161a67f45c3Smrg  const char *str = "";
2162a67f45c3Smrg  int number = 0;
2163a67f45c3Smrg  float fnumber = 0;
2164a67f45c3Smrg
2165a67f45c3Smrg  while (*format)
2166a67f45c3Smrg    {
2167a67f45c3Smrg      switch (*format++)
2168a67f45c3Smrg	{
2169a67f45c3Smrg	case '\''s'\'': // string
2170a67f45c3Smrg	  str = va_arg (args_copy, const char *);
2171a67f45c3Smrg	  break;
2172a67f45c3Smrg	case '\''d'\'': // int
2173a67f45c3Smrg	  number = va_arg (args_copy, int);
2174a67f45c3Smrg	  break;
2175a67f45c3Smrg	case '\''f'\'': // float
2176a67f45c3Smrg	  fnumber = va_arg (args_copy, double);
2177a67f45c3Smrg	  break;
2178a67f45c3Smrg	default:
2179a67f45c3Smrg	  break;
2180a67f45c3Smrg	}
2181a67f45c3Smrg    }
2182a67f45c3Smrg  va_end (args_copy);
2183a67f45c3Smrg  va_end (args);
2184a67f45c3Smrg
2185a67f45c3Smrg  return *str && number && fnumber;
2186a67f45c3Smrg}
2187a67f45c3Smrg'
2188a67f45c3Smrg
2189a67f45c3Smrg# Test code for whether the C compiler supports C99 (body of main).
2190a67f45c3Smrgac_c_conftest_c99_main='
2191a67f45c3Smrg  // Check bool.
2192a67f45c3Smrg  _Bool success = false;
2193a67f45c3Smrg  success |= (argc != 0);
2194a67f45c3Smrg
2195a67f45c3Smrg  // Check restrict.
2196a67f45c3Smrg  if (test_restrict ("String literal") == 0)
2197a67f45c3Smrg    success = true;
2198a67f45c3Smrg  char *restrict newvar = "Another string";
2199a67f45c3Smrg
2200a67f45c3Smrg  // Check varargs.
2201a67f45c3Smrg  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2202a67f45c3Smrg  test_varargs_macros ();
2203a67f45c3Smrg
2204a67f45c3Smrg  // Check flexible array members.
2205a67f45c3Smrg  struct incomplete_array *ia =
2206a67f45c3Smrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2207a67f45c3Smrg  ia->datasize = 10;
2208a67f45c3Smrg  for (int i = 0; i < ia->datasize; ++i)
2209a67f45c3Smrg    ia->data[i] = i * 1.234;
22108bfe6addSmrg  // Work around memory leak warnings.
22118bfe6addSmrg  free (ia);
2212a67f45c3Smrg
2213a67f45c3Smrg  // Check named initializers.
2214a67f45c3Smrg  struct named_init ni = {
2215a67f45c3Smrg    .number = 34,
2216a67f45c3Smrg    .name = L"Test wide string",
2217a67f45c3Smrg    .average = 543.34343,
2218a67f45c3Smrg  };
2219a67f45c3Smrg
2220a67f45c3Smrg  ni.number = 58;
2221a67f45c3Smrg
2222a67f45c3Smrg  int dynamic_array[ni.number];
2223a67f45c3Smrg  dynamic_array[0] = argv[0][0];
2224a67f45c3Smrg  dynamic_array[ni.number - 1] = 543;
2225a67f45c3Smrg
2226a67f45c3Smrg  // work around unused variable warnings
2227a67f45c3Smrg  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2228a67f45c3Smrg	 || dynamic_array[ni.number - 1] != 543);
2229a67f45c3Smrg'
2230a67f45c3Smrg
2231a67f45c3Smrg# Test code for whether the C compiler supports C11 (global declarations)
2232a67f45c3Smrgac_c_conftest_c11_globals='
22338bfe6addSmrg/* Does the compiler advertise C11 conformance? */
2234a67f45c3Smrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2235a67f45c3Smrg# error "Compiler does not advertise C11 conformance"
2236a67f45c3Smrg#endif
2237a67f45c3Smrg
2238a67f45c3Smrg// Check _Alignas.
2239a67f45c3Smrgchar _Alignas (double) aligned_as_double;
2240a67f45c3Smrgchar _Alignas (0) no_special_alignment;
2241a67f45c3Smrgextern char aligned_as_int;
2242a67f45c3Smrgchar _Alignas (0) _Alignas (int) aligned_as_int;
2243a67f45c3Smrg
2244a67f45c3Smrg// Check _Alignof.
2245a67f45c3Smrgenum
2246a67f45c3Smrg{
2247a67f45c3Smrg  int_alignment = _Alignof (int),
2248a67f45c3Smrg  int_array_alignment = _Alignof (int[100]),
2249a67f45c3Smrg  char_alignment = _Alignof (char)
2250a67f45c3Smrg};
2251a67f45c3Smrg_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2252a67f45c3Smrg
2253a67f45c3Smrg// Check _Noreturn.
2254a67f45c3Smrgint _Noreturn does_not_return (void) { for (;;) continue; }
2255a67f45c3Smrg
2256a67f45c3Smrg// Check _Static_assert.
2257a67f45c3Smrgstruct test_static_assert
2258a67f45c3Smrg{
2259a67f45c3Smrg  int x;
2260a67f45c3Smrg  _Static_assert (sizeof (int) <= sizeof (long int),
2261a67f45c3Smrg                  "_Static_assert does not work in struct");
2262a67f45c3Smrg  long int y;
2263a67f45c3Smrg};
2264a67f45c3Smrg
2265a67f45c3Smrg// Check UTF-8 literals.
2266a67f45c3Smrg#define u8 syntax error!
2267a67f45c3Smrgchar const utf8_literal[] = u8"happens to be ASCII" "another string";
2268a67f45c3Smrg
2269a67f45c3Smrg// Check duplicate typedefs.
2270a67f45c3Smrgtypedef long *long_ptr;
2271a67f45c3Smrgtypedef long int *long_ptr;
2272a67f45c3Smrgtypedef long_ptr long_ptr;
2273a67f45c3Smrg
2274a67f45c3Smrg// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2275a67f45c3Smrgstruct anonymous
2276a67f45c3Smrg{
2277a67f45c3Smrg  union {
2278a67f45c3Smrg    struct { int i; int j; };
2279a67f45c3Smrg    struct { int k; long int l; } w;
2280a67f45c3Smrg  };
2281a67f45c3Smrg  int m;
2282a67f45c3Smrg} v1;
2283a67f45c3Smrg'
2284a67f45c3Smrg
2285a67f45c3Smrg# Test code for whether the C compiler supports C11 (body of main).
2286a67f45c3Smrgac_c_conftest_c11_main='
2287a67f45c3Smrg  _Static_assert ((offsetof (struct anonymous, i)
2288a67f45c3Smrg		   == offsetof (struct anonymous, w.k)),
2289a67f45c3Smrg		  "Anonymous union alignment botch");
2290a67f45c3Smrg  v1.i = 2;
2291a67f45c3Smrg  v1.w.k = 5;
2292a67f45c3Smrg  ok |= v1.i != 5;
2293a67f45c3Smrg'
2294a67f45c3Smrg
2295a67f45c3Smrg# Test code for whether the C compiler supports C11 (complete).
2296a67f45c3Smrgac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2297a67f45c3Smrg${ac_c_conftest_c99_globals}
2298a67f45c3Smrg${ac_c_conftest_c11_globals}
2299a67f45c3Smrg
2300a67f45c3Smrgint
2301a67f45c3Smrgmain (int argc, char **argv)
2302a67f45c3Smrg{
2303a67f45c3Smrg  int ok = 0;
2304a67f45c3Smrg  ${ac_c_conftest_c89_main}
2305a67f45c3Smrg  ${ac_c_conftest_c99_main}
2306a67f45c3Smrg  ${ac_c_conftest_c11_main}
2307a67f45c3Smrg  return ok;
2308a67f45c3Smrg}
2309a67f45c3Smrg"
2310a67f45c3Smrg
2311a67f45c3Smrg# Test code for whether the C compiler supports C99 (complete).
2312a67f45c3Smrgac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2313a67f45c3Smrg${ac_c_conftest_c99_globals}
2314a67f45c3Smrg
2315a67f45c3Smrgint
2316a67f45c3Smrgmain (int argc, char **argv)
2317a67f45c3Smrg{
2318a67f45c3Smrg  int ok = 0;
2319a67f45c3Smrg  ${ac_c_conftest_c89_main}
2320a67f45c3Smrg  ${ac_c_conftest_c99_main}
2321a67f45c3Smrg  return ok;
2322a67f45c3Smrg}
2323a67f45c3Smrg"
2324a67f45c3Smrg
2325a67f45c3Smrg# Test code for whether the C compiler supports C89 (complete).
2326a67f45c3Smrgac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2327a67f45c3Smrg
2328a67f45c3Smrgint
2329a67f45c3Smrgmain (int argc, char **argv)
2330a67f45c3Smrg{
2331a67f45c3Smrg  int ok = 0;
2332a67f45c3Smrg  ${ac_c_conftest_c89_main}
2333a67f45c3Smrg  return ok;
2334a67f45c3Smrg}
2335a67f45c3Smrg"
2336a67f45c3Smrg
2337a67f45c3Smrgas_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2338a67f45c3Smrgas_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2339a67f45c3Smrgas_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2340a67f45c3Smrgas_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2341a67f45c3Smrgas_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2342a67f45c3Smrgas_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2343a67f45c3Smrgas_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2344a67f45c3Smrgas_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2345a67f45c3Smrgas_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2346a67f45c3Smrg
2347a67f45c3Smrg# Auxiliary files required by this configure script.
2348a67f45c3Smrgac_aux_files="config.guess config.sub compile missing install-sh"
2349a67f45c3Smrg
2350a67f45c3Smrg# Locations in which to look for auxiliary files.
2351a67f45c3Smrgac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2352a67f45c3Smrg
2353a67f45c3Smrg# Search for a directory containing all of the required auxiliary files,
2354a67f45c3Smrg# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2355a67f45c3Smrg# If we don't find one directory that contains all the files we need,
2356a67f45c3Smrg# we report the set of missing files from the *first* directory in
2357a67f45c3Smrg# $ac_aux_dir_candidates and give up.
2358a67f45c3Smrgac_missing_aux_files=""
2359a67f45c3Smrgac_first_candidate=:
2360a67f45c3Smrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2361a67f45c3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2362a67f45c3Smrgas_found=false
2363a67f45c3Smrgfor as_dir in $ac_aux_dir_candidates
2364a67f45c3Smrgdo
2365a67f45c3Smrg  IFS=$as_save_IFS
2366a67f45c3Smrg  case $as_dir in #(((
2367a67f45c3Smrg    '') as_dir=./ ;;
2368a67f45c3Smrg    */) ;;
2369a67f45c3Smrg    *) as_dir=$as_dir/ ;;
2370a67f45c3Smrg  esac
2371a67f45c3Smrg  as_found=:
2372a67f45c3Smrg
2373a67f45c3Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2374a67f45c3Smrg  ac_aux_dir_found=yes
2375a67f45c3Smrg  ac_install_sh=
2376a67f45c3Smrg  for ac_aux in $ac_aux_files
2377a67f45c3Smrg  do
2378a67f45c3Smrg    # As a special case, if "install-sh" is required, that requirement
2379a67f45c3Smrg    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2380a67f45c3Smrg    # and $ac_install_sh is set appropriately for whichever one is found.
2381a67f45c3Smrg    if test x"$ac_aux" = x"install-sh"
2382a67f45c3Smrg    then
2383a67f45c3Smrg      if test -f "${as_dir}install-sh"; then
2384a67f45c3Smrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2385a67f45c3Smrg        ac_install_sh="${as_dir}install-sh -c"
2386a67f45c3Smrg      elif test -f "${as_dir}install.sh"; then
2387a67f45c3Smrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2388a67f45c3Smrg        ac_install_sh="${as_dir}install.sh -c"
2389a67f45c3Smrg      elif test -f "${as_dir}shtool"; then
2390a67f45c3Smrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2391a67f45c3Smrg        ac_install_sh="${as_dir}shtool install -c"
2392a67f45c3Smrg      else
2393a67f45c3Smrg        ac_aux_dir_found=no
2394a67f45c3Smrg        if $ac_first_candidate; then
2395a67f45c3Smrg          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2396a67f45c3Smrg        else
2397a67f45c3Smrg          break
2398a67f45c3Smrg        fi
2399a67f45c3Smrg      fi
2400a67f45c3Smrg    else
2401a67f45c3Smrg      if test -f "${as_dir}${ac_aux}"; then
2402a67f45c3Smrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2403a67f45c3Smrg      else
2404a67f45c3Smrg        ac_aux_dir_found=no
2405a67f45c3Smrg        if $ac_first_candidate; then
2406a67f45c3Smrg          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2407a67f45c3Smrg        else
2408a67f45c3Smrg          break
2409a67f45c3Smrg        fi
2410a67f45c3Smrg      fi
2411a67f45c3Smrg    fi
2412a67f45c3Smrg  done
2413a67f45c3Smrg  if test "$ac_aux_dir_found" = yes; then
2414a67f45c3Smrg    ac_aux_dir="$as_dir"
2415a67f45c3Smrg    break
2416a67f45c3Smrg  fi
2417a67f45c3Smrg  ac_first_candidate=false
2418a67f45c3Smrg
2419a67f45c3Smrg  as_found=false
2420a67f45c3Smrgdone
2421a67f45c3SmrgIFS=$as_save_IFS
2422a67f45c3Smrgif $as_found
2423a67f45c3Smrgthen :
2424a67f45c3Smrg
24258bfe6addSmrgelse case e in #(
24268bfe6addSmrg  e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
24278bfe6addSmrgesac
2428a67f45c3Smrgfi
2429a67f45c3Smrg
2430a67f45c3Smrg
2431a67f45c3Smrg# These three variables are undocumented and unsupported,
2432a67f45c3Smrg# and are intended to be withdrawn in a future Autoconf release.
2433a67f45c3Smrg# They can cause serious problems if a builder's source tree is in a directory
2434a67f45c3Smrg# whose full name contains unusual characters.
2435a67f45c3Smrgif test -f "${ac_aux_dir}config.guess"; then
2436a67f45c3Smrg  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2437a67f45c3Smrgfi
2438a67f45c3Smrgif test -f "${ac_aux_dir}config.sub"; then
2439a67f45c3Smrg  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2440a67f45c3Smrgfi
2441a67f45c3Smrgif test -f "$ac_aux_dir/configure"; then
2442a67f45c3Smrg  ac_configure="$SHELL ${ac_aux_dir}configure"
2443a67f45c3Smrgfi
2444a67f45c3Smrg
2445a67f45c3Smrg# Check that the precious variables saved in the cache have kept the same
2446a67f45c3Smrg# value.
2447a67f45c3Smrgac_cache_corrupted=false
2448a67f45c3Smrgfor ac_var in $ac_precious_vars; do
2449a67f45c3Smrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2450a67f45c3Smrg  eval ac_new_set=\$ac_env_${ac_var}_set
2451a67f45c3Smrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2452a67f45c3Smrg  eval ac_new_val=\$ac_env_${ac_var}_value
2453a67f45c3Smrg  case $ac_old_set,$ac_new_set in
2454a67f45c3Smrg    set,)
24558bfe6addSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
24568bfe6addSmrgprintf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2457a67f45c3Smrg      ac_cache_corrupted=: ;;
2458a67f45c3Smrg    ,set)
24598bfe6addSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
24608bfe6addSmrgprintf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2461a67f45c3Smrg      ac_cache_corrupted=: ;;
2462a67f45c3Smrg    ,);;
2463a67f45c3Smrg    *)
2464a67f45c3Smrg      if test "x$ac_old_val" != "x$ac_new_val"; then
2465a67f45c3Smrg	# differences in whitespace do not lead to failure.
2466a67f45c3Smrg	ac_old_val_w=`echo x $ac_old_val`
2467a67f45c3Smrg	ac_new_val_w=`echo x $ac_new_val`
2468a67f45c3Smrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
24698bfe6addSmrg	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
24708bfe6addSmrgprintf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2471a67f45c3Smrg	  ac_cache_corrupted=:
2472a67f45c3Smrg	else
24738bfe6addSmrg	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
24748bfe6addSmrgprintf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2475a67f45c3Smrg	  eval $ac_var=\$ac_old_val
2476a67f45c3Smrg	fi
24778bfe6addSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  '$ac_old_val'" >&5
24788bfe6addSmrgprintf "%s\n" "$as_me:   former value:  '$ac_old_val'" >&2;}
24798bfe6addSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: '$ac_new_val'" >&5
24808bfe6addSmrgprintf "%s\n" "$as_me:   current value: '$ac_new_val'" >&2;}
2481a67f45c3Smrg      fi;;
2482a67f45c3Smrg  esac
2483a67f45c3Smrg  # Pass precious variables to config.status.
2484a67f45c3Smrg  if test "$ac_new_set" = set; then
2485a67f45c3Smrg    case $ac_new_val in
2486a67f45c3Smrg    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2487a67f45c3Smrg    *) ac_arg=$ac_var=$ac_new_val ;;
2488a67f45c3Smrg    esac
2489a67f45c3Smrg    case " $ac_configure_args " in
2490a67f45c3Smrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2491a67f45c3Smrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2492a67f45c3Smrg    esac
2493a67f45c3Smrg  fi
2494a67f45c3Smrgdone
2495a67f45c3Smrgif $ac_cache_corrupted; then
24968bfe6addSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
24978bfe6addSmrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2498a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2499a67f45c3Smrgprintf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
25008bfe6addSmrg  as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2501a67f45c3Smrg	    and start over" "$LINENO" 5
2502a67f45c3Smrgfi
2503a67f45c3Smrg## -------------------- ##
2504a67f45c3Smrg## Main body of script. ##
2505a67f45c3Smrg## -------------------- ##
2506a67f45c3Smrg
2507a67f45c3Smrgac_ext=c
2508a67f45c3Smrgac_cpp='$CPP $CPPFLAGS'
2509a67f45c3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2510a67f45c3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2511a67f45c3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2512a67f45c3Smrg
2513a67f45c3Smrg
2514a67f45c3Smrg
2515a67f45c3Smrgac_config_headers="$ac_config_headers config.h"
2516a67f45c3Smrg
2517a67f45c3Smrg
2518a67f45c3Smrg# Initialize Automake
25198bfe6addSmrgam__api_version='1.17'
2520a67f45c3Smrg
2521a67f45c3Smrg
2522a67f45c3Smrg
2523a67f45c3Smrg  # Find a good install program.  We prefer a C program (faster),
2524a67f45c3Smrg# so one script is as good as another.  But avoid the broken or
252576910425Smrg# incompatible versions:
252676910425Smrg# SysV /etc/install, /usr/sbin/install
252776910425Smrg# SunOS /usr/etc/install
252876910425Smrg# IRIX /sbin/install
252976910425Smrg# AIX /bin/install
253076910425Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
253176910425Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
253276910425Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
253376910425Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
253476910425Smrg# OS/2's system install, which has a completely different semantic
253576910425Smrg# ./install, which can be erroneously created by make from ./install.sh.
2536db17cd6dSmrg# Reject install programs that cannot install multiple files.
2537a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2538a67f45c3Smrgprintf %s "checking for a BSD-compatible install... " >&6; }
253976910425Smrgif test -z "$INSTALL"; then
2540a67f45c3Smrgif test ${ac_cv_path_install+y}
2541a67f45c3Smrgthen :
2542a67f45c3Smrg  printf %s "(cached) " >&6
25438bfe6addSmrgelse case e in #(
25448bfe6addSmrg  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
254576910425Smrgfor as_dir in $PATH
254676910425Smrgdo
254776910425Smrg  IFS=$as_save_IFS
2548a67f45c3Smrg  case $as_dir in #(((
2549a67f45c3Smrg    '') as_dir=./ ;;
2550a67f45c3Smrg    */) ;;
2551a67f45c3Smrg    *) as_dir=$as_dir/ ;;
2552a67f45c3Smrg  esac
2553a67f45c3Smrg    # Account for fact that we put trailing slashes in our PATH walk.
2554a67f45c3Smrgcase $as_dir in #((
2555a67f45c3Smrg  ./ | /[cC]/* | \
255676910425Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2557482df631Smrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
255876910425Smrg  /usr/ucb/* ) ;;
255976910425Smrg  *)
256076910425Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
256176910425Smrg    # Don't use installbsd from OSF since it installs stuff as root
256276910425Smrg    # by default.
256376910425Smrg    for ac_prog in ginstall scoinst install; do
256476910425Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
2565a67f45c3Smrg	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
256676910425Smrg	  if test $ac_prog = install &&
2567a67f45c3Smrg	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
256876910425Smrg	    # AIX install.  It has an incompatible calling convention.
256976910425Smrg	    :
257076910425Smrg	  elif test $ac_prog = install &&
2571a67f45c3Smrg	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
257276910425Smrg	    # program-specific install script used by HP pwplus--don't use.
257376910425Smrg	    :
257476910425Smrg	  else
2575db17cd6dSmrg	    rm -rf conftest.one conftest.two conftest.dir
2576db17cd6dSmrg	    echo one > conftest.one
2577db17cd6dSmrg	    echo two > conftest.two
2578db17cd6dSmrg	    mkdir conftest.dir
2579a67f45c3Smrg	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2580db17cd6dSmrg	      test -s conftest.one && test -s conftest.two &&
2581db17cd6dSmrg	      test -s conftest.dir/conftest.one &&
2582db17cd6dSmrg	      test -s conftest.dir/conftest.two
2583db17cd6dSmrg	    then
2584a67f45c3Smrg	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2585db17cd6dSmrg	      break 3
2586db17cd6dSmrg	    fi
258776910425Smrg	  fi
258876910425Smrg	fi
258976910425Smrg      done
259076910425Smrg    done
259176910425Smrg    ;;
259276910425Smrgesac
2593db17cd6dSmrg
2594482df631Smrg  done
2595db17cd6dSmrgIFS=$as_save_IFS
259676910425Smrg
2597db17cd6dSmrgrm -rf conftest.one conftest.two conftest.dir
25988bfe6addSmrg ;;
25998bfe6addSmrgesac
260076910425Smrgfi
2601a67f45c3Smrg  if test ${ac_cv_path_install+y}; then
260276910425Smrg    INSTALL=$ac_cv_path_install
260376910425Smrg  else
2604db17cd6dSmrg    # As a last resort, use the slow shell script.  Don't cache a
2605db17cd6dSmrg    # value for INSTALL within a source directory, because that will
260676910425Smrg    # break other packages using the cache if that directory is
2607db17cd6dSmrg    # removed, or if the value is a relative name.
260876910425Smrg    INSTALL=$ac_install_sh
260976910425Smrg  fi
261076910425Smrgfi
2611a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2612a67f45c3Smrgprintf "%s\n" "$INSTALL" >&6; }
261376910425Smrg
261476910425Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
261576910425Smrg# It thinks the first close brace ends the variable substitution.
261676910425Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
261776910425Smrg
261876910425Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
261976910425Smrg
262076910425Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
262176910425Smrg
26228bfe6addSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
26238bfe6addSmrgprintf %s "checking whether sleep supports fractional seconds... " >&6; }
26248bfe6addSmrgif test ${am_cv_sleep_fractional_seconds+y}
26258bfe6addSmrgthen :
26268bfe6addSmrg  printf %s "(cached) " >&6
26278bfe6addSmrgelse case e in #(
26288bfe6addSmrg  e) if sleep 0.001 2>/dev/null
26298bfe6addSmrgthen :
26308bfe6addSmrg  am_cv_sleep_fractional_seconds=yes
26318bfe6addSmrgelse case e in #(
26328bfe6addSmrg  e) am_cv_sleep_fractional_seconds=no ;;
26338bfe6addSmrgesac
26348bfe6addSmrgfi
26358bfe6addSmrg ;;
26368bfe6addSmrgesac
26378bfe6addSmrgfi
26388bfe6addSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
26398bfe6addSmrgprintf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
26408bfe6addSmrg
26418bfe6addSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
26428bfe6addSmrgprintf %s "checking filesystem timestamp resolution... " >&6; }
26438bfe6addSmrgif test ${am_cv_filesystem_timestamp_resolution+y}
26448bfe6addSmrgthen :
26458bfe6addSmrg  printf %s "(cached) " >&6
26468bfe6addSmrgelse case e in #(
26478bfe6addSmrg  e) # Default to the worst case.
26488bfe6addSmrgam_cv_filesystem_timestamp_resolution=2
26498bfe6addSmrg
26508bfe6addSmrg# Only try to go finer than 1 sec if sleep can do it.
26518bfe6addSmrg# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
26528bfe6addSmrg# - 1 sec is not much of a win compared to 2 sec, and
26538bfe6addSmrg# - it takes 2 seconds to perform the test whether 1 sec works.
26548bfe6addSmrg#
26558bfe6addSmrg# Instead, just use the default 2s on platforms that have 1s resolution,
26568bfe6addSmrg# accept the extra 1s delay when using $sleep in the Automake tests, in
26578bfe6addSmrg# exchange for not incurring the 2s delay for running the test for all
26588bfe6addSmrg# packages.
26598bfe6addSmrg#
26608bfe6addSmrgam_try_resolutions=
26618bfe6addSmrgif test "$am_cv_sleep_fractional_seconds" = yes; then
26628bfe6addSmrg  # Even a millisecond often causes a bunch of false positives,
26638bfe6addSmrg  # so just try a hundredth of a second. The time saved between .001 and
26648bfe6addSmrg  # .01 is not terribly consequential.
26658bfe6addSmrg  am_try_resolutions="0.01 0.1 $am_try_resolutions"
26668bfe6addSmrgfi
26678bfe6addSmrg
26688bfe6addSmrg# In order to catch current-generation FAT out, we must *modify* files
26698bfe6addSmrg# that already exist; the *creation* timestamp is finer.  Use names
26708bfe6addSmrg# that make ls -t sort them differently when they have equal
26718bfe6addSmrg# timestamps than when they have distinct timestamps, keeping
26728bfe6addSmrg# in mind that ls -t prints the *newest* file first.
26738bfe6addSmrgrm -f conftest.ts?
26748bfe6addSmrg: > conftest.ts1
26758bfe6addSmrg: > conftest.ts2
26768bfe6addSmrg: > conftest.ts3
26778bfe6addSmrg
26788bfe6addSmrg# Make sure ls -t actually works.  Do 'set' in a subshell so we don't
26798bfe6addSmrg# clobber the current shell's arguments. (Outer-level square brackets
26808bfe6addSmrg# are removed by m4; they're present so that m4 does not expand
26818bfe6addSmrg# <dollar><star>; be careful, easy to get confused.)
26828bfe6addSmrgif (
26838bfe6addSmrg     set X `ls -t conftest.ts[12]` &&
26848bfe6addSmrg     {
26858bfe6addSmrg       test "$*" != "X conftest.ts1 conftest.ts2" ||
26868bfe6addSmrg       test "$*" != "X conftest.ts2 conftest.ts1";
26878bfe6addSmrg     }
26888bfe6addSmrg); then :; else
26898bfe6addSmrg  # If neither matched, then we have a broken ls.  This can happen
26908bfe6addSmrg  # if, for instance, CONFIG_SHELL is bash and it inherits a
26918bfe6addSmrg  # broken ls alias from the environment.  This has actually
26928bfe6addSmrg  # happened.  Such a system could not be considered "sane".
26938bfe6addSmrg  printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
26948bfe6addSmrg  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
26958bfe6addSmrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
26968bfe6addSmrgas_fn_error $? "ls -t produces unexpected output.
26978bfe6addSmrgMake sure there is not a broken ls alias in your environment.
26988bfe6addSmrgSee 'config.log' for more details" "$LINENO" 5; }
26998bfe6addSmrgfi
27008bfe6addSmrg
27018bfe6addSmrgfor am_try_res in $am_try_resolutions; do
27028bfe6addSmrg  # Any one fine-grained sleep might happen to cross the boundary
27038bfe6addSmrg  # between two values of a coarser actual resolution, but if we do
27048bfe6addSmrg  # two fine-grained sleeps in a row, at least one of them will fall
27058bfe6addSmrg  # entirely within a coarse interval.
27068bfe6addSmrg  echo alpha > conftest.ts1
27078bfe6addSmrg  sleep $am_try_res
27088bfe6addSmrg  echo beta > conftest.ts2
27098bfe6addSmrg  sleep $am_try_res
27108bfe6addSmrg  echo gamma > conftest.ts3
27118bfe6addSmrg
27128bfe6addSmrg  # We assume that 'ls -t' will make use of high-resolution
27138bfe6addSmrg  # timestamps if the operating system supports them at all.
27148bfe6addSmrg  if (set X `ls -t conftest.ts?` &&
27158bfe6addSmrg      test "$2" = conftest.ts3 &&
27168bfe6addSmrg      test "$3" = conftest.ts2 &&
27178bfe6addSmrg      test "$4" = conftest.ts1); then
27188bfe6addSmrg    #
27198bfe6addSmrg    # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
27208bfe6addSmrg    # because we don't need to test make.
27218bfe6addSmrg    make_ok=true
27228bfe6addSmrg    if test $am_try_res != 1; then
27238bfe6addSmrg      # But if we've succeeded so far with a subsecond resolution, we
27248bfe6addSmrg      # have one more thing to check: make. It can happen that
27258bfe6addSmrg      # everything else supports the subsecond mtimes, but make doesn't;
27268bfe6addSmrg      # notably on macOS, which ships make 3.81 from 2006 (the last one
27278bfe6addSmrg      # released under GPLv2). https://bugs.gnu.org/68808
27288bfe6addSmrg      #
27298bfe6addSmrg      # We test $MAKE if it is defined in the environment, else "make".
27308bfe6addSmrg      # It might get overridden later, but our hope is that in practice
27318bfe6addSmrg      # it does not matter: it is the system "make" which is (by far)
27328bfe6addSmrg      # the most likely to be broken, whereas if the user overrides it,
27338bfe6addSmrg      # probably they did so with a better, or at least not worse, make.
27348bfe6addSmrg      # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
27358bfe6addSmrg      #
27368bfe6addSmrg      # Create a Makefile (real tab character here):
27378bfe6addSmrg      rm -f conftest.mk
27388bfe6addSmrg      echo 'conftest.ts1: conftest.ts2' >conftest.mk
27398bfe6addSmrg      echo '	touch conftest.ts2' >>conftest.mk
27408bfe6addSmrg      #
27418bfe6addSmrg      # Now, running
27428bfe6addSmrg      #   touch conftest.ts1; touch conftest.ts2; make
27438bfe6addSmrg      # should touch ts1 because ts2 is newer. This could happen by luck,
27448bfe6addSmrg      # but most often, it will fail if make's support is insufficient. So
27458bfe6addSmrg      # test for several consecutive successes.
27468bfe6addSmrg      #
27478bfe6addSmrg      # (We reuse conftest.ts[12] because we still want to modify existing
27488bfe6addSmrg      # files, not create new ones, per above.)
27498bfe6addSmrg      n=0
27508bfe6addSmrg      make=${MAKE-make}
27518bfe6addSmrg      until test $n -eq 3; do
27528bfe6addSmrg        echo one > conftest.ts1
27538bfe6addSmrg        sleep $am_try_res
27548bfe6addSmrg        echo two > conftest.ts2 # ts2 should now be newer than ts1
27558bfe6addSmrg        if $make -f conftest.mk | grep 'up to date' >/dev/null; then
27568bfe6addSmrg          make_ok=false
27578bfe6addSmrg          break # out of $n loop
27588bfe6addSmrg        fi
27598bfe6addSmrg        n=`expr $n + 1`
27608bfe6addSmrg      done
27618bfe6addSmrg    fi
27628bfe6addSmrg    #
27638bfe6addSmrg    if $make_ok; then
27648bfe6addSmrg      # Everything we know to check worked out, so call this resolution good.
27658bfe6addSmrg      am_cv_filesystem_timestamp_resolution=$am_try_res
27668bfe6addSmrg      break # out of $am_try_res loop
27678bfe6addSmrg    fi
27688bfe6addSmrg    # Otherwise, we'll go on to check the next resolution.
27698bfe6addSmrg  fi
27708bfe6addSmrgdone
27718bfe6addSmrgrm -f conftest.ts?
27728bfe6addSmrg# (end _am_filesystem_timestamp_resolution)
27738bfe6addSmrg ;;
27748bfe6addSmrgesac
27758bfe6addSmrgfi
27768bfe6addSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
27778bfe6addSmrgprintf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
27788bfe6addSmrg
27798bfe6addSmrg# This check should not be cached, as it may vary across builds of
27808bfe6addSmrg# different projects.
2781a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2782a67f45c3Smrgprintf %s "checking whether build environment is sane... " >&6; }
2783db17cd6dSmrg# Reject unsafe characters in $srcdir or the absolute working directory
2784db17cd6dSmrg# name.  Accept space and tab only in the latter.
2785db17cd6dSmrgam_lf='
2786db17cd6dSmrg'
2787db17cd6dSmrgcase `pwd` in
2788db17cd6dSmrg  *[\\\"\#\$\&\'\`$am_lf]*)
2789482df631Smrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2790db17cd6dSmrgesac
2791db17cd6dSmrgcase $srcdir in
2792db17cd6dSmrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
27939ff100acSmrg    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2794db17cd6dSmrgesac
2795db17cd6dSmrg
27969ff100acSmrg# Do 'set' in a subshell so we don't clobber the current shell's
279776910425Smrg# arguments.  Must try -L first in case configure is actually a
279876910425Smrg# symlink; some systems play weird games with the mod time of symlinks
279976910425Smrg# (eg FreeBSD returns the mod time of the symlink's containing
280076910425Smrg# directory).
28018bfe6addSmrgam_build_env_is_sane=no
28028bfe6addSmrgam_has_slept=no
28038bfe6addSmrgrm -f conftest.file
28048bfe6addSmrgfor am_try in 1 2; do
28058bfe6addSmrg  echo "timestamp, slept: $am_has_slept" > conftest.file
28068bfe6addSmrg  if (
28078bfe6addSmrg    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
28088bfe6addSmrg    if test "$*" = "X"; then
28098bfe6addSmrg      # -L didn't work.
28108bfe6addSmrg      set X `ls -t "$srcdir/configure" conftest.file`
28118bfe6addSmrg    fi
28128bfe6addSmrg    test "$2" = conftest.file
28138bfe6addSmrg  ); then
28148bfe6addSmrg    am_build_env_is_sane=yes
28158bfe6addSmrg    break
28168bfe6addSmrg  fi
28178bfe6addSmrg  # Just in case.
28188bfe6addSmrg  sleep "$am_cv_filesystem_timestamp_resolution"
28198bfe6addSmrg  am_has_slept=yes
28208bfe6addSmrgdone
28218bfe6addSmrg
28228bfe6addSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
28238bfe6addSmrgprintf "%s\n" "$am_build_env_is_sane" >&6; }
28248bfe6addSmrgif test "$am_build_env_is_sane" = no; then
28258bfe6addSmrg  as_fn_error $? "newly created file is older than distributed files!
2826482df631SmrgCheck your system clock" "$LINENO" 5
282776910425Smrgfi
28288bfe6addSmrg
28299ff100acSmrg# If we didn't sleep, we still need to ensure time stamps of config.status and
28309ff100acSmrg# generated files are strictly newer.
28319ff100acSmrgam_sleep_pid=
28328bfe6addSmrgif test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
28338bfe6addSmrgthen :
28348bfe6addSmrg
28358bfe6addSmrgelse case e in #(
28368bfe6addSmrg  e)   ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
28379ff100acSmrg  am_sleep_pid=$!
28388bfe6addSmrg ;;
28398bfe6addSmrgesac
28409ff100acSmrgfi
28419ff100acSmrg
28429ff100acSmrgrm -f conftest.file
28439ff100acSmrg
284476910425Smrgtest "$program_prefix" != NONE &&
2845db17cd6dSmrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
284676910425Smrg# Use a double $ so make ignores it.
284776910425Smrgtest "$program_suffix" != NONE &&
2848db17cd6dSmrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2849db17cd6dSmrg# Double any \ or $.
28508bfe6addSmrg# By default was 's,x,x', remove it if useless.
2851db17cd6dSmrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2852a67f45c3Smrgprogram_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2853a67f45c3Smrg
285476910425Smrg
28559ff100acSmrg# Expand $ac_aux_dir to an absolute path.
28569ff100acSmrgam_aux_dir=`cd "$ac_aux_dir" && pwd`
285776910425Smrg
2858a67f45c3Smrg
2859a67f45c3Smrg  if test x"${MISSING+set}" != xset; then
2860a67f45c3Smrg  MISSING="\${SHELL} '$am_aux_dir/missing'"
2861db17cd6dSmrgfi
286276910425Smrg# Use eval to expand $SHELL
28639ff100acSmrgif eval "$MISSING --is-lightweight"; then
28649ff100acSmrg  am_missing_run="$MISSING "
286576910425Smrgelse
286676910425Smrg  am_missing_run=
2867a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2868a67f45c3Smrgprintf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2869db17cd6dSmrgfi
2870db17cd6dSmrg
28719ff100acSmrgif test x"${install_sh+set}" != xset; then
2872db17cd6dSmrg  case $am_aux_dir in
2873db17cd6dSmrg  *\ * | *\	*)
2874db17cd6dSmrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2875db17cd6dSmrg  *)
2876db17cd6dSmrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
2877db17cd6dSmrg  esac
2878db17cd6dSmrgfi
2879db17cd6dSmrg
28809ff100acSmrg# Installed binaries are usually stripped using 'strip' when the user
28819ff100acSmrg# run "make install-strip".  However 'strip' might not be the right
2882db17cd6dSmrg# tool to use in cross-compilation environments, therefore Automake
28839ff100acSmrg# will honor the 'STRIP' environment variable to overrule this program.
2884db17cd6dSmrgif test "$cross_compiling" != no; then
2885db17cd6dSmrg  if test -n "$ac_tool_prefix"; then
2886db17cd6dSmrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2887db17cd6dSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2
2888a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2889a67f45c3Smrgprintf %s "checking for $ac_word... " >&6; }
2890a67f45c3Smrgif test ${ac_cv_prog_STRIP+y}
2891a67f45c3Smrgthen :
2892a67f45c3Smrg  printf %s "(cached) " >&6
28938bfe6addSmrgelse case e in #(
28948bfe6addSmrg  e) if test -n "$STRIP"; then
2895db17cd6dSmrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2896db17cd6dSmrgelse
2897db17cd6dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898db17cd6dSmrgfor as_dir in $PATH
2899db17cd6dSmrgdo
2900db17cd6dSmrg  IFS=$as_save_IFS
2901a67f45c3Smrg  case $as_dir in #(((
2902a67f45c3Smrg    '') as_dir=./ ;;
2903a67f45c3Smrg    */) ;;
2904a67f45c3Smrg    *) as_dir=$as_dir/ ;;
2905a67f45c3Smrg  esac
2906482df631Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2907a67f45c3Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2908db17cd6dSmrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2909a67f45c3Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2910db17cd6dSmrg    break 2
2911db17cd6dSmrg  fi
2912db17cd6dSmrgdone
2913482df631Smrg  done
2914db17cd6dSmrgIFS=$as_save_IFS
2915db17cd6dSmrg
29168bfe6addSmrgfi ;;
29178bfe6addSmrgesac
2918db17cd6dSmrgfi
2919db17cd6dSmrgSTRIP=$ac_cv_prog_STRIP
2920db17cd6dSmrgif test -n "$STRIP"; then
2921a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2922a67f45c3Smrgprintf "%s\n" "$STRIP" >&6; }
2923db17cd6dSmrgelse
2924a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925a67f45c3Smrgprintf "%s\n" "no" >&6; }
2926db17cd6dSmrgfi
2927db17cd6dSmrg
2928db17cd6dSmrg
2929db17cd6dSmrgfi
2930db17cd6dSmrgif test -z "$ac_cv_prog_STRIP"; then
2931db17cd6dSmrg  ac_ct_STRIP=$STRIP
2932db17cd6dSmrg  # Extract the first word of "strip", so it can be a program name with args.
2933db17cd6dSmrgset dummy strip; ac_word=$2
2934a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2935a67f45c3Smrgprintf %s "checking for $ac_word... " >&6; }
2936a67f45c3Smrgif test ${ac_cv_prog_ac_ct_STRIP+y}
2937a67f45c3Smrgthen :
2938a67f45c3Smrg  printf %s "(cached) " >&6
29398bfe6addSmrgelse case e in #(
29408bfe6addSmrg  e) if test -n "$ac_ct_STRIP"; then
2941db17cd6dSmrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2942db17cd6dSmrgelse
2943db17cd6dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944db17cd6dSmrgfor as_dir in $PATH
2945db17cd6dSmrgdo
2946db17cd6dSmrg  IFS=$as_save_IFS
2947a67f45c3Smrg  case $as_dir in #(((
2948a67f45c3Smrg    '') as_dir=./ ;;
2949a67f45c3Smrg    */) ;;
2950a67f45c3Smrg    *) as_dir=$as_dir/ ;;
2951a67f45c3Smrg  esac
2952482df631Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2953a67f45c3Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2954db17cd6dSmrg    ac_cv_prog_ac_ct_STRIP="strip"
2955a67f45c3Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2956db17cd6dSmrg    break 2
2957db17cd6dSmrg  fi
2958db17cd6dSmrgdone
2959482df631Smrg  done
2960db17cd6dSmrgIFS=$as_save_IFS
2961db17cd6dSmrg
29628bfe6addSmrgfi ;;
29638bfe6addSmrgesac
2964db17cd6dSmrgfi
2965db17cd6dSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2966db17cd6dSmrgif test -n "$ac_ct_STRIP"; then
2967a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2968a67f45c3Smrgprintf "%s\n" "$ac_ct_STRIP" >&6; }
2969db17cd6dSmrgelse
2970a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971a67f45c3Smrgprintf "%s\n" "no" >&6; }
2972db17cd6dSmrgfi
2973db17cd6dSmrg
2974db17cd6dSmrg  if test "x$ac_ct_STRIP" = x; then
2975db17cd6dSmrg    STRIP=":"
2976db17cd6dSmrg  else
2977db17cd6dSmrg    case $cross_compiling:$ac_tool_warned in
2978db17cd6dSmrgyes:)
2979a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2980a67f45c3Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2981db17cd6dSmrgac_tool_warned=yes ;;
2982db17cd6dSmrgesac
2983db17cd6dSmrg    STRIP=$ac_ct_STRIP
2984db17cd6dSmrg  fi
2985db17cd6dSmrgelse
2986db17cd6dSmrg  STRIP="$ac_cv_prog_STRIP"
2987db17cd6dSmrgfi
2988db17cd6dSmrg
2989db17cd6dSmrgfi
2990db17cd6dSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2991db17cd6dSmrg
2992a67f45c3Smrg
2993a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2994a67f45c3Smrgprintf %s "checking for a race-free mkdir -p... " >&6; }
2995db17cd6dSmrgif test -z "$MKDIR_P"; then
2996a67f45c3Smrg  if test ${ac_cv_path_mkdir+y}
2997a67f45c3Smrgthen :
2998a67f45c3Smrg  printf %s "(cached) " >&6
29998bfe6addSmrgelse case e in #(
30008bfe6addSmrg  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001db17cd6dSmrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3002db17cd6dSmrgdo
3003db17cd6dSmrg  IFS=$as_save_IFS
3004a67f45c3Smrg  case $as_dir in #(((
3005a67f45c3Smrg    '') as_dir=./ ;;
3006a67f45c3Smrg    */) ;;
3007a67f45c3Smrg    *) as_dir=$as_dir/ ;;
3008a67f45c3Smrg  esac
3009482df631Smrg    for ac_prog in mkdir gmkdir; do
3010db17cd6dSmrg	 for ac_exec_ext in '' $ac_executable_extensions; do
3011a67f45c3Smrg	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3012a67f45c3Smrg	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3013a67f45c3Smrg	     'mkdir ('*'coreutils) '* | \
30148bfe6addSmrg	     *'BusyBox '* | \
3015db17cd6dSmrg	     'mkdir (fileutils) '4.1*)
3016a67f45c3Smrg	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3017db17cd6dSmrg	       break 3;;
3018db17cd6dSmrg	   esac
3019db17cd6dSmrg	 done
3020db17cd6dSmrg       done
3021482df631Smrg  done
3022db17cd6dSmrgIFS=$as_save_IFS
30238bfe6addSmrg ;;
30248bfe6addSmrgesac
3025db17cd6dSmrgfi
3026db17cd6dSmrg
3027482df631Smrg  test -d ./--version && rmdir ./--version
3028a67f45c3Smrg  if test ${ac_cv_path_mkdir+y}; then
3029db17cd6dSmrg    MKDIR_P="$ac_cv_path_mkdir -p"
303076910425Smrg  else
30318bfe6addSmrg    # As a last resort, use plain mkdir -p,
30328bfe6addSmrg    # in the hope it doesn't have the bugs of ancient mkdir.
30338bfe6addSmrg    MKDIR_P='mkdir -p'
303476910425Smrg  fi
303576910425Smrgfi
3036a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3037a67f45c3Smrgprintf "%s\n" "$MKDIR_P" >&6; }
3038db17cd6dSmrg
303976910425Smrgfor ac_prog in gawk mawk nawk awk
304076910425Smrgdo
304176910425Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
304276910425Smrgset dummy $ac_prog; ac_word=$2
3043a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3044a67f45c3Smrgprintf %s "checking for $ac_word... " >&6; }
3045a67f45c3Smrgif test ${ac_cv_prog_AWK+y}
3046a67f45c3Smrgthen :
3047a67f45c3Smrg  printf %s "(cached) " >&6
30488bfe6addSmrgelse case e in #(
30498bfe6addSmrg  e) if test -n "$AWK"; then
305076910425Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
305176910425Smrgelse
305276910425Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
305376910425Smrgfor as_dir in $PATH
305476910425Smrgdo
305576910425Smrg  IFS=$as_save_IFS
3056a67f45c3Smrg  case $as_dir in #(((
3057a67f45c3Smrg    '') as_dir=./ ;;
3058a67f45c3Smrg    */) ;;
3059a67f45c3Smrg    *) as_dir=$as_dir/ ;;
3060a67f45c3Smrg  esac
3061482df631Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3062a67f45c3Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
306376910425Smrg    ac_cv_prog_AWK="$ac_prog"
3064a67f45c3Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
306576910425Smrg    break 2
306676910425Smrg  fi
306776910425Smrgdone
3068482df631Smrg  done
3069db17cd6dSmrgIFS=$as_save_IFS
307076910425Smrg
30718bfe6addSmrgfi ;;
30728bfe6addSmrgesac
307376910425Smrgfi
307476910425SmrgAWK=$ac_cv_prog_AWK
307576910425Smrgif test -n "$AWK"; then
3076a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3077a67f45c3Smrgprintf "%s\n" "$AWK" >&6; }
307876910425Smrgelse
3079a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080a67f45c3Smrgprintf "%s\n" "no" >&6; }
308176910425Smrgfi
308276910425Smrg
3083db17cd6dSmrg
308476910425Smrg  test -n "$AWK" && break
308576910425Smrgdone
308676910425Smrg
3087a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3088a67f45c3Smrgprintf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3089db17cd6dSmrgset x ${MAKE-make}
3090a67f45c3Smrgac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3091a67f45c3Smrgif eval test \${ac_cv_prog_make_${ac_make}_set+y}
3092a67f45c3Smrgthen :
3093a67f45c3Smrg  printf %s "(cached) " >&6
30948bfe6addSmrgelse case e in #(
30958bfe6addSmrg  e) cat >conftest.make <<\_ACEOF
3096db17cd6dSmrgSHELL = /bin/sh
309776910425Smrgall:
3098db17cd6dSmrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
309976910425Smrg_ACEOF
3100482df631Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3101db17cd6dSmrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
3102db17cd6dSmrg  *@@@%%%=?*=@@@%%%*)
3103db17cd6dSmrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
3104db17cd6dSmrg  *)
3105db17cd6dSmrg    eval ac_cv_prog_make_${ac_make}_set=no;;
3106db17cd6dSmrgesac
31078bfe6addSmrgrm -f conftest.make ;;
31088bfe6addSmrgesac
310976910425Smrgfi
3110db17cd6dSmrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3111a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3112a67f45c3Smrgprintf "%s\n" "yes" >&6; }
311376910425Smrg  SET_MAKE=
311476910425Smrgelse
3115a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116a67f45c3Smrgprintf "%s\n" "no" >&6; }
311776910425Smrg  SET_MAKE="MAKE=${MAKE-make}"
311876910425Smrgfi
311976910425Smrg
312076910425Smrgrm -rf .tst 2>/dev/null
312176910425Smrgmkdir .tst 2>/dev/null
312276910425Smrgif test -d .tst; then
312376910425Smrg  am__leading_dot=.
312476910425Smrgelse
312576910425Smrg  am__leading_dot=_
312676910425Smrgfi
312776910425Smrgrmdir .tst 2>/dev/null
312876910425Smrg
31298bfe6addSmrgAM_DEFAULT_VERBOSITY=1
31309ff100acSmrg# Check whether --enable-silent-rules was given.
3131a67f45c3Smrgif test ${enable_silent_rules+y}
3132a67f45c3Smrgthen :
31339ff100acSmrg  enableval=$enable_silent_rules;
31349ff100acSmrgfi
31359ff100acSmrg
31369ff100acSmrgam_make=${MAKE-make}
3137a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3138a67f45c3Smrgprintf %s "checking whether $am_make supports nested variables... " >&6; }
3139a67f45c3Smrgif test ${am_cv_make_support_nested_variables+y}
3140a67f45c3Smrgthen :
3141a67f45c3Smrg  printf %s "(cached) " >&6
31428bfe6addSmrgelse case e in #(
31438bfe6addSmrg  e) if printf "%s\n" 'TRUE=$(BAR$(V))
31449ff100acSmrgBAR0=false
31459ff100acSmrgBAR1=true
31469ff100acSmrgV=1
31479ff100acSmrgam__doit:
31489ff100acSmrg	@$(TRUE)
31499ff100acSmrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
31509ff100acSmrg  am_cv_make_support_nested_variables=yes
31519ff100acSmrgelse
31529ff100acSmrg  am_cv_make_support_nested_variables=no
31538bfe6addSmrgfi ;;
31548bfe6addSmrgesac
31559ff100acSmrgfi
3156a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3157a67f45c3Smrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
31589ff100acSmrgAM_BACKSLASH='\'
31599ff100acSmrg
31608bfe6addSmrgam__rm_f_notfound=
31618bfe6addSmrgif (rm -f && rm -fr && rm -rf) 2>/dev/null
31628bfe6addSmrgthen :
31638bfe6addSmrg
31648bfe6addSmrgelse case e in #(
31658bfe6addSmrg  e) am__rm_f_notfound='""' ;;
31668bfe6addSmrgesac
31678bfe6addSmrgfi
31688bfe6addSmrg
31698bfe6addSmrg
31708bfe6addSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
31718bfe6addSmrgprintf %s "checking xargs -n works... " >&6; }
31728bfe6addSmrgif test ${am_cv_xargs_n_works+y}
31738bfe6addSmrgthen :
31748bfe6addSmrg  printf %s "(cached) " >&6
31758bfe6addSmrgelse case e in #(
31768bfe6addSmrg  e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
31778bfe6addSmrg3"
31788bfe6addSmrgthen :
31798bfe6addSmrg  am_cv_xargs_n_works=yes
31808bfe6addSmrgelse case e in #(
31818bfe6addSmrg  e) am_cv_xargs_n_works=no ;;
31828bfe6addSmrgesac
31838bfe6addSmrgfi ;;
31848bfe6addSmrgesac
31858bfe6addSmrgfi
31868bfe6addSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
31878bfe6addSmrgprintf "%s\n" "$am_cv_xargs_n_works" >&6; }
31888bfe6addSmrgif test "$am_cv_xargs_n_works" = yes
31898bfe6addSmrgthen :
31908bfe6addSmrg  am__xargs_n='xargs -n'
31918bfe6addSmrgelse case e in #(
31928bfe6addSmrg  e)   am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
31938bfe6addSmrg ;;
31948bfe6addSmrgesac
31958bfe6addSmrgfi
31968bfe6addSmrg
3197db17cd6dSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
3198db17cd6dSmrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3199db17cd6dSmrg  # is not polluted with repeated "-I."
3200db17cd6dSmrg  am__isrc=' -I$(srcdir)'
3201db17cd6dSmrg  # test to see if srcdir already configured
3202db17cd6dSmrg  if test -f $srcdir/config.status; then
3203482df631Smrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3204db17cd6dSmrg  fi
320576910425Smrgfi
320676910425Smrg
320776910425Smrg# test whether we have cygpath
320876910425Smrgif test -z "$CYGPATH_W"; then
320976910425Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
321076910425Smrg    CYGPATH_W='cygpath -w'
321176910425Smrg  else
321276910425Smrg    CYGPATH_W=echo
321376910425Smrg  fi
321476910425Smrgfi
321576910425Smrg
321676910425Smrg
321776910425Smrg# Define the identity of the package.
321876910425Smrg PACKAGE='xkbevd'
32198bfe6addSmrg VERSION='1.1.6'
322076910425Smrg
322176910425Smrg
3222a67f45c3Smrgprintf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
322376910425Smrg
322476910425Smrg
3225a67f45c3Smrgprintf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
322676910425Smrg
322776910425Smrg# Some tools Automake needs.
322876910425Smrg
322976910425SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
323076910425Smrg
323176910425Smrg
323276910425SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
323376910425Smrg
323476910425Smrg
323576910425SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
323676910425Smrg
323776910425Smrg
323876910425SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
323976910425Smrg
324076910425Smrg
324176910425SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
324276910425Smrg
32439ff100acSmrg# For better backward compatibility.  To be removed once Automake 1.9.x
32449ff100acSmrg# dies out for good.  For more background, see:
3245a67f45c3Smrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3246a67f45c3Smrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
32479ff100acSmrgmkdir_p='$(MKDIR_P)'
324876910425Smrg
32499ff100acSmrg# We need awk for the "check" target (and possibly the TAP driver).  The
32509ff100acSmrg# system "awk" is bad on some platforms.
32519ff100acSmrg# Always define AMTAR for backward compatibility.  Yes, it's still used
32529ff100acSmrg# in the wild :-(  We should find a proper way to deprecate it ...
32539ff100acSmrgAMTAR='$${TAR-tar}'
3254db17cd6dSmrg
325576910425Smrg
32569ff100acSmrg# We'll loop over all known methods to create a tar archive until one works.
32579ff100acSmrg_am_tools='gnutar  pax cpio none'
325876910425Smrg
32599ff100acSmrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
326076910425Smrg
326176910425Smrg
326276910425Smrg
3263db17cd6dSmrg
3264db17cd6dSmrg
3265a67f45c3Smrg# Variables for tags utilities; see am/tags.am
3266a67f45c3Smrgif test -z "$CTAGS"; then
3267a67f45c3Smrg  CTAGS=ctags
3268a67f45c3Smrgfi
3269a67f45c3Smrg
3270a67f45c3Smrgif test -z "$ETAGS"; then
3271a67f45c3Smrg  ETAGS=etags
3272a67f45c3Smrgfi
3273a67f45c3Smrg
3274a67f45c3Smrgif test -z "$CSCOPE"; then
3275a67f45c3Smrg  CSCOPE=cscope
3276a67f45c3Smrgfi
3277a67f45c3Smrg
3278a67f45c3Smrg
3279db17cd6dSmrg
3280db17cd6dSmrg
3281db17cd6dSmrg
3282db17cd6dSmrg
3283db17cd6dSmrg
3284db17cd6dSmrg
32859ff100acSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3286db17cd6dSmrg
328776910425Smrg
328876910425Smrg
3289db17cd6dSmrg
3290482df631Smrg
329176910425Smrg
329276910425Smrg
329376910425Smrg
3294482df631Smrg
329576910425Smrg
329676910425Smrg
3297a67f45c3Smrg
3298a67f45c3Smrg
3299a67f45c3Smrg
3300a67f45c3Smrg
3301a67f45c3Smrg
3302a67f45c3Smrg
3303a67f45c3Smrg
3304a67f45c3Smrg
3305a67f45c3Smrg
3306482df631SmrgDEPDIR="${am__leading_dot}deps"
3307482df631Smrg
3308482df631Smrgac_config_commands="$ac_config_commands depfiles"
3309482df631Smrg
3310a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3311a67f45c3Smrgprintf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3312a67f45c3Smrgcat > confinc.mk << 'END'
3313482df631Smrgam__doit:
3314a67f45c3Smrg	@echo this is the am__doit target >confinc.out
3315482df631Smrg.PHONY: am__doit
3316482df631SmrgEND
3317482df631Smrgam__include="#"
3318482df631Smrgam__quote=
3319a67f45c3Smrg# BSD make does it like this.
3320a67f45c3Smrgecho '.include "confinc.mk" # ignored' > confmf.BSD
3321a67f45c3Smrg# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3322a67f45c3Smrgecho 'include confinc.mk # ignored' > confmf.GNU
3323a67f45c3Smrg_am_result=no
3324a67f45c3Smrgfor s in GNU BSD; do
3325a67f45c3Smrg  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3326a67f45c3Smrg   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3327a67f45c3Smrg   ac_status=$?
3328a67f45c3Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329a67f45c3Smrg   (exit $ac_status); }
3330a67f45c3Smrg  case $?:`cat confinc.out 2>/dev/null` in #(
3331a67f45c3Smrg  '0:this is the am__doit target') :
3332a67f45c3Smrg    case $s in #(
3333a67f45c3Smrg  BSD) :
3334a67f45c3Smrg    am__include='.include' am__quote='"' ;; #(
3335a67f45c3Smrg  *) :
3336a67f45c3Smrg    am__include='include' am__quote='' ;;
3337a67f45c3Smrgesac ;; #(
3338a67f45c3Smrg  *) :
3339482df631Smrg     ;;
3340a67f45c3Smrgesac
3341a67f45c3Smrg  if test "$am__include" != "#"; then
3342a67f45c3Smrg    _am_result="yes ($s style)"
3343a67f45c3Smrg    break
3344a67f45c3Smrg  fi
3345a67f45c3Smrgdone
3346a67f45c3Smrgrm -f confinc.* confmf.*
3347a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3348a67f45c3Smrgprintf "%s\n" "${_am_result}" >&6; }
3349482df631Smrg
3350482df631Smrg# Check whether --enable-dependency-tracking was given.
3351a67f45c3Smrgif test ${enable_dependency_tracking+y}
3352a67f45c3Smrgthen :
3353482df631Smrg  enableval=$enable_dependency_tracking;
3354482df631Smrgfi
3355482df631Smrg
3356482df631Smrgif test "x$enable_dependency_tracking" != xno; then
3357482df631Smrg  am_depcomp="$ac_aux_dir/depcomp"
3358482df631Smrg  AMDEPBACKSLASH='\'
33599ff100acSmrg  am__nodep='_no'
3360482df631Smrgfi
3361482df631Smrg if test "x$enable_dependency_tracking" != xno; then
3362482df631Smrg  AMDEP_TRUE=
3363482df631Smrg  AMDEP_FALSE='#'
3364482df631Smrgelse
3365482df631Smrg  AMDEP_TRUE='#'
3366482df631Smrg  AMDEP_FALSE=
3367482df631Smrgfi
3368482df631Smrg
3369482df631Smrg
3370482df631Smrgac_ext=c
3371482df631Smrgac_cpp='$CPP $CPPFLAGS'
3372482df631Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3373482df631Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3374482df631Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3375482df631Smrgif test -n "$ac_tool_prefix"; then
3376482df631Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3377482df631Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
3378a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3379a67f45c3Smrgprintf %s "checking for $ac_word... " >&6; }
3380a67f45c3Smrgif test ${ac_cv_prog_CC+y}
3381a67f45c3Smrgthen :
3382a67f45c3Smrg  printf %s "(cached) " >&6
33838bfe6addSmrgelse case e in #(
33848bfe6addSmrg  e) if test -n "$CC"; then
3385482df631Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
3386482df631Smrgelse
3387482df631Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388482df631Smrgfor as_dir in $PATH
3389482df631Smrgdo
3390482df631Smrg  IFS=$as_save_IFS
3391a67f45c3Smrg  case $as_dir in #(((
3392a67f45c3Smrg    '') as_dir=./ ;;
3393a67f45c3Smrg    */) ;;
3394a67f45c3Smrg    *) as_dir=$as_dir/ ;;
3395a67f45c3Smrg  esac
3396482df631Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3397a67f45c3Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3398482df631Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3399a67f45c3Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3400482df631Smrg    break 2
3401482df631Smrg  fi
3402482df631Smrgdone
3403482df631Smrg  done
3404482df631SmrgIFS=$as_save_IFS
3405482df631Smrg
34068bfe6addSmrgfi ;;
34078bfe6addSmrgesac
3408482df631Smrgfi
3409482df631SmrgCC=$ac_cv_prog_CC
3410482df631Smrgif test -n "$CC"; then
3411a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3412a67f45c3Smrgprintf "%s\n" "$CC" >&6; }
3413482df631Smrgelse
3414a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3415a67f45c3Smrgprintf "%s\n" "no" >&6; }
3416482df631Smrgfi
3417482df631Smrg
3418482df631Smrg
3419482df631Smrgfi
3420482df631Smrgif test -z "$ac_cv_prog_CC"; then
3421482df631Smrg  ac_ct_CC=$CC
3422482df631Smrg  # Extract the first word of "gcc", so it can be a program name with args.
3423482df631Smrgset dummy gcc; ac_word=$2
3424a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3425a67f45c3Smrgprintf %s "checking for $ac_word... " >&6; }
3426a67f45c3Smrgif test ${ac_cv_prog_ac_ct_CC+y}
3427a67f45c3Smrgthen :
3428a67f45c3Smrg  printf %s "(cached) " >&6
34298bfe6addSmrgelse case e in #(
34308bfe6addSmrg  e) if test -n "$ac_ct_CC"; then
3431482df631Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3432482df631Smrgelse
3433482df631Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434482df631Smrgfor as_dir in $PATH
3435482df631Smrgdo
3436482df631Smrg  IFS=$as_save_IFS
3437a67f45c3Smrg  case $as_dir in #(((
3438a67f45c3Smrg    '') as_dir=./ ;;
3439a67f45c3Smrg    */) ;;
3440a67f45c3Smrg    *) as_dir=$as_dir/ ;;
3441a67f45c3Smrg  esac
3442482df631Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3443a67f45c3Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3444482df631Smrg    ac_cv_prog_ac_ct_CC="gcc"
3445a67f45c3Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3446482df631Smrg    break 2
3447482df631Smrg  fi
3448482df631Smrgdone
3449482df631Smrg  done
3450482df631SmrgIFS=$as_save_IFS
3451482df631Smrg
34528bfe6addSmrgfi ;;
34538bfe6addSmrgesac
3454482df631Smrgfi
3455482df631Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
3456482df631Smrgif test -n "$ac_ct_CC"; then
3457a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3458a67f45c3Smrgprintf "%s\n" "$ac_ct_CC" >&6; }
3459482df631Smrgelse
3460a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3461a67f45c3Smrgprintf "%s\n" "no" >&6; }
3462482df631Smrgfi
3463482df631Smrg
3464482df631Smrg  if test "x$ac_ct_CC" = x; then
3465482df631Smrg    CC=""
3466482df631Smrg  else
3467482df631Smrg    case $cross_compiling:$ac_tool_warned in
3468482df631Smrgyes:)
3469a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3470a67f45c3Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3471482df631Smrgac_tool_warned=yes ;;
3472482df631Smrgesac
3473482df631Smrg    CC=$ac_ct_CC
3474482df631Smrg  fi
3475482df631Smrgelse
3476482df631Smrg  CC="$ac_cv_prog_CC"
3477482df631Smrgfi
3478482df631Smrg
3479482df631Smrgif test -z "$CC"; then
3480482df631Smrg          if test -n "$ac_tool_prefix"; then
3481482df631Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3482482df631Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
3483a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3484a67f45c3Smrgprintf %s "checking for $ac_word... " >&6; }
3485a67f45c3Smrgif test ${ac_cv_prog_CC+y}
3486a67f45c3Smrgthen :
3487a67f45c3Smrg  printf %s "(cached) " >&6
34888bfe6addSmrgelse case e in #(
34898bfe6addSmrg  e) if test -n "$CC"; then
3490482df631Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
3491482df631Smrgelse
3492482df631Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3493482df631Smrgfor as_dir in $PATH
3494482df631Smrgdo
3495482df631Smrg  IFS=$as_save_IFS
3496a67f45c3Smrg  case $as_dir in #(((
3497a67f45c3Smrg    '') as_dir=./ ;;
3498a67f45c3Smrg    */) ;;
3499a67f45c3Smrg    *) as_dir=$as_dir/ ;;
3500a67f45c3Smrg  esac
3501482df631Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3502a67f45c3Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3503482df631Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
3504a67f45c3Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3505482df631Smrg    break 2
3506482df631Smrg  fi
3507482df631Smrgdone
3508482df631Smrg  done
3509482df631SmrgIFS=$as_save_IFS
3510482df631Smrg
35118bfe6addSmrgfi ;;
35128bfe6addSmrgesac
3513482df631Smrgfi
3514482df631SmrgCC=$ac_cv_prog_CC
3515482df631Smrgif test -n "$CC"; then
3516a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3517a67f45c3Smrgprintf "%s\n" "$CC" >&6; }
3518482df631Smrgelse
3519a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3520a67f45c3Smrgprintf "%s\n" "no" >&6; }
3521482df631Smrgfi
3522482df631Smrg
3523482df631Smrg
3524482df631Smrg  fi
3525482df631Smrgfi
3526482df631Smrgif test -z "$CC"; then
3527482df631Smrg  # Extract the first word of "cc", so it can be a program name with args.
3528482df631Smrgset dummy cc; ac_word=$2
3529a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3530a67f45c3Smrgprintf %s "checking for $ac_word... " >&6; }
3531a67f45c3Smrgif test ${ac_cv_prog_CC+y}
3532a67f45c3Smrgthen :
3533a67f45c3Smrg  printf %s "(cached) " >&6
35348bfe6addSmrgelse case e in #(
35358bfe6addSmrg  e) if test -n "$CC"; then
3536482df631Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
3537482df631Smrgelse
3538482df631Smrg  ac_prog_rejected=no
3539482df631Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3540482df631Smrgfor as_dir in $PATH
3541482df631Smrgdo
3542482df631Smrg  IFS=$as_save_IFS
3543a67f45c3Smrg  case $as_dir in #(((
3544a67f45c3Smrg    '') as_dir=./ ;;
3545a67f45c3Smrg    */) ;;
3546a67f45c3Smrg    *) as_dir=$as_dir/ ;;
3547a67f45c3Smrg  esac
3548482df631Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3549a67f45c3Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3550a67f45c3Smrg    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
355176910425Smrg       ac_prog_rejected=yes
355276910425Smrg       continue
355376910425Smrg     fi
355476910425Smrg    ac_cv_prog_CC="cc"
3555a67f45c3Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
355676910425Smrg    break 2
355776910425Smrg  fi
355876910425Smrgdone
3559482df631Smrg  done
3560db17cd6dSmrgIFS=$as_save_IFS
356176910425Smrg
356276910425Smrgif test $ac_prog_rejected = yes; then
356376910425Smrg  # We found a bogon in the path, so make sure we never use it.
356476910425Smrg  set dummy $ac_cv_prog_CC
356576910425Smrg  shift
356676910425Smrg  if test $# != 0; then
356776910425Smrg    # We chose a different compiler from the bogus one.
356876910425Smrg    # However, it has the same basename, so the bogon will be chosen
356976910425Smrg    # first if we set CC to just the basename; use the full file name.
357076910425Smrg    shift
3571a67f45c3Smrg    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
357276910425Smrg  fi
357376910425Smrgfi
35748bfe6addSmrgfi ;;
35758bfe6addSmrgesac
357676910425Smrgfi
357776910425SmrgCC=$ac_cv_prog_CC
357876910425Smrgif test -n "$CC"; then
3579a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3580a67f45c3Smrgprintf "%s\n" "$CC" >&6; }
358176910425Smrgelse
3582a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3583a67f45c3Smrgprintf "%s\n" "no" >&6; }
358476910425Smrgfi
358576910425Smrg
3586db17cd6dSmrg
358776910425Smrgfi
358876910425Smrgif test -z "$CC"; then
358976910425Smrg  if test -n "$ac_tool_prefix"; then
3590db17cd6dSmrg  for ac_prog in cl.exe
359176910425Smrg  do
359276910425Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
359376910425Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
3594a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3595a67f45c3Smrgprintf %s "checking for $ac_word... " >&6; }
3596a67f45c3Smrgif test ${ac_cv_prog_CC+y}
3597a67f45c3Smrgthen :
3598a67f45c3Smrg  printf %s "(cached) " >&6
35998bfe6addSmrgelse case e in #(
36008bfe6addSmrg  e) if test -n "$CC"; then
360176910425Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
360276910425Smrgelse
360376910425Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
360476910425Smrgfor as_dir in $PATH
360576910425Smrgdo
360676910425Smrg  IFS=$as_save_IFS
3607a67f45c3Smrg  case $as_dir in #(((
3608a67f45c3Smrg    '') as_dir=./ ;;
3609a67f45c3Smrg    */) ;;
3610a67f45c3Smrg    *) as_dir=$as_dir/ ;;
3611a67f45c3Smrg  esac
3612482df631Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3613a67f45c3Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
361476910425Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3615a67f45c3Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
361676910425Smrg    break 2
361776910425Smrg  fi
361876910425Smrgdone
3619482df631Smrg  done
3620db17cd6dSmrgIFS=$as_save_IFS
362176910425Smrg
36228bfe6addSmrgfi ;;
36238bfe6addSmrgesac
362476910425Smrgfi
362576910425SmrgCC=$ac_cv_prog_CC
362676910425Smrgif test -n "$CC"; then
3627a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3628a67f45c3Smrgprintf "%s\n" "$CC" >&6; }
362976910425Smrgelse
3630a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3631a67f45c3Smrgprintf "%s\n" "no" >&6; }
363276910425Smrgfi
363376910425Smrg
3634db17cd6dSmrg
363576910425Smrg    test -n "$CC" && break
363676910425Smrg  done
363776910425Smrgfi
363876910425Smrgif test -z "$CC"; then
363976910425Smrg  ac_ct_CC=$CC
3640db17cd6dSmrg  for ac_prog in cl.exe
364176910425Smrgdo
364276910425Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
364376910425Smrgset dummy $ac_prog; ac_word=$2
3644a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3645a67f45c3Smrgprintf %s "checking for $ac_word... " >&6; }
3646a67f45c3Smrgif test ${ac_cv_prog_ac_ct_CC+y}
3647a67f45c3Smrgthen :
3648a67f45c3Smrg  printf %s "(cached) " >&6
36498bfe6addSmrgelse case e in #(
36508bfe6addSmrg  e) if test -n "$ac_ct_CC"; then
365176910425Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
365276910425Smrgelse
365376910425Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
365476910425Smrgfor as_dir in $PATH
365576910425Smrgdo
365676910425Smrg  IFS=$as_save_IFS
3657a67f45c3Smrg  case $as_dir in #(((
3658a67f45c3Smrg    '') as_dir=./ ;;
3659a67f45c3Smrg    */) ;;
3660a67f45c3Smrg    *) as_dir=$as_dir/ ;;
3661a67f45c3Smrg  esac
3662482df631Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3663a67f45c3Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
366476910425Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
3665a67f45c3Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
366676910425Smrg    break 2
366776910425Smrg  fi
366876910425Smrgdone
3669482df631Smrg  done
3670db17cd6dSmrgIFS=$as_save_IFS
367176910425Smrg
36728bfe6addSmrgfi ;;
36738bfe6addSmrgesac
367476910425Smrgfi
367576910425Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
367676910425Smrgif test -n "$ac_ct_CC"; then
3677a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3678a67f45c3Smrgprintf "%s\n" "$ac_ct_CC" >&6; }
367976910425Smrgelse
3680a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3681a67f45c3Smrgprintf "%s\n" "no" >&6; }
368276910425Smrgfi
368376910425Smrg
3684db17cd6dSmrg
368576910425Smrg  test -n "$ac_ct_CC" && break
368676910425Smrgdone
368776910425Smrg
3688db17cd6dSmrg  if test "x$ac_ct_CC" = x; then
3689db17cd6dSmrg    CC=""
3690db17cd6dSmrg  else
3691db17cd6dSmrg    case $cross_compiling:$ac_tool_warned in
3692db17cd6dSmrgyes:)
3693a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3694a67f45c3Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3695db17cd6dSmrgac_tool_warned=yes ;;
3696db17cd6dSmrgesac
3697db17cd6dSmrg    CC=$ac_ct_CC
3698db17cd6dSmrg  fi
369976910425Smrgfi
370076910425Smrg
370176910425Smrgfi
3702a67f45c3Smrgif test -z "$CC"; then
3703a67f45c3Smrg  if test -n "$ac_tool_prefix"; then
3704a67f45c3Smrg  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3705a67f45c3Smrgset dummy ${ac_tool_prefix}clang; ac_word=$2
3706a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3707a67f45c3Smrgprintf %s "checking for $ac_word... " >&6; }
3708a67f45c3Smrgif test ${ac_cv_prog_CC+y}
3709a67f45c3Smrgthen :
3710a67f45c3Smrg  printf %s "(cached) " >&6
37118bfe6addSmrgelse case e in #(
37128bfe6addSmrg  e) if test -n "$CC"; then
3713a67f45c3Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
3714a67f45c3Smrgelse
3715a67f45c3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3716a67f45c3Smrgfor as_dir in $PATH
3717a67f45c3Smrgdo
3718a67f45c3Smrg  IFS=$as_save_IFS
3719a67f45c3Smrg  case $as_dir in #(((
3720a67f45c3Smrg    '') as_dir=./ ;;
3721a67f45c3Smrg    */) ;;
3722a67f45c3Smrg    *) as_dir=$as_dir/ ;;
3723a67f45c3Smrg  esac
3724a67f45c3Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3725a67f45c3Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3726a67f45c3Smrg    ac_cv_prog_CC="${ac_tool_prefix}clang"
3727a67f45c3Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3728a67f45c3Smrg    break 2
3729a67f45c3Smrg  fi
3730a67f45c3Smrgdone
3731a67f45c3Smrg  done
3732a67f45c3SmrgIFS=$as_save_IFS
3733a67f45c3Smrg
37348bfe6addSmrgfi ;;
37358bfe6addSmrgesac
3736a67f45c3Smrgfi
3737a67f45c3SmrgCC=$ac_cv_prog_CC
3738a67f45c3Smrgif test -n "$CC"; then
3739a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3740a67f45c3Smrgprintf "%s\n" "$CC" >&6; }
3741a67f45c3Smrgelse
3742a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3743a67f45c3Smrgprintf "%s\n" "no" >&6; }
3744a67f45c3Smrgfi
3745a67f45c3Smrg
3746a67f45c3Smrg
3747a67f45c3Smrgfi
3748a67f45c3Smrgif test -z "$ac_cv_prog_CC"; then
3749a67f45c3Smrg  ac_ct_CC=$CC
3750a67f45c3Smrg  # Extract the first word of "clang", so it can be a program name with args.
3751a67f45c3Smrgset dummy clang; ac_word=$2
3752a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3753a67f45c3Smrgprintf %s "checking for $ac_word... " >&6; }
3754a67f45c3Smrgif test ${ac_cv_prog_ac_ct_CC+y}
3755a67f45c3Smrgthen :
3756a67f45c3Smrg  printf %s "(cached) " >&6
37578bfe6addSmrgelse case e in #(
37588bfe6addSmrg  e) if test -n "$ac_ct_CC"; then
3759a67f45c3Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3760a67f45c3Smrgelse
3761a67f45c3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762a67f45c3Smrgfor as_dir in $PATH
3763a67f45c3Smrgdo
3764a67f45c3Smrg  IFS=$as_save_IFS
3765a67f45c3Smrg  case $as_dir in #(((
3766a67f45c3Smrg    '') as_dir=./ ;;
3767a67f45c3Smrg    */) ;;
3768a67f45c3Smrg    *) as_dir=$as_dir/ ;;
3769a67f45c3Smrg  esac
3770a67f45c3Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3771a67f45c3Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3772a67f45c3Smrg    ac_cv_prog_ac_ct_CC="clang"
3773a67f45c3Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3774a67f45c3Smrg    break 2
3775a67f45c3Smrg  fi
3776a67f45c3Smrgdone
3777a67f45c3Smrg  done
3778a67f45c3SmrgIFS=$as_save_IFS
377976910425Smrg
37808bfe6addSmrgfi ;;
37818bfe6addSmrgesac
3782a67f45c3Smrgfi
3783a67f45c3Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
3784a67f45c3Smrgif test -n "$ac_ct_CC"; then
3785a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3786a67f45c3Smrgprintf "%s\n" "$ac_ct_CC" >&6; }
3787a67f45c3Smrgelse
3788a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3789a67f45c3Smrgprintf "%s\n" "no" >&6; }
3790a67f45c3Smrgfi
379176910425Smrg
3792a67f45c3Smrg  if test "x$ac_ct_CC" = x; then
3793a67f45c3Smrg    CC=""
3794a67f45c3Smrg  else
3795a67f45c3Smrg    case $cross_compiling:$ac_tool_warned in
3796a67f45c3Smrgyes:)
3797a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3798a67f45c3Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3799a67f45c3Smrgac_tool_warned=yes ;;
3800a67f45c3Smrgesac
3801a67f45c3Smrg    CC=$ac_ct_CC
3802a67f45c3Smrg  fi
3803a67f45c3Smrgelse
3804a67f45c3Smrg  CC="$ac_cv_prog_CC"
3805a67f45c3Smrgfi
3806a67f45c3Smrg
3807a67f45c3Smrgfi
3808a67f45c3Smrg
3809a67f45c3Smrg
38108bfe6addSmrgtest -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
38118bfe6addSmrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3812482df631Smrgas_fn_error $? "no acceptable C compiler found in \$PATH
38138bfe6addSmrgSee 'config.log' for more details" "$LINENO" 5; }
381476910425Smrg
381576910425Smrg# Provide some information about the compiler.
3816a67f45c3Smrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3817db17cd6dSmrgset X $ac_compile
3818db17cd6dSmrgac_compiler=$2
3819a67f45c3Smrgfor ac_option in --version -v -V -qversion -version; do
3820482df631Smrg  { { ac_try="$ac_compiler $ac_option >&5"
3821db17cd6dSmrgcase "(($ac_try" in
3822db17cd6dSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3823db17cd6dSmrg  *) ac_try_echo=$ac_try;;
3824db17cd6dSmrgesac
3825482df631Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3826a67f45c3Smrgprintf "%s\n" "$ac_try_echo"; } >&5
3827482df631Smrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
382876910425Smrg  ac_status=$?
3829482df631Smrg  if test -s conftest.err; then
3830482df631Smrg    sed '10a\
3831482df631Smrg... rest of stderr output deleted ...
3832482df631Smrg         10q' conftest.err >conftest.er1
3833482df631Smrg    cat conftest.er1 >&5
3834482df631Smrg  fi
3835482df631Smrg  rm -f conftest.er1 conftest.err
3836a67f45c3Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3837482df631Smrg  test $ac_status = 0; }
3838482df631Smrgdone
383976910425Smrg
3840482df631Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
384176910425Smrg/* end confdefs.h.  */
384276910425Smrg
384376910425Smrgint
3844a67f45c3Smrgmain (void)
384576910425Smrg{
384676910425Smrg
384776910425Smrg  ;
384876910425Smrg  return 0;
384976910425Smrg}
385076910425Smrg_ACEOF
385176910425Smrgac_clean_files_save=$ac_clean_files
3852db17cd6dSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
385376910425Smrg# Try to create an executable without -o first, disregard a.out.
385476910425Smrg# It will help us diagnose broken compilers, and finding out an intuition
385576910425Smrg# of exeext.
3856a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3857a67f45c3Smrgprintf %s "checking whether the C compiler works... " >&6; }
3858a67f45c3Smrgac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3859db17cd6dSmrg
3860db17cd6dSmrg# The possible output files:
3861db17cd6dSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3862db17cd6dSmrg
3863db17cd6dSmrgac_rmfiles=
3864db17cd6dSmrgfor ac_file in $ac_files
3865db17cd6dSmrgdo
3866db17cd6dSmrg  case $ac_file in
3867db17cd6dSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3868db17cd6dSmrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3869db17cd6dSmrg  esac
3870db17cd6dSmrgdone
3871db17cd6dSmrgrm -f $ac_rmfiles
3872db17cd6dSmrg
3873482df631Smrgif { { ac_try="$ac_link_default"
3874db17cd6dSmrgcase "(($ac_try" in
3875db17cd6dSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876db17cd6dSmrg  *) ac_try_echo=$ac_try;;
3877db17cd6dSmrgesac
3878482df631Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3879a67f45c3Smrgprintf "%s\n" "$ac_try_echo"; } >&5
3880db17cd6dSmrg  (eval "$ac_link_default") 2>&5
388176910425Smrg  ac_status=$?
3882a67f45c3Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3883a67f45c3Smrg  test $ac_status = 0; }
3884a67f45c3Smrgthen :
38858bfe6addSmrg  # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
38868bfe6addSmrg# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3887db17cd6dSmrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3888db17cd6dSmrg# so that the user can short-circuit this test for compilers unknown to
3889db17cd6dSmrg# Autoconf.
3890db17cd6dSmrgfor ac_file in $ac_files ''
389176910425Smrgdo
389276910425Smrg  test -f "$ac_file" || continue
389376910425Smrg  case $ac_file in
3894db17cd6dSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
389576910425Smrg	;;
389676910425Smrg    [ab].out )
389776910425Smrg	# We found the default executable, but exeext='' is most
389876910425Smrg	# certainly right.
389976910425Smrg	break;;
390076910425Smrg    *.* )
3901a67f45c3Smrg	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3902db17cd6dSmrg	then :; else
3903db17cd6dSmrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3904db17cd6dSmrg	fi
3905db17cd6dSmrg	# We set ac_cv_exeext here because the later test for it is not
39068bfe6addSmrg	# safe: cross compilers may not add the suffix if given an '-o'
3907db17cd6dSmrg	# argument, so we may need to know it at that point already.
3908db17cd6dSmrg	# Even if this section looks crufty: it has the advantage of
3909db17cd6dSmrg	# actually working.
391076910425Smrg	break;;
391176910425Smrg    * )
391276910425Smrg	break;;
391376910425Smrg  esac
391476910425Smrgdone
3915db17cd6dSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
3916db17cd6dSmrg
39178bfe6addSmrgelse case e in #(
39188bfe6addSmrg  e) ac_file='' ;;
39198bfe6addSmrgesac
3920db17cd6dSmrgfi
3921a67f45c3Smrgif test -z "$ac_file"
3922a67f45c3Smrgthen :
3923a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3924a67f45c3Smrgprintf "%s\n" "no" >&6; }
3925a67f45c3Smrgprintf "%s\n" "$as_me: failed program was:" >&5
392676910425Smrgsed 's/^/| /' conftest.$ac_ext >&5
392776910425Smrg
39288bfe6addSmrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
39298bfe6addSmrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3930482df631Smrgas_fn_error 77 "C compiler cannot create executables
39318bfe6addSmrgSee 'config.log' for more details" "$LINENO" 5; }
39328bfe6addSmrgelse case e in #(
39338bfe6addSmrg  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39348bfe6addSmrgprintf "%s\n" "yes" >&6; } ;;
39358bfe6addSmrgesac
3936a67f45c3Smrgfi
3937a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3938a67f45c3Smrgprintf %s "checking for C compiler default output file name... " >&6; }
3939a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3940a67f45c3Smrgprintf "%s\n" "$ac_file" >&6; }
394176910425Smrgac_exeext=$ac_cv_exeext
394276910425Smrg
3943db17cd6dSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
394476910425Smrgac_clean_files=$ac_clean_files_save
3945a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3946a67f45c3Smrgprintf %s "checking for suffix of executables... " >&6; }
3947482df631Smrgif { { ac_try="$ac_link"
3948db17cd6dSmrgcase "(($ac_try" in
3949db17cd6dSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950db17cd6dSmrg  *) ac_try_echo=$ac_try;;
3951db17cd6dSmrgesac
3952482df631Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3953a67f45c3Smrgprintf "%s\n" "$ac_try_echo"; } >&5
3954db17cd6dSmrg  (eval "$ac_link") 2>&5
395576910425Smrg  ac_status=$?
3956a67f45c3Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3957a67f45c3Smrg  test $ac_status = 0; }
3958a67f45c3Smrgthen :
39598bfe6addSmrg  # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
39608bfe6addSmrg# catch 'conftest.exe'.  For instance with Cygwin, 'ls conftest' will
39618bfe6addSmrg# work properly (i.e., refer to 'conftest.exe'), while it won't with
39628bfe6addSmrg# 'rm'.
396376910425Smrgfor ac_file in conftest.exe conftest conftest.*; do
396476910425Smrg  test -f "$ac_file" || continue
396576910425Smrg  case $ac_file in
3966db17cd6dSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
396776910425Smrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
396876910425Smrg	  break;;
396976910425Smrg    * ) break;;
397076910425Smrg  esac
397176910425Smrgdone
39728bfe6addSmrgelse case e in #(
39738bfe6addSmrg  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
39748bfe6addSmrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3975482df631Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
39768bfe6addSmrgSee 'config.log' for more details" "$LINENO" 5; } ;;
39778bfe6addSmrgesac
397876910425Smrgfi
3979482df631Smrgrm -f conftest conftest$ac_cv_exeext
3980a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3981a67f45c3Smrgprintf "%s\n" "$ac_cv_exeext" >&6; }
398276910425Smrg
398376910425Smrgrm -f conftest.$ac_ext
398476910425SmrgEXEEXT=$ac_cv_exeext
398576910425Smrgac_exeext=$EXEEXT
3986482df631Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987482df631Smrg/* end confdefs.h.  */
3988482df631Smrg#include <stdio.h>
3989482df631Smrgint
3990a67f45c3Smrgmain (void)
3991482df631Smrg{
3992482df631SmrgFILE *f = fopen ("conftest.out", "w");
39938bfe6addSmrg if (!f)
39948bfe6addSmrg  return 1;
3995482df631Smrg return ferror (f) || fclose (f) != 0;
3996482df631Smrg
3997482df631Smrg  ;
3998482df631Smrg  return 0;
3999482df631Smrg}
4000482df631Smrg_ACEOF
4001482df631Smrgac_clean_files="$ac_clean_files conftest.out"
4002482df631Smrg# Check that the compiler produces executables we can run.  If not, either
4003482df631Smrg# the compiler is broken, or we cross compile.
4004a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4005a67f45c3Smrgprintf %s "checking whether we are cross compiling... " >&6; }
4006482df631Smrgif test "$cross_compiling" != yes; then
4007482df631Smrg  { { ac_try="$ac_link"
4008482df631Smrgcase "(($ac_try" in
4009482df631Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010482df631Smrg  *) ac_try_echo=$ac_try;;
4011482df631Smrgesac
4012482df631Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4013a67f45c3Smrgprintf "%s\n" "$ac_try_echo"; } >&5
4014482df631Smrg  (eval "$ac_link") 2>&5
4015482df631Smrg  ac_status=$?
4016a67f45c3Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4017482df631Smrg  test $ac_status = 0; }
4018482df631Smrg  if { ac_try='./conftest$ac_cv_exeext'
4019482df631Smrg  { { case "(($ac_try" in
4020482df631Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4021482df631Smrg  *) ac_try_echo=$ac_try;;
4022482df631Smrgesac
4023482df631Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4024a67f45c3Smrgprintf "%s\n" "$ac_try_echo"; } >&5
4025482df631Smrg  (eval "$ac_try") 2>&5
4026482df631Smrg  ac_status=$?
4027a67f45c3Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4028482df631Smrg  test $ac_status = 0; }; }; then
4029482df631Smrg    cross_compiling=no
4030482df631Smrg  else
4031482df631Smrg    if test "$cross_compiling" = maybe; then
4032482df631Smrg	cross_compiling=yes
4033482df631Smrg    else
40348bfe6addSmrg	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
40358bfe6addSmrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4036a67f45c3Smrgas_fn_error 77 "cannot run C compiled programs.
40378bfe6addSmrgIf you meant to cross compile, use '--host'.
40388bfe6addSmrgSee 'config.log' for more details" "$LINENO" 5; }
4039482df631Smrg    fi
4040482df631Smrg  fi
4041482df631Smrgfi
4042a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4043a67f45c3Smrgprintf "%s\n" "$cross_compiling" >&6; }
4044482df631Smrg
40458bfe6addSmrgrm -f conftest.$ac_ext conftest$ac_cv_exeext \
40468bfe6addSmrg  conftest.o conftest.obj conftest.out
4047482df631Smrgac_clean_files=$ac_clean_files_save
4048a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4049a67f45c3Smrgprintf %s "checking for suffix of object files... " >&6; }
4050a67f45c3Smrgif test ${ac_cv_objext+y}
4051a67f45c3Smrgthen :
4052a67f45c3Smrg  printf %s "(cached) " >&6
40538bfe6addSmrgelse case e in #(
40548bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
405576910425Smrg/* end confdefs.h.  */
405676910425Smrg
405776910425Smrgint
4058a67f45c3Smrgmain (void)
405976910425Smrg{
406076910425Smrg
406176910425Smrg  ;
406276910425Smrg  return 0;
406376910425Smrg}
406476910425Smrg_ACEOF
406576910425Smrgrm -f conftest.o conftest.obj
4066482df631Smrgif { { ac_try="$ac_compile"
4067db17cd6dSmrgcase "(($ac_try" in
4068db17cd6dSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069db17cd6dSmrg  *) ac_try_echo=$ac_try;;
4070db17cd6dSmrgesac
4071482df631Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4072a67f45c3Smrgprintf "%s\n" "$ac_try_echo"; } >&5
4073db17cd6dSmrg  (eval "$ac_compile") 2>&5
407476910425Smrg  ac_status=$?
4075a67f45c3Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4076a67f45c3Smrg  test $ac_status = 0; }
4077a67f45c3Smrgthen :
4078db17cd6dSmrg  for ac_file in conftest.o conftest.obj conftest.*; do
4079db17cd6dSmrg  test -f "$ac_file" || continue;
408076910425Smrg  case $ac_file in
4081db17cd6dSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
408276910425Smrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
408376910425Smrg       break;;
408476910425Smrg  esac
408576910425Smrgdone
40868bfe6addSmrgelse case e in #(
40878bfe6addSmrg  e) printf "%s\n" "$as_me: failed program was:" >&5
408876910425Smrgsed 's/^/| /' conftest.$ac_ext >&5
408976910425Smrg
40908bfe6addSmrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
40918bfe6addSmrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4092482df631Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile
40938bfe6addSmrgSee 'config.log' for more details" "$LINENO" 5; } ;;
40948bfe6addSmrgesac
409576910425Smrgfi
40968bfe6addSmrgrm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
40978bfe6addSmrgesac
409876910425Smrgfi
4099a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4100a67f45c3Smrgprintf "%s\n" "$ac_cv_objext" >&6; }
410176910425SmrgOBJEXT=$ac_cv_objext
410276910425Smrgac_objext=$OBJEXT
4103a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4104a67f45c3Smrgprintf %s "checking whether the compiler supports GNU C... " >&6; }
4105a67f45c3Smrgif test ${ac_cv_c_compiler_gnu+y}
4106a67f45c3Smrgthen :
4107a67f45c3Smrg  printf %s "(cached) " >&6
41088bfe6addSmrgelse case e in #(
41098bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
411076910425Smrg/* end confdefs.h.  */
411176910425Smrg
411276910425Smrgint
4113a67f45c3Smrgmain (void)
411476910425Smrg{
411576910425Smrg#ifndef __GNUC__
411676910425Smrg       choke me
411776910425Smrg#endif
411876910425Smrg
411976910425Smrg  ;
412076910425Smrg  return 0;
412176910425Smrg}
412276910425Smrg_ACEOF
4123a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
4124a67f45c3Smrgthen :
412576910425Smrg  ac_compiler_gnu=yes
41268bfe6addSmrgelse case e in #(
41278bfe6addSmrg  e) ac_compiler_gnu=no ;;
41288bfe6addSmrgesac
412976910425Smrgfi
4130a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
413176910425Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
41328bfe6addSmrg ;;
41338bfe6addSmrgesac
413476910425Smrgfi
4135a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4136a67f45c3Smrgprintf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4137a67f45c3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
4138a67f45c3Smrg
4139db17cd6dSmrgif test $ac_compiler_gnu = yes; then
4140db17cd6dSmrg  GCC=yes
4141db17cd6dSmrgelse
4142db17cd6dSmrg  GCC=
4143db17cd6dSmrgfi
4144a67f45c3Smrgac_test_CFLAGS=${CFLAGS+y}
414576910425Smrgac_save_CFLAGS=$CFLAGS
4146a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4147a67f45c3Smrgprintf %s "checking whether $CC accepts -g... " >&6; }
4148a67f45c3Smrgif test ${ac_cv_prog_cc_g+y}
4149a67f45c3Smrgthen :
4150a67f45c3Smrg  printf %s "(cached) " >&6
41518bfe6addSmrgelse case e in #(
41528bfe6addSmrg  e) ac_save_c_werror_flag=$ac_c_werror_flag
4153db17cd6dSmrg   ac_c_werror_flag=yes
4154db17cd6dSmrg   ac_cv_prog_cc_g=no
4155db17cd6dSmrg   CFLAGS="-g"
4156482df631Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
415776910425Smrg/* end confdefs.h.  */
415876910425Smrg
415976910425Smrgint
4160a67f45c3Smrgmain (void)
416176910425Smrg{
416276910425Smrg
416376910425Smrg  ;
416476910425Smrg  return 0;
416576910425Smrg}
416676910425Smrg_ACEOF
4167a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
4168a67f45c3Smrgthen :
4169db17cd6dSmrg  ac_cv_prog_cc_g=yes
41708bfe6addSmrgelse case e in #(
41718bfe6addSmrg  e) CFLAGS=""
4172482df631Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4173db17cd6dSmrg/* end confdefs.h.  */
4174db17cd6dSmrg
4175db17cd6dSmrgint
4176a67f45c3Smrgmain (void)
4177db17cd6dSmrg{
4178db17cd6dSmrg
4179db17cd6dSmrg  ;
4180db17cd6dSmrg  return 0;
4181db17cd6dSmrg}
4182db17cd6dSmrg_ACEOF
4183a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
4184a67f45c3Smrgthen :
4185db17cd6dSmrg
41868bfe6addSmrgelse case e in #(
41878bfe6addSmrg  e) ac_c_werror_flag=$ac_save_c_werror_flag
4188db17cd6dSmrg	 CFLAGS="-g"
4189482df631Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190db17cd6dSmrg/* end confdefs.h.  */
4191db17cd6dSmrg
4192db17cd6dSmrgint
4193a67f45c3Smrgmain (void)
4194db17cd6dSmrg{
4195db17cd6dSmrg
4196db17cd6dSmrg  ;
4197db17cd6dSmrg  return 0;
4198db17cd6dSmrg}
4199db17cd6dSmrg_ACEOF
4200a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
4201a67f45c3Smrgthen :
420276910425Smrg  ac_cv_prog_cc_g=yes
4203db17cd6dSmrgfi
42048bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
42058bfe6addSmrgesac
420676910425Smrgfi
42078bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
42088bfe6addSmrgesac
4209db17cd6dSmrgfi
4210a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42118bfe6addSmrg   ac_c_werror_flag=$ac_save_c_werror_flag ;;
42128bfe6addSmrgesac
421376910425Smrgfi
4214a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4215a67f45c3Smrgprintf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4216a67f45c3Smrgif test $ac_test_CFLAGS; then
421776910425Smrg  CFLAGS=$ac_save_CFLAGS
421876910425Smrgelif test $ac_cv_prog_cc_g = yes; then
421976910425Smrg  if test "$GCC" = yes; then
422076910425Smrg    CFLAGS="-g -O2"
422176910425Smrg  else
422276910425Smrg    CFLAGS="-g"
422376910425Smrg  fi
422476910425Smrgelse
422576910425Smrg  if test "$GCC" = yes; then
422676910425Smrg    CFLAGS="-O2"
422776910425Smrg  else
422876910425Smrg    CFLAGS=
422976910425Smrg  fi
423076910425Smrgfi
4231a67f45c3Smrgac_prog_cc_stdc=no
4232a67f45c3Smrgif test x$ac_prog_cc_stdc = xno
4233a67f45c3Smrgthen :
4234a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4235a67f45c3Smrgprintf %s "checking for $CC option to enable C11 features... " >&6; }
4236a67f45c3Smrgif test ${ac_cv_prog_cc_c11+y}
4237a67f45c3Smrgthen :
4238a67f45c3Smrg  printf %s "(cached) " >&6
42398bfe6addSmrgelse case e in #(
42408bfe6addSmrg  e) ac_cv_prog_cc_c11=no
424176910425Smrgac_save_CC=$CC
4242482df631Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
424376910425Smrg/* end confdefs.h.  */
4244a67f45c3Smrg$ac_c_conftest_c11_program
4245a67f45c3Smrg_ACEOF
4246a67f45c3Smrgfor ac_arg in '' -std=gnu11
4247a67f45c3Smrgdo
4248a67f45c3Smrg  CC="$ac_save_CC $ac_arg"
4249a67f45c3Smrg  if ac_fn_c_try_compile "$LINENO"
4250a67f45c3Smrgthen :
4251a67f45c3Smrg  ac_cv_prog_cc_c11=$ac_arg
4252a67f45c3Smrgfi
4253a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam
4254a67f45c3Smrg  test "x$ac_cv_prog_cc_c11" != "xno" && break
4255a67f45c3Smrgdone
4256a67f45c3Smrgrm -f conftest.$ac_ext
42578bfe6addSmrgCC=$ac_save_CC ;;
42588bfe6addSmrgesac
4259a67f45c3Smrgfi
426076910425Smrg
4261a67f45c3Smrgif test "x$ac_cv_prog_cc_c11" = xno
4262a67f45c3Smrgthen :
4263a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4264a67f45c3Smrgprintf "%s\n" "unsupported" >&6; }
42658bfe6addSmrgelse case e in #(
42668bfe6addSmrg  e) if test "x$ac_cv_prog_cc_c11" = x
4267a67f45c3Smrgthen :
4268a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4269a67f45c3Smrgprintf "%s\n" "none needed" >&6; }
42708bfe6addSmrgelse case e in #(
42718bfe6addSmrg  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4272a67f45c3Smrgprintf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
42738bfe6addSmrg     CC="$CC $ac_cv_prog_cc_c11" ;;
42748bfe6addSmrgesac
4275a67f45c3Smrgfi
4276a67f45c3Smrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
42778bfe6addSmrg  ac_prog_cc_stdc=c11 ;;
42788bfe6addSmrgesac
4279a67f45c3Smrgfi
4280a67f45c3Smrgfi
4281a67f45c3Smrgif test x$ac_prog_cc_stdc = xno
4282a67f45c3Smrgthen :
4283a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4284a67f45c3Smrgprintf %s "checking for $CC option to enable C99 features... " >&6; }
4285a67f45c3Smrgif test ${ac_cv_prog_cc_c99+y}
4286a67f45c3Smrgthen :
4287a67f45c3Smrg  printf %s "(cached) " >&6
42888bfe6addSmrgelse case e in #(
42898bfe6addSmrg  e) ac_cv_prog_cc_c99=no
4290a67f45c3Smrgac_save_CC=$CC
4291a67f45c3Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4292a67f45c3Smrg/* end confdefs.h.  */
4293a67f45c3Smrg$ac_c_conftest_c99_program
4294a67f45c3Smrg_ACEOF
4295a67f45c3Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4296a67f45c3Smrgdo
4297a67f45c3Smrg  CC="$ac_save_CC $ac_arg"
4298a67f45c3Smrg  if ac_fn_c_try_compile "$LINENO"
4299a67f45c3Smrgthen :
4300a67f45c3Smrg  ac_cv_prog_cc_c99=$ac_arg
4301a67f45c3Smrgfi
4302a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam
4303a67f45c3Smrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
4304a67f45c3Smrgdone
4305a67f45c3Smrgrm -f conftest.$ac_ext
43068bfe6addSmrgCC=$ac_save_CC ;;
43078bfe6addSmrgesac
4308a67f45c3Smrgfi
4309db17cd6dSmrg
4310a67f45c3Smrgif test "x$ac_cv_prog_cc_c99" = xno
4311a67f45c3Smrgthen :
4312a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4313a67f45c3Smrgprintf "%s\n" "unsupported" >&6; }
43148bfe6addSmrgelse case e in #(
43158bfe6addSmrg  e) if test "x$ac_cv_prog_cc_c99" = x
4316a67f45c3Smrgthen :
4317a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4318a67f45c3Smrgprintf "%s\n" "none needed" >&6; }
43198bfe6addSmrgelse case e in #(
43208bfe6addSmrg  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4321a67f45c3Smrgprintf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
43228bfe6addSmrg     CC="$CC $ac_cv_prog_cc_c99" ;;
43238bfe6addSmrgesac
4324a67f45c3Smrgfi
4325a67f45c3Smrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
43268bfe6addSmrg  ac_prog_cc_stdc=c99 ;;
43278bfe6addSmrgesac
4328a67f45c3Smrgfi
4329a67f45c3Smrgfi
4330a67f45c3Smrgif test x$ac_prog_cc_stdc = xno
4331a67f45c3Smrgthen :
4332a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4333a67f45c3Smrgprintf %s "checking for $CC option to enable C89 features... " >&6; }
4334a67f45c3Smrgif test ${ac_cv_prog_cc_c89+y}
4335a67f45c3Smrgthen :
4336a67f45c3Smrg  printf %s "(cached) " >&6
43378bfe6addSmrgelse case e in #(
43388bfe6addSmrg  e) ac_cv_prog_cc_c89=no
4339a67f45c3Smrgac_save_CC=$CC
4340a67f45c3Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341a67f45c3Smrg/* end confdefs.h.  */
4342a67f45c3Smrg$ac_c_conftest_c89_program
434376910425Smrg_ACEOF
4344a67f45c3Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
434576910425Smrgdo
434676910425Smrg  CC="$ac_save_CC $ac_arg"
4347a67f45c3Smrg  if ac_fn_c_try_compile "$LINENO"
4348a67f45c3Smrgthen :
4349db17cd6dSmrg  ac_cv_prog_cc_c89=$ac_arg
435076910425Smrgfi
4351a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam
4352db17cd6dSmrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
435376910425Smrgdone
4354db17cd6dSmrgrm -f conftest.$ac_ext
43558bfe6addSmrgCC=$ac_save_CC ;;
43568bfe6addSmrgesac
435776910425Smrgfi
435876910425Smrg
4359a67f45c3Smrgif test "x$ac_cv_prog_cc_c89" = xno
4360a67f45c3Smrgthen :
4361a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4362a67f45c3Smrgprintf "%s\n" "unsupported" >&6; }
43638bfe6addSmrgelse case e in #(
43648bfe6addSmrg  e) if test "x$ac_cv_prog_cc_c89" = x
4365a67f45c3Smrgthen :
4366a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4367a67f45c3Smrgprintf "%s\n" "none needed" >&6; }
43688bfe6addSmrgelse case e in #(
43698bfe6addSmrg  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4370a67f45c3Smrgprintf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
43718bfe6addSmrg     CC="$CC $ac_cv_prog_cc_c89" ;;
43728bfe6addSmrgesac
4373a67f45c3Smrgfi
4374a67f45c3Smrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
43758bfe6addSmrg  ac_prog_cc_stdc=c89 ;;
43768bfe6addSmrgesac
4377a67f45c3Smrgfi
4378482df631Smrgfi
437976910425Smrg
438076910425Smrgac_ext=c
438176910425Smrgac_cpp='$CPP $CPPFLAGS'
438276910425Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
438376910425Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
438476910425Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
438576910425Smrg
4386a67f45c3Smrg
4387a67f45c3Smrg  ac_ext=c
43889ff100acSmrgac_cpp='$CPP $CPPFLAGS'
43899ff100acSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43909ff100acSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43919ff100acSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
4392a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4393a67f45c3Smrgprintf %s "checking whether $CC understands -c and -o together... " >&6; }
4394a67f45c3Smrgif test ${am_cv_prog_cc_c_o+y}
4395a67f45c3Smrgthen :
4396a67f45c3Smrg  printf %s "(cached) " >&6
43978bfe6addSmrgelse case e in #(
43988bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43999ff100acSmrg/* end confdefs.h.  */
44009ff100acSmrg
44019ff100acSmrgint
4402a67f45c3Smrgmain (void)
44039ff100acSmrg{
44049ff100acSmrg
44059ff100acSmrg  ;
44069ff100acSmrg  return 0;
44079ff100acSmrg}
44089ff100acSmrg_ACEOF
44099ff100acSmrg  # Make sure it works both with $CC and with simple cc.
44109ff100acSmrg  # Following AC_PROG_CC_C_O, we do the test twice because some
44119ff100acSmrg  # compilers refuse to overwrite an existing .o file with -o,
44129ff100acSmrg  # though they will create one.
44139ff100acSmrg  am_cv_prog_cc_c_o=yes
44149ff100acSmrg  for am_i in 1 2; do
44159ff100acSmrg    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
44169ff100acSmrg   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
44179ff100acSmrg   ac_status=$?
44189ff100acSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44199ff100acSmrg   (exit $ac_status); } \
44209ff100acSmrg         && test -f conftest2.$ac_objext; then
44219ff100acSmrg      : OK
44229ff100acSmrg    else
44239ff100acSmrg      am_cv_prog_cc_c_o=no
44249ff100acSmrg      break
44259ff100acSmrg    fi
44269ff100acSmrg  done
44279ff100acSmrg  rm -f core conftest*
44288bfe6addSmrg  unset am_i ;;
44298bfe6addSmrgesac
44309ff100acSmrgfi
4431a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4432a67f45c3Smrgprintf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
44339ff100acSmrgif test "$am_cv_prog_cc_c_o" != yes; then
44349ff100acSmrg   # Losing compiler, so override with the script.
44359ff100acSmrg   # FIXME: It is wrong to rewrite CC.
44369ff100acSmrg   # But if we don't then we get into trouble of one sort or another.
44379ff100acSmrg   # A longer-term fix would be to have automake use am__CC in this case,
44389ff100acSmrg   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
44399ff100acSmrg   CC="$am_aux_dir/compile $CC"
44409ff100acSmrgfi
44419ff100acSmrgac_ext=c
44429ff100acSmrgac_cpp='$CPP $CPPFLAGS'
44439ff100acSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44449ff100acSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44459ff100acSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
44469ff100acSmrg
44479ff100acSmrg
44489ff100acSmrgdepcc="$CC"   am_compiler_list=
44499ff100acSmrg
4450a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4451a67f45c3Smrgprintf %s "checking dependency style of $depcc... " >&6; }
4452a67f45c3Smrgif test ${am_cv_CC_dependencies_compiler_type+y}
4453a67f45c3Smrgthen :
4454a67f45c3Smrg  printf %s "(cached) " >&6
44558bfe6addSmrgelse case e in #(
44568bfe6addSmrg  e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
445776910425Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
445876910425Smrg  # making bogus files that we don't know about and never remove.  For
445976910425Smrg  # instance it was reported that on HP-UX the gcc test will end up
44609ff100acSmrg  # making a dummy file named 'D' -- because '-MD' means "put the output
44619ff100acSmrg  # in D".
44629ff100acSmrg  rm -rf conftest.dir
446376910425Smrg  mkdir conftest.dir
446476910425Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
446576910425Smrg  # using a relative directory.
446676910425Smrg  cp "$am_depcomp" conftest.dir
446776910425Smrg  cd conftest.dir
446876910425Smrg  # We will build objects and dependencies in a subdirectory because
446976910425Smrg  # it helps to detect inapplicable dependency modes.  For instance
447076910425Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
447176910425Smrg  # side effect of compilation, but ICC will put the dependencies in
447276910425Smrg  # the current directory while Tru64 will put them in the object
447376910425Smrg  # directory.
447476910425Smrg  mkdir sub
447576910425Smrg
447676910425Smrg  am_cv_CC_dependencies_compiler_type=none
447776910425Smrg  if test "$am_compiler_list" = ""; then
447876910425Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
447976910425Smrg  fi
4480db17cd6dSmrg  am__universal=false
4481db17cd6dSmrg  case " $depcc " in #(
4482db17cd6dSmrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4483db17cd6dSmrg     esac
4484db17cd6dSmrg
448576910425Smrg  for depmode in $am_compiler_list; do
448676910425Smrg    # Setup a source with many dependencies, because some compilers
448776910425Smrg    # like to wrap large dependency lists on column 80 (with \), and
448876910425Smrg    # we should not choose a depcomp mode which is confused by this.
448976910425Smrg    #
449076910425Smrg    # We need to recreate these files for each test, as the compiler may
449176910425Smrg    # overwrite some of them when testing with obscure command lines.
449276910425Smrg    # This happens at least with the AIX C compiler.
449376910425Smrg    : > sub/conftest.c
449476910425Smrg    for i in 1 2 3 4 5 6; do
449576910425Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
44969ff100acSmrg      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
44979ff100acSmrg      # Solaris 10 /bin/sh.
44989ff100acSmrg      echo '/* dummy */' > sub/conftst$i.h
449976910425Smrg    done
450076910425Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
450176910425Smrg
45029ff100acSmrg    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4503db17cd6dSmrg    # mode.  It turns out that the SunPro C++ compiler does not properly
45049ff100acSmrg    # handle '-M -o', and we need to detect this.  Also, some Intel
45059ff100acSmrg    # versions had trouble with output in subdirs.
4506db17cd6dSmrg    am__obj=sub/conftest.${OBJEXT-o}
4507db17cd6dSmrg    am__minus_obj="-o $am__obj"
450876910425Smrg    case $depmode in
4509db17cd6dSmrg    gcc)
4510db17cd6dSmrg      # This depmode causes a compiler race in universal mode.
4511db17cd6dSmrg      test "$am__universal" = false || continue
4512db17cd6dSmrg      ;;
451376910425Smrg    nosideeffect)
45149ff100acSmrg      # After this tag, mechanisms are not by side-effect, so they'll
45159ff100acSmrg      # only be used when explicitly requested.
451676910425Smrg      if test "x$enable_dependency_tracking" = xyes; then
451776910425Smrg	continue
451876910425Smrg      else
451976910425Smrg	break
452076910425Smrg      fi
452176910425Smrg      ;;
45229ff100acSmrg    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
45239ff100acSmrg      # This compiler won't grok '-c -o', but also, the minuso test has
4524db17cd6dSmrg      # not run yet.  These depmodes are late enough in the game, and
4525db17cd6dSmrg      # so weak that their functioning should not be impacted.
4526db17cd6dSmrg      am__obj=conftest.${OBJEXT-o}
4527db17cd6dSmrg      am__minus_obj=
4528db17cd6dSmrg      ;;
452976910425Smrg    none) break ;;
453076910425Smrg    esac
453176910425Smrg    if depmode=$depmode \
4532db17cd6dSmrg       source=sub/conftest.c object=$am__obj \
453376910425Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4534db17cd6dSmrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
453576910425Smrg         >/dev/null 2>conftest.err &&
4536db17cd6dSmrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
453776910425Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4538db17cd6dSmrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
453976910425Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
454076910425Smrg      # icc doesn't choke on unknown options, it will just issue warnings
454176910425Smrg      # or remarks (even with -Werror).  So we grep stderr for any message
454276910425Smrg      # that says an option was ignored or not supported.
45438bfe6addSmrg      # When given -MP, icc 7.0 and 7.1 complain thus:
454476910425Smrg      #   icc: Command line warning: ignoring option '-M'; no argument required
4545a67f45c3Smrg      # The diagnosis changed in icc 8.0:
4546a67f45c3Smrg      #   icc: Command line remark: option '-MP' not supported
4547a67f45c3Smrg      if (grep 'ignoring option' conftest.err ||
4548a67f45c3Smrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4549a67f45c3Smrg        am_cv_CC_dependencies_compiler_type=$depmode
4550a67f45c3Smrg        break
4551a67f45c3Smrg      fi
4552db17cd6dSmrg    fi
4553db17cd6dSmrg  done
4554db17cd6dSmrg
4555a67f45c3Smrg  cd ..
4556a67f45c3Smrg  rm -rf conftest.dir
4557db17cd6dSmrgelse
4558a67f45c3Smrg  am_cv_CC_dependencies_compiler_type=none
4559db17cd6dSmrgfi
45608bfe6addSmrg ;;
45618bfe6addSmrgesac
4562db17cd6dSmrgfi
4563a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4564a67f45c3Smrgprintf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4565a67f45c3SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4566db17cd6dSmrg
4567a67f45c3Smrg if
4568a67f45c3Smrg  test "x$enable_dependency_tracking" != xno \
4569a67f45c3Smrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4570a67f45c3Smrg  am__fastdepCC_TRUE=
4571a67f45c3Smrg  am__fastdepCC_FALSE='#'
4572db17cd6dSmrgelse
4573a67f45c3Smrg  am__fastdepCC_TRUE='#'
4574a67f45c3Smrg  am__fastdepCC_FALSE=
4575db17cd6dSmrgfi
4576db17cd6dSmrg
4577db17cd6dSmrg
4578db17cd6dSmrg
4579a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4580a67f45c3Smrgprintf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4581a67f45c3Smrgif test ${ac_cv_c_undeclared_builtin_options+y}
4582a67f45c3Smrgthen :
4583a67f45c3Smrg  printf %s "(cached) " >&6
45848bfe6addSmrgelse case e in #(
45858bfe6addSmrg  e) ac_save_CFLAGS=$CFLAGS
4586a67f45c3Smrg   ac_cv_c_undeclared_builtin_options='cannot detect'
4587a67f45c3Smrg   for ac_arg in '' -fno-builtin; do
4588a67f45c3Smrg     CFLAGS="$ac_save_CFLAGS $ac_arg"
4589a67f45c3Smrg     # This test program should *not* compile successfully.
4590a67f45c3Smrg     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591db17cd6dSmrg/* end confdefs.h.  */
4592db17cd6dSmrg
4593db17cd6dSmrgint
4594a67f45c3Smrgmain (void)
4595db17cd6dSmrg{
4596a67f45c3Smrg(void) strchr;
4597db17cd6dSmrg  ;
4598db17cd6dSmrg  return 0;
4599db17cd6dSmrg}
4600db17cd6dSmrg_ACEOF
4601a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
4602a67f45c3Smrgthen :
4603db17cd6dSmrg
46048bfe6addSmrgelse case e in #(
46058bfe6addSmrg  e) # This test program should compile successfully.
4606a67f45c3Smrg        # No library function is consistently available on
4607a67f45c3Smrg        # freestanding implementations, so test against a dummy
4608a67f45c3Smrg        # declaration.  Include always-available headers on the
4609a67f45c3Smrg        # off chance that they somehow elicit warnings.
4610a67f45c3Smrg        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4611db17cd6dSmrg/* end confdefs.h.  */
4612a67f45c3Smrg#include <float.h>
4613a67f45c3Smrg#include <limits.h>
4614a67f45c3Smrg#include <stdarg.h>
4615a67f45c3Smrg#include <stddef.h>
4616a67f45c3Smrgextern void ac_decl (int, char *);
4617db17cd6dSmrg
4618db17cd6dSmrgint
4619a67f45c3Smrgmain (void)
4620db17cd6dSmrg{
4621a67f45c3Smrg(void) ac_decl (0, (char *) 0);
4622a67f45c3Smrg  (void) ac_decl;
4623a67f45c3Smrg
4624a67f45c3Smrg  ;
4625db17cd6dSmrg  return 0;
4626db17cd6dSmrg}
4627db17cd6dSmrg_ACEOF
4628a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
4629a67f45c3Smrgthen :
4630a67f45c3Smrg  if test x"$ac_arg" = x
4631a67f45c3Smrgthen :
4632a67f45c3Smrg  ac_cv_c_undeclared_builtin_options='none needed'
46338bfe6addSmrgelse case e in #(
46348bfe6addSmrg  e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
46358bfe6addSmrgesac
4636db17cd6dSmrgfi
4637a67f45c3Smrg          break
4638db17cd6dSmrgfi
46398bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
46408bfe6addSmrgesac
4641db17cd6dSmrgfi
4642a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4643a67f45c3Smrg    done
4644a67f45c3Smrg    CFLAGS=$ac_save_CFLAGS
46458bfe6addSmrg   ;;
46468bfe6addSmrgesac
4647a67f45c3Smrgfi
4648a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4649a67f45c3Smrgprintf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4650a67f45c3Smrg  case $ac_cv_c_undeclared_builtin_options in #(
4651a67f45c3Smrg  'cannot detect') :
46528bfe6addSmrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
46538bfe6addSmrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4654a67f45c3Smrgas_fn_error $? "cannot make $CC report undeclared builtins
46558bfe6addSmrgSee 'config.log' for more details" "$LINENO" 5; } ;; #(
4656a67f45c3Smrg  'none needed') :
4657a67f45c3Smrg    ac_c_undeclared_builtin_options='' ;; #(
4658a67f45c3Smrg  *) :
4659a67f45c3Smrg    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4660a67f45c3Smrgesac
4661db17cd6dSmrg
4662a67f45c3Smrgac_header= ac_cache=
4663a67f45c3Smrgfor ac_item in $ac_header_c_list
4664a67f45c3Smrgdo
4665a67f45c3Smrg  if test $ac_cache; then
4666a67f45c3Smrg    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4667a67f45c3Smrg    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4668a67f45c3Smrg      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4669a67f45c3Smrg    fi
4670a67f45c3Smrg    ac_header= ac_cache=
4671a67f45c3Smrg  elif test $ac_header; then
4672a67f45c3Smrg    ac_cache=$ac_item
4673a67f45c3Smrg  else
4674a67f45c3Smrg    ac_header=$ac_item
4675a67f45c3Smrg  fi
4676a67f45c3Smrgdone
4677db17cd6dSmrg
4678db17cd6dSmrg
4679db17cd6dSmrg
4680db17cd6dSmrg
4681db17cd6dSmrg
4682db17cd6dSmrg
4683db17cd6dSmrg
4684db17cd6dSmrg
4685a67f45c3Smrgif test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4686a67f45c3Smrgthen :
46879ff100acSmrg
4688a67f45c3Smrgprintf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
46899ff100acSmrg
4690a67f45c3Smrgfi
4691a67f45c3Smrg
4692a67f45c3Smrg
4693a67f45c3Smrg
4694a67f45c3Smrg
4695a67f45c3Smrgac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4696a67f45c3Smrgif test "x$ac_cv_have_decl___clang__" = xyes
4697a67f45c3Smrgthen :
46989ff100acSmrg  CLANGCC="yes"
46998bfe6addSmrgelse case e in #(
47008bfe6addSmrg  e) CLANGCC="no" ;;
47018bfe6addSmrgesac
47029ff100acSmrgfi
4703a67f45c3Smrgac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4704a67f45c3Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4705a67f45c3Smrgthen :
47069ff100acSmrg  INTELCC="yes"
47078bfe6addSmrgelse case e in #(
47088bfe6addSmrg  e) INTELCC="no" ;;
47098bfe6addSmrgesac
47109ff100acSmrgfi
4711a67f45c3Smrgac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4712a67f45c3Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4713a67f45c3Smrgthen :
47149ff100acSmrg  SUNCC="yes"
47158bfe6addSmrgelse case e in #(
47168bfe6addSmrg  e) SUNCC="no" ;;
47178bfe6addSmrgesac
47189ff100acSmrgfi
47199ff100acSmrg
47209ff100acSmrg
47219ff100acSmrg
47229ff100acSmrg
4723a67f45c3Smrg
4724a67f45c3Smrg
4725a67f45c3Smrg
4726a67f45c3Smrg
4727482df631Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4728482df631Smrg	if test -n "$ac_tool_prefix"; then
4729482df631Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4730482df631Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4731a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4732a67f45c3Smrgprintf %s "checking for $ac_word... " >&6; }
4733a67f45c3Smrgif test ${ac_cv_path_PKG_CONFIG+y}
4734a67f45c3Smrgthen :
4735a67f45c3Smrg  printf %s "(cached) " >&6
47368bfe6addSmrgelse case e in #(
47378bfe6addSmrg  e) case $PKG_CONFIG in
4738482df631Smrg  [\\/]* | ?:[\\/]*)
4739482df631Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4740482df631Smrg  ;;
4741482df631Smrg  *)
4742482df631Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743482df631Smrgfor as_dir in $PATH
4744db17cd6dSmrgdo
4745482df631Smrg  IFS=$as_save_IFS
4746a67f45c3Smrg  case $as_dir in #(((
4747a67f45c3Smrg    '') as_dir=./ ;;
4748a67f45c3Smrg    */) ;;
4749a67f45c3Smrg    *) as_dir=$as_dir/ ;;
4750a67f45c3Smrg  esac
4751482df631Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4752a67f45c3Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4753a67f45c3Smrg    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4754a67f45c3Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4755482df631Smrg    break 2
4756482df631Smrg  fi
4757482df631Smrgdone
4758482df631Smrg  done
4759482df631SmrgIFS=$as_save_IFS
4760482df631Smrg
4761482df631Smrg  ;;
47628bfe6addSmrgesac ;;
4763db17cd6dSmrgesac
4764482df631Smrgfi
4765482df631SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
4766482df631Smrgif test -n "$PKG_CONFIG"; then
4767a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4768a67f45c3Smrgprintf "%s\n" "$PKG_CONFIG" >&6; }
4769db17cd6dSmrgelse
4770a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4771a67f45c3Smrgprintf "%s\n" "no" >&6; }
4772db17cd6dSmrgfi
4773db17cd6dSmrg
4774db17cd6dSmrg
4775db17cd6dSmrgfi
4776482df631Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
4777482df631Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
4778482df631Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
4779482df631Smrgset dummy pkg-config; ac_word=$2
4780a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4781a67f45c3Smrgprintf %s "checking for $ac_word... " >&6; }
4782a67f45c3Smrgif test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4783a67f45c3Smrgthen :
4784a67f45c3Smrg  printf %s "(cached) " >&6
47858bfe6addSmrgelse case e in #(
47868bfe6addSmrg  e) case $ac_pt_PKG_CONFIG in
4787482df631Smrg  [\\/]* | ?:[\\/]*)
4788482df631Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4789482df631Smrg  ;;
4790db17cd6dSmrg  *)
4791482df631Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792482df631Smrgfor as_dir in $PATH
4793482df631Smrgdo
4794482df631Smrg  IFS=$as_save_IFS
4795a67f45c3Smrg  case $as_dir in #(((
4796a67f45c3Smrg    '') as_dir=./ ;;
4797a67f45c3Smrg    */) ;;
4798a67f45c3Smrg    *) as_dir=$as_dir/ ;;
4799a67f45c3Smrg  esac
4800482df631Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4801a67f45c3Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4802a67f45c3Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4803a67f45c3Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4804482df631Smrg    break 2
4805482df631Smrg  fi
4806482df631Smrgdone
4807482df631Smrg  done
4808482df631SmrgIFS=$as_save_IFS
4809482df631Smrg
4810482df631Smrg  ;;
48118bfe6addSmrgesac ;;
4812db17cd6dSmrgesac
4813482df631Smrgfi
4814482df631Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4815482df631Smrgif test -n "$ac_pt_PKG_CONFIG"; then
4816a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4817a67f45c3Smrgprintf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4818482df631Smrgelse
4819a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4820a67f45c3Smrgprintf "%s\n" "no" >&6; }
4821482df631Smrgfi
4822db17cd6dSmrg
4823482df631Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
4824482df631Smrg    PKG_CONFIG=""
4825482df631Smrg  else
4826482df631Smrg    case $cross_compiling:$ac_tool_warned in
4827482df631Smrgyes:)
4828a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4829a67f45c3Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4830482df631Smrgac_tool_warned=yes ;;
4831482df631Smrgesac
4832482df631Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
4833482df631Smrg  fi
4834482df631Smrgelse
4835482df631Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4836482df631Smrgfi
4837db17cd6dSmrg
4838482df631Smrgfi
4839482df631Smrgif test -n "$PKG_CONFIG"; then
4840482df631Smrg	_pkg_min_version=0.9.0
4841a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4842a67f45c3Smrgprintf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4843482df631Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4844a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4845a67f45c3Smrgprintf "%s\n" "yes" >&6; }
4846482df631Smrg	else
4847a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4848a67f45c3Smrgprintf "%s\n" "no" >&6; }
4849482df631Smrg		PKG_CONFIG=""
4850482df631Smrg	fi
4851482df631Smrgfi
4852db17cd6dSmrg
4853a67f45c3Smrg
4854a67f45c3Smrg  # Make sure we can run config.sub.
4855a67f45c3Smrg$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4856a67f45c3Smrg  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4857a67f45c3Smrg
4858a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4859a67f45c3Smrgprintf %s "checking build system type... " >&6; }
4860a67f45c3Smrgif test ${ac_cv_build+y}
4861a67f45c3Smrgthen :
4862a67f45c3Smrg  printf %s "(cached) " >&6
48638bfe6addSmrgelse case e in #(
48648bfe6addSmrg  e) ac_build_alias=$build_alias
4865db17cd6dSmrgtest "x$ac_build_alias" = x &&
4866a67f45c3Smrg  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4867db17cd6dSmrgtest "x$ac_build_alias" = x &&
4868482df631Smrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4869a67f45c3Smrgac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4870a67f45c3Smrg  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
48718bfe6addSmrg ;;
48728bfe6addSmrgesac
4873db17cd6dSmrgfi
4874a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4875a67f45c3Smrgprintf "%s\n" "$ac_cv_build" >&6; }
4876db17cd6dSmrgcase $ac_cv_build in
4877db17cd6dSmrg*-*-*) ;;
4878482df631Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4879db17cd6dSmrgesac
4880db17cd6dSmrgbuild=$ac_cv_build
4881db17cd6dSmrgac_save_IFS=$IFS; IFS='-'
4882db17cd6dSmrgset x $ac_cv_build
4883db17cd6dSmrgshift
4884db17cd6dSmrgbuild_cpu=$1
4885db17cd6dSmrgbuild_vendor=$2
4886db17cd6dSmrgshift; shift
4887db17cd6dSmrg# Remember, the first character of IFS is used to create $*,
4888db17cd6dSmrg# except with old shells:
4889db17cd6dSmrgbuild_os=$*
4890db17cd6dSmrgIFS=$ac_save_IFS
4891db17cd6dSmrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4892db17cd6dSmrg
4893db17cd6dSmrg
4894a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4895a67f45c3Smrgprintf %s "checking host system type... " >&6; }
4896a67f45c3Smrgif test ${ac_cv_host+y}
4897a67f45c3Smrgthen :
4898a67f45c3Smrg  printf %s "(cached) " >&6
48998bfe6addSmrgelse case e in #(
49008bfe6addSmrg  e) if test "x$host_alias" = x; then
4901db17cd6dSmrg  ac_cv_host=$ac_cv_build
4902db17cd6dSmrgelse
4903a67f45c3Smrg  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4904a67f45c3Smrg    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4905db17cd6dSmrgfi
49068bfe6addSmrg ;;
49078bfe6addSmrgesac
4908db17cd6dSmrgfi
4909a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4910a67f45c3Smrgprintf "%s\n" "$ac_cv_host" >&6; }
4911db17cd6dSmrgcase $ac_cv_host in
4912db17cd6dSmrg*-*-*) ;;
4913482df631Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4914db17cd6dSmrgesac
4915db17cd6dSmrghost=$ac_cv_host
4916db17cd6dSmrgac_save_IFS=$IFS; IFS='-'
4917db17cd6dSmrgset x $ac_cv_host
4918db17cd6dSmrgshift
4919db17cd6dSmrghost_cpu=$1
4920db17cd6dSmrghost_vendor=$2
4921db17cd6dSmrgshift; shift
4922db17cd6dSmrg# Remember, the first character of IFS is used to create $*,
4923db17cd6dSmrg# except with old shells:
4924db17cd6dSmrghost_os=$*
4925db17cd6dSmrgIFS=$ac_save_IFS
4926db17cd6dSmrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4927db17cd6dSmrg
4928db17cd6dSmrg
4929a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4930a67f45c3Smrgprintf %s "checking for a sed that does not truncate output... " >&6; }
4931a67f45c3Smrgif test ${ac_cv_path_SED+y}
4932a67f45c3Smrgthen :
4933a67f45c3Smrg  printf %s "(cached) " >&6
49348bfe6addSmrgelse case e in #(
49358bfe6addSmrg  e)           ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4936482df631Smrg     for ac_i in 1 2 3 4 5 6 7; do
4937482df631Smrg       ac_script="$ac_script$as_nl$ac_script"
4938482df631Smrg     done
4939482df631Smrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4940482df631Smrg     { ac_script=; unset ac_script;}
4941482df631Smrg     if test -z "$SED"; then
4942482df631Smrg  ac_path_SED_found=false
4943482df631Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
4944482df631Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4945482df631Smrgfor as_dir in $PATH
4946482df631Smrgdo
4947482df631Smrg  IFS=$as_save_IFS
4948a67f45c3Smrg  case $as_dir in #(((
4949a67f45c3Smrg    '') as_dir=./ ;;
4950a67f45c3Smrg    */) ;;
4951a67f45c3Smrg    *) as_dir=$as_dir/ ;;
4952a67f45c3Smrg  esac
4953a67f45c3Smrg    for ac_prog in sed gsed
4954a67f45c3Smrg   do
4955482df631Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4956a67f45c3Smrg      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
49579ff100acSmrg      as_fn_executable_p "$ac_path_SED" || continue
4958482df631Smrg# Check for GNU ac_path_SED and select it if it is found.
4959482df631Smrg  # Check for GNU $ac_path_SED
49608bfe6addSmrgcase `"$ac_path_SED" --version 2>&1` in #(
4961482df631Smrg*GNU*)
4962482df631Smrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
49638bfe6addSmrg#(
4964482df631Smrg*)
4965482df631Smrg  ac_count=0
4966a67f45c3Smrg  printf %s 0123456789 >"conftest.in"
4967482df631Smrg  while :
4968482df631Smrg  do
4969482df631Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
4970482df631Smrg    mv "conftest.tmp" "conftest.in"
4971482df631Smrg    cp "conftest.in" "conftest.nl"
4972a67f45c3Smrg    printf "%s\n" '' >> "conftest.nl"
4973482df631Smrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4974482df631Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4975482df631Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
4976482df631Smrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
4977482df631Smrg      # Best one so far, save it but keep looking for a better one
4978482df631Smrg      ac_cv_path_SED="$ac_path_SED"
4979482df631Smrg      ac_path_SED_max=$ac_count
4980482df631Smrg    fi
4981482df631Smrg    # 10*(2^10) chars as input seems more than enough
4982482df631Smrg    test $ac_count -gt 10 && break
4983482df631Smrg  done
4984482df631Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4985482df631Smrgesac
4986482df631Smrg
4987482df631Smrg      $ac_path_SED_found && break 3
4988482df631Smrg    done
4989482df631Smrg  done
4990482df631Smrg  done
4991482df631SmrgIFS=$as_save_IFS
4992482df631Smrg  if test -z "$ac_cv_path_SED"; then
4993482df631Smrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4994482df631Smrg  fi
4995482df631Smrgelse
4996482df631Smrg  ac_cv_path_SED=$SED
4997482df631Smrgfi
49988bfe6addSmrg ;;
49998bfe6addSmrgesac
5000482df631Smrgfi
5001a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5002a67f45c3Smrgprintf "%s\n" "$ac_cv_path_SED" >&6; }
5003482df631Smrg SED="$ac_cv_path_SED"
5004482df631Smrg  rm -f conftest.sed
5005482df631Smrg
5006482df631Smrg
5007db17cd6dSmrg
5008db17cd6dSmrg
5009db17cd6dSmrg
50109ff100acSmrg
50119ff100acSmrg# Check whether --enable-selective-werror was given.
5012a67f45c3Smrgif test ${enable_selective_werror+y}
5013a67f45c3Smrgthen :
50149ff100acSmrg  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
50158bfe6addSmrgelse case e in #(
50168bfe6addSmrg  e) SELECTIVE_WERROR=yes ;;
50178bfe6addSmrgesac
5018db17cd6dSmrgfi
5019db17cd6dSmrg
50209ff100acSmrg
50219ff100acSmrg
50229ff100acSmrg
50239ff100acSmrg
50249ff100acSmrg# -v is too short to test reliably with XORG_TESTSET_CFLAG
50259ff100acSmrgif test "x$SUNCC" = "xyes"; then
50269ff100acSmrg    BASE_CFLAGS="-v"
50279ff100acSmrgelse
50289ff100acSmrg    BASE_CFLAGS=""
5029db17cd6dSmrgfi
5030db17cd6dSmrg
50319ff100acSmrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS
5032db17cd6dSmrg
5033db17cd6dSmrg
5034db17cd6dSmrg
5035db17cd6dSmrg
5036db17cd6dSmrg
5037db17cd6dSmrg
5038db17cd6dSmrg
50399ff100acSmrg
50409ff100acSmrg
50419ff100acSmrg
50429ff100acSmrg
50439ff100acSmrg
50449ff100acSmrg
50459ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
50469ff100acSmrg
50479ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
50489ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5049a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5050a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5051a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5052a67f45c3Smrgthen :
5053a67f45c3Smrg  printf %s "(cached) " >&6
50548bfe6addSmrgelse case e in #(
50558bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50569ff100acSmrg/* end confdefs.h.  */
50579ff100acSmrgint i;
50589ff100acSmrg_ACEOF
5059a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
5060a67f45c3Smrgthen :
50619ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
50628bfe6addSmrgelse case e in #(
50638bfe6addSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
50648bfe6addSmrgesac
50659ff100acSmrgfi
50668bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
50678bfe6addSmrgesac
50689ff100acSmrgfi
5069a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5070a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
50719ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
50729ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5073db17cd6dSmrgfi
5074db17cd6dSmrg
50759ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
50769ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
50779ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5078db17cd6dSmrg	fi
50799ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5080a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5081a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5082a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5083a67f45c3Smrgthen :
5084a67f45c3Smrg  printf %s "(cached) " >&6
50858bfe6addSmrgelse case e in #(
50868bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50879ff100acSmrg/* end confdefs.h.  */
50889ff100acSmrgint i;
50899ff100acSmrg_ACEOF
5090a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
5091a67f45c3Smrgthen :
50929ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
50938bfe6addSmrgelse case e in #(
50948bfe6addSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
50958bfe6addSmrgesac
50969ff100acSmrgfi
50978bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
50988bfe6addSmrgesac
50999ff100acSmrgfi
5100a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5101a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
51029ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
51039ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5104db17cd6dSmrgfi
5105db17cd6dSmrg
51069ff100acSmrgfound="no"
5107db17cd6dSmrg
51089ff100acSmrg	if test $found = "no" ; then
51099ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
51109ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
51119ff100acSmrg		fi
5112db17cd6dSmrg
51139ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
51149ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
51159ff100acSmrg		fi
5116db17cd6dSmrg
51179ff100acSmrg		CFLAGS="$CFLAGS -Wall"
5118db17cd6dSmrg
5119a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5120a67f45c3Smrgprintf %s "checking if $CC supports -Wall... " >&6; }
51219ff100acSmrg		cacheid=xorg_cv_cc_flag__Wall
5122a67f45c3Smrg		if eval test \${$cacheid+y}
5123a67f45c3Smrgthen :
5124a67f45c3Smrg  printf %s "(cached) " >&6
51258bfe6addSmrgelse case e in #(
51268bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51279ff100acSmrg/* end confdefs.h.  */
51289ff100acSmrgint i;
51299ff100acSmrgint
5130a67f45c3Smrgmain (void)
51319ff100acSmrg{
5132db17cd6dSmrg
51339ff100acSmrg  ;
51349ff100acSmrg  return 0;
51359ff100acSmrg}
5136db17cd6dSmrg_ACEOF
5137a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
5138a67f45c3Smrgthen :
51399ff100acSmrg  eval $cacheid=yes
51408bfe6addSmrgelse case e in #(
51418bfe6addSmrg  e) eval $cacheid=no ;;
51428bfe6addSmrgesac
51439ff100acSmrgfi
5144a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
51458bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
51468bfe6addSmrgesac
51479ff100acSmrgfi
5148db17cd6dSmrg
51499ff100acSmrg
51509ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
51519ff100acSmrg
51529ff100acSmrg		eval supported=\$$cacheid
5153a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5154a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
51559ff100acSmrg		if test "$supported" = "yes" ; then
51569ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wall"
51579ff100acSmrg			found="yes"
51589ff100acSmrg		fi
5159db17cd6dSmrg	fi
5160db17cd6dSmrg
5161db17cd6dSmrg
5162db17cd6dSmrg
5163db17cd6dSmrg
5164db17cd6dSmrg
5165482df631Smrg
5166482df631Smrg
5167482df631Smrg
5168482df631Smrg
5169db17cd6dSmrg
5170db17cd6dSmrg
5171db17cd6dSmrg
5172db17cd6dSmrg
5173db17cd6dSmrg
5174db17cd6dSmrg
51759ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
5176db17cd6dSmrg
51779ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
51789ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5179a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5180a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5181a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5182a67f45c3Smrgthen :
5183a67f45c3Smrg  printf %s "(cached) " >&6
51848bfe6addSmrgelse case e in #(
51858bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51869ff100acSmrg/* end confdefs.h.  */
51879ff100acSmrgint i;
51889ff100acSmrg_ACEOF
5189a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
5190a67f45c3Smrgthen :
51919ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
51928bfe6addSmrgelse case e in #(
51938bfe6addSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
51948bfe6addSmrgesac
5195db17cd6dSmrgfi
51968bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
51978bfe6addSmrgesac
5198db17cd6dSmrgfi
5199a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5200a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
52019ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
52029ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5203db17cd6dSmrgfi
5204db17cd6dSmrg
52059ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
52069ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
52079ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
52089ff100acSmrg	fi
52099ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5210a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5211a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5212a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5213a67f45c3Smrgthen :
5214a67f45c3Smrg  printf %s "(cached) " >&6
52158bfe6addSmrgelse case e in #(
52168bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52179ff100acSmrg/* end confdefs.h.  */
52189ff100acSmrgint i;
52199ff100acSmrg_ACEOF
5220a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
5221a67f45c3Smrgthen :
52229ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
52238bfe6addSmrgelse case e in #(
52248bfe6addSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
52258bfe6addSmrgesac
5226db17cd6dSmrgfi
52278bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
52288bfe6addSmrgesac
5229db17cd6dSmrgfi
5230a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5231a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
52329ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
52339ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5234db17cd6dSmrgfi
5235db17cd6dSmrg
52369ff100acSmrgfound="no"
5237db17cd6dSmrg
52389ff100acSmrg	if test $found = "no" ; then
52399ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
52409ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
52419ff100acSmrg		fi
5242db17cd6dSmrg
52439ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
52449ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
52459ff100acSmrg		fi
5246db17cd6dSmrg
52479ff100acSmrg		CFLAGS="$CFLAGS -Wpointer-arith"
5248db17cd6dSmrg
5249a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5250a67f45c3Smrgprintf %s "checking if $CC supports -Wpointer-arith... " >&6; }
52519ff100acSmrg		cacheid=xorg_cv_cc_flag__Wpointer_arith
5252a67f45c3Smrg		if eval test \${$cacheid+y}
5253a67f45c3Smrgthen :
5254a67f45c3Smrg  printf %s "(cached) " >&6
52558bfe6addSmrgelse case e in #(
52568bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52579ff100acSmrg/* end confdefs.h.  */
52589ff100acSmrgint i;
52599ff100acSmrgint
5260a67f45c3Smrgmain (void)
52619ff100acSmrg{
5262db17cd6dSmrg
52639ff100acSmrg  ;
52649ff100acSmrg  return 0;
52659ff100acSmrg}
52669ff100acSmrg_ACEOF
5267a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
5268a67f45c3Smrgthen :
52699ff100acSmrg  eval $cacheid=yes
52708bfe6addSmrgelse case e in #(
52718bfe6addSmrg  e) eval $cacheid=no ;;
52728bfe6addSmrgesac
52739ff100acSmrgfi
5274a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
52758bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
52768bfe6addSmrgesac
52779ff100acSmrgfi
5278db17cd6dSmrg
5279db17cd6dSmrg
52809ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5281db17cd6dSmrg
52829ff100acSmrg		eval supported=\$$cacheid
5283a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5284a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
52859ff100acSmrg		if test "$supported" = "yes" ; then
52869ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
52879ff100acSmrg			found="yes"
52889ff100acSmrg		fi
52899ff100acSmrg	fi
5290db17cd6dSmrg
5291db17cd6dSmrg
5292db17cd6dSmrg
5293db17cd6dSmrg
5294db17cd6dSmrg
5295db17cd6dSmrg
5296db17cd6dSmrg
5297db17cd6dSmrg
529876910425Smrg
529976910425Smrg
530076910425Smrg
5301482df631Smrg
5302482df631Smrg
5303482df631Smrg
5304482df631Smrg
53059ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
5306db17cd6dSmrg
53079ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
53089ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5309a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5310a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5311a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5312a67f45c3Smrgthen :
5313a67f45c3Smrg  printf %s "(cached) " >&6
53148bfe6addSmrgelse case e in #(
53158bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53169ff100acSmrg/* end confdefs.h.  */
53179ff100acSmrgint i;
53189ff100acSmrg_ACEOF
5319a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
5320a67f45c3Smrgthen :
53219ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
53228bfe6addSmrgelse case e in #(
53238bfe6addSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
53248bfe6addSmrgesac
53259ff100acSmrgfi
53268bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
53278bfe6addSmrgesac
53289ff100acSmrgfi
5329a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5330a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
53319ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
53329ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
53339ff100acSmrgfi
53349ff100acSmrg
53359ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
53369ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
53379ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
53389ff100acSmrg	fi
53399ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5340a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5341a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5342a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5343a67f45c3Smrgthen :
5344a67f45c3Smrg  printf %s "(cached) " >&6
53458bfe6addSmrgelse case e in #(
53468bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53479ff100acSmrg/* end confdefs.h.  */
53489ff100acSmrgint i;
53499ff100acSmrg_ACEOF
5350a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
5351a67f45c3Smrgthen :
53529ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
53538bfe6addSmrgelse case e in #(
53548bfe6addSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
53558bfe6addSmrgesac
53569ff100acSmrgfi
53578bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
53588bfe6addSmrgesac
53599ff100acSmrgfi
5360a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5361a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
53629ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
53639ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
53649ff100acSmrgfi
53659ff100acSmrg
53669ff100acSmrgfound="no"
53679ff100acSmrg
53689ff100acSmrg	if test $found = "no" ; then
53699ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
53709ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
53719ff100acSmrg		fi
53729ff100acSmrg
53739ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
53749ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
53759ff100acSmrg		fi
53769ff100acSmrg
53779ff100acSmrg		CFLAGS="$CFLAGS -Wmissing-declarations"
53789ff100acSmrg
5379a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5380a67f45c3Smrgprintf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
53819ff100acSmrg		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5382a67f45c3Smrg		if eval test \${$cacheid+y}
5383a67f45c3Smrgthen :
5384a67f45c3Smrg  printf %s "(cached) " >&6
53858bfe6addSmrgelse case e in #(
53868bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53879ff100acSmrg/* end confdefs.h.  */
53889ff100acSmrgint i;
53899ff100acSmrgint
5390a67f45c3Smrgmain (void)
53919ff100acSmrg{
53929ff100acSmrg
53939ff100acSmrg  ;
53949ff100acSmrg  return 0;
53959ff100acSmrg}
53969ff100acSmrg_ACEOF
5397a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
5398a67f45c3Smrgthen :
53999ff100acSmrg  eval $cacheid=yes
54008bfe6addSmrgelse case e in #(
54018bfe6addSmrg  e) eval $cacheid=no ;;
54028bfe6addSmrgesac
54039ff100acSmrgfi
5404a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
54058bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
54068bfe6addSmrgesac
54079ff100acSmrgfi
54089ff100acSmrg
54099ff100acSmrg
54109ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
54119ff100acSmrg
54129ff100acSmrg		eval supported=\$$cacheid
5413a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5414a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
54159ff100acSmrg		if test "$supported" = "yes" ; then
54169ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
54179ff100acSmrg			found="yes"
54189ff100acSmrg		fi
54199ff100acSmrg	fi
54209ff100acSmrg
54219ff100acSmrg
54229ff100acSmrg
54239ff100acSmrg
54249ff100acSmrg
54259ff100acSmrg
54269ff100acSmrg
54279ff100acSmrg
54289ff100acSmrg
54299ff100acSmrg
54309ff100acSmrg
54319ff100acSmrg
54329ff100acSmrg
54339ff100acSmrg
54349ff100acSmrg
54359ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
54369ff100acSmrg
54379ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
54389ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5439a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5440a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5441a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5442a67f45c3Smrgthen :
5443a67f45c3Smrg  printf %s "(cached) " >&6
54448bfe6addSmrgelse case e in #(
54458bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54469ff100acSmrg/* end confdefs.h.  */
54479ff100acSmrgint i;
54489ff100acSmrg_ACEOF
5449a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
5450a67f45c3Smrgthen :
54519ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
54528bfe6addSmrgelse case e in #(
54538bfe6addSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
54548bfe6addSmrgesac
54559ff100acSmrgfi
54568bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
54578bfe6addSmrgesac
54589ff100acSmrgfi
5459a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5460a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
54619ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
54629ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
54639ff100acSmrgfi
54649ff100acSmrg
54659ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
54669ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
54679ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
54689ff100acSmrg	fi
54699ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5470a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5471a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5472a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5473a67f45c3Smrgthen :
5474a67f45c3Smrg  printf %s "(cached) " >&6
54758bfe6addSmrgelse case e in #(
54768bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54779ff100acSmrg/* end confdefs.h.  */
54789ff100acSmrgint i;
54799ff100acSmrg_ACEOF
5480a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
5481a67f45c3Smrgthen :
54829ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
54838bfe6addSmrgelse case e in #(
54848bfe6addSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
54858bfe6addSmrgesac
54869ff100acSmrgfi
54878bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
54888bfe6addSmrgesac
54899ff100acSmrgfi
5490a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5491a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
54929ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
54939ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
54949ff100acSmrgfi
54959ff100acSmrg
54969ff100acSmrgfound="no"
54979ff100acSmrg
54989ff100acSmrg	if test $found = "no" ; then
54999ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
55009ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
55019ff100acSmrg		fi
55029ff100acSmrg
55039ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
55049ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
55059ff100acSmrg		fi
55069ff100acSmrg
55079ff100acSmrg		CFLAGS="$CFLAGS -Wformat=2"
55089ff100acSmrg
5509a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5510a67f45c3Smrgprintf %s "checking if $CC supports -Wformat=2... " >&6; }
55119ff100acSmrg		cacheid=xorg_cv_cc_flag__Wformat_2
5512a67f45c3Smrg		if eval test \${$cacheid+y}
5513a67f45c3Smrgthen :
5514a67f45c3Smrg  printf %s "(cached) " >&6
55158bfe6addSmrgelse case e in #(
55168bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55179ff100acSmrg/* end confdefs.h.  */
55189ff100acSmrgint i;
55199ff100acSmrgint
5520a67f45c3Smrgmain (void)
55219ff100acSmrg{
55229ff100acSmrg
55239ff100acSmrg  ;
55249ff100acSmrg  return 0;
55259ff100acSmrg}
55269ff100acSmrg_ACEOF
5527a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
5528a67f45c3Smrgthen :
55299ff100acSmrg  eval $cacheid=yes
55308bfe6addSmrgelse case e in #(
55318bfe6addSmrg  e) eval $cacheid=no ;;
55328bfe6addSmrgesac
55339ff100acSmrgfi
5534a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
55358bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
55368bfe6addSmrgesac
55379ff100acSmrgfi
55389ff100acSmrg
55399ff100acSmrg
55409ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
55419ff100acSmrg
55429ff100acSmrg		eval supported=\$$cacheid
5543a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5544a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
55459ff100acSmrg		if test "$supported" = "yes" ; then
55469ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
55479ff100acSmrg			found="yes"
55489ff100acSmrg		fi
55499ff100acSmrg	fi
55509ff100acSmrg
55519ff100acSmrg	if test $found = "no" ; then
55529ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
55539ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
55549ff100acSmrg		fi
55559ff100acSmrg
55569ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
55579ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
55589ff100acSmrg		fi
55599ff100acSmrg
55609ff100acSmrg		CFLAGS="$CFLAGS -Wformat"
55619ff100acSmrg
5562a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5563a67f45c3Smrgprintf %s "checking if $CC supports -Wformat... " >&6; }
55649ff100acSmrg		cacheid=xorg_cv_cc_flag__Wformat
5565a67f45c3Smrg		if eval test \${$cacheid+y}
5566a67f45c3Smrgthen :
5567a67f45c3Smrg  printf %s "(cached) " >&6
55688bfe6addSmrgelse case e in #(
55698bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55709ff100acSmrg/* end confdefs.h.  */
55719ff100acSmrgint i;
55729ff100acSmrgint
5573a67f45c3Smrgmain (void)
55749ff100acSmrg{
55759ff100acSmrg
55769ff100acSmrg  ;
55779ff100acSmrg  return 0;
55789ff100acSmrg}
55799ff100acSmrg_ACEOF
5580a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
5581a67f45c3Smrgthen :
55829ff100acSmrg  eval $cacheid=yes
55838bfe6addSmrgelse case e in #(
55848bfe6addSmrg  e) eval $cacheid=no ;;
55858bfe6addSmrgesac
55869ff100acSmrgfi
5587a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
55888bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
55898bfe6addSmrgesac
55909ff100acSmrgfi
55919ff100acSmrg
55929ff100acSmrg
55939ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
55949ff100acSmrg
55959ff100acSmrg		eval supported=\$$cacheid
5596a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5597a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
55989ff100acSmrg		if test "$supported" = "yes" ; then
55999ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
56009ff100acSmrg			found="yes"
56019ff100acSmrg		fi
56029ff100acSmrg	fi
56039ff100acSmrg
56049ff100acSmrg
56059ff100acSmrg
56069ff100acSmrg
56079ff100acSmrg
56089ff100acSmrg
56099ff100acSmrg
56109ff100acSmrg
56119ff100acSmrg
56129ff100acSmrg
56139ff100acSmrg
56149ff100acSmrg
56159ff100acSmrg
56169ff100acSmrg
56179ff100acSmrg
56189ff100acSmrg
56199ff100acSmrg
56209ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
56219ff100acSmrg
56229ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
56239ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5624a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5625a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5626a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5627a67f45c3Smrgthen :
5628a67f45c3Smrg  printf %s "(cached) " >&6
56298bfe6addSmrgelse case e in #(
56308bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56319ff100acSmrg/* end confdefs.h.  */
56329ff100acSmrgint i;
56339ff100acSmrg_ACEOF
5634a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
5635a67f45c3Smrgthen :
56369ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
56378bfe6addSmrgelse case e in #(
56388bfe6addSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
56398bfe6addSmrgesac
56409ff100acSmrgfi
56418bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
56428bfe6addSmrgesac
56439ff100acSmrgfi
5644a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5645a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
56469ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
56479ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
56489ff100acSmrgfi
56499ff100acSmrg
56509ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
56519ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
56529ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
56539ff100acSmrg	fi
56549ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5655a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5656a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5657a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5658a67f45c3Smrgthen :
5659a67f45c3Smrg  printf %s "(cached) " >&6
56608bfe6addSmrgelse case e in #(
56618bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56629ff100acSmrg/* end confdefs.h.  */
56639ff100acSmrgint i;
56649ff100acSmrg_ACEOF
5665a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
5666a67f45c3Smrgthen :
56679ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
56688bfe6addSmrgelse case e in #(
56698bfe6addSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
56708bfe6addSmrgesac
56719ff100acSmrgfi
56728bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
56738bfe6addSmrgesac
56749ff100acSmrgfi
5675a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5676a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
56779ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
56789ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
56799ff100acSmrgfi
56809ff100acSmrg
56819ff100acSmrgfound="no"
56829ff100acSmrg
56839ff100acSmrg	if test $found = "no" ; then
56849ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
56859ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
56869ff100acSmrg		fi
56879ff100acSmrg
56889ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
56899ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
56909ff100acSmrg		fi
56919ff100acSmrg
56929ff100acSmrg		CFLAGS="$CFLAGS -Wstrict-prototypes"
56939ff100acSmrg
5694a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5695a67f45c3Smrgprintf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
56969ff100acSmrg		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5697a67f45c3Smrg		if eval test \${$cacheid+y}
5698a67f45c3Smrgthen :
5699a67f45c3Smrg  printf %s "(cached) " >&6
57008bfe6addSmrgelse case e in #(
57018bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57029ff100acSmrg/* end confdefs.h.  */
57039ff100acSmrgint i;
57049ff100acSmrgint
5705a67f45c3Smrgmain (void)
57069ff100acSmrg{
57079ff100acSmrg
57089ff100acSmrg  ;
57099ff100acSmrg  return 0;
57109ff100acSmrg}
57119ff100acSmrg_ACEOF
5712a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
5713a67f45c3Smrgthen :
57149ff100acSmrg  eval $cacheid=yes
57158bfe6addSmrgelse case e in #(
57168bfe6addSmrg  e) eval $cacheid=no ;;
57178bfe6addSmrgesac
57189ff100acSmrgfi
5719a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
57208bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
57218bfe6addSmrgesac
57229ff100acSmrgfi
57239ff100acSmrg
57249ff100acSmrg
57259ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
57269ff100acSmrg
57279ff100acSmrg		eval supported=\$$cacheid
5728a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5729a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
57309ff100acSmrg		if test "$supported" = "yes" ; then
57319ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
57329ff100acSmrg			found="yes"
57339ff100acSmrg		fi
57349ff100acSmrg	fi
57359ff100acSmrg
57369ff100acSmrg
57379ff100acSmrg
57389ff100acSmrg
57399ff100acSmrg
57409ff100acSmrg
57419ff100acSmrg
57429ff100acSmrg
57439ff100acSmrg
57449ff100acSmrg
57459ff100acSmrg
57469ff100acSmrg
57479ff100acSmrg
57489ff100acSmrg
57499ff100acSmrg
57509ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
57519ff100acSmrg
57529ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
57539ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5754a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5755a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5756a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5757a67f45c3Smrgthen :
5758a67f45c3Smrg  printf %s "(cached) " >&6
57598bfe6addSmrgelse case e in #(
57608bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57619ff100acSmrg/* end confdefs.h.  */
57629ff100acSmrgint i;
57639ff100acSmrg_ACEOF
5764a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
5765a67f45c3Smrgthen :
57669ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
57678bfe6addSmrgelse case e in #(
57688bfe6addSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
57698bfe6addSmrgesac
57709ff100acSmrgfi
57718bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
57728bfe6addSmrgesac
57739ff100acSmrgfi
5774a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5775a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
57769ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
57779ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
57789ff100acSmrgfi
57799ff100acSmrg
57809ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
57819ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
57829ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
57839ff100acSmrg	fi
57849ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5785a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5786a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5787a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5788a67f45c3Smrgthen :
5789a67f45c3Smrg  printf %s "(cached) " >&6
57908bfe6addSmrgelse case e in #(
57918bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57929ff100acSmrg/* end confdefs.h.  */
57939ff100acSmrgint i;
57949ff100acSmrg_ACEOF
5795a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
5796a67f45c3Smrgthen :
57979ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
57988bfe6addSmrgelse case e in #(
57998bfe6addSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
58008bfe6addSmrgesac
58019ff100acSmrgfi
58028bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
58038bfe6addSmrgesac
58049ff100acSmrgfi
5805a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5806a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
58079ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
58089ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
58099ff100acSmrgfi
58109ff100acSmrg
58119ff100acSmrgfound="no"
58129ff100acSmrg
58139ff100acSmrg	if test $found = "no" ; then
58149ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
58159ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
58169ff100acSmrg		fi
58179ff100acSmrg
58189ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
58199ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
58209ff100acSmrg		fi
58219ff100acSmrg
58229ff100acSmrg		CFLAGS="$CFLAGS -Wmissing-prototypes"
58239ff100acSmrg
5824a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5825a67f45c3Smrgprintf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
58269ff100acSmrg		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5827a67f45c3Smrg		if eval test \${$cacheid+y}
5828a67f45c3Smrgthen :
5829a67f45c3Smrg  printf %s "(cached) " >&6
58308bfe6addSmrgelse case e in #(
58318bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58329ff100acSmrg/* end confdefs.h.  */
58339ff100acSmrgint i;
58349ff100acSmrgint
5835a67f45c3Smrgmain (void)
58369ff100acSmrg{
58379ff100acSmrg
58389ff100acSmrg  ;
58399ff100acSmrg  return 0;
58409ff100acSmrg}
58419ff100acSmrg_ACEOF
5842a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
5843a67f45c3Smrgthen :
58449ff100acSmrg  eval $cacheid=yes
58458bfe6addSmrgelse case e in #(
58468bfe6addSmrg  e) eval $cacheid=no ;;
58478bfe6addSmrgesac
58489ff100acSmrgfi
5849a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
58508bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
58518bfe6addSmrgesac
58529ff100acSmrgfi
58539ff100acSmrg
58549ff100acSmrg
58559ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
58569ff100acSmrg
58579ff100acSmrg		eval supported=\$$cacheid
5858a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5859a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
58609ff100acSmrg		if test "$supported" = "yes" ; then
58619ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
58629ff100acSmrg			found="yes"
58639ff100acSmrg		fi
58649ff100acSmrg	fi
58659ff100acSmrg
58669ff100acSmrg
58679ff100acSmrg
58689ff100acSmrg
58699ff100acSmrg
58709ff100acSmrg
58719ff100acSmrg
58729ff100acSmrg
58739ff100acSmrg
58749ff100acSmrg
58759ff100acSmrg
58769ff100acSmrg
58779ff100acSmrg
58789ff100acSmrg
58799ff100acSmrg
58809ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
58819ff100acSmrg
58829ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
58839ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5884a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5885a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5886a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5887a67f45c3Smrgthen :
5888a67f45c3Smrg  printf %s "(cached) " >&6
58898bfe6addSmrgelse case e in #(
58908bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58919ff100acSmrg/* end confdefs.h.  */
58929ff100acSmrgint i;
58939ff100acSmrg_ACEOF
5894a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
5895a67f45c3Smrgthen :
58969ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
58978bfe6addSmrgelse case e in #(
58988bfe6addSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
58998bfe6addSmrgesac
59009ff100acSmrgfi
59018bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
59028bfe6addSmrgesac
59039ff100acSmrgfi
5904a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5905a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
59069ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
59079ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
59089ff100acSmrgfi
59099ff100acSmrg
59109ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
59119ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
59129ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
59139ff100acSmrg	fi
59149ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5915a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5916a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5917a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5918a67f45c3Smrgthen :
5919a67f45c3Smrg  printf %s "(cached) " >&6
59208bfe6addSmrgelse case e in #(
59218bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59229ff100acSmrg/* end confdefs.h.  */
59239ff100acSmrgint i;
59249ff100acSmrg_ACEOF
5925a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
5926a67f45c3Smrgthen :
59279ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
59288bfe6addSmrgelse case e in #(
59298bfe6addSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
59308bfe6addSmrgesac
59319ff100acSmrgfi
59328bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
59338bfe6addSmrgesac
59349ff100acSmrgfi
5935a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5936a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
59379ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
59389ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
59399ff100acSmrgfi
59409ff100acSmrg
59419ff100acSmrgfound="no"
59429ff100acSmrg
59439ff100acSmrg	if test $found = "no" ; then
59449ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
59459ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
59469ff100acSmrg		fi
59479ff100acSmrg
59489ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
59499ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
59509ff100acSmrg		fi
59519ff100acSmrg
59529ff100acSmrg		CFLAGS="$CFLAGS -Wnested-externs"
59539ff100acSmrg
5954a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5955a67f45c3Smrgprintf %s "checking if $CC supports -Wnested-externs... " >&6; }
59569ff100acSmrg		cacheid=xorg_cv_cc_flag__Wnested_externs
5957a67f45c3Smrg		if eval test \${$cacheid+y}
5958a67f45c3Smrgthen :
5959a67f45c3Smrg  printf %s "(cached) " >&6
59608bfe6addSmrgelse case e in #(
59618bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59629ff100acSmrg/* end confdefs.h.  */
59639ff100acSmrgint i;
59649ff100acSmrgint
5965a67f45c3Smrgmain (void)
59669ff100acSmrg{
59679ff100acSmrg
59689ff100acSmrg  ;
59699ff100acSmrg  return 0;
59709ff100acSmrg}
59719ff100acSmrg_ACEOF
5972a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
5973a67f45c3Smrgthen :
59749ff100acSmrg  eval $cacheid=yes
59758bfe6addSmrgelse case e in #(
59768bfe6addSmrg  e) eval $cacheid=no ;;
59778bfe6addSmrgesac
59789ff100acSmrgfi
5979a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
59808bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
59818bfe6addSmrgesac
59829ff100acSmrgfi
59839ff100acSmrg
59849ff100acSmrg
59859ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
59869ff100acSmrg
59879ff100acSmrg		eval supported=\$$cacheid
5988a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5989a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
59909ff100acSmrg		if test "$supported" = "yes" ; then
59919ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
59929ff100acSmrg			found="yes"
59939ff100acSmrg		fi
59949ff100acSmrg	fi
59959ff100acSmrg
59969ff100acSmrg
59979ff100acSmrg
59989ff100acSmrg
59999ff100acSmrg
60009ff100acSmrg
60019ff100acSmrg
60029ff100acSmrg
60039ff100acSmrg
60049ff100acSmrg
60059ff100acSmrg
60069ff100acSmrg
60079ff100acSmrg
60089ff100acSmrg
60099ff100acSmrg
60109ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
60119ff100acSmrg
60129ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
60139ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6014a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6015a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6016a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6017a67f45c3Smrgthen :
6018a67f45c3Smrg  printf %s "(cached) " >&6
60198bfe6addSmrgelse case e in #(
60208bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60219ff100acSmrg/* end confdefs.h.  */
60229ff100acSmrgint i;
60239ff100acSmrg_ACEOF
6024a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
6025a67f45c3Smrgthen :
60269ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
60278bfe6addSmrgelse case e in #(
60288bfe6addSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
60298bfe6addSmrgesac
60309ff100acSmrgfi
60318bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
60328bfe6addSmrgesac
60339ff100acSmrgfi
6034a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6035a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
60369ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
60379ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
60389ff100acSmrgfi
60399ff100acSmrg
60409ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
60419ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
60429ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
60439ff100acSmrg	fi
60449ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6045a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6046a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6047a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6048a67f45c3Smrgthen :
6049a67f45c3Smrg  printf %s "(cached) " >&6
60508bfe6addSmrgelse case e in #(
60518bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60529ff100acSmrg/* end confdefs.h.  */
60539ff100acSmrgint i;
60549ff100acSmrg_ACEOF
6055a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
6056a67f45c3Smrgthen :
60579ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
60588bfe6addSmrgelse case e in #(
60598bfe6addSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
60608bfe6addSmrgesac
60619ff100acSmrgfi
60628bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
60638bfe6addSmrgesac
60649ff100acSmrgfi
6065a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6066a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
60679ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
60689ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
60699ff100acSmrgfi
60709ff100acSmrg
60719ff100acSmrgfound="no"
60729ff100acSmrg
60739ff100acSmrg	if test $found = "no" ; then
60749ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
60759ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
60769ff100acSmrg		fi
60779ff100acSmrg
60789ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
60799ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
60809ff100acSmrg		fi
60819ff100acSmrg
60829ff100acSmrg		CFLAGS="$CFLAGS -Wbad-function-cast"
60839ff100acSmrg
6084a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6085a67f45c3Smrgprintf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
60869ff100acSmrg		cacheid=xorg_cv_cc_flag__Wbad_function_cast
6087a67f45c3Smrg		if eval test \${$cacheid+y}
6088a67f45c3Smrgthen :
6089a67f45c3Smrg  printf %s "(cached) " >&6
60908bfe6addSmrgelse case e in #(
60918bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60929ff100acSmrg/* end confdefs.h.  */
60939ff100acSmrgint i;
60949ff100acSmrgint
6095a67f45c3Smrgmain (void)
60969ff100acSmrg{
60979ff100acSmrg
60989ff100acSmrg  ;
60999ff100acSmrg  return 0;
61009ff100acSmrg}
61019ff100acSmrg_ACEOF
6102a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
6103a67f45c3Smrgthen :
61049ff100acSmrg  eval $cacheid=yes
61058bfe6addSmrgelse case e in #(
61068bfe6addSmrg  e) eval $cacheid=no ;;
61078bfe6addSmrgesac
61089ff100acSmrgfi
6109a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
61108bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
61118bfe6addSmrgesac
61129ff100acSmrgfi
61139ff100acSmrg
61149ff100acSmrg
61159ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
61169ff100acSmrg
61179ff100acSmrg		eval supported=\$$cacheid
6118a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6119a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
61209ff100acSmrg		if test "$supported" = "yes" ; then
61219ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
61229ff100acSmrg			found="yes"
61239ff100acSmrg		fi
61249ff100acSmrg	fi
61259ff100acSmrg
61269ff100acSmrg
61279ff100acSmrg
61289ff100acSmrg
61299ff100acSmrg
61309ff100acSmrg
61319ff100acSmrg
61329ff100acSmrg
61339ff100acSmrg
61349ff100acSmrg
61359ff100acSmrg
61369ff100acSmrg
61379ff100acSmrg
61389ff100acSmrg
61399ff100acSmrg
61409ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
61419ff100acSmrg
61429ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
61439ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6144a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6145a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6146a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6147a67f45c3Smrgthen :
6148a67f45c3Smrg  printf %s "(cached) " >&6
61498bfe6addSmrgelse case e in #(
61508bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61519ff100acSmrg/* end confdefs.h.  */
61529ff100acSmrgint i;
61539ff100acSmrg_ACEOF
6154a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
6155a67f45c3Smrgthen :
61569ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
61578bfe6addSmrgelse case e in #(
61588bfe6addSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
61598bfe6addSmrgesac
61609ff100acSmrgfi
61618bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
61628bfe6addSmrgesac
61639ff100acSmrgfi
6164a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6165a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
61669ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
61679ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
61689ff100acSmrgfi
61699ff100acSmrg
61709ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
61719ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
61729ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
61739ff100acSmrg	fi
61749ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6175a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6176a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6177a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6178a67f45c3Smrgthen :
6179a67f45c3Smrg  printf %s "(cached) " >&6
61808bfe6addSmrgelse case e in #(
61818bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61829ff100acSmrg/* end confdefs.h.  */
61839ff100acSmrgint i;
61849ff100acSmrg_ACEOF
6185a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
6186a67f45c3Smrgthen :
61879ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
61888bfe6addSmrgelse case e in #(
61898bfe6addSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
61908bfe6addSmrgesac
61919ff100acSmrgfi
61928bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
61938bfe6addSmrgesac
61949ff100acSmrgfi
6195a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6196a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
61979ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
61989ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
61999ff100acSmrgfi
62009ff100acSmrg
62019ff100acSmrgfound="no"
62029ff100acSmrg
62039ff100acSmrg	if test $found = "no" ; then
62049ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
62059ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
62069ff100acSmrg		fi
62079ff100acSmrg
62089ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
62099ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
62109ff100acSmrg		fi
62119ff100acSmrg
62129ff100acSmrg		CFLAGS="$CFLAGS -Wold-style-definition"
62139ff100acSmrg
6214a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6215a67f45c3Smrgprintf %s "checking if $CC supports -Wold-style-definition... " >&6; }
62169ff100acSmrg		cacheid=xorg_cv_cc_flag__Wold_style_definition
6217a67f45c3Smrg		if eval test \${$cacheid+y}
6218a67f45c3Smrgthen :
6219a67f45c3Smrg  printf %s "(cached) " >&6
62208bfe6addSmrgelse case e in #(
62218bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62229ff100acSmrg/* end confdefs.h.  */
62239ff100acSmrgint i;
62249ff100acSmrgint
6225a67f45c3Smrgmain (void)
62269ff100acSmrg{
62279ff100acSmrg
62289ff100acSmrg  ;
62299ff100acSmrg  return 0;
62309ff100acSmrg}
62319ff100acSmrg_ACEOF
6232a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
6233a67f45c3Smrgthen :
62349ff100acSmrg  eval $cacheid=yes
62358bfe6addSmrgelse case e in #(
62368bfe6addSmrg  e) eval $cacheid=no ;;
62378bfe6addSmrgesac
62389ff100acSmrgfi
6239a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
62408bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
62418bfe6addSmrgesac
62429ff100acSmrgfi
62439ff100acSmrg
62449ff100acSmrg
62459ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
62469ff100acSmrg
62479ff100acSmrg		eval supported=\$$cacheid
6248a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6249a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
62509ff100acSmrg		if test "$supported" = "yes" ; then
62519ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
62529ff100acSmrg			found="yes"
62539ff100acSmrg		fi
62549ff100acSmrg	fi
62559ff100acSmrg
62569ff100acSmrg	if test $found = "no" ; then
62579ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
62589ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
62599ff100acSmrg		fi
62609ff100acSmrg
62619ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
62629ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
62639ff100acSmrg		fi
62649ff100acSmrg
62659ff100acSmrg		CFLAGS="$CFLAGS -fd"
62669ff100acSmrg
6267a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6268a67f45c3Smrgprintf %s "checking if $CC supports -fd... " >&6; }
62699ff100acSmrg		cacheid=xorg_cv_cc_flag__fd
6270a67f45c3Smrg		if eval test \${$cacheid+y}
6271a67f45c3Smrgthen :
6272a67f45c3Smrg  printf %s "(cached) " >&6
62738bfe6addSmrgelse case e in #(
62748bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62759ff100acSmrg/* end confdefs.h.  */
62769ff100acSmrgint i;
62779ff100acSmrgint
6278a67f45c3Smrgmain (void)
62799ff100acSmrg{
62809ff100acSmrg
62819ff100acSmrg  ;
62829ff100acSmrg  return 0;
62839ff100acSmrg}
62849ff100acSmrg_ACEOF
6285a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
6286a67f45c3Smrgthen :
62879ff100acSmrg  eval $cacheid=yes
62888bfe6addSmrgelse case e in #(
62898bfe6addSmrg  e) eval $cacheid=no ;;
62908bfe6addSmrgesac
62919ff100acSmrgfi
6292a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
62938bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
62948bfe6addSmrgesac
62959ff100acSmrgfi
62969ff100acSmrg
62979ff100acSmrg
62989ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
62999ff100acSmrg
63009ff100acSmrg		eval supported=\$$cacheid
6301a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6302a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
63039ff100acSmrg		if test "$supported" = "yes" ; then
63049ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -fd"
63059ff100acSmrg			found="yes"
63069ff100acSmrg		fi
63079ff100acSmrg	fi
63089ff100acSmrg
63099ff100acSmrg
63109ff100acSmrg
63119ff100acSmrg
63129ff100acSmrg
63139ff100acSmrg# This chunk adds additional warnings that could catch undesired effects.
63149ff100acSmrg
63159ff100acSmrg
63169ff100acSmrg
63179ff100acSmrg
63189ff100acSmrg
63199ff100acSmrg
63209ff100acSmrg
63219ff100acSmrg
63229ff100acSmrg
63239ff100acSmrg
63249ff100acSmrg
63259ff100acSmrg
63269ff100acSmrg
63279ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
63289ff100acSmrg
63299ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
63309ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6331a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6332a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6333a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6334a67f45c3Smrgthen :
6335a67f45c3Smrg  printf %s "(cached) " >&6
63368bfe6addSmrgelse case e in #(
63378bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63389ff100acSmrg/* end confdefs.h.  */
63399ff100acSmrgint i;
63409ff100acSmrg_ACEOF
6341a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
6342a67f45c3Smrgthen :
63439ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
63448bfe6addSmrgelse case e in #(
63458bfe6addSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
63468bfe6addSmrgesac
63479ff100acSmrgfi
63488bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
63498bfe6addSmrgesac
63509ff100acSmrgfi
6351a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6352a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
63539ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
63549ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
63559ff100acSmrgfi
63569ff100acSmrg
63579ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
63589ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
63599ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
63609ff100acSmrg	fi
63619ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6362a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6363a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6364a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6365a67f45c3Smrgthen :
6366a67f45c3Smrg  printf %s "(cached) " >&6
63678bfe6addSmrgelse case e in #(
63688bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63699ff100acSmrg/* end confdefs.h.  */
63709ff100acSmrgint i;
63719ff100acSmrg_ACEOF
6372a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
6373a67f45c3Smrgthen :
63749ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
63758bfe6addSmrgelse case e in #(
63768bfe6addSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
63778bfe6addSmrgesac
63789ff100acSmrgfi
63798bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
63808bfe6addSmrgesac
63819ff100acSmrgfi
6382a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6383a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
63849ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
63859ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
63869ff100acSmrgfi
63879ff100acSmrg
63889ff100acSmrgfound="no"
63899ff100acSmrg
63909ff100acSmrg	if test $found = "no" ; then
63919ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
63929ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
63939ff100acSmrg		fi
63949ff100acSmrg
63959ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
63969ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
63979ff100acSmrg		fi
63989ff100acSmrg
63999ff100acSmrg		CFLAGS="$CFLAGS -Wunused"
64009ff100acSmrg
6401a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6402a67f45c3Smrgprintf %s "checking if $CC supports -Wunused... " >&6; }
64039ff100acSmrg		cacheid=xorg_cv_cc_flag__Wunused
6404a67f45c3Smrg		if eval test \${$cacheid+y}
6405a67f45c3Smrgthen :
6406a67f45c3Smrg  printf %s "(cached) " >&6
64078bfe6addSmrgelse case e in #(
64088bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64099ff100acSmrg/* end confdefs.h.  */
64109ff100acSmrgint i;
64119ff100acSmrgint
6412a67f45c3Smrgmain (void)
64139ff100acSmrg{
64149ff100acSmrg
64159ff100acSmrg  ;
64169ff100acSmrg  return 0;
64179ff100acSmrg}
64189ff100acSmrg_ACEOF
6419a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
6420a67f45c3Smrgthen :
64219ff100acSmrg  eval $cacheid=yes
64228bfe6addSmrgelse case e in #(
64238bfe6addSmrg  e) eval $cacheid=no ;;
64248bfe6addSmrgesac
64259ff100acSmrgfi
6426a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
64278bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
64288bfe6addSmrgesac
64299ff100acSmrgfi
64309ff100acSmrg
64319ff100acSmrg
64329ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
64339ff100acSmrg
64349ff100acSmrg		eval supported=\$$cacheid
6435a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6436a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
64379ff100acSmrg		if test "$supported" = "yes" ; then
64389ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
64399ff100acSmrg			found="yes"
64409ff100acSmrg		fi
64419ff100acSmrg	fi
64429ff100acSmrg
64439ff100acSmrg
64449ff100acSmrg
64459ff100acSmrg
64469ff100acSmrg
64479ff100acSmrg
64489ff100acSmrg
64499ff100acSmrg
64509ff100acSmrg
64519ff100acSmrg
64529ff100acSmrg
64539ff100acSmrg
64549ff100acSmrg
64559ff100acSmrg
64569ff100acSmrg
64579ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
64589ff100acSmrg
64599ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
64609ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6461a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6462a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6463a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6464a67f45c3Smrgthen :
6465a67f45c3Smrg  printf %s "(cached) " >&6
64668bfe6addSmrgelse case e in #(
64678bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64689ff100acSmrg/* end confdefs.h.  */
64699ff100acSmrgint i;
64709ff100acSmrg_ACEOF
6471a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
6472a67f45c3Smrgthen :
64739ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
64748bfe6addSmrgelse case e in #(
64758bfe6addSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
64768bfe6addSmrgesac
64779ff100acSmrgfi
64788bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
64798bfe6addSmrgesac
64809ff100acSmrgfi
6481a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6482a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
64839ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
64849ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
64859ff100acSmrgfi
64869ff100acSmrg
64879ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
64889ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
64899ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
64909ff100acSmrg	fi
64919ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6492a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6493a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6494a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6495a67f45c3Smrgthen :
6496a67f45c3Smrg  printf %s "(cached) " >&6
64978bfe6addSmrgelse case e in #(
64988bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64999ff100acSmrg/* end confdefs.h.  */
65009ff100acSmrgint i;
65019ff100acSmrg_ACEOF
6502a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
6503a67f45c3Smrgthen :
65049ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
65058bfe6addSmrgelse case e in #(
65068bfe6addSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
65078bfe6addSmrgesac
65089ff100acSmrgfi
65098bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
65108bfe6addSmrgesac
65119ff100acSmrgfi
6512a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6513a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
65149ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
65159ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
65169ff100acSmrgfi
65179ff100acSmrg
65189ff100acSmrgfound="no"
65199ff100acSmrg
65209ff100acSmrg	if test $found = "no" ; then
65219ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
65229ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
65239ff100acSmrg		fi
65249ff100acSmrg
65259ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
65269ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
65279ff100acSmrg		fi
65289ff100acSmrg
65299ff100acSmrg		CFLAGS="$CFLAGS -Wuninitialized"
65309ff100acSmrg
6531a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6532a67f45c3Smrgprintf %s "checking if $CC supports -Wuninitialized... " >&6; }
65339ff100acSmrg		cacheid=xorg_cv_cc_flag__Wuninitialized
6534a67f45c3Smrg		if eval test \${$cacheid+y}
6535a67f45c3Smrgthen :
6536a67f45c3Smrg  printf %s "(cached) " >&6
65378bfe6addSmrgelse case e in #(
65388bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65399ff100acSmrg/* end confdefs.h.  */
65409ff100acSmrgint i;
65419ff100acSmrgint
6542a67f45c3Smrgmain (void)
65439ff100acSmrg{
65449ff100acSmrg
65459ff100acSmrg  ;
65469ff100acSmrg  return 0;
65479ff100acSmrg}
65489ff100acSmrg_ACEOF
6549a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
6550a67f45c3Smrgthen :
65519ff100acSmrg  eval $cacheid=yes
65528bfe6addSmrgelse case e in #(
65538bfe6addSmrg  e) eval $cacheid=no ;;
65548bfe6addSmrgesac
65559ff100acSmrgfi
6556a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
65578bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
65588bfe6addSmrgesac
65599ff100acSmrgfi
65609ff100acSmrg
65619ff100acSmrg
65629ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
65639ff100acSmrg
65649ff100acSmrg		eval supported=\$$cacheid
6565a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6566a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
65679ff100acSmrg		if test "$supported" = "yes" ; then
65689ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
65699ff100acSmrg			found="yes"
65709ff100acSmrg		fi
65719ff100acSmrg	fi
65729ff100acSmrg
65739ff100acSmrg
65749ff100acSmrg
65759ff100acSmrg
65769ff100acSmrg
65779ff100acSmrg
65789ff100acSmrg
65799ff100acSmrg
65809ff100acSmrg
65819ff100acSmrg
65829ff100acSmrg
65839ff100acSmrg
65849ff100acSmrg
65859ff100acSmrg
65869ff100acSmrg
65879ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
65889ff100acSmrg
65899ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
65909ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6591a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6592a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6593a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6594a67f45c3Smrgthen :
6595a67f45c3Smrg  printf %s "(cached) " >&6
65968bfe6addSmrgelse case e in #(
65978bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65989ff100acSmrg/* end confdefs.h.  */
65999ff100acSmrgint i;
66009ff100acSmrg_ACEOF
6601a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
6602a67f45c3Smrgthen :
66039ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
66048bfe6addSmrgelse case e in #(
66058bfe6addSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
66068bfe6addSmrgesac
66079ff100acSmrgfi
66088bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
66098bfe6addSmrgesac
66109ff100acSmrgfi
6611a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6612a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
66139ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
66149ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
66159ff100acSmrgfi
66169ff100acSmrg
66179ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
66189ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
66199ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
66209ff100acSmrg	fi
66219ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6622a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6623a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6624a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6625a67f45c3Smrgthen :
6626a67f45c3Smrg  printf %s "(cached) " >&6
66278bfe6addSmrgelse case e in #(
66288bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66299ff100acSmrg/* end confdefs.h.  */
66309ff100acSmrgint i;
66319ff100acSmrg_ACEOF
6632a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
6633a67f45c3Smrgthen :
66349ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
66358bfe6addSmrgelse case e in #(
66368bfe6addSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
66378bfe6addSmrgesac
66389ff100acSmrgfi
66398bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
66408bfe6addSmrgesac
66419ff100acSmrgfi
6642a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6643a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
66449ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
66459ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
66469ff100acSmrgfi
66479ff100acSmrg
66489ff100acSmrgfound="no"
66499ff100acSmrg
66509ff100acSmrg	if test $found = "no" ; then
66519ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
66529ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
66539ff100acSmrg		fi
66549ff100acSmrg
66559ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
66569ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
66579ff100acSmrg		fi
66589ff100acSmrg
66599ff100acSmrg		CFLAGS="$CFLAGS -Wshadow"
66609ff100acSmrg
6661a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6662a67f45c3Smrgprintf %s "checking if $CC supports -Wshadow... " >&6; }
66639ff100acSmrg		cacheid=xorg_cv_cc_flag__Wshadow
6664a67f45c3Smrg		if eval test \${$cacheid+y}
6665a67f45c3Smrgthen :
6666a67f45c3Smrg  printf %s "(cached) " >&6
66678bfe6addSmrgelse case e in #(
66688bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66699ff100acSmrg/* end confdefs.h.  */
66709ff100acSmrgint i;
66719ff100acSmrgint
6672a67f45c3Smrgmain (void)
66739ff100acSmrg{
66749ff100acSmrg
66759ff100acSmrg  ;
66769ff100acSmrg  return 0;
66779ff100acSmrg}
66789ff100acSmrg_ACEOF
6679a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
6680a67f45c3Smrgthen :
66819ff100acSmrg  eval $cacheid=yes
66828bfe6addSmrgelse case e in #(
66838bfe6addSmrg  e) eval $cacheid=no ;;
66848bfe6addSmrgesac
66859ff100acSmrgfi
6686a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
66878bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
66888bfe6addSmrgesac
66899ff100acSmrgfi
66909ff100acSmrg
66919ff100acSmrg
66929ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
66939ff100acSmrg
66949ff100acSmrg		eval supported=\$$cacheid
6695a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6696a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
66979ff100acSmrg		if test "$supported" = "yes" ; then
66989ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
66999ff100acSmrg			found="yes"
67009ff100acSmrg		fi
67019ff100acSmrg	fi
67029ff100acSmrg
67039ff100acSmrg
67049ff100acSmrg
67059ff100acSmrg
67069ff100acSmrg
67079ff100acSmrg
67089ff100acSmrg
67099ff100acSmrg
67109ff100acSmrg
67119ff100acSmrg
67129ff100acSmrg
67139ff100acSmrg
67149ff100acSmrg
67159ff100acSmrg
67169ff100acSmrg
67179ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
67189ff100acSmrg
67199ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
67209ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6721a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6722a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6723a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6724a67f45c3Smrgthen :
6725a67f45c3Smrg  printf %s "(cached) " >&6
67268bfe6addSmrgelse case e in #(
67278bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67289ff100acSmrg/* end confdefs.h.  */
67299ff100acSmrgint i;
67309ff100acSmrg_ACEOF
6731a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
6732a67f45c3Smrgthen :
67339ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
67348bfe6addSmrgelse case e in #(
67358bfe6addSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
67368bfe6addSmrgesac
67379ff100acSmrgfi
67388bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
67398bfe6addSmrgesac
67409ff100acSmrgfi
6741a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6742a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
67439ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
67449ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
67459ff100acSmrgfi
67469ff100acSmrg
67479ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
67489ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
67499ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
67509ff100acSmrg	fi
67519ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6752a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6753a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6754a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6755a67f45c3Smrgthen :
6756a67f45c3Smrg  printf %s "(cached) " >&6
67578bfe6addSmrgelse case e in #(
67588bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67599ff100acSmrg/* end confdefs.h.  */
67609ff100acSmrgint i;
67619ff100acSmrg_ACEOF
6762a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
6763a67f45c3Smrgthen :
67649ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
67658bfe6addSmrgelse case e in #(
67668bfe6addSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
67678bfe6addSmrgesac
67689ff100acSmrgfi
67698bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
67708bfe6addSmrgesac
67719ff100acSmrgfi
6772a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6773a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
67749ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
67759ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
67769ff100acSmrgfi
67779ff100acSmrg
67789ff100acSmrgfound="no"
67799ff100acSmrg
67809ff100acSmrg	if test $found = "no" ; then
67819ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
67829ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
67839ff100acSmrg		fi
67849ff100acSmrg
67859ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
67869ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
67879ff100acSmrg		fi
67889ff100acSmrg
67899ff100acSmrg		CFLAGS="$CFLAGS -Wmissing-noreturn"
67909ff100acSmrg
6791a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6792a67f45c3Smrgprintf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
67939ff100acSmrg		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6794a67f45c3Smrg		if eval test \${$cacheid+y}
6795a67f45c3Smrgthen :
6796a67f45c3Smrg  printf %s "(cached) " >&6
67978bfe6addSmrgelse case e in #(
67988bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67999ff100acSmrg/* end confdefs.h.  */
68009ff100acSmrgint i;
68019ff100acSmrgint
6802a67f45c3Smrgmain (void)
68039ff100acSmrg{
68049ff100acSmrg
68059ff100acSmrg  ;
68069ff100acSmrg  return 0;
68079ff100acSmrg}
68089ff100acSmrg_ACEOF
6809a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
6810a67f45c3Smrgthen :
68119ff100acSmrg  eval $cacheid=yes
68128bfe6addSmrgelse case e in #(
68138bfe6addSmrg  e) eval $cacheid=no ;;
68148bfe6addSmrgesac
68159ff100acSmrgfi
6816a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
68178bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
68188bfe6addSmrgesac
68199ff100acSmrgfi
68209ff100acSmrg
68219ff100acSmrg
68229ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
68239ff100acSmrg
68249ff100acSmrg		eval supported=\$$cacheid
6825a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6826a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
68279ff100acSmrg		if test "$supported" = "yes" ; then
68289ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
68299ff100acSmrg			found="yes"
68309ff100acSmrg		fi
68319ff100acSmrg	fi
68329ff100acSmrg
68339ff100acSmrg
68349ff100acSmrg
68359ff100acSmrg
68369ff100acSmrg
68379ff100acSmrg
68389ff100acSmrg
68399ff100acSmrg
68409ff100acSmrg
68419ff100acSmrg
68429ff100acSmrg
68439ff100acSmrg
68449ff100acSmrg
68459ff100acSmrg
68469ff100acSmrg
68479ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
68489ff100acSmrg
68499ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
68509ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6851a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6852a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6853a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6854a67f45c3Smrgthen :
6855a67f45c3Smrg  printf %s "(cached) " >&6
68568bfe6addSmrgelse case e in #(
68578bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68589ff100acSmrg/* end confdefs.h.  */
68599ff100acSmrgint i;
68609ff100acSmrg_ACEOF
6861a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
6862a67f45c3Smrgthen :
68639ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
68648bfe6addSmrgelse case e in #(
68658bfe6addSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
68668bfe6addSmrgesac
68679ff100acSmrgfi
68688bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
68698bfe6addSmrgesac
68709ff100acSmrgfi
6871a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6872a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
68739ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
68749ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
68759ff100acSmrgfi
68769ff100acSmrg
68779ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
68789ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
68799ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
68809ff100acSmrg	fi
68819ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6882a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6883a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6884a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6885a67f45c3Smrgthen :
6886a67f45c3Smrg  printf %s "(cached) " >&6
68878bfe6addSmrgelse case e in #(
68888bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68899ff100acSmrg/* end confdefs.h.  */
68909ff100acSmrgint i;
68919ff100acSmrg_ACEOF
6892a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
6893a67f45c3Smrgthen :
68949ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
68958bfe6addSmrgelse case e in #(
68968bfe6addSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
68978bfe6addSmrgesac
68989ff100acSmrgfi
68998bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
69008bfe6addSmrgesac
69019ff100acSmrgfi
6902a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6903a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
69049ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
69059ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
69069ff100acSmrgfi
69079ff100acSmrg
69089ff100acSmrgfound="no"
69099ff100acSmrg
69109ff100acSmrg	if test $found = "no" ; then
69119ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
69129ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
69139ff100acSmrg		fi
69149ff100acSmrg
69159ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
69169ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
69179ff100acSmrg		fi
69189ff100acSmrg
69199ff100acSmrg		CFLAGS="$CFLAGS -Wmissing-format-attribute"
69209ff100acSmrg
6921a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6922a67f45c3Smrgprintf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
69239ff100acSmrg		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6924a67f45c3Smrg		if eval test \${$cacheid+y}
6925a67f45c3Smrgthen :
6926a67f45c3Smrg  printf %s "(cached) " >&6
69278bfe6addSmrgelse case e in #(
69288bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69299ff100acSmrg/* end confdefs.h.  */
69309ff100acSmrgint i;
69319ff100acSmrgint
6932a67f45c3Smrgmain (void)
69339ff100acSmrg{
69349ff100acSmrg
69359ff100acSmrg  ;
69369ff100acSmrg  return 0;
69379ff100acSmrg}
69389ff100acSmrg_ACEOF
6939a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
6940a67f45c3Smrgthen :
69419ff100acSmrg  eval $cacheid=yes
69428bfe6addSmrgelse case e in #(
69438bfe6addSmrg  e) eval $cacheid=no ;;
69448bfe6addSmrgesac
69459ff100acSmrgfi
6946a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
69478bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
69488bfe6addSmrgesac
69499ff100acSmrgfi
69509ff100acSmrg
69519ff100acSmrg
69529ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
69539ff100acSmrg
69549ff100acSmrg		eval supported=\$$cacheid
6955a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6956a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
69579ff100acSmrg		if test "$supported" = "yes" ; then
69589ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
69599ff100acSmrg			found="yes"
69609ff100acSmrg		fi
69619ff100acSmrg	fi
69629ff100acSmrg
69639ff100acSmrg
69649ff100acSmrg
69659ff100acSmrg
69669ff100acSmrg
69679ff100acSmrg
69689ff100acSmrg
69699ff100acSmrg
69709ff100acSmrg
69719ff100acSmrg
69729ff100acSmrg
69739ff100acSmrg
69749ff100acSmrg
69759ff100acSmrg
69769ff100acSmrg
69779ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
69789ff100acSmrg
69799ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
69809ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6981a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6982a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6983a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6984a67f45c3Smrgthen :
6985a67f45c3Smrg  printf %s "(cached) " >&6
69868bfe6addSmrgelse case e in #(
69878bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69889ff100acSmrg/* end confdefs.h.  */
69899ff100acSmrgint i;
69909ff100acSmrg_ACEOF
6991a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
6992a67f45c3Smrgthen :
69939ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
69948bfe6addSmrgelse case e in #(
69958bfe6addSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
69968bfe6addSmrgesac
69979ff100acSmrgfi
69988bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
69998bfe6addSmrgesac
70009ff100acSmrgfi
7001a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7002a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
70039ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
70049ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
70059ff100acSmrgfi
70069ff100acSmrg
70079ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
70089ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
70099ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
70109ff100acSmrg	fi
70119ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7012a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7013a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7014a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7015a67f45c3Smrgthen :
7016a67f45c3Smrg  printf %s "(cached) " >&6
70178bfe6addSmrgelse case e in #(
70188bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
70199ff100acSmrg/* end confdefs.h.  */
70209ff100acSmrgint i;
70219ff100acSmrg_ACEOF
7022a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
7023a67f45c3Smrgthen :
70249ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
70258bfe6addSmrgelse case e in #(
70268bfe6addSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
70278bfe6addSmrgesac
70289ff100acSmrgfi
70298bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
70308bfe6addSmrgesac
70319ff100acSmrgfi
7032a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7033a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
70349ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
70359ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
70369ff100acSmrgfi
70379ff100acSmrg
70389ff100acSmrgfound="no"
70399ff100acSmrg
70409ff100acSmrg	if test $found = "no" ; then
70419ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
70429ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
70439ff100acSmrg		fi
70449ff100acSmrg
70459ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
70469ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
70479ff100acSmrg		fi
70489ff100acSmrg
70499ff100acSmrg		CFLAGS="$CFLAGS -Wredundant-decls"
70509ff100acSmrg
7051a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7052a67f45c3Smrgprintf %s "checking if $CC supports -Wredundant-decls... " >&6; }
70539ff100acSmrg		cacheid=xorg_cv_cc_flag__Wredundant_decls
7054a67f45c3Smrg		if eval test \${$cacheid+y}
7055a67f45c3Smrgthen :
7056a67f45c3Smrg  printf %s "(cached) " >&6
70578bfe6addSmrgelse case e in #(
70588bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
70599ff100acSmrg/* end confdefs.h.  */
70609ff100acSmrgint i;
70619ff100acSmrgint
7062a67f45c3Smrgmain (void)
70639ff100acSmrg{
70649ff100acSmrg
70659ff100acSmrg  ;
70669ff100acSmrg  return 0;
70679ff100acSmrg}
70689ff100acSmrg_ACEOF
7069a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
7070a67f45c3Smrgthen :
70719ff100acSmrg  eval $cacheid=yes
70728bfe6addSmrgelse case e in #(
70738bfe6addSmrg  e) eval $cacheid=no ;;
70748bfe6addSmrgesac
70759ff100acSmrgfi
7076a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
70778bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
70788bfe6addSmrgesac
70799ff100acSmrgfi
70809ff100acSmrg
70819ff100acSmrg
70829ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
70839ff100acSmrg
70849ff100acSmrg		eval supported=\$$cacheid
7085a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7086a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
70879ff100acSmrg		if test "$supported" = "yes" ; then
70889ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
70899ff100acSmrg			found="yes"
70909ff100acSmrg		fi
70919ff100acSmrg	fi
70929ff100acSmrg
70939ff100acSmrg
70949ff100acSmrg
70959ff100acSmrg
70969ff100acSmrg
70979ff100acSmrg
70989ff100acSmrg
70999ff100acSmrg
71009ff100acSmrg
71019ff100acSmrg
71029ff100acSmrg
71039ff100acSmrg
71049ff100acSmrg
71059ff100acSmrg
71069ff100acSmrg
71079ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
71089ff100acSmrg
71099ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
71109ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7111a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7112a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7113a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7114a67f45c3Smrgthen :
7115a67f45c3Smrg  printf %s "(cached) " >&6
71168bfe6addSmrgelse case e in #(
71178bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71189ff100acSmrg/* end confdefs.h.  */
71199ff100acSmrgint i;
71209ff100acSmrg_ACEOF
7121a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
7122a67f45c3Smrgthen :
71239ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
71248bfe6addSmrgelse case e in #(
71258bfe6addSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
71268bfe6addSmrgesac
71279ff100acSmrgfi
71288bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
71298bfe6addSmrgesac
71309ff100acSmrgfi
7131a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7132a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
71339ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
71349ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
71359ff100acSmrgfi
71369ff100acSmrg
71379ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
71389ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
71399ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
71409ff100acSmrg	fi
71419ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7142a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7143a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7144a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7145a67f45c3Smrgthen :
7146a67f45c3Smrg  printf %s "(cached) " >&6
71478bfe6addSmrgelse case e in #(
71488bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71499ff100acSmrg/* end confdefs.h.  */
71509ff100acSmrgint i;
71519ff100acSmrg_ACEOF
7152a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
7153a67f45c3Smrgthen :
71549ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
71558bfe6addSmrgelse case e in #(
71568bfe6addSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
71578bfe6addSmrgesac
71589ff100acSmrgfi
71598bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
71608bfe6addSmrgesac
71619ff100acSmrgfi
7162a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7163a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
71649ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
71659ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
71669ff100acSmrgfi
71679ff100acSmrg
71689ff100acSmrgfound="no"
71699ff100acSmrg
71709ff100acSmrg	if test $found = "no" ; then
71719ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
71729ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
71739ff100acSmrg		fi
71749ff100acSmrg
71759ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
71769ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
71779ff100acSmrg		fi
71789ff100acSmrg
71799ff100acSmrg		CFLAGS="$CFLAGS -Wlogical-op"
71809ff100acSmrg
7181a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7182a67f45c3Smrgprintf %s "checking if $CC supports -Wlogical-op... " >&6; }
71839ff100acSmrg		cacheid=xorg_cv_cc_flag__Wlogical_op
7184a67f45c3Smrg		if eval test \${$cacheid+y}
7185a67f45c3Smrgthen :
7186a67f45c3Smrg  printf %s "(cached) " >&6
71878bfe6addSmrgelse case e in #(
71888bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71899ff100acSmrg/* end confdefs.h.  */
71909ff100acSmrgint i;
71919ff100acSmrgint
7192a67f45c3Smrgmain (void)
71939ff100acSmrg{
71949ff100acSmrg
71959ff100acSmrg  ;
71969ff100acSmrg  return 0;
71979ff100acSmrg}
71989ff100acSmrg_ACEOF
7199a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
7200a67f45c3Smrgthen :
72019ff100acSmrg  eval $cacheid=yes
72028bfe6addSmrgelse case e in #(
72038bfe6addSmrg  e) eval $cacheid=no ;;
72048bfe6addSmrgesac
72059ff100acSmrgfi
7206a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
72078bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
72088bfe6addSmrgesac
72099ff100acSmrgfi
72109ff100acSmrg
72119ff100acSmrg
72129ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
72139ff100acSmrg
72149ff100acSmrg		eval supported=\$$cacheid
7215a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7216a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
72179ff100acSmrg		if test "$supported" = "yes" ; then
72189ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
72199ff100acSmrg			found="yes"
72209ff100acSmrg		fi
72219ff100acSmrg	fi
72229ff100acSmrg
72239ff100acSmrg
72249ff100acSmrg
72259ff100acSmrg# These are currently disabled because they are noisy.  They will be enabled
72269ff100acSmrg# in the future once the codebase is sufficiently modernized to silence
72279ff100acSmrg# them.  For now, I don't want them to drown out the other warnings.
72289ff100acSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
72299ff100acSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
72309ff100acSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
72319ff100acSmrg
72328bfe6addSmrg# Turn some warnings into errors, so we don't accidentally get successful builds
72339ff100acSmrg# when there are problems that should be fixed.
72349ff100acSmrg
72359ff100acSmrgif test "x$SELECTIVE_WERROR" = "xyes" ; then
72369ff100acSmrg
72379ff100acSmrg
72389ff100acSmrg
72399ff100acSmrg
72409ff100acSmrg
72419ff100acSmrg
72429ff100acSmrg
72439ff100acSmrg
72449ff100acSmrg
72459ff100acSmrg
72469ff100acSmrg
72479ff100acSmrg
72489ff100acSmrg
72499ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
72509ff100acSmrg
72519ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
72529ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7253a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7254a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7255a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7256a67f45c3Smrgthen :
7257a67f45c3Smrg  printf %s "(cached) " >&6
72588bfe6addSmrgelse case e in #(
72598bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
72609ff100acSmrg/* end confdefs.h.  */
72619ff100acSmrgint i;
72629ff100acSmrg_ACEOF
7263a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
7264a67f45c3Smrgthen :
72659ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
72668bfe6addSmrgelse case e in #(
72678bfe6addSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
72688bfe6addSmrgesac
72699ff100acSmrgfi
72708bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
72718bfe6addSmrgesac
72729ff100acSmrgfi
7273a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7274a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
72759ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
72769ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
72779ff100acSmrgfi
72789ff100acSmrg
72799ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
72809ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
72819ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
72829ff100acSmrg	fi
72839ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7284a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7285a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7286a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7287a67f45c3Smrgthen :
7288a67f45c3Smrg  printf %s "(cached) " >&6
72898bfe6addSmrgelse case e in #(
72908bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
72919ff100acSmrg/* end confdefs.h.  */
72929ff100acSmrgint i;
72939ff100acSmrg_ACEOF
7294a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
7295a67f45c3Smrgthen :
72969ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
72978bfe6addSmrgelse case e in #(
72988bfe6addSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
72998bfe6addSmrgesac
73009ff100acSmrgfi
73018bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
73028bfe6addSmrgesac
73039ff100acSmrgfi
7304a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7305a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
73069ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
73079ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
73089ff100acSmrgfi
73099ff100acSmrg
73109ff100acSmrgfound="no"
73119ff100acSmrg
73129ff100acSmrg	if test $found = "no" ; then
73139ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
73149ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
73159ff100acSmrg		fi
73169ff100acSmrg
73179ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
73189ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
73199ff100acSmrg		fi
73209ff100acSmrg
73219ff100acSmrg		CFLAGS="$CFLAGS -Werror=implicit"
73229ff100acSmrg
7323a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7324a67f45c3Smrgprintf %s "checking if $CC supports -Werror=implicit... " >&6; }
73259ff100acSmrg		cacheid=xorg_cv_cc_flag__Werror_implicit
7326a67f45c3Smrg		if eval test \${$cacheid+y}
7327a67f45c3Smrgthen :
7328a67f45c3Smrg  printf %s "(cached) " >&6
73298bfe6addSmrgelse case e in #(
73308bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
73319ff100acSmrg/* end confdefs.h.  */
73329ff100acSmrgint i;
73339ff100acSmrgint
7334a67f45c3Smrgmain (void)
73359ff100acSmrg{
73369ff100acSmrg
73379ff100acSmrg  ;
73389ff100acSmrg  return 0;
73399ff100acSmrg}
73409ff100acSmrg_ACEOF
7341a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
7342a67f45c3Smrgthen :
73439ff100acSmrg  eval $cacheid=yes
73448bfe6addSmrgelse case e in #(
73458bfe6addSmrg  e) eval $cacheid=no ;;
73468bfe6addSmrgesac
73479ff100acSmrgfi
7348a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
73498bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
73508bfe6addSmrgesac
73519ff100acSmrgfi
73529ff100acSmrg
73539ff100acSmrg
73549ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
73559ff100acSmrg
73569ff100acSmrg		eval supported=\$$cacheid
7357a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7358a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
73599ff100acSmrg		if test "$supported" = "yes" ; then
73609ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
73619ff100acSmrg			found="yes"
73629ff100acSmrg		fi
73639ff100acSmrg	fi
73649ff100acSmrg
73659ff100acSmrg	if test $found = "no" ; then
73669ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
73679ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
73689ff100acSmrg		fi
73699ff100acSmrg
73709ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
73719ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
73729ff100acSmrg		fi
73739ff100acSmrg
73749ff100acSmrg		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
73759ff100acSmrg
7376a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7377a67f45c3Smrgprintf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
73789ff100acSmrg		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7379a67f45c3Smrg		if eval test \${$cacheid+y}
7380a67f45c3Smrgthen :
7381a67f45c3Smrg  printf %s "(cached) " >&6
73828bfe6addSmrgelse case e in #(
73838bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
73849ff100acSmrg/* end confdefs.h.  */
73859ff100acSmrgint i;
73869ff100acSmrgint
7387a67f45c3Smrgmain (void)
73889ff100acSmrg{
73899ff100acSmrg
73909ff100acSmrg  ;
73919ff100acSmrg  return 0;
73929ff100acSmrg}
73939ff100acSmrg_ACEOF
7394a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
7395a67f45c3Smrgthen :
73969ff100acSmrg  eval $cacheid=yes
73978bfe6addSmrgelse case e in #(
73988bfe6addSmrg  e) eval $cacheid=no ;;
73998bfe6addSmrgesac
74009ff100acSmrgfi
7401a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
74028bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
74038bfe6addSmrgesac
74049ff100acSmrgfi
74059ff100acSmrg
74069ff100acSmrg
74079ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
74089ff100acSmrg
74099ff100acSmrg		eval supported=\$$cacheid
7410a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7411a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
74129ff100acSmrg		if test "$supported" = "yes" ; then
74139ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
74149ff100acSmrg			found="yes"
74159ff100acSmrg		fi
74169ff100acSmrg	fi
74179ff100acSmrg
74189ff100acSmrg
74199ff100acSmrg
74209ff100acSmrg
74219ff100acSmrg
74229ff100acSmrg
74239ff100acSmrg
74249ff100acSmrg
74259ff100acSmrg
74269ff100acSmrg
74279ff100acSmrg
74289ff100acSmrg
74299ff100acSmrg
74309ff100acSmrg
74319ff100acSmrg
74329ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
74339ff100acSmrg
74349ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
74359ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7436a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7437a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7438a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7439a67f45c3Smrgthen :
7440a67f45c3Smrg  printf %s "(cached) " >&6
74418bfe6addSmrgelse case e in #(
74428bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
74439ff100acSmrg/* end confdefs.h.  */
74449ff100acSmrgint i;
74459ff100acSmrg_ACEOF
7446a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
7447a67f45c3Smrgthen :
74489ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
74498bfe6addSmrgelse case e in #(
74508bfe6addSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
74518bfe6addSmrgesac
74529ff100acSmrgfi
74538bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
74548bfe6addSmrgesac
74559ff100acSmrgfi
7456a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7457a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
74589ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
74599ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
74609ff100acSmrgfi
74619ff100acSmrg
74629ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
74639ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
74649ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
74659ff100acSmrg	fi
74669ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7467a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7468a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7469a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7470a67f45c3Smrgthen :
7471a67f45c3Smrg  printf %s "(cached) " >&6
74728bfe6addSmrgelse case e in #(
74738bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
74749ff100acSmrg/* end confdefs.h.  */
74759ff100acSmrgint i;
74769ff100acSmrg_ACEOF
7477a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
7478a67f45c3Smrgthen :
74799ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
74808bfe6addSmrgelse case e in #(
74818bfe6addSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
74828bfe6addSmrgesac
74839ff100acSmrgfi
74848bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
74858bfe6addSmrgesac
74869ff100acSmrgfi
7487a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7488a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
74899ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
74909ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
74919ff100acSmrgfi
74929ff100acSmrg
74939ff100acSmrgfound="no"
74949ff100acSmrg
74959ff100acSmrg	if test $found = "no" ; then
74969ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
74979ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
74989ff100acSmrg		fi
74999ff100acSmrg
75009ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
75019ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
75029ff100acSmrg		fi
75039ff100acSmrg
75049ff100acSmrg		CFLAGS="$CFLAGS -Werror=nonnull"
75059ff100acSmrg
7506a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7507a67f45c3Smrgprintf %s "checking if $CC supports -Werror=nonnull... " >&6; }
75089ff100acSmrg		cacheid=xorg_cv_cc_flag__Werror_nonnull
7509a67f45c3Smrg		if eval test \${$cacheid+y}
7510a67f45c3Smrgthen :
7511a67f45c3Smrg  printf %s "(cached) " >&6
75128bfe6addSmrgelse case e in #(
75138bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
75149ff100acSmrg/* end confdefs.h.  */
75159ff100acSmrgint i;
75169ff100acSmrgint
7517a67f45c3Smrgmain (void)
75189ff100acSmrg{
75199ff100acSmrg
75209ff100acSmrg  ;
75219ff100acSmrg  return 0;
75229ff100acSmrg}
75239ff100acSmrg_ACEOF
7524a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
7525a67f45c3Smrgthen :
75269ff100acSmrg  eval $cacheid=yes
75278bfe6addSmrgelse case e in #(
75288bfe6addSmrg  e) eval $cacheid=no ;;
75298bfe6addSmrgesac
75309ff100acSmrgfi
7531a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
75328bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
75338bfe6addSmrgesac
75349ff100acSmrgfi
75359ff100acSmrg
75369ff100acSmrg
75379ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
75389ff100acSmrg
75399ff100acSmrg		eval supported=\$$cacheid
7540a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7541a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
75429ff100acSmrg		if test "$supported" = "yes" ; then
75439ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
75449ff100acSmrg			found="yes"
75459ff100acSmrg		fi
75469ff100acSmrg	fi
75479ff100acSmrg
75489ff100acSmrg
75499ff100acSmrg
75509ff100acSmrg
75519ff100acSmrg
75529ff100acSmrg
75539ff100acSmrg
75549ff100acSmrg
75559ff100acSmrg
75569ff100acSmrg
75579ff100acSmrg
75589ff100acSmrg
75599ff100acSmrg
75609ff100acSmrg
75619ff100acSmrg
75629ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
75639ff100acSmrg
75649ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
75659ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7566a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7567a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7568a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7569a67f45c3Smrgthen :
7570a67f45c3Smrg  printf %s "(cached) " >&6
75718bfe6addSmrgelse case e in #(
75728bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
75739ff100acSmrg/* end confdefs.h.  */
75749ff100acSmrgint i;
75759ff100acSmrg_ACEOF
7576a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
7577a67f45c3Smrgthen :
75789ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
75798bfe6addSmrgelse case e in #(
75808bfe6addSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
75818bfe6addSmrgesac
75829ff100acSmrgfi
75838bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
75848bfe6addSmrgesac
75859ff100acSmrgfi
7586a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7587a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
75889ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
75899ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
75909ff100acSmrgfi
75919ff100acSmrg
75929ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
75939ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
75949ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
75959ff100acSmrg	fi
75969ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7597a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7598a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7599a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7600a67f45c3Smrgthen :
7601a67f45c3Smrg  printf %s "(cached) " >&6
76028bfe6addSmrgelse case e in #(
76038bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
76049ff100acSmrg/* end confdefs.h.  */
76059ff100acSmrgint i;
76069ff100acSmrg_ACEOF
7607a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
7608a67f45c3Smrgthen :
76099ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
76108bfe6addSmrgelse case e in #(
76118bfe6addSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
76128bfe6addSmrgesac
76139ff100acSmrgfi
76148bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
76158bfe6addSmrgesac
76169ff100acSmrgfi
7617a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7618a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
76199ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
76209ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
76219ff100acSmrgfi
76229ff100acSmrg
76239ff100acSmrgfound="no"
76249ff100acSmrg
76259ff100acSmrg	if test $found = "no" ; then
76269ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
76279ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
76289ff100acSmrg		fi
76299ff100acSmrg
76309ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
76319ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
76329ff100acSmrg		fi
76339ff100acSmrg
76349ff100acSmrg		CFLAGS="$CFLAGS -Werror=init-self"
76359ff100acSmrg
7636a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7637a67f45c3Smrgprintf %s "checking if $CC supports -Werror=init-self... " >&6; }
76389ff100acSmrg		cacheid=xorg_cv_cc_flag__Werror_init_self
7639a67f45c3Smrg		if eval test \${$cacheid+y}
7640a67f45c3Smrgthen :
7641a67f45c3Smrg  printf %s "(cached) " >&6
76428bfe6addSmrgelse case e in #(
76438bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
76449ff100acSmrg/* end confdefs.h.  */
76459ff100acSmrgint i;
76469ff100acSmrgint
7647a67f45c3Smrgmain (void)
76489ff100acSmrg{
76499ff100acSmrg
76509ff100acSmrg  ;
76519ff100acSmrg  return 0;
76529ff100acSmrg}
76539ff100acSmrg_ACEOF
7654a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
7655a67f45c3Smrgthen :
76569ff100acSmrg  eval $cacheid=yes
76578bfe6addSmrgelse case e in #(
76588bfe6addSmrg  e) eval $cacheid=no ;;
76598bfe6addSmrgesac
76609ff100acSmrgfi
7661a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
76628bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
76638bfe6addSmrgesac
76649ff100acSmrgfi
76659ff100acSmrg
76669ff100acSmrg
76679ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
76689ff100acSmrg
76699ff100acSmrg		eval supported=\$$cacheid
7670a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7671a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
76729ff100acSmrg		if test "$supported" = "yes" ; then
76739ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
76749ff100acSmrg			found="yes"
76759ff100acSmrg		fi
76769ff100acSmrg	fi
76779ff100acSmrg
76789ff100acSmrg
76799ff100acSmrg
76809ff100acSmrg
76819ff100acSmrg
76829ff100acSmrg
76839ff100acSmrg
76849ff100acSmrg
76859ff100acSmrg
76869ff100acSmrg
76879ff100acSmrg
76889ff100acSmrg
76899ff100acSmrg
76909ff100acSmrg
76919ff100acSmrg
76929ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
76939ff100acSmrg
76949ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
76959ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7696a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7697a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7698a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7699a67f45c3Smrgthen :
7700a67f45c3Smrg  printf %s "(cached) " >&6
77018bfe6addSmrgelse case e in #(
77028bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77039ff100acSmrg/* end confdefs.h.  */
77049ff100acSmrgint i;
77059ff100acSmrg_ACEOF
7706a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
7707a67f45c3Smrgthen :
77089ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
77098bfe6addSmrgelse case e in #(
77108bfe6addSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
77118bfe6addSmrgesac
77129ff100acSmrgfi
77138bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
77148bfe6addSmrgesac
77159ff100acSmrgfi
7716a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7717a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
77189ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
77199ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
77209ff100acSmrgfi
77219ff100acSmrg
77229ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
77239ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
77249ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
77259ff100acSmrg	fi
77269ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7727a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7728a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7729a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7730a67f45c3Smrgthen :
7731a67f45c3Smrg  printf %s "(cached) " >&6
77328bfe6addSmrgelse case e in #(
77338bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77349ff100acSmrg/* end confdefs.h.  */
77359ff100acSmrgint i;
77369ff100acSmrg_ACEOF
7737a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
7738a67f45c3Smrgthen :
77399ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
77408bfe6addSmrgelse case e in #(
77418bfe6addSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
77428bfe6addSmrgesac
77439ff100acSmrgfi
77448bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
77458bfe6addSmrgesac
77469ff100acSmrgfi
7747a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7748a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
77499ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
77509ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
77519ff100acSmrgfi
77529ff100acSmrg
77539ff100acSmrgfound="no"
77549ff100acSmrg
77559ff100acSmrg	if test $found = "no" ; then
77569ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
77579ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
77589ff100acSmrg		fi
77599ff100acSmrg
77609ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
77619ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
77629ff100acSmrg		fi
77639ff100acSmrg
77649ff100acSmrg		CFLAGS="$CFLAGS -Werror=main"
77659ff100acSmrg
7766a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7767a67f45c3Smrgprintf %s "checking if $CC supports -Werror=main... " >&6; }
77689ff100acSmrg		cacheid=xorg_cv_cc_flag__Werror_main
7769a67f45c3Smrg		if eval test \${$cacheid+y}
7770a67f45c3Smrgthen :
7771a67f45c3Smrg  printf %s "(cached) " >&6
77728bfe6addSmrgelse case e in #(
77738bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77749ff100acSmrg/* end confdefs.h.  */
77759ff100acSmrgint i;
77769ff100acSmrgint
7777a67f45c3Smrgmain (void)
77789ff100acSmrg{
77799ff100acSmrg
77809ff100acSmrg  ;
77819ff100acSmrg  return 0;
77829ff100acSmrg}
77839ff100acSmrg_ACEOF
7784a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
7785a67f45c3Smrgthen :
77869ff100acSmrg  eval $cacheid=yes
77878bfe6addSmrgelse case e in #(
77888bfe6addSmrg  e) eval $cacheid=no ;;
77898bfe6addSmrgesac
77909ff100acSmrgfi
7791a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
77928bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
77938bfe6addSmrgesac
77949ff100acSmrgfi
77959ff100acSmrg
77969ff100acSmrg
77979ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
77989ff100acSmrg
77999ff100acSmrg		eval supported=\$$cacheid
7800a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7801a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
78029ff100acSmrg		if test "$supported" = "yes" ; then
78039ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
78049ff100acSmrg			found="yes"
78059ff100acSmrg		fi
78069ff100acSmrg	fi
78079ff100acSmrg
78089ff100acSmrg
78099ff100acSmrg
78109ff100acSmrg
78119ff100acSmrg
78129ff100acSmrg
78139ff100acSmrg
78149ff100acSmrg
78159ff100acSmrg
78169ff100acSmrg
78179ff100acSmrg
78189ff100acSmrg
78199ff100acSmrg
78209ff100acSmrg
78219ff100acSmrg
78229ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
78239ff100acSmrg
78249ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
78259ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7826a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7827a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7828a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7829a67f45c3Smrgthen :
7830a67f45c3Smrg  printf %s "(cached) " >&6
78318bfe6addSmrgelse case e in #(
78328bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
78339ff100acSmrg/* end confdefs.h.  */
78349ff100acSmrgint i;
78359ff100acSmrg_ACEOF
7836a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
7837a67f45c3Smrgthen :
78389ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
78398bfe6addSmrgelse case e in #(
78408bfe6addSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
78418bfe6addSmrgesac
78429ff100acSmrgfi
78438bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
78448bfe6addSmrgesac
78459ff100acSmrgfi
7846a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7847a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
78489ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
78499ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
78509ff100acSmrgfi
78519ff100acSmrg
78529ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
78539ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
78549ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
78559ff100acSmrg	fi
78569ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7857a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7858a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7859a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7860a67f45c3Smrgthen :
7861a67f45c3Smrg  printf %s "(cached) " >&6
78628bfe6addSmrgelse case e in #(
78638bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
78649ff100acSmrg/* end confdefs.h.  */
78659ff100acSmrgint i;
78669ff100acSmrg_ACEOF
7867a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
7868a67f45c3Smrgthen :
78699ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
78708bfe6addSmrgelse case e in #(
78718bfe6addSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
78728bfe6addSmrgesac
78739ff100acSmrgfi
78748bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
78758bfe6addSmrgesac
78769ff100acSmrgfi
7877a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7878a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
78799ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
78809ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
78819ff100acSmrgfi
78829ff100acSmrg
78839ff100acSmrgfound="no"
78849ff100acSmrg
78859ff100acSmrg	if test $found = "no" ; then
78869ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
78879ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
78889ff100acSmrg		fi
78899ff100acSmrg
78909ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
78919ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
78929ff100acSmrg		fi
78939ff100acSmrg
78949ff100acSmrg		CFLAGS="$CFLAGS -Werror=missing-braces"
78959ff100acSmrg
7896a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7897a67f45c3Smrgprintf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
78989ff100acSmrg		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7899a67f45c3Smrg		if eval test \${$cacheid+y}
7900a67f45c3Smrgthen :
7901a67f45c3Smrg  printf %s "(cached) " >&6
79028bfe6addSmrgelse case e in #(
79038bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79049ff100acSmrg/* end confdefs.h.  */
79059ff100acSmrgint i;
79069ff100acSmrgint
7907a67f45c3Smrgmain (void)
79089ff100acSmrg{
79099ff100acSmrg
79109ff100acSmrg  ;
79119ff100acSmrg  return 0;
79129ff100acSmrg}
79139ff100acSmrg_ACEOF
7914a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
7915a67f45c3Smrgthen :
79169ff100acSmrg  eval $cacheid=yes
79178bfe6addSmrgelse case e in #(
79188bfe6addSmrg  e) eval $cacheid=no ;;
79198bfe6addSmrgesac
79209ff100acSmrgfi
7921a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
79228bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
79238bfe6addSmrgesac
79249ff100acSmrgfi
79259ff100acSmrg
79269ff100acSmrg
79279ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
79289ff100acSmrg
79299ff100acSmrg		eval supported=\$$cacheid
7930a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7931a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
79329ff100acSmrg		if test "$supported" = "yes" ; then
79339ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
79349ff100acSmrg			found="yes"
79359ff100acSmrg		fi
79369ff100acSmrg	fi
79379ff100acSmrg
79389ff100acSmrg
79399ff100acSmrg
79409ff100acSmrg
79419ff100acSmrg
79429ff100acSmrg
79439ff100acSmrg
79449ff100acSmrg
79459ff100acSmrg
79469ff100acSmrg
79479ff100acSmrg
79489ff100acSmrg
79499ff100acSmrg
79509ff100acSmrg
79519ff100acSmrg
79529ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
79539ff100acSmrg
79549ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
79559ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7956a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7957a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7958a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7959a67f45c3Smrgthen :
7960a67f45c3Smrg  printf %s "(cached) " >&6
79618bfe6addSmrgelse case e in #(
79628bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79639ff100acSmrg/* end confdefs.h.  */
79649ff100acSmrgint i;
79659ff100acSmrg_ACEOF
7966a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
7967a67f45c3Smrgthen :
79689ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
79698bfe6addSmrgelse case e in #(
79708bfe6addSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
79718bfe6addSmrgesac
79729ff100acSmrgfi
79738bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
79748bfe6addSmrgesac
79759ff100acSmrgfi
7976a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7977a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
79789ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
79799ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
79809ff100acSmrgfi
79819ff100acSmrg
79829ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
79839ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
79849ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
79859ff100acSmrg	fi
79869ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7987a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7988a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7989a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7990a67f45c3Smrgthen :
7991a67f45c3Smrg  printf %s "(cached) " >&6
79928bfe6addSmrgelse case e in #(
79938bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79949ff100acSmrg/* end confdefs.h.  */
79959ff100acSmrgint i;
79969ff100acSmrg_ACEOF
7997a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
7998a67f45c3Smrgthen :
79999ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
80008bfe6addSmrgelse case e in #(
80018bfe6addSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
80028bfe6addSmrgesac
80039ff100acSmrgfi
80048bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
80058bfe6addSmrgesac
80069ff100acSmrgfi
8007a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8008a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
80099ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
80109ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
80119ff100acSmrgfi
80129ff100acSmrg
80139ff100acSmrgfound="no"
80149ff100acSmrg
80159ff100acSmrg	if test $found = "no" ; then
80169ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
80179ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
80189ff100acSmrg		fi
80199ff100acSmrg
80209ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
80219ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
80229ff100acSmrg		fi
80239ff100acSmrg
80249ff100acSmrg		CFLAGS="$CFLAGS -Werror=sequence-point"
80259ff100acSmrg
8026a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8027a67f45c3Smrgprintf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
80289ff100acSmrg		cacheid=xorg_cv_cc_flag__Werror_sequence_point
8029a67f45c3Smrg		if eval test \${$cacheid+y}
8030a67f45c3Smrgthen :
8031a67f45c3Smrg  printf %s "(cached) " >&6
80328bfe6addSmrgelse case e in #(
80338bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
80349ff100acSmrg/* end confdefs.h.  */
80359ff100acSmrgint i;
80369ff100acSmrgint
8037a67f45c3Smrgmain (void)
80389ff100acSmrg{
80399ff100acSmrg
80409ff100acSmrg  ;
80419ff100acSmrg  return 0;
80429ff100acSmrg}
80439ff100acSmrg_ACEOF
8044a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
8045a67f45c3Smrgthen :
80469ff100acSmrg  eval $cacheid=yes
80478bfe6addSmrgelse case e in #(
80488bfe6addSmrg  e) eval $cacheid=no ;;
80498bfe6addSmrgesac
80509ff100acSmrgfi
8051a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
80528bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
80538bfe6addSmrgesac
80549ff100acSmrgfi
80559ff100acSmrg
80569ff100acSmrg
80579ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
80589ff100acSmrg
80599ff100acSmrg		eval supported=\$$cacheid
8060a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8061a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
80629ff100acSmrg		if test "$supported" = "yes" ; then
80639ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
80649ff100acSmrg			found="yes"
80659ff100acSmrg		fi
80669ff100acSmrg	fi
80679ff100acSmrg
80689ff100acSmrg
80699ff100acSmrg
80709ff100acSmrg
80719ff100acSmrg
80729ff100acSmrg
80739ff100acSmrg
80749ff100acSmrg
80759ff100acSmrg
80769ff100acSmrg
80779ff100acSmrg
80789ff100acSmrg
80799ff100acSmrg
80809ff100acSmrg
80819ff100acSmrg
80829ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
80839ff100acSmrg
80849ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
80859ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8086a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8087a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8088a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8089a67f45c3Smrgthen :
8090a67f45c3Smrg  printf %s "(cached) " >&6
80918bfe6addSmrgelse case e in #(
80928bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
80939ff100acSmrg/* end confdefs.h.  */
80949ff100acSmrgint i;
80959ff100acSmrg_ACEOF
8096a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
8097a67f45c3Smrgthen :
80989ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
80998bfe6addSmrgelse case e in #(
81008bfe6addSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
81018bfe6addSmrgesac
81029ff100acSmrgfi
81038bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
81048bfe6addSmrgesac
81059ff100acSmrgfi
8106a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8107a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
81089ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
81099ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
81109ff100acSmrgfi
81119ff100acSmrg
81129ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
81139ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
81149ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
81159ff100acSmrg	fi
81169ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8117a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8118a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8119a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8120a67f45c3Smrgthen :
8121a67f45c3Smrg  printf %s "(cached) " >&6
81228bfe6addSmrgelse case e in #(
81238bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81249ff100acSmrg/* end confdefs.h.  */
81259ff100acSmrgint i;
81269ff100acSmrg_ACEOF
8127a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
8128a67f45c3Smrgthen :
81299ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
81308bfe6addSmrgelse case e in #(
81318bfe6addSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
81328bfe6addSmrgesac
81339ff100acSmrgfi
81348bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
81358bfe6addSmrgesac
81369ff100acSmrgfi
8137a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8138a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
81399ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
81409ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
81419ff100acSmrgfi
81429ff100acSmrg
81439ff100acSmrgfound="no"
81449ff100acSmrg
81459ff100acSmrg	if test $found = "no" ; then
81469ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
81479ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
81489ff100acSmrg		fi
81499ff100acSmrg
81509ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
81519ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
81529ff100acSmrg		fi
81539ff100acSmrg
81549ff100acSmrg		CFLAGS="$CFLAGS -Werror=return-type"
81559ff100acSmrg
8156a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8157a67f45c3Smrgprintf %s "checking if $CC supports -Werror=return-type... " >&6; }
81589ff100acSmrg		cacheid=xorg_cv_cc_flag__Werror_return_type
8159a67f45c3Smrg		if eval test \${$cacheid+y}
8160a67f45c3Smrgthen :
8161a67f45c3Smrg  printf %s "(cached) " >&6
81628bfe6addSmrgelse case e in #(
81638bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81649ff100acSmrg/* end confdefs.h.  */
81659ff100acSmrgint i;
81669ff100acSmrgint
8167a67f45c3Smrgmain (void)
81689ff100acSmrg{
81699ff100acSmrg
81709ff100acSmrg  ;
81719ff100acSmrg  return 0;
81729ff100acSmrg}
81739ff100acSmrg_ACEOF
8174a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
8175a67f45c3Smrgthen :
81769ff100acSmrg  eval $cacheid=yes
81778bfe6addSmrgelse case e in #(
81788bfe6addSmrg  e) eval $cacheid=no ;;
81798bfe6addSmrgesac
81809ff100acSmrgfi
8181a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
81828bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
81838bfe6addSmrgesac
81849ff100acSmrgfi
81859ff100acSmrg
81869ff100acSmrg
81879ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
81889ff100acSmrg
81899ff100acSmrg		eval supported=\$$cacheid
8190a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8191a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
81929ff100acSmrg		if test "$supported" = "yes" ; then
81939ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
81949ff100acSmrg			found="yes"
81959ff100acSmrg		fi
81969ff100acSmrg	fi
81979ff100acSmrg
81989ff100acSmrg	if test $found = "no" ; then
81999ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
82009ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
82019ff100acSmrg		fi
82029ff100acSmrg
82039ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
82049ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
82059ff100acSmrg		fi
82069ff100acSmrg
82079ff100acSmrg		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
82089ff100acSmrg
8209a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8210a67f45c3Smrgprintf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
82119ff100acSmrg		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8212a67f45c3Smrg		if eval test \${$cacheid+y}
8213a67f45c3Smrgthen :
8214a67f45c3Smrg  printf %s "(cached) " >&6
82158bfe6addSmrgelse case e in #(
82168bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
82179ff100acSmrg/* end confdefs.h.  */
82189ff100acSmrgint i;
82199ff100acSmrgint
8220a67f45c3Smrgmain (void)
82219ff100acSmrg{
82229ff100acSmrg
82239ff100acSmrg  ;
82249ff100acSmrg  return 0;
82259ff100acSmrg}
82269ff100acSmrg_ACEOF
8227a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
8228a67f45c3Smrgthen :
82299ff100acSmrg  eval $cacheid=yes
82308bfe6addSmrgelse case e in #(
82318bfe6addSmrg  e) eval $cacheid=no ;;
82328bfe6addSmrgesac
82339ff100acSmrgfi
8234a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
82358bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
82368bfe6addSmrgesac
82379ff100acSmrgfi
82389ff100acSmrg
82399ff100acSmrg
82409ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
82419ff100acSmrg
82429ff100acSmrg		eval supported=\$$cacheid
8243a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8244a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
82459ff100acSmrg		if test "$supported" = "yes" ; then
82469ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
82479ff100acSmrg			found="yes"
82489ff100acSmrg		fi
82499ff100acSmrg	fi
82509ff100acSmrg
82519ff100acSmrg
82529ff100acSmrg
82539ff100acSmrg
82549ff100acSmrg
82559ff100acSmrg
82569ff100acSmrg
82579ff100acSmrg
82589ff100acSmrg
82599ff100acSmrg
82609ff100acSmrg
82619ff100acSmrg
82629ff100acSmrg
82639ff100acSmrg
82649ff100acSmrg
82659ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
82669ff100acSmrg
82679ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
82689ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8269a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8270a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8271a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8272a67f45c3Smrgthen :
8273a67f45c3Smrg  printf %s "(cached) " >&6
82748bfe6addSmrgelse case e in #(
82758bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
82769ff100acSmrg/* end confdefs.h.  */
82779ff100acSmrgint i;
82789ff100acSmrg_ACEOF
8279a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
8280a67f45c3Smrgthen :
82819ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
82828bfe6addSmrgelse case e in #(
82838bfe6addSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
82848bfe6addSmrgesac
82859ff100acSmrgfi
82868bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
82878bfe6addSmrgesac
82889ff100acSmrgfi
8289a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8290a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
82919ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
82929ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
82939ff100acSmrgfi
82949ff100acSmrg
82959ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
82969ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
82979ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
82989ff100acSmrg	fi
82999ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8300a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8301a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8302a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8303a67f45c3Smrgthen :
8304a67f45c3Smrg  printf %s "(cached) " >&6
83058bfe6addSmrgelse case e in #(
83068bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
83079ff100acSmrg/* end confdefs.h.  */
83089ff100acSmrgint i;
83099ff100acSmrg_ACEOF
8310a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
8311a67f45c3Smrgthen :
83129ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
83138bfe6addSmrgelse case e in #(
83148bfe6addSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
83158bfe6addSmrgesac
83169ff100acSmrgfi
83178bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
83188bfe6addSmrgesac
83199ff100acSmrgfi
8320a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8321a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
83229ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
83239ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
83249ff100acSmrgfi
83259ff100acSmrg
83269ff100acSmrgfound="no"
83279ff100acSmrg
83289ff100acSmrg	if test $found = "no" ; then
83299ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
83309ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
83319ff100acSmrg		fi
83329ff100acSmrg
83339ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
83349ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
83359ff100acSmrg		fi
83369ff100acSmrg
83379ff100acSmrg		CFLAGS="$CFLAGS -Werror=trigraphs"
83389ff100acSmrg
8339a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8340a67f45c3Smrgprintf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
83419ff100acSmrg		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8342a67f45c3Smrg		if eval test \${$cacheid+y}
8343a67f45c3Smrgthen :
8344a67f45c3Smrg  printf %s "(cached) " >&6
83458bfe6addSmrgelse case e in #(
83468bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
83479ff100acSmrg/* end confdefs.h.  */
83489ff100acSmrgint i;
83499ff100acSmrgint
8350a67f45c3Smrgmain (void)
83519ff100acSmrg{
83529ff100acSmrg
83539ff100acSmrg  ;
83549ff100acSmrg  return 0;
83559ff100acSmrg}
83569ff100acSmrg_ACEOF
8357a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
8358a67f45c3Smrgthen :
83599ff100acSmrg  eval $cacheid=yes
83608bfe6addSmrgelse case e in #(
83618bfe6addSmrg  e) eval $cacheid=no ;;
83628bfe6addSmrgesac
83639ff100acSmrgfi
8364a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
83658bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
83668bfe6addSmrgesac
83679ff100acSmrgfi
83689ff100acSmrg
83699ff100acSmrg
83709ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
83719ff100acSmrg
83729ff100acSmrg		eval supported=\$$cacheid
8373a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8374a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
83759ff100acSmrg		if test "$supported" = "yes" ; then
83769ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
83779ff100acSmrg			found="yes"
83789ff100acSmrg		fi
83799ff100acSmrg	fi
83809ff100acSmrg
83819ff100acSmrg
83829ff100acSmrg
83839ff100acSmrg
83849ff100acSmrg
83859ff100acSmrg
83869ff100acSmrg
83879ff100acSmrg
83889ff100acSmrg
83899ff100acSmrg
83909ff100acSmrg
83919ff100acSmrg
83929ff100acSmrg
83939ff100acSmrg
83949ff100acSmrg
83959ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
83969ff100acSmrg
83979ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
83989ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8399a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8400a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8401a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8402a67f45c3Smrgthen :
8403a67f45c3Smrg  printf %s "(cached) " >&6
84048bfe6addSmrgelse case e in #(
84058bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
84069ff100acSmrg/* end confdefs.h.  */
84079ff100acSmrgint i;
84089ff100acSmrg_ACEOF
8409a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
8410a67f45c3Smrgthen :
84119ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
84128bfe6addSmrgelse case e in #(
84138bfe6addSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
84148bfe6addSmrgesac
84159ff100acSmrgfi
84168bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
84178bfe6addSmrgesac
84189ff100acSmrgfi
8419a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8420a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
84219ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
84229ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
84239ff100acSmrgfi
84249ff100acSmrg
84259ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
84269ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
84279ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
84289ff100acSmrg	fi
84299ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8430a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8431a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8432a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8433a67f45c3Smrgthen :
8434a67f45c3Smrg  printf %s "(cached) " >&6
84358bfe6addSmrgelse case e in #(
84368bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
84379ff100acSmrg/* end confdefs.h.  */
84389ff100acSmrgint i;
84399ff100acSmrg_ACEOF
8440a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
8441a67f45c3Smrgthen :
84429ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
84438bfe6addSmrgelse case e in #(
84448bfe6addSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
84458bfe6addSmrgesac
84469ff100acSmrgfi
84478bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
84488bfe6addSmrgesac
84499ff100acSmrgfi
8450a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8451a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
84529ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
84539ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
84549ff100acSmrgfi
84559ff100acSmrg
84569ff100acSmrgfound="no"
84579ff100acSmrg
84589ff100acSmrg	if test $found = "no" ; then
84599ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
84609ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
84619ff100acSmrg		fi
84629ff100acSmrg
84639ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
84649ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
84659ff100acSmrg		fi
84669ff100acSmrg
84679ff100acSmrg		CFLAGS="$CFLAGS -Werror=array-bounds"
84689ff100acSmrg
8469a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8470a67f45c3Smrgprintf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
84719ff100acSmrg		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8472a67f45c3Smrg		if eval test \${$cacheid+y}
8473a67f45c3Smrgthen :
8474a67f45c3Smrg  printf %s "(cached) " >&6
84758bfe6addSmrgelse case e in #(
84768bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
84779ff100acSmrg/* end confdefs.h.  */
84789ff100acSmrgint i;
84799ff100acSmrgint
8480a67f45c3Smrgmain (void)
84819ff100acSmrg{
84829ff100acSmrg
84839ff100acSmrg  ;
84849ff100acSmrg  return 0;
84859ff100acSmrg}
84869ff100acSmrg_ACEOF
8487a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
8488a67f45c3Smrgthen :
84899ff100acSmrg  eval $cacheid=yes
84908bfe6addSmrgelse case e in #(
84918bfe6addSmrg  e) eval $cacheid=no ;;
84928bfe6addSmrgesac
84939ff100acSmrgfi
8494a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
84958bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
84968bfe6addSmrgesac
84979ff100acSmrgfi
84989ff100acSmrg
84999ff100acSmrg
85009ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
85019ff100acSmrg
85029ff100acSmrg		eval supported=\$$cacheid
8503a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8504a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
85059ff100acSmrg		if test "$supported" = "yes" ; then
85069ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
85079ff100acSmrg			found="yes"
85089ff100acSmrg		fi
85099ff100acSmrg	fi
85109ff100acSmrg
85119ff100acSmrg
85129ff100acSmrg
85139ff100acSmrg
85149ff100acSmrg
85159ff100acSmrg
85169ff100acSmrg
85179ff100acSmrg
85189ff100acSmrg
85199ff100acSmrg
85209ff100acSmrg
85219ff100acSmrg
85229ff100acSmrg
85239ff100acSmrg
85249ff100acSmrg
85259ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
85269ff100acSmrg
85279ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
85289ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8529a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8530a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8531a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8532a67f45c3Smrgthen :
8533a67f45c3Smrg  printf %s "(cached) " >&6
85348bfe6addSmrgelse case e in #(
85358bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85369ff100acSmrg/* end confdefs.h.  */
85379ff100acSmrgint i;
85389ff100acSmrg_ACEOF
8539a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
8540a67f45c3Smrgthen :
85419ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
85428bfe6addSmrgelse case e in #(
85438bfe6addSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
85448bfe6addSmrgesac
85459ff100acSmrgfi
85468bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
85478bfe6addSmrgesac
85489ff100acSmrgfi
8549a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8550a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
85519ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
85529ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
85539ff100acSmrgfi
85549ff100acSmrg
85559ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
85569ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
85579ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
85589ff100acSmrg	fi
85599ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8560a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8561a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8562a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8563a67f45c3Smrgthen :
8564a67f45c3Smrg  printf %s "(cached) " >&6
85658bfe6addSmrgelse case e in #(
85668bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85679ff100acSmrg/* end confdefs.h.  */
85689ff100acSmrgint i;
85699ff100acSmrg_ACEOF
8570a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
8571a67f45c3Smrgthen :
85729ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
85738bfe6addSmrgelse case e in #(
85748bfe6addSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
85758bfe6addSmrgesac
85769ff100acSmrgfi
85778bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
85788bfe6addSmrgesac
85799ff100acSmrgfi
8580a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8581a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
85829ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
85839ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
85849ff100acSmrgfi
85859ff100acSmrg
85869ff100acSmrgfound="no"
85879ff100acSmrg
85889ff100acSmrg	if test $found = "no" ; then
85899ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
85909ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
85919ff100acSmrg		fi
85929ff100acSmrg
85939ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
85949ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
85959ff100acSmrg		fi
85969ff100acSmrg
85979ff100acSmrg		CFLAGS="$CFLAGS -Werror=write-strings"
85989ff100acSmrg
8599a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8600a67f45c3Smrgprintf %s "checking if $CC supports -Werror=write-strings... " >&6; }
86019ff100acSmrg		cacheid=xorg_cv_cc_flag__Werror_write_strings
8602a67f45c3Smrg		if eval test \${$cacheid+y}
8603a67f45c3Smrgthen :
8604a67f45c3Smrg  printf %s "(cached) " >&6
86058bfe6addSmrgelse case e in #(
86068bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86079ff100acSmrg/* end confdefs.h.  */
86089ff100acSmrgint i;
86099ff100acSmrgint
8610a67f45c3Smrgmain (void)
86119ff100acSmrg{
86129ff100acSmrg
86139ff100acSmrg  ;
86149ff100acSmrg  return 0;
86159ff100acSmrg}
86169ff100acSmrg_ACEOF
8617a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
8618a67f45c3Smrgthen :
86199ff100acSmrg  eval $cacheid=yes
86208bfe6addSmrgelse case e in #(
86218bfe6addSmrg  e) eval $cacheid=no ;;
86228bfe6addSmrgesac
86239ff100acSmrgfi
8624a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
86258bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
86268bfe6addSmrgesac
86279ff100acSmrgfi
86289ff100acSmrg
86299ff100acSmrg
86309ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
86319ff100acSmrg
86329ff100acSmrg		eval supported=\$$cacheid
8633a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8634a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
86359ff100acSmrg		if test "$supported" = "yes" ; then
86369ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
86379ff100acSmrg			found="yes"
86389ff100acSmrg		fi
86399ff100acSmrg	fi
86409ff100acSmrg
86419ff100acSmrg
86429ff100acSmrg
86439ff100acSmrg
86449ff100acSmrg
86459ff100acSmrg
86469ff100acSmrg
86479ff100acSmrg
86489ff100acSmrg
86499ff100acSmrg
86509ff100acSmrg
86519ff100acSmrg
86529ff100acSmrg
86539ff100acSmrg
86549ff100acSmrg
86559ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
86569ff100acSmrg
86579ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
86589ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8659a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8660a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8661a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8662a67f45c3Smrgthen :
8663a67f45c3Smrg  printf %s "(cached) " >&6
86648bfe6addSmrgelse case e in #(
86658bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86669ff100acSmrg/* end confdefs.h.  */
86679ff100acSmrgint i;
86689ff100acSmrg_ACEOF
8669a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
8670a67f45c3Smrgthen :
86719ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
86728bfe6addSmrgelse case e in #(
86738bfe6addSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
86748bfe6addSmrgesac
86759ff100acSmrgfi
86768bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
86778bfe6addSmrgesac
86789ff100acSmrgfi
8679a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8680a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
86819ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
86829ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
86839ff100acSmrgfi
86849ff100acSmrg
86859ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
86869ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
86879ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
86889ff100acSmrg	fi
86899ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8690a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8691a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8692a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8693a67f45c3Smrgthen :
8694a67f45c3Smrg  printf %s "(cached) " >&6
86958bfe6addSmrgelse case e in #(
86968bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86979ff100acSmrg/* end confdefs.h.  */
86989ff100acSmrgint i;
86999ff100acSmrg_ACEOF
8700a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
8701a67f45c3Smrgthen :
87029ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
87038bfe6addSmrgelse case e in #(
87048bfe6addSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
87058bfe6addSmrgesac
87069ff100acSmrgfi
87078bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
87088bfe6addSmrgesac
87099ff100acSmrgfi
8710a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8711a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
87129ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
87139ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
87149ff100acSmrgfi
87159ff100acSmrg
87169ff100acSmrgfound="no"
87179ff100acSmrg
87189ff100acSmrg	if test $found = "no" ; then
87199ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
87209ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
87219ff100acSmrg		fi
87229ff100acSmrg
87239ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
87249ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
87259ff100acSmrg		fi
87269ff100acSmrg
87279ff100acSmrg		CFLAGS="$CFLAGS -Werror=address"
87289ff100acSmrg
8729a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8730a67f45c3Smrgprintf %s "checking if $CC supports -Werror=address... " >&6; }
87319ff100acSmrg		cacheid=xorg_cv_cc_flag__Werror_address
8732a67f45c3Smrg		if eval test \${$cacheid+y}
8733a67f45c3Smrgthen :
8734a67f45c3Smrg  printf %s "(cached) " >&6
87358bfe6addSmrgelse case e in #(
87368bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87379ff100acSmrg/* end confdefs.h.  */
87389ff100acSmrgint i;
87399ff100acSmrgint
8740a67f45c3Smrgmain (void)
87419ff100acSmrg{
87429ff100acSmrg
87439ff100acSmrg  ;
87449ff100acSmrg  return 0;
87459ff100acSmrg}
87469ff100acSmrg_ACEOF
8747a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
8748a67f45c3Smrgthen :
87499ff100acSmrg  eval $cacheid=yes
87508bfe6addSmrgelse case e in #(
87518bfe6addSmrg  e) eval $cacheid=no ;;
87528bfe6addSmrgesac
87539ff100acSmrgfi
8754a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
87558bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
87568bfe6addSmrgesac
87579ff100acSmrgfi
87589ff100acSmrg
87599ff100acSmrg
87609ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
87619ff100acSmrg
87629ff100acSmrg		eval supported=\$$cacheid
8763a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8764a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
87659ff100acSmrg		if test "$supported" = "yes" ; then
87669ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
87679ff100acSmrg			found="yes"
87689ff100acSmrg		fi
87699ff100acSmrg	fi
87709ff100acSmrg
87719ff100acSmrg
87729ff100acSmrg
87739ff100acSmrg
87749ff100acSmrg
87759ff100acSmrg
87769ff100acSmrg
87779ff100acSmrg
87789ff100acSmrg
87799ff100acSmrg
87809ff100acSmrg
87819ff100acSmrg
87829ff100acSmrg
87839ff100acSmrg
87849ff100acSmrg
87859ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
87869ff100acSmrg
87879ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
87889ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8789a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8790a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8791a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8792a67f45c3Smrgthen :
8793a67f45c3Smrg  printf %s "(cached) " >&6
87948bfe6addSmrgelse case e in #(
87958bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87969ff100acSmrg/* end confdefs.h.  */
87979ff100acSmrgint i;
87989ff100acSmrg_ACEOF
8799a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
8800a67f45c3Smrgthen :
88019ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
88028bfe6addSmrgelse case e in #(
88038bfe6addSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
88048bfe6addSmrgesac
88059ff100acSmrgfi
88068bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
88078bfe6addSmrgesac
88089ff100acSmrgfi
8809a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8810a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
88119ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
88129ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
88139ff100acSmrgfi
88149ff100acSmrg
88159ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
88169ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
88179ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
88189ff100acSmrg	fi
88199ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8820a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8821a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8822a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8823a67f45c3Smrgthen :
8824a67f45c3Smrg  printf %s "(cached) " >&6
88258bfe6addSmrgelse case e in #(
88268bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88279ff100acSmrg/* end confdefs.h.  */
88289ff100acSmrgint i;
88299ff100acSmrg_ACEOF
8830a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
8831a67f45c3Smrgthen :
88329ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
88338bfe6addSmrgelse case e in #(
88348bfe6addSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
88358bfe6addSmrgesac
88369ff100acSmrgfi
88378bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
88388bfe6addSmrgesac
88399ff100acSmrgfi
8840a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8841a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
88429ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
88439ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
88449ff100acSmrgfi
88459ff100acSmrg
88469ff100acSmrgfound="no"
88479ff100acSmrg
88489ff100acSmrg	if test $found = "no" ; then
88499ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
88509ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
88519ff100acSmrg		fi
88529ff100acSmrg
88539ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
88549ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
88559ff100acSmrg		fi
88569ff100acSmrg
88579ff100acSmrg		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
88589ff100acSmrg
8859a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8860a67f45c3Smrgprintf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
88619ff100acSmrg		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8862a67f45c3Smrg		if eval test \${$cacheid+y}
8863a67f45c3Smrgthen :
8864a67f45c3Smrg  printf %s "(cached) " >&6
88658bfe6addSmrgelse case e in #(
88668bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88679ff100acSmrg/* end confdefs.h.  */
88689ff100acSmrgint i;
88699ff100acSmrgint
8870a67f45c3Smrgmain (void)
88719ff100acSmrg{
88729ff100acSmrg
88739ff100acSmrg  ;
88749ff100acSmrg  return 0;
88759ff100acSmrg}
88769ff100acSmrg_ACEOF
8877a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
8878a67f45c3Smrgthen :
88799ff100acSmrg  eval $cacheid=yes
88808bfe6addSmrgelse case e in #(
88818bfe6addSmrg  e) eval $cacheid=no ;;
88828bfe6addSmrgesac
88839ff100acSmrgfi
8884a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
88858bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
88868bfe6addSmrgesac
88879ff100acSmrgfi
88889ff100acSmrg
88899ff100acSmrg
88909ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
88919ff100acSmrg
88929ff100acSmrg		eval supported=\$$cacheid
8893a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8894a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
88959ff100acSmrg		if test "$supported" = "yes" ; then
88969ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
88979ff100acSmrg			found="yes"
88989ff100acSmrg		fi
88999ff100acSmrg	fi
89009ff100acSmrg
89019ff100acSmrg	if test $found = "no" ; then
89029ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
89039ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
89049ff100acSmrg		fi
89059ff100acSmrg
89069ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
89079ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
89089ff100acSmrg		fi
89099ff100acSmrg
89109ff100acSmrg		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
89119ff100acSmrg
8912a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8913a67f45c3Smrgprintf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
89149ff100acSmrg		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8915a67f45c3Smrg		if eval test \${$cacheid+y}
8916a67f45c3Smrgthen :
8917a67f45c3Smrg  printf %s "(cached) " >&6
89188bfe6addSmrgelse case e in #(
89198bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89209ff100acSmrg/* end confdefs.h.  */
89219ff100acSmrgint i;
89229ff100acSmrgint
8923a67f45c3Smrgmain (void)
89249ff100acSmrg{
89259ff100acSmrg
89269ff100acSmrg  ;
89279ff100acSmrg  return 0;
89289ff100acSmrg}
89299ff100acSmrg_ACEOF
8930a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
8931a67f45c3Smrgthen :
89329ff100acSmrg  eval $cacheid=yes
89338bfe6addSmrgelse case e in #(
89348bfe6addSmrg  e) eval $cacheid=no ;;
89358bfe6addSmrgesac
89369ff100acSmrgfi
8937a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
89388bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
89398bfe6addSmrgesac
89409ff100acSmrgfi
89419ff100acSmrg
89429ff100acSmrg
89439ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
89449ff100acSmrg
89459ff100acSmrg		eval supported=\$$cacheid
8946a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8947a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
89489ff100acSmrg		if test "$supported" = "yes" ; then
89499ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
89509ff100acSmrg			found="yes"
89519ff100acSmrg		fi
89529ff100acSmrg	fi
89539ff100acSmrg
89549ff100acSmrg
89559ff100acSmrg
89569ff100acSmrg
89579ff100acSmrg
89589ff100acSmrg
89599ff100acSmrg
89609ff100acSmrg
89619ff100acSmrg
89629ff100acSmrg
89639ff100acSmrg
89649ff100acSmrg
89659ff100acSmrg
89669ff100acSmrg
89679ff100acSmrg
89689ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
89699ff100acSmrg
89709ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
89719ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8972a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8973a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8974a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8975a67f45c3Smrgthen :
8976a67f45c3Smrg  printf %s "(cached) " >&6
89778bfe6addSmrgelse case e in #(
89788bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89799ff100acSmrg/* end confdefs.h.  */
89809ff100acSmrgint i;
89819ff100acSmrg_ACEOF
8982a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
8983a67f45c3Smrgthen :
89849ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
89858bfe6addSmrgelse case e in #(
89868bfe6addSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
89878bfe6addSmrgesac
89889ff100acSmrgfi
89898bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
89908bfe6addSmrgesac
89919ff100acSmrgfi
8992a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8993a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
89949ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
89959ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
89969ff100acSmrgfi
89979ff100acSmrg
89989ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
89999ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
90009ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
90019ff100acSmrg	fi
90029ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9003a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9004a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9005a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9006a67f45c3Smrgthen :
9007a67f45c3Smrg  printf %s "(cached) " >&6
90088bfe6addSmrgelse case e in #(
90098bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90109ff100acSmrg/* end confdefs.h.  */
90119ff100acSmrgint i;
90129ff100acSmrg_ACEOF
9013a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
9014a67f45c3Smrgthen :
90159ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
90168bfe6addSmrgelse case e in #(
90178bfe6addSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
90188bfe6addSmrgesac
90199ff100acSmrgfi
90208bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
90218bfe6addSmrgesac
90229ff100acSmrgfi
9023a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9024a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
90259ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
90269ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
90279ff100acSmrgfi
90289ff100acSmrg
90299ff100acSmrgfound="no"
90309ff100acSmrg
90319ff100acSmrg	if test $found = "no" ; then
90329ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
90339ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
90349ff100acSmrg		fi
90359ff100acSmrg
90369ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
90379ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
90389ff100acSmrg		fi
90399ff100acSmrg
90409ff100acSmrg		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
90419ff100acSmrg
9042a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9043a67f45c3Smrgprintf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
90449ff100acSmrg		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9045a67f45c3Smrg		if eval test \${$cacheid+y}
9046a67f45c3Smrgthen :
9047a67f45c3Smrg  printf %s "(cached) " >&6
90488bfe6addSmrgelse case e in #(
90498bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90509ff100acSmrg/* end confdefs.h.  */
90519ff100acSmrgint i;
90529ff100acSmrgint
9053a67f45c3Smrgmain (void)
90549ff100acSmrg{
90559ff100acSmrg
90569ff100acSmrg  ;
90579ff100acSmrg  return 0;
90589ff100acSmrg}
90599ff100acSmrg_ACEOF
9060a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
9061a67f45c3Smrgthen :
90629ff100acSmrg  eval $cacheid=yes
90638bfe6addSmrgelse case e in #(
90648bfe6addSmrg  e) eval $cacheid=no ;;
90658bfe6addSmrgesac
90669ff100acSmrgfi
9067a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
90688bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
90698bfe6addSmrgesac
90709ff100acSmrgfi
90719ff100acSmrg
90729ff100acSmrg
90739ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
90749ff100acSmrg
90759ff100acSmrg		eval supported=\$$cacheid
9076a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9077a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
90789ff100acSmrg		if test "$supported" = "yes" ; then
90799ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
90809ff100acSmrg			found="yes"
90819ff100acSmrg		fi
90829ff100acSmrg	fi
90839ff100acSmrg
90849ff100acSmrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION
90859ff100acSmrgelse
9086a67f45c3Smrg{ printf "%s\n" "$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
9087a67f45c3Smrgprintf "%s\n" "$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;}
90889ff100acSmrg
90899ff100acSmrg
90909ff100acSmrg
90919ff100acSmrg
90929ff100acSmrg
90939ff100acSmrg
90949ff100acSmrg
90959ff100acSmrg
90969ff100acSmrg
90979ff100acSmrg
90989ff100acSmrg
90999ff100acSmrg
91009ff100acSmrg
91019ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
91029ff100acSmrg
91039ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
91049ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9105a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9106a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9107a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9108a67f45c3Smrgthen :
9109a67f45c3Smrg  printf %s "(cached) " >&6
91108bfe6addSmrgelse case e in #(
91118bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
91129ff100acSmrg/* end confdefs.h.  */
91139ff100acSmrgint i;
91149ff100acSmrg_ACEOF
9115a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
9116a67f45c3Smrgthen :
91179ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
91188bfe6addSmrgelse case e in #(
91198bfe6addSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
91208bfe6addSmrgesac
91219ff100acSmrgfi
91228bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
91238bfe6addSmrgesac
91249ff100acSmrgfi
9125a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9126a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
91279ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
91289ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
91299ff100acSmrgfi
91309ff100acSmrg
91319ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
91329ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
91339ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
91349ff100acSmrg	fi
91359ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9136a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9137a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9138a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9139a67f45c3Smrgthen :
9140a67f45c3Smrg  printf %s "(cached) " >&6
91418bfe6addSmrgelse case e in #(
91428bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
91439ff100acSmrg/* end confdefs.h.  */
91449ff100acSmrgint i;
91459ff100acSmrg_ACEOF
9146a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
9147a67f45c3Smrgthen :
91489ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
91498bfe6addSmrgelse case e in #(
91508bfe6addSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
91518bfe6addSmrgesac
91529ff100acSmrgfi
91538bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
91548bfe6addSmrgesac
91559ff100acSmrgfi
9156a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9157a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
91589ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
91599ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
91609ff100acSmrgfi
91619ff100acSmrg
91629ff100acSmrgfound="no"
91639ff100acSmrg
91649ff100acSmrg	if test $found = "no" ; then
91659ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
91669ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
91679ff100acSmrg		fi
91689ff100acSmrg
91699ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
91709ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
91719ff100acSmrg		fi
91729ff100acSmrg
91739ff100acSmrg		CFLAGS="$CFLAGS -Wimplicit"
91749ff100acSmrg
9175a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9176a67f45c3Smrgprintf %s "checking if $CC supports -Wimplicit... " >&6; }
91779ff100acSmrg		cacheid=xorg_cv_cc_flag__Wimplicit
9178a67f45c3Smrg		if eval test \${$cacheid+y}
9179a67f45c3Smrgthen :
9180a67f45c3Smrg  printf %s "(cached) " >&6
91818bfe6addSmrgelse case e in #(
91828bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
91839ff100acSmrg/* end confdefs.h.  */
91849ff100acSmrgint i;
91859ff100acSmrgint
9186a67f45c3Smrgmain (void)
91879ff100acSmrg{
91889ff100acSmrg
91899ff100acSmrg  ;
91909ff100acSmrg  return 0;
91919ff100acSmrg}
91929ff100acSmrg_ACEOF
9193a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
9194a67f45c3Smrgthen :
91959ff100acSmrg  eval $cacheid=yes
91968bfe6addSmrgelse case e in #(
91978bfe6addSmrg  e) eval $cacheid=no ;;
91988bfe6addSmrgesac
91999ff100acSmrgfi
9200a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
92018bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
92028bfe6addSmrgesac
92039ff100acSmrgfi
92049ff100acSmrg
92059ff100acSmrg
92069ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
92079ff100acSmrg
92089ff100acSmrg		eval supported=\$$cacheid
9209a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9210a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
92119ff100acSmrg		if test "$supported" = "yes" ; then
92129ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
92139ff100acSmrg			found="yes"
92149ff100acSmrg		fi
92159ff100acSmrg	fi
92169ff100acSmrg
92179ff100acSmrg
92189ff100acSmrg
92199ff100acSmrg
92209ff100acSmrg
92219ff100acSmrg
92229ff100acSmrg
92239ff100acSmrg
92249ff100acSmrg
92259ff100acSmrg
92269ff100acSmrg
92279ff100acSmrg
92289ff100acSmrg
92299ff100acSmrg
92309ff100acSmrg
92319ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
92329ff100acSmrg
92339ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
92349ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9235a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9236a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9237a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9238a67f45c3Smrgthen :
9239a67f45c3Smrg  printf %s "(cached) " >&6
92408bfe6addSmrgelse case e in #(
92418bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92429ff100acSmrg/* end confdefs.h.  */
92439ff100acSmrgint i;
92449ff100acSmrg_ACEOF
9245a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
9246a67f45c3Smrgthen :
92479ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
92488bfe6addSmrgelse case e in #(
92498bfe6addSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
92508bfe6addSmrgesac
92519ff100acSmrgfi
92528bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
92538bfe6addSmrgesac
92549ff100acSmrgfi
9255a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9256a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
92579ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
92589ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
92599ff100acSmrgfi
92609ff100acSmrg
92619ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
92629ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
92639ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
92649ff100acSmrg	fi
92659ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9266a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9267a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9268a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9269a67f45c3Smrgthen :
9270a67f45c3Smrg  printf %s "(cached) " >&6
92718bfe6addSmrgelse case e in #(
92728bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92739ff100acSmrg/* end confdefs.h.  */
92749ff100acSmrgint i;
92759ff100acSmrg_ACEOF
9276a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
9277a67f45c3Smrgthen :
92789ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
92798bfe6addSmrgelse case e in #(
92808bfe6addSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
92818bfe6addSmrgesac
92829ff100acSmrgfi
92838bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
92848bfe6addSmrgesac
92859ff100acSmrgfi
9286a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9287a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
92889ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
92899ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
92909ff100acSmrgfi
92919ff100acSmrg
92929ff100acSmrgfound="no"
92939ff100acSmrg
92949ff100acSmrg	if test $found = "no" ; then
92959ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
92969ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
92979ff100acSmrg		fi
92989ff100acSmrg
92999ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
93009ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
93019ff100acSmrg		fi
93029ff100acSmrg
93039ff100acSmrg		CFLAGS="$CFLAGS -Wnonnull"
93049ff100acSmrg
9305a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9306a67f45c3Smrgprintf %s "checking if $CC supports -Wnonnull... " >&6; }
93079ff100acSmrg		cacheid=xorg_cv_cc_flag__Wnonnull
9308a67f45c3Smrg		if eval test \${$cacheid+y}
9309a67f45c3Smrgthen :
9310a67f45c3Smrg  printf %s "(cached) " >&6
93118bfe6addSmrgelse case e in #(
93128bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93139ff100acSmrg/* end confdefs.h.  */
93149ff100acSmrgint i;
93159ff100acSmrgint
9316a67f45c3Smrgmain (void)
93179ff100acSmrg{
93189ff100acSmrg
93199ff100acSmrg  ;
93209ff100acSmrg  return 0;
93219ff100acSmrg}
93229ff100acSmrg_ACEOF
9323a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
9324a67f45c3Smrgthen :
93259ff100acSmrg  eval $cacheid=yes
93268bfe6addSmrgelse case e in #(
93278bfe6addSmrg  e) eval $cacheid=no ;;
93288bfe6addSmrgesac
93299ff100acSmrgfi
9330a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
93318bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
93328bfe6addSmrgesac
93339ff100acSmrgfi
93349ff100acSmrg
93359ff100acSmrg
93369ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
93379ff100acSmrg
93389ff100acSmrg		eval supported=\$$cacheid
9339a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9340a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
93419ff100acSmrg		if test "$supported" = "yes" ; then
93429ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
93439ff100acSmrg			found="yes"
93449ff100acSmrg		fi
93459ff100acSmrg	fi
93469ff100acSmrg
93479ff100acSmrg
93489ff100acSmrg
93499ff100acSmrg
93509ff100acSmrg
93519ff100acSmrg
93529ff100acSmrg
93539ff100acSmrg
93549ff100acSmrg
93559ff100acSmrg
93569ff100acSmrg
93579ff100acSmrg
93589ff100acSmrg
93599ff100acSmrg
93609ff100acSmrg
93619ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
93629ff100acSmrg
93639ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
93649ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9365a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9366a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9367a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9368a67f45c3Smrgthen :
9369a67f45c3Smrg  printf %s "(cached) " >&6
93708bfe6addSmrgelse case e in #(
93718bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93729ff100acSmrg/* end confdefs.h.  */
93739ff100acSmrgint i;
93749ff100acSmrg_ACEOF
9375a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
9376a67f45c3Smrgthen :
93779ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
93788bfe6addSmrgelse case e in #(
93798bfe6addSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
93808bfe6addSmrgesac
93819ff100acSmrgfi
93828bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
93838bfe6addSmrgesac
93849ff100acSmrgfi
9385a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9386a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
93879ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
93889ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
93899ff100acSmrgfi
93909ff100acSmrg
93919ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
93929ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
93939ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
93949ff100acSmrg	fi
93959ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9396a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9397a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9398a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9399a67f45c3Smrgthen :
9400a67f45c3Smrg  printf %s "(cached) " >&6
94018bfe6addSmrgelse case e in #(
94028bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94039ff100acSmrg/* end confdefs.h.  */
94049ff100acSmrgint i;
94059ff100acSmrg_ACEOF
9406a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
9407a67f45c3Smrgthen :
94089ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
94098bfe6addSmrgelse case e in #(
94108bfe6addSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
94118bfe6addSmrgesac
94129ff100acSmrgfi
94138bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
94148bfe6addSmrgesac
94159ff100acSmrgfi
9416a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9417a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
94189ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
94199ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
94209ff100acSmrgfi
94219ff100acSmrg
94229ff100acSmrgfound="no"
94239ff100acSmrg
94249ff100acSmrg	if test $found = "no" ; then
94259ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
94269ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
94279ff100acSmrg		fi
94289ff100acSmrg
94299ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
94309ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
94319ff100acSmrg		fi
94329ff100acSmrg
94339ff100acSmrg		CFLAGS="$CFLAGS -Winit-self"
94349ff100acSmrg
9435a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9436a67f45c3Smrgprintf %s "checking if $CC supports -Winit-self... " >&6; }
94379ff100acSmrg		cacheid=xorg_cv_cc_flag__Winit_self
9438a67f45c3Smrg		if eval test \${$cacheid+y}
9439a67f45c3Smrgthen :
9440a67f45c3Smrg  printf %s "(cached) " >&6
94418bfe6addSmrgelse case e in #(
94428bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94439ff100acSmrg/* end confdefs.h.  */
94449ff100acSmrgint i;
94459ff100acSmrgint
9446a67f45c3Smrgmain (void)
94479ff100acSmrg{
94489ff100acSmrg
94499ff100acSmrg  ;
94509ff100acSmrg  return 0;
94519ff100acSmrg}
94529ff100acSmrg_ACEOF
9453a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
9454a67f45c3Smrgthen :
94559ff100acSmrg  eval $cacheid=yes
94568bfe6addSmrgelse case e in #(
94578bfe6addSmrg  e) eval $cacheid=no ;;
94588bfe6addSmrgesac
94599ff100acSmrgfi
9460a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
94618bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
94628bfe6addSmrgesac
94639ff100acSmrgfi
94649ff100acSmrg
94659ff100acSmrg
94669ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
94679ff100acSmrg
94689ff100acSmrg		eval supported=\$$cacheid
9469a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9470a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
94719ff100acSmrg		if test "$supported" = "yes" ; then
94729ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
94739ff100acSmrg			found="yes"
94749ff100acSmrg		fi
94759ff100acSmrg	fi
94769ff100acSmrg
94779ff100acSmrg
94789ff100acSmrg
94799ff100acSmrg
94809ff100acSmrg
94819ff100acSmrg
94829ff100acSmrg
94839ff100acSmrg
94849ff100acSmrg
94859ff100acSmrg
94869ff100acSmrg
94879ff100acSmrg
94889ff100acSmrg
94899ff100acSmrg
94909ff100acSmrg
94919ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
94929ff100acSmrg
94939ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
94949ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9495a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9496a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9497a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9498a67f45c3Smrgthen :
9499a67f45c3Smrg  printf %s "(cached) " >&6
95008bfe6addSmrgelse case e in #(
95018bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
95029ff100acSmrg/* end confdefs.h.  */
95039ff100acSmrgint i;
95049ff100acSmrg_ACEOF
9505a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
9506a67f45c3Smrgthen :
95079ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
95088bfe6addSmrgelse case e in #(
95098bfe6addSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
95108bfe6addSmrgesac
95119ff100acSmrgfi
95128bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
95138bfe6addSmrgesac
95149ff100acSmrgfi
9515a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9516a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
95179ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
95189ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
95199ff100acSmrgfi
95209ff100acSmrg
95219ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
95229ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
95239ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
95249ff100acSmrg	fi
95259ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9526a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9527a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9528a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9529a67f45c3Smrgthen :
9530a67f45c3Smrg  printf %s "(cached) " >&6
95318bfe6addSmrgelse case e in #(
95328bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
95339ff100acSmrg/* end confdefs.h.  */
95349ff100acSmrgint i;
95359ff100acSmrg_ACEOF
9536a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
9537a67f45c3Smrgthen :
95389ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
95398bfe6addSmrgelse case e in #(
95408bfe6addSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
95418bfe6addSmrgesac
95429ff100acSmrgfi
95438bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
95448bfe6addSmrgesac
95459ff100acSmrgfi
9546a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9547a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
95489ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
95499ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
95509ff100acSmrgfi
95519ff100acSmrg
95529ff100acSmrgfound="no"
95539ff100acSmrg
95549ff100acSmrg	if test $found = "no" ; then
95559ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
95569ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
95579ff100acSmrg		fi
95589ff100acSmrg
95599ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
95609ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
95619ff100acSmrg		fi
95629ff100acSmrg
95639ff100acSmrg		CFLAGS="$CFLAGS -Wmain"
95649ff100acSmrg
9565a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9566a67f45c3Smrgprintf %s "checking if $CC supports -Wmain... " >&6; }
95679ff100acSmrg		cacheid=xorg_cv_cc_flag__Wmain
9568a67f45c3Smrg		if eval test \${$cacheid+y}
9569a67f45c3Smrgthen :
9570a67f45c3Smrg  printf %s "(cached) " >&6
95718bfe6addSmrgelse case e in #(
95728bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
95739ff100acSmrg/* end confdefs.h.  */
95749ff100acSmrgint i;
95759ff100acSmrgint
9576a67f45c3Smrgmain (void)
95779ff100acSmrg{
95789ff100acSmrg
95799ff100acSmrg  ;
95809ff100acSmrg  return 0;
95819ff100acSmrg}
95829ff100acSmrg_ACEOF
9583a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
9584a67f45c3Smrgthen :
95859ff100acSmrg  eval $cacheid=yes
95868bfe6addSmrgelse case e in #(
95878bfe6addSmrg  e) eval $cacheid=no ;;
95888bfe6addSmrgesac
95899ff100acSmrgfi
9590a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
95918bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
95928bfe6addSmrgesac
95939ff100acSmrgfi
95949ff100acSmrg
95959ff100acSmrg
95969ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
95979ff100acSmrg
95989ff100acSmrg		eval supported=\$$cacheid
9599a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9600a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
96019ff100acSmrg		if test "$supported" = "yes" ; then
96029ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
96039ff100acSmrg			found="yes"
96049ff100acSmrg		fi
96059ff100acSmrg	fi
96069ff100acSmrg
96079ff100acSmrg
96089ff100acSmrg
96099ff100acSmrg
96109ff100acSmrg
96119ff100acSmrg
96129ff100acSmrg
96139ff100acSmrg
96149ff100acSmrg
96159ff100acSmrg
96169ff100acSmrg
96179ff100acSmrg
96189ff100acSmrg
96199ff100acSmrg
96209ff100acSmrg
96219ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
96229ff100acSmrg
96239ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
96249ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9625a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9626a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9627a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9628a67f45c3Smrgthen :
9629a67f45c3Smrg  printf %s "(cached) " >&6
96308bfe6addSmrgelse case e in #(
96318bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
96329ff100acSmrg/* end confdefs.h.  */
96339ff100acSmrgint i;
96349ff100acSmrg_ACEOF
9635a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
9636a67f45c3Smrgthen :
96379ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
96388bfe6addSmrgelse case e in #(
96398bfe6addSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
96408bfe6addSmrgesac
96419ff100acSmrgfi
96428bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
96438bfe6addSmrgesac
96449ff100acSmrgfi
9645a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9646a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
96479ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
96489ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
96499ff100acSmrgfi
96509ff100acSmrg
96519ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
96529ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
96539ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
96549ff100acSmrg	fi
96559ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9656a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9657a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9658a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9659a67f45c3Smrgthen :
9660a67f45c3Smrg  printf %s "(cached) " >&6
96618bfe6addSmrgelse case e in #(
96628bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
96639ff100acSmrg/* end confdefs.h.  */
96649ff100acSmrgint i;
96659ff100acSmrg_ACEOF
9666a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
9667a67f45c3Smrgthen :
96689ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
96698bfe6addSmrgelse case e in #(
96708bfe6addSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
96718bfe6addSmrgesac
96729ff100acSmrgfi
96738bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
96748bfe6addSmrgesac
96759ff100acSmrgfi
9676a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9677a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
96789ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
96799ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
96809ff100acSmrgfi
96819ff100acSmrg
96829ff100acSmrgfound="no"
96839ff100acSmrg
96849ff100acSmrg	if test $found = "no" ; then
96859ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
96869ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
96879ff100acSmrg		fi
96889ff100acSmrg
96899ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
96909ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
96919ff100acSmrg		fi
96929ff100acSmrg
96939ff100acSmrg		CFLAGS="$CFLAGS -Wmissing-braces"
96949ff100acSmrg
9695a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9696a67f45c3Smrgprintf %s "checking if $CC supports -Wmissing-braces... " >&6; }
96979ff100acSmrg		cacheid=xorg_cv_cc_flag__Wmissing_braces
9698a67f45c3Smrg		if eval test \${$cacheid+y}
9699a67f45c3Smrgthen :
9700a67f45c3Smrg  printf %s "(cached) " >&6
97018bfe6addSmrgelse case e in #(
97028bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
97039ff100acSmrg/* end confdefs.h.  */
97049ff100acSmrgint i;
97059ff100acSmrgint
9706a67f45c3Smrgmain (void)
97079ff100acSmrg{
97089ff100acSmrg
97099ff100acSmrg  ;
97109ff100acSmrg  return 0;
97119ff100acSmrg}
97129ff100acSmrg_ACEOF
9713a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
9714a67f45c3Smrgthen :
97159ff100acSmrg  eval $cacheid=yes
97168bfe6addSmrgelse case e in #(
97178bfe6addSmrg  e) eval $cacheid=no ;;
97188bfe6addSmrgesac
97199ff100acSmrgfi
9720a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
97218bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
97228bfe6addSmrgesac
97239ff100acSmrgfi
97249ff100acSmrg
97259ff100acSmrg
97269ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
97279ff100acSmrg
97289ff100acSmrg		eval supported=\$$cacheid
9729a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9730a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
97319ff100acSmrg		if test "$supported" = "yes" ; then
97329ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
97339ff100acSmrg			found="yes"
97349ff100acSmrg		fi
97359ff100acSmrg	fi
97369ff100acSmrg
97379ff100acSmrg
97389ff100acSmrg
97399ff100acSmrg
97409ff100acSmrg
97419ff100acSmrg
97429ff100acSmrg
97439ff100acSmrg
97449ff100acSmrg
97459ff100acSmrg
97469ff100acSmrg
97479ff100acSmrg
97489ff100acSmrg
97499ff100acSmrg
97509ff100acSmrg
97519ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
97529ff100acSmrg
97539ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
97549ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9755a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9756a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9757a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9758a67f45c3Smrgthen :
9759a67f45c3Smrg  printf %s "(cached) " >&6
97608bfe6addSmrgelse case e in #(
97618bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
97629ff100acSmrg/* end confdefs.h.  */
97639ff100acSmrgint i;
97649ff100acSmrg_ACEOF
9765a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
9766a67f45c3Smrgthen :
97679ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
97688bfe6addSmrgelse case e in #(
97698bfe6addSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
97708bfe6addSmrgesac
97719ff100acSmrgfi
97728bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
97738bfe6addSmrgesac
97749ff100acSmrgfi
9775a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9776a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
97779ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
97789ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
97799ff100acSmrgfi
97809ff100acSmrg
97819ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
97829ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
97839ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
97849ff100acSmrg	fi
97859ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9786a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9787a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9788a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9789a67f45c3Smrgthen :
9790a67f45c3Smrg  printf %s "(cached) " >&6
97918bfe6addSmrgelse case e in #(
97928bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
97939ff100acSmrg/* end confdefs.h.  */
97949ff100acSmrgint i;
97959ff100acSmrg_ACEOF
9796a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
9797a67f45c3Smrgthen :
97989ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
97998bfe6addSmrgelse case e in #(
98008bfe6addSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
98018bfe6addSmrgesac
98029ff100acSmrgfi
98038bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
98048bfe6addSmrgesac
98059ff100acSmrgfi
9806a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9807a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
98089ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
98099ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
98109ff100acSmrgfi
98119ff100acSmrg
98129ff100acSmrgfound="no"
98139ff100acSmrg
98149ff100acSmrg	if test $found = "no" ; then
98159ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
98169ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
98179ff100acSmrg		fi
98189ff100acSmrg
98199ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
98209ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
98219ff100acSmrg		fi
98229ff100acSmrg
98239ff100acSmrg		CFLAGS="$CFLAGS -Wsequence-point"
98249ff100acSmrg
9825a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9826a67f45c3Smrgprintf %s "checking if $CC supports -Wsequence-point... " >&6; }
98279ff100acSmrg		cacheid=xorg_cv_cc_flag__Wsequence_point
9828a67f45c3Smrg		if eval test \${$cacheid+y}
9829a67f45c3Smrgthen :
9830a67f45c3Smrg  printf %s "(cached) " >&6
98318bfe6addSmrgelse case e in #(
98328bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
98339ff100acSmrg/* end confdefs.h.  */
98349ff100acSmrgint i;
98359ff100acSmrgint
9836a67f45c3Smrgmain (void)
98379ff100acSmrg{
98389ff100acSmrg
98399ff100acSmrg  ;
98409ff100acSmrg  return 0;
98419ff100acSmrg}
98429ff100acSmrg_ACEOF
9843a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
9844a67f45c3Smrgthen :
98459ff100acSmrg  eval $cacheid=yes
98468bfe6addSmrgelse case e in #(
98478bfe6addSmrg  e) eval $cacheid=no ;;
98488bfe6addSmrgesac
98499ff100acSmrgfi
9850a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
98518bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
98528bfe6addSmrgesac
98539ff100acSmrgfi
98549ff100acSmrg
98559ff100acSmrg
98569ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
98579ff100acSmrg
98589ff100acSmrg		eval supported=\$$cacheid
9859a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9860a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
98619ff100acSmrg		if test "$supported" = "yes" ; then
98629ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
98639ff100acSmrg			found="yes"
98649ff100acSmrg		fi
98659ff100acSmrg	fi
98669ff100acSmrg
98679ff100acSmrg
98689ff100acSmrg
98699ff100acSmrg
98709ff100acSmrg
98719ff100acSmrg
98729ff100acSmrg
98739ff100acSmrg
98749ff100acSmrg
98759ff100acSmrg
98769ff100acSmrg
98779ff100acSmrg
98789ff100acSmrg
98799ff100acSmrg
98809ff100acSmrg
98819ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
98829ff100acSmrg
98839ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
98849ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9885a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9886a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9887a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9888a67f45c3Smrgthen :
9889a67f45c3Smrg  printf %s "(cached) " >&6
98908bfe6addSmrgelse case e in #(
98918bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
98929ff100acSmrg/* end confdefs.h.  */
98939ff100acSmrgint i;
98949ff100acSmrg_ACEOF
9895a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
9896a67f45c3Smrgthen :
98979ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
98988bfe6addSmrgelse case e in #(
98998bfe6addSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
99008bfe6addSmrgesac
99019ff100acSmrgfi
99028bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
99038bfe6addSmrgesac
99049ff100acSmrgfi
9905a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9906a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
99079ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
99089ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
99099ff100acSmrgfi
99109ff100acSmrg
99119ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
99129ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
99139ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
99149ff100acSmrg	fi
99159ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9916a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9917a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9918a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9919a67f45c3Smrgthen :
9920a67f45c3Smrg  printf %s "(cached) " >&6
99218bfe6addSmrgelse case e in #(
99228bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
99239ff100acSmrg/* end confdefs.h.  */
99249ff100acSmrgint i;
99259ff100acSmrg_ACEOF
9926a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
9927a67f45c3Smrgthen :
99289ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
99298bfe6addSmrgelse case e in #(
99308bfe6addSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
99318bfe6addSmrgesac
99329ff100acSmrgfi
99338bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
99348bfe6addSmrgesac
99359ff100acSmrgfi
9936a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9937a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
99389ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
99399ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
99409ff100acSmrgfi
99419ff100acSmrg
99429ff100acSmrgfound="no"
99439ff100acSmrg
99449ff100acSmrg	if test $found = "no" ; then
99459ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
99469ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
99479ff100acSmrg		fi
99489ff100acSmrg
99499ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
99509ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
99519ff100acSmrg		fi
99529ff100acSmrg
99539ff100acSmrg		CFLAGS="$CFLAGS -Wreturn-type"
99549ff100acSmrg
9955a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9956a67f45c3Smrgprintf %s "checking if $CC supports -Wreturn-type... " >&6; }
99579ff100acSmrg		cacheid=xorg_cv_cc_flag__Wreturn_type
9958a67f45c3Smrg		if eval test \${$cacheid+y}
9959a67f45c3Smrgthen :
9960a67f45c3Smrg  printf %s "(cached) " >&6
99618bfe6addSmrgelse case e in #(
99628bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
99639ff100acSmrg/* end confdefs.h.  */
99649ff100acSmrgint i;
99659ff100acSmrgint
9966a67f45c3Smrgmain (void)
99679ff100acSmrg{
99689ff100acSmrg
99699ff100acSmrg  ;
99709ff100acSmrg  return 0;
99719ff100acSmrg}
99729ff100acSmrg_ACEOF
9973a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
9974a67f45c3Smrgthen :
99759ff100acSmrg  eval $cacheid=yes
99768bfe6addSmrgelse case e in #(
99778bfe6addSmrg  e) eval $cacheid=no ;;
99788bfe6addSmrgesac
99799ff100acSmrgfi
9980a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
99818bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
99828bfe6addSmrgesac
99839ff100acSmrgfi
99849ff100acSmrg
99859ff100acSmrg
99869ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
99879ff100acSmrg
99889ff100acSmrg		eval supported=\$$cacheid
9989a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9990a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
99919ff100acSmrg		if test "$supported" = "yes" ; then
99929ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
99939ff100acSmrg			found="yes"
99949ff100acSmrg		fi
99959ff100acSmrg	fi
99969ff100acSmrg
99979ff100acSmrg
99989ff100acSmrg
99999ff100acSmrg
100009ff100acSmrg
100019ff100acSmrg
100029ff100acSmrg
100039ff100acSmrg
100049ff100acSmrg
100059ff100acSmrg
100069ff100acSmrg
100079ff100acSmrg
100089ff100acSmrg
100099ff100acSmrg
100109ff100acSmrg
100119ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
100129ff100acSmrg
100139ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
100149ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10015a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10016a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10017a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10018a67f45c3Smrgthen :
10019a67f45c3Smrg  printf %s "(cached) " >&6
100208bfe6addSmrgelse case e in #(
100218bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
100229ff100acSmrg/* end confdefs.h.  */
100239ff100acSmrgint i;
100249ff100acSmrg_ACEOF
10025a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
10026a67f45c3Smrgthen :
100279ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
100288bfe6addSmrgelse case e in #(
100298bfe6addSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
100308bfe6addSmrgesac
100319ff100acSmrgfi
100328bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
100338bfe6addSmrgesac
100349ff100acSmrgfi
10035a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10036a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
100379ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
100389ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
100399ff100acSmrgfi
100409ff100acSmrg
100419ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
100429ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
100439ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
100449ff100acSmrg	fi
100459ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10046a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10047a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10048a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10049a67f45c3Smrgthen :
10050a67f45c3Smrg  printf %s "(cached) " >&6
100518bfe6addSmrgelse case e in #(
100528bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
100539ff100acSmrg/* end confdefs.h.  */
100549ff100acSmrgint i;
100559ff100acSmrg_ACEOF
10056a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
10057a67f45c3Smrgthen :
100589ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
100598bfe6addSmrgelse case e in #(
100608bfe6addSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
100618bfe6addSmrgesac
100629ff100acSmrgfi
100638bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
100648bfe6addSmrgesac
100659ff100acSmrgfi
10066a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10067a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
100689ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
100699ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
100709ff100acSmrgfi
100719ff100acSmrg
100729ff100acSmrgfound="no"
100739ff100acSmrg
100749ff100acSmrg	if test $found = "no" ; then
100759ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
100769ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
100779ff100acSmrg		fi
100789ff100acSmrg
100799ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
100809ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
100819ff100acSmrg		fi
100829ff100acSmrg
100839ff100acSmrg		CFLAGS="$CFLAGS -Wtrigraphs"
100849ff100acSmrg
10085a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10086a67f45c3Smrgprintf %s "checking if $CC supports -Wtrigraphs... " >&6; }
100879ff100acSmrg		cacheid=xorg_cv_cc_flag__Wtrigraphs
10088a67f45c3Smrg		if eval test \${$cacheid+y}
10089a67f45c3Smrgthen :
10090a67f45c3Smrg  printf %s "(cached) " >&6
100918bfe6addSmrgelse case e in #(
100928bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
100939ff100acSmrg/* end confdefs.h.  */
100949ff100acSmrgint i;
100959ff100acSmrgint
10096a67f45c3Smrgmain (void)
100979ff100acSmrg{
100989ff100acSmrg
100999ff100acSmrg  ;
101009ff100acSmrg  return 0;
101019ff100acSmrg}
101029ff100acSmrg_ACEOF
10103a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
10104a67f45c3Smrgthen :
101059ff100acSmrg  eval $cacheid=yes
101068bfe6addSmrgelse case e in #(
101078bfe6addSmrg  e) eval $cacheid=no ;;
101088bfe6addSmrgesac
101099ff100acSmrgfi
10110a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
101118bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
101128bfe6addSmrgesac
101139ff100acSmrgfi
101149ff100acSmrg
101159ff100acSmrg
101169ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
101179ff100acSmrg
101189ff100acSmrg		eval supported=\$$cacheid
10119a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10120a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
101219ff100acSmrg		if test "$supported" = "yes" ; then
101229ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
101239ff100acSmrg			found="yes"
101249ff100acSmrg		fi
101259ff100acSmrg	fi
101269ff100acSmrg
101279ff100acSmrg
101289ff100acSmrg
101299ff100acSmrg
101309ff100acSmrg
101319ff100acSmrg
101329ff100acSmrg
101339ff100acSmrg
101349ff100acSmrg
101359ff100acSmrg
101369ff100acSmrg
101379ff100acSmrg
101389ff100acSmrg
101399ff100acSmrg
101409ff100acSmrg
101419ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
101429ff100acSmrg
101439ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
101449ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10145a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10146a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10147a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10148a67f45c3Smrgthen :
10149a67f45c3Smrg  printf %s "(cached) " >&6
101508bfe6addSmrgelse case e in #(
101518bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
101529ff100acSmrg/* end confdefs.h.  */
101539ff100acSmrgint i;
101549ff100acSmrg_ACEOF
10155a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
10156a67f45c3Smrgthen :
101579ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
101588bfe6addSmrgelse case e in #(
101598bfe6addSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
101608bfe6addSmrgesac
101619ff100acSmrgfi
101628bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
101638bfe6addSmrgesac
101649ff100acSmrgfi
10165a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10166a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
101679ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
101689ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
101699ff100acSmrgfi
101709ff100acSmrg
101719ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
101729ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
101739ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
101749ff100acSmrg	fi
101759ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10176a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10177a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10178a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10179a67f45c3Smrgthen :
10180a67f45c3Smrg  printf %s "(cached) " >&6
101818bfe6addSmrgelse case e in #(
101828bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
101839ff100acSmrg/* end confdefs.h.  */
101849ff100acSmrgint i;
101859ff100acSmrg_ACEOF
10186a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
10187a67f45c3Smrgthen :
101889ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
101898bfe6addSmrgelse case e in #(
101908bfe6addSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
101918bfe6addSmrgesac
101929ff100acSmrgfi
101938bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
101948bfe6addSmrgesac
101959ff100acSmrgfi
10196a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10197a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
101989ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
101999ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
102009ff100acSmrgfi
102019ff100acSmrg
102029ff100acSmrgfound="no"
102039ff100acSmrg
102049ff100acSmrg	if test $found = "no" ; then
102059ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
102069ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
102079ff100acSmrg		fi
102089ff100acSmrg
102099ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
102109ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
102119ff100acSmrg		fi
102129ff100acSmrg
102139ff100acSmrg		CFLAGS="$CFLAGS -Warray-bounds"
102149ff100acSmrg
10215a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10216a67f45c3Smrgprintf %s "checking if $CC supports -Warray-bounds... " >&6; }
102179ff100acSmrg		cacheid=xorg_cv_cc_flag__Warray_bounds
10218a67f45c3Smrg		if eval test \${$cacheid+y}
10219a67f45c3Smrgthen :
10220a67f45c3Smrg  printf %s "(cached) " >&6
102218bfe6addSmrgelse case e in #(
102228bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
102239ff100acSmrg/* end confdefs.h.  */
102249ff100acSmrgint i;
102259ff100acSmrgint
10226a67f45c3Smrgmain (void)
102279ff100acSmrg{
102289ff100acSmrg
102299ff100acSmrg  ;
102309ff100acSmrg  return 0;
102319ff100acSmrg}
102329ff100acSmrg_ACEOF
10233a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
10234a67f45c3Smrgthen :
102359ff100acSmrg  eval $cacheid=yes
102368bfe6addSmrgelse case e in #(
102378bfe6addSmrg  e) eval $cacheid=no ;;
102388bfe6addSmrgesac
102399ff100acSmrgfi
10240a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
102418bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
102428bfe6addSmrgesac
102439ff100acSmrgfi
102449ff100acSmrg
102459ff100acSmrg
102469ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
102479ff100acSmrg
102489ff100acSmrg		eval supported=\$$cacheid
10249a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10250a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
102519ff100acSmrg		if test "$supported" = "yes" ; then
102529ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
102539ff100acSmrg			found="yes"
102549ff100acSmrg		fi
102559ff100acSmrg	fi
102569ff100acSmrg
102579ff100acSmrg
102589ff100acSmrg
102599ff100acSmrg
102609ff100acSmrg
102619ff100acSmrg
102629ff100acSmrg
102639ff100acSmrg
102649ff100acSmrg
102659ff100acSmrg
102669ff100acSmrg
102679ff100acSmrg
102689ff100acSmrg
102699ff100acSmrg
102709ff100acSmrg
102719ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
102729ff100acSmrg
102739ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
102749ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10275a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10276a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10277a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10278a67f45c3Smrgthen :
10279a67f45c3Smrg  printf %s "(cached) " >&6
102808bfe6addSmrgelse case e in #(
102818bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
102829ff100acSmrg/* end confdefs.h.  */
102839ff100acSmrgint i;
102849ff100acSmrg_ACEOF
10285a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
10286a67f45c3Smrgthen :
102879ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
102888bfe6addSmrgelse case e in #(
102898bfe6addSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
102908bfe6addSmrgesac
102919ff100acSmrgfi
102928bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
102938bfe6addSmrgesac
102949ff100acSmrgfi
10295a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10296a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
102979ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
102989ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
102999ff100acSmrgfi
103009ff100acSmrg
103019ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
103029ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
103039ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
103049ff100acSmrg	fi
103059ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10306a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10307a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10308a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10309a67f45c3Smrgthen :
10310a67f45c3Smrg  printf %s "(cached) " >&6
103118bfe6addSmrgelse case e in #(
103128bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
103139ff100acSmrg/* end confdefs.h.  */
103149ff100acSmrgint i;
103159ff100acSmrg_ACEOF
10316a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
10317a67f45c3Smrgthen :
103189ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
103198bfe6addSmrgelse case e in #(
103208bfe6addSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
103218bfe6addSmrgesac
103229ff100acSmrgfi
103238bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
103248bfe6addSmrgesac
103259ff100acSmrgfi
10326a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10327a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
103289ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
103299ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
103309ff100acSmrgfi
103319ff100acSmrg
103329ff100acSmrgfound="no"
103339ff100acSmrg
103349ff100acSmrg	if test $found = "no" ; then
103359ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
103369ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
103379ff100acSmrg		fi
103389ff100acSmrg
103399ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
103409ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
103419ff100acSmrg		fi
103429ff100acSmrg
103439ff100acSmrg		CFLAGS="$CFLAGS -Wwrite-strings"
103449ff100acSmrg
10345a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10346a67f45c3Smrgprintf %s "checking if $CC supports -Wwrite-strings... " >&6; }
103479ff100acSmrg		cacheid=xorg_cv_cc_flag__Wwrite_strings
10348a67f45c3Smrg		if eval test \${$cacheid+y}
10349a67f45c3Smrgthen :
10350a67f45c3Smrg  printf %s "(cached) " >&6
103518bfe6addSmrgelse case e in #(
103528bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
103539ff100acSmrg/* end confdefs.h.  */
103549ff100acSmrgint i;
103559ff100acSmrgint
10356a67f45c3Smrgmain (void)
103579ff100acSmrg{
103589ff100acSmrg
103599ff100acSmrg  ;
103609ff100acSmrg  return 0;
103619ff100acSmrg}
103629ff100acSmrg_ACEOF
10363a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
10364a67f45c3Smrgthen :
103659ff100acSmrg  eval $cacheid=yes
103668bfe6addSmrgelse case e in #(
103678bfe6addSmrg  e) eval $cacheid=no ;;
103688bfe6addSmrgesac
103699ff100acSmrgfi
10370a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
103718bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
103728bfe6addSmrgesac
103739ff100acSmrgfi
103749ff100acSmrg
103759ff100acSmrg
103769ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
103779ff100acSmrg
103789ff100acSmrg		eval supported=\$$cacheid
10379a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10380a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
103819ff100acSmrg		if test "$supported" = "yes" ; then
103829ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
103839ff100acSmrg			found="yes"
103849ff100acSmrg		fi
103859ff100acSmrg	fi
103869ff100acSmrg
103879ff100acSmrg
103889ff100acSmrg
103899ff100acSmrg
103909ff100acSmrg
103919ff100acSmrg
103929ff100acSmrg
103939ff100acSmrg
103949ff100acSmrg
103959ff100acSmrg
103969ff100acSmrg
103979ff100acSmrg
103989ff100acSmrg
103999ff100acSmrg
104009ff100acSmrg
104019ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
104029ff100acSmrg
104039ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
104049ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10405a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10406a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10407a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10408a67f45c3Smrgthen :
10409a67f45c3Smrg  printf %s "(cached) " >&6
104108bfe6addSmrgelse case e in #(
104118bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
104129ff100acSmrg/* end confdefs.h.  */
104139ff100acSmrgint i;
104149ff100acSmrg_ACEOF
10415a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
10416a67f45c3Smrgthen :
104179ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
104188bfe6addSmrgelse case e in #(
104198bfe6addSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
104208bfe6addSmrgesac
104219ff100acSmrgfi
104228bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
104238bfe6addSmrgesac
104249ff100acSmrgfi
10425a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10426a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
104279ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
104289ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
104299ff100acSmrgfi
104309ff100acSmrg
104319ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
104329ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
104339ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
104349ff100acSmrg	fi
104359ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10436a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10437a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10438a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10439a67f45c3Smrgthen :
10440a67f45c3Smrg  printf %s "(cached) " >&6
104418bfe6addSmrgelse case e in #(
104428bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
104439ff100acSmrg/* end confdefs.h.  */
104449ff100acSmrgint i;
104459ff100acSmrg_ACEOF
10446a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
10447a67f45c3Smrgthen :
104489ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
104498bfe6addSmrgelse case e in #(
104508bfe6addSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
104518bfe6addSmrgesac
104529ff100acSmrgfi
104538bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
104548bfe6addSmrgesac
104559ff100acSmrgfi
10456a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10457a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
104589ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
104599ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
104609ff100acSmrgfi
104619ff100acSmrg
104629ff100acSmrgfound="no"
104639ff100acSmrg
104649ff100acSmrg	if test $found = "no" ; then
104659ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
104669ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
104679ff100acSmrg		fi
104689ff100acSmrg
104699ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
104709ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
104719ff100acSmrg		fi
104729ff100acSmrg
104739ff100acSmrg		CFLAGS="$CFLAGS -Waddress"
104749ff100acSmrg
10475a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10476a67f45c3Smrgprintf %s "checking if $CC supports -Waddress... " >&6; }
104779ff100acSmrg		cacheid=xorg_cv_cc_flag__Waddress
10478a67f45c3Smrg		if eval test \${$cacheid+y}
10479a67f45c3Smrgthen :
10480a67f45c3Smrg  printf %s "(cached) " >&6
104818bfe6addSmrgelse case e in #(
104828bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
104839ff100acSmrg/* end confdefs.h.  */
104849ff100acSmrgint i;
104859ff100acSmrgint
10486a67f45c3Smrgmain (void)
104879ff100acSmrg{
104889ff100acSmrg
104899ff100acSmrg  ;
104909ff100acSmrg  return 0;
104919ff100acSmrg}
104929ff100acSmrg_ACEOF
10493a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
10494a67f45c3Smrgthen :
104959ff100acSmrg  eval $cacheid=yes
104968bfe6addSmrgelse case e in #(
104978bfe6addSmrg  e) eval $cacheid=no ;;
104988bfe6addSmrgesac
104999ff100acSmrgfi
10500a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
105018bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
105028bfe6addSmrgesac
105039ff100acSmrgfi
105049ff100acSmrg
105059ff100acSmrg
105069ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
105079ff100acSmrg
105089ff100acSmrg		eval supported=\$$cacheid
10509a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10510a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
105119ff100acSmrg		if test "$supported" = "yes" ; then
105129ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
105139ff100acSmrg			found="yes"
105149ff100acSmrg		fi
105159ff100acSmrg	fi
105169ff100acSmrg
105179ff100acSmrg
105189ff100acSmrg
105199ff100acSmrg
105209ff100acSmrg
105219ff100acSmrg
105229ff100acSmrg
105239ff100acSmrg
105249ff100acSmrg
105259ff100acSmrg
105269ff100acSmrg
105279ff100acSmrg
105289ff100acSmrg
105299ff100acSmrg
105309ff100acSmrg
105319ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
105329ff100acSmrg
105339ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
105349ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10535a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10536a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10537a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10538a67f45c3Smrgthen :
10539a67f45c3Smrg  printf %s "(cached) " >&6
105408bfe6addSmrgelse case e in #(
105418bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
105429ff100acSmrg/* end confdefs.h.  */
105439ff100acSmrgint i;
105449ff100acSmrg_ACEOF
10545a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
10546a67f45c3Smrgthen :
105479ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
105488bfe6addSmrgelse case e in #(
105498bfe6addSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
105508bfe6addSmrgesac
105519ff100acSmrgfi
105528bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
105538bfe6addSmrgesac
105549ff100acSmrgfi
10555a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10556a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
105579ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
105589ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
105599ff100acSmrgfi
105609ff100acSmrg
105619ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
105629ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
105639ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
105649ff100acSmrg	fi
105659ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10566a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10567a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10568a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10569a67f45c3Smrgthen :
10570a67f45c3Smrg  printf %s "(cached) " >&6
105718bfe6addSmrgelse case e in #(
105728bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
105739ff100acSmrg/* end confdefs.h.  */
105749ff100acSmrgint i;
105759ff100acSmrg_ACEOF
10576a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
10577a67f45c3Smrgthen :
105789ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
105798bfe6addSmrgelse case e in #(
105808bfe6addSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
105818bfe6addSmrgesac
105829ff100acSmrgfi
105838bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
105848bfe6addSmrgesac
105859ff100acSmrgfi
10586a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10587a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
105889ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
105899ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
105909ff100acSmrgfi
105919ff100acSmrg
105929ff100acSmrgfound="no"
105939ff100acSmrg
105949ff100acSmrg	if test $found = "no" ; then
105959ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
105969ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
105979ff100acSmrg		fi
105989ff100acSmrg
105999ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
106009ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
106019ff100acSmrg		fi
106029ff100acSmrg
106039ff100acSmrg		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
106049ff100acSmrg
10605a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10606a67f45c3Smrgprintf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
106079ff100acSmrg		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10608a67f45c3Smrg		if eval test \${$cacheid+y}
10609a67f45c3Smrgthen :
10610a67f45c3Smrg  printf %s "(cached) " >&6
106118bfe6addSmrgelse case e in #(
106128bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
106139ff100acSmrg/* end confdefs.h.  */
106149ff100acSmrgint i;
106159ff100acSmrgint
10616a67f45c3Smrgmain (void)
106179ff100acSmrg{
106189ff100acSmrg
106199ff100acSmrg  ;
106209ff100acSmrg  return 0;
106219ff100acSmrg}
106229ff100acSmrg_ACEOF
10623a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
10624a67f45c3Smrgthen :
106259ff100acSmrg  eval $cacheid=yes
106268bfe6addSmrgelse case e in #(
106278bfe6addSmrg  e) eval $cacheid=no ;;
106288bfe6addSmrgesac
106299ff100acSmrgfi
10630a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
106318bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
106328bfe6addSmrgesac
106339ff100acSmrgfi
106349ff100acSmrg
106359ff100acSmrg
106369ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
106379ff100acSmrg
106389ff100acSmrg		eval supported=\$$cacheid
10639a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10640a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
106419ff100acSmrg		if test "$supported" = "yes" ; then
106429ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
106439ff100acSmrg			found="yes"
106449ff100acSmrg		fi
106459ff100acSmrg	fi
106469ff100acSmrg
106479ff100acSmrg
106489ff100acSmrg
106499ff100acSmrg
106509ff100acSmrg
106519ff100acSmrg
106529ff100acSmrg
106539ff100acSmrg
106549ff100acSmrg
106559ff100acSmrg
106569ff100acSmrg
106579ff100acSmrg
106589ff100acSmrg
106599ff100acSmrg
106609ff100acSmrg
106619ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
106629ff100acSmrg
106639ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
106649ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10665a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10666a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10667a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10668a67f45c3Smrgthen :
10669a67f45c3Smrg  printf %s "(cached) " >&6
106708bfe6addSmrgelse case e in #(
106718bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
106729ff100acSmrg/* end confdefs.h.  */
106739ff100acSmrgint i;
106749ff100acSmrg_ACEOF
10675a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
10676a67f45c3Smrgthen :
106779ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
106788bfe6addSmrgelse case e in #(
106798bfe6addSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
106808bfe6addSmrgesac
106819ff100acSmrgfi
106828bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
106838bfe6addSmrgesac
106849ff100acSmrgfi
10685a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10686a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
106879ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
106889ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
106899ff100acSmrgfi
106909ff100acSmrg
106919ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
106929ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
106939ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
106949ff100acSmrg	fi
106959ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10696a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10697a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10698a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10699a67f45c3Smrgthen :
10700a67f45c3Smrg  printf %s "(cached) " >&6
107018bfe6addSmrgelse case e in #(
107028bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107039ff100acSmrg/* end confdefs.h.  */
107049ff100acSmrgint i;
107059ff100acSmrg_ACEOF
10706a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
10707a67f45c3Smrgthen :
107089ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
107098bfe6addSmrgelse case e in #(
107108bfe6addSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
107118bfe6addSmrgesac
107129ff100acSmrgfi
107138bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
107148bfe6addSmrgesac
107159ff100acSmrgfi
10716a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10717a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
107189ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
107199ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
107209ff100acSmrgfi
107219ff100acSmrg
107229ff100acSmrgfound="no"
107239ff100acSmrg
107249ff100acSmrg	if test $found = "no" ; then
107259ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
107269ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
107279ff100acSmrg		fi
107289ff100acSmrg
107299ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
107309ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
107319ff100acSmrg		fi
107329ff100acSmrg
107339ff100acSmrg		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
107349ff100acSmrg
10735a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10736a67f45c3Smrgprintf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
107379ff100acSmrg		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10738a67f45c3Smrg		if eval test \${$cacheid+y}
10739a67f45c3Smrgthen :
10740a67f45c3Smrg  printf %s "(cached) " >&6
107418bfe6addSmrgelse case e in #(
107428bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107439ff100acSmrg/* end confdefs.h.  */
107449ff100acSmrgint i;
107459ff100acSmrgint
10746a67f45c3Smrgmain (void)
107479ff100acSmrg{
107489ff100acSmrg
107499ff100acSmrg  ;
107509ff100acSmrg  return 0;
107519ff100acSmrg}
107529ff100acSmrg_ACEOF
10753a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
10754a67f45c3Smrgthen :
107559ff100acSmrg  eval $cacheid=yes
107568bfe6addSmrgelse case e in #(
107578bfe6addSmrg  e) eval $cacheid=no ;;
107588bfe6addSmrgesac
107599ff100acSmrgfi
10760a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
107618bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
107628bfe6addSmrgesac
107639ff100acSmrgfi
107649ff100acSmrg
107659ff100acSmrg
107669ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
107679ff100acSmrg
107689ff100acSmrg		eval supported=\$$cacheid
10769a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10770a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
107719ff100acSmrg		if test "$supported" = "yes" ; then
107729ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
107739ff100acSmrg			found="yes"
107749ff100acSmrg		fi
107759ff100acSmrg	fi
107769ff100acSmrg
107779ff100acSmrg
107789ff100acSmrgfi
107799ff100acSmrg
107809ff100acSmrg
107819ff100acSmrg
107829ff100acSmrg
107839ff100acSmrg
107849ff100acSmrg
107859ff100acSmrg
107869ff100acSmrg		CWARNFLAGS="$BASE_CFLAGS"
107879ff100acSmrg		if  test "x$GCC" = xyes ; then
107889ff100acSmrg		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
107899ff100acSmrg		fi
107909ff100acSmrg
107919ff100acSmrg
107929ff100acSmrg
107939ff100acSmrg
107949ff100acSmrg
107959ff100acSmrg
107969ff100acSmrg
107979ff100acSmrg
107989ff100acSmrg# Check whether --enable-strict-compilation was given.
10799a67f45c3Smrgif test ${enable_strict_compilation+y}
10800a67f45c3Smrgthen :
108019ff100acSmrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
108028bfe6addSmrgelse case e in #(
108038bfe6addSmrg  e) STRICT_COMPILE=no ;;
108048bfe6addSmrgesac
108059ff100acSmrgfi
108069ff100acSmrg
108079ff100acSmrg
108089ff100acSmrg
108099ff100acSmrg
108109ff100acSmrg
108119ff100acSmrg
108129ff100acSmrgSTRICT_CFLAGS=""
108139ff100acSmrg
108149ff100acSmrg
108159ff100acSmrg
108169ff100acSmrg
108179ff100acSmrg
108189ff100acSmrg
108199ff100acSmrg
108209ff100acSmrg
108219ff100acSmrg
108229ff100acSmrg
108239ff100acSmrg
108249ff100acSmrg
108259ff100acSmrg
108269ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
108279ff100acSmrg
108289ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
108299ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10830a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10831a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10832a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10833a67f45c3Smrgthen :
10834a67f45c3Smrg  printf %s "(cached) " >&6
108358bfe6addSmrgelse case e in #(
108368bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
108379ff100acSmrg/* end confdefs.h.  */
108389ff100acSmrgint i;
108399ff100acSmrg_ACEOF
10840a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
10841a67f45c3Smrgthen :
108429ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
108438bfe6addSmrgelse case e in #(
108448bfe6addSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
108458bfe6addSmrgesac
108469ff100acSmrgfi
108478bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
108488bfe6addSmrgesac
108499ff100acSmrgfi
10850a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10851a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
108529ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
108539ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
108549ff100acSmrgfi
108559ff100acSmrg
108569ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
108579ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
108589ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
108599ff100acSmrg	fi
108609ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10861a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10862a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10863a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10864a67f45c3Smrgthen :
10865a67f45c3Smrg  printf %s "(cached) " >&6
108668bfe6addSmrgelse case e in #(
108678bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
108689ff100acSmrg/* end confdefs.h.  */
108699ff100acSmrgint i;
108709ff100acSmrg_ACEOF
10871a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
10872a67f45c3Smrgthen :
108739ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
108748bfe6addSmrgelse case e in #(
108758bfe6addSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
108768bfe6addSmrgesac
108779ff100acSmrgfi
108788bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
108798bfe6addSmrgesac
108809ff100acSmrgfi
10881a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10882a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
108839ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
108849ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
108859ff100acSmrgfi
108869ff100acSmrg
108879ff100acSmrgfound="no"
108889ff100acSmrg
108899ff100acSmrg	if test $found = "no" ; then
108909ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
108919ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
108929ff100acSmrg		fi
108939ff100acSmrg
108949ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
108959ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
108969ff100acSmrg		fi
108979ff100acSmrg
108989ff100acSmrg		CFLAGS="$CFLAGS -pedantic"
108999ff100acSmrg
10900a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10901a67f45c3Smrgprintf %s "checking if $CC supports -pedantic... " >&6; }
109029ff100acSmrg		cacheid=xorg_cv_cc_flag__pedantic
10903a67f45c3Smrg		if eval test \${$cacheid+y}
10904a67f45c3Smrgthen :
10905a67f45c3Smrg  printf %s "(cached) " >&6
109068bfe6addSmrgelse case e in #(
109078bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
109089ff100acSmrg/* end confdefs.h.  */
109099ff100acSmrgint i;
109109ff100acSmrgint
10911a67f45c3Smrgmain (void)
109129ff100acSmrg{
109139ff100acSmrg
109149ff100acSmrg  ;
109159ff100acSmrg  return 0;
109169ff100acSmrg}
109179ff100acSmrg_ACEOF
10918a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
10919a67f45c3Smrgthen :
109209ff100acSmrg  eval $cacheid=yes
109218bfe6addSmrgelse case e in #(
109228bfe6addSmrg  e) eval $cacheid=no ;;
109238bfe6addSmrgesac
109249ff100acSmrgfi
10925a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
109268bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
109278bfe6addSmrgesac
109289ff100acSmrgfi
109299ff100acSmrg
109309ff100acSmrg
109319ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
109329ff100acSmrg
109339ff100acSmrg		eval supported=\$$cacheid
10934a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10935a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
109369ff100acSmrg		if test "$supported" = "yes" ; then
109379ff100acSmrg			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
109389ff100acSmrg			found="yes"
109399ff100acSmrg		fi
109409ff100acSmrg	fi
109419ff100acSmrg
109429ff100acSmrg
109439ff100acSmrg
109449ff100acSmrg
109459ff100acSmrg
109469ff100acSmrg
109479ff100acSmrg
109489ff100acSmrg
109499ff100acSmrg
109509ff100acSmrg
109519ff100acSmrg
109529ff100acSmrg
109539ff100acSmrg
109549ff100acSmrg
109559ff100acSmrg
109569ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
109579ff100acSmrg
109589ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
109599ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10960a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10961a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10962a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10963a67f45c3Smrgthen :
10964a67f45c3Smrg  printf %s "(cached) " >&6
109658bfe6addSmrgelse case e in #(
109668bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
109679ff100acSmrg/* end confdefs.h.  */
109689ff100acSmrgint i;
109699ff100acSmrg_ACEOF
10970a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
10971a67f45c3Smrgthen :
109729ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
109738bfe6addSmrgelse case e in #(
109748bfe6addSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
109758bfe6addSmrgesac
109769ff100acSmrgfi
109778bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
109788bfe6addSmrgesac
109799ff100acSmrgfi
10980a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10981a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
109829ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
109839ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
109849ff100acSmrgfi
109859ff100acSmrg
109869ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
109879ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
109889ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
109899ff100acSmrg	fi
109909ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10991a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10992a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10993a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10994a67f45c3Smrgthen :
10995a67f45c3Smrg  printf %s "(cached) " >&6
109968bfe6addSmrgelse case e in #(
109978bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
109989ff100acSmrg/* end confdefs.h.  */
109999ff100acSmrgint i;
110009ff100acSmrg_ACEOF
11001a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
11002a67f45c3Smrgthen :
110039ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
110048bfe6addSmrgelse case e in #(
110058bfe6addSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
110068bfe6addSmrgesac
110079ff100acSmrgfi
110088bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
110098bfe6addSmrgesac
110109ff100acSmrgfi
11011a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11012a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
110139ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
110149ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
110159ff100acSmrgfi
110169ff100acSmrg
110179ff100acSmrgfound="no"
110189ff100acSmrg
110199ff100acSmrg	if test $found = "no" ; then
110209ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
110219ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
110229ff100acSmrg		fi
110239ff100acSmrg
110249ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
110259ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
110269ff100acSmrg		fi
110279ff100acSmrg
110289ff100acSmrg		CFLAGS="$CFLAGS -Werror"
110299ff100acSmrg
11030a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11031a67f45c3Smrgprintf %s "checking if $CC supports -Werror... " >&6; }
110329ff100acSmrg		cacheid=xorg_cv_cc_flag__Werror
11033a67f45c3Smrg		if eval test \${$cacheid+y}
11034a67f45c3Smrgthen :
11035a67f45c3Smrg  printf %s "(cached) " >&6
110368bfe6addSmrgelse case e in #(
110378bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
110389ff100acSmrg/* end confdefs.h.  */
110399ff100acSmrgint i;
110409ff100acSmrgint
11041a67f45c3Smrgmain (void)
110429ff100acSmrg{
110439ff100acSmrg
110449ff100acSmrg  ;
110459ff100acSmrg  return 0;
110469ff100acSmrg}
110479ff100acSmrg_ACEOF
11048a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
11049a67f45c3Smrgthen :
110509ff100acSmrg  eval $cacheid=yes
110518bfe6addSmrgelse case e in #(
110528bfe6addSmrg  e) eval $cacheid=no ;;
110538bfe6addSmrgesac
110549ff100acSmrgfi
11055a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
110568bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
110578bfe6addSmrgesac
110589ff100acSmrgfi
110599ff100acSmrg
110609ff100acSmrg
110619ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
110629ff100acSmrg
110639ff100acSmrg		eval supported=\$$cacheid
11064a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11065a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
110669ff100acSmrg		if test "$supported" = "yes" ; then
110679ff100acSmrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
110689ff100acSmrg			found="yes"
110699ff100acSmrg		fi
110709ff100acSmrg	fi
110719ff100acSmrg
110729ff100acSmrg	if test $found = "no" ; then
110739ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
110749ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
110759ff100acSmrg		fi
110769ff100acSmrg
110779ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
110789ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
110799ff100acSmrg		fi
110809ff100acSmrg
110819ff100acSmrg		CFLAGS="$CFLAGS -errwarn"
110829ff100acSmrg
11083a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11084a67f45c3Smrgprintf %s "checking if $CC supports -errwarn... " >&6; }
110859ff100acSmrg		cacheid=xorg_cv_cc_flag__errwarn
11086a67f45c3Smrg		if eval test \${$cacheid+y}
11087a67f45c3Smrgthen :
11088a67f45c3Smrg  printf %s "(cached) " >&6
110898bfe6addSmrgelse case e in #(
110908bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
110919ff100acSmrg/* end confdefs.h.  */
110929ff100acSmrgint i;
110939ff100acSmrgint
11094a67f45c3Smrgmain (void)
110959ff100acSmrg{
110969ff100acSmrg
110979ff100acSmrg  ;
110989ff100acSmrg  return 0;
110999ff100acSmrg}
111009ff100acSmrg_ACEOF
11101a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
11102a67f45c3Smrgthen :
111039ff100acSmrg  eval $cacheid=yes
111048bfe6addSmrgelse case e in #(
111058bfe6addSmrg  e) eval $cacheid=no ;;
111068bfe6addSmrgesac
111079ff100acSmrgfi
11108a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
111098bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
111108bfe6addSmrgesac
111119ff100acSmrgfi
111129ff100acSmrg
111139ff100acSmrg
111149ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
111159ff100acSmrg
111169ff100acSmrg		eval supported=\$$cacheid
11117a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11118a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
111199ff100acSmrg		if test "$supported" = "yes" ; then
111209ff100acSmrg			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
111219ff100acSmrg			found="yes"
111229ff100acSmrg		fi
111239ff100acSmrg	fi
111249ff100acSmrg
111259ff100acSmrg
111269ff100acSmrg
111279ff100acSmrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
111289ff100acSmrg# activate it with -Werror, so we add it here explicitly.
111299ff100acSmrg
111309ff100acSmrg
111319ff100acSmrg
111329ff100acSmrg
111339ff100acSmrg
111349ff100acSmrg
111359ff100acSmrg
111369ff100acSmrg
111379ff100acSmrg
111389ff100acSmrg
111399ff100acSmrg
111409ff100acSmrg
111419ff100acSmrg
111429ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
111439ff100acSmrg
111449ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
111459ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11146a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11147a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11148a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
11149a67f45c3Smrgthen :
11150a67f45c3Smrg  printf %s "(cached) " >&6
111518bfe6addSmrgelse case e in #(
111528bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
111539ff100acSmrg/* end confdefs.h.  */
111549ff100acSmrgint i;
111559ff100acSmrg_ACEOF
11156a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
11157a67f45c3Smrgthen :
111589ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
111598bfe6addSmrgelse case e in #(
111608bfe6addSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
111618bfe6addSmrgesac
111629ff100acSmrgfi
111638bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
111648bfe6addSmrgesac
111659ff100acSmrgfi
11166a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11167a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
111689ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
111699ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
111709ff100acSmrgfi
111719ff100acSmrg
111729ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
111739ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
111749ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
111759ff100acSmrg	fi
111769ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11177a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11178a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11179a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11180a67f45c3Smrgthen :
11181a67f45c3Smrg  printf %s "(cached) " >&6
111828bfe6addSmrgelse case e in #(
111838bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
111849ff100acSmrg/* end confdefs.h.  */
111859ff100acSmrgint i;
111869ff100acSmrg_ACEOF
11187a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
11188a67f45c3Smrgthen :
111899ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
111908bfe6addSmrgelse case e in #(
111918bfe6addSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
111928bfe6addSmrgesac
111939ff100acSmrgfi
111948bfe6addSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
111958bfe6addSmrgesac
111969ff100acSmrgfi
11197a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11198a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
111999ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
112009ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
112019ff100acSmrgfi
112029ff100acSmrg
112039ff100acSmrgfound="no"
112049ff100acSmrg
112059ff100acSmrg	if test $found = "no" ; then
112069ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
112079ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
112089ff100acSmrg		fi
112099ff100acSmrg
112109ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
112119ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
112129ff100acSmrg		fi
112139ff100acSmrg
112149ff100acSmrg		CFLAGS="$CFLAGS -Werror=attributes"
112159ff100acSmrg
11216a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11217a67f45c3Smrgprintf %s "checking if $CC supports -Werror=attributes... " >&6; }
112189ff100acSmrg		cacheid=xorg_cv_cc_flag__Werror_attributes
11219a67f45c3Smrg		if eval test \${$cacheid+y}
11220a67f45c3Smrgthen :
11221a67f45c3Smrg  printf %s "(cached) " >&6
112228bfe6addSmrgelse case e in #(
112238bfe6addSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
112249ff100acSmrg/* end confdefs.h.  */
112259ff100acSmrgint i;
112269ff100acSmrgint
11227a67f45c3Smrgmain (void)
112289ff100acSmrg{
112299ff100acSmrg
112309ff100acSmrg  ;
112319ff100acSmrg  return 0;
112329ff100acSmrg}
112339ff100acSmrg_ACEOF
11234a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
11235a67f45c3Smrgthen :
112369ff100acSmrg  eval $cacheid=yes
112378bfe6addSmrgelse case e in #(
112388bfe6addSmrg  e) eval $cacheid=no ;;
112398bfe6addSmrgesac
112409ff100acSmrgfi
11241a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
112428bfe6addSmrg    conftest$ac_exeext conftest.$ac_ext ;;
112438bfe6addSmrgesac
112449ff100acSmrgfi
112459ff100acSmrg
112469ff100acSmrg
112479ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
112489ff100acSmrg
112499ff100acSmrg		eval supported=\$$cacheid
11250a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11251a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
112529ff100acSmrg		if test "$supported" = "yes" ; then
112539ff100acSmrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
112549ff100acSmrg			found="yes"
112559ff100acSmrg		fi
112569ff100acSmrg	fi
112579ff100acSmrg
112589ff100acSmrg
112599ff100acSmrg
112609ff100acSmrgif test "x$STRICT_COMPILE" = "xyes"; then
112619ff100acSmrg    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
112629ff100acSmrg    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
112639ff100acSmrgfi
112649ff100acSmrg
112659ff100acSmrg
112669ff100acSmrg
112679ff100acSmrg
112689ff100acSmrg
112699ff100acSmrg
112708bfe6addSmrg
112718bfe6addSmrg
112729ff100acSmrgcat >>confdefs.h <<_ACEOF
112739ff100acSmrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
112749ff100acSmrg_ACEOF
112759ff100acSmrg
112769ff100acSmrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
112779ff100acSmrg	if test "x$PVM" = "x"; then
112789ff100acSmrg		PVM="0"
112799ff100acSmrg	fi
112809ff100acSmrg
11281a67f45c3Smrgprintf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
112829ff100acSmrg
112839ff100acSmrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
112849ff100acSmrg	if test "x$PVP" = "x"; then
112859ff100acSmrg		PVP="0"
112869ff100acSmrg	fi
112879ff100acSmrg
11288a67f45c3Smrgprintf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
112899ff100acSmrg
112909ff100acSmrg
112919ff100acSmrg
11292a67f45c3SmrgCHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
112939ff100acSmrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11294a67f45c3Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11295a67f45c3Smrgtouch \$(top_srcdir)/ChangeLog; \
11296a67f45c3Smrgecho 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
112979ff100acSmrg
112989ff100acSmrg
112999ff100acSmrg
113009ff100acSmrg
113019ff100acSmrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
113029ff100acSmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
113039ff100acSmrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11304a67f45c3Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11305a67f45c3Smrgtouch \$(top_srcdir)/INSTALL; \
11306a67f45c3Smrgecho 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11307a67f45c3Smrg
113089ff100acSmrg
113099ff100acSmrg
113109ff100acSmrg
113119ff100acSmrg
113129ff100acSmrg
11313a67f45c3Smrgcase $host_os in
11314a67f45c3Smrg    solaris*)
11315a67f45c3Smrg        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11316a67f45c3Smrg        # check for a man page file found in later versions that use
11317a67f45c3Smrg        # traditional section numbers instead
11318a67f45c3Smrg        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11319a67f45c3Smrgprintf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11320a67f45c3Smrgif test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11321a67f45c3Smrgthen :
11322a67f45c3Smrg  printf %s "(cached) " >&6
113238bfe6addSmrgelse case e in #(
113248bfe6addSmrg  e) test "$cross_compiling" = yes &&
11325a67f45c3Smrg  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11326a67f45c3Smrgif test -r "/usr/share/man/man7/attributes.7"; then
11327a67f45c3Smrg  ac_cv_file__usr_share_man_man7_attributes_7=yes
11328a67f45c3Smrgelse
11329a67f45c3Smrg  ac_cv_file__usr_share_man_man7_attributes_7=no
113308bfe6addSmrgfi ;;
113318bfe6addSmrgesac
11332a67f45c3Smrgfi
11333a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11334a67f45c3Smrgprintf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11335a67f45c3Smrgif test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11336a67f45c3Smrgthen :
11337a67f45c3Smrg  SYSV_MAN_SECTIONS=false
113388bfe6addSmrgelse case e in #(
113398bfe6addSmrg  e) SYSV_MAN_SECTIONS=true ;;
113408bfe6addSmrgesac
11341a67f45c3Smrgfi
11342a67f45c3Smrg
11343a67f45c3Smrg        ;;
11344a67f45c3Smrg    *) SYSV_MAN_SECTIONS=false ;;
11345a67f45c3Smrgesac
113469ff100acSmrg
113479ff100acSmrgif test x$APP_MAN_SUFFIX = x    ; then
113489ff100acSmrg    APP_MAN_SUFFIX=1
113499ff100acSmrgfi
113509ff100acSmrgif test x$APP_MAN_DIR = x    ; then
113519ff100acSmrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
113529ff100acSmrgfi
113539ff100acSmrg
113549ff100acSmrgif test x$LIB_MAN_SUFFIX = x    ; then
113559ff100acSmrg    LIB_MAN_SUFFIX=3
113569ff100acSmrgfi
113579ff100acSmrgif test x$LIB_MAN_DIR = x    ; then
113589ff100acSmrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
113599ff100acSmrgfi
113609ff100acSmrg
113619ff100acSmrgif test x$FILE_MAN_SUFFIX = x    ; then
11362a67f45c3Smrg    case $SYSV_MAN_SECTIONS in
11363a67f45c3Smrg	true)				FILE_MAN_SUFFIX=4  ;;
11364a67f45c3Smrg	*)				FILE_MAN_SUFFIX=5  ;;
113659ff100acSmrg    esac
113669ff100acSmrgfi
113679ff100acSmrgif test x$FILE_MAN_DIR = x    ; then
113689ff100acSmrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
113699ff100acSmrgfi
113709ff100acSmrg
113719ff100acSmrgif test x$MISC_MAN_SUFFIX = x    ; then
11372a67f45c3Smrg    case $SYSV_MAN_SECTIONS in
11373a67f45c3Smrg	true)				MISC_MAN_SUFFIX=5  ;;
11374a67f45c3Smrg	*)				MISC_MAN_SUFFIX=7  ;;
113759ff100acSmrg    esac
113769ff100acSmrgfi
113779ff100acSmrgif test x$MISC_MAN_DIR = x    ; then
113789ff100acSmrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
113799ff100acSmrgfi
113809ff100acSmrg
113819ff100acSmrgif test x$DRIVER_MAN_SUFFIX = x    ; then
11382a67f45c3Smrg    case $SYSV_MAN_SECTIONS in
11383a67f45c3Smrg	true)				DRIVER_MAN_SUFFIX=7  ;;
11384a67f45c3Smrg	*)				DRIVER_MAN_SUFFIX=4  ;;
113859ff100acSmrg    esac
113869ff100acSmrgfi
113879ff100acSmrgif test x$DRIVER_MAN_DIR = x    ; then
113889ff100acSmrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
113899ff100acSmrgfi
113909ff100acSmrg
113919ff100acSmrgif test x$ADMIN_MAN_SUFFIX = x    ; then
11392a67f45c3Smrg    case $SYSV_MAN_SECTIONS in
11393a67f45c3Smrg	true)				ADMIN_MAN_SUFFIX=1m ;;
11394a67f45c3Smrg	*)				ADMIN_MAN_SUFFIX=8  ;;
113959ff100acSmrg    esac
113969ff100acSmrgfi
113979ff100acSmrgif test x$ADMIN_MAN_DIR = x    ; then
113989ff100acSmrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
113999ff100acSmrgfi
114009ff100acSmrg
114019ff100acSmrg
114029ff100acSmrg
114039ff100acSmrg
114049ff100acSmrg
114059ff100acSmrg
114069ff100acSmrg
114079ff100acSmrg
114089ff100acSmrg
114099ff100acSmrg
114109ff100acSmrg
114119ff100acSmrg
114129ff100acSmrg
114139ff100acSmrg
114149ff100acSmrg
114159ff100acSmrgXORG_MAN_PAGE="X Version 11"
114169ff100acSmrg
114179ff100acSmrgMAN_SUBSTS="\
114189ff100acSmrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
114199ff100acSmrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
114209ff100acSmrg	-e 's|__xservername__|Xorg|g' \
114219ff100acSmrg	-e 's|__xconfigfile__|xorg.conf|g' \
114229ff100acSmrg	-e 's|__projectroot__|\$(prefix)|g' \
114239ff100acSmrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
114249ff100acSmrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
114259ff100acSmrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
114269ff100acSmrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
114279ff100acSmrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
114289ff100acSmrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
114299ff100acSmrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
114309ff100acSmrg
114319ff100acSmrg
114329ff100acSmrg
114339ff100acSmrg
114348bfe6addSmrgAM_DEFAULT_VERBOSITY=0
114359ff100acSmrg
114369ff100acSmrg
114379ff100acSmrg
114389ff100acSmrgfor ac_prog in 'bison -y' byacc
114399ff100acSmrgdo
114409ff100acSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
114419ff100acSmrgset dummy $ac_prog; ac_word=$2
11442a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11443a67f45c3Smrgprintf %s "checking for $ac_word... " >&6; }
11444a67f45c3Smrgif test ${ac_cv_prog_YACC+y}
11445a67f45c3Smrgthen :
11446a67f45c3Smrg  printf %s "(cached) " >&6
114478bfe6addSmrgelse case e in #(
114488bfe6addSmrg  e) if test -n "$YACC"; then
114499ff100acSmrg  ac_cv_prog_YACC="$YACC" # Let the user override the test.
114509ff100acSmrgelse
114519ff100acSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114529ff100acSmrgfor as_dir in $PATH
114539ff100acSmrgdo
114549ff100acSmrg  IFS=$as_save_IFS
11455a67f45c3Smrg  case $as_dir in #(((
11456a67f45c3Smrg    '') as_dir=./ ;;
11457a67f45c3Smrg    */) ;;
11458a67f45c3Smrg    *) as_dir=$as_dir/ ;;
11459a67f45c3Smrg  esac
114609ff100acSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
11461a67f45c3Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
114629ff100acSmrg    ac_cv_prog_YACC="$ac_prog"
11463a67f45c3Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
114649ff100acSmrg    break 2
114659ff100acSmrg  fi
114669ff100acSmrgdone
114679ff100acSmrg  done
114689ff100acSmrgIFS=$as_save_IFS
114699ff100acSmrg
114708bfe6addSmrgfi ;;
114718bfe6addSmrgesac
114729ff100acSmrgfi
114739ff100acSmrgYACC=$ac_cv_prog_YACC
114749ff100acSmrgif test -n "$YACC"; then
11475a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
11476a67f45c3Smrgprintf "%s\n" "$YACC" >&6; }
114779ff100acSmrgelse
11478a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11479a67f45c3Smrgprintf "%s\n" "no" >&6; }
114809ff100acSmrgfi
114819ff100acSmrg
114829ff100acSmrg
114839ff100acSmrg  test -n "$YACC" && break
114849ff100acSmrgdone
114859ff100acSmrgtest -n "$YACC" || YACC="yacc"
114869ff100acSmrg
114879ff100acSmrg# Extract the first word of "$YACC", so it can be a program name with args.
114889ff100acSmrgset dummy $YACC; ac_word=$2
11489a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11490a67f45c3Smrgprintf %s "checking for $ac_word... " >&6; }
11491a67f45c3Smrgif test ${ac_cv_path_YACC_INST+y}
11492a67f45c3Smrgthen :
11493a67f45c3Smrg  printf %s "(cached) " >&6
114948bfe6addSmrgelse case e in #(
114958bfe6addSmrg  e) case $YACC_INST in
114969ff100acSmrg  [\\/]* | ?:[\\/]*)
114979ff100acSmrg  ac_cv_path_YACC_INST="$YACC_INST" # Let the user override the test with a path.
114989ff100acSmrg  ;;
114999ff100acSmrg  *)
115009ff100acSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115019ff100acSmrgfor as_dir in $PATH
115029ff100acSmrgdo
115039ff100acSmrg  IFS=$as_save_IFS
11504a67f45c3Smrg  case $as_dir in #(((
11505a67f45c3Smrg    '') as_dir=./ ;;
11506a67f45c3Smrg    */) ;;
11507a67f45c3Smrg    *) as_dir=$as_dir/ ;;
11508a67f45c3Smrg  esac
115099ff100acSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
11510a67f45c3Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11511a67f45c3Smrg    ac_cv_path_YACC_INST="$as_dir$ac_word$ac_exec_ext"
11512a67f45c3Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
115139ff100acSmrg    break 2
115149ff100acSmrg  fi
115159ff100acSmrgdone
115169ff100acSmrg  done
115179ff100acSmrgIFS=$as_save_IFS
115189ff100acSmrg
115199ff100acSmrg  ;;
115208bfe6addSmrgesac ;;
115219ff100acSmrgesac
115229ff100acSmrgfi
115239ff100acSmrgYACC_INST=$ac_cv_path_YACC_INST
115249ff100acSmrgif test -n "$YACC_INST"; then
11525a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC_INST" >&5
11526a67f45c3Smrgprintf "%s\n" "$YACC_INST" >&6; }
115279ff100acSmrgelse
11528a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11529a67f45c3Smrgprintf "%s\n" "no" >&6; }
115309ff100acSmrgfi
115319ff100acSmrg
115329ff100acSmrg
115339ff100acSmrgif test ! -f "cfgparse.c"; then
115349ff100acSmrg   if test -z "$YACC_INST"; then
115359ff100acSmrg      as_fn_error $? "yacc not found - unable to compile cfgparse.y" "$LINENO" 5
115369ff100acSmrg   fi
115379ff100acSmrgfi
115389ff100acSmrg
115399ff100acSmrg# Checks for pkg-config packages
115409ff100acSmrg
115419ff100acSmrgpkg_failed=no
11542a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XKBEVD" >&5
11543a67f45c3Smrgprintf %s "checking for XKBEVD... " >&6; }
115449ff100acSmrg
115459ff100acSmrgif test -n "$XKBEVD_CFLAGS"; then
115469ff100acSmrg    pkg_cv_XKBEVD_CFLAGS="$XKBEVD_CFLAGS"
115479ff100acSmrg elif test -n "$PKG_CONFIG"; then
115489ff100acSmrg    if test -n "$PKG_CONFIG" && \
11549a67f45c3Smrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile x11\""; } >&5
115509ff100acSmrg  ($PKG_CONFIG --exists --print-errors "xkbfile x11") 2>&5
1155176910425Smrg  ac_status=$?
11552a67f45c3Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11553482df631Smrg  test $ac_status = 0; }; then
1155476910425Smrg  pkg_cv_XKBEVD_CFLAGS=`$PKG_CONFIG --cflags "xkbfile x11" 2>/dev/null`
11555a67f45c3Smrg		      test "x$?" != "x0" && pkg_failed=yes
1155676910425Smrgelse
1155776910425Smrg  pkg_failed=yes
1155876910425Smrgfi
11559db17cd6dSmrg else
11560db17cd6dSmrg    pkg_failed=untried
1156176910425Smrgfi
11562db17cd6dSmrgif test -n "$XKBEVD_LIBS"; then
11563db17cd6dSmrg    pkg_cv_XKBEVD_LIBS="$XKBEVD_LIBS"
11564db17cd6dSmrg elif test -n "$PKG_CONFIG"; then
11565db17cd6dSmrg    if test -n "$PKG_CONFIG" && \
11566a67f45c3Smrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile x11\""; } >&5
1156776910425Smrg  ($PKG_CONFIG --exists --print-errors "xkbfile x11") 2>&5
1156876910425Smrg  ac_status=$?
11569a67f45c3Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11570482df631Smrg  test $ac_status = 0; }; then
1157176910425Smrg  pkg_cv_XKBEVD_LIBS=`$PKG_CONFIG --libs "xkbfile x11" 2>/dev/null`
11572a67f45c3Smrg		      test "x$?" != "x0" && pkg_failed=yes
1157376910425Smrgelse
1157476910425Smrg  pkg_failed=yes
1157576910425Smrgfi
11576db17cd6dSmrg else
11577db17cd6dSmrg    pkg_failed=untried
1157876910425Smrgfi
1157976910425Smrg
1158076910425Smrg
1158176910425Smrg
1158276910425Smrgif test $pkg_failed = yes; then
11583a67f45c3Smrg   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11584a67f45c3Smrgprintf "%s\n" "no" >&6; }
1158576910425Smrg
1158676910425Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1158776910425Smrg        _pkg_short_errors_supported=yes
1158876910425Smrgelse
1158976910425Smrg        _pkg_short_errors_supported=no
1159076910425Smrgfi
1159176910425Smrg        if test $_pkg_short_errors_supported = yes; then
11592a67f45c3Smrg	        XKBEVD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xkbfile x11" 2>&1`
1159376910425Smrg        else
11594a67f45c3Smrg	        XKBEVD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xkbfile x11" 2>&1`
1159576910425Smrg        fi
1159676910425Smrg	# Put the nasty error message in config.log where it belongs
1159776910425Smrg	echo "$XKBEVD_PKG_ERRORS" >&5
1159876910425Smrg
11599482df631Smrg	as_fn_error $? "Package requirements (xkbfile x11) were not met:
1160076910425Smrg
1160176910425Smrg$XKBEVD_PKG_ERRORS
1160276910425Smrg
1160376910425SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
1160476910425Smrginstalled software in a non-standard prefix.
1160576910425Smrg
1160676910425SmrgAlternatively, you may set the environment variables XKBEVD_CFLAGS
1160776910425Smrgand XKBEVD_LIBS to avoid the need to call pkg-config.
11608a67f45c3SmrgSee the pkg-config man page for more details." "$LINENO" 5
1160976910425Smrgelif test $pkg_failed = untried; then
11610a67f45c3Smrg     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11611a67f45c3Smrgprintf "%s\n" "no" >&6; }
116128bfe6addSmrg	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
116138bfe6addSmrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11614482df631Smrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
1161576910425Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
1161676910425Smrgpath to pkg-config.
1161776910425Smrg
1161876910425SmrgAlternatively, you may set the environment variables XKBEVD_CFLAGS
1161976910425Smrgand XKBEVD_LIBS to avoid the need to call pkg-config.
1162076910425SmrgSee the pkg-config man page for more details.
1162176910425Smrg
11622db17cd6dSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
116238bfe6addSmrgSee 'config.log' for more details" "$LINENO" 5; }
1162476910425Smrgelse
1162576910425Smrg	XKBEVD_CFLAGS=$pkg_cv_XKBEVD_CFLAGS
1162676910425Smrg	XKBEVD_LIBS=$pkg_cv_XKBEVD_LIBS
11627a67f45c3Smrg        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11628a67f45c3Smrgprintf "%s\n" "yes" >&6; }
11629a67f45c3Smrg
1163076910425Smrgfi
1163176910425Smrg
116329ff100acSmrgac_config_files="$ac_config_files Makefile man/Makefile"
1163376910425Smrg
1163476910425Smrgcat >confcache <<\_ACEOF
1163576910425Smrg# This file is a shell script that caches the results of configure
1163676910425Smrg# tests run on this system so they can be shared between configure
1163776910425Smrg# scripts and configure runs, see configure's option --config-cache.
1163876910425Smrg# It is not useful on other systems.  If it contains results you don't
1163976910425Smrg# want to keep, you may remove or edit it.
1164076910425Smrg#
1164176910425Smrg# config.status only pays attention to the cache file if you give it
1164276910425Smrg# the --recheck option to rerun configure.
1164376910425Smrg#
116448bfe6addSmrg# 'ac_cv_env_foo' variables (set or unset) will be overridden when
116458bfe6addSmrg# loading this file, other *unset* 'ac_cv_foo' will be assigned the
1164676910425Smrg# following values.
1164776910425Smrg
1164876910425Smrg_ACEOF
1164976910425Smrg
1165076910425Smrg# The following way of writing the cache mishandles newlines in values,
1165176910425Smrg# but we know of no workaround that is simple, portable, and efficient.
11652db17cd6dSmrg# So, we kill variables containing newlines.
1165376910425Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
1165476910425Smrg# and sets the high bit in the cache file unless we assign to the vars.
11655db17cd6dSmrg(
11656db17cd6dSmrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11657db17cd6dSmrg    eval ac_val=\$$ac_var
11658db17cd6dSmrg    case $ac_val in #(
11659db17cd6dSmrg    *${as_nl}*)
11660db17cd6dSmrg      case $ac_var in #(
11661a67f45c3Smrg      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11662a67f45c3Smrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11663db17cd6dSmrg      esac
11664db17cd6dSmrg      case $ac_var in #(
11665db17cd6dSmrg      _ | IFS | as_nl) ;; #(
11666db17cd6dSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11667482df631Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
11668db17cd6dSmrg      esac ;;
11669db17cd6dSmrg    esac
11670db17cd6dSmrg  done
11671db17cd6dSmrg
1167276910425Smrg  (set) 2>&1 |
11673db17cd6dSmrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11674db17cd6dSmrg    *${as_nl}ac_space=\ *)
116758bfe6addSmrg      # 'set' does not quote correctly, so add quotes: double-quote
11676482df631Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
1167776910425Smrg      sed -n \
1167876910425Smrg	"s/'/'\\\\''/g;
1167976910425Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11680db17cd6dSmrg      ;; #(
1168176910425Smrg    *)
116828bfe6addSmrg      # 'set' quotes correctly as required by POSIX, so do not add quotes.
11683db17cd6dSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1168476910425Smrg      ;;
11685db17cd6dSmrg    esac |
11686db17cd6dSmrg    sort
11687db17cd6dSmrg) |
1168876910425Smrg  sed '
11689db17cd6dSmrg     /^ac_cv_env_/b end
1169076910425Smrg     t clear
11691db17cd6dSmrg     :clear
11692a67f45c3Smrg     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
1169376910425Smrg     t end
11694db17cd6dSmrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11695db17cd6dSmrg     :end' >>confcache
11696db17cd6dSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11697db17cd6dSmrg  if test -w "$cache_file"; then
11698482df631Smrg    if test "x$cache_file" != "x/dev/null"; then
11699a67f45c3Smrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11700a67f45c3Smrgprintf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11701482df631Smrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
11702482df631Smrg	cat confcache >"$cache_file"
11703482df631Smrg      else
11704482df631Smrg        case $cache_file in #(
11705482df631Smrg        */* | ?:*)
11706482df631Smrg	  mv -f confcache "$cache_file"$$ &&
11707482df631Smrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11708482df631Smrg        *)
11709482df631Smrg	  mv -f confcache "$cache_file" ;;
11710482df631Smrg	esac
11711482df631Smrg      fi
11712482df631Smrg    fi
1171376910425Smrg  else
11714a67f45c3Smrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11715a67f45c3Smrgprintf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
1171676910425Smrg  fi
1171776910425Smrgfi
1171876910425Smrgrm -f confcache
1171976910425Smrg
1172076910425Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
1172176910425Smrg# Let make expand exec_prefix.
1172276910425Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1172376910425Smrg
1172476910425SmrgDEFS=-DHAVE_CONFIG_H
1172576910425Smrg
1172676910425Smrgac_libobjs=
1172776910425Smrgac_ltlibobjs=
11728482df631SmrgU=
1172976910425Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
1173076910425Smrg  # 1. Remove the extension, and $U if already installed.
11731db17cd6dSmrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11732a67f45c3Smrg  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11733db17cd6dSmrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11734db17cd6dSmrg  #    will be set to the directory where LIBOBJS objects are built.
11735482df631Smrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11736482df631Smrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1173776910425Smrgdone
1173876910425SmrgLIBOBJS=$ac_libobjs
1173976910425Smrg
1174076910425SmrgLTLIBOBJS=$ac_ltlibobjs
1174176910425Smrg
1174276910425Smrg
11743a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11744a67f45c3Smrgprintf %s "checking that generated files are newer than configure... " >&6; }
117459ff100acSmrg   if test -n "$am_sleep_pid"; then
117469ff100acSmrg     # Hide warnings about reused PIDs.
117479ff100acSmrg     wait $am_sleep_pid 2>/dev/null
117489ff100acSmrg   fi
11749a67f45c3Smrg   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11750a67f45c3Smrgprintf "%s\n" "done" >&6; }
117518bfe6addSmrgcase $enable_silent_rules in # (((
117528bfe6addSmrg  yes) AM_DEFAULT_VERBOSITY=0;;
117538bfe6addSmrg   no) AM_DEFAULT_VERBOSITY=1;;
117548bfe6addSmrgesac
117558bfe6addSmrgif test $am_cv_make_support_nested_variables = yes; then
117568bfe6addSmrg    AM_V='$(V)'
117578bfe6addSmrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
117588bfe6addSmrgelse
117598bfe6addSmrg  AM_V=$AM_DEFAULT_VERBOSITY
117608bfe6addSmrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
117618bfe6addSmrgfi
117628bfe6addSmrg
11763db17cd6dSmrg if test -n "$EXEEXT"; then
11764db17cd6dSmrg  am__EXEEXT_TRUE=
11765db17cd6dSmrg  am__EXEEXT_FALSE='#'
11766db17cd6dSmrgelse
11767db17cd6dSmrg  am__EXEEXT_TRUE='#'
11768db17cd6dSmrg  am__EXEEXT_FALSE=
11769db17cd6dSmrgfi
11770db17cd6dSmrg
1177176910425Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11772482df631Smrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
11773482df631SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
1177476910425Smrgfi
1177576910425Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11776482df631Smrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11777482df631SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
1177876910425Smrgfi
1177976910425Smrg
11780482df631Smrg: "${CONFIG_STATUS=./config.status}"
11781db17cd6dSmrgac_write_fail=0
1178276910425Smrgac_clean_files_save=$ac_clean_files
1178376910425Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
11784a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11785a67f45c3Smrgprintf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11786482df631Smrgas_write_fail=0
11787482df631Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1178876910425Smrg#! $SHELL
1178976910425Smrg# Generated by $as_me.
1179076910425Smrg# Run this file to recreate the current configuration.
1179176910425Smrg# Compiler output produced by configure, useful for debugging
1179276910425Smrg# configure, is in config.log if it exists.
1179376910425Smrg
1179476910425Smrgdebug=false
1179576910425Smrgac_cs_recheck=false
1179676910425Smrgac_cs_silent=false
1179776910425Smrg
11798482df631SmrgSHELL=\${CONFIG_SHELL-$SHELL}
11799482df631Smrgexport SHELL
11800482df631Smrg_ASEOF
11801482df631Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11802482df631Smrg## -------------------- ##
11803482df631Smrg## M4sh Initialization. ##
11804482df631Smrg## -------------------- ##
1180576910425Smrg
11806db17cd6dSmrg# Be more Bourne compatible
11807db17cd6dSmrgDUALCASE=1; export DUALCASE # for MKS sh
11808a67f45c3Smrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11809a67f45c3Smrgthen :
1181076910425Smrg  emulate sh
1181176910425Smrg  NULLCMD=:
11812db17cd6dSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1181376910425Smrg  # is contrary to our usage.  Disable this feature.
1181476910425Smrg  alias -g '${1+"$@"}'='"$@"'
11815db17cd6dSmrg  setopt NO_GLOB_SUBST
118168bfe6addSmrgelse case e in #(
118178bfe6addSmrg  e) case `(set -o) 2>/dev/null` in #(
11818482df631Smrg  *posix*) :
11819482df631Smrg    set -o posix ;; #(
11820482df631Smrg  *) :
11821482df631Smrg     ;;
118228bfe6addSmrgesac ;;
11823db17cd6dSmrgesac
11824db17cd6dSmrgfi
11825db17cd6dSmrg
11826db17cd6dSmrg
11827a67f45c3Smrg
11828a67f45c3Smrg# Reset variables that may have inherited troublesome values from
11829a67f45c3Smrg# the environment.
11830a67f45c3Smrg
11831a67f45c3Smrg# IFS needs to be set, to space, tab, and newline, in precisely that order.
11832a67f45c3Smrg# (If _AS_PATH_WALK were called with IFS unset, it would have the
11833a67f45c3Smrg# side effect of setting IFS to empty, thus disabling word splitting.)
11834a67f45c3Smrg# Quoting is to prevent editors from complaining about space-tab.
11835db17cd6dSmrgas_nl='
11836db17cd6dSmrg'
11837db17cd6dSmrgexport as_nl
11838a67f45c3SmrgIFS=" ""	$as_nl"
11839a67f45c3Smrg
11840a67f45c3SmrgPS1='$ '
11841a67f45c3SmrgPS2='> '
11842a67f45c3SmrgPS4='+ '
11843a67f45c3Smrg
11844a67f45c3Smrg# Ensure predictable behavior from utilities with locale-dependent output.
11845a67f45c3SmrgLC_ALL=C
11846a67f45c3Smrgexport LC_ALL
11847a67f45c3SmrgLANGUAGE=C
11848a67f45c3Smrgexport LANGUAGE
11849a67f45c3Smrg
11850a67f45c3Smrg# We cannot yet rely on "unset" to work, but we need these variables
11851a67f45c3Smrg# to be unset--not just set to an empty or harmless value--now, to
11852a67f45c3Smrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
11853a67f45c3Smrg# also avoids known problems related to "unset" and subshell syntax
11854a67f45c3Smrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11855a67f45c3Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11856a67f45c3Smrgdo eval test \${$as_var+y} \
11857a67f45c3Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11858a67f45c3Smrgdone
11859a67f45c3Smrg
11860a67f45c3Smrg# Ensure that fds 0, 1, and 2 are open.
11861a67f45c3Smrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11862a67f45c3Smrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11863a67f45c3Smrgif (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
11864db17cd6dSmrg
11865db17cd6dSmrg# The user is always right.
11866a67f45c3Smrgif ${PATH_SEPARATOR+false} :; then
11867db17cd6dSmrg  PATH_SEPARATOR=:
11868db17cd6dSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11869db17cd6dSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11870db17cd6dSmrg      PATH_SEPARATOR=';'
11871db17cd6dSmrg  }
1187276910425Smrgfi
1187376910425Smrg
1187476910425Smrg
11875db17cd6dSmrg# Find who we are.  Look in the path if we contain no directory separator.
11876482df631Smrgas_myself=
11877482df631Smrgcase $0 in #((
11878db17cd6dSmrg  *[\\/]* ) as_myself=$0 ;;
11879db17cd6dSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11880db17cd6dSmrgfor as_dir in $PATH
11881db17cd6dSmrgdo
11882db17cd6dSmrg  IFS=$as_save_IFS
11883a67f45c3Smrg  case $as_dir in #(((
11884a67f45c3Smrg    '') as_dir=./ ;;
11885a67f45c3Smrg    */) ;;
11886a67f45c3Smrg    *) as_dir=$as_dir/ ;;
11887a67f45c3Smrg  esac
11888a67f45c3Smrg    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11889482df631Smrg  done
11890db17cd6dSmrgIFS=$as_save_IFS
11891db17cd6dSmrg
11892db17cd6dSmrg     ;;
11893db17cd6dSmrgesac
118948bfe6addSmrg# We did not find ourselves, most probably we were run as 'sh COMMAND'
11895db17cd6dSmrg# in which case we are not to be found in the path.
11896db17cd6dSmrgif test "x$as_myself" = x; then
11897db17cd6dSmrg  as_myself=$0
11898db17cd6dSmrgfi
11899db17cd6dSmrgif test ! -f "$as_myself"; then
11900a67f45c3Smrg  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11901482df631Smrg  exit 1
11902db17cd6dSmrgfi
11903db17cd6dSmrg
11904482df631Smrg
11905482df631Smrg
11906482df631Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
11907482df631Smrg# ----------------------------------------
11908482df631Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11909482df631Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11910482df631Smrg# script with STATUS, using 1 if that was 0.
11911482df631Smrgas_fn_error ()
11912482df631Smrg{
11913482df631Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
11914482df631Smrg  if test "$4"; then
11915482df631Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11916a67f45c3Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11917482df631Smrg  fi
11918a67f45c3Smrg  printf "%s\n" "$as_me: error: $2" >&2
11919482df631Smrg  as_fn_exit $as_status
11920482df631Smrg} # as_fn_error
11921482df631Smrg
11922482df631Smrg
11923482df631Smrg# as_fn_set_status STATUS
11924482df631Smrg# -----------------------
11925482df631Smrg# Set $? to STATUS, without forking.
11926482df631Smrgas_fn_set_status ()
11927482df631Smrg{
11928482df631Smrg  return $1
11929482df631Smrg} # as_fn_set_status
11930482df631Smrg
11931482df631Smrg# as_fn_exit STATUS
11932482df631Smrg# -----------------
11933482df631Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11934482df631Smrgas_fn_exit ()
11935482df631Smrg{
11936482df631Smrg  set +e
11937482df631Smrg  as_fn_set_status $1
11938482df631Smrg  exit $1
11939482df631Smrg} # as_fn_exit
11940482df631Smrg
11941482df631Smrg# as_fn_unset VAR
11942482df631Smrg# ---------------
11943482df631Smrg# Portably unset VAR.
11944482df631Smrgas_fn_unset ()
11945482df631Smrg{
11946482df631Smrg  { eval $1=; unset $1;}
11947482df631Smrg}
11948482df631Smrgas_unset=as_fn_unset
11949a67f45c3Smrg
11950482df631Smrg# as_fn_append VAR VALUE
11951482df631Smrg# ----------------------
11952482df631Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
11953482df631Smrg# advantage of any shell optimizations that allow amortized linear growth over
11954482df631Smrg# repeated appends, instead of the typical quadratic growth present in naive
11955482df631Smrg# implementations.
11956a67f45c3Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11957a67f45c3Smrgthen :
11958482df631Smrg  eval 'as_fn_append ()
11959482df631Smrg  {
11960482df631Smrg    eval $1+=\$2
11961482df631Smrg  }'
119628bfe6addSmrgelse case e in #(
119638bfe6addSmrg  e) as_fn_append ()
11964482df631Smrg  {
11965482df631Smrg    eval $1=\$$1\$2
119668bfe6addSmrg  } ;;
119678bfe6addSmrgesac
11968482df631Smrgfi # as_fn_append
11969482df631Smrg
11970482df631Smrg# as_fn_arith ARG...
11971482df631Smrg# ------------------
11972482df631Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
11973482df631Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
11974482df631Smrg# must be portable across $(()) and expr.
11975a67f45c3Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11976a67f45c3Smrgthen :
11977482df631Smrg  eval 'as_fn_arith ()
11978482df631Smrg  {
11979482df631Smrg    as_val=$(( $* ))
11980482df631Smrg  }'
119818bfe6addSmrgelse case e in #(
119828bfe6addSmrg  e) as_fn_arith ()
11983482df631Smrg  {
11984482df631Smrg    as_val=`expr "$@" || test $? -eq 1`
119858bfe6addSmrg  } ;;
119868bfe6addSmrgesac
11987482df631Smrgfi # as_fn_arith
11988482df631Smrg
11989482df631Smrg
11990db17cd6dSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
11991db17cd6dSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
1199276910425Smrg  as_expr=expr
1199376910425Smrgelse
1199476910425Smrg  as_expr=false
1199576910425Smrgfi
1199676910425Smrg
11997db17cd6dSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1199876910425Smrg  as_basename=basename
1199976910425Smrgelse
1200076910425Smrg  as_basename=false
1200176910425Smrgfi
1200276910425Smrg
12003482df631Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12004482df631Smrg  as_dirname=dirname
12005482df631Smrgelse
12006482df631Smrg  as_dirname=false
12007482df631Smrgfi
1200876910425Smrg
12009db17cd6dSmrgas_me=`$as_basename -- "$0" ||
1201076910425Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
1201176910425Smrg	 X"$0" : 'X\(//\)$' \| \
12012db17cd6dSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12013a67f45c3Smrgprintf "%s\n" X/"$0" |
12014db17cd6dSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
12015db17cd6dSmrg	    s//\1/
12016db17cd6dSmrg	    q
12017db17cd6dSmrg	  }
12018db17cd6dSmrg	  /^X\/\(\/\/\)$/{
12019db17cd6dSmrg	    s//\1/
12020db17cd6dSmrg	    q
12021db17cd6dSmrg	  }
12022db17cd6dSmrg	  /^X\/\(\/\).*/{
12023db17cd6dSmrg	    s//\1/
12024db17cd6dSmrg	    q
12025db17cd6dSmrg	  }
12026db17cd6dSmrg	  s/.*/./; q'`
1202776910425Smrg
12028482df631Smrg# Avoid depending upon Character Ranges.
12029482df631Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
12030482df631Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12031482df631Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
12032482df631Smrgas_cr_digits='0123456789'
12033482df631Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
1203476910425Smrg
12035a67f45c3Smrg
12036a67f45c3Smrg# Determine whether it's possible to make 'echo' print without a newline.
12037a67f45c3Smrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12038a67f45c3Smrg# for compatibility with existing Makefiles.
12039db17cd6dSmrgECHO_C= ECHO_N= ECHO_T=
12040482df631Smrgcase `echo -n x` in #(((((
12041db17cd6dSmrg-n*)
12042482df631Smrg  case `echo 'xy\c'` in
12043db17cd6dSmrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12044482df631Smrg  xy)  ECHO_C='\c';;
12045482df631Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12046482df631Smrg       ECHO_T='	';;
12047db17cd6dSmrg  esac;;
12048db17cd6dSmrg*)
12049db17cd6dSmrg  ECHO_N='-n';;
12050db17cd6dSmrgesac
1205176910425Smrg
12052a67f45c3Smrg# For backward compatibility with old third-party macros, we provide
12053a67f45c3Smrg# the shell variables $as_echo and $as_echo_n.  New code should use
12054a67f45c3Smrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12055a67f45c3Smrgas_echo='printf %s\n'
12056a67f45c3Smrgas_echo_n='printf %s'
12057a67f45c3Smrg
1205876910425Smrgrm -f conf$$ conf$$.exe conf$$.file
12059db17cd6dSmrgif test -d conf$$.dir; then
12060db17cd6dSmrg  rm -f conf$$.dir/conf$$.file
12061db17cd6dSmrgelse
12062db17cd6dSmrg  rm -f conf$$.dir
12063db17cd6dSmrg  mkdir conf$$.dir 2>/dev/null
12064db17cd6dSmrgfi
12065db17cd6dSmrgif (echo >conf$$.file) 2>/dev/null; then
12066db17cd6dSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
1206776910425Smrg    as_ln_s='ln -s'
12068db17cd6dSmrg    # ... but there are two gotchas:
120698bfe6addSmrg    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
120708bfe6addSmrg    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
120718bfe6addSmrg    # In both cases, we have to default to 'cp -pR'.
12072db17cd6dSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
120739ff100acSmrg      as_ln_s='cp -pR'
12074db17cd6dSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
12075db17cd6dSmrg    as_ln_s=ln
12076db17cd6dSmrg  else
120779ff100acSmrg    as_ln_s='cp -pR'
1207876910425Smrg  fi
1207976910425Smrgelse
120809ff100acSmrg  as_ln_s='cp -pR'
1208176910425Smrgfi
12082db17cd6dSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12083db17cd6dSmrgrmdir conf$$.dir 2>/dev/null
1208476910425Smrg
12085482df631Smrg
12086482df631Smrg# as_fn_mkdir_p
12087482df631Smrg# -------------
12088482df631Smrg# Create "$as_dir" as a directory, including parents if necessary.
12089482df631Smrgas_fn_mkdir_p ()
12090482df631Smrg{
12091482df631Smrg
12092482df631Smrg  case $as_dir in #(
12093482df631Smrg  -*) as_dir=./$as_dir;;
12094482df631Smrg  esac
12095482df631Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
12096482df631Smrg    as_dirs=
12097482df631Smrg    while :; do
12098482df631Smrg      case $as_dir in #(
12099a67f45c3Smrg      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12100482df631Smrg      *) as_qdir=$as_dir;;
12101482df631Smrg      esac
12102482df631Smrg      as_dirs="'$as_qdir' $as_dirs"
12103482df631Smrg      as_dir=`$as_dirname -- "$as_dir" ||
12104482df631Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12105482df631Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
12106482df631Smrg	 X"$as_dir" : 'X\(//\)$' \| \
12107482df631Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12108a67f45c3Smrgprintf "%s\n" X"$as_dir" |
12109482df631Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12110482df631Smrg	    s//\1/
12111482df631Smrg	    q
12112482df631Smrg	  }
12113482df631Smrg	  /^X\(\/\/\)[^/].*/{
12114482df631Smrg	    s//\1/
12115482df631Smrg	    q
12116482df631Smrg	  }
12117482df631Smrg	  /^X\(\/\/\)$/{
12118482df631Smrg	    s//\1/
12119482df631Smrg	    q
12120482df631Smrg	  }
12121482df631Smrg	  /^X\(\/\).*/{
12122482df631Smrg	    s//\1/
12123482df631Smrg	    q
12124482df631Smrg	  }
12125482df631Smrg	  s/.*/./; q'`
12126482df631Smrg      test -d "$as_dir" && break
12127482df631Smrg    done
12128482df631Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
12129482df631Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12130482df631Smrg
12131482df631Smrg
12132482df631Smrg} # as_fn_mkdir_p
1213376910425Smrgif mkdir -p . 2>/dev/null; then
12134482df631Smrg  as_mkdir_p='mkdir -p "$as_dir"'
1213576910425Smrgelse
1213676910425Smrg  test -d ./-p && rmdir ./-p
1213776910425Smrg  as_mkdir_p=false
1213876910425Smrgfi
1213976910425Smrg
121409ff100acSmrg
121419ff100acSmrg# as_fn_executable_p FILE
121429ff100acSmrg# -----------------------
121439ff100acSmrg# Test if FILE is an executable regular file.
121449ff100acSmrgas_fn_executable_p ()
121459ff100acSmrg{
121469ff100acSmrg  test -f "$1" && test -x "$1"
121479ff100acSmrg} # as_fn_executable_p
121489ff100acSmrgas_test_x='test -x'
121499ff100acSmrgas_executable_p=as_fn_executable_p
1215076910425Smrg
1215176910425Smrg# Sed expression to map a string onto a valid CPP name.
121528bfe6addSmrgas_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
121538bfe6addSmrgas_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
1215476910425Smrg
1215576910425Smrg# Sed expression to map a string onto a valid variable name.
121568bfe6addSmrgas_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
121578bfe6addSmrgas_tr_sh="eval sed '$as_sed_sh'" # deprecated
1215876910425Smrg
1215976910425Smrg
1216076910425Smrgexec 6>&1
12161482df631Smrg## ----------------------------------- ##
12162482df631Smrg## Main body of $CONFIG_STATUS script. ##
12163482df631Smrg## ----------------------------------- ##
12164482df631Smrg_ASEOF
12165482df631Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1216676910425Smrg
12167482df631Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12168482df631Smrg# Save the log message, to keep $0 and so on meaningful, and to
1216976910425Smrg# report actual input values of CONFIG_FILES etc. instead of their
12170db17cd6dSmrg# values after options handling.
12171db17cd6dSmrgac_log="
121728bfe6addSmrgThis file was extended by xkbevd $as_me 1.1.6, which was
121738bfe6addSmrggenerated by GNU Autoconf 2.72.  Invocation command line was
1217476910425Smrg
1217576910425Smrg  CONFIG_FILES    = $CONFIG_FILES
1217676910425Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
1217776910425Smrg  CONFIG_LINKS    = $CONFIG_LINKS
1217876910425Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
1217976910425Smrg  $ $0 $@
1218076910425Smrg
12181db17cd6dSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
12182db17cd6dSmrg"
12183db17cd6dSmrg
1218476910425Smrg_ACEOF
1218576910425Smrg
12186db17cd6dSmrgcase $ac_config_files in *"
12187db17cd6dSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
12188db17cd6dSmrgesac
1218976910425Smrg
12190db17cd6dSmrgcase $ac_config_headers in *"
12191db17cd6dSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12192db17cd6dSmrgesac
1219376910425Smrg
1219476910425Smrg
12195db17cd6dSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12196db17cd6dSmrg# Files that config.status was made for.
12197db17cd6dSmrgconfig_files="$ac_config_files"
12198db17cd6dSmrgconfig_headers="$ac_config_headers"
12199db17cd6dSmrgconfig_commands="$ac_config_commands"
1220076910425Smrg
12201db17cd6dSmrg_ACEOF
1220276910425Smrg
12203db17cd6dSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1220476910425Smrgac_cs_usage="\
122058bfe6addSmrg'$as_me' instantiates files and other configuration actions
12206482df631Smrgfrom templates according to the current configuration.  Unless the files
12207482df631Smrgand actions are specified as TAGs, all are instantiated by default.
1220876910425Smrg
12209482df631SmrgUsage: $0 [OPTION]... [TAG]...
1221076910425Smrg
1221176910425Smrg  -h, --help       print this help, then exit
12212db17cd6dSmrg  -V, --version    print version number and configuration settings, then exit
12213482df631Smrg      --config     print configuration, then exit
12214db17cd6dSmrg  -q, --quiet, --silent
12215db17cd6dSmrg                   do not print progress messages
1221676910425Smrg  -d, --debug      don't remove temporary files
1221776910425Smrg      --recheck    update $as_me by reconfiguring in the same conditions
12218db17cd6dSmrg      --file=FILE[:TEMPLATE]
12219db17cd6dSmrg                   instantiate the configuration file FILE
12220db17cd6dSmrg      --header=FILE[:TEMPLATE]
12221db17cd6dSmrg                   instantiate the configuration header FILE
1222276910425Smrg
1222376910425SmrgConfiguration files:
1222476910425Smrg$config_files
1222576910425Smrg
1222676910425SmrgConfiguration headers:
1222776910425Smrg$config_headers
1222876910425Smrg
1222976910425SmrgConfiguration commands:
1223076910425Smrg$config_commands
1223176910425Smrg
12232a67f45c3SmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/xkbevd/-/issues>."
1223376910425Smrg
12234db17cd6dSmrg_ACEOF
12235a67f45c3Smrgac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12236a67f45c3Smrgac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12237db17cd6dSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12238a67f45c3Smrgac_cs_config='$ac_cs_config_escaped'
1223976910425Smrgac_cs_version="\\
122408bfe6addSmrgxkbevd config.status 1.1.6
122418bfe6addSmrgconfigured by $0, generated by GNU Autoconf 2.72,
12242482df631Smrg  with options \\"\$ac_cs_config\\"
1224376910425Smrg
122448bfe6addSmrgCopyright (C) 2023 Free Software Foundation, Inc.
1224576910425SmrgThis config.status script is free software; the Free Software Foundation
1224676910425Smrggives unlimited permission to copy, distribute and modify it."
12247db17cd6dSmrg
12248db17cd6dSmrgac_pwd='$ac_pwd'
12249db17cd6dSmrgsrcdir='$srcdir'
12250db17cd6dSmrgINSTALL='$INSTALL'
12251db17cd6dSmrgMKDIR_P='$MKDIR_P'
12252db17cd6dSmrgAWK='$AWK'
12253db17cd6dSmrgtest -n "\$AWK" || AWK=awk
1225476910425Smrg_ACEOF
1225576910425Smrg
12256db17cd6dSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12257db17cd6dSmrg# The default lists apply if the user does not specify any file.
1225876910425Smrgac_need_defaults=:
1225976910425Smrgwhile test $# != 0
1226076910425Smrgdo
1226176910425Smrg  case $1 in
12262482df631Smrg  --*=?*)
12263db17cd6dSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12264db17cd6dSmrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1226576910425Smrg    ac_shift=:
1226676910425Smrg    ;;
12267482df631Smrg  --*=)
12268482df631Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12269482df631Smrg    ac_optarg=
12270482df631Smrg    ac_shift=:
12271482df631Smrg    ;;
12272db17cd6dSmrg  *)
1227376910425Smrg    ac_option=$1
1227476910425Smrg    ac_optarg=$2
1227576910425Smrg    ac_shift=shift
1227676910425Smrg    ;;
1227776910425Smrg  esac
1227876910425Smrg
1227976910425Smrg  case $ac_option in
1228076910425Smrg  # Handling of the options.
1228176910425Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1228276910425Smrg    ac_cs_recheck=: ;;
12283db17cd6dSmrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12284a67f45c3Smrg    printf "%s\n" "$ac_cs_version"; exit ;;
12285482df631Smrg  --config | --confi | --conf | --con | --co | --c )
12286a67f45c3Smrg    printf "%s\n" "$ac_cs_config"; exit ;;
12287db17cd6dSmrg  --debug | --debu | --deb | --de | --d | -d )
1228876910425Smrg    debug=: ;;
1228976910425Smrg  --file | --fil | --fi | --f )
1229076910425Smrg    $ac_shift
12291db17cd6dSmrg    case $ac_optarg in
12292a67f45c3Smrg    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12293482df631Smrg    '') as_fn_error $? "missing file argument" ;;
12294db17cd6dSmrg    esac
12295482df631Smrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
1229676910425Smrg    ac_need_defaults=false;;
1229776910425Smrg  --header | --heade | --head | --hea )
1229876910425Smrg    $ac_shift
12299db17cd6dSmrg    case $ac_optarg in
12300a67f45c3Smrg    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12301db17cd6dSmrg    esac
12302482df631Smrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1230376910425Smrg    ac_need_defaults=false;;
12304db17cd6dSmrg  --he | --h)
12305db17cd6dSmrg    # Conflict between --help and --header
123068bfe6addSmrg    as_fn_error $? "ambiguous option: '$1'
123078bfe6addSmrgTry '$0 --help' for more information.";;
12308db17cd6dSmrg  --help | --hel | -h )
12309a67f45c3Smrg    printf "%s\n" "$ac_cs_usage"; exit ;;
1231076910425Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1231176910425Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
1231276910425Smrg    ac_cs_silent=: ;;
1231376910425Smrg
1231476910425Smrg  # This is an error.
123158bfe6addSmrg  -*) as_fn_error $? "unrecognized option: '$1'
123168bfe6addSmrgTry '$0 --help' for more information." ;;
1231776910425Smrg
12318482df631Smrg  *) as_fn_append ac_config_targets " $1"
12319db17cd6dSmrg     ac_need_defaults=false ;;
1232076910425Smrg
1232176910425Smrg  esac
1232276910425Smrg  shift
1232376910425Smrgdone
1232476910425Smrg
1232576910425Smrgac_configure_extra_args=
1232676910425Smrg
1232776910425Smrgif $ac_cs_silent; then
1232876910425Smrg  exec 6>/dev/null
1232976910425Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
1233076910425Smrgfi
1233176910425Smrg
1233276910425Smrg_ACEOF
12333db17cd6dSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1233476910425Smrgif \$ac_cs_recheck; then
123359ff100acSmrg  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12336db17cd6dSmrg  shift
12337a67f45c3Smrg  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12338db17cd6dSmrg  CONFIG_SHELL='$SHELL'
12339db17cd6dSmrg  export CONFIG_SHELL
12340db17cd6dSmrg  exec "\$@"
1234176910425Smrgfi
1234276910425Smrg
1234376910425Smrg_ACEOF
12344db17cd6dSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12345db17cd6dSmrgexec 5>>config.log
12346db17cd6dSmrg{
12347db17cd6dSmrg  echo
12348db17cd6dSmrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12349db17cd6dSmrg## Running $as_me. ##
12350db17cd6dSmrg_ASBOX
12351a67f45c3Smrg  printf "%s\n" "$ac_log"
12352db17cd6dSmrg} >&5
1235376910425Smrg
12354db17cd6dSmrg_ACEOF
12355db17cd6dSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1235676910425Smrg#
12357db17cd6dSmrg# INIT-COMMANDS
1235876910425Smrg#
12359a67f45c3SmrgAMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
1236076910425Smrg
1236176910425Smrg_ACEOF
1236276910425Smrg
12363db17cd6dSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1236476910425Smrg
12365db17cd6dSmrg# Handling of arguments.
1236676910425Smrgfor ac_config_target in $ac_config_targets
1236776910425Smrgdo
12368db17cd6dSmrg  case $ac_config_target in
12369db17cd6dSmrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12370db17cd6dSmrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12371db17cd6dSmrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
123729ff100acSmrg    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12373db17cd6dSmrg
123748bfe6addSmrg  *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
1237576910425Smrg  esac
1237676910425Smrgdone
1237776910425Smrg
12378db17cd6dSmrg
1237976910425Smrg# If the user did not use the arguments to specify the items to instantiate,
1238076910425Smrg# then the envvar interface is used.  Set only those that are not.
1238176910425Smrg# We use the long form for the default assignment because of an extremely
1238276910425Smrg# bizarre bug on SunOS 4.1.3.
1238376910425Smrgif $ac_need_defaults; then
12384a67f45c3Smrg  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12385a67f45c3Smrg  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12386a67f45c3Smrg  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
1238776910425Smrgfi
1238876910425Smrg
1238976910425Smrg# Have a temporary directory for convenience.  Make it in the build tree
12390db17cd6dSmrg# simply because there is no reason against having it here, and in addition,
1239176910425Smrg# creating and moving files from /tmp can sometimes cause problems.
12392db17cd6dSmrg# Hook for its removal unless debugging.
12393db17cd6dSmrg# Note that there is a small window in which the directory will not be cleaned:
123948bfe6addSmrg# after its creation but before its name has been assigned to '$tmp'.
1239576910425Smrg$debug ||
1239676910425Smrg{
12397482df631Smrg  tmp= ac_tmp=
12398db17cd6dSmrg  trap 'exit_status=$?
12399482df631Smrg  : "${ac_tmp:=$tmp}"
12400482df631Smrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12401db17cd6dSmrg' 0
12402482df631Smrg  trap 'as_fn_exit 1' 1 2 13 15
1240376910425Smrg}
1240476910425Smrg# Create a (secure) tmp directory for tmp files.
1240576910425Smrg
1240676910425Smrg{
12407db17cd6dSmrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12408482df631Smrg  test -d "$tmp"
1240976910425Smrg}  ||
1241076910425Smrg{
12411db17cd6dSmrg  tmp=./conf$$-$RANDOM
12412db17cd6dSmrg  (umask 077 && mkdir "$tmp")
12413482df631Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12414482df631Smrgac_tmp=$tmp
1241576910425Smrg
12416db17cd6dSmrg# Set up the scripts for CONFIG_FILES section.
12417db17cd6dSmrg# No need to generate them if there are no CONFIG_FILES.
124188bfe6addSmrg# This happens for instance with './config.status config.h'.
12419db17cd6dSmrgif test -n "$CONFIG_FILES"; then
12420db17cd6dSmrg
12421db17cd6dSmrg
12422482df631Smrgac_cr=`echo X | tr X '\015'`
12423482df631Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
12424482df631Smrg# But we know of no other shell where ac_cr would be empty at this
12425482df631Smrg# point, so we can use a bashism as a fallback.
12426482df631Smrgif test "x$ac_cr" = x; then
12427482df631Smrg  eval ac_cr=\$\'\\r\'
12428482df631Smrgfi
12429db17cd6dSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12430db17cd6dSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12431db17cd6dSmrg  ac_cs_awk_cr='\\r'
12432db17cd6dSmrgelse
12433db17cd6dSmrg  ac_cs_awk_cr=$ac_cr
12434db17cd6dSmrgfi
12435db17cd6dSmrg
12436482df631Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
1243776910425Smrg_ACEOF
1243876910425Smrg
1243976910425Smrg
12440db17cd6dSmrg{
12441db17cd6dSmrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
12442db17cd6dSmrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12443db17cd6dSmrg  echo "_ACEOF"
12444db17cd6dSmrg} >conf$$subs.sh ||
12445482df631Smrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12446482df631Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12447db17cd6dSmrgac_delim='%!_!# '
12448db17cd6dSmrgfor ac_last_try in false false false false false :; do
12449db17cd6dSmrg  . ./conf$$subs.sh ||
12450482df631Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1245176910425Smrg
12452db17cd6dSmrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12453db17cd6dSmrg  if test $ac_delim_n = $ac_delim_num; then
12454db17cd6dSmrg    break
12455db17cd6dSmrg  elif $ac_last_try; then
12456482df631Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12457db17cd6dSmrg  else
12458db17cd6dSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12459db17cd6dSmrg  fi
12460db17cd6dSmrgdone
12461db17cd6dSmrgrm -f conf$$subs.sh
1246276910425Smrg
12463db17cd6dSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12464482df631Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
1246576910425Smrg_ACEOF
12466db17cd6dSmrgsed -n '
12467db17cd6dSmrgh
12468db17cd6dSmrgs/^/S["/; s/!.*/"]=/
12469db17cd6dSmrgp
12470db17cd6dSmrgg
12471db17cd6dSmrgs/^[^!]*!//
12472db17cd6dSmrg:repl
12473db17cd6dSmrgt repl
12474db17cd6dSmrgs/'"$ac_delim"'$//
12475db17cd6dSmrgt delim
12476db17cd6dSmrg:nl
12477db17cd6dSmrgh
12478482df631Smrgs/\(.\{148\}\)..*/\1/
12479db17cd6dSmrgt more1
12480db17cd6dSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12481db17cd6dSmrgp
12482db17cd6dSmrgn
12483db17cd6dSmrgb repl
12484db17cd6dSmrg:more1
12485db17cd6dSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
12486db17cd6dSmrgp
12487db17cd6dSmrgg
12488db17cd6dSmrgs/.\{148\}//
12489db17cd6dSmrgt nl
12490db17cd6dSmrg:delim
12491db17cd6dSmrgh
12492482df631Smrgs/\(.\{148\}\)..*/\1/
12493db17cd6dSmrgt more2
12494db17cd6dSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/
12495db17cd6dSmrgp
12496db17cd6dSmrgb
12497db17cd6dSmrg:more2
12498db17cd6dSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
12499db17cd6dSmrgp
12500db17cd6dSmrgg
12501db17cd6dSmrgs/.\{148\}//
12502db17cd6dSmrgt delim
12503db17cd6dSmrg' <conf$$subs.awk | sed '
12504db17cd6dSmrg/^[^""]/{
12505db17cd6dSmrg  N
12506db17cd6dSmrg  s/\n//
12507db17cd6dSmrg}
12508db17cd6dSmrg' >>$CONFIG_STATUS || ac_write_fail=1
12509db17cd6dSmrgrm -f conf$$subs.awk
12510db17cd6dSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12511db17cd6dSmrg_ACAWK
12512482df631Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12513db17cd6dSmrg  for (key in S) S_is_set[key] = 1
12514db17cd6dSmrg  FS = ""
1251576910425Smrg
12516db17cd6dSmrg}
12517db17cd6dSmrg{
12518db17cd6dSmrg  line = $ 0
12519db17cd6dSmrg  nfields = split(line, field, "@")
12520db17cd6dSmrg  substed = 0
12521db17cd6dSmrg  len = length(field[1])
12522db17cd6dSmrg  for (i = 2; i < nfields; i++) {
12523db17cd6dSmrg    key = field[i]
12524db17cd6dSmrg    keylen = length(key)
12525db17cd6dSmrg    if (S_is_set[key]) {
12526db17cd6dSmrg      value = S[key]
12527db17cd6dSmrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12528db17cd6dSmrg      len += length(value) + length(field[++i])
12529db17cd6dSmrg      substed = 1
12530db17cd6dSmrg    } else
12531db17cd6dSmrg      len += 1 + keylen
12532db17cd6dSmrg  }
12533db17cd6dSmrg
12534db17cd6dSmrg  print line
12535db17cd6dSmrg}
12536db17cd6dSmrg
12537db17cd6dSmrg_ACAWK
12538db17cd6dSmrg_ACEOF
12539db17cd6dSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12540db17cd6dSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12541db17cd6dSmrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12542db17cd6dSmrgelse
12543db17cd6dSmrg  cat
12544482df631Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12545482df631Smrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12546db17cd6dSmrg_ACEOF
12547db17cd6dSmrg
12548482df631Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12549482df631Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12550db17cd6dSmrg# trailing colons and then remove the whole line if VPATH becomes empty
12551db17cd6dSmrg# (actually we leave an empty line to preserve line numbers).
12552db17cd6dSmrgif test "x$srcdir" = x.; then
12553482df631Smrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12554482df631Smrgh
12555482df631Smrgs///
12556482df631Smrgs/^/:/
12557482df631Smrgs/[	 ]*$/:/
12558482df631Smrgs/:\$(srcdir):/:/g
12559482df631Smrgs/:\${srcdir}:/:/g
12560482df631Smrgs/:@srcdir@:/:/g
12561482df631Smrgs/^:*//
12562db17cd6dSmrgs/:*$//
12563482df631Smrgx
12564482df631Smrgs/\(=[	 ]*\).*/\1/
12565482df631SmrgG
12566482df631Smrgs/\n//
12567db17cd6dSmrgs/^[^=]*=[	 ]*$//
12568db17cd6dSmrg}'
12569db17cd6dSmrgfi
12570db17cd6dSmrg
12571db17cd6dSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1257276910425Smrgfi # test -n "$CONFIG_FILES"
1257376910425Smrg
12574db17cd6dSmrg# Set up the scripts for CONFIG_HEADERS section.
12575db17cd6dSmrg# No need to generate them if there are no CONFIG_HEADERS.
125768bfe6addSmrg# This happens for instance with './config.status Makefile'.
12577db17cd6dSmrgif test -n "$CONFIG_HEADERS"; then
12578482df631Smrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12579db17cd6dSmrgBEGIN {
1258076910425Smrg_ACEOF
12581db17cd6dSmrg
125828bfe6addSmrg# Transform confdefs.h into an awk script 'defines.awk', embedded as
12583db17cd6dSmrg# here-document in config.status, that substitutes the proper values into
12584db17cd6dSmrg# config.h.in to produce config.h.
12585db17cd6dSmrg
12586db17cd6dSmrg# Create a delimiter string that does not exist in confdefs.h, to ease
12587db17cd6dSmrg# handling of long lines.
12588db17cd6dSmrgac_delim='%!_!# '
12589db17cd6dSmrgfor ac_last_try in false false :; do
12590482df631Smrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12591482df631Smrg  if test -z "$ac_tt"; then
12592db17cd6dSmrg    break
12593db17cd6dSmrg  elif $ac_last_try; then
12594482df631Smrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12595db17cd6dSmrg  else
12596db17cd6dSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12597db17cd6dSmrg  fi
12598db17cd6dSmrgdone
12599db17cd6dSmrg
12600db17cd6dSmrg# For the awk script, D is an array of macro values keyed by name,
12601db17cd6dSmrg# likewise P contains macro parameters if any.  Preserve backslash
12602db17cd6dSmrg# newline sequences.
12603db17cd6dSmrg
12604db17cd6dSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12605db17cd6dSmrgsed -n '
12606db17cd6dSmrgs/.\{148\}/&'"$ac_delim"'/g
12607db17cd6dSmrgt rset
12608db17cd6dSmrg:rset
12609db17cd6dSmrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12610db17cd6dSmrgt def
12611db17cd6dSmrgd
12612db17cd6dSmrg:def
12613db17cd6dSmrgs/\\$//
12614db17cd6dSmrgt bsnl
12615db17cd6dSmrgs/["\\]/\\&/g
12616db17cd6dSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12617db17cd6dSmrgD["\1"]=" \3"/p
12618db17cd6dSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12619db17cd6dSmrgd
12620db17cd6dSmrg:bsnl
12621db17cd6dSmrgs/["\\]/\\&/g
12622db17cd6dSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12623db17cd6dSmrgD["\1"]=" \3\\\\\\n"\\/p
12624db17cd6dSmrgt cont
12625db17cd6dSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12626db17cd6dSmrgt cont
12627db17cd6dSmrgd
12628db17cd6dSmrg:cont
12629db17cd6dSmrgn
12630db17cd6dSmrgs/.\{148\}/&'"$ac_delim"'/g
12631db17cd6dSmrgt clear
12632db17cd6dSmrg:clear
12633db17cd6dSmrgs/\\$//
12634db17cd6dSmrgt bsnlc
12635db17cd6dSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
12636db17cd6dSmrgd
12637db17cd6dSmrg:bsnlc
12638db17cd6dSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12639db17cd6dSmrgb cont
12640db17cd6dSmrg' <confdefs.h | sed '
12641db17cd6dSmrgs/'"$ac_delim"'/"\\\
12642db17cd6dSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
12643db17cd6dSmrg
12644db17cd6dSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12645db17cd6dSmrg  for (key in D) D_is_set[key] = 1
12646db17cd6dSmrg  FS = ""
12647db17cd6dSmrg}
12648db17cd6dSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12649db17cd6dSmrg  line = \$ 0
12650db17cd6dSmrg  split(line, arg, " ")
12651db17cd6dSmrg  if (arg[1] == "#") {
12652db17cd6dSmrg    defundef = arg[2]
12653db17cd6dSmrg    mac1 = arg[3]
12654db17cd6dSmrg  } else {
12655db17cd6dSmrg    defundef = substr(arg[1], 2)
12656db17cd6dSmrg    mac1 = arg[2]
12657db17cd6dSmrg  }
12658db17cd6dSmrg  split(mac1, mac2, "(") #)
12659db17cd6dSmrg  macro = mac2[1]
12660db17cd6dSmrg  prefix = substr(line, 1, index(line, defundef) - 1)
12661db17cd6dSmrg  if (D_is_set[macro]) {
12662db17cd6dSmrg    # Preserve the white space surrounding the "#".
12663db17cd6dSmrg    print prefix "define", macro P[macro] D[macro]
12664db17cd6dSmrg    next
12665db17cd6dSmrg  } else {
12666db17cd6dSmrg    # Replace #undef with comments.  This is necessary, for example,
12667db17cd6dSmrg    # in the case of _POSIX_SOURCE, which is predefined and required
12668db17cd6dSmrg    # on some systems where configure will not decide to define it.
12669db17cd6dSmrg    if (defundef == "undef") {
12670db17cd6dSmrg      print "/*", prefix defundef, macro, "*/"
12671db17cd6dSmrg      next
12672db17cd6dSmrg    }
12673db17cd6dSmrg  }
12674db17cd6dSmrg}
12675db17cd6dSmrg{ print }
12676db17cd6dSmrg_ACAWK
12677db17cd6dSmrg_ACEOF
12678db17cd6dSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12679482df631Smrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12680db17cd6dSmrgfi # test -n "$CONFIG_HEADERS"
12681db17cd6dSmrg
12682db17cd6dSmrg
12683db17cd6dSmrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12684db17cd6dSmrgshift
12685db17cd6dSmrgfor ac_tag
12686db17cd6dSmrgdo
12687db17cd6dSmrg  case $ac_tag in
12688db17cd6dSmrg  :[FHLC]) ac_mode=$ac_tag; continue;;
12689db17cd6dSmrg  esac
12690db17cd6dSmrg  case $ac_mode$ac_tag in
12691db17cd6dSmrg  :[FHL]*:*);;
126928bfe6addSmrg  :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
12693db17cd6dSmrg  :[FH]-) ac_tag=-:-;;
12694db17cd6dSmrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12695db17cd6dSmrg  esac
12696db17cd6dSmrg  ac_save_IFS=$IFS
12697db17cd6dSmrg  IFS=:
12698db17cd6dSmrg  set x $ac_tag
12699db17cd6dSmrg  IFS=$ac_save_IFS
12700db17cd6dSmrg  shift
12701db17cd6dSmrg  ac_file=$1
12702db17cd6dSmrg  shift
12703db17cd6dSmrg
12704db17cd6dSmrg  case $ac_mode in
12705db17cd6dSmrg  :L) ac_source=$1;;
12706db17cd6dSmrg  :[FH])
12707db17cd6dSmrg    ac_file_inputs=
12708db17cd6dSmrg    for ac_f
12709db17cd6dSmrg    do
12710db17cd6dSmrg      case $ac_f in
12711482df631Smrg      -) ac_f="$ac_tmp/stdin";;
12712db17cd6dSmrg      *) # Look for the file first in the build tree, then in the source tree
12713db17cd6dSmrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
127148bfe6addSmrg	 # because $ac_f cannot contain ':'.
12715db17cd6dSmrg	 test -f "$ac_f" ||
12716db17cd6dSmrg	   case $ac_f in
12717db17cd6dSmrg	   [\\/$]*) false;;
12718db17cd6dSmrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12719db17cd6dSmrg	   esac ||
127208bfe6addSmrg	   as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
12721db17cd6dSmrg      esac
12722a67f45c3Smrg      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12723482df631Smrg      as_fn_append ac_file_inputs " '$ac_f'"
12724db17cd6dSmrg    done
12725db17cd6dSmrg
127268bfe6addSmrg    # Let's still pretend it is 'configure' which instantiates (i.e., don't
12727db17cd6dSmrg    # use $as_me), people would be surprised to read:
12728db17cd6dSmrg    #    /* config.h.  Generated by config.status.  */
12729db17cd6dSmrg    configure_input='Generated from '`
12730a67f45c3Smrg	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12731db17cd6dSmrg	`' by configure.'
12732db17cd6dSmrg    if test x"$ac_file" != x-; then
12733db17cd6dSmrg      configure_input="$ac_file.  $configure_input"
12734a67f45c3Smrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12735a67f45c3Smrgprintf "%s\n" "$as_me: creating $ac_file" >&6;}
12736db17cd6dSmrg    fi
12737db17cd6dSmrg    # Neutralize special characters interpreted by sed in replacement strings.
12738db17cd6dSmrg    case $configure_input in #(
12739db17cd6dSmrg    *\&* | *\|* | *\\* )
12740a67f45c3Smrg       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12741db17cd6dSmrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12742db17cd6dSmrg    *) ac_sed_conf_input=$configure_input;;
12743db17cd6dSmrg    esac
12744db17cd6dSmrg
12745db17cd6dSmrg    case $ac_tag in
12746482df631Smrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12747482df631Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12748db17cd6dSmrg    esac
12749db17cd6dSmrg    ;;
1275076910425Smrg  esac
1275176910425Smrg
12752db17cd6dSmrg  ac_dir=`$as_dirname -- "$ac_file" ||
1275376910425Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1275476910425Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
1275576910425Smrg	 X"$ac_file" : 'X\(//\)$' \| \
12756db17cd6dSmrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12757a67f45c3Smrgprintf "%s\n" X"$ac_file" |
12758db17cd6dSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12759db17cd6dSmrg	    s//\1/
12760db17cd6dSmrg	    q
12761db17cd6dSmrg	  }
12762db17cd6dSmrg	  /^X\(\/\/\)[^/].*/{
12763db17cd6dSmrg	    s//\1/
12764db17cd6dSmrg	    q
12765db17cd6dSmrg	  }
12766db17cd6dSmrg	  /^X\(\/\/\)$/{
12767db17cd6dSmrg	    s//\1/
12768db17cd6dSmrg	    q
12769db17cd6dSmrg	  }
12770db17cd6dSmrg	  /^X\(\/\).*/{
12771db17cd6dSmrg	    s//\1/
12772db17cd6dSmrg	    q
12773db17cd6dSmrg	  }
12774db17cd6dSmrg	  s/.*/./; q'`
12775482df631Smrg  as_dir="$ac_dir"; as_fn_mkdir_p
1277676910425Smrg  ac_builddir=.
1277776910425Smrg
12778db17cd6dSmrgcase "$ac_dir" in
12779db17cd6dSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12780db17cd6dSmrg*)
12781a67f45c3Smrg  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12782db17cd6dSmrg  # A ".." for each directory in $ac_dir_suffix.
12783a67f45c3Smrg  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12784db17cd6dSmrg  case $ac_top_builddir_sub in
12785db17cd6dSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12786db17cd6dSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12787db17cd6dSmrg  esac ;;
12788db17cd6dSmrgesac
12789db17cd6dSmrgac_abs_top_builddir=$ac_pwd
12790db17cd6dSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
12791db17cd6dSmrg# for backward compatibility:
12792db17cd6dSmrgac_top_builddir=$ac_top_build_prefix
1279376910425Smrg
1279476910425Smrgcase $srcdir in
12795db17cd6dSmrg  .)  # We are building in place.
1279676910425Smrg    ac_srcdir=.
12797db17cd6dSmrg    ac_top_srcdir=$ac_top_builddir_sub
12798db17cd6dSmrg    ac_abs_top_srcdir=$ac_pwd ;;
12799db17cd6dSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
1280076910425Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
12801db17cd6dSmrg    ac_top_srcdir=$srcdir
12802db17cd6dSmrg    ac_abs_top_srcdir=$srcdir ;;
12803db17cd6dSmrg  *) # Relative name.
12804db17cd6dSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12805db17cd6dSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
12806db17cd6dSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1280776910425Smrgesac
12808db17cd6dSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1280976910425Smrg
1281076910425Smrg
12811db17cd6dSmrg  case $ac_mode in
12812db17cd6dSmrg  :F)
12813db17cd6dSmrg  #
12814db17cd6dSmrg  # CONFIG_FILE
12815db17cd6dSmrg  #
1281676910425Smrg
1281776910425Smrg  case $INSTALL in
1281876910425Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12819db17cd6dSmrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
1282076910425Smrg  esac
12821db17cd6dSmrg  ac_MKDIR_P=$MKDIR_P
12822db17cd6dSmrg  case $MKDIR_P in
12823db17cd6dSmrg  [\\/$]* | ?:[\\/]* ) ;;
12824db17cd6dSmrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12825db17cd6dSmrg  esac
12826db17cd6dSmrg_ACEOF
1282776910425Smrg
12828db17cd6dSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12829db17cd6dSmrg# If the template does not know about datarootdir, expand it.
12830db17cd6dSmrg# FIXME: This hack should be removed a few years after 2.60.
12831db17cd6dSmrgac_datarootdir_hack=; ac_datarootdir_seen=
12832db17cd6dSmrgac_sed_dataroot='
12833db17cd6dSmrg/datarootdir/ {
12834db17cd6dSmrg  p
12835db17cd6dSmrg  q
12836db17cd6dSmrg}
12837db17cd6dSmrg/@datadir@/p
12838db17cd6dSmrg/@docdir@/p
12839db17cd6dSmrg/@infodir@/p
12840db17cd6dSmrg/@localedir@/p
12841482df631Smrg/@mandir@/p'
12842db17cd6dSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12843db17cd6dSmrg*datarootdir*) ac_datarootdir_seen=yes;;
12844db17cd6dSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12845a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12846a67f45c3Smrgprintf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12847db17cd6dSmrg_ACEOF
12848db17cd6dSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12849db17cd6dSmrg  ac_datarootdir_hack='
12850db17cd6dSmrg  s&@datadir@&$datadir&g
12851db17cd6dSmrg  s&@docdir@&$docdir&g
12852db17cd6dSmrg  s&@infodir@&$infodir&g
12853db17cd6dSmrg  s&@localedir@&$localedir&g
12854db17cd6dSmrg  s&@mandir@&$mandir&g
12855482df631Smrg  s&\\\${datarootdir}&$datarootdir&g' ;;
12856db17cd6dSmrgesac
1285776910425Smrg_ACEOF
12858db17cd6dSmrg
128598bfe6addSmrg# Neutralize VPATH when '$srcdir' = '.'.
12860db17cd6dSmrg# Shell code in configure.ac might set extrasub.
12861db17cd6dSmrg# FIXME: do we really want to maintain this feature?
12862db17cd6dSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12863db17cd6dSmrgac_sed_extra="$ac_vpsub
1286476910425Smrg$extrasub
1286576910425Smrg_ACEOF
12866db17cd6dSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1286776910425Smrg:t
1286876910425Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12869db17cd6dSmrgs|@configure_input@|$ac_sed_conf_input|;t t
12870db17cd6dSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t
12871db17cd6dSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
12872db17cd6dSmrgs&@srcdir@&$ac_srcdir&;t t
12873db17cd6dSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
12874db17cd6dSmrgs&@top_srcdir@&$ac_top_srcdir&;t t
12875db17cd6dSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12876db17cd6dSmrgs&@builddir@&$ac_builddir&;t t
12877db17cd6dSmrgs&@abs_builddir@&$ac_abs_builddir&;t t
12878db17cd6dSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12879db17cd6dSmrgs&@INSTALL@&$ac_INSTALL&;t t
12880db17cd6dSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
12881db17cd6dSmrg$ac_datarootdir_hack
12882db17cd6dSmrg"
12883482df631Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12884482df631Smrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1288576910425Smrg
12886db17cd6dSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12887482df631Smrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12888482df631Smrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12889482df631Smrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
128908bfe6addSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
12891482df631Smrgwhich seems to be undefined.  Please make sure it is defined" >&5
128928bfe6addSmrgprintf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
12893482df631Smrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
1289476910425Smrg
12895482df631Smrg  rm -f "$ac_tmp/stdin"
1289676910425Smrg  case $ac_file in
12897482df631Smrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12898482df631Smrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12899db17cd6dSmrg  esac \
12900482df631Smrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12901db17cd6dSmrg ;;
12902db17cd6dSmrg  :H)
12903db17cd6dSmrg  #
12904db17cd6dSmrg  # CONFIG_HEADER
12905db17cd6dSmrg  #
1290676910425Smrg  if test x"$ac_file" != x-; then
12907db17cd6dSmrg    {
12908a67f45c3Smrg      printf "%s\n" "/* $configure_input  */" >&1 \
12909482df631Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12910482df631Smrg    } >"$ac_tmp/config.h" \
12911482df631Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12912482df631Smrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12913a67f45c3Smrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12914a67f45c3Smrgprintf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
1291576910425Smrg    else
12916db17cd6dSmrg      rm -f "$ac_file"
12917482df631Smrg      mv "$ac_tmp/config.h" "$ac_file" \
12918482df631Smrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
1291976910425Smrg    fi
1292076910425Smrg  else
12921a67f45c3Smrg    printf "%s\n" "/* $configure_input  */" >&1 \
12922482df631Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12923482df631Smrg      || as_fn_error $? "could not create -" "$LINENO" 5
1292476910425Smrg  fi
12925db17cd6dSmrg# Compute "$ac_file"'s index in $config_headers.
12926db17cd6dSmrg_am_arg="$ac_file"
1292776910425Smrg_am_stamp_count=1
1292876910425Smrgfor _am_header in $config_headers :; do
1292976910425Smrg  case $_am_header in
12930db17cd6dSmrg    $_am_arg | $_am_arg:* )
1293176910425Smrg      break ;;
1293276910425Smrg    * )
1293376910425Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
1293476910425Smrg  esac
1293576910425Smrgdone
12936db17cd6dSmrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12937db17cd6dSmrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12938db17cd6dSmrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12939db17cd6dSmrg	 X"$_am_arg" : 'X\(//\)$' \| \
12940db17cd6dSmrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12941a67f45c3Smrgprintf "%s\n" X"$_am_arg" |
12942db17cd6dSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12943db17cd6dSmrg	    s//\1/
12944db17cd6dSmrg	    q
12945db17cd6dSmrg	  }
12946db17cd6dSmrg	  /^X\(\/\/\)[^/].*/{
12947db17cd6dSmrg	    s//\1/
12948db17cd6dSmrg	    q
12949db17cd6dSmrg	  }
12950db17cd6dSmrg	  /^X\(\/\/\)$/{
12951db17cd6dSmrg	    s//\1/
12952db17cd6dSmrg	    q
12953db17cd6dSmrg	  }
12954db17cd6dSmrg	  /^X\(\/\).*/{
12955db17cd6dSmrg	    s//\1/
12956db17cd6dSmrg	    q
12957db17cd6dSmrg	  }
12958db17cd6dSmrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
12959db17cd6dSmrg ;;
1296076910425Smrg
12961a67f45c3Smrg  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12962a67f45c3Smrgprintf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12963db17cd6dSmrg ;;
12964db17cd6dSmrg  esac
1296576910425Smrg
1296676910425Smrg
12967db17cd6dSmrg  case $ac_file$ac_mode in
12968db17cd6dSmrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
129699ff100acSmrg  # Older Autoconf quotes --file arguments for eval, but not when files
12970db17cd6dSmrg  # are listed without --file.  Let's play safe and only enable the eval
12971db17cd6dSmrg  # if we detect the quoting.
12972a67f45c3Smrg  # TODO: see whether this extra hack can be removed once we start
12973a67f45c3Smrg  # requiring Autoconf 2.70 or later.
12974a67f45c3Smrg  case $CONFIG_FILES in #(
12975a67f45c3Smrg  *\'*) :
12976a67f45c3Smrg    eval set x "$CONFIG_FILES" ;; #(
12977a67f45c3Smrg  *) :
12978a67f45c3Smrg    set x $CONFIG_FILES ;; #(
12979a67f45c3Smrg  *) :
12980a67f45c3Smrg     ;;
12981a67f45c3Smrgesac
12982db17cd6dSmrg  shift
12983a67f45c3Smrg  # Used to flag and report bootstrapping failures.
12984a67f45c3Smrg  am_rc=0
12985a67f45c3Smrg  for am_mf
12986db17cd6dSmrg  do
12987db17cd6dSmrg    # Strip MF so we end up with the name of the file.
12988a67f45c3Smrg    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12989a67f45c3Smrg    # Check whether this is an Automake generated Makefile which includes
12990a67f45c3Smrg    # dependency-tracking related rules and includes.
12991a67f45c3Smrg    # Grep'ing the whole file directly is not great: AIX grep has a line
12992db17cd6dSmrg    # limit of 2048, but all sed's we know have understand at least 4000.
12993a67f45c3Smrg    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12994a67f45c3Smrg      || continue
12995a67f45c3Smrg    am_dirpart=`$as_dirname -- "$am_mf" ||
12996a67f45c3Smrg$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12997a67f45c3Smrg	 X"$am_mf" : 'X\(//\)[^/]' \| \
12998a67f45c3Smrg	 X"$am_mf" : 'X\(//\)$' \| \
12999a67f45c3Smrg	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13000a67f45c3Smrgprintf "%s\n" X"$am_mf" |
13001db17cd6dSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13002db17cd6dSmrg	    s//\1/
13003db17cd6dSmrg	    q
13004db17cd6dSmrg	  }
13005db17cd6dSmrg	  /^X\(\/\/\)[^/].*/{
13006db17cd6dSmrg	    s//\1/
13007db17cd6dSmrg	    q
13008db17cd6dSmrg	  }
13009db17cd6dSmrg	  /^X\(\/\/\)$/{
13010db17cd6dSmrg	    s//\1/
13011db17cd6dSmrg	    q
13012db17cd6dSmrg	  }
13013db17cd6dSmrg	  /^X\(\/\).*/{
13014db17cd6dSmrg	    s//\1/
13015db17cd6dSmrg	    q
13016db17cd6dSmrg	  }
13017db17cd6dSmrg	  s/.*/./; q'`
13018a67f45c3Smrg    am_filepart=`$as_basename -- "$am_mf" ||
13019a67f45c3Smrg$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13020a67f45c3Smrg	 X"$am_mf" : 'X\(//\)$' \| \
13021a67f45c3Smrg	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13022a67f45c3Smrgprintf "%s\n" X/"$am_mf" |
13023a67f45c3Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
13024db17cd6dSmrg	    s//\1/
13025db17cd6dSmrg	    q
13026db17cd6dSmrg	  }
13027a67f45c3Smrg	  /^X\/\(\/\/\)$/{
13028db17cd6dSmrg	    s//\1/
13029db17cd6dSmrg	    q
13030db17cd6dSmrg	  }
13031a67f45c3Smrg	  /^X\/\(\/\).*/{
13032db17cd6dSmrg	    s//\1/
13033db17cd6dSmrg	    q
13034db17cd6dSmrg	  }
13035db17cd6dSmrg	  s/.*/./; q'`
13036a67f45c3Smrg    { echo "$as_me:$LINENO: cd "$am_dirpart" \
13037a67f45c3Smrg      && sed -e '/# am--include-marker/d' "$am_filepart" \
13038a67f45c3Smrg        | $MAKE -f - am--depfiles" >&5
13039a67f45c3Smrg   (cd "$am_dirpart" \
13040a67f45c3Smrg      && sed -e '/# am--include-marker/d' "$am_filepart" \
13041a67f45c3Smrg        | $MAKE -f - am--depfiles) >&5 2>&5
13042a67f45c3Smrg   ac_status=$?
13043a67f45c3Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044a67f45c3Smrg   (exit $ac_status); } || am_rc=$?
1304576910425Smrg  done
13046a67f45c3Smrg  if test $am_rc -ne 0; then
130478bfe6addSmrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
130488bfe6addSmrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13049a67f45c3Smrgas_fn_error $? "Something went wrong bootstrapping makefile fragments
13050a67f45c3Smrg    for automatic dependency tracking.  If GNU make was not used, consider
13051a67f45c3Smrg    re-running the configure script with MAKE=\"gmake\" (or whatever is
13052a67f45c3Smrg    necessary).  You can also try re-running configure with the
13053a67f45c3Smrg    '--disable-dependency-tracking' option to at least be able to build
13054a67f45c3Smrg    the package (albeit without support for automatic dependency tracking).
130558bfe6addSmrgSee 'config.log' for more details" "$LINENO" 5; }
13056a67f45c3Smrg  fi
13057a67f45c3Smrg  { am_dirpart=; unset am_dirpart;}
13058a67f45c3Smrg  { am_filepart=; unset am_filepart;}
13059a67f45c3Smrg  { am_mf=; unset am_mf;}
13060a67f45c3Smrg  { am_rc=; unset am_rc;}
13061a67f45c3Smrg  rm -f conftest-deps.mk
13062db17cd6dSmrg}
1306376910425Smrg ;;
13064db17cd6dSmrg
1306576910425Smrg  esac
13066db17cd6dSmrgdone # for ac_tag
1306776910425Smrg
1306876910425Smrg
13069482df631Smrgas_fn_exit 0
1307076910425Smrg_ACEOF
1307176910425Smrgac_clean_files=$ac_clean_files_save
1307276910425Smrg
13073db17cd6dSmrgtest $ac_write_fail = 0 ||
13074482df631Smrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13075db17cd6dSmrg
1307676910425Smrg
1307776910425Smrg# configure is writing to config.log, and then calls config.status.
1307876910425Smrg# config.status does its own redirection, appending to config.log.
1307976910425Smrg# Unfortunately, on DOS this fails, as config.log is still kept open
1308076910425Smrg# by configure, so config.status won't be able to write to it; its
1308176910425Smrg# output is simply discarded.  So we exec the FD to /dev/null,
1308276910425Smrg# effectively closing config.log, so it can be properly (re)opened and
1308376910425Smrg# appended to by config.status.  When coming back to configure, we
1308476910425Smrg# need to make the FD available again.
1308576910425Smrgif test "$no_create" != yes; then
1308676910425Smrg  ac_cs_success=:
1308776910425Smrg  ac_config_status_args=
1308876910425Smrg  test "$silent" = yes &&
1308976910425Smrg    ac_config_status_args="$ac_config_status_args --quiet"
1309076910425Smrg  exec 5>/dev/null
1309176910425Smrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
1309276910425Smrg  exec 5>>config.log
1309376910425Smrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
1309476910425Smrg  # would make configure fail if this is the last instruction.
13095482df631Smrg  $ac_cs_success || as_fn_exit 1
1309676910425Smrgfi
13097db17cd6dSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13098a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13099a67f45c3Smrgprintf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13100db17cd6dSmrgfi
1310176910425Smrg
13102a67f45c3Smrg
13103