configure revision c048b52e
19fe995a9Smrg#! /bin/sh
29fe995a9Smrg# Guess values for system-dependent variables and create Makefiles.
3c048b52eSmrg# Generated by GNU Autoconf 2.71 for iceauth 1.0.9.
49fe995a9Smrg#
5c048b52eSmrg# Report bugs to <https://gitlab.freedesktop.org/xorg/app/iceauth/issues>.
69fe995a9Smrg#
7b62cc08cSmrg#
8c048b52eSmrg# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9c048b52eSmrg# Inc.
10b62cc08cSmrg#
11b62cc08cSmrg#
129fe995a9Smrg# This configure script is free software; the Free Software Foundation
139fe995a9Smrg# gives unlimited permission to copy, distribute and modify it.
14b62cc08cSmrg## -------------------- ##
15b62cc08cSmrg## M4sh Initialization. ##
16b62cc08cSmrg## -------------------- ##
179fe995a9Smrg
189fe995a9Smrg# Be more Bourne compatible
199fe995a9SmrgDUALCASE=1; export DUALCASE # for MKS sh
20c048b52eSmrgas_nop=:
21c048b52eSmrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22c048b52eSmrgthen :
239fe995a9Smrg  emulate sh
249fe995a9Smrg  NULLCMD=:
25b62cc08cSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
269fe995a9Smrg  # is contrary to our usage.  Disable this feature.
279fe995a9Smrg  alias -g '${1+"$@"}'='"$@"'
289fe995a9Smrg  setopt NO_GLOB_SUBST
29c048b52eSmrgelse $as_nop
30b62cc08cSmrg  case `(set -o) 2>/dev/null` in #(
31b62cc08cSmrg  *posix*) :
32b62cc08cSmrg    set -o posix ;; #(
33b62cc08cSmrg  *) :
34b62cc08cSmrg     ;;
359fe995a9Smrgesac
369fe995a9Smrgfi
379fe995a9Smrg
389fe995a9Smrg
39c048b52eSmrg
40c048b52eSmrg# Reset variables that may have inherited troublesome values from
41c048b52eSmrg# the environment.
42c048b52eSmrg
43c048b52eSmrg# IFS needs to be set, to space, tab, and newline, in precisely that order.
44c048b52eSmrg# (If _AS_PATH_WALK were called with IFS unset, it would have the
45c048b52eSmrg# side effect of setting IFS to empty, thus disabling word splitting.)
46c048b52eSmrg# Quoting is to prevent editors from complaining about space-tab.
47b62cc08cSmrgas_nl='
48b62cc08cSmrg'
49b62cc08cSmrgexport as_nl
50c048b52eSmrgIFS=" ""	$as_nl"
51c048b52eSmrg
52c048b52eSmrgPS1='$ '
53c048b52eSmrgPS2='> '
54c048b52eSmrgPS4='+ '
55c048b52eSmrg
56c048b52eSmrg# Ensure predictable behavior from utilities with locale-dependent output.
57c048b52eSmrgLC_ALL=C
58c048b52eSmrgexport LC_ALL
59c048b52eSmrgLANGUAGE=C
60c048b52eSmrgexport LANGUAGE
61c048b52eSmrg
62c048b52eSmrg# We cannot yet rely on "unset" to work, but we need these variables
63c048b52eSmrg# to be unset--not just set to an empty or harmless value--now, to
64c048b52eSmrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65c048b52eSmrg# also avoids known problems related to "unset" and subshell syntax
66c048b52eSmrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67c048b52eSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68c048b52eSmrgdo eval test \${$as_var+y} \
69c048b52eSmrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70c048b52eSmrgdone
71c048b52eSmrg
72c048b52eSmrg# Ensure that fds 0, 1, and 2 are open.
73c048b52eSmrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74c048b52eSmrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75c048b52eSmrgif (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
769fe995a9Smrg
77b62cc08cSmrg# The user is always right.
78c048b52eSmrgif ${PATH_SEPARATOR+false} :; then
79b62cc08cSmrg  PATH_SEPARATOR=:
80b62cc08cSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81b62cc08cSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82b62cc08cSmrg      PATH_SEPARATOR=';'
83b62cc08cSmrg  }
849fe995a9Smrgfi
859fe995a9Smrg
869fe995a9Smrg
879fe995a9Smrg# Find who we are.  Look in the path if we contain no directory separator.
88b62cc08cSmrgas_myself=
89b62cc08cSmrgcase $0 in #((
909fe995a9Smrg  *[\\/]* ) as_myself=$0 ;;
919fe995a9Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
929fe995a9Smrgfor as_dir in $PATH
939fe995a9Smrgdo
949fe995a9Smrg  IFS=$as_save_IFS
95c048b52eSmrg  case $as_dir in #(((
96c048b52eSmrg    '') as_dir=./ ;;
97c048b52eSmrg    */) ;;
98c048b52eSmrg    *) as_dir=$as_dir/ ;;
99c048b52eSmrg  esac
100c048b52eSmrg    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101b62cc08cSmrg  done
1029fe995a9SmrgIFS=$as_save_IFS
1039fe995a9Smrg
1049fe995a9Smrg     ;;
1059fe995a9Smrgesac
1069fe995a9Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
1079fe995a9Smrg# in which case we are not to be found in the path.
1089fe995a9Smrgif test "x$as_myself" = x; then
1099fe995a9Smrg  as_myself=$0
1109fe995a9Smrgfi
1119fe995a9Smrgif test ! -f "$as_myself"; then
112c048b52eSmrg  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113b62cc08cSmrg  exit 1
1149fe995a9Smrgfi
1159fe995a9Smrg
1169fe995a9Smrg
117e8ac26b0Smrg# Use a proper internal environment variable to ensure we don't fall
118e8ac26b0Smrg  # into an infinite loop, continuously re-executing ourselves.
119e8ac26b0Smrg  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120e8ac26b0Smrg    _as_can_reexec=no; export _as_can_reexec;
121e8ac26b0Smrg    # We cannot yet assume a decent shell, so we have to provide a
122e8ac26b0Smrg# neutralization value for shells without unset; and this also
123e8ac26b0Smrg# works around shells that cannot unset nonexistent variables.
124e8ac26b0Smrg# Preserve -v and -x to the replacement shell.
125e8ac26b0SmrgBASH_ENV=/dev/null
126e8ac26b0SmrgENV=/dev/null
127e8ac26b0Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128e8ac26b0Smrgcase $- in # ((((
129e8ac26b0Smrg  *v*x* | *x*v* ) as_opts=-vx ;;
130e8ac26b0Smrg  *v* ) as_opts=-v ;;
131e8ac26b0Smrg  *x* ) as_opts=-x ;;
132e8ac26b0Smrg  * ) as_opts= ;;
133e8ac26b0Smrgesac
134e8ac26b0Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135e8ac26b0Smrg# Admittedly, this is quite paranoid, since all the known shells bail
136e8ac26b0Smrg# out after a failed `exec'.
137c048b52eSmrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138c048b52eSmrgexit 255
139e8ac26b0Smrg  fi
140e8ac26b0Smrg  # We don't want this to propagate to other subprocesses.
141e8ac26b0Smrg          { _as_can_reexec=; unset _as_can_reexec;}
1429fe995a9Smrgif test "x$CONFIG_SHELL" = x; then
143c048b52eSmrg  as_bourne_compatible="as_nop=:
144c048b52eSmrgif test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145c048b52eSmrgthen :
146b62cc08cSmrg  emulate sh
147b62cc08cSmrg  NULLCMD=:
148b62cc08cSmrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149b62cc08cSmrg  # is contrary to our usage.  Disable this feature.
150b62cc08cSmrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151b62cc08cSmrg  setopt NO_GLOB_SUBST
152c048b52eSmrgelse \$as_nop
153b62cc08cSmrg  case \`(set -o) 2>/dev/null\` in #(
154b62cc08cSmrg  *posix*) :
155b62cc08cSmrg    set -o posix ;; #(
156b62cc08cSmrg  *) :
157b62cc08cSmrg     ;;
158b62cc08cSmrgesac
1599fe995a9Smrgfi
160b62cc08cSmrg"
161b62cc08cSmrg  as_required="as_fn_return () { (exit \$1); }
162b62cc08cSmrgas_fn_success () { as_fn_return 0; }
163b62cc08cSmrgas_fn_failure () { as_fn_return 1; }
164b62cc08cSmrgas_fn_ret_success () { return 0; }
165b62cc08cSmrgas_fn_ret_failure () { return 1; }
1669fe995a9Smrg
1679fe995a9Smrgexitcode=0
168b62cc08cSmrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
169b62cc08cSmrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170b62cc08cSmrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171b62cc08cSmrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172c048b52eSmrgif ( set x; as_fn_ret_success y && test x = \"\$1\" )
173c048b52eSmrgthen :
1749fe995a9Smrg
175c048b52eSmrgelse \$as_nop
176b62cc08cSmrg  exitcode=1; echo positional parameters were not saved.
177b62cc08cSmrgfi
178e8ac26b0Smrgtest x\$exitcode = x0 || exit 1
179c048b52eSmrgblah=\$(echo \$(echo blah))
180c048b52eSmrgtest x\"\$blah\" = xblah || exit 1
181e8ac26b0Smrgtest -x / || exit 1"
182b62cc08cSmrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183b62cc08cSmrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184b62cc08cSmrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185b62cc08cSmrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186b62cc08cSmrgtest \$(( 1 + 1 )) = 2 || exit 1"
187c048b52eSmrg  if (eval "$as_required") 2>/dev/null
188c048b52eSmrgthen :
189b62cc08cSmrg  as_have_required=yes
190c048b52eSmrgelse $as_nop
191b62cc08cSmrg  as_have_required=no
1929fe995a9Smrgfi
193c048b52eSmrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194c048b52eSmrgthen :
1959fe995a9Smrg
196c048b52eSmrgelse $as_nop
197b62cc08cSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198b62cc08cSmrgas_found=false
1999fe995a9Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
2009fe995a9Smrgdo
2019fe995a9Smrg  IFS=$as_save_IFS
202c048b52eSmrg  case $as_dir in #(((
203c048b52eSmrg    '') as_dir=./ ;;
204c048b52eSmrg    */) ;;
205c048b52eSmrg    *) as_dir=$as_dir/ ;;
206c048b52eSmrg  esac
207b62cc08cSmrg  as_found=:
208b62cc08cSmrg  case $as_dir in #(
2099fe995a9Smrg	 /*)
2109fe995a9Smrg	   for as_base in sh bash ksh sh5; do
211b62cc08cSmrg	     # Try only shells that exist, to save several forks.
212c048b52eSmrg	     as_shell=$as_dir$as_base
213b62cc08cSmrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214c048b52eSmrg		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215c048b52eSmrgthen :
216b62cc08cSmrg  CONFIG_SHELL=$as_shell as_have_required=yes
217c048b52eSmrg		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218c048b52eSmrgthen :
219b62cc08cSmrg  break 2
220b62cc08cSmrgfi
221b62cc08cSmrgfi
2229fe995a9Smrg	   done;;
2239fe995a9Smrg       esac
224b62cc08cSmrg  as_found=false
2259fe995a9Smrgdone
2269fe995a9SmrgIFS=$as_save_IFS
227c048b52eSmrgif $as_found
228c048b52eSmrgthen :
229c048b52eSmrg
230c048b52eSmrgelse $as_nop
231c048b52eSmrg  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232c048b52eSmrg	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233c048b52eSmrgthen :
234c048b52eSmrg  CONFIG_SHELL=$SHELL as_have_required=yes
235c048b52eSmrgfi
236c048b52eSmrgfi
2379fe995a9Smrg
2389fe995a9Smrg
239c048b52eSmrg      if test "x$CONFIG_SHELL" != x
240c048b52eSmrgthen :
241e8ac26b0Smrg  export CONFIG_SHELL
242e8ac26b0Smrg             # We cannot yet assume a decent shell, so we have to provide a
243e8ac26b0Smrg# neutralization value for shells without unset; and this also
244e8ac26b0Smrg# works around shells that cannot unset nonexistent variables.
245e8ac26b0Smrg# Preserve -v and -x to the replacement shell.
246e8ac26b0SmrgBASH_ENV=/dev/null
247e8ac26b0SmrgENV=/dev/null
248e8ac26b0Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249e8ac26b0Smrgcase $- in # ((((
250e8ac26b0Smrg  *v*x* | *x*v* ) as_opts=-vx ;;
251e8ac26b0Smrg  *v* ) as_opts=-v ;;
252e8ac26b0Smrg  *x* ) as_opts=-x ;;
253e8ac26b0Smrg  * ) as_opts= ;;
254e8ac26b0Smrgesac
255e8ac26b0Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256e8ac26b0Smrg# Admittedly, this is quite paranoid, since all the known shells bail
257e8ac26b0Smrg# out after a failed `exec'.
258c048b52eSmrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259e8ac26b0Smrgexit 255
2609fe995a9Smrgfi
2619fe995a9Smrg
262c048b52eSmrg    if test x$as_have_required = xno
263c048b52eSmrgthen :
264c048b52eSmrg  printf "%s\n" "$0: This script requires a shell more modern than all"
265c048b52eSmrg  printf "%s\n" "$0: the shells that I found on your system."
266c048b52eSmrg  if test ${ZSH_VERSION+y} ; then
267c048b52eSmrg    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268c048b52eSmrg    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269b62cc08cSmrg  else
270c048b52eSmrg    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
271c048b52eSmrg$0: https://gitlab.freedesktop.org/xorg/app/iceauth/issues
272b62cc08cSmrg$0: about your system, including any error possibly output
273b62cc08cSmrg$0: before this message. Then install a modern shell, or
274b62cc08cSmrg$0: manually run the script under such a shell if you do
275b62cc08cSmrg$0: have one."
276b62cc08cSmrg  fi
277b62cc08cSmrg  exit 1
2789fe995a9Smrgfi
279b62cc08cSmrgfi
280b62cc08cSmrgfi
281b62cc08cSmrgSHELL=${CONFIG_SHELL-/bin/sh}
282b62cc08cSmrgexport SHELL
283b62cc08cSmrg# Unset more variables known to interfere with behavior of common tools.
284b62cc08cSmrgCLICOLOR_FORCE= GREP_OPTIONS=
285b62cc08cSmrgunset CLICOLOR_FORCE GREP_OPTIONS
2869fe995a9Smrg
287b62cc08cSmrg## --------------------- ##
288b62cc08cSmrg## M4sh Shell Functions. ##
289b62cc08cSmrg## --------------------- ##
290b62cc08cSmrg# as_fn_unset VAR
291b62cc08cSmrg# ---------------
292b62cc08cSmrg# Portably unset VAR.
293b62cc08cSmrgas_fn_unset ()
294b62cc08cSmrg{
295b62cc08cSmrg  { eval $1=; unset $1;}
2969fe995a9Smrg}
297b62cc08cSmrgas_unset=as_fn_unset
2989fe995a9Smrg
299c048b52eSmrg
300b62cc08cSmrg# as_fn_set_status STATUS
301b62cc08cSmrg# -----------------------
302b62cc08cSmrg# Set $? to STATUS, without forking.
303b62cc08cSmrgas_fn_set_status ()
304b62cc08cSmrg{
305b62cc08cSmrg  return $1
306b62cc08cSmrg} # as_fn_set_status
3079fe995a9Smrg
308b62cc08cSmrg# as_fn_exit STATUS
309b62cc08cSmrg# -----------------
310b62cc08cSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
311b62cc08cSmrgas_fn_exit ()
312b62cc08cSmrg{
313b62cc08cSmrg  set +e
314b62cc08cSmrg  as_fn_set_status $1
315b62cc08cSmrg  exit $1
316b62cc08cSmrg} # as_fn_exit
317c048b52eSmrg# as_fn_nop
318c048b52eSmrg# ---------
319c048b52eSmrg# Do nothing but, unlike ":", preserve the value of $?.
320c048b52eSmrgas_fn_nop ()
321c048b52eSmrg{
322c048b52eSmrg  return $?
323c048b52eSmrg}
324c048b52eSmrgas_nop=as_fn_nop
325b62cc08cSmrg
326b62cc08cSmrg# as_fn_mkdir_p
327b62cc08cSmrg# -------------
328b62cc08cSmrg# Create "$as_dir" as a directory, including parents if necessary.
329b62cc08cSmrgas_fn_mkdir_p ()
330b62cc08cSmrg{
3319fe995a9Smrg
332b62cc08cSmrg  case $as_dir in #(
333b62cc08cSmrg  -*) as_dir=./$as_dir;;
334b62cc08cSmrg  esac
335b62cc08cSmrg  test -d "$as_dir" || eval $as_mkdir_p || {
336b62cc08cSmrg    as_dirs=
337b62cc08cSmrg    while :; do
338b62cc08cSmrg      case $as_dir in #(
339c048b52eSmrg      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340b62cc08cSmrg      *) as_qdir=$as_dir;;
341b62cc08cSmrg      esac
342b62cc08cSmrg      as_dirs="'$as_qdir' $as_dirs"
343b62cc08cSmrg      as_dir=`$as_dirname -- "$as_dir" ||
344b62cc08cSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345b62cc08cSmrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
346b62cc08cSmrg	 X"$as_dir" : 'X\(//\)$' \| \
347b62cc08cSmrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348c048b52eSmrgprintf "%s\n" X"$as_dir" |
349b62cc08cSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350b62cc08cSmrg	    s//\1/
351b62cc08cSmrg	    q
352b62cc08cSmrg	  }
353b62cc08cSmrg	  /^X\(\/\/\)[^/].*/{
354b62cc08cSmrg	    s//\1/
355b62cc08cSmrg	    q
356b62cc08cSmrg	  }
357b62cc08cSmrg	  /^X\(\/\/\)$/{
358b62cc08cSmrg	    s//\1/
359b62cc08cSmrg	    q
360b62cc08cSmrg	  }
361b62cc08cSmrg	  /^X\(\/\).*/{
362b62cc08cSmrg	    s//\1/
363b62cc08cSmrg	    q
364b62cc08cSmrg	  }
365b62cc08cSmrg	  s/.*/./; q'`
366b62cc08cSmrg      test -d "$as_dir" && break
367b62cc08cSmrg    done
368b62cc08cSmrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
369b62cc08cSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370b62cc08cSmrg
371b62cc08cSmrg
372b62cc08cSmrg} # as_fn_mkdir_p
373e8ac26b0Smrg
374e8ac26b0Smrg# as_fn_executable_p FILE
375e8ac26b0Smrg# -----------------------
376e8ac26b0Smrg# Test if FILE is an executable regular file.
377e8ac26b0Smrgas_fn_executable_p ()
378e8ac26b0Smrg{
379e8ac26b0Smrg  test -f "$1" && test -x "$1"
380e8ac26b0Smrg} # as_fn_executable_p
381b62cc08cSmrg# as_fn_append VAR VALUE
382b62cc08cSmrg# ----------------------
383b62cc08cSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take
384b62cc08cSmrg# advantage of any shell optimizations that allow amortized linear growth over
385b62cc08cSmrg# repeated appends, instead of the typical quadratic growth present in naive
386b62cc08cSmrg# implementations.
387c048b52eSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388c048b52eSmrgthen :
389b62cc08cSmrg  eval 'as_fn_append ()
390b62cc08cSmrg  {
391b62cc08cSmrg    eval $1+=\$2
392b62cc08cSmrg  }'
393c048b52eSmrgelse $as_nop
394b62cc08cSmrg  as_fn_append ()
395b62cc08cSmrg  {
396b62cc08cSmrg    eval $1=\$$1\$2
397b62cc08cSmrg  }
398b62cc08cSmrgfi # as_fn_append
399b62cc08cSmrg
400b62cc08cSmrg# as_fn_arith ARG...
401b62cc08cSmrg# ------------------
402b62cc08cSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the
403b62cc08cSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
404b62cc08cSmrg# must be portable across $(()) and expr.
405c048b52eSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
406c048b52eSmrgthen :
407b62cc08cSmrg  eval 'as_fn_arith ()
408b62cc08cSmrg  {
409b62cc08cSmrg    as_val=$(( $* ))
410b62cc08cSmrg  }'
411c048b52eSmrgelse $as_nop
412b62cc08cSmrg  as_fn_arith ()
413b62cc08cSmrg  {
414b62cc08cSmrg    as_val=`expr "$@" || test $? -eq 1`
415b62cc08cSmrg  }
416b62cc08cSmrgfi # as_fn_arith
4179fe995a9Smrg
418c048b52eSmrg# as_fn_nop
419c048b52eSmrg# ---------
420c048b52eSmrg# Do nothing but, unlike ":", preserve the value of $?.
421c048b52eSmrgas_fn_nop ()
422c048b52eSmrg{
423c048b52eSmrg  return $?
424c048b52eSmrg}
425c048b52eSmrgas_nop=as_fn_nop
4269fe995a9Smrg
427b62cc08cSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
428b62cc08cSmrg# ----------------------------------------
429b62cc08cSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
430b62cc08cSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
431b62cc08cSmrg# script with STATUS, using 1 if that was 0.
432b62cc08cSmrgas_fn_error ()
433b62cc08cSmrg{
434b62cc08cSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
435b62cc08cSmrg  if test "$4"; then
436b62cc08cSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
437c048b52eSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
438b62cc08cSmrg  fi
439c048b52eSmrg  printf "%s\n" "$as_me: error: $2" >&2
440b62cc08cSmrg  as_fn_exit $as_status
441b62cc08cSmrg} # as_fn_error
4429fe995a9Smrg
443b62cc08cSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
444b62cc08cSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
445b62cc08cSmrg  as_expr=expr
4469fe995a9Smrgelse
447b62cc08cSmrg  as_expr=false
4489fe995a9Smrgfi
4499fe995a9Smrg
450b62cc08cSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
451b62cc08cSmrg  as_basename=basename
4529fe995a9Smrgelse
453b62cc08cSmrg  as_basename=false
4549fe995a9Smrgfi
4559fe995a9Smrg
456b62cc08cSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
457b62cc08cSmrg  as_dirname=dirname
4589fe995a9Smrgelse
459b62cc08cSmrg  as_dirname=false
4609fe995a9Smrgfi
4619fe995a9Smrg
462b62cc08cSmrgas_me=`$as_basename -- "$0" ||
463b62cc08cSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
464b62cc08cSmrg	 X"$0" : 'X\(//\)$' \| \
465b62cc08cSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
466c048b52eSmrgprintf "%s\n" X/"$0" |
467b62cc08cSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
468b62cc08cSmrg	    s//\1/
469b62cc08cSmrg	    q
470b62cc08cSmrg	  }
471b62cc08cSmrg	  /^X\/\(\/\/\)$/{
472b62cc08cSmrg	    s//\1/
473b62cc08cSmrg	    q
474b62cc08cSmrg	  }
475b62cc08cSmrg	  /^X\/\(\/\).*/{
476b62cc08cSmrg	    s//\1/
477b62cc08cSmrg	    q
478b62cc08cSmrg	  }
479b62cc08cSmrg	  s/.*/./; q'`
4809fe995a9Smrg
481b62cc08cSmrg# Avoid depending upon Character Ranges.
482b62cc08cSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
483b62cc08cSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
484b62cc08cSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
485b62cc08cSmrgas_cr_digits='0123456789'
486b62cc08cSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits
4879fe995a9Smrg
4889fe995a9Smrg
489b62cc08cSmrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
490b62cc08cSmrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
491b62cc08cSmrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
492b62cc08cSmrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
493b62cc08cSmrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
4949fe995a9Smrg  sed -n '
4959fe995a9Smrg    p
4969fe995a9Smrg    /[$]LINENO/=
4979fe995a9Smrg  ' <$as_myself |
4989fe995a9Smrg    sed '
4999fe995a9Smrg      s/[$]LINENO.*/&-/
5009fe995a9Smrg      t lineno
5019fe995a9Smrg      b
5029fe995a9Smrg      :lineno
5039fe995a9Smrg      N
5049fe995a9Smrg      :loop
5059fe995a9Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5069fe995a9Smrg      t loop
5079fe995a9Smrg      s/-\n.*//
5089fe995a9Smrg    ' >$as_me.lineno &&
5099fe995a9Smrg  chmod +x "$as_me.lineno" ||
510c048b52eSmrg    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
5119fe995a9Smrg
512e8ac26b0Smrg  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513e8ac26b0Smrg  # already done that, so ensure we don't try to do so again and fall
514e8ac26b0Smrg  # in an infinite loop.  This has already happened in practice.
515e8ac26b0Smrg  _as_can_reexec=no; export _as_can_reexec
5169fe995a9Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
5179fe995a9Smrg  # (the dirname of $[0] is not the place where we might find the
5189fe995a9Smrg  # original and so on.  Autoconf is especially sensitive to this).
5199fe995a9Smrg  . "./$as_me.lineno"
5209fe995a9Smrg  # Exit status is that of the last command.
5219fe995a9Smrg  exit
5229fe995a9Smrg}
5239fe995a9Smrg
524c048b52eSmrg
525c048b52eSmrg# Determine whether it's possible to make 'echo' print without a newline.
526c048b52eSmrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527c048b52eSmrg# for compatibility with existing Makefiles.
5289fe995a9SmrgECHO_C= ECHO_N= ECHO_T=
529b62cc08cSmrgcase `echo -n x` in #(((((
5309fe995a9Smrg-n*)
531b62cc08cSmrg  case `echo 'xy\c'` in
5329fe995a9Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
533b62cc08cSmrg  xy)  ECHO_C='\c';;
534b62cc08cSmrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
535b62cc08cSmrg       ECHO_T='	';;
5369fe995a9Smrg  esac;;
5379fe995a9Smrg*)
5389fe995a9Smrg  ECHO_N='-n';;
5399fe995a9Smrgesac
5409fe995a9Smrg
541c048b52eSmrg# For backward compatibility with old third-party macros, we provide
542c048b52eSmrg# the shell variables $as_echo and $as_echo_n.  New code should use
543c048b52eSmrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544c048b52eSmrgas_echo='printf %s\n'
545c048b52eSmrgas_echo_n='printf %s'
546c048b52eSmrg
547c048b52eSmrg
5489fe995a9Smrgrm -f conf$$ conf$$.exe conf$$.file
5499fe995a9Smrgif test -d conf$$.dir; then
5509fe995a9Smrg  rm -f conf$$.dir/conf$$.file
5519fe995a9Smrgelse
5529fe995a9Smrg  rm -f conf$$.dir
553b62cc08cSmrg  mkdir conf$$.dir 2>/dev/null
554b62cc08cSmrgfi
555b62cc08cSmrgif (echo >conf$$.file) 2>/dev/null; then
556b62cc08cSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
557b62cc08cSmrg    as_ln_s='ln -s'
558b62cc08cSmrg    # ... but there are two gotchas:
559b62cc08cSmrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
560b62cc08cSmrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
561e8ac26b0Smrg    # In both cases, we have to default to `cp -pR'.
562b62cc08cSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
563e8ac26b0Smrg      as_ln_s='cp -pR'
564b62cc08cSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
565b62cc08cSmrg    as_ln_s=ln
566b62cc08cSmrg  else
567e8ac26b0Smrg    as_ln_s='cp -pR'
568b62cc08cSmrg  fi
5699fe995a9Smrgelse
570e8ac26b0Smrg  as_ln_s='cp -pR'
5719fe995a9Smrgfi
5729fe995a9Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5739fe995a9Smrgrmdir conf$$.dir 2>/dev/null
5749fe995a9Smrg
5759fe995a9Smrgif mkdir -p . 2>/dev/null; then
576b62cc08cSmrg  as_mkdir_p='mkdir -p "$as_dir"'
5779fe995a9Smrgelse
5789fe995a9Smrg  test -d ./-p && rmdir ./-p
5799fe995a9Smrg  as_mkdir_p=false
5809fe995a9Smrgfi
5819fe995a9Smrg
582e8ac26b0Smrgas_test_x='test -x'
583e8ac26b0Smrgas_executable_p=as_fn_executable_p
5849fe995a9Smrg
5859fe995a9Smrg# Sed expression to map a string onto a valid CPP name.
5869fe995a9Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5879fe995a9Smrg
5889fe995a9Smrg# Sed expression to map a string onto a valid variable name.
5899fe995a9Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5909fe995a9Smrg
5919fe995a9Smrg
592b62cc08cSmrgtest -n "$DJDIR" || exec 7<&0 </dev/null
593b62cc08cSmrgexec 6>&1
5949fe995a9Smrg
5959fe995a9Smrg# Name of the host.
596b62cc08cSmrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
5979fe995a9Smrg# so uname gets run too.
5989fe995a9Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
5999fe995a9Smrg
6009fe995a9Smrg#
6019fe995a9Smrg# Initializations.
6029fe995a9Smrg#
6039fe995a9Smrgac_default_prefix=/usr/local
6049fe995a9Smrgac_clean_files=
6059fe995a9Smrgac_config_libobj_dir=.
6069fe995a9SmrgLIBOBJS=
6079fe995a9Smrgcross_compiling=no
6089fe995a9Smrgsubdirs=
6099fe995a9SmrgMFLAGS=
6109fe995a9SmrgMAKEFLAGS=
6119fe995a9Smrg
6129fe995a9Smrg# Identity of this package.
6139fe995a9SmrgPACKAGE_NAME='iceauth'
6149fe995a9SmrgPACKAGE_TARNAME='iceauth'
615c048b52eSmrgPACKAGE_VERSION='1.0.9'
616c048b52eSmrgPACKAGE_STRING='iceauth 1.0.9'
617c048b52eSmrgPACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/iceauth/issues'
618b62cc08cSmrgPACKAGE_URL=''
6199fe995a9Smrg
620e8ac26b0Smrgac_unique_file="Makefile.am"
621b62cc08cSmrg# Factoring default headers for most tests.
622b62cc08cSmrgac_includes_default="\
623c048b52eSmrg#include <stddef.h>
624c048b52eSmrg#ifdef HAVE_STDIO_H
625c048b52eSmrg# include <stdio.h>
626b62cc08cSmrg#endif
627c048b52eSmrg#ifdef HAVE_STDLIB_H
628b62cc08cSmrg# include <stdlib.h>
629b62cc08cSmrg#endif
630b62cc08cSmrg#ifdef HAVE_STRING_H
631b62cc08cSmrg# include <string.h>
632b62cc08cSmrg#endif
633b62cc08cSmrg#ifdef HAVE_INTTYPES_H
634b62cc08cSmrg# include <inttypes.h>
635b62cc08cSmrg#endif
636b62cc08cSmrg#ifdef HAVE_STDINT_H
637b62cc08cSmrg# include <stdint.h>
638b62cc08cSmrg#endif
639c048b52eSmrg#ifdef HAVE_STRINGS_H
640c048b52eSmrg# include <strings.h>
641c048b52eSmrg#endif
642c048b52eSmrg#ifdef HAVE_SYS_TYPES_H
643c048b52eSmrg# include <sys/types.h>
644c048b52eSmrg#endif
645c048b52eSmrg#ifdef HAVE_SYS_STAT_H
646c048b52eSmrg# include <sys/stat.h>
647c048b52eSmrg#endif
648b62cc08cSmrg#ifdef HAVE_UNISTD_H
649b62cc08cSmrg# include <unistd.h>
650b62cc08cSmrg#endif"
651b62cc08cSmrg
652c048b52eSmrgac_header_c_list=
653b62cc08cSmrgac_subst_vars='am__EXEEXT_FALSE
654b62cc08cSmrgam__EXEEXT_TRUE
655b62cc08cSmrgLTLIBOBJS
6569fe995a9SmrgLIBOBJS
657b62cc08cSmrgLINT_FALSE
658b62cc08cSmrgLINT_TRUE
659b62cc08cSmrgLINT_FLAGS
660b62cc08cSmrgLINT
661b62cc08cSmrgICEAUTH_LIBS
662b62cc08cSmrgICEAUTH_CFLAGS
663b62cc08cSmrgMAN_SUBSTS
664b62cc08cSmrgXORG_MAN_PAGE
665b62cc08cSmrgADMIN_MAN_DIR
666b62cc08cSmrgDRIVER_MAN_DIR
667b62cc08cSmrgMISC_MAN_DIR
668b62cc08cSmrgFILE_MAN_DIR
669b62cc08cSmrgLIB_MAN_DIR
670b62cc08cSmrgAPP_MAN_DIR
671b62cc08cSmrgADMIN_MAN_SUFFIX
672b62cc08cSmrgDRIVER_MAN_SUFFIX
673b62cc08cSmrgMISC_MAN_SUFFIX
674b62cc08cSmrgFILE_MAN_SUFFIX
675b62cc08cSmrgLIB_MAN_SUFFIX
676b62cc08cSmrgAPP_MAN_SUFFIX
677b62cc08cSmrgSED
678b62cc08cSmrghost_os
679b62cc08cSmrghost_vendor
680b62cc08cSmrghost_cpu
681b62cc08cSmrghost
682b62cc08cSmrgbuild_os
683b62cc08cSmrgbuild_vendor
684b62cc08cSmrgbuild_cpu
685b62cc08cSmrgbuild
686b62cc08cSmrgINSTALL_CMD
6876fbef84aSmrgPKG_CONFIG_LIBDIR
6886fbef84aSmrgPKG_CONFIG_PATH
689b62cc08cSmrgPKG_CONFIG
690b62cc08cSmrgCHANGELOG_CMD
6919d794632SmrgSTRICT_CFLAGS
692b62cc08cSmrgCWARNFLAGS
6939d794632SmrgBASE_CFLAGS
694b62cc08cSmrgam__fastdepCC_FALSE
695b62cc08cSmrgam__fastdepCC_TRUE
696b62cc08cSmrgCCDEPMODE
6979d794632Smrgam__nodep
698b62cc08cSmrgAMDEPBACKSLASH
699b62cc08cSmrgAMDEP_FALSE
700b62cc08cSmrgAMDEP_TRUE
701b62cc08cSmrgam__include
702b62cc08cSmrgDEPDIR
703b62cc08cSmrgOBJEXT
704b62cc08cSmrgEXEEXT
705b62cc08cSmrgac_ct_CC
706b62cc08cSmrgCPPFLAGS
707b62cc08cSmrgLDFLAGS
708b62cc08cSmrgCFLAGS
709b62cc08cSmrgCC
7109d794632SmrgAM_BACKSLASH
7119d794632SmrgAM_DEFAULT_VERBOSITY
7129d794632SmrgAM_DEFAULT_V
7139d794632SmrgAM_V
714c048b52eSmrgCSCOPE
715c048b52eSmrgETAGS
716c048b52eSmrgCTAGS
717b62cc08cSmrgam__untar
718b62cc08cSmrgam__tar
719b62cc08cSmrgAMTAR
720b62cc08cSmrgam__leading_dot
721b62cc08cSmrgSET_MAKE
722b62cc08cSmrgAWK
723b62cc08cSmrgmkdir_p
724b62cc08cSmrgMKDIR_P
725b62cc08cSmrgINSTALL_STRIP_PROGRAM
726b62cc08cSmrgSTRIP
727b62cc08cSmrginstall_sh
728b62cc08cSmrgMAKEINFO
729b62cc08cSmrgAUTOHEADER
730b62cc08cSmrgAUTOMAKE
731b62cc08cSmrgAUTOCONF
732b62cc08cSmrgACLOCAL
733b62cc08cSmrgVERSION
734b62cc08cSmrgPACKAGE
735b62cc08cSmrgCYGPATH_W
736b62cc08cSmrgam__isrc
737b62cc08cSmrgINSTALL_DATA
738b62cc08cSmrgINSTALL_SCRIPT
739b62cc08cSmrgINSTALL_PROGRAM
740b62cc08cSmrgtarget_alias
741b62cc08cSmrghost_alias
742b62cc08cSmrgbuild_alias
743b62cc08cSmrgLIBS
744b62cc08cSmrgECHO_T
745b62cc08cSmrgECHO_N
746b62cc08cSmrgECHO_C
747b62cc08cSmrgDEFS
748b62cc08cSmrgmandir
749b62cc08cSmrglocaledir
750b62cc08cSmrglibdir
751b62cc08cSmrgpsdir
752b62cc08cSmrgpdfdir
753b62cc08cSmrgdvidir
754b62cc08cSmrghtmldir
755b62cc08cSmrginfodir
756b62cc08cSmrgdocdir
757b62cc08cSmrgoldincludedir
758b62cc08cSmrgincludedir
759c048b52eSmrgrunstatedir
760b62cc08cSmrglocalstatedir
761b62cc08cSmrgsharedstatedir
762b62cc08cSmrgsysconfdir
763b62cc08cSmrgdatadir
764b62cc08cSmrgdatarootdir
765b62cc08cSmrglibexecdir
766b62cc08cSmrgsbindir
767b62cc08cSmrgbindir
768b62cc08cSmrgprogram_transform_name
769b62cc08cSmrgprefix
770b62cc08cSmrgexec_prefix
771b62cc08cSmrgPACKAGE_URL
772b62cc08cSmrgPACKAGE_BUGREPORT
773b62cc08cSmrgPACKAGE_STRING
774b62cc08cSmrgPACKAGE_VERSION
775b62cc08cSmrgPACKAGE_TARNAME
776b62cc08cSmrgPACKAGE_NAME
777b62cc08cSmrgPATH_SEPARATOR
778c048b52eSmrgSHELL
779c048b52eSmrgam__quote'
7809fe995a9Smrgac_subst_files=''
781b62cc08cSmrgac_user_opts='
782b62cc08cSmrgenable_option_checking
7839d794632Smrgenable_silent_rules
784b62cc08cSmrgenable_dependency_tracking
7859d794632Smrgenable_selective_werror
786b62cc08cSmrgenable_strict_compilation
787b62cc08cSmrgwith_lint
788b62cc08cSmrg'
7899fe995a9Smrg      ac_precious_vars='build_alias
7909fe995a9Smrghost_alias
7919fe995a9Smrgtarget_alias
7929fe995a9SmrgCC
7939fe995a9SmrgCFLAGS
7949fe995a9SmrgLDFLAGS
7959fe995a9SmrgLIBS
7969fe995a9SmrgCPPFLAGS
7979fe995a9SmrgPKG_CONFIG
7986fbef84aSmrgPKG_CONFIG_PATH
7996fbef84aSmrgPKG_CONFIG_LIBDIR
8009fe995a9SmrgICEAUTH_CFLAGS
801b62cc08cSmrgICEAUTH_LIBS
802b62cc08cSmrgLINT
803b62cc08cSmrgLINT_FLAGS'
8049fe995a9Smrg
8059fe995a9Smrg
8069fe995a9Smrg# Initialize some variables set by options.
8079fe995a9Smrgac_init_help=
8089fe995a9Smrgac_init_version=false
809b62cc08cSmrgac_unrecognized_opts=
810b62cc08cSmrgac_unrecognized_sep=
8119fe995a9Smrg# The variables have the same names as the options, with
8129fe995a9Smrg# dashes changed to underlines.
8139fe995a9Smrgcache_file=/dev/null
8149fe995a9Smrgexec_prefix=NONE
8159fe995a9Smrgno_create=
8169fe995a9Smrgno_recursion=
8179fe995a9Smrgprefix=NONE
8189fe995a9Smrgprogram_prefix=NONE
8199fe995a9Smrgprogram_suffix=NONE
8209fe995a9Smrgprogram_transform_name=s,x,x,
8219fe995a9Smrgsilent=
8229fe995a9Smrgsite=
8239fe995a9Smrgsrcdir=
8249fe995a9Smrgverbose=
8259fe995a9Smrgx_includes=NONE
8269fe995a9Smrgx_libraries=NONE
8279fe995a9Smrg
8289fe995a9Smrg# Installation directory options.
8299fe995a9Smrg# These are left unexpanded so users can "make install exec_prefix=/foo"
8309fe995a9Smrg# and all the variables that are supposed to be based on exec_prefix
8319fe995a9Smrg# by default will actually change.
8329fe995a9Smrg# Use braces instead of parens because sh, perl, etc. also accept them.
8339fe995a9Smrg# (The list follows the same order as the GNU Coding Standards.)
8349fe995a9Smrgbindir='${exec_prefix}/bin'
8359fe995a9Smrgsbindir='${exec_prefix}/sbin'
8369fe995a9Smrglibexecdir='${exec_prefix}/libexec'
8379fe995a9Smrgdatarootdir='${prefix}/share'
8389fe995a9Smrgdatadir='${datarootdir}'
8399fe995a9Smrgsysconfdir='${prefix}/etc'
8409fe995a9Smrgsharedstatedir='${prefix}/com'
8419fe995a9Smrglocalstatedir='${prefix}/var'
842c048b52eSmrgrunstatedir='${localstatedir}/run'
8439fe995a9Smrgincludedir='${prefix}/include'
8449fe995a9Smrgoldincludedir='/usr/include'
8459fe995a9Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
8469fe995a9Smrginfodir='${datarootdir}/info'
8479fe995a9Smrghtmldir='${docdir}'
8489fe995a9Smrgdvidir='${docdir}'
8499fe995a9Smrgpdfdir='${docdir}'
8509fe995a9Smrgpsdir='${docdir}'
8519fe995a9Smrglibdir='${exec_prefix}/lib'
8529fe995a9Smrglocaledir='${datarootdir}/locale'
8539fe995a9Smrgmandir='${datarootdir}/man'
8549fe995a9Smrg
8559fe995a9Smrgac_prev=
8569fe995a9Smrgac_dashdash=
8579fe995a9Smrgfor ac_option
8589fe995a9Smrgdo
8599fe995a9Smrg  # If the previous option needs an argument, assign it.
8609fe995a9Smrg  if test -n "$ac_prev"; then
8619fe995a9Smrg    eval $ac_prev=\$ac_option
8629fe995a9Smrg    ac_prev=
8639fe995a9Smrg    continue
8649fe995a9Smrg  fi
8659fe995a9Smrg
8669fe995a9Smrg  case $ac_option in
867b62cc08cSmrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
868b62cc08cSmrg  *=)   ac_optarg= ;;
869b62cc08cSmrg  *)    ac_optarg=yes ;;
8709fe995a9Smrg  esac
8719fe995a9Smrg
8729fe995a9Smrg  case $ac_dashdash$ac_option in
8739fe995a9Smrg  --)
8749fe995a9Smrg    ac_dashdash=yes ;;
8759fe995a9Smrg
8769fe995a9Smrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
8779fe995a9Smrg    ac_prev=bindir ;;
8789fe995a9Smrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
8799fe995a9Smrg    bindir=$ac_optarg ;;
8809fe995a9Smrg
8819fe995a9Smrg  -build | --build | --buil | --bui | --bu)
8829fe995a9Smrg    ac_prev=build_alias ;;
8839fe995a9Smrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
8849fe995a9Smrg    build_alias=$ac_optarg ;;
8859fe995a9Smrg
8869fe995a9Smrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
8879fe995a9Smrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8889fe995a9Smrg    ac_prev=cache_file ;;
8899fe995a9Smrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8909fe995a9Smrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
8919fe995a9Smrg    cache_file=$ac_optarg ;;
8929fe995a9Smrg
8939fe995a9Smrg  --config-cache | -C)
8949fe995a9Smrg    cache_file=config.cache ;;
8959fe995a9Smrg
8969fe995a9Smrg  -datadir | --datadir | --datadi | --datad)
8979fe995a9Smrg    ac_prev=datadir ;;
8989fe995a9Smrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
8999fe995a9Smrg    datadir=$ac_optarg ;;
9009fe995a9Smrg
9019fe995a9Smrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
9029fe995a9Smrg  | --dataroo | --dataro | --datar)
9039fe995a9Smrg    ac_prev=datarootdir ;;
9049fe995a9Smrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
9059fe995a9Smrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
9069fe995a9Smrg    datarootdir=$ac_optarg ;;
9079fe995a9Smrg
9089fe995a9Smrg  -disable-* | --disable-*)
909b62cc08cSmrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
9109fe995a9Smrg    # Reject names that are not valid shell variable names.
911b62cc08cSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912c048b52eSmrg      as_fn_error $? "invalid feature name: \`$ac_useropt'"
913b62cc08cSmrg    ac_useropt_orig=$ac_useropt
914c048b52eSmrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
915b62cc08cSmrg    case $ac_user_opts in
916b62cc08cSmrg      *"
917b62cc08cSmrg"enable_$ac_useropt"
918b62cc08cSmrg"*) ;;
919b62cc08cSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
920b62cc08cSmrg	 ac_unrecognized_sep=', ';;
921b62cc08cSmrg    esac
922b62cc08cSmrg    eval enable_$ac_useropt=no ;;
9239fe995a9Smrg
9249fe995a9Smrg  -docdir | --docdir | --docdi | --doc | --do)
9259fe995a9Smrg    ac_prev=docdir ;;
9269fe995a9Smrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
9279fe995a9Smrg    docdir=$ac_optarg ;;
9289fe995a9Smrg
9299fe995a9Smrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
9309fe995a9Smrg    ac_prev=dvidir ;;
9319fe995a9Smrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
9329fe995a9Smrg    dvidir=$ac_optarg ;;
9339fe995a9Smrg
9349fe995a9Smrg  -enable-* | --enable-*)
935b62cc08cSmrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
9369fe995a9Smrg    # Reject names that are not valid shell variable names.
937b62cc08cSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938c048b52eSmrg      as_fn_error $? "invalid feature name: \`$ac_useropt'"
939b62cc08cSmrg    ac_useropt_orig=$ac_useropt
940c048b52eSmrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
941b62cc08cSmrg    case $ac_user_opts in
942b62cc08cSmrg      *"
943b62cc08cSmrg"enable_$ac_useropt"
944b62cc08cSmrg"*) ;;
945b62cc08cSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
946b62cc08cSmrg	 ac_unrecognized_sep=', ';;
947b62cc08cSmrg    esac
948b62cc08cSmrg    eval enable_$ac_useropt=\$ac_optarg ;;
9499fe995a9Smrg
9509fe995a9Smrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
9519fe995a9Smrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
9529fe995a9Smrg  | --exec | --exe | --ex)
9539fe995a9Smrg    ac_prev=exec_prefix ;;
9549fe995a9Smrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
9559fe995a9Smrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
9569fe995a9Smrg  | --exec=* | --exe=* | --ex=*)
9579fe995a9Smrg    exec_prefix=$ac_optarg ;;
9589fe995a9Smrg
9599fe995a9Smrg  -gas | --gas | --ga | --g)
9609fe995a9Smrg    # Obsolete; use --with-gas.
9619fe995a9Smrg    with_gas=yes ;;
9629fe995a9Smrg
9639fe995a9Smrg  -help | --help | --hel | --he | -h)
9649fe995a9Smrg    ac_init_help=long ;;
9659fe995a9Smrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
9669fe995a9Smrg    ac_init_help=recursive ;;
9679fe995a9Smrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
9689fe995a9Smrg    ac_init_help=short ;;
9699fe995a9Smrg
9709fe995a9Smrg  -host | --host | --hos | --ho)
9719fe995a9Smrg    ac_prev=host_alias ;;
9729fe995a9Smrg  -host=* | --host=* | --hos=* | --ho=*)
9739fe995a9Smrg    host_alias=$ac_optarg ;;
9749fe995a9Smrg
9759fe995a9Smrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
9769fe995a9Smrg    ac_prev=htmldir ;;
9779fe995a9Smrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
9789fe995a9Smrg  | --ht=*)
9799fe995a9Smrg    htmldir=$ac_optarg ;;
9809fe995a9Smrg
9819fe995a9Smrg  -includedir | --includedir | --includedi | --included | --include \
9829fe995a9Smrg  | --includ | --inclu | --incl | --inc)
9839fe995a9Smrg    ac_prev=includedir ;;
9849fe995a9Smrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
9859fe995a9Smrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
9869fe995a9Smrg    includedir=$ac_optarg ;;
9879fe995a9Smrg
9889fe995a9Smrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
9899fe995a9Smrg    ac_prev=infodir ;;
9909fe995a9Smrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
9919fe995a9Smrg    infodir=$ac_optarg ;;
9929fe995a9Smrg
9939fe995a9Smrg  -libdir | --libdir | --libdi | --libd)
9949fe995a9Smrg    ac_prev=libdir ;;
9959fe995a9Smrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
9969fe995a9Smrg    libdir=$ac_optarg ;;
9979fe995a9Smrg
9989fe995a9Smrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
9999fe995a9Smrg  | --libexe | --libex | --libe)
10009fe995a9Smrg    ac_prev=libexecdir ;;
10019fe995a9Smrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
10029fe995a9Smrg  | --libexe=* | --libex=* | --libe=*)
10039fe995a9Smrg    libexecdir=$ac_optarg ;;
10049fe995a9Smrg
10059fe995a9Smrg  -localedir | --localedir | --localedi | --localed | --locale)
10069fe995a9Smrg    ac_prev=localedir ;;
10079fe995a9Smrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
10089fe995a9Smrg    localedir=$ac_optarg ;;
10099fe995a9Smrg
10109fe995a9Smrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
10119fe995a9Smrg  | --localstate | --localstat | --localsta | --localst | --locals)
10129fe995a9Smrg    ac_prev=localstatedir ;;
10139fe995a9Smrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
10149fe995a9Smrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
10159fe995a9Smrg    localstatedir=$ac_optarg ;;
10169fe995a9Smrg
10179fe995a9Smrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
10189fe995a9Smrg    ac_prev=mandir ;;
10199fe995a9Smrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
10209fe995a9Smrg    mandir=$ac_optarg ;;
10219fe995a9Smrg
10229fe995a9Smrg  -nfp | --nfp | --nf)
10239fe995a9Smrg    # Obsolete; use --without-fp.
10249fe995a9Smrg    with_fp=no ;;
10259fe995a9Smrg
10269fe995a9Smrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
10279fe995a9Smrg  | --no-cr | --no-c | -n)
10289fe995a9Smrg    no_create=yes ;;
10299fe995a9Smrg
10309fe995a9Smrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
10319fe995a9Smrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
10329fe995a9Smrg    no_recursion=yes ;;
10339fe995a9Smrg
10349fe995a9Smrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
10359fe995a9Smrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
10369fe995a9Smrg  | --oldin | --oldi | --old | --ol | --o)
10379fe995a9Smrg    ac_prev=oldincludedir ;;
10389fe995a9Smrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
10399fe995a9Smrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
10409fe995a9Smrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
10419fe995a9Smrg    oldincludedir=$ac_optarg ;;
10429fe995a9Smrg
10439fe995a9Smrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10449fe995a9Smrg    ac_prev=prefix ;;
10459fe995a9Smrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10469fe995a9Smrg    prefix=$ac_optarg ;;
10479fe995a9Smrg
10489fe995a9Smrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
10499fe995a9Smrg  | --program-pre | --program-pr | --program-p)
10509fe995a9Smrg    ac_prev=program_prefix ;;
10519fe995a9Smrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
10529fe995a9Smrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
10539fe995a9Smrg    program_prefix=$ac_optarg ;;
10549fe995a9Smrg
10559fe995a9Smrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
10569fe995a9Smrg  | --program-suf | --program-su | --program-s)
10579fe995a9Smrg    ac_prev=program_suffix ;;
10589fe995a9Smrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
10599fe995a9Smrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
10609fe995a9Smrg    program_suffix=$ac_optarg ;;
10619fe995a9Smrg
10629fe995a9Smrg  -program-transform-name | --program-transform-name \
10639fe995a9Smrg  | --program-transform-nam | --program-transform-na \
10649fe995a9Smrg  | --program-transform-n | --program-transform- \
10659fe995a9Smrg  | --program-transform | --program-transfor \
10669fe995a9Smrg  | --program-transfo | --program-transf \
10679fe995a9Smrg  | --program-trans | --program-tran \
10689fe995a9Smrg  | --progr-tra | --program-tr | --program-t)
10699fe995a9Smrg    ac_prev=program_transform_name ;;
10709fe995a9Smrg  -program-transform-name=* | --program-transform-name=* \
10719fe995a9Smrg  | --program-transform-nam=* | --program-transform-na=* \
10729fe995a9Smrg  | --program-transform-n=* | --program-transform-=* \
10739fe995a9Smrg  | --program-transform=* | --program-transfor=* \
10749fe995a9Smrg  | --program-transfo=* | --program-transf=* \
10759fe995a9Smrg  | --program-trans=* | --program-tran=* \
10769fe995a9Smrg  | --progr-tra=* | --program-tr=* | --program-t=*)
10779fe995a9Smrg    program_transform_name=$ac_optarg ;;
10789fe995a9Smrg
10799fe995a9Smrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
10809fe995a9Smrg    ac_prev=pdfdir ;;
10819fe995a9Smrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
10829fe995a9Smrg    pdfdir=$ac_optarg ;;
10839fe995a9Smrg
10849fe995a9Smrg  -psdir | --psdir | --psdi | --psd | --ps)
10859fe995a9Smrg    ac_prev=psdir ;;
10869fe995a9Smrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
10879fe995a9Smrg    psdir=$ac_optarg ;;
10889fe995a9Smrg
10899fe995a9Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10909fe995a9Smrg  | -silent | --silent | --silen | --sile | --sil)
10919fe995a9Smrg    silent=yes ;;
10929fe995a9Smrg
1093c048b52eSmrg  -runstatedir | --runstatedir | --runstatedi | --runstated \
1094c048b52eSmrg  | --runstate | --runstat | --runsta | --runst | --runs \
1095c048b52eSmrg  | --run | --ru | --r)
1096c048b52eSmrg    ac_prev=runstatedir ;;
1097c048b52eSmrg  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1098c048b52eSmrg  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1099c048b52eSmrg  | --run=* | --ru=* | --r=*)
1100c048b52eSmrg    runstatedir=$ac_optarg ;;
1101c048b52eSmrg
11029fe995a9Smrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
11039fe995a9Smrg    ac_prev=sbindir ;;
11049fe995a9Smrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
11059fe995a9Smrg  | --sbi=* | --sb=*)
11069fe995a9Smrg    sbindir=$ac_optarg ;;
11079fe995a9Smrg
11089fe995a9Smrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
11099fe995a9Smrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
11109fe995a9Smrg  | --sharedst | --shareds | --shared | --share | --shar \
11119fe995a9Smrg  | --sha | --sh)
11129fe995a9Smrg    ac_prev=sharedstatedir ;;
11139fe995a9Smrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
11149fe995a9Smrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
11159fe995a9Smrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
11169fe995a9Smrg  | --sha=* | --sh=*)
11179fe995a9Smrg    sharedstatedir=$ac_optarg ;;
11189fe995a9Smrg
11199fe995a9Smrg  -site | --site | --sit)
11209fe995a9Smrg    ac_prev=site ;;
11219fe995a9Smrg  -site=* | --site=* | --sit=*)
11229fe995a9Smrg    site=$ac_optarg ;;
11239fe995a9Smrg
11249fe995a9Smrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
11259fe995a9Smrg    ac_prev=srcdir ;;
11269fe995a9Smrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
11279fe995a9Smrg    srcdir=$ac_optarg ;;
11289fe995a9Smrg
11299fe995a9Smrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
11309fe995a9Smrg  | --syscon | --sysco | --sysc | --sys | --sy)
11319fe995a9Smrg    ac_prev=sysconfdir ;;
11329fe995a9Smrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
11339fe995a9Smrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
11349fe995a9Smrg    sysconfdir=$ac_optarg ;;
11359fe995a9Smrg
11369fe995a9Smrg  -target | --target | --targe | --targ | --tar | --ta | --t)
11379fe995a9Smrg    ac_prev=target_alias ;;
11389fe995a9Smrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
11399fe995a9Smrg    target_alias=$ac_optarg ;;
11409fe995a9Smrg
11419fe995a9Smrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
11429fe995a9Smrg    verbose=yes ;;
11439fe995a9Smrg
11449fe995a9Smrg  -version | --version | --versio | --versi | --vers | -V)
11459fe995a9Smrg    ac_init_version=: ;;
11469fe995a9Smrg
11479fe995a9Smrg  -with-* | --with-*)
1148b62cc08cSmrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
11499fe995a9Smrg    # Reject names that are not valid shell variable names.
1150b62cc08cSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151c048b52eSmrg      as_fn_error $? "invalid package name: \`$ac_useropt'"
1152b62cc08cSmrg    ac_useropt_orig=$ac_useropt
1153c048b52eSmrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1154b62cc08cSmrg    case $ac_user_opts in
1155b62cc08cSmrg      *"
1156b62cc08cSmrg"with_$ac_useropt"
1157b62cc08cSmrg"*) ;;
1158b62cc08cSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1159b62cc08cSmrg	 ac_unrecognized_sep=', ';;
1160b62cc08cSmrg    esac
1161b62cc08cSmrg    eval with_$ac_useropt=\$ac_optarg ;;
11629fe995a9Smrg
11639fe995a9Smrg  -without-* | --without-*)
1164b62cc08cSmrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
11659fe995a9Smrg    # Reject names that are not valid shell variable names.
1166b62cc08cSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167c048b52eSmrg      as_fn_error $? "invalid package name: \`$ac_useropt'"
1168b62cc08cSmrg    ac_useropt_orig=$ac_useropt
1169c048b52eSmrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1170b62cc08cSmrg    case $ac_user_opts in
1171b62cc08cSmrg      *"
1172b62cc08cSmrg"with_$ac_useropt"
1173b62cc08cSmrg"*) ;;
1174b62cc08cSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1175b62cc08cSmrg	 ac_unrecognized_sep=', ';;
1176b62cc08cSmrg    esac
1177b62cc08cSmrg    eval with_$ac_useropt=no ;;
11789fe995a9Smrg
11799fe995a9Smrg  --x)
11809fe995a9Smrg    # Obsolete; use --with-x.
11819fe995a9Smrg    with_x=yes ;;
11829fe995a9Smrg
11839fe995a9Smrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
11849fe995a9Smrg  | --x-incl | --x-inc | --x-in | --x-i)
11859fe995a9Smrg    ac_prev=x_includes ;;
11869fe995a9Smrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
11879fe995a9Smrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
11889fe995a9Smrg    x_includes=$ac_optarg ;;
11899fe995a9Smrg
11909fe995a9Smrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
11919fe995a9Smrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
11929fe995a9Smrg    ac_prev=x_libraries ;;
11939fe995a9Smrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
11949fe995a9Smrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
11959fe995a9Smrg    x_libraries=$ac_optarg ;;
11969fe995a9Smrg
1197b62cc08cSmrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1198b62cc08cSmrgTry \`$0 --help' for more information"
11999fe995a9Smrg    ;;
12009fe995a9Smrg
12019fe995a9Smrg  *=*)
12029fe995a9Smrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
12039fe995a9Smrg    # Reject names that are not valid shell variable names.
1204b62cc08cSmrg    case $ac_envvar in #(
1205b62cc08cSmrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
1206b62cc08cSmrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1207b62cc08cSmrg    esac
12089fe995a9Smrg    eval $ac_envvar=\$ac_optarg
12099fe995a9Smrg    export $ac_envvar ;;
12109fe995a9Smrg
12119fe995a9Smrg  *)
12129fe995a9Smrg    # FIXME: should be removed in autoconf 3.0.
1213c048b52eSmrg    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
12149fe995a9Smrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215c048b52eSmrg      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1216b62cc08cSmrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
12179fe995a9Smrg    ;;
12189fe995a9Smrg
12199fe995a9Smrg  esac
12209fe995a9Smrgdone
12219fe995a9Smrg
12229fe995a9Smrgif test -n "$ac_prev"; then
12239fe995a9Smrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1224b62cc08cSmrg  as_fn_error $? "missing argument to $ac_option"
1225b62cc08cSmrgfi
1226b62cc08cSmrg
1227b62cc08cSmrgif test -n "$ac_unrecognized_opts"; then
1228b62cc08cSmrg  case $enable_option_checking in
1229b62cc08cSmrg    no) ;;
1230b62cc08cSmrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1231c048b52eSmrg    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1232b62cc08cSmrg  esac
12339fe995a9Smrgfi
12349fe995a9Smrg
1235b62cc08cSmrg# Check all directory arguments for consistency.
12369fe995a9Smrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
12379fe995a9Smrg		datadir sysconfdir sharedstatedir localstatedir includedir \
12389fe995a9Smrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1239c048b52eSmrg		libdir localedir mandir runstatedir
12409fe995a9Smrgdo
12419fe995a9Smrg  eval ac_val=\$$ac_var
1242b62cc08cSmrg  # Remove trailing slashes.
1243b62cc08cSmrg  case $ac_val in
1244b62cc08cSmrg    */ )
1245b62cc08cSmrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1246b62cc08cSmrg      eval $ac_var=\$ac_val;;
1247b62cc08cSmrg  esac
1248b62cc08cSmrg  # Be sure to have absolute directory names.
12499fe995a9Smrg  case $ac_val in
12509fe995a9Smrg    [\\/$]* | ?:[\\/]* )  continue;;
12519fe995a9Smrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
12529fe995a9Smrg  esac
1253b62cc08cSmrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
12549fe995a9Smrgdone
12559fe995a9Smrg
12569fe995a9Smrg# There might be people who depend on the old broken behavior: `$host'
12579fe995a9Smrg# used to hold the argument of --host etc.
12589fe995a9Smrg# FIXME: To remove some day.
12599fe995a9Smrgbuild=$build_alias
12609fe995a9Smrghost=$host_alias
12619fe995a9Smrgtarget=$target_alias
12629fe995a9Smrg
12639fe995a9Smrg# FIXME: To remove some day.
12649fe995a9Smrgif test "x$host_alias" != x; then
12659fe995a9Smrg  if test "x$build_alias" = x; then
12669fe995a9Smrg    cross_compiling=maybe
12679fe995a9Smrg  elif test "x$build_alias" != "x$host_alias"; then
12689fe995a9Smrg    cross_compiling=yes
12699fe995a9Smrg  fi
12709fe995a9Smrgfi
12719fe995a9Smrg
12729fe995a9Smrgac_tool_prefix=
12739fe995a9Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
12749fe995a9Smrg
12759fe995a9Smrgtest "$silent" = yes && exec 6>/dev/null
12769fe995a9Smrg
12779fe995a9Smrg
12789fe995a9Smrgac_pwd=`pwd` && test -n "$ac_pwd" &&
12799fe995a9Smrgac_ls_di=`ls -di .` &&
12809fe995a9Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1281b62cc08cSmrg  as_fn_error $? "working directory cannot be determined"
12829fe995a9Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1283b62cc08cSmrg  as_fn_error $? "pwd does not report name of working directory"
12849fe995a9Smrg
12859fe995a9Smrg
12869fe995a9Smrg# Find the source files, if location was not specified.
12879fe995a9Smrgif test -z "$srcdir"; then
12889fe995a9Smrg  ac_srcdir_defaulted=yes
12899fe995a9Smrg  # Try the directory containing this script, then the parent directory.
1290b62cc08cSmrg  ac_confdir=`$as_dirname -- "$as_myself" ||
1291b62cc08cSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1292b62cc08cSmrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
1293b62cc08cSmrg	 X"$as_myself" : 'X\(//\)$' \| \
1294b62cc08cSmrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1295c048b52eSmrgprintf "%s\n" X"$as_myself" |
12969fe995a9Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12979fe995a9Smrg	    s//\1/
12989fe995a9Smrg	    q
12999fe995a9Smrg	  }
13009fe995a9Smrg	  /^X\(\/\/\)[^/].*/{
13019fe995a9Smrg	    s//\1/
13029fe995a9Smrg	    q
13039fe995a9Smrg	  }
13049fe995a9Smrg	  /^X\(\/\/\)$/{
13059fe995a9Smrg	    s//\1/
13069fe995a9Smrg	    q
13079fe995a9Smrg	  }
13089fe995a9Smrg	  /^X\(\/\).*/{
13099fe995a9Smrg	    s//\1/
13109fe995a9Smrg	    q
13119fe995a9Smrg	  }
13129fe995a9Smrg	  s/.*/./; q'`
13139fe995a9Smrg  srcdir=$ac_confdir
13149fe995a9Smrg  if test ! -r "$srcdir/$ac_unique_file"; then
13159fe995a9Smrg    srcdir=..
13169fe995a9Smrg  fi
13179fe995a9Smrgelse
13189fe995a9Smrg  ac_srcdir_defaulted=no
13199fe995a9Smrgfi
13209fe995a9Smrgif test ! -r "$srcdir/$ac_unique_file"; then
13219fe995a9Smrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1322b62cc08cSmrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
13239fe995a9Smrgfi
13249fe995a9Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
13259fe995a9Smrgac_abs_confdir=`(
1326b62cc08cSmrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
13279fe995a9Smrg	pwd)`
13289fe995a9Smrg# When building in place, set srcdir=.
13299fe995a9Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then
13309fe995a9Smrg  srcdir=.
13319fe995a9Smrgfi
13329fe995a9Smrg# Remove unnecessary trailing slashes from srcdir.
13339fe995a9Smrg# Double slashes in file names in object file debugging info
13349fe995a9Smrg# mess up M-x gdb in Emacs.
13359fe995a9Smrgcase $srcdir in
13369fe995a9Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
13379fe995a9Smrgesac
13389fe995a9Smrgfor ac_var in $ac_precious_vars; do
13399fe995a9Smrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
13409fe995a9Smrg  eval ac_env_${ac_var}_value=\$${ac_var}
13419fe995a9Smrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
13429fe995a9Smrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
13439fe995a9Smrgdone
13449fe995a9Smrg
13459fe995a9Smrg#
13469fe995a9Smrg# Report the --help message.
13479fe995a9Smrg#
13489fe995a9Smrgif test "$ac_init_help" = "long"; then
13499fe995a9Smrg  # Omit some internal or obsolete options to make the list less imposing.
13509fe995a9Smrg  # This message is too long to be a string in the A/UX 3.1 sh.
13519fe995a9Smrg  cat <<_ACEOF
1352c048b52eSmrg\`configure' configures iceauth 1.0.9 to adapt to many kinds of systems.
13539fe995a9Smrg
13549fe995a9SmrgUsage: $0 [OPTION]... [VAR=VALUE]...
13559fe995a9Smrg
13569fe995a9SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
13579fe995a9SmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
13589fe995a9Smrg
13599fe995a9SmrgDefaults for the options are specified in brackets.
13609fe995a9Smrg
13619fe995a9SmrgConfiguration:
13629fe995a9Smrg  -h, --help              display this help and exit
13639fe995a9Smrg      --help=short        display options specific to this package
13649fe995a9Smrg      --help=recursive    display the short help of all the included packages
13659fe995a9Smrg  -V, --version           display version information and exit
1366b62cc08cSmrg  -q, --quiet, --silent   do not print \`checking ...' messages
13679fe995a9Smrg      --cache-file=FILE   cache test results in FILE [disabled]
13689fe995a9Smrg  -C, --config-cache      alias for \`--cache-file=config.cache'
13699fe995a9Smrg  -n, --no-create         do not create output files
13709fe995a9Smrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
13719fe995a9Smrg
13729fe995a9SmrgInstallation directories:
13739fe995a9Smrg  --prefix=PREFIX         install architecture-independent files in PREFIX
1374b62cc08cSmrg                          [$ac_default_prefix]
13759fe995a9Smrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1376b62cc08cSmrg                          [PREFIX]
13779fe995a9Smrg
13789fe995a9SmrgBy default, \`make install' will install all the files in
13799fe995a9Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
13809fe995a9Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
13819fe995a9Smrgfor instance \`--prefix=\$HOME'.
13829fe995a9Smrg
13839fe995a9SmrgFor better control, use the options below.
13849fe995a9Smrg
13859fe995a9SmrgFine tuning of the installation directories:
1386b62cc08cSmrg  --bindir=DIR            user executables [EPREFIX/bin]
1387b62cc08cSmrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1388b62cc08cSmrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
1389b62cc08cSmrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1390b62cc08cSmrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1391b62cc08cSmrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1392c048b52eSmrg  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1393b62cc08cSmrg  --libdir=DIR            object code libraries [EPREFIX/lib]
1394b62cc08cSmrg  --includedir=DIR        C header files [PREFIX/include]
1395b62cc08cSmrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1396b62cc08cSmrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1397b62cc08cSmrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1398b62cc08cSmrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
1399b62cc08cSmrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1400b62cc08cSmrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
1401b62cc08cSmrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/iceauth]
1402b62cc08cSmrg  --htmldir=DIR           html documentation [DOCDIR]
1403b62cc08cSmrg  --dvidir=DIR            dvi documentation [DOCDIR]
1404b62cc08cSmrg  --pdfdir=DIR            pdf documentation [DOCDIR]
1405b62cc08cSmrg  --psdir=DIR             ps documentation [DOCDIR]
14069fe995a9Smrg_ACEOF
14079fe995a9Smrg
14089fe995a9Smrg  cat <<\_ACEOF
14099fe995a9Smrg
14109fe995a9SmrgProgram names:
14119fe995a9Smrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
14129fe995a9Smrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
14139fe995a9Smrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
14149fe995a9Smrg
14159fe995a9SmrgSystem types:
14169fe995a9Smrg  --build=BUILD     configure for building on BUILD [guessed]
14179fe995a9Smrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
14189fe995a9Smrg_ACEOF
14199fe995a9Smrgfi
14209fe995a9Smrg
14219fe995a9Smrgif test -n "$ac_init_help"; then
14229fe995a9Smrg  case $ac_init_help in
1423c048b52eSmrg     short | recursive ) echo "Configuration of iceauth 1.0.9:";;
14249fe995a9Smrg   esac
14259fe995a9Smrg  cat <<\_ACEOF
14269fe995a9Smrg
14279fe995a9SmrgOptional Features:
1428b62cc08cSmrg  --disable-option-checking  ignore unrecognized --enable/--with options
14299fe995a9Smrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
14309fe995a9Smrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
14319d794632Smrg  --enable-silent-rules   less verbose build output (undo: "make V=1")
14329d794632Smrg  --disable-silent-rules  verbose build output (undo: "make V=0")
14339d794632Smrg  --enable-dependency-tracking
14349d794632Smrg                          do not reject slow dependency extractors
14359d794632Smrg  --disable-dependency-tracking
14369d794632Smrg                          speeds up one-time build
14379d794632Smrg  --disable-selective-werror
14389d794632Smrg                          Turn off selective compiler errors. (default:
14399d794632Smrg                          enabled)
1440b62cc08cSmrg  --enable-strict-compilation
1441b62cc08cSmrg                          Enable all warnings from compiler and make them
1442b62cc08cSmrg                          errors (default: disabled)
14439fe995a9Smrg
14449fe995a9SmrgOptional Packages:
14459fe995a9Smrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
14469fe995a9Smrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
14479fe995a9Smrg  --with-lint             Use a lint-style source code checker (default:
14489fe995a9Smrg                          disabled)
14499fe995a9Smrg
14509fe995a9SmrgSome influential environment variables:
14519fe995a9Smrg  CC          C compiler command
14529fe995a9Smrg  CFLAGS      C compiler flags
14539fe995a9Smrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
14549fe995a9Smrg              nonstandard directory <lib dir>
14559fe995a9Smrg  LIBS        libraries to pass to the linker, e.g. -l<library>
1456b62cc08cSmrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
14579fe995a9Smrg              you have headers in a nonstandard directory <include dir>
14589fe995a9Smrg  PKG_CONFIG  path to pkg-config utility
14596fbef84aSmrg  PKG_CONFIG_PATH
14606fbef84aSmrg              directories to add to pkg-config's search path
14616fbef84aSmrg  PKG_CONFIG_LIBDIR
14626fbef84aSmrg              path overriding pkg-config's built-in search path
14639fe995a9Smrg  ICEAUTH_CFLAGS
14649fe995a9Smrg              C compiler flags for ICEAUTH, overriding pkg-config
14659fe995a9Smrg  ICEAUTH_LIBS
14669fe995a9Smrg              linker flags for ICEAUTH, overriding pkg-config
1467b62cc08cSmrg  LINT        Path to a lint-style command
1468b62cc08cSmrg  LINT_FLAGS  Flags for the lint-style command
14699fe995a9Smrg
14709fe995a9SmrgUse these variables to override the choices made by `configure' or to help
14719fe995a9Smrgit to find libraries and programs with nonstandard names/locations.
14729fe995a9Smrg
1473c048b52eSmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/iceauth/issues>.
14749fe995a9Smrg_ACEOF
14759fe995a9Smrgac_status=$?
14769fe995a9Smrgfi
14779fe995a9Smrg
14789fe995a9Smrgif test "$ac_init_help" = "recursive"; then
14799fe995a9Smrg  # If there are subdirs, report their specific --help.
14809fe995a9Smrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1481b62cc08cSmrg    test -d "$ac_dir" ||
1482b62cc08cSmrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1483b62cc08cSmrg      continue
14849fe995a9Smrg    ac_builddir=.
14859fe995a9Smrg
14869fe995a9Smrgcase "$ac_dir" in
14879fe995a9Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14889fe995a9Smrg*)
1489c048b52eSmrg  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
14909fe995a9Smrg  # A ".." for each directory in $ac_dir_suffix.
1491c048b52eSmrg  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14929fe995a9Smrg  case $ac_top_builddir_sub in
14939fe995a9Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14949fe995a9Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14959fe995a9Smrg  esac ;;
14969fe995a9Smrgesac
14979fe995a9Smrgac_abs_top_builddir=$ac_pwd
14989fe995a9Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
14999fe995a9Smrg# for backward compatibility:
15009fe995a9Smrgac_top_builddir=$ac_top_build_prefix
15019fe995a9Smrg
15029fe995a9Smrgcase $srcdir in
15039fe995a9Smrg  .)  # We are building in place.
15049fe995a9Smrg    ac_srcdir=.
15059fe995a9Smrg    ac_top_srcdir=$ac_top_builddir_sub
15069fe995a9Smrg    ac_abs_top_srcdir=$ac_pwd ;;
15079fe995a9Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
15089fe995a9Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
15099fe995a9Smrg    ac_top_srcdir=$srcdir
15109fe995a9Smrg    ac_abs_top_srcdir=$srcdir ;;
15119fe995a9Smrg  *) # Relative name.
15129fe995a9Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15139fe995a9Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
15149fe995a9Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15159fe995a9Smrgesac
15169fe995a9Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15179fe995a9Smrg
15189fe995a9Smrg    cd "$ac_dir" || { ac_status=$?; continue; }
1519c048b52eSmrg    # Check for configure.gnu first; this name is used for a wrapper for
1520c048b52eSmrg    # Metaconfig's "Configure" on case-insensitive file systems.
15219fe995a9Smrg    if test -f "$ac_srcdir/configure.gnu"; then
15229fe995a9Smrg      echo &&
15239fe995a9Smrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
15249fe995a9Smrg    elif test -f "$ac_srcdir/configure"; then
15259fe995a9Smrg      echo &&
15269fe995a9Smrg      $SHELL "$ac_srcdir/configure" --help=recursive
15279fe995a9Smrg    else
1528c048b52eSmrg      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
15299fe995a9Smrg    fi || ac_status=$?
15309fe995a9Smrg    cd "$ac_pwd" || { ac_status=$?; break; }
15319fe995a9Smrg  done
15329fe995a9Smrgfi
15339fe995a9Smrg
15349fe995a9Smrgtest -n "$ac_init_help" && exit $ac_status
15359fe995a9Smrgif $ac_init_version; then
15369fe995a9Smrg  cat <<\_ACEOF
1537c048b52eSmrgiceauth configure 1.0.9
1538c048b52eSmrggenerated by GNU Autoconf 2.71
15399fe995a9Smrg
1540c048b52eSmrgCopyright (C) 2021 Free Software Foundation, Inc.
15419fe995a9SmrgThis configure script is free software; the Free Software Foundation
15429fe995a9Smrggives unlimited permission to copy, distribute and modify it.
15439fe995a9Smrg_ACEOF
15449fe995a9Smrg  exit
15459fe995a9Smrgfi
1546b62cc08cSmrg
1547b62cc08cSmrg## ------------------------ ##
1548b62cc08cSmrg## Autoconf initialization. ##
1549b62cc08cSmrg## ------------------------ ##
1550b62cc08cSmrg
1551b62cc08cSmrg# ac_fn_c_try_compile LINENO
1552b62cc08cSmrg# --------------------------
1553b62cc08cSmrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
1554b62cc08cSmrgac_fn_c_try_compile ()
1555b62cc08cSmrg{
1556b62cc08cSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1557c048b52eSmrg  rm -f conftest.$ac_objext conftest.beam
1558b62cc08cSmrg  if { { ac_try="$ac_compile"
1559b62cc08cSmrgcase "(($ac_try" in
1560b62cc08cSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1561b62cc08cSmrg  *) ac_try_echo=$ac_try;;
1562b62cc08cSmrgesac
1563b62cc08cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564c048b52eSmrgprintf "%s\n" "$ac_try_echo"; } >&5
1565b62cc08cSmrg  (eval "$ac_compile") 2>conftest.err
1566b62cc08cSmrg  ac_status=$?
1567b62cc08cSmrg  if test -s conftest.err; then
1568b62cc08cSmrg    grep -v '^ *+' conftest.err >conftest.er1
1569b62cc08cSmrg    cat conftest.er1 >&5
1570b62cc08cSmrg    mv -f conftest.er1 conftest.err
1571b62cc08cSmrg  fi
1572c048b52eSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1573b62cc08cSmrg  test $ac_status = 0; } && {
1574b62cc08cSmrg	 test -z "$ac_c_werror_flag" ||
1575b62cc08cSmrg	 test ! -s conftest.err
1576c048b52eSmrg       } && test -s conftest.$ac_objext
1577c048b52eSmrgthen :
1578b62cc08cSmrg  ac_retval=0
1579c048b52eSmrgelse $as_nop
1580c048b52eSmrg  printf "%s\n" "$as_me: failed program was:" >&5
1581b62cc08cSmrgsed 's/^/| /' conftest.$ac_ext >&5
1582b62cc08cSmrg
1583b62cc08cSmrg	ac_retval=1
1584b62cc08cSmrgfi
1585b62cc08cSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1586b62cc08cSmrg  as_fn_set_status $ac_retval
1587b62cc08cSmrg
1588b62cc08cSmrg} # ac_fn_c_try_compile
1589b62cc08cSmrg
1590c048b52eSmrg# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1591c048b52eSmrg# ------------------------------------------------------------------
1592b62cc08cSmrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1593c048b52eSmrg# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1594c048b52eSmrgac_fn_check_decl ()
1595b62cc08cSmrg{
1596b62cc08cSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597b62cc08cSmrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
1598c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1599c048b52eSmrgprintf %s "checking whether $as_decl_name is declared... " >&6; }
1600c048b52eSmrgif eval test \${$3+y}
1601c048b52eSmrgthen :
1602c048b52eSmrg  printf %s "(cached) " >&6
1603c048b52eSmrgelse $as_nop
1604b62cc08cSmrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1605c048b52eSmrg  eval ac_save_FLAGS=\$$6
1606c048b52eSmrg  as_fn_append $6 " $5"
1607b62cc08cSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1608b62cc08cSmrg/* end confdefs.h.  */
1609b62cc08cSmrg$4
1610b62cc08cSmrgint
1611c048b52eSmrgmain (void)
1612b62cc08cSmrg{
1613b62cc08cSmrg#ifndef $as_decl_name
1614b62cc08cSmrg#ifdef __cplusplus
1615b62cc08cSmrg  (void) $as_decl_use;
1616b62cc08cSmrg#else
1617b62cc08cSmrg  (void) $as_decl_name;
1618b62cc08cSmrg#endif
1619b62cc08cSmrg#endif
1620b62cc08cSmrg
1621b62cc08cSmrg  ;
1622b62cc08cSmrg  return 0;
1623b62cc08cSmrg}
1624b62cc08cSmrg_ACEOF
1625c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
1626c048b52eSmrgthen :
1627b62cc08cSmrg  eval "$3=yes"
1628c048b52eSmrgelse $as_nop
1629b62cc08cSmrg  eval "$3=no"
1630b62cc08cSmrgfi
1631c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1632c048b52eSmrg  eval $6=\$ac_save_FLAGS
1633b62cc08cSmrg
1634b62cc08cSmrgfi
1635c048b52eSmrgeval ac_res=\$$3
1636c048b52eSmrg	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1637c048b52eSmrgprintf "%s\n" "$ac_res" >&6; }
1638b62cc08cSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1639b62cc08cSmrg
1640c048b52eSmrg} # ac_fn_check_decl
1641b62cc08cSmrg
1642b62cc08cSmrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1643b62cc08cSmrg# -------------------------------------------------------
1644b62cc08cSmrg# Tests whether HEADER exists and can be compiled using the include files in
1645b62cc08cSmrg# INCLUDES, setting the cache variable VAR accordingly.
1646b62cc08cSmrgac_fn_c_check_header_compile ()
1647b62cc08cSmrg{
1648b62cc08cSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1650c048b52eSmrgprintf %s "checking for $2... " >&6; }
1651c048b52eSmrgif eval test \${$3+y}
1652c048b52eSmrgthen :
1653c048b52eSmrg  printf %s "(cached) " >&6
1654c048b52eSmrgelse $as_nop
1655b62cc08cSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1656b62cc08cSmrg/* end confdefs.h.  */
1657b62cc08cSmrg$4
1658b62cc08cSmrg#include <$2>
1659b62cc08cSmrg_ACEOF
1660c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
1661c048b52eSmrgthen :
1662b62cc08cSmrg  eval "$3=yes"
1663c048b52eSmrgelse $as_nop
1664b62cc08cSmrg  eval "$3=no"
1665b62cc08cSmrgfi
1666c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1667b62cc08cSmrgfi
1668b62cc08cSmrgeval ac_res=\$$3
1669c048b52eSmrg	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1670c048b52eSmrgprintf "%s\n" "$ac_res" >&6; }
1671b62cc08cSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672b62cc08cSmrg
1673b62cc08cSmrg} # ac_fn_c_check_header_compile
16749d794632Smrg
16759d794632Smrg# ac_fn_c_try_link LINENO
16769d794632Smrg# -----------------------
16779d794632Smrg# Try to link conftest.$ac_ext, and return whether this succeeded.
16789d794632Smrgac_fn_c_try_link ()
16799d794632Smrg{
16809d794632Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681c048b52eSmrg  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
16829d794632Smrg  if { { ac_try="$ac_link"
16839d794632Smrgcase "(($ac_try" in
16849d794632Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16859d794632Smrg  *) ac_try_echo=$ac_try;;
16869d794632Smrgesac
16879d794632Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688c048b52eSmrgprintf "%s\n" "$ac_try_echo"; } >&5
16899d794632Smrg  (eval "$ac_link") 2>conftest.err
16909d794632Smrg  ac_status=$?
16919d794632Smrg  if test -s conftest.err; then
16929d794632Smrg    grep -v '^ *+' conftest.err >conftest.er1
16939d794632Smrg    cat conftest.er1 >&5
16949d794632Smrg    mv -f conftest.er1 conftest.err
16959d794632Smrg  fi
1696c048b52eSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16979d794632Smrg  test $ac_status = 0; } && {
16989d794632Smrg	 test -z "$ac_c_werror_flag" ||
16999d794632Smrg	 test ! -s conftest.err
17009d794632Smrg       } && test -s conftest$ac_exeext && {
17019d794632Smrg	 test "$cross_compiling" = yes ||
1702e8ac26b0Smrg	 test -x conftest$ac_exeext
1703c048b52eSmrg       }
1704c048b52eSmrgthen :
17059d794632Smrg  ac_retval=0
1706c048b52eSmrgelse $as_nop
1707c048b52eSmrg  printf "%s\n" "$as_me: failed program was:" >&5
17089d794632Smrgsed 's/^/| /' conftest.$ac_ext >&5
17099d794632Smrg
17109d794632Smrg	ac_retval=1
17119d794632Smrgfi
17129d794632Smrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
17139d794632Smrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
17149d794632Smrg  # interfere with the next link command; also delete a directory that is
17159d794632Smrg  # left behind by Apple's compiler.  We do this before executing the actions.
17169d794632Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
17179d794632Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17189d794632Smrg  as_fn_set_status $ac_retval
17199d794632Smrg
17209d794632Smrg} # ac_fn_c_try_link
1721c048b52eSmrgac_configure_args_raw=
1722c048b52eSmrgfor ac_arg
1723c048b52eSmrgdo
1724c048b52eSmrg  case $ac_arg in
1725c048b52eSmrg  *\'*)
1726c048b52eSmrg    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1727c048b52eSmrg  esac
1728c048b52eSmrg  as_fn_append ac_configure_args_raw " '$ac_arg'"
1729c048b52eSmrgdone
1730c048b52eSmrg
1731c048b52eSmrgcase $ac_configure_args_raw in
1732c048b52eSmrg  *$as_nl*)
1733c048b52eSmrg    ac_safe_unquote= ;;
1734c048b52eSmrg  *)
1735c048b52eSmrg    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1736c048b52eSmrg    ac_unsafe_a="$ac_unsafe_z#~"
1737c048b52eSmrg    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1738c048b52eSmrg    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1739c048b52eSmrgesac
1740c048b52eSmrg
17419fe995a9Smrgcat >config.log <<_ACEOF
17429fe995a9SmrgThis file contains any messages produced by compilers while
17439fe995a9Smrgrunning configure, to aid debugging if configure makes a mistake.
17449fe995a9Smrg
1745c048b52eSmrgIt was created by iceauth $as_me 1.0.9, which was
1746c048b52eSmrggenerated by GNU Autoconf 2.71.  Invocation command line was
17479fe995a9Smrg
1748c048b52eSmrg  $ $0$ac_configure_args_raw
17499fe995a9Smrg
17509fe995a9Smrg_ACEOF
17519fe995a9Smrgexec 5>>config.log
17529fe995a9Smrg{
17539fe995a9Smrgcat <<_ASUNAME
17549fe995a9Smrg## --------- ##
17559fe995a9Smrg## Platform. ##
17569fe995a9Smrg## --------- ##
17579fe995a9Smrg
17589fe995a9Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
17599fe995a9Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
17609fe995a9Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
17619fe995a9Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
17629fe995a9Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
17639fe995a9Smrg
17649fe995a9Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
17659fe995a9Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
17669fe995a9Smrg
17679fe995a9Smrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
17689fe995a9Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
17699fe995a9Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
17709fe995a9Smrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
17719fe995a9Smrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
17729fe995a9Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
17739fe995a9Smrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
17749fe995a9Smrg
17759fe995a9Smrg_ASUNAME
17769fe995a9Smrg
17779fe995a9Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17789fe995a9Smrgfor as_dir in $PATH
17799fe995a9Smrgdo
17809fe995a9Smrg  IFS=$as_save_IFS
1781c048b52eSmrg  case $as_dir in #(((
1782c048b52eSmrg    '') as_dir=./ ;;
1783c048b52eSmrg    */) ;;
1784c048b52eSmrg    *) as_dir=$as_dir/ ;;
1785c048b52eSmrg  esac
1786c048b52eSmrg    printf "%s\n" "PATH: $as_dir"
1787b62cc08cSmrg  done
17889fe995a9SmrgIFS=$as_save_IFS
17899fe995a9Smrg
17909fe995a9Smrg} >&5
17919fe995a9Smrg
17929fe995a9Smrgcat >&5 <<_ACEOF
17939fe995a9Smrg
17949fe995a9Smrg
17959fe995a9Smrg## ----------- ##
17969fe995a9Smrg## Core tests. ##
17979fe995a9Smrg## ----------- ##
17989fe995a9Smrg
17999fe995a9Smrg_ACEOF
18009fe995a9Smrg
18019fe995a9Smrg
18029fe995a9Smrg# Keep a trace of the command line.
18039fe995a9Smrg# Strip out --no-create and --no-recursion so they do not pile up.
18049fe995a9Smrg# Strip out --silent because we don't want to record it for future runs.
18059fe995a9Smrg# Also quote any args containing shell meta-characters.
18069fe995a9Smrg# Make two passes to allow for proper duplicate-argument suppression.
18079fe995a9Smrgac_configure_args=
18089fe995a9Smrgac_configure_args0=
18099fe995a9Smrgac_configure_args1=
18109fe995a9Smrgac_must_keep_next=false
18119fe995a9Smrgfor ac_pass in 1 2
18129fe995a9Smrgdo
18139fe995a9Smrg  for ac_arg
18149fe995a9Smrg  do
18159fe995a9Smrg    case $ac_arg in
18169fe995a9Smrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
18179fe995a9Smrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18189fe995a9Smrg    | -silent | --silent | --silen | --sile | --sil)
18199fe995a9Smrg      continue ;;
18209fe995a9Smrg    *\'*)
1821c048b52eSmrg      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18229fe995a9Smrg    esac
18239fe995a9Smrg    case $ac_pass in
1824b62cc08cSmrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
18259fe995a9Smrg    2)
1826b62cc08cSmrg      as_fn_append ac_configure_args1 " '$ac_arg'"
18279fe995a9Smrg      if test $ac_must_keep_next = true; then
18289fe995a9Smrg	ac_must_keep_next=false # Got value, back to normal.
18299fe995a9Smrg      else
18309fe995a9Smrg	case $ac_arg in
18319fe995a9Smrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
18329fe995a9Smrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
18339fe995a9Smrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
18349fe995a9Smrg	  | -with-* | --with-* | -without-* | --without-* | --x)
18359fe995a9Smrg	    case "$ac_configure_args0 " in
18369fe995a9Smrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
18379fe995a9Smrg	    esac
18389fe995a9Smrg	    ;;
18399fe995a9Smrg	  -* ) ac_must_keep_next=true ;;
18409fe995a9Smrg	esac
18419fe995a9Smrg      fi
1842b62cc08cSmrg      as_fn_append ac_configure_args " '$ac_arg'"
18439fe995a9Smrg      ;;
18449fe995a9Smrg    esac
18459fe995a9Smrg  done
18469fe995a9Smrgdone
1847b62cc08cSmrg{ ac_configure_args0=; unset ac_configure_args0;}
1848b62cc08cSmrg{ ac_configure_args1=; unset ac_configure_args1;}
18499fe995a9Smrg
18509fe995a9Smrg# When interrupted or exit'd, cleanup temporary files, and complete
18519fe995a9Smrg# config.log.  We remove comments because anyway the quotes in there
18529fe995a9Smrg# would cause problems or look ugly.
18539fe995a9Smrg# WARNING: Use '\'' to represent an apostrophe within the trap.
18549fe995a9Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
18559fe995a9Smrgtrap 'exit_status=$?
1856c048b52eSmrg  # Sanitize IFS.
1857c048b52eSmrg  IFS=" ""	$as_nl"
18589fe995a9Smrg  # Save into config.log some information that might help in debugging.
18599fe995a9Smrg  {
18609fe995a9Smrg    echo
18619fe995a9Smrg
1862c048b52eSmrg    printf "%s\n" "## ---------------- ##
18639fe995a9Smrg## Cache variables. ##
1864b62cc08cSmrg## ---------------- ##"
18659fe995a9Smrg    echo
18669fe995a9Smrg    # The following way of writing the cache mishandles newlines in values,
18679fe995a9Smrg(
18689fe995a9Smrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
18699fe995a9Smrg    eval ac_val=\$$ac_var
18709fe995a9Smrg    case $ac_val in #(
18719fe995a9Smrg    *${as_nl}*)
18729fe995a9Smrg      case $ac_var in #(
1873c048b52eSmrg      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1874c048b52eSmrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18759fe995a9Smrg      esac
18769fe995a9Smrg      case $ac_var in #(
18779fe995a9Smrg      _ | IFS | as_nl) ;; #(
1878b62cc08cSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1879b62cc08cSmrg      *) { eval $ac_var=; unset $ac_var;} ;;
18809fe995a9Smrg      esac ;;
18819fe995a9Smrg    esac
18829fe995a9Smrg  done
18839fe995a9Smrg  (set) 2>&1 |
18849fe995a9Smrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
18859fe995a9Smrg    *${as_nl}ac_space=\ *)
18869fe995a9Smrg      sed -n \
18879fe995a9Smrg	"s/'\''/'\''\\\\'\'''\''/g;
18889fe995a9Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
18899fe995a9Smrg      ;; #(
18909fe995a9Smrg    *)
18919fe995a9Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18929fe995a9Smrg      ;;
18939fe995a9Smrg    esac |
18949fe995a9Smrg    sort
18959fe995a9Smrg)
18969fe995a9Smrg    echo
18979fe995a9Smrg
1898c048b52eSmrg    printf "%s\n" "## ----------------- ##
18999fe995a9Smrg## Output variables. ##
1900b62cc08cSmrg## ----------------- ##"
19019fe995a9Smrg    echo
19029fe995a9Smrg    for ac_var in $ac_subst_vars
19039fe995a9Smrg    do
19049fe995a9Smrg      eval ac_val=\$$ac_var
19059fe995a9Smrg      case $ac_val in
1906c048b52eSmrg      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
19079fe995a9Smrg      esac
1908c048b52eSmrg      printf "%s\n" "$ac_var='\''$ac_val'\''"
19099fe995a9Smrg    done | sort
19109fe995a9Smrg    echo
19119fe995a9Smrg
19129fe995a9Smrg    if test -n "$ac_subst_files"; then
1913c048b52eSmrg      printf "%s\n" "## ------------------- ##
19149fe995a9Smrg## File substitutions. ##
1915b62cc08cSmrg## ------------------- ##"
19169fe995a9Smrg      echo
19179fe995a9Smrg      for ac_var in $ac_subst_files
19189fe995a9Smrg      do
19199fe995a9Smrg	eval ac_val=\$$ac_var
19209fe995a9Smrg	case $ac_val in
1921c048b52eSmrg	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
19229fe995a9Smrg	esac
1923c048b52eSmrg	printf "%s\n" "$ac_var='\''$ac_val'\''"
19249fe995a9Smrg      done | sort
19259fe995a9Smrg      echo
19269fe995a9Smrg    fi
19279fe995a9Smrg
19289fe995a9Smrg    if test -s confdefs.h; then
1929c048b52eSmrg      printf "%s\n" "## ----------- ##
19309fe995a9Smrg## confdefs.h. ##
1931b62cc08cSmrg## ----------- ##"
19329fe995a9Smrg      echo
19339fe995a9Smrg      cat confdefs.h
19349fe995a9Smrg      echo
19359fe995a9Smrg    fi
19369fe995a9Smrg    test "$ac_signal" != 0 &&
1937c048b52eSmrg      printf "%s\n" "$as_me: caught signal $ac_signal"
1938c048b52eSmrg    printf "%s\n" "$as_me: exit $exit_status"
19399fe995a9Smrg  } >&5
19409fe995a9Smrg  rm -f core *.core core.conftest.* &&
19419fe995a9Smrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
19429fe995a9Smrg    exit $exit_status
19439fe995a9Smrg' 0
19449fe995a9Smrgfor ac_signal in 1 2 13 15; do
1945b62cc08cSmrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
19469fe995a9Smrgdone
19479fe995a9Smrgac_signal=0
19489fe995a9Smrg
19499fe995a9Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
19509fe995a9Smrgrm -f -r conftest* confdefs.h
19519fe995a9Smrg
1952c048b52eSmrgprintf "%s\n" "/* confdefs.h */" > confdefs.h
1953b62cc08cSmrg
19549fe995a9Smrg# Predefined preprocessor variables.
19559fe995a9Smrg
1956c048b52eSmrgprintf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
19579fe995a9Smrg
1958c048b52eSmrgprintf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
19599fe995a9Smrg
1960c048b52eSmrgprintf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
19619fe995a9Smrg
1962c048b52eSmrgprintf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
19639fe995a9Smrg
1964c048b52eSmrgprintf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
19659fe995a9Smrg
1966c048b52eSmrgprintf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1967b62cc08cSmrg
19689fe995a9Smrg
19699fe995a9Smrg# Let the site file select an alternate cache file if it wants to.
1970b62cc08cSmrg# Prefer an explicitly selected file to automatically selected ones.
19719fe995a9Smrgif test -n "$CONFIG_SITE"; then
1972c048b52eSmrg  ac_site_files="$CONFIG_SITE"
19739fe995a9Smrgelif test "x$prefix" != xNONE; then
1974c048b52eSmrg  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
19759fe995a9Smrgelse
1976c048b52eSmrg  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
19779fe995a9Smrgfi
1978c048b52eSmrg
1979c048b52eSmrgfor ac_site_file in $ac_site_files
19809fe995a9Smrgdo
1981c048b52eSmrg  case $ac_site_file in #(
1982c048b52eSmrg  */*) :
1983c048b52eSmrg     ;; #(
1984c048b52eSmrg  *) :
1985c048b52eSmrg    ac_site_file=./$ac_site_file ;;
1986c048b52eSmrgesac
1987c048b52eSmrg  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1988c048b52eSmrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1989c048b52eSmrgprintf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
19909fe995a9Smrg    sed 's/^/| /' "$ac_site_file" >&5
1991b62cc08cSmrg    . "$ac_site_file" \
1992c048b52eSmrg      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1993c048b52eSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1994b62cc08cSmrgas_fn_error $? "failed to load site script $ac_site_file
1995b62cc08cSmrgSee \`config.log' for more details" "$LINENO" 5; }
19969fe995a9Smrg  fi
19979fe995a9Smrgdone
19989fe995a9Smrg
19999fe995a9Smrgif test -r "$cache_file"; then
2000b62cc08cSmrg  # Some versions of bash will fail to source /dev/null (special files
2001b62cc08cSmrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2002b62cc08cSmrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2003c048b52eSmrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2004c048b52eSmrgprintf "%s\n" "$as_me: loading cache $cache_file" >&6;}
20059fe995a9Smrg    case $cache_file in
20069fe995a9Smrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
20079fe995a9Smrg      *)                      . "./$cache_file";;
20089fe995a9Smrg    esac
20099fe995a9Smrg  fi
20109fe995a9Smrgelse
2011c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2012c048b52eSmrgprintf "%s\n" "$as_me: creating cache $cache_file" >&6;}
20139fe995a9Smrg  >$cache_file
20149fe995a9Smrgfi
20159fe995a9Smrg
2016c048b52eSmrg# Test code for whether the C compiler supports C89 (global declarations)
2017c048b52eSmrgac_c_conftest_c89_globals='
2018c048b52eSmrg/* Does the compiler advertise C89 conformance?
2019c048b52eSmrg   Do not test the value of __STDC__, because some compilers set it to 0
2020c048b52eSmrg   while being otherwise adequately conformant. */
2021c048b52eSmrg#if !defined __STDC__
2022c048b52eSmrg# error "Compiler does not advertise C89 conformance"
2023c048b52eSmrg#endif
20249fe995a9Smrg
2025c048b52eSmrg#include <stddef.h>
2026c048b52eSmrg#include <stdarg.h>
2027c048b52eSmrgstruct stat;
2028c048b52eSmrg/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2029c048b52eSmrgstruct buf { int x; };
2030c048b52eSmrgstruct buf * (*rcsopen) (struct buf *, struct stat *, int);
2031c048b52eSmrgstatic char *e (p, i)
2032c048b52eSmrg     char **p;
2033c048b52eSmrg     int i;
2034c048b52eSmrg{
2035c048b52eSmrg  return p[i];
2036c048b52eSmrg}
2037c048b52eSmrgstatic char *f (char * (*g) (char **, int), char **p, ...)
2038c048b52eSmrg{
2039c048b52eSmrg  char *s;
2040c048b52eSmrg  va_list v;
2041c048b52eSmrg  va_start (v,p);
2042c048b52eSmrg  s = g (p, va_arg (v,int));
2043c048b52eSmrg  va_end (v);
2044c048b52eSmrg  return s;
2045c048b52eSmrg}
2046e8ac26b0Smrg
2047c048b52eSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2048c048b52eSmrg   function prototypes and stuff, but not \xHH hex character constants.
2049c048b52eSmrg   These do not provoke an error unfortunately, instead are silently treated
2050c048b52eSmrg   as an "x".  The following induces an error, until -std is added to get
2051c048b52eSmrg   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2052c048b52eSmrg   array size at least.  It is necessary to write \x00 == 0 to get something
2053c048b52eSmrg   that is true only with -std.  */
2054c048b52eSmrgint osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2055e8ac26b0Smrg
2056c048b52eSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2057c048b52eSmrg   inside strings and character constants.  */
2058c048b52eSmrg#define FOO(x) '\''x'\''
2059c048b52eSmrgint xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2060e8ac26b0Smrg
2061c048b52eSmrgint test (int i, double x);
2062c048b52eSmrgstruct s1 {int (*f) (int a);};
2063c048b52eSmrgstruct s2 {int (*f) (double a);};
2064c048b52eSmrgint pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2065c048b52eSmrg               int, int);'
20669fe995a9Smrg
2067c048b52eSmrg# Test code for whether the C compiler supports C89 (body of main).
2068c048b52eSmrgac_c_conftest_c89_main='
2069c048b52eSmrgok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2070c048b52eSmrg'
20719fe995a9Smrg
2072c048b52eSmrg# Test code for whether the C compiler supports C99 (global declarations)
2073c048b52eSmrgac_c_conftest_c99_globals='
2074c048b52eSmrg// Does the compiler advertise C99 conformance?
2075c048b52eSmrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2076c048b52eSmrg# error "Compiler does not advertise C99 conformance"
2077c048b52eSmrg#endif
20789fe995a9Smrg
2079c048b52eSmrg#include <stdbool.h>
2080c048b52eSmrgextern int puts (const char *);
2081c048b52eSmrgextern int printf (const char *, ...);
2082c048b52eSmrgextern int dprintf (int, const char *, ...);
2083c048b52eSmrgextern void *malloc (size_t);
20849fe995a9Smrg
2085c048b52eSmrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2086c048b52eSmrg// dprintf is used instead of fprintf to avoid needing to declare
2087c048b52eSmrg// FILE and stderr.
2088c048b52eSmrg#define debug(...) dprintf (2, __VA_ARGS__)
2089c048b52eSmrg#define showlist(...) puts (#__VA_ARGS__)
2090c048b52eSmrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2091c048b52eSmrgstatic void
2092c048b52eSmrgtest_varargs_macros (void)
2093c048b52eSmrg{
2094c048b52eSmrg  int x = 1234;
2095c048b52eSmrg  int y = 5678;
2096c048b52eSmrg  debug ("Flag");
2097c048b52eSmrg  debug ("X = %d\n", x);
2098c048b52eSmrg  showlist (The first, second, and third items.);
2099c048b52eSmrg  report (x>y, "x is %d but y is %d", x, y);
2100c048b52eSmrg}
2101c048b52eSmrg
2102c048b52eSmrg// Check long long types.
2103c048b52eSmrg#define BIG64 18446744073709551615ull
2104c048b52eSmrg#define BIG32 4294967295ul
2105c048b52eSmrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2106c048b52eSmrg#if !BIG_OK
2107c048b52eSmrg  #error "your preprocessor is broken"
2108c048b52eSmrg#endif
2109c048b52eSmrg#if BIG_OK
2110c048b52eSmrg#else
2111c048b52eSmrg  #error "your preprocessor is broken"
2112c048b52eSmrg#endif
2113c048b52eSmrgstatic long long int bignum = -9223372036854775807LL;
2114c048b52eSmrgstatic unsigned long long int ubignum = BIG64;
2115c048b52eSmrg
2116c048b52eSmrgstruct incomplete_array
2117c048b52eSmrg{
2118c048b52eSmrg  int datasize;
2119c048b52eSmrg  double data[];
2120c048b52eSmrg};
2121c048b52eSmrg
2122c048b52eSmrgstruct named_init {
2123c048b52eSmrg  int number;
2124c048b52eSmrg  const wchar_t *name;
2125c048b52eSmrg  double average;
2126c048b52eSmrg};
2127c048b52eSmrg
2128c048b52eSmrgtypedef const char *ccp;
2129c048b52eSmrg
2130c048b52eSmrgstatic inline int
2131c048b52eSmrgtest_restrict (ccp restrict text)
2132c048b52eSmrg{
2133c048b52eSmrg  // See if C++-style comments work.
2134c048b52eSmrg  // Iterate through items via the restricted pointer.
2135c048b52eSmrg  // Also check for declarations in for loops.
2136c048b52eSmrg  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2137c048b52eSmrg    continue;
2138c048b52eSmrg  return 0;
2139c048b52eSmrg}
2140c048b52eSmrg
2141c048b52eSmrg// Check varargs and va_copy.
2142c048b52eSmrgstatic bool
2143c048b52eSmrgtest_varargs (const char *format, ...)
2144c048b52eSmrg{
2145c048b52eSmrg  va_list args;
2146c048b52eSmrg  va_start (args, format);
2147c048b52eSmrg  va_list args_copy;
2148c048b52eSmrg  va_copy (args_copy, args);
2149c048b52eSmrg
2150c048b52eSmrg  const char *str = "";
2151c048b52eSmrg  int number = 0;
2152c048b52eSmrg  float fnumber = 0;
2153c048b52eSmrg
2154c048b52eSmrg  while (*format)
2155c048b52eSmrg    {
2156c048b52eSmrg      switch (*format++)
2157c048b52eSmrg	{
2158c048b52eSmrg	case '\''s'\'': // string
2159c048b52eSmrg	  str = va_arg (args_copy, const char *);
2160c048b52eSmrg	  break;
2161c048b52eSmrg	case '\''d'\'': // int
2162c048b52eSmrg	  number = va_arg (args_copy, int);
2163c048b52eSmrg	  break;
2164c048b52eSmrg	case '\''f'\'': // float
2165c048b52eSmrg	  fnumber = va_arg (args_copy, double);
2166c048b52eSmrg	  break;
2167c048b52eSmrg	default:
2168c048b52eSmrg	  break;
2169c048b52eSmrg	}
2170c048b52eSmrg    }
2171c048b52eSmrg  va_end (args_copy);
2172c048b52eSmrg  va_end (args);
2173c048b52eSmrg
2174c048b52eSmrg  return *str && number && fnumber;
2175c048b52eSmrg}
2176c048b52eSmrg'
2177c048b52eSmrg
2178c048b52eSmrg# Test code for whether the C compiler supports C99 (body of main).
2179c048b52eSmrgac_c_conftest_c99_main='
2180c048b52eSmrg  // Check bool.
2181c048b52eSmrg  _Bool success = false;
2182c048b52eSmrg  success |= (argc != 0);
2183c048b52eSmrg
2184c048b52eSmrg  // Check restrict.
2185c048b52eSmrg  if (test_restrict ("String literal") == 0)
2186c048b52eSmrg    success = true;
2187c048b52eSmrg  char *restrict newvar = "Another string";
2188c048b52eSmrg
2189c048b52eSmrg  // Check varargs.
2190c048b52eSmrg  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2191c048b52eSmrg  test_varargs_macros ();
2192c048b52eSmrg
2193c048b52eSmrg  // Check flexible array members.
2194c048b52eSmrg  struct incomplete_array *ia =
2195c048b52eSmrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2196c048b52eSmrg  ia->datasize = 10;
2197c048b52eSmrg  for (int i = 0; i < ia->datasize; ++i)
2198c048b52eSmrg    ia->data[i] = i * 1.234;
2199c048b52eSmrg
2200c048b52eSmrg  // Check named initializers.
2201c048b52eSmrg  struct named_init ni = {
2202c048b52eSmrg    .number = 34,
2203c048b52eSmrg    .name = L"Test wide string",
2204c048b52eSmrg    .average = 543.34343,
2205c048b52eSmrg  };
2206c048b52eSmrg
2207c048b52eSmrg  ni.number = 58;
2208c048b52eSmrg
2209c048b52eSmrg  int dynamic_array[ni.number];
2210c048b52eSmrg  dynamic_array[0] = argv[0][0];
2211c048b52eSmrg  dynamic_array[ni.number - 1] = 543;
2212c048b52eSmrg
2213c048b52eSmrg  // work around unused variable warnings
2214c048b52eSmrg  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2215c048b52eSmrg	 || dynamic_array[ni.number - 1] != 543);
2216c048b52eSmrg'
2217c048b52eSmrg
2218c048b52eSmrg# Test code for whether the C compiler supports C11 (global declarations)
2219c048b52eSmrgac_c_conftest_c11_globals='
2220c048b52eSmrg// Does the compiler advertise C11 conformance?
2221c048b52eSmrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2222c048b52eSmrg# error "Compiler does not advertise C11 conformance"
2223c048b52eSmrg#endif
2224c048b52eSmrg
2225c048b52eSmrg// Check _Alignas.
2226c048b52eSmrgchar _Alignas (double) aligned_as_double;
2227c048b52eSmrgchar _Alignas (0) no_special_alignment;
2228c048b52eSmrgextern char aligned_as_int;
2229c048b52eSmrgchar _Alignas (0) _Alignas (int) aligned_as_int;
2230c048b52eSmrg
2231c048b52eSmrg// Check _Alignof.
2232c048b52eSmrgenum
2233c048b52eSmrg{
2234c048b52eSmrg  int_alignment = _Alignof (int),
2235c048b52eSmrg  int_array_alignment = _Alignof (int[100]),
2236c048b52eSmrg  char_alignment = _Alignof (char)
2237c048b52eSmrg};
2238c048b52eSmrg_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2239c048b52eSmrg
2240c048b52eSmrg// Check _Noreturn.
2241c048b52eSmrgint _Noreturn does_not_return (void) { for (;;) continue; }
2242c048b52eSmrg
2243c048b52eSmrg// Check _Static_assert.
2244c048b52eSmrgstruct test_static_assert
2245c048b52eSmrg{
2246c048b52eSmrg  int x;
2247c048b52eSmrg  _Static_assert (sizeof (int) <= sizeof (long int),
2248c048b52eSmrg                  "_Static_assert does not work in struct");
2249c048b52eSmrg  long int y;
2250c048b52eSmrg};
2251c048b52eSmrg
2252c048b52eSmrg// Check UTF-8 literals.
2253c048b52eSmrg#define u8 syntax error!
2254c048b52eSmrgchar const utf8_literal[] = u8"happens to be ASCII" "another string";
2255c048b52eSmrg
2256c048b52eSmrg// Check duplicate typedefs.
2257c048b52eSmrgtypedef long *long_ptr;
2258c048b52eSmrgtypedef long int *long_ptr;
2259c048b52eSmrgtypedef long_ptr long_ptr;
2260c048b52eSmrg
2261c048b52eSmrg// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2262c048b52eSmrgstruct anonymous
2263c048b52eSmrg{
2264c048b52eSmrg  union {
2265c048b52eSmrg    struct { int i; int j; };
2266c048b52eSmrg    struct { int k; long int l; } w;
2267c048b52eSmrg  };
2268c048b52eSmrg  int m;
2269c048b52eSmrg} v1;
2270c048b52eSmrg'
2271c048b52eSmrg
2272c048b52eSmrg# Test code for whether the C compiler supports C11 (body of main).
2273c048b52eSmrgac_c_conftest_c11_main='
2274c048b52eSmrg  _Static_assert ((offsetof (struct anonymous, i)
2275c048b52eSmrg		   == offsetof (struct anonymous, w.k)),
2276c048b52eSmrg		  "Anonymous union alignment botch");
2277c048b52eSmrg  v1.i = 2;
2278c048b52eSmrg  v1.w.k = 5;
2279c048b52eSmrg  ok |= v1.i != 5;
2280c048b52eSmrg'
2281c048b52eSmrg
2282c048b52eSmrg# Test code for whether the C compiler supports C11 (complete).
2283c048b52eSmrgac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2284c048b52eSmrg${ac_c_conftest_c99_globals}
2285c048b52eSmrg${ac_c_conftest_c11_globals}
2286c048b52eSmrg
2287c048b52eSmrgint
2288c048b52eSmrgmain (int argc, char **argv)
2289c048b52eSmrg{
2290c048b52eSmrg  int ok = 0;
2291c048b52eSmrg  ${ac_c_conftest_c89_main}
2292c048b52eSmrg  ${ac_c_conftest_c99_main}
2293c048b52eSmrg  ${ac_c_conftest_c11_main}
2294c048b52eSmrg  return ok;
2295c048b52eSmrg}
2296c048b52eSmrg"
2297c048b52eSmrg
2298c048b52eSmrg# Test code for whether the C compiler supports C99 (complete).
2299c048b52eSmrgac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2300c048b52eSmrg${ac_c_conftest_c99_globals}
2301c048b52eSmrg
2302c048b52eSmrgint
2303c048b52eSmrgmain (int argc, char **argv)
2304c048b52eSmrg{
2305c048b52eSmrg  int ok = 0;
2306c048b52eSmrg  ${ac_c_conftest_c89_main}
2307c048b52eSmrg  ${ac_c_conftest_c99_main}
2308c048b52eSmrg  return ok;
2309c048b52eSmrg}
2310c048b52eSmrg"
2311c048b52eSmrg
2312c048b52eSmrg# Test code for whether the C compiler supports C89 (complete).
2313c048b52eSmrgac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2314c048b52eSmrg
2315c048b52eSmrgint
2316c048b52eSmrgmain (int argc, char **argv)
2317c048b52eSmrg{
2318c048b52eSmrg  int ok = 0;
2319c048b52eSmrg  ${ac_c_conftest_c89_main}
2320c048b52eSmrg  return ok;
2321c048b52eSmrg}
2322c048b52eSmrg"
2323c048b52eSmrg
2324c048b52eSmrgas_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2325c048b52eSmrgas_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2326c048b52eSmrgas_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2327c048b52eSmrgas_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2328c048b52eSmrgas_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2329c048b52eSmrgas_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2330c048b52eSmrgas_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2331c048b52eSmrgas_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2332c048b52eSmrgas_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2333c048b52eSmrg
2334c048b52eSmrg# Auxiliary files required by this configure script.
2335c048b52eSmrgac_aux_files="config.guess config.sub compile missing install-sh"
2336c048b52eSmrg
2337c048b52eSmrg# Locations in which to look for auxiliary files.
2338c048b52eSmrgac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2339c048b52eSmrg
2340c048b52eSmrg# Search for a directory containing all of the required auxiliary files,
2341c048b52eSmrg# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2342c048b52eSmrg# If we don't find one directory that contains all the files we need,
2343c048b52eSmrg# we report the set of missing files from the *first* directory in
2344c048b52eSmrg# $ac_aux_dir_candidates and give up.
2345c048b52eSmrgac_missing_aux_files=""
2346c048b52eSmrgac_first_candidate=:
2347c048b52eSmrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2348c048b52eSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2349c048b52eSmrgas_found=false
2350c048b52eSmrgfor as_dir in $ac_aux_dir_candidates
2351c048b52eSmrgdo
2352c048b52eSmrg  IFS=$as_save_IFS
2353c048b52eSmrg  case $as_dir in #(((
2354c048b52eSmrg    '') as_dir=./ ;;
2355c048b52eSmrg    */) ;;
2356c048b52eSmrg    *) as_dir=$as_dir/ ;;
2357c048b52eSmrg  esac
2358c048b52eSmrg  as_found=:
2359c048b52eSmrg
2360c048b52eSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2361c048b52eSmrg  ac_aux_dir_found=yes
2362c048b52eSmrg  ac_install_sh=
2363c048b52eSmrg  for ac_aux in $ac_aux_files
2364c048b52eSmrg  do
2365c048b52eSmrg    # As a special case, if "install-sh" is required, that requirement
2366c048b52eSmrg    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2367c048b52eSmrg    # and $ac_install_sh is set appropriately for whichever one is found.
2368c048b52eSmrg    if test x"$ac_aux" = x"install-sh"
2369c048b52eSmrg    then
2370c048b52eSmrg      if test -f "${as_dir}install-sh"; then
2371c048b52eSmrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2372c048b52eSmrg        ac_install_sh="${as_dir}install-sh -c"
2373c048b52eSmrg      elif test -f "${as_dir}install.sh"; then
2374c048b52eSmrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2375c048b52eSmrg        ac_install_sh="${as_dir}install.sh -c"
2376c048b52eSmrg      elif test -f "${as_dir}shtool"; then
2377c048b52eSmrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2378c048b52eSmrg        ac_install_sh="${as_dir}shtool install -c"
2379c048b52eSmrg      else
2380c048b52eSmrg        ac_aux_dir_found=no
2381c048b52eSmrg        if $ac_first_candidate; then
2382c048b52eSmrg          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2383c048b52eSmrg        else
2384c048b52eSmrg          break
2385c048b52eSmrg        fi
2386c048b52eSmrg      fi
2387c048b52eSmrg    else
2388c048b52eSmrg      if test -f "${as_dir}${ac_aux}"; then
2389c048b52eSmrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2390c048b52eSmrg      else
2391c048b52eSmrg        ac_aux_dir_found=no
2392c048b52eSmrg        if $ac_first_candidate; then
2393c048b52eSmrg          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2394c048b52eSmrg        else
2395c048b52eSmrg          break
2396c048b52eSmrg        fi
2397c048b52eSmrg      fi
2398c048b52eSmrg    fi
2399c048b52eSmrg  done
2400c048b52eSmrg  if test "$ac_aux_dir_found" = yes; then
2401c048b52eSmrg    ac_aux_dir="$as_dir"
2402c048b52eSmrg    break
2403c048b52eSmrg  fi
2404c048b52eSmrg  ac_first_candidate=false
2405c048b52eSmrg
2406c048b52eSmrg  as_found=false
2407c048b52eSmrgdone
2408c048b52eSmrgIFS=$as_save_IFS
2409c048b52eSmrgif $as_found
2410c048b52eSmrgthen :
2411c048b52eSmrg
2412c048b52eSmrgelse $as_nop
2413c048b52eSmrg  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2414c048b52eSmrgfi
2415c048b52eSmrg
2416c048b52eSmrg
2417c048b52eSmrg# These three variables are undocumented and unsupported,
2418c048b52eSmrg# and are intended to be withdrawn in a future Autoconf release.
2419c048b52eSmrg# They can cause serious problems if a builder's source tree is in a directory
2420c048b52eSmrg# whose full name contains unusual characters.
2421c048b52eSmrgif test -f "${ac_aux_dir}config.guess"; then
2422c048b52eSmrg  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2423c048b52eSmrgfi
2424c048b52eSmrgif test -f "${ac_aux_dir}config.sub"; then
2425c048b52eSmrg  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2426c048b52eSmrgfi
2427c048b52eSmrgif test -f "$ac_aux_dir/configure"; then
2428c048b52eSmrg  ac_configure="$SHELL ${ac_aux_dir}configure"
2429c048b52eSmrgfi
2430c048b52eSmrg
2431c048b52eSmrg# Check that the precious variables saved in the cache have kept the same
2432c048b52eSmrg# value.
2433c048b52eSmrgac_cache_corrupted=false
2434c048b52eSmrgfor ac_var in $ac_precious_vars; do
2435c048b52eSmrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2436c048b52eSmrg  eval ac_new_set=\$ac_env_${ac_var}_set
2437c048b52eSmrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2438c048b52eSmrg  eval ac_new_val=\$ac_env_${ac_var}_value
2439c048b52eSmrg  case $ac_old_set,$ac_new_set in
2440c048b52eSmrg    set,)
2441c048b52eSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2442c048b52eSmrgprintf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2443c048b52eSmrg      ac_cache_corrupted=: ;;
2444c048b52eSmrg    ,set)
2445c048b52eSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2446c048b52eSmrgprintf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2447c048b52eSmrg      ac_cache_corrupted=: ;;
2448c048b52eSmrg    ,);;
2449c048b52eSmrg    *)
2450c048b52eSmrg      if test "x$ac_old_val" != "x$ac_new_val"; then
2451c048b52eSmrg	# differences in whitespace do not lead to failure.
2452c048b52eSmrg	ac_old_val_w=`echo x $ac_old_val`
2453c048b52eSmrg	ac_new_val_w=`echo x $ac_new_val`
2454c048b52eSmrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2455c048b52eSmrg	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2456c048b52eSmrgprintf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2457c048b52eSmrg	  ac_cache_corrupted=:
2458c048b52eSmrg	else
2459c048b52eSmrg	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2460c048b52eSmrgprintf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2461c048b52eSmrg	  eval $ac_var=\$ac_old_val
2462c048b52eSmrg	fi
2463c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2464c048b52eSmrgprintf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2465c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2466c048b52eSmrgprintf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2467c048b52eSmrg      fi;;
2468c048b52eSmrg  esac
2469c048b52eSmrg  # Pass precious variables to config.status.
2470c048b52eSmrg  if test "$ac_new_set" = set; then
2471c048b52eSmrg    case $ac_new_val in
2472c048b52eSmrg    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2473c048b52eSmrg    *) ac_arg=$ac_var=$ac_new_val ;;
2474c048b52eSmrg    esac
2475c048b52eSmrg    case " $ac_configure_args " in
2476c048b52eSmrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2477c048b52eSmrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2478c048b52eSmrg    esac
2479c048b52eSmrg  fi
2480c048b52eSmrgdone
2481c048b52eSmrgif $ac_cache_corrupted; then
2482c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2483c048b52eSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2484c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2485c048b52eSmrgprintf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2486c048b52eSmrg  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2487c048b52eSmrg	    and start over" "$LINENO" 5
2488c048b52eSmrgfi
2489c048b52eSmrg## -------------------- ##
2490c048b52eSmrg## Main body of script. ##
2491c048b52eSmrg## -------------------- ##
2492c048b52eSmrg
2493c048b52eSmrgac_ext=c
2494c048b52eSmrgac_cpp='$CPP $CPPFLAGS'
2495c048b52eSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2496c048b52eSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2497c048b52eSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2498c048b52eSmrg
2499c048b52eSmrg
2500c048b52eSmrg
2501c048b52eSmrgac_config_headers="$ac_config_headers config.h"
2502c048b52eSmrg
2503c048b52eSmrg
2504c048b52eSmrg# Initialize Automake
2505c048b52eSmrgam__api_version='1.16'
2506c048b52eSmrg
2507c048b52eSmrg
2508c048b52eSmrg
2509c048b52eSmrg  # Find a good install program.  We prefer a C program (faster),
2510c048b52eSmrg# so one script is as good as another.  But avoid the broken or
2511c048b52eSmrg# incompatible versions:
2512c048b52eSmrg# SysV /etc/install, /usr/sbin/install
2513c048b52eSmrg# SunOS /usr/etc/install
2514c048b52eSmrg# IRIX /sbin/install
2515c048b52eSmrg# AIX /bin/install
25169fe995a9Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
25179fe995a9Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
25189fe995a9Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
25199fe995a9Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
25209fe995a9Smrg# OS/2's system install, which has a completely different semantic
25219fe995a9Smrg# ./install, which can be erroneously created by make from ./install.sh.
2522b62cc08cSmrg# Reject install programs that cannot install multiple files.
2523c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2524c048b52eSmrgprintf %s "checking for a BSD-compatible install... " >&6; }
25259fe995a9Smrgif test -z "$INSTALL"; then
2526c048b52eSmrgif test ${ac_cv_path_install+y}
2527c048b52eSmrgthen :
2528c048b52eSmrg  printf %s "(cached) " >&6
2529c048b52eSmrgelse $as_nop
25309fe995a9Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25319fe995a9Smrgfor as_dir in $PATH
25329fe995a9Smrgdo
25339fe995a9Smrg  IFS=$as_save_IFS
2534c048b52eSmrg  case $as_dir in #(((
2535c048b52eSmrg    '') as_dir=./ ;;
2536c048b52eSmrg    */) ;;
2537c048b52eSmrg    *) as_dir=$as_dir/ ;;
2538c048b52eSmrg  esac
2539c048b52eSmrg    # Account for fact that we put trailing slashes in our PATH walk.
2540c048b52eSmrgcase $as_dir in #((
2541c048b52eSmrg  ./ | /[cC]/* | \
25429fe995a9Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2543b62cc08cSmrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
25449fe995a9Smrg  /usr/ucb/* ) ;;
25459fe995a9Smrg  *)
25469fe995a9Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
25479fe995a9Smrg    # Don't use installbsd from OSF since it installs stuff as root
25489fe995a9Smrg    # by default.
25499fe995a9Smrg    for ac_prog in ginstall scoinst install; do
25509fe995a9Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
2551c048b52eSmrg	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
25529fe995a9Smrg	  if test $ac_prog = install &&
2553c048b52eSmrg	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
25549fe995a9Smrg	    # AIX install.  It has an incompatible calling convention.
25559fe995a9Smrg	    :
25569fe995a9Smrg	  elif test $ac_prog = install &&
2557c048b52eSmrg	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
25589fe995a9Smrg	    # program-specific install script used by HP pwplus--don't use.
25599fe995a9Smrg	    :
25609fe995a9Smrg	  else
2561b62cc08cSmrg	    rm -rf conftest.one conftest.two conftest.dir
2562b62cc08cSmrg	    echo one > conftest.one
2563b62cc08cSmrg	    echo two > conftest.two
2564b62cc08cSmrg	    mkdir conftest.dir
2565c048b52eSmrg	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2566b62cc08cSmrg	      test -s conftest.one && test -s conftest.two &&
2567b62cc08cSmrg	      test -s conftest.dir/conftest.one &&
2568b62cc08cSmrg	      test -s conftest.dir/conftest.two
2569b62cc08cSmrg	    then
2570c048b52eSmrg	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2571b62cc08cSmrg	      break 3
2572b62cc08cSmrg	    fi
25739fe995a9Smrg	  fi
25749fe995a9Smrg	fi
25759fe995a9Smrg      done
25769fe995a9Smrg    done
25779fe995a9Smrg    ;;
25789fe995a9Smrgesac
2579b62cc08cSmrg
2580b62cc08cSmrg  done
25819fe995a9SmrgIFS=$as_save_IFS
25829fe995a9Smrg
2583b62cc08cSmrgrm -rf conftest.one conftest.two conftest.dir
25849fe995a9Smrg
25859fe995a9Smrgfi
2586c048b52eSmrg  if test ${ac_cv_path_install+y}; then
25879fe995a9Smrg    INSTALL=$ac_cv_path_install
25889fe995a9Smrg  else
25899fe995a9Smrg    # As a last resort, use the slow shell script.  Don't cache a
25909fe995a9Smrg    # value for INSTALL within a source directory, because that will
25919fe995a9Smrg    # break other packages using the cache if that directory is
25929fe995a9Smrg    # removed, or if the value is a relative name.
25939fe995a9Smrg    INSTALL=$ac_install_sh
25949fe995a9Smrg  fi
25959fe995a9Smrgfi
2596c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2597c048b52eSmrgprintf "%s\n" "$INSTALL" >&6; }
25989fe995a9Smrg
25999fe995a9Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
26009fe995a9Smrg# It thinks the first close brace ends the variable substitution.
26019fe995a9Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
26029fe995a9Smrg
26039fe995a9Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
26049fe995a9Smrg
26059fe995a9Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
26069fe995a9Smrg
2607c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2608c048b52eSmrgprintf %s "checking whether build environment is sane... " >&6; }
2609b62cc08cSmrg# Reject unsafe characters in $srcdir or the absolute working directory
2610b62cc08cSmrg# name.  Accept space and tab only in the latter.
2611b62cc08cSmrgam_lf='
2612b62cc08cSmrg'
2613b62cc08cSmrgcase `pwd` in
2614b62cc08cSmrg  *[\\\"\#\$\&\'\`$am_lf]*)
2615b62cc08cSmrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2616b62cc08cSmrgesac
2617b62cc08cSmrgcase $srcdir in
2618b62cc08cSmrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
26199d794632Smrg    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2620b62cc08cSmrgesac
2621b62cc08cSmrg
26229d794632Smrg# Do 'set' in a subshell so we don't clobber the current shell's
26239fe995a9Smrg# arguments.  Must try -L first in case configure is actually a
26249fe995a9Smrg# symlink; some systems play weird games with the mod time of symlinks
26259fe995a9Smrg# (eg FreeBSD returns the mod time of the symlink's containing
26269fe995a9Smrg# directory).
26279fe995a9Smrgif (
26289d794632Smrg   am_has_slept=no
26299d794632Smrg   for am_try in 1 2; do
26309d794632Smrg     echo "timestamp, slept: $am_has_slept" > conftest.file
26319d794632Smrg     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
26329d794632Smrg     if test "$*" = "X"; then
26339d794632Smrg	# -L didn't work.
26349d794632Smrg	set X `ls -t "$srcdir/configure" conftest.file`
26359d794632Smrg     fi
26369d794632Smrg     if test "$*" != "X $srcdir/configure conftest.file" \
26379d794632Smrg	&& test "$*" != "X conftest.file $srcdir/configure"; then
26389d794632Smrg
26399d794632Smrg	# If neither matched, then we have a broken ls.  This can happen
26409d794632Smrg	# if, for instance, CONFIG_SHELL is bash and it inherits a
26419d794632Smrg	# broken ls alias from the environment.  This has actually
26429d794632Smrg	# happened.  Such a system could not be considered "sane".
26439d794632Smrg	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
26449d794632Smrg  alias in your environment" "$LINENO" 5
26459d794632Smrg     fi
26469d794632Smrg     if test "$2" = conftest.file || test $am_try -eq 2; then
26479d794632Smrg       break
26489d794632Smrg     fi
26499d794632Smrg     # Just in case.
26509d794632Smrg     sleep 1
26519d794632Smrg     am_has_slept=yes
26529d794632Smrg   done
26539fe995a9Smrg   test "$2" = conftest.file
26549fe995a9Smrg   )
26559fe995a9Smrgthen
26569fe995a9Smrg   # Ok.
26579fe995a9Smrg   :
26589fe995a9Smrgelse
2659b62cc08cSmrg   as_fn_error $? "newly created file is older than distributed files!
2660b62cc08cSmrgCheck your system clock" "$LINENO" 5
26619fe995a9Smrgfi
2662c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2663c048b52eSmrgprintf "%s\n" "yes" >&6; }
26649d794632Smrg# If we didn't sleep, we still need to ensure time stamps of config.status and
26659d794632Smrg# generated files are strictly newer.
26669d794632Smrgam_sleep_pid=
26679d794632Smrgif grep 'slept: no' conftest.file >/dev/null 2>&1; then
26689d794632Smrg  ( sleep 1 ) &
26699d794632Smrg  am_sleep_pid=$!
26709d794632Smrgfi
26719d794632Smrg
26729d794632Smrgrm -f conftest.file
26739d794632Smrg
26749fe995a9Smrgtest "$program_prefix" != NONE &&
26759fe995a9Smrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
26769fe995a9Smrg# Use a double $ so make ignores it.
26779fe995a9Smrgtest "$program_suffix" != NONE &&
26789fe995a9Smrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2679b62cc08cSmrg# Double any \ or $.
26809fe995a9Smrg# By default was `s,x,x', remove it if useless.
2681b62cc08cSmrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2682c048b52eSmrgprogram_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2683c048b52eSmrg
26849fe995a9Smrg
2685e8ac26b0Smrg# Expand $ac_aux_dir to an absolute path.
2686e8ac26b0Smrgam_aux_dir=`cd "$ac_aux_dir" && pwd`
26879fe995a9Smrg
2688c048b52eSmrg
2689c048b52eSmrg  if test x"${MISSING+set}" != xset; then
2690c048b52eSmrg  MISSING="\${SHELL} '$am_aux_dir/missing'"
2691b62cc08cSmrgfi
26929fe995a9Smrg# Use eval to expand $SHELL
26939d794632Smrgif eval "$MISSING --is-lightweight"; then
26949d794632Smrg  am_missing_run="$MISSING "
26959fe995a9Smrgelse
26969fe995a9Smrg  am_missing_run=
2697c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2698c048b52eSmrgprintf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2699b62cc08cSmrgfi
2700b62cc08cSmrg
2701e8ac26b0Smrgif test x"${install_sh+set}" != xset; then
2702b62cc08cSmrg  case $am_aux_dir in
2703b62cc08cSmrg  *\ * | *\	*)
2704b62cc08cSmrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2705b62cc08cSmrg  *)
2706b62cc08cSmrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
2707b62cc08cSmrg  esac
2708b62cc08cSmrgfi
2709b62cc08cSmrg
27109d794632Smrg# Installed binaries are usually stripped using 'strip' when the user
27119d794632Smrg# run "make install-strip".  However 'strip' might not be the right
2712b62cc08cSmrg# tool to use in cross-compilation environments, therefore Automake
27139d794632Smrg# will honor the 'STRIP' environment variable to overrule this program.
2714b62cc08cSmrgif test "$cross_compiling" != no; then
2715b62cc08cSmrg  if test -n "$ac_tool_prefix"; then
2716b62cc08cSmrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2717b62cc08cSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2
2718c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2719c048b52eSmrgprintf %s "checking for $ac_word... " >&6; }
2720c048b52eSmrgif test ${ac_cv_prog_STRIP+y}
2721c048b52eSmrgthen :
2722c048b52eSmrg  printf %s "(cached) " >&6
2723c048b52eSmrgelse $as_nop
2724b62cc08cSmrg  if test -n "$STRIP"; then
2725b62cc08cSmrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2726b62cc08cSmrgelse
2727b62cc08cSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728b62cc08cSmrgfor as_dir in $PATH
2729b62cc08cSmrgdo
2730b62cc08cSmrg  IFS=$as_save_IFS
2731c048b52eSmrg  case $as_dir in #(((
2732c048b52eSmrg    '') as_dir=./ ;;
2733c048b52eSmrg    */) ;;
2734c048b52eSmrg    *) as_dir=$as_dir/ ;;
2735c048b52eSmrg  esac
2736b62cc08cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2737c048b52eSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2738b62cc08cSmrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2739c048b52eSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2740b62cc08cSmrg    break 2
2741b62cc08cSmrg  fi
2742b62cc08cSmrgdone
2743b62cc08cSmrg  done
2744b62cc08cSmrgIFS=$as_save_IFS
2745b62cc08cSmrg
2746b62cc08cSmrgfi
2747b62cc08cSmrgfi
2748b62cc08cSmrgSTRIP=$ac_cv_prog_STRIP
2749b62cc08cSmrgif test -n "$STRIP"; then
2750c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2751c048b52eSmrgprintf "%s\n" "$STRIP" >&6; }
2752b62cc08cSmrgelse
2753c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2754c048b52eSmrgprintf "%s\n" "no" >&6; }
2755b62cc08cSmrgfi
2756b62cc08cSmrg
2757b62cc08cSmrg
2758b62cc08cSmrgfi
2759b62cc08cSmrgif test -z "$ac_cv_prog_STRIP"; then
2760b62cc08cSmrg  ac_ct_STRIP=$STRIP
2761b62cc08cSmrg  # Extract the first word of "strip", so it can be a program name with args.
2762b62cc08cSmrgset dummy strip; ac_word=$2
2763c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2764c048b52eSmrgprintf %s "checking for $ac_word... " >&6; }
2765c048b52eSmrgif test ${ac_cv_prog_ac_ct_STRIP+y}
2766c048b52eSmrgthen :
2767c048b52eSmrg  printf %s "(cached) " >&6
2768c048b52eSmrgelse $as_nop
2769b62cc08cSmrg  if test -n "$ac_ct_STRIP"; then
2770b62cc08cSmrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2771b62cc08cSmrgelse
2772b62cc08cSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773b62cc08cSmrgfor as_dir in $PATH
2774b62cc08cSmrgdo
2775b62cc08cSmrg  IFS=$as_save_IFS
2776c048b52eSmrg  case $as_dir in #(((
2777c048b52eSmrg    '') as_dir=./ ;;
2778c048b52eSmrg    */) ;;
2779c048b52eSmrg    *) as_dir=$as_dir/ ;;
2780c048b52eSmrg  esac
2781b62cc08cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2782c048b52eSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2783b62cc08cSmrg    ac_cv_prog_ac_ct_STRIP="strip"
2784c048b52eSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2785b62cc08cSmrg    break 2
2786b62cc08cSmrg  fi
2787b62cc08cSmrgdone
2788b62cc08cSmrg  done
2789b62cc08cSmrgIFS=$as_save_IFS
2790b62cc08cSmrg
2791b62cc08cSmrgfi
2792b62cc08cSmrgfi
2793b62cc08cSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2794b62cc08cSmrgif test -n "$ac_ct_STRIP"; then
2795c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2796c048b52eSmrgprintf "%s\n" "$ac_ct_STRIP" >&6; }
2797b62cc08cSmrgelse
2798c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2799c048b52eSmrgprintf "%s\n" "no" >&6; }
2800b62cc08cSmrgfi
2801b62cc08cSmrg
2802b62cc08cSmrg  if test "x$ac_ct_STRIP" = x; then
2803b62cc08cSmrg    STRIP=":"
2804b62cc08cSmrg  else
2805b62cc08cSmrg    case $cross_compiling:$ac_tool_warned in
2806b62cc08cSmrgyes:)
2807c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2808c048b52eSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2809b62cc08cSmrgac_tool_warned=yes ;;
2810b62cc08cSmrgesac
2811b62cc08cSmrg    STRIP=$ac_ct_STRIP
2812b62cc08cSmrg  fi
2813b62cc08cSmrgelse
2814b62cc08cSmrg  STRIP="$ac_cv_prog_STRIP"
28159fe995a9Smrgfi
28169fe995a9Smrg
2817b62cc08cSmrgfi
2818b62cc08cSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2819b62cc08cSmrg
2820c048b52eSmrg
2821c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2822c048b52eSmrgprintf %s "checking for a race-free mkdir -p... " >&6; }
28239fe995a9Smrgif test -z "$MKDIR_P"; then
2824c048b52eSmrg  if test ${ac_cv_path_mkdir+y}
2825c048b52eSmrgthen :
2826c048b52eSmrg  printf %s "(cached) " >&6
2827c048b52eSmrgelse $as_nop
28289fe995a9Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28299fe995a9Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
28309fe995a9Smrgdo
28319fe995a9Smrg  IFS=$as_save_IFS
2832c048b52eSmrg  case $as_dir in #(((
2833c048b52eSmrg    '') as_dir=./ ;;
2834c048b52eSmrg    */) ;;
2835c048b52eSmrg    *) as_dir=$as_dir/ ;;
2836c048b52eSmrg  esac
2837b62cc08cSmrg    for ac_prog in mkdir gmkdir; do
28389fe995a9Smrg	 for ac_exec_ext in '' $ac_executable_extensions; do
2839c048b52eSmrg	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2840c048b52eSmrg	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2841c048b52eSmrg	     'mkdir ('*'coreutils) '* | \
2842c048b52eSmrg	     'BusyBox '* | \
28439fe995a9Smrg	     'mkdir (fileutils) '4.1*)
2844c048b52eSmrg	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
28459fe995a9Smrg	       break 3;;
28469fe995a9Smrg	   esac
28479fe995a9Smrg	 done
28489fe995a9Smrg       done
2849b62cc08cSmrg  done
28509fe995a9SmrgIFS=$as_save_IFS
28519fe995a9Smrg
28529fe995a9Smrgfi
28539fe995a9Smrg
2854b62cc08cSmrg  test -d ./--version && rmdir ./--version
2855c048b52eSmrg  if test ${ac_cv_path_mkdir+y}; then
28569fe995a9Smrg    MKDIR_P="$ac_cv_path_mkdir -p"
28579fe995a9Smrg  else
28589fe995a9Smrg    # As a last resort, use the slow shell script.  Don't cache a
28599fe995a9Smrg    # value for MKDIR_P within a source directory, because that will
28609fe995a9Smrg    # break other packages using the cache if that directory is
28619fe995a9Smrg    # removed, or if the value is a relative name.
28629fe995a9Smrg    MKDIR_P="$ac_install_sh -d"
28639fe995a9Smrg  fi
28649fe995a9Smrgfi
2865c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2866c048b52eSmrgprintf "%s\n" "$MKDIR_P" >&6; }
28679fe995a9Smrg
28689fe995a9Smrgfor ac_prog in gawk mawk nawk awk
28699fe995a9Smrgdo
28709fe995a9Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
28719fe995a9Smrgset dummy $ac_prog; ac_word=$2
2872c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2873c048b52eSmrgprintf %s "checking for $ac_word... " >&6; }
2874c048b52eSmrgif test ${ac_cv_prog_AWK+y}
2875c048b52eSmrgthen :
2876c048b52eSmrg  printf %s "(cached) " >&6
2877c048b52eSmrgelse $as_nop
28789fe995a9Smrg  if test -n "$AWK"; then
28799fe995a9Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
28809fe995a9Smrgelse
28819fe995a9Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28829fe995a9Smrgfor as_dir in $PATH
28839fe995a9Smrgdo
28849fe995a9Smrg  IFS=$as_save_IFS
2885c048b52eSmrg  case $as_dir in #(((
2886c048b52eSmrg    '') as_dir=./ ;;
2887c048b52eSmrg    */) ;;
2888c048b52eSmrg    *) as_dir=$as_dir/ ;;
2889c048b52eSmrg  esac
2890b62cc08cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2891c048b52eSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28929fe995a9Smrg    ac_cv_prog_AWK="$ac_prog"
2893c048b52eSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28949fe995a9Smrg    break 2
28959fe995a9Smrg  fi
28969fe995a9Smrgdone
2897b62cc08cSmrg  done
28989fe995a9SmrgIFS=$as_save_IFS
28999fe995a9Smrg
29009fe995a9Smrgfi
29019fe995a9Smrgfi
29029fe995a9SmrgAWK=$ac_cv_prog_AWK
29039fe995a9Smrgif test -n "$AWK"; then
2904c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2905c048b52eSmrgprintf "%s\n" "$AWK" >&6; }
29069fe995a9Smrgelse
2907c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2908c048b52eSmrgprintf "%s\n" "no" >&6; }
29099fe995a9Smrgfi
29109fe995a9Smrg
29119fe995a9Smrg
29129fe995a9Smrg  test -n "$AWK" && break
29139fe995a9Smrgdone
29149fe995a9Smrg
2915c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2916c048b52eSmrgprintf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2917b62cc08cSmrgset x ${MAKE-make}
2918c048b52eSmrgac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2919c048b52eSmrgif eval test \${ac_cv_prog_make_${ac_make}_set+y}
2920c048b52eSmrgthen :
2921c048b52eSmrg  printf %s "(cached) " >&6
2922c048b52eSmrgelse $as_nop
29239fe995a9Smrg  cat >conftest.make <<\_ACEOF
29249fe995a9SmrgSHELL = /bin/sh
29259fe995a9Smrgall:
29269fe995a9Smrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
29279fe995a9Smrg_ACEOF
2928b62cc08cSmrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
29299fe995a9Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
29309fe995a9Smrg  *@@@%%%=?*=@@@%%%*)
29319fe995a9Smrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
29329fe995a9Smrg  *)
29339fe995a9Smrg    eval ac_cv_prog_make_${ac_make}_set=no;;
29349fe995a9Smrgesac
29359fe995a9Smrgrm -f conftest.make
29369fe995a9Smrgfi
29379fe995a9Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2938c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2939c048b52eSmrgprintf "%s\n" "yes" >&6; }
29409fe995a9Smrg  SET_MAKE=
29419fe995a9Smrgelse
2942c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2943c048b52eSmrgprintf "%s\n" "no" >&6; }
29449fe995a9Smrg  SET_MAKE="MAKE=${MAKE-make}"
29459fe995a9Smrgfi
29469fe995a9Smrg
29479fe995a9Smrgrm -rf .tst 2>/dev/null
29489fe995a9Smrgmkdir .tst 2>/dev/null
29499fe995a9Smrgif test -d .tst; then
29509fe995a9Smrg  am__leading_dot=.
29519fe995a9Smrgelse
29529fe995a9Smrg  am__leading_dot=_
29539fe995a9Smrgfi
29549fe995a9Smrgrmdir .tst 2>/dev/null
29559fe995a9Smrg
29569d794632Smrg# Check whether --enable-silent-rules was given.
2957c048b52eSmrgif test ${enable_silent_rules+y}
2958c048b52eSmrgthen :
29599d794632Smrg  enableval=$enable_silent_rules;
29609d794632Smrgfi
29619d794632Smrg
29629d794632Smrgcase $enable_silent_rules in # (((
29639d794632Smrg  yes) AM_DEFAULT_VERBOSITY=0;;
29649d794632Smrg   no) AM_DEFAULT_VERBOSITY=1;;
29659d794632Smrg    *) AM_DEFAULT_VERBOSITY=1;;
29669d794632Smrgesac
29679d794632Smrgam_make=${MAKE-make}
2968c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2969c048b52eSmrgprintf %s "checking whether $am_make supports nested variables... " >&6; }
2970c048b52eSmrgif test ${am_cv_make_support_nested_variables+y}
2971c048b52eSmrgthen :
2972c048b52eSmrg  printf %s "(cached) " >&6
2973c048b52eSmrgelse $as_nop
2974c048b52eSmrg  if printf "%s\n" 'TRUE=$(BAR$(V))
29759d794632SmrgBAR0=false
29769d794632SmrgBAR1=true
29779d794632SmrgV=1
29789d794632Smrgam__doit:
29799d794632Smrg	@$(TRUE)
29809d794632Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
29819d794632Smrg  am_cv_make_support_nested_variables=yes
29829d794632Smrgelse
29839d794632Smrg  am_cv_make_support_nested_variables=no
29849d794632Smrgfi
29859d794632Smrgfi
2986c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2987c048b52eSmrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
29889d794632Smrgif test $am_cv_make_support_nested_variables = yes; then
29899d794632Smrg    AM_V='$(V)'
29909d794632Smrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
29919d794632Smrgelse
29929d794632Smrg  AM_V=$AM_DEFAULT_VERBOSITY
29939d794632Smrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
29949d794632Smrgfi
29959d794632SmrgAM_BACKSLASH='\'
29969d794632Smrg
29979fe995a9Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
29989fe995a9Smrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
29999fe995a9Smrg  # is not polluted with repeated "-I."
30009fe995a9Smrg  am__isrc=' -I$(srcdir)'
30019fe995a9Smrg  # test to see if srcdir already configured
30029fe995a9Smrg  if test -f $srcdir/config.status; then
3003b62cc08cSmrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
30049fe995a9Smrg  fi
30059fe995a9Smrgfi
30069fe995a9Smrg
30079fe995a9Smrg# test whether we have cygpath
30089fe995a9Smrgif test -z "$CYGPATH_W"; then
30099fe995a9Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
30109fe995a9Smrg    CYGPATH_W='cygpath -w'
30119fe995a9Smrg  else
30129fe995a9Smrg    CYGPATH_W=echo
30139fe995a9Smrg  fi
30149fe995a9Smrgfi
30159fe995a9Smrg
30169fe995a9Smrg
30179fe995a9Smrg# Define the identity of the package.
30189fe995a9Smrg PACKAGE='iceauth'
3019c048b52eSmrg VERSION='1.0.9'
30209fe995a9Smrg
30219fe995a9Smrg
3022c048b52eSmrgprintf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
30239fe995a9Smrg
30249fe995a9Smrg
3025c048b52eSmrgprintf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
30269fe995a9Smrg
30279fe995a9Smrg# Some tools Automake needs.
30289fe995a9Smrg
30299fe995a9SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
30309fe995a9Smrg
30319fe995a9Smrg
30329fe995a9SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
30339fe995a9Smrg
30349fe995a9Smrg
30359fe995a9SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
30369fe995a9Smrg
30379fe995a9Smrg
30389fe995a9SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
30399fe995a9Smrg
30409fe995a9Smrg
30419fe995a9SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
30429fe995a9Smrg
30439d794632Smrg# For better backward compatibility.  To be removed once Automake 1.9.x
30449d794632Smrg# dies out for good.  For more background, see:
3045c048b52eSmrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3046c048b52eSmrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
30479d794632Smrgmkdir_p='$(MKDIR_P)'
30489d794632Smrg
3049e8ac26b0Smrg# We need awk for the "check" target (and possibly the TAP driver).  The
3050e8ac26b0Smrg# system "awk" is bad on some platforms.
30519d794632Smrg# Always define AMTAR for backward compatibility.  Yes, it's still used
30529d794632Smrg# in the wild :-(  We should find a proper way to deprecate it ...
30539d794632SmrgAMTAR='$${TAR-tar}'
30549d794632Smrg
30559d794632Smrg
30569d794632Smrg# We'll loop over all known methods to create a tar archive until one works.
30579d794632Smrg_am_tools='gnutar  pax cpio none'
30589d794632Smrg
30599d794632Smrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
30609d794632Smrg
30619fe995a9Smrg
30629fe995a9Smrg
30639fe995a9Smrg
30649fe995a9Smrg
3065c048b52eSmrg# Variables for tags utilities; see am/tags.am
3066c048b52eSmrgif test -z "$CTAGS"; then
3067c048b52eSmrg  CTAGS=ctags
3068c048b52eSmrgfi
3069c048b52eSmrg
3070c048b52eSmrgif test -z "$ETAGS"; then
3071c048b52eSmrg  ETAGS=etags
3072c048b52eSmrgfi
3073c048b52eSmrg
3074c048b52eSmrgif test -z "$CSCOPE"; then
3075c048b52eSmrg  CSCOPE=cscope
3076c048b52eSmrgfi
3077c048b52eSmrg
3078c048b52eSmrg
30799fe995a9Smrg
30809d794632Smrg# POSIX will say in a future version that running "rm -f" with no argument
30819d794632Smrg# is OK; and we want to be able to make that assumption in our Makefile
30829d794632Smrg# recipes.  So use an aggressive probe to check that the usage we want is
30839d794632Smrg# actually supported "in the wild" to an acceptable degree.
30849d794632Smrg# See automake bug#10828.
30859d794632Smrg# To make any issue more visible, cause the running configure to be aborted
30869d794632Smrg# by default if the 'rm' program in use doesn't match our expectations; the
30879d794632Smrg# user can still override this though.
30889d794632Smrgif rm -f && rm -fr && rm -rf; then : OK; else
30899d794632Smrg  cat >&2 <<'END'
30909d794632SmrgOops!
30919fe995a9Smrg
30929d794632SmrgYour 'rm' program seems unable to run without file operands specified
30939d794632Smrgon the command line, even when the '-f' option is present.  This is contrary
30949d794632Smrgto the behaviour of most rm programs out there, and not conforming with
30959d794632Smrgthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
30969fe995a9Smrg
30979d794632SmrgPlease tell bug-automake@gnu.org about your system, including the value
30989d794632Smrgof your $PATH and any error possibly output before this message.  This
30999d794632Smrgcan help us improve future automake versions.
31009d794632Smrg
31019d794632SmrgEND
31029d794632Smrg  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
31039d794632Smrg    echo 'Configuration will proceed anyway, since you have set the' >&2
31049d794632Smrg    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
31059d794632Smrg    echo >&2
31069d794632Smrg  else
31079d794632Smrg    cat >&2 <<'END'
31089d794632SmrgAborting the configuration process, to ensure you take notice of the issue.
31099d794632Smrg
31109d794632SmrgYou can download and install GNU coreutils to get an 'rm' implementation
3111c048b52eSmrgthat behaves properly: <https://www.gnu.org/software/coreutils/>.
31129d794632Smrg
31139d794632SmrgIf you want to complete the configuration process using your problematic
31149d794632Smrg'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
31159d794632Smrgto "yes", and re-run configure.
31169d794632Smrg
31179d794632SmrgEND
31189d794632Smrg    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
31199d794632Smrg  fi
31209d794632Smrgfi
3121b62cc08cSmrg
31229fe995a9Smrg
3123b62cc08cSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3124b62cc08cSmrg
3125b62cc08cSmrg
3126b62cc08cSmrg
3127b62cc08cSmrg
3128b62cc08cSmrg
3129b62cc08cSmrg
3130b62cc08cSmrg
3131b62cc08cSmrg
31329fe995a9Smrg
31339fe995a9Smrg
31349fe995a9Smrg
3135c048b52eSmrg
3136c048b52eSmrg
3137c048b52eSmrg
3138c048b52eSmrg
3139c048b52eSmrg
3140c048b52eSmrg
3141c048b52eSmrg
3142c048b52eSmrg
3143c048b52eSmrg
314490b6713cSmrgDEPDIR="${am__leading_dot}deps"
314590b6713cSmrg
314690b6713cSmrgac_config_commands="$ac_config_commands depfiles"
314790b6713cSmrg
3148c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3149c048b52eSmrgprintf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3150c048b52eSmrgcat > confinc.mk << 'END'
315190b6713cSmrgam__doit:
3152c048b52eSmrg	@echo this is the am__doit target >confinc.out
315390b6713cSmrg.PHONY: am__doit
315490b6713cSmrgEND
315590b6713cSmrgam__include="#"
315690b6713cSmrgam__quote=
3157c048b52eSmrg# BSD make does it like this.
3158c048b52eSmrgecho '.include "confinc.mk" # ignored' > confmf.BSD
3159c048b52eSmrg# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3160c048b52eSmrgecho 'include confinc.mk # ignored' > confmf.GNU
3161c048b52eSmrg_am_result=no
3162c048b52eSmrgfor s in GNU BSD; do
3163c048b52eSmrg  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3164c048b52eSmrg   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3165c048b52eSmrg   ac_status=$?
3166c048b52eSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167c048b52eSmrg   (exit $ac_status); }
3168c048b52eSmrg  case $?:`cat confinc.out 2>/dev/null` in #(
3169c048b52eSmrg  '0:this is the am__doit target') :
3170c048b52eSmrg    case $s in #(
3171c048b52eSmrg  BSD) :
3172c048b52eSmrg    am__include='.include' am__quote='"' ;; #(
3173c048b52eSmrg  *) :
3174c048b52eSmrg    am__include='include' am__quote='' ;;
3175c048b52eSmrgesac ;; #(
3176c048b52eSmrg  *) :
317790b6713cSmrg     ;;
3178c048b52eSmrgesac
3179c048b52eSmrg  if test "$am__include" != "#"; then
3180c048b52eSmrg    _am_result="yes ($s style)"
3181c048b52eSmrg    break
3182c048b52eSmrg  fi
3183c048b52eSmrgdone
3184c048b52eSmrgrm -f confinc.* confmf.*
3185c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3186c048b52eSmrgprintf "%s\n" "${_am_result}" >&6; }
318790b6713cSmrg
318890b6713cSmrg# Check whether --enable-dependency-tracking was given.
3189c048b52eSmrgif test ${enable_dependency_tracking+y}
3190c048b52eSmrgthen :
319190b6713cSmrg  enableval=$enable_dependency_tracking;
319290b6713cSmrgfi
319390b6713cSmrg
319490b6713cSmrgif test "x$enable_dependency_tracking" != xno; then
319590b6713cSmrg  am_depcomp="$ac_aux_dir/depcomp"
319690b6713cSmrg  AMDEPBACKSLASH='\'
31979d794632Smrg  am__nodep='_no'
319890b6713cSmrgfi
319990b6713cSmrg if test "x$enable_dependency_tracking" != xno; then
320090b6713cSmrg  AMDEP_TRUE=
320190b6713cSmrg  AMDEP_FALSE='#'
320290b6713cSmrgelse
320390b6713cSmrg  AMDEP_TRUE='#'
320490b6713cSmrg  AMDEP_FALSE=
320590b6713cSmrgfi
320690b6713cSmrg
320790b6713cSmrg
32089fe995a9Smrgac_ext=c
32099fe995a9Smrgac_cpp='$CPP $CPPFLAGS'
32109fe995a9Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32119fe995a9Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32129fe995a9Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
32139fe995a9Smrgif test -n "$ac_tool_prefix"; then
32149fe995a9Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
32159fe995a9Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
3216c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3217c048b52eSmrgprintf %s "checking for $ac_word... " >&6; }
3218c048b52eSmrgif test ${ac_cv_prog_CC+y}
3219c048b52eSmrgthen :
3220c048b52eSmrg  printf %s "(cached) " >&6
3221c048b52eSmrgelse $as_nop
32229fe995a9Smrg  if test -n "$CC"; then
32239fe995a9Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
32249fe995a9Smrgelse
32259fe995a9Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32269fe995a9Smrgfor as_dir in $PATH
32279fe995a9Smrgdo
32289fe995a9Smrg  IFS=$as_save_IFS
3229c048b52eSmrg  case $as_dir in #(((
3230c048b52eSmrg    '') as_dir=./ ;;
3231c048b52eSmrg    */) ;;
3232c048b52eSmrg    *) as_dir=$as_dir/ ;;
3233c048b52eSmrg  esac
3234b62cc08cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3235c048b52eSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32369fe995a9Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3237c048b52eSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32389fe995a9Smrg    break 2
32399fe995a9Smrg  fi
32409fe995a9Smrgdone
3241b62cc08cSmrg  done
32429fe995a9SmrgIFS=$as_save_IFS
32439fe995a9Smrg
32449fe995a9Smrgfi
32459fe995a9Smrgfi
32469fe995a9SmrgCC=$ac_cv_prog_CC
32479fe995a9Smrgif test -n "$CC"; then
3248c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3249c048b52eSmrgprintf "%s\n" "$CC" >&6; }
32509fe995a9Smrgelse
3251c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252c048b52eSmrgprintf "%s\n" "no" >&6; }
32539fe995a9Smrgfi
32549fe995a9Smrg
32559fe995a9Smrg
32569fe995a9Smrgfi
32579fe995a9Smrgif test -z "$ac_cv_prog_CC"; then
32589fe995a9Smrg  ac_ct_CC=$CC
32599fe995a9Smrg  # Extract the first word of "gcc", so it can be a program name with args.
32609fe995a9Smrgset dummy gcc; ac_word=$2
3261c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3262c048b52eSmrgprintf %s "checking for $ac_word... " >&6; }
3263c048b52eSmrgif test ${ac_cv_prog_ac_ct_CC+y}
3264c048b52eSmrgthen :
3265c048b52eSmrg  printf %s "(cached) " >&6
3266c048b52eSmrgelse $as_nop
32679fe995a9Smrg  if test -n "$ac_ct_CC"; then
32689fe995a9Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
32699fe995a9Smrgelse
32709fe995a9Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32719fe995a9Smrgfor as_dir in $PATH
32729fe995a9Smrgdo
32739fe995a9Smrg  IFS=$as_save_IFS
3274c048b52eSmrg  case $as_dir in #(((
3275c048b52eSmrg    '') as_dir=./ ;;
3276c048b52eSmrg    */) ;;
3277c048b52eSmrg    *) as_dir=$as_dir/ ;;
3278c048b52eSmrg  esac
3279b62cc08cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3280c048b52eSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32819fe995a9Smrg    ac_cv_prog_ac_ct_CC="gcc"
3282c048b52eSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32839fe995a9Smrg    break 2
32849fe995a9Smrg  fi
32859fe995a9Smrgdone
3286b62cc08cSmrg  done
32879fe995a9SmrgIFS=$as_save_IFS
32889fe995a9Smrg
32899fe995a9Smrgfi
32909fe995a9Smrgfi
32919fe995a9Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
32929fe995a9Smrgif test -n "$ac_ct_CC"; then
3293c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3294c048b52eSmrgprintf "%s\n" "$ac_ct_CC" >&6; }
32959fe995a9Smrgelse
3296c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297c048b52eSmrgprintf "%s\n" "no" >&6; }
32989fe995a9Smrgfi
32999fe995a9Smrg
33009fe995a9Smrg  if test "x$ac_ct_CC" = x; then
33019fe995a9Smrg    CC=""
33029fe995a9Smrg  else
33039fe995a9Smrg    case $cross_compiling:$ac_tool_warned in
33049fe995a9Smrgyes:)
3305c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3306c048b52eSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
33079fe995a9Smrgac_tool_warned=yes ;;
33089fe995a9Smrgesac
33099fe995a9Smrg    CC=$ac_ct_CC
33109fe995a9Smrg  fi
33119fe995a9Smrgelse
33129fe995a9Smrg  CC="$ac_cv_prog_CC"
33139fe995a9Smrgfi
33149fe995a9Smrg
33159fe995a9Smrgif test -z "$CC"; then
33169fe995a9Smrg          if test -n "$ac_tool_prefix"; then
33179fe995a9Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
33189fe995a9Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
3319c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3320c048b52eSmrgprintf %s "checking for $ac_word... " >&6; }
3321c048b52eSmrgif test ${ac_cv_prog_CC+y}
3322c048b52eSmrgthen :
3323c048b52eSmrg  printf %s "(cached) " >&6
3324c048b52eSmrgelse $as_nop
33259fe995a9Smrg  if test -n "$CC"; then
33269fe995a9Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
33279fe995a9Smrgelse
33289fe995a9Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33299fe995a9Smrgfor as_dir in $PATH
33309fe995a9Smrgdo
33319fe995a9Smrg  IFS=$as_save_IFS
3332c048b52eSmrg  case $as_dir in #(((
3333c048b52eSmrg    '') as_dir=./ ;;
3334c048b52eSmrg    */) ;;
3335c048b52eSmrg    *) as_dir=$as_dir/ ;;
3336c048b52eSmrg  esac
3337b62cc08cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3338c048b52eSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
33399fe995a9Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
3340c048b52eSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
33419fe995a9Smrg    break 2
33429fe995a9Smrg  fi
33439fe995a9Smrgdone
3344b62cc08cSmrg  done
33459fe995a9SmrgIFS=$as_save_IFS
33469fe995a9Smrg
33479fe995a9Smrgfi
33489fe995a9Smrgfi
33499fe995a9SmrgCC=$ac_cv_prog_CC
33509fe995a9Smrgif test -n "$CC"; then
3351c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3352c048b52eSmrgprintf "%s\n" "$CC" >&6; }
33539fe995a9Smrgelse
3354c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3355c048b52eSmrgprintf "%s\n" "no" >&6; }
33569fe995a9Smrgfi
33579fe995a9Smrg
33589fe995a9Smrg
33599fe995a9Smrg  fi
33609fe995a9Smrgfi
33619fe995a9Smrgif test -z "$CC"; then
33629fe995a9Smrg  # Extract the first word of "cc", so it can be a program name with args.
33639fe995a9Smrgset dummy cc; ac_word=$2
3364c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3365c048b52eSmrgprintf %s "checking for $ac_word... " >&6; }
3366c048b52eSmrgif test ${ac_cv_prog_CC+y}
3367c048b52eSmrgthen :
3368c048b52eSmrg  printf %s "(cached) " >&6
3369c048b52eSmrgelse $as_nop
33709fe995a9Smrg  if test -n "$CC"; then
33719fe995a9Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
33729fe995a9Smrgelse
33739fe995a9Smrg  ac_prog_rejected=no
33749fe995a9Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33759fe995a9Smrgfor as_dir in $PATH
33769fe995a9Smrgdo
33779fe995a9Smrg  IFS=$as_save_IFS
3378c048b52eSmrg  case $as_dir in #(((
3379c048b52eSmrg    '') as_dir=./ ;;
3380c048b52eSmrg    */) ;;
3381c048b52eSmrg    *) as_dir=$as_dir/ ;;
3382c048b52eSmrg  esac
3383b62cc08cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3384c048b52eSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3385c048b52eSmrg    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
33869fe995a9Smrg       ac_prog_rejected=yes
33879fe995a9Smrg       continue
33889fe995a9Smrg     fi
33899fe995a9Smrg    ac_cv_prog_CC="cc"
3390c048b52eSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
33919fe995a9Smrg    break 2
33929fe995a9Smrg  fi
33939fe995a9Smrgdone
3394b62cc08cSmrg  done
33959fe995a9SmrgIFS=$as_save_IFS
33969fe995a9Smrg
33979fe995a9Smrgif test $ac_prog_rejected = yes; then
33989fe995a9Smrg  # We found a bogon in the path, so make sure we never use it.
33999fe995a9Smrg  set dummy $ac_cv_prog_CC
34009fe995a9Smrg  shift
34019fe995a9Smrg  if test $# != 0; then
34029fe995a9Smrg    # We chose a different compiler from the bogus one.
34039fe995a9Smrg    # However, it has the same basename, so the bogon will be chosen
34049fe995a9Smrg    # first if we set CC to just the basename; use the full file name.
34059fe995a9Smrg    shift
3406c048b52eSmrg    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
34079fe995a9Smrg  fi
34089fe995a9Smrgfi
34099fe995a9Smrgfi
34109fe995a9Smrgfi
34119fe995a9SmrgCC=$ac_cv_prog_CC
34129fe995a9Smrgif test -n "$CC"; then
3413c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3414c048b52eSmrgprintf "%s\n" "$CC" >&6; }
34159fe995a9Smrgelse
3416c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3417c048b52eSmrgprintf "%s\n" "no" >&6; }
34189fe995a9Smrgfi
34199fe995a9Smrg
34209fe995a9Smrg
34219fe995a9Smrgfi
34229fe995a9Smrgif test -z "$CC"; then
34239fe995a9Smrg  if test -n "$ac_tool_prefix"; then
34249fe995a9Smrg  for ac_prog in cl.exe
34259fe995a9Smrg  do
34269fe995a9Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
34279fe995a9Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
3428c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3429c048b52eSmrgprintf %s "checking for $ac_word... " >&6; }
3430c048b52eSmrgif test ${ac_cv_prog_CC+y}
3431c048b52eSmrgthen :
3432c048b52eSmrg  printf %s "(cached) " >&6
3433c048b52eSmrgelse $as_nop
34349fe995a9Smrg  if test -n "$CC"; then
34359fe995a9Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
34369fe995a9Smrgelse
34379fe995a9Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34389fe995a9Smrgfor as_dir in $PATH
34399fe995a9Smrgdo
34409fe995a9Smrg  IFS=$as_save_IFS
3441c048b52eSmrg  case $as_dir in #(((
3442c048b52eSmrg    '') as_dir=./ ;;
3443c048b52eSmrg    */) ;;
3444c048b52eSmrg    *) as_dir=$as_dir/ ;;
3445c048b52eSmrg  esac
3446b62cc08cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3447c048b52eSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
34489fe995a9Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3449c048b52eSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
34509fe995a9Smrg    break 2
34519fe995a9Smrg  fi
34529fe995a9Smrgdone
3453b62cc08cSmrg  done
34549fe995a9SmrgIFS=$as_save_IFS
34559fe995a9Smrg
34569fe995a9Smrgfi
34579fe995a9Smrgfi
34589fe995a9SmrgCC=$ac_cv_prog_CC
34599fe995a9Smrgif test -n "$CC"; then
3460c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3461c048b52eSmrgprintf "%s\n" "$CC" >&6; }
34629fe995a9Smrgelse
3463c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3464c048b52eSmrgprintf "%s\n" "no" >&6; }
34659fe995a9Smrgfi
34669fe995a9Smrg
34679fe995a9Smrg
34689fe995a9Smrg    test -n "$CC" && break
34699fe995a9Smrg  done
34709fe995a9Smrgfi
34719fe995a9Smrgif test -z "$CC"; then
34729fe995a9Smrg  ac_ct_CC=$CC
34739fe995a9Smrg  for ac_prog in cl.exe
34749fe995a9Smrgdo
34759fe995a9Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
34769fe995a9Smrgset dummy $ac_prog; ac_word=$2
3477c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3478c048b52eSmrgprintf %s "checking for $ac_word... " >&6; }
3479c048b52eSmrgif test ${ac_cv_prog_ac_ct_CC+y}
3480c048b52eSmrgthen :
3481c048b52eSmrg  printf %s "(cached) " >&6
3482c048b52eSmrgelse $as_nop
34839fe995a9Smrg  if test -n "$ac_ct_CC"; then
34849fe995a9Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
34859fe995a9Smrgelse
34869fe995a9Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34879fe995a9Smrgfor as_dir in $PATH
34889fe995a9Smrgdo
34899fe995a9Smrg  IFS=$as_save_IFS
3490c048b52eSmrg  case $as_dir in #(((
3491c048b52eSmrg    '') as_dir=./ ;;
3492c048b52eSmrg    */) ;;
3493c048b52eSmrg    *) as_dir=$as_dir/ ;;
3494c048b52eSmrg  esac
3495b62cc08cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3496c048b52eSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
34979fe995a9Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
3498c048b52eSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
34999fe995a9Smrg    break 2
35009fe995a9Smrg  fi
35019fe995a9Smrgdone
3502b62cc08cSmrg  done
35039fe995a9SmrgIFS=$as_save_IFS
35049fe995a9Smrg
35059fe995a9Smrgfi
35069fe995a9Smrgfi
35079fe995a9Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
35089fe995a9Smrgif test -n "$ac_ct_CC"; then
3509c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3510c048b52eSmrgprintf "%s\n" "$ac_ct_CC" >&6; }
35119fe995a9Smrgelse
3512c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3513c048b52eSmrgprintf "%s\n" "no" >&6; }
35149fe995a9Smrgfi
35159fe995a9Smrg
35169fe995a9Smrg
35179fe995a9Smrg  test -n "$ac_ct_CC" && break
35189fe995a9Smrgdone
35199fe995a9Smrg
35209fe995a9Smrg  if test "x$ac_ct_CC" = x; then
35219fe995a9Smrg    CC=""
35229fe995a9Smrg  else
35239fe995a9Smrg    case $cross_compiling:$ac_tool_warned in
35249fe995a9Smrgyes:)
3525c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3526c048b52eSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3527c048b52eSmrgac_tool_warned=yes ;;
3528c048b52eSmrgesac
3529c048b52eSmrg    CC=$ac_ct_CC
3530c048b52eSmrg  fi
3531c048b52eSmrgfi
3532c048b52eSmrg
3533c048b52eSmrgfi
3534c048b52eSmrgif test -z "$CC"; then
3535c048b52eSmrg  if test -n "$ac_tool_prefix"; then
3536c048b52eSmrg  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3537c048b52eSmrgset dummy ${ac_tool_prefix}clang; ac_word=$2
3538c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3539c048b52eSmrgprintf %s "checking for $ac_word... " >&6; }
3540c048b52eSmrgif test ${ac_cv_prog_CC+y}
3541c048b52eSmrgthen :
3542c048b52eSmrg  printf %s "(cached) " >&6
3543c048b52eSmrgelse $as_nop
3544c048b52eSmrg  if test -n "$CC"; then
3545c048b52eSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
3546c048b52eSmrgelse
3547c048b52eSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548c048b52eSmrgfor as_dir in $PATH
3549c048b52eSmrgdo
3550c048b52eSmrg  IFS=$as_save_IFS
3551c048b52eSmrg  case $as_dir in #(((
3552c048b52eSmrg    '') as_dir=./ ;;
3553c048b52eSmrg    */) ;;
3554c048b52eSmrg    *) as_dir=$as_dir/ ;;
3555c048b52eSmrg  esac
3556c048b52eSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3557c048b52eSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3558c048b52eSmrg    ac_cv_prog_CC="${ac_tool_prefix}clang"
3559c048b52eSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3560c048b52eSmrg    break 2
3561c048b52eSmrg  fi
3562c048b52eSmrgdone
3563c048b52eSmrg  done
3564c048b52eSmrgIFS=$as_save_IFS
3565c048b52eSmrg
3566c048b52eSmrgfi
3567c048b52eSmrgfi
3568c048b52eSmrgCC=$ac_cv_prog_CC
3569c048b52eSmrgif test -n "$CC"; then
3570c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3571c048b52eSmrgprintf "%s\n" "$CC" >&6; }
3572c048b52eSmrgelse
3573c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3574c048b52eSmrgprintf "%s\n" "no" >&6; }
3575c048b52eSmrgfi
3576c048b52eSmrg
3577c048b52eSmrg
3578c048b52eSmrgfi
3579c048b52eSmrgif test -z "$ac_cv_prog_CC"; then
3580c048b52eSmrg  ac_ct_CC=$CC
3581c048b52eSmrg  # Extract the first word of "clang", so it can be a program name with args.
3582c048b52eSmrgset dummy clang; ac_word=$2
3583c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3584c048b52eSmrgprintf %s "checking for $ac_word... " >&6; }
3585c048b52eSmrgif test ${ac_cv_prog_ac_ct_CC+y}
3586c048b52eSmrgthen :
3587c048b52eSmrg  printf %s "(cached) " >&6
3588c048b52eSmrgelse $as_nop
3589c048b52eSmrg  if test -n "$ac_ct_CC"; then
3590c048b52eSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3591c048b52eSmrgelse
3592c048b52eSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3593c048b52eSmrgfor as_dir in $PATH
3594c048b52eSmrgdo
3595c048b52eSmrg  IFS=$as_save_IFS
3596c048b52eSmrg  case $as_dir in #(((
3597c048b52eSmrg    '') as_dir=./ ;;
3598c048b52eSmrg    */) ;;
3599c048b52eSmrg    *) as_dir=$as_dir/ ;;
3600c048b52eSmrg  esac
3601c048b52eSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3602c048b52eSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3603c048b52eSmrg    ac_cv_prog_ac_ct_CC="clang"
3604c048b52eSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3605c048b52eSmrg    break 2
3606c048b52eSmrg  fi
3607c048b52eSmrgdone
3608c048b52eSmrg  done
3609c048b52eSmrgIFS=$as_save_IFS
3610c048b52eSmrg
3611c048b52eSmrgfi
3612c048b52eSmrgfi
3613c048b52eSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
3614c048b52eSmrgif test -n "$ac_ct_CC"; then
3615c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3616c048b52eSmrgprintf "%s\n" "$ac_ct_CC" >&6; }
3617c048b52eSmrgelse
3618c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3619c048b52eSmrgprintf "%s\n" "no" >&6; }
3620c048b52eSmrgfi
3621c048b52eSmrg
3622c048b52eSmrg  if test "x$ac_ct_CC" = x; then
3623c048b52eSmrg    CC=""
3624c048b52eSmrg  else
3625c048b52eSmrg    case $cross_compiling:$ac_tool_warned in
3626c048b52eSmrgyes:)
3627c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3628c048b52eSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
36299fe995a9Smrgac_tool_warned=yes ;;
36309fe995a9Smrgesac
36319fe995a9Smrg    CC=$ac_ct_CC
36329fe995a9Smrg  fi
3633c048b52eSmrgelse
3634c048b52eSmrg  CC="$ac_cv_prog_CC"
36359fe995a9Smrgfi
36369fe995a9Smrg
36379fe995a9Smrgfi
36389fe995a9Smrg
36399fe995a9Smrg
3640c048b52eSmrgtest -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3641c048b52eSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3642b62cc08cSmrgas_fn_error $? "no acceptable C compiler found in \$PATH
3643b62cc08cSmrgSee \`config.log' for more details" "$LINENO" 5; }
36449fe995a9Smrg
36459fe995a9Smrg# Provide some information about the compiler.
3646c048b52eSmrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3647b62cc08cSmrgset X $ac_compile
3648b62cc08cSmrgac_compiler=$2
3649c048b52eSmrgfor ac_option in --version -v -V -qversion -version; do
3650b62cc08cSmrg  { { ac_try="$ac_compiler $ac_option >&5"
36519fe995a9Smrgcase "(($ac_try" in
36529fe995a9Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36539fe995a9Smrg  *) ac_try_echo=$ac_try;;
36549fe995a9Smrgesac
3655b62cc08cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3656c048b52eSmrgprintf "%s\n" "$ac_try_echo"; } >&5
3657b62cc08cSmrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
36589fe995a9Smrg  ac_status=$?
3659b62cc08cSmrg  if test -s conftest.err; then
3660b62cc08cSmrg    sed '10a\
3661b62cc08cSmrg... rest of stderr output deleted ...
3662b62cc08cSmrg         10q' conftest.err >conftest.er1
3663b62cc08cSmrg    cat conftest.er1 >&5
3664b62cc08cSmrg  fi
3665b62cc08cSmrg  rm -f conftest.er1 conftest.err
3666c048b52eSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3667b62cc08cSmrg  test $ac_status = 0; }
3668b62cc08cSmrgdone
36699fe995a9Smrg
3670b62cc08cSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
36719fe995a9Smrg/* end confdefs.h.  */
36729fe995a9Smrg
36739fe995a9Smrgint
3674c048b52eSmrgmain (void)
36759fe995a9Smrg{
36769fe995a9Smrg
36779fe995a9Smrg  ;
36789fe995a9Smrg  return 0;
36799fe995a9Smrg}
36809fe995a9Smrg_ACEOF
36819fe995a9Smrgac_clean_files_save=$ac_clean_files
3682b62cc08cSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
36839fe995a9Smrg# Try to create an executable without -o first, disregard a.out.
36849fe995a9Smrg# It will help us diagnose broken compilers, and finding out an intuition
36859fe995a9Smrg# of exeext.
3686c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3687c048b52eSmrgprintf %s "checking whether the C compiler works... " >&6; }
3688c048b52eSmrgac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3689b62cc08cSmrg
3690b62cc08cSmrg# The possible output files:
3691b62cc08cSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3692b62cc08cSmrg
36939fe995a9Smrgac_rmfiles=
36949fe995a9Smrgfor ac_file in $ac_files
36959fe995a9Smrgdo
36969fe995a9Smrg  case $ac_file in
3697b62cc08cSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
36989fe995a9Smrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
36999fe995a9Smrg  esac
37009fe995a9Smrgdone
37019fe995a9Smrgrm -f $ac_rmfiles
37029fe995a9Smrg
3703b62cc08cSmrgif { { ac_try="$ac_link_default"
37049fe995a9Smrgcase "(($ac_try" in
37059fe995a9Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37069fe995a9Smrg  *) ac_try_echo=$ac_try;;
37079fe995a9Smrgesac
3708b62cc08cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3709c048b52eSmrgprintf "%s\n" "$ac_try_echo"; } >&5
37109fe995a9Smrg  (eval "$ac_link_default") 2>&5
37119fe995a9Smrg  ac_status=$?
3712c048b52eSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3713c048b52eSmrg  test $ac_status = 0; }
3714c048b52eSmrgthen :
37159fe995a9Smrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
37169fe995a9Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
37179fe995a9Smrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
37189fe995a9Smrg# so that the user can short-circuit this test for compilers unknown to
37199fe995a9Smrg# Autoconf.
37209fe995a9Smrgfor ac_file in $ac_files ''
37219fe995a9Smrgdo
37229fe995a9Smrg  test -f "$ac_file" || continue
37239fe995a9Smrg  case $ac_file in
3724b62cc08cSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
37259fe995a9Smrg	;;
37269fe995a9Smrg    [ab].out )
37279fe995a9Smrg	# We found the default executable, but exeext='' is most
37289fe995a9Smrg	# certainly right.
37299fe995a9Smrg	break;;
37309fe995a9Smrg    *.* )
3731c048b52eSmrg	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
37329fe995a9Smrg	then :; else
37339fe995a9Smrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
37349fe995a9Smrg	fi
37359fe995a9Smrg	# We set ac_cv_exeext here because the later test for it is not
37369fe995a9Smrg	# safe: cross compilers may not add the suffix if given an `-o'
37379fe995a9Smrg	# argument, so we may need to know it at that point already.
37389fe995a9Smrg	# Even if this section looks crufty: it has the advantage of
37399fe995a9Smrg	# actually working.
37409fe995a9Smrg	break;;
37419fe995a9Smrg    * )
37429fe995a9Smrg	break;;
37439fe995a9Smrg  esac
37449fe995a9Smrgdone
3745b62cc08cSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
3746b62cc08cSmrg
3747c048b52eSmrgelse $as_nop
3748b62cc08cSmrg  ac_file=''
3749b62cc08cSmrgfi
3750c048b52eSmrgif test -z "$ac_file"
3751c048b52eSmrgthen :
3752c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3753c048b52eSmrgprintf "%s\n" "no" >&6; }
3754c048b52eSmrgprintf "%s\n" "$as_me: failed program was:" >&5
3755b62cc08cSmrgsed 's/^/| /' conftest.$ac_ext >&5
3756b62cc08cSmrg
3757c048b52eSmrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3758c048b52eSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3759b62cc08cSmrgas_fn_error 77 "C compiler cannot create executables
3760b62cc08cSmrgSee \`config.log' for more details" "$LINENO" 5; }
3761c048b52eSmrgelse $as_nop
3762c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3763c048b52eSmrgprintf "%s\n" "yes" >&6; }
3764c048b52eSmrgfi
3765c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3766c048b52eSmrgprintf %s "checking for C compiler default output file name... " >&6; }
3767c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3768c048b52eSmrgprintf "%s\n" "$ac_file" >&6; }
3769b62cc08cSmrgac_exeext=$ac_cv_exeext
37709fe995a9Smrg
3771b62cc08cSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
37729fe995a9Smrgac_clean_files=$ac_clean_files_save
3773c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3774c048b52eSmrgprintf %s "checking for suffix of executables... " >&6; }
3775b62cc08cSmrgif { { ac_try="$ac_link"
37769fe995a9Smrgcase "(($ac_try" in
37779fe995a9Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37789fe995a9Smrg  *) ac_try_echo=$ac_try;;
37799fe995a9Smrgesac
3780b62cc08cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3781c048b52eSmrgprintf "%s\n" "$ac_try_echo"; } >&5
37829fe995a9Smrg  (eval "$ac_link") 2>&5
37839fe995a9Smrg  ac_status=$?
3784c048b52eSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3785c048b52eSmrg  test $ac_status = 0; }
3786c048b52eSmrgthen :
37879fe995a9Smrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
37889fe995a9Smrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
37899fe995a9Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with
37909fe995a9Smrg# `rm'.
37919fe995a9Smrgfor ac_file in conftest.exe conftest conftest.*; do
37929fe995a9Smrg  test -f "$ac_file" || continue
37939fe995a9Smrg  case $ac_file in
3794b62cc08cSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
37959fe995a9Smrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
37969fe995a9Smrg	  break;;
37979fe995a9Smrg    * ) break;;
37989fe995a9Smrg  esac
37999fe995a9Smrgdone
3800c048b52eSmrgelse $as_nop
3801c048b52eSmrg  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3802c048b52eSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3803b62cc08cSmrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
3804b62cc08cSmrgSee \`config.log' for more details" "$LINENO" 5; }
38059fe995a9Smrgfi
3806b62cc08cSmrgrm -f conftest conftest$ac_cv_exeext
3807c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3808c048b52eSmrgprintf "%s\n" "$ac_cv_exeext" >&6; }
38099fe995a9Smrg
38109fe995a9Smrgrm -f conftest.$ac_ext
38119fe995a9SmrgEXEEXT=$ac_cv_exeext
38129fe995a9Smrgac_exeext=$EXEEXT
3813b62cc08cSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3814b62cc08cSmrg/* end confdefs.h.  */
3815b62cc08cSmrg#include <stdio.h>
3816b62cc08cSmrgint
3817c048b52eSmrgmain (void)
3818b62cc08cSmrg{
3819b62cc08cSmrgFILE *f = fopen ("conftest.out", "w");
3820b62cc08cSmrg return ferror (f) || fclose (f) != 0;
3821b62cc08cSmrg
3822b62cc08cSmrg  ;
3823b62cc08cSmrg  return 0;
3824b62cc08cSmrg}
38259fe995a9Smrg_ACEOF
3826b62cc08cSmrgac_clean_files="$ac_clean_files conftest.out"
3827b62cc08cSmrg# Check that the compiler produces executables we can run.  If not, either
3828b62cc08cSmrg# the compiler is broken, or we cross compile.
3829c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3830c048b52eSmrgprintf %s "checking whether we are cross compiling... " >&6; }
3831b62cc08cSmrgif test "$cross_compiling" != yes; then
3832b62cc08cSmrg  { { ac_try="$ac_link"
3833b62cc08cSmrgcase "(($ac_try" in
3834b62cc08cSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3835b62cc08cSmrg  *) ac_try_echo=$ac_try;;
3836b62cc08cSmrgesac
3837b62cc08cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3838c048b52eSmrgprintf "%s\n" "$ac_try_echo"; } >&5
3839b62cc08cSmrg  (eval "$ac_link") 2>&5
3840b62cc08cSmrg  ac_status=$?
3841c048b52eSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3842b62cc08cSmrg  test $ac_status = 0; }
3843b62cc08cSmrg  if { ac_try='./conftest$ac_cv_exeext'
3844b62cc08cSmrg  { { case "(($ac_try" in
3845b62cc08cSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3846b62cc08cSmrg  *) ac_try_echo=$ac_try;;
3847b62cc08cSmrgesac
3848b62cc08cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3849c048b52eSmrgprintf "%s\n" "$ac_try_echo"; } >&5
3850b62cc08cSmrg  (eval "$ac_try") 2>&5
3851b62cc08cSmrg  ac_status=$?
3852c048b52eSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3853b62cc08cSmrg  test $ac_status = 0; }; }; then
3854b62cc08cSmrg    cross_compiling=no
3855b62cc08cSmrg  else
3856b62cc08cSmrg    if test "$cross_compiling" = maybe; then
3857b62cc08cSmrg	cross_compiling=yes
3858b62cc08cSmrg    else
3859c048b52eSmrg	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3860c048b52eSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3861c048b52eSmrgas_fn_error 77 "cannot run C compiled programs.
3862b62cc08cSmrgIf you meant to cross compile, use \`--host'.
3863b62cc08cSmrgSee \`config.log' for more details" "$LINENO" 5; }
3864b62cc08cSmrg    fi
3865b62cc08cSmrg  fi
3866b62cc08cSmrgfi
3867c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3868c048b52eSmrgprintf "%s\n" "$cross_compiling" >&6; }
3869b62cc08cSmrg
3870b62cc08cSmrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3871b62cc08cSmrgac_clean_files=$ac_clean_files_save
3872c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3873c048b52eSmrgprintf %s "checking for suffix of object files... " >&6; }
3874c048b52eSmrgif test ${ac_cv_objext+y}
3875c048b52eSmrgthen :
3876c048b52eSmrg  printf %s "(cached) " >&6
3877c048b52eSmrgelse $as_nop
3878b62cc08cSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38799fe995a9Smrg/* end confdefs.h.  */
38809fe995a9Smrg
38819fe995a9Smrgint
3882c048b52eSmrgmain (void)
38839fe995a9Smrg{
38849fe995a9Smrg
38859fe995a9Smrg  ;
38869fe995a9Smrg  return 0;
38879fe995a9Smrg}
38889fe995a9Smrg_ACEOF
38899fe995a9Smrgrm -f conftest.o conftest.obj
3890b62cc08cSmrgif { { ac_try="$ac_compile"
38919fe995a9Smrgcase "(($ac_try" in
38929fe995a9Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38939fe995a9Smrg  *) ac_try_echo=$ac_try;;
38949fe995a9Smrgesac
3895b62cc08cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3896c048b52eSmrgprintf "%s\n" "$ac_try_echo"; } >&5
38979fe995a9Smrg  (eval "$ac_compile") 2>&5
38989fe995a9Smrg  ac_status=$?
3899c048b52eSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3900c048b52eSmrg  test $ac_status = 0; }
3901c048b52eSmrgthen :
39029fe995a9Smrg  for ac_file in conftest.o conftest.obj conftest.*; do
39039fe995a9Smrg  test -f "$ac_file" || continue;
39049fe995a9Smrg  case $ac_file in
3905b62cc08cSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
39069fe995a9Smrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
39079fe995a9Smrg       break;;
39089fe995a9Smrg  esac
39099fe995a9Smrgdone
3910c048b52eSmrgelse $as_nop
3911c048b52eSmrg  printf "%s\n" "$as_me: failed program was:" >&5
39129fe995a9Smrgsed 's/^/| /' conftest.$ac_ext >&5
39139fe995a9Smrg
3914c048b52eSmrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3915c048b52eSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3916b62cc08cSmrgas_fn_error $? "cannot compute suffix of object files: cannot compile
3917b62cc08cSmrgSee \`config.log' for more details" "$LINENO" 5; }
39189fe995a9Smrgfi
39199fe995a9Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
39209fe995a9Smrgfi
3921c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3922c048b52eSmrgprintf "%s\n" "$ac_cv_objext" >&6; }
39239fe995a9SmrgOBJEXT=$ac_cv_objext
39249fe995a9Smrgac_objext=$OBJEXT
3925c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3926c048b52eSmrgprintf %s "checking whether the compiler supports GNU C... " >&6; }
3927c048b52eSmrgif test ${ac_cv_c_compiler_gnu+y}
3928c048b52eSmrgthen :
3929c048b52eSmrg  printf %s "(cached) " >&6
3930c048b52eSmrgelse $as_nop
3931b62cc08cSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39329fe995a9Smrg/* end confdefs.h.  */
39339fe995a9Smrg
39349fe995a9Smrgint
3935c048b52eSmrgmain (void)
39369fe995a9Smrg{
39379fe995a9Smrg#ifndef __GNUC__
39389fe995a9Smrg       choke me
39399fe995a9Smrg#endif
39409fe995a9Smrg
39419fe995a9Smrg  ;
39429fe995a9Smrg  return 0;
39439fe995a9Smrg}
39449fe995a9Smrg_ACEOF
3945c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
3946c048b52eSmrgthen :
39479fe995a9Smrg  ac_compiler_gnu=yes
3948c048b52eSmrgelse $as_nop
3949b62cc08cSmrg  ac_compiler_gnu=no
39509fe995a9Smrgfi
3951c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39529fe995a9Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
39539fe995a9Smrg
39549fe995a9Smrgfi
3955c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3956c048b52eSmrgprintf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3957c048b52eSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3958c048b52eSmrg
3959b62cc08cSmrgif test $ac_compiler_gnu = yes; then
3960b62cc08cSmrg  GCC=yes
3961b62cc08cSmrgelse
3962b62cc08cSmrg  GCC=
3963b62cc08cSmrgfi
3964c048b52eSmrgac_test_CFLAGS=${CFLAGS+y}
39659fe995a9Smrgac_save_CFLAGS=$CFLAGS
3966c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3967c048b52eSmrgprintf %s "checking whether $CC accepts -g... " >&6; }
3968c048b52eSmrgif test ${ac_cv_prog_cc_g+y}
3969c048b52eSmrgthen :
3970c048b52eSmrg  printf %s "(cached) " >&6
3971c048b52eSmrgelse $as_nop
39729fe995a9Smrg  ac_save_c_werror_flag=$ac_c_werror_flag
39739fe995a9Smrg   ac_c_werror_flag=yes
39749fe995a9Smrg   ac_cv_prog_cc_g=no
39759fe995a9Smrg   CFLAGS="-g"
3976b62cc08cSmrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39779fe995a9Smrg/* end confdefs.h.  */
39789fe995a9Smrg
39799fe995a9Smrgint
3980c048b52eSmrgmain (void)
39819fe995a9Smrg{
39829fe995a9Smrg
39839fe995a9Smrg  ;
39849fe995a9Smrg  return 0;
39859fe995a9Smrg}
39869fe995a9Smrg_ACEOF
3987c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
3988c048b52eSmrgthen :
39899fe995a9Smrg  ac_cv_prog_cc_g=yes
3990c048b52eSmrgelse $as_nop
3991b62cc08cSmrg  CFLAGS=""
3992b62cc08cSmrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39939fe995a9Smrg/* end confdefs.h.  */
39949fe995a9Smrg
39959fe995a9Smrgint
3996c048b52eSmrgmain (void)
39979fe995a9Smrg{
39989fe995a9Smrg
39999fe995a9Smrg  ;
40009fe995a9Smrg  return 0;
40019fe995a9Smrg}
40029fe995a9Smrg_ACEOF
4003c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
4004c048b52eSmrgthen :
40059fe995a9Smrg
4006c048b52eSmrgelse $as_nop
4007b62cc08cSmrg  ac_c_werror_flag=$ac_save_c_werror_flag
40089fe995a9Smrg	 CFLAGS="-g"
4009b62cc08cSmrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40109fe995a9Smrg/* end confdefs.h.  */
40119fe995a9Smrg
40129fe995a9Smrgint
4013c048b52eSmrgmain (void)
40149fe995a9Smrg{
40159fe995a9Smrg
40169fe995a9Smrg  ;
40179fe995a9Smrg  return 0;
40189fe995a9Smrg}
40199fe995a9Smrg_ACEOF
4020c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
4021c048b52eSmrgthen :
40229fe995a9Smrg  ac_cv_prog_cc_g=yes
40239fe995a9Smrgfi
4024c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40259fe995a9Smrgfi
4026c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40279fe995a9Smrgfi
4028c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40299fe995a9Smrg   ac_c_werror_flag=$ac_save_c_werror_flag
40309fe995a9Smrgfi
4031c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4032c048b52eSmrgprintf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4033c048b52eSmrgif test $ac_test_CFLAGS; then
40349fe995a9Smrg  CFLAGS=$ac_save_CFLAGS
40359fe995a9Smrgelif test $ac_cv_prog_cc_g = yes; then
40369fe995a9Smrg  if test "$GCC" = yes; then
40379fe995a9Smrg    CFLAGS="-g -O2"
40389fe995a9Smrg  else
40399fe995a9Smrg    CFLAGS="-g"
40409fe995a9Smrg  fi
40419fe995a9Smrgelse
40429fe995a9Smrg  if test "$GCC" = yes; then
40439fe995a9Smrg    CFLAGS="-O2"
40449fe995a9Smrg  else
40459fe995a9Smrg    CFLAGS=
40469fe995a9Smrg  fi
40479fe995a9Smrgfi
4048c048b52eSmrgac_prog_cc_stdc=no
4049c048b52eSmrgif test x$ac_prog_cc_stdc = xno
4050c048b52eSmrgthen :
4051c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4052c048b52eSmrgprintf %s "checking for $CC option to enable C11 features... " >&6; }
4053c048b52eSmrgif test ${ac_cv_prog_cc_c11+y}
4054c048b52eSmrgthen :
4055c048b52eSmrg  printf %s "(cached) " >&6
4056c048b52eSmrgelse $as_nop
4057c048b52eSmrg  ac_cv_prog_cc_c11=no
40589fe995a9Smrgac_save_CC=$CC
4059b62cc08cSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
40609fe995a9Smrg/* end confdefs.h.  */
4061c048b52eSmrg$ac_c_conftest_c11_program
4062c048b52eSmrg_ACEOF
4063c048b52eSmrgfor ac_arg in '' -std=gnu11
4064c048b52eSmrgdo
4065c048b52eSmrg  CC="$ac_save_CC $ac_arg"
4066c048b52eSmrg  if ac_fn_c_try_compile "$LINENO"
4067c048b52eSmrgthen :
4068c048b52eSmrg  ac_cv_prog_cc_c11=$ac_arg
4069c048b52eSmrgfi
4070c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam
4071c048b52eSmrg  test "x$ac_cv_prog_cc_c11" != "xno" && break
4072c048b52eSmrgdone
4073c048b52eSmrgrm -f conftest.$ac_ext
4074c048b52eSmrgCC=$ac_save_CC
4075c048b52eSmrgfi
40769fe995a9Smrg
4077c048b52eSmrgif test "x$ac_cv_prog_cc_c11" = xno
4078c048b52eSmrgthen :
4079c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4080c048b52eSmrgprintf "%s\n" "unsupported" >&6; }
4081c048b52eSmrgelse $as_nop
4082c048b52eSmrg  if test "x$ac_cv_prog_cc_c11" = x
4083c048b52eSmrgthen :
4084c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4085c048b52eSmrgprintf "%s\n" "none needed" >&6; }
4086c048b52eSmrgelse $as_nop
4087c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4088c048b52eSmrgprintf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4089c048b52eSmrg     CC="$CC $ac_cv_prog_cc_c11"
4090c048b52eSmrgfi
4091c048b52eSmrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4092c048b52eSmrg  ac_prog_cc_stdc=c11
4093c048b52eSmrgfi
4094c048b52eSmrgfi
4095c048b52eSmrgif test x$ac_prog_cc_stdc = xno
4096c048b52eSmrgthen :
4097c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4098c048b52eSmrgprintf %s "checking for $CC option to enable C99 features... " >&6; }
4099c048b52eSmrgif test ${ac_cv_prog_cc_c99+y}
4100c048b52eSmrgthen :
4101c048b52eSmrg  printf %s "(cached) " >&6
4102c048b52eSmrgelse $as_nop
4103c048b52eSmrg  ac_cv_prog_cc_c99=no
4104c048b52eSmrgac_save_CC=$CC
4105c048b52eSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106c048b52eSmrg/* end confdefs.h.  */
4107c048b52eSmrg$ac_c_conftest_c99_program
4108c048b52eSmrg_ACEOF
4109c048b52eSmrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4110c048b52eSmrgdo
4111c048b52eSmrg  CC="$ac_save_CC $ac_arg"
4112c048b52eSmrg  if ac_fn_c_try_compile "$LINENO"
4113c048b52eSmrgthen :
4114c048b52eSmrg  ac_cv_prog_cc_c99=$ac_arg
4115c048b52eSmrgfi
4116c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam
4117c048b52eSmrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
4118c048b52eSmrgdone
4119c048b52eSmrgrm -f conftest.$ac_ext
4120c048b52eSmrgCC=$ac_save_CC
4121c048b52eSmrgfi
41229fe995a9Smrg
4123c048b52eSmrgif test "x$ac_cv_prog_cc_c99" = xno
4124c048b52eSmrgthen :
4125c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4126c048b52eSmrgprintf "%s\n" "unsupported" >&6; }
4127c048b52eSmrgelse $as_nop
4128c048b52eSmrg  if test "x$ac_cv_prog_cc_c99" = x
4129c048b52eSmrgthen :
4130c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4131c048b52eSmrgprintf "%s\n" "none needed" >&6; }
4132c048b52eSmrgelse $as_nop
4133c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4134c048b52eSmrgprintf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4135c048b52eSmrg     CC="$CC $ac_cv_prog_cc_c99"
4136c048b52eSmrgfi
4137c048b52eSmrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4138c048b52eSmrg  ac_prog_cc_stdc=c99
4139c048b52eSmrgfi
4140c048b52eSmrgfi
4141c048b52eSmrgif test x$ac_prog_cc_stdc = xno
4142c048b52eSmrgthen :
4143c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4144c048b52eSmrgprintf %s "checking for $CC option to enable C89 features... " >&6; }
4145c048b52eSmrgif test ${ac_cv_prog_cc_c89+y}
4146c048b52eSmrgthen :
4147c048b52eSmrg  printf %s "(cached) " >&6
4148c048b52eSmrgelse $as_nop
4149c048b52eSmrg  ac_cv_prog_cc_c89=no
4150c048b52eSmrgac_save_CC=$CC
4151c048b52eSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4152c048b52eSmrg/* end confdefs.h.  */
4153c048b52eSmrg$ac_c_conftest_c89_program
41549fe995a9Smrg_ACEOF
4155c048b52eSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
41569fe995a9Smrgdo
41579fe995a9Smrg  CC="$ac_save_CC $ac_arg"
4158c048b52eSmrg  if ac_fn_c_try_compile "$LINENO"
4159c048b52eSmrgthen :
41609fe995a9Smrg  ac_cv_prog_cc_c89=$ac_arg
41619fe995a9Smrgfi
4162c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam
41639fe995a9Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
41649fe995a9Smrgdone
41659fe995a9Smrgrm -f conftest.$ac_ext
41669fe995a9SmrgCC=$ac_save_CC
41679fe995a9Smrgfi
41689fe995a9Smrg
4169c048b52eSmrgif test "x$ac_cv_prog_cc_c89" = xno
4170c048b52eSmrgthen :
4171c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4172c048b52eSmrgprintf "%s\n" "unsupported" >&6; }
4173c048b52eSmrgelse $as_nop
4174c048b52eSmrg  if test "x$ac_cv_prog_cc_c89" = x
4175c048b52eSmrgthen :
4176c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4177c048b52eSmrgprintf "%s\n" "none needed" >&6; }
4178c048b52eSmrgelse $as_nop
4179c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4180c048b52eSmrgprintf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4181c048b52eSmrg     CC="$CC $ac_cv_prog_cc_c89"
4182c048b52eSmrgfi
4183c048b52eSmrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4184c048b52eSmrg  ac_prog_cc_stdc=c89
4185c048b52eSmrgfi
4186b62cc08cSmrgfi
41879fe995a9Smrg
41889fe995a9Smrgac_ext=c
41899fe995a9Smrgac_cpp='$CPP $CPPFLAGS'
41909fe995a9Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41919fe995a9Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41929fe995a9Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
41939fe995a9Smrg
4194c048b52eSmrg
4195c048b52eSmrg  ac_ext=c
41969d794632Smrgac_cpp='$CPP $CPPFLAGS'
41979d794632Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41989d794632Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41999d794632Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
4200c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4201c048b52eSmrgprintf %s "checking whether $CC understands -c and -o together... " >&6; }
4202c048b52eSmrgif test ${am_cv_prog_cc_c_o+y}
4203c048b52eSmrgthen :
4204c048b52eSmrg  printf %s "(cached) " >&6
4205c048b52eSmrgelse $as_nop
42069d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42079d794632Smrg/* end confdefs.h.  */
42089d794632Smrg
42099d794632Smrgint
4210c048b52eSmrgmain (void)
42119d794632Smrg{
42129d794632Smrg
42139d794632Smrg  ;
42149d794632Smrg  return 0;
42159d794632Smrg}
42169d794632Smrg_ACEOF
42179d794632Smrg  # Make sure it works both with $CC and with simple cc.
42189d794632Smrg  # Following AC_PROG_CC_C_O, we do the test twice because some
42199d794632Smrg  # compilers refuse to overwrite an existing .o file with -o,
42209d794632Smrg  # though they will create one.
42219d794632Smrg  am_cv_prog_cc_c_o=yes
42229d794632Smrg  for am_i in 1 2; do
42239d794632Smrg    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
42249d794632Smrg   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
42259d794632Smrg   ac_status=$?
42269d794632Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42279d794632Smrg   (exit $ac_status); } \
42289d794632Smrg         && test -f conftest2.$ac_objext; then
42299d794632Smrg      : OK
42309d794632Smrg    else
42319d794632Smrg      am_cv_prog_cc_c_o=no
42329d794632Smrg      break
42339d794632Smrg    fi
42349d794632Smrg  done
42359d794632Smrg  rm -f core conftest*
42369d794632Smrg  unset am_i
42379d794632Smrgfi
4238c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4239c048b52eSmrgprintf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
42409d794632Smrgif test "$am_cv_prog_cc_c_o" != yes; then
42419d794632Smrg   # Losing compiler, so override with the script.
42429d794632Smrg   # FIXME: It is wrong to rewrite CC.
42439d794632Smrg   # But if we don't then we get into trouble of one sort or another.
42449d794632Smrg   # A longer-term fix would be to have automake use am__CC in this case,
42459d794632Smrg   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
42469d794632Smrg   CC="$am_aux_dir/compile $CC"
42479d794632Smrgfi
42489d794632Smrgac_ext=c
42499d794632Smrgac_cpp='$CPP $CPPFLAGS'
42509d794632Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42519d794632Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42529d794632Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
42539d794632Smrg
42549d794632Smrg
42559fe995a9Smrgdepcc="$CC"   am_compiler_list=
42569fe995a9Smrg
4257c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4258c048b52eSmrgprintf %s "checking dependency style of $depcc... " >&6; }
4259c048b52eSmrgif test ${am_cv_CC_dependencies_compiler_type+y}
4260c048b52eSmrgthen :
4261c048b52eSmrg  printf %s "(cached) " >&6
4262c048b52eSmrgelse $as_nop
42639fe995a9Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
42649fe995a9Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
42659fe995a9Smrg  # making bogus files that we don't know about and never remove.  For
42669fe995a9Smrg  # instance it was reported that on HP-UX the gcc test will end up
42679d794632Smrg  # making a dummy file named 'D' -- because '-MD' means "put the output
42689d794632Smrg  # in D".
42699d794632Smrg  rm -rf conftest.dir
42709fe995a9Smrg  mkdir conftest.dir
42719fe995a9Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
42729fe995a9Smrg  # using a relative directory.
42739fe995a9Smrg  cp "$am_depcomp" conftest.dir
42749fe995a9Smrg  cd conftest.dir
42759fe995a9Smrg  # We will build objects and dependencies in a subdirectory because
42769fe995a9Smrg  # it helps to detect inapplicable dependency modes.  For instance
42779fe995a9Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
42789fe995a9Smrg  # side effect of compilation, but ICC will put the dependencies in
42799fe995a9Smrg  # the current directory while Tru64 will put them in the object
42809fe995a9Smrg  # directory.
42819fe995a9Smrg  mkdir sub
42829fe995a9Smrg
42839fe995a9Smrg  am_cv_CC_dependencies_compiler_type=none
42849fe995a9Smrg  if test "$am_compiler_list" = ""; then
42859fe995a9Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
42869fe995a9Smrg  fi
4287b62cc08cSmrg  am__universal=false
4288b62cc08cSmrg  case " $depcc " in #(
4289b62cc08cSmrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4290b62cc08cSmrg     esac
4291b62cc08cSmrg
42929fe995a9Smrg  for depmode in $am_compiler_list; do
42939fe995a9Smrg    # Setup a source with many dependencies, because some compilers
42949fe995a9Smrg    # like to wrap large dependency lists on column 80 (with \), and
42959fe995a9Smrg    # we should not choose a depcomp mode which is confused by this.
42969fe995a9Smrg    #
42979fe995a9Smrg    # We need to recreate these files for each test, as the compiler may
42989fe995a9Smrg    # overwrite some of them when testing with obscure command lines.
42999fe995a9Smrg    # This happens at least with the AIX C compiler.
43009fe995a9Smrg    : > sub/conftest.c
43019fe995a9Smrg    for i in 1 2 3 4 5 6; do
43029fe995a9Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
43039d794632Smrg      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
43049d794632Smrg      # Solaris 10 /bin/sh.
43059d794632Smrg      echo '/* dummy */' > sub/conftst$i.h
43069fe995a9Smrg    done
43079fe995a9Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
43089fe995a9Smrg
43099d794632Smrg    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4310b62cc08cSmrg    # mode.  It turns out that the SunPro C++ compiler does not properly
43119d794632Smrg    # handle '-M -o', and we need to detect this.  Also, some Intel
43129d794632Smrg    # versions had trouble with output in subdirs.
4313b62cc08cSmrg    am__obj=sub/conftest.${OBJEXT-o}
4314b62cc08cSmrg    am__minus_obj="-o $am__obj"
43159fe995a9Smrg    case $depmode in
4316b62cc08cSmrg    gcc)
4317b62cc08cSmrg      # This depmode causes a compiler race in universal mode.
4318b62cc08cSmrg      test "$am__universal" = false || continue
4319b62cc08cSmrg      ;;
43209fe995a9Smrg    nosideeffect)
43219d794632Smrg      # After this tag, mechanisms are not by side-effect, so they'll
43229d794632Smrg      # only be used when explicitly requested.
43239fe995a9Smrg      if test "x$enable_dependency_tracking" = xyes; then
43249fe995a9Smrg	continue
43259fe995a9Smrg      else
43269fe995a9Smrg	break
43279fe995a9Smrg      fi
43289fe995a9Smrg      ;;
43299d794632Smrg    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
43309d794632Smrg      # This compiler won't grok '-c -o', but also, the minuso test has
4331b62cc08cSmrg      # not run yet.  These depmodes are late enough in the game, and
4332b62cc08cSmrg      # so weak that their functioning should not be impacted.
4333b62cc08cSmrg      am__obj=conftest.${OBJEXT-o}
4334b62cc08cSmrg      am__minus_obj=
4335b62cc08cSmrg      ;;
43369fe995a9Smrg    none) break ;;
43379fe995a9Smrg    esac
43389fe995a9Smrg    if depmode=$depmode \
4339c048b52eSmrg       source=sub/conftest.c object=$am__obj \
4340c048b52eSmrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4341c048b52eSmrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4342c048b52eSmrg         >/dev/null 2>conftest.err &&
4343c048b52eSmrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4344c048b52eSmrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4345c048b52eSmrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4346c048b52eSmrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4347c048b52eSmrg      # icc doesn't choke on unknown options, it will just issue warnings
4348c048b52eSmrg      # or remarks (even with -Werror).  So we grep stderr for any message
4349c048b52eSmrg      # that says an option was ignored or not supported.
4350c048b52eSmrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
4351c048b52eSmrg      #   icc: Command line warning: ignoring option '-M'; no argument required
4352c048b52eSmrg      # The diagnosis changed in icc 8.0:
4353c048b52eSmrg      #   icc: Command line remark: option '-MP' not supported
4354c048b52eSmrg      if (grep 'ignoring option' conftest.err ||
4355c048b52eSmrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4356c048b52eSmrg        am_cv_CC_dependencies_compiler_type=$depmode
4357c048b52eSmrg        break
4358c048b52eSmrg      fi
4359b62cc08cSmrg    fi
4360b62cc08cSmrg  done
43619fe995a9Smrg
4362c048b52eSmrg  cd ..
4363c048b52eSmrg  rm -rf conftest.dir
4364b62cc08cSmrgelse
4365c048b52eSmrg  am_cv_CC_dependencies_compiler_type=none
4366b62cc08cSmrgfi
43679fe995a9Smrg
43689fe995a9Smrgfi
4369c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4370c048b52eSmrgprintf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4371c048b52eSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4372b62cc08cSmrg
4373c048b52eSmrg if
4374c048b52eSmrg  test "x$enable_dependency_tracking" != xno \
4375c048b52eSmrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4376c048b52eSmrg  am__fastdepCC_TRUE=
4377c048b52eSmrg  am__fastdepCC_FALSE='#'
4378b62cc08cSmrgelse
4379c048b52eSmrg  am__fastdepCC_TRUE='#'
4380c048b52eSmrg  am__fastdepCC_FALSE=
43819fe995a9Smrgfi
43829fe995a9Smrg
43839fe995a9Smrg
43849fe995a9Smrg
4385c048b52eSmrg
4386c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4387c048b52eSmrgprintf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4388c048b52eSmrgif test ${ac_cv_c_undeclared_builtin_options+y}
4389c048b52eSmrgthen :
4390c048b52eSmrg  printf %s "(cached) " >&6
4391c048b52eSmrgelse $as_nop
4392c048b52eSmrg  ac_save_CFLAGS=$CFLAGS
4393c048b52eSmrg   ac_cv_c_undeclared_builtin_options='cannot detect'
4394c048b52eSmrg   for ac_arg in '' -fno-builtin; do
4395c048b52eSmrg     CFLAGS="$ac_save_CFLAGS $ac_arg"
4396c048b52eSmrg     # This test program should *not* compile successfully.
4397c048b52eSmrg     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4398b62cc08cSmrg/* end confdefs.h.  */
4399b62cc08cSmrg
4400b62cc08cSmrgint
4401c048b52eSmrgmain (void)
4402b62cc08cSmrg{
4403c048b52eSmrg(void) strchr;
4404b62cc08cSmrg  ;
4405b62cc08cSmrg  return 0;
4406b62cc08cSmrg}
4407b62cc08cSmrg_ACEOF
4408c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
4409c048b52eSmrgthen :
4410b62cc08cSmrg
4411c048b52eSmrgelse $as_nop
4412c048b52eSmrg  # This test program should compile successfully.
4413c048b52eSmrg        # No library function is consistently available on
4414c048b52eSmrg        # freestanding implementations, so test against a dummy
4415c048b52eSmrg        # declaration.  Include always-available headers on the
4416c048b52eSmrg        # off chance that they somehow elicit warnings.
4417c048b52eSmrg        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44189fe995a9Smrg/* end confdefs.h.  */
4419c048b52eSmrg#include <float.h>
4420c048b52eSmrg#include <limits.h>
4421c048b52eSmrg#include <stdarg.h>
4422c048b52eSmrg#include <stddef.h>
4423c048b52eSmrgextern void ac_decl (int, char *);
44249fe995a9Smrg
44259fe995a9Smrgint
4426c048b52eSmrgmain (void)
44279fe995a9Smrg{
4428c048b52eSmrg(void) ac_decl (0, (char *) 0);
4429c048b52eSmrg  (void) ac_decl;
4430c048b52eSmrg
4431c048b52eSmrg  ;
44329fe995a9Smrg  return 0;
44339fe995a9Smrg}
44349fe995a9Smrg_ACEOF
4435c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
4436c048b52eSmrgthen :
4437c048b52eSmrg  if test x"$ac_arg" = x
4438c048b52eSmrgthen :
4439c048b52eSmrg  ac_cv_c_undeclared_builtin_options='none needed'
4440c048b52eSmrgelse $as_nop
4441c048b52eSmrg  ac_cv_c_undeclared_builtin_options=$ac_arg
4442b62cc08cSmrgfi
4443c048b52eSmrg          break
44449fe995a9Smrgfi
4445c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4446b62cc08cSmrgfi
4447c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4448c048b52eSmrg    done
4449c048b52eSmrg    CFLAGS=$ac_save_CFLAGS
4450c048b52eSmrg
4451c048b52eSmrgfi
4452c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4453c048b52eSmrgprintf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4454c048b52eSmrg  case $ac_cv_c_undeclared_builtin_options in #(
4455c048b52eSmrg  'cannot detect') :
4456c048b52eSmrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4457c048b52eSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4458c048b52eSmrgas_fn_error $? "cannot make $CC report undeclared builtins
4459c048b52eSmrgSee \`config.log' for more details" "$LINENO" 5; } ;; #(
4460c048b52eSmrg  'none needed') :
4461c048b52eSmrg    ac_c_undeclared_builtin_options='' ;; #(
4462c048b52eSmrg  *) :
4463c048b52eSmrg    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4464c048b52eSmrgesac
4465c048b52eSmrg
4466c048b52eSmrgac_header= ac_cache=
4467c048b52eSmrgfor ac_item in $ac_header_c_list
4468c048b52eSmrgdo
4469c048b52eSmrg  if test $ac_cache; then
4470c048b52eSmrg    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4471c048b52eSmrg    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4472c048b52eSmrg      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4473c048b52eSmrg    fi
4474c048b52eSmrg    ac_header= ac_cache=
4475c048b52eSmrg  elif test $ac_header; then
4476c048b52eSmrg    ac_cache=$ac_item
4477c048b52eSmrg  else
4478c048b52eSmrg    ac_header=$ac_item
4479c048b52eSmrg  fi
4480c048b52eSmrgdone
4481c048b52eSmrg
4482c048b52eSmrg
4483b62cc08cSmrg
44849fe995a9Smrg
44859fe995a9Smrg
44869fe995a9Smrg
4487b62cc08cSmrg
44889fe995a9Smrg
4489c048b52eSmrgif test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4490c048b52eSmrgthen :
44919fe995a9Smrg
4492c048b52eSmrgprintf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4493c048b52eSmrg
4494c048b52eSmrgfi
44959fe995a9Smrg
44969fe995a9Smrg
449790b6713cSmrg
449890b6713cSmrg
4499c048b52eSmrgac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4500c048b52eSmrgif test "x$ac_cv_have_decl___clang__" = xyes
4501c048b52eSmrgthen :
45029d794632Smrg  CLANGCC="yes"
4503c048b52eSmrgelse $as_nop
45049d794632Smrg  CLANGCC="no"
45059d794632Smrgfi
4506c048b52eSmrgac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4507c048b52eSmrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4508c048b52eSmrgthen :
45099d794632Smrg  INTELCC="yes"
4510c048b52eSmrgelse $as_nop
45119d794632Smrg  INTELCC="no"
45129d794632Smrgfi
4513c048b52eSmrgac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4514c048b52eSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4515c048b52eSmrgthen :
45169d794632Smrg  SUNCC="yes"
4517c048b52eSmrgelse $as_nop
45189d794632Smrg  SUNCC="no"
45199d794632Smrgfi
45209d794632Smrg
45219d794632Smrg
452290b6713cSmrg
452390b6713cSmrg
45246fbef84aSmrg
45256fbef84aSmrg
45266fbef84aSmrg
45276fbef84aSmrg
45289fe995a9Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
45299fe995a9Smrg	if test -n "$ac_tool_prefix"; then
45309fe995a9Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
45319fe995a9Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4532c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4533c048b52eSmrgprintf %s "checking for $ac_word... " >&6; }
4534c048b52eSmrgif test ${ac_cv_path_PKG_CONFIG+y}
4535c048b52eSmrgthen :
4536c048b52eSmrg  printf %s "(cached) " >&6
4537c048b52eSmrgelse $as_nop
45389fe995a9Smrg  case $PKG_CONFIG in
45399fe995a9Smrg  [\\/]* | ?:[\\/]*)
45409fe995a9Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
45419fe995a9Smrg  ;;
45429fe995a9Smrg  *)
45439fe995a9Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45449fe995a9Smrgfor as_dir in $PATH
45459fe995a9Smrgdo
45469fe995a9Smrg  IFS=$as_save_IFS
4547c048b52eSmrg  case $as_dir in #(((
4548c048b52eSmrg    '') as_dir=./ ;;
4549c048b52eSmrg    */) ;;
4550c048b52eSmrg    *) as_dir=$as_dir/ ;;
4551c048b52eSmrg  esac
4552b62cc08cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4553c048b52eSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4554c048b52eSmrg    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4555c048b52eSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
45569fe995a9Smrg    break 2
45579fe995a9Smrg  fi
45589fe995a9Smrgdone
4559b62cc08cSmrg  done
45609fe995a9SmrgIFS=$as_save_IFS
45619fe995a9Smrg
45629fe995a9Smrg  ;;
45639fe995a9Smrgesac
45649fe995a9Smrgfi
45659fe995a9SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
45669fe995a9Smrgif test -n "$PKG_CONFIG"; then
4567c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4568c048b52eSmrgprintf "%s\n" "$PKG_CONFIG" >&6; }
45699fe995a9Smrgelse
4570c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4571c048b52eSmrgprintf "%s\n" "no" >&6; }
45729fe995a9Smrgfi
45739fe995a9Smrg
45749fe995a9Smrg
45759fe995a9Smrgfi
45769fe995a9Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
45779fe995a9Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
45789fe995a9Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
45799fe995a9Smrgset dummy pkg-config; ac_word=$2
4580c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4581c048b52eSmrgprintf %s "checking for $ac_word... " >&6; }
4582c048b52eSmrgif test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4583c048b52eSmrgthen :
4584c048b52eSmrg  printf %s "(cached) " >&6
4585c048b52eSmrgelse $as_nop
45869fe995a9Smrg  case $ac_pt_PKG_CONFIG in
45879fe995a9Smrg  [\\/]* | ?:[\\/]*)
45889fe995a9Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
45899fe995a9Smrg  ;;
45909fe995a9Smrg  *)
45919fe995a9Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45929fe995a9Smrgfor as_dir in $PATH
45939fe995a9Smrgdo
45949fe995a9Smrg  IFS=$as_save_IFS
4595c048b52eSmrg  case $as_dir in #(((
4596c048b52eSmrg    '') as_dir=./ ;;
4597c048b52eSmrg    */) ;;
4598c048b52eSmrg    *) as_dir=$as_dir/ ;;
4599c048b52eSmrg  esac
4600b62cc08cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4601c048b52eSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4602c048b52eSmrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4603c048b52eSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
46049fe995a9Smrg    break 2
46059fe995a9Smrg  fi
46069fe995a9Smrgdone
4607b62cc08cSmrg  done
46089fe995a9SmrgIFS=$as_save_IFS
46099fe995a9Smrg
46109fe995a9Smrg  ;;
46119fe995a9Smrgesac
46129fe995a9Smrgfi
46139fe995a9Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
46149fe995a9Smrgif test -n "$ac_pt_PKG_CONFIG"; then
4615c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4616c048b52eSmrgprintf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
46179fe995a9Smrgelse
4618c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4619c048b52eSmrgprintf "%s\n" "no" >&6; }
46209fe995a9Smrgfi
46219fe995a9Smrg
46229fe995a9Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
46239fe995a9Smrg    PKG_CONFIG=""
46249fe995a9Smrg  else
46259fe995a9Smrg    case $cross_compiling:$ac_tool_warned in
46269fe995a9Smrgyes:)
4627c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4628c048b52eSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
46299fe995a9Smrgac_tool_warned=yes ;;
46309fe995a9Smrgesac
46319fe995a9Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
46329fe995a9Smrg  fi
46339fe995a9Smrgelse
46349fe995a9Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
46359fe995a9Smrgfi
46369fe995a9Smrg
46379fe995a9Smrgfi
46389fe995a9Smrgif test -n "$PKG_CONFIG"; then
46399fe995a9Smrg	_pkg_min_version=0.9.0
4640c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4641c048b52eSmrgprintf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
46429fe995a9Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4643c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4644c048b52eSmrgprintf "%s\n" "yes" >&6; }
46459fe995a9Smrg	else
4646c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4647c048b52eSmrgprintf "%s\n" "no" >&6; }
4648b62cc08cSmrg		PKG_CONFIG=""
4649b62cc08cSmrg	fi
4650b62cc08cSmrgfi
46519fe995a9Smrg
4652c048b52eSmrg
4653c048b52eSmrg  # Make sure we can run config.sub.
4654c048b52eSmrg$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4655c048b52eSmrg  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4656c048b52eSmrg
4657c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4658c048b52eSmrgprintf %s "checking build system type... " >&6; }
4659c048b52eSmrgif test ${ac_cv_build+y}
4660c048b52eSmrgthen :
4661c048b52eSmrg  printf %s "(cached) " >&6
4662c048b52eSmrgelse $as_nop
46639fe995a9Smrg  ac_build_alias=$build_alias
46649fe995a9Smrgtest "x$ac_build_alias" = x &&
4665c048b52eSmrg  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
46669fe995a9Smrgtest "x$ac_build_alias" = x &&
4667b62cc08cSmrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4668c048b52eSmrgac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4669c048b52eSmrg  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
46709fe995a9Smrg
46719fe995a9Smrgfi
4672c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4673c048b52eSmrgprintf "%s\n" "$ac_cv_build" >&6; }
46749fe995a9Smrgcase $ac_cv_build in
46759fe995a9Smrg*-*-*) ;;
4676b62cc08cSmrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
46779fe995a9Smrgesac
46789fe995a9Smrgbuild=$ac_cv_build
46799fe995a9Smrgac_save_IFS=$IFS; IFS='-'
46809fe995a9Smrgset x $ac_cv_build
46819fe995a9Smrgshift
46829fe995a9Smrgbuild_cpu=$1
46839fe995a9Smrgbuild_vendor=$2
46849fe995a9Smrgshift; shift
46859fe995a9Smrg# Remember, the first character of IFS is used to create $*,
46869fe995a9Smrg# except with old shells:
46879fe995a9Smrgbuild_os=$*
46889fe995a9SmrgIFS=$ac_save_IFS
46899fe995a9Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
46909fe995a9Smrg
46919fe995a9Smrg
4692c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4693c048b52eSmrgprintf %s "checking host system type... " >&6; }
4694c048b52eSmrgif test ${ac_cv_host+y}
4695c048b52eSmrgthen :
4696c048b52eSmrg  printf %s "(cached) " >&6
4697c048b52eSmrgelse $as_nop
46989fe995a9Smrg  if test "x$host_alias" = x; then
46999fe995a9Smrg  ac_cv_host=$ac_cv_build
47009fe995a9Smrgelse
4701c048b52eSmrg  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4702c048b52eSmrg    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
47039fe995a9Smrgfi
47049fe995a9Smrg
47059fe995a9Smrgfi
4706c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4707c048b52eSmrgprintf "%s\n" "$ac_cv_host" >&6; }
47089fe995a9Smrgcase $ac_cv_host in
47099fe995a9Smrg*-*-*) ;;
4710b62cc08cSmrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
47119fe995a9Smrgesac
47129fe995a9Smrghost=$ac_cv_host
47139fe995a9Smrgac_save_IFS=$IFS; IFS='-'
47149fe995a9Smrgset x $ac_cv_host
47159fe995a9Smrgshift
47169fe995a9Smrghost_cpu=$1
47179fe995a9Smrghost_vendor=$2
47189fe995a9Smrgshift; shift
47199fe995a9Smrg# Remember, the first character of IFS is used to create $*,
47209fe995a9Smrg# except with old shells:
47219fe995a9Smrghost_os=$*
47229fe995a9SmrgIFS=$ac_save_IFS
47239fe995a9Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
47249fe995a9Smrg
47259fe995a9Smrg
4726c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4727c048b52eSmrgprintf %s "checking for a sed that does not truncate output... " >&6; }
4728c048b52eSmrgif test ${ac_cv_path_SED+y}
4729c048b52eSmrgthen :
4730c048b52eSmrg  printf %s "(cached) " >&6
4731c048b52eSmrgelse $as_nop
4732b62cc08cSmrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4733b62cc08cSmrg     for ac_i in 1 2 3 4 5 6 7; do
4734b62cc08cSmrg       ac_script="$ac_script$as_nl$ac_script"
4735b62cc08cSmrg     done
4736b62cc08cSmrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4737b62cc08cSmrg     { ac_script=; unset ac_script;}
4738b62cc08cSmrg     if test -z "$SED"; then
4739b62cc08cSmrg  ac_path_SED_found=false
4740b62cc08cSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
4741b62cc08cSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742b62cc08cSmrgfor as_dir in $PATH
4743b62cc08cSmrgdo
4744b62cc08cSmrg  IFS=$as_save_IFS
4745c048b52eSmrg  case $as_dir in #(((
4746c048b52eSmrg    '') as_dir=./ ;;
4747c048b52eSmrg    */) ;;
4748c048b52eSmrg    *) as_dir=$as_dir/ ;;
4749c048b52eSmrg  esac
4750c048b52eSmrg    for ac_prog in sed gsed
4751c048b52eSmrg   do
4752b62cc08cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4753c048b52eSmrg      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4754e8ac26b0Smrg      as_fn_executable_p "$ac_path_SED" || continue
4755b62cc08cSmrg# Check for GNU ac_path_SED and select it if it is found.
4756b62cc08cSmrg  # Check for GNU $ac_path_SED
4757b62cc08cSmrgcase `"$ac_path_SED" --version 2>&1` in
4758b62cc08cSmrg*GNU*)
4759b62cc08cSmrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4760b62cc08cSmrg*)
4761b62cc08cSmrg  ac_count=0
4762c048b52eSmrg  printf %s 0123456789 >"conftest.in"
4763b62cc08cSmrg  while :
4764b62cc08cSmrg  do
4765b62cc08cSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
4766b62cc08cSmrg    mv "conftest.tmp" "conftest.in"
4767b62cc08cSmrg    cp "conftest.in" "conftest.nl"
4768c048b52eSmrg    printf "%s\n" '' >> "conftest.nl"
4769b62cc08cSmrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4770b62cc08cSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4771b62cc08cSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
4772b62cc08cSmrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
4773b62cc08cSmrg      # Best one so far, save it but keep looking for a better one
4774b62cc08cSmrg      ac_cv_path_SED="$ac_path_SED"
4775b62cc08cSmrg      ac_path_SED_max=$ac_count
4776b62cc08cSmrg    fi
4777b62cc08cSmrg    # 10*(2^10) chars as input seems more than enough
4778b62cc08cSmrg    test $ac_count -gt 10 && break
4779b62cc08cSmrg  done
4780b62cc08cSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4781b62cc08cSmrgesac
4782b62cc08cSmrg
4783b62cc08cSmrg      $ac_path_SED_found && break 3
4784b62cc08cSmrg    done
4785b62cc08cSmrg  done
4786b62cc08cSmrg  done
4787b62cc08cSmrgIFS=$as_save_IFS
4788b62cc08cSmrg  if test -z "$ac_cv_path_SED"; then
4789b62cc08cSmrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4790b62cc08cSmrg  fi
4791b62cc08cSmrgelse
4792b62cc08cSmrg  ac_cv_path_SED=$SED
4793b62cc08cSmrgfi
4794b62cc08cSmrg
4795b62cc08cSmrgfi
4796c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4797c048b52eSmrgprintf "%s\n" "$ac_cv_path_SED" >&6; }
4798b62cc08cSmrg SED="$ac_cv_path_SED"
4799b62cc08cSmrg  rm -f conftest.sed
4800b62cc08cSmrg
4801b62cc08cSmrg
4802b62cc08cSmrg
4803b62cc08cSmrg
4804b62cc08cSmrg
48059d794632Smrg
48069d794632Smrg# Check whether --enable-selective-werror was given.
4807c048b52eSmrgif test ${enable_selective_werror+y}
4808c048b52eSmrgthen :
48099d794632Smrg  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4810c048b52eSmrgelse $as_nop
48119d794632Smrg  SELECTIVE_WERROR=yes
4812b62cc08cSmrgfi
4813b62cc08cSmrg
48149d794632Smrg
48159d794632Smrg
48169d794632Smrg
48179d794632Smrg
48189d794632Smrg# -v is too short to test reliably with XORG_TESTSET_CFLAG
48199d794632Smrgif test "x$SUNCC" = "xyes"; then
48209d794632Smrg    BASE_CFLAGS="-v"
48219d794632Smrgelse
48229d794632Smrg    BASE_CFLAGS=""
4823b62cc08cSmrgfi
4824b62cc08cSmrg
48259d794632Smrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4826b62cc08cSmrg
4827b62cc08cSmrg
4828b62cc08cSmrg
4829b62cc08cSmrg
4830b62cc08cSmrg
4831b62cc08cSmrg
4832b62cc08cSmrg
48339d794632Smrg
48349d794632Smrg
48359d794632Smrg
48369d794632Smrg
48379d794632Smrg
48389d794632Smrg
48399d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
48409d794632Smrg
48419d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
48429d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4843c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4844c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4845c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
4846c048b52eSmrgthen :
4847c048b52eSmrg  printf %s "(cached) " >&6
4848c048b52eSmrgelse $as_nop
48499d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48509d794632Smrg/* end confdefs.h.  */
48519d794632Smrgint i;
48529d794632Smrg_ACEOF
4853c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
4854c048b52eSmrgthen :
48559d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
4856c048b52eSmrgelse $as_nop
48579d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=no
48589d794632Smrgfi
4859c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
48609d794632Smrgfi
4861c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4862c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
48639d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
48649d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
4865b62cc08cSmrgfi
4866b62cc08cSmrg
48679d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
48689d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
48699d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4870b62cc08cSmrg	fi
48719d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4872c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4873c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4874c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4875c048b52eSmrgthen :
4876c048b52eSmrg  printf %s "(cached) " >&6
4877c048b52eSmrgelse $as_nop
48789d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48799d794632Smrg/* end confdefs.h.  */
48809d794632Smrgint i;
48819d794632Smrg_ACEOF
4882c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
4883c048b52eSmrgthen :
48849d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
4885c048b52eSmrgelse $as_nop
48869d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
48879d794632Smrgfi
4888c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
48899d794632Smrgfi
4890c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4891c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
48929d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
48939d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
4894b62cc08cSmrgfi
4895b62cc08cSmrg
48969d794632Smrgfound="no"
4897b62cc08cSmrg
48989d794632Smrg	if test $found = "no" ; then
4899e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
49009d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
49019d794632Smrg		fi
4902b62cc08cSmrg
4903e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
49049d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
49059d794632Smrg		fi
4906b62cc08cSmrg
49079d794632Smrg		CFLAGS="$CFLAGS -Wall"
4908b62cc08cSmrg
4909c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4910c048b52eSmrgprintf %s "checking if $CC supports -Wall... " >&6; }
49119d794632Smrg		cacheid=xorg_cv_cc_flag__Wall
4912c048b52eSmrg		if eval test \${$cacheid+y}
4913c048b52eSmrgthen :
4914c048b52eSmrg  printf %s "(cached) " >&6
4915c048b52eSmrgelse $as_nop
49169d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49179d794632Smrg/* end confdefs.h.  */
49189d794632Smrgint i;
49199d794632Smrgint
4920c048b52eSmrgmain (void)
49219d794632Smrg{
4922b62cc08cSmrg
49239d794632Smrg  ;
49249d794632Smrg  return 0;
49259d794632Smrg}
4926b62cc08cSmrg_ACEOF
4927c048b52eSmrgif ac_fn_c_try_link "$LINENO"
4928c048b52eSmrgthen :
49299d794632Smrg  eval $cacheid=yes
4930c048b52eSmrgelse $as_nop
49319d794632Smrg  eval $cacheid=no
49329d794632Smrgfi
4933c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
49349d794632Smrg    conftest$ac_exeext conftest.$ac_ext
49359d794632Smrgfi
4936b62cc08cSmrg
49379d794632Smrg
49389d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
49399d794632Smrg
49409d794632Smrg		eval supported=\$$cacheid
4941c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4942c048b52eSmrgprintf "%s\n" "$supported" >&6; }
49439d794632Smrg		if test "$supported" = "yes" ; then
49449d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wall"
49459d794632Smrg			found="yes"
49469d794632Smrg		fi
4947b62cc08cSmrg	fi
4948b62cc08cSmrg
4949b62cc08cSmrg
4950b62cc08cSmrg
4951b62cc08cSmrg
4952b62cc08cSmrg
4953b62cc08cSmrg
4954b62cc08cSmrg
4955b62cc08cSmrg
4956b62cc08cSmrg
4957b62cc08cSmrg
4958b62cc08cSmrg
49599fe995a9Smrg
49609fe995a9Smrg
49619fe995a9Smrg
49629fe995a9Smrg
49639d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
49649d794632Smrg
49659d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
49669d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4967c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4968c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4969c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
4970c048b52eSmrgthen :
4971c048b52eSmrg  printf %s "(cached) " >&6
4972c048b52eSmrgelse $as_nop
49739d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49749d794632Smrg/* end confdefs.h.  */
49759d794632Smrgint i;
49769d794632Smrg_ACEOF
4977c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
4978c048b52eSmrgthen :
49799d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
4980c048b52eSmrgelse $as_nop
49819d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=no
49829d794632Smrgfi
4983c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
49849d794632Smrgfi
4985c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4986c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
49879d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
49889d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
49899d794632Smrgfi
49909d794632Smrg
49919d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
49929d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
49939d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
49949d794632Smrg	fi
49959d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4996c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4997c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4998c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4999c048b52eSmrgthen :
5000c048b52eSmrg  printf %s "(cached) " >&6
5001c048b52eSmrgelse $as_nop
50029d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50039d794632Smrg/* end confdefs.h.  */
50049d794632Smrgint i;
50059d794632Smrg_ACEOF
5006c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
5007c048b52eSmrgthen :
50089d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5009c048b52eSmrgelse $as_nop
50109d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
50119d794632Smrgfi
5012c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
50139d794632Smrgfi
5014c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5015c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
50169d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
50179d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
50189d794632Smrgfi
50199d794632Smrg
50209d794632Smrgfound="no"
50219d794632Smrg
50229d794632Smrg	if test $found = "no" ; then
5023e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
50249d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
50259d794632Smrg		fi
50269d794632Smrg
5027e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
50289d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
50299d794632Smrg		fi
50309d794632Smrg
50319d794632Smrg		CFLAGS="$CFLAGS -Wpointer-arith"
50329d794632Smrg
5033c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5034c048b52eSmrgprintf %s "checking if $CC supports -Wpointer-arith... " >&6; }
50359d794632Smrg		cacheid=xorg_cv_cc_flag__Wpointer_arith
5036c048b52eSmrg		if eval test \${$cacheid+y}
5037c048b52eSmrgthen :
5038c048b52eSmrg  printf %s "(cached) " >&6
5039c048b52eSmrgelse $as_nop
50409d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50419d794632Smrg/* end confdefs.h.  */
50429d794632Smrgint i;
50439d794632Smrgint
5044c048b52eSmrgmain (void)
50459d794632Smrg{
50469d794632Smrg
50479d794632Smrg  ;
50489d794632Smrg  return 0;
50499d794632Smrg}
50509d794632Smrg_ACEOF
5051c048b52eSmrgif ac_fn_c_try_link "$LINENO"
5052c048b52eSmrgthen :
50539d794632Smrg  eval $cacheid=yes
5054c048b52eSmrgelse $as_nop
50559d794632Smrg  eval $cacheid=no
50569d794632Smrgfi
5057c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
50589d794632Smrg    conftest$ac_exeext conftest.$ac_ext
50599d794632Smrgfi
50609d794632Smrg
50619d794632Smrg
50629d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
50639d794632Smrg
50649d794632Smrg		eval supported=\$$cacheid
5065c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5066c048b52eSmrgprintf "%s\n" "$supported" >&6; }
50679d794632Smrg		if test "$supported" = "yes" ; then
50689d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
50699d794632Smrg			found="yes"
50709d794632Smrg		fi
50719d794632Smrg	fi
50729d794632Smrg
50739d794632Smrg
50749d794632Smrg
50759d794632Smrg
50769d794632Smrg
50779d794632Smrg
50789d794632Smrg
50799d794632Smrg
50809d794632Smrg
50819d794632Smrg
50829d794632Smrg
50839d794632Smrg
50849d794632Smrg
50859d794632Smrg
50869d794632Smrg
50879d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
50889d794632Smrg
50899d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
50909d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5091c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5092c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5093c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5094c048b52eSmrgthen :
5095c048b52eSmrg  printf %s "(cached) " >&6
5096c048b52eSmrgelse $as_nop
50979d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50989d794632Smrg/* end confdefs.h.  */
50999d794632Smrgint i;
51009d794632Smrg_ACEOF
5101c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
5102c048b52eSmrgthen :
51039d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
5104c048b52eSmrgelse $as_nop
51059d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=no
51069d794632Smrgfi
5107c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
51089d794632Smrgfi
5109c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5110c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
51119d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
51129d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
51139d794632Smrgfi
51149d794632Smrg
51159d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
51169d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
51179d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
51189d794632Smrg	fi
51199d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5120c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5121c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5122c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5123c048b52eSmrgthen :
5124c048b52eSmrg  printf %s "(cached) " >&6
5125c048b52eSmrgelse $as_nop
51269d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51279d794632Smrg/* end confdefs.h.  */
51289d794632Smrgint i;
51299d794632Smrg_ACEOF
5130c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
5131c048b52eSmrgthen :
51329d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5133c048b52eSmrgelse $as_nop
51349d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
51359d794632Smrgfi
5136c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
51379d794632Smrgfi
5138c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5139c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
51409d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
51419d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
51429d794632Smrgfi
51439d794632Smrg
51449d794632Smrgfound="no"
51459d794632Smrg
51469d794632Smrg	if test $found = "no" ; then
5147e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
51489d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
51499d794632Smrg		fi
51509d794632Smrg
5151e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
51529d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
51539d794632Smrg		fi
51549d794632Smrg
51559d794632Smrg		CFLAGS="$CFLAGS -Wmissing-declarations"
51569d794632Smrg
5157c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5158c048b52eSmrgprintf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
51599d794632Smrg		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5160c048b52eSmrg		if eval test \${$cacheid+y}
5161c048b52eSmrgthen :
5162c048b52eSmrg  printf %s "(cached) " >&6
5163c048b52eSmrgelse $as_nop
51649d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51659d794632Smrg/* end confdefs.h.  */
51669d794632Smrgint i;
51679d794632Smrgint
5168c048b52eSmrgmain (void)
51699d794632Smrg{
51709d794632Smrg
51719d794632Smrg  ;
51729d794632Smrg  return 0;
51739d794632Smrg}
51749d794632Smrg_ACEOF
5175c048b52eSmrgif ac_fn_c_try_link "$LINENO"
5176c048b52eSmrgthen :
51779d794632Smrg  eval $cacheid=yes
5178c048b52eSmrgelse $as_nop
51799d794632Smrg  eval $cacheid=no
51809d794632Smrgfi
5181c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
51829d794632Smrg    conftest$ac_exeext conftest.$ac_ext
51839d794632Smrgfi
51849d794632Smrg
51859d794632Smrg
51869d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
51879d794632Smrg
51889d794632Smrg		eval supported=\$$cacheid
5189c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5190c048b52eSmrgprintf "%s\n" "$supported" >&6; }
51919d794632Smrg		if test "$supported" = "yes" ; then
51929d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
51939d794632Smrg			found="yes"
51949d794632Smrg		fi
51959d794632Smrg	fi
51969d794632Smrg
51979d794632Smrg
51989d794632Smrg
51999d794632Smrg
52009d794632Smrg
52019d794632Smrg
52029d794632Smrg
52039d794632Smrg
52049d794632Smrg
52059d794632Smrg
52069d794632Smrg
52079d794632Smrg
52089d794632Smrg
52099d794632Smrg
52109d794632Smrg
52119d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
52129d794632Smrg
52139d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
52149d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5215c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5216c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5217c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5218c048b52eSmrgthen :
5219c048b52eSmrg  printf %s "(cached) " >&6
5220c048b52eSmrgelse $as_nop
52219d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52229d794632Smrg/* end confdefs.h.  */
52239d794632Smrgint i;
52249d794632Smrg_ACEOF
5225c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
5226c048b52eSmrgthen :
52279d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
5228c048b52eSmrgelse $as_nop
52299d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=no
52309d794632Smrgfi
5231c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
52329d794632Smrgfi
5233c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5234c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
52359d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
52369d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
52379d794632Smrgfi
52389d794632Smrg
52399d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
52409d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
52419d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
52429d794632Smrg	fi
52439d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5244c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5245c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5246c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5247c048b52eSmrgthen :
5248c048b52eSmrg  printf %s "(cached) " >&6
5249c048b52eSmrgelse $as_nop
52509d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52519d794632Smrg/* end confdefs.h.  */
52529d794632Smrgint i;
52539d794632Smrg_ACEOF
5254c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
5255c048b52eSmrgthen :
52569d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5257c048b52eSmrgelse $as_nop
52589d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
52599d794632Smrgfi
5260c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
52619d794632Smrgfi
5262c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5263c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
52649d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
52659d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
52669d794632Smrgfi
52679d794632Smrg
52689d794632Smrgfound="no"
52699d794632Smrg
52709d794632Smrg	if test $found = "no" ; then
5271e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
52729d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
52739d794632Smrg		fi
52749d794632Smrg
5275e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
52769d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
52779d794632Smrg		fi
52789d794632Smrg
52799d794632Smrg		CFLAGS="$CFLAGS -Wformat=2"
52809d794632Smrg
5281c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5282c048b52eSmrgprintf %s "checking if $CC supports -Wformat=2... " >&6; }
5283e8ac26b0Smrg		cacheid=xorg_cv_cc_flag__Wformat_2
5284c048b52eSmrg		if eval test \${$cacheid+y}
5285c048b52eSmrgthen :
5286c048b52eSmrg  printf %s "(cached) " >&6
5287c048b52eSmrgelse $as_nop
52889d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52899d794632Smrg/* end confdefs.h.  */
52909d794632Smrgint i;
52919d794632Smrgint
5292c048b52eSmrgmain (void)
52939d794632Smrg{
52949d794632Smrg
52959d794632Smrg  ;
52969d794632Smrg  return 0;
52979d794632Smrg}
52989d794632Smrg_ACEOF
5299c048b52eSmrgif ac_fn_c_try_link "$LINENO"
5300c048b52eSmrgthen :
53019d794632Smrg  eval $cacheid=yes
5302c048b52eSmrgelse $as_nop
53039d794632Smrg  eval $cacheid=no
53049d794632Smrgfi
5305c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
53069d794632Smrg    conftest$ac_exeext conftest.$ac_ext
53079d794632Smrgfi
53089d794632Smrg
53099d794632Smrg
53109d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
53119d794632Smrg
53129d794632Smrg		eval supported=\$$cacheid
5313c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5314c048b52eSmrgprintf "%s\n" "$supported" >&6; }
53159d794632Smrg		if test "$supported" = "yes" ; then
53169d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
53179d794632Smrg			found="yes"
53189d794632Smrg		fi
53199d794632Smrg	fi
53209d794632Smrg
53219d794632Smrg	if test $found = "no" ; then
5322e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
53239d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
53249d794632Smrg		fi
53259d794632Smrg
5326e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
53279d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
53289d794632Smrg		fi
53299d794632Smrg
53309d794632Smrg		CFLAGS="$CFLAGS -Wformat"
53319d794632Smrg
5332c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5333c048b52eSmrgprintf %s "checking if $CC supports -Wformat... " >&6; }
53349d794632Smrg		cacheid=xorg_cv_cc_flag__Wformat
5335c048b52eSmrg		if eval test \${$cacheid+y}
5336c048b52eSmrgthen :
5337c048b52eSmrg  printf %s "(cached) " >&6
5338c048b52eSmrgelse $as_nop
53399d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53409d794632Smrg/* end confdefs.h.  */
53419d794632Smrgint i;
53429d794632Smrgint
5343c048b52eSmrgmain (void)
53449d794632Smrg{
53459d794632Smrg
53469d794632Smrg  ;
53479d794632Smrg  return 0;
53489d794632Smrg}
53499d794632Smrg_ACEOF
5350c048b52eSmrgif ac_fn_c_try_link "$LINENO"
5351c048b52eSmrgthen :
53529d794632Smrg  eval $cacheid=yes
5353c048b52eSmrgelse $as_nop
53549d794632Smrg  eval $cacheid=no
53559d794632Smrgfi
5356c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
53579d794632Smrg    conftest$ac_exeext conftest.$ac_ext
53589d794632Smrgfi
53599d794632Smrg
53609d794632Smrg
53619d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
53629d794632Smrg
53639d794632Smrg		eval supported=\$$cacheid
5364c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5365c048b52eSmrgprintf "%s\n" "$supported" >&6; }
53669d794632Smrg		if test "$supported" = "yes" ; then
53679d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
53689d794632Smrg			found="yes"
53699d794632Smrg		fi
53709d794632Smrg	fi
53719d794632Smrg
53729d794632Smrg
53739d794632Smrg
53749d794632Smrg
53759d794632Smrg
53769d794632Smrg
53779d794632Smrg
53789d794632Smrg
53799d794632Smrg
53809d794632Smrg
53819d794632Smrg
53829d794632Smrg
53839d794632Smrg
53849d794632Smrg
53859d794632Smrg
53869d794632Smrg
53879d794632Smrg
53889d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
53899d794632Smrg
53909d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
53919d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5392c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5393c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5394c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5395c048b52eSmrgthen :
5396c048b52eSmrg  printf %s "(cached) " >&6
5397c048b52eSmrgelse $as_nop
53989d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53999d794632Smrg/* end confdefs.h.  */
54009d794632Smrgint i;
54019d794632Smrg_ACEOF
5402c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
5403c048b52eSmrgthen :
54049d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
5405c048b52eSmrgelse $as_nop
54069d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=no
54079d794632Smrgfi
5408c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
54099d794632Smrgfi
5410c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5411c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
54129d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
54139d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
54149d794632Smrgfi
54159d794632Smrg
54169d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
54179d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
54189d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
54199d794632Smrg	fi
54209d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5421c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5422c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5423c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5424c048b52eSmrgthen :
5425c048b52eSmrg  printf %s "(cached) " >&6
5426c048b52eSmrgelse $as_nop
54279d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54289d794632Smrg/* end confdefs.h.  */
54299d794632Smrgint i;
54309d794632Smrg_ACEOF
5431c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
5432c048b52eSmrgthen :
54339d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5434c048b52eSmrgelse $as_nop
54359d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
54369d794632Smrgfi
5437c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
54389d794632Smrgfi
5439c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5440c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
54419d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
54429d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
54439d794632Smrgfi
54449d794632Smrg
54459d794632Smrgfound="no"
54469d794632Smrg
54479d794632Smrg	if test $found = "no" ; then
5448e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
54499d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
54509d794632Smrg		fi
54519d794632Smrg
5452e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
54539d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
54549d794632Smrg		fi
54559d794632Smrg
54569d794632Smrg		CFLAGS="$CFLAGS -Wstrict-prototypes"
54579d794632Smrg
5458c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5459c048b52eSmrgprintf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
54609d794632Smrg		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5461c048b52eSmrg		if eval test \${$cacheid+y}
5462c048b52eSmrgthen :
5463c048b52eSmrg  printf %s "(cached) " >&6
5464c048b52eSmrgelse $as_nop
54659d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54669d794632Smrg/* end confdefs.h.  */
54679d794632Smrgint i;
54689d794632Smrgint
5469c048b52eSmrgmain (void)
54709d794632Smrg{
54719d794632Smrg
54729d794632Smrg  ;
54739d794632Smrg  return 0;
54749d794632Smrg}
54759d794632Smrg_ACEOF
5476c048b52eSmrgif ac_fn_c_try_link "$LINENO"
5477c048b52eSmrgthen :
54789d794632Smrg  eval $cacheid=yes
5479c048b52eSmrgelse $as_nop
54809d794632Smrg  eval $cacheid=no
54819d794632Smrgfi
5482c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
54839d794632Smrg    conftest$ac_exeext conftest.$ac_ext
54849d794632Smrgfi
54859d794632Smrg
54869d794632Smrg
54879d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
54889d794632Smrg
54899d794632Smrg		eval supported=\$$cacheid
5490c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5491c048b52eSmrgprintf "%s\n" "$supported" >&6; }
54929d794632Smrg		if test "$supported" = "yes" ; then
54939d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
54949d794632Smrg			found="yes"
54959d794632Smrg		fi
54969d794632Smrg	fi
54979d794632Smrg
54989d794632Smrg
54999d794632Smrg
55009d794632Smrg
55019d794632Smrg
55029d794632Smrg
55039d794632Smrg
55049d794632Smrg
55059d794632Smrg
55069d794632Smrg
55079d794632Smrg
55089d794632Smrg
55099d794632Smrg
55109d794632Smrg
55119d794632Smrg
55129d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
55139d794632Smrg
55149d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
55159d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5516c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5517c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5518c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5519c048b52eSmrgthen :
5520c048b52eSmrg  printf %s "(cached) " >&6
5521c048b52eSmrgelse $as_nop
55229d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55239d794632Smrg/* end confdefs.h.  */
55249d794632Smrgint i;
55259d794632Smrg_ACEOF
5526c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
5527c048b52eSmrgthen :
55289d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
5529c048b52eSmrgelse $as_nop
55309d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=no
55319d794632Smrgfi
5532c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
55339d794632Smrgfi
5534c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5535c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
55369d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
55379d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
55389d794632Smrgfi
55399d794632Smrg
55409d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
55419d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
55429d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
55439d794632Smrg	fi
55449d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5545c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5546c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5547c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5548c048b52eSmrgthen :
5549c048b52eSmrg  printf %s "(cached) " >&6
5550c048b52eSmrgelse $as_nop
55519d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55529d794632Smrg/* end confdefs.h.  */
55539d794632Smrgint i;
55549d794632Smrg_ACEOF
5555c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
5556c048b52eSmrgthen :
55579d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5558c048b52eSmrgelse $as_nop
55599d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
55609d794632Smrgfi
5561c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
55629d794632Smrgfi
5563c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5564c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
55659d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
55669d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
55679d794632Smrgfi
55689d794632Smrg
55699d794632Smrgfound="no"
55709d794632Smrg
55719d794632Smrg	if test $found = "no" ; then
5572e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
55739d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
55749d794632Smrg		fi
55759d794632Smrg
5576e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
55779d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
55789d794632Smrg		fi
55799d794632Smrg
55809d794632Smrg		CFLAGS="$CFLAGS -Wmissing-prototypes"
55819d794632Smrg
5582c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5583c048b52eSmrgprintf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
55849d794632Smrg		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5585c048b52eSmrg		if eval test \${$cacheid+y}
5586c048b52eSmrgthen :
5587c048b52eSmrg  printf %s "(cached) " >&6
5588c048b52eSmrgelse $as_nop
55899d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55909d794632Smrg/* end confdefs.h.  */
55919d794632Smrgint i;
55929d794632Smrgint
5593c048b52eSmrgmain (void)
55949d794632Smrg{
55959d794632Smrg
55969d794632Smrg  ;
55979d794632Smrg  return 0;
55989d794632Smrg}
55999d794632Smrg_ACEOF
5600c048b52eSmrgif ac_fn_c_try_link "$LINENO"
5601c048b52eSmrgthen :
56029d794632Smrg  eval $cacheid=yes
5603c048b52eSmrgelse $as_nop
56049d794632Smrg  eval $cacheid=no
56059d794632Smrgfi
5606c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
56079d794632Smrg    conftest$ac_exeext conftest.$ac_ext
56089d794632Smrgfi
56099d794632Smrg
56109d794632Smrg
56119d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
56129d794632Smrg
56139d794632Smrg		eval supported=\$$cacheid
5614c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5615c048b52eSmrgprintf "%s\n" "$supported" >&6; }
56169d794632Smrg		if test "$supported" = "yes" ; then
56179d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
56189d794632Smrg			found="yes"
56199d794632Smrg		fi
56209d794632Smrg	fi
56219d794632Smrg
56229d794632Smrg
56239d794632Smrg
56249d794632Smrg
56259d794632Smrg
56269d794632Smrg
56279d794632Smrg
56289d794632Smrg
56299d794632Smrg
56309d794632Smrg
56319d794632Smrg
56329d794632Smrg
56339d794632Smrg
56349d794632Smrg
56359d794632Smrg
56369d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
56379d794632Smrg
56389d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
56399d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5640c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5641c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5642c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5643c048b52eSmrgthen :
5644c048b52eSmrg  printf %s "(cached) " >&6
5645c048b52eSmrgelse $as_nop
56469d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56479d794632Smrg/* end confdefs.h.  */
56489d794632Smrgint i;
56499d794632Smrg_ACEOF
5650c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
5651c048b52eSmrgthen :
56529d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
5653c048b52eSmrgelse $as_nop
56549d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=no
56559d794632Smrgfi
5656c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
56579d794632Smrgfi
5658c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5659c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
56609d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
56619d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
56629d794632Smrgfi
56639d794632Smrg
56649d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
56659d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
56669d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
56679d794632Smrg	fi
56689d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5669c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5670c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5671c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5672c048b52eSmrgthen :
5673c048b52eSmrg  printf %s "(cached) " >&6
5674c048b52eSmrgelse $as_nop
56759d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56769d794632Smrg/* end confdefs.h.  */
56779d794632Smrgint i;
56789d794632Smrg_ACEOF
5679c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
5680c048b52eSmrgthen :
56819d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5682c048b52eSmrgelse $as_nop
56839d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
56849d794632Smrgfi
5685c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
56869d794632Smrgfi
5687c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5688c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
56899d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
56909d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
56919d794632Smrgfi
56929d794632Smrg
56939d794632Smrgfound="no"
56949d794632Smrg
56959d794632Smrg	if test $found = "no" ; then
5696e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
56979d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
56989d794632Smrg		fi
56999d794632Smrg
5700e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
57019d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
57029d794632Smrg		fi
57039d794632Smrg
57049d794632Smrg		CFLAGS="$CFLAGS -Wnested-externs"
57059d794632Smrg
5706c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5707c048b52eSmrgprintf %s "checking if $CC supports -Wnested-externs... " >&6; }
57089d794632Smrg		cacheid=xorg_cv_cc_flag__Wnested_externs
5709c048b52eSmrg		if eval test \${$cacheid+y}
5710c048b52eSmrgthen :
5711c048b52eSmrg  printf %s "(cached) " >&6
5712c048b52eSmrgelse $as_nop
57139d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57149d794632Smrg/* end confdefs.h.  */
57159d794632Smrgint i;
57169d794632Smrgint
5717c048b52eSmrgmain (void)
57189d794632Smrg{
57199d794632Smrg
57209d794632Smrg  ;
57219d794632Smrg  return 0;
57229d794632Smrg}
57239d794632Smrg_ACEOF
5724c048b52eSmrgif ac_fn_c_try_link "$LINENO"
5725c048b52eSmrgthen :
57269d794632Smrg  eval $cacheid=yes
5727c048b52eSmrgelse $as_nop
57289d794632Smrg  eval $cacheid=no
57299d794632Smrgfi
5730c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
57319d794632Smrg    conftest$ac_exeext conftest.$ac_ext
57329d794632Smrgfi
57339d794632Smrg
57349d794632Smrg
57359d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
57369d794632Smrg
57379d794632Smrg		eval supported=\$$cacheid
5738c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5739c048b52eSmrgprintf "%s\n" "$supported" >&6; }
57409d794632Smrg		if test "$supported" = "yes" ; then
57419d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
57429d794632Smrg			found="yes"
57439d794632Smrg		fi
57449d794632Smrg	fi
57459d794632Smrg
57469d794632Smrg
57479d794632Smrg
57489d794632Smrg
57499d794632Smrg
57509d794632Smrg
57519d794632Smrg
57529d794632Smrg
57539d794632Smrg
57549d794632Smrg
57559d794632Smrg
57569d794632Smrg
57579d794632Smrg
57589d794632Smrg
57599d794632Smrg
57609d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
57619d794632Smrg
57629d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
57639d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5764c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5765c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5766c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5767c048b52eSmrgthen :
5768c048b52eSmrg  printf %s "(cached) " >&6
5769c048b52eSmrgelse $as_nop
57709d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57719d794632Smrg/* end confdefs.h.  */
57729d794632Smrgint i;
57739d794632Smrg_ACEOF
5774c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
5775c048b52eSmrgthen :
57769d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
5777c048b52eSmrgelse $as_nop
57789d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=no
57799d794632Smrgfi
5780c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
57819d794632Smrgfi
5782c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5783c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
57849d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
57859d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
57869d794632Smrgfi
57879d794632Smrg
57889d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
57899d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
57909d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
57919d794632Smrg	fi
57929d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5793c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5794c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5795c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5796c048b52eSmrgthen :
5797c048b52eSmrg  printf %s "(cached) " >&6
5798c048b52eSmrgelse $as_nop
57999d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58009d794632Smrg/* end confdefs.h.  */
58019d794632Smrgint i;
58029d794632Smrg_ACEOF
5803c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
5804c048b52eSmrgthen :
58059d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5806c048b52eSmrgelse $as_nop
58079d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
58089d794632Smrgfi
5809c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
58109d794632Smrgfi
5811c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5812c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
58139d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
58149d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
58159d794632Smrgfi
58169d794632Smrg
58179d794632Smrgfound="no"
58189d794632Smrg
58199d794632Smrg	if test $found = "no" ; then
5820e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
58219d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
58229d794632Smrg		fi
58239d794632Smrg
5824e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
58259d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
58269d794632Smrg		fi
58279d794632Smrg
58289d794632Smrg		CFLAGS="$CFLAGS -Wbad-function-cast"
58299d794632Smrg
5830c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5831c048b52eSmrgprintf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
58329d794632Smrg		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5833c048b52eSmrg		if eval test \${$cacheid+y}
5834c048b52eSmrgthen :
5835c048b52eSmrg  printf %s "(cached) " >&6
5836c048b52eSmrgelse $as_nop
58379d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58389d794632Smrg/* end confdefs.h.  */
58399d794632Smrgint i;
58409d794632Smrgint
5841c048b52eSmrgmain (void)
58429d794632Smrg{
58439d794632Smrg
58449d794632Smrg  ;
58459d794632Smrg  return 0;
58469d794632Smrg}
58479d794632Smrg_ACEOF
5848c048b52eSmrgif ac_fn_c_try_link "$LINENO"
5849c048b52eSmrgthen :
58509d794632Smrg  eval $cacheid=yes
5851c048b52eSmrgelse $as_nop
58529d794632Smrg  eval $cacheid=no
58539d794632Smrgfi
5854c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
58559d794632Smrg    conftest$ac_exeext conftest.$ac_ext
58569d794632Smrgfi
58579d794632Smrg
58589d794632Smrg
58599d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
58609d794632Smrg
58619d794632Smrg		eval supported=\$$cacheid
5862c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5863c048b52eSmrgprintf "%s\n" "$supported" >&6; }
58649d794632Smrg		if test "$supported" = "yes" ; then
58659d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
58669d794632Smrg			found="yes"
58679d794632Smrg		fi
58689d794632Smrg	fi
58699d794632Smrg
58709d794632Smrg
58719d794632Smrg
58729d794632Smrg
58739d794632Smrg
58749d794632Smrg
58759d794632Smrg
58769d794632Smrg
58779d794632Smrg
58789d794632Smrg
58799d794632Smrg
58809d794632Smrg
58819d794632Smrg
58829d794632Smrg
58839d794632Smrg
58849d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
58859d794632Smrg
58869d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
58879d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5888c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5889c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5890c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5891c048b52eSmrgthen :
5892c048b52eSmrg  printf %s "(cached) " >&6
5893c048b52eSmrgelse $as_nop
58949d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58959d794632Smrg/* end confdefs.h.  */
58969d794632Smrgint i;
58979d794632Smrg_ACEOF
5898c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
5899c048b52eSmrgthen :
59009d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
5901c048b52eSmrgelse $as_nop
59029d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=no
59039d794632Smrgfi
5904c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
59059d794632Smrgfi
5906c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5907c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
59089d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
59099d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
59109d794632Smrgfi
59119d794632Smrg
59129d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
59139d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
59149d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
59159d794632Smrg	fi
59169d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5917c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5918c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5919c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5920c048b52eSmrgthen :
5921c048b52eSmrg  printf %s "(cached) " >&6
5922c048b52eSmrgelse $as_nop
59239d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59249d794632Smrg/* end confdefs.h.  */
59259d794632Smrgint i;
59269d794632Smrg_ACEOF
5927c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
5928c048b52eSmrgthen :
59299d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5930c048b52eSmrgelse $as_nop
59319d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
59329d794632Smrgfi
5933c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
59349d794632Smrgfi
5935c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5936c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
59379d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
59389d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
59399d794632Smrgfi
59409d794632Smrg
59419d794632Smrgfound="no"
59429d794632Smrg
59439d794632Smrg	if test $found = "no" ; then
5944e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
59459d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
59469d794632Smrg		fi
59479d794632Smrg
5948e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
59499d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
59509d794632Smrg		fi
59519d794632Smrg
59529d794632Smrg		CFLAGS="$CFLAGS -Wold-style-definition"
59539d794632Smrg
5954c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5955c048b52eSmrgprintf %s "checking if $CC supports -Wold-style-definition... " >&6; }
59569d794632Smrg		cacheid=xorg_cv_cc_flag__Wold_style_definition
5957c048b52eSmrg		if eval test \${$cacheid+y}
5958c048b52eSmrgthen :
5959c048b52eSmrg  printf %s "(cached) " >&6
5960c048b52eSmrgelse $as_nop
59619d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59629d794632Smrg/* end confdefs.h.  */
59639d794632Smrgint i;
59649d794632Smrgint
5965c048b52eSmrgmain (void)
59669d794632Smrg{
59679d794632Smrg
59689d794632Smrg  ;
59699d794632Smrg  return 0;
59709d794632Smrg}
59719d794632Smrg_ACEOF
5972c048b52eSmrgif ac_fn_c_try_link "$LINENO"
5973c048b52eSmrgthen :
59749d794632Smrg  eval $cacheid=yes
5975c048b52eSmrgelse $as_nop
59769d794632Smrg  eval $cacheid=no
59779d794632Smrgfi
5978c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
59799d794632Smrg    conftest$ac_exeext conftest.$ac_ext
59809d794632Smrgfi
59819d794632Smrg
59829d794632Smrg
59839d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
59849d794632Smrg
59859d794632Smrg		eval supported=\$$cacheid
5986c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5987c048b52eSmrgprintf "%s\n" "$supported" >&6; }
59889d794632Smrg		if test "$supported" = "yes" ; then
59899d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
59909d794632Smrg			found="yes"
59919d794632Smrg		fi
59929d794632Smrg	fi
59939d794632Smrg
5994e8ac26b0Smrg	if test $found = "no" ; then
5995e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5996e8ac26b0Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5997e8ac26b0Smrg		fi
5998e8ac26b0Smrg
5999e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6000e8ac26b0Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6001e8ac26b0Smrg		fi
6002e8ac26b0Smrg
6003e8ac26b0Smrg		CFLAGS="$CFLAGS -fd"
6004e8ac26b0Smrg
6005c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6006c048b52eSmrgprintf %s "checking if $CC supports -fd... " >&6; }
6007e8ac26b0Smrg		cacheid=xorg_cv_cc_flag__fd
6008c048b52eSmrg		if eval test \${$cacheid+y}
6009c048b52eSmrgthen :
6010c048b52eSmrg  printf %s "(cached) " >&6
6011c048b52eSmrgelse $as_nop
6012e8ac26b0Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6013e8ac26b0Smrg/* end confdefs.h.  */
6014e8ac26b0Smrgint i;
6015e8ac26b0Smrgint
6016c048b52eSmrgmain (void)
6017e8ac26b0Smrg{
6018e8ac26b0Smrg
6019e8ac26b0Smrg  ;
6020e8ac26b0Smrg  return 0;
6021e8ac26b0Smrg}
6022e8ac26b0Smrg_ACEOF
6023c048b52eSmrgif ac_fn_c_try_link "$LINENO"
6024c048b52eSmrgthen :
6025e8ac26b0Smrg  eval $cacheid=yes
6026c048b52eSmrgelse $as_nop
6027e8ac26b0Smrg  eval $cacheid=no
6028e8ac26b0Smrgfi
6029c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6030e8ac26b0Smrg    conftest$ac_exeext conftest.$ac_ext
6031e8ac26b0Smrgfi
6032e8ac26b0Smrg
6033e8ac26b0Smrg
6034e8ac26b0Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
6035e8ac26b0Smrg
6036e8ac26b0Smrg		eval supported=\$$cacheid
6037c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6038c048b52eSmrgprintf "%s\n" "$supported" >&6; }
6039e8ac26b0Smrg		if test "$supported" = "yes" ; then
6040e8ac26b0Smrg			BASE_CFLAGS="$BASE_CFLAGS -fd"
6041e8ac26b0Smrg			found="yes"
6042e8ac26b0Smrg		fi
6043e8ac26b0Smrg	fi
6044e8ac26b0Smrg
60459d794632Smrg
60469d794632Smrg
60479d794632Smrg
60489d794632Smrg
60499d794632Smrg
60509d794632Smrg
60519d794632Smrg
60529d794632Smrg
60539d794632Smrg
60549d794632Smrg
60559d794632Smrg
60569d794632Smrg
60579d794632Smrg
60589d794632Smrg
60599d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
60609d794632Smrg
60619d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
60629d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6063c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6064c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6065c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6066c048b52eSmrgthen :
6067c048b52eSmrg  printf %s "(cached) " >&6
6068c048b52eSmrgelse $as_nop
60699d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60709d794632Smrg/* end confdefs.h.  */
60719d794632Smrgint i;
60729d794632Smrg_ACEOF
6073c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
6074c048b52eSmrgthen :
60759d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
6076c048b52eSmrgelse $as_nop
60779d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=no
60789d794632Smrgfi
6079c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
60809d794632Smrgfi
6081c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6082c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
60839d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
60849d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
60859d794632Smrgfi
60869d794632Smrg
60879d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
60889d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
60899d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
60909d794632Smrg	fi
60919d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6092c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6093c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6094c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6095c048b52eSmrgthen :
6096c048b52eSmrg  printf %s "(cached) " >&6
6097c048b52eSmrgelse $as_nop
60989d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60999d794632Smrg/* end confdefs.h.  */
61009d794632Smrgint i;
61019d794632Smrg_ACEOF
6102c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
6103c048b52eSmrgthen :
61049d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6105c048b52eSmrgelse $as_nop
61069d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
61079d794632Smrgfi
6108c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
61099d794632Smrgfi
6110c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6111c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
61129d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
61139d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
61149d794632Smrgfi
61159d794632Smrg
61169d794632Smrgfound="no"
61179d794632Smrg
61189d794632Smrg	if test $found = "no" ; then
6119e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
61209d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
61219d794632Smrg		fi
61229d794632Smrg
6123e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
61249d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
61259d794632Smrg		fi
61269d794632Smrg
61279d794632Smrg		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
61289d794632Smrg
6129c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6130c048b52eSmrgprintf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
61319d794632Smrg		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6132c048b52eSmrg		if eval test \${$cacheid+y}
6133c048b52eSmrgthen :
6134c048b52eSmrg  printf %s "(cached) " >&6
6135c048b52eSmrgelse $as_nop
61369d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61379d794632Smrg/* end confdefs.h.  */
61389d794632Smrgint i;
61399d794632Smrgint
6140c048b52eSmrgmain (void)
61419d794632Smrg{
61429d794632Smrg
61439d794632Smrg  ;
61449d794632Smrg  return 0;
61459d794632Smrg}
61469d794632Smrg_ACEOF
6147c048b52eSmrgif ac_fn_c_try_link "$LINENO"
6148c048b52eSmrgthen :
61499d794632Smrg  eval $cacheid=yes
6150c048b52eSmrgelse $as_nop
61519d794632Smrg  eval $cacheid=no
61529d794632Smrgfi
6153c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
61549d794632Smrg    conftest$ac_exeext conftest.$ac_ext
61559d794632Smrgfi
61569d794632Smrg
61579d794632Smrg
61589d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
61599d794632Smrg
61609d794632Smrg		eval supported=\$$cacheid
6161c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6162c048b52eSmrgprintf "%s\n" "$supported" >&6; }
61639d794632Smrg		if test "$supported" = "yes" ; then
61649d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
61659d794632Smrg			found="yes"
61669d794632Smrg		fi
61679d794632Smrg	fi
61689d794632Smrg
61699d794632Smrg
61709d794632Smrg
61719d794632Smrg
61729d794632Smrg
61739d794632Smrg# This chunk adds additional warnings that could catch undesired effects.
61749d794632Smrg
61759d794632Smrg
61769d794632Smrg
61779d794632Smrg
61789d794632Smrg
61799d794632Smrg
61809d794632Smrg
61819d794632Smrg
61829d794632Smrg
61839d794632Smrg
61849d794632Smrg
61859d794632Smrg
61869d794632Smrg
61879d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
61889d794632Smrg
61899d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
61909d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6191c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6192c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6193c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6194c048b52eSmrgthen :
6195c048b52eSmrg  printf %s "(cached) " >&6
6196c048b52eSmrgelse $as_nop
61979d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61989d794632Smrg/* end confdefs.h.  */
61999d794632Smrgint i;
62009d794632Smrg_ACEOF
6201c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
6202c048b52eSmrgthen :
62039d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
6204c048b52eSmrgelse $as_nop
62059d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=no
62069d794632Smrgfi
6207c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
62089d794632Smrgfi
6209c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6210c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
62119d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
62129d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
62139d794632Smrgfi
62149d794632Smrg
62159d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
62169d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
62179d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
62189d794632Smrg	fi
62199d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6220c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6221c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6222c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6223c048b52eSmrgthen :
6224c048b52eSmrg  printf %s "(cached) " >&6
6225c048b52eSmrgelse $as_nop
62269d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62279d794632Smrg/* end confdefs.h.  */
62289d794632Smrgint i;
62299d794632Smrg_ACEOF
6230c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
6231c048b52eSmrgthen :
62329d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6233c048b52eSmrgelse $as_nop
62349d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
62359d794632Smrgfi
6236c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
62379d794632Smrgfi
6238c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6239c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
62409d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
62419d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
62429d794632Smrgfi
62439d794632Smrg
62449d794632Smrgfound="no"
62459d794632Smrg
62469d794632Smrg	if test $found = "no" ; then
6247e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
62489d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
62499d794632Smrg		fi
62509d794632Smrg
6251e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
62529d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
62539d794632Smrg		fi
62549d794632Smrg
62559d794632Smrg		CFLAGS="$CFLAGS -Wunused"
62569d794632Smrg
6257c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6258c048b52eSmrgprintf %s "checking if $CC supports -Wunused... " >&6; }
62599d794632Smrg		cacheid=xorg_cv_cc_flag__Wunused
6260c048b52eSmrg		if eval test \${$cacheid+y}
6261c048b52eSmrgthen :
6262c048b52eSmrg  printf %s "(cached) " >&6
6263c048b52eSmrgelse $as_nop
62649d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62659d794632Smrg/* end confdefs.h.  */
62669d794632Smrgint i;
62679d794632Smrgint
6268c048b52eSmrgmain (void)
62699d794632Smrg{
62709d794632Smrg
62719d794632Smrg  ;
62729d794632Smrg  return 0;
62739d794632Smrg}
62749d794632Smrg_ACEOF
6275c048b52eSmrgif ac_fn_c_try_link "$LINENO"
6276c048b52eSmrgthen :
62779d794632Smrg  eval $cacheid=yes
6278c048b52eSmrgelse $as_nop
62799d794632Smrg  eval $cacheid=no
62809d794632Smrgfi
6281c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
62829d794632Smrg    conftest$ac_exeext conftest.$ac_ext
62839d794632Smrgfi
62849d794632Smrg
62859d794632Smrg
62869d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
62879d794632Smrg
62889d794632Smrg		eval supported=\$$cacheid
6289c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6290c048b52eSmrgprintf "%s\n" "$supported" >&6; }
62919d794632Smrg		if test "$supported" = "yes" ; then
62929d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
62939d794632Smrg			found="yes"
62949d794632Smrg		fi
62959d794632Smrg	fi
62969d794632Smrg
62979d794632Smrg
62989d794632Smrg
62999d794632Smrg
63009d794632Smrg
63019d794632Smrg
63029d794632Smrg
63039d794632Smrg
63049d794632Smrg
63059d794632Smrg
63069d794632Smrg
63079d794632Smrg
63089d794632Smrg
63099d794632Smrg
63109d794632Smrg
63119d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
63129d794632Smrg
63139d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
63149d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6315c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6316c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6317c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6318c048b52eSmrgthen :
6319c048b52eSmrg  printf %s "(cached) " >&6
6320c048b52eSmrgelse $as_nop
63219d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63229d794632Smrg/* end confdefs.h.  */
63239d794632Smrgint i;
63249d794632Smrg_ACEOF
6325c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
6326c048b52eSmrgthen :
63279d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
6328c048b52eSmrgelse $as_nop
63299d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=no
63309d794632Smrgfi
6331c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
63329d794632Smrgfi
6333c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6334c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
63359d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
63369d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
63379d794632Smrgfi
63389d794632Smrg
63399d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
63409d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
63419d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
63429d794632Smrg	fi
63439d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6344c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6345c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6346c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6347c048b52eSmrgthen :
6348c048b52eSmrg  printf %s "(cached) " >&6
6349c048b52eSmrgelse $as_nop
63509d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63519d794632Smrg/* end confdefs.h.  */
63529d794632Smrgint i;
63539d794632Smrg_ACEOF
6354c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
6355c048b52eSmrgthen :
63569d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6357c048b52eSmrgelse $as_nop
63589d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
63599d794632Smrgfi
6360c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
63619d794632Smrgfi
6362c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6363c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
63649d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
63659d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
63669d794632Smrgfi
63679d794632Smrg
63689d794632Smrgfound="no"
63699d794632Smrg
63709d794632Smrg	if test $found = "no" ; then
6371e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
63729d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
63739d794632Smrg		fi
63749d794632Smrg
6375e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
63769d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
63779d794632Smrg		fi
63789d794632Smrg
63799d794632Smrg		CFLAGS="$CFLAGS -Wuninitialized"
63809d794632Smrg
6381c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6382c048b52eSmrgprintf %s "checking if $CC supports -Wuninitialized... " >&6; }
63839d794632Smrg		cacheid=xorg_cv_cc_flag__Wuninitialized
6384c048b52eSmrg		if eval test \${$cacheid+y}
6385c048b52eSmrgthen :
6386c048b52eSmrg  printf %s "(cached) " >&6
6387c048b52eSmrgelse $as_nop
63889d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63899d794632Smrg/* end confdefs.h.  */
63909d794632Smrgint i;
63919d794632Smrgint
6392c048b52eSmrgmain (void)
63939d794632Smrg{
63949d794632Smrg
63959d794632Smrg  ;
63969d794632Smrg  return 0;
63979d794632Smrg}
63989d794632Smrg_ACEOF
6399c048b52eSmrgif ac_fn_c_try_link "$LINENO"
6400c048b52eSmrgthen :
64019d794632Smrg  eval $cacheid=yes
6402c048b52eSmrgelse $as_nop
64039d794632Smrg  eval $cacheid=no
64049d794632Smrgfi
6405c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
64069d794632Smrg    conftest$ac_exeext conftest.$ac_ext
64079d794632Smrgfi
64089d794632Smrg
64099d794632Smrg
64109d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
64119d794632Smrg
64129d794632Smrg		eval supported=\$$cacheid
6413c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6414c048b52eSmrgprintf "%s\n" "$supported" >&6; }
64159d794632Smrg		if test "$supported" = "yes" ; then
64169d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
64179d794632Smrg			found="yes"
64189d794632Smrg		fi
64199d794632Smrg	fi
64209d794632Smrg
64219d794632Smrg
64229d794632Smrg
64239d794632Smrg
64249d794632Smrg
64259d794632Smrg
64269d794632Smrg
64279d794632Smrg
64289d794632Smrg
64299d794632Smrg
64309d794632Smrg
64319d794632Smrg
64329d794632Smrg
64339d794632Smrg
64349d794632Smrg
64359d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
64369d794632Smrg
64379d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
64389d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6439c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6440c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6441c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6442c048b52eSmrgthen :
6443c048b52eSmrg  printf %s "(cached) " >&6
6444c048b52eSmrgelse $as_nop
64459d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64469d794632Smrg/* end confdefs.h.  */
64479d794632Smrgint i;
64489d794632Smrg_ACEOF
6449c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
6450c048b52eSmrgthen :
64519d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
6452c048b52eSmrgelse $as_nop
64539d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=no
64549d794632Smrgfi
6455c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
64569d794632Smrgfi
6457c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6458c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
64599d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
64609d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
64619d794632Smrgfi
64629d794632Smrg
64639d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
64649d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
64659d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
64669d794632Smrg	fi
64679d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6468c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6469c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6470c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6471c048b52eSmrgthen :
6472c048b52eSmrg  printf %s "(cached) " >&6
6473c048b52eSmrgelse $as_nop
64749d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64759d794632Smrg/* end confdefs.h.  */
64769d794632Smrgint i;
64779d794632Smrg_ACEOF
6478c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
6479c048b52eSmrgthen :
64809d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6481c048b52eSmrgelse $as_nop
64829d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
64839d794632Smrgfi
6484c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
64859d794632Smrgfi
6486c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6487c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
64889d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
64899d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
64909d794632Smrgfi
64919d794632Smrg
64929d794632Smrgfound="no"
64939d794632Smrg
64949d794632Smrg	if test $found = "no" ; then
6495e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
64969d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
64979d794632Smrg		fi
64989d794632Smrg
6499e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
65009d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
65019d794632Smrg		fi
65029d794632Smrg
65039d794632Smrg		CFLAGS="$CFLAGS -Wshadow"
65049d794632Smrg
6505c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6506c048b52eSmrgprintf %s "checking if $CC supports -Wshadow... " >&6; }
65079d794632Smrg		cacheid=xorg_cv_cc_flag__Wshadow
6508c048b52eSmrg		if eval test \${$cacheid+y}
6509c048b52eSmrgthen :
6510c048b52eSmrg  printf %s "(cached) " >&6
6511c048b52eSmrgelse $as_nop
65129d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65139d794632Smrg/* end confdefs.h.  */
65149d794632Smrgint i;
65159d794632Smrgint
6516c048b52eSmrgmain (void)
65179d794632Smrg{
65189d794632Smrg
65199d794632Smrg  ;
65209d794632Smrg  return 0;
65219d794632Smrg}
65229d794632Smrg_ACEOF
6523c048b52eSmrgif ac_fn_c_try_link "$LINENO"
6524c048b52eSmrgthen :
65259d794632Smrg  eval $cacheid=yes
6526c048b52eSmrgelse $as_nop
65279d794632Smrg  eval $cacheid=no
65289d794632Smrgfi
6529c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
65309d794632Smrg    conftest$ac_exeext conftest.$ac_ext
65319d794632Smrgfi
65329d794632Smrg
65339d794632Smrg
65349d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
65359d794632Smrg
65369d794632Smrg		eval supported=\$$cacheid
6537c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6538c048b52eSmrgprintf "%s\n" "$supported" >&6; }
65399d794632Smrg		if test "$supported" = "yes" ; then
65409d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
65419d794632Smrg			found="yes"
65429d794632Smrg		fi
65439d794632Smrg	fi
65449d794632Smrg
65459d794632Smrg
65469d794632Smrg
65479d794632Smrg
65489d794632Smrg
65499d794632Smrg
65509d794632Smrg
65519d794632Smrg
65529d794632Smrg
65539d794632Smrg
65549d794632Smrg
65559d794632Smrg
65569d794632Smrg
65579d794632Smrg
65589d794632Smrg
65599d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
65609d794632Smrg
65619d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
65629d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6563c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6564c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6565c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6566c048b52eSmrgthen :
6567c048b52eSmrg  printf %s "(cached) " >&6
6568c048b52eSmrgelse $as_nop
65699d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65709d794632Smrg/* end confdefs.h.  */
65719d794632Smrgint i;
65729d794632Smrg_ACEOF
6573c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
6574c048b52eSmrgthen :
65759d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
6576c048b52eSmrgelse $as_nop
65779d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=no
65789d794632Smrgfi
6579c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
65809d794632Smrgfi
6581c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6582c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
65839d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
65849d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
65859d794632Smrgfi
65869d794632Smrg
65879d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
65889d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
65899d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
65909d794632Smrg	fi
65919d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6592c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6593c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6594c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6595c048b52eSmrgthen :
6596c048b52eSmrg  printf %s "(cached) " >&6
6597c048b52eSmrgelse $as_nop
65989d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65999d794632Smrg/* end confdefs.h.  */
66009d794632Smrgint i;
66019d794632Smrg_ACEOF
6602c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
6603c048b52eSmrgthen :
66049d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6605c048b52eSmrgelse $as_nop
66069d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
66079d794632Smrgfi
6608c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
66099d794632Smrgfi
6610c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6611c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
66129d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
66139d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
66149d794632Smrgfi
66159d794632Smrg
66169d794632Smrgfound="no"
66179d794632Smrg
66189d794632Smrg	if test $found = "no" ; then
6619e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
66209d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
66219d794632Smrg		fi
66229d794632Smrg
6623e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
66249d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
66259d794632Smrg		fi
66269d794632Smrg
6627e8ac26b0Smrg		CFLAGS="$CFLAGS -Wmissing-noreturn"
66289d794632Smrg
6629c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6630c048b52eSmrgprintf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6631e8ac26b0Smrg		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6632c048b52eSmrg		if eval test \${$cacheid+y}
6633c048b52eSmrgthen :
6634c048b52eSmrg  printf %s "(cached) " >&6
6635c048b52eSmrgelse $as_nop
66369d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66379d794632Smrg/* end confdefs.h.  */
66389d794632Smrgint i;
66399d794632Smrgint
6640c048b52eSmrgmain (void)
66419d794632Smrg{
66429d794632Smrg
66439d794632Smrg  ;
66449d794632Smrg  return 0;
66459d794632Smrg}
66469d794632Smrg_ACEOF
6647c048b52eSmrgif ac_fn_c_try_link "$LINENO"
6648c048b52eSmrgthen :
66499d794632Smrg  eval $cacheid=yes
6650c048b52eSmrgelse $as_nop
66519d794632Smrg  eval $cacheid=no
66529d794632Smrgfi
6653c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
66549d794632Smrg    conftest$ac_exeext conftest.$ac_ext
66559d794632Smrgfi
66569d794632Smrg
66579d794632Smrg
66589d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
66599d794632Smrg
66609d794632Smrg		eval supported=\$$cacheid
6661c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6662c048b52eSmrgprintf "%s\n" "$supported" >&6; }
66639d794632Smrg		if test "$supported" = "yes" ; then
6664e8ac26b0Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
66659d794632Smrg			found="yes"
66669d794632Smrg		fi
66679d794632Smrg	fi
66689d794632Smrg
66699d794632Smrg
66709d794632Smrg
66719d794632Smrg
66729d794632Smrg
66739d794632Smrg
66749d794632Smrg
66759d794632Smrg
66769d794632Smrg
66779d794632Smrg
66789d794632Smrg
66799d794632Smrg
66809d794632Smrg
66819d794632Smrg
66829d794632Smrg
66839d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
66849d794632Smrg
66859d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
66869d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6687c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6688c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6689c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6690c048b52eSmrgthen :
6691c048b52eSmrg  printf %s "(cached) " >&6
6692c048b52eSmrgelse $as_nop
66939d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66949d794632Smrg/* end confdefs.h.  */
66959d794632Smrgint i;
66969d794632Smrg_ACEOF
6697c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
6698c048b52eSmrgthen :
66999d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
6700c048b52eSmrgelse $as_nop
67019d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=no
67029d794632Smrgfi
6703c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
67049d794632Smrgfi
6705c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6706c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
67079d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
67089d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
67099d794632Smrgfi
67109d794632Smrg
67119d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
67129d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
67139d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
67149d794632Smrg	fi
67159d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6716c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6717c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6718c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6719c048b52eSmrgthen :
6720c048b52eSmrg  printf %s "(cached) " >&6
6721c048b52eSmrgelse $as_nop
67229d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67239d794632Smrg/* end confdefs.h.  */
67249d794632Smrgint i;
67259d794632Smrg_ACEOF
6726c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
6727c048b52eSmrgthen :
67289d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6729c048b52eSmrgelse $as_nop
67309d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
67319d794632Smrgfi
6732c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
67339d794632Smrgfi
6734c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6735c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
67369d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
67379d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
67389d794632Smrgfi
67399d794632Smrg
67409d794632Smrgfound="no"
67419d794632Smrg
67429d794632Smrg	if test $found = "no" ; then
6743e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
67449d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
67459d794632Smrg		fi
67469d794632Smrg
6747e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
67489d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
67499d794632Smrg		fi
67509d794632Smrg
6751e8ac26b0Smrg		CFLAGS="$CFLAGS -Wmissing-format-attribute"
67529d794632Smrg
6753c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6754c048b52eSmrgprintf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6755e8ac26b0Smrg		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6756c048b52eSmrg		if eval test \${$cacheid+y}
6757c048b52eSmrgthen :
6758c048b52eSmrg  printf %s "(cached) " >&6
6759c048b52eSmrgelse $as_nop
67609d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67619d794632Smrg/* end confdefs.h.  */
67629d794632Smrgint i;
67639d794632Smrgint
6764c048b52eSmrgmain (void)
67659d794632Smrg{
67669d794632Smrg
67679d794632Smrg  ;
67689d794632Smrg  return 0;
67699d794632Smrg}
67709d794632Smrg_ACEOF
6771c048b52eSmrgif ac_fn_c_try_link "$LINENO"
6772c048b52eSmrgthen :
67739d794632Smrg  eval $cacheid=yes
6774c048b52eSmrgelse $as_nop
67759d794632Smrg  eval $cacheid=no
67769d794632Smrgfi
6777c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
67789d794632Smrg    conftest$ac_exeext conftest.$ac_ext
67799d794632Smrgfi
67809d794632Smrg
67819d794632Smrg
67829d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
67839d794632Smrg
67849d794632Smrg		eval supported=\$$cacheid
6785c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6786c048b52eSmrgprintf "%s\n" "$supported" >&6; }
67879d794632Smrg		if test "$supported" = "yes" ; then
6788e8ac26b0Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
67899d794632Smrg			found="yes"
67909d794632Smrg		fi
67919d794632Smrg	fi
67929d794632Smrg
67939d794632Smrg
67949d794632Smrg
67959d794632Smrg
67969d794632Smrg
67979d794632Smrg
67989d794632Smrg
67999d794632Smrg
68009d794632Smrg
68019d794632Smrg
68029d794632Smrg
68039d794632Smrg
68049d794632Smrg
68059d794632Smrg
68069d794632Smrg
68079d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
68089d794632Smrg
68099d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
68109d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6811c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6812c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6813c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6814c048b52eSmrgthen :
6815c048b52eSmrg  printf %s "(cached) " >&6
6816c048b52eSmrgelse $as_nop
68179d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68189d794632Smrg/* end confdefs.h.  */
68199d794632Smrgint i;
68209d794632Smrg_ACEOF
6821c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
6822c048b52eSmrgthen :
68239d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
6824c048b52eSmrgelse $as_nop
68259d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=no
68269d794632Smrgfi
6827c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
68289d794632Smrgfi
6829c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6830c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
68319d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
68329d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
68339d794632Smrgfi
68349d794632Smrg
68359d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
68369d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
68379d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
68389d794632Smrg	fi
68399d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6840c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6841c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6842c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6843c048b52eSmrgthen :
6844c048b52eSmrg  printf %s "(cached) " >&6
6845c048b52eSmrgelse $as_nop
68469d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68479d794632Smrg/* end confdefs.h.  */
68489d794632Smrgint i;
68499d794632Smrg_ACEOF
6850c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
6851c048b52eSmrgthen :
68529d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6853c048b52eSmrgelse $as_nop
68549d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
68559d794632Smrgfi
6856c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
68579d794632Smrgfi
6858c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6859c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
68609d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
68619d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
68629d794632Smrgfi
68639d794632Smrg
68649d794632Smrgfound="no"
68659d794632Smrg
68669d794632Smrg	if test $found = "no" ; then
6867e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
68689d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
68699d794632Smrg		fi
68709d794632Smrg
6871e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
68729d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
68739d794632Smrg		fi
68749d794632Smrg
6875e8ac26b0Smrg		CFLAGS="$CFLAGS -Wredundant-decls"
68769d794632Smrg
6877c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6878c048b52eSmrgprintf %s "checking if $CC supports -Wredundant-decls... " >&6; }
6879e8ac26b0Smrg		cacheid=xorg_cv_cc_flag__Wredundant_decls
6880c048b52eSmrg		if eval test \${$cacheid+y}
6881c048b52eSmrgthen :
6882c048b52eSmrg  printf %s "(cached) " >&6
6883c048b52eSmrgelse $as_nop
68849d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68859d794632Smrg/* end confdefs.h.  */
68869d794632Smrgint i;
68879d794632Smrgint
6888c048b52eSmrgmain (void)
68899d794632Smrg{
68909d794632Smrg
68919d794632Smrg  ;
68929d794632Smrg  return 0;
68939d794632Smrg}
68949d794632Smrg_ACEOF
6895c048b52eSmrgif ac_fn_c_try_link "$LINENO"
6896c048b52eSmrgthen :
68979d794632Smrg  eval $cacheid=yes
6898c048b52eSmrgelse $as_nop
68999d794632Smrg  eval $cacheid=no
69009d794632Smrgfi
6901c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
69029d794632Smrg    conftest$ac_exeext conftest.$ac_ext
69039d794632Smrgfi
69049d794632Smrg
69059d794632Smrg
69069d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
69079d794632Smrg
69089d794632Smrg		eval supported=\$$cacheid
6909c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6910c048b52eSmrgprintf "%s\n" "$supported" >&6; }
69119d794632Smrg		if test "$supported" = "yes" ; then
6912e8ac26b0Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
69139d794632Smrg			found="yes"
69149d794632Smrg		fi
69159d794632Smrg	fi
69169d794632Smrg
69179d794632Smrg
69189d794632Smrg
69199d794632Smrg
69209d794632Smrg
69219d794632Smrg
69229d794632Smrg
69239d794632Smrg
69249d794632Smrg
69259d794632Smrg
69269d794632Smrg
69279d794632Smrg
69289d794632Smrg
69299d794632Smrg
69309d794632Smrg
69319d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
69329d794632Smrg
69339d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
69349d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6935c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6936c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6937c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6938c048b52eSmrgthen :
6939c048b52eSmrg  printf %s "(cached) " >&6
6940c048b52eSmrgelse $as_nop
69419d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69429d794632Smrg/* end confdefs.h.  */
69439d794632Smrgint i;
69449d794632Smrg_ACEOF
6945c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
6946c048b52eSmrgthen :
69479d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
6948c048b52eSmrgelse $as_nop
69499d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=no
69509d794632Smrgfi
6951c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
69529d794632Smrgfi
6953c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6954c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
69559d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
69569d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
69579d794632Smrgfi
69589d794632Smrg
69599d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
69609d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
69619d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
69629d794632Smrg	fi
69639d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6964c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6965c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6966c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6967c048b52eSmrgthen :
6968c048b52eSmrg  printf %s "(cached) " >&6
6969c048b52eSmrgelse $as_nop
69709d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69719d794632Smrg/* end confdefs.h.  */
69729d794632Smrgint i;
69739d794632Smrg_ACEOF
6974c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
6975c048b52eSmrgthen :
69769d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6977c048b52eSmrgelse $as_nop
69789d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
69799d794632Smrgfi
6980c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
69819d794632Smrgfi
6982c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6983c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
69849d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
69859d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
69869d794632Smrgfi
69879d794632Smrg
69889d794632Smrgfound="no"
69899d794632Smrg
69909d794632Smrg	if test $found = "no" ; then
6991e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
69929d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
69939d794632Smrg		fi
69949d794632Smrg
6995e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
69969d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
69979d794632Smrg		fi
69989d794632Smrg
6999e8ac26b0Smrg		CFLAGS="$CFLAGS -Wlogical-op"
70009d794632Smrg
7001c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7002c048b52eSmrgprintf %s "checking if $CC supports -Wlogical-op... " >&6; }
7003e8ac26b0Smrg		cacheid=xorg_cv_cc_flag__Wlogical_op
7004c048b52eSmrg		if eval test \${$cacheid+y}
7005c048b52eSmrgthen :
7006c048b52eSmrg  printf %s "(cached) " >&6
7007c048b52eSmrgelse $as_nop
70089d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
70099d794632Smrg/* end confdefs.h.  */
70109d794632Smrgint i;
70119d794632Smrgint
7012c048b52eSmrgmain (void)
70139d794632Smrg{
70149d794632Smrg
70159d794632Smrg  ;
70169d794632Smrg  return 0;
70179d794632Smrg}
70189d794632Smrg_ACEOF
7019c048b52eSmrgif ac_fn_c_try_link "$LINENO"
7020c048b52eSmrgthen :
70219d794632Smrg  eval $cacheid=yes
7022c048b52eSmrgelse $as_nop
70239d794632Smrg  eval $cacheid=no
70249d794632Smrgfi
7025c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
70269d794632Smrg    conftest$ac_exeext conftest.$ac_ext
70279d794632Smrgfi
70289d794632Smrg
70299d794632Smrg
70309d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
70319d794632Smrg
70329d794632Smrg		eval supported=\$$cacheid
7033c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7034c048b52eSmrgprintf "%s\n" "$supported" >&6; }
70359d794632Smrg		if test "$supported" = "yes" ; then
7036e8ac26b0Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
70379d794632Smrg			found="yes"
70389d794632Smrg		fi
70399d794632Smrg	fi
70409d794632Smrg
70419d794632Smrg
70429d794632Smrg
70439d794632Smrg# These are currently disabled because they are noisy.  They will be enabled
70449d794632Smrg# in the future once the codebase is sufficiently modernized to silence
70459d794632Smrg# them.  For now, I don't want them to drown out the other warnings.
70469d794632Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
70479d794632Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7048e8ac26b0Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
70499d794632Smrg
70509d794632Smrg# Turn some warnings into errors, so we don't accidently get successful builds
70519d794632Smrg# when there are problems that should be fixed.
70529d794632Smrg
70539d794632Smrgif test "x$SELECTIVE_WERROR" = "xyes" ; then
70549d794632Smrg
70559d794632Smrg
70569d794632Smrg
70579d794632Smrg
70589d794632Smrg
70599d794632Smrg
70609d794632Smrg
70619d794632Smrg
70629d794632Smrg
70639d794632Smrg
70649d794632Smrg
70659d794632Smrg
70669d794632Smrg
70679d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
70689d794632Smrg
70699d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
70709d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7071c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7072c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7073c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7074c048b52eSmrgthen :
7075c048b52eSmrg  printf %s "(cached) " >&6
7076c048b52eSmrgelse $as_nop
70779d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
70789d794632Smrg/* end confdefs.h.  */
70799d794632Smrgint i;
70809d794632Smrg_ACEOF
7081c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
7082c048b52eSmrgthen :
70839d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
7084c048b52eSmrgelse $as_nop
70859d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=no
70869d794632Smrgfi
7087c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
70889d794632Smrgfi
7089c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7090c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
70919d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
70929d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
70939d794632Smrgfi
70949d794632Smrg
70959d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
70969d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
70979d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
70989d794632Smrg	fi
70999d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7100c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7101c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7102c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7103c048b52eSmrgthen :
7104c048b52eSmrg  printf %s "(cached) " >&6
7105c048b52eSmrgelse $as_nop
71069d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71079d794632Smrg/* end confdefs.h.  */
71089d794632Smrgint i;
71099d794632Smrg_ACEOF
7110c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
7111c048b52eSmrgthen :
71129d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7113c048b52eSmrgelse $as_nop
71149d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
71159d794632Smrgfi
7116c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
71179d794632Smrgfi
7118c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7119c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
71209d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
71219d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
71229d794632Smrgfi
71239d794632Smrg
71249d794632Smrgfound="no"
71259d794632Smrg
71269d794632Smrg	if test $found = "no" ; then
7127e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
71289d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
71299d794632Smrg		fi
71309d794632Smrg
7131e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
71329d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
71339d794632Smrg		fi
71349d794632Smrg
71359d794632Smrg		CFLAGS="$CFLAGS -Werror=implicit"
71369d794632Smrg
7137c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7138c048b52eSmrgprintf %s "checking if $CC supports -Werror=implicit... " >&6; }
7139e8ac26b0Smrg		cacheid=xorg_cv_cc_flag__Werror_implicit
7140c048b52eSmrg		if eval test \${$cacheid+y}
7141c048b52eSmrgthen :
7142c048b52eSmrg  printf %s "(cached) " >&6
7143c048b52eSmrgelse $as_nop
71449d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71459d794632Smrg/* end confdefs.h.  */
71469d794632Smrgint i;
71479d794632Smrgint
7148c048b52eSmrgmain (void)
71499d794632Smrg{
71509d794632Smrg
71519d794632Smrg  ;
71529d794632Smrg  return 0;
71539d794632Smrg}
71549d794632Smrg_ACEOF
7155c048b52eSmrgif ac_fn_c_try_link "$LINENO"
7156c048b52eSmrgthen :
71579d794632Smrg  eval $cacheid=yes
7158c048b52eSmrgelse $as_nop
71599d794632Smrg  eval $cacheid=no
71609d794632Smrgfi
7161c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
71629d794632Smrg    conftest$ac_exeext conftest.$ac_ext
71639d794632Smrgfi
71649d794632Smrg
71659d794632Smrg
71669d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
71679d794632Smrg
71689d794632Smrg		eval supported=\$$cacheid
7169c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7170c048b52eSmrgprintf "%s\n" "$supported" >&6; }
71719d794632Smrg		if test "$supported" = "yes" ; then
71729d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
71739d794632Smrg			found="yes"
71749d794632Smrg		fi
71759d794632Smrg	fi
71769d794632Smrg
71779d794632Smrg	if test $found = "no" ; then
7178e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
71799d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
71809d794632Smrg		fi
71819d794632Smrg
7182e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
71839d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
71849d794632Smrg		fi
71859d794632Smrg
71869d794632Smrg		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
71879d794632Smrg
7188c048b52eSmrg		{ 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
7189c048b52eSmrgprintf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7190e8ac26b0Smrg		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7191c048b52eSmrg		if eval test \${$cacheid+y}
7192c048b52eSmrgthen :
7193c048b52eSmrg  printf %s "(cached) " >&6
7194c048b52eSmrgelse $as_nop
71959d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71969d794632Smrg/* end confdefs.h.  */
71979d794632Smrgint i;
71989d794632Smrgint
7199c048b52eSmrgmain (void)
72009d794632Smrg{
72019d794632Smrg
72029d794632Smrg  ;
72039d794632Smrg  return 0;
72049d794632Smrg}
72059d794632Smrg_ACEOF
7206c048b52eSmrgif ac_fn_c_try_link "$LINENO"
7207c048b52eSmrgthen :
72089d794632Smrg  eval $cacheid=yes
7209c048b52eSmrgelse $as_nop
72109d794632Smrg  eval $cacheid=no
72119d794632Smrgfi
7212c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
72139d794632Smrg    conftest$ac_exeext conftest.$ac_ext
72149d794632Smrgfi
72159d794632Smrg
72169d794632Smrg
72179d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
72189d794632Smrg
72199d794632Smrg		eval supported=\$$cacheid
7220c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7221c048b52eSmrgprintf "%s\n" "$supported" >&6; }
72229d794632Smrg		if test "$supported" = "yes" ; then
72239d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
72249d794632Smrg			found="yes"
72259d794632Smrg		fi
72269d794632Smrg	fi
72279d794632Smrg
72289d794632Smrg
72299d794632Smrg
72309d794632Smrg
72319d794632Smrg
72329d794632Smrg
72339d794632Smrg
72349d794632Smrg
72359d794632Smrg
72369d794632Smrg
72379d794632Smrg
72389d794632Smrg
72399d794632Smrg
72409d794632Smrg
72419d794632Smrg
72429d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
72439d794632Smrg
72449d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
72459d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7246c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7247c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7248c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7249c048b52eSmrgthen :
7250c048b52eSmrg  printf %s "(cached) " >&6
7251c048b52eSmrgelse $as_nop
72529d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
72539d794632Smrg/* end confdefs.h.  */
72549d794632Smrgint i;
72559d794632Smrg_ACEOF
7256c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
7257c048b52eSmrgthen :
72589d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
7259c048b52eSmrgelse $as_nop
72609d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=no
72619d794632Smrgfi
7262c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
72639d794632Smrgfi
7264c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7265c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
72669d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
72679d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
72689d794632Smrgfi
72699d794632Smrg
72709d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
72719d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
72729d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
72739d794632Smrg	fi
72749d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7275c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7276c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7277c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7278c048b52eSmrgthen :
7279c048b52eSmrg  printf %s "(cached) " >&6
7280c048b52eSmrgelse $as_nop
72819d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
72829d794632Smrg/* end confdefs.h.  */
72839d794632Smrgint i;
72849d794632Smrg_ACEOF
7285c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
7286c048b52eSmrgthen :
72879d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7288c048b52eSmrgelse $as_nop
72899d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
72909d794632Smrgfi
7291c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
72929d794632Smrgfi
7293c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7294c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
72959d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
72969d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
72979d794632Smrgfi
72989d794632Smrg
72999d794632Smrgfound="no"
73009d794632Smrg
73019d794632Smrg	if test $found = "no" ; then
7302e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
73039d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
73049d794632Smrg		fi
73059d794632Smrg
7306e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
73079d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
73089d794632Smrg		fi
73099d794632Smrg
73109d794632Smrg		CFLAGS="$CFLAGS -Werror=nonnull"
73119d794632Smrg
7312c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7313c048b52eSmrgprintf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7314e8ac26b0Smrg		cacheid=xorg_cv_cc_flag__Werror_nonnull
7315c048b52eSmrg		if eval test \${$cacheid+y}
7316c048b52eSmrgthen :
7317c048b52eSmrg  printf %s "(cached) " >&6
7318c048b52eSmrgelse $as_nop
73199d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
73209d794632Smrg/* end confdefs.h.  */
73219d794632Smrgint i;
73229d794632Smrgint
7323c048b52eSmrgmain (void)
73249d794632Smrg{
73259d794632Smrg
73269d794632Smrg  ;
73279d794632Smrg  return 0;
73289d794632Smrg}
73299d794632Smrg_ACEOF
7330c048b52eSmrgif ac_fn_c_try_link "$LINENO"
7331c048b52eSmrgthen :
73329d794632Smrg  eval $cacheid=yes
7333c048b52eSmrgelse $as_nop
73349d794632Smrg  eval $cacheid=no
73359d794632Smrgfi
7336c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
73379d794632Smrg    conftest$ac_exeext conftest.$ac_ext
73389d794632Smrgfi
73399d794632Smrg
73409d794632Smrg
73419d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
73429d794632Smrg
73439d794632Smrg		eval supported=\$$cacheid
7344c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7345c048b52eSmrgprintf "%s\n" "$supported" >&6; }
73469d794632Smrg		if test "$supported" = "yes" ; then
73479d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
73489d794632Smrg			found="yes"
73499d794632Smrg		fi
73509d794632Smrg	fi
73519d794632Smrg
73529d794632Smrg
73539d794632Smrg
73549d794632Smrg
73559d794632Smrg
73569d794632Smrg
73579d794632Smrg
73589d794632Smrg
73599d794632Smrg
73609d794632Smrg
73619d794632Smrg
73629d794632Smrg
73639d794632Smrg
73649d794632Smrg
73659d794632Smrg
73669d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
73679d794632Smrg
73689d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
73699d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7370c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7371c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7372c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7373c048b52eSmrgthen :
7374c048b52eSmrg  printf %s "(cached) " >&6
7375c048b52eSmrgelse $as_nop
73769d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
73779d794632Smrg/* end confdefs.h.  */
73789d794632Smrgint i;
73799d794632Smrg_ACEOF
7380c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
7381c048b52eSmrgthen :
73829d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
7383c048b52eSmrgelse $as_nop
73849d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=no
73859d794632Smrgfi
7386c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
73879d794632Smrgfi
7388c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7389c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
73909d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
73919d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
73929d794632Smrgfi
73939d794632Smrg
73949d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
73959d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
73969d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
73979d794632Smrg	fi
73989d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7399c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7400c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7401c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7402c048b52eSmrgthen :
7403c048b52eSmrg  printf %s "(cached) " >&6
7404c048b52eSmrgelse $as_nop
74059d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
74069d794632Smrg/* end confdefs.h.  */
74079d794632Smrgint i;
74089d794632Smrg_ACEOF
7409c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
7410c048b52eSmrgthen :
74119d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7412c048b52eSmrgelse $as_nop
74139d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
74149d794632Smrgfi
7415c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
74169d794632Smrgfi
7417c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7418c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
74199d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
74209d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
74219d794632Smrgfi
74229d794632Smrg
74239d794632Smrgfound="no"
74249d794632Smrg
74259d794632Smrg	if test $found = "no" ; then
7426e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
74279d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
74289d794632Smrg		fi
74299d794632Smrg
7430e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
74319d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
74329d794632Smrg		fi
74339d794632Smrg
74349d794632Smrg		CFLAGS="$CFLAGS -Werror=init-self"
74359d794632Smrg
7436c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7437c048b52eSmrgprintf %s "checking if $CC supports -Werror=init-self... " >&6; }
7438e8ac26b0Smrg		cacheid=xorg_cv_cc_flag__Werror_init_self
7439c048b52eSmrg		if eval test \${$cacheid+y}
7440c048b52eSmrgthen :
7441c048b52eSmrg  printf %s "(cached) " >&6
7442c048b52eSmrgelse $as_nop
74439d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
74449d794632Smrg/* end confdefs.h.  */
74459d794632Smrgint i;
74469d794632Smrgint
7447c048b52eSmrgmain (void)
74489d794632Smrg{
74499d794632Smrg
74509d794632Smrg  ;
74519d794632Smrg  return 0;
74529d794632Smrg}
74539d794632Smrg_ACEOF
7454c048b52eSmrgif ac_fn_c_try_link "$LINENO"
7455c048b52eSmrgthen :
74569d794632Smrg  eval $cacheid=yes
7457c048b52eSmrgelse $as_nop
74589d794632Smrg  eval $cacheid=no
74599d794632Smrgfi
7460c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
74619d794632Smrg    conftest$ac_exeext conftest.$ac_ext
74629d794632Smrgfi
74639d794632Smrg
74649d794632Smrg
74659d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
74669d794632Smrg
74679d794632Smrg		eval supported=\$$cacheid
7468c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7469c048b52eSmrgprintf "%s\n" "$supported" >&6; }
74709d794632Smrg		if test "$supported" = "yes" ; then
74719d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
74729d794632Smrg			found="yes"
74739d794632Smrg		fi
74749d794632Smrg	fi
74759d794632Smrg
74769d794632Smrg
74779d794632Smrg
74789d794632Smrg
74799d794632Smrg
74809d794632Smrg
74819d794632Smrg
74829d794632Smrg
74839d794632Smrg
74849d794632Smrg
74859d794632Smrg
74869d794632Smrg
74879d794632Smrg
74889d794632Smrg
74899d794632Smrg
74909d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
74919d794632Smrg
74929d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
74939d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7494c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7495c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7496c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7497c048b52eSmrgthen :
7498c048b52eSmrg  printf %s "(cached) " >&6
7499c048b52eSmrgelse $as_nop
75009d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
75019d794632Smrg/* end confdefs.h.  */
75029d794632Smrgint i;
75039d794632Smrg_ACEOF
7504c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
7505c048b52eSmrgthen :
75069d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
7507c048b52eSmrgelse $as_nop
75089d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=no
75099d794632Smrgfi
7510c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
75119d794632Smrgfi
7512c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7513c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
75149d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
75159d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
75169d794632Smrgfi
75179d794632Smrg
75189d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
75199d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
75209d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
75219d794632Smrg	fi
75229d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7523c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7524c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7525c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7526c048b52eSmrgthen :
7527c048b52eSmrg  printf %s "(cached) " >&6
7528c048b52eSmrgelse $as_nop
75299d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
75309d794632Smrg/* end confdefs.h.  */
75319d794632Smrgint i;
75329d794632Smrg_ACEOF
7533c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
7534c048b52eSmrgthen :
75359d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7536c048b52eSmrgelse $as_nop
75379d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
75389d794632Smrgfi
7539c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
75409d794632Smrgfi
7541c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7542c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
75439d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
75449d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
75459d794632Smrgfi
75469d794632Smrg
75479d794632Smrgfound="no"
75489d794632Smrg
75499d794632Smrg	if test $found = "no" ; then
7550e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
75519d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
75529d794632Smrg		fi
75539d794632Smrg
7554e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
75559d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
75569d794632Smrg		fi
75579d794632Smrg
75589d794632Smrg		CFLAGS="$CFLAGS -Werror=main"
75599d794632Smrg
7560c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7561c048b52eSmrgprintf %s "checking if $CC supports -Werror=main... " >&6; }
7562e8ac26b0Smrg		cacheid=xorg_cv_cc_flag__Werror_main
7563c048b52eSmrg		if eval test \${$cacheid+y}
7564c048b52eSmrgthen :
7565c048b52eSmrg  printf %s "(cached) " >&6
7566c048b52eSmrgelse $as_nop
75679d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
75689d794632Smrg/* end confdefs.h.  */
75699d794632Smrgint i;
75709d794632Smrgint
7571c048b52eSmrgmain (void)
75729d794632Smrg{
75739d794632Smrg
75749d794632Smrg  ;
75759d794632Smrg  return 0;
75769d794632Smrg}
75779d794632Smrg_ACEOF
7578c048b52eSmrgif ac_fn_c_try_link "$LINENO"
7579c048b52eSmrgthen :
75809d794632Smrg  eval $cacheid=yes
7581c048b52eSmrgelse $as_nop
75829d794632Smrg  eval $cacheid=no
75839d794632Smrgfi
7584c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
75859d794632Smrg    conftest$ac_exeext conftest.$ac_ext
75869d794632Smrgfi
75879d794632Smrg
75889d794632Smrg
75899d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
75909d794632Smrg
75919d794632Smrg		eval supported=\$$cacheid
7592c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7593c048b52eSmrgprintf "%s\n" "$supported" >&6; }
75949d794632Smrg		if test "$supported" = "yes" ; then
75959d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
75969d794632Smrg			found="yes"
75979d794632Smrg		fi
75989d794632Smrg	fi
75999d794632Smrg
76009d794632Smrg
76019d794632Smrg
76029d794632Smrg
76039d794632Smrg
76049d794632Smrg
76059d794632Smrg
76069d794632Smrg
76079d794632Smrg
76089d794632Smrg
76099d794632Smrg
76109d794632Smrg
76119d794632Smrg
76129d794632Smrg
76139d794632Smrg
76149d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
76159d794632Smrg
76169d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
76179d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7618c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7619c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7620c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7621c048b52eSmrgthen :
7622c048b52eSmrg  printf %s "(cached) " >&6
7623c048b52eSmrgelse $as_nop
76249d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
76259d794632Smrg/* end confdefs.h.  */
76269d794632Smrgint i;
76279d794632Smrg_ACEOF
7628c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
7629c048b52eSmrgthen :
76309d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
7631c048b52eSmrgelse $as_nop
76329d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=no
76339d794632Smrgfi
7634c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
76359d794632Smrgfi
7636c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7637c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
76389d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
76399d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
76409d794632Smrgfi
76419d794632Smrg
76429d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
76439d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
76449d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
76459d794632Smrg	fi
76469d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7647c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7648c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7649c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7650c048b52eSmrgthen :
7651c048b52eSmrg  printf %s "(cached) " >&6
7652c048b52eSmrgelse $as_nop
76539d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
76549d794632Smrg/* end confdefs.h.  */
76559d794632Smrgint i;
76569d794632Smrg_ACEOF
7657c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
7658c048b52eSmrgthen :
76599d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7660c048b52eSmrgelse $as_nop
76619d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
76629d794632Smrgfi
7663c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
76649d794632Smrgfi
7665c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7666c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
76679d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
76689d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
76699d794632Smrgfi
76709d794632Smrg
76719d794632Smrgfound="no"
76729d794632Smrg
76739d794632Smrg	if test $found = "no" ; then
7674e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
76759d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
76769d794632Smrg		fi
76779d794632Smrg
7678e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
76799d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
76809d794632Smrg		fi
76819d794632Smrg
76829d794632Smrg		CFLAGS="$CFLAGS -Werror=missing-braces"
76839d794632Smrg
7684c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7685c048b52eSmrgprintf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7686e8ac26b0Smrg		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7687c048b52eSmrg		if eval test \${$cacheid+y}
7688c048b52eSmrgthen :
7689c048b52eSmrg  printf %s "(cached) " >&6
7690c048b52eSmrgelse $as_nop
76919d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
76929d794632Smrg/* end confdefs.h.  */
76939d794632Smrgint i;
76949d794632Smrgint
7695c048b52eSmrgmain (void)
76969d794632Smrg{
76979d794632Smrg
76989d794632Smrg  ;
76999d794632Smrg  return 0;
77009d794632Smrg}
77019d794632Smrg_ACEOF
7702c048b52eSmrgif ac_fn_c_try_link "$LINENO"
7703c048b52eSmrgthen :
77049d794632Smrg  eval $cacheid=yes
7705c048b52eSmrgelse $as_nop
77069d794632Smrg  eval $cacheid=no
77079d794632Smrgfi
7708c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
77099d794632Smrg    conftest$ac_exeext conftest.$ac_ext
77109d794632Smrgfi
77119d794632Smrg
77129d794632Smrg
77139d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
77149d794632Smrg
77159d794632Smrg		eval supported=\$$cacheid
7716c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7717c048b52eSmrgprintf "%s\n" "$supported" >&6; }
77189d794632Smrg		if test "$supported" = "yes" ; then
77199d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
77209d794632Smrg			found="yes"
77219d794632Smrg		fi
77229d794632Smrg	fi
77239d794632Smrg
77249d794632Smrg
77259d794632Smrg
77269d794632Smrg
77279d794632Smrg
77289d794632Smrg
77299d794632Smrg
77309d794632Smrg
77319d794632Smrg
77329d794632Smrg
77339d794632Smrg
77349d794632Smrg
77359d794632Smrg
77369d794632Smrg
77379d794632Smrg
77389d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
77399d794632Smrg
77409d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
77419d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7742c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7743c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7744c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7745c048b52eSmrgthen :
7746c048b52eSmrg  printf %s "(cached) " >&6
7747c048b52eSmrgelse $as_nop
77489d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77499d794632Smrg/* end confdefs.h.  */
77509d794632Smrgint i;
77519d794632Smrg_ACEOF
7752c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
7753c048b52eSmrgthen :
77549d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
7755c048b52eSmrgelse $as_nop
77569d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=no
77579d794632Smrgfi
7758c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
77599d794632Smrgfi
7760c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7761c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
77629d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
77639d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
77649d794632Smrgfi
77659d794632Smrg
77669d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
77679d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
77689d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
77699d794632Smrg	fi
77709d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7771c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7772c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7773c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7774c048b52eSmrgthen :
7775c048b52eSmrg  printf %s "(cached) " >&6
7776c048b52eSmrgelse $as_nop
77779d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77789d794632Smrg/* end confdefs.h.  */
77799d794632Smrgint i;
77809d794632Smrg_ACEOF
7781c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
7782c048b52eSmrgthen :
77839d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7784c048b52eSmrgelse $as_nop
77859d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
77869d794632Smrgfi
7787c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
77889d794632Smrgfi
7789c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7790c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
77919d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
77929d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
77939d794632Smrgfi
77949d794632Smrg
77959d794632Smrgfound="no"
77969d794632Smrg
77979d794632Smrg	if test $found = "no" ; then
7798e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
77999d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
78009d794632Smrg		fi
78019d794632Smrg
7802e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
78039d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
78049d794632Smrg		fi
78059d794632Smrg
78069d794632Smrg		CFLAGS="$CFLAGS -Werror=sequence-point"
78079d794632Smrg
7808c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7809c048b52eSmrgprintf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7810e8ac26b0Smrg		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7811c048b52eSmrg		if eval test \${$cacheid+y}
7812c048b52eSmrgthen :
7813c048b52eSmrg  printf %s "(cached) " >&6
7814c048b52eSmrgelse $as_nop
78159d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
78169d794632Smrg/* end confdefs.h.  */
78179d794632Smrgint i;
78189d794632Smrgint
7819c048b52eSmrgmain (void)
78209d794632Smrg{
78219d794632Smrg
78229d794632Smrg  ;
78239d794632Smrg  return 0;
78249d794632Smrg}
78259d794632Smrg_ACEOF
7826c048b52eSmrgif ac_fn_c_try_link "$LINENO"
7827c048b52eSmrgthen :
78289d794632Smrg  eval $cacheid=yes
7829c048b52eSmrgelse $as_nop
78309d794632Smrg  eval $cacheid=no
78319d794632Smrgfi
7832c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
78339d794632Smrg    conftest$ac_exeext conftest.$ac_ext
78349d794632Smrgfi
78359d794632Smrg
78369d794632Smrg
78379d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
78389d794632Smrg
78399d794632Smrg		eval supported=\$$cacheid
7840c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7841c048b52eSmrgprintf "%s\n" "$supported" >&6; }
78429d794632Smrg		if test "$supported" = "yes" ; then
78439d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
78449d794632Smrg			found="yes"
78459d794632Smrg		fi
78469d794632Smrg	fi
78479d794632Smrg
78489d794632Smrg
78499d794632Smrg
78509d794632Smrg
78519d794632Smrg
78529d794632Smrg
78539d794632Smrg
78549d794632Smrg
78559d794632Smrg
78569d794632Smrg
78579d794632Smrg
78589d794632Smrg
78599d794632Smrg
78609d794632Smrg
78619d794632Smrg
78629d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
78639d794632Smrg
78649d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
78659d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7866c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7867c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7868c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7869c048b52eSmrgthen :
7870c048b52eSmrg  printf %s "(cached) " >&6
7871c048b52eSmrgelse $as_nop
78729d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
78739d794632Smrg/* end confdefs.h.  */
78749d794632Smrgint i;
78759d794632Smrg_ACEOF
7876c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
7877c048b52eSmrgthen :
78789d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
7879c048b52eSmrgelse $as_nop
78809d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=no
78819d794632Smrgfi
7882c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
78839d794632Smrgfi
7884c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7885c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
78869d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
78879d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
78889d794632Smrgfi
78899d794632Smrg
78909d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
78919d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
78929d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
78939d794632Smrg	fi
78949d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7895c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7896c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7897c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7898c048b52eSmrgthen :
7899c048b52eSmrg  printf %s "(cached) " >&6
7900c048b52eSmrgelse $as_nop
79019d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79029d794632Smrg/* end confdefs.h.  */
79039d794632Smrgint i;
79049d794632Smrg_ACEOF
7905c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
7906c048b52eSmrgthen :
79079d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7908c048b52eSmrgelse $as_nop
79099d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
79109d794632Smrgfi
7911c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
79129d794632Smrgfi
7913c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7914c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
79159d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
79169d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
79179d794632Smrgfi
79189d794632Smrg
79199d794632Smrgfound="no"
79209d794632Smrg
79219d794632Smrg	if test $found = "no" ; then
7922e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
79239d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
79249d794632Smrg		fi
79259d794632Smrg
7926e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
79279d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
79289d794632Smrg		fi
79299d794632Smrg
79309d794632Smrg		CFLAGS="$CFLAGS -Werror=return-type"
79319d794632Smrg
7932c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7933c048b52eSmrgprintf %s "checking if $CC supports -Werror=return-type... " >&6; }
7934e8ac26b0Smrg		cacheid=xorg_cv_cc_flag__Werror_return_type
7935c048b52eSmrg		if eval test \${$cacheid+y}
7936c048b52eSmrgthen :
7937c048b52eSmrg  printf %s "(cached) " >&6
7938c048b52eSmrgelse $as_nop
79399d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79409d794632Smrg/* end confdefs.h.  */
79419d794632Smrgint i;
79429d794632Smrgint
7943c048b52eSmrgmain (void)
79449d794632Smrg{
79459d794632Smrg
79469d794632Smrg  ;
79479d794632Smrg  return 0;
79489d794632Smrg}
79499d794632Smrg_ACEOF
7950c048b52eSmrgif ac_fn_c_try_link "$LINENO"
7951c048b52eSmrgthen :
79529d794632Smrg  eval $cacheid=yes
7953c048b52eSmrgelse $as_nop
79549d794632Smrg  eval $cacheid=no
79559d794632Smrgfi
7956c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
79579d794632Smrg    conftest$ac_exeext conftest.$ac_ext
79589d794632Smrgfi
79599d794632Smrg
79609d794632Smrg
79619d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
79629d794632Smrg
79639d794632Smrg		eval supported=\$$cacheid
7964c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7965c048b52eSmrgprintf "%s\n" "$supported" >&6; }
79669d794632Smrg		if test "$supported" = "yes" ; then
79679d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
79689d794632Smrg			found="yes"
79699d794632Smrg		fi
79709d794632Smrg	fi
79719d794632Smrg
79729d794632Smrg	if test $found = "no" ; then
7973e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
79749d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
79759d794632Smrg		fi
79769d794632Smrg
7977e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
79789d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
79799d794632Smrg		fi
79809d794632Smrg
79819d794632Smrg		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
79829d794632Smrg
7983c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7984c048b52eSmrgprintf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7985e8ac26b0Smrg		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7986c048b52eSmrg		if eval test \${$cacheid+y}
7987c048b52eSmrgthen :
7988c048b52eSmrg  printf %s "(cached) " >&6
7989c048b52eSmrgelse $as_nop
79909d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79919d794632Smrg/* end confdefs.h.  */
79929d794632Smrgint i;
79939d794632Smrgint
7994c048b52eSmrgmain (void)
79959d794632Smrg{
79969d794632Smrg
79979d794632Smrg  ;
79989d794632Smrg  return 0;
79999d794632Smrg}
80009d794632Smrg_ACEOF
8001c048b52eSmrgif ac_fn_c_try_link "$LINENO"
8002c048b52eSmrgthen :
80039d794632Smrg  eval $cacheid=yes
8004c048b52eSmrgelse $as_nop
80059d794632Smrg  eval $cacheid=no
80069d794632Smrgfi
8007c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
80089d794632Smrg    conftest$ac_exeext conftest.$ac_ext
80099d794632Smrgfi
80109d794632Smrg
80119d794632Smrg
80129d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
80139d794632Smrg
80149d794632Smrg		eval supported=\$$cacheid
8015c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8016c048b52eSmrgprintf "%s\n" "$supported" >&6; }
80179d794632Smrg		if test "$supported" = "yes" ; then
80189d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
80199d794632Smrg			found="yes"
80209d794632Smrg		fi
80219d794632Smrg	fi
80229d794632Smrg
80239d794632Smrg
80249d794632Smrg
80259d794632Smrg
80269d794632Smrg
80279d794632Smrg
80289d794632Smrg
80299d794632Smrg
80309d794632Smrg
80319d794632Smrg
80329d794632Smrg
80339d794632Smrg
80349d794632Smrg
80359d794632Smrg
80369d794632Smrg
80379d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
80389d794632Smrg
80399d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
80409d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8041c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8042c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8043c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8044c048b52eSmrgthen :
8045c048b52eSmrg  printf %s "(cached) " >&6
8046c048b52eSmrgelse $as_nop
80479d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
80489d794632Smrg/* end confdefs.h.  */
80499d794632Smrgint i;
80509d794632Smrg_ACEOF
8051c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
8052c048b52eSmrgthen :
80539d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
8054c048b52eSmrgelse $as_nop
80559d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=no
80569d794632Smrgfi
8057c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
80589d794632Smrgfi
8059c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8060c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
80619d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
80629d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
80639d794632Smrgfi
80649d794632Smrg
80659d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
80669d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
80679d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
80689d794632Smrg	fi
80699d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8070c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8071c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8072c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8073c048b52eSmrgthen :
8074c048b52eSmrg  printf %s "(cached) " >&6
8075c048b52eSmrgelse $as_nop
80769d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
80779d794632Smrg/* end confdefs.h.  */
80789d794632Smrgint i;
80799d794632Smrg_ACEOF
8080c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
8081c048b52eSmrgthen :
80829d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8083c048b52eSmrgelse $as_nop
80849d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
80859d794632Smrgfi
8086c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
80879d794632Smrgfi
8088c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8089c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
80909d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
80919d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
80929d794632Smrgfi
80939d794632Smrg
80949d794632Smrgfound="no"
80959d794632Smrg
80969d794632Smrg	if test $found = "no" ; then
8097e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
80989d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
80999d794632Smrg		fi
81009d794632Smrg
8101e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
81029d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
81039d794632Smrg		fi
81049d794632Smrg
81059d794632Smrg		CFLAGS="$CFLAGS -Werror=trigraphs"
81069d794632Smrg
8107c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8108c048b52eSmrgprintf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8109e8ac26b0Smrg		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8110c048b52eSmrg		if eval test \${$cacheid+y}
8111c048b52eSmrgthen :
8112c048b52eSmrg  printf %s "(cached) " >&6
8113c048b52eSmrgelse $as_nop
81149d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81159d794632Smrg/* end confdefs.h.  */
81169d794632Smrgint i;
81179d794632Smrgint
8118c048b52eSmrgmain (void)
81199d794632Smrg{
81209d794632Smrg
81219d794632Smrg  ;
81229d794632Smrg  return 0;
81239d794632Smrg}
81249d794632Smrg_ACEOF
8125c048b52eSmrgif ac_fn_c_try_link "$LINENO"
8126c048b52eSmrgthen :
81279d794632Smrg  eval $cacheid=yes
8128c048b52eSmrgelse $as_nop
81299d794632Smrg  eval $cacheid=no
81309d794632Smrgfi
8131c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
81329d794632Smrg    conftest$ac_exeext conftest.$ac_ext
81339d794632Smrgfi
81349d794632Smrg
81359d794632Smrg
81369d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
81379d794632Smrg
81389d794632Smrg		eval supported=\$$cacheid
8139c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8140c048b52eSmrgprintf "%s\n" "$supported" >&6; }
81419d794632Smrg		if test "$supported" = "yes" ; then
81429d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
81439d794632Smrg			found="yes"
81449d794632Smrg		fi
81459d794632Smrg	fi
81469d794632Smrg
81479d794632Smrg
81489d794632Smrg
81499d794632Smrg
81509d794632Smrg
81519d794632Smrg
81529d794632Smrg
81539d794632Smrg
81549d794632Smrg
81559d794632Smrg
81569d794632Smrg
81579d794632Smrg
81589d794632Smrg
81599d794632Smrg
81609d794632Smrg
81619d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
81629d794632Smrg
81639d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
81649d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8165c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8166c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8167c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8168c048b52eSmrgthen :
8169c048b52eSmrg  printf %s "(cached) " >&6
8170c048b52eSmrgelse $as_nop
81719d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81729d794632Smrg/* end confdefs.h.  */
81739d794632Smrgint i;
81749d794632Smrg_ACEOF
8175c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
8176c048b52eSmrgthen :
81779d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
8178c048b52eSmrgelse $as_nop
81799d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=no
81809d794632Smrgfi
8181c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
81829d794632Smrgfi
8183c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8184c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
81859d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
81869d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
81879d794632Smrgfi
81889d794632Smrg
81899d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
81909d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
81919d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
81929d794632Smrg	fi
81939d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8194c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8195c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8196c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8197c048b52eSmrgthen :
8198c048b52eSmrg  printf %s "(cached) " >&6
8199c048b52eSmrgelse $as_nop
82009d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
82019d794632Smrg/* end confdefs.h.  */
82029d794632Smrgint i;
82039d794632Smrg_ACEOF
8204c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
8205c048b52eSmrgthen :
82069d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8207c048b52eSmrgelse $as_nop
82089d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
82099d794632Smrgfi
8210c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
82119d794632Smrgfi
8212c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8213c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
82149d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
82159d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
82169d794632Smrgfi
82179d794632Smrg
82189d794632Smrgfound="no"
82199d794632Smrg
82209d794632Smrg	if test $found = "no" ; then
8221e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
82229d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
82239d794632Smrg		fi
82249d794632Smrg
8225e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
82269d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
82279d794632Smrg		fi
82289d794632Smrg
82299d794632Smrg		CFLAGS="$CFLAGS -Werror=array-bounds"
82309d794632Smrg
8231c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8232c048b52eSmrgprintf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8233e8ac26b0Smrg		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8234c048b52eSmrg		if eval test \${$cacheid+y}
8235c048b52eSmrgthen :
8236c048b52eSmrg  printf %s "(cached) " >&6
8237c048b52eSmrgelse $as_nop
82389d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
82399d794632Smrg/* end confdefs.h.  */
82409d794632Smrgint i;
82419d794632Smrgint
8242c048b52eSmrgmain (void)
82439d794632Smrg{
82449d794632Smrg
82459d794632Smrg  ;
82469d794632Smrg  return 0;
82479d794632Smrg}
82489d794632Smrg_ACEOF
8249c048b52eSmrgif ac_fn_c_try_link "$LINENO"
8250c048b52eSmrgthen :
82519d794632Smrg  eval $cacheid=yes
8252c048b52eSmrgelse $as_nop
82539d794632Smrg  eval $cacheid=no
82549d794632Smrgfi
8255c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
82569d794632Smrg    conftest$ac_exeext conftest.$ac_ext
82579d794632Smrgfi
82589d794632Smrg
82599d794632Smrg
82609d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
82619d794632Smrg
82629d794632Smrg		eval supported=\$$cacheid
8263c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8264c048b52eSmrgprintf "%s\n" "$supported" >&6; }
82659d794632Smrg		if test "$supported" = "yes" ; then
82669d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
82679d794632Smrg			found="yes"
82689d794632Smrg		fi
82699d794632Smrg	fi
82709d794632Smrg
82719d794632Smrg
82729d794632Smrg
82739d794632Smrg
82749d794632Smrg
82759d794632Smrg
82769d794632Smrg
82779d794632Smrg
82789d794632Smrg
82799d794632Smrg
82809d794632Smrg
82819d794632Smrg
82829d794632Smrg
82839d794632Smrg
82849d794632Smrg
82859d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
82869d794632Smrg
82879d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
82889d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8289c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8290c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8291c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8292c048b52eSmrgthen :
8293c048b52eSmrg  printf %s "(cached) " >&6
8294c048b52eSmrgelse $as_nop
82959d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
82969d794632Smrg/* end confdefs.h.  */
82979d794632Smrgint i;
82989d794632Smrg_ACEOF
8299c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
8300c048b52eSmrgthen :
83019d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
8302c048b52eSmrgelse $as_nop
83039d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=no
83049d794632Smrgfi
8305c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
83069d794632Smrgfi
8307c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8308c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
83099d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
83109d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
83119d794632Smrgfi
83129d794632Smrg
83139d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
83149d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
83159d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
83169d794632Smrg	fi
83179d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8318c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8319c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8320c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8321c048b52eSmrgthen :
8322c048b52eSmrg  printf %s "(cached) " >&6
8323c048b52eSmrgelse $as_nop
83249d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
83259d794632Smrg/* end confdefs.h.  */
83269d794632Smrgint i;
83279d794632Smrg_ACEOF
8328c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
8329c048b52eSmrgthen :
83309d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8331c048b52eSmrgelse $as_nop
83329d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
83339d794632Smrgfi
8334c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
83359d794632Smrgfi
8336c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8337c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
83389d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
83399d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
83409d794632Smrgfi
83419d794632Smrg
83429d794632Smrgfound="no"
83439d794632Smrg
83449d794632Smrg	if test $found = "no" ; then
8345e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
83469d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
83479d794632Smrg		fi
83489d794632Smrg
8349e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
83509d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
83519d794632Smrg		fi
83529d794632Smrg
83539d794632Smrg		CFLAGS="$CFLAGS -Werror=write-strings"
83549d794632Smrg
8355c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8356c048b52eSmrgprintf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8357e8ac26b0Smrg		cacheid=xorg_cv_cc_flag__Werror_write_strings
8358c048b52eSmrg		if eval test \${$cacheid+y}
8359c048b52eSmrgthen :
8360c048b52eSmrg  printf %s "(cached) " >&6
8361c048b52eSmrgelse $as_nop
83629d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
83639d794632Smrg/* end confdefs.h.  */
83649d794632Smrgint i;
83659d794632Smrgint
8366c048b52eSmrgmain (void)
83679d794632Smrg{
83689d794632Smrg
83699d794632Smrg  ;
83709d794632Smrg  return 0;
83719d794632Smrg}
83729d794632Smrg_ACEOF
8373c048b52eSmrgif ac_fn_c_try_link "$LINENO"
8374c048b52eSmrgthen :
83759d794632Smrg  eval $cacheid=yes
8376c048b52eSmrgelse $as_nop
83779d794632Smrg  eval $cacheid=no
83789d794632Smrgfi
8379c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
83809d794632Smrg    conftest$ac_exeext conftest.$ac_ext
83819d794632Smrgfi
83829d794632Smrg
83839d794632Smrg
83849d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
83859d794632Smrg
83869d794632Smrg		eval supported=\$$cacheid
8387c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8388c048b52eSmrgprintf "%s\n" "$supported" >&6; }
83899d794632Smrg		if test "$supported" = "yes" ; then
83909d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
83919d794632Smrg			found="yes"
83929d794632Smrg		fi
83939d794632Smrg	fi
83949d794632Smrg
83959d794632Smrg
83969d794632Smrg
83979d794632Smrg
83989d794632Smrg
83999d794632Smrg
84009d794632Smrg
84019d794632Smrg
84029d794632Smrg
84039d794632Smrg
84049d794632Smrg
84059d794632Smrg
84069d794632Smrg
84079d794632Smrg
84089d794632Smrg
84099d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
84109d794632Smrg
84119d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
84129d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8413c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8414c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8415c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8416c048b52eSmrgthen :
8417c048b52eSmrg  printf %s "(cached) " >&6
8418c048b52eSmrgelse $as_nop
84199d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
84209d794632Smrg/* end confdefs.h.  */
84219d794632Smrgint i;
84229d794632Smrg_ACEOF
8423c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
8424c048b52eSmrgthen :
84259d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
8426c048b52eSmrgelse $as_nop
84279d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=no
84289d794632Smrgfi
8429c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
84309d794632Smrgfi
8431c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8432c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
84339d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
84349d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
84359d794632Smrgfi
84369d794632Smrg
84379d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
84389d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
84399d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
84409d794632Smrg	fi
84419d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8442c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8443c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8444c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8445c048b52eSmrgthen :
8446c048b52eSmrg  printf %s "(cached) " >&6
8447c048b52eSmrgelse $as_nop
84489d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
84499d794632Smrg/* end confdefs.h.  */
84509d794632Smrgint i;
84519d794632Smrg_ACEOF
8452c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
8453c048b52eSmrgthen :
84549d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8455c048b52eSmrgelse $as_nop
84569d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
84579d794632Smrgfi
8458c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
84599d794632Smrgfi
8460c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8461c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
84629d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
84639d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
84649d794632Smrgfi
84659d794632Smrg
84669d794632Smrgfound="no"
84679d794632Smrg
84689d794632Smrg	if test $found = "no" ; then
8469e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
84709d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
84719d794632Smrg		fi
84729d794632Smrg
8473e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
84749d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
84759d794632Smrg		fi
84769d794632Smrg
84779d794632Smrg		CFLAGS="$CFLAGS -Werror=address"
84789d794632Smrg
8479c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8480c048b52eSmrgprintf %s "checking if $CC supports -Werror=address... " >&6; }
8481e8ac26b0Smrg		cacheid=xorg_cv_cc_flag__Werror_address
8482c048b52eSmrg		if eval test \${$cacheid+y}
8483c048b52eSmrgthen :
8484c048b52eSmrg  printf %s "(cached) " >&6
8485c048b52eSmrgelse $as_nop
84869d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
84879d794632Smrg/* end confdefs.h.  */
84889d794632Smrgint i;
84899d794632Smrgint
8490c048b52eSmrgmain (void)
84919d794632Smrg{
84929d794632Smrg
84939d794632Smrg  ;
84949d794632Smrg  return 0;
84959d794632Smrg}
84969d794632Smrg_ACEOF
8497c048b52eSmrgif ac_fn_c_try_link "$LINENO"
8498c048b52eSmrgthen :
84999d794632Smrg  eval $cacheid=yes
8500c048b52eSmrgelse $as_nop
85019d794632Smrg  eval $cacheid=no
85029d794632Smrgfi
8503c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
85049d794632Smrg    conftest$ac_exeext conftest.$ac_ext
85059d794632Smrgfi
85069d794632Smrg
85079d794632Smrg
85089d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
85099d794632Smrg
85109d794632Smrg		eval supported=\$$cacheid
8511c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8512c048b52eSmrgprintf "%s\n" "$supported" >&6; }
85139d794632Smrg		if test "$supported" = "yes" ; then
85149d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
85159d794632Smrg			found="yes"
85169d794632Smrg		fi
85179d794632Smrg	fi
85189d794632Smrg
85199d794632Smrg
85209d794632Smrg
85219d794632Smrg
85229d794632Smrg
85239d794632Smrg
85249d794632Smrg
85259d794632Smrg
85269d794632Smrg
85279d794632Smrg
85289d794632Smrg
85299d794632Smrg
85309d794632Smrg
85319d794632Smrg
85329d794632Smrg
85339d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
85349d794632Smrg
85359d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
85369d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8537c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8538c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8539c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8540c048b52eSmrgthen :
8541c048b52eSmrg  printf %s "(cached) " >&6
8542c048b52eSmrgelse $as_nop
85439d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85449d794632Smrg/* end confdefs.h.  */
85459d794632Smrgint i;
85469d794632Smrg_ACEOF
8547c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
8548c048b52eSmrgthen :
85499d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
8550c048b52eSmrgelse $as_nop
85519d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=no
85529d794632Smrgfi
8553c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
85549d794632Smrgfi
8555c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8556c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
85579d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
85589d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
85599d794632Smrgfi
85609d794632Smrg
85619d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
85629d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
85639d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
85649d794632Smrg	fi
85659d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8566c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8567c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8568c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8569c048b52eSmrgthen :
8570c048b52eSmrg  printf %s "(cached) " >&6
8571c048b52eSmrgelse $as_nop
85729d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85739d794632Smrg/* end confdefs.h.  */
85749d794632Smrgint i;
85759d794632Smrg_ACEOF
8576c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
8577c048b52eSmrgthen :
85789d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8579c048b52eSmrgelse $as_nop
85809d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
85819d794632Smrgfi
8582c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
85839d794632Smrgfi
8584c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8585c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
85869d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
85879d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
85889d794632Smrgfi
85899d794632Smrg
85909d794632Smrgfound="no"
85919d794632Smrg
85929d794632Smrg	if test $found = "no" ; then
8593e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
85949d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
85959d794632Smrg		fi
85969d794632Smrg
8597e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
85989d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
85999d794632Smrg		fi
86009d794632Smrg
86019d794632Smrg		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
86029d794632Smrg
8603c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8604c048b52eSmrgprintf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8605e8ac26b0Smrg		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8606c048b52eSmrg		if eval test \${$cacheid+y}
8607c048b52eSmrgthen :
8608c048b52eSmrg  printf %s "(cached) " >&6
8609c048b52eSmrgelse $as_nop
86109d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86119d794632Smrg/* end confdefs.h.  */
86129d794632Smrgint i;
86139d794632Smrgint
8614c048b52eSmrgmain (void)
86159d794632Smrg{
86169d794632Smrg
86179d794632Smrg  ;
86189d794632Smrg  return 0;
86199d794632Smrg}
86209d794632Smrg_ACEOF
8621c048b52eSmrgif ac_fn_c_try_link "$LINENO"
8622c048b52eSmrgthen :
86239d794632Smrg  eval $cacheid=yes
8624c048b52eSmrgelse $as_nop
86259d794632Smrg  eval $cacheid=no
86269d794632Smrgfi
8627c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
86289d794632Smrg    conftest$ac_exeext conftest.$ac_ext
86299d794632Smrgfi
86309d794632Smrg
86319d794632Smrg
86329d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
86339d794632Smrg
86349d794632Smrg		eval supported=\$$cacheid
8635c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8636c048b52eSmrgprintf "%s\n" "$supported" >&6; }
86379d794632Smrg		if test "$supported" = "yes" ; then
86389d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
86399d794632Smrg			found="yes"
86409d794632Smrg		fi
86419d794632Smrg	fi
86429d794632Smrg
86439d794632Smrg	if test $found = "no" ; then
8644e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
86459d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
86469d794632Smrg		fi
86479d794632Smrg
8648e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
86499d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
86509d794632Smrg		fi
86519d794632Smrg
86529d794632Smrg		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
86539d794632Smrg
8654c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8655c048b52eSmrgprintf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8656e8ac26b0Smrg		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8657c048b52eSmrg		if eval test \${$cacheid+y}
8658c048b52eSmrgthen :
8659c048b52eSmrg  printf %s "(cached) " >&6
8660c048b52eSmrgelse $as_nop
86619d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86629d794632Smrg/* end confdefs.h.  */
86639d794632Smrgint i;
86649d794632Smrgint
8665c048b52eSmrgmain (void)
86669d794632Smrg{
86679d794632Smrg
86689d794632Smrg  ;
86699d794632Smrg  return 0;
86709d794632Smrg}
86719d794632Smrg_ACEOF
8672c048b52eSmrgif ac_fn_c_try_link "$LINENO"
8673c048b52eSmrgthen :
86749d794632Smrg  eval $cacheid=yes
8675c048b52eSmrgelse $as_nop
86769d794632Smrg  eval $cacheid=no
86779d794632Smrgfi
8678c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
86799d794632Smrg    conftest$ac_exeext conftest.$ac_ext
86809d794632Smrgfi
86819d794632Smrg
86829d794632Smrg
86839d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
86849d794632Smrg
86859d794632Smrg		eval supported=\$$cacheid
8686c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8687c048b52eSmrgprintf "%s\n" "$supported" >&6; }
86889d794632Smrg		if test "$supported" = "yes" ; then
86899d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
86909d794632Smrg			found="yes"
86919d794632Smrg		fi
86929d794632Smrg	fi
86939d794632Smrg
86949d794632Smrg
86959d794632Smrg
86969d794632Smrg
86979d794632Smrg
86989d794632Smrg
86999d794632Smrg
87009d794632Smrg
87019d794632Smrg
87029d794632Smrg
87039d794632Smrg
87049d794632Smrg
87059d794632Smrg
87069d794632Smrg
87079d794632Smrg
87089d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
87099d794632Smrg
87109d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
87119d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8712c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8713c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8714c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8715c048b52eSmrgthen :
8716c048b52eSmrg  printf %s "(cached) " >&6
8717c048b52eSmrgelse $as_nop
87189d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87199d794632Smrg/* end confdefs.h.  */
87209d794632Smrgint i;
87219d794632Smrg_ACEOF
8722c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
8723c048b52eSmrgthen :
87249d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
8725c048b52eSmrgelse $as_nop
87269d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=no
87279d794632Smrgfi
8728c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
87299d794632Smrgfi
8730c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8731c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
87329d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
87339d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
87349d794632Smrgfi
87359d794632Smrg
87369d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
87379d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
87389d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
87399d794632Smrg	fi
87409d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8741c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8742c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8743c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8744c048b52eSmrgthen :
8745c048b52eSmrg  printf %s "(cached) " >&6
8746c048b52eSmrgelse $as_nop
87479d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87489d794632Smrg/* end confdefs.h.  */
87499d794632Smrgint i;
87509d794632Smrg_ACEOF
8751c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
8752c048b52eSmrgthen :
87539d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8754c048b52eSmrgelse $as_nop
87559d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
87569d794632Smrgfi
8757c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
87589d794632Smrgfi
8759c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8760c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
87619d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
87629d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
87639d794632Smrgfi
87649d794632Smrg
87659d794632Smrgfound="no"
87669d794632Smrg
87679d794632Smrg	if test $found = "no" ; then
8768e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
87699d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
87709d794632Smrg		fi
87719d794632Smrg
8772e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
87739d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
87749d794632Smrg		fi
87759d794632Smrg
87769d794632Smrg		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
87779d794632Smrg
8778c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8779c048b52eSmrgprintf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8780e8ac26b0Smrg		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8781c048b52eSmrg		if eval test \${$cacheid+y}
8782c048b52eSmrgthen :
8783c048b52eSmrg  printf %s "(cached) " >&6
8784c048b52eSmrgelse $as_nop
87859d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87869d794632Smrg/* end confdefs.h.  */
87879d794632Smrgint i;
87889d794632Smrgint
8789c048b52eSmrgmain (void)
87909d794632Smrg{
87919d794632Smrg
87929d794632Smrg  ;
87939d794632Smrg  return 0;
87949d794632Smrg}
87959d794632Smrg_ACEOF
8796c048b52eSmrgif ac_fn_c_try_link "$LINENO"
8797c048b52eSmrgthen :
87989d794632Smrg  eval $cacheid=yes
8799c048b52eSmrgelse $as_nop
88009d794632Smrg  eval $cacheid=no
88019d794632Smrgfi
8802c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
88039d794632Smrg    conftest$ac_exeext conftest.$ac_ext
88049d794632Smrgfi
88059d794632Smrg
88069d794632Smrg
88079d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
88089d794632Smrg
88099d794632Smrg		eval supported=\$$cacheid
8810c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8811c048b52eSmrgprintf "%s\n" "$supported" >&6; }
88129d794632Smrg		if test "$supported" = "yes" ; then
88139d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
88149d794632Smrg			found="yes"
88159d794632Smrg		fi
88169d794632Smrg	fi
88179d794632Smrg
88189d794632Smrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION
88199d794632Smrgelse
8820c048b52eSmrg{ 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
8821c048b52eSmrgprintf "%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;}
88229d794632Smrg
88239d794632Smrg
88249d794632Smrg
88259d794632Smrg
88269d794632Smrg
88279d794632Smrg
88289d794632Smrg
88299d794632Smrg
88309d794632Smrg
88319d794632Smrg
88329d794632Smrg
88339d794632Smrg
88349d794632Smrg
88359d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
88369d794632Smrg
88379d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
88389d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8839c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8840c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8841c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8842c048b52eSmrgthen :
8843c048b52eSmrg  printf %s "(cached) " >&6
8844c048b52eSmrgelse $as_nop
88459d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88469d794632Smrg/* end confdefs.h.  */
88479d794632Smrgint i;
88489d794632Smrg_ACEOF
8849c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
8850c048b52eSmrgthen :
88519d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
8852c048b52eSmrgelse $as_nop
88539d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=no
88549d794632Smrgfi
8855c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
88569d794632Smrgfi
8857c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8858c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
88599d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
88609d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
88619d794632Smrgfi
88629d794632Smrg
88639d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
88649d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
88659d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
88669d794632Smrg	fi
88679d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8868c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8869c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8870c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8871c048b52eSmrgthen :
8872c048b52eSmrg  printf %s "(cached) " >&6
8873c048b52eSmrgelse $as_nop
88749d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88759d794632Smrg/* end confdefs.h.  */
88769d794632Smrgint i;
88779d794632Smrg_ACEOF
8878c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
8879c048b52eSmrgthen :
88809d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8881c048b52eSmrgelse $as_nop
88829d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
88839d794632Smrgfi
8884c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
88859d794632Smrgfi
8886c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8887c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
88889d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
88899d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
88909d794632Smrgfi
88919d794632Smrg
88929d794632Smrgfound="no"
88939d794632Smrg
88949d794632Smrg	if test $found = "no" ; then
8895e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
88969d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
88979d794632Smrg		fi
88989d794632Smrg
8899e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
89009d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
89019d794632Smrg		fi
89029d794632Smrg
89039d794632Smrg		CFLAGS="$CFLAGS -Wimplicit"
89049d794632Smrg
8905c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8906c048b52eSmrgprintf %s "checking if $CC supports -Wimplicit... " >&6; }
89079d794632Smrg		cacheid=xorg_cv_cc_flag__Wimplicit
8908c048b52eSmrg		if eval test \${$cacheid+y}
8909c048b52eSmrgthen :
8910c048b52eSmrg  printf %s "(cached) " >&6
8911c048b52eSmrgelse $as_nop
89129d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89139d794632Smrg/* end confdefs.h.  */
89149d794632Smrgint i;
89159d794632Smrgint
8916c048b52eSmrgmain (void)
89179d794632Smrg{
89189d794632Smrg
89199d794632Smrg  ;
89209d794632Smrg  return 0;
89219d794632Smrg}
89229d794632Smrg_ACEOF
8923c048b52eSmrgif ac_fn_c_try_link "$LINENO"
8924c048b52eSmrgthen :
89259d794632Smrg  eval $cacheid=yes
8926c048b52eSmrgelse $as_nop
89279d794632Smrg  eval $cacheid=no
89289d794632Smrgfi
8929c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
89309d794632Smrg    conftest$ac_exeext conftest.$ac_ext
89319d794632Smrgfi
89329d794632Smrg
89339d794632Smrg
89349d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
89359d794632Smrg
89369d794632Smrg		eval supported=\$$cacheid
8937c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8938c048b52eSmrgprintf "%s\n" "$supported" >&6; }
89399d794632Smrg		if test "$supported" = "yes" ; then
89409d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
89419d794632Smrg			found="yes"
89429d794632Smrg		fi
89439d794632Smrg	fi
89449d794632Smrg
89459d794632Smrg
89469d794632Smrg
89479d794632Smrg
89489d794632Smrg
89499d794632Smrg
89509d794632Smrg
89519d794632Smrg
89529d794632Smrg
89539d794632Smrg
89549d794632Smrg
89559d794632Smrg
89569d794632Smrg
89579d794632Smrg
89589d794632Smrg
89599d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
89609d794632Smrg
89619d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
89629d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8963c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8964c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8965c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8966c048b52eSmrgthen :
8967c048b52eSmrg  printf %s "(cached) " >&6
8968c048b52eSmrgelse $as_nop
89699d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89709d794632Smrg/* end confdefs.h.  */
89719d794632Smrgint i;
89729d794632Smrg_ACEOF
8973c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
8974c048b52eSmrgthen :
89759d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
8976c048b52eSmrgelse $as_nop
89779d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=no
89789d794632Smrgfi
8979c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
89809d794632Smrgfi
8981c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8982c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
89839d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
89849d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
89859d794632Smrgfi
89869d794632Smrg
89879d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
89889d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
89899d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
89909d794632Smrg	fi
89919d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8992c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8993c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8994c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8995c048b52eSmrgthen :
8996c048b52eSmrg  printf %s "(cached) " >&6
8997c048b52eSmrgelse $as_nop
89989d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89999d794632Smrg/* end confdefs.h.  */
90009d794632Smrgint i;
90019d794632Smrg_ACEOF
9002c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
9003c048b52eSmrgthen :
90049d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9005c048b52eSmrgelse $as_nop
90069d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
90079d794632Smrgfi
9008c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
90099d794632Smrgfi
9010c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9011c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
90129d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
90139d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
90149d794632Smrgfi
90159d794632Smrg
90169d794632Smrgfound="no"
90179d794632Smrg
90189d794632Smrg	if test $found = "no" ; then
9019e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
90209d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
90219d794632Smrg		fi
90229d794632Smrg
9023e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
90249d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
90259d794632Smrg		fi
90269d794632Smrg
90279d794632Smrg		CFLAGS="$CFLAGS -Wnonnull"
90289d794632Smrg
9029c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9030c048b52eSmrgprintf %s "checking if $CC supports -Wnonnull... " >&6; }
90319d794632Smrg		cacheid=xorg_cv_cc_flag__Wnonnull
9032c048b52eSmrg		if eval test \${$cacheid+y}
9033c048b52eSmrgthen :
9034c048b52eSmrg  printf %s "(cached) " >&6
9035c048b52eSmrgelse $as_nop
90369d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90379d794632Smrg/* end confdefs.h.  */
90389d794632Smrgint i;
90399d794632Smrgint
9040c048b52eSmrgmain (void)
90419d794632Smrg{
90429d794632Smrg
90439d794632Smrg  ;
90449d794632Smrg  return 0;
90459d794632Smrg}
90469d794632Smrg_ACEOF
9047c048b52eSmrgif ac_fn_c_try_link "$LINENO"
9048c048b52eSmrgthen :
90499d794632Smrg  eval $cacheid=yes
9050c048b52eSmrgelse $as_nop
90519d794632Smrg  eval $cacheid=no
90529d794632Smrgfi
9053c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
90549d794632Smrg    conftest$ac_exeext conftest.$ac_ext
90559d794632Smrgfi
90569d794632Smrg
90579d794632Smrg
90589d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
90599d794632Smrg
90609d794632Smrg		eval supported=\$$cacheid
9061c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9062c048b52eSmrgprintf "%s\n" "$supported" >&6; }
90639d794632Smrg		if test "$supported" = "yes" ; then
90649d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
90659d794632Smrg			found="yes"
90669d794632Smrg		fi
90679d794632Smrg	fi
90689d794632Smrg
90699d794632Smrg
90709d794632Smrg
90719d794632Smrg
90729d794632Smrg
90739d794632Smrg
90749d794632Smrg
90759d794632Smrg
90769d794632Smrg
90779d794632Smrg
90789d794632Smrg
90799d794632Smrg
90809d794632Smrg
90819d794632Smrg
90829d794632Smrg
90839d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
90849d794632Smrg
90859d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
90869d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9087c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9088c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9089c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9090c048b52eSmrgthen :
9091c048b52eSmrg  printf %s "(cached) " >&6
9092c048b52eSmrgelse $as_nop
90939d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90949d794632Smrg/* end confdefs.h.  */
90959d794632Smrgint i;
90969d794632Smrg_ACEOF
9097c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
9098c048b52eSmrgthen :
90999d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9100c048b52eSmrgelse $as_nop
91019d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=no
91029d794632Smrgfi
9103c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
91049d794632Smrgfi
9105c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9106c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
91079d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
91089d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
91099d794632Smrgfi
91109d794632Smrg
91119d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
91129d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
91139d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
91149d794632Smrg	fi
91159d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9116c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9117c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9118c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9119c048b52eSmrgthen :
9120c048b52eSmrg  printf %s "(cached) " >&6
9121c048b52eSmrgelse $as_nop
91229d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
91239d794632Smrg/* end confdefs.h.  */
91249d794632Smrgint i;
91259d794632Smrg_ACEOF
9126c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
9127c048b52eSmrgthen :
91289d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9129c048b52eSmrgelse $as_nop
91309d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
91319d794632Smrgfi
9132c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
91339d794632Smrgfi
9134c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9135c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
91369d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
91379d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
91389d794632Smrgfi
91399d794632Smrg
91409d794632Smrgfound="no"
91419d794632Smrg
91429d794632Smrg	if test $found = "no" ; then
9143e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
91449d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
91459d794632Smrg		fi
91469d794632Smrg
9147e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
91489d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
91499d794632Smrg		fi
91509d794632Smrg
91519d794632Smrg		CFLAGS="$CFLAGS -Winit-self"
91529d794632Smrg
9153c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9154c048b52eSmrgprintf %s "checking if $CC supports -Winit-self... " >&6; }
91559d794632Smrg		cacheid=xorg_cv_cc_flag__Winit_self
9156c048b52eSmrg		if eval test \${$cacheid+y}
9157c048b52eSmrgthen :
9158c048b52eSmrg  printf %s "(cached) " >&6
9159c048b52eSmrgelse $as_nop
91609d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
91619d794632Smrg/* end confdefs.h.  */
91629d794632Smrgint i;
91639d794632Smrgint
9164c048b52eSmrgmain (void)
91659d794632Smrg{
91669d794632Smrg
91679d794632Smrg  ;
91689d794632Smrg  return 0;
91699d794632Smrg}
91709d794632Smrg_ACEOF
9171c048b52eSmrgif ac_fn_c_try_link "$LINENO"
9172c048b52eSmrgthen :
91739d794632Smrg  eval $cacheid=yes
9174c048b52eSmrgelse $as_nop
91759d794632Smrg  eval $cacheid=no
91769d794632Smrgfi
9177c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
91789d794632Smrg    conftest$ac_exeext conftest.$ac_ext
91799d794632Smrgfi
91809d794632Smrg
91819d794632Smrg
91829d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
91839d794632Smrg
91849d794632Smrg		eval supported=\$$cacheid
9185c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9186c048b52eSmrgprintf "%s\n" "$supported" >&6; }
91879d794632Smrg		if test "$supported" = "yes" ; then
91889d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
91899d794632Smrg			found="yes"
91909d794632Smrg		fi
91919d794632Smrg	fi
91929d794632Smrg
91939d794632Smrg
91949d794632Smrg
91959d794632Smrg
91969d794632Smrg
91979d794632Smrg
91989d794632Smrg
91999d794632Smrg
92009d794632Smrg
92019d794632Smrg
92029d794632Smrg
92039d794632Smrg
92049d794632Smrg
92059d794632Smrg
92069d794632Smrg
92079d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
92089d794632Smrg
92099d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
92109d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9211c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9212c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9213c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9214c048b52eSmrgthen :
9215c048b52eSmrg  printf %s "(cached) " >&6
9216c048b52eSmrgelse $as_nop
92179d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92189d794632Smrg/* end confdefs.h.  */
92199d794632Smrgint i;
92209d794632Smrg_ACEOF
9221c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
9222c048b52eSmrgthen :
92239d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9224c048b52eSmrgelse $as_nop
92259d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=no
92269d794632Smrgfi
9227c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
92289d794632Smrgfi
9229c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9230c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
92319d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
92329d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
92339d794632Smrgfi
92349d794632Smrg
92359d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
92369d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
92379d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
92389d794632Smrg	fi
92399d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9240c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9241c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9242c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9243c048b52eSmrgthen :
9244c048b52eSmrg  printf %s "(cached) " >&6
9245c048b52eSmrgelse $as_nop
92469d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92479d794632Smrg/* end confdefs.h.  */
92489d794632Smrgint i;
92499d794632Smrg_ACEOF
9250c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
9251c048b52eSmrgthen :
92529d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9253c048b52eSmrgelse $as_nop
92549d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
92559d794632Smrgfi
9256c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
92579d794632Smrgfi
9258c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9259c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
92609d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
92619d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
92629d794632Smrgfi
92639d794632Smrg
92649d794632Smrgfound="no"
92659d794632Smrg
92669d794632Smrg	if test $found = "no" ; then
9267e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
92689d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
92699d794632Smrg		fi
92709d794632Smrg
9271e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
92729d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
92739d794632Smrg		fi
92749d794632Smrg
92759d794632Smrg		CFLAGS="$CFLAGS -Wmain"
92769d794632Smrg
9277c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9278c048b52eSmrgprintf %s "checking if $CC supports -Wmain... " >&6; }
92799d794632Smrg		cacheid=xorg_cv_cc_flag__Wmain
9280c048b52eSmrg		if eval test \${$cacheid+y}
9281c048b52eSmrgthen :
9282c048b52eSmrg  printf %s "(cached) " >&6
9283c048b52eSmrgelse $as_nop
92849d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92859d794632Smrg/* end confdefs.h.  */
92869d794632Smrgint i;
92879d794632Smrgint
9288c048b52eSmrgmain (void)
92899d794632Smrg{
92909d794632Smrg
92919d794632Smrg  ;
92929d794632Smrg  return 0;
92939d794632Smrg}
92949d794632Smrg_ACEOF
9295c048b52eSmrgif ac_fn_c_try_link "$LINENO"
9296c048b52eSmrgthen :
92979d794632Smrg  eval $cacheid=yes
9298c048b52eSmrgelse $as_nop
92999d794632Smrg  eval $cacheid=no
93009d794632Smrgfi
9301c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
93029d794632Smrg    conftest$ac_exeext conftest.$ac_ext
93039d794632Smrgfi
93049d794632Smrg
93059d794632Smrg
93069d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
93079d794632Smrg
93089d794632Smrg		eval supported=\$$cacheid
9309c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9310c048b52eSmrgprintf "%s\n" "$supported" >&6; }
93119d794632Smrg		if test "$supported" = "yes" ; then
93129d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
93139d794632Smrg			found="yes"
93149d794632Smrg		fi
93159d794632Smrg	fi
93169d794632Smrg
93179d794632Smrg
93189d794632Smrg
93199d794632Smrg
93209d794632Smrg
93219d794632Smrg
93229d794632Smrg
93239d794632Smrg
93249d794632Smrg
93259d794632Smrg
93269d794632Smrg
93279d794632Smrg
93289d794632Smrg
93299d794632Smrg
93309d794632Smrg
93319d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
93329d794632Smrg
93339d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
93349d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9335c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9336c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9337c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9338c048b52eSmrgthen :
9339c048b52eSmrg  printf %s "(cached) " >&6
9340c048b52eSmrgelse $as_nop
93419d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93429d794632Smrg/* end confdefs.h.  */
93439d794632Smrgint i;
93449d794632Smrg_ACEOF
9345c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
9346c048b52eSmrgthen :
93479d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9348c048b52eSmrgelse $as_nop
93499d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=no
93509d794632Smrgfi
9351c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
93529d794632Smrgfi
9353c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9354c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
93559d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
93569d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
93579d794632Smrgfi
93589d794632Smrg
93599d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
93609d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
93619d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
93629d794632Smrg	fi
93639d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9364c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9365c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9366c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9367c048b52eSmrgthen :
9368c048b52eSmrg  printf %s "(cached) " >&6
9369c048b52eSmrgelse $as_nop
93709d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93719d794632Smrg/* end confdefs.h.  */
93729d794632Smrgint i;
93739d794632Smrg_ACEOF
9374c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
9375c048b52eSmrgthen :
93769d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9377c048b52eSmrgelse $as_nop
93789d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
93799d794632Smrgfi
9380c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
93819d794632Smrgfi
9382c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9383c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
93849d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
93859d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
93869d794632Smrgfi
93879d794632Smrg
93889d794632Smrgfound="no"
93899d794632Smrg
93909d794632Smrg	if test $found = "no" ; then
9391e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
93929d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
93939d794632Smrg		fi
93949d794632Smrg
9395e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
93969d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
93979d794632Smrg		fi
93989d794632Smrg
93999d794632Smrg		CFLAGS="$CFLAGS -Wmissing-braces"
94009d794632Smrg
9401c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9402c048b52eSmrgprintf %s "checking if $CC supports -Wmissing-braces... " >&6; }
94039d794632Smrg		cacheid=xorg_cv_cc_flag__Wmissing_braces
9404c048b52eSmrg		if eval test \${$cacheid+y}
9405c048b52eSmrgthen :
9406c048b52eSmrg  printf %s "(cached) " >&6
9407c048b52eSmrgelse $as_nop
94089d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94099d794632Smrg/* end confdefs.h.  */
94109d794632Smrgint i;
94119d794632Smrgint
9412c048b52eSmrgmain (void)
94139d794632Smrg{
94149d794632Smrg
94159d794632Smrg  ;
94169d794632Smrg  return 0;
94179d794632Smrg}
94189d794632Smrg_ACEOF
9419c048b52eSmrgif ac_fn_c_try_link "$LINENO"
9420c048b52eSmrgthen :
94219d794632Smrg  eval $cacheid=yes
9422c048b52eSmrgelse $as_nop
94239d794632Smrg  eval $cacheid=no
94249d794632Smrgfi
9425c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
94269d794632Smrg    conftest$ac_exeext conftest.$ac_ext
94279d794632Smrgfi
94289d794632Smrg
94299d794632Smrg
94309d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
94319d794632Smrg
94329d794632Smrg		eval supported=\$$cacheid
9433c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9434c048b52eSmrgprintf "%s\n" "$supported" >&6; }
94359d794632Smrg		if test "$supported" = "yes" ; then
94369d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
94379d794632Smrg			found="yes"
94389d794632Smrg		fi
94399d794632Smrg	fi
94409d794632Smrg
94419d794632Smrg
94429d794632Smrg
94439d794632Smrg
94449d794632Smrg
94459d794632Smrg
94469d794632Smrg
94479d794632Smrg
94489d794632Smrg
94499d794632Smrg
94509d794632Smrg
94519d794632Smrg
94529d794632Smrg
94539d794632Smrg
94549d794632Smrg
94559d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
94569d794632Smrg
94579d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
94589d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9459c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9460c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9461c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9462c048b52eSmrgthen :
9463c048b52eSmrg  printf %s "(cached) " >&6
9464c048b52eSmrgelse $as_nop
94659d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94669d794632Smrg/* end confdefs.h.  */
94679d794632Smrgint i;
94689d794632Smrg_ACEOF
9469c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
9470c048b52eSmrgthen :
94719d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9472c048b52eSmrgelse $as_nop
94739d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=no
94749d794632Smrgfi
9475c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
94769d794632Smrgfi
9477c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9478c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
94799d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
94809d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
94819d794632Smrgfi
94829d794632Smrg
94839d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
94849d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
94859d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
94869d794632Smrg	fi
94879d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9488c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9489c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9490c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9491c048b52eSmrgthen :
9492c048b52eSmrg  printf %s "(cached) " >&6
9493c048b52eSmrgelse $as_nop
94949d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94959d794632Smrg/* end confdefs.h.  */
94969d794632Smrgint i;
94979d794632Smrg_ACEOF
9498c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
9499c048b52eSmrgthen :
95009d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9501c048b52eSmrgelse $as_nop
95029d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
95039d794632Smrgfi
9504c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
95059d794632Smrgfi
9506c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9507c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
95089d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
95099d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
95109d794632Smrgfi
95119d794632Smrg
95129d794632Smrgfound="no"
95139d794632Smrg
95149d794632Smrg	if test $found = "no" ; then
9515e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
95169d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
95179d794632Smrg		fi
95189d794632Smrg
9519e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
95209d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
95219d794632Smrg		fi
95229d794632Smrg
95239d794632Smrg		CFLAGS="$CFLAGS -Wsequence-point"
95249d794632Smrg
9525c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9526c048b52eSmrgprintf %s "checking if $CC supports -Wsequence-point... " >&6; }
95279d794632Smrg		cacheid=xorg_cv_cc_flag__Wsequence_point
9528c048b52eSmrg		if eval test \${$cacheid+y}
9529c048b52eSmrgthen :
9530c048b52eSmrg  printf %s "(cached) " >&6
9531c048b52eSmrgelse $as_nop
95329d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
95339d794632Smrg/* end confdefs.h.  */
95349d794632Smrgint i;
95359d794632Smrgint
9536c048b52eSmrgmain (void)
95379d794632Smrg{
95389d794632Smrg
95399d794632Smrg  ;
95409d794632Smrg  return 0;
95419d794632Smrg}
95429d794632Smrg_ACEOF
9543c048b52eSmrgif ac_fn_c_try_link "$LINENO"
9544c048b52eSmrgthen :
95459d794632Smrg  eval $cacheid=yes
9546c048b52eSmrgelse $as_nop
95479d794632Smrg  eval $cacheid=no
95489d794632Smrgfi
9549c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
95509d794632Smrg    conftest$ac_exeext conftest.$ac_ext
95519d794632Smrgfi
95529d794632Smrg
95539d794632Smrg
95549d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
95559d794632Smrg
95569d794632Smrg		eval supported=\$$cacheid
9557c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9558c048b52eSmrgprintf "%s\n" "$supported" >&6; }
95599d794632Smrg		if test "$supported" = "yes" ; then
95609d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
95619d794632Smrg			found="yes"
95629d794632Smrg		fi
95639d794632Smrg	fi
95649d794632Smrg
95659d794632Smrg
95669d794632Smrg
95679d794632Smrg
95689d794632Smrg
95699d794632Smrg
95709d794632Smrg
95719d794632Smrg
95729d794632Smrg
95739d794632Smrg
95749d794632Smrg
95759d794632Smrg
95769d794632Smrg
95779d794632Smrg
95789d794632Smrg
95799d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
95809d794632Smrg
95819d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
95829d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9583c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9584c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9585c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9586c048b52eSmrgthen :
9587c048b52eSmrg  printf %s "(cached) " >&6
9588c048b52eSmrgelse $as_nop
95899d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
95909d794632Smrg/* end confdefs.h.  */
95919d794632Smrgint i;
95929d794632Smrg_ACEOF
9593c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
9594c048b52eSmrgthen :
95959d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9596c048b52eSmrgelse $as_nop
95979d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=no
95989d794632Smrgfi
9599c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
96009d794632Smrgfi
9601c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9602c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
96039d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
96049d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
96059d794632Smrgfi
96069d794632Smrg
96079d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
96089d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
96099d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
96109d794632Smrg	fi
96119d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9612c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9613c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9614c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9615c048b52eSmrgthen :
9616c048b52eSmrg  printf %s "(cached) " >&6
9617c048b52eSmrgelse $as_nop
96189d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
96199d794632Smrg/* end confdefs.h.  */
96209d794632Smrgint i;
96219d794632Smrg_ACEOF
9622c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
9623c048b52eSmrgthen :
96249d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9625c048b52eSmrgelse $as_nop
96269d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
96279d794632Smrgfi
9628c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
96299d794632Smrgfi
9630c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9631c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
96329d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
96339d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
96349d794632Smrgfi
96359d794632Smrg
96369d794632Smrgfound="no"
96379d794632Smrg
96389d794632Smrg	if test $found = "no" ; then
9639e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
96409d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
96419d794632Smrg		fi
96429d794632Smrg
9643e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
96449d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
96459d794632Smrg		fi
96469d794632Smrg
96479d794632Smrg		CFLAGS="$CFLAGS -Wreturn-type"
96489d794632Smrg
9649c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9650c048b52eSmrgprintf %s "checking if $CC supports -Wreturn-type... " >&6; }
96519d794632Smrg		cacheid=xorg_cv_cc_flag__Wreturn_type
9652c048b52eSmrg		if eval test \${$cacheid+y}
9653c048b52eSmrgthen :
9654c048b52eSmrg  printf %s "(cached) " >&6
9655c048b52eSmrgelse $as_nop
96569d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
96579d794632Smrg/* end confdefs.h.  */
96589d794632Smrgint i;
96599d794632Smrgint
9660c048b52eSmrgmain (void)
96619d794632Smrg{
96629d794632Smrg
96639d794632Smrg  ;
96649d794632Smrg  return 0;
96659d794632Smrg}
96669d794632Smrg_ACEOF
9667c048b52eSmrgif ac_fn_c_try_link "$LINENO"
9668c048b52eSmrgthen :
96699d794632Smrg  eval $cacheid=yes
9670c048b52eSmrgelse $as_nop
96719d794632Smrg  eval $cacheid=no
96729d794632Smrgfi
9673c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
96749d794632Smrg    conftest$ac_exeext conftest.$ac_ext
96759d794632Smrgfi
96769d794632Smrg
96779d794632Smrg
96789d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
96799d794632Smrg
96809d794632Smrg		eval supported=\$$cacheid
9681c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9682c048b52eSmrgprintf "%s\n" "$supported" >&6; }
96839d794632Smrg		if test "$supported" = "yes" ; then
96849d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
96859d794632Smrg			found="yes"
96869d794632Smrg		fi
96879d794632Smrg	fi
96889d794632Smrg
96899d794632Smrg
96909d794632Smrg
96919d794632Smrg
96929d794632Smrg
96939d794632Smrg
96949d794632Smrg
96959d794632Smrg
96969d794632Smrg
96979d794632Smrg
96989d794632Smrg
96999d794632Smrg
97009d794632Smrg
97019d794632Smrg
97029d794632Smrg
97039d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
97049d794632Smrg
97059d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
97069d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9707c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9708c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9709c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9710c048b52eSmrgthen :
9711c048b52eSmrg  printf %s "(cached) " >&6
9712c048b52eSmrgelse $as_nop
97139d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
97149d794632Smrg/* end confdefs.h.  */
97159d794632Smrgint i;
97169d794632Smrg_ACEOF
9717c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
9718c048b52eSmrgthen :
97199d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9720c048b52eSmrgelse $as_nop
97219d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=no
97229d794632Smrgfi
9723c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
97249d794632Smrgfi
9725c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9726c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
97279d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
97289d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
97299d794632Smrgfi
97309d794632Smrg
97319d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
97329d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
97339d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
97349d794632Smrg	fi
97359d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9736c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9737c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9738c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9739c048b52eSmrgthen :
9740c048b52eSmrg  printf %s "(cached) " >&6
9741c048b52eSmrgelse $as_nop
97429d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
97439d794632Smrg/* end confdefs.h.  */
97449d794632Smrgint i;
97459d794632Smrg_ACEOF
9746c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
9747c048b52eSmrgthen :
97489d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9749c048b52eSmrgelse $as_nop
97509d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
97519d794632Smrgfi
9752c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
97539d794632Smrgfi
9754c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9755c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
97569d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
97579d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
97589d794632Smrgfi
97599d794632Smrg
97609d794632Smrgfound="no"
97619d794632Smrg
97629d794632Smrg	if test $found = "no" ; then
9763e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
97649d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
97659d794632Smrg		fi
97669d794632Smrg
9767e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
97689d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
97699d794632Smrg		fi
97709d794632Smrg
97719d794632Smrg		CFLAGS="$CFLAGS -Wtrigraphs"
97729d794632Smrg
9773c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9774c048b52eSmrgprintf %s "checking if $CC supports -Wtrigraphs... " >&6; }
97759d794632Smrg		cacheid=xorg_cv_cc_flag__Wtrigraphs
9776c048b52eSmrg		if eval test \${$cacheid+y}
9777c048b52eSmrgthen :
9778c048b52eSmrg  printf %s "(cached) " >&6
9779c048b52eSmrgelse $as_nop
97809d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
97819d794632Smrg/* end confdefs.h.  */
97829d794632Smrgint i;
97839d794632Smrgint
9784c048b52eSmrgmain (void)
97859d794632Smrg{
97869d794632Smrg
97879d794632Smrg  ;
97889d794632Smrg  return 0;
97899d794632Smrg}
97909d794632Smrg_ACEOF
9791c048b52eSmrgif ac_fn_c_try_link "$LINENO"
9792c048b52eSmrgthen :
97939d794632Smrg  eval $cacheid=yes
9794c048b52eSmrgelse $as_nop
97959d794632Smrg  eval $cacheid=no
97969d794632Smrgfi
9797c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
97989d794632Smrg    conftest$ac_exeext conftest.$ac_ext
97999d794632Smrgfi
98009d794632Smrg
98019d794632Smrg
98029d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
98039d794632Smrg
98049d794632Smrg		eval supported=\$$cacheid
9805c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9806c048b52eSmrgprintf "%s\n" "$supported" >&6; }
98079d794632Smrg		if test "$supported" = "yes" ; then
98089d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
98099d794632Smrg			found="yes"
98109d794632Smrg		fi
98119d794632Smrg	fi
98129d794632Smrg
98139d794632Smrg
98149d794632Smrg
98159d794632Smrg
98169d794632Smrg
98179d794632Smrg
98189d794632Smrg
98199d794632Smrg
98209d794632Smrg
98219d794632Smrg
98229d794632Smrg
98239d794632Smrg
98249d794632Smrg
98259d794632Smrg
98269d794632Smrg
98279d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
98289d794632Smrg
98299d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
98309d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9831c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9832c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9833c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9834c048b52eSmrgthen :
9835c048b52eSmrg  printf %s "(cached) " >&6
9836c048b52eSmrgelse $as_nop
98379d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
98389d794632Smrg/* end confdefs.h.  */
98399d794632Smrgint i;
98409d794632Smrg_ACEOF
9841c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
9842c048b52eSmrgthen :
98439d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9844c048b52eSmrgelse $as_nop
98459d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=no
98469d794632Smrgfi
9847c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
98489d794632Smrgfi
9849c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9850c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
98519d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
98529d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
98539d794632Smrgfi
98549d794632Smrg
98559d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
98569d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
98579d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
98589d794632Smrg	fi
98599d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9860c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9861c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9862c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9863c048b52eSmrgthen :
9864c048b52eSmrg  printf %s "(cached) " >&6
9865c048b52eSmrgelse $as_nop
98669d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
98679d794632Smrg/* end confdefs.h.  */
98689d794632Smrgint i;
98699d794632Smrg_ACEOF
9870c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
9871c048b52eSmrgthen :
98729d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9873c048b52eSmrgelse $as_nop
98749d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
98759d794632Smrgfi
9876c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
98779d794632Smrgfi
9878c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9879c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
98809d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
98819d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
98829d794632Smrgfi
98839d794632Smrg
98849d794632Smrgfound="no"
98859d794632Smrg
98869d794632Smrg	if test $found = "no" ; then
9887e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
98889d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
98899d794632Smrg		fi
98909d794632Smrg
9891e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
98929d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
98939d794632Smrg		fi
98949d794632Smrg
98959d794632Smrg		CFLAGS="$CFLAGS -Warray-bounds"
98969d794632Smrg
9897c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9898c048b52eSmrgprintf %s "checking if $CC supports -Warray-bounds... " >&6; }
98999d794632Smrg		cacheid=xorg_cv_cc_flag__Warray_bounds
9900c048b52eSmrg		if eval test \${$cacheid+y}
9901c048b52eSmrgthen :
9902c048b52eSmrg  printf %s "(cached) " >&6
9903c048b52eSmrgelse $as_nop
99049d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
99059d794632Smrg/* end confdefs.h.  */
99069d794632Smrgint i;
99079d794632Smrgint
9908c048b52eSmrgmain (void)
99099d794632Smrg{
99109d794632Smrg
99119d794632Smrg  ;
99129d794632Smrg  return 0;
99139d794632Smrg}
99149d794632Smrg_ACEOF
9915c048b52eSmrgif ac_fn_c_try_link "$LINENO"
9916c048b52eSmrgthen :
99179d794632Smrg  eval $cacheid=yes
9918c048b52eSmrgelse $as_nop
99199d794632Smrg  eval $cacheid=no
99209d794632Smrgfi
9921c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
99229d794632Smrg    conftest$ac_exeext conftest.$ac_ext
99239d794632Smrgfi
99249d794632Smrg
99259d794632Smrg
99269d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
99279d794632Smrg
99289d794632Smrg		eval supported=\$$cacheid
9929c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9930c048b52eSmrgprintf "%s\n" "$supported" >&6; }
99319d794632Smrg		if test "$supported" = "yes" ; then
99329d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
99339d794632Smrg			found="yes"
99349d794632Smrg		fi
99359d794632Smrg	fi
99369d794632Smrg
99379d794632Smrg
99389d794632Smrg
99399d794632Smrg
99409d794632Smrg
99419d794632Smrg
99429d794632Smrg
99439d794632Smrg
99449d794632Smrg
99459d794632Smrg
99469d794632Smrg
99479d794632Smrg
99489d794632Smrg
99499d794632Smrg
99509d794632Smrg
99519d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
99529d794632Smrg
99539d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
99549d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9955c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9956c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9957c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9958c048b52eSmrgthen :
9959c048b52eSmrg  printf %s "(cached) " >&6
9960c048b52eSmrgelse $as_nop
99619d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
99629d794632Smrg/* end confdefs.h.  */
99639d794632Smrgint i;
99649d794632Smrg_ACEOF
9965c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
9966c048b52eSmrgthen :
99679d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9968c048b52eSmrgelse $as_nop
99699d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=no
99709d794632Smrgfi
9971c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
99729d794632Smrgfi
9973c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9974c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
99759d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
99769d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
99779d794632Smrgfi
99789d794632Smrg
99799d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
99809d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
99819d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
99829d794632Smrg	fi
99839d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9984c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9985c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9986c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9987c048b52eSmrgthen :
9988c048b52eSmrg  printf %s "(cached) " >&6
9989c048b52eSmrgelse $as_nop
99909d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
99919d794632Smrg/* end confdefs.h.  */
99929d794632Smrgint i;
99939d794632Smrg_ACEOF
9994c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
9995c048b52eSmrgthen :
99969d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9997c048b52eSmrgelse $as_nop
99989d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
99999d794632Smrgfi
10000c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
100019d794632Smrgfi
10002c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10003c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
100049d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
100059d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
100069d794632Smrgfi
100079d794632Smrg
100089d794632Smrgfound="no"
100099d794632Smrg
100109d794632Smrg	if test $found = "no" ; then
10011e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
100129d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
100139d794632Smrg		fi
100149d794632Smrg
10015e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
100169d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
100179d794632Smrg		fi
100189d794632Smrg
100199d794632Smrg		CFLAGS="$CFLAGS -Wwrite-strings"
100209d794632Smrg
10021c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10022c048b52eSmrgprintf %s "checking if $CC supports -Wwrite-strings... " >&6; }
100239d794632Smrg		cacheid=xorg_cv_cc_flag__Wwrite_strings
10024c048b52eSmrg		if eval test \${$cacheid+y}
10025c048b52eSmrgthen :
10026c048b52eSmrg  printf %s "(cached) " >&6
10027c048b52eSmrgelse $as_nop
100289d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
100299d794632Smrg/* end confdefs.h.  */
100309d794632Smrgint i;
100319d794632Smrgint
10032c048b52eSmrgmain (void)
100339d794632Smrg{
100349d794632Smrg
100359d794632Smrg  ;
100369d794632Smrg  return 0;
100379d794632Smrg}
100389d794632Smrg_ACEOF
10039c048b52eSmrgif ac_fn_c_try_link "$LINENO"
10040c048b52eSmrgthen :
100419d794632Smrg  eval $cacheid=yes
10042c048b52eSmrgelse $as_nop
100439d794632Smrg  eval $cacheid=no
100449d794632Smrgfi
10045c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
100469d794632Smrg    conftest$ac_exeext conftest.$ac_ext
100479d794632Smrgfi
100489d794632Smrg
100499d794632Smrg
100509d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
100519d794632Smrg
100529d794632Smrg		eval supported=\$$cacheid
10053c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10054c048b52eSmrgprintf "%s\n" "$supported" >&6; }
100559d794632Smrg		if test "$supported" = "yes" ; then
100569d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
100579d794632Smrg			found="yes"
100589d794632Smrg		fi
100599d794632Smrg	fi
100609d794632Smrg
100619d794632Smrg
100629d794632Smrg
100639d794632Smrg
100649d794632Smrg
100659d794632Smrg
100669d794632Smrg
100679d794632Smrg
100689d794632Smrg
100699d794632Smrg
100709d794632Smrg
100719d794632Smrg
100729d794632Smrg
100739d794632Smrg
100749d794632Smrg
100759d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
100769d794632Smrg
100779d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
100789d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10079c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10080c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10081c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10082c048b52eSmrgthen :
10083c048b52eSmrg  printf %s "(cached) " >&6
10084c048b52eSmrgelse $as_nop
100859d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
100869d794632Smrg/* end confdefs.h.  */
100879d794632Smrgint i;
100889d794632Smrg_ACEOF
10089c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
10090c048b52eSmrgthen :
100919d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
10092c048b52eSmrgelse $as_nop
100939d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=no
100949d794632Smrgfi
10095c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
100969d794632Smrgfi
10097c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10098c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
100999d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
101009d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
101019d794632Smrgfi
101029d794632Smrg
101039d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
101049d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
101059d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
101069d794632Smrg	fi
101079d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10108c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10109c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10110c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10111c048b52eSmrgthen :
10112c048b52eSmrg  printf %s "(cached) " >&6
10113c048b52eSmrgelse $as_nop
101149d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
101159d794632Smrg/* end confdefs.h.  */
101169d794632Smrgint i;
101179d794632Smrg_ACEOF
10118c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
10119c048b52eSmrgthen :
101209d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10121c048b52eSmrgelse $as_nop
101229d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
101239d794632Smrgfi
10124c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
101259d794632Smrgfi
10126c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10127c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
101289d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
101299d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
101309d794632Smrgfi
101319d794632Smrg
101329d794632Smrgfound="no"
101339d794632Smrg
101349d794632Smrg	if test $found = "no" ; then
10135e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
101369d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
101379d794632Smrg		fi
101389d794632Smrg
10139e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
101409d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
101419d794632Smrg		fi
101429d794632Smrg
101439d794632Smrg		CFLAGS="$CFLAGS -Waddress"
101449d794632Smrg
10145c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10146c048b52eSmrgprintf %s "checking if $CC supports -Waddress... " >&6; }
101479d794632Smrg		cacheid=xorg_cv_cc_flag__Waddress
10148c048b52eSmrg		if eval test \${$cacheid+y}
10149c048b52eSmrgthen :
10150c048b52eSmrg  printf %s "(cached) " >&6
10151c048b52eSmrgelse $as_nop
101529d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
101539d794632Smrg/* end confdefs.h.  */
101549d794632Smrgint i;
101559d794632Smrgint
10156c048b52eSmrgmain (void)
101579d794632Smrg{
101589d794632Smrg
101599d794632Smrg  ;
101609d794632Smrg  return 0;
101619d794632Smrg}
101629d794632Smrg_ACEOF
10163c048b52eSmrgif ac_fn_c_try_link "$LINENO"
10164c048b52eSmrgthen :
101659d794632Smrg  eval $cacheid=yes
10166c048b52eSmrgelse $as_nop
101679d794632Smrg  eval $cacheid=no
101689d794632Smrgfi
10169c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
101709d794632Smrg    conftest$ac_exeext conftest.$ac_ext
101719d794632Smrgfi
101729d794632Smrg
101739d794632Smrg
101749d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
101759d794632Smrg
101769d794632Smrg		eval supported=\$$cacheid
10177c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10178c048b52eSmrgprintf "%s\n" "$supported" >&6; }
101799d794632Smrg		if test "$supported" = "yes" ; then
101809d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
101819d794632Smrg			found="yes"
101829d794632Smrg		fi
101839d794632Smrg	fi
101849d794632Smrg
101859d794632Smrg
101869d794632Smrg
101879d794632Smrg
101889d794632Smrg
101899d794632Smrg
101909d794632Smrg
101919d794632Smrg
101929d794632Smrg
101939d794632Smrg
101949d794632Smrg
101959d794632Smrg
101969d794632Smrg
101979d794632Smrg
101989d794632Smrg
101999d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
102009d794632Smrg
102019d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
102029d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10203c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10204c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10205c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10206c048b52eSmrgthen :
10207c048b52eSmrg  printf %s "(cached) " >&6
10208c048b52eSmrgelse $as_nop
102099d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
102109d794632Smrg/* end confdefs.h.  */
102119d794632Smrgint i;
102129d794632Smrg_ACEOF
10213c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
10214c048b52eSmrgthen :
102159d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
10216c048b52eSmrgelse $as_nop
102179d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=no
102189d794632Smrgfi
10219c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
102209d794632Smrgfi
10221c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10222c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
102239d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
102249d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
102259d794632Smrgfi
102269d794632Smrg
102279d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
102289d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
102299d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
102309d794632Smrg	fi
102319d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10232c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10233c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10234c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10235c048b52eSmrgthen :
10236c048b52eSmrg  printf %s "(cached) " >&6
10237c048b52eSmrgelse $as_nop
102389d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
102399d794632Smrg/* end confdefs.h.  */
102409d794632Smrgint i;
102419d794632Smrg_ACEOF
10242c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
10243c048b52eSmrgthen :
102449d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10245c048b52eSmrgelse $as_nop
102469d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
102479d794632Smrgfi
10248c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
102499d794632Smrgfi
10250c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10251c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
102529d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
102539d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
102549d794632Smrgfi
102559d794632Smrg
102569d794632Smrgfound="no"
102579d794632Smrg
102589d794632Smrg	if test $found = "no" ; then
10259e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
102609d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
102619d794632Smrg		fi
102629d794632Smrg
10263e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
102649d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
102659d794632Smrg		fi
102669d794632Smrg
102679d794632Smrg		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
102689d794632Smrg
10269c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10270c048b52eSmrgprintf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
102719d794632Smrg		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10272c048b52eSmrg		if eval test \${$cacheid+y}
10273c048b52eSmrgthen :
10274c048b52eSmrg  printf %s "(cached) " >&6
10275c048b52eSmrgelse $as_nop
102769d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
102779d794632Smrg/* end confdefs.h.  */
102789d794632Smrgint i;
102799d794632Smrgint
10280c048b52eSmrgmain (void)
102819d794632Smrg{
102829d794632Smrg
102839d794632Smrg  ;
102849d794632Smrg  return 0;
102859d794632Smrg}
102869d794632Smrg_ACEOF
10287c048b52eSmrgif ac_fn_c_try_link "$LINENO"
10288c048b52eSmrgthen :
102899d794632Smrg  eval $cacheid=yes
10290c048b52eSmrgelse $as_nop
102919d794632Smrg  eval $cacheid=no
102929d794632Smrgfi
10293c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
102949d794632Smrg    conftest$ac_exeext conftest.$ac_ext
102959d794632Smrgfi
102969d794632Smrg
102979d794632Smrg
102989d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
102999d794632Smrg
103009d794632Smrg		eval supported=\$$cacheid
10301c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10302c048b52eSmrgprintf "%s\n" "$supported" >&6; }
103039d794632Smrg		if test "$supported" = "yes" ; then
103049d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
103059d794632Smrg			found="yes"
103069d794632Smrg		fi
103079d794632Smrg	fi
103089d794632Smrg
103099d794632Smrg
103109d794632Smrg
103119d794632Smrg
103129d794632Smrg
103139d794632Smrg
103149d794632Smrg
103159d794632Smrg
103169d794632Smrg
103179d794632Smrg
103189d794632Smrg
103199d794632Smrg
103209d794632Smrg
103219d794632Smrg
103229d794632Smrg
103239d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
103249d794632Smrg
103259d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
103269d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10327c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10328c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10329c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10330c048b52eSmrgthen :
10331c048b52eSmrg  printf %s "(cached) " >&6
10332c048b52eSmrgelse $as_nop
103339d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
103349d794632Smrg/* end confdefs.h.  */
103359d794632Smrgint i;
103369d794632Smrg_ACEOF
10337c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
10338c048b52eSmrgthen :
103399d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
10340c048b52eSmrgelse $as_nop
103419d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=no
103429d794632Smrgfi
10343c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
103449d794632Smrgfi
10345c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10346c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
103479d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
103489d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
103499d794632Smrgfi
103509d794632Smrg
103519d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
103529d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
103539d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
103549d794632Smrg	fi
103559d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10356c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10357c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10358c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10359c048b52eSmrgthen :
10360c048b52eSmrg  printf %s "(cached) " >&6
10361c048b52eSmrgelse $as_nop
103629d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
103639d794632Smrg/* end confdefs.h.  */
103649d794632Smrgint i;
103659d794632Smrg_ACEOF
10366c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
10367c048b52eSmrgthen :
103689d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10369c048b52eSmrgelse $as_nop
103709d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
103719d794632Smrgfi
10372c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
103739d794632Smrgfi
10374c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10375c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
103769d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
103779d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
103789d794632Smrgfi
103799d794632Smrg
103809d794632Smrgfound="no"
103819d794632Smrg
103829d794632Smrg	if test $found = "no" ; then
10383e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
103849d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
103859d794632Smrg		fi
103869d794632Smrg
10387e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
103889d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
103899d794632Smrg		fi
103909d794632Smrg
103919d794632Smrg		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
103929d794632Smrg
10393c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10394c048b52eSmrgprintf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
103959d794632Smrg		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10396c048b52eSmrg		if eval test \${$cacheid+y}
10397c048b52eSmrgthen :
10398c048b52eSmrg  printf %s "(cached) " >&6
10399c048b52eSmrgelse $as_nop
104009d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
104019d794632Smrg/* end confdefs.h.  */
104029d794632Smrgint i;
104039d794632Smrgint
10404c048b52eSmrgmain (void)
104059d794632Smrg{
104069d794632Smrg
104079d794632Smrg  ;
104089d794632Smrg  return 0;
104099d794632Smrg}
104109d794632Smrg_ACEOF
10411c048b52eSmrgif ac_fn_c_try_link "$LINENO"
10412c048b52eSmrgthen :
104139d794632Smrg  eval $cacheid=yes
10414c048b52eSmrgelse $as_nop
104159d794632Smrg  eval $cacheid=no
104169d794632Smrgfi
10417c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
104189d794632Smrg    conftest$ac_exeext conftest.$ac_ext
104199d794632Smrgfi
104209d794632Smrg
104219d794632Smrg
104229d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
104239d794632Smrg
104249d794632Smrg		eval supported=\$$cacheid
10425c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10426c048b52eSmrgprintf "%s\n" "$supported" >&6; }
104279d794632Smrg		if test "$supported" = "yes" ; then
104289d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
104299d794632Smrg			found="yes"
104309d794632Smrg		fi
104319d794632Smrg	fi
104329d794632Smrg
104339d794632Smrg
104349d794632Smrgfi
104359d794632Smrg
104369d794632Smrg
104379d794632Smrg
104389d794632Smrg
104399d794632Smrg
104409d794632Smrg
104419d794632Smrg
104429d794632Smrg		CWARNFLAGS="$BASE_CFLAGS"
104439d794632Smrg		if  test "x$GCC" = xyes ; then
104449d794632Smrg		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
104459d794632Smrg		fi
104469d794632Smrg
104479d794632Smrg
104489d794632Smrg
104499d794632Smrg
104509d794632Smrg
104519d794632Smrg
104529d794632Smrg
104539d794632Smrg
104549d794632Smrg# Check whether --enable-strict-compilation was given.
10455c048b52eSmrgif test ${enable_strict_compilation+y}
10456c048b52eSmrgthen :
104579d794632Smrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10458c048b52eSmrgelse $as_nop
104599d794632Smrg  STRICT_COMPILE=no
104609d794632Smrgfi
104619d794632Smrg
104629d794632Smrg
104639d794632Smrg
104649d794632Smrg
104659d794632Smrg
104669d794632Smrg
104679d794632SmrgSTRICT_CFLAGS=""
104689d794632Smrg
104699d794632Smrg
104709d794632Smrg
104719d794632Smrg
104729d794632Smrg
104739d794632Smrg
104749d794632Smrg
104759d794632Smrg
104769d794632Smrg
104779d794632Smrg
104789d794632Smrg
104799d794632Smrg
104809d794632Smrg
104819d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
104829d794632Smrg
104839d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
104849d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10485c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10486c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10487c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10488c048b52eSmrgthen :
10489c048b52eSmrg  printf %s "(cached) " >&6
10490c048b52eSmrgelse $as_nop
104919d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
104929d794632Smrg/* end confdefs.h.  */
104939d794632Smrgint i;
104949d794632Smrg_ACEOF
10495c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
10496c048b52eSmrgthen :
104979d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
10498c048b52eSmrgelse $as_nop
104999d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=no
105009d794632Smrgfi
10501c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
105029d794632Smrgfi
10503c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10504c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
105059d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
105069d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
105079d794632Smrgfi
105089d794632Smrg
105099d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
105109d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
105119d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
105129d794632Smrg	fi
105139d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10514c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10515c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10516c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10517c048b52eSmrgthen :
10518c048b52eSmrg  printf %s "(cached) " >&6
10519c048b52eSmrgelse $as_nop
105209d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
105219d794632Smrg/* end confdefs.h.  */
105229d794632Smrgint i;
105239d794632Smrg_ACEOF
10524c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
10525c048b52eSmrgthen :
105269d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10527c048b52eSmrgelse $as_nop
105289d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
105299d794632Smrgfi
10530c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
105319d794632Smrgfi
10532c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10533c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
105349d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
105359d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
105369d794632Smrgfi
105379d794632Smrg
105389d794632Smrgfound="no"
105399d794632Smrg
105409d794632Smrg	if test $found = "no" ; then
10541e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
105429d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
105439d794632Smrg		fi
105449d794632Smrg
10545e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
105469d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
105479d794632Smrg		fi
105489d794632Smrg
105499d794632Smrg		CFLAGS="$CFLAGS -pedantic"
105509d794632Smrg
10551c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10552c048b52eSmrgprintf %s "checking if $CC supports -pedantic... " >&6; }
105539d794632Smrg		cacheid=xorg_cv_cc_flag__pedantic
10554c048b52eSmrg		if eval test \${$cacheid+y}
10555c048b52eSmrgthen :
10556c048b52eSmrg  printf %s "(cached) " >&6
10557c048b52eSmrgelse $as_nop
105589d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
105599d794632Smrg/* end confdefs.h.  */
105609d794632Smrgint i;
105619d794632Smrgint
10562c048b52eSmrgmain (void)
105639d794632Smrg{
105649d794632Smrg
105659d794632Smrg  ;
105669d794632Smrg  return 0;
105679d794632Smrg}
105689d794632Smrg_ACEOF
10569c048b52eSmrgif ac_fn_c_try_link "$LINENO"
10570c048b52eSmrgthen :
105719d794632Smrg  eval $cacheid=yes
10572c048b52eSmrgelse $as_nop
105739d794632Smrg  eval $cacheid=no
105749d794632Smrgfi
10575c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
105769d794632Smrg    conftest$ac_exeext conftest.$ac_ext
105779d794632Smrgfi
105789d794632Smrg
105799d794632Smrg
105809d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
105819d794632Smrg
105829d794632Smrg		eval supported=\$$cacheid
10583c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10584c048b52eSmrgprintf "%s\n" "$supported" >&6; }
105859d794632Smrg		if test "$supported" = "yes" ; then
105869d794632Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
105879d794632Smrg			found="yes"
105889d794632Smrg		fi
105899d794632Smrg	fi
105909d794632Smrg
105919d794632Smrg
105929d794632Smrg
105939d794632Smrg
105949d794632Smrg
105959d794632Smrg
105969d794632Smrg
105979d794632Smrg
105989d794632Smrg
105999d794632Smrg
106009d794632Smrg
106019d794632Smrg
106029d794632Smrg
106039d794632Smrg
106049d794632Smrg
106059d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
106069d794632Smrg
106079d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
106089d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10609c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10610c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10611c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10612c048b52eSmrgthen :
10613c048b52eSmrg  printf %s "(cached) " >&6
10614c048b52eSmrgelse $as_nop
106159d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
106169d794632Smrg/* end confdefs.h.  */
106179d794632Smrgint i;
106189d794632Smrg_ACEOF
10619c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
10620c048b52eSmrgthen :
106219d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
10622c048b52eSmrgelse $as_nop
106239d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=no
106249d794632Smrgfi
10625c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
106269d794632Smrgfi
10627c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10628c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
106299d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
106309d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
106319d794632Smrgfi
106329d794632Smrg
106339d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
106349d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
106359d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
106369d794632Smrg	fi
106379d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10638c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10639c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10640c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10641c048b52eSmrgthen :
10642c048b52eSmrg  printf %s "(cached) " >&6
10643c048b52eSmrgelse $as_nop
106449d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
106459d794632Smrg/* end confdefs.h.  */
106469d794632Smrgint i;
106479d794632Smrg_ACEOF
10648c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
10649c048b52eSmrgthen :
106509d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10651c048b52eSmrgelse $as_nop
106529d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
106539d794632Smrgfi
10654c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
106559d794632Smrgfi
10656c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10657c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
106589d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
106599d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
106609d794632Smrgfi
106619d794632Smrg
106629d794632Smrgfound="no"
106639d794632Smrg
106649d794632Smrg	if test $found = "no" ; then
10665e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
106669d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
106679d794632Smrg		fi
106689d794632Smrg
10669e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
106709d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
106719d794632Smrg		fi
106729d794632Smrg
106739d794632Smrg		CFLAGS="$CFLAGS -Werror"
106749d794632Smrg
10675c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10676c048b52eSmrgprintf %s "checking if $CC supports -Werror... " >&6; }
106779d794632Smrg		cacheid=xorg_cv_cc_flag__Werror
10678c048b52eSmrg		if eval test \${$cacheid+y}
10679c048b52eSmrgthen :
10680c048b52eSmrg  printf %s "(cached) " >&6
10681c048b52eSmrgelse $as_nop
106829d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
106839d794632Smrg/* end confdefs.h.  */
106849d794632Smrgint i;
106859d794632Smrgint
10686c048b52eSmrgmain (void)
106879d794632Smrg{
106889d794632Smrg
106899d794632Smrg  ;
106909d794632Smrg  return 0;
106919d794632Smrg}
106929d794632Smrg_ACEOF
10693c048b52eSmrgif ac_fn_c_try_link "$LINENO"
10694c048b52eSmrgthen :
106959d794632Smrg  eval $cacheid=yes
10696c048b52eSmrgelse $as_nop
106979d794632Smrg  eval $cacheid=no
106989d794632Smrgfi
10699c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
107009d794632Smrg    conftest$ac_exeext conftest.$ac_ext
107019d794632Smrgfi
107029d794632Smrg
107039d794632Smrg
107049d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
107059d794632Smrg
107069d794632Smrg		eval supported=\$$cacheid
10707c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10708c048b52eSmrgprintf "%s\n" "$supported" >&6; }
107099d794632Smrg		if test "$supported" = "yes" ; then
107109d794632Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
107119d794632Smrg			found="yes"
107129d794632Smrg		fi
107139d794632Smrg	fi
107149d794632Smrg
107159d794632Smrg	if test $found = "no" ; then
10716e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
107179d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
107189d794632Smrg		fi
107199d794632Smrg
10720e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
107219d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
107229d794632Smrg		fi
107239d794632Smrg
107249d794632Smrg		CFLAGS="$CFLAGS -errwarn"
107259d794632Smrg
10726c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10727c048b52eSmrgprintf %s "checking if $CC supports -errwarn... " >&6; }
107289d794632Smrg		cacheid=xorg_cv_cc_flag__errwarn
10729c048b52eSmrg		if eval test \${$cacheid+y}
10730c048b52eSmrgthen :
10731c048b52eSmrg  printf %s "(cached) " >&6
10732c048b52eSmrgelse $as_nop
107339d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107349d794632Smrg/* end confdefs.h.  */
107359d794632Smrgint i;
107369d794632Smrgint
10737c048b52eSmrgmain (void)
107389d794632Smrg{
107399d794632Smrg
107409d794632Smrg  ;
107419d794632Smrg  return 0;
107429d794632Smrg}
107439d794632Smrg_ACEOF
10744c048b52eSmrgif ac_fn_c_try_link "$LINENO"
10745c048b52eSmrgthen :
107469d794632Smrg  eval $cacheid=yes
10747c048b52eSmrgelse $as_nop
107489d794632Smrg  eval $cacheid=no
107499d794632Smrgfi
10750c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
107519d794632Smrg    conftest$ac_exeext conftest.$ac_ext
107529d794632Smrgfi
107539d794632Smrg
107549d794632Smrg
107559d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
107569d794632Smrg
107579d794632Smrg		eval supported=\$$cacheid
10758c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10759c048b52eSmrgprintf "%s\n" "$supported" >&6; }
107609d794632Smrg		if test "$supported" = "yes" ; then
107619d794632Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
107629d794632Smrg			found="yes"
107639d794632Smrg		fi
107649d794632Smrg	fi
107659d794632Smrg
107669d794632Smrg
107679d794632Smrg
107689d794632Smrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
107699d794632Smrg# activate it with -Werror, so we add it here explicitly.
107709d794632Smrg
107719d794632Smrg
107729d794632Smrg
107739d794632Smrg
107749d794632Smrg
107759d794632Smrg
107769d794632Smrg
107779d794632Smrg
107789d794632Smrg
107799d794632Smrg
107809d794632Smrg
107819d794632Smrg
107829d794632Smrg
107839d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
107849d794632Smrg
107859d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
107869d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10787c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10788c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10789c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10790c048b52eSmrgthen :
10791c048b52eSmrg  printf %s "(cached) " >&6
10792c048b52eSmrgelse $as_nop
107939d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107949d794632Smrg/* end confdefs.h.  */
107959d794632Smrgint i;
107969d794632Smrg_ACEOF
10797c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
10798c048b52eSmrgthen :
107999d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
10800c048b52eSmrgelse $as_nop
108019d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=no
108029d794632Smrgfi
10803c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
108049d794632Smrgfi
10805c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10806c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
108079d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
108089d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
108099d794632Smrgfi
108109d794632Smrg
108119d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
108129d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
108139d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
108149d794632Smrg	fi
108159d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10816c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10817c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10818c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10819c048b52eSmrgthen :
10820c048b52eSmrg  printf %s "(cached) " >&6
10821c048b52eSmrgelse $as_nop
108229d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
108239d794632Smrg/* end confdefs.h.  */
108249d794632Smrgint i;
108259d794632Smrg_ACEOF
10826c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
10827c048b52eSmrgthen :
108289d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10829c048b52eSmrgelse $as_nop
108309d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
108319d794632Smrgfi
10832c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
108339d794632Smrgfi
10834c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10835c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
108369d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
108379d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
108389d794632Smrgfi
108399d794632Smrg
108409d794632Smrgfound="no"
108419d794632Smrg
108429d794632Smrg	if test $found = "no" ; then
10843e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
108449d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
108459d794632Smrg		fi
108469d794632Smrg
10847e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
108489d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
108499d794632Smrg		fi
108509d794632Smrg
108519d794632Smrg		CFLAGS="$CFLAGS -Werror=attributes"
108529d794632Smrg
10853c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10854c048b52eSmrgprintf %s "checking if $CC supports -Werror=attributes... " >&6; }
10855e8ac26b0Smrg		cacheid=xorg_cv_cc_flag__Werror_attributes
10856c048b52eSmrg		if eval test \${$cacheid+y}
10857c048b52eSmrgthen :
10858c048b52eSmrg  printf %s "(cached) " >&6
10859c048b52eSmrgelse $as_nop
108609d794632Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
108619d794632Smrg/* end confdefs.h.  */
108629d794632Smrgint i;
108639d794632Smrgint
10864c048b52eSmrgmain (void)
108659d794632Smrg{
108669d794632Smrg
108679d794632Smrg  ;
108689d794632Smrg  return 0;
108699d794632Smrg}
108709d794632Smrg_ACEOF
10871c048b52eSmrgif ac_fn_c_try_link "$LINENO"
10872c048b52eSmrgthen :
108739d794632Smrg  eval $cacheid=yes
10874c048b52eSmrgelse $as_nop
108759d794632Smrg  eval $cacheid=no
108769d794632Smrgfi
10877c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
108789d794632Smrg    conftest$ac_exeext conftest.$ac_ext
108799d794632Smrgfi
108809d794632Smrg
108819d794632Smrg
108829d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
108839d794632Smrg
108849d794632Smrg		eval supported=\$$cacheid
10885c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10886c048b52eSmrgprintf "%s\n" "$supported" >&6; }
108879d794632Smrg		if test "$supported" = "yes" ; then
108889d794632Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
108899d794632Smrg			found="yes"
108909d794632Smrg		fi
108919d794632Smrg	fi
108929d794632Smrg
108939d794632Smrg
108949d794632Smrg
108959d794632Smrgif test "x$STRICT_COMPILE" = "xyes"; then
108969d794632Smrg    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
108979d794632Smrg    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
108989d794632Smrgfi
108999d794632Smrg
109009d794632Smrg
109019d794632Smrg
109029d794632Smrg
109039d794632Smrg
109049d794632Smrg
109059d794632Smrgcat >>confdefs.h <<_ACEOF
109069d794632Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
109079d794632Smrg_ACEOF
109089d794632Smrg
109099d794632Smrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
109109d794632Smrg	if test "x$PVM" = "x"; then
109119d794632Smrg		PVM="0"
109129d794632Smrg	fi
109139d794632Smrg
10914c048b52eSmrgprintf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
109159d794632Smrg
109169d794632Smrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
109179d794632Smrg	if test "x$PVP" = "x"; then
109189d794632Smrg		PVP="0"
109199d794632Smrg	fi
109209d794632Smrg
10921c048b52eSmrgprintf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
109229d794632Smrg
109239d794632Smrg
109249d794632Smrg
10925c048b52eSmrgCHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
109269d794632Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10927c048b52eSmrg|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10928c048b52eSmrgtouch \$(top_srcdir)/ChangeLog; \
10929c048b52eSmrgecho 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
109309d794632Smrg
109319d794632Smrg
109329d794632Smrg
109339d794632Smrg
109349d794632Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
109359d794632SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
109369d794632Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10937c048b52eSmrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
10938c048b52eSmrgtouch \$(top_srcdir)/INSTALL; \
10939c048b52eSmrgecho 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
109409d794632Smrg
109419d794632Smrg
109429d794632Smrg
109439d794632Smrg
109449d794632Smrg
109459d794632Smrg
10946c048b52eSmrgcase $host_os in
10947c048b52eSmrg    solaris*)
10948c048b52eSmrg        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
10949c048b52eSmrg        # check for a man page file found in later versions that use
10950c048b52eSmrg        # traditional section numbers instead
10951c048b52eSmrg        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
10952c048b52eSmrgprintf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
10953c048b52eSmrgif test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
10954c048b52eSmrgthen :
10955c048b52eSmrg  printf %s "(cached) " >&6
10956c048b52eSmrgelse $as_nop
10957c048b52eSmrg  test "$cross_compiling" = yes &&
10958c048b52eSmrg  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10959c048b52eSmrgif test -r "/usr/share/man/man7/attributes.7"; then
10960c048b52eSmrg  ac_cv_file__usr_share_man_man7_attributes_7=yes
10961c048b52eSmrgelse
10962c048b52eSmrg  ac_cv_file__usr_share_man_man7_attributes_7=no
10963c048b52eSmrgfi
10964c048b52eSmrgfi
10965c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
10966c048b52eSmrgprintf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
10967c048b52eSmrgif test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
10968c048b52eSmrgthen :
10969c048b52eSmrg  SYSV_MAN_SECTIONS=false
10970c048b52eSmrgelse $as_nop
10971c048b52eSmrg  SYSV_MAN_SECTIONS=true
10972c048b52eSmrgfi
10973c048b52eSmrg
10974c048b52eSmrg        ;;
10975c048b52eSmrg    *) SYSV_MAN_SECTIONS=false ;;
10976c048b52eSmrgesac
10977c048b52eSmrg
109789d794632Smrgif test x$APP_MAN_SUFFIX = x    ; then
109799d794632Smrg    APP_MAN_SUFFIX=1
109809d794632Smrgfi
109819d794632Smrgif test x$APP_MAN_DIR = x    ; then
109829d794632Smrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
109839d794632Smrgfi
109849d794632Smrg
109859d794632Smrgif test x$LIB_MAN_SUFFIX = x    ; then
109869fe995a9Smrg    LIB_MAN_SUFFIX=3
109879fe995a9Smrgfi
109889fe995a9Smrgif test x$LIB_MAN_DIR = x    ; then
109899fe995a9Smrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
109909fe995a9Smrgfi
109919fe995a9Smrg
109929fe995a9Smrgif test x$FILE_MAN_SUFFIX = x    ; then
10993c048b52eSmrg    case $SYSV_MAN_SECTIONS in
10994c048b52eSmrg	true)				FILE_MAN_SUFFIX=4  ;;
109956fbef84aSmrg	*)				FILE_MAN_SUFFIX=5  ;;
109969fe995a9Smrg    esac
109979fe995a9Smrgfi
109989fe995a9Smrgif test x$FILE_MAN_DIR = x    ; then
109999fe995a9Smrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
110009fe995a9Smrgfi
110019fe995a9Smrg
110029fe995a9Smrgif test x$MISC_MAN_SUFFIX = x    ; then
11003c048b52eSmrg    case $SYSV_MAN_SECTIONS in
11004c048b52eSmrg	true)				MISC_MAN_SUFFIX=5  ;;
110056fbef84aSmrg	*)				MISC_MAN_SUFFIX=7  ;;
110069fe995a9Smrg    esac
110079fe995a9Smrgfi
110089fe995a9Smrgif test x$MISC_MAN_DIR = x    ; then
110099fe995a9Smrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
110109fe995a9Smrgfi
110119fe995a9Smrg
110129fe995a9Smrgif test x$DRIVER_MAN_SUFFIX = x    ; then
11013c048b52eSmrg    case $SYSV_MAN_SECTIONS in
11014c048b52eSmrg	true)				DRIVER_MAN_SUFFIX=7  ;;
110156fbef84aSmrg	*)				DRIVER_MAN_SUFFIX=4  ;;
110169fe995a9Smrg    esac
110179fe995a9Smrgfi
110189fe995a9Smrgif test x$DRIVER_MAN_DIR = x    ; then
110199fe995a9Smrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
110209fe995a9Smrgfi
110219fe995a9Smrg
110229fe995a9Smrgif test x$ADMIN_MAN_SUFFIX = x    ; then
11023c048b52eSmrg    case $SYSV_MAN_SECTIONS in
11024c048b52eSmrg	true)				ADMIN_MAN_SUFFIX=1m ;;
110256fbef84aSmrg	*)				ADMIN_MAN_SUFFIX=8  ;;
110269fe995a9Smrg    esac
110279fe995a9Smrgfi
110289fe995a9Smrgif test x$ADMIN_MAN_DIR = x    ; then
110299fe995a9Smrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
110309fe995a9Smrgfi
110319fe995a9Smrg
110329fe995a9Smrg
110339fe995a9Smrg
110349fe995a9Smrg
110359fe995a9Smrg
110369fe995a9Smrg
110379fe995a9Smrg
110389fe995a9Smrg
110399fe995a9Smrg
110409fe995a9Smrg
110419fe995a9Smrg
110429fe995a9Smrg
110439fe995a9Smrg
110449fe995a9Smrg
110459fe995a9Smrg
11046b62cc08cSmrgXORG_MAN_PAGE="X Version 11"
11047b62cc08cSmrg
11048b62cc08cSmrgMAN_SUBSTS="\
11049b62cc08cSmrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11050b62cc08cSmrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11051b62cc08cSmrg	-e 's|__xservername__|Xorg|g' \
11052b62cc08cSmrg	-e 's|__xconfigfile__|xorg.conf|g' \
11053b62cc08cSmrg	-e 's|__projectroot__|\$(prefix)|g' \
11054b62cc08cSmrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11055b62cc08cSmrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11056b62cc08cSmrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11057b62cc08cSmrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11058b62cc08cSmrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11059b62cc08cSmrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11060b62cc08cSmrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11061b62cc08cSmrg
11062b62cc08cSmrg
11063b62cc08cSmrg
11064b62cc08cSmrg# Check whether --enable-silent-rules was given.
11065c048b52eSmrgif test ${enable_silent_rules+y}
11066c048b52eSmrgthen :
11067b62cc08cSmrg  enableval=$enable_silent_rules;
11068b62cc08cSmrgfi
11069b62cc08cSmrg
110709d794632Smrgcase $enable_silent_rules in # (((
110719d794632Smrg  yes) AM_DEFAULT_VERBOSITY=0;;
110729d794632Smrg   no) AM_DEFAULT_VERBOSITY=1;;
110739d794632Smrg    *) AM_DEFAULT_VERBOSITY=0;;
11074b62cc08cSmrgesac
110759d794632Smrgam_make=${MAKE-make}
11076c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11077c048b52eSmrgprintf %s "checking whether $am_make supports nested variables... " >&6; }
11078c048b52eSmrgif test ${am_cv_make_support_nested_variables+y}
11079c048b52eSmrgthen :
11080c048b52eSmrg  printf %s "(cached) " >&6
11081c048b52eSmrgelse $as_nop
11082c048b52eSmrg  if printf "%s\n" 'TRUE=$(BAR$(V))
110839d794632SmrgBAR0=false
110849d794632SmrgBAR1=true
110859d794632SmrgV=1
110869d794632Smrgam__doit:
110879d794632Smrg	@$(TRUE)
110889d794632Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
110899d794632Smrg  am_cv_make_support_nested_variables=yes
110909d794632Smrgelse
110919d794632Smrg  am_cv_make_support_nested_variables=no
110929d794632Smrgfi
110939d794632Smrgfi
11094c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11095c048b52eSmrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
110969d794632Smrgif test $am_cv_make_support_nested_variables = yes; then
110979d794632Smrg    AM_V='$(V)'
110989d794632Smrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
110999d794632Smrgelse
111009d794632Smrg  AM_V=$AM_DEFAULT_VERBOSITY
111019d794632Smrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
111029d794632Smrgfi
11103b62cc08cSmrgAM_BACKSLASH='\'
11104b62cc08cSmrg
11105b62cc08cSmrg
111069fe995a9Smrg
11107b62cc08cSmrg# Checks for pkg-config packages
111089fe995a9Smrg
11109b62cc08cSmrgpkg_failed=no
11110c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ICEAUTH" >&5
11111c048b52eSmrgprintf %s "checking for ICEAUTH... " >&6; }
11112b62cc08cSmrg
11113b62cc08cSmrgif test -n "$ICEAUTH_CFLAGS"; then
11114b62cc08cSmrg    pkg_cv_ICEAUTH_CFLAGS="$ICEAUTH_CFLAGS"
11115b62cc08cSmrg elif test -n "$PKG_CONFIG"; then
11116b62cc08cSmrg    if test -n "$PKG_CONFIG" && \
11117c048b52eSmrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.22 ice\""; } >&5
111189d794632Smrg  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.22 ice") 2>&5
11119b62cc08cSmrg  ac_status=$?
11120c048b52eSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11121b62cc08cSmrg  test $ac_status = 0; }; then
111229d794632Smrg  pkg_cv_ICEAUTH_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.22 ice" 2>/dev/null`
111236fbef84aSmrg		      test "x$?" != "x0" && pkg_failed=yes
11124b62cc08cSmrgelse
11125b62cc08cSmrg  pkg_failed=yes
11126b62cc08cSmrgfi
11127b62cc08cSmrg else
11128b62cc08cSmrg    pkg_failed=untried
11129b62cc08cSmrgfi
11130b62cc08cSmrgif test -n "$ICEAUTH_LIBS"; then
11131b62cc08cSmrg    pkg_cv_ICEAUTH_LIBS="$ICEAUTH_LIBS"
11132b62cc08cSmrg elif test -n "$PKG_CONFIG"; then
11133b62cc08cSmrg    if test -n "$PKG_CONFIG" && \
11134c048b52eSmrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.22 ice\""; } >&5
111359d794632Smrg  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.22 ice") 2>&5
11136b62cc08cSmrg  ac_status=$?
11137c048b52eSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11138b62cc08cSmrg  test $ac_status = 0; }; then
111399d794632Smrg  pkg_cv_ICEAUTH_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.22 ice" 2>/dev/null`
111406fbef84aSmrg		      test "x$?" != "x0" && pkg_failed=yes
111419fe995a9Smrgelse
11142b62cc08cSmrg  pkg_failed=yes
11143b62cc08cSmrgfi
11144b62cc08cSmrg else
11145b62cc08cSmrg    pkg_failed=untried
111469fe995a9Smrgfi
111479fe995a9Smrg
111489fe995a9Smrg
111499fe995a9Smrg
11150b62cc08cSmrgif test $pkg_failed = yes; then
11151c048b52eSmrg   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11152c048b52eSmrgprintf "%s\n" "no" >&6; }
111539fe995a9Smrg
11154b62cc08cSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11155b62cc08cSmrg        _pkg_short_errors_supported=yes
11156b62cc08cSmrgelse
11157b62cc08cSmrg        _pkg_short_errors_supported=no
11158b62cc08cSmrgfi
11159b62cc08cSmrg        if test $_pkg_short_errors_supported = yes; then
111606fbef84aSmrg	        ICEAUTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.22 ice" 2>&1`
11161b62cc08cSmrg        else
111626fbef84aSmrg	        ICEAUTH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.22 ice" 2>&1`
11163b62cc08cSmrg        fi
11164b62cc08cSmrg	# Put the nasty error message in config.log where it belongs
11165b62cc08cSmrg	echo "$ICEAUTH_PKG_ERRORS" >&5
111669fe995a9Smrg
111679d794632Smrg	as_fn_error $? "Package requirements (xproto >= 7.0.22 ice) were not met:
11168b62cc08cSmrg
11169b62cc08cSmrg$ICEAUTH_PKG_ERRORS
11170b62cc08cSmrg
11171b62cc08cSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
11172b62cc08cSmrginstalled software in a non-standard prefix.
11173b62cc08cSmrg
11174b62cc08cSmrgAlternatively, you may set the environment variables ICEAUTH_CFLAGS
11175b62cc08cSmrgand ICEAUTH_LIBS to avoid the need to call pkg-config.
111766fbef84aSmrgSee the pkg-config man page for more details." "$LINENO" 5
11177b62cc08cSmrgelif test $pkg_failed = untried; then
11178c048b52eSmrg     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11179c048b52eSmrgprintf "%s\n" "no" >&6; }
11180c048b52eSmrg	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11181c048b52eSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11182b62cc08cSmrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11183b62cc08cSmrgis in your PATH or set the PKG_CONFIG environment variable to the full
11184b62cc08cSmrgpath to pkg-config.
11185b62cc08cSmrg
11186b62cc08cSmrgAlternatively, you may set the environment variables ICEAUTH_CFLAGS
11187b62cc08cSmrgand ICEAUTH_LIBS to avoid the need to call pkg-config.
11188b62cc08cSmrgSee the pkg-config man page for more details.
11189b62cc08cSmrg
11190b62cc08cSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
11191b62cc08cSmrgSee \`config.log' for more details" "$LINENO" 5; }
11192b62cc08cSmrgelse
11193b62cc08cSmrg	ICEAUTH_CFLAGS=$pkg_cv_ICEAUTH_CFLAGS
11194b62cc08cSmrg	ICEAUTH_LIBS=$pkg_cv_ICEAUTH_LIBS
11195c048b52eSmrg        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11196c048b52eSmrgprintf "%s\n" "yes" >&6; }
111976fbef84aSmrg
11198b62cc08cSmrgfi
11199b62cc08cSmrg
11200b62cc08cSmrg
11201b62cc08cSmrg
11202b62cc08cSmrg
11203b62cc08cSmrg
11204b62cc08cSmrg
11205b62cc08cSmrg# Check whether --with-lint was given.
11206c048b52eSmrgif test ${with_lint+y}
11207c048b52eSmrgthen :
11208b62cc08cSmrg  withval=$with_lint; use_lint=$withval
11209c048b52eSmrgelse $as_nop
11210b62cc08cSmrg  use_lint=no
11211b62cc08cSmrgfi
11212b62cc08cSmrg
11213b62cc08cSmrg
11214b62cc08cSmrg# Obtain platform specific info like program name and options
11215b62cc08cSmrg# The lint program on FreeBSD and NetBSD is different from the one on Solaris
11216b62cc08cSmrgcase $host_os in
11217b62cc08cSmrg  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
11218b62cc08cSmrg	lint_name=splint
11219b62cc08cSmrg	lint_options="-badflag"
11220b62cc08cSmrg	;;
11221b62cc08cSmrg  *freebsd* | *netbsd*)
11222b62cc08cSmrg	lint_name=lint
11223b62cc08cSmrg	lint_options="-u -b"
11224b62cc08cSmrg	;;
11225b62cc08cSmrg  *solaris*)
11226b62cc08cSmrg	lint_name=lint
11227b62cc08cSmrg	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
11228b62cc08cSmrg	;;
11229b62cc08cSmrgesac
11230b62cc08cSmrg
11231b62cc08cSmrg# Test for the presence of the program (either guessed by the code or spelled out by the user)
11232b62cc08cSmrgif test "x$use_lint" = x"yes" ; then
11233b62cc08cSmrg   # Extract the first word of "$lint_name", so it can be a program name with args.
11234b62cc08cSmrgset dummy $lint_name; ac_word=$2
11235c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11236c048b52eSmrgprintf %s "checking for $ac_word... " >&6; }
11237c048b52eSmrgif test ${ac_cv_path_LINT+y}
11238c048b52eSmrgthen :
11239c048b52eSmrg  printf %s "(cached) " >&6
11240c048b52eSmrgelse $as_nop
11241b62cc08cSmrg  case $LINT in
11242b62cc08cSmrg  [\\/]* | ?:[\\/]*)
11243b62cc08cSmrg  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
11244b62cc08cSmrg  ;;
11245b62cc08cSmrg  *)
11246b62cc08cSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11247b62cc08cSmrgfor as_dir in $PATH
11248b62cc08cSmrgdo
11249b62cc08cSmrg  IFS=$as_save_IFS
11250c048b52eSmrg  case $as_dir in #(((
11251c048b52eSmrg    '') as_dir=./ ;;
11252c048b52eSmrg    */) ;;
11253c048b52eSmrg    *) as_dir=$as_dir/ ;;
11254c048b52eSmrg  esac
11255b62cc08cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
11256c048b52eSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11257c048b52eSmrg    ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
11258c048b52eSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11259b62cc08cSmrg    break 2
11260b62cc08cSmrg  fi
11261b62cc08cSmrgdone
11262b62cc08cSmrg  done
11263b62cc08cSmrgIFS=$as_save_IFS
11264b62cc08cSmrg
11265b62cc08cSmrg  ;;
11266b62cc08cSmrgesac
11267b62cc08cSmrgfi
11268b62cc08cSmrgLINT=$ac_cv_path_LINT
11269b62cc08cSmrgif test -n "$LINT"; then
11270c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
11271c048b52eSmrgprintf "%s\n" "$LINT" >&6; }
11272b62cc08cSmrgelse
11273c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11274c048b52eSmrgprintf "%s\n" "no" >&6; }
11275b62cc08cSmrgfi
11276b62cc08cSmrg
11277b62cc08cSmrg
11278b62cc08cSmrg   if test "x$LINT" = "x"; then
11279b62cc08cSmrg        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
11280b62cc08cSmrg   fi
11281b62cc08cSmrgelif test "x$use_lint" = x"no" ; then
11282b62cc08cSmrg   if test "x$LINT" != "x"; then
11283c048b52eSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
11284c048b52eSmrgprintf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
11285b62cc08cSmrg   fi
11286b62cc08cSmrgelse
11287b62cc08cSmrg   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
11288b62cc08cSmrgfi
11289b62cc08cSmrg
11290b62cc08cSmrg# User supplied flags override default flags
11291b62cc08cSmrgif test "x$LINT_FLAGS" != "x"; then
11292b62cc08cSmrg   lint_options=$LINT_FLAGS
11293b62cc08cSmrgfi
11294b62cc08cSmrg
11295b62cc08cSmrgLINT_FLAGS=$lint_options
11296b62cc08cSmrg
11297b62cc08cSmrg if test "x$LINT" != x; then
11298b62cc08cSmrg  LINT_TRUE=
11299b62cc08cSmrg  LINT_FALSE='#'
11300b62cc08cSmrgelse
11301b62cc08cSmrg  LINT_TRUE='#'
11302b62cc08cSmrg  LINT_FALSE=
11303b62cc08cSmrgfi
113049fe995a9Smrg
113059fe995a9Smrg
113069fe995a9Smrg
113079fe995a9Smrg
1130890b6713cSmrgac_config_files="$ac_config_files Makefile man/Makefile"
113099fe995a9Smrg
113109fe995a9Smrgcat >confcache <<\_ACEOF
113119fe995a9Smrg# This file is a shell script that caches the results of configure
113129fe995a9Smrg# tests run on this system so they can be shared between configure
113139fe995a9Smrg# scripts and configure runs, see configure's option --config-cache.
113149fe995a9Smrg# It is not useful on other systems.  If it contains results you don't
113159fe995a9Smrg# want to keep, you may remove or edit it.
113169fe995a9Smrg#
113179fe995a9Smrg# config.status only pays attention to the cache file if you give it
113189fe995a9Smrg# the --recheck option to rerun configure.
113199fe995a9Smrg#
113209fe995a9Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
113219fe995a9Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
113229fe995a9Smrg# following values.
113239fe995a9Smrg
113249fe995a9Smrg_ACEOF
113259fe995a9Smrg
113269fe995a9Smrg# The following way of writing the cache mishandles newlines in values,
113279fe995a9Smrg# but we know of no workaround that is simple, portable, and efficient.
113289fe995a9Smrg# So, we kill variables containing newlines.
113299fe995a9Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
113309fe995a9Smrg# and sets the high bit in the cache file unless we assign to the vars.
113319fe995a9Smrg(
113329fe995a9Smrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
113339fe995a9Smrg    eval ac_val=\$$ac_var
113349fe995a9Smrg    case $ac_val in #(
113359fe995a9Smrg    *${as_nl}*)
113369fe995a9Smrg      case $ac_var in #(
11337c048b52eSmrg      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11338c048b52eSmrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
113399fe995a9Smrg      esac
113409fe995a9Smrg      case $ac_var in #(
113419fe995a9Smrg      _ | IFS | as_nl) ;; #(
11342b62cc08cSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11343b62cc08cSmrg      *) { eval $ac_var=; unset $ac_var;} ;;
113449fe995a9Smrg      esac ;;
113459fe995a9Smrg    esac
113469fe995a9Smrg  done
113479fe995a9Smrg
113489fe995a9Smrg  (set) 2>&1 |
113499fe995a9Smrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
113509fe995a9Smrg    *${as_nl}ac_space=\ *)
11351b62cc08cSmrg      # `set' does not quote correctly, so add quotes: double-quote
11352b62cc08cSmrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
113539fe995a9Smrg      sed -n \
113549fe995a9Smrg	"s/'/'\\\\''/g;
113559fe995a9Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
113569fe995a9Smrg      ;; #(
113579fe995a9Smrg    *)
113589fe995a9Smrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
113599fe995a9Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
113609fe995a9Smrg      ;;
113619fe995a9Smrg    esac |
113629fe995a9Smrg    sort
113639fe995a9Smrg) |
113649fe995a9Smrg  sed '
113659fe995a9Smrg     /^ac_cv_env_/b end
113669fe995a9Smrg     t clear
113679fe995a9Smrg     :clear
11368c048b52eSmrg     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
113699fe995a9Smrg     t end
113709fe995a9Smrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
113719fe995a9Smrg     :end' >>confcache
113729fe995a9Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
113739fe995a9Smrg  if test -w "$cache_file"; then
11374b62cc08cSmrg    if test "x$cache_file" != "x/dev/null"; then
11375c048b52eSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11376c048b52eSmrgprintf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11377b62cc08cSmrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
11378b62cc08cSmrg	cat confcache >"$cache_file"
11379b62cc08cSmrg      else
11380b62cc08cSmrg        case $cache_file in #(
11381b62cc08cSmrg        */* | ?:*)
11382b62cc08cSmrg	  mv -f confcache "$cache_file"$$ &&
11383b62cc08cSmrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11384b62cc08cSmrg        *)
11385b62cc08cSmrg	  mv -f confcache "$cache_file" ;;
11386b62cc08cSmrg	esac
11387b62cc08cSmrg      fi
11388b62cc08cSmrg    fi
113899fe995a9Smrg  else
11390c048b52eSmrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11391c048b52eSmrgprintf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
113929fe995a9Smrg  fi
113939fe995a9Smrgfi
113949fe995a9Smrgrm -f confcache
113959fe995a9Smrg
113969fe995a9Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
113979fe995a9Smrg# Let make expand exec_prefix.
113989fe995a9Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
113999fe995a9Smrg
114009fe995a9SmrgDEFS=-DHAVE_CONFIG_H
114019fe995a9Smrg
114029fe995a9Smrgac_libobjs=
114039fe995a9Smrgac_ltlibobjs=
11404b62cc08cSmrgU=
114059fe995a9Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
114069fe995a9Smrg  # 1. Remove the extension, and $U if already installed.
114079fe995a9Smrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11408c048b52eSmrg  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
114099fe995a9Smrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
114109fe995a9Smrg  #    will be set to the directory where LIBOBJS objects are built.
11411b62cc08cSmrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11412b62cc08cSmrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
114139fe995a9Smrgdone
114149fe995a9SmrgLIBOBJS=$ac_libobjs
114159fe995a9Smrg
114169fe995a9SmrgLTLIBOBJS=$ac_ltlibobjs
114179fe995a9Smrg
114189fe995a9Smrg
11419c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11420c048b52eSmrgprintf %s "checking that generated files are newer than configure... " >&6; }
114219d794632Smrg   if test -n "$am_sleep_pid"; then
114229d794632Smrg     # Hide warnings about reused PIDs.
114239d794632Smrg     wait $am_sleep_pid 2>/dev/null
114249d794632Smrg   fi
11425c048b52eSmrg   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11426c048b52eSmrgprintf "%s\n" "done" >&6; }
11427b62cc08cSmrg if test -n "$EXEEXT"; then
11428b62cc08cSmrg  am__EXEEXT_TRUE=
11429b62cc08cSmrg  am__EXEEXT_FALSE='#'
11430b62cc08cSmrgelse
11431b62cc08cSmrg  am__EXEEXT_TRUE='#'
11432b62cc08cSmrg  am__EXEEXT_FALSE=
11433b62cc08cSmrgfi
11434b62cc08cSmrg
114359fe995a9Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11436b62cc08cSmrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
11437b62cc08cSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
114389fe995a9Smrgfi
114399fe995a9Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11440b62cc08cSmrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11441b62cc08cSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
114429fe995a9Smrgfi
114439fe995a9Smrgif test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
11444b62cc08cSmrg  as_fn_error $? "conditional \"LINT\" was never defined.
11445b62cc08cSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
114469fe995a9Smrgfi
114479fe995a9Smrg
11448b62cc08cSmrg: "${CONFIG_STATUS=./config.status}"
11449b62cc08cSmrgac_write_fail=0
114509fe995a9Smrgac_clean_files_save=$ac_clean_files
114519fe995a9Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
11452c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11453c048b52eSmrgprintf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11454b62cc08cSmrgas_write_fail=0
11455b62cc08cSmrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
114569fe995a9Smrg#! $SHELL
114579fe995a9Smrg# Generated by $as_me.
114589fe995a9Smrg# Run this file to recreate the current configuration.
114599fe995a9Smrg# Compiler output produced by configure, useful for debugging
114609fe995a9Smrg# configure, is in config.log if it exists.
114619fe995a9Smrg
114629fe995a9Smrgdebug=false
114639fe995a9Smrgac_cs_recheck=false
114649fe995a9Smrgac_cs_silent=false
114659fe995a9Smrg
11466b62cc08cSmrgSHELL=\${CONFIG_SHELL-$SHELL}
11467b62cc08cSmrgexport SHELL
11468b62cc08cSmrg_ASEOF
11469b62cc08cSmrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11470b62cc08cSmrg## -------------------- ##
11471b62cc08cSmrg## M4sh Initialization. ##
11472b62cc08cSmrg## -------------------- ##
114739fe995a9Smrg
114749fe995a9Smrg# Be more Bourne compatible
114759fe995a9SmrgDUALCASE=1; export DUALCASE # for MKS sh
11476c048b52eSmrgas_nop=:
11477c048b52eSmrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11478c048b52eSmrgthen :
114799fe995a9Smrg  emulate sh
114809fe995a9Smrg  NULLCMD=:
11481b62cc08cSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
114829fe995a9Smrg  # is contrary to our usage.  Disable this feature.
114839fe995a9Smrg  alias -g '${1+"$@"}'='"$@"'
114849fe995a9Smrg  setopt NO_GLOB_SUBST
11485c048b52eSmrgelse $as_nop
11486b62cc08cSmrg  case `(set -o) 2>/dev/null` in #(
11487b62cc08cSmrg  *posix*) :
11488b62cc08cSmrg    set -o posix ;; #(
11489b62cc08cSmrg  *) :
11490b62cc08cSmrg     ;;
114919fe995a9Smrgesac
114929fe995a9Smrgfi
114939fe995a9Smrg
114949fe995a9Smrg
11495c048b52eSmrg
11496c048b52eSmrg# Reset variables that may have inherited troublesome values from
11497c048b52eSmrg# the environment.
11498c048b52eSmrg
11499c048b52eSmrg# IFS needs to be set, to space, tab, and newline, in precisely that order.
11500c048b52eSmrg# (If _AS_PATH_WALK were called with IFS unset, it would have the
11501c048b52eSmrg# side effect of setting IFS to empty, thus disabling word splitting.)
11502c048b52eSmrg# Quoting is to prevent editors from complaining about space-tab.
11503b62cc08cSmrgas_nl='
11504b62cc08cSmrg'
11505b62cc08cSmrgexport as_nl
11506c048b52eSmrgIFS=" ""	$as_nl"
11507c048b52eSmrg
11508c048b52eSmrgPS1='$ '
11509c048b52eSmrgPS2='> '
11510c048b52eSmrgPS4='+ '
11511c048b52eSmrg
11512c048b52eSmrg# Ensure predictable behavior from utilities with locale-dependent output.
11513c048b52eSmrgLC_ALL=C
11514c048b52eSmrgexport LC_ALL
11515c048b52eSmrgLANGUAGE=C
11516c048b52eSmrgexport LANGUAGE
11517c048b52eSmrg
11518c048b52eSmrg# We cannot yet rely on "unset" to work, but we need these variables
11519c048b52eSmrg# to be unset--not just set to an empty or harmless value--now, to
11520c048b52eSmrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
11521c048b52eSmrg# also avoids known problems related to "unset" and subshell syntax
11522c048b52eSmrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11523c048b52eSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11524c048b52eSmrgdo eval test \${$as_var+y} \
11525c048b52eSmrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11526c048b52eSmrgdone
11527c048b52eSmrg
11528c048b52eSmrg# Ensure that fds 0, 1, and 2 are open.
11529c048b52eSmrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11530c048b52eSmrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11531c048b52eSmrgif (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
115329fe995a9Smrg
11533b62cc08cSmrg# The user is always right.
11534c048b52eSmrgif ${PATH_SEPARATOR+false} :; then
11535b62cc08cSmrg  PATH_SEPARATOR=:
11536b62cc08cSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11537b62cc08cSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11538b62cc08cSmrg      PATH_SEPARATOR=';'
11539b62cc08cSmrg  }
115409fe995a9Smrgfi
115419fe995a9Smrg
115429fe995a9Smrg
115439fe995a9Smrg# Find who we are.  Look in the path if we contain no directory separator.
11544b62cc08cSmrgas_myself=
11545b62cc08cSmrgcase $0 in #((
115469fe995a9Smrg  *[\\/]* ) as_myself=$0 ;;
115479fe995a9Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115489fe995a9Smrgfor as_dir in $PATH
115499fe995a9Smrgdo
115509fe995a9Smrg  IFS=$as_save_IFS
11551c048b52eSmrg  case $as_dir in #(((
11552c048b52eSmrg    '') as_dir=./ ;;
11553c048b52eSmrg    */) ;;
11554c048b52eSmrg    *) as_dir=$as_dir/ ;;
11555c048b52eSmrg  esac
11556c048b52eSmrg    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11557b62cc08cSmrg  done
115589fe995a9SmrgIFS=$as_save_IFS
115599fe995a9Smrg
115609fe995a9Smrg     ;;
115619fe995a9Smrgesac
115629fe995a9Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
115639fe995a9Smrg# in which case we are not to be found in the path.
115649fe995a9Smrgif test "x$as_myself" = x; then
115659fe995a9Smrg  as_myself=$0
115669fe995a9Smrgfi
115679fe995a9Smrgif test ! -f "$as_myself"; then
11568c048b52eSmrg  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11569b62cc08cSmrg  exit 1
115709fe995a9Smrgfi
115719fe995a9Smrg
11572b62cc08cSmrg
11573b62cc08cSmrg
11574b62cc08cSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
11575b62cc08cSmrg# ----------------------------------------
11576b62cc08cSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11577b62cc08cSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11578b62cc08cSmrg# script with STATUS, using 1 if that was 0.
11579b62cc08cSmrgas_fn_error ()
11580b62cc08cSmrg{
11581b62cc08cSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
11582b62cc08cSmrg  if test "$4"; then
11583b62cc08cSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11584c048b52eSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
115859fe995a9Smrg  fi
11586c048b52eSmrg  printf "%s\n" "$as_me: error: $2" >&2
11587b62cc08cSmrg  as_fn_exit $as_status
11588b62cc08cSmrg} # as_fn_error
11589b62cc08cSmrg
11590b62cc08cSmrg
11591c048b52eSmrg
11592b62cc08cSmrg# as_fn_set_status STATUS
11593b62cc08cSmrg# -----------------------
11594b62cc08cSmrg# Set $? to STATUS, without forking.
11595b62cc08cSmrgas_fn_set_status ()
11596b62cc08cSmrg{
11597b62cc08cSmrg  return $1
11598b62cc08cSmrg} # as_fn_set_status
11599b62cc08cSmrg
11600b62cc08cSmrg# as_fn_exit STATUS
11601b62cc08cSmrg# -----------------
11602b62cc08cSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11603b62cc08cSmrgas_fn_exit ()
11604b62cc08cSmrg{
11605b62cc08cSmrg  set +e
11606b62cc08cSmrg  as_fn_set_status $1
11607b62cc08cSmrg  exit $1
11608b62cc08cSmrg} # as_fn_exit
11609b62cc08cSmrg
11610b62cc08cSmrg# as_fn_unset VAR
11611b62cc08cSmrg# ---------------
11612b62cc08cSmrg# Portably unset VAR.
11613b62cc08cSmrgas_fn_unset ()
11614b62cc08cSmrg{
11615b62cc08cSmrg  { eval $1=; unset $1;}
11616b62cc08cSmrg}
11617b62cc08cSmrgas_unset=as_fn_unset
11618c048b52eSmrg
11619b62cc08cSmrg# as_fn_append VAR VALUE
11620b62cc08cSmrg# ----------------------
11621b62cc08cSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take
11622b62cc08cSmrg# advantage of any shell optimizations that allow amortized linear growth over
11623b62cc08cSmrg# repeated appends, instead of the typical quadratic growth present in naive
11624b62cc08cSmrg# implementations.
11625c048b52eSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11626c048b52eSmrgthen :
11627b62cc08cSmrg  eval 'as_fn_append ()
11628b62cc08cSmrg  {
11629b62cc08cSmrg    eval $1+=\$2
11630b62cc08cSmrg  }'
11631c048b52eSmrgelse $as_nop
11632b62cc08cSmrg  as_fn_append ()
11633b62cc08cSmrg  {
11634b62cc08cSmrg    eval $1=\$$1\$2
11635b62cc08cSmrg  }
11636b62cc08cSmrgfi # as_fn_append
11637b62cc08cSmrg
11638b62cc08cSmrg# as_fn_arith ARG...
11639b62cc08cSmrg# ------------------
11640b62cc08cSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the
11641b62cc08cSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
11642b62cc08cSmrg# must be portable across $(()) and expr.
11643c048b52eSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11644c048b52eSmrgthen :
11645b62cc08cSmrg  eval 'as_fn_arith ()
11646b62cc08cSmrg  {
11647b62cc08cSmrg    as_val=$(( $* ))
11648b62cc08cSmrg  }'
11649c048b52eSmrgelse $as_nop
11650b62cc08cSmrg  as_fn_arith ()
11651b62cc08cSmrg  {
11652b62cc08cSmrg    as_val=`expr "$@" || test $? -eq 1`
11653b62cc08cSmrg  }
11654b62cc08cSmrgfi # as_fn_arith
11655b62cc08cSmrg
116569fe995a9Smrg
116579fe995a9Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
116589fe995a9Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
116599fe995a9Smrg  as_expr=expr
116609fe995a9Smrgelse
116619fe995a9Smrg  as_expr=false
116629fe995a9Smrgfi
116639fe995a9Smrg
116649fe995a9Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
116659fe995a9Smrg  as_basename=basename
116669fe995a9Smrgelse
116679fe995a9Smrg  as_basename=false
116689fe995a9Smrgfi
116699fe995a9Smrg
11670b62cc08cSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11671b62cc08cSmrg  as_dirname=dirname
11672b62cc08cSmrgelse
11673b62cc08cSmrg  as_dirname=false
11674b62cc08cSmrgfi
116759fe995a9Smrg
116769fe995a9Smrgas_me=`$as_basename -- "$0" ||
116779fe995a9Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
116789fe995a9Smrg	 X"$0" : 'X\(//\)$' \| \
116799fe995a9Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11680c048b52eSmrgprintf "%s\n" X/"$0" |
116819fe995a9Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
116829fe995a9Smrg	    s//\1/
116839fe995a9Smrg	    q
116849fe995a9Smrg	  }
116859fe995a9Smrg	  /^X\/\(\/\/\)$/{
116869fe995a9Smrg	    s//\1/
116879fe995a9Smrg	    q
116889fe995a9Smrg	  }
116899fe995a9Smrg	  /^X\/\(\/\).*/{
116909fe995a9Smrg	    s//\1/
116919fe995a9Smrg	    q
116929fe995a9Smrg	  }
116939fe995a9Smrg	  s/.*/./; q'`
116949fe995a9Smrg
11695b62cc08cSmrg# Avoid depending upon Character Ranges.
11696b62cc08cSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
11697b62cc08cSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11698b62cc08cSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
11699b62cc08cSmrgas_cr_digits='0123456789'
11700b62cc08cSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits
117019fe995a9Smrg
11702c048b52eSmrg
11703c048b52eSmrg# Determine whether it's possible to make 'echo' print without a newline.
11704c048b52eSmrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11705c048b52eSmrg# for compatibility with existing Makefiles.
117069fe995a9SmrgECHO_C= ECHO_N= ECHO_T=
11707b62cc08cSmrgcase `echo -n x` in #(((((
117089fe995a9Smrg-n*)
11709b62cc08cSmrg  case `echo 'xy\c'` in
117109fe995a9Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11711b62cc08cSmrg  xy)  ECHO_C='\c';;
11712b62cc08cSmrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11713b62cc08cSmrg       ECHO_T='	';;
117149fe995a9Smrg  esac;;
117159fe995a9Smrg*)
117169fe995a9Smrg  ECHO_N='-n';;
117179fe995a9Smrgesac
117189fe995a9Smrg
11719c048b52eSmrg# For backward compatibility with old third-party macros, we provide
11720c048b52eSmrg# the shell variables $as_echo and $as_echo_n.  New code should use
11721c048b52eSmrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11722c048b52eSmrgas_echo='printf %s\n'
11723c048b52eSmrgas_echo_n='printf %s'
11724c048b52eSmrg
117259fe995a9Smrgrm -f conf$$ conf$$.exe conf$$.file
117269fe995a9Smrgif test -d conf$$.dir; then
117279fe995a9Smrg  rm -f conf$$.dir/conf$$.file
117289fe995a9Smrgelse
117299fe995a9Smrg  rm -f conf$$.dir
11730b62cc08cSmrg  mkdir conf$$.dir 2>/dev/null
11731b62cc08cSmrgfi
11732b62cc08cSmrgif (echo >conf$$.file) 2>/dev/null; then
11733b62cc08cSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
11734b62cc08cSmrg    as_ln_s='ln -s'
11735b62cc08cSmrg    # ... but there are two gotchas:
11736b62cc08cSmrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11737b62cc08cSmrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11738e8ac26b0Smrg    # In both cases, we have to default to `cp -pR'.
11739b62cc08cSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11740e8ac26b0Smrg      as_ln_s='cp -pR'
11741b62cc08cSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
11742b62cc08cSmrg    as_ln_s=ln
11743b62cc08cSmrg  else
11744e8ac26b0Smrg    as_ln_s='cp -pR'
11745b62cc08cSmrg  fi
117469fe995a9Smrgelse
11747e8ac26b0Smrg  as_ln_s='cp -pR'
117489fe995a9Smrgfi
117499fe995a9Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
117509fe995a9Smrgrmdir conf$$.dir 2>/dev/null
117519fe995a9Smrg
11752b62cc08cSmrg
11753b62cc08cSmrg# as_fn_mkdir_p
11754b62cc08cSmrg# -------------
11755b62cc08cSmrg# Create "$as_dir" as a directory, including parents if necessary.
11756b62cc08cSmrgas_fn_mkdir_p ()
11757b62cc08cSmrg{
11758b62cc08cSmrg
11759b62cc08cSmrg  case $as_dir in #(
11760b62cc08cSmrg  -*) as_dir=./$as_dir;;
11761b62cc08cSmrg  esac
11762b62cc08cSmrg  test -d "$as_dir" || eval $as_mkdir_p || {
11763b62cc08cSmrg    as_dirs=
11764b62cc08cSmrg    while :; do
11765b62cc08cSmrg      case $as_dir in #(
11766c048b52eSmrg      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11767b62cc08cSmrg      *) as_qdir=$as_dir;;
11768b62cc08cSmrg      esac
11769b62cc08cSmrg      as_dirs="'$as_qdir' $as_dirs"
11770b62cc08cSmrg      as_dir=`$as_dirname -- "$as_dir" ||
11771b62cc08cSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11772b62cc08cSmrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
11773b62cc08cSmrg	 X"$as_dir" : 'X\(//\)$' \| \
11774b62cc08cSmrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11775c048b52eSmrgprintf "%s\n" X"$as_dir" |
11776b62cc08cSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11777b62cc08cSmrg	    s//\1/
11778b62cc08cSmrg	    q
11779b62cc08cSmrg	  }
11780b62cc08cSmrg	  /^X\(\/\/\)[^/].*/{
11781b62cc08cSmrg	    s//\1/
11782b62cc08cSmrg	    q
11783b62cc08cSmrg	  }
11784b62cc08cSmrg	  /^X\(\/\/\)$/{
11785b62cc08cSmrg	    s//\1/
11786b62cc08cSmrg	    q
11787b62cc08cSmrg	  }
11788b62cc08cSmrg	  /^X\(\/\).*/{
11789b62cc08cSmrg	    s//\1/
11790b62cc08cSmrg	    q
11791b62cc08cSmrg	  }
11792b62cc08cSmrg	  s/.*/./; q'`
11793b62cc08cSmrg      test -d "$as_dir" && break
11794b62cc08cSmrg    done
11795b62cc08cSmrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
11796b62cc08cSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11797b62cc08cSmrg
11798b62cc08cSmrg
11799b62cc08cSmrg} # as_fn_mkdir_p
118009fe995a9Smrgif mkdir -p . 2>/dev/null; then
11801b62cc08cSmrg  as_mkdir_p='mkdir -p "$as_dir"'
118029fe995a9Smrgelse
118039fe995a9Smrg  test -d ./-p && rmdir ./-p
118049fe995a9Smrg  as_mkdir_p=false
118059fe995a9Smrgfi
118069fe995a9Smrg
11807e8ac26b0Smrg
11808e8ac26b0Smrg# as_fn_executable_p FILE
11809e8ac26b0Smrg# -----------------------
11810e8ac26b0Smrg# Test if FILE is an executable regular file.
11811e8ac26b0Smrgas_fn_executable_p ()
11812e8ac26b0Smrg{
11813e8ac26b0Smrg  test -f "$1" && test -x "$1"
11814e8ac26b0Smrg} # as_fn_executable_p
11815e8ac26b0Smrgas_test_x='test -x'
11816e8ac26b0Smrgas_executable_p=as_fn_executable_p
118179fe995a9Smrg
118189fe995a9Smrg# Sed expression to map a string onto a valid CPP name.
118199fe995a9Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
118209fe995a9Smrg
118219fe995a9Smrg# Sed expression to map a string onto a valid variable name.
118229fe995a9Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
118239fe995a9Smrg
118249fe995a9Smrg
118259fe995a9Smrgexec 6>&1
11826b62cc08cSmrg## ----------------------------------- ##
11827b62cc08cSmrg## Main body of $CONFIG_STATUS script. ##
11828b62cc08cSmrg## ----------------------------------- ##
11829b62cc08cSmrg_ASEOF
11830b62cc08cSmrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
118319fe995a9Smrg
11832b62cc08cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11833b62cc08cSmrg# Save the log message, to keep $0 and so on meaningful, and to
118349fe995a9Smrg# report actual input values of CONFIG_FILES etc. instead of their
118359fe995a9Smrg# values after options handling.
118369fe995a9Smrgac_log="
11837c048b52eSmrgThis file was extended by iceauth $as_me 1.0.9, which was
11838c048b52eSmrggenerated by GNU Autoconf 2.71.  Invocation command line was
118399fe995a9Smrg
118409fe995a9Smrg  CONFIG_FILES    = $CONFIG_FILES
118419fe995a9Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
118429fe995a9Smrg  CONFIG_LINKS    = $CONFIG_LINKS
118439fe995a9Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
118449fe995a9Smrg  $ $0 $@
118459fe995a9Smrg
118469fe995a9Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
118479fe995a9Smrg"
118489fe995a9Smrg
118499fe995a9Smrg_ACEOF
118509fe995a9Smrg
11851b62cc08cSmrgcase $ac_config_files in *"
11852b62cc08cSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
11853b62cc08cSmrgesac
11854b62cc08cSmrg
11855b62cc08cSmrgcase $ac_config_headers in *"
11856b62cc08cSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11857b62cc08cSmrgesac
11858b62cc08cSmrg
11859b62cc08cSmrg
11860b62cc08cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
118619fe995a9Smrg# Files that config.status was made for.
118629fe995a9Smrgconfig_files="$ac_config_files"
118639fe995a9Smrgconfig_headers="$ac_config_headers"
118649fe995a9Smrgconfig_commands="$ac_config_commands"
118659fe995a9Smrg
118669fe995a9Smrg_ACEOF
118679fe995a9Smrg
11868b62cc08cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
118699fe995a9Smrgac_cs_usage="\
11870b62cc08cSmrg\`$as_me' instantiates files and other configuration actions
11871b62cc08cSmrgfrom templates according to the current configuration.  Unless the files
11872b62cc08cSmrgand actions are specified as TAGs, all are instantiated by default.
118739fe995a9Smrg
11874b62cc08cSmrgUsage: $0 [OPTION]... [TAG]...
118759fe995a9Smrg
118769fe995a9Smrg  -h, --help       print this help, then exit
118779fe995a9Smrg  -V, --version    print version number and configuration settings, then exit
11878b62cc08cSmrg      --config     print configuration, then exit
11879b62cc08cSmrg  -q, --quiet, --silent
11880b62cc08cSmrg                   do not print progress messages
118819fe995a9Smrg  -d, --debug      don't remove temporary files
118829fe995a9Smrg      --recheck    update $as_me by reconfiguring in the same conditions
11883b62cc08cSmrg      --file=FILE[:TEMPLATE]
11884b62cc08cSmrg                   instantiate the configuration file FILE
11885b62cc08cSmrg      --header=FILE[:TEMPLATE]
11886b62cc08cSmrg                   instantiate the configuration header FILE
118879fe995a9Smrg
118889fe995a9SmrgConfiguration files:
118899fe995a9Smrg$config_files
118909fe995a9Smrg
118919fe995a9SmrgConfiguration headers:
118929fe995a9Smrg$config_headers
118939fe995a9Smrg
118949fe995a9SmrgConfiguration commands:
118959fe995a9Smrg$config_commands
118969fe995a9Smrg
11897c048b52eSmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/iceauth/issues>."
118989fe995a9Smrg
118999fe995a9Smrg_ACEOF
11900c048b52eSmrgac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
11901c048b52eSmrgac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
11902b62cc08cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11903c048b52eSmrgac_cs_config='$ac_cs_config_escaped'
119049fe995a9Smrgac_cs_version="\\
11905c048b52eSmrgiceauth config.status 1.0.9
11906c048b52eSmrgconfigured by $0, generated by GNU Autoconf 2.71,
11907b62cc08cSmrg  with options \\"\$ac_cs_config\\"
119089fe995a9Smrg
11909c048b52eSmrgCopyright (C) 2021 Free Software Foundation, Inc.
119109fe995a9SmrgThis config.status script is free software; the Free Software Foundation
119119fe995a9Smrggives unlimited permission to copy, distribute and modify it."
119129fe995a9Smrg
119139fe995a9Smrgac_pwd='$ac_pwd'
119149fe995a9Smrgsrcdir='$srcdir'
119159fe995a9SmrgINSTALL='$INSTALL'
119169fe995a9SmrgMKDIR_P='$MKDIR_P'
11917b62cc08cSmrgAWK='$AWK'
11918b62cc08cSmrgtest -n "\$AWK" || AWK=awk
119199fe995a9Smrg_ACEOF
119209fe995a9Smrg
11921b62cc08cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11922b62cc08cSmrg# The default lists apply if the user does not specify any file.
119239fe995a9Smrgac_need_defaults=:
119249fe995a9Smrgwhile test $# != 0
119259fe995a9Smrgdo
119269fe995a9Smrg  case $1 in
11927b62cc08cSmrg  --*=?*)
119289fe995a9Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
119299fe995a9Smrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
119309fe995a9Smrg    ac_shift=:
119319fe995a9Smrg    ;;
11932b62cc08cSmrg  --*=)
11933b62cc08cSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11934b62cc08cSmrg    ac_optarg=
11935b62cc08cSmrg    ac_shift=:
11936b62cc08cSmrg    ;;
119379fe995a9Smrg  *)
119389fe995a9Smrg    ac_option=$1
119399fe995a9Smrg    ac_optarg=$2
119409fe995a9Smrg    ac_shift=shift
119419fe995a9Smrg    ;;
119429fe995a9Smrg  esac
119439fe995a9Smrg
119449fe995a9Smrg  case $ac_option in
119459fe995a9Smrg  # Handling of the options.
119469fe995a9Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
119479fe995a9Smrg    ac_cs_recheck=: ;;
119489fe995a9Smrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11949c048b52eSmrg    printf "%s\n" "$ac_cs_version"; exit ;;
11950b62cc08cSmrg  --config | --confi | --conf | --con | --co | --c )
11951c048b52eSmrg    printf "%s\n" "$ac_cs_config"; exit ;;
119529fe995a9Smrg  --debug | --debu | --deb | --de | --d | -d )
119539fe995a9Smrg    debug=: ;;
119549fe995a9Smrg  --file | --fil | --fi | --f )
119559fe995a9Smrg    $ac_shift
11956b62cc08cSmrg    case $ac_optarg in
11957c048b52eSmrg    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11958b62cc08cSmrg    '') as_fn_error $? "missing file argument" ;;
11959b62cc08cSmrg    esac
11960b62cc08cSmrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
119619fe995a9Smrg    ac_need_defaults=false;;
119629fe995a9Smrg  --header | --heade | --head | --hea )
119639fe995a9Smrg    $ac_shift
11964b62cc08cSmrg    case $ac_optarg in
11965c048b52eSmrg    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11966b62cc08cSmrg    esac
11967b62cc08cSmrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
119689fe995a9Smrg    ac_need_defaults=false;;
119699fe995a9Smrg  --he | --h)
119709fe995a9Smrg    # Conflict between --help and --header
11971b62cc08cSmrg    as_fn_error $? "ambiguous option: \`$1'
11972b62cc08cSmrgTry \`$0 --help' for more information.";;
119739fe995a9Smrg  --help | --hel | -h )
11974c048b52eSmrg    printf "%s\n" "$ac_cs_usage"; exit ;;
119759fe995a9Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
119769fe995a9Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
119779fe995a9Smrg    ac_cs_silent=: ;;
119789fe995a9Smrg
119799fe995a9Smrg  # This is an error.
11980b62cc08cSmrg  -*) as_fn_error $? "unrecognized option: \`$1'
11981b62cc08cSmrgTry \`$0 --help' for more information." ;;
119829fe995a9Smrg
11983b62cc08cSmrg  *) as_fn_append ac_config_targets " $1"
119849fe995a9Smrg     ac_need_defaults=false ;;
119859fe995a9Smrg
119869fe995a9Smrg  esac
119879fe995a9Smrg  shift
119889fe995a9Smrgdone
119899fe995a9Smrg
119909fe995a9Smrgac_configure_extra_args=
119919fe995a9Smrg
119929fe995a9Smrgif $ac_cs_silent; then
119939fe995a9Smrg  exec 6>/dev/null
119949fe995a9Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
119959fe995a9Smrgfi
119969fe995a9Smrg
119979fe995a9Smrg_ACEOF
11998b62cc08cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
119999fe995a9Smrgif \$ac_cs_recheck; then
12000e8ac26b0Smrg  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12001b62cc08cSmrg  shift
12002c048b52eSmrg  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12003b62cc08cSmrg  CONFIG_SHELL='$SHELL'
120049fe995a9Smrg  export CONFIG_SHELL
12005b62cc08cSmrg  exec "\$@"
120069fe995a9Smrgfi
120079fe995a9Smrg
120089fe995a9Smrg_ACEOF
12009b62cc08cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
120109fe995a9Smrgexec 5>>config.log
120119fe995a9Smrg{
120129fe995a9Smrg  echo
120139fe995a9Smrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
120149fe995a9Smrg## Running $as_me. ##
120159fe995a9Smrg_ASBOX
12016c048b52eSmrg  printf "%s\n" "$ac_log"
120179fe995a9Smrg} >&5
120189fe995a9Smrg
120199fe995a9Smrg_ACEOF
12020b62cc08cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
120219fe995a9Smrg#
120229fe995a9Smrg# INIT-COMMANDS
120239fe995a9Smrg#
12024c048b52eSmrgAMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
120259fe995a9Smrg
120269fe995a9Smrg_ACEOF
120279fe995a9Smrg
12028b62cc08cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
120299fe995a9Smrg
120309fe995a9Smrg# Handling of arguments.
120319fe995a9Smrgfor ac_config_target in $ac_config_targets
120329fe995a9Smrgdo
120339fe995a9Smrg  case $ac_config_target in
120349fe995a9Smrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
120359fe995a9Smrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
120369fe995a9Smrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1203790b6713cSmrg    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
120389fe995a9Smrg
12039b62cc08cSmrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
120409fe995a9Smrg  esac
120419fe995a9Smrgdone
120429fe995a9Smrg
120439fe995a9Smrg
120449fe995a9Smrg# If the user did not use the arguments to specify the items to instantiate,
120459fe995a9Smrg# then the envvar interface is used.  Set only those that are not.
120469fe995a9Smrg# We use the long form for the default assignment because of an extremely
120479fe995a9Smrg# bizarre bug on SunOS 4.1.3.
120489fe995a9Smrgif $ac_need_defaults; then
12049c048b52eSmrg  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12050c048b52eSmrg  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12051c048b52eSmrg  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
120529fe995a9Smrgfi
120539fe995a9Smrg
120549fe995a9Smrg# Have a temporary directory for convenience.  Make it in the build tree
120559fe995a9Smrg# simply because there is no reason against having it here, and in addition,
120569fe995a9Smrg# creating and moving files from /tmp can sometimes cause problems.
120579fe995a9Smrg# Hook for its removal unless debugging.
120589fe995a9Smrg# Note that there is a small window in which the directory will not be cleaned:
120599fe995a9Smrg# after its creation but before its name has been assigned to `$tmp'.
120609fe995a9Smrg$debug ||
120619fe995a9Smrg{
12062b62cc08cSmrg  tmp= ac_tmp=
120639fe995a9Smrg  trap 'exit_status=$?
12064b62cc08cSmrg  : "${ac_tmp:=$tmp}"
12065b62cc08cSmrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
120669fe995a9Smrg' 0
12067b62cc08cSmrg  trap 'as_fn_exit 1' 1 2 13 15
120689fe995a9Smrg}
120699fe995a9Smrg# Create a (secure) tmp directory for tmp files.
120709fe995a9Smrg
120719fe995a9Smrg{
120729fe995a9Smrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12073b62cc08cSmrg  test -d "$tmp"
120749fe995a9Smrg}  ||
120759fe995a9Smrg{
120769fe995a9Smrg  tmp=./conf$$-$RANDOM
120779fe995a9Smrg  (umask 077 && mkdir "$tmp")
12078b62cc08cSmrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12079b62cc08cSmrgac_tmp=$tmp
120809fe995a9Smrg
12081b62cc08cSmrg# Set up the scripts for CONFIG_FILES section.
12082b62cc08cSmrg# No need to generate them if there are no CONFIG_FILES.
12083b62cc08cSmrg# This happens for instance with `./config.status config.h'.
120849fe995a9Smrgif test -n "$CONFIG_FILES"; then
120859fe995a9Smrg
120869fe995a9Smrg
12087b62cc08cSmrgac_cr=`echo X | tr X '\015'`
12088b62cc08cSmrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
12089b62cc08cSmrg# But we know of no other shell where ac_cr would be empty at this
12090b62cc08cSmrg# point, so we can use a bashism as a fallback.
12091b62cc08cSmrgif test "x$ac_cr" = x; then
12092b62cc08cSmrg  eval ac_cr=\$\'\\r\'
12093b62cc08cSmrgfi
12094b62cc08cSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12095b62cc08cSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12096b62cc08cSmrg  ac_cs_awk_cr='\\r'
12097b62cc08cSmrgelse
12098b62cc08cSmrg  ac_cs_awk_cr=$ac_cr
120999fe995a9Smrgfi
121009fe995a9Smrg
12101b62cc08cSmrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
121029fe995a9Smrg_ACEOF
121039fe995a9Smrg
121049fe995a9Smrg
12105b62cc08cSmrg{
12106b62cc08cSmrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
12107b62cc08cSmrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12108b62cc08cSmrg  echo "_ACEOF"
12109b62cc08cSmrg} >conf$$subs.sh ||
12110b62cc08cSmrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12111b62cc08cSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
121129fe995a9Smrgac_delim='%!_!# '
121139fe995a9Smrgfor ac_last_try in false false false false false :; do
12114b62cc08cSmrg  . ./conf$$subs.sh ||
12115b62cc08cSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
121169fe995a9Smrg
12117b62cc08cSmrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12118b62cc08cSmrg  if test $ac_delim_n = $ac_delim_num; then
121199fe995a9Smrg    break
121209fe995a9Smrg  elif $ac_last_try; then
12121b62cc08cSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
121229fe995a9Smrg  else
121239fe995a9Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
121249fe995a9Smrg  fi
121259fe995a9Smrgdone
12126b62cc08cSmrgrm -f conf$$subs.sh
121279fe995a9Smrg
12128b62cc08cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12129b62cc08cSmrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12130b62cc08cSmrg_ACEOF
12131b62cc08cSmrgsed -n '
12132b62cc08cSmrgh
12133b62cc08cSmrgs/^/S["/; s/!.*/"]=/
12134b62cc08cSmrgp
12135b62cc08cSmrgg
12136b62cc08cSmrgs/^[^!]*!//
12137b62cc08cSmrg:repl
12138b62cc08cSmrgt repl
12139b62cc08cSmrgs/'"$ac_delim"'$//
12140b62cc08cSmrgt delim
12141b62cc08cSmrg:nl
12142b62cc08cSmrgh
12143b62cc08cSmrgs/\(.\{148\}\)..*/\1/
12144b62cc08cSmrgt more1
12145b62cc08cSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12146b62cc08cSmrgp
12147b62cc08cSmrgn
12148b62cc08cSmrgb repl
12149b62cc08cSmrg:more1
12150b62cc08cSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
12151b62cc08cSmrgp
12152b62cc08cSmrgg
12153b62cc08cSmrgs/.\{148\}//
12154b62cc08cSmrgt nl
12155b62cc08cSmrg:delim
12156b62cc08cSmrgh
12157b62cc08cSmrgs/\(.\{148\}\)..*/\1/
12158b62cc08cSmrgt more2
12159b62cc08cSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/
12160b62cc08cSmrgp
12161b62cc08cSmrgb
12162b62cc08cSmrg:more2
12163b62cc08cSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
12164b62cc08cSmrgp
12165b62cc08cSmrgg
12166b62cc08cSmrgs/.\{148\}//
12167b62cc08cSmrgt delim
12168b62cc08cSmrg' <conf$$subs.awk | sed '
12169b62cc08cSmrg/^[^""]/{
12170b62cc08cSmrg  N
12171b62cc08cSmrg  s/\n//
12172b62cc08cSmrg}
12173b62cc08cSmrg' >>$CONFIG_STATUS || ac_write_fail=1
12174b62cc08cSmrgrm -f conf$$subs.awk
12175b62cc08cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12176b62cc08cSmrg_ACAWK
12177b62cc08cSmrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12178b62cc08cSmrg  for (key in S) S_is_set[key] = 1
12179b62cc08cSmrg  FS = ""
12180b62cc08cSmrg
12181b62cc08cSmrg}
12182b62cc08cSmrg{
12183b62cc08cSmrg  line = $ 0
12184b62cc08cSmrg  nfields = split(line, field, "@")
12185b62cc08cSmrg  substed = 0
12186b62cc08cSmrg  len = length(field[1])
12187b62cc08cSmrg  for (i = 2; i < nfields; i++) {
12188b62cc08cSmrg    key = field[i]
12189b62cc08cSmrg    keylen = length(key)
12190b62cc08cSmrg    if (S_is_set[key]) {
12191b62cc08cSmrg      value = S[key]
12192b62cc08cSmrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12193b62cc08cSmrg      len += length(value) + length(field[++i])
12194b62cc08cSmrg      substed = 1
12195b62cc08cSmrg    } else
12196b62cc08cSmrg      len += 1 + keylen
12197b62cc08cSmrg  }
12198b62cc08cSmrg
12199b62cc08cSmrg  print line
12200b62cc08cSmrg}
122019fe995a9Smrg
12202b62cc08cSmrg_ACAWK
122039fe995a9Smrg_ACEOF
12204b62cc08cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12205b62cc08cSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12206b62cc08cSmrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12207b62cc08cSmrgelse
12208b62cc08cSmrg  cat
12209b62cc08cSmrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12210b62cc08cSmrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
122119fe995a9Smrg_ACEOF
122129fe995a9Smrg
12213b62cc08cSmrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12214b62cc08cSmrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
122159fe995a9Smrg# trailing colons and then remove the whole line if VPATH becomes empty
122169fe995a9Smrg# (actually we leave an empty line to preserve line numbers).
122179fe995a9Smrgif test "x$srcdir" = x.; then
12218b62cc08cSmrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12219b62cc08cSmrgh
12220b62cc08cSmrgs///
12221b62cc08cSmrgs/^/:/
12222b62cc08cSmrgs/[	 ]*$/:/
12223b62cc08cSmrgs/:\$(srcdir):/:/g
12224b62cc08cSmrgs/:\${srcdir}:/:/g
12225b62cc08cSmrgs/:@srcdir@:/:/g
12226b62cc08cSmrgs/^:*//
122279fe995a9Smrgs/:*$//
12228b62cc08cSmrgx
12229b62cc08cSmrgs/\(=[	 ]*\).*/\1/
12230b62cc08cSmrgG
12231b62cc08cSmrgs/\n//
122329fe995a9Smrgs/^[^=]*=[	 ]*$//
122339fe995a9Smrg}'
122349fe995a9Smrgfi
122359fe995a9Smrg
12236b62cc08cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
122379fe995a9Smrgfi # test -n "$CONFIG_FILES"
122389fe995a9Smrg
12239b62cc08cSmrg# Set up the scripts for CONFIG_HEADERS section.
12240b62cc08cSmrg# No need to generate them if there are no CONFIG_HEADERS.
12241b62cc08cSmrg# This happens for instance with `./config.status Makefile'.
12242b62cc08cSmrgif test -n "$CONFIG_HEADERS"; then
12243b62cc08cSmrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12244b62cc08cSmrgBEGIN {
12245b62cc08cSmrg_ACEOF
12246b62cc08cSmrg
12247b62cc08cSmrg# Transform confdefs.h into an awk script `defines.awk', embedded as
12248b62cc08cSmrg# here-document in config.status, that substitutes the proper values into
12249b62cc08cSmrg# config.h.in to produce config.h.
12250b62cc08cSmrg
12251b62cc08cSmrg# Create a delimiter string that does not exist in confdefs.h, to ease
12252b62cc08cSmrg# handling of long lines.
12253b62cc08cSmrgac_delim='%!_!# '
12254b62cc08cSmrgfor ac_last_try in false false :; do
12255b62cc08cSmrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12256b62cc08cSmrg  if test -z "$ac_tt"; then
12257b62cc08cSmrg    break
12258b62cc08cSmrg  elif $ac_last_try; then
12259b62cc08cSmrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12260b62cc08cSmrg  else
12261b62cc08cSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12262b62cc08cSmrg  fi
12263b62cc08cSmrgdone
12264b62cc08cSmrg
12265b62cc08cSmrg# For the awk script, D is an array of macro values keyed by name,
12266b62cc08cSmrg# likewise P contains macro parameters if any.  Preserve backslash
12267b62cc08cSmrg# newline sequences.
12268b62cc08cSmrg
12269b62cc08cSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12270b62cc08cSmrgsed -n '
12271b62cc08cSmrgs/.\{148\}/&'"$ac_delim"'/g
12272b62cc08cSmrgt rset
12273b62cc08cSmrg:rset
12274b62cc08cSmrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12275b62cc08cSmrgt def
12276b62cc08cSmrgd
12277b62cc08cSmrg:def
12278b62cc08cSmrgs/\\$//
12279b62cc08cSmrgt bsnl
12280b62cc08cSmrgs/["\\]/\\&/g
12281b62cc08cSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12282b62cc08cSmrgD["\1"]=" \3"/p
12283b62cc08cSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12284b62cc08cSmrgd
12285b62cc08cSmrg:bsnl
12286b62cc08cSmrgs/["\\]/\\&/g
12287b62cc08cSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12288b62cc08cSmrgD["\1"]=" \3\\\\\\n"\\/p
12289b62cc08cSmrgt cont
12290b62cc08cSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12291b62cc08cSmrgt cont
12292b62cc08cSmrgd
12293b62cc08cSmrg:cont
12294b62cc08cSmrgn
12295b62cc08cSmrgs/.\{148\}/&'"$ac_delim"'/g
12296b62cc08cSmrgt clear
12297b62cc08cSmrg:clear
12298b62cc08cSmrgs/\\$//
12299b62cc08cSmrgt bsnlc
12300b62cc08cSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
12301b62cc08cSmrgd
12302b62cc08cSmrg:bsnlc
12303b62cc08cSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12304b62cc08cSmrgb cont
12305b62cc08cSmrg' <confdefs.h | sed '
12306b62cc08cSmrgs/'"$ac_delim"'/"\\\
12307b62cc08cSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
12308b62cc08cSmrg
12309b62cc08cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12310b62cc08cSmrg  for (key in D) D_is_set[key] = 1
12311b62cc08cSmrg  FS = ""
12312b62cc08cSmrg}
12313b62cc08cSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12314b62cc08cSmrg  line = \$ 0
12315b62cc08cSmrg  split(line, arg, " ")
12316b62cc08cSmrg  if (arg[1] == "#") {
12317b62cc08cSmrg    defundef = arg[2]
12318b62cc08cSmrg    mac1 = arg[3]
12319b62cc08cSmrg  } else {
12320b62cc08cSmrg    defundef = substr(arg[1], 2)
12321b62cc08cSmrg    mac1 = arg[2]
12322b62cc08cSmrg  }
12323b62cc08cSmrg  split(mac1, mac2, "(") #)
12324b62cc08cSmrg  macro = mac2[1]
12325b62cc08cSmrg  prefix = substr(line, 1, index(line, defundef) - 1)
12326b62cc08cSmrg  if (D_is_set[macro]) {
12327b62cc08cSmrg    # Preserve the white space surrounding the "#".
12328b62cc08cSmrg    print prefix "define", macro P[macro] D[macro]
12329b62cc08cSmrg    next
12330b62cc08cSmrg  } else {
12331b62cc08cSmrg    # Replace #undef with comments.  This is necessary, for example,
12332b62cc08cSmrg    # in the case of _POSIX_SOURCE, which is predefined and required
12333b62cc08cSmrg    # on some systems where configure will not decide to define it.
12334b62cc08cSmrg    if (defundef == "undef") {
12335b62cc08cSmrg      print "/*", prefix defundef, macro, "*/"
12336b62cc08cSmrg      next
12337b62cc08cSmrg    }
12338b62cc08cSmrg  }
12339b62cc08cSmrg}
12340b62cc08cSmrg{ print }
12341b62cc08cSmrg_ACAWK
12342b62cc08cSmrg_ACEOF
12343b62cc08cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12344b62cc08cSmrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12345b62cc08cSmrgfi # test -n "$CONFIG_HEADERS"
12346b62cc08cSmrg
123479fe995a9Smrg
12348b62cc08cSmrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12349b62cc08cSmrgshift
12350b62cc08cSmrgfor ac_tag
123519fe995a9Smrgdo
123529fe995a9Smrg  case $ac_tag in
123539fe995a9Smrg  :[FHLC]) ac_mode=$ac_tag; continue;;
123549fe995a9Smrg  esac
123559fe995a9Smrg  case $ac_mode$ac_tag in
123569fe995a9Smrg  :[FHL]*:*);;
12357b62cc08cSmrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
123589fe995a9Smrg  :[FH]-) ac_tag=-:-;;
123599fe995a9Smrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
123609fe995a9Smrg  esac
123619fe995a9Smrg  ac_save_IFS=$IFS
123629fe995a9Smrg  IFS=:
123639fe995a9Smrg  set x $ac_tag
123649fe995a9Smrg  IFS=$ac_save_IFS
123659fe995a9Smrg  shift
123669fe995a9Smrg  ac_file=$1
123679fe995a9Smrg  shift
123689fe995a9Smrg
123699fe995a9Smrg  case $ac_mode in
123709fe995a9Smrg  :L) ac_source=$1;;
123719fe995a9Smrg  :[FH])
123729fe995a9Smrg    ac_file_inputs=
123739fe995a9Smrg    for ac_f
123749fe995a9Smrg    do
123759fe995a9Smrg      case $ac_f in
12376b62cc08cSmrg      -) ac_f="$ac_tmp/stdin";;
123779fe995a9Smrg      *) # Look for the file first in the build tree, then in the source tree
123789fe995a9Smrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
123799fe995a9Smrg	 # because $ac_f cannot contain `:'.
123809fe995a9Smrg	 test -f "$ac_f" ||
123819fe995a9Smrg	   case $ac_f in
123829fe995a9Smrg	   [\\/$]*) false;;
123839fe995a9Smrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
123849fe995a9Smrg	   esac ||
12385b62cc08cSmrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
123869fe995a9Smrg      esac
12387c048b52eSmrg      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12388b62cc08cSmrg      as_fn_append ac_file_inputs " '$ac_f'"
123899fe995a9Smrg    done
123909fe995a9Smrg
123919fe995a9Smrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
123929fe995a9Smrg    # use $as_me), people would be surprised to read:
123939fe995a9Smrg    #    /* config.h.  Generated by config.status.  */
12394b62cc08cSmrg    configure_input='Generated from '`
12395c048b52eSmrg	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12396b62cc08cSmrg	`' by configure.'
123979fe995a9Smrg    if test x"$ac_file" != x-; then
123989fe995a9Smrg      configure_input="$ac_file.  $configure_input"
12399c048b52eSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12400c048b52eSmrgprintf "%s\n" "$as_me: creating $ac_file" >&6;}
124019fe995a9Smrg    fi
12402b62cc08cSmrg    # Neutralize special characters interpreted by sed in replacement strings.
12403b62cc08cSmrg    case $configure_input in #(
12404b62cc08cSmrg    *\&* | *\|* | *\\* )
12405c048b52eSmrg       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12406b62cc08cSmrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12407b62cc08cSmrg    *) ac_sed_conf_input=$configure_input;;
12408b62cc08cSmrg    esac
124099fe995a9Smrg
124109fe995a9Smrg    case $ac_tag in
12411b62cc08cSmrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12412b62cc08cSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
124139fe995a9Smrg    esac
124149fe995a9Smrg    ;;
124159fe995a9Smrg  esac
124169fe995a9Smrg
124179fe995a9Smrg  ac_dir=`$as_dirname -- "$ac_file" ||
124189fe995a9Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
124199fe995a9Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
124209fe995a9Smrg	 X"$ac_file" : 'X\(//\)$' \| \
124219fe995a9Smrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12422c048b52eSmrgprintf "%s\n" X"$ac_file" |
124239fe995a9Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
124249fe995a9Smrg	    s//\1/
124259fe995a9Smrg	    q
124269fe995a9Smrg	  }
124279fe995a9Smrg	  /^X\(\/\/\)[^/].*/{
124289fe995a9Smrg	    s//\1/
124299fe995a9Smrg	    q
124309fe995a9Smrg	  }
124319fe995a9Smrg	  /^X\(\/\/\)$/{
124329fe995a9Smrg	    s//\1/
124339fe995a9Smrg	    q
124349fe995a9Smrg	  }
124359fe995a9Smrg	  /^X\(\/\).*/{
124369fe995a9Smrg	    s//\1/
124379fe995a9Smrg	    q
124389fe995a9Smrg	  }
124399fe995a9Smrg	  s/.*/./; q'`
12440b62cc08cSmrg  as_dir="$ac_dir"; as_fn_mkdir_p
124419fe995a9Smrg  ac_builddir=.
124429fe995a9Smrg
124439fe995a9Smrgcase "$ac_dir" in
124449fe995a9Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
124459fe995a9Smrg*)
12446c048b52eSmrg  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
124479fe995a9Smrg  # A ".." for each directory in $ac_dir_suffix.
12448c048b52eSmrg  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
124499fe995a9Smrg  case $ac_top_builddir_sub in
124509fe995a9Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
124519fe995a9Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
124529fe995a9Smrg  esac ;;
124539fe995a9Smrgesac
124549fe995a9Smrgac_abs_top_builddir=$ac_pwd
124559fe995a9Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
124569fe995a9Smrg# for backward compatibility:
124579fe995a9Smrgac_top_builddir=$ac_top_build_prefix
124589fe995a9Smrg
124599fe995a9Smrgcase $srcdir in
124609fe995a9Smrg  .)  # We are building in place.
124619fe995a9Smrg    ac_srcdir=.
124629fe995a9Smrg    ac_top_srcdir=$ac_top_builddir_sub
124639fe995a9Smrg    ac_abs_top_srcdir=$ac_pwd ;;
124649fe995a9Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
124659fe995a9Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
124669fe995a9Smrg    ac_top_srcdir=$srcdir
124679fe995a9Smrg    ac_abs_top_srcdir=$srcdir ;;
124689fe995a9Smrg  *) # Relative name.
124699fe995a9Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
124709fe995a9Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
124719fe995a9Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
124729fe995a9Smrgesac
124739fe995a9Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
124749fe995a9Smrg
124759fe995a9Smrg
124769fe995a9Smrg  case $ac_mode in
124779fe995a9Smrg  :F)
124789fe995a9Smrg  #
124799fe995a9Smrg  # CONFIG_FILE
124809fe995a9Smrg  #
124819fe995a9Smrg
124829fe995a9Smrg  case $INSTALL in
124839fe995a9Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
124849fe995a9Smrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
124859fe995a9Smrg  esac
124869fe995a9Smrg  ac_MKDIR_P=$MKDIR_P
124879fe995a9Smrg  case $MKDIR_P in
124889fe995a9Smrg  [\\/$]* | ?:[\\/]* ) ;;
124899fe995a9Smrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
124909fe995a9Smrg  esac
124919fe995a9Smrg_ACEOF
124929fe995a9Smrg
12493b62cc08cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
124949fe995a9Smrg# If the template does not know about datarootdir, expand it.
124959fe995a9Smrg# FIXME: This hack should be removed a few years after 2.60.
124969fe995a9Smrgac_datarootdir_hack=; ac_datarootdir_seen=
12497b62cc08cSmrgac_sed_dataroot='
12498b62cc08cSmrg/datarootdir/ {
124999fe995a9Smrg  p
125009fe995a9Smrg  q
125019fe995a9Smrg}
125029fe995a9Smrg/@datadir@/p
125039fe995a9Smrg/@docdir@/p
125049fe995a9Smrg/@infodir@/p
125059fe995a9Smrg/@localedir@/p
12506b62cc08cSmrg/@mandir@/p'
12507b62cc08cSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
125089fe995a9Smrg*datarootdir*) ac_datarootdir_seen=yes;;
125099fe995a9Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12510c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12511c048b52eSmrgprintf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
125129fe995a9Smrg_ACEOF
12513b62cc08cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
125149fe995a9Smrg  ac_datarootdir_hack='
125159fe995a9Smrg  s&@datadir@&$datadir&g
125169fe995a9Smrg  s&@docdir@&$docdir&g
125179fe995a9Smrg  s&@infodir@&$infodir&g
125189fe995a9Smrg  s&@localedir@&$localedir&g
125199fe995a9Smrg  s&@mandir@&$mandir&g
12520b62cc08cSmrg  s&\\\${datarootdir}&$datarootdir&g' ;;
125219fe995a9Smrgesac
125229fe995a9Smrg_ACEOF
125239fe995a9Smrg
125249fe995a9Smrg# Neutralize VPATH when `$srcdir' = `.'.
125259fe995a9Smrg# Shell code in configure.ac might set extrasub.
125269fe995a9Smrg# FIXME: do we really want to maintain this feature?
12527b62cc08cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12528b62cc08cSmrgac_sed_extra="$ac_vpsub
125299fe995a9Smrg$extrasub
125309fe995a9Smrg_ACEOF
12531b62cc08cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
125329fe995a9Smrg:t
125339fe995a9Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12534b62cc08cSmrgs|@configure_input@|$ac_sed_conf_input|;t t
125359fe995a9Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t
12536b62cc08cSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
125379fe995a9Smrgs&@srcdir@&$ac_srcdir&;t t
125389fe995a9Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
125399fe995a9Smrgs&@top_srcdir@&$ac_top_srcdir&;t t
125409fe995a9Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
125419fe995a9Smrgs&@builddir@&$ac_builddir&;t t
125429fe995a9Smrgs&@abs_builddir@&$ac_abs_builddir&;t t
125439fe995a9Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
125449fe995a9Smrgs&@INSTALL@&$ac_INSTALL&;t t
125459fe995a9Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
125469fe995a9Smrg$ac_datarootdir_hack
12547b62cc08cSmrg"
12548b62cc08cSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12549b62cc08cSmrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
125509fe995a9Smrg
125519fe995a9Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12552b62cc08cSmrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12553b62cc08cSmrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12554b62cc08cSmrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12555c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12556b62cc08cSmrgwhich seems to be undefined.  Please make sure it is defined" >&5
12557c048b52eSmrgprintf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12558b62cc08cSmrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
12559b62cc08cSmrg
12560b62cc08cSmrg  rm -f "$ac_tmp/stdin"
125619fe995a9Smrg  case $ac_file in
12562b62cc08cSmrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12563b62cc08cSmrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12564b62cc08cSmrg  esac \
12565b62cc08cSmrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
125669fe995a9Smrg ;;
125679fe995a9Smrg  :H)
125689fe995a9Smrg  #
125699fe995a9Smrg  # CONFIG_HEADER
125709fe995a9Smrg  #
125719fe995a9Smrg  if test x"$ac_file" != x-; then
12572b62cc08cSmrg    {
12573c048b52eSmrg      printf "%s\n" "/* $configure_input  */" >&1 \
12574b62cc08cSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12575b62cc08cSmrg    } >"$ac_tmp/config.h" \
12576b62cc08cSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12577b62cc08cSmrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12578c048b52eSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12579c048b52eSmrgprintf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
125809fe995a9Smrg    else
12581b62cc08cSmrg      rm -f "$ac_file"
12582b62cc08cSmrg      mv "$ac_tmp/config.h" "$ac_file" \
12583b62cc08cSmrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
125849fe995a9Smrg    fi
125859fe995a9Smrg  else
12586c048b52eSmrg    printf "%s\n" "/* $configure_input  */" >&1 \
12587b62cc08cSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12588b62cc08cSmrg      || as_fn_error $? "could not create -" "$LINENO" 5
125899fe995a9Smrg  fi
12590b62cc08cSmrg# Compute "$ac_file"'s index in $config_headers.
12591b62cc08cSmrg_am_arg="$ac_file"
125929fe995a9Smrg_am_stamp_count=1
125939fe995a9Smrgfor _am_header in $config_headers :; do
125949fe995a9Smrg  case $_am_header in
12595b62cc08cSmrg    $_am_arg | $_am_arg:* )
125969fe995a9Smrg      break ;;
125979fe995a9Smrg    * )
125989fe995a9Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
125999fe995a9Smrg  esac
126009fe995a9Smrgdone
12601b62cc08cSmrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12602b62cc08cSmrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12603b62cc08cSmrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12604b62cc08cSmrg	 X"$_am_arg" : 'X\(//\)$' \| \
12605b62cc08cSmrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12606c048b52eSmrgprintf "%s\n" X"$_am_arg" |
126079fe995a9Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
126089fe995a9Smrg	    s//\1/
126099fe995a9Smrg	    q
126109fe995a9Smrg	  }
126119fe995a9Smrg	  /^X\(\/\/\)[^/].*/{
126129fe995a9Smrg	    s//\1/
126139fe995a9Smrg	    q
126149fe995a9Smrg	  }
126159fe995a9Smrg	  /^X\(\/\/\)$/{
126169fe995a9Smrg	    s//\1/
126179fe995a9Smrg	    q
126189fe995a9Smrg	  }
126199fe995a9Smrg	  /^X\(\/\).*/{
126209fe995a9Smrg	    s//\1/
126219fe995a9Smrg	    q
126229fe995a9Smrg	  }
126239fe995a9Smrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
126249fe995a9Smrg ;;
126259fe995a9Smrg
12626c048b52eSmrg  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12627c048b52eSmrgprintf "%s\n" "$as_me: executing $ac_file commands" >&6;}
126289fe995a9Smrg ;;
126299fe995a9Smrg  esac
126309fe995a9Smrg
126319fe995a9Smrg
126329fe995a9Smrg  case $ac_file$ac_mode in
12633b62cc08cSmrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
126349d794632Smrg  # Older Autoconf quotes --file arguments for eval, but not when files
12635b62cc08cSmrg  # are listed without --file.  Let's play safe and only enable the eval
12636b62cc08cSmrg  # if we detect the quoting.
12637c048b52eSmrg  # TODO: see whether this extra hack can be removed once we start
12638c048b52eSmrg  # requiring Autoconf 2.70 or later.
12639c048b52eSmrg  case $CONFIG_FILES in #(
12640c048b52eSmrg  *\'*) :
12641c048b52eSmrg    eval set x "$CONFIG_FILES" ;; #(
12642c048b52eSmrg  *) :
12643c048b52eSmrg    set x $CONFIG_FILES ;; #(
12644c048b52eSmrg  *) :
12645c048b52eSmrg     ;;
12646c048b52eSmrgesac
12647b62cc08cSmrg  shift
12648c048b52eSmrg  # Used to flag and report bootstrapping failures.
12649c048b52eSmrg  am_rc=0
12650c048b52eSmrg  for am_mf
12651b62cc08cSmrg  do
12652b62cc08cSmrg    # Strip MF so we end up with the name of the file.
12653c048b52eSmrg    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12654c048b52eSmrg    # Check whether this is an Automake generated Makefile which includes
12655c048b52eSmrg    # dependency-tracking related rules and includes.
12656c048b52eSmrg    # Grep'ing the whole file directly is not great: AIX grep has a line
12657b62cc08cSmrg    # limit of 2048, but all sed's we know have understand at least 4000.
12658c048b52eSmrg    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12659c048b52eSmrg      || continue
12660c048b52eSmrg    am_dirpart=`$as_dirname -- "$am_mf" ||
12661c048b52eSmrg$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12662c048b52eSmrg	 X"$am_mf" : 'X\(//\)[^/]' \| \
12663c048b52eSmrg	 X"$am_mf" : 'X\(//\)$' \| \
12664c048b52eSmrg	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12665c048b52eSmrgprintf "%s\n" X"$am_mf" |
126669fe995a9Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
126679fe995a9Smrg	    s//\1/
126689fe995a9Smrg	    q
126699fe995a9Smrg	  }
126709fe995a9Smrg	  /^X\(\/\/\)[^/].*/{
126719fe995a9Smrg	    s//\1/
126729fe995a9Smrg	    q
126739fe995a9Smrg	  }
126749fe995a9Smrg	  /^X\(\/\/\)$/{
126759fe995a9Smrg	    s//\1/
126769fe995a9Smrg	    q
126779fe995a9Smrg	  }
126789fe995a9Smrg	  /^X\(\/\).*/{
126799fe995a9Smrg	    s//\1/
126809fe995a9Smrg	    q
126819fe995a9Smrg	  }
126829fe995a9Smrg	  s/.*/./; q'`
12683c048b52eSmrg    am_filepart=`$as_basename -- "$am_mf" ||
12684c048b52eSmrg$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12685c048b52eSmrg	 X"$am_mf" : 'X\(//\)$' \| \
12686c048b52eSmrg	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12687c048b52eSmrgprintf "%s\n" X/"$am_mf" |
12688c048b52eSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
126899fe995a9Smrg	    s//\1/
126909fe995a9Smrg	    q
126919fe995a9Smrg	  }
12692c048b52eSmrg	  /^X\/\(\/\/\)$/{
126939fe995a9Smrg	    s//\1/
126949fe995a9Smrg	    q
126959fe995a9Smrg	  }
12696c048b52eSmrg	  /^X\/\(\/\).*/{
126979fe995a9Smrg	    s//\1/
126989fe995a9Smrg	    q
126999fe995a9Smrg	  }
127009fe995a9Smrg	  s/.*/./; q'`
12701c048b52eSmrg    { echo "$as_me:$LINENO: cd "$am_dirpart" \
12702c048b52eSmrg      && sed -e '/# am--include-marker/d' "$am_filepart" \
12703c048b52eSmrg        | $MAKE -f - am--depfiles" >&5
12704c048b52eSmrg   (cd "$am_dirpart" \
12705c048b52eSmrg      && sed -e '/# am--include-marker/d' "$am_filepart" \
12706c048b52eSmrg        | $MAKE -f - am--depfiles) >&5 2>&5
12707c048b52eSmrg   ac_status=$?
12708c048b52eSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709c048b52eSmrg   (exit $ac_status); } || am_rc=$?
127109fe995a9Smrg  done
12711c048b52eSmrg  if test $am_rc -ne 0; then
12712c048b52eSmrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12713c048b52eSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12714c048b52eSmrgas_fn_error $? "Something went wrong bootstrapping makefile fragments
12715c048b52eSmrg    for automatic dependency tracking.  If GNU make was not used, consider
12716c048b52eSmrg    re-running the configure script with MAKE=\"gmake\" (or whatever is
12717c048b52eSmrg    necessary).  You can also try re-running configure with the
12718c048b52eSmrg    '--disable-dependency-tracking' option to at least be able to build
12719c048b52eSmrg    the package (albeit without support for automatic dependency tracking).
12720c048b52eSmrgSee \`config.log' for more details" "$LINENO" 5; }
12721c048b52eSmrg  fi
12722c048b52eSmrg  { am_dirpart=; unset am_dirpart;}
12723c048b52eSmrg  { am_filepart=; unset am_filepart;}
12724c048b52eSmrg  { am_mf=; unset am_mf;}
12725c048b52eSmrg  { am_rc=; unset am_rc;}
12726c048b52eSmrg  rm -f conftest-deps.mk
12727b62cc08cSmrg}
127289fe995a9Smrg ;;
127299fe995a9Smrg
127309fe995a9Smrg  esac
127319fe995a9Smrgdone # for ac_tag
127329fe995a9Smrg
127339fe995a9Smrg
12734b62cc08cSmrgas_fn_exit 0
127359fe995a9Smrg_ACEOF
127369fe995a9Smrgac_clean_files=$ac_clean_files_save
127379fe995a9Smrg
12738b62cc08cSmrgtest $ac_write_fail = 0 ||
12739b62cc08cSmrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12740b62cc08cSmrg
127419fe995a9Smrg
127429fe995a9Smrg# configure is writing to config.log, and then calls config.status.
127439fe995a9Smrg# config.status does its own redirection, appending to config.log.
127449fe995a9Smrg# Unfortunately, on DOS this fails, as config.log is still kept open
127459fe995a9Smrg# by configure, so config.status won't be able to write to it; its
127469fe995a9Smrg# output is simply discarded.  So we exec the FD to /dev/null,
127479fe995a9Smrg# effectively closing config.log, so it can be properly (re)opened and
127489fe995a9Smrg# appended to by config.status.  When coming back to configure, we
127499fe995a9Smrg# need to make the FD available again.
127509fe995a9Smrgif test "$no_create" != yes; then
127519fe995a9Smrg  ac_cs_success=:
127529fe995a9Smrg  ac_config_status_args=
127539fe995a9Smrg  test "$silent" = yes &&
127549fe995a9Smrg    ac_config_status_args="$ac_config_status_args --quiet"
127559fe995a9Smrg  exec 5>/dev/null
127569fe995a9Smrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
127579fe995a9Smrg  exec 5>>config.log
127589fe995a9Smrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
127599fe995a9Smrg  # would make configure fail if this is the last instruction.
12760b62cc08cSmrg  $ac_cs_success || as_fn_exit 1
12761b62cc08cSmrgfi
12762b62cc08cSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12763c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12764c048b52eSmrgprintf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
127659fe995a9Smrgfi
127669fe995a9Smrg
12767c048b52eSmrg
12768