configure revision 772b5186
19fe995a9Smrg#! /bin/sh
29fe995a9Smrg# Guess values for system-dependent variables and create Makefiles.
3772b5186Smrg# Generated by GNU Autoconf 2.72 for iceauth 1.0.10.
49fe995a9Smrg#
5772b5186Smrg# Report bugs to <https://gitlab.freedesktop.org/xorg/app/iceauth/-/issues>.
69fe995a9Smrg#
7b62cc08cSmrg#
8772b5186Smrg# Copyright (C) 1992-1996, 1998-2017, 2020-2023 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
20c048b52eSmrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21c048b52eSmrgthen :
229fe995a9Smrg  emulate sh
239fe995a9Smrg  NULLCMD=:
24b62cc08cSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
259fe995a9Smrg  # is contrary to our usage.  Disable this feature.
269fe995a9Smrg  alias -g '${1+"$@"}'='"$@"'
279fe995a9Smrg  setopt NO_GLOB_SUBST
28772b5186Smrgelse case e in #(
29772b5186Smrg  e) case `(set -o) 2>/dev/null` in #(
30b62cc08cSmrg  *posix*) :
31b62cc08cSmrg    set -o posix ;; #(
32b62cc08cSmrg  *) :
33b62cc08cSmrg     ;;
34772b5186Smrgesac ;;
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
106772b5186Smrg# 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
136772b5186Smrg# 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
143772b5186Smrg  as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144c048b52eSmrgthen :
145b62cc08cSmrg  emulate sh
146b62cc08cSmrg  NULLCMD=:
147b62cc08cSmrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148b62cc08cSmrg  # is contrary to our usage.  Disable this feature.
149b62cc08cSmrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
150b62cc08cSmrg  setopt NO_GLOB_SUBST
151772b5186Smrgelse case e in #(
152772b5186Smrg  e) case \`(set -o) 2>/dev/null\` in #(
153b62cc08cSmrg  *posix*) :
154b62cc08cSmrg    set -o posix ;; #(
155b62cc08cSmrg  *) :
156b62cc08cSmrg     ;;
157772b5186Smrgesac ;;
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
175772b5186Smrgelse case e in #(
176772b5186Smrg  e) exitcode=1; echo positional parameters were not saved. ;;
177772b5186Smrgesac
178b62cc08cSmrgfi
179e8ac26b0Smrgtest x\$exitcode = x0 || exit 1
180c048b52eSmrgblah=\$(echo \$(echo blah))
181c048b52eSmrgtest x\"\$blah\" = xblah || exit 1
182e8ac26b0Smrgtest -x / || exit 1"
183b62cc08cSmrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184b62cc08cSmrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185b62cc08cSmrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186b62cc08cSmrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187b62cc08cSmrgtest \$(( 1 + 1 )) = 2 || exit 1"
188c048b52eSmrg  if (eval "$as_required") 2>/dev/null
189c048b52eSmrgthen :
190b62cc08cSmrg  as_have_required=yes
191772b5186Smrgelse case e in #(
192772b5186Smrg  e) as_have_required=no ;;
193772b5186Smrgesac
1949fe995a9Smrgfi
195c048b52eSmrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
196c048b52eSmrgthen :
1979fe995a9Smrg
198772b5186Smrgelse case e in #(
199772b5186Smrg  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
200b62cc08cSmrgas_found=false
2019fe995a9Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
2029fe995a9Smrgdo
2039fe995a9Smrg  IFS=$as_save_IFS
204c048b52eSmrg  case $as_dir in #(((
205c048b52eSmrg    '') as_dir=./ ;;
206c048b52eSmrg    */) ;;
207c048b52eSmrg    *) as_dir=$as_dir/ ;;
208c048b52eSmrg  esac
209b62cc08cSmrg  as_found=:
210b62cc08cSmrg  case $as_dir in #(
2119fe995a9Smrg	 /*)
2129fe995a9Smrg	   for as_base in sh bash ksh sh5; do
213b62cc08cSmrg	     # Try only shells that exist, to save several forks.
214c048b52eSmrg	     as_shell=$as_dir$as_base
215b62cc08cSmrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
216c048b52eSmrg		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
217c048b52eSmrgthen :
218b62cc08cSmrg  CONFIG_SHELL=$as_shell as_have_required=yes
219c048b52eSmrg		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
220c048b52eSmrgthen :
221b62cc08cSmrg  break 2
222b62cc08cSmrgfi
223b62cc08cSmrgfi
2249fe995a9Smrg	   done;;
2259fe995a9Smrg       esac
226b62cc08cSmrg  as_found=false
2279fe995a9Smrgdone
2289fe995a9SmrgIFS=$as_save_IFS
229c048b52eSmrgif $as_found
230c048b52eSmrgthen :
231c048b52eSmrg
232772b5186Smrgelse case e in #(
233772b5186Smrg  e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234c048b52eSmrg	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
235c048b52eSmrgthen :
236c048b52eSmrg  CONFIG_SHELL=$SHELL as_have_required=yes
237772b5186Smrgfi ;;
238772b5186Smrgesac
239c048b52eSmrgfi
2409fe995a9Smrg
2419fe995a9Smrg
242c048b52eSmrg      if test "x$CONFIG_SHELL" != x
243c048b52eSmrgthen :
244e8ac26b0Smrg  export CONFIG_SHELL
245e8ac26b0Smrg             # We cannot yet assume a decent shell, so we have to provide a
246e8ac26b0Smrg# neutralization value for shells without unset; and this also
247e8ac26b0Smrg# works around shells that cannot unset nonexistent variables.
248e8ac26b0Smrg# Preserve -v and -x to the replacement shell.
249e8ac26b0SmrgBASH_ENV=/dev/null
250e8ac26b0SmrgENV=/dev/null
251e8ac26b0Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
252e8ac26b0Smrgcase $- in # ((((
253e8ac26b0Smrg  *v*x* | *x*v* ) as_opts=-vx ;;
254e8ac26b0Smrg  *v* ) as_opts=-v ;;
255e8ac26b0Smrg  *x* ) as_opts=-x ;;
256e8ac26b0Smrg  * ) as_opts= ;;
257e8ac26b0Smrgesac
258e8ac26b0Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
259e8ac26b0Smrg# Admittedly, this is quite paranoid, since all the known shells bail
260772b5186Smrg# out after a failed 'exec'.
261c048b52eSmrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
262e8ac26b0Smrgexit 255
2639fe995a9Smrgfi
2649fe995a9Smrg
265c048b52eSmrg    if test x$as_have_required = xno
266c048b52eSmrgthen :
267c048b52eSmrg  printf "%s\n" "$0: This script requires a shell more modern than all"
268c048b52eSmrg  printf "%s\n" "$0: the shells that I found on your system."
269c048b52eSmrg  if test ${ZSH_VERSION+y} ; then
270c048b52eSmrg    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
271c048b52eSmrg    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
272b62cc08cSmrg  else
273c048b52eSmrg    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
274772b5186Smrg$0: https://gitlab.freedesktop.org/xorg/app/iceauth/-/issues
275b62cc08cSmrg$0: about your system, including any error possibly output
276b62cc08cSmrg$0: before this message. Then install a modern shell, or
277b62cc08cSmrg$0: manually run the script under such a shell if you do
278b62cc08cSmrg$0: have one."
279b62cc08cSmrg  fi
280b62cc08cSmrg  exit 1
281772b5186Smrgfi ;;
282772b5186Smrgesac
283b62cc08cSmrgfi
284b62cc08cSmrgfi
285b62cc08cSmrgSHELL=${CONFIG_SHELL-/bin/sh}
286b62cc08cSmrgexport SHELL
287b62cc08cSmrg# Unset more variables known to interfere with behavior of common tools.
288b62cc08cSmrgCLICOLOR_FORCE= GREP_OPTIONS=
289b62cc08cSmrgunset CLICOLOR_FORCE GREP_OPTIONS
2909fe995a9Smrg
291b62cc08cSmrg## --------------------- ##
292b62cc08cSmrg## M4sh Shell Functions. ##
293b62cc08cSmrg## --------------------- ##
294b62cc08cSmrg# as_fn_unset VAR
295b62cc08cSmrg# ---------------
296b62cc08cSmrg# Portably unset VAR.
297b62cc08cSmrgas_fn_unset ()
298b62cc08cSmrg{
299b62cc08cSmrg  { eval $1=; unset $1;}
3009fe995a9Smrg}
301b62cc08cSmrgas_unset=as_fn_unset
3029fe995a9Smrg
303c048b52eSmrg
304b62cc08cSmrg# as_fn_set_status STATUS
305b62cc08cSmrg# -----------------------
306b62cc08cSmrg# Set $? to STATUS, without forking.
307b62cc08cSmrgas_fn_set_status ()
308b62cc08cSmrg{
309b62cc08cSmrg  return $1
310b62cc08cSmrg} # as_fn_set_status
3119fe995a9Smrg
312b62cc08cSmrg# as_fn_exit STATUS
313b62cc08cSmrg# -----------------
314b62cc08cSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315b62cc08cSmrgas_fn_exit ()
316b62cc08cSmrg{
317b62cc08cSmrg  set +e
318b62cc08cSmrg  as_fn_set_status $1
319b62cc08cSmrg  exit $1
320b62cc08cSmrg} # as_fn_exit
321b62cc08cSmrg
322b62cc08cSmrg# as_fn_mkdir_p
323b62cc08cSmrg# -------------
324b62cc08cSmrg# Create "$as_dir" as a directory, including parents if necessary.
325b62cc08cSmrgas_fn_mkdir_p ()
326b62cc08cSmrg{
3279fe995a9Smrg
328b62cc08cSmrg  case $as_dir in #(
329b62cc08cSmrg  -*) as_dir=./$as_dir;;
330b62cc08cSmrg  esac
331b62cc08cSmrg  test -d "$as_dir" || eval $as_mkdir_p || {
332b62cc08cSmrg    as_dirs=
333b62cc08cSmrg    while :; do
334b62cc08cSmrg      case $as_dir in #(
335c048b52eSmrg      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336b62cc08cSmrg      *) as_qdir=$as_dir;;
337b62cc08cSmrg      esac
338b62cc08cSmrg      as_dirs="'$as_qdir' $as_dirs"
339b62cc08cSmrg      as_dir=`$as_dirname -- "$as_dir" ||
340b62cc08cSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341b62cc08cSmrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
342b62cc08cSmrg	 X"$as_dir" : 'X\(//\)$' \| \
343b62cc08cSmrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344c048b52eSmrgprintf "%s\n" X"$as_dir" |
345b62cc08cSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346b62cc08cSmrg	    s//\1/
347b62cc08cSmrg	    q
348b62cc08cSmrg	  }
349b62cc08cSmrg	  /^X\(\/\/\)[^/].*/{
350b62cc08cSmrg	    s//\1/
351b62cc08cSmrg	    q
352b62cc08cSmrg	  }
353b62cc08cSmrg	  /^X\(\/\/\)$/{
354b62cc08cSmrg	    s//\1/
355b62cc08cSmrg	    q
356b62cc08cSmrg	  }
357b62cc08cSmrg	  /^X\(\/\).*/{
358b62cc08cSmrg	    s//\1/
359b62cc08cSmrg	    q
360b62cc08cSmrg	  }
361b62cc08cSmrg	  s/.*/./; q'`
362b62cc08cSmrg      test -d "$as_dir" && break
363b62cc08cSmrg    done
364b62cc08cSmrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
365b62cc08cSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366b62cc08cSmrg
367b62cc08cSmrg
368b62cc08cSmrg} # as_fn_mkdir_p
369e8ac26b0Smrg
370e8ac26b0Smrg# as_fn_executable_p FILE
371e8ac26b0Smrg# -----------------------
372e8ac26b0Smrg# Test if FILE is an executable regular file.
373e8ac26b0Smrgas_fn_executable_p ()
374e8ac26b0Smrg{
375e8ac26b0Smrg  test -f "$1" && test -x "$1"
376e8ac26b0Smrg} # as_fn_executable_p
377b62cc08cSmrg# as_fn_append VAR VALUE
378b62cc08cSmrg# ----------------------
379b62cc08cSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take
380b62cc08cSmrg# advantage of any shell optimizations that allow amortized linear growth over
381b62cc08cSmrg# repeated appends, instead of the typical quadratic growth present in naive
382b62cc08cSmrg# implementations.
383c048b52eSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
384c048b52eSmrgthen :
385b62cc08cSmrg  eval 'as_fn_append ()
386b62cc08cSmrg  {
387b62cc08cSmrg    eval $1+=\$2
388b62cc08cSmrg  }'
389772b5186Smrgelse case e in #(
390772b5186Smrg  e) as_fn_append ()
391b62cc08cSmrg  {
392b62cc08cSmrg    eval $1=\$$1\$2
393772b5186Smrg  } ;;
394772b5186Smrgesac
395b62cc08cSmrgfi # as_fn_append
396b62cc08cSmrg
397b62cc08cSmrg# as_fn_arith ARG...
398b62cc08cSmrg# ------------------
399b62cc08cSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the
400b62cc08cSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
401b62cc08cSmrg# must be portable across $(()) and expr.
402c048b52eSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
403c048b52eSmrgthen :
404b62cc08cSmrg  eval 'as_fn_arith ()
405b62cc08cSmrg  {
406b62cc08cSmrg    as_val=$(( $* ))
407b62cc08cSmrg  }'
408772b5186Smrgelse case e in #(
409772b5186Smrg  e) as_fn_arith ()
410b62cc08cSmrg  {
411b62cc08cSmrg    as_val=`expr "$@" || test $? -eq 1`
412772b5186Smrg  } ;;
413772b5186Smrgesac
414b62cc08cSmrgfi # as_fn_arith
4159fe995a9Smrg
4169fe995a9Smrg
417b62cc08cSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
418b62cc08cSmrg# ----------------------------------------
419b62cc08cSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
420b62cc08cSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
421b62cc08cSmrg# script with STATUS, using 1 if that was 0.
422b62cc08cSmrgas_fn_error ()
423b62cc08cSmrg{
424b62cc08cSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
425b62cc08cSmrg  if test "$4"; then
426b62cc08cSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
427c048b52eSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
428b62cc08cSmrg  fi
429c048b52eSmrg  printf "%s\n" "$as_me: error: $2" >&2
430b62cc08cSmrg  as_fn_exit $as_status
431b62cc08cSmrg} # as_fn_error
4329fe995a9Smrg
433b62cc08cSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
434b62cc08cSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
435b62cc08cSmrg  as_expr=expr
4369fe995a9Smrgelse
437b62cc08cSmrg  as_expr=false
4389fe995a9Smrgfi
4399fe995a9Smrg
440b62cc08cSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
441b62cc08cSmrg  as_basename=basename
4429fe995a9Smrgelse
443b62cc08cSmrg  as_basename=false
4449fe995a9Smrgfi
4459fe995a9Smrg
446b62cc08cSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
447b62cc08cSmrg  as_dirname=dirname
4489fe995a9Smrgelse
449b62cc08cSmrg  as_dirname=false
4509fe995a9Smrgfi
4519fe995a9Smrg
452b62cc08cSmrgas_me=`$as_basename -- "$0" ||
453b62cc08cSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
454b62cc08cSmrg	 X"$0" : 'X\(//\)$' \| \
455b62cc08cSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
456c048b52eSmrgprintf "%s\n" X/"$0" |
457b62cc08cSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
458b62cc08cSmrg	    s//\1/
459b62cc08cSmrg	    q
460b62cc08cSmrg	  }
461b62cc08cSmrg	  /^X\/\(\/\/\)$/{
462b62cc08cSmrg	    s//\1/
463b62cc08cSmrg	    q
464b62cc08cSmrg	  }
465b62cc08cSmrg	  /^X\/\(\/\).*/{
466b62cc08cSmrg	    s//\1/
467b62cc08cSmrg	    q
468b62cc08cSmrg	  }
469b62cc08cSmrg	  s/.*/./; q'`
4709fe995a9Smrg
471b62cc08cSmrg# Avoid depending upon Character Ranges.
472b62cc08cSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
473b62cc08cSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
474b62cc08cSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
475b62cc08cSmrgas_cr_digits='0123456789'
476b62cc08cSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits
4779fe995a9Smrg
4789fe995a9Smrg
479b62cc08cSmrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
480b62cc08cSmrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
481b62cc08cSmrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
482b62cc08cSmrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
483b62cc08cSmrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
4849fe995a9Smrg  sed -n '
4859fe995a9Smrg    p
4869fe995a9Smrg    /[$]LINENO/=
4879fe995a9Smrg  ' <$as_myself |
4889fe995a9Smrg    sed '
489772b5186Smrg      t clear
490772b5186Smrg      :clear
4919fe995a9Smrg      s/[$]LINENO.*/&-/
4929fe995a9Smrg      t lineno
4939fe995a9Smrg      b
4949fe995a9Smrg      :lineno
4959fe995a9Smrg      N
4969fe995a9Smrg      :loop
4979fe995a9Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
4989fe995a9Smrg      t loop
4999fe995a9Smrg      s/-\n.*//
5009fe995a9Smrg    ' >$as_me.lineno &&
5019fe995a9Smrg  chmod +x "$as_me.lineno" ||
502c048b52eSmrg    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
5039fe995a9Smrg
504e8ac26b0Smrg  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
505e8ac26b0Smrg  # already done that, so ensure we don't try to do so again and fall
506e8ac26b0Smrg  # in an infinite loop.  This has already happened in practice.
507e8ac26b0Smrg  _as_can_reexec=no; export _as_can_reexec
5089fe995a9Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
5099fe995a9Smrg  # (the dirname of $[0] is not the place where we might find the
5109fe995a9Smrg  # original and so on.  Autoconf is especially sensitive to this).
5119fe995a9Smrg  . "./$as_me.lineno"
5129fe995a9Smrg  # Exit status is that of the last command.
5139fe995a9Smrg  exit
5149fe995a9Smrg}
5159fe995a9Smrg
516c048b52eSmrg
517c048b52eSmrg# Determine whether it's possible to make 'echo' print without a newline.
518c048b52eSmrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
519c048b52eSmrg# for compatibility with existing Makefiles.
5209fe995a9SmrgECHO_C= ECHO_N= ECHO_T=
521b62cc08cSmrgcase `echo -n x` in #(((((
5229fe995a9Smrg-n*)
523b62cc08cSmrg  case `echo 'xy\c'` in
5249fe995a9Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
525b62cc08cSmrg  xy)  ECHO_C='\c';;
526b62cc08cSmrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
527b62cc08cSmrg       ECHO_T='	';;
5289fe995a9Smrg  esac;;
5299fe995a9Smrg*)
5309fe995a9Smrg  ECHO_N='-n';;
5319fe995a9Smrgesac
5329fe995a9Smrg
533c048b52eSmrg# For backward compatibility with old third-party macros, we provide
534c048b52eSmrg# the shell variables $as_echo and $as_echo_n.  New code should use
535c048b52eSmrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
536c048b52eSmrgas_echo='printf %s\n'
537c048b52eSmrgas_echo_n='printf %s'
538c048b52eSmrg
5399fe995a9Smrgrm -f conf$$ conf$$.exe conf$$.file
5409fe995a9Smrgif test -d conf$$.dir; then
5419fe995a9Smrg  rm -f conf$$.dir/conf$$.file
5429fe995a9Smrgelse
5439fe995a9Smrg  rm -f conf$$.dir
544b62cc08cSmrg  mkdir conf$$.dir 2>/dev/null
545b62cc08cSmrgfi
546b62cc08cSmrgif (echo >conf$$.file) 2>/dev/null; then
547b62cc08cSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
548b62cc08cSmrg    as_ln_s='ln -s'
549b62cc08cSmrg    # ... but there are two gotchas:
550772b5186Smrg    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
551772b5186Smrg    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
552772b5186Smrg    # In both cases, we have to default to 'cp -pR'.
553b62cc08cSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
554e8ac26b0Smrg      as_ln_s='cp -pR'
555b62cc08cSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
556b62cc08cSmrg    as_ln_s=ln
557b62cc08cSmrg  else
558e8ac26b0Smrg    as_ln_s='cp -pR'
559b62cc08cSmrg  fi
5609fe995a9Smrgelse
561e8ac26b0Smrg  as_ln_s='cp -pR'
5629fe995a9Smrgfi
5639fe995a9Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5649fe995a9Smrgrmdir conf$$.dir 2>/dev/null
5659fe995a9Smrg
5669fe995a9Smrgif mkdir -p . 2>/dev/null; then
567b62cc08cSmrg  as_mkdir_p='mkdir -p "$as_dir"'
5689fe995a9Smrgelse
5699fe995a9Smrg  test -d ./-p && rmdir ./-p
5709fe995a9Smrg  as_mkdir_p=false
5719fe995a9Smrgfi
5729fe995a9Smrg
573e8ac26b0Smrgas_test_x='test -x'
574e8ac26b0Smrgas_executable_p=as_fn_executable_p
5759fe995a9Smrg
5769fe995a9Smrg# Sed expression to map a string onto a valid CPP name.
577772b5186Smrgas_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
578772b5186Smrgas_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
5799fe995a9Smrg
5809fe995a9Smrg# Sed expression to map a string onto a valid variable name.
581772b5186Smrgas_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
582772b5186Smrgas_tr_sh="eval sed '$as_sed_sh'" # deprecated
5839fe995a9Smrg
5849fe995a9Smrg
585b62cc08cSmrgtest -n "$DJDIR" || exec 7<&0 </dev/null
586b62cc08cSmrgexec 6>&1
5879fe995a9Smrg
5889fe995a9Smrg# Name of the host.
589b62cc08cSmrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
5909fe995a9Smrg# so uname gets run too.
5919fe995a9Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
5929fe995a9Smrg
5939fe995a9Smrg#
5949fe995a9Smrg# Initializations.
5959fe995a9Smrg#
5969fe995a9Smrgac_default_prefix=/usr/local
5979fe995a9Smrgac_clean_files=
5989fe995a9Smrgac_config_libobj_dir=.
5999fe995a9SmrgLIBOBJS=
6009fe995a9Smrgcross_compiling=no
6019fe995a9Smrgsubdirs=
6029fe995a9SmrgMFLAGS=
6039fe995a9SmrgMAKEFLAGS=
6049fe995a9Smrg
6059fe995a9Smrg# Identity of this package.
6069fe995a9SmrgPACKAGE_NAME='iceauth'
6079fe995a9SmrgPACKAGE_TARNAME='iceauth'
608772b5186SmrgPACKAGE_VERSION='1.0.10'
609772b5186SmrgPACKAGE_STRING='iceauth 1.0.10'
610772b5186SmrgPACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/iceauth/-/issues'
611b62cc08cSmrgPACKAGE_URL=''
6129fe995a9Smrg
613e8ac26b0Smrgac_unique_file="Makefile.am"
614b62cc08cSmrg# Factoring default headers for most tests.
615b62cc08cSmrgac_includes_default="\
616c048b52eSmrg#include <stddef.h>
617c048b52eSmrg#ifdef HAVE_STDIO_H
618c048b52eSmrg# include <stdio.h>
619b62cc08cSmrg#endif
620c048b52eSmrg#ifdef HAVE_STDLIB_H
621b62cc08cSmrg# include <stdlib.h>
622b62cc08cSmrg#endif
623b62cc08cSmrg#ifdef HAVE_STRING_H
624b62cc08cSmrg# include <string.h>
625b62cc08cSmrg#endif
626b62cc08cSmrg#ifdef HAVE_INTTYPES_H
627b62cc08cSmrg# include <inttypes.h>
628b62cc08cSmrg#endif
629b62cc08cSmrg#ifdef HAVE_STDINT_H
630b62cc08cSmrg# include <stdint.h>
631b62cc08cSmrg#endif
632c048b52eSmrg#ifdef HAVE_STRINGS_H
633c048b52eSmrg# include <strings.h>
634c048b52eSmrg#endif
635c048b52eSmrg#ifdef HAVE_SYS_TYPES_H
636c048b52eSmrg# include <sys/types.h>
637c048b52eSmrg#endif
638c048b52eSmrg#ifdef HAVE_SYS_STAT_H
639c048b52eSmrg# include <sys/stat.h>
640c048b52eSmrg#endif
641b62cc08cSmrg#ifdef HAVE_UNISTD_H
642b62cc08cSmrg# include <unistd.h>
643b62cc08cSmrg#endif"
644b62cc08cSmrg
645c048b52eSmrgac_header_c_list=
646772b5186Smrgenable_year2038=no
647b62cc08cSmrgac_subst_vars='am__EXEEXT_FALSE
648b62cc08cSmrgam__EXEEXT_TRUE
649b62cc08cSmrgLTLIBOBJS
6509fe995a9SmrgLIBOBJS
651b62cc08cSmrgLINT_FALSE
652b62cc08cSmrgLINT_TRUE
653b62cc08cSmrgLINT_FLAGS
654b62cc08cSmrgLINT
655b62cc08cSmrgICEAUTH_LIBS
656b62cc08cSmrgICEAUTH_CFLAGS
657b62cc08cSmrgMAN_SUBSTS
658b62cc08cSmrgXORG_MAN_PAGE
659b62cc08cSmrgADMIN_MAN_DIR
660b62cc08cSmrgDRIVER_MAN_DIR
661b62cc08cSmrgMISC_MAN_DIR
662b62cc08cSmrgFILE_MAN_DIR
663b62cc08cSmrgLIB_MAN_DIR
664b62cc08cSmrgAPP_MAN_DIR
665b62cc08cSmrgADMIN_MAN_SUFFIX
666b62cc08cSmrgDRIVER_MAN_SUFFIX
667b62cc08cSmrgMISC_MAN_SUFFIX
668b62cc08cSmrgFILE_MAN_SUFFIX
669b62cc08cSmrgLIB_MAN_SUFFIX
670b62cc08cSmrgAPP_MAN_SUFFIX
671b62cc08cSmrgSED
672b62cc08cSmrghost_os
673b62cc08cSmrghost_vendor
674b62cc08cSmrghost_cpu
675b62cc08cSmrghost
676b62cc08cSmrgbuild_os
677b62cc08cSmrgbuild_vendor
678b62cc08cSmrgbuild_cpu
679b62cc08cSmrgbuild
680b62cc08cSmrgINSTALL_CMD
6816fbef84aSmrgPKG_CONFIG_LIBDIR
6826fbef84aSmrgPKG_CONFIG_PATH
683b62cc08cSmrgPKG_CONFIG
684b62cc08cSmrgCHANGELOG_CMD
6859d794632SmrgSTRICT_CFLAGS
686b62cc08cSmrgCWARNFLAGS
6879d794632SmrgBASE_CFLAGS
688772b5186SmrgAM_BACKSLASH
689772b5186SmrgAM_DEFAULT_VERBOSITY
690772b5186SmrgAM_DEFAULT_V
691772b5186SmrgAM_V
692772b5186SmrgCSCOPE
693772b5186SmrgETAGS
694772b5186SmrgCTAGS
695b62cc08cSmrgam__fastdepCC_FALSE
696b62cc08cSmrgam__fastdepCC_TRUE
697b62cc08cSmrgCCDEPMODE
6989d794632Smrgam__nodep
699b62cc08cSmrgAMDEPBACKSLASH
700b62cc08cSmrgAMDEP_FALSE
701b62cc08cSmrgAMDEP_TRUE
702b62cc08cSmrgam__include
703b62cc08cSmrgDEPDIR
704b62cc08cSmrgam__untar
705b62cc08cSmrgam__tar
706b62cc08cSmrgAMTAR
707b62cc08cSmrgam__leading_dot
708b62cc08cSmrgSET_MAKE
709b62cc08cSmrgAWK
710b62cc08cSmrgmkdir_p
711b62cc08cSmrgMKDIR_P
712b62cc08cSmrgINSTALL_STRIP_PROGRAM
713b62cc08cSmrgSTRIP
714b62cc08cSmrginstall_sh
715b62cc08cSmrgMAKEINFO
716b62cc08cSmrgAUTOHEADER
717b62cc08cSmrgAUTOMAKE
718b62cc08cSmrgAUTOCONF
719b62cc08cSmrgACLOCAL
720b62cc08cSmrgVERSION
721b62cc08cSmrgPACKAGE
722b62cc08cSmrgCYGPATH_W
723b62cc08cSmrgam__isrc
724b62cc08cSmrgINSTALL_DATA
725b62cc08cSmrgINSTALL_SCRIPT
726b62cc08cSmrgINSTALL_PROGRAM
727772b5186SmrgOBJEXT
728772b5186SmrgEXEEXT
729772b5186Smrgac_ct_CC
730772b5186SmrgCPPFLAGS
731772b5186SmrgLDFLAGS
732772b5186SmrgCFLAGS
733772b5186SmrgCC
734b62cc08cSmrgtarget_alias
735b62cc08cSmrghost_alias
736b62cc08cSmrgbuild_alias
737b62cc08cSmrgLIBS
738b62cc08cSmrgECHO_T
739b62cc08cSmrgECHO_N
740b62cc08cSmrgECHO_C
741b62cc08cSmrgDEFS
742b62cc08cSmrgmandir
743b62cc08cSmrglocaledir
744b62cc08cSmrglibdir
745b62cc08cSmrgpsdir
746b62cc08cSmrgpdfdir
747b62cc08cSmrgdvidir
748b62cc08cSmrghtmldir
749b62cc08cSmrginfodir
750b62cc08cSmrgdocdir
751b62cc08cSmrgoldincludedir
752b62cc08cSmrgincludedir
753c048b52eSmrgrunstatedir
754b62cc08cSmrglocalstatedir
755b62cc08cSmrgsharedstatedir
756b62cc08cSmrgsysconfdir
757b62cc08cSmrgdatadir
758b62cc08cSmrgdatarootdir
759b62cc08cSmrglibexecdir
760b62cc08cSmrgsbindir
761b62cc08cSmrgbindir
762b62cc08cSmrgprogram_transform_name
763b62cc08cSmrgprefix
764b62cc08cSmrgexec_prefix
765b62cc08cSmrgPACKAGE_URL
766b62cc08cSmrgPACKAGE_BUGREPORT
767b62cc08cSmrgPACKAGE_STRING
768b62cc08cSmrgPACKAGE_VERSION
769b62cc08cSmrgPACKAGE_TARNAME
770b62cc08cSmrgPACKAGE_NAME
771b62cc08cSmrgPATH_SEPARATOR
772c048b52eSmrgSHELL
773c048b52eSmrgam__quote'
7749fe995a9Smrgac_subst_files=''
775b62cc08cSmrgac_user_opts='
776b62cc08cSmrgenable_option_checking
777b62cc08cSmrgenable_dependency_tracking
778772b5186Smrgenable_silent_rules
7799d794632Smrgenable_selective_werror
780b62cc08cSmrgenable_strict_compilation
781772b5186Smrgenable_largefile
782b62cc08cSmrgwith_lint
783772b5186Smrgenable_year2038
784b62cc08cSmrg'
7859fe995a9Smrg      ac_precious_vars='build_alias
7869fe995a9Smrghost_alias
7879fe995a9Smrgtarget_alias
7889fe995a9SmrgCC
7899fe995a9SmrgCFLAGS
7909fe995a9SmrgLDFLAGS
7919fe995a9SmrgLIBS
7929fe995a9SmrgCPPFLAGS
7939fe995a9SmrgPKG_CONFIG
7946fbef84aSmrgPKG_CONFIG_PATH
7956fbef84aSmrgPKG_CONFIG_LIBDIR
7969fe995a9SmrgICEAUTH_CFLAGS
797b62cc08cSmrgICEAUTH_LIBS
798b62cc08cSmrgLINT
799b62cc08cSmrgLINT_FLAGS'
8009fe995a9Smrg
8019fe995a9Smrg
8029fe995a9Smrg# Initialize some variables set by options.
8039fe995a9Smrgac_init_help=
8049fe995a9Smrgac_init_version=false
805b62cc08cSmrgac_unrecognized_opts=
806b62cc08cSmrgac_unrecognized_sep=
8079fe995a9Smrg# The variables have the same names as the options, with
8089fe995a9Smrg# dashes changed to underlines.
8099fe995a9Smrgcache_file=/dev/null
8109fe995a9Smrgexec_prefix=NONE
8119fe995a9Smrgno_create=
8129fe995a9Smrgno_recursion=
8139fe995a9Smrgprefix=NONE
8149fe995a9Smrgprogram_prefix=NONE
8159fe995a9Smrgprogram_suffix=NONE
8169fe995a9Smrgprogram_transform_name=s,x,x,
8179fe995a9Smrgsilent=
8189fe995a9Smrgsite=
8199fe995a9Smrgsrcdir=
8209fe995a9Smrgverbose=
8219fe995a9Smrgx_includes=NONE
8229fe995a9Smrgx_libraries=NONE
8239fe995a9Smrg
8249fe995a9Smrg# Installation directory options.
8259fe995a9Smrg# These are left unexpanded so users can "make install exec_prefix=/foo"
8269fe995a9Smrg# and all the variables that are supposed to be based on exec_prefix
8279fe995a9Smrg# by default will actually change.
8289fe995a9Smrg# Use braces instead of parens because sh, perl, etc. also accept them.
8299fe995a9Smrg# (The list follows the same order as the GNU Coding Standards.)
8309fe995a9Smrgbindir='${exec_prefix}/bin'
8319fe995a9Smrgsbindir='${exec_prefix}/sbin'
8329fe995a9Smrglibexecdir='${exec_prefix}/libexec'
8339fe995a9Smrgdatarootdir='${prefix}/share'
8349fe995a9Smrgdatadir='${datarootdir}'
8359fe995a9Smrgsysconfdir='${prefix}/etc'
8369fe995a9Smrgsharedstatedir='${prefix}/com'
8379fe995a9Smrglocalstatedir='${prefix}/var'
838c048b52eSmrgrunstatedir='${localstatedir}/run'
8399fe995a9Smrgincludedir='${prefix}/include'
8409fe995a9Smrgoldincludedir='/usr/include'
8419fe995a9Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
8429fe995a9Smrginfodir='${datarootdir}/info'
8439fe995a9Smrghtmldir='${docdir}'
8449fe995a9Smrgdvidir='${docdir}'
8459fe995a9Smrgpdfdir='${docdir}'
8469fe995a9Smrgpsdir='${docdir}'
8479fe995a9Smrglibdir='${exec_prefix}/lib'
8489fe995a9Smrglocaledir='${datarootdir}/locale'
8499fe995a9Smrgmandir='${datarootdir}/man'
8509fe995a9Smrg
8519fe995a9Smrgac_prev=
8529fe995a9Smrgac_dashdash=
8539fe995a9Smrgfor ac_option
8549fe995a9Smrgdo
8559fe995a9Smrg  # If the previous option needs an argument, assign it.
8569fe995a9Smrg  if test -n "$ac_prev"; then
8579fe995a9Smrg    eval $ac_prev=\$ac_option
8589fe995a9Smrg    ac_prev=
8599fe995a9Smrg    continue
8609fe995a9Smrg  fi
8619fe995a9Smrg
8629fe995a9Smrg  case $ac_option in
863b62cc08cSmrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
864b62cc08cSmrg  *=)   ac_optarg= ;;
865b62cc08cSmrg  *)    ac_optarg=yes ;;
8669fe995a9Smrg  esac
8679fe995a9Smrg
8689fe995a9Smrg  case $ac_dashdash$ac_option in
8699fe995a9Smrg  --)
8709fe995a9Smrg    ac_dashdash=yes ;;
8719fe995a9Smrg
8729fe995a9Smrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
8739fe995a9Smrg    ac_prev=bindir ;;
8749fe995a9Smrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
8759fe995a9Smrg    bindir=$ac_optarg ;;
8769fe995a9Smrg
8779fe995a9Smrg  -build | --build | --buil | --bui | --bu)
8789fe995a9Smrg    ac_prev=build_alias ;;
8799fe995a9Smrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
8809fe995a9Smrg    build_alias=$ac_optarg ;;
8819fe995a9Smrg
8829fe995a9Smrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
8839fe995a9Smrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8849fe995a9Smrg    ac_prev=cache_file ;;
8859fe995a9Smrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8869fe995a9Smrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
8879fe995a9Smrg    cache_file=$ac_optarg ;;
8889fe995a9Smrg
8899fe995a9Smrg  --config-cache | -C)
8909fe995a9Smrg    cache_file=config.cache ;;
8919fe995a9Smrg
8929fe995a9Smrg  -datadir | --datadir | --datadi | --datad)
8939fe995a9Smrg    ac_prev=datadir ;;
8949fe995a9Smrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
8959fe995a9Smrg    datadir=$ac_optarg ;;
8969fe995a9Smrg
8979fe995a9Smrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
8989fe995a9Smrg  | --dataroo | --dataro | --datar)
8999fe995a9Smrg    ac_prev=datarootdir ;;
9009fe995a9Smrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
9019fe995a9Smrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
9029fe995a9Smrg    datarootdir=$ac_optarg ;;
9039fe995a9Smrg
9049fe995a9Smrg  -disable-* | --disable-*)
905b62cc08cSmrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
9069fe995a9Smrg    # Reject names that are not valid shell variable names.
907b62cc08cSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
908772b5186Smrg      as_fn_error $? "invalid feature name: '$ac_useropt'"
909b62cc08cSmrg    ac_useropt_orig=$ac_useropt
910c048b52eSmrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
911b62cc08cSmrg    case $ac_user_opts in
912b62cc08cSmrg      *"
913b62cc08cSmrg"enable_$ac_useropt"
914b62cc08cSmrg"*) ;;
915b62cc08cSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
916b62cc08cSmrg	 ac_unrecognized_sep=', ';;
917b62cc08cSmrg    esac
918b62cc08cSmrg    eval enable_$ac_useropt=no ;;
9199fe995a9Smrg
9209fe995a9Smrg  -docdir | --docdir | --docdi | --doc | --do)
9219fe995a9Smrg    ac_prev=docdir ;;
9229fe995a9Smrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
9239fe995a9Smrg    docdir=$ac_optarg ;;
9249fe995a9Smrg
9259fe995a9Smrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
9269fe995a9Smrg    ac_prev=dvidir ;;
9279fe995a9Smrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
9289fe995a9Smrg    dvidir=$ac_optarg ;;
9299fe995a9Smrg
9309fe995a9Smrg  -enable-* | --enable-*)
931b62cc08cSmrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
9329fe995a9Smrg    # Reject names that are not valid shell variable names.
933b62cc08cSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
934772b5186Smrg      as_fn_error $? "invalid feature name: '$ac_useropt'"
935b62cc08cSmrg    ac_useropt_orig=$ac_useropt
936c048b52eSmrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
937b62cc08cSmrg    case $ac_user_opts in
938b62cc08cSmrg      *"
939b62cc08cSmrg"enable_$ac_useropt"
940b62cc08cSmrg"*) ;;
941b62cc08cSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
942b62cc08cSmrg	 ac_unrecognized_sep=', ';;
943b62cc08cSmrg    esac
944b62cc08cSmrg    eval enable_$ac_useropt=\$ac_optarg ;;
9459fe995a9Smrg
9469fe995a9Smrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
9479fe995a9Smrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
9489fe995a9Smrg  | --exec | --exe | --ex)
9499fe995a9Smrg    ac_prev=exec_prefix ;;
9509fe995a9Smrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
9519fe995a9Smrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
9529fe995a9Smrg  | --exec=* | --exe=* | --ex=*)
9539fe995a9Smrg    exec_prefix=$ac_optarg ;;
9549fe995a9Smrg
9559fe995a9Smrg  -gas | --gas | --ga | --g)
9569fe995a9Smrg    # Obsolete; use --with-gas.
9579fe995a9Smrg    with_gas=yes ;;
9589fe995a9Smrg
9599fe995a9Smrg  -help | --help | --hel | --he | -h)
9609fe995a9Smrg    ac_init_help=long ;;
9619fe995a9Smrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
9629fe995a9Smrg    ac_init_help=recursive ;;
9639fe995a9Smrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
9649fe995a9Smrg    ac_init_help=short ;;
9659fe995a9Smrg
9669fe995a9Smrg  -host | --host | --hos | --ho)
9679fe995a9Smrg    ac_prev=host_alias ;;
9689fe995a9Smrg  -host=* | --host=* | --hos=* | --ho=*)
9699fe995a9Smrg    host_alias=$ac_optarg ;;
9709fe995a9Smrg
9719fe995a9Smrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
9729fe995a9Smrg    ac_prev=htmldir ;;
9739fe995a9Smrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
9749fe995a9Smrg  | --ht=*)
9759fe995a9Smrg    htmldir=$ac_optarg ;;
9769fe995a9Smrg
9779fe995a9Smrg  -includedir | --includedir | --includedi | --included | --include \
9789fe995a9Smrg  | --includ | --inclu | --incl | --inc)
9799fe995a9Smrg    ac_prev=includedir ;;
9809fe995a9Smrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
9819fe995a9Smrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
9829fe995a9Smrg    includedir=$ac_optarg ;;
9839fe995a9Smrg
9849fe995a9Smrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
9859fe995a9Smrg    ac_prev=infodir ;;
9869fe995a9Smrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
9879fe995a9Smrg    infodir=$ac_optarg ;;
9889fe995a9Smrg
9899fe995a9Smrg  -libdir | --libdir | --libdi | --libd)
9909fe995a9Smrg    ac_prev=libdir ;;
9919fe995a9Smrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
9929fe995a9Smrg    libdir=$ac_optarg ;;
9939fe995a9Smrg
9949fe995a9Smrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
9959fe995a9Smrg  | --libexe | --libex | --libe)
9969fe995a9Smrg    ac_prev=libexecdir ;;
9979fe995a9Smrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
9989fe995a9Smrg  | --libexe=* | --libex=* | --libe=*)
9999fe995a9Smrg    libexecdir=$ac_optarg ;;
10009fe995a9Smrg
10019fe995a9Smrg  -localedir | --localedir | --localedi | --localed | --locale)
10029fe995a9Smrg    ac_prev=localedir ;;
10039fe995a9Smrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
10049fe995a9Smrg    localedir=$ac_optarg ;;
10059fe995a9Smrg
10069fe995a9Smrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
10079fe995a9Smrg  | --localstate | --localstat | --localsta | --localst | --locals)
10089fe995a9Smrg    ac_prev=localstatedir ;;
10099fe995a9Smrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
10109fe995a9Smrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
10119fe995a9Smrg    localstatedir=$ac_optarg ;;
10129fe995a9Smrg
10139fe995a9Smrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
10149fe995a9Smrg    ac_prev=mandir ;;
10159fe995a9Smrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
10169fe995a9Smrg    mandir=$ac_optarg ;;
10179fe995a9Smrg
10189fe995a9Smrg  -nfp | --nfp | --nf)
10199fe995a9Smrg    # Obsolete; use --without-fp.
10209fe995a9Smrg    with_fp=no ;;
10219fe995a9Smrg
10229fe995a9Smrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
10239fe995a9Smrg  | --no-cr | --no-c | -n)
10249fe995a9Smrg    no_create=yes ;;
10259fe995a9Smrg
10269fe995a9Smrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
10279fe995a9Smrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
10289fe995a9Smrg    no_recursion=yes ;;
10299fe995a9Smrg
10309fe995a9Smrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
10319fe995a9Smrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
10329fe995a9Smrg  | --oldin | --oldi | --old | --ol | --o)
10339fe995a9Smrg    ac_prev=oldincludedir ;;
10349fe995a9Smrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
10359fe995a9Smrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
10369fe995a9Smrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
10379fe995a9Smrg    oldincludedir=$ac_optarg ;;
10389fe995a9Smrg
10399fe995a9Smrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10409fe995a9Smrg    ac_prev=prefix ;;
10419fe995a9Smrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10429fe995a9Smrg    prefix=$ac_optarg ;;
10439fe995a9Smrg
10449fe995a9Smrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
10459fe995a9Smrg  | --program-pre | --program-pr | --program-p)
10469fe995a9Smrg    ac_prev=program_prefix ;;
10479fe995a9Smrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
10489fe995a9Smrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
10499fe995a9Smrg    program_prefix=$ac_optarg ;;
10509fe995a9Smrg
10519fe995a9Smrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
10529fe995a9Smrg  | --program-suf | --program-su | --program-s)
10539fe995a9Smrg    ac_prev=program_suffix ;;
10549fe995a9Smrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
10559fe995a9Smrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
10569fe995a9Smrg    program_suffix=$ac_optarg ;;
10579fe995a9Smrg
10589fe995a9Smrg  -program-transform-name | --program-transform-name \
10599fe995a9Smrg  | --program-transform-nam | --program-transform-na \
10609fe995a9Smrg  | --program-transform-n | --program-transform- \
10619fe995a9Smrg  | --program-transform | --program-transfor \
10629fe995a9Smrg  | --program-transfo | --program-transf \
10639fe995a9Smrg  | --program-trans | --program-tran \
10649fe995a9Smrg  | --progr-tra | --program-tr | --program-t)
10659fe995a9Smrg    ac_prev=program_transform_name ;;
10669fe995a9Smrg  -program-transform-name=* | --program-transform-name=* \
10679fe995a9Smrg  | --program-transform-nam=* | --program-transform-na=* \
10689fe995a9Smrg  | --program-transform-n=* | --program-transform-=* \
10699fe995a9Smrg  | --program-transform=* | --program-transfor=* \
10709fe995a9Smrg  | --program-transfo=* | --program-transf=* \
10719fe995a9Smrg  | --program-trans=* | --program-tran=* \
10729fe995a9Smrg  | --progr-tra=* | --program-tr=* | --program-t=*)
10739fe995a9Smrg    program_transform_name=$ac_optarg ;;
10749fe995a9Smrg
10759fe995a9Smrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
10769fe995a9Smrg    ac_prev=pdfdir ;;
10779fe995a9Smrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
10789fe995a9Smrg    pdfdir=$ac_optarg ;;
10799fe995a9Smrg
10809fe995a9Smrg  -psdir | --psdir | --psdi | --psd | --ps)
10819fe995a9Smrg    ac_prev=psdir ;;
10829fe995a9Smrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
10839fe995a9Smrg    psdir=$ac_optarg ;;
10849fe995a9Smrg
10859fe995a9Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10869fe995a9Smrg  | -silent | --silent | --silen | --sile | --sil)
10879fe995a9Smrg    silent=yes ;;
10889fe995a9Smrg
1089c048b52eSmrg  -runstatedir | --runstatedir | --runstatedi | --runstated \
1090c048b52eSmrg  | --runstate | --runstat | --runsta | --runst | --runs \
1091c048b52eSmrg  | --run | --ru | --r)
1092c048b52eSmrg    ac_prev=runstatedir ;;
1093c048b52eSmrg  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1094c048b52eSmrg  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1095c048b52eSmrg  | --run=* | --ru=* | --r=*)
1096c048b52eSmrg    runstatedir=$ac_optarg ;;
1097c048b52eSmrg
10989fe995a9Smrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
10999fe995a9Smrg    ac_prev=sbindir ;;
11009fe995a9Smrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
11019fe995a9Smrg  | --sbi=* | --sb=*)
11029fe995a9Smrg    sbindir=$ac_optarg ;;
11039fe995a9Smrg
11049fe995a9Smrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
11059fe995a9Smrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
11069fe995a9Smrg  | --sharedst | --shareds | --shared | --share | --shar \
11079fe995a9Smrg  | --sha | --sh)
11089fe995a9Smrg    ac_prev=sharedstatedir ;;
11099fe995a9Smrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
11109fe995a9Smrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
11119fe995a9Smrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
11129fe995a9Smrg  | --sha=* | --sh=*)
11139fe995a9Smrg    sharedstatedir=$ac_optarg ;;
11149fe995a9Smrg
11159fe995a9Smrg  -site | --site | --sit)
11169fe995a9Smrg    ac_prev=site ;;
11179fe995a9Smrg  -site=* | --site=* | --sit=*)
11189fe995a9Smrg    site=$ac_optarg ;;
11199fe995a9Smrg
11209fe995a9Smrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
11219fe995a9Smrg    ac_prev=srcdir ;;
11229fe995a9Smrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
11239fe995a9Smrg    srcdir=$ac_optarg ;;
11249fe995a9Smrg
11259fe995a9Smrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
11269fe995a9Smrg  | --syscon | --sysco | --sysc | --sys | --sy)
11279fe995a9Smrg    ac_prev=sysconfdir ;;
11289fe995a9Smrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
11299fe995a9Smrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
11309fe995a9Smrg    sysconfdir=$ac_optarg ;;
11319fe995a9Smrg
11329fe995a9Smrg  -target | --target | --targe | --targ | --tar | --ta | --t)
11339fe995a9Smrg    ac_prev=target_alias ;;
11349fe995a9Smrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
11359fe995a9Smrg    target_alias=$ac_optarg ;;
11369fe995a9Smrg
11379fe995a9Smrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
11389fe995a9Smrg    verbose=yes ;;
11399fe995a9Smrg
11409fe995a9Smrg  -version | --version | --versio | --versi | --vers | -V)
11419fe995a9Smrg    ac_init_version=: ;;
11429fe995a9Smrg
11439fe995a9Smrg  -with-* | --with-*)
1144b62cc08cSmrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
11459fe995a9Smrg    # Reject names that are not valid shell variable names.
1146b62cc08cSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147772b5186Smrg      as_fn_error $? "invalid package name: '$ac_useropt'"
1148b62cc08cSmrg    ac_useropt_orig=$ac_useropt
1149c048b52eSmrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1150b62cc08cSmrg    case $ac_user_opts in
1151b62cc08cSmrg      *"
1152b62cc08cSmrg"with_$ac_useropt"
1153b62cc08cSmrg"*) ;;
1154b62cc08cSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1155b62cc08cSmrg	 ac_unrecognized_sep=', ';;
1156b62cc08cSmrg    esac
1157b62cc08cSmrg    eval with_$ac_useropt=\$ac_optarg ;;
11589fe995a9Smrg
11599fe995a9Smrg  -without-* | --without-*)
1160b62cc08cSmrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
11619fe995a9Smrg    # Reject names that are not valid shell variable names.
1162b62cc08cSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1163772b5186Smrg      as_fn_error $? "invalid package name: '$ac_useropt'"
1164b62cc08cSmrg    ac_useropt_orig=$ac_useropt
1165c048b52eSmrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1166b62cc08cSmrg    case $ac_user_opts in
1167b62cc08cSmrg      *"
1168b62cc08cSmrg"with_$ac_useropt"
1169b62cc08cSmrg"*) ;;
1170b62cc08cSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1171b62cc08cSmrg	 ac_unrecognized_sep=', ';;
1172b62cc08cSmrg    esac
1173b62cc08cSmrg    eval with_$ac_useropt=no ;;
11749fe995a9Smrg
11759fe995a9Smrg  --x)
11769fe995a9Smrg    # Obsolete; use --with-x.
11779fe995a9Smrg    with_x=yes ;;
11789fe995a9Smrg
11799fe995a9Smrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
11809fe995a9Smrg  | --x-incl | --x-inc | --x-in | --x-i)
11819fe995a9Smrg    ac_prev=x_includes ;;
11829fe995a9Smrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
11839fe995a9Smrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
11849fe995a9Smrg    x_includes=$ac_optarg ;;
11859fe995a9Smrg
11869fe995a9Smrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
11879fe995a9Smrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
11889fe995a9Smrg    ac_prev=x_libraries ;;
11899fe995a9Smrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
11909fe995a9Smrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
11919fe995a9Smrg    x_libraries=$ac_optarg ;;
11929fe995a9Smrg
1193772b5186Smrg  -*) as_fn_error $? "unrecognized option: '$ac_option'
1194772b5186SmrgTry '$0 --help' for more information"
11959fe995a9Smrg    ;;
11969fe995a9Smrg
11979fe995a9Smrg  *=*)
11989fe995a9Smrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
11999fe995a9Smrg    # Reject names that are not valid shell variable names.
1200b62cc08cSmrg    case $ac_envvar in #(
1201b62cc08cSmrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
1202772b5186Smrg      as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1203b62cc08cSmrg    esac
12049fe995a9Smrg    eval $ac_envvar=\$ac_optarg
12059fe995a9Smrg    export $ac_envvar ;;
12069fe995a9Smrg
12079fe995a9Smrg  *)
12089fe995a9Smrg    # FIXME: should be removed in autoconf 3.0.
1209c048b52eSmrg    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
12109fe995a9Smrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1211c048b52eSmrg      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1212b62cc08cSmrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
12139fe995a9Smrg    ;;
12149fe995a9Smrg
12159fe995a9Smrg  esac
12169fe995a9Smrgdone
12179fe995a9Smrg
12189fe995a9Smrgif test -n "$ac_prev"; then
12199fe995a9Smrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1220b62cc08cSmrg  as_fn_error $? "missing argument to $ac_option"
1221b62cc08cSmrgfi
1222b62cc08cSmrg
1223b62cc08cSmrgif test -n "$ac_unrecognized_opts"; then
1224b62cc08cSmrg  case $enable_option_checking in
1225b62cc08cSmrg    no) ;;
1226b62cc08cSmrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1227c048b52eSmrg    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1228b62cc08cSmrg  esac
12299fe995a9Smrgfi
12309fe995a9Smrg
1231b62cc08cSmrg# Check all directory arguments for consistency.
12329fe995a9Smrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
12339fe995a9Smrg		datadir sysconfdir sharedstatedir localstatedir includedir \
12349fe995a9Smrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1235c048b52eSmrg		libdir localedir mandir runstatedir
12369fe995a9Smrgdo
12379fe995a9Smrg  eval ac_val=\$$ac_var
1238b62cc08cSmrg  # Remove trailing slashes.
1239b62cc08cSmrg  case $ac_val in
1240b62cc08cSmrg    */ )
1241b62cc08cSmrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1242b62cc08cSmrg      eval $ac_var=\$ac_val;;
1243b62cc08cSmrg  esac
1244b62cc08cSmrg  # Be sure to have absolute directory names.
12459fe995a9Smrg  case $ac_val in
12469fe995a9Smrg    [\\/$]* | ?:[\\/]* )  continue;;
12479fe995a9Smrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
12489fe995a9Smrg  esac
1249b62cc08cSmrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
12509fe995a9Smrgdone
12519fe995a9Smrg
1252772b5186Smrg# There might be people who depend on the old broken behavior: '$host'
12539fe995a9Smrg# used to hold the argument of --host etc.
12549fe995a9Smrg# FIXME: To remove some day.
12559fe995a9Smrgbuild=$build_alias
12569fe995a9Smrghost=$host_alias
12579fe995a9Smrgtarget=$target_alias
12589fe995a9Smrg
12599fe995a9Smrg# FIXME: To remove some day.
12609fe995a9Smrgif test "x$host_alias" != x; then
12619fe995a9Smrg  if test "x$build_alias" = x; then
12629fe995a9Smrg    cross_compiling=maybe
12639fe995a9Smrg  elif test "x$build_alias" != "x$host_alias"; then
12649fe995a9Smrg    cross_compiling=yes
12659fe995a9Smrg  fi
12669fe995a9Smrgfi
12679fe995a9Smrg
12689fe995a9Smrgac_tool_prefix=
12699fe995a9Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
12709fe995a9Smrg
12719fe995a9Smrgtest "$silent" = yes && exec 6>/dev/null
12729fe995a9Smrg
12739fe995a9Smrg
12749fe995a9Smrgac_pwd=`pwd` && test -n "$ac_pwd" &&
12759fe995a9Smrgac_ls_di=`ls -di .` &&
12769fe995a9Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1277b62cc08cSmrg  as_fn_error $? "working directory cannot be determined"
12789fe995a9Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1279b62cc08cSmrg  as_fn_error $? "pwd does not report name of working directory"
12809fe995a9Smrg
12819fe995a9Smrg
12829fe995a9Smrg# Find the source files, if location was not specified.
12839fe995a9Smrgif test -z "$srcdir"; then
12849fe995a9Smrg  ac_srcdir_defaulted=yes
12859fe995a9Smrg  # Try the directory containing this script, then the parent directory.
1286b62cc08cSmrg  ac_confdir=`$as_dirname -- "$as_myself" ||
1287b62cc08cSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1288b62cc08cSmrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
1289b62cc08cSmrg	 X"$as_myself" : 'X\(//\)$' \| \
1290b62cc08cSmrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1291c048b52eSmrgprintf "%s\n" X"$as_myself" |
12929fe995a9Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12939fe995a9Smrg	    s//\1/
12949fe995a9Smrg	    q
12959fe995a9Smrg	  }
12969fe995a9Smrg	  /^X\(\/\/\)[^/].*/{
12979fe995a9Smrg	    s//\1/
12989fe995a9Smrg	    q
12999fe995a9Smrg	  }
13009fe995a9Smrg	  /^X\(\/\/\)$/{
13019fe995a9Smrg	    s//\1/
13029fe995a9Smrg	    q
13039fe995a9Smrg	  }
13049fe995a9Smrg	  /^X\(\/\).*/{
13059fe995a9Smrg	    s//\1/
13069fe995a9Smrg	    q
13079fe995a9Smrg	  }
13089fe995a9Smrg	  s/.*/./; q'`
13099fe995a9Smrg  srcdir=$ac_confdir
13109fe995a9Smrg  if test ! -r "$srcdir/$ac_unique_file"; then
13119fe995a9Smrg    srcdir=..
13129fe995a9Smrg  fi
13139fe995a9Smrgelse
13149fe995a9Smrg  ac_srcdir_defaulted=no
13159fe995a9Smrgfi
13169fe995a9Smrgif test ! -r "$srcdir/$ac_unique_file"; then
13179fe995a9Smrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1318b62cc08cSmrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
13199fe995a9Smrgfi
1320772b5186Smrgac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
13219fe995a9Smrgac_abs_confdir=`(
1322b62cc08cSmrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
13239fe995a9Smrg	pwd)`
13249fe995a9Smrg# When building in place, set srcdir=.
13259fe995a9Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then
13269fe995a9Smrg  srcdir=.
13279fe995a9Smrgfi
13289fe995a9Smrg# Remove unnecessary trailing slashes from srcdir.
13299fe995a9Smrg# Double slashes in file names in object file debugging info
13309fe995a9Smrg# mess up M-x gdb in Emacs.
13319fe995a9Smrgcase $srcdir in
13329fe995a9Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
13339fe995a9Smrgesac
13349fe995a9Smrgfor ac_var in $ac_precious_vars; do
13359fe995a9Smrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
13369fe995a9Smrg  eval ac_env_${ac_var}_value=\$${ac_var}
13379fe995a9Smrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
13389fe995a9Smrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
13399fe995a9Smrgdone
13409fe995a9Smrg
13419fe995a9Smrg#
13429fe995a9Smrg# Report the --help message.
13439fe995a9Smrg#
13449fe995a9Smrgif test "$ac_init_help" = "long"; then
13459fe995a9Smrg  # Omit some internal or obsolete options to make the list less imposing.
13469fe995a9Smrg  # This message is too long to be a string in the A/UX 3.1 sh.
13479fe995a9Smrg  cat <<_ACEOF
1348772b5186Smrg'configure' configures iceauth 1.0.10 to adapt to many kinds of systems.
13499fe995a9Smrg
13509fe995a9SmrgUsage: $0 [OPTION]... [VAR=VALUE]...
13519fe995a9Smrg
13529fe995a9SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
13539fe995a9SmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
13549fe995a9Smrg
13559fe995a9SmrgDefaults for the options are specified in brackets.
13569fe995a9Smrg
13579fe995a9SmrgConfiguration:
13589fe995a9Smrg  -h, --help              display this help and exit
13599fe995a9Smrg      --help=short        display options specific to this package
13609fe995a9Smrg      --help=recursive    display the short help of all the included packages
13619fe995a9Smrg  -V, --version           display version information and exit
1362772b5186Smrg  -q, --quiet, --silent   do not print 'checking ...' messages
13639fe995a9Smrg      --cache-file=FILE   cache test results in FILE [disabled]
1364772b5186Smrg  -C, --config-cache      alias for '--cache-file=config.cache'
13659fe995a9Smrg  -n, --no-create         do not create output files
1366772b5186Smrg      --srcdir=DIR        find the sources in DIR [configure dir or '..']
13679fe995a9Smrg
13689fe995a9SmrgInstallation directories:
13699fe995a9Smrg  --prefix=PREFIX         install architecture-independent files in PREFIX
1370b62cc08cSmrg                          [$ac_default_prefix]
13719fe995a9Smrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1372b62cc08cSmrg                          [PREFIX]
13739fe995a9Smrg
1374772b5186SmrgBy default, 'make install' will install all the files in
1375772b5186Smrg'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc.  You can specify
1376772b5186Smrgan installation prefix other than '$ac_default_prefix' using '--prefix',
1377772b5186Smrgfor instance '--prefix=\$HOME'.
13789fe995a9Smrg
13799fe995a9SmrgFor better control, use the options below.
13809fe995a9Smrg
13819fe995a9SmrgFine tuning of the installation directories:
1382b62cc08cSmrg  --bindir=DIR            user executables [EPREFIX/bin]
1383b62cc08cSmrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1384b62cc08cSmrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
1385b62cc08cSmrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1386b62cc08cSmrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1387b62cc08cSmrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1388c048b52eSmrg  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1389b62cc08cSmrg  --libdir=DIR            object code libraries [EPREFIX/lib]
1390b62cc08cSmrg  --includedir=DIR        C header files [PREFIX/include]
1391b62cc08cSmrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1392b62cc08cSmrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1393b62cc08cSmrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1394b62cc08cSmrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
1395b62cc08cSmrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1396b62cc08cSmrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
1397b62cc08cSmrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/iceauth]
1398b62cc08cSmrg  --htmldir=DIR           html documentation [DOCDIR]
1399b62cc08cSmrg  --dvidir=DIR            dvi documentation [DOCDIR]
1400b62cc08cSmrg  --pdfdir=DIR            pdf documentation [DOCDIR]
1401b62cc08cSmrg  --psdir=DIR             ps documentation [DOCDIR]
14029fe995a9Smrg_ACEOF
14039fe995a9Smrg
14049fe995a9Smrg  cat <<\_ACEOF
14059fe995a9Smrg
14069fe995a9SmrgProgram names:
14079fe995a9Smrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
14089fe995a9Smrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
14099fe995a9Smrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
14109fe995a9Smrg
14119fe995a9SmrgSystem types:
14129fe995a9Smrg  --build=BUILD     configure for building on BUILD [guessed]
14139fe995a9Smrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
14149fe995a9Smrg_ACEOF
14159fe995a9Smrgfi
14169fe995a9Smrg
14179fe995a9Smrgif test -n "$ac_init_help"; then
14189fe995a9Smrg  case $ac_init_help in
1419772b5186Smrg     short | recursive ) echo "Configuration of iceauth 1.0.10:";;
14209fe995a9Smrg   esac
14219fe995a9Smrg  cat <<\_ACEOF
14229fe995a9Smrg
14239fe995a9SmrgOptional Features:
1424b62cc08cSmrg  --disable-option-checking  ignore unrecognized --enable/--with options
14259fe995a9Smrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
14269fe995a9Smrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
14279d794632Smrg  --enable-dependency-tracking
14289d794632Smrg                          do not reject slow dependency extractors
14299d794632Smrg  --disable-dependency-tracking
14309d794632Smrg                          speeds up one-time build
1431772b5186Smrg  --enable-silent-rules   less verbose build output (undo: "make V=1")
1432772b5186Smrg  --disable-silent-rules  verbose build output (undo: "make V=0")
14339d794632Smrg  --disable-selective-werror
14349d794632Smrg                          Turn off selective compiler errors. (default:
14359d794632Smrg                          enabled)
1436b62cc08cSmrg  --enable-strict-compilation
1437b62cc08cSmrg                          Enable all warnings from compiler and make them
1438b62cc08cSmrg                          errors (default: disabled)
1439772b5186Smrg  --disable-largefile     omit support for large files
1440772b5186Smrg  --enable-year2038       support timestamps after 2038
14419fe995a9Smrg
14429fe995a9SmrgOptional Packages:
14439fe995a9Smrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
14449fe995a9Smrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
14459fe995a9Smrg  --with-lint             Use a lint-style source code checker (default:
14469fe995a9Smrg                          disabled)
14479fe995a9Smrg
14489fe995a9SmrgSome influential environment variables:
14499fe995a9Smrg  CC          C compiler command
14509fe995a9Smrg  CFLAGS      C compiler flags
14519fe995a9Smrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
14529fe995a9Smrg              nonstandard directory <lib dir>
14539fe995a9Smrg  LIBS        libraries to pass to the linker, e.g. -l<library>
1454b62cc08cSmrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
14559fe995a9Smrg              you have headers in a nonstandard directory <include dir>
14569fe995a9Smrg  PKG_CONFIG  path to pkg-config utility
14576fbef84aSmrg  PKG_CONFIG_PATH
14586fbef84aSmrg              directories to add to pkg-config's search path
14596fbef84aSmrg  PKG_CONFIG_LIBDIR
14606fbef84aSmrg              path overriding pkg-config's built-in search path
14619fe995a9Smrg  ICEAUTH_CFLAGS
14629fe995a9Smrg              C compiler flags for ICEAUTH, overriding pkg-config
14639fe995a9Smrg  ICEAUTH_LIBS
14649fe995a9Smrg              linker flags for ICEAUTH, overriding pkg-config
1465b62cc08cSmrg  LINT        Path to a lint-style command
1466b62cc08cSmrg  LINT_FLAGS  Flags for the lint-style command
14679fe995a9Smrg
1468772b5186SmrgUse these variables to override the choices made by 'configure' or to help
14699fe995a9Smrgit to find libraries and programs with nonstandard names/locations.
14709fe995a9Smrg
1471772b5186SmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/iceauth/-/issues>.
14729fe995a9Smrg_ACEOF
14739fe995a9Smrgac_status=$?
14749fe995a9Smrgfi
14759fe995a9Smrg
14769fe995a9Smrgif test "$ac_init_help" = "recursive"; then
14779fe995a9Smrg  # If there are subdirs, report their specific --help.
14789fe995a9Smrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1479b62cc08cSmrg    test -d "$ac_dir" ||
1480b62cc08cSmrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1481b62cc08cSmrg      continue
14829fe995a9Smrg    ac_builddir=.
14839fe995a9Smrg
14849fe995a9Smrgcase "$ac_dir" in
14859fe995a9Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14869fe995a9Smrg*)
1487c048b52eSmrg  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
14889fe995a9Smrg  # A ".." for each directory in $ac_dir_suffix.
1489c048b52eSmrg  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14909fe995a9Smrg  case $ac_top_builddir_sub in
14919fe995a9Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14929fe995a9Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14939fe995a9Smrg  esac ;;
14949fe995a9Smrgesac
14959fe995a9Smrgac_abs_top_builddir=$ac_pwd
14969fe995a9Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
14979fe995a9Smrg# for backward compatibility:
14989fe995a9Smrgac_top_builddir=$ac_top_build_prefix
14999fe995a9Smrg
15009fe995a9Smrgcase $srcdir in
15019fe995a9Smrg  .)  # We are building in place.
15029fe995a9Smrg    ac_srcdir=.
15039fe995a9Smrg    ac_top_srcdir=$ac_top_builddir_sub
15049fe995a9Smrg    ac_abs_top_srcdir=$ac_pwd ;;
15059fe995a9Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
15069fe995a9Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
15079fe995a9Smrg    ac_top_srcdir=$srcdir
15089fe995a9Smrg    ac_abs_top_srcdir=$srcdir ;;
15099fe995a9Smrg  *) # Relative name.
15109fe995a9Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15119fe995a9Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
15129fe995a9Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15139fe995a9Smrgesac
15149fe995a9Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15159fe995a9Smrg
15169fe995a9Smrg    cd "$ac_dir" || { ac_status=$?; continue; }
1517c048b52eSmrg    # Check for configure.gnu first; this name is used for a wrapper for
1518c048b52eSmrg    # Metaconfig's "Configure" on case-insensitive file systems.
15199fe995a9Smrg    if test -f "$ac_srcdir/configure.gnu"; then
15209fe995a9Smrg      echo &&
15219fe995a9Smrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
15229fe995a9Smrg    elif test -f "$ac_srcdir/configure"; then
15239fe995a9Smrg      echo &&
15249fe995a9Smrg      $SHELL "$ac_srcdir/configure" --help=recursive
15259fe995a9Smrg    else
1526c048b52eSmrg      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
15279fe995a9Smrg    fi || ac_status=$?
15289fe995a9Smrg    cd "$ac_pwd" || { ac_status=$?; break; }
15299fe995a9Smrg  done
15309fe995a9Smrgfi
15319fe995a9Smrg
15329fe995a9Smrgtest -n "$ac_init_help" && exit $ac_status
15339fe995a9Smrgif $ac_init_version; then
15349fe995a9Smrg  cat <<\_ACEOF
1535772b5186Smrgiceauth configure 1.0.10
1536772b5186Smrggenerated by GNU Autoconf 2.72
15379fe995a9Smrg
1538772b5186SmrgCopyright (C) 2023 Free Software Foundation, Inc.
15399fe995a9SmrgThis configure script is free software; the Free Software Foundation
15409fe995a9Smrggives unlimited permission to copy, distribute and modify it.
15419fe995a9Smrg_ACEOF
15429fe995a9Smrg  exit
15439fe995a9Smrgfi
1544b62cc08cSmrg
1545b62cc08cSmrg## ------------------------ ##
1546b62cc08cSmrg## Autoconf initialization. ##
1547b62cc08cSmrg## ------------------------ ##
1548b62cc08cSmrg
1549b62cc08cSmrg# ac_fn_c_try_compile LINENO
1550b62cc08cSmrg# --------------------------
1551b62cc08cSmrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
1552b62cc08cSmrgac_fn_c_try_compile ()
1553b62cc08cSmrg{
1554b62cc08cSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1555c048b52eSmrg  rm -f conftest.$ac_objext conftest.beam
1556b62cc08cSmrg  if { { ac_try="$ac_compile"
1557b62cc08cSmrgcase "(($ac_try" in
1558b62cc08cSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1559b62cc08cSmrg  *) ac_try_echo=$ac_try;;
1560b62cc08cSmrgesac
1561b62cc08cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1562c048b52eSmrgprintf "%s\n" "$ac_try_echo"; } >&5
1563b62cc08cSmrg  (eval "$ac_compile") 2>conftest.err
1564b62cc08cSmrg  ac_status=$?
1565b62cc08cSmrg  if test -s conftest.err; then
1566b62cc08cSmrg    grep -v '^ *+' conftest.err >conftest.er1
1567b62cc08cSmrg    cat conftest.er1 >&5
1568b62cc08cSmrg    mv -f conftest.er1 conftest.err
1569b62cc08cSmrg  fi
1570c048b52eSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1571b62cc08cSmrg  test $ac_status = 0; } && {
1572b62cc08cSmrg	 test -z "$ac_c_werror_flag" ||
1573b62cc08cSmrg	 test ! -s conftest.err
1574c048b52eSmrg       } && test -s conftest.$ac_objext
1575c048b52eSmrgthen :
1576b62cc08cSmrg  ac_retval=0
1577772b5186Smrgelse case e in #(
1578772b5186Smrg  e) printf "%s\n" "$as_me: failed program was:" >&5
1579b62cc08cSmrgsed 's/^/| /' conftest.$ac_ext >&5
1580b62cc08cSmrg
1581772b5186Smrg	ac_retval=1 ;;
1582772b5186Smrgesac
1583b62cc08cSmrgfi
1584b62cc08cSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1585b62cc08cSmrg  as_fn_set_status $ac_retval
1586b62cc08cSmrg
1587b62cc08cSmrg} # ac_fn_c_try_compile
1588b62cc08cSmrg
1589772b5186Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1590772b5186Smrg# -------------------------------------------------------
1591772b5186Smrg# Tests whether HEADER exists and can be compiled using the include files in
1592772b5186Smrg# INCLUDES, setting the cache variable VAR accordingly.
1593772b5186Smrgac_fn_c_check_header_compile ()
1594772b5186Smrg{
1595772b5186Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596772b5186Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1597772b5186Smrgprintf %s "checking for $2... " >&6; }
1598772b5186Smrgif eval test \${$3+y}
1599772b5186Smrgthen :
1600772b5186Smrg  printf %s "(cached) " >&6
1601772b5186Smrgelse case e in #(
1602772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1603772b5186Smrg/* end confdefs.h.  */
1604772b5186Smrg$4
1605772b5186Smrg#include <$2>
1606772b5186Smrg_ACEOF
1607772b5186Smrgif ac_fn_c_try_compile "$LINENO"
1608772b5186Smrgthen :
1609772b5186Smrg  eval "$3=yes"
1610772b5186Smrgelse case e in #(
1611772b5186Smrg  e) eval "$3=no" ;;
1612772b5186Smrgesac
1613772b5186Smrgfi
1614772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1615772b5186Smrgesac
1616772b5186Smrgfi
1617772b5186Smrgeval ac_res=\$$3
1618772b5186Smrg	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1619772b5186Smrgprintf "%s\n" "$ac_res" >&6; }
1620772b5186Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1621772b5186Smrg
1622772b5186Smrg} # ac_fn_c_check_header_compile
1623772b5186Smrg
1624c048b52eSmrg# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1625c048b52eSmrg# ------------------------------------------------------------------
1626b62cc08cSmrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1627c048b52eSmrg# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1628c048b52eSmrgac_fn_check_decl ()
1629b62cc08cSmrg{
1630b62cc08cSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631b62cc08cSmrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
1632c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1633c048b52eSmrgprintf %s "checking whether $as_decl_name is declared... " >&6; }
1634c048b52eSmrgif eval test \${$3+y}
1635c048b52eSmrgthen :
1636c048b52eSmrg  printf %s "(cached) " >&6
1637772b5186Smrgelse case e in #(
1638772b5186Smrg  e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1639c048b52eSmrg  eval ac_save_FLAGS=\$$6
1640c048b52eSmrg  as_fn_append $6 " $5"
1641b62cc08cSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1642b62cc08cSmrg/* end confdefs.h.  */
1643b62cc08cSmrg$4
1644b62cc08cSmrgint
1645c048b52eSmrgmain (void)
1646b62cc08cSmrg{
1647b62cc08cSmrg#ifndef $as_decl_name
1648b62cc08cSmrg#ifdef __cplusplus
1649b62cc08cSmrg  (void) $as_decl_use;
1650b62cc08cSmrg#else
1651b62cc08cSmrg  (void) $as_decl_name;
1652b62cc08cSmrg#endif
1653b62cc08cSmrg#endif
1654b62cc08cSmrg
1655b62cc08cSmrg  ;
1656b62cc08cSmrg  return 0;
1657b62cc08cSmrg}
1658b62cc08cSmrg_ACEOF
1659c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
1660c048b52eSmrgthen :
1661b62cc08cSmrg  eval "$3=yes"
1662772b5186Smrgelse case e in #(
1663772b5186Smrg  e) eval "$3=no" ;;
1664772b5186Smrgesac
1665b62cc08cSmrgfi
1666c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1667c048b52eSmrg  eval $6=\$ac_save_FLAGS
1668772b5186Smrg ;;
1669772b5186Smrgesac
1670b62cc08cSmrgfi
1671c048b52eSmrgeval ac_res=\$$3
1672c048b52eSmrg	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1673c048b52eSmrgprintf "%s\n" "$ac_res" >&6; }
1674b62cc08cSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675b62cc08cSmrg
1676c048b52eSmrg} # ac_fn_check_decl
1677b62cc08cSmrg
16789d794632Smrg# ac_fn_c_try_link LINENO
16799d794632Smrg# -----------------------
16809d794632Smrg# Try to link conftest.$ac_ext, and return whether this succeeded.
16819d794632Smrgac_fn_c_try_link ()
16829d794632Smrg{
16839d794632Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684c048b52eSmrg  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
16859d794632Smrg  if { { ac_try="$ac_link"
16869d794632Smrgcase "(($ac_try" in
16879d794632Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16889d794632Smrg  *) ac_try_echo=$ac_try;;
16899d794632Smrgesac
16909d794632Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691c048b52eSmrgprintf "%s\n" "$ac_try_echo"; } >&5
16929d794632Smrg  (eval "$ac_link") 2>conftest.err
16939d794632Smrg  ac_status=$?
16949d794632Smrg  if test -s conftest.err; then
16959d794632Smrg    grep -v '^ *+' conftest.err >conftest.er1
16969d794632Smrg    cat conftest.er1 >&5
16979d794632Smrg    mv -f conftest.er1 conftest.err
16989d794632Smrg  fi
1699c048b52eSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17009d794632Smrg  test $ac_status = 0; } && {
17019d794632Smrg	 test -z "$ac_c_werror_flag" ||
17029d794632Smrg	 test ! -s conftest.err
17039d794632Smrg       } && test -s conftest$ac_exeext && {
17049d794632Smrg	 test "$cross_compiling" = yes ||
1705e8ac26b0Smrg	 test -x conftest$ac_exeext
1706c048b52eSmrg       }
1707c048b52eSmrgthen :
17089d794632Smrg  ac_retval=0
1709772b5186Smrgelse case e in #(
1710772b5186Smrg  e) printf "%s\n" "$as_me: failed program was:" >&5
17119d794632Smrgsed 's/^/| /' conftest.$ac_ext >&5
17129d794632Smrg
1713772b5186Smrg	ac_retval=1 ;;
1714772b5186Smrgesac
17159d794632Smrgfi
17169d794632Smrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
17179d794632Smrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
17189d794632Smrg  # interfere with the next link command; also delete a directory that is
17199d794632Smrg  # left behind by Apple's compiler.  We do this before executing the actions.
17209d794632Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
17219d794632Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17229d794632Smrg  as_fn_set_status $ac_retval
17239d794632Smrg
17249d794632Smrg} # ac_fn_c_try_link
1725772b5186Smrg
1726772b5186Smrg# ac_fn_c_check_func LINENO FUNC VAR
1727772b5186Smrg# ----------------------------------
1728772b5186Smrg# Tests whether FUNC exists, setting the cache variable VAR accordingly
1729772b5186Smrgac_fn_c_check_func ()
1730772b5186Smrg{
1731772b5186Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732772b5186Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1733772b5186Smrgprintf %s "checking for $2... " >&6; }
1734772b5186Smrgif eval test \${$3+y}
1735772b5186Smrgthen :
1736772b5186Smrg  printf %s "(cached) " >&6
1737772b5186Smrgelse case e in #(
1738772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739772b5186Smrg/* end confdefs.h.  */
1740772b5186Smrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1741772b5186Smrg   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1742772b5186Smrg#define $2 innocuous_$2
1743772b5186Smrg
1744772b5186Smrg/* System header to define __stub macros and hopefully few prototypes,
1745772b5186Smrg   which can conflict with char $2 (void); below.  */
1746772b5186Smrg
1747772b5186Smrg#include <limits.h>
1748772b5186Smrg#undef $2
1749772b5186Smrg
1750772b5186Smrg/* Override any GCC internal prototype to avoid an error.
1751772b5186Smrg   Use char because int might match the return type of a GCC
1752772b5186Smrg   builtin and then its argument prototype would still apply.  */
1753772b5186Smrg#ifdef __cplusplus
1754772b5186Smrgextern "C"
1755772b5186Smrg#endif
1756772b5186Smrgchar $2 (void);
1757772b5186Smrg/* The GNU C library defines this for functions which it implements
1758772b5186Smrg    to always fail with ENOSYS.  Some functions are actually named
1759772b5186Smrg    something starting with __ and the normal name is an alias.  */
1760772b5186Smrg#if defined __stub_$2 || defined __stub___$2
1761772b5186Smrgchoke me
1762772b5186Smrg#endif
1763772b5186Smrg
1764772b5186Smrgint
1765772b5186Smrgmain (void)
1766772b5186Smrg{
1767772b5186Smrgreturn $2 ();
1768772b5186Smrg  ;
1769772b5186Smrg  return 0;
1770772b5186Smrg}
1771772b5186Smrg_ACEOF
1772772b5186Smrgif ac_fn_c_try_link "$LINENO"
1773772b5186Smrgthen :
1774772b5186Smrg  eval "$3=yes"
1775772b5186Smrgelse case e in #(
1776772b5186Smrg  e) eval "$3=no" ;;
1777772b5186Smrgesac
1778772b5186Smrgfi
1779772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
1780772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
1781772b5186Smrgesac
1782772b5186Smrgfi
1783772b5186Smrgeval ac_res=\$$3
1784772b5186Smrg	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1785772b5186Smrgprintf "%s\n" "$ac_res" >&6; }
1786772b5186Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787772b5186Smrg
1788772b5186Smrg} # ac_fn_c_check_func
1789c048b52eSmrgac_configure_args_raw=
1790c048b52eSmrgfor ac_arg
1791c048b52eSmrgdo
1792c048b52eSmrg  case $ac_arg in
1793c048b52eSmrg  *\'*)
1794c048b52eSmrg    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1795c048b52eSmrg  esac
1796c048b52eSmrg  as_fn_append ac_configure_args_raw " '$ac_arg'"
1797c048b52eSmrgdone
1798c048b52eSmrg
1799c048b52eSmrgcase $ac_configure_args_raw in
1800c048b52eSmrg  *$as_nl*)
1801c048b52eSmrg    ac_safe_unquote= ;;
1802c048b52eSmrg  *)
1803c048b52eSmrg    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1804c048b52eSmrg    ac_unsafe_a="$ac_unsafe_z#~"
1805c048b52eSmrg    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1806c048b52eSmrg    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1807c048b52eSmrgesac
1808c048b52eSmrg
18099fe995a9Smrgcat >config.log <<_ACEOF
18109fe995a9SmrgThis file contains any messages produced by compilers while
18119fe995a9Smrgrunning configure, to aid debugging if configure makes a mistake.
18129fe995a9Smrg
1813772b5186SmrgIt was created by iceauth $as_me 1.0.10, which was
1814772b5186Smrggenerated by GNU Autoconf 2.72.  Invocation command line was
18159fe995a9Smrg
1816c048b52eSmrg  $ $0$ac_configure_args_raw
18179fe995a9Smrg
18189fe995a9Smrg_ACEOF
18199fe995a9Smrgexec 5>>config.log
18209fe995a9Smrg{
18219fe995a9Smrgcat <<_ASUNAME
18229fe995a9Smrg## --------- ##
18239fe995a9Smrg## Platform. ##
18249fe995a9Smrg## --------- ##
18259fe995a9Smrg
18269fe995a9Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
18279fe995a9Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
18289fe995a9Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
18299fe995a9Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
18309fe995a9Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
18319fe995a9Smrg
18329fe995a9Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
18339fe995a9Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
18349fe995a9Smrg
18359fe995a9Smrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
18369fe995a9Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
18379fe995a9Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
18389fe995a9Smrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
18399fe995a9Smrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
18409fe995a9Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
18419fe995a9Smrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
18429fe995a9Smrg
18439fe995a9Smrg_ASUNAME
18449fe995a9Smrg
18459fe995a9Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18469fe995a9Smrgfor as_dir in $PATH
18479fe995a9Smrgdo
18489fe995a9Smrg  IFS=$as_save_IFS
1849c048b52eSmrg  case $as_dir in #(((
1850c048b52eSmrg    '') as_dir=./ ;;
1851c048b52eSmrg    */) ;;
1852c048b52eSmrg    *) as_dir=$as_dir/ ;;
1853c048b52eSmrg  esac
1854c048b52eSmrg    printf "%s\n" "PATH: $as_dir"
1855b62cc08cSmrg  done
18569fe995a9SmrgIFS=$as_save_IFS
18579fe995a9Smrg
18589fe995a9Smrg} >&5
18599fe995a9Smrg
18609fe995a9Smrgcat >&5 <<_ACEOF
18619fe995a9Smrg
18629fe995a9Smrg
18639fe995a9Smrg## ----------- ##
18649fe995a9Smrg## Core tests. ##
18659fe995a9Smrg## ----------- ##
18669fe995a9Smrg
18679fe995a9Smrg_ACEOF
18689fe995a9Smrg
18699fe995a9Smrg
18709fe995a9Smrg# Keep a trace of the command line.
18719fe995a9Smrg# Strip out --no-create and --no-recursion so they do not pile up.
18729fe995a9Smrg# Strip out --silent because we don't want to record it for future runs.
18739fe995a9Smrg# Also quote any args containing shell meta-characters.
18749fe995a9Smrg# Make two passes to allow for proper duplicate-argument suppression.
18759fe995a9Smrgac_configure_args=
18769fe995a9Smrgac_configure_args0=
18779fe995a9Smrgac_configure_args1=
18789fe995a9Smrgac_must_keep_next=false
18799fe995a9Smrgfor ac_pass in 1 2
18809fe995a9Smrgdo
18819fe995a9Smrg  for ac_arg
18829fe995a9Smrg  do
18839fe995a9Smrg    case $ac_arg in
18849fe995a9Smrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
18859fe995a9Smrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18869fe995a9Smrg    | -silent | --silent | --silen | --sile | --sil)
18879fe995a9Smrg      continue ;;
18889fe995a9Smrg    *\'*)
1889c048b52eSmrg      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18909fe995a9Smrg    esac
18919fe995a9Smrg    case $ac_pass in
1892b62cc08cSmrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
18939fe995a9Smrg    2)
1894b62cc08cSmrg      as_fn_append ac_configure_args1 " '$ac_arg'"
18959fe995a9Smrg      if test $ac_must_keep_next = true; then
18969fe995a9Smrg	ac_must_keep_next=false # Got value, back to normal.
18979fe995a9Smrg      else
18989fe995a9Smrg	case $ac_arg in
18999fe995a9Smrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
19009fe995a9Smrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
19019fe995a9Smrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
19029fe995a9Smrg	  | -with-* | --with-* | -without-* | --without-* | --x)
19039fe995a9Smrg	    case "$ac_configure_args0 " in
19049fe995a9Smrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
19059fe995a9Smrg	    esac
19069fe995a9Smrg	    ;;
19079fe995a9Smrg	  -* ) ac_must_keep_next=true ;;
19089fe995a9Smrg	esac
19099fe995a9Smrg      fi
1910b62cc08cSmrg      as_fn_append ac_configure_args " '$ac_arg'"
19119fe995a9Smrg      ;;
19129fe995a9Smrg    esac
19139fe995a9Smrg  done
19149fe995a9Smrgdone
1915b62cc08cSmrg{ ac_configure_args0=; unset ac_configure_args0;}
1916b62cc08cSmrg{ ac_configure_args1=; unset ac_configure_args1;}
19179fe995a9Smrg
19189fe995a9Smrg# When interrupted or exit'd, cleanup temporary files, and complete
19199fe995a9Smrg# config.log.  We remove comments because anyway the quotes in there
19209fe995a9Smrg# would cause problems or look ugly.
19219fe995a9Smrg# WARNING: Use '\'' to represent an apostrophe within the trap.
19229fe995a9Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
19239fe995a9Smrgtrap 'exit_status=$?
1924c048b52eSmrg  # Sanitize IFS.
1925c048b52eSmrg  IFS=" ""	$as_nl"
19269fe995a9Smrg  # Save into config.log some information that might help in debugging.
19279fe995a9Smrg  {
19289fe995a9Smrg    echo
19299fe995a9Smrg
1930c048b52eSmrg    printf "%s\n" "## ---------------- ##
19319fe995a9Smrg## Cache variables. ##
1932b62cc08cSmrg## ---------------- ##"
19339fe995a9Smrg    echo
19349fe995a9Smrg    # The following way of writing the cache mishandles newlines in values,
19359fe995a9Smrg(
19369fe995a9Smrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
19379fe995a9Smrg    eval ac_val=\$$ac_var
19389fe995a9Smrg    case $ac_val in #(
19399fe995a9Smrg    *${as_nl}*)
19409fe995a9Smrg      case $ac_var in #(
1941c048b52eSmrg      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1942c048b52eSmrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19439fe995a9Smrg      esac
19449fe995a9Smrg      case $ac_var in #(
19459fe995a9Smrg      _ | IFS | as_nl) ;; #(
1946b62cc08cSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1947b62cc08cSmrg      *) { eval $ac_var=; unset $ac_var;} ;;
19489fe995a9Smrg      esac ;;
19499fe995a9Smrg    esac
19509fe995a9Smrg  done
19519fe995a9Smrg  (set) 2>&1 |
19529fe995a9Smrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
19539fe995a9Smrg    *${as_nl}ac_space=\ *)
19549fe995a9Smrg      sed -n \
19559fe995a9Smrg	"s/'\''/'\''\\\\'\'''\''/g;
19569fe995a9Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
19579fe995a9Smrg      ;; #(
19589fe995a9Smrg    *)
19599fe995a9Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19609fe995a9Smrg      ;;
19619fe995a9Smrg    esac |
19629fe995a9Smrg    sort
19639fe995a9Smrg)
19649fe995a9Smrg    echo
19659fe995a9Smrg
1966c048b52eSmrg    printf "%s\n" "## ----------------- ##
19679fe995a9Smrg## Output variables. ##
1968b62cc08cSmrg## ----------------- ##"
19699fe995a9Smrg    echo
19709fe995a9Smrg    for ac_var in $ac_subst_vars
19719fe995a9Smrg    do
19729fe995a9Smrg      eval ac_val=\$$ac_var
19739fe995a9Smrg      case $ac_val in
1974c048b52eSmrg      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
19759fe995a9Smrg      esac
1976c048b52eSmrg      printf "%s\n" "$ac_var='\''$ac_val'\''"
19779fe995a9Smrg    done | sort
19789fe995a9Smrg    echo
19799fe995a9Smrg
19809fe995a9Smrg    if test -n "$ac_subst_files"; then
1981c048b52eSmrg      printf "%s\n" "## ------------------- ##
19829fe995a9Smrg## File substitutions. ##
1983b62cc08cSmrg## ------------------- ##"
19849fe995a9Smrg      echo
19859fe995a9Smrg      for ac_var in $ac_subst_files
19869fe995a9Smrg      do
19879fe995a9Smrg	eval ac_val=\$$ac_var
19889fe995a9Smrg	case $ac_val in
1989c048b52eSmrg	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
19909fe995a9Smrg	esac
1991c048b52eSmrg	printf "%s\n" "$ac_var='\''$ac_val'\''"
19929fe995a9Smrg      done | sort
19939fe995a9Smrg      echo
19949fe995a9Smrg    fi
19959fe995a9Smrg
19969fe995a9Smrg    if test -s confdefs.h; then
1997c048b52eSmrg      printf "%s\n" "## ----------- ##
19989fe995a9Smrg## confdefs.h. ##
1999b62cc08cSmrg## ----------- ##"
20009fe995a9Smrg      echo
20019fe995a9Smrg      cat confdefs.h
20029fe995a9Smrg      echo
20039fe995a9Smrg    fi
20049fe995a9Smrg    test "$ac_signal" != 0 &&
2005c048b52eSmrg      printf "%s\n" "$as_me: caught signal $ac_signal"
2006c048b52eSmrg    printf "%s\n" "$as_me: exit $exit_status"
20079fe995a9Smrg  } >&5
20089fe995a9Smrg  rm -f core *.core core.conftest.* &&
20099fe995a9Smrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
20109fe995a9Smrg    exit $exit_status
20119fe995a9Smrg' 0
20129fe995a9Smrgfor ac_signal in 1 2 13 15; do
2013b62cc08cSmrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
20149fe995a9Smrgdone
20159fe995a9Smrgac_signal=0
20169fe995a9Smrg
20179fe995a9Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
20189fe995a9Smrgrm -f -r conftest* confdefs.h
20199fe995a9Smrg
2020c048b52eSmrgprintf "%s\n" "/* confdefs.h */" > confdefs.h
2021b62cc08cSmrg
20229fe995a9Smrg# Predefined preprocessor variables.
20239fe995a9Smrg
2024c048b52eSmrgprintf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
20259fe995a9Smrg
2026c048b52eSmrgprintf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
20279fe995a9Smrg
2028c048b52eSmrgprintf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
20299fe995a9Smrg
2030c048b52eSmrgprintf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
20319fe995a9Smrg
2032c048b52eSmrgprintf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
20339fe995a9Smrg
2034c048b52eSmrgprintf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2035b62cc08cSmrg
20369fe995a9Smrg
20379fe995a9Smrg# Let the site file select an alternate cache file if it wants to.
2038b62cc08cSmrg# Prefer an explicitly selected file to automatically selected ones.
20399fe995a9Smrgif test -n "$CONFIG_SITE"; then
2040c048b52eSmrg  ac_site_files="$CONFIG_SITE"
20419fe995a9Smrgelif test "x$prefix" != xNONE; then
2042c048b52eSmrg  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
20439fe995a9Smrgelse
2044c048b52eSmrg  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
20459fe995a9Smrgfi
2046c048b52eSmrg
2047c048b52eSmrgfor ac_site_file in $ac_site_files
20489fe995a9Smrgdo
2049c048b52eSmrg  case $ac_site_file in #(
2050c048b52eSmrg  */*) :
2051c048b52eSmrg     ;; #(
2052c048b52eSmrg  *) :
2053c048b52eSmrg    ac_site_file=./$ac_site_file ;;
2054c048b52eSmrgesac
2055c048b52eSmrg  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2056c048b52eSmrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2057c048b52eSmrgprintf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
20589fe995a9Smrg    sed 's/^/| /' "$ac_site_file" >&5
2059b62cc08cSmrg    . "$ac_site_file" \
2060772b5186Smrg      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2061772b5186Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2062b62cc08cSmrgas_fn_error $? "failed to load site script $ac_site_file
2063772b5186SmrgSee 'config.log' for more details" "$LINENO" 5; }
20649fe995a9Smrg  fi
20659fe995a9Smrgdone
20669fe995a9Smrg
20679fe995a9Smrgif test -r "$cache_file"; then
2068b62cc08cSmrg  # Some versions of bash will fail to source /dev/null (special files
2069b62cc08cSmrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2070b62cc08cSmrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2071c048b52eSmrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2072c048b52eSmrgprintf "%s\n" "$as_me: loading cache $cache_file" >&6;}
20739fe995a9Smrg    case $cache_file in
20749fe995a9Smrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
20759fe995a9Smrg      *)                      . "./$cache_file";;
20769fe995a9Smrg    esac
20779fe995a9Smrg  fi
20789fe995a9Smrgelse
2079c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2080c048b52eSmrgprintf "%s\n" "$as_me: creating cache $cache_file" >&6;}
20819fe995a9Smrg  >$cache_file
20829fe995a9Smrgfi
20839fe995a9Smrg
2084772b5186Smrgas_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2085c048b52eSmrg# Test code for whether the C compiler supports C89 (global declarations)
2086c048b52eSmrgac_c_conftest_c89_globals='
2087c048b52eSmrg/* Does the compiler advertise C89 conformance?
2088c048b52eSmrg   Do not test the value of __STDC__, because some compilers set it to 0
2089c048b52eSmrg   while being otherwise adequately conformant. */
2090c048b52eSmrg#if !defined __STDC__
2091c048b52eSmrg# error "Compiler does not advertise C89 conformance"
2092c048b52eSmrg#endif
20939fe995a9Smrg
2094c048b52eSmrg#include <stddef.h>
2095c048b52eSmrg#include <stdarg.h>
2096c048b52eSmrgstruct stat;
2097c048b52eSmrg/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2098c048b52eSmrgstruct buf { int x; };
2099c048b52eSmrgstruct buf * (*rcsopen) (struct buf *, struct stat *, int);
2100772b5186Smrgstatic char *e (char **p, int i)
2101c048b52eSmrg{
2102c048b52eSmrg  return p[i];
2103c048b52eSmrg}
2104c048b52eSmrgstatic char *f (char * (*g) (char **, int), char **p, ...)
2105c048b52eSmrg{
2106c048b52eSmrg  char *s;
2107c048b52eSmrg  va_list v;
2108c048b52eSmrg  va_start (v,p);
2109c048b52eSmrg  s = g (p, va_arg (v,int));
2110c048b52eSmrg  va_end (v);
2111c048b52eSmrg  return s;
2112c048b52eSmrg}
2113e8ac26b0Smrg
2114772b5186Smrg/* C89 style stringification. */
2115772b5186Smrg#define noexpand_stringify(a) #a
2116772b5186Smrgconst char *stringified = noexpand_stringify(arbitrary+token=sequence);
2117772b5186Smrg
2118772b5186Smrg/* C89 style token pasting.  Exercises some of the corner cases that
2119772b5186Smrg   e.g. old MSVC gets wrong, but not very hard. */
2120772b5186Smrg#define noexpand_concat(a,b) a##b
2121772b5186Smrg#define expand_concat(a,b) noexpand_concat(a,b)
2122772b5186Smrgextern int vA;
2123772b5186Smrgextern int vbee;
2124772b5186Smrg#define aye A
2125772b5186Smrg#define bee B
2126772b5186Smrgint *pvA = &expand_concat(v,aye);
2127772b5186Smrgint *pvbee = &noexpand_concat(v,bee);
2128772b5186Smrg
2129c048b52eSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2130c048b52eSmrg   function prototypes and stuff, but not \xHH hex character constants.
2131c048b52eSmrg   These do not provoke an error unfortunately, instead are silently treated
2132c048b52eSmrg   as an "x".  The following induces an error, until -std is added to get
2133c048b52eSmrg   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2134c048b52eSmrg   array size at least.  It is necessary to write \x00 == 0 to get something
2135c048b52eSmrg   that is true only with -std.  */
2136c048b52eSmrgint osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2137e8ac26b0Smrg
2138c048b52eSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2139c048b52eSmrg   inside strings and character constants.  */
2140c048b52eSmrg#define FOO(x) '\''x'\''
2141c048b52eSmrgint xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2142e8ac26b0Smrg
2143c048b52eSmrgint test (int i, double x);
2144c048b52eSmrgstruct s1 {int (*f) (int a);};
2145c048b52eSmrgstruct s2 {int (*f) (double a);};
2146c048b52eSmrgint pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2147c048b52eSmrg               int, int);'
21489fe995a9Smrg
2149c048b52eSmrg# Test code for whether the C compiler supports C89 (body of main).
2150c048b52eSmrgac_c_conftest_c89_main='
2151c048b52eSmrgok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2152c048b52eSmrg'
21539fe995a9Smrg
2154c048b52eSmrg# Test code for whether the C compiler supports C99 (global declarations)
2155c048b52eSmrgac_c_conftest_c99_globals='
2156772b5186Smrg/* Does the compiler advertise C99 conformance? */
2157c048b52eSmrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2158c048b52eSmrg# error "Compiler does not advertise C99 conformance"
2159c048b52eSmrg#endif
21609fe995a9Smrg
2161772b5186Smrg// See if C++-style comments work.
2162772b5186Smrg
2163c048b52eSmrg#include <stdbool.h>
2164c048b52eSmrgextern int puts (const char *);
2165c048b52eSmrgextern int printf (const char *, ...);
2166c048b52eSmrgextern int dprintf (int, const char *, ...);
2167c048b52eSmrgextern void *malloc (size_t);
2168772b5186Smrgextern void free (void *);
21699fe995a9Smrg
2170c048b52eSmrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2171c048b52eSmrg// dprintf is used instead of fprintf to avoid needing to declare
2172c048b52eSmrg// FILE and stderr.
2173c048b52eSmrg#define debug(...) dprintf (2, __VA_ARGS__)
2174c048b52eSmrg#define showlist(...) puts (#__VA_ARGS__)
2175c048b52eSmrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2176c048b52eSmrgstatic void
2177c048b52eSmrgtest_varargs_macros (void)
2178c048b52eSmrg{
2179c048b52eSmrg  int x = 1234;
2180c048b52eSmrg  int y = 5678;
2181c048b52eSmrg  debug ("Flag");
2182c048b52eSmrg  debug ("X = %d\n", x);
2183c048b52eSmrg  showlist (The first, second, and third items.);
2184c048b52eSmrg  report (x>y, "x is %d but y is %d", x, y);
2185c048b52eSmrg}
2186c048b52eSmrg
2187c048b52eSmrg// Check long long types.
2188c048b52eSmrg#define BIG64 18446744073709551615ull
2189c048b52eSmrg#define BIG32 4294967295ul
2190c048b52eSmrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2191c048b52eSmrg#if !BIG_OK
2192c048b52eSmrg  #error "your preprocessor is broken"
2193c048b52eSmrg#endif
2194c048b52eSmrg#if BIG_OK
2195c048b52eSmrg#else
2196c048b52eSmrg  #error "your preprocessor is broken"
2197c048b52eSmrg#endif
2198c048b52eSmrgstatic long long int bignum = -9223372036854775807LL;
2199c048b52eSmrgstatic unsigned long long int ubignum = BIG64;
2200c048b52eSmrg
2201c048b52eSmrgstruct incomplete_array
2202c048b52eSmrg{
2203c048b52eSmrg  int datasize;
2204c048b52eSmrg  double data[];
2205c048b52eSmrg};
2206c048b52eSmrg
2207c048b52eSmrgstruct named_init {
2208c048b52eSmrg  int number;
2209c048b52eSmrg  const wchar_t *name;
2210c048b52eSmrg  double average;
2211c048b52eSmrg};
2212c048b52eSmrg
2213c048b52eSmrgtypedef const char *ccp;
2214c048b52eSmrg
2215c048b52eSmrgstatic inline int
2216c048b52eSmrgtest_restrict (ccp restrict text)
2217c048b52eSmrg{
2218c048b52eSmrg  // Iterate through items via the restricted pointer.
2219c048b52eSmrg  // Also check for declarations in for loops.
2220c048b52eSmrg  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2221c048b52eSmrg    continue;
2222c048b52eSmrg  return 0;
2223c048b52eSmrg}
2224c048b52eSmrg
2225c048b52eSmrg// Check varargs and va_copy.
2226c048b52eSmrgstatic bool
2227c048b52eSmrgtest_varargs (const char *format, ...)
2228c048b52eSmrg{
2229c048b52eSmrg  va_list args;
2230c048b52eSmrg  va_start (args, format);
2231c048b52eSmrg  va_list args_copy;
2232c048b52eSmrg  va_copy (args_copy, args);
2233c048b52eSmrg
2234c048b52eSmrg  const char *str = "";
2235c048b52eSmrg  int number = 0;
2236c048b52eSmrg  float fnumber = 0;
2237c048b52eSmrg
2238c048b52eSmrg  while (*format)
2239c048b52eSmrg    {
2240c048b52eSmrg      switch (*format++)
2241c048b52eSmrg	{
2242c048b52eSmrg	case '\''s'\'': // string
2243c048b52eSmrg	  str = va_arg (args_copy, const char *);
2244c048b52eSmrg	  break;
2245c048b52eSmrg	case '\''d'\'': // int
2246c048b52eSmrg	  number = va_arg (args_copy, int);
2247c048b52eSmrg	  break;
2248c048b52eSmrg	case '\''f'\'': // float
2249c048b52eSmrg	  fnumber = va_arg (args_copy, double);
2250c048b52eSmrg	  break;
2251c048b52eSmrg	default:
2252c048b52eSmrg	  break;
2253c048b52eSmrg	}
2254c048b52eSmrg    }
2255c048b52eSmrg  va_end (args_copy);
2256c048b52eSmrg  va_end (args);
2257c048b52eSmrg
2258c048b52eSmrg  return *str && number && fnumber;
2259c048b52eSmrg}
2260c048b52eSmrg'
2261c048b52eSmrg
2262c048b52eSmrg# Test code for whether the C compiler supports C99 (body of main).
2263c048b52eSmrgac_c_conftest_c99_main='
2264c048b52eSmrg  // Check bool.
2265c048b52eSmrg  _Bool success = false;
2266c048b52eSmrg  success |= (argc != 0);
2267c048b52eSmrg
2268c048b52eSmrg  // Check restrict.
2269c048b52eSmrg  if (test_restrict ("String literal") == 0)
2270c048b52eSmrg    success = true;
2271c048b52eSmrg  char *restrict newvar = "Another string";
2272c048b52eSmrg
2273c048b52eSmrg  // Check varargs.
2274c048b52eSmrg  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2275c048b52eSmrg  test_varargs_macros ();
2276c048b52eSmrg
2277c048b52eSmrg  // Check flexible array members.
2278c048b52eSmrg  struct incomplete_array *ia =
2279c048b52eSmrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2280c048b52eSmrg  ia->datasize = 10;
2281c048b52eSmrg  for (int i = 0; i < ia->datasize; ++i)
2282c048b52eSmrg    ia->data[i] = i * 1.234;
2283772b5186Smrg  // Work around memory leak warnings.
2284772b5186Smrg  free (ia);
2285c048b52eSmrg
2286c048b52eSmrg  // Check named initializers.
2287c048b52eSmrg  struct named_init ni = {
2288c048b52eSmrg    .number = 34,
2289c048b52eSmrg    .name = L"Test wide string",
2290c048b52eSmrg    .average = 543.34343,
2291c048b52eSmrg  };
2292c048b52eSmrg
2293c048b52eSmrg  ni.number = 58;
2294c048b52eSmrg
2295c048b52eSmrg  int dynamic_array[ni.number];
2296c048b52eSmrg  dynamic_array[0] = argv[0][0];
2297c048b52eSmrg  dynamic_array[ni.number - 1] = 543;
2298c048b52eSmrg
2299c048b52eSmrg  // work around unused variable warnings
2300c048b52eSmrg  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2301c048b52eSmrg	 || dynamic_array[ni.number - 1] != 543);
2302c048b52eSmrg'
2303c048b52eSmrg
2304c048b52eSmrg# Test code for whether the C compiler supports C11 (global declarations)
2305c048b52eSmrgac_c_conftest_c11_globals='
2306772b5186Smrg/* Does the compiler advertise C11 conformance? */
2307c048b52eSmrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2308c048b52eSmrg# error "Compiler does not advertise C11 conformance"
2309c048b52eSmrg#endif
2310c048b52eSmrg
2311c048b52eSmrg// Check _Alignas.
2312c048b52eSmrgchar _Alignas (double) aligned_as_double;
2313c048b52eSmrgchar _Alignas (0) no_special_alignment;
2314c048b52eSmrgextern char aligned_as_int;
2315c048b52eSmrgchar _Alignas (0) _Alignas (int) aligned_as_int;
2316c048b52eSmrg
2317c048b52eSmrg// Check _Alignof.
2318c048b52eSmrgenum
2319c048b52eSmrg{
2320c048b52eSmrg  int_alignment = _Alignof (int),
2321c048b52eSmrg  int_array_alignment = _Alignof (int[100]),
2322c048b52eSmrg  char_alignment = _Alignof (char)
2323c048b52eSmrg};
2324c048b52eSmrg_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2325c048b52eSmrg
2326c048b52eSmrg// Check _Noreturn.
2327c048b52eSmrgint _Noreturn does_not_return (void) { for (;;) continue; }
2328c048b52eSmrg
2329c048b52eSmrg// Check _Static_assert.
2330c048b52eSmrgstruct test_static_assert
2331c048b52eSmrg{
2332c048b52eSmrg  int x;
2333c048b52eSmrg  _Static_assert (sizeof (int) <= sizeof (long int),
2334c048b52eSmrg                  "_Static_assert does not work in struct");
2335c048b52eSmrg  long int y;
2336c048b52eSmrg};
2337c048b52eSmrg
2338c048b52eSmrg// Check UTF-8 literals.
2339c048b52eSmrg#define u8 syntax error!
2340c048b52eSmrgchar const utf8_literal[] = u8"happens to be ASCII" "another string";
2341c048b52eSmrg
2342c048b52eSmrg// Check duplicate typedefs.
2343c048b52eSmrgtypedef long *long_ptr;
2344c048b52eSmrgtypedef long int *long_ptr;
2345c048b52eSmrgtypedef long_ptr long_ptr;
2346c048b52eSmrg
2347c048b52eSmrg// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2348c048b52eSmrgstruct anonymous
2349c048b52eSmrg{
2350c048b52eSmrg  union {
2351c048b52eSmrg    struct { int i; int j; };
2352c048b52eSmrg    struct { int k; long int l; } w;
2353c048b52eSmrg  };
2354c048b52eSmrg  int m;
2355c048b52eSmrg} v1;
2356c048b52eSmrg'
2357c048b52eSmrg
2358c048b52eSmrg# Test code for whether the C compiler supports C11 (body of main).
2359c048b52eSmrgac_c_conftest_c11_main='
2360c048b52eSmrg  _Static_assert ((offsetof (struct anonymous, i)
2361c048b52eSmrg		   == offsetof (struct anonymous, w.k)),
2362c048b52eSmrg		  "Anonymous union alignment botch");
2363c048b52eSmrg  v1.i = 2;
2364c048b52eSmrg  v1.w.k = 5;
2365c048b52eSmrg  ok |= v1.i != 5;
2366c048b52eSmrg'
2367c048b52eSmrg
2368c048b52eSmrg# Test code for whether the C compiler supports C11 (complete).
2369c048b52eSmrgac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2370c048b52eSmrg${ac_c_conftest_c99_globals}
2371c048b52eSmrg${ac_c_conftest_c11_globals}
2372c048b52eSmrg
2373c048b52eSmrgint
2374c048b52eSmrgmain (int argc, char **argv)
2375c048b52eSmrg{
2376c048b52eSmrg  int ok = 0;
2377c048b52eSmrg  ${ac_c_conftest_c89_main}
2378c048b52eSmrg  ${ac_c_conftest_c99_main}
2379c048b52eSmrg  ${ac_c_conftest_c11_main}
2380c048b52eSmrg  return ok;
2381c048b52eSmrg}
2382c048b52eSmrg"
2383c048b52eSmrg
2384c048b52eSmrg# Test code for whether the C compiler supports C99 (complete).
2385c048b52eSmrgac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2386c048b52eSmrg${ac_c_conftest_c99_globals}
2387c048b52eSmrg
2388c048b52eSmrgint
2389c048b52eSmrgmain (int argc, char **argv)
2390c048b52eSmrg{
2391c048b52eSmrg  int ok = 0;
2392c048b52eSmrg  ${ac_c_conftest_c89_main}
2393c048b52eSmrg  ${ac_c_conftest_c99_main}
2394c048b52eSmrg  return ok;
2395c048b52eSmrg}
2396c048b52eSmrg"
2397c048b52eSmrg
2398c048b52eSmrg# Test code for whether the C compiler supports C89 (complete).
2399c048b52eSmrgac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2400c048b52eSmrg
2401c048b52eSmrgint
2402c048b52eSmrgmain (int argc, char **argv)
2403c048b52eSmrg{
2404c048b52eSmrg  int ok = 0;
2405c048b52eSmrg  ${ac_c_conftest_c89_main}
2406c048b52eSmrg  return ok;
2407c048b52eSmrg}
2408c048b52eSmrg"
2409c048b52eSmrg
2410c048b52eSmrgas_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2411c048b52eSmrgas_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2412c048b52eSmrgas_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2413c048b52eSmrgas_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2414c048b52eSmrgas_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2415c048b52eSmrgas_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2416c048b52eSmrgas_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2417c048b52eSmrgas_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2418772b5186Smrgas_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2419772b5186Smrgas_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2420c048b52eSmrg
2421c048b52eSmrg# Auxiliary files required by this configure script.
2422772b5186Smrgac_aux_files="config.guess config.sub missing install-sh compile"
2423c048b52eSmrg
2424c048b52eSmrg# Locations in which to look for auxiliary files.
2425c048b52eSmrgac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2426c048b52eSmrg
2427c048b52eSmrg# Search for a directory containing all of the required auxiliary files,
2428c048b52eSmrg# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2429c048b52eSmrg# If we don't find one directory that contains all the files we need,
2430c048b52eSmrg# we report the set of missing files from the *first* directory in
2431c048b52eSmrg# $ac_aux_dir_candidates and give up.
2432c048b52eSmrgac_missing_aux_files=""
2433c048b52eSmrgac_first_candidate=:
2434c048b52eSmrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2435c048b52eSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436c048b52eSmrgas_found=false
2437c048b52eSmrgfor as_dir in $ac_aux_dir_candidates
2438c048b52eSmrgdo
2439c048b52eSmrg  IFS=$as_save_IFS
2440c048b52eSmrg  case $as_dir in #(((
2441c048b52eSmrg    '') as_dir=./ ;;
2442c048b52eSmrg    */) ;;
2443c048b52eSmrg    *) as_dir=$as_dir/ ;;
2444c048b52eSmrg  esac
2445c048b52eSmrg  as_found=:
2446c048b52eSmrg
2447c048b52eSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2448c048b52eSmrg  ac_aux_dir_found=yes
2449c048b52eSmrg  ac_install_sh=
2450c048b52eSmrg  for ac_aux in $ac_aux_files
2451c048b52eSmrg  do
2452c048b52eSmrg    # As a special case, if "install-sh" is required, that requirement
2453c048b52eSmrg    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2454c048b52eSmrg    # and $ac_install_sh is set appropriately for whichever one is found.
2455c048b52eSmrg    if test x"$ac_aux" = x"install-sh"
2456c048b52eSmrg    then
2457c048b52eSmrg      if test -f "${as_dir}install-sh"; then
2458c048b52eSmrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2459c048b52eSmrg        ac_install_sh="${as_dir}install-sh -c"
2460c048b52eSmrg      elif test -f "${as_dir}install.sh"; then
2461c048b52eSmrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2462c048b52eSmrg        ac_install_sh="${as_dir}install.sh -c"
2463c048b52eSmrg      elif test -f "${as_dir}shtool"; then
2464c048b52eSmrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2465c048b52eSmrg        ac_install_sh="${as_dir}shtool install -c"
2466c048b52eSmrg      else
2467c048b52eSmrg        ac_aux_dir_found=no
2468c048b52eSmrg        if $ac_first_candidate; then
2469c048b52eSmrg          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2470c048b52eSmrg        else
2471c048b52eSmrg          break
2472c048b52eSmrg        fi
2473c048b52eSmrg      fi
2474c048b52eSmrg    else
2475c048b52eSmrg      if test -f "${as_dir}${ac_aux}"; then
2476c048b52eSmrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2477c048b52eSmrg      else
2478c048b52eSmrg        ac_aux_dir_found=no
2479c048b52eSmrg        if $ac_first_candidate; then
2480c048b52eSmrg          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2481c048b52eSmrg        else
2482c048b52eSmrg          break
2483c048b52eSmrg        fi
2484c048b52eSmrg      fi
2485c048b52eSmrg    fi
2486c048b52eSmrg  done
2487c048b52eSmrg  if test "$ac_aux_dir_found" = yes; then
2488c048b52eSmrg    ac_aux_dir="$as_dir"
2489c048b52eSmrg    break
2490c048b52eSmrg  fi
2491c048b52eSmrg  ac_first_candidate=false
2492c048b52eSmrg
2493c048b52eSmrg  as_found=false
2494c048b52eSmrgdone
2495c048b52eSmrgIFS=$as_save_IFS
2496c048b52eSmrgif $as_found
2497c048b52eSmrgthen :
2498c048b52eSmrg
2499772b5186Smrgelse case e in #(
2500772b5186Smrg  e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2501772b5186Smrgesac
2502c048b52eSmrgfi
2503c048b52eSmrg
2504c048b52eSmrg
2505c048b52eSmrg# These three variables are undocumented and unsupported,
2506c048b52eSmrg# and are intended to be withdrawn in a future Autoconf release.
2507c048b52eSmrg# They can cause serious problems if a builder's source tree is in a directory
2508c048b52eSmrg# whose full name contains unusual characters.
2509c048b52eSmrgif test -f "${ac_aux_dir}config.guess"; then
2510c048b52eSmrg  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2511c048b52eSmrgfi
2512c048b52eSmrgif test -f "${ac_aux_dir}config.sub"; then
2513c048b52eSmrg  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2514c048b52eSmrgfi
2515c048b52eSmrgif test -f "$ac_aux_dir/configure"; then
2516c048b52eSmrg  ac_configure="$SHELL ${ac_aux_dir}configure"
2517c048b52eSmrgfi
2518c048b52eSmrg
2519c048b52eSmrg# Check that the precious variables saved in the cache have kept the same
2520c048b52eSmrg# value.
2521c048b52eSmrgac_cache_corrupted=false
2522c048b52eSmrgfor ac_var in $ac_precious_vars; do
2523c048b52eSmrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2524c048b52eSmrg  eval ac_new_set=\$ac_env_${ac_var}_set
2525c048b52eSmrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2526c048b52eSmrg  eval ac_new_val=\$ac_env_${ac_var}_value
2527c048b52eSmrg  case $ac_old_set,$ac_new_set in
2528c048b52eSmrg    set,)
2529772b5186Smrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2530772b5186Smrgprintf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2531c048b52eSmrg      ac_cache_corrupted=: ;;
2532c048b52eSmrg    ,set)
2533772b5186Smrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2534772b5186Smrgprintf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2535c048b52eSmrg      ac_cache_corrupted=: ;;
2536c048b52eSmrg    ,);;
2537c048b52eSmrg    *)
2538c048b52eSmrg      if test "x$ac_old_val" != "x$ac_new_val"; then
2539c048b52eSmrg	# differences in whitespace do not lead to failure.
2540c048b52eSmrg	ac_old_val_w=`echo x $ac_old_val`
2541c048b52eSmrg	ac_new_val_w=`echo x $ac_new_val`
2542c048b52eSmrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2543772b5186Smrg	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2544772b5186Smrgprintf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2545c048b52eSmrg	  ac_cache_corrupted=:
2546c048b52eSmrg	else
2547772b5186Smrg	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2548772b5186Smrgprintf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2549c048b52eSmrg	  eval $ac_var=\$ac_old_val
2550c048b52eSmrg	fi
2551772b5186Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  '$ac_old_val'" >&5
2552772b5186Smrgprintf "%s\n" "$as_me:   former value:  '$ac_old_val'" >&2;}
2553772b5186Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: '$ac_new_val'" >&5
2554772b5186Smrgprintf "%s\n" "$as_me:   current value: '$ac_new_val'" >&2;}
2555c048b52eSmrg      fi;;
2556c048b52eSmrg  esac
2557c048b52eSmrg  # Pass precious variables to config.status.
2558c048b52eSmrg  if test "$ac_new_set" = set; then
2559c048b52eSmrg    case $ac_new_val in
2560c048b52eSmrg    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2561c048b52eSmrg    *) ac_arg=$ac_var=$ac_new_val ;;
2562c048b52eSmrg    esac
2563c048b52eSmrg    case " $ac_configure_args " in
2564c048b52eSmrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2565c048b52eSmrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2566c048b52eSmrg    esac
2567c048b52eSmrg  fi
2568c048b52eSmrgdone
2569c048b52eSmrgif $ac_cache_corrupted; then
2570772b5186Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2571772b5186Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2572c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2573c048b52eSmrgprintf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2574772b5186Smrg  as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2575c048b52eSmrg	    and start over" "$LINENO" 5
2576c048b52eSmrgfi
2577c048b52eSmrg## -------------------- ##
2578c048b52eSmrg## Main body of script. ##
2579c048b52eSmrg## -------------------- ##
2580c048b52eSmrg
2581c048b52eSmrgac_ext=c
2582c048b52eSmrgac_cpp='$CPP $CPPFLAGS'
2583c048b52eSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2584c048b52eSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2585c048b52eSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2586c048b52eSmrg
2587c048b52eSmrg
2588c048b52eSmrg
2589c048b52eSmrgac_config_headers="$ac_config_headers config.h"
2590c048b52eSmrg
2591c048b52eSmrg
2592772b5186Smrg# Set common system defines for POSIX extensions, such as _GNU_SOURCE
2593772b5186Smrg# Must be called before any macros that run the compiler (like
2594772b5186Smrg# AC_PROG_LIBTOOL) to avoid autoconf errors.
2595c048b52eSmrg
2596c048b52eSmrg
2597c048b52eSmrg
2598772b5186Smrg
2599772b5186Smrg
2600772b5186Smrg
2601772b5186Smrg
2602772b5186Smrg
2603772b5186Smrg
2604772b5186Smrg
2605772b5186Smrg
2606772b5186Smrg# Expand $ac_aux_dir to an absolute path.
2607772b5186Smrgam_aux_dir=`cd "$ac_aux_dir" && pwd`
2608772b5186Smrg
2609772b5186Smrgac_ext=c
2610772b5186Smrgac_cpp='$CPP $CPPFLAGS'
2611772b5186Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2612772b5186Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2613772b5186Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2614772b5186Smrgif test -n "$ac_tool_prefix"; then
2615772b5186Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2616772b5186Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
2617772b5186Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2618772b5186Smrgprintf %s "checking for $ac_word... " >&6; }
2619772b5186Smrgif test ${ac_cv_prog_CC+y}
2620c048b52eSmrgthen :
2621c048b52eSmrg  printf %s "(cached) " >&6
2622772b5186Smrgelse case e in #(
2623772b5186Smrg  e) if test -n "$CC"; then
2624772b5186Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2625772b5186Smrgelse
2626772b5186Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26279fe995a9Smrgfor as_dir in $PATH
26289fe995a9Smrgdo
26299fe995a9Smrg  IFS=$as_save_IFS
2630c048b52eSmrg  case $as_dir in #(((
2631c048b52eSmrg    '') as_dir=./ ;;
2632c048b52eSmrg    */) ;;
2633c048b52eSmrg    *) as_dir=$as_dir/ ;;
2634c048b52eSmrg  esac
2635772b5186Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2636772b5186Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2637772b5186Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2638772b5186Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2639772b5186Smrg    break 2
2640772b5186Smrg  fi
2641772b5186Smrgdone
2642b62cc08cSmrg  done
26439fe995a9SmrgIFS=$as_save_IFS
26449fe995a9Smrg
2645772b5186Smrgfi ;;
2646772b5186Smrgesac
26479fe995a9Smrgfi
2648772b5186SmrgCC=$ac_cv_prog_CC
2649772b5186Smrgif test -n "$CC"; then
2650772b5186Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2651772b5186Smrgprintf "%s\n" "$CC" >&6; }
26529fe995a9Smrgelse
2653772b5186Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2654772b5186Smrgprintf "%s\n" "no" >&6; }
26559d794632Smrgfi
26569d794632Smrg
2657b62cc08cSmrg
2658b62cc08cSmrgfi
2659772b5186Smrgif test -z "$ac_cv_prog_CC"; then
2660772b5186Smrg  ac_ct_CC=$CC
2661772b5186Smrg  # Extract the first word of "gcc", so it can be a program name with args.
2662772b5186Smrgset dummy gcc; ac_word=$2
2663c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2664c048b52eSmrgprintf %s "checking for $ac_word... " >&6; }
2665772b5186Smrgif test ${ac_cv_prog_ac_ct_CC+y}
2666c048b52eSmrgthen :
2667c048b52eSmrg  printf %s "(cached) " >&6
2668772b5186Smrgelse case e in #(
2669772b5186Smrg  e) if test -n "$ac_ct_CC"; then
2670772b5186Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2671b62cc08cSmrgelse
2672b62cc08cSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673b62cc08cSmrgfor as_dir in $PATH
2674b62cc08cSmrgdo
2675b62cc08cSmrg  IFS=$as_save_IFS
2676c048b52eSmrg  case $as_dir in #(((
2677c048b52eSmrg    '') as_dir=./ ;;
2678c048b52eSmrg    */) ;;
2679c048b52eSmrg    *) as_dir=$as_dir/ ;;
2680c048b52eSmrg  esac
2681b62cc08cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2682c048b52eSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2683772b5186Smrg    ac_cv_prog_ac_ct_CC="gcc"
2684c048b52eSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2685b62cc08cSmrg    break 2
2686b62cc08cSmrg  fi
2687b62cc08cSmrgdone
2688b62cc08cSmrg  done
2689b62cc08cSmrgIFS=$as_save_IFS
2690b62cc08cSmrg
2691772b5186Smrgfi ;;
2692772b5186Smrgesac
2693b62cc08cSmrgfi
2694772b5186Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
2695772b5186Smrgif test -n "$ac_ct_CC"; then
2696772b5186Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2697772b5186Smrgprintf "%s\n" "$ac_ct_CC" >&6; }
2698b62cc08cSmrgelse
2699c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2700c048b52eSmrgprintf "%s\n" "no" >&6; }
2701b62cc08cSmrgfi
2702b62cc08cSmrg
2703772b5186Smrg  if test "x$ac_ct_CC" = x; then
2704772b5186Smrg    CC=""
2705772b5186Smrg  else
2706772b5186Smrg    case $cross_compiling:$ac_tool_warned in
2707772b5186Smrgyes:)
2708772b5186Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2709772b5186Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2710772b5186Smrgac_tool_warned=yes ;;
2711772b5186Smrgesac
2712772b5186Smrg    CC=$ac_ct_CC
2713772b5186Smrg  fi
2714772b5186Smrgelse
2715772b5186Smrg  CC="$ac_cv_prog_CC"
2716b62cc08cSmrgfi
2717772b5186Smrg
2718772b5186Smrgif test -z "$CC"; then
2719772b5186Smrg          if test -n "$ac_tool_prefix"; then
2720772b5186Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2721772b5186Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
2722c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2723c048b52eSmrgprintf %s "checking for $ac_word... " >&6; }
2724772b5186Smrgif test ${ac_cv_prog_CC+y}
2725c048b52eSmrgthen :
2726c048b52eSmrg  printf %s "(cached) " >&6
2727772b5186Smrgelse case e in #(
2728772b5186Smrg  e) if test -n "$CC"; then
2729772b5186Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2730b62cc08cSmrgelse
2731b62cc08cSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2732b62cc08cSmrgfor as_dir in $PATH
2733b62cc08cSmrgdo
2734b62cc08cSmrg  IFS=$as_save_IFS
2735c048b52eSmrg  case $as_dir in #(((
2736c048b52eSmrg    '') as_dir=./ ;;
2737c048b52eSmrg    */) ;;
2738c048b52eSmrg    *) as_dir=$as_dir/ ;;
2739c048b52eSmrg  esac
2740b62cc08cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2741c048b52eSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2742772b5186Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
2743c048b52eSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2744b62cc08cSmrg    break 2
2745b62cc08cSmrg  fi
2746b62cc08cSmrgdone
2747b62cc08cSmrg  done
2748b62cc08cSmrgIFS=$as_save_IFS
2749b62cc08cSmrg
2750772b5186Smrgfi ;;
2751772b5186Smrgesac
2752b62cc08cSmrgfi
2753772b5186SmrgCC=$ac_cv_prog_CC
2754772b5186Smrgif test -n "$CC"; then
2755772b5186Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2756772b5186Smrgprintf "%s\n" "$CC" >&6; }
2757b62cc08cSmrgelse
2758c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2759c048b52eSmrgprintf "%s\n" "no" >&6; }
2760b62cc08cSmrgfi
2761b62cc08cSmrg
27629fe995a9Smrg
2763772b5186Smrg  fi
2764b62cc08cSmrgfi
2765772b5186Smrgif test -z "$CC"; then
2766772b5186Smrg  # Extract the first word of "cc", so it can be a program name with args.
2767772b5186Smrgset dummy cc; ac_word=$2
2768772b5186Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2769772b5186Smrgprintf %s "checking for $ac_word... " >&6; }
2770772b5186Smrgif test ${ac_cv_prog_CC+y}
2771c048b52eSmrgthen :
2772c048b52eSmrg  printf %s "(cached) " >&6
2773772b5186Smrgelse case e in #(
2774772b5186Smrg  e) if test -n "$CC"; then
2775772b5186Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2776772b5186Smrgelse
2777772b5186Smrg  ac_prog_rejected=no
2778772b5186Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779772b5186Smrgfor as_dir in $PATH
27809fe995a9Smrgdo
27819fe995a9Smrg  IFS=$as_save_IFS
2782c048b52eSmrg  case $as_dir in #(((
2783c048b52eSmrg    '') as_dir=./ ;;
2784c048b52eSmrg    */) ;;
2785c048b52eSmrg    *) as_dir=$as_dir/ ;;
2786c048b52eSmrg  esac
2787772b5186Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2788772b5186Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2789772b5186Smrg    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2790772b5186Smrg       ac_prog_rejected=yes
2791772b5186Smrg       continue
2792772b5186Smrg     fi
2793772b5186Smrg    ac_cv_prog_CC="cc"
2794772b5186Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2795772b5186Smrg    break 2
2796772b5186Smrg  fi
2797772b5186Smrgdone
2798b62cc08cSmrg  done
27999fe995a9SmrgIFS=$as_save_IFS
28009fe995a9Smrg
2801772b5186Smrgif test $ac_prog_rejected = yes; then
2802772b5186Smrg  # We found a bogon in the path, so make sure we never use it.
2803772b5186Smrg  set dummy $ac_cv_prog_CC
2804772b5186Smrg  shift
2805772b5186Smrg  if test $# != 0; then
2806772b5186Smrg    # We chose a different compiler from the bogus one.
2807772b5186Smrg    # However, it has the same basename, so the bogon will be chosen
2808772b5186Smrg    # first if we set CC to just the basename; use the full file name.
2809772b5186Smrg    shift
2810772b5186Smrg    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
28119fe995a9Smrg  fi
28129fe995a9Smrgfi
2813772b5186Smrgfi ;;
2814772b5186Smrgesac
2815772b5186Smrgfi
2816772b5186SmrgCC=$ac_cv_prog_CC
2817772b5186Smrgif test -n "$CC"; then
2818772b5186Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2819772b5186Smrgprintf "%s\n" "$CC" >&6; }
2820772b5186Smrgelse
2821772b5186Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822772b5186Smrgprintf "%s\n" "no" >&6; }
2823772b5186Smrgfi
28249fe995a9Smrg
2825772b5186Smrg
2826772b5186Smrgfi
2827772b5186Smrgif test -z "$CC"; then
2828772b5186Smrg  if test -n "$ac_tool_prefix"; then
2829772b5186Smrg  for ac_prog in cl.exe
2830772b5186Smrg  do
2831772b5186Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2832772b5186Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
2833772b5186Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2834772b5186Smrgprintf %s "checking for $ac_word... " >&6; }
2835772b5186Smrgif test ${ac_cv_prog_CC+y}
2836772b5186Smrgthen :
2837772b5186Smrg  printf %s "(cached) " >&6
2838772b5186Smrgelse case e in #(
2839772b5186Smrg  e) if test -n "$CC"; then
2840772b5186Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2841772b5186Smrgelse
2842772b5186Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843772b5186Smrgfor as_dir in $PATH
2844772b5186Smrgdo
2845772b5186Smrg  IFS=$as_save_IFS
2846772b5186Smrg  case $as_dir in #(((
2847772b5186Smrg    '') as_dir=./ ;;
2848772b5186Smrg    */) ;;
2849772b5186Smrg    *) as_dir=$as_dir/ ;;
2850772b5186Smrg  esac
2851772b5186Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2852772b5186Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2853772b5186Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2854772b5186Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2855772b5186Smrg    break 2
2856772b5186Smrg  fi
2857772b5186Smrgdone
2858772b5186Smrg  done
2859772b5186SmrgIFS=$as_save_IFS
2860772b5186Smrg
2861772b5186Smrgfi ;;
2862772b5186Smrgesac
2863772b5186Smrgfi
2864772b5186SmrgCC=$ac_cv_prog_CC
2865772b5186Smrgif test -n "$CC"; then
2866772b5186Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2867772b5186Smrgprintf "%s\n" "$CC" >&6; }
2868772b5186Smrgelse
2869772b5186Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2870772b5186Smrgprintf "%s\n" "no" >&6; }
2871772b5186Smrgfi
2872772b5186Smrg
2873772b5186Smrg
2874772b5186Smrg    test -n "$CC" && break
2875772b5186Smrg  done
2876772b5186Smrgfi
2877772b5186Smrgif test -z "$CC"; then
2878772b5186Smrg  ac_ct_CC=$CC
2879772b5186Smrg  for ac_prog in cl.exe
28809fe995a9Smrgdo
28819fe995a9Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
28829fe995a9Smrgset dummy $ac_prog; ac_word=$2
2883c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2884c048b52eSmrgprintf %s "checking for $ac_word... " >&6; }
2885772b5186Smrgif test ${ac_cv_prog_ac_ct_CC+y}
2886c048b52eSmrgthen :
2887c048b52eSmrg  printf %s "(cached) " >&6
2888772b5186Smrgelse case e in #(
2889772b5186Smrg  e) if test -n "$ac_ct_CC"; then
2890772b5186Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
28919fe995a9Smrgelse
28929fe995a9Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28939fe995a9Smrgfor as_dir in $PATH
28949fe995a9Smrgdo
28959fe995a9Smrg  IFS=$as_save_IFS
2896c048b52eSmrg  case $as_dir in #(((
2897c048b52eSmrg    '') as_dir=./ ;;
2898c048b52eSmrg    */) ;;
2899c048b52eSmrg    *) as_dir=$as_dir/ ;;
2900c048b52eSmrg  esac
2901b62cc08cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2902c048b52eSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2903772b5186Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
2904c048b52eSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29059fe995a9Smrg    break 2
29069fe995a9Smrg  fi
29079fe995a9Smrgdone
2908b62cc08cSmrg  done
29099fe995a9SmrgIFS=$as_save_IFS
29109fe995a9Smrg
2911772b5186Smrgfi ;;
2912772b5186Smrgesac
29139fe995a9Smrgfi
2914772b5186Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
2915772b5186Smrgif test -n "$ac_ct_CC"; then
2916772b5186Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2917772b5186Smrgprintf "%s\n" "$ac_ct_CC" >&6; }
29189fe995a9Smrgelse
2919c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2920c048b52eSmrgprintf "%s\n" "no" >&6; }
29219fe995a9Smrgfi
29229fe995a9Smrg
29239fe995a9Smrg
2924772b5186Smrg  test -n "$ac_ct_CC" && break
29259fe995a9Smrgdone
29269fe995a9Smrg
2927772b5186Smrg  if test "x$ac_ct_CC" = x; then
2928772b5186Smrg    CC=""
2929772b5186Smrg  else
2930772b5186Smrg    case $cross_compiling:$ac_tool_warned in
2931772b5186Smrgyes:)
2932772b5186Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2933772b5186Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2934772b5186Smrgac_tool_warned=yes ;;
2935772b5186Smrgesac
2936772b5186Smrg    CC=$ac_ct_CC
2937772b5186Smrg  fi
2938772b5186Smrgfi
2939772b5186Smrg
2940772b5186Smrgfi
2941772b5186Smrgif test -z "$CC"; then
2942772b5186Smrg  if test -n "$ac_tool_prefix"; then
2943772b5186Smrg  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2944772b5186Smrgset dummy ${ac_tool_prefix}clang; ac_word=$2
2945772b5186Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2946772b5186Smrgprintf %s "checking for $ac_word... " >&6; }
2947772b5186Smrgif test ${ac_cv_prog_CC+y}
2948c048b52eSmrgthen :
2949c048b52eSmrg  printf %s "(cached) " >&6
2950772b5186Smrgelse case e in #(
2951772b5186Smrg  e) if test -n "$CC"; then
2952772b5186Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2953772b5186Smrgelse
2954772b5186Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955772b5186Smrgfor as_dir in $PATH
2956772b5186Smrgdo
2957772b5186Smrg  IFS=$as_save_IFS
2958772b5186Smrg  case $as_dir in #(((
2959772b5186Smrg    '') as_dir=./ ;;
2960772b5186Smrg    */) ;;
2961772b5186Smrg    *) as_dir=$as_dir/ ;;
2962772b5186Smrg  esac
2963772b5186Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2964772b5186Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2965772b5186Smrg    ac_cv_prog_CC="${ac_tool_prefix}clang"
2966772b5186Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2967772b5186Smrg    break 2
2968772b5186Smrg  fi
2969772b5186Smrgdone
2970772b5186Smrg  done
2971772b5186SmrgIFS=$as_save_IFS
2972772b5186Smrg
2973772b5186Smrgfi ;;
29749fe995a9Smrgesac
29759fe995a9Smrgfi
2976772b5186SmrgCC=$ac_cv_prog_CC
2977772b5186Smrgif test -n "$CC"; then
2978772b5186Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2979772b5186Smrgprintf "%s\n" "$CC" >&6; }
29809fe995a9Smrgelse
2981c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982c048b52eSmrgprintf "%s\n" "no" >&6; }
29839fe995a9Smrgfi
29849fe995a9Smrg
29859fe995a9Smrg
29869d794632Smrgfi
2987772b5186Smrgif test -z "$ac_cv_prog_CC"; then
2988772b5186Smrg  ac_ct_CC=$CC
2989772b5186Smrg  # Extract the first word of "clang", so it can be a program name with args.
2990772b5186Smrgset dummy clang; ac_word=$2
2991772b5186Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2992772b5186Smrgprintf %s "checking for $ac_word... " >&6; }
2993772b5186Smrgif test ${ac_cv_prog_ac_ct_CC+y}
2994c048b52eSmrgthen :
2995c048b52eSmrg  printf %s "(cached) " >&6
2996772b5186Smrgelse case e in #(
2997772b5186Smrg  e) if test -n "$ac_ct_CC"; then
2998772b5186Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
29999d794632Smrgelse
3000772b5186Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001772b5186Smrgfor as_dir in $PATH
3002772b5186Smrgdo
3003772b5186Smrg  IFS=$as_save_IFS
3004772b5186Smrg  case $as_dir in #(((
3005772b5186Smrg    '') as_dir=./ ;;
3006772b5186Smrg    */) ;;
3007772b5186Smrg    *) as_dir=$as_dir/ ;;
3008772b5186Smrg  esac
3009772b5186Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3010772b5186Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3011772b5186Smrg    ac_cv_prog_ac_ct_CC="clang"
3012772b5186Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3013772b5186Smrg    break 2
3014772b5186Smrg  fi
3015772b5186Smrgdone
3016772b5186Smrg  done
3017772b5186SmrgIFS=$as_save_IFS
3018772b5186Smrg
3019772b5186Smrgfi ;;
3020772b5186Smrgesac
30219d794632Smrgfi
3022772b5186Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
3023772b5186Smrgif test -n "$ac_ct_CC"; then
3024772b5186Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3025772b5186Smrgprintf "%s\n" "$ac_ct_CC" >&6; }
30269d794632Smrgelse
3027772b5186Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028772b5186Smrgprintf "%s\n" "no" >&6; }
30299d794632Smrgfi
30309d794632Smrg
3031772b5186Smrg  if test "x$ac_ct_CC" = x; then
3032772b5186Smrg    CC=""
3033772b5186Smrg  else
3034772b5186Smrg    case $cross_compiling:$ac_tool_warned in
3035772b5186Smrgyes:)
3036772b5186Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3037772b5186Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3038772b5186Smrgac_tool_warned=yes ;;
3039772b5186Smrgesac
3040772b5186Smrg    CC=$ac_ct_CC
30419fe995a9Smrg  fi
3042772b5186Smrgelse
3043772b5186Smrg  CC="$ac_cv_prog_CC"
30449fe995a9Smrgfi
30459fe995a9Smrg
30469fe995a9Smrgfi
30479fe995a9Smrg
30489fe995a9Smrg
3049772b5186Smrgtest -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3050772b5186Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3051772b5186Smrgas_fn_error $? "no acceptable C compiler found in \$PATH
3052772b5186SmrgSee 'config.log' for more details" "$LINENO" 5; }
30539fe995a9Smrg
3054772b5186Smrg# Provide some information about the compiler.
3055772b5186Smrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3056772b5186Smrgset X $ac_compile
3057772b5186Smrgac_compiler=$2
3058772b5186Smrgfor ac_option in --version -v -V -qversion -version; do
3059772b5186Smrg  { { ac_try="$ac_compiler $ac_option >&5"
3060772b5186Smrgcase "(($ac_try" in
3061772b5186Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062772b5186Smrg  *) ac_try_echo=$ac_try;;
3063772b5186Smrgesac
3064772b5186Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3065772b5186Smrgprintf "%s\n" "$ac_try_echo"; } >&5
3066772b5186Smrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3067772b5186Smrg  ac_status=$?
3068772b5186Smrg  if test -s conftest.err; then
3069772b5186Smrg    sed '10a\
3070772b5186Smrg... rest of stderr output deleted ...
3071772b5186Smrg         10q' conftest.err >conftest.er1
3072772b5186Smrg    cat conftest.er1 >&5
3073772b5186Smrg  fi
3074772b5186Smrg  rm -f conftest.er1 conftest.err
3075772b5186Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3076772b5186Smrg  test $ac_status = 0; }
3077772b5186Smrgdone
30789fe995a9Smrg
3079772b5186Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3080772b5186Smrg/* end confdefs.h.  */
30819fe995a9Smrg
3082772b5186Smrgint
3083772b5186Smrgmain (void)
3084772b5186Smrg{
30859fe995a9Smrg
3086772b5186Smrg  ;
3087772b5186Smrg  return 0;
3088772b5186Smrg}
3089772b5186Smrg_ACEOF
3090772b5186Smrgac_clean_files_save=$ac_clean_files
3091772b5186Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3092772b5186Smrg# Try to create an executable without -o first, disregard a.out.
3093772b5186Smrg# It will help us diagnose broken compilers, and finding out an intuition
3094772b5186Smrg# of exeext.
3095772b5186Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3096772b5186Smrgprintf %s "checking whether the C compiler works... " >&6; }
3097772b5186Smrgac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
30989fe995a9Smrg
3099772b5186Smrg# The possible output files:
3100772b5186Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
31019fe995a9Smrg
3102772b5186Smrgac_rmfiles=
3103772b5186Smrgfor ac_file in $ac_files
3104772b5186Smrgdo
3105772b5186Smrg  case $ac_file in
3106772b5186Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3107772b5186Smrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3108772b5186Smrg  esac
3109772b5186Smrgdone
3110772b5186Smrgrm -f $ac_rmfiles
31119fe995a9Smrg
3112772b5186Smrgif { { ac_try="$ac_link_default"
3113772b5186Smrgcase "(($ac_try" in
3114772b5186Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115772b5186Smrg  *) ac_try_echo=$ac_try;;
3116772b5186Smrgesac
3117772b5186Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3118772b5186Smrgprintf "%s\n" "$ac_try_echo"; } >&5
3119772b5186Smrg  (eval "$ac_link_default") 2>&5
3120772b5186Smrg  ac_status=$?
3121772b5186Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3122772b5186Smrg  test $ac_status = 0; }
3123772b5186Smrgthen :
3124772b5186Smrg  # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3125772b5186Smrg# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3126772b5186Smrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3127772b5186Smrg# so that the user can short-circuit this test for compilers unknown to
3128772b5186Smrg# Autoconf.
3129772b5186Smrgfor ac_file in $ac_files ''
3130772b5186Smrgdo
3131772b5186Smrg  test -f "$ac_file" || continue
3132772b5186Smrg  case $ac_file in
3133772b5186Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3134772b5186Smrg	;;
3135772b5186Smrg    [ab].out )
3136772b5186Smrg	# We found the default executable, but exeext='' is most
3137772b5186Smrg	# certainly right.
3138772b5186Smrg	break;;
3139772b5186Smrg    *.* )
3140772b5186Smrg	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3141772b5186Smrg	then :; else
3142772b5186Smrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3143772b5186Smrg	fi
3144772b5186Smrg	# We set ac_cv_exeext here because the later test for it is not
3145772b5186Smrg	# safe: cross compilers may not add the suffix if given an '-o'
3146772b5186Smrg	# argument, so we may need to know it at that point already.
3147772b5186Smrg	# Even if this section looks crufty: it has the advantage of
3148772b5186Smrg	# actually working.
3149772b5186Smrg	break;;
3150772b5186Smrg    * )
3151772b5186Smrg	break;;
3152772b5186Smrg  esac
3153772b5186Smrgdone
3154772b5186Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
31559fe995a9Smrg
3156772b5186Smrgelse case e in #(
3157772b5186Smrg  e) ac_file='' ;;
3158772b5186Smrgesac
3159772b5186Smrgfi
3160772b5186Smrgif test -z "$ac_file"
3161772b5186Smrgthen :
3162772b5186Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3163772b5186Smrgprintf "%s\n" "no" >&6; }
3164772b5186Smrgprintf "%s\n" "$as_me: failed program was:" >&5
3165772b5186Smrgsed 's/^/| /' conftest.$ac_ext >&5
31669fe995a9Smrg
3167772b5186Smrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3168772b5186Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3169772b5186Smrgas_fn_error 77 "C compiler cannot create executables
3170772b5186SmrgSee 'config.log' for more details" "$LINENO" 5; }
3171772b5186Smrgelse case e in #(
3172772b5186Smrg  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3173772b5186Smrgprintf "%s\n" "yes" >&6; } ;;
3174772b5186Smrgesac
3175772b5186Smrgfi
3176772b5186Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3177772b5186Smrgprintf %s "checking for C compiler default output file name... " >&6; }
3178772b5186Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3179772b5186Smrgprintf "%s\n" "$ac_file" >&6; }
3180772b5186Smrgac_exeext=$ac_cv_exeext
31819fe995a9Smrg
3182772b5186Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3183772b5186Smrgac_clean_files=$ac_clean_files_save
3184772b5186Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3185772b5186Smrgprintf %s "checking for suffix of executables... " >&6; }
3186772b5186Smrgif { { ac_try="$ac_link"
3187772b5186Smrgcase "(($ac_try" in
3188772b5186Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189772b5186Smrg  *) ac_try_echo=$ac_try;;
3190772b5186Smrgesac
3191772b5186Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3192772b5186Smrgprintf "%s\n" "$ac_try_echo"; } >&5
3193772b5186Smrg  (eval "$ac_link") 2>&5
3194772b5186Smrg  ac_status=$?
3195772b5186Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3196772b5186Smrg  test $ac_status = 0; }
3197772b5186Smrgthen :
3198772b5186Smrg  # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3199772b5186Smrg# catch 'conftest.exe'.  For instance with Cygwin, 'ls conftest' will
3200772b5186Smrg# work properly (i.e., refer to 'conftest.exe'), while it won't with
3201772b5186Smrg# 'rm'.
3202772b5186Smrgfor ac_file in conftest.exe conftest conftest.*; do
3203772b5186Smrg  test -f "$ac_file" || continue
3204772b5186Smrg  case $ac_file in
3205772b5186Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3206772b5186Smrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3207772b5186Smrg	  break;;
3208772b5186Smrg    * ) break;;
3209772b5186Smrg  esac
3210772b5186Smrgdone
3211772b5186Smrgelse case e in #(
3212772b5186Smrg  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3213772b5186Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3214772b5186Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
3215772b5186SmrgSee 'config.log' for more details" "$LINENO" 5; } ;;
3216772b5186Smrgesac
3217772b5186Smrgfi
3218772b5186Smrgrm -f conftest conftest$ac_cv_exeext
3219772b5186Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3220772b5186Smrgprintf "%s\n" "$ac_cv_exeext" >&6; }
32219fe995a9Smrg
3222772b5186Smrgrm -f conftest.$ac_ext
3223772b5186SmrgEXEEXT=$ac_cv_exeext
3224772b5186Smrgac_exeext=$EXEEXT
3225772b5186Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3226772b5186Smrg/* end confdefs.h.  */
3227772b5186Smrg#include <stdio.h>
3228772b5186Smrgint
3229772b5186Smrgmain (void)
3230772b5186Smrg{
3231772b5186SmrgFILE *f = fopen ("conftest.out", "w");
3232772b5186Smrg if (!f)
3233772b5186Smrg  return 1;
3234772b5186Smrg return ferror (f) || fclose (f) != 0;
32359fe995a9Smrg
3236772b5186Smrg  ;
3237772b5186Smrg  return 0;
3238772b5186Smrg}
3239772b5186Smrg_ACEOF
3240772b5186Smrgac_clean_files="$ac_clean_files conftest.out"
3241772b5186Smrg# Check that the compiler produces executables we can run.  If not, either
3242772b5186Smrg# the compiler is broken, or we cross compile.
3243772b5186Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3244772b5186Smrgprintf %s "checking whether we are cross compiling... " >&6; }
3245772b5186Smrgif test "$cross_compiling" != yes; then
3246772b5186Smrg  { { ac_try="$ac_link"
3247772b5186Smrgcase "(($ac_try" in
3248772b5186Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249772b5186Smrg  *) ac_try_echo=$ac_try;;
3250772b5186Smrgesac
3251772b5186Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3252772b5186Smrgprintf "%s\n" "$ac_try_echo"; } >&5
3253772b5186Smrg  (eval "$ac_link") 2>&5
3254772b5186Smrg  ac_status=$?
3255772b5186Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3256772b5186Smrg  test $ac_status = 0; }
3257772b5186Smrg  if { ac_try='./conftest$ac_cv_exeext'
3258772b5186Smrg  { { case "(($ac_try" in
3259772b5186Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260772b5186Smrg  *) ac_try_echo=$ac_try;;
3261772b5186Smrgesac
3262772b5186Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3263772b5186Smrgprintf "%s\n" "$ac_try_echo"; } >&5
3264772b5186Smrg  (eval "$ac_try") 2>&5
3265772b5186Smrg  ac_status=$?
3266772b5186Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3267772b5186Smrg  test $ac_status = 0; }; }; then
3268772b5186Smrg    cross_compiling=no
3269772b5186Smrg  else
3270772b5186Smrg    if test "$cross_compiling" = maybe; then
3271772b5186Smrg	cross_compiling=yes
3272772b5186Smrg    else
3273772b5186Smrg	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3274772b5186Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3275772b5186Smrgas_fn_error 77 "cannot run C compiled programs.
3276772b5186SmrgIf you meant to cross compile, use '--host'.
3277772b5186SmrgSee 'config.log' for more details" "$LINENO" 5; }
3278772b5186Smrg    fi
3279772b5186Smrg  fi
3280772b5186Smrgfi
3281772b5186Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3282772b5186Smrgprintf "%s\n" "$cross_compiling" >&6; }
32839fe995a9Smrg
3284772b5186Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext \
3285772b5186Smrg  conftest.o conftest.obj conftest.out
3286772b5186Smrgac_clean_files=$ac_clean_files_save
3287772b5186Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3288772b5186Smrgprintf %s "checking for suffix of object files... " >&6; }
3289772b5186Smrgif test ${ac_cv_objext+y}
3290772b5186Smrgthen :
3291772b5186Smrg  printf %s "(cached) " >&6
3292772b5186Smrgelse case e in #(
3293772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3294772b5186Smrg/* end confdefs.h.  */
32959fe995a9Smrg
3296772b5186Smrgint
3297772b5186Smrgmain (void)
3298772b5186Smrg{
32999fe995a9Smrg
3300772b5186Smrg  ;
3301772b5186Smrg  return 0;
3302772b5186Smrg}
3303772b5186Smrg_ACEOF
3304772b5186Smrgrm -f conftest.o conftest.obj
3305772b5186Smrgif { { ac_try="$ac_compile"
3306772b5186Smrgcase "(($ac_try" in
3307772b5186Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308772b5186Smrg  *) ac_try_echo=$ac_try;;
3309772b5186Smrgesac
3310772b5186Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3311772b5186Smrgprintf "%s\n" "$ac_try_echo"; } >&5
3312772b5186Smrg  (eval "$ac_compile") 2>&5
3313772b5186Smrg  ac_status=$?
3314772b5186Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3315772b5186Smrg  test $ac_status = 0; }
3316772b5186Smrgthen :
3317772b5186Smrg  for ac_file in conftest.o conftest.obj conftest.*; do
3318772b5186Smrg  test -f "$ac_file" || continue;
3319772b5186Smrg  case $ac_file in
3320772b5186Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3321772b5186Smrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3322772b5186Smrg       break;;
3323772b5186Smrg  esac
3324772b5186Smrgdone
3325772b5186Smrgelse case e in #(
3326772b5186Smrg  e) printf "%s\n" "$as_me: failed program was:" >&5
3327772b5186Smrgsed 's/^/| /' conftest.$ac_ext >&5
33289d794632Smrg
3329772b5186Smrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3330772b5186Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3331772b5186Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile
3332772b5186SmrgSee 'config.log' for more details" "$LINENO" 5; } ;;
3333772b5186Smrgesac
3334772b5186Smrgfi
3335772b5186Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3336772b5186Smrgesac
3337772b5186Smrgfi
3338772b5186Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3339772b5186Smrgprintf "%s\n" "$ac_cv_objext" >&6; }
3340772b5186SmrgOBJEXT=$ac_cv_objext
3341772b5186Smrgac_objext=$OBJEXT
3342772b5186Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3343772b5186Smrgprintf %s "checking whether the compiler supports GNU C... " >&6; }
3344772b5186Smrgif test ${ac_cv_c_compiler_gnu+y}
3345772b5186Smrgthen :
3346772b5186Smrg  printf %s "(cached) " >&6
3347772b5186Smrgelse case e in #(
3348772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3349772b5186Smrg/* end confdefs.h.  */
33509d794632Smrg
3351772b5186Smrgint
3352772b5186Smrgmain (void)
3353772b5186Smrg{
3354772b5186Smrg#ifndef __GNUC__
3355772b5186Smrg       choke me
3356772b5186Smrg#endif
33579d794632Smrg
3358772b5186Smrg  ;
3359772b5186Smrg  return 0;
3360772b5186Smrg}
3361772b5186Smrg_ACEOF
3362772b5186Smrgif ac_fn_c_try_compile "$LINENO"
3363772b5186Smrgthen :
3364772b5186Smrg  ac_compiler_gnu=yes
3365772b5186Smrgelse case e in #(
3366772b5186Smrg  e) ac_compiler_gnu=no ;;
3367772b5186Smrgesac
3368772b5186Smrgfi
3369772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3370772b5186Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
3371772b5186Smrg ;;
3372772b5186Smrgesac
3373772b5186Smrgfi
3374772b5186Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3375772b5186Smrgprintf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3376772b5186Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
33779d794632Smrg
3378772b5186Smrgif test $ac_compiler_gnu = yes; then
3379772b5186Smrg  GCC=yes
3380772b5186Smrgelse
3381772b5186Smrg  GCC=
3382772b5186Smrgfi
3383772b5186Smrgac_test_CFLAGS=${CFLAGS+y}
3384772b5186Smrgac_save_CFLAGS=$CFLAGS
3385772b5186Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3386772b5186Smrgprintf %s "checking whether $CC accepts -g... " >&6; }
3387772b5186Smrgif test ${ac_cv_prog_cc_g+y}
3388772b5186Smrgthen :
3389772b5186Smrg  printf %s "(cached) " >&6
3390772b5186Smrgelse case e in #(
3391772b5186Smrg  e) ac_save_c_werror_flag=$ac_c_werror_flag
3392772b5186Smrg   ac_c_werror_flag=yes
3393772b5186Smrg   ac_cv_prog_cc_g=no
3394772b5186Smrg   CFLAGS="-g"
3395772b5186Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396772b5186Smrg/* end confdefs.h.  */
33979d794632Smrg
3398772b5186Smrgint
3399772b5186Smrgmain (void)
3400772b5186Smrg{
34019fe995a9Smrg
3402772b5186Smrg  ;
3403772b5186Smrg  return 0;
3404772b5186Smrg}
3405772b5186Smrg_ACEOF
3406772b5186Smrgif ac_fn_c_try_compile "$LINENO"
3407772b5186Smrgthen :
3408772b5186Smrg  ac_cv_prog_cc_g=yes
3409772b5186Smrgelse case e in #(
3410772b5186Smrg  e) CFLAGS=""
3411772b5186Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412772b5186Smrg/* end confdefs.h.  */
34139fe995a9Smrg
3414772b5186Smrgint
3415772b5186Smrgmain (void)
3416772b5186Smrg{
34179fe995a9Smrg
3418772b5186Smrg  ;
3419772b5186Smrg  return 0;
3420772b5186Smrg}
3421772b5186Smrg_ACEOF
3422772b5186Smrgif ac_fn_c_try_compile "$LINENO"
3423772b5186Smrgthen :
34249fe995a9Smrg
3425772b5186Smrgelse case e in #(
3426772b5186Smrg  e) ac_c_werror_flag=$ac_save_c_werror_flag
3427772b5186Smrg	 CFLAGS="-g"
3428772b5186Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429772b5186Smrg/* end confdefs.h.  */
3430772b5186Smrg
3431772b5186Smrgint
3432772b5186Smrgmain (void)
3433772b5186Smrg{
3434772b5186Smrg
3435772b5186Smrg  ;
3436772b5186Smrg  return 0;
3437772b5186Smrg}
3438772b5186Smrg_ACEOF
3439772b5186Smrgif ac_fn_c_try_compile "$LINENO"
3440772b5186Smrgthen :
3441772b5186Smrg  ac_cv_prog_cc_g=yes
3442772b5186Smrgfi
3443772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3444772b5186Smrgesac
3445772b5186Smrgfi
3446772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3447772b5186Smrgesac
3448772b5186Smrgfi
3449772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3450772b5186Smrg   ac_c_werror_flag=$ac_save_c_werror_flag ;;
3451772b5186Smrgesac
3452772b5186Smrgfi
3453772b5186Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3454772b5186Smrgprintf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3455772b5186Smrgif test $ac_test_CFLAGS; then
3456772b5186Smrg  CFLAGS=$ac_save_CFLAGS
3457772b5186Smrgelif test $ac_cv_prog_cc_g = yes; then
3458772b5186Smrg  if test "$GCC" = yes; then
3459772b5186Smrg    CFLAGS="-g -O2"
3460772b5186Smrg  else
3461772b5186Smrg    CFLAGS="-g"
3462772b5186Smrg  fi
3463772b5186Smrgelse
3464772b5186Smrg  if test "$GCC" = yes; then
3465772b5186Smrg    CFLAGS="-O2"
3466772b5186Smrg  else
3467772b5186Smrg    CFLAGS=
3468772b5186Smrg  fi
3469772b5186Smrgfi
3470772b5186Smrgac_prog_cc_stdc=no
3471772b5186Smrgif test x$ac_prog_cc_stdc = xno
3472772b5186Smrgthen :
3473772b5186Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3474772b5186Smrgprintf %s "checking for $CC option to enable C11 features... " >&6; }
3475772b5186Smrgif test ${ac_cv_prog_cc_c11+y}
3476772b5186Smrgthen :
3477772b5186Smrg  printf %s "(cached) " >&6
3478772b5186Smrgelse case e in #(
3479772b5186Smrg  e) ac_cv_prog_cc_c11=no
3480772b5186Smrgac_save_CC=$CC
3481772b5186Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3482772b5186Smrg/* end confdefs.h.  */
3483772b5186Smrg$ac_c_conftest_c11_program
3484772b5186Smrg_ACEOF
3485772b5186Smrgfor ac_arg in '' -std=gnu11
3486772b5186Smrgdo
3487772b5186Smrg  CC="$ac_save_CC $ac_arg"
3488772b5186Smrg  if ac_fn_c_try_compile "$LINENO"
3489772b5186Smrgthen :
3490772b5186Smrg  ac_cv_prog_cc_c11=$ac_arg
3491772b5186Smrgfi
3492772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam
3493772b5186Smrg  test "x$ac_cv_prog_cc_c11" != "xno" && break
3494772b5186Smrgdone
3495772b5186Smrgrm -f conftest.$ac_ext
3496772b5186SmrgCC=$ac_save_CC ;;
3497772b5186Smrgesac
3498c048b52eSmrgfi
3499c048b52eSmrg
3500772b5186Smrgif test "x$ac_cv_prog_cc_c11" = xno
3501772b5186Smrgthen :
3502772b5186Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3503772b5186Smrgprintf "%s\n" "unsupported" >&6; }
3504772b5186Smrgelse case e in #(
3505772b5186Smrg  e) if test "x$ac_cv_prog_cc_c11" = x
3506772b5186Smrgthen :
3507772b5186Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3508772b5186Smrgprintf "%s\n" "none needed" >&6; }
3509772b5186Smrgelse case e in #(
3510772b5186Smrg  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3511772b5186Smrgprintf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3512772b5186Smrg     CC="$CC $ac_cv_prog_cc_c11" ;;
3513772b5186Smrgesac
3514772b5186Smrgfi
3515772b5186Smrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3516772b5186Smrg  ac_prog_cc_stdc=c11 ;;
3517772b5186Smrgesac
3518772b5186Smrgfi
3519772b5186Smrgfi
3520772b5186Smrgif test x$ac_prog_cc_stdc = xno
3521772b5186Smrgthen :
3522772b5186Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3523772b5186Smrgprintf %s "checking for $CC option to enable C99 features... " >&6; }
3524772b5186Smrgif test ${ac_cv_prog_cc_c99+y}
3525772b5186Smrgthen :
3526772b5186Smrg  printf %s "(cached) " >&6
3527772b5186Smrgelse case e in #(
3528772b5186Smrg  e) ac_cv_prog_cc_c99=no
3529772b5186Smrgac_save_CC=$CC
3530772b5186Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531772b5186Smrg/* end confdefs.h.  */
3532772b5186Smrg$ac_c_conftest_c99_program
3533772b5186Smrg_ACEOF
3534772b5186Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3535772b5186Smrgdo
3536772b5186Smrg  CC="$ac_save_CC $ac_arg"
3537772b5186Smrg  if ac_fn_c_try_compile "$LINENO"
3538772b5186Smrgthen :
3539772b5186Smrg  ac_cv_prog_cc_c99=$ac_arg
3540c048b52eSmrgfi
3541772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam
3542772b5186Smrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
3543772b5186Smrgdone
3544772b5186Smrgrm -f conftest.$ac_ext
3545772b5186SmrgCC=$ac_save_CC ;;
3546772b5186Smrgesac
3547c048b52eSmrgfi
3548c048b52eSmrg
3549772b5186Smrgif test "x$ac_cv_prog_cc_c99" = xno
3550772b5186Smrgthen :
3551772b5186Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3552772b5186Smrgprintf "%s\n" "unsupported" >&6; }
3553772b5186Smrgelse case e in #(
3554772b5186Smrg  e) if test "x$ac_cv_prog_cc_c99" = x
3555772b5186Smrgthen :
3556772b5186Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3557772b5186Smrgprintf "%s\n" "none needed" >&6; }
3558772b5186Smrgelse case e in #(
3559772b5186Smrg  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3560772b5186Smrgprintf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3561772b5186Smrg     CC="$CC $ac_cv_prog_cc_c99" ;;
3562772b5186Smrgesac
35639d794632Smrgfi
3564772b5186Smrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3565772b5186Smrg  ac_prog_cc_stdc=c99 ;;
3566c048b52eSmrgesac
3567772b5186Smrgfi
3568772b5186Smrgfi
3569772b5186Smrgif test x$ac_prog_cc_stdc = xno
3570772b5186Smrgthen :
3571772b5186Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3572772b5186Smrgprintf %s "checking for $CC option to enable C89 features... " >&6; }
3573772b5186Smrgif test ${ac_cv_prog_cc_c89+y}
3574772b5186Smrgthen :
3575772b5186Smrg  printf %s "(cached) " >&6
3576772b5186Smrgelse case e in #(
3577772b5186Smrg  e) ac_cv_prog_cc_c89=no
3578772b5186Smrgac_save_CC=$CC
3579772b5186Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3580772b5186Smrg/* end confdefs.h.  */
3581772b5186Smrg$ac_c_conftest_c89_program
3582772b5186Smrg_ACEOF
3583772b5186Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3584772b5186Smrgdo
3585772b5186Smrg  CC="$ac_save_CC $ac_arg"
3586772b5186Smrg  if ac_fn_c_try_compile "$LINENO"
3587772b5186Smrgthen :
3588772b5186Smrg  ac_cv_prog_cc_c89=$ac_arg
3589772b5186Smrgfi
3590772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam
3591772b5186Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
3592c048b52eSmrgdone
3593772b5186Smrgrm -f conftest.$ac_ext
3594772b5186SmrgCC=$ac_save_CC ;;
3595772b5186Smrgesac
3596772b5186Smrgfi
359790b6713cSmrg
3598772b5186Smrgif test "x$ac_cv_prog_cc_c89" = xno
3599c048b52eSmrgthen :
3600772b5186Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3601772b5186Smrgprintf "%s\n" "unsupported" >&6; }
3602772b5186Smrgelse case e in #(
3603772b5186Smrg  e) if test "x$ac_cv_prog_cc_c89" = x
3604772b5186Smrgthen :
3605772b5186Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3606772b5186Smrgprintf "%s\n" "none needed" >&6; }
3607772b5186Smrgelse case e in #(
3608772b5186Smrg  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3609772b5186Smrgprintf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3610772b5186Smrg     CC="$CC $ac_cv_prog_cc_c89" ;;
3611772b5186Smrgesac
361290b6713cSmrgfi
3613772b5186Smrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3614772b5186Smrg  ac_prog_cc_stdc=c89 ;;
3615772b5186Smrgesac
361690b6713cSmrgfi
361790b6713cSmrgfi
361890b6713cSmrg
36199fe995a9Smrgac_ext=c
36209fe995a9Smrgac_cpp='$CPP $CPPFLAGS'
36219fe995a9Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36229fe995a9Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36239fe995a9Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3624772b5186Smrg
3625772b5186Smrg
3626772b5186Smrg  ac_ext=c
3627772b5186Smrgac_cpp='$CPP $CPPFLAGS'
3628772b5186Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3629772b5186Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3630772b5186Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3631772b5186Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3632772b5186Smrgprintf %s "checking whether $CC understands -c and -o together... " >&6; }
3633772b5186Smrgif test ${am_cv_prog_cc_c_o+y}
3634c048b52eSmrgthen :
3635c048b52eSmrg  printf %s "(cached) " >&6
3636772b5186Smrgelse case e in #(
3637772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638772b5186Smrg/* end confdefs.h.  */
36399fe995a9Smrg
3640772b5186Smrgint
3641772b5186Smrgmain (void)
3642772b5186Smrg{
3643772b5186Smrg
3644772b5186Smrg  ;
3645772b5186Smrg  return 0;
3646772b5186Smrg}
3647772b5186Smrg_ACEOF
3648772b5186Smrg  # Make sure it works both with $CC and with simple cc.
3649772b5186Smrg  # Following AC_PROG_CC_C_O, we do the test twice because some
3650772b5186Smrg  # compilers refuse to overwrite an existing .o file with -o,
3651772b5186Smrg  # though they will create one.
3652772b5186Smrg  am_cv_prog_cc_c_o=yes
3653772b5186Smrg  for am_i in 1 2; do
3654772b5186Smrg    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3655772b5186Smrg   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3656772b5186Smrg   ac_status=$?
3657772b5186Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658772b5186Smrg   (exit $ac_status); } \
3659772b5186Smrg         && test -f conftest2.$ac_objext; then
3660772b5186Smrg      : OK
3661772b5186Smrg    else
3662772b5186Smrg      am_cv_prog_cc_c_o=no
3663772b5186Smrg      break
3664772b5186Smrg    fi
3665772b5186Smrg  done
3666772b5186Smrg  rm -f core conftest*
3667772b5186Smrg  unset am_i ;;
3668772b5186Smrgesac
36699fe995a9Smrgfi
3670772b5186Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3671772b5186Smrgprintf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3672772b5186Smrgif test "$am_cv_prog_cc_c_o" != yes; then
3673772b5186Smrg   # Losing compiler, so override with the script.
3674772b5186Smrg   # FIXME: It is wrong to rewrite CC.
3675772b5186Smrg   # But if we don't then we get into trouble of one sort or another.
3676772b5186Smrg   # A longer-term fix would be to have automake use am__CC in this case,
3677772b5186Smrg   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3678772b5186Smrg   CC="$am_aux_dir/compile $CC"
36799fe995a9Smrgfi
3680772b5186Smrgac_ext=c
3681772b5186Smrgac_cpp='$CPP $CPPFLAGS'
3682772b5186Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3683772b5186Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3684772b5186Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
36859fe995a9Smrg
36869fe995a9Smrg
3687772b5186Smrg
3688772b5186Smrgac_header= ac_cache=
3689772b5186Smrgfor ac_item in $ac_header_c_list
36909fe995a9Smrgdo
3691772b5186Smrg  if test $ac_cache; then
3692772b5186Smrg    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3693772b5186Smrg    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3694772b5186Smrg      printf "%s\n" "#define $ac_item 1" >> confdefs.h
3695772b5186Smrg    fi
3696772b5186Smrg    ac_header= ac_cache=
3697772b5186Smrg  elif test $ac_header; then
3698772b5186Smrg    ac_cache=$ac_item
3699772b5186Smrg  else
3700772b5186Smrg    ac_header=$ac_item
37019fe995a9Smrg  fi
37029fe995a9Smrgdone
37039fe995a9Smrg
37049fe995a9Smrg
3705772b5186Smrg
3706772b5186Smrg
3707772b5186Smrg
3708772b5186Smrg
3709772b5186Smrg
3710772b5186Smrg
3711772b5186Smrgif test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3712772b5186Smrgthen :
3713772b5186Smrg
3714772b5186Smrgprintf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3715772b5186Smrg
37169fe995a9Smrgfi
37179fe995a9Smrg
3718772b5186Smrg
3719772b5186Smrg
3720772b5186Smrg
3721772b5186Smrg
3722772b5186Smrg
3723772b5186Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3724772b5186Smrgprintf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3725772b5186Smrgif test ${ac_cv_safe_to_define___extensions__+y}
3726c048b52eSmrgthen :
3727c048b52eSmrg  printf %s "(cached) " >&6
3728772b5186Smrgelse case e in #(
3729772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3730772b5186Smrg/* end confdefs.h.  */
37319fe995a9Smrg
3732772b5186Smrg#         define __EXTENSIONS__ 1
3733772b5186Smrg          $ac_includes_default
3734772b5186Smrgint
3735772b5186Smrgmain (void)
3736772b5186Smrg{
3737772b5186Smrg
3738772b5186Smrg  ;
3739772b5186Smrg  return 0;
3740772b5186Smrg}
3741772b5186Smrg_ACEOF
3742772b5186Smrgif ac_fn_c_try_compile "$LINENO"
3743772b5186Smrgthen :
3744772b5186Smrg  ac_cv_safe_to_define___extensions__=yes
3745772b5186Smrgelse case e in #(
3746772b5186Smrg  e) ac_cv_safe_to_define___extensions__=no ;;
3747772b5186Smrgesac
37489fe995a9Smrgfi
3749772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3750772b5186Smrgesac
37519fe995a9Smrgfi
3752772b5186Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3753772b5186Smrgprintf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
37549fe995a9Smrg
3755772b5186Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3756772b5186Smrgprintf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3757772b5186Smrgif test ${ac_cv_should_define__xopen_source+y}
3758c048b52eSmrgthen :
3759c048b52eSmrg  printf %s "(cached) " >&6
3760772b5186Smrgelse case e in #(
3761772b5186Smrg  e) ac_cv_should_define__xopen_source=no
3762772b5186Smrg    if test $ac_cv_header_wchar_h = yes
3763772b5186Smrgthen :
3764772b5186Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765772b5186Smrg/* end confdefs.h.  */
37669fe995a9Smrg
3767772b5186Smrg          #include <wchar.h>
3768772b5186Smrg          mbstate_t x;
3769772b5186Smrgint
3770772b5186Smrgmain (void)
3771772b5186Smrg{
3772772b5186Smrg
3773772b5186Smrg  ;
3774772b5186Smrg  return 0;
3775772b5186Smrg}
3776772b5186Smrg_ACEOF
3777772b5186Smrgif ac_fn_c_try_compile "$LINENO"
3778772b5186Smrgthen :
3779772b5186Smrg
3780772b5186Smrgelse case e in #(
3781772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3782772b5186Smrg/* end confdefs.h.  */
3783772b5186Smrg
3784772b5186Smrg            #define _XOPEN_SOURCE 500
3785772b5186Smrg            #include <wchar.h>
3786772b5186Smrg            mbstate_t x;
3787772b5186Smrgint
3788772b5186Smrgmain (void)
3789772b5186Smrg{
3790772b5186Smrg
3791772b5186Smrg  ;
3792772b5186Smrg  return 0;
3793772b5186Smrg}
3794772b5186Smrg_ACEOF
3795772b5186Smrgif ac_fn_c_try_compile "$LINENO"
3796772b5186Smrgthen :
3797772b5186Smrg  ac_cv_should_define__xopen_source=yes
37989fe995a9Smrgfi
3799772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3800772b5186Smrgesac
38019fe995a9Smrgfi
3802772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3803772b5186Smrgfi ;;
3804772b5186Smrgesac
38059fe995a9Smrgfi
3806772b5186Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3807772b5186Smrgprintf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
38089fe995a9Smrg
3809772b5186Smrg  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
38109fe995a9Smrg
3811772b5186Smrg  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3812772b5186Smrg
3813772b5186Smrg  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3814772b5186Smrg
3815772b5186Smrg  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3816772b5186Smrg
3817772b5186Smrg  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
38189fe995a9Smrg
3819772b5186Smrg  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3820772b5186Smrg
3821772b5186Smrg  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3822772b5186Smrg
3823772b5186Smrg  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3824772b5186Smrg
3825772b5186Smrg  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3826772b5186Smrg
3827772b5186Smrg  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3828772b5186Smrg
3829772b5186Smrg  printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
3830772b5186Smrg
3831772b5186Smrg  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3832772b5186Smrg
3833772b5186Smrg  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3834772b5186Smrg
3835772b5186Smrg  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3836772b5186Smrg
3837772b5186Smrg  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3838772b5186Smrg
3839772b5186Smrg  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3840772b5186Smrg
3841772b5186Smrg  if test $ac_cv_header_minix_config_h = yes
3842772b5186Smrgthen :
3843772b5186Smrg  MINIX=yes
3844772b5186Smrg    printf "%s\n" "#define _MINIX 1" >>confdefs.h
3845772b5186Smrg
3846772b5186Smrg    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3847772b5186Smrg
3848772b5186Smrg    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3849772b5186Smrg
3850772b5186Smrgelse case e in #(
3851772b5186Smrg  e) MINIX= ;;
3852772b5186Smrgesac
38539fe995a9Smrgfi
3854772b5186Smrg  if test $ac_cv_safe_to_define___extensions__ = yes
3855772b5186Smrgthen :
3856772b5186Smrg  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3857772b5186Smrg
38589fe995a9Smrgfi
3859772b5186Smrg  if test $ac_cv_should_define__xopen_source = yes
3860772b5186Smrgthen :
3861772b5186Smrg  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3862772b5186Smrg
38639fe995a9Smrgfi
38649fe995a9Smrg
38659fe995a9Smrg
3866772b5186Smrg# Initialize Automake
3867772b5186Smrgam__api_version='1.16'
3868772b5186Smrg
3869772b5186Smrg
3870772b5186Smrg  # Find a good install program.  We prefer a C program (faster),
3871772b5186Smrg# so one script is as good as another.  But avoid the broken or
3872772b5186Smrg# incompatible versions:
3873772b5186Smrg# SysV /etc/install, /usr/sbin/install
3874772b5186Smrg# SunOS /usr/etc/install
3875772b5186Smrg# IRIX /sbin/install
3876772b5186Smrg# AIX /bin/install
3877772b5186Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
3878772b5186Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3879772b5186Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3880772b5186Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3881772b5186Smrg# OS/2's system install, which has a completely different semantic
3882772b5186Smrg# ./install, which can be erroneously created by make from ./install.sh.
3883772b5186Smrg# Reject install programs that cannot install multiple files.
3884772b5186Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3885772b5186Smrgprintf %s "checking for a BSD-compatible install... " >&6; }
3886772b5186Smrgif test -z "$INSTALL"; then
3887772b5186Smrgif test ${ac_cv_path_install+y}
3888c048b52eSmrgthen :
3889c048b52eSmrg  printf %s "(cached) " >&6
3890772b5186Smrgelse case e in #(
3891772b5186Smrg  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38929fe995a9Smrgfor as_dir in $PATH
38939fe995a9Smrgdo
38949fe995a9Smrg  IFS=$as_save_IFS
3895c048b52eSmrg  case $as_dir in #(((
3896c048b52eSmrg    '') as_dir=./ ;;
3897c048b52eSmrg    */) ;;
3898c048b52eSmrg    *) as_dir=$as_dir/ ;;
3899c048b52eSmrg  esac
3900772b5186Smrg    # Account for fact that we put trailing slashes in our PATH walk.
3901772b5186Smrgcase $as_dir in #((
3902772b5186Smrg  ./ | /[cC]/* | \
3903772b5186Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3904772b5186Smrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3905772b5186Smrg  /usr/ucb/* ) ;;
3906772b5186Smrg  *)
3907772b5186Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
3908772b5186Smrg    # Don't use installbsd from OSF since it installs stuff as root
3909772b5186Smrg    # by default.
3910772b5186Smrg    for ac_prog in ginstall scoinst install; do
3911772b5186Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
3912772b5186Smrg	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3913772b5186Smrg	  if test $ac_prog = install &&
3914772b5186Smrg	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3915772b5186Smrg	    # AIX install.  It has an incompatible calling convention.
3916772b5186Smrg	    :
3917772b5186Smrg	  elif test $ac_prog = install &&
3918772b5186Smrg	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3919772b5186Smrg	    # program-specific install script used by HP pwplus--don't use.
3920772b5186Smrg	    :
3921772b5186Smrg	  else
3922772b5186Smrg	    rm -rf conftest.one conftest.two conftest.dir
3923772b5186Smrg	    echo one > conftest.one
3924772b5186Smrg	    echo two > conftest.two
3925772b5186Smrg	    mkdir conftest.dir
3926772b5186Smrg	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3927772b5186Smrg	      test -s conftest.one && test -s conftest.two &&
3928772b5186Smrg	      test -s conftest.dir/conftest.one &&
3929772b5186Smrg	      test -s conftest.dir/conftest.two
3930772b5186Smrg	    then
3931772b5186Smrg	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3932772b5186Smrg	      break 3
3933772b5186Smrg	    fi
3934772b5186Smrg	  fi
3935772b5186Smrg	fi
3936772b5186Smrg      done
3937772b5186Smrg    done
3938772b5186Smrg    ;;
3939772b5186Smrgesac
3940772b5186Smrg
3941b62cc08cSmrg  done
39429fe995a9SmrgIFS=$as_save_IFS
39439fe995a9Smrg
3944772b5186Smrgrm -rf conftest.one conftest.two conftest.dir
3945772b5186Smrg ;;
3946772b5186Smrgesac
39479fe995a9Smrgfi
3948772b5186Smrg  if test ${ac_cv_path_install+y}; then
3949772b5186Smrg    INSTALL=$ac_cv_path_install
3950772b5186Smrg  else
3951772b5186Smrg    # As a last resort, use the slow shell script.  Don't cache a
3952772b5186Smrg    # value for INSTALL within a source directory, because that will
3953772b5186Smrg    # break other packages using the cache if that directory is
3954772b5186Smrg    # removed, or if the value is a relative name.
3955772b5186Smrg    INSTALL=$ac_install_sh
3956772b5186Smrg  fi
39579fe995a9Smrgfi
3958772b5186Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3959772b5186Smrgprintf "%s\n" "$INSTALL" >&6; }
3960772b5186Smrg
3961772b5186Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3962772b5186Smrg# It thinks the first close brace ends the variable substitution.
3963772b5186Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3964772b5186Smrg
3965772b5186Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3966772b5186Smrg
3967772b5186Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3968772b5186Smrg
3969772b5186Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3970772b5186Smrgprintf %s "checking whether build environment is sane... " >&6; }
3971772b5186Smrg# Reject unsafe characters in $srcdir or the absolute working directory
3972772b5186Smrg# name.  Accept space and tab only in the latter.
3973772b5186Smrgam_lf='
3974772b5186Smrg'
3975772b5186Smrgcase `pwd` in
3976772b5186Smrg  *[\\\"\#\$\&\'\`$am_lf]*)
3977772b5186Smrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3978772b5186Smrgesac
3979772b5186Smrgcase $srcdir in
3980772b5186Smrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3981772b5186Smrg    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3982772b5186Smrgesac
3983772b5186Smrg
3984772b5186Smrg# Do 'set' in a subshell so we don't clobber the current shell's
3985772b5186Smrg# arguments.  Must try -L first in case configure is actually a
3986772b5186Smrg# symlink; some systems play weird games with the mod time of symlinks
3987772b5186Smrg# (eg FreeBSD returns the mod time of the symlink's containing
3988772b5186Smrg# directory).
3989772b5186Smrgif (
3990772b5186Smrg   am_has_slept=no
3991772b5186Smrg   for am_try in 1 2; do
3992772b5186Smrg     echo "timestamp, slept: $am_has_slept" > conftest.file
3993772b5186Smrg     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3994772b5186Smrg     if test "$*" = "X"; then
3995772b5186Smrg	# -L didn't work.
3996772b5186Smrg	set X `ls -t "$srcdir/configure" conftest.file`
3997772b5186Smrg     fi
3998772b5186Smrg     if test "$*" != "X $srcdir/configure conftest.file" \
3999772b5186Smrg	&& test "$*" != "X conftest.file $srcdir/configure"; then
4000772b5186Smrg
4001772b5186Smrg	# If neither matched, then we have a broken ls.  This can happen
4002772b5186Smrg	# if, for instance, CONFIG_SHELL is bash and it inherits a
4003772b5186Smrg	# broken ls alias from the environment.  This has actually
4004772b5186Smrg	# happened.  Such a system could not be considered "sane".
4005772b5186Smrg	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4006772b5186Smrg  alias in your environment" "$LINENO" 5
4007772b5186Smrg     fi
4008772b5186Smrg     if test "$2" = conftest.file || test $am_try -eq 2; then
4009772b5186Smrg       break
4010772b5186Smrg     fi
4011772b5186Smrg     # Just in case.
4012772b5186Smrg     sleep 1
4013772b5186Smrg     am_has_slept=yes
4014772b5186Smrg   done
4015772b5186Smrg   test "$2" = conftest.file
4016772b5186Smrg   )
4017772b5186Smrgthen
4018772b5186Smrg   # Ok.
4019772b5186Smrg   :
40209fe995a9Smrgelse
4021772b5186Smrg   as_fn_error $? "newly created file is older than distributed files!
4022772b5186SmrgCheck your system clock" "$LINENO" 5
4023772b5186Smrgfi
4024772b5186Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4025772b5186Smrgprintf "%s\n" "yes" >&6; }
4026772b5186Smrg# If we didn't sleep, we still need to ensure time stamps of config.status and
4027772b5186Smrg# generated files are strictly newer.
4028772b5186Smrgam_sleep_pid=
4029772b5186Smrgif grep 'slept: no' conftest.file >/dev/null 2>&1; then
4030772b5186Smrg  ( sleep 1 ) &
4031772b5186Smrg  am_sleep_pid=$!
40329fe995a9Smrgfi
40339fe995a9Smrg
4034772b5186Smrgrm -f conftest.file
40359fe995a9Smrg
4036772b5186Smrgtest "$program_prefix" != NONE &&
4037772b5186Smrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4038772b5186Smrg# Use a double $ so make ignores it.
4039772b5186Smrgtest "$program_suffix" != NONE &&
4040772b5186Smrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4041772b5186Smrg# Double any \ or $.
4042772b5186Smrg# By default was 's,x,x', remove it if useless.
4043772b5186Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4044772b5186Smrgprogram_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
40459fe995a9Smrg
4046772b5186Smrg
4047772b5186Smrg  if test x"${MISSING+set}" != xset; then
4048772b5186Smrg  MISSING="\${SHELL} '$am_aux_dir/missing'"
4049772b5186Smrgfi
4050772b5186Smrg# Use eval to expand $SHELL
4051772b5186Smrgif eval "$MISSING --is-lightweight"; then
4052772b5186Smrg  am_missing_run="$MISSING "
4053772b5186Smrgelse
4054772b5186Smrg  am_missing_run=
4055772b5186Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4056772b5186Smrgprintf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4057c048b52eSmrgfi
4058c048b52eSmrg
4059772b5186Smrgif test x"${install_sh+set}" != xset; then
4060772b5186Smrg  case $am_aux_dir in
4061772b5186Smrg  *\ * | *\	*)
4062772b5186Smrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4063772b5186Smrg  *)
4064772b5186Smrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
4065772b5186Smrg  esac
4066c048b52eSmrgfi
4067772b5186Smrg
4068772b5186Smrg# Installed binaries are usually stripped using 'strip' when the user
4069772b5186Smrg# run "make install-strip".  However 'strip' might not be the right
4070772b5186Smrg# tool to use in cross-compilation environments, therefore Automake
4071772b5186Smrg# will honor the 'STRIP' environment variable to overrule this program.
4072772b5186Smrgif test "$cross_compiling" != no; then
4073c048b52eSmrg  if test -n "$ac_tool_prefix"; then
4074772b5186Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4075772b5186Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
4076c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4077c048b52eSmrgprintf %s "checking for $ac_word... " >&6; }
4078772b5186Smrgif test ${ac_cv_prog_STRIP+y}
4079c048b52eSmrgthen :
4080c048b52eSmrg  printf %s "(cached) " >&6
4081772b5186Smrgelse case e in #(
4082772b5186Smrg  e) if test -n "$STRIP"; then
4083772b5186Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4084c048b52eSmrgelse
4085c048b52eSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086c048b52eSmrgfor as_dir in $PATH
4087c048b52eSmrgdo
4088c048b52eSmrg  IFS=$as_save_IFS
4089c048b52eSmrg  case $as_dir in #(((
4090c048b52eSmrg    '') as_dir=./ ;;
4091c048b52eSmrg    */) ;;
4092c048b52eSmrg    *) as_dir=$as_dir/ ;;
4093c048b52eSmrg  esac
4094c048b52eSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4095c048b52eSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4096772b5186Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4097c048b52eSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4098c048b52eSmrg    break 2
4099c048b52eSmrg  fi
4100c048b52eSmrgdone
4101c048b52eSmrg  done
4102c048b52eSmrgIFS=$as_save_IFS
4103c048b52eSmrg
4104772b5186Smrgfi ;;
4105772b5186Smrgesac
4106c048b52eSmrgfi
4107772b5186SmrgSTRIP=$ac_cv_prog_STRIP
4108772b5186Smrgif test -n "$STRIP"; then
4109772b5186Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4110772b5186Smrgprintf "%s\n" "$STRIP" >&6; }
4111c048b52eSmrgelse
4112c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4113c048b52eSmrgprintf "%s\n" "no" >&6; }
4114c048b52eSmrgfi
4115c048b52eSmrg
4116c048b52eSmrg
4117c048b52eSmrgfi
4118772b5186Smrgif test -z "$ac_cv_prog_STRIP"; then
4119772b5186Smrg  ac_ct_STRIP=$STRIP
4120772b5186Smrg  # Extract the first word of "strip", so it can be a program name with args.
4121772b5186Smrgset dummy strip; ac_word=$2
4122c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4123c048b52eSmrgprintf %s "checking for $ac_word... " >&6; }
4124772b5186Smrgif test ${ac_cv_prog_ac_ct_STRIP+y}
4125c048b52eSmrgthen :
4126c048b52eSmrg  printf %s "(cached) " >&6
4127772b5186Smrgelse case e in #(
4128772b5186Smrg  e) if test -n "$ac_ct_STRIP"; then
4129772b5186Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4130c048b52eSmrgelse
4131c048b52eSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132c048b52eSmrgfor as_dir in $PATH
4133c048b52eSmrgdo
4134c048b52eSmrg  IFS=$as_save_IFS
4135c048b52eSmrg  case $as_dir in #(((
4136c048b52eSmrg    '') as_dir=./ ;;
4137c048b52eSmrg    */) ;;
4138c048b52eSmrg    *) as_dir=$as_dir/ ;;
4139c048b52eSmrg  esac
4140c048b52eSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4141c048b52eSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4142772b5186Smrg    ac_cv_prog_ac_ct_STRIP="strip"
4143c048b52eSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4144c048b52eSmrg    break 2
4145c048b52eSmrg  fi
4146c048b52eSmrgdone
4147c048b52eSmrg  done
4148c048b52eSmrgIFS=$as_save_IFS
4149c048b52eSmrg
4150772b5186Smrgfi ;;
4151772b5186Smrgesac
4152c048b52eSmrgfi
4153772b5186Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4154772b5186Smrgif test -n "$ac_ct_STRIP"; then
4155772b5186Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4156772b5186Smrgprintf "%s\n" "$ac_ct_STRIP" >&6; }
4157c048b52eSmrgelse
4158c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4159c048b52eSmrgprintf "%s\n" "no" >&6; }
4160c048b52eSmrgfi
4161c048b52eSmrg
4162772b5186Smrg  if test "x$ac_ct_STRIP" = x; then
4163772b5186Smrg    STRIP=":"
4164c048b52eSmrg  else
4165c048b52eSmrg    case $cross_compiling:$ac_tool_warned in
4166c048b52eSmrgyes:)
4167c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4168c048b52eSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
41699fe995a9Smrgac_tool_warned=yes ;;
41709fe995a9Smrgesac
4171772b5186Smrg    STRIP=$ac_ct_STRIP
41729fe995a9Smrg  fi
4173c048b52eSmrgelse
4174772b5186Smrg  STRIP="$ac_cv_prog_STRIP"
41759fe995a9Smrgfi
41769fe995a9Smrg
41779fe995a9Smrgfi
4178772b5186SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
41799fe995a9Smrg
41809fe995a9Smrg
4181772b5186Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4182772b5186Smrgprintf %s "checking for a race-free mkdir -p... " >&6; }
4183772b5186Smrgif test -z "$MKDIR_P"; then
4184772b5186Smrg  if test ${ac_cv_path_mkdir+y}
4185c048b52eSmrgthen :
4186772b5186Smrg  printf %s "(cached) " >&6
4187772b5186Smrgelse case e in #(
4188772b5186Smrg  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189772b5186Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
41909fe995a9Smrgdo
4191772b5186Smrg  IFS=$as_save_IFS
4192772b5186Smrg  case $as_dir in #(((
4193772b5186Smrg    '') as_dir=./ ;;
4194772b5186Smrg    */) ;;
4195772b5186Smrg    *) as_dir=$as_dir/ ;;
41969fe995a9Smrg  esac
4197772b5186Smrg    for ac_prog in mkdir gmkdir; do
4198772b5186Smrg	 for ac_exec_ext in '' $ac_executable_extensions; do
4199772b5186Smrg	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4200772b5186Smrg	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4201772b5186Smrg	     'mkdir ('*'coreutils) '* | \
4202772b5186Smrg	     *'BusyBox '* | \
4203772b5186Smrg	     'mkdir (fileutils) '4.1*)
4204772b5186Smrg	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4205772b5186Smrg	       break 3;;
4206772b5186Smrg	   esac
4207772b5186Smrg	 done
4208772b5186Smrg       done
4209772b5186Smrg  done
4210772b5186SmrgIFS=$as_save_IFS
4211772b5186Smrg ;;
4212b62cc08cSmrgesac
4213772b5186Smrgfi
4214772b5186Smrg
4215772b5186Smrg  test -d ./--version && rmdir ./--version
4216772b5186Smrg  if test ${ac_cv_path_mkdir+y}; then
4217772b5186Smrg    MKDIR_P="$ac_cv_path_mkdir -p"
4218b62cc08cSmrg  else
4219772b5186Smrg    # As a last resort, use plain mkdir -p,
4220772b5186Smrg    # in the hope it doesn't have the bugs of ancient mkdir.
4221772b5186Smrg    MKDIR_P='mkdir -p'
4222b62cc08cSmrg  fi
4223b62cc08cSmrgfi
4224772b5186Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4225772b5186Smrgprintf "%s\n" "$MKDIR_P" >&6; }
4226b62cc08cSmrg
4227772b5186Smrgfor ac_prog in gawk mawk nawk awk
4228772b5186Smrgdo
4229772b5186Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
4230772b5186Smrgset dummy $ac_prog; ac_word=$2
4231772b5186Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4232772b5186Smrgprintf %s "checking for $ac_word... " >&6; }
4233772b5186Smrgif test ${ac_cv_prog_AWK+y}
4234c048b52eSmrgthen :
4235c048b52eSmrg  printf %s "(cached) " >&6
4236772b5186Smrgelse case e in #(
4237772b5186Smrg  e) if test -n "$AWK"; then
4238772b5186Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4239772b5186Smrgelse
4240772b5186Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241772b5186Smrgfor as_dir in $PATH
4242772b5186Smrgdo
4243772b5186Smrg  IFS=$as_save_IFS
4244772b5186Smrg  case $as_dir in #(((
4245772b5186Smrg    '') as_dir=./ ;;
4246772b5186Smrg    */) ;;
4247772b5186Smrg    *) as_dir=$as_dir/ ;;
42489fe995a9Smrg  esac
4249772b5186Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4250772b5186Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4251772b5186Smrg    ac_cv_prog_AWK="$ac_prog"
4252772b5186Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4253772b5186Smrg    break 2
4254772b5186Smrg  fi
42559fe995a9Smrgdone
4256772b5186Smrg  done
4257772b5186SmrgIFS=$as_save_IFS
42589fe995a9Smrg
4259772b5186Smrgfi ;;
4260772b5186Smrgesac
42619fe995a9Smrgfi
4262772b5186SmrgAWK=$ac_cv_prog_AWK
4263772b5186Smrgif test -n "$AWK"; then
4264772b5186Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4265772b5186Smrgprintf "%s\n" "$AWK" >&6; }
4266772b5186Smrgelse
4267772b5186Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4268772b5186Smrgprintf "%s\n" "no" >&6; }
42699fe995a9Smrgfi
42709fe995a9Smrg
42719fe995a9Smrg
4272772b5186Smrg  test -n "$AWK" && break
4273772b5186Smrgdone
4274772b5186Smrg
4275772b5186Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4276772b5186Smrgprintf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4277772b5186Smrgset x ${MAKE-make}
4278772b5186Smrgac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4279772b5186Smrgif eval test \${ac_cv_prog_make_${ac_make}_set+y}
4280c048b52eSmrgthen :
4281772b5186Smrg  printf %s "(cached) " >&6
4282772b5186Smrgelse case e in #(
4283772b5186Smrg  e) cat >conftest.make <<\_ACEOF
4284772b5186SmrgSHELL = /bin/sh
4285772b5186Smrgall:
4286772b5186Smrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
4287772b5186Smrg_ACEOF
4288772b5186Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4289772b5186Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
4290772b5186Smrg  *@@@%%%=?*=@@@%%%*)
4291772b5186Smrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
4292772b5186Smrg  *)
4293772b5186Smrg    eval ac_cv_prog_make_${ac_make}_set=no;;
4294772b5186Smrgesac
4295772b5186Smrgrm -f conftest.make ;;
4296772b5186Smrgesac
42979fe995a9Smrgfi
4298772b5186Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4299772b5186Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4300772b5186Smrgprintf "%s\n" "yes" >&6; }
4301772b5186Smrg  SET_MAKE=
4302772b5186Smrgelse
4303772b5186Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4304772b5186Smrgprintf "%s\n" "no" >&6; }
4305772b5186Smrg  SET_MAKE="MAKE=${MAKE-make}"
43069fe995a9Smrgfi
4307c048b52eSmrg
4308772b5186Smrgrm -rf .tst 2>/dev/null
4309772b5186Smrgmkdir .tst 2>/dev/null
4310772b5186Smrgif test -d .tst; then
4311772b5186Smrg  am__leading_dot=.
4312b62cc08cSmrgelse
4313772b5186Smrg  am__leading_dot=_
4314b62cc08cSmrgfi
4315772b5186Smrgrmdir .tst 2>/dev/null
43169fe995a9Smrg
4317772b5186SmrgDEPDIR="${am__leading_dot}deps"
43189fe995a9Smrg
4319772b5186Smrgac_config_commands="$ac_config_commands depfiles"
43209fe995a9Smrg
4321772b5186Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4322772b5186Smrgprintf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4323772b5186Smrgcat > confinc.mk << 'END'
4324772b5186Smrgam__doit:
4325772b5186Smrg	@echo this is the am__doit target >confinc.out
4326772b5186Smrg.PHONY: am__doit
4327772b5186SmrgEND
4328772b5186Smrgam__include="#"
4329772b5186Smrgam__quote=
4330772b5186Smrg# BSD make does it like this.
4331772b5186Smrgecho '.include "confinc.mk" # ignored' > confmf.BSD
4332772b5186Smrg# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4333772b5186Smrgecho 'include confinc.mk # ignored' > confmf.GNU
4334772b5186Smrg_am_result=no
4335772b5186Smrgfor s in GNU BSD; do
4336772b5186Smrg  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4337772b5186Smrg   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4338772b5186Smrg   ac_status=$?
4339772b5186Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340772b5186Smrg   (exit $ac_status); }
4341772b5186Smrg  case $?:`cat confinc.out 2>/dev/null` in #(
4342772b5186Smrg  '0:this is the am__doit target') :
4343772b5186Smrg    case $s in #(
4344772b5186Smrg  BSD) :
4345772b5186Smrg    am__include='.include' am__quote='"' ;; #(
4346772b5186Smrg  *) :
4347772b5186Smrg    am__include='include' am__quote='' ;;
4348772b5186Smrgesac ;; #(
4349772b5186Smrg  *) :
4350772b5186Smrg     ;;
4351772b5186Smrgesac
4352772b5186Smrg  if test "$am__include" != "#"; then
4353772b5186Smrg    _am_result="yes ($s style)"
4354772b5186Smrg    break
43559fe995a9Smrg  fi
4356c048b52eSmrgdone
4357772b5186Smrgrm -f confinc.* confmf.*
4358772b5186Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4359772b5186Smrgprintf "%s\n" "${_am_result}" >&6; }
43609fe995a9Smrg
4361772b5186Smrg# Check whether --enable-dependency-tracking was given.
4362772b5186Smrgif test ${enable_dependency_tracking+y}
4363c048b52eSmrgthen :
4364772b5186Smrg  enableval=$enable_dependency_tracking;
4365c048b52eSmrgfi
4366772b5186Smrg
4367772b5186Smrgif test "x$enable_dependency_tracking" != xno; then
4368772b5186Smrg  am_depcomp="$ac_aux_dir/depcomp"
4369772b5186Smrg  AMDEPBACKSLASH='\'
4370772b5186Smrg  am__nodep='_no'
4371c048b52eSmrgfi
4372772b5186Smrg if test "x$enable_dependency_tracking" != xno; then
4373772b5186Smrg  AMDEP_TRUE=
4374772b5186Smrg  AMDEP_FALSE='#'
4375772b5186Smrgelse
4376772b5186Smrg  AMDEP_TRUE='#'
4377772b5186Smrg  AMDEP_FALSE=
4378c048b52eSmrgfi
43799fe995a9Smrg
4380772b5186Smrg
4381772b5186Smrg# Check whether --enable-silent-rules was given.
4382772b5186Smrgif test ${enable_silent_rules+y}
4383c048b52eSmrgthen :
4384772b5186Smrg  enableval=$enable_silent_rules;
4385c048b52eSmrgfi
4386772b5186Smrg
4387772b5186Smrgcase $enable_silent_rules in # (((
4388772b5186Smrg  yes) AM_DEFAULT_VERBOSITY=0;;
4389772b5186Smrg   no) AM_DEFAULT_VERBOSITY=1;;
4390772b5186Smrg    *) AM_DEFAULT_VERBOSITY=1;;
4391772b5186Smrgesac
4392772b5186Smrgam_make=${MAKE-make}
4393772b5186Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4394772b5186Smrgprintf %s "checking whether $am_make supports nested variables... " >&6; }
4395772b5186Smrgif test ${am_cv_make_support_nested_variables+y}
4396c048b52eSmrgthen :
4397c048b52eSmrg  printf %s "(cached) " >&6
4398772b5186Smrgelse case e in #(
4399772b5186Smrg  e) if printf "%s\n" 'TRUE=$(BAR$(V))
4400772b5186SmrgBAR0=false
4401772b5186SmrgBAR1=true
4402772b5186SmrgV=1
4403772b5186Smrgam__doit:
4404772b5186Smrg	@$(TRUE)
4405772b5186Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4406772b5186Smrg  am_cv_make_support_nested_variables=yes
4407772b5186Smrgelse
4408772b5186Smrg  am_cv_make_support_nested_variables=no
4409772b5186Smrgfi ;;
4410772b5186Smrgesac
44119fe995a9Smrgfi
4412772b5186Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4413772b5186Smrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4414772b5186Smrgif test $am_cv_make_support_nested_variables = yes; then
4415772b5186Smrg    AM_V='$(V)'
4416772b5186Smrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4417772b5186Smrgelse
4418772b5186Smrg  AM_V=$AM_DEFAULT_VERBOSITY
4419772b5186Smrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
44209fe995a9Smrgfi
4421772b5186SmrgAM_BACKSLASH='\'
44229fe995a9Smrg
4423772b5186Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
4424772b5186Smrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4425772b5186Smrg  # is not polluted with repeated "-I."
4426772b5186Smrg  am__isrc=' -I$(srcdir)'
4427772b5186Smrg  # test to see if srcdir already configured
4428772b5186Smrg  if test -f $srcdir/config.status; then
4429772b5186Smrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4430772b5186Smrg  fi
4431c048b52eSmrgfi
4432772b5186Smrg
4433772b5186Smrg# test whether we have cygpath
4434772b5186Smrgif test -z "$CYGPATH_W"; then
4435772b5186Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
4436772b5186Smrg    CYGPATH_W='cygpath -w'
4437772b5186Smrg  else
4438772b5186Smrg    CYGPATH_W=echo
4439772b5186Smrg  fi
4440b62cc08cSmrgfi
44419fe995a9Smrg
44429fe995a9Smrg
4443772b5186Smrg# Define the identity of the package.
4444772b5186Smrg PACKAGE='iceauth'
4445772b5186Smrg VERSION='1.0.10'
4446772b5186Smrg
4447772b5186Smrg
4448772b5186Smrgprintf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4449772b5186Smrg
4450772b5186Smrg
4451772b5186Smrgprintf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4452772b5186Smrg
4453772b5186Smrg# Some tools Automake needs.
4454772b5186Smrg
4455772b5186SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4456772b5186Smrg
4457772b5186Smrg
4458772b5186SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4459772b5186Smrg
4460772b5186Smrg
4461772b5186SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4462772b5186Smrg
4463772b5186Smrg
4464772b5186SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4465772b5186Smrg
4466772b5186Smrg
4467772b5186SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4468772b5186Smrg
4469772b5186Smrg# For better backward compatibility.  To be removed once Automake 1.9.x
4470772b5186Smrg# dies out for good.  For more background, see:
4471772b5186Smrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4472772b5186Smrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4473772b5186Smrgmkdir_p='$(MKDIR_P)'
4474772b5186Smrg
4475772b5186Smrg# We need awk for the "check" target (and possibly the TAP driver).  The
4476772b5186Smrg# system "awk" is bad on some platforms.
4477772b5186Smrg# Always define AMTAR for backward compatibility.  Yes, it's still used
4478772b5186Smrg# in the wild :-(  We should find a proper way to deprecate it ...
4479772b5186SmrgAMTAR='$${TAR-tar}'
4480772b5186Smrg
4481772b5186Smrg
4482772b5186Smrg# We'll loop over all known methods to create a tar archive until one works.
4483772b5186Smrg_am_tools='gnutar  pax cpio none'
4484772b5186Smrg
4485772b5186Smrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4486c048b52eSmrg
44879d794632Smrg
44889d794632Smrg
44899d794632Smrg
44909d794632Smrg
44919fe995a9Smrgdepcc="$CC"   am_compiler_list=
44929fe995a9Smrg
4493c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4494c048b52eSmrgprintf %s "checking dependency style of $depcc... " >&6; }
4495c048b52eSmrgif test ${am_cv_CC_dependencies_compiler_type+y}
4496c048b52eSmrgthen :
4497c048b52eSmrg  printf %s "(cached) " >&6
4498772b5186Smrgelse case e in #(
4499772b5186Smrg  e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
45009fe995a9Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
45019fe995a9Smrg  # making bogus files that we don't know about and never remove.  For
45029fe995a9Smrg  # instance it was reported that on HP-UX the gcc test will end up
45039d794632Smrg  # making a dummy file named 'D' -- because '-MD' means "put the output
45049d794632Smrg  # in D".
45059d794632Smrg  rm -rf conftest.dir
45069fe995a9Smrg  mkdir conftest.dir
45079fe995a9Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
45089fe995a9Smrg  # using a relative directory.
45099fe995a9Smrg  cp "$am_depcomp" conftest.dir
45109fe995a9Smrg  cd conftest.dir
45119fe995a9Smrg  # We will build objects and dependencies in a subdirectory because
45129fe995a9Smrg  # it helps to detect inapplicable dependency modes.  For instance
45139fe995a9Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
45149fe995a9Smrg  # side effect of compilation, but ICC will put the dependencies in
45159fe995a9Smrg  # the current directory while Tru64 will put them in the object
45169fe995a9Smrg  # directory.
45179fe995a9Smrg  mkdir sub
45189fe995a9Smrg
45199fe995a9Smrg  am_cv_CC_dependencies_compiler_type=none
45209fe995a9Smrg  if test "$am_compiler_list" = ""; then
45219fe995a9Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
45229fe995a9Smrg  fi
4523b62cc08cSmrg  am__universal=false
4524b62cc08cSmrg  case " $depcc " in #(
4525b62cc08cSmrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4526b62cc08cSmrg     esac
4527b62cc08cSmrg
45289fe995a9Smrg  for depmode in $am_compiler_list; do
45299fe995a9Smrg    # Setup a source with many dependencies, because some compilers
45309fe995a9Smrg    # like to wrap large dependency lists on column 80 (with \), and
45319fe995a9Smrg    # we should not choose a depcomp mode which is confused by this.
45329fe995a9Smrg    #
45339fe995a9Smrg    # We need to recreate these files for each test, as the compiler may
45349fe995a9Smrg    # overwrite some of them when testing with obscure command lines.
45359fe995a9Smrg    # This happens at least with the AIX C compiler.
45369fe995a9Smrg    : > sub/conftest.c
45379fe995a9Smrg    for i in 1 2 3 4 5 6; do
45389fe995a9Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
45399d794632Smrg      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
45409d794632Smrg      # Solaris 10 /bin/sh.
45419d794632Smrg      echo '/* dummy */' > sub/conftst$i.h
45429fe995a9Smrg    done
45439fe995a9Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
45449fe995a9Smrg
45459d794632Smrg    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4546b62cc08cSmrg    # mode.  It turns out that the SunPro C++ compiler does not properly
45479d794632Smrg    # handle '-M -o', and we need to detect this.  Also, some Intel
45489d794632Smrg    # versions had trouble with output in subdirs.
4549b62cc08cSmrg    am__obj=sub/conftest.${OBJEXT-o}
4550b62cc08cSmrg    am__minus_obj="-o $am__obj"
45519fe995a9Smrg    case $depmode in
4552b62cc08cSmrg    gcc)
4553b62cc08cSmrg      # This depmode causes a compiler race in universal mode.
4554b62cc08cSmrg      test "$am__universal" = false || continue
4555b62cc08cSmrg      ;;
45569fe995a9Smrg    nosideeffect)
45579d794632Smrg      # After this tag, mechanisms are not by side-effect, so they'll
45589d794632Smrg      # only be used when explicitly requested.
45599fe995a9Smrg      if test "x$enable_dependency_tracking" = xyes; then
45609fe995a9Smrg	continue
45619fe995a9Smrg      else
45629fe995a9Smrg	break
45639fe995a9Smrg      fi
45649fe995a9Smrg      ;;
45659d794632Smrg    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
45669d794632Smrg      # This compiler won't grok '-c -o', but also, the minuso test has
4567b62cc08cSmrg      # not run yet.  These depmodes are late enough in the game, and
4568b62cc08cSmrg      # so weak that their functioning should not be impacted.
4569b62cc08cSmrg      am__obj=conftest.${OBJEXT-o}
4570b62cc08cSmrg      am__minus_obj=
4571b62cc08cSmrg      ;;
45729fe995a9Smrg    none) break ;;
45739fe995a9Smrg    esac
45749fe995a9Smrg    if depmode=$depmode \
4575c048b52eSmrg       source=sub/conftest.c object=$am__obj \
4576c048b52eSmrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4577c048b52eSmrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4578c048b52eSmrg         >/dev/null 2>conftest.err &&
4579c048b52eSmrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4580c048b52eSmrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4581c048b52eSmrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4582c048b52eSmrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4583c048b52eSmrg      # icc doesn't choke on unknown options, it will just issue warnings
4584c048b52eSmrg      # or remarks (even with -Werror).  So we grep stderr for any message
4585c048b52eSmrg      # that says an option was ignored or not supported.
4586c048b52eSmrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
4587c048b52eSmrg      #   icc: Command line warning: ignoring option '-M'; no argument required
4588c048b52eSmrg      # The diagnosis changed in icc 8.0:
4589c048b52eSmrg      #   icc: Command line remark: option '-MP' not supported
4590c048b52eSmrg      if (grep 'ignoring option' conftest.err ||
4591c048b52eSmrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4592c048b52eSmrg        am_cv_CC_dependencies_compiler_type=$depmode
4593c048b52eSmrg        break
4594c048b52eSmrg      fi
4595b62cc08cSmrg    fi
4596b62cc08cSmrg  done
45979fe995a9Smrg
4598c048b52eSmrg  cd ..
4599c048b52eSmrg  rm -rf conftest.dir
4600b62cc08cSmrgelse
4601c048b52eSmrg  am_cv_CC_dependencies_compiler_type=none
4602b62cc08cSmrgfi
4603772b5186Smrg ;;
4604772b5186Smrgesac
46059fe995a9Smrgfi
4606c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4607c048b52eSmrgprintf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4608c048b52eSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4609b62cc08cSmrg
4610c048b52eSmrg if
4611c048b52eSmrg  test "x$enable_dependency_tracking" != xno \
4612c048b52eSmrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4613c048b52eSmrg  am__fastdepCC_TRUE=
4614c048b52eSmrg  am__fastdepCC_FALSE='#'
4615b62cc08cSmrgelse
4616c048b52eSmrg  am__fastdepCC_TRUE='#'
4617c048b52eSmrg  am__fastdepCC_FALSE=
46189fe995a9Smrgfi
46199fe995a9Smrg
46209fe995a9Smrg
4621772b5186Smrg# Variables for tags utilities; see am/tags.am
4622772b5186Smrgif test -z "$CTAGS"; then
4623772b5186Smrg  CTAGS=ctags
4624772b5186Smrgfi
4625772b5186Smrg
4626772b5186Smrgif test -z "$ETAGS"; then
4627772b5186Smrg  ETAGS=etags
4628772b5186Smrgfi
4629772b5186Smrg
4630772b5186Smrgif test -z "$CSCOPE"; then
4631772b5186Smrg  CSCOPE=cscope
4632772b5186Smrgfi
4633772b5186Smrg
4634772b5186Smrg
4635772b5186Smrg
4636772b5186Smrg# POSIX will say in a future version that running "rm -f" with no argument
4637772b5186Smrg# is OK; and we want to be able to make that assumption in our Makefile
4638772b5186Smrg# recipes.  So use an aggressive probe to check that the usage we want is
4639772b5186Smrg# actually supported "in the wild" to an acceptable degree.
4640772b5186Smrg# See automake bug#10828.
4641772b5186Smrg# To make any issue more visible, cause the running configure to be aborted
4642772b5186Smrg# by default if the 'rm' program in use doesn't match our expectations; the
4643772b5186Smrg# user can still override this though.
4644772b5186Smrgif rm -f && rm -fr && rm -rf; then : OK; else
4645772b5186Smrg  cat >&2 <<'END'
4646772b5186SmrgOops!
4647772b5186Smrg
4648772b5186SmrgYour 'rm' program seems unable to run without file operands specified
4649772b5186Smrgon the command line, even when the '-f' option is present.  This is contrary
4650772b5186Smrgto the behaviour of most rm programs out there, and not conforming with
4651772b5186Smrgthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4652772b5186Smrg
4653772b5186SmrgPlease tell bug-automake@gnu.org about your system, including the value
4654772b5186Smrgof your $PATH and any error possibly output before this message.  This
4655772b5186Smrgcan help us improve future automake versions.
4656772b5186Smrg
4657772b5186SmrgEND
4658772b5186Smrg  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4659772b5186Smrg    echo 'Configuration will proceed anyway, since you have set the' >&2
4660772b5186Smrg    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4661772b5186Smrg    echo >&2
4662772b5186Smrg  else
4663772b5186Smrg    cat >&2 <<'END'
4664772b5186SmrgAborting the configuration process, to ensure you take notice of the issue.
4665772b5186Smrg
4666772b5186SmrgYou can download and install GNU coreutils to get an 'rm' implementation
4667772b5186Smrgthat behaves properly: <https://www.gnu.org/software/coreutils/>.
4668772b5186Smrg
4669772b5186SmrgIf you want to complete the configuration process using your problematic
4670772b5186Smrg'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4671772b5186Smrgto "yes", and re-run configure.
4672772b5186Smrg
4673772b5186SmrgEND
4674772b5186Smrg    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4675772b5186Smrg  fi
4676772b5186Smrgfi
4677772b5186Smrg
4678772b5186Smrg
4679772b5186Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4680772b5186Smrg
4681772b5186Smrg
4682772b5186Smrg
4683772b5186Smrg
4684772b5186Smrg
4685772b5186Smrg
4686772b5186Smrg
4687772b5186Smrg
4688772b5186Smrg
46899fe995a9Smrg
4690c048b52eSmrg
4691c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4692c048b52eSmrgprintf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4693c048b52eSmrgif test ${ac_cv_c_undeclared_builtin_options+y}
4694c048b52eSmrgthen :
4695c048b52eSmrg  printf %s "(cached) " >&6
4696772b5186Smrgelse case e in #(
4697772b5186Smrg  e) ac_save_CFLAGS=$CFLAGS
4698c048b52eSmrg   ac_cv_c_undeclared_builtin_options='cannot detect'
4699c048b52eSmrg   for ac_arg in '' -fno-builtin; do
4700c048b52eSmrg     CFLAGS="$ac_save_CFLAGS $ac_arg"
4701c048b52eSmrg     # This test program should *not* compile successfully.
4702c048b52eSmrg     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4703b62cc08cSmrg/* end confdefs.h.  */
4704b62cc08cSmrg
4705b62cc08cSmrgint
4706c048b52eSmrgmain (void)
4707b62cc08cSmrg{
4708c048b52eSmrg(void) strchr;
4709b62cc08cSmrg  ;
4710b62cc08cSmrg  return 0;
4711b62cc08cSmrg}
4712b62cc08cSmrg_ACEOF
4713c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
4714c048b52eSmrgthen :
4715b62cc08cSmrg
4716772b5186Smrgelse case e in #(
4717772b5186Smrg  e) # This test program should compile successfully.
4718c048b52eSmrg        # No library function is consistently available on
4719c048b52eSmrg        # freestanding implementations, so test against a dummy
4720c048b52eSmrg        # declaration.  Include always-available headers on the
4721c048b52eSmrg        # off chance that they somehow elicit warnings.
4722c048b52eSmrg        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47239fe995a9Smrg/* end confdefs.h.  */
4724c048b52eSmrg#include <float.h>
4725c048b52eSmrg#include <limits.h>
4726c048b52eSmrg#include <stdarg.h>
4727c048b52eSmrg#include <stddef.h>
4728c048b52eSmrgextern void ac_decl (int, char *);
47299fe995a9Smrg
47309fe995a9Smrgint
4731c048b52eSmrgmain (void)
47329fe995a9Smrg{
4733c048b52eSmrg(void) ac_decl (0, (char *) 0);
4734c048b52eSmrg  (void) ac_decl;
4735c048b52eSmrg
4736c048b52eSmrg  ;
47379fe995a9Smrg  return 0;
47389fe995a9Smrg}
47399fe995a9Smrg_ACEOF
4740c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
4741c048b52eSmrgthen :
4742c048b52eSmrg  if test x"$ac_arg" = x
4743c048b52eSmrgthen :
4744c048b52eSmrg  ac_cv_c_undeclared_builtin_options='none needed'
4745772b5186Smrgelse case e in #(
4746772b5186Smrg  e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
4747772b5186Smrgesac
4748b62cc08cSmrgfi
4749c048b52eSmrg          break
47509fe995a9Smrgfi
4751772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4752772b5186Smrgesac
4753b62cc08cSmrgfi
4754c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4755c048b52eSmrg    done
4756c048b52eSmrg    CFLAGS=$ac_save_CFLAGS
4757772b5186Smrg   ;;
4758772b5186Smrgesac
4759c048b52eSmrgfi
4760c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4761c048b52eSmrgprintf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4762c048b52eSmrg  case $ac_cv_c_undeclared_builtin_options in #(
4763c048b52eSmrg  'cannot detect') :
4764772b5186Smrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4765772b5186Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4766c048b52eSmrgas_fn_error $? "cannot make $CC report undeclared builtins
4767772b5186SmrgSee 'config.log' for more details" "$LINENO" 5; } ;; #(
4768c048b52eSmrg  'none needed') :
4769c048b52eSmrg    ac_c_undeclared_builtin_options='' ;; #(
4770c048b52eSmrg  *) :
4771c048b52eSmrg    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4772c048b52eSmrgesac
4773c048b52eSmrg
47749fe995a9Smrg
47759fe995a9Smrg
477690b6713cSmrg
477790b6713cSmrg
4778c048b52eSmrgac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4779c048b52eSmrgif test "x$ac_cv_have_decl___clang__" = xyes
4780c048b52eSmrgthen :
47819d794632Smrg  CLANGCC="yes"
4782772b5186Smrgelse case e in #(
4783772b5186Smrg  e) CLANGCC="no" ;;
4784772b5186Smrgesac
47859d794632Smrgfi
4786c048b52eSmrgac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4787c048b52eSmrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4788c048b52eSmrgthen :
47899d794632Smrg  INTELCC="yes"
4790772b5186Smrgelse case e in #(
4791772b5186Smrg  e) INTELCC="no" ;;
4792772b5186Smrgesac
47939d794632Smrgfi
4794c048b52eSmrgac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4795c048b52eSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4796c048b52eSmrgthen :
47979d794632Smrg  SUNCC="yes"
4798772b5186Smrgelse case e in #(
4799772b5186Smrg  e) SUNCC="no" ;;
4800772b5186Smrgesac
48019d794632Smrgfi
48029d794632Smrg
48039d794632Smrg
480490b6713cSmrg
480590b6713cSmrg
48066fbef84aSmrg
48076fbef84aSmrg
48086fbef84aSmrg
48096fbef84aSmrg
48109fe995a9Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
48119fe995a9Smrg	if test -n "$ac_tool_prefix"; then
48129fe995a9Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
48139fe995a9Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4814c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4815c048b52eSmrgprintf %s "checking for $ac_word... " >&6; }
4816c048b52eSmrgif test ${ac_cv_path_PKG_CONFIG+y}
4817c048b52eSmrgthen :
4818c048b52eSmrg  printf %s "(cached) " >&6
4819772b5186Smrgelse case e in #(
4820772b5186Smrg  e) case $PKG_CONFIG in
48219fe995a9Smrg  [\\/]* | ?:[\\/]*)
48229fe995a9Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
48239fe995a9Smrg  ;;
48249fe995a9Smrg  *)
48259fe995a9Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48269fe995a9Smrgfor as_dir in $PATH
48279fe995a9Smrgdo
48289fe995a9Smrg  IFS=$as_save_IFS
4829c048b52eSmrg  case $as_dir in #(((
4830c048b52eSmrg    '') as_dir=./ ;;
4831c048b52eSmrg    */) ;;
4832c048b52eSmrg    *) as_dir=$as_dir/ ;;
4833c048b52eSmrg  esac
4834b62cc08cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4835c048b52eSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4836c048b52eSmrg    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4837c048b52eSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
48389fe995a9Smrg    break 2
48399fe995a9Smrg  fi
48409fe995a9Smrgdone
4841b62cc08cSmrg  done
48429fe995a9SmrgIFS=$as_save_IFS
48439fe995a9Smrg
48449fe995a9Smrg  ;;
4845772b5186Smrgesac ;;
48469fe995a9Smrgesac
48479fe995a9Smrgfi
48489fe995a9SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
48499fe995a9Smrgif test -n "$PKG_CONFIG"; then
4850c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4851c048b52eSmrgprintf "%s\n" "$PKG_CONFIG" >&6; }
48529fe995a9Smrgelse
4853c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4854c048b52eSmrgprintf "%s\n" "no" >&6; }
48559fe995a9Smrgfi
48569fe995a9Smrg
48579fe995a9Smrg
48589fe995a9Smrgfi
48599fe995a9Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
48609fe995a9Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
48619fe995a9Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
48629fe995a9Smrgset dummy pkg-config; ac_word=$2
4863c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4864c048b52eSmrgprintf %s "checking for $ac_word... " >&6; }
4865c048b52eSmrgif test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4866c048b52eSmrgthen :
4867c048b52eSmrg  printf %s "(cached) " >&6
4868772b5186Smrgelse case e in #(
4869772b5186Smrg  e) case $ac_pt_PKG_CONFIG in
48709fe995a9Smrg  [\\/]* | ?:[\\/]*)
48719fe995a9Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
48729fe995a9Smrg  ;;
48739fe995a9Smrg  *)
48749fe995a9Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48759fe995a9Smrgfor as_dir in $PATH
48769fe995a9Smrgdo
48779fe995a9Smrg  IFS=$as_save_IFS
4878c048b52eSmrg  case $as_dir in #(((
4879c048b52eSmrg    '') as_dir=./ ;;
4880c048b52eSmrg    */) ;;
4881c048b52eSmrg    *) as_dir=$as_dir/ ;;
4882c048b52eSmrg  esac
4883b62cc08cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4884c048b52eSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4885c048b52eSmrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4886c048b52eSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
48879fe995a9Smrg    break 2
48889fe995a9Smrg  fi
48899fe995a9Smrgdone
4890b62cc08cSmrg  done
48919fe995a9SmrgIFS=$as_save_IFS
48929fe995a9Smrg
48939fe995a9Smrg  ;;
4894772b5186Smrgesac ;;
48959fe995a9Smrgesac
48969fe995a9Smrgfi
48979fe995a9Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
48989fe995a9Smrgif test -n "$ac_pt_PKG_CONFIG"; then
4899c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4900c048b52eSmrgprintf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
49019fe995a9Smrgelse
4902c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4903c048b52eSmrgprintf "%s\n" "no" >&6; }
49049fe995a9Smrgfi
49059fe995a9Smrg
49069fe995a9Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
49079fe995a9Smrg    PKG_CONFIG=""
49089fe995a9Smrg  else
49099fe995a9Smrg    case $cross_compiling:$ac_tool_warned in
49109fe995a9Smrgyes:)
4911c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4912c048b52eSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
49139fe995a9Smrgac_tool_warned=yes ;;
49149fe995a9Smrgesac
49159fe995a9Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
49169fe995a9Smrg  fi
49179fe995a9Smrgelse
49189fe995a9Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
49199fe995a9Smrgfi
49209fe995a9Smrg
49219fe995a9Smrgfi
49229fe995a9Smrgif test -n "$PKG_CONFIG"; then
49239fe995a9Smrg	_pkg_min_version=0.9.0
4924c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4925c048b52eSmrgprintf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
49269fe995a9Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4927c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4928c048b52eSmrgprintf "%s\n" "yes" >&6; }
49299fe995a9Smrg	else
4930c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4931c048b52eSmrgprintf "%s\n" "no" >&6; }
4932b62cc08cSmrg		PKG_CONFIG=""
4933b62cc08cSmrg	fi
4934b62cc08cSmrgfi
49359fe995a9Smrg
4936c048b52eSmrg
4937c048b52eSmrg  # Make sure we can run config.sub.
4938c048b52eSmrg$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4939c048b52eSmrg  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4940c048b52eSmrg
4941c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4942c048b52eSmrgprintf %s "checking build system type... " >&6; }
4943c048b52eSmrgif test ${ac_cv_build+y}
4944c048b52eSmrgthen :
4945c048b52eSmrg  printf %s "(cached) " >&6
4946772b5186Smrgelse case e in #(
4947772b5186Smrg  e) ac_build_alias=$build_alias
49489fe995a9Smrgtest "x$ac_build_alias" = x &&
4949c048b52eSmrg  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
49509fe995a9Smrgtest "x$ac_build_alias" = x &&
4951b62cc08cSmrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4952c048b52eSmrgac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4953c048b52eSmrg  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4954772b5186Smrg ;;
4955772b5186Smrgesac
49569fe995a9Smrgfi
4957c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4958c048b52eSmrgprintf "%s\n" "$ac_cv_build" >&6; }
49599fe995a9Smrgcase $ac_cv_build in
49609fe995a9Smrg*-*-*) ;;
4961b62cc08cSmrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
49629fe995a9Smrgesac
49639fe995a9Smrgbuild=$ac_cv_build
49649fe995a9Smrgac_save_IFS=$IFS; IFS='-'
49659fe995a9Smrgset x $ac_cv_build
49669fe995a9Smrgshift
49679fe995a9Smrgbuild_cpu=$1
49689fe995a9Smrgbuild_vendor=$2
49699fe995a9Smrgshift; shift
49709fe995a9Smrg# Remember, the first character of IFS is used to create $*,
49719fe995a9Smrg# except with old shells:
49729fe995a9Smrgbuild_os=$*
49739fe995a9SmrgIFS=$ac_save_IFS
49749fe995a9Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
49759fe995a9Smrg
49769fe995a9Smrg
4977c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4978c048b52eSmrgprintf %s "checking host system type... " >&6; }
4979c048b52eSmrgif test ${ac_cv_host+y}
4980c048b52eSmrgthen :
4981c048b52eSmrg  printf %s "(cached) " >&6
4982772b5186Smrgelse case e in #(
4983772b5186Smrg  e) if test "x$host_alias" = x; then
49849fe995a9Smrg  ac_cv_host=$ac_cv_build
49859fe995a9Smrgelse
4986c048b52eSmrg  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4987c048b52eSmrg    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
49889fe995a9Smrgfi
4989772b5186Smrg ;;
4990772b5186Smrgesac
49919fe995a9Smrgfi
4992c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4993c048b52eSmrgprintf "%s\n" "$ac_cv_host" >&6; }
49949fe995a9Smrgcase $ac_cv_host in
49959fe995a9Smrg*-*-*) ;;
4996b62cc08cSmrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
49979fe995a9Smrgesac
49989fe995a9Smrghost=$ac_cv_host
49999fe995a9Smrgac_save_IFS=$IFS; IFS='-'
50009fe995a9Smrgset x $ac_cv_host
50019fe995a9Smrgshift
50029fe995a9Smrghost_cpu=$1
50039fe995a9Smrghost_vendor=$2
50049fe995a9Smrgshift; shift
50059fe995a9Smrg# Remember, the first character of IFS is used to create $*,
50069fe995a9Smrg# except with old shells:
50079fe995a9Smrghost_os=$*
50089fe995a9SmrgIFS=$ac_save_IFS
50099fe995a9Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
50109fe995a9Smrg
50119fe995a9Smrg
5012c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5013c048b52eSmrgprintf %s "checking for a sed that does not truncate output... " >&6; }
5014c048b52eSmrgif test ${ac_cv_path_SED+y}
5015c048b52eSmrgthen :
5016c048b52eSmrg  printf %s "(cached) " >&6
5017772b5186Smrgelse case e in #(
5018772b5186Smrg  e)           ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5019b62cc08cSmrg     for ac_i in 1 2 3 4 5 6 7; do
5020b62cc08cSmrg       ac_script="$ac_script$as_nl$ac_script"
5021b62cc08cSmrg     done
5022b62cc08cSmrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5023b62cc08cSmrg     { ac_script=; unset ac_script;}
5024b62cc08cSmrg     if test -z "$SED"; then
5025b62cc08cSmrg  ac_path_SED_found=false
5026b62cc08cSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
5027b62cc08cSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028b62cc08cSmrgfor as_dir in $PATH
5029b62cc08cSmrgdo
5030b62cc08cSmrg  IFS=$as_save_IFS
5031c048b52eSmrg  case $as_dir in #(((
5032c048b52eSmrg    '') as_dir=./ ;;
5033c048b52eSmrg    */) ;;
5034c048b52eSmrg    *) as_dir=$as_dir/ ;;
5035c048b52eSmrg  esac
5036c048b52eSmrg    for ac_prog in sed gsed
5037c048b52eSmrg   do
5038b62cc08cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
5039c048b52eSmrg      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5040e8ac26b0Smrg      as_fn_executable_p "$ac_path_SED" || continue
5041b62cc08cSmrg# Check for GNU ac_path_SED and select it if it is found.
5042b62cc08cSmrg  # Check for GNU $ac_path_SED
5043772b5186Smrgcase `"$ac_path_SED" --version 2>&1` in #(
5044b62cc08cSmrg*GNU*)
5045b62cc08cSmrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5046772b5186Smrg#(
5047b62cc08cSmrg*)
5048b62cc08cSmrg  ac_count=0
5049c048b52eSmrg  printf %s 0123456789 >"conftest.in"
5050b62cc08cSmrg  while :
5051b62cc08cSmrg  do
5052b62cc08cSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
5053b62cc08cSmrg    mv "conftest.tmp" "conftest.in"
5054b62cc08cSmrg    cp "conftest.in" "conftest.nl"
5055c048b52eSmrg    printf "%s\n" '' >> "conftest.nl"
5056b62cc08cSmrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5057b62cc08cSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5058b62cc08cSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
5059b62cc08cSmrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
5060b62cc08cSmrg      # Best one so far, save it but keep looking for a better one
5061b62cc08cSmrg      ac_cv_path_SED="$ac_path_SED"
5062b62cc08cSmrg      ac_path_SED_max=$ac_count
5063b62cc08cSmrg    fi
5064b62cc08cSmrg    # 10*(2^10) chars as input seems more than enough
5065b62cc08cSmrg    test $ac_count -gt 10 && break
5066b62cc08cSmrg  done
5067b62cc08cSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5068b62cc08cSmrgesac
5069b62cc08cSmrg
5070b62cc08cSmrg      $ac_path_SED_found && break 3
5071b62cc08cSmrg    done
5072b62cc08cSmrg  done
5073b62cc08cSmrg  done
5074b62cc08cSmrgIFS=$as_save_IFS
5075b62cc08cSmrg  if test -z "$ac_cv_path_SED"; then
5076b62cc08cSmrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5077b62cc08cSmrg  fi
5078b62cc08cSmrgelse
5079b62cc08cSmrg  ac_cv_path_SED=$SED
5080b62cc08cSmrgfi
5081772b5186Smrg ;;
5082772b5186Smrgesac
5083b62cc08cSmrgfi
5084c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5085c048b52eSmrgprintf "%s\n" "$ac_cv_path_SED" >&6; }
5086b62cc08cSmrg SED="$ac_cv_path_SED"
5087b62cc08cSmrg  rm -f conftest.sed
5088b62cc08cSmrg
5089b62cc08cSmrg
5090b62cc08cSmrg
5091b62cc08cSmrg
5092b62cc08cSmrg
50939d794632Smrg
50949d794632Smrg# Check whether --enable-selective-werror was given.
5095c048b52eSmrgif test ${enable_selective_werror+y}
5096c048b52eSmrgthen :
50979d794632Smrg  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5098772b5186Smrgelse case e in #(
5099772b5186Smrg  e) SELECTIVE_WERROR=yes ;;
5100772b5186Smrgesac
5101b62cc08cSmrgfi
5102b62cc08cSmrg
51039d794632Smrg
51049d794632Smrg
51059d794632Smrg
51069d794632Smrg
51079d794632Smrg# -v is too short to test reliably with XORG_TESTSET_CFLAG
51089d794632Smrgif test "x$SUNCC" = "xyes"; then
51099d794632Smrg    BASE_CFLAGS="-v"
51109d794632Smrgelse
51119d794632Smrg    BASE_CFLAGS=""
5112b62cc08cSmrgfi
5113b62cc08cSmrg
51149d794632Smrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS
5115b62cc08cSmrg
5116b62cc08cSmrg
5117b62cc08cSmrg
5118b62cc08cSmrg
5119b62cc08cSmrg
5120b62cc08cSmrg
5121b62cc08cSmrg
51229d794632Smrg
51239d794632Smrg
51249d794632Smrg
51259d794632Smrg
51269d794632Smrg
51279d794632Smrg
51289d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
51299d794632Smrg
51309d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
51319d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5132c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5133c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5134c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5135c048b52eSmrgthen :
5136c048b52eSmrg  printf %s "(cached) " >&6
5137772b5186Smrgelse case e in #(
5138772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51399d794632Smrg/* end confdefs.h.  */
51409d794632Smrgint i;
51419d794632Smrg_ACEOF
5142c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
5143c048b52eSmrgthen :
51449d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
5145772b5186Smrgelse case e in #(
5146772b5186Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5147772b5186Smrgesac
51489d794632Smrgfi
5149772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5150772b5186Smrgesac
51519d794632Smrgfi
5152c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5153c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
51549d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
51559d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
5156b62cc08cSmrgfi
5157b62cc08cSmrg
51589d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
51599d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
51609d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5161b62cc08cSmrg	fi
51629d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5163c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5164c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5165c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5166c048b52eSmrgthen :
5167c048b52eSmrg  printf %s "(cached) " >&6
5168772b5186Smrgelse case e in #(
5169772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51709d794632Smrg/* end confdefs.h.  */
51719d794632Smrgint i;
51729d794632Smrg_ACEOF
5173c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
5174c048b52eSmrgthen :
51759d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5176772b5186Smrgelse case e in #(
5177772b5186Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5178772b5186Smrgesac
51799d794632Smrgfi
5180772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5181772b5186Smrgesac
51829d794632Smrgfi
5183c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5184c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
51859d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
51869d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
5187b62cc08cSmrgfi
5188b62cc08cSmrg
51899d794632Smrgfound="no"
5190b62cc08cSmrg
51919d794632Smrg	if test $found = "no" ; then
5192e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
51939d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
51949d794632Smrg		fi
5195b62cc08cSmrg
5196e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
51979d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
51989d794632Smrg		fi
5199b62cc08cSmrg
52009d794632Smrg		CFLAGS="$CFLAGS -Wall"
5201b62cc08cSmrg
5202c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5203c048b52eSmrgprintf %s "checking if $CC supports -Wall... " >&6; }
52049d794632Smrg		cacheid=xorg_cv_cc_flag__Wall
5205c048b52eSmrg		if eval test \${$cacheid+y}
5206c048b52eSmrgthen :
5207c048b52eSmrg  printf %s "(cached) " >&6
5208772b5186Smrgelse case e in #(
5209772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52109d794632Smrg/* end confdefs.h.  */
52119d794632Smrgint i;
52129d794632Smrgint
5213c048b52eSmrgmain (void)
52149d794632Smrg{
5215b62cc08cSmrg
52169d794632Smrg  ;
52179d794632Smrg  return 0;
52189d794632Smrg}
5219b62cc08cSmrg_ACEOF
5220c048b52eSmrgif ac_fn_c_try_link "$LINENO"
5221c048b52eSmrgthen :
52229d794632Smrg  eval $cacheid=yes
5223772b5186Smrgelse case e in #(
5224772b5186Smrg  e) eval $cacheid=no ;;
5225772b5186Smrgesac
52269d794632Smrgfi
5227c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5228772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
5229772b5186Smrgesac
52309d794632Smrgfi
5231b62cc08cSmrg
52329d794632Smrg
52339d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
52349d794632Smrg
52359d794632Smrg		eval supported=\$$cacheid
5236c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5237c048b52eSmrgprintf "%s\n" "$supported" >&6; }
52389d794632Smrg		if test "$supported" = "yes" ; then
52399d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wall"
52409d794632Smrg			found="yes"
52419d794632Smrg		fi
5242b62cc08cSmrg	fi
5243b62cc08cSmrg
5244b62cc08cSmrg
5245b62cc08cSmrg
5246b62cc08cSmrg
5247b62cc08cSmrg
5248b62cc08cSmrg
5249b62cc08cSmrg
5250b62cc08cSmrg
5251b62cc08cSmrg
5252b62cc08cSmrg
5253b62cc08cSmrg
52549fe995a9Smrg
52559fe995a9Smrg
52569fe995a9Smrg
52579fe995a9Smrg
52589d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
52599d794632Smrg
52609d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
52619d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5262c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5263c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5264c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5265c048b52eSmrgthen :
5266c048b52eSmrg  printf %s "(cached) " >&6
5267772b5186Smrgelse case e in #(
5268772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52699d794632Smrg/* end confdefs.h.  */
52709d794632Smrgint i;
52719d794632Smrg_ACEOF
5272c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
5273c048b52eSmrgthen :
52749d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
5275772b5186Smrgelse case e in #(
5276772b5186Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5277772b5186Smrgesac
52789d794632Smrgfi
5279772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5280772b5186Smrgesac
52819d794632Smrgfi
5282c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5283c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
52849d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
52859d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
52869d794632Smrgfi
52879d794632Smrg
52889d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
52899d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
52909d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
52919d794632Smrg	fi
52929d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5293c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5294c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5295c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5296c048b52eSmrgthen :
5297c048b52eSmrg  printf %s "(cached) " >&6
5298772b5186Smrgelse case e in #(
5299772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53009d794632Smrg/* end confdefs.h.  */
53019d794632Smrgint i;
53029d794632Smrg_ACEOF
5303c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
5304c048b52eSmrgthen :
53059d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5306772b5186Smrgelse case e in #(
5307772b5186Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5308772b5186Smrgesac
53099d794632Smrgfi
5310772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5311772b5186Smrgesac
53129d794632Smrgfi
5313c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5314c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
53159d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
53169d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
53179d794632Smrgfi
53189d794632Smrg
53199d794632Smrgfound="no"
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 -Wpointer-arith"
53319d794632Smrg
5332c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5333c048b52eSmrgprintf %s "checking if $CC supports -Wpointer-arith... " >&6; }
53349d794632Smrg		cacheid=xorg_cv_cc_flag__Wpointer_arith
5335c048b52eSmrg		if eval test \${$cacheid+y}
5336c048b52eSmrgthen :
5337c048b52eSmrg  printf %s "(cached) " >&6
5338772b5186Smrgelse case e in #(
5339772b5186Smrg  e) 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
5353772b5186Smrgelse case e in #(
5354772b5186Smrg  e) eval $cacheid=no ;;
5355772b5186Smrgesac
53569d794632Smrgfi
5357c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5358772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
5359772b5186Smrgesac
53609d794632Smrgfi
53619d794632Smrg
53629d794632Smrg
53639d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
53649d794632Smrg
53659d794632Smrg		eval supported=\$$cacheid
5366c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5367c048b52eSmrgprintf "%s\n" "$supported" >&6; }
53689d794632Smrg		if test "$supported" = "yes" ; then
53699d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
53709d794632Smrg			found="yes"
53719d794632Smrg		fi
53729d794632Smrg	fi
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
5397772b5186Smrgelse case e in #(
5398772b5186Smrg  e) 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
5405772b5186Smrgelse case e in #(
5406772b5186Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5407772b5186Smrgesac
54089d794632Smrgfi
5409772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5410772b5186Smrgesac
54119d794632Smrgfi
5412c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5413c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
54149d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
54159d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
54169d794632Smrgfi
54179d794632Smrg
54189d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
54199d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
54209d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
54219d794632Smrg	fi
54229d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5423c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5424c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5425c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5426c048b52eSmrgthen :
5427c048b52eSmrg  printf %s "(cached) " >&6
5428772b5186Smrgelse case e in #(
5429772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54309d794632Smrg/* end confdefs.h.  */
54319d794632Smrgint i;
54329d794632Smrg_ACEOF
5433c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
5434c048b52eSmrgthen :
54359d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5436772b5186Smrgelse case e in #(
5437772b5186Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5438772b5186Smrgesac
54399d794632Smrgfi
5440772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5441772b5186Smrgesac
54429d794632Smrgfi
5443c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5444c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
54459d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
54469d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
54479d794632Smrgfi
54489d794632Smrg
54499d794632Smrgfound="no"
54509d794632Smrg
54519d794632Smrg	if test $found = "no" ; then
5452e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
54539d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
54549d794632Smrg		fi
54559d794632Smrg
5456e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
54579d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
54589d794632Smrg		fi
54599d794632Smrg
54609d794632Smrg		CFLAGS="$CFLAGS -Wmissing-declarations"
54619d794632Smrg
5462c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5463c048b52eSmrgprintf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
54649d794632Smrg		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5465c048b52eSmrg		if eval test \${$cacheid+y}
5466c048b52eSmrgthen :
5467c048b52eSmrg  printf %s "(cached) " >&6
5468772b5186Smrgelse case e in #(
5469772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54709d794632Smrg/* end confdefs.h.  */
54719d794632Smrgint i;
54729d794632Smrgint
5473c048b52eSmrgmain (void)
54749d794632Smrg{
54759d794632Smrg
54769d794632Smrg  ;
54779d794632Smrg  return 0;
54789d794632Smrg}
54799d794632Smrg_ACEOF
5480c048b52eSmrgif ac_fn_c_try_link "$LINENO"
5481c048b52eSmrgthen :
54829d794632Smrg  eval $cacheid=yes
5483772b5186Smrgelse case e in #(
5484772b5186Smrg  e) eval $cacheid=no ;;
5485772b5186Smrgesac
54869d794632Smrgfi
5487c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5488772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
5489772b5186Smrgesac
54909d794632Smrgfi
54919d794632Smrg
54929d794632Smrg
54939d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
54949d794632Smrg
54959d794632Smrg		eval supported=\$$cacheid
5496c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5497c048b52eSmrgprintf "%s\n" "$supported" >&6; }
54989d794632Smrg		if test "$supported" = "yes" ; then
54999d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
55009d794632Smrg			found="yes"
55019d794632Smrg		fi
55029d794632Smrg	fi
55039d794632Smrg
55049d794632Smrg
55059d794632Smrg
55069d794632Smrg
55079d794632Smrg
55089d794632Smrg
55099d794632Smrg
55109d794632Smrg
55119d794632Smrg
55129d794632Smrg
55139d794632Smrg
55149d794632Smrg
55159d794632Smrg
55169d794632Smrg
55179d794632Smrg
55189d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
55199d794632Smrg
55209d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
55219d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5522c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5523c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5524c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5525c048b52eSmrgthen :
5526c048b52eSmrg  printf %s "(cached) " >&6
5527772b5186Smrgelse case e in #(
5528772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55299d794632Smrg/* end confdefs.h.  */
55309d794632Smrgint i;
55319d794632Smrg_ACEOF
5532c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
5533c048b52eSmrgthen :
55349d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
5535772b5186Smrgelse case e in #(
5536772b5186Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5537772b5186Smrgesac
55389d794632Smrgfi
5539772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5540772b5186Smrgesac
55419d794632Smrgfi
5542c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5543c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
55449d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
55459d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
55469d794632Smrgfi
55479d794632Smrg
55489d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
55499d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
55509d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
55519d794632Smrg	fi
55529d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5553c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5554c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5555c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5556c048b52eSmrgthen :
5557c048b52eSmrg  printf %s "(cached) " >&6
5558772b5186Smrgelse case e in #(
5559772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55609d794632Smrg/* end confdefs.h.  */
55619d794632Smrgint i;
55629d794632Smrg_ACEOF
5563c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
5564c048b52eSmrgthen :
55659d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5566772b5186Smrgelse case e in #(
5567772b5186Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5568772b5186Smrgesac
55699d794632Smrgfi
5570772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5571772b5186Smrgesac
55729d794632Smrgfi
5573c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5574c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
55759d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
55769d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
55779d794632Smrgfi
55789d794632Smrg
55799d794632Smrgfound="no"
55809d794632Smrg
55819d794632Smrg	if test $found = "no" ; then
5582e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
55839d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
55849d794632Smrg		fi
55859d794632Smrg
5586e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
55879d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
55889d794632Smrg		fi
55899d794632Smrg
55909d794632Smrg		CFLAGS="$CFLAGS -Wformat=2"
55919d794632Smrg
5592c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5593c048b52eSmrgprintf %s "checking if $CC supports -Wformat=2... " >&6; }
5594e8ac26b0Smrg		cacheid=xorg_cv_cc_flag__Wformat_2
5595c048b52eSmrg		if eval test \${$cacheid+y}
5596c048b52eSmrgthen :
5597c048b52eSmrg  printf %s "(cached) " >&6
5598772b5186Smrgelse case e in #(
5599772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56009d794632Smrg/* end confdefs.h.  */
56019d794632Smrgint i;
56029d794632Smrgint
5603c048b52eSmrgmain (void)
56049d794632Smrg{
56059d794632Smrg
56069d794632Smrg  ;
56079d794632Smrg  return 0;
56089d794632Smrg}
56099d794632Smrg_ACEOF
5610c048b52eSmrgif ac_fn_c_try_link "$LINENO"
5611c048b52eSmrgthen :
56129d794632Smrg  eval $cacheid=yes
5613772b5186Smrgelse case e in #(
5614772b5186Smrg  e) eval $cacheid=no ;;
5615772b5186Smrgesac
56169d794632Smrgfi
5617c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5618772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
5619772b5186Smrgesac
56209d794632Smrgfi
56219d794632Smrg
56229d794632Smrg
56239d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
56249d794632Smrg
56259d794632Smrg		eval supported=\$$cacheid
5626c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5627c048b52eSmrgprintf "%s\n" "$supported" >&6; }
56289d794632Smrg		if test "$supported" = "yes" ; then
56299d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
56309d794632Smrg			found="yes"
56319d794632Smrg		fi
56329d794632Smrg	fi
56339d794632Smrg
56349d794632Smrg	if test $found = "no" ; then
5635e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
56369d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
56379d794632Smrg		fi
56389d794632Smrg
5639e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
56409d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
56419d794632Smrg		fi
56429d794632Smrg
56439d794632Smrg		CFLAGS="$CFLAGS -Wformat"
56449d794632Smrg
5645c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5646c048b52eSmrgprintf %s "checking if $CC supports -Wformat... " >&6; }
56479d794632Smrg		cacheid=xorg_cv_cc_flag__Wformat
5648c048b52eSmrg		if eval test \${$cacheid+y}
5649c048b52eSmrgthen :
5650c048b52eSmrg  printf %s "(cached) " >&6
5651772b5186Smrgelse case e in #(
5652772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56539d794632Smrg/* end confdefs.h.  */
56549d794632Smrgint i;
56559d794632Smrgint
5656c048b52eSmrgmain (void)
56579d794632Smrg{
56589d794632Smrg
56599d794632Smrg  ;
56609d794632Smrg  return 0;
56619d794632Smrg}
56629d794632Smrg_ACEOF
5663c048b52eSmrgif ac_fn_c_try_link "$LINENO"
5664c048b52eSmrgthen :
56659d794632Smrg  eval $cacheid=yes
5666772b5186Smrgelse case e in #(
5667772b5186Smrg  e) eval $cacheid=no ;;
5668772b5186Smrgesac
56699d794632Smrgfi
5670c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5671772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
5672772b5186Smrgesac
56739d794632Smrgfi
56749d794632Smrg
56759d794632Smrg
56769d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
56779d794632Smrg
56789d794632Smrg		eval supported=\$$cacheid
5679c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5680c048b52eSmrgprintf "%s\n" "$supported" >&6; }
56819d794632Smrg		if test "$supported" = "yes" ; then
56829d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
56839d794632Smrg			found="yes"
56849d794632Smrg		fi
56859d794632Smrg	fi
56869d794632Smrg
56879d794632Smrg
56889d794632Smrg
56899d794632Smrg
56909d794632Smrg
56919d794632Smrg
56929d794632Smrg
56939d794632Smrg
56949d794632Smrg
56959d794632Smrg
56969d794632Smrg
56979d794632Smrg
56989d794632Smrg
56999d794632Smrg
57009d794632Smrg
57019d794632Smrg
57029d794632Smrg
57039d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
57049d794632Smrg
57059d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
57069d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5707c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5708c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5709c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5710c048b52eSmrgthen :
5711c048b52eSmrg  printf %s "(cached) " >&6
5712772b5186Smrgelse case e in #(
5713772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57149d794632Smrg/* end confdefs.h.  */
57159d794632Smrgint i;
57169d794632Smrg_ACEOF
5717c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
5718c048b52eSmrgthen :
57199d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
5720772b5186Smrgelse case e in #(
5721772b5186Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5722772b5186Smrgesac
57239d794632Smrgfi
5724772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5725772b5186Smrgesac
57269d794632Smrgfi
5727c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5728c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
57299d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
57309d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
57319d794632Smrgfi
57329d794632Smrg
57339d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
57349d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
57359d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
57369d794632Smrg	fi
57379d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5738c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5739c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5740c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5741c048b52eSmrgthen :
5742c048b52eSmrg  printf %s "(cached) " >&6
5743772b5186Smrgelse case e in #(
5744772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57459d794632Smrg/* end confdefs.h.  */
57469d794632Smrgint i;
57479d794632Smrg_ACEOF
5748c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
5749c048b52eSmrgthen :
57509d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5751772b5186Smrgelse case e in #(
5752772b5186Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5753772b5186Smrgesac
57549d794632Smrgfi
5755772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5756772b5186Smrgesac
57579d794632Smrgfi
5758c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5759c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
57609d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
57619d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
57629d794632Smrgfi
57639d794632Smrg
57649d794632Smrgfound="no"
57659d794632Smrg
57669d794632Smrg	if test $found = "no" ; then
5767e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
57689d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
57699d794632Smrg		fi
57709d794632Smrg
5771e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
57729d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
57739d794632Smrg		fi
57749d794632Smrg
57759d794632Smrg		CFLAGS="$CFLAGS -Wstrict-prototypes"
57769d794632Smrg
5777c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5778c048b52eSmrgprintf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
57799d794632Smrg		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5780c048b52eSmrg		if eval test \${$cacheid+y}
5781c048b52eSmrgthen :
5782c048b52eSmrg  printf %s "(cached) " >&6
5783772b5186Smrgelse case e in #(
5784772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57859d794632Smrg/* end confdefs.h.  */
57869d794632Smrgint i;
57879d794632Smrgint
5788c048b52eSmrgmain (void)
57899d794632Smrg{
57909d794632Smrg
57919d794632Smrg  ;
57929d794632Smrg  return 0;
57939d794632Smrg}
57949d794632Smrg_ACEOF
5795c048b52eSmrgif ac_fn_c_try_link "$LINENO"
5796c048b52eSmrgthen :
57979d794632Smrg  eval $cacheid=yes
5798772b5186Smrgelse case e in #(
5799772b5186Smrg  e) eval $cacheid=no ;;
5800772b5186Smrgesac
58019d794632Smrgfi
5802c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5803772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
5804772b5186Smrgesac
58059d794632Smrgfi
58069d794632Smrg
58079d794632Smrg
58089d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
58099d794632Smrg
58109d794632Smrg		eval supported=\$$cacheid
5811c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5812c048b52eSmrgprintf "%s\n" "$supported" >&6; }
58139d794632Smrg		if test "$supported" = "yes" ; then
58149d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
58159d794632Smrg			found="yes"
58169d794632Smrg		fi
58179d794632Smrg	fi
58189d794632Smrg
58199d794632Smrg
58209d794632Smrg
58219d794632Smrg
58229d794632Smrg
58239d794632Smrg
58249d794632Smrg
58259d794632Smrg
58269d794632Smrg
58279d794632Smrg
58289d794632Smrg
58299d794632Smrg
58309d794632Smrg
58319d794632Smrg
58329d794632Smrg
58339d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
58349d794632Smrg
58359d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
58369d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5837c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5838c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5839c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5840c048b52eSmrgthen :
5841c048b52eSmrg  printf %s "(cached) " >&6
5842772b5186Smrgelse case e in #(
5843772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58449d794632Smrg/* end confdefs.h.  */
58459d794632Smrgint i;
58469d794632Smrg_ACEOF
5847c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
5848c048b52eSmrgthen :
58499d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
5850772b5186Smrgelse case e in #(
5851772b5186Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5852772b5186Smrgesac
58539d794632Smrgfi
5854772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5855772b5186Smrgesac
58569d794632Smrgfi
5857c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5858c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
58599d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
58609d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
58619d794632Smrgfi
58629d794632Smrg
58639d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
58649d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
58659d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
58669d794632Smrg	fi
58679d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5868c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5869c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5870c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5871c048b52eSmrgthen :
5872c048b52eSmrg  printf %s "(cached) " >&6
5873772b5186Smrgelse case e in #(
5874772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58759d794632Smrg/* end confdefs.h.  */
58769d794632Smrgint i;
58779d794632Smrg_ACEOF
5878c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
5879c048b52eSmrgthen :
58809d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5881772b5186Smrgelse case e in #(
5882772b5186Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5883772b5186Smrgesac
58849d794632Smrgfi
5885772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5886772b5186Smrgesac
58879d794632Smrgfi
5888c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5889c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
58909d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
58919d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
58929d794632Smrgfi
58939d794632Smrg
58949d794632Smrgfound="no"
58959d794632Smrg
58969d794632Smrg	if test $found = "no" ; then
5897e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
58989d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
58999d794632Smrg		fi
59009d794632Smrg
5901e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
59029d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
59039d794632Smrg		fi
59049d794632Smrg
59059d794632Smrg		CFLAGS="$CFLAGS -Wmissing-prototypes"
59069d794632Smrg
5907c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5908c048b52eSmrgprintf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
59099d794632Smrg		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5910c048b52eSmrg		if eval test \${$cacheid+y}
5911c048b52eSmrgthen :
5912c048b52eSmrg  printf %s "(cached) " >&6
5913772b5186Smrgelse case e in #(
5914772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59159d794632Smrg/* end confdefs.h.  */
59169d794632Smrgint i;
59179d794632Smrgint
5918c048b52eSmrgmain (void)
59199d794632Smrg{
59209d794632Smrg
59219d794632Smrg  ;
59229d794632Smrg  return 0;
59239d794632Smrg}
59249d794632Smrg_ACEOF
5925c048b52eSmrgif ac_fn_c_try_link "$LINENO"
5926c048b52eSmrgthen :
59279d794632Smrg  eval $cacheid=yes
5928772b5186Smrgelse case e in #(
5929772b5186Smrg  e) eval $cacheid=no ;;
5930772b5186Smrgesac
59319d794632Smrgfi
5932c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5933772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
5934772b5186Smrgesac
59359d794632Smrgfi
59369d794632Smrg
59379d794632Smrg
59389d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
59399d794632Smrg
59409d794632Smrg		eval supported=\$$cacheid
5941c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5942c048b52eSmrgprintf "%s\n" "$supported" >&6; }
59439d794632Smrg		if test "$supported" = "yes" ; then
59449d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
59459d794632Smrg			found="yes"
59469d794632Smrg		fi
59479d794632Smrg	fi
59489d794632Smrg
59499d794632Smrg
59509d794632Smrg
59519d794632Smrg
59529d794632Smrg
59539d794632Smrg
59549d794632Smrg
59559d794632Smrg
59569d794632Smrg
59579d794632Smrg
59589d794632Smrg
59599d794632Smrg
59609d794632Smrg
59619d794632Smrg
59629d794632Smrg
59639d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
59649d794632Smrg
59659d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
59669d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5967c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5968c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5969c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5970c048b52eSmrgthen :
5971c048b52eSmrg  printf %s "(cached) " >&6
5972772b5186Smrgelse case e in #(
5973772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59749d794632Smrg/* end confdefs.h.  */
59759d794632Smrgint i;
59769d794632Smrg_ACEOF
5977c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
5978c048b52eSmrgthen :
59799d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
5980772b5186Smrgelse case e in #(
5981772b5186Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5982772b5186Smrgesac
59839d794632Smrgfi
5984772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5985772b5186Smrgesac
59869d794632Smrgfi
5987c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5988c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
59899d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
59909d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
59919d794632Smrgfi
59929d794632Smrg
59939d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
59949d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
59959d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
59969d794632Smrg	fi
59979d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5998c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5999c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6000c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6001c048b52eSmrgthen :
6002c048b52eSmrg  printf %s "(cached) " >&6
6003772b5186Smrgelse case e in #(
6004772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60059d794632Smrg/* end confdefs.h.  */
60069d794632Smrgint i;
60079d794632Smrg_ACEOF
6008c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
6009c048b52eSmrgthen :
60109d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6011772b5186Smrgelse case e in #(
6012772b5186Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6013772b5186Smrgesac
60149d794632Smrgfi
6015772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6016772b5186Smrgesac
60179d794632Smrgfi
6018c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6019c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
60209d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
60219d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
60229d794632Smrgfi
60239d794632Smrg
60249d794632Smrgfound="no"
60259d794632Smrg
60269d794632Smrg	if test $found = "no" ; then
6027e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
60289d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
60299d794632Smrg		fi
60309d794632Smrg
6031e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
60329d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
60339d794632Smrg		fi
60349d794632Smrg
60359d794632Smrg		CFLAGS="$CFLAGS -Wnested-externs"
60369d794632Smrg
6037c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
6038c048b52eSmrgprintf %s "checking if $CC supports -Wnested-externs... " >&6; }
60399d794632Smrg		cacheid=xorg_cv_cc_flag__Wnested_externs
6040c048b52eSmrg		if eval test \${$cacheid+y}
6041c048b52eSmrgthen :
6042c048b52eSmrg  printf %s "(cached) " >&6
6043772b5186Smrgelse case e in #(
6044772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60459d794632Smrg/* end confdefs.h.  */
60469d794632Smrgint i;
60479d794632Smrgint
6048c048b52eSmrgmain (void)
60499d794632Smrg{
60509d794632Smrg
60519d794632Smrg  ;
60529d794632Smrg  return 0;
60539d794632Smrg}
60549d794632Smrg_ACEOF
6055c048b52eSmrgif ac_fn_c_try_link "$LINENO"
6056c048b52eSmrgthen :
60579d794632Smrg  eval $cacheid=yes
6058772b5186Smrgelse case e in #(
6059772b5186Smrg  e) eval $cacheid=no ;;
6060772b5186Smrgesac
60619d794632Smrgfi
6062c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6063772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
6064772b5186Smrgesac
60659d794632Smrgfi
60669d794632Smrg
60679d794632Smrg
60689d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
60699d794632Smrg
60709d794632Smrg		eval supported=\$$cacheid
6071c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6072c048b52eSmrgprintf "%s\n" "$supported" >&6; }
60739d794632Smrg		if test "$supported" = "yes" ; then
60749d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
60759d794632Smrg			found="yes"
60769d794632Smrg		fi
60779d794632Smrg	fi
60789d794632Smrg
60799d794632Smrg
60809d794632Smrg
60819d794632Smrg
60829d794632Smrg
60839d794632Smrg
60849d794632Smrg
60859d794632Smrg
60869d794632Smrg
60879d794632Smrg
60889d794632Smrg
60899d794632Smrg
60909d794632Smrg
60919d794632Smrg
60929d794632Smrg
60939d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
60949d794632Smrg
60959d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
60969d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6097c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6098c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6099c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6100c048b52eSmrgthen :
6101c048b52eSmrg  printf %s "(cached) " >&6
6102772b5186Smrgelse case e in #(
6103772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61049d794632Smrg/* end confdefs.h.  */
61059d794632Smrgint i;
61069d794632Smrg_ACEOF
6107c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
6108c048b52eSmrgthen :
61099d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
6110772b5186Smrgelse case e in #(
6111772b5186Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6112772b5186Smrgesac
61139d794632Smrgfi
6114772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6115772b5186Smrgesac
61169d794632Smrgfi
6117c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6118c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
61199d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
61209d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
61219d794632Smrgfi
61229d794632Smrg
61239d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
61249d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
61259d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
61269d794632Smrg	fi
61279d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6128c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6129c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6130c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6131c048b52eSmrgthen :
6132c048b52eSmrg  printf %s "(cached) " >&6
6133772b5186Smrgelse case e in #(
6134772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61359d794632Smrg/* end confdefs.h.  */
61369d794632Smrgint i;
61379d794632Smrg_ACEOF
6138c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
6139c048b52eSmrgthen :
61409d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6141772b5186Smrgelse case e in #(
6142772b5186Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6143772b5186Smrgesac
61449d794632Smrgfi
6145772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6146772b5186Smrgesac
61479d794632Smrgfi
6148c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6149c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
61509d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
61519d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
61529d794632Smrgfi
61539d794632Smrg
61549d794632Smrgfound="no"
61559d794632Smrg
61569d794632Smrg	if test $found = "no" ; then
6157e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
61589d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
61599d794632Smrg		fi
61609d794632Smrg
6161e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
61629d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
61639d794632Smrg		fi
61649d794632Smrg
61659d794632Smrg		CFLAGS="$CFLAGS -Wbad-function-cast"
61669d794632Smrg
6167c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6168c048b52eSmrgprintf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
61699d794632Smrg		cacheid=xorg_cv_cc_flag__Wbad_function_cast
6170c048b52eSmrg		if eval test \${$cacheid+y}
6171c048b52eSmrgthen :
6172c048b52eSmrg  printf %s "(cached) " >&6
6173772b5186Smrgelse case e in #(
6174772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61759d794632Smrg/* end confdefs.h.  */
61769d794632Smrgint i;
61779d794632Smrgint
6178c048b52eSmrgmain (void)
61799d794632Smrg{
61809d794632Smrg
61819d794632Smrg  ;
61829d794632Smrg  return 0;
61839d794632Smrg}
61849d794632Smrg_ACEOF
6185c048b52eSmrgif ac_fn_c_try_link "$LINENO"
6186c048b52eSmrgthen :
61879d794632Smrg  eval $cacheid=yes
6188772b5186Smrgelse case e in #(
6189772b5186Smrg  e) eval $cacheid=no ;;
6190772b5186Smrgesac
61919d794632Smrgfi
6192c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6193772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
6194772b5186Smrgesac
61959d794632Smrgfi
61969d794632Smrg
61979d794632Smrg
61989d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
61999d794632Smrg
62009d794632Smrg		eval supported=\$$cacheid
6201c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6202c048b52eSmrgprintf "%s\n" "$supported" >&6; }
62039d794632Smrg		if test "$supported" = "yes" ; then
62049d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
62059d794632Smrg			found="yes"
62069d794632Smrg		fi
62079d794632Smrg	fi
62089d794632Smrg
62099d794632Smrg
62109d794632Smrg
62119d794632Smrg
62129d794632Smrg
62139d794632Smrg
62149d794632Smrg
62159d794632Smrg
62169d794632Smrg
62179d794632Smrg
62189d794632Smrg
62199d794632Smrg
62209d794632Smrg
62219d794632Smrg
62229d794632Smrg
62239d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
62249d794632Smrg
62259d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
62269d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6227c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6228c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6229c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6230c048b52eSmrgthen :
6231c048b52eSmrg  printf %s "(cached) " >&6
6232772b5186Smrgelse case e in #(
6233772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62349d794632Smrg/* end confdefs.h.  */
62359d794632Smrgint i;
62369d794632Smrg_ACEOF
6237c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
6238c048b52eSmrgthen :
62399d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
6240772b5186Smrgelse case e in #(
6241772b5186Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6242772b5186Smrgesac
62439d794632Smrgfi
6244772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6245772b5186Smrgesac
62469d794632Smrgfi
6247c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6248c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
62499d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
62509d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
62519d794632Smrgfi
62529d794632Smrg
62539d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
62549d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
62559d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
62569d794632Smrg	fi
62579d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6258c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6259c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6260c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6261c048b52eSmrgthen :
6262c048b52eSmrg  printf %s "(cached) " >&6
6263772b5186Smrgelse case e in #(
6264772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62659d794632Smrg/* end confdefs.h.  */
62669d794632Smrgint i;
62679d794632Smrg_ACEOF
6268c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
6269c048b52eSmrgthen :
62709d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6271772b5186Smrgelse case e in #(
6272772b5186Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6273772b5186Smrgesac
62749d794632Smrgfi
6275772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6276772b5186Smrgesac
62779d794632Smrgfi
6278c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6279c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
62809d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
62819d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
62829d794632Smrgfi
62839d794632Smrg
62849d794632Smrgfound="no"
62859d794632Smrg
62869d794632Smrg	if test $found = "no" ; then
6287e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
62889d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
62899d794632Smrg		fi
62909d794632Smrg
6291e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
62929d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
62939d794632Smrg		fi
62949d794632Smrg
62959d794632Smrg		CFLAGS="$CFLAGS -Wold-style-definition"
62969d794632Smrg
6297c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6298c048b52eSmrgprintf %s "checking if $CC supports -Wold-style-definition... " >&6; }
62999d794632Smrg		cacheid=xorg_cv_cc_flag__Wold_style_definition
6300c048b52eSmrg		if eval test \${$cacheid+y}
6301c048b52eSmrgthen :
6302c048b52eSmrg  printf %s "(cached) " >&6
6303772b5186Smrgelse case e in #(
6304772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63059d794632Smrg/* end confdefs.h.  */
63069d794632Smrgint i;
63079d794632Smrgint
6308c048b52eSmrgmain (void)
63099d794632Smrg{
63109d794632Smrg
63119d794632Smrg  ;
63129d794632Smrg  return 0;
63139d794632Smrg}
63149d794632Smrg_ACEOF
6315c048b52eSmrgif ac_fn_c_try_link "$LINENO"
6316c048b52eSmrgthen :
63179d794632Smrg  eval $cacheid=yes
6318772b5186Smrgelse case e in #(
6319772b5186Smrg  e) eval $cacheid=no ;;
6320772b5186Smrgesac
63219d794632Smrgfi
6322c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6323772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
6324772b5186Smrgesac
63259d794632Smrgfi
63269d794632Smrg
63279d794632Smrg
63289d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
63299d794632Smrg
63309d794632Smrg		eval supported=\$$cacheid
6331c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6332c048b52eSmrgprintf "%s\n" "$supported" >&6; }
63339d794632Smrg		if test "$supported" = "yes" ; then
63349d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
63359d794632Smrg			found="yes"
63369d794632Smrg		fi
63379d794632Smrg	fi
63389d794632Smrg
6339e8ac26b0Smrg	if test $found = "no" ; then
6340e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6341e8ac26b0Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6342e8ac26b0Smrg		fi
6343e8ac26b0Smrg
6344e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6345e8ac26b0Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6346e8ac26b0Smrg		fi
6347e8ac26b0Smrg
6348e8ac26b0Smrg		CFLAGS="$CFLAGS -fd"
6349e8ac26b0Smrg
6350c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6351c048b52eSmrgprintf %s "checking if $CC supports -fd... " >&6; }
6352e8ac26b0Smrg		cacheid=xorg_cv_cc_flag__fd
6353c048b52eSmrg		if eval test \${$cacheid+y}
6354c048b52eSmrgthen :
6355c048b52eSmrg  printf %s "(cached) " >&6
6356772b5186Smrgelse case e in #(
6357772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6358e8ac26b0Smrg/* end confdefs.h.  */
6359e8ac26b0Smrgint i;
6360e8ac26b0Smrgint
6361c048b52eSmrgmain (void)
6362e8ac26b0Smrg{
6363e8ac26b0Smrg
6364e8ac26b0Smrg  ;
6365e8ac26b0Smrg  return 0;
6366e8ac26b0Smrg}
6367e8ac26b0Smrg_ACEOF
6368c048b52eSmrgif ac_fn_c_try_link "$LINENO"
6369c048b52eSmrgthen :
6370e8ac26b0Smrg  eval $cacheid=yes
6371772b5186Smrgelse case e in #(
6372772b5186Smrg  e) eval $cacheid=no ;;
6373772b5186Smrgesac
6374e8ac26b0Smrgfi
6375c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6376772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
6377772b5186Smrgesac
6378e8ac26b0Smrgfi
6379e8ac26b0Smrg
6380e8ac26b0Smrg
6381e8ac26b0Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
6382e8ac26b0Smrg
6383e8ac26b0Smrg		eval supported=\$$cacheid
6384c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6385c048b52eSmrgprintf "%s\n" "$supported" >&6; }
6386e8ac26b0Smrg		if test "$supported" = "yes" ; then
6387e8ac26b0Smrg			BASE_CFLAGS="$BASE_CFLAGS -fd"
6388e8ac26b0Smrg			found="yes"
6389e8ac26b0Smrg		fi
6390e8ac26b0Smrg	fi
6391e8ac26b0Smrg
63929d794632Smrg
63939d794632Smrg
63949d794632Smrg
63959d794632Smrg
63969d794632Smrg
63979d794632Smrg
63989d794632Smrg
63999d794632Smrg
64009d794632Smrg
64019d794632Smrg
64029d794632Smrg
64039d794632Smrg
64049d794632Smrg
64059d794632Smrg
64069d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
64079d794632Smrg
64089d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
64099d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6410c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6411c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6412c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6413c048b52eSmrgthen :
6414c048b52eSmrg  printf %s "(cached) " >&6
6415772b5186Smrgelse case e in #(
6416772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64179d794632Smrg/* end confdefs.h.  */
64189d794632Smrgint i;
64199d794632Smrg_ACEOF
6420c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
6421c048b52eSmrgthen :
64229d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
6423772b5186Smrgelse case e in #(
6424772b5186Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6425772b5186Smrgesac
64269d794632Smrgfi
6427772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6428772b5186Smrgesac
64299d794632Smrgfi
6430c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6431c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
64329d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
64339d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
64349d794632Smrgfi
64359d794632Smrg
64369d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
64379d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
64389d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
64399d794632Smrg	fi
64409d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6441c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6442c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6443c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6444c048b52eSmrgthen :
6445c048b52eSmrg  printf %s "(cached) " >&6
6446772b5186Smrgelse case e in #(
6447772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64489d794632Smrg/* end confdefs.h.  */
64499d794632Smrgint i;
64509d794632Smrg_ACEOF
6451c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
6452c048b52eSmrgthen :
64539d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6454772b5186Smrgelse case e in #(
6455772b5186Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6456772b5186Smrgesac
64579d794632Smrgfi
6458772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6459772b5186Smrgesac
64609d794632Smrgfi
6461c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6462c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
64639d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
64649d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
64659d794632Smrgfi
64669d794632Smrg
64679d794632Smrgfound="no"
64689d794632Smrg
64699d794632Smrg	if test $found = "no" ; then
6470e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
64719d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
64729d794632Smrg		fi
64739d794632Smrg
6474e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
64759d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
64769d794632Smrg		fi
64779d794632Smrg
64789d794632Smrg		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
64799d794632Smrg
6480c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6481c048b52eSmrgprintf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
64829d794632Smrg		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6483c048b52eSmrg		if eval test \${$cacheid+y}
6484c048b52eSmrgthen :
6485c048b52eSmrg  printf %s "(cached) " >&6
6486772b5186Smrgelse case e in #(
6487772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64889d794632Smrg/* end confdefs.h.  */
64899d794632Smrgint i;
64909d794632Smrgint
6491c048b52eSmrgmain (void)
64929d794632Smrg{
64939d794632Smrg
64949d794632Smrg  ;
64959d794632Smrg  return 0;
64969d794632Smrg}
64979d794632Smrg_ACEOF
6498c048b52eSmrgif ac_fn_c_try_link "$LINENO"
6499c048b52eSmrgthen :
65009d794632Smrg  eval $cacheid=yes
6501772b5186Smrgelse case e in #(
6502772b5186Smrg  e) eval $cacheid=no ;;
6503772b5186Smrgesac
65049d794632Smrgfi
6505c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6506772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
6507772b5186Smrgesac
65089d794632Smrgfi
65099d794632Smrg
65109d794632Smrg
65119d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
65129d794632Smrg
65139d794632Smrg		eval supported=\$$cacheid
6514c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6515c048b52eSmrgprintf "%s\n" "$supported" >&6; }
65169d794632Smrg		if test "$supported" = "yes" ; then
65179d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
65189d794632Smrg			found="yes"
65199d794632Smrg		fi
65209d794632Smrg	fi
65219d794632Smrg
65229d794632Smrg
65239d794632Smrg
65249d794632Smrg
65259d794632Smrg
65269d794632Smrg# This chunk adds additional warnings that could catch undesired effects.
65279d794632Smrg
65289d794632Smrg
65299d794632Smrg
65309d794632Smrg
65319d794632Smrg
65329d794632Smrg
65339d794632Smrg
65349d794632Smrg
65359d794632Smrg
65369d794632Smrg
65379d794632Smrg
65389d794632Smrg
65399d794632Smrg
65409d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
65419d794632Smrg
65429d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
65439d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6544c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6545c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6546c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6547c048b52eSmrgthen :
6548c048b52eSmrg  printf %s "(cached) " >&6
6549772b5186Smrgelse case e in #(
6550772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65519d794632Smrg/* end confdefs.h.  */
65529d794632Smrgint i;
65539d794632Smrg_ACEOF
6554c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
6555c048b52eSmrgthen :
65569d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
6557772b5186Smrgelse case e in #(
6558772b5186Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6559772b5186Smrgesac
65609d794632Smrgfi
6561772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6562772b5186Smrgesac
65639d794632Smrgfi
6564c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6565c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
65669d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
65679d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
65689d794632Smrgfi
65699d794632Smrg
65709d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
65719d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
65729d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
65739d794632Smrg	fi
65749d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6575c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6576c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6577c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6578c048b52eSmrgthen :
6579c048b52eSmrg  printf %s "(cached) " >&6
6580772b5186Smrgelse case e in #(
6581772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65829d794632Smrg/* end confdefs.h.  */
65839d794632Smrgint i;
65849d794632Smrg_ACEOF
6585c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
6586c048b52eSmrgthen :
65879d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6588772b5186Smrgelse case e in #(
6589772b5186Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6590772b5186Smrgesac
65919d794632Smrgfi
6592772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6593772b5186Smrgesac
65949d794632Smrgfi
6595c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6596c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
65979d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
65989d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
65999d794632Smrgfi
66009d794632Smrg
66019d794632Smrgfound="no"
66029d794632Smrg
66039d794632Smrg	if test $found = "no" ; then
6604e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
66059d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
66069d794632Smrg		fi
66079d794632Smrg
6608e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
66099d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
66109d794632Smrg		fi
66119d794632Smrg
66129d794632Smrg		CFLAGS="$CFLAGS -Wunused"
66139d794632Smrg
6614c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6615c048b52eSmrgprintf %s "checking if $CC supports -Wunused... " >&6; }
66169d794632Smrg		cacheid=xorg_cv_cc_flag__Wunused
6617c048b52eSmrg		if eval test \${$cacheid+y}
6618c048b52eSmrgthen :
6619c048b52eSmrg  printf %s "(cached) " >&6
6620772b5186Smrgelse case e in #(
6621772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66229d794632Smrg/* end confdefs.h.  */
66239d794632Smrgint i;
66249d794632Smrgint
6625c048b52eSmrgmain (void)
66269d794632Smrg{
66279d794632Smrg
66289d794632Smrg  ;
66299d794632Smrg  return 0;
66309d794632Smrg}
66319d794632Smrg_ACEOF
6632c048b52eSmrgif ac_fn_c_try_link "$LINENO"
6633c048b52eSmrgthen :
66349d794632Smrg  eval $cacheid=yes
6635772b5186Smrgelse case e in #(
6636772b5186Smrg  e) eval $cacheid=no ;;
6637772b5186Smrgesac
66389d794632Smrgfi
6639c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6640772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
6641772b5186Smrgesac
66429d794632Smrgfi
66439d794632Smrg
66449d794632Smrg
66459d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
66469d794632Smrg
66479d794632Smrg		eval supported=\$$cacheid
6648c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6649c048b52eSmrgprintf "%s\n" "$supported" >&6; }
66509d794632Smrg		if test "$supported" = "yes" ; then
66519d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
66529d794632Smrg			found="yes"
66539d794632Smrg		fi
66549d794632Smrg	fi
66559d794632Smrg
66569d794632Smrg
66579d794632Smrg
66589d794632Smrg
66599d794632Smrg
66609d794632Smrg
66619d794632Smrg
66629d794632Smrg
66639d794632Smrg
66649d794632Smrg
66659d794632Smrg
66669d794632Smrg
66679d794632Smrg
66689d794632Smrg
66699d794632Smrg
66709d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
66719d794632Smrg
66729d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
66739d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6674c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6675c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6676c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6677c048b52eSmrgthen :
6678c048b52eSmrg  printf %s "(cached) " >&6
6679772b5186Smrgelse case e in #(
6680772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66819d794632Smrg/* end confdefs.h.  */
66829d794632Smrgint i;
66839d794632Smrg_ACEOF
6684c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
6685c048b52eSmrgthen :
66869d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
6687772b5186Smrgelse case e in #(
6688772b5186Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6689772b5186Smrgesac
66909d794632Smrgfi
6691772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6692772b5186Smrgesac
66939d794632Smrgfi
6694c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6695c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
66969d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
66979d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
66989d794632Smrgfi
66999d794632Smrg
67009d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
67019d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
67029d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
67039d794632Smrg	fi
67049d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6705c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6706c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6707c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6708c048b52eSmrgthen :
6709c048b52eSmrg  printf %s "(cached) " >&6
6710772b5186Smrgelse case e in #(
6711772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67129d794632Smrg/* end confdefs.h.  */
67139d794632Smrgint i;
67149d794632Smrg_ACEOF
6715c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
6716c048b52eSmrgthen :
67179d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6718772b5186Smrgelse case e in #(
6719772b5186Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6720772b5186Smrgesac
67219d794632Smrgfi
6722772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6723772b5186Smrgesac
67249d794632Smrgfi
6725c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6726c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
67279d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
67289d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
67299d794632Smrgfi
67309d794632Smrg
67319d794632Smrgfound="no"
67329d794632Smrg
67339d794632Smrg	if test $found = "no" ; then
6734e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
67359d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
67369d794632Smrg		fi
67379d794632Smrg
6738e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
67399d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
67409d794632Smrg		fi
67419d794632Smrg
67429d794632Smrg		CFLAGS="$CFLAGS -Wuninitialized"
67439d794632Smrg
6744c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6745c048b52eSmrgprintf %s "checking if $CC supports -Wuninitialized... " >&6; }
67469d794632Smrg		cacheid=xorg_cv_cc_flag__Wuninitialized
6747c048b52eSmrg		if eval test \${$cacheid+y}
6748c048b52eSmrgthen :
6749c048b52eSmrg  printf %s "(cached) " >&6
6750772b5186Smrgelse case e in #(
6751772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67529d794632Smrg/* end confdefs.h.  */
67539d794632Smrgint i;
67549d794632Smrgint
6755c048b52eSmrgmain (void)
67569d794632Smrg{
67579d794632Smrg
67589d794632Smrg  ;
67599d794632Smrg  return 0;
67609d794632Smrg}
67619d794632Smrg_ACEOF
6762c048b52eSmrgif ac_fn_c_try_link "$LINENO"
6763c048b52eSmrgthen :
67649d794632Smrg  eval $cacheid=yes
6765772b5186Smrgelse case e in #(
6766772b5186Smrg  e) eval $cacheid=no ;;
6767772b5186Smrgesac
67689d794632Smrgfi
6769c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6770772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
6771772b5186Smrgesac
67729d794632Smrgfi
67739d794632Smrg
67749d794632Smrg
67759d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
67769d794632Smrg
67779d794632Smrg		eval supported=\$$cacheid
6778c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6779c048b52eSmrgprintf "%s\n" "$supported" >&6; }
67809d794632Smrg		if test "$supported" = "yes" ; then
67819d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
67829d794632Smrg			found="yes"
67839d794632Smrg		fi
67849d794632Smrg	fi
67859d794632Smrg
67869d794632Smrg
67879d794632Smrg
67889d794632Smrg
67899d794632Smrg
67909d794632Smrg
67919d794632Smrg
67929d794632Smrg
67939d794632Smrg
67949d794632Smrg
67959d794632Smrg
67969d794632Smrg
67979d794632Smrg
67989d794632Smrg
67999d794632Smrg
68009d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
68019d794632Smrg
68029d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
68039d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6804c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6805c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6806c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6807c048b52eSmrgthen :
6808c048b52eSmrg  printf %s "(cached) " >&6
6809772b5186Smrgelse case e in #(
6810772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68119d794632Smrg/* end confdefs.h.  */
68129d794632Smrgint i;
68139d794632Smrg_ACEOF
6814c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
6815c048b52eSmrgthen :
68169d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
6817772b5186Smrgelse case e in #(
6818772b5186Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6819772b5186Smrgesac
68209d794632Smrgfi
6821772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6822772b5186Smrgesac
68239d794632Smrgfi
6824c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6825c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
68269d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
68279d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
68289d794632Smrgfi
68299d794632Smrg
68309d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
68319d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
68329d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
68339d794632Smrg	fi
68349d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6835c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6836c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6837c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6838c048b52eSmrgthen :
6839c048b52eSmrg  printf %s "(cached) " >&6
6840772b5186Smrgelse case e in #(
6841772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68429d794632Smrg/* end confdefs.h.  */
68439d794632Smrgint i;
68449d794632Smrg_ACEOF
6845c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
6846c048b52eSmrgthen :
68479d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6848772b5186Smrgelse case e in #(
6849772b5186Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6850772b5186Smrgesac
68519d794632Smrgfi
6852772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6853772b5186Smrgesac
68549d794632Smrgfi
6855c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6856c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
68579d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
68589d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
68599d794632Smrgfi
68609d794632Smrg
68619d794632Smrgfound="no"
68629d794632Smrg
68639d794632Smrg	if test $found = "no" ; then
6864e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
68659d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
68669d794632Smrg		fi
68679d794632Smrg
6868e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
68699d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
68709d794632Smrg		fi
68719d794632Smrg
68729d794632Smrg		CFLAGS="$CFLAGS -Wshadow"
68739d794632Smrg
6874c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6875c048b52eSmrgprintf %s "checking if $CC supports -Wshadow... " >&6; }
68769d794632Smrg		cacheid=xorg_cv_cc_flag__Wshadow
6877c048b52eSmrg		if eval test \${$cacheid+y}
6878c048b52eSmrgthen :
6879c048b52eSmrg  printf %s "(cached) " >&6
6880772b5186Smrgelse case e in #(
6881772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68829d794632Smrg/* end confdefs.h.  */
68839d794632Smrgint i;
68849d794632Smrgint
6885c048b52eSmrgmain (void)
68869d794632Smrg{
68879d794632Smrg
68889d794632Smrg  ;
68899d794632Smrg  return 0;
68909d794632Smrg}
68919d794632Smrg_ACEOF
6892c048b52eSmrgif ac_fn_c_try_link "$LINENO"
6893c048b52eSmrgthen :
68949d794632Smrg  eval $cacheid=yes
6895772b5186Smrgelse case e in #(
6896772b5186Smrg  e) eval $cacheid=no ;;
6897772b5186Smrgesac
68989d794632Smrgfi
6899c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6900772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
6901772b5186Smrgesac
69029d794632Smrgfi
69039d794632Smrg
69049d794632Smrg
69059d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
69069d794632Smrg
69079d794632Smrg		eval supported=\$$cacheid
6908c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6909c048b52eSmrgprintf "%s\n" "$supported" >&6; }
69109d794632Smrg		if test "$supported" = "yes" ; then
69119d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
69129d794632Smrg			found="yes"
69139d794632Smrg		fi
69149d794632Smrg	fi
69159d794632Smrg
69169d794632Smrg
69179d794632Smrg
69189d794632Smrg
69199d794632Smrg
69209d794632Smrg
69219d794632Smrg
69229d794632Smrg
69239d794632Smrg
69249d794632Smrg
69259d794632Smrg
69269d794632Smrg
69279d794632Smrg
69289d794632Smrg
69299d794632Smrg
69309d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
69319d794632Smrg
69329d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
69339d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6934c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6935c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6936c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6937c048b52eSmrgthen :
6938c048b52eSmrg  printf %s "(cached) " >&6
6939772b5186Smrgelse case e in #(
6940772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69419d794632Smrg/* end confdefs.h.  */
69429d794632Smrgint i;
69439d794632Smrg_ACEOF
6944c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
6945c048b52eSmrgthen :
69469d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
6947772b5186Smrgelse case e in #(
6948772b5186Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6949772b5186Smrgesac
69509d794632Smrgfi
6951772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6952772b5186Smrgesac
69539d794632Smrgfi
6954c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6955c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
69569d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
69579d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
69589d794632Smrgfi
69599d794632Smrg
69609d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
69619d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
69629d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
69639d794632Smrg	fi
69649d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6965c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6966c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6967c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6968c048b52eSmrgthen :
6969c048b52eSmrg  printf %s "(cached) " >&6
6970772b5186Smrgelse case e in #(
6971772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69729d794632Smrg/* end confdefs.h.  */
69739d794632Smrgint i;
69749d794632Smrg_ACEOF
6975c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
6976c048b52eSmrgthen :
69779d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6978772b5186Smrgelse case e in #(
6979772b5186Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6980772b5186Smrgesac
69819d794632Smrgfi
6982772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6983772b5186Smrgesac
69849d794632Smrgfi
6985c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6986c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
69879d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
69889d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
69899d794632Smrgfi
69909d794632Smrg
69919d794632Smrgfound="no"
69929d794632Smrg
69939d794632Smrg	if test $found = "no" ; then
6994e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
69959d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
69969d794632Smrg		fi
69979d794632Smrg
6998e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
69999d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
70009d794632Smrg		fi
70019d794632Smrg
7002e8ac26b0Smrg		CFLAGS="$CFLAGS -Wmissing-noreturn"
70039d794632Smrg
7004c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
7005c048b52eSmrgprintf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
7006e8ac26b0Smrg		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
7007c048b52eSmrg		if eval test \${$cacheid+y}
7008c048b52eSmrgthen :
7009c048b52eSmrg  printf %s "(cached) " >&6
7010772b5186Smrgelse case e in #(
7011772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
70129d794632Smrg/* end confdefs.h.  */
70139d794632Smrgint i;
70149d794632Smrgint
7015c048b52eSmrgmain (void)
70169d794632Smrg{
70179d794632Smrg
70189d794632Smrg  ;
70199d794632Smrg  return 0;
70209d794632Smrg}
70219d794632Smrg_ACEOF
7022c048b52eSmrgif ac_fn_c_try_link "$LINENO"
7023c048b52eSmrgthen :
70249d794632Smrg  eval $cacheid=yes
7025772b5186Smrgelse case e in #(
7026772b5186Smrg  e) eval $cacheid=no ;;
7027772b5186Smrgesac
70289d794632Smrgfi
7029c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7030772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
7031772b5186Smrgesac
70329d794632Smrgfi
70339d794632Smrg
70349d794632Smrg
70359d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
70369d794632Smrg
70379d794632Smrg		eval supported=\$$cacheid
7038c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7039c048b52eSmrgprintf "%s\n" "$supported" >&6; }
70409d794632Smrg		if test "$supported" = "yes" ; then
7041e8ac26b0Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
70429d794632Smrg			found="yes"
70439d794632Smrg		fi
70449d794632Smrg	fi
70459d794632Smrg
70469d794632Smrg
70479d794632Smrg
70489d794632Smrg
70499d794632Smrg
70509d794632Smrg
70519d794632Smrg
70529d794632Smrg
70539d794632Smrg
70549d794632Smrg
70559d794632Smrg
70569d794632Smrg
70579d794632Smrg
70589d794632Smrg
70599d794632Smrg
70609d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
70619d794632Smrg
70629d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
70639d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7064c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7065c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7066c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7067c048b52eSmrgthen :
7068c048b52eSmrg  printf %s "(cached) " >&6
7069772b5186Smrgelse case e in #(
7070772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
70719d794632Smrg/* end confdefs.h.  */
70729d794632Smrgint i;
70739d794632Smrg_ACEOF
7074c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
7075c048b52eSmrgthen :
70769d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
7077772b5186Smrgelse case e in #(
7078772b5186Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7079772b5186Smrgesac
70809d794632Smrgfi
7081772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7082772b5186Smrgesac
70839d794632Smrgfi
7084c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7085c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
70869d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
70879d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
70889d794632Smrgfi
70899d794632Smrg
70909d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
70919d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
70929d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
70939d794632Smrg	fi
70949d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7095c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7096c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7097c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7098c048b52eSmrgthen :
7099c048b52eSmrg  printf %s "(cached) " >&6
7100772b5186Smrgelse case e in #(
7101772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71029d794632Smrg/* end confdefs.h.  */
71039d794632Smrgint i;
71049d794632Smrg_ACEOF
7105c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
7106c048b52eSmrgthen :
71079d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7108772b5186Smrgelse case e in #(
7109772b5186Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7110772b5186Smrgesac
71119d794632Smrgfi
7112772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7113772b5186Smrgesac
71149d794632Smrgfi
7115c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7116c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
71179d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
71189d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
71199d794632Smrgfi
71209d794632Smrg
71219d794632Smrgfound="no"
71229d794632Smrg
71239d794632Smrg	if test $found = "no" ; then
7124e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
71259d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
71269d794632Smrg		fi
71279d794632Smrg
7128e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
71299d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
71309d794632Smrg		fi
71319d794632Smrg
7132e8ac26b0Smrg		CFLAGS="$CFLAGS -Wmissing-format-attribute"
71339d794632Smrg
7134c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
7135c048b52eSmrgprintf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
7136e8ac26b0Smrg		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
7137c048b52eSmrg		if eval test \${$cacheid+y}
7138c048b52eSmrgthen :
7139c048b52eSmrg  printf %s "(cached) " >&6
7140772b5186Smrgelse case e in #(
7141772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71429d794632Smrg/* end confdefs.h.  */
71439d794632Smrgint i;
71449d794632Smrgint
7145c048b52eSmrgmain (void)
71469d794632Smrg{
71479d794632Smrg
71489d794632Smrg  ;
71499d794632Smrg  return 0;
71509d794632Smrg}
71519d794632Smrg_ACEOF
7152c048b52eSmrgif ac_fn_c_try_link "$LINENO"
7153c048b52eSmrgthen :
71549d794632Smrg  eval $cacheid=yes
7155772b5186Smrgelse case e in #(
7156772b5186Smrg  e) eval $cacheid=no ;;
7157772b5186Smrgesac
71589d794632Smrgfi
7159c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7160772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
7161772b5186Smrgesac
71629d794632Smrgfi
71639d794632Smrg
71649d794632Smrg
71659d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
71669d794632Smrg
71679d794632Smrg		eval supported=\$$cacheid
7168c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7169c048b52eSmrgprintf "%s\n" "$supported" >&6; }
71709d794632Smrg		if test "$supported" = "yes" ; then
7171e8ac26b0Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
71729d794632Smrg			found="yes"
71739d794632Smrg		fi
71749d794632Smrg	fi
71759d794632Smrg
71769d794632Smrg
71779d794632Smrg
71789d794632Smrg
71799d794632Smrg
71809d794632Smrg
71819d794632Smrg
71829d794632Smrg
71839d794632Smrg
71849d794632Smrg
71859d794632Smrg
71869d794632Smrg
71879d794632Smrg
71889d794632Smrg
71899d794632Smrg
71909d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
71919d794632Smrg
71929d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
71939d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7194c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7195c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7196c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7197c048b52eSmrgthen :
7198c048b52eSmrg  printf %s "(cached) " >&6
7199772b5186Smrgelse case e in #(
7200772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
72019d794632Smrg/* end confdefs.h.  */
72029d794632Smrgint i;
72039d794632Smrg_ACEOF
7204c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
7205c048b52eSmrgthen :
72069d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
7207772b5186Smrgelse case e in #(
7208772b5186Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7209772b5186Smrgesac
72109d794632Smrgfi
7211772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7212772b5186Smrgesac
72139d794632Smrgfi
7214c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7215c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
72169d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
72179d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
72189d794632Smrgfi
72199d794632Smrg
72209d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
72219d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
72229d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
72239d794632Smrg	fi
72249d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7225c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7226c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7227c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7228c048b52eSmrgthen :
7229c048b52eSmrg  printf %s "(cached) " >&6
7230772b5186Smrgelse case e in #(
7231772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
72329d794632Smrg/* end confdefs.h.  */
72339d794632Smrgint i;
72349d794632Smrg_ACEOF
7235c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
7236c048b52eSmrgthen :
72379d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7238772b5186Smrgelse case e in #(
7239772b5186Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7240772b5186Smrgesac
72419d794632Smrgfi
7242772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7243772b5186Smrgesac
72449d794632Smrgfi
7245c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7246c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
72479d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
72489d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
72499d794632Smrgfi
72509d794632Smrg
72519d794632Smrgfound="no"
72529d794632Smrg
72539d794632Smrg	if test $found = "no" ; then
7254e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
72559d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
72569d794632Smrg		fi
72579d794632Smrg
7258e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
72599d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
72609d794632Smrg		fi
72619d794632Smrg
7262e8ac26b0Smrg		CFLAGS="$CFLAGS -Wredundant-decls"
72639d794632Smrg
7264c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7265c048b52eSmrgprintf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7266e8ac26b0Smrg		cacheid=xorg_cv_cc_flag__Wredundant_decls
7267c048b52eSmrg		if eval test \${$cacheid+y}
7268c048b52eSmrgthen :
7269c048b52eSmrg  printf %s "(cached) " >&6
7270772b5186Smrgelse case e in #(
7271772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
72729d794632Smrg/* end confdefs.h.  */
72739d794632Smrgint i;
72749d794632Smrgint
7275c048b52eSmrgmain (void)
72769d794632Smrg{
72779d794632Smrg
72789d794632Smrg  ;
72799d794632Smrg  return 0;
72809d794632Smrg}
72819d794632Smrg_ACEOF
7282c048b52eSmrgif ac_fn_c_try_link "$LINENO"
7283c048b52eSmrgthen :
72849d794632Smrg  eval $cacheid=yes
7285772b5186Smrgelse case e in #(
7286772b5186Smrg  e) eval $cacheid=no ;;
7287772b5186Smrgesac
72889d794632Smrgfi
7289c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7290772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
7291772b5186Smrgesac
72929d794632Smrgfi
72939d794632Smrg
72949d794632Smrg
72959d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
72969d794632Smrg
72979d794632Smrg		eval supported=\$$cacheid
7298c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7299c048b52eSmrgprintf "%s\n" "$supported" >&6; }
73009d794632Smrg		if test "$supported" = "yes" ; then
7301e8ac26b0Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
73029d794632Smrg			found="yes"
73039d794632Smrg		fi
73049d794632Smrg	fi
73059d794632Smrg
73069d794632Smrg
73079d794632Smrg
73089d794632Smrg
73099d794632Smrg
73109d794632Smrg
73119d794632Smrg
73129d794632Smrg
73139d794632Smrg
73149d794632Smrg
73159d794632Smrg
73169d794632Smrg
73179d794632Smrg
73189d794632Smrg
73199d794632Smrg
73209d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
73219d794632Smrg
73229d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
73239d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7324c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7325c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7326c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7327c048b52eSmrgthen :
7328c048b52eSmrg  printf %s "(cached) " >&6
7329772b5186Smrgelse case e in #(
7330772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
73319d794632Smrg/* end confdefs.h.  */
73329d794632Smrgint i;
73339d794632Smrg_ACEOF
7334c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
7335c048b52eSmrgthen :
73369d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
7337772b5186Smrgelse case e in #(
7338772b5186Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7339772b5186Smrgesac
73409d794632Smrgfi
7341772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7342772b5186Smrgesac
73439d794632Smrgfi
7344c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7345c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
73469d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
73479d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
73489d794632Smrgfi
73499d794632Smrg
73509d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
73519d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
73529d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
73539d794632Smrg	fi
73549d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7355c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7356c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7357c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7358c048b52eSmrgthen :
7359c048b52eSmrg  printf %s "(cached) " >&6
7360772b5186Smrgelse case e in #(
7361772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
73629d794632Smrg/* end confdefs.h.  */
73639d794632Smrgint i;
73649d794632Smrg_ACEOF
7365c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
7366c048b52eSmrgthen :
73679d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7368772b5186Smrgelse case e in #(
7369772b5186Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7370772b5186Smrgesac
73719d794632Smrgfi
7372772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7373772b5186Smrgesac
73749d794632Smrgfi
7375c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7376c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
73779d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
73789d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
73799d794632Smrgfi
73809d794632Smrg
73819d794632Smrgfound="no"
73829d794632Smrg
73839d794632Smrg	if test $found = "no" ; then
7384e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
73859d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
73869d794632Smrg		fi
73879d794632Smrg
7388e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
73899d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
73909d794632Smrg		fi
73919d794632Smrg
7392e8ac26b0Smrg		CFLAGS="$CFLAGS -Wlogical-op"
73939d794632Smrg
7394c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7395c048b52eSmrgprintf %s "checking if $CC supports -Wlogical-op... " >&6; }
7396e8ac26b0Smrg		cacheid=xorg_cv_cc_flag__Wlogical_op
7397c048b52eSmrg		if eval test \${$cacheid+y}
7398c048b52eSmrgthen :
7399c048b52eSmrg  printf %s "(cached) " >&6
7400772b5186Smrgelse case e in #(
7401772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
74029d794632Smrg/* end confdefs.h.  */
74039d794632Smrgint i;
74049d794632Smrgint
7405c048b52eSmrgmain (void)
74069d794632Smrg{
74079d794632Smrg
74089d794632Smrg  ;
74099d794632Smrg  return 0;
74109d794632Smrg}
74119d794632Smrg_ACEOF
7412c048b52eSmrgif ac_fn_c_try_link "$LINENO"
7413c048b52eSmrgthen :
74149d794632Smrg  eval $cacheid=yes
7415772b5186Smrgelse case e in #(
7416772b5186Smrg  e) eval $cacheid=no ;;
7417772b5186Smrgesac
74189d794632Smrgfi
7419c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7420772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
7421772b5186Smrgesac
74229d794632Smrgfi
74239d794632Smrg
74249d794632Smrg
74259d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
74269d794632Smrg
74279d794632Smrg		eval supported=\$$cacheid
7428c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7429c048b52eSmrgprintf "%s\n" "$supported" >&6; }
74309d794632Smrg		if test "$supported" = "yes" ; then
7431e8ac26b0Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
74329d794632Smrg			found="yes"
74339d794632Smrg		fi
74349d794632Smrg	fi
74359d794632Smrg
74369d794632Smrg
74379d794632Smrg
74389d794632Smrg# These are currently disabled because they are noisy.  They will be enabled
74399d794632Smrg# in the future once the codebase is sufficiently modernized to silence
74409d794632Smrg# them.  For now, I don't want them to drown out the other warnings.
74419d794632Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
74429d794632Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7443e8ac26b0Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
74449d794632Smrg
7445772b5186Smrg# Turn some warnings into errors, so we don't accidentally get successful builds
74469d794632Smrg# when there are problems that should be fixed.
74479d794632Smrg
74489d794632Smrgif test "x$SELECTIVE_WERROR" = "xyes" ; then
74499d794632Smrg
74509d794632Smrg
74519d794632Smrg
74529d794632Smrg
74539d794632Smrg
74549d794632Smrg
74559d794632Smrg
74569d794632Smrg
74579d794632Smrg
74589d794632Smrg
74599d794632Smrg
74609d794632Smrg
74619d794632Smrg
74629d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
74639d794632Smrg
74649d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
74659d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7466c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7467c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7468c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7469c048b52eSmrgthen :
7470c048b52eSmrg  printf %s "(cached) " >&6
7471772b5186Smrgelse case e in #(
7472772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
74739d794632Smrg/* end confdefs.h.  */
74749d794632Smrgint i;
74759d794632Smrg_ACEOF
7476c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
7477c048b52eSmrgthen :
74789d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
7479772b5186Smrgelse case e in #(
7480772b5186Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7481772b5186Smrgesac
74829d794632Smrgfi
7483772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7484772b5186Smrgesac
74859d794632Smrgfi
7486c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7487c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
74889d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
74899d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
74909d794632Smrgfi
74919d794632Smrg
74929d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
74939d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
74949d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
74959d794632Smrg	fi
74969d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7497c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7498c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7499c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7500c048b52eSmrgthen :
7501c048b52eSmrg  printf %s "(cached) " >&6
7502772b5186Smrgelse case e in #(
7503772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
75049d794632Smrg/* end confdefs.h.  */
75059d794632Smrgint i;
75069d794632Smrg_ACEOF
7507c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
7508c048b52eSmrgthen :
75099d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7510772b5186Smrgelse case e in #(
7511772b5186Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7512772b5186Smrgesac
75139d794632Smrgfi
7514772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7515772b5186Smrgesac
75169d794632Smrgfi
7517c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7518c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
75199d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
75209d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
75219d794632Smrgfi
75229d794632Smrg
75239d794632Smrgfound="no"
75249d794632Smrg
75259d794632Smrg	if test $found = "no" ; then
7526e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
75279d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
75289d794632Smrg		fi
75299d794632Smrg
7530e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
75319d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
75329d794632Smrg		fi
75339d794632Smrg
75349d794632Smrg		CFLAGS="$CFLAGS -Werror=implicit"
75359d794632Smrg
7536c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7537c048b52eSmrgprintf %s "checking if $CC supports -Werror=implicit... " >&6; }
7538e8ac26b0Smrg		cacheid=xorg_cv_cc_flag__Werror_implicit
7539c048b52eSmrg		if eval test \${$cacheid+y}
7540c048b52eSmrgthen :
7541c048b52eSmrg  printf %s "(cached) " >&6
7542772b5186Smrgelse case e in #(
7543772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
75449d794632Smrg/* end confdefs.h.  */
75459d794632Smrgint i;
75469d794632Smrgint
7547c048b52eSmrgmain (void)
75489d794632Smrg{
75499d794632Smrg
75509d794632Smrg  ;
75519d794632Smrg  return 0;
75529d794632Smrg}
75539d794632Smrg_ACEOF
7554c048b52eSmrgif ac_fn_c_try_link "$LINENO"
7555c048b52eSmrgthen :
75569d794632Smrg  eval $cacheid=yes
7557772b5186Smrgelse case e in #(
7558772b5186Smrg  e) eval $cacheid=no ;;
7559772b5186Smrgesac
75609d794632Smrgfi
7561c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7562772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
7563772b5186Smrgesac
75649d794632Smrgfi
75659d794632Smrg
75669d794632Smrg
75679d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
75689d794632Smrg
75699d794632Smrg		eval supported=\$$cacheid
7570c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7571c048b52eSmrgprintf "%s\n" "$supported" >&6; }
75729d794632Smrg		if test "$supported" = "yes" ; then
75739d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
75749d794632Smrg			found="yes"
75759d794632Smrg		fi
75769d794632Smrg	fi
75779d794632Smrg
75789d794632Smrg	if test $found = "no" ; then
7579e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
75809d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
75819d794632Smrg		fi
75829d794632Smrg
7583e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
75849d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
75859d794632Smrg		fi
75869d794632Smrg
75879d794632Smrg		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
75889d794632Smrg
7589c048b52eSmrg		{ 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
7590c048b52eSmrgprintf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7591e8ac26b0Smrg		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7592c048b52eSmrg		if eval test \${$cacheid+y}
7593c048b52eSmrgthen :
7594c048b52eSmrg  printf %s "(cached) " >&6
7595772b5186Smrgelse case e in #(
7596772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
75979d794632Smrg/* end confdefs.h.  */
75989d794632Smrgint i;
75999d794632Smrgint
7600c048b52eSmrgmain (void)
76019d794632Smrg{
76029d794632Smrg
76039d794632Smrg  ;
76049d794632Smrg  return 0;
76059d794632Smrg}
76069d794632Smrg_ACEOF
7607c048b52eSmrgif ac_fn_c_try_link "$LINENO"
7608c048b52eSmrgthen :
76099d794632Smrg  eval $cacheid=yes
7610772b5186Smrgelse case e in #(
7611772b5186Smrg  e) eval $cacheid=no ;;
7612772b5186Smrgesac
76139d794632Smrgfi
7614c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7615772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
7616772b5186Smrgesac
76179d794632Smrgfi
76189d794632Smrg
76199d794632Smrg
76209d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
76219d794632Smrg
76229d794632Smrg		eval supported=\$$cacheid
7623c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7624c048b52eSmrgprintf "%s\n" "$supported" >&6; }
76259d794632Smrg		if test "$supported" = "yes" ; then
76269d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
76279d794632Smrg			found="yes"
76289d794632Smrg		fi
76299d794632Smrg	fi
76309d794632Smrg
76319d794632Smrg
76329d794632Smrg
76339d794632Smrg
76349d794632Smrg
76359d794632Smrg
76369d794632Smrg
76379d794632Smrg
76389d794632Smrg
76399d794632Smrg
76409d794632Smrg
76419d794632Smrg
76429d794632Smrg
76439d794632Smrg
76449d794632Smrg
76459d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
76469d794632Smrg
76479d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
76489d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7649c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7650c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7651c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7652c048b52eSmrgthen :
7653c048b52eSmrg  printf %s "(cached) " >&6
7654772b5186Smrgelse case e in #(
7655772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
76569d794632Smrg/* end confdefs.h.  */
76579d794632Smrgint i;
76589d794632Smrg_ACEOF
7659c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
7660c048b52eSmrgthen :
76619d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
7662772b5186Smrgelse case e in #(
7663772b5186Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7664772b5186Smrgesac
76659d794632Smrgfi
7666772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7667772b5186Smrgesac
76689d794632Smrgfi
7669c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7670c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
76719d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
76729d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
76739d794632Smrgfi
76749d794632Smrg
76759d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
76769d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
76779d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
76789d794632Smrg	fi
76799d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7680c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7681c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7682c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7683c048b52eSmrgthen :
7684c048b52eSmrg  printf %s "(cached) " >&6
7685772b5186Smrgelse case e in #(
7686772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
76879d794632Smrg/* end confdefs.h.  */
76889d794632Smrgint i;
76899d794632Smrg_ACEOF
7690c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
7691c048b52eSmrgthen :
76929d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7693772b5186Smrgelse case e in #(
7694772b5186Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7695772b5186Smrgesac
76969d794632Smrgfi
7697772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7698772b5186Smrgesac
76999d794632Smrgfi
7700c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7701c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
77029d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
77039d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
77049d794632Smrgfi
77059d794632Smrg
77069d794632Smrgfound="no"
77079d794632Smrg
77089d794632Smrg	if test $found = "no" ; then
7709e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
77109d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
77119d794632Smrg		fi
77129d794632Smrg
7713e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
77149d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
77159d794632Smrg		fi
77169d794632Smrg
77179d794632Smrg		CFLAGS="$CFLAGS -Werror=nonnull"
77189d794632Smrg
7719c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7720c048b52eSmrgprintf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7721e8ac26b0Smrg		cacheid=xorg_cv_cc_flag__Werror_nonnull
7722c048b52eSmrg		if eval test \${$cacheid+y}
7723c048b52eSmrgthen :
7724c048b52eSmrg  printf %s "(cached) " >&6
7725772b5186Smrgelse case e in #(
7726772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77279d794632Smrg/* end confdefs.h.  */
77289d794632Smrgint i;
77299d794632Smrgint
7730c048b52eSmrgmain (void)
77319d794632Smrg{
77329d794632Smrg
77339d794632Smrg  ;
77349d794632Smrg  return 0;
77359d794632Smrg}
77369d794632Smrg_ACEOF
7737c048b52eSmrgif ac_fn_c_try_link "$LINENO"
7738c048b52eSmrgthen :
77399d794632Smrg  eval $cacheid=yes
7740772b5186Smrgelse case e in #(
7741772b5186Smrg  e) eval $cacheid=no ;;
7742772b5186Smrgesac
77439d794632Smrgfi
7744c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7745772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
7746772b5186Smrgesac
77479d794632Smrgfi
77489d794632Smrg
77499d794632Smrg
77509d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
77519d794632Smrg
77529d794632Smrg		eval supported=\$$cacheid
7753c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7754c048b52eSmrgprintf "%s\n" "$supported" >&6; }
77559d794632Smrg		if test "$supported" = "yes" ; then
77569d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
77579d794632Smrg			found="yes"
77589d794632Smrg		fi
77599d794632Smrg	fi
77609d794632Smrg
77619d794632Smrg
77629d794632Smrg
77639d794632Smrg
77649d794632Smrg
77659d794632Smrg
77669d794632Smrg
77679d794632Smrg
77689d794632Smrg
77699d794632Smrg
77709d794632Smrg
77719d794632Smrg
77729d794632Smrg
77739d794632Smrg
77749d794632Smrg
77759d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
77769d794632Smrg
77779d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
77789d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7779c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7780c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7781c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7782c048b52eSmrgthen :
7783c048b52eSmrg  printf %s "(cached) " >&6
7784772b5186Smrgelse case e in #(
7785772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77869d794632Smrg/* end confdefs.h.  */
77879d794632Smrgint i;
77889d794632Smrg_ACEOF
7789c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
7790c048b52eSmrgthen :
77919d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
7792772b5186Smrgelse case e in #(
7793772b5186Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7794772b5186Smrgesac
77959d794632Smrgfi
7796772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7797772b5186Smrgesac
77989d794632Smrgfi
7799c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7800c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
78019d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
78029d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
78039d794632Smrgfi
78049d794632Smrg
78059d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
78069d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
78079d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
78089d794632Smrg	fi
78099d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7810c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7811c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7812c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7813c048b52eSmrgthen :
7814c048b52eSmrg  printf %s "(cached) " >&6
7815772b5186Smrgelse case e in #(
7816772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
78179d794632Smrg/* end confdefs.h.  */
78189d794632Smrgint i;
78199d794632Smrg_ACEOF
7820c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
7821c048b52eSmrgthen :
78229d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7823772b5186Smrgelse case e in #(
7824772b5186Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7825772b5186Smrgesac
78269d794632Smrgfi
7827772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7828772b5186Smrgesac
78299d794632Smrgfi
7830c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7831c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
78329d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
78339d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
78349d794632Smrgfi
78359d794632Smrg
78369d794632Smrgfound="no"
78379d794632Smrg
78389d794632Smrg	if test $found = "no" ; then
7839e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
78409d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
78419d794632Smrg		fi
78429d794632Smrg
7843e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
78449d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
78459d794632Smrg		fi
78469d794632Smrg
78479d794632Smrg		CFLAGS="$CFLAGS -Werror=init-self"
78489d794632Smrg
7849c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7850c048b52eSmrgprintf %s "checking if $CC supports -Werror=init-self... " >&6; }
7851e8ac26b0Smrg		cacheid=xorg_cv_cc_flag__Werror_init_self
7852c048b52eSmrg		if eval test \${$cacheid+y}
7853c048b52eSmrgthen :
7854c048b52eSmrg  printf %s "(cached) " >&6
7855772b5186Smrgelse case e in #(
7856772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
78579d794632Smrg/* end confdefs.h.  */
78589d794632Smrgint i;
78599d794632Smrgint
7860c048b52eSmrgmain (void)
78619d794632Smrg{
78629d794632Smrg
78639d794632Smrg  ;
78649d794632Smrg  return 0;
78659d794632Smrg}
78669d794632Smrg_ACEOF
7867c048b52eSmrgif ac_fn_c_try_link "$LINENO"
7868c048b52eSmrgthen :
78699d794632Smrg  eval $cacheid=yes
7870772b5186Smrgelse case e in #(
7871772b5186Smrg  e) eval $cacheid=no ;;
7872772b5186Smrgesac
78739d794632Smrgfi
7874c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7875772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
7876772b5186Smrgesac
78779d794632Smrgfi
78789d794632Smrg
78799d794632Smrg
78809d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
78819d794632Smrg
78829d794632Smrg		eval supported=\$$cacheid
7883c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7884c048b52eSmrgprintf "%s\n" "$supported" >&6; }
78859d794632Smrg		if test "$supported" = "yes" ; then
78869d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
78879d794632Smrg			found="yes"
78889d794632Smrg		fi
78899d794632Smrg	fi
78909d794632Smrg
78919d794632Smrg
78929d794632Smrg
78939d794632Smrg
78949d794632Smrg
78959d794632Smrg
78969d794632Smrg
78979d794632Smrg
78989d794632Smrg
78999d794632Smrg
79009d794632Smrg
79019d794632Smrg
79029d794632Smrg
79039d794632Smrg
79049d794632Smrg
79059d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
79069d794632Smrg
79079d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
79089d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7909c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7910c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7911c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7912c048b52eSmrgthen :
7913c048b52eSmrg  printf %s "(cached) " >&6
7914772b5186Smrgelse case e in #(
7915772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79169d794632Smrg/* end confdefs.h.  */
79179d794632Smrgint i;
79189d794632Smrg_ACEOF
7919c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
7920c048b52eSmrgthen :
79219d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
7922772b5186Smrgelse case e in #(
7923772b5186Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7924772b5186Smrgesac
79259d794632Smrgfi
7926772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7927772b5186Smrgesac
79289d794632Smrgfi
7929c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7930c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
79319d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
79329d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
79339d794632Smrgfi
79349d794632Smrg
79359d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
79369d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
79379d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
79389d794632Smrg	fi
79399d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7940c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7941c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7942c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7943c048b52eSmrgthen :
7944c048b52eSmrg  printf %s "(cached) " >&6
7945772b5186Smrgelse case e in #(
7946772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79479d794632Smrg/* end confdefs.h.  */
79489d794632Smrgint i;
79499d794632Smrg_ACEOF
7950c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
7951c048b52eSmrgthen :
79529d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7953772b5186Smrgelse case e in #(
7954772b5186Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7955772b5186Smrgesac
79569d794632Smrgfi
7957772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7958772b5186Smrgesac
79599d794632Smrgfi
7960c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7961c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
79629d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
79639d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
79649d794632Smrgfi
79659d794632Smrg
79669d794632Smrgfound="no"
79679d794632Smrg
79689d794632Smrg	if test $found = "no" ; then
7969e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
79709d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
79719d794632Smrg		fi
79729d794632Smrg
7973e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
79749d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
79759d794632Smrg		fi
79769d794632Smrg
79779d794632Smrg		CFLAGS="$CFLAGS -Werror=main"
79789d794632Smrg
7979c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7980c048b52eSmrgprintf %s "checking if $CC supports -Werror=main... " >&6; }
7981e8ac26b0Smrg		cacheid=xorg_cv_cc_flag__Werror_main
7982c048b52eSmrg		if eval test \${$cacheid+y}
7983c048b52eSmrgthen :
7984c048b52eSmrg  printf %s "(cached) " >&6
7985772b5186Smrgelse case e in #(
7986772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79879d794632Smrg/* end confdefs.h.  */
79889d794632Smrgint i;
79899d794632Smrgint
7990c048b52eSmrgmain (void)
79919d794632Smrg{
79929d794632Smrg
79939d794632Smrg  ;
79949d794632Smrg  return 0;
79959d794632Smrg}
79969d794632Smrg_ACEOF
7997c048b52eSmrgif ac_fn_c_try_link "$LINENO"
7998c048b52eSmrgthen :
79999d794632Smrg  eval $cacheid=yes
8000772b5186Smrgelse case e in #(
8001772b5186Smrg  e) eval $cacheid=no ;;
8002772b5186Smrgesac
80039d794632Smrgfi
8004c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8005772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
8006772b5186Smrgesac
80079d794632Smrgfi
80089d794632Smrg
80099d794632Smrg
80109d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
80119d794632Smrg
80129d794632Smrg		eval supported=\$$cacheid
8013c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8014c048b52eSmrgprintf "%s\n" "$supported" >&6; }
80159d794632Smrg		if test "$supported" = "yes" ; then
80169d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
80179d794632Smrg			found="yes"
80189d794632Smrg		fi
80199d794632Smrg	fi
80209d794632Smrg
80219d794632Smrg
80229d794632Smrg
80239d794632Smrg
80249d794632Smrg
80259d794632Smrg
80269d794632Smrg
80279d794632Smrg
80289d794632Smrg
80299d794632Smrg
80309d794632Smrg
80319d794632Smrg
80329d794632Smrg
80339d794632Smrg
80349d794632Smrg
80359d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
80369d794632Smrg
80379d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
80389d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8039c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8040c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8041c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8042c048b52eSmrgthen :
8043c048b52eSmrg  printf %s "(cached) " >&6
8044772b5186Smrgelse case e in #(
8045772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
80469d794632Smrg/* end confdefs.h.  */
80479d794632Smrgint i;
80489d794632Smrg_ACEOF
8049c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
8050c048b52eSmrgthen :
80519d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
8052772b5186Smrgelse case e in #(
8053772b5186Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8054772b5186Smrgesac
80559d794632Smrgfi
8056772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8057772b5186Smrgesac
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
8075772b5186Smrgelse case e in #(
8076772b5186Smrg  e) 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
8083772b5186Smrgelse case e in #(
8084772b5186Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8085772b5186Smrgesac
80869d794632Smrgfi
8087772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8088772b5186Smrgesac
80899d794632Smrgfi
8090c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8091c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
80929d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
80939d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
80949d794632Smrgfi
80959d794632Smrg
80969d794632Smrgfound="no"
80979d794632Smrg
80989d794632Smrg	if test $found = "no" ; then
8099e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
81009d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
81019d794632Smrg		fi
81029d794632Smrg
8103e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
81049d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
81059d794632Smrg		fi
81069d794632Smrg
81079d794632Smrg		CFLAGS="$CFLAGS -Werror=missing-braces"
81089d794632Smrg
8109c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
8110c048b52eSmrgprintf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
8111e8ac26b0Smrg		cacheid=xorg_cv_cc_flag__Werror_missing_braces
8112c048b52eSmrg		if eval test \${$cacheid+y}
8113c048b52eSmrgthen :
8114c048b52eSmrg  printf %s "(cached) " >&6
8115772b5186Smrgelse case e in #(
8116772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81179d794632Smrg/* end confdefs.h.  */
81189d794632Smrgint i;
81199d794632Smrgint
8120c048b52eSmrgmain (void)
81219d794632Smrg{
81229d794632Smrg
81239d794632Smrg  ;
81249d794632Smrg  return 0;
81259d794632Smrg}
81269d794632Smrg_ACEOF
8127c048b52eSmrgif ac_fn_c_try_link "$LINENO"
8128c048b52eSmrgthen :
81299d794632Smrg  eval $cacheid=yes
8130772b5186Smrgelse case e in #(
8131772b5186Smrg  e) eval $cacheid=no ;;
8132772b5186Smrgesac
81339d794632Smrgfi
8134c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8135772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
8136772b5186Smrgesac
81379d794632Smrgfi
81389d794632Smrg
81399d794632Smrg
81409d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
81419d794632Smrg
81429d794632Smrg		eval supported=\$$cacheid
8143c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8144c048b52eSmrgprintf "%s\n" "$supported" >&6; }
81459d794632Smrg		if test "$supported" = "yes" ; then
81469d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
81479d794632Smrg			found="yes"
81489d794632Smrg		fi
81499d794632Smrg	fi
81509d794632Smrg
81519d794632Smrg
81529d794632Smrg
81539d794632Smrg
81549d794632Smrg
81559d794632Smrg
81569d794632Smrg
81579d794632Smrg
81589d794632Smrg
81599d794632Smrg
81609d794632Smrg
81619d794632Smrg
81629d794632Smrg
81639d794632Smrg
81649d794632Smrg
81659d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
81669d794632Smrg
81679d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
81689d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8169c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8170c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8171c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8172c048b52eSmrgthen :
8173c048b52eSmrg  printf %s "(cached) " >&6
8174772b5186Smrgelse case e in #(
8175772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81769d794632Smrg/* end confdefs.h.  */
81779d794632Smrgint i;
81789d794632Smrg_ACEOF
8179c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
8180c048b52eSmrgthen :
81819d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
8182772b5186Smrgelse case e in #(
8183772b5186Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8184772b5186Smrgesac
81859d794632Smrgfi
8186772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8187772b5186Smrgesac
81889d794632Smrgfi
8189c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8190c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
81919d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
81929d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
81939d794632Smrgfi
81949d794632Smrg
81959d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
81969d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
81979d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
81989d794632Smrg	fi
81999d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8200c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8201c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8202c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8203c048b52eSmrgthen :
8204c048b52eSmrg  printf %s "(cached) " >&6
8205772b5186Smrgelse case e in #(
8206772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
82079d794632Smrg/* end confdefs.h.  */
82089d794632Smrgint i;
82099d794632Smrg_ACEOF
8210c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
8211c048b52eSmrgthen :
82129d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8213772b5186Smrgelse case e in #(
8214772b5186Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8215772b5186Smrgesac
82169d794632Smrgfi
8217772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8218772b5186Smrgesac
82199d794632Smrgfi
8220c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8221c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
82229d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
82239d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
82249d794632Smrgfi
82259d794632Smrg
82269d794632Smrgfound="no"
82279d794632Smrg
82289d794632Smrg	if test $found = "no" ; then
8229e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
82309d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
82319d794632Smrg		fi
82329d794632Smrg
8233e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
82349d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
82359d794632Smrg		fi
82369d794632Smrg
82379d794632Smrg		CFLAGS="$CFLAGS -Werror=sequence-point"
82389d794632Smrg
8239c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8240c048b52eSmrgprintf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8241e8ac26b0Smrg		cacheid=xorg_cv_cc_flag__Werror_sequence_point
8242c048b52eSmrg		if eval test \${$cacheid+y}
8243c048b52eSmrgthen :
8244c048b52eSmrg  printf %s "(cached) " >&6
8245772b5186Smrgelse case e in #(
8246772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
82479d794632Smrg/* end confdefs.h.  */
82489d794632Smrgint i;
82499d794632Smrgint
8250c048b52eSmrgmain (void)
82519d794632Smrg{
82529d794632Smrg
82539d794632Smrg  ;
82549d794632Smrg  return 0;
82559d794632Smrg}
82569d794632Smrg_ACEOF
8257c048b52eSmrgif ac_fn_c_try_link "$LINENO"
8258c048b52eSmrgthen :
82599d794632Smrg  eval $cacheid=yes
8260772b5186Smrgelse case e in #(
8261772b5186Smrg  e) eval $cacheid=no ;;
8262772b5186Smrgesac
82639d794632Smrgfi
8264c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8265772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
8266772b5186Smrgesac
82679d794632Smrgfi
82689d794632Smrg
82699d794632Smrg
82709d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
82719d794632Smrg
82729d794632Smrg		eval supported=\$$cacheid
8273c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8274c048b52eSmrgprintf "%s\n" "$supported" >&6; }
82759d794632Smrg		if test "$supported" = "yes" ; then
82769d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
82779d794632Smrg			found="yes"
82789d794632Smrg		fi
82799d794632Smrg	fi
82809d794632Smrg
82819d794632Smrg
82829d794632Smrg
82839d794632Smrg
82849d794632Smrg
82859d794632Smrg
82869d794632Smrg
82879d794632Smrg
82889d794632Smrg
82899d794632Smrg
82909d794632Smrg
82919d794632Smrg
82929d794632Smrg
82939d794632Smrg
82949d794632Smrg
82959d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
82969d794632Smrg
82979d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
82989d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8299c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8300c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8301c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8302c048b52eSmrgthen :
8303c048b52eSmrg  printf %s "(cached) " >&6
8304772b5186Smrgelse case e in #(
8305772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
83069d794632Smrg/* end confdefs.h.  */
83079d794632Smrgint i;
83089d794632Smrg_ACEOF
8309c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
8310c048b52eSmrgthen :
83119d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
8312772b5186Smrgelse case e in #(
8313772b5186Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8314772b5186Smrgesac
83159d794632Smrgfi
8316772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8317772b5186Smrgesac
83189d794632Smrgfi
8319c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8320c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
83219d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
83229d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
83239d794632Smrgfi
83249d794632Smrg
83259d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
83269d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
83279d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
83289d794632Smrg	fi
83299d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8330c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8331c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8332c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8333c048b52eSmrgthen :
8334c048b52eSmrg  printf %s "(cached) " >&6
8335772b5186Smrgelse case e in #(
8336772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
83379d794632Smrg/* end confdefs.h.  */
83389d794632Smrgint i;
83399d794632Smrg_ACEOF
8340c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
8341c048b52eSmrgthen :
83429d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8343772b5186Smrgelse case e in #(
8344772b5186Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8345772b5186Smrgesac
83469d794632Smrgfi
8347772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8348772b5186Smrgesac
83499d794632Smrgfi
8350c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8351c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
83529d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
83539d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
83549d794632Smrgfi
83559d794632Smrg
83569d794632Smrgfound="no"
83579d794632Smrg
83589d794632Smrg	if test $found = "no" ; then
8359e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
83609d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
83619d794632Smrg		fi
83629d794632Smrg
8363e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
83649d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
83659d794632Smrg		fi
83669d794632Smrg
83679d794632Smrg		CFLAGS="$CFLAGS -Werror=return-type"
83689d794632Smrg
8369c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8370c048b52eSmrgprintf %s "checking if $CC supports -Werror=return-type... " >&6; }
8371e8ac26b0Smrg		cacheid=xorg_cv_cc_flag__Werror_return_type
8372c048b52eSmrg		if eval test \${$cacheid+y}
8373c048b52eSmrgthen :
8374c048b52eSmrg  printf %s "(cached) " >&6
8375772b5186Smrgelse case e in #(
8376772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
83779d794632Smrg/* end confdefs.h.  */
83789d794632Smrgint i;
83799d794632Smrgint
8380c048b52eSmrgmain (void)
83819d794632Smrg{
83829d794632Smrg
83839d794632Smrg  ;
83849d794632Smrg  return 0;
83859d794632Smrg}
83869d794632Smrg_ACEOF
8387c048b52eSmrgif ac_fn_c_try_link "$LINENO"
8388c048b52eSmrgthen :
83899d794632Smrg  eval $cacheid=yes
8390772b5186Smrgelse case e in #(
8391772b5186Smrg  e) eval $cacheid=no ;;
8392772b5186Smrgesac
83939d794632Smrgfi
8394c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8395772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
8396772b5186Smrgesac
83979d794632Smrgfi
83989d794632Smrg
83999d794632Smrg
84009d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
84019d794632Smrg
84029d794632Smrg		eval supported=\$$cacheid
8403c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8404c048b52eSmrgprintf "%s\n" "$supported" >&6; }
84059d794632Smrg		if test "$supported" = "yes" ; then
84069d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
84079d794632Smrg			found="yes"
84089d794632Smrg		fi
84099d794632Smrg	fi
84109d794632Smrg
84119d794632Smrg	if test $found = "no" ; then
8412e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
84139d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
84149d794632Smrg		fi
84159d794632Smrg
8416e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
84179d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
84189d794632Smrg		fi
84199d794632Smrg
84209d794632Smrg		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
84219d794632Smrg
8422c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8423c048b52eSmrgprintf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8424e8ac26b0Smrg		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8425c048b52eSmrg		if eval test \${$cacheid+y}
8426c048b52eSmrgthen :
8427c048b52eSmrg  printf %s "(cached) " >&6
8428772b5186Smrgelse case e in #(
8429772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
84309d794632Smrg/* end confdefs.h.  */
84319d794632Smrgint i;
84329d794632Smrgint
8433c048b52eSmrgmain (void)
84349d794632Smrg{
84359d794632Smrg
84369d794632Smrg  ;
84379d794632Smrg  return 0;
84389d794632Smrg}
84399d794632Smrg_ACEOF
8440c048b52eSmrgif ac_fn_c_try_link "$LINENO"
8441c048b52eSmrgthen :
84429d794632Smrg  eval $cacheid=yes
8443772b5186Smrgelse case e in #(
8444772b5186Smrg  e) eval $cacheid=no ;;
8445772b5186Smrgesac
84469d794632Smrgfi
8447c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8448772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
8449772b5186Smrgesac
84509d794632Smrgfi
84519d794632Smrg
84529d794632Smrg
84539d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
84549d794632Smrg
84559d794632Smrg		eval supported=\$$cacheid
8456c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8457c048b52eSmrgprintf "%s\n" "$supported" >&6; }
84589d794632Smrg		if test "$supported" = "yes" ; then
84599d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
84609d794632Smrg			found="yes"
84619d794632Smrg		fi
84629d794632Smrg	fi
84639d794632Smrg
84649d794632Smrg
84659d794632Smrg
84669d794632Smrg
84679d794632Smrg
84689d794632Smrg
84699d794632Smrg
84709d794632Smrg
84719d794632Smrg
84729d794632Smrg
84739d794632Smrg
84749d794632Smrg
84759d794632Smrg
84769d794632Smrg
84779d794632Smrg
84789d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
84799d794632Smrg
84809d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
84819d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8482c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8483c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8484c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8485c048b52eSmrgthen :
8486c048b52eSmrg  printf %s "(cached) " >&6
8487772b5186Smrgelse case e in #(
8488772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
84899d794632Smrg/* end confdefs.h.  */
84909d794632Smrgint i;
84919d794632Smrg_ACEOF
8492c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
8493c048b52eSmrgthen :
84949d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
8495772b5186Smrgelse case e in #(
8496772b5186Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8497772b5186Smrgesac
84989d794632Smrgfi
8499772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8500772b5186Smrgesac
85019d794632Smrgfi
8502c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8503c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
85049d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
85059d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
85069d794632Smrgfi
85079d794632Smrg
85089d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
85099d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
85109d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
85119d794632Smrg	fi
85129d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8513c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8514c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8515c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8516c048b52eSmrgthen :
8517c048b52eSmrg  printf %s "(cached) " >&6
8518772b5186Smrgelse case e in #(
8519772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85209d794632Smrg/* end confdefs.h.  */
85219d794632Smrgint i;
85229d794632Smrg_ACEOF
8523c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
8524c048b52eSmrgthen :
85259d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8526772b5186Smrgelse case e in #(
8527772b5186Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8528772b5186Smrgesac
85299d794632Smrgfi
8530772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8531772b5186Smrgesac
85329d794632Smrgfi
8533c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8534c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
85359d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
85369d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
85379d794632Smrgfi
85389d794632Smrg
85399d794632Smrgfound="no"
85409d794632Smrg
85419d794632Smrg	if test $found = "no" ; then
8542e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
85439d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
85449d794632Smrg		fi
85459d794632Smrg
8546e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
85479d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
85489d794632Smrg		fi
85499d794632Smrg
85509d794632Smrg		CFLAGS="$CFLAGS -Werror=trigraphs"
85519d794632Smrg
8552c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8553c048b52eSmrgprintf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8554e8ac26b0Smrg		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8555c048b52eSmrg		if eval test \${$cacheid+y}
8556c048b52eSmrgthen :
8557c048b52eSmrg  printf %s "(cached) " >&6
8558772b5186Smrgelse case e in #(
8559772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85609d794632Smrg/* end confdefs.h.  */
85619d794632Smrgint i;
85629d794632Smrgint
8563c048b52eSmrgmain (void)
85649d794632Smrg{
85659d794632Smrg
85669d794632Smrg  ;
85679d794632Smrg  return 0;
85689d794632Smrg}
85699d794632Smrg_ACEOF
8570c048b52eSmrgif ac_fn_c_try_link "$LINENO"
8571c048b52eSmrgthen :
85729d794632Smrg  eval $cacheid=yes
8573772b5186Smrgelse case e in #(
8574772b5186Smrg  e) eval $cacheid=no ;;
8575772b5186Smrgesac
85769d794632Smrgfi
8577c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8578772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
8579772b5186Smrgesac
85809d794632Smrgfi
85819d794632Smrg
85829d794632Smrg
85839d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
85849d794632Smrg
85859d794632Smrg		eval supported=\$$cacheid
8586c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8587c048b52eSmrgprintf "%s\n" "$supported" >&6; }
85889d794632Smrg		if test "$supported" = "yes" ; then
85899d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
85909d794632Smrg			found="yes"
85919d794632Smrg		fi
85929d794632Smrg	fi
85939d794632Smrg
85949d794632Smrg
85959d794632Smrg
85969d794632Smrg
85979d794632Smrg
85989d794632Smrg
85999d794632Smrg
86009d794632Smrg
86019d794632Smrg
86029d794632Smrg
86039d794632Smrg
86049d794632Smrg
86059d794632Smrg
86069d794632Smrg
86079d794632Smrg
86089d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
86099d794632Smrg
86109d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
86119d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8612c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8613c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8614c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8615c048b52eSmrgthen :
8616c048b52eSmrg  printf %s "(cached) " >&6
8617772b5186Smrgelse case e in #(
8618772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86199d794632Smrg/* end confdefs.h.  */
86209d794632Smrgint i;
86219d794632Smrg_ACEOF
8622c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
8623c048b52eSmrgthen :
86249d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
8625772b5186Smrgelse case e in #(
8626772b5186Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8627772b5186Smrgesac
86289d794632Smrgfi
8629772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8630772b5186Smrgesac
86319d794632Smrgfi
8632c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8633c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
86349d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
86359d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
86369d794632Smrgfi
86379d794632Smrg
86389d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
86399d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
86409d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
86419d794632Smrg	fi
86429d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8643c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8644c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8645c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8646c048b52eSmrgthen :
8647c048b52eSmrg  printf %s "(cached) " >&6
8648772b5186Smrgelse case e in #(
8649772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86509d794632Smrg/* end confdefs.h.  */
86519d794632Smrgint i;
86529d794632Smrg_ACEOF
8653c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
8654c048b52eSmrgthen :
86559d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8656772b5186Smrgelse case e in #(
8657772b5186Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8658772b5186Smrgesac
86599d794632Smrgfi
8660772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8661772b5186Smrgesac
86629d794632Smrgfi
8663c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8664c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
86659d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
86669d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
86679d794632Smrgfi
86689d794632Smrg
86699d794632Smrgfound="no"
86709d794632Smrg
86719d794632Smrg	if test $found = "no" ; then
8672e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
86739d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
86749d794632Smrg		fi
86759d794632Smrg
8676e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
86779d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
86789d794632Smrg		fi
86799d794632Smrg
86809d794632Smrg		CFLAGS="$CFLAGS -Werror=array-bounds"
86819d794632Smrg
8682c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8683c048b52eSmrgprintf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8684e8ac26b0Smrg		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8685c048b52eSmrg		if eval test \${$cacheid+y}
8686c048b52eSmrgthen :
8687c048b52eSmrg  printf %s "(cached) " >&6
8688772b5186Smrgelse case e in #(
8689772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86909d794632Smrg/* end confdefs.h.  */
86919d794632Smrgint i;
86929d794632Smrgint
8693c048b52eSmrgmain (void)
86949d794632Smrg{
86959d794632Smrg
86969d794632Smrg  ;
86979d794632Smrg  return 0;
86989d794632Smrg}
86999d794632Smrg_ACEOF
8700c048b52eSmrgif ac_fn_c_try_link "$LINENO"
8701c048b52eSmrgthen :
87029d794632Smrg  eval $cacheid=yes
8703772b5186Smrgelse case e in #(
8704772b5186Smrg  e) eval $cacheid=no ;;
8705772b5186Smrgesac
87069d794632Smrgfi
8707c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8708772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
8709772b5186Smrgesac
87109d794632Smrgfi
87119d794632Smrg
87129d794632Smrg
87139d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
87149d794632Smrg
87159d794632Smrg		eval supported=\$$cacheid
8716c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8717c048b52eSmrgprintf "%s\n" "$supported" >&6; }
87189d794632Smrg		if test "$supported" = "yes" ; then
87199d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
87209d794632Smrg			found="yes"
87219d794632Smrg		fi
87229d794632Smrg	fi
87239d794632Smrg
87249d794632Smrg
87259d794632Smrg
87269d794632Smrg
87279d794632Smrg
87289d794632Smrg
87299d794632Smrg
87309d794632Smrg
87319d794632Smrg
87329d794632Smrg
87339d794632Smrg
87349d794632Smrg
87359d794632Smrg
87369d794632Smrg
87379d794632Smrg
87389d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
87399d794632Smrg
87409d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
87419d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8742c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8743c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8744c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8745c048b52eSmrgthen :
8746c048b52eSmrg  printf %s "(cached) " >&6
8747772b5186Smrgelse case e in #(
8748772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87499d794632Smrg/* end confdefs.h.  */
87509d794632Smrgint i;
87519d794632Smrg_ACEOF
8752c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
8753c048b52eSmrgthen :
87549d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
8755772b5186Smrgelse case e in #(
8756772b5186Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8757772b5186Smrgesac
87589d794632Smrgfi
8759772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8760772b5186Smrgesac
87619d794632Smrgfi
8762c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8763c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
87649d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
87659d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
87669d794632Smrgfi
87679d794632Smrg
87689d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
87699d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
87709d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
87719d794632Smrg	fi
87729d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8773c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8774c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8775c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8776c048b52eSmrgthen :
8777c048b52eSmrg  printf %s "(cached) " >&6
8778772b5186Smrgelse case e in #(
8779772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87809d794632Smrg/* end confdefs.h.  */
87819d794632Smrgint i;
87829d794632Smrg_ACEOF
8783c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
8784c048b52eSmrgthen :
87859d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8786772b5186Smrgelse case e in #(
8787772b5186Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8788772b5186Smrgesac
87899d794632Smrgfi
8790772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8791772b5186Smrgesac
87929d794632Smrgfi
8793c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8794c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
87959d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
87969d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
87979d794632Smrgfi
87989d794632Smrg
87999d794632Smrgfound="no"
88009d794632Smrg
88019d794632Smrg	if test $found = "no" ; then
8802e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
88039d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
88049d794632Smrg		fi
88059d794632Smrg
8806e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
88079d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
88089d794632Smrg		fi
88099d794632Smrg
88109d794632Smrg		CFLAGS="$CFLAGS -Werror=write-strings"
88119d794632Smrg
8812c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8813c048b52eSmrgprintf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8814e8ac26b0Smrg		cacheid=xorg_cv_cc_flag__Werror_write_strings
8815c048b52eSmrg		if eval test \${$cacheid+y}
8816c048b52eSmrgthen :
8817c048b52eSmrg  printf %s "(cached) " >&6
8818772b5186Smrgelse case e in #(
8819772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88209d794632Smrg/* end confdefs.h.  */
88219d794632Smrgint i;
88229d794632Smrgint
8823c048b52eSmrgmain (void)
88249d794632Smrg{
88259d794632Smrg
88269d794632Smrg  ;
88279d794632Smrg  return 0;
88289d794632Smrg}
88299d794632Smrg_ACEOF
8830c048b52eSmrgif ac_fn_c_try_link "$LINENO"
8831c048b52eSmrgthen :
88329d794632Smrg  eval $cacheid=yes
8833772b5186Smrgelse case e in #(
8834772b5186Smrg  e) eval $cacheid=no ;;
8835772b5186Smrgesac
88369d794632Smrgfi
8837c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8838772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
8839772b5186Smrgesac
88409d794632Smrgfi
88419d794632Smrg
88429d794632Smrg
88439d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
88449d794632Smrg
88459d794632Smrg		eval supported=\$$cacheid
8846c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8847c048b52eSmrgprintf "%s\n" "$supported" >&6; }
88489d794632Smrg		if test "$supported" = "yes" ; then
88499d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
88509d794632Smrg			found="yes"
88519d794632Smrg		fi
88529d794632Smrg	fi
88539d794632Smrg
88549d794632Smrg
88559d794632Smrg
88569d794632Smrg
88579d794632Smrg
88589d794632Smrg
88599d794632Smrg
88609d794632Smrg
88619d794632Smrg
88629d794632Smrg
88639d794632Smrg
88649d794632Smrg
88659d794632Smrg
88669d794632Smrg
88679d794632Smrg
88689d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
88699d794632Smrg
88709d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
88719d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8872c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8873c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8874c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8875c048b52eSmrgthen :
8876c048b52eSmrg  printf %s "(cached) " >&6
8877772b5186Smrgelse case e in #(
8878772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88799d794632Smrg/* end confdefs.h.  */
88809d794632Smrgint i;
88819d794632Smrg_ACEOF
8882c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
8883c048b52eSmrgthen :
88849d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
8885772b5186Smrgelse case e in #(
8886772b5186Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8887772b5186Smrgesac
88889d794632Smrgfi
8889772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8890772b5186Smrgesac
88919d794632Smrgfi
8892c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8893c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
88949d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
88959d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
88969d794632Smrgfi
88979d794632Smrg
88989d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
88999d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
89009d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
89019d794632Smrg	fi
89029d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8903c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8904c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8905c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8906c048b52eSmrgthen :
8907c048b52eSmrg  printf %s "(cached) " >&6
8908772b5186Smrgelse case e in #(
8909772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89109d794632Smrg/* end confdefs.h.  */
89119d794632Smrgint i;
89129d794632Smrg_ACEOF
8913c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
8914c048b52eSmrgthen :
89159d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8916772b5186Smrgelse case e in #(
8917772b5186Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8918772b5186Smrgesac
89199d794632Smrgfi
8920772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8921772b5186Smrgesac
89229d794632Smrgfi
8923c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8924c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
89259d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
89269d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
89279d794632Smrgfi
89289d794632Smrg
89299d794632Smrgfound="no"
89309d794632Smrg
89319d794632Smrg	if test $found = "no" ; then
8932e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
89339d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
89349d794632Smrg		fi
89359d794632Smrg
8936e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
89379d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
89389d794632Smrg		fi
89399d794632Smrg
89409d794632Smrg		CFLAGS="$CFLAGS -Werror=address"
89419d794632Smrg
8942c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8943c048b52eSmrgprintf %s "checking if $CC supports -Werror=address... " >&6; }
8944e8ac26b0Smrg		cacheid=xorg_cv_cc_flag__Werror_address
8945c048b52eSmrg		if eval test \${$cacheid+y}
8946c048b52eSmrgthen :
8947c048b52eSmrg  printf %s "(cached) " >&6
8948772b5186Smrgelse case e in #(
8949772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89509d794632Smrg/* end confdefs.h.  */
89519d794632Smrgint i;
89529d794632Smrgint
8953c048b52eSmrgmain (void)
89549d794632Smrg{
89559d794632Smrg
89569d794632Smrg  ;
89579d794632Smrg  return 0;
89589d794632Smrg}
89599d794632Smrg_ACEOF
8960c048b52eSmrgif ac_fn_c_try_link "$LINENO"
8961c048b52eSmrgthen :
89629d794632Smrg  eval $cacheid=yes
8963772b5186Smrgelse case e in #(
8964772b5186Smrg  e) eval $cacheid=no ;;
8965772b5186Smrgesac
89669d794632Smrgfi
8967c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8968772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
8969772b5186Smrgesac
89709d794632Smrgfi
89719d794632Smrg
89729d794632Smrg
89739d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
89749d794632Smrg
89759d794632Smrg		eval supported=\$$cacheid
8976c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8977c048b52eSmrgprintf "%s\n" "$supported" >&6; }
89789d794632Smrg		if test "$supported" = "yes" ; then
89799d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
89809d794632Smrg			found="yes"
89819d794632Smrg		fi
89829d794632Smrg	fi
89839d794632Smrg
89849d794632Smrg
89859d794632Smrg
89869d794632Smrg
89879d794632Smrg
89889d794632Smrg
89899d794632Smrg
89909d794632Smrg
89919d794632Smrg
89929d794632Smrg
89939d794632Smrg
89949d794632Smrg
89959d794632Smrg
89969d794632Smrg
89979d794632Smrg
89989d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
89999d794632Smrg
90009d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
90019d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9002c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9003c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9004c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9005c048b52eSmrgthen :
9006c048b52eSmrg  printf %s "(cached) " >&6
9007772b5186Smrgelse case e in #(
9008772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90099d794632Smrg/* end confdefs.h.  */
90109d794632Smrgint i;
90119d794632Smrg_ACEOF
9012c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
9013c048b52eSmrgthen :
90149d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9015772b5186Smrgelse case e in #(
9016772b5186Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9017772b5186Smrgesac
90189d794632Smrgfi
9019772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9020772b5186Smrgesac
90219d794632Smrgfi
9022c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9023c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
90249d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
90259d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
90269d794632Smrgfi
90279d794632Smrg
90289d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
90299d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
90309d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
90319d794632Smrg	fi
90329d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9033c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9034c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9035c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9036c048b52eSmrgthen :
9037c048b52eSmrg  printf %s "(cached) " >&6
9038772b5186Smrgelse case e in #(
9039772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90409d794632Smrg/* end confdefs.h.  */
90419d794632Smrgint i;
90429d794632Smrg_ACEOF
9043c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
9044c048b52eSmrgthen :
90459d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9046772b5186Smrgelse case e in #(
9047772b5186Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9048772b5186Smrgesac
90499d794632Smrgfi
9050772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9051772b5186Smrgesac
90529d794632Smrgfi
9053c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9054c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
90559d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
90569d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
90579d794632Smrgfi
90589d794632Smrg
90599d794632Smrgfound="no"
90609d794632Smrg
90619d794632Smrg	if test $found = "no" ; then
9062e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
90639d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
90649d794632Smrg		fi
90659d794632Smrg
9066e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
90679d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
90689d794632Smrg		fi
90699d794632Smrg
90709d794632Smrg		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
90719d794632Smrg
9072c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
9073c048b52eSmrgprintf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
9074e8ac26b0Smrg		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
9075c048b52eSmrg		if eval test \${$cacheid+y}
9076c048b52eSmrgthen :
9077c048b52eSmrg  printf %s "(cached) " >&6
9078772b5186Smrgelse case e in #(
9079772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90809d794632Smrg/* end confdefs.h.  */
90819d794632Smrgint i;
90829d794632Smrgint
9083c048b52eSmrgmain (void)
90849d794632Smrg{
90859d794632Smrg
90869d794632Smrg  ;
90879d794632Smrg  return 0;
90889d794632Smrg}
90899d794632Smrg_ACEOF
9090c048b52eSmrgif ac_fn_c_try_link "$LINENO"
9091c048b52eSmrgthen :
90929d794632Smrg  eval $cacheid=yes
9093772b5186Smrgelse case e in #(
9094772b5186Smrg  e) eval $cacheid=no ;;
9095772b5186Smrgesac
90969d794632Smrgfi
9097c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9098772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
9099772b5186Smrgesac
91009d794632Smrgfi
91019d794632Smrg
91029d794632Smrg
91039d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
91049d794632Smrg
91059d794632Smrg		eval supported=\$$cacheid
9106c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9107c048b52eSmrgprintf "%s\n" "$supported" >&6; }
91089d794632Smrg		if test "$supported" = "yes" ; then
91099d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
91109d794632Smrg			found="yes"
91119d794632Smrg		fi
91129d794632Smrg	fi
91139d794632Smrg
91149d794632Smrg	if test $found = "no" ; then
9115e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
91169d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
91179d794632Smrg		fi
91189d794632Smrg
9119e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
91209d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
91219d794632Smrg		fi
91229d794632Smrg
91239d794632Smrg		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
91249d794632Smrg
9125c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
9126c048b52eSmrgprintf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
9127e8ac26b0Smrg		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
9128c048b52eSmrg		if eval test \${$cacheid+y}
9129c048b52eSmrgthen :
9130c048b52eSmrg  printf %s "(cached) " >&6
9131772b5186Smrgelse case e in #(
9132772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
91339d794632Smrg/* end confdefs.h.  */
91349d794632Smrgint i;
91359d794632Smrgint
9136c048b52eSmrgmain (void)
91379d794632Smrg{
91389d794632Smrg
91399d794632Smrg  ;
91409d794632Smrg  return 0;
91419d794632Smrg}
91429d794632Smrg_ACEOF
9143c048b52eSmrgif ac_fn_c_try_link "$LINENO"
9144c048b52eSmrgthen :
91459d794632Smrg  eval $cacheid=yes
9146772b5186Smrgelse case e in #(
9147772b5186Smrg  e) eval $cacheid=no ;;
9148772b5186Smrgesac
91499d794632Smrgfi
9150c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9151772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
9152772b5186Smrgesac
91539d794632Smrgfi
91549d794632Smrg
91559d794632Smrg
91569d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
91579d794632Smrg
91589d794632Smrg		eval supported=\$$cacheid
9159c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9160c048b52eSmrgprintf "%s\n" "$supported" >&6; }
91619d794632Smrg		if test "$supported" = "yes" ; then
91629d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
91639d794632Smrg			found="yes"
91649d794632Smrg		fi
91659d794632Smrg	fi
91669d794632Smrg
91679d794632Smrg
91689d794632Smrg
91699d794632Smrg
91709d794632Smrg
91719d794632Smrg
91729d794632Smrg
91739d794632Smrg
91749d794632Smrg
91759d794632Smrg
91769d794632Smrg
91779d794632Smrg
91789d794632Smrg
91799d794632Smrg
91809d794632Smrg
91819d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
91829d794632Smrg
91839d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
91849d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9185c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9186c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9187c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9188c048b52eSmrgthen :
9189c048b52eSmrg  printf %s "(cached) " >&6
9190772b5186Smrgelse case e in #(
9191772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
91929d794632Smrg/* end confdefs.h.  */
91939d794632Smrgint i;
91949d794632Smrg_ACEOF
9195c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
9196c048b52eSmrgthen :
91979d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9198772b5186Smrgelse case e in #(
9199772b5186Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9200772b5186Smrgesac
92019d794632Smrgfi
9202772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9203772b5186Smrgesac
92049d794632Smrgfi
9205c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9206c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
92079d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
92089d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
92099d794632Smrgfi
92109d794632Smrg
92119d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
92129d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
92139d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
92149d794632Smrg	fi
92159d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9216c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9217c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9218c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9219c048b52eSmrgthen :
9220c048b52eSmrg  printf %s "(cached) " >&6
9221772b5186Smrgelse case e in #(
9222772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92239d794632Smrg/* end confdefs.h.  */
92249d794632Smrgint i;
92259d794632Smrg_ACEOF
9226c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
9227c048b52eSmrgthen :
92289d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9229772b5186Smrgelse case e in #(
9230772b5186Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9231772b5186Smrgesac
92329d794632Smrgfi
9233772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9234772b5186Smrgesac
92359d794632Smrgfi
9236c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9237c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
92389d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
92399d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
92409d794632Smrgfi
92419d794632Smrg
92429d794632Smrgfound="no"
92439d794632Smrg
92449d794632Smrg	if test $found = "no" ; then
9245e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
92469d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
92479d794632Smrg		fi
92489d794632Smrg
9249e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
92509d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
92519d794632Smrg		fi
92529d794632Smrg
92539d794632Smrg		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
92549d794632Smrg
9255c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9256c048b52eSmrgprintf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9257e8ac26b0Smrg		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9258c048b52eSmrg		if eval test \${$cacheid+y}
9259c048b52eSmrgthen :
9260c048b52eSmrg  printf %s "(cached) " >&6
9261772b5186Smrgelse case e in #(
9262772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92639d794632Smrg/* end confdefs.h.  */
92649d794632Smrgint i;
92659d794632Smrgint
9266c048b52eSmrgmain (void)
92679d794632Smrg{
92689d794632Smrg
92699d794632Smrg  ;
92709d794632Smrg  return 0;
92719d794632Smrg}
92729d794632Smrg_ACEOF
9273c048b52eSmrgif ac_fn_c_try_link "$LINENO"
9274c048b52eSmrgthen :
92759d794632Smrg  eval $cacheid=yes
9276772b5186Smrgelse case e in #(
9277772b5186Smrg  e) eval $cacheid=no ;;
9278772b5186Smrgesac
92799d794632Smrgfi
9280c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9281772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
9282772b5186Smrgesac
92839d794632Smrgfi
92849d794632Smrg
92859d794632Smrg
92869d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
92879d794632Smrg
92889d794632Smrg		eval supported=\$$cacheid
9289c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9290c048b52eSmrgprintf "%s\n" "$supported" >&6; }
92919d794632Smrg		if test "$supported" = "yes" ; then
92929d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
92939d794632Smrg			found="yes"
92949d794632Smrg		fi
92959d794632Smrg	fi
92969d794632Smrg
92979d794632Smrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION
92989d794632Smrgelse
9299c048b52eSmrg{ 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
9300c048b52eSmrgprintf "%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;}
93019d794632Smrg
93029d794632Smrg
93039d794632Smrg
93049d794632Smrg
93059d794632Smrg
93069d794632Smrg
93079d794632Smrg
93089d794632Smrg
93099d794632Smrg
93109d794632Smrg
93119d794632Smrg
93129d794632Smrg
93139d794632Smrg
93149d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
93159d794632Smrg
93169d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
93179d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9318c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9319c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9320c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9321c048b52eSmrgthen :
9322c048b52eSmrg  printf %s "(cached) " >&6
9323772b5186Smrgelse case e in #(
9324772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93259d794632Smrg/* end confdefs.h.  */
93269d794632Smrgint i;
93279d794632Smrg_ACEOF
9328c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
9329c048b52eSmrgthen :
93309d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9331772b5186Smrgelse case e in #(
9332772b5186Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9333772b5186Smrgesac
93349d794632Smrgfi
9335772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9336772b5186Smrgesac
93379d794632Smrgfi
9338c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9339c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
93409d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
93419d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
93429d794632Smrgfi
93439d794632Smrg
93449d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
93459d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
93469d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
93479d794632Smrg	fi
93489d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9349c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9350c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9351c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9352c048b52eSmrgthen :
9353c048b52eSmrg  printf %s "(cached) " >&6
9354772b5186Smrgelse case e in #(
9355772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93569d794632Smrg/* end confdefs.h.  */
93579d794632Smrgint i;
93589d794632Smrg_ACEOF
9359c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
9360c048b52eSmrgthen :
93619d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9362772b5186Smrgelse case e in #(
9363772b5186Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9364772b5186Smrgesac
93659d794632Smrgfi
9366772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9367772b5186Smrgesac
93689d794632Smrgfi
9369c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9370c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
93719d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
93729d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
93739d794632Smrgfi
93749d794632Smrg
93759d794632Smrgfound="no"
93769d794632Smrg
93779d794632Smrg	if test $found = "no" ; then
9378e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
93799d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
93809d794632Smrg		fi
93819d794632Smrg
9382e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
93839d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
93849d794632Smrg		fi
93859d794632Smrg
93869d794632Smrg		CFLAGS="$CFLAGS -Wimplicit"
93879d794632Smrg
9388c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9389c048b52eSmrgprintf %s "checking if $CC supports -Wimplicit... " >&6; }
93909d794632Smrg		cacheid=xorg_cv_cc_flag__Wimplicit
9391c048b52eSmrg		if eval test \${$cacheid+y}
9392c048b52eSmrgthen :
9393c048b52eSmrg  printf %s "(cached) " >&6
9394772b5186Smrgelse case e in #(
9395772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93969d794632Smrg/* end confdefs.h.  */
93979d794632Smrgint i;
93989d794632Smrgint
9399c048b52eSmrgmain (void)
94009d794632Smrg{
94019d794632Smrg
94029d794632Smrg  ;
94039d794632Smrg  return 0;
94049d794632Smrg}
94059d794632Smrg_ACEOF
9406c048b52eSmrgif ac_fn_c_try_link "$LINENO"
9407c048b52eSmrgthen :
94089d794632Smrg  eval $cacheid=yes
9409772b5186Smrgelse case e in #(
9410772b5186Smrg  e) eval $cacheid=no ;;
9411772b5186Smrgesac
94129d794632Smrgfi
9413c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9414772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
9415772b5186Smrgesac
94169d794632Smrgfi
94179d794632Smrg
94189d794632Smrg
94199d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
94209d794632Smrg
94219d794632Smrg		eval supported=\$$cacheid
9422c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9423c048b52eSmrgprintf "%s\n" "$supported" >&6; }
94249d794632Smrg		if test "$supported" = "yes" ; then
94259d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
94269d794632Smrg			found="yes"
94279d794632Smrg		fi
94289d794632Smrg	fi
94299d794632Smrg
94309d794632Smrg
94319d794632Smrg
94329d794632Smrg
94339d794632Smrg
94349d794632Smrg
94359d794632Smrg
94369d794632Smrg
94379d794632Smrg
94389d794632Smrg
94399d794632Smrg
94409d794632Smrg
94419d794632Smrg
94429d794632Smrg
94439d794632Smrg
94449d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
94459d794632Smrg
94469d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
94479d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9448c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9449c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9450c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9451c048b52eSmrgthen :
9452c048b52eSmrg  printf %s "(cached) " >&6
9453772b5186Smrgelse case e in #(
9454772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94559d794632Smrg/* end confdefs.h.  */
94569d794632Smrgint i;
94579d794632Smrg_ACEOF
9458c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
9459c048b52eSmrgthen :
94609d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9461772b5186Smrgelse case e in #(
9462772b5186Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9463772b5186Smrgesac
94649d794632Smrgfi
9465772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9466772b5186Smrgesac
94679d794632Smrgfi
9468c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9469c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
94709d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
94719d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
94729d794632Smrgfi
94739d794632Smrg
94749d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
94759d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
94769d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
94779d794632Smrg	fi
94789d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9479c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9480c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9481c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9482c048b52eSmrgthen :
9483c048b52eSmrg  printf %s "(cached) " >&6
9484772b5186Smrgelse case e in #(
9485772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94869d794632Smrg/* end confdefs.h.  */
94879d794632Smrgint i;
94889d794632Smrg_ACEOF
9489c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
9490c048b52eSmrgthen :
94919d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9492772b5186Smrgelse case e in #(
9493772b5186Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9494772b5186Smrgesac
94959d794632Smrgfi
9496772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9497772b5186Smrgesac
94989d794632Smrgfi
9499c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9500c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
95019d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
95029d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
95039d794632Smrgfi
95049d794632Smrg
95059d794632Smrgfound="no"
95069d794632Smrg
95079d794632Smrg	if test $found = "no" ; then
9508e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
95099d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
95109d794632Smrg		fi
95119d794632Smrg
9512e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
95139d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
95149d794632Smrg		fi
95159d794632Smrg
95169d794632Smrg		CFLAGS="$CFLAGS -Wnonnull"
95179d794632Smrg
9518c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9519c048b52eSmrgprintf %s "checking if $CC supports -Wnonnull... " >&6; }
95209d794632Smrg		cacheid=xorg_cv_cc_flag__Wnonnull
9521c048b52eSmrg		if eval test \${$cacheid+y}
9522c048b52eSmrgthen :
9523c048b52eSmrg  printf %s "(cached) " >&6
9524772b5186Smrgelse case e in #(
9525772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
95269d794632Smrg/* end confdefs.h.  */
95279d794632Smrgint i;
95289d794632Smrgint
9529c048b52eSmrgmain (void)
95309d794632Smrg{
95319d794632Smrg
95329d794632Smrg  ;
95339d794632Smrg  return 0;
95349d794632Smrg}
95359d794632Smrg_ACEOF
9536c048b52eSmrgif ac_fn_c_try_link "$LINENO"
9537c048b52eSmrgthen :
95389d794632Smrg  eval $cacheid=yes
9539772b5186Smrgelse case e in #(
9540772b5186Smrg  e) eval $cacheid=no ;;
9541772b5186Smrgesac
95429d794632Smrgfi
9543c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9544772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
9545772b5186Smrgesac
95469d794632Smrgfi
95479d794632Smrg
95489d794632Smrg
95499d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
95509d794632Smrg
95519d794632Smrg		eval supported=\$$cacheid
9552c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9553c048b52eSmrgprintf "%s\n" "$supported" >&6; }
95549d794632Smrg		if test "$supported" = "yes" ; then
95559d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
95569d794632Smrg			found="yes"
95579d794632Smrg		fi
95589d794632Smrg	fi
95599d794632Smrg
95609d794632Smrg
95619d794632Smrg
95629d794632Smrg
95639d794632Smrg
95649d794632Smrg
95659d794632Smrg
95669d794632Smrg
95679d794632Smrg
95689d794632Smrg
95699d794632Smrg
95709d794632Smrg
95719d794632Smrg
95729d794632Smrg
95739d794632Smrg
95749d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
95759d794632Smrg
95769d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
95779d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9578c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9579c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9580c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9581c048b52eSmrgthen :
9582c048b52eSmrg  printf %s "(cached) " >&6
9583772b5186Smrgelse case e in #(
9584772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
95859d794632Smrg/* end confdefs.h.  */
95869d794632Smrgint i;
95879d794632Smrg_ACEOF
9588c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
9589c048b52eSmrgthen :
95909d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9591772b5186Smrgelse case e in #(
9592772b5186Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9593772b5186Smrgesac
95949d794632Smrgfi
9595772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9596772b5186Smrgesac
95979d794632Smrgfi
9598c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9599c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
96009d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
96019d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
96029d794632Smrgfi
96039d794632Smrg
96049d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
96059d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
96069d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
96079d794632Smrg	fi
96089d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9609c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9610c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9611c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9612c048b52eSmrgthen :
9613c048b52eSmrg  printf %s "(cached) " >&6
9614772b5186Smrgelse case e in #(
9615772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
96169d794632Smrg/* end confdefs.h.  */
96179d794632Smrgint i;
96189d794632Smrg_ACEOF
9619c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
9620c048b52eSmrgthen :
96219d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9622772b5186Smrgelse case e in #(
9623772b5186Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9624772b5186Smrgesac
96259d794632Smrgfi
9626772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9627772b5186Smrgesac
96289d794632Smrgfi
9629c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9630c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
96319d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
96329d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
96339d794632Smrgfi
96349d794632Smrg
96359d794632Smrgfound="no"
96369d794632Smrg
96379d794632Smrg	if test $found = "no" ; then
9638e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
96399d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
96409d794632Smrg		fi
96419d794632Smrg
9642e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
96439d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
96449d794632Smrg		fi
96459d794632Smrg
96469d794632Smrg		CFLAGS="$CFLAGS -Winit-self"
96479d794632Smrg
9648c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9649c048b52eSmrgprintf %s "checking if $CC supports -Winit-self... " >&6; }
96509d794632Smrg		cacheid=xorg_cv_cc_flag__Winit_self
9651c048b52eSmrg		if eval test \${$cacheid+y}
9652c048b52eSmrgthen :
9653c048b52eSmrg  printf %s "(cached) " >&6
9654772b5186Smrgelse case e in #(
9655772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
96569d794632Smrg/* end confdefs.h.  */
96579d794632Smrgint i;
96589d794632Smrgint
9659c048b52eSmrgmain (void)
96609d794632Smrg{
96619d794632Smrg
96629d794632Smrg  ;
96639d794632Smrg  return 0;
96649d794632Smrg}
96659d794632Smrg_ACEOF
9666c048b52eSmrgif ac_fn_c_try_link "$LINENO"
9667c048b52eSmrgthen :
96689d794632Smrg  eval $cacheid=yes
9669772b5186Smrgelse case e in #(
9670772b5186Smrg  e) eval $cacheid=no ;;
9671772b5186Smrgesac
96729d794632Smrgfi
9673c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9674772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
9675772b5186Smrgesac
96769d794632Smrgfi
96779d794632Smrg
96789d794632Smrg
96799d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
96809d794632Smrg
96819d794632Smrg		eval supported=\$$cacheid
9682c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9683c048b52eSmrgprintf "%s\n" "$supported" >&6; }
96849d794632Smrg		if test "$supported" = "yes" ; then
96859d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
96869d794632Smrg			found="yes"
96879d794632Smrg		fi
96889d794632Smrg	fi
96899d794632Smrg
96909d794632Smrg
96919d794632Smrg
96929d794632Smrg
96939d794632Smrg
96949d794632Smrg
96959d794632Smrg
96969d794632Smrg
96979d794632Smrg
96989d794632Smrg
96999d794632Smrg
97009d794632Smrg
97019d794632Smrg
97029d794632Smrg
97039d794632Smrg
97049d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
97059d794632Smrg
97069d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
97079d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9708c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9709c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9710c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9711c048b52eSmrgthen :
9712c048b52eSmrg  printf %s "(cached) " >&6
9713772b5186Smrgelse case e in #(
9714772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
97159d794632Smrg/* end confdefs.h.  */
97169d794632Smrgint i;
97179d794632Smrg_ACEOF
9718c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
9719c048b52eSmrgthen :
97209d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9721772b5186Smrgelse case e in #(
9722772b5186Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9723772b5186Smrgesac
97249d794632Smrgfi
9725772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9726772b5186Smrgesac
97279d794632Smrgfi
9728c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9729c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
97309d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
97319d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
97329d794632Smrgfi
97339d794632Smrg
97349d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
97359d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
97369d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
97379d794632Smrg	fi
97389d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9739c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9740c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9741c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9742c048b52eSmrgthen :
9743c048b52eSmrg  printf %s "(cached) " >&6
9744772b5186Smrgelse case e in #(
9745772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
97469d794632Smrg/* end confdefs.h.  */
97479d794632Smrgint i;
97489d794632Smrg_ACEOF
9749c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
9750c048b52eSmrgthen :
97519d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9752772b5186Smrgelse case e in #(
9753772b5186Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9754772b5186Smrgesac
97559d794632Smrgfi
9756772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9757772b5186Smrgesac
97589d794632Smrgfi
9759c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9760c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
97619d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
97629d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
97639d794632Smrgfi
97649d794632Smrg
97659d794632Smrgfound="no"
97669d794632Smrg
97679d794632Smrg	if test $found = "no" ; then
9768e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
97699d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
97709d794632Smrg		fi
97719d794632Smrg
9772e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
97739d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
97749d794632Smrg		fi
97759d794632Smrg
97769d794632Smrg		CFLAGS="$CFLAGS -Wmain"
97779d794632Smrg
9778c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9779c048b52eSmrgprintf %s "checking if $CC supports -Wmain... " >&6; }
97809d794632Smrg		cacheid=xorg_cv_cc_flag__Wmain
9781c048b52eSmrg		if eval test \${$cacheid+y}
9782c048b52eSmrgthen :
9783c048b52eSmrg  printf %s "(cached) " >&6
9784772b5186Smrgelse case e in #(
9785772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
97869d794632Smrg/* end confdefs.h.  */
97879d794632Smrgint i;
97889d794632Smrgint
9789c048b52eSmrgmain (void)
97909d794632Smrg{
97919d794632Smrg
97929d794632Smrg  ;
97939d794632Smrg  return 0;
97949d794632Smrg}
97959d794632Smrg_ACEOF
9796c048b52eSmrgif ac_fn_c_try_link "$LINENO"
9797c048b52eSmrgthen :
97989d794632Smrg  eval $cacheid=yes
9799772b5186Smrgelse case e in #(
9800772b5186Smrg  e) eval $cacheid=no ;;
9801772b5186Smrgesac
98029d794632Smrgfi
9803c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9804772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
9805772b5186Smrgesac
98069d794632Smrgfi
98079d794632Smrg
98089d794632Smrg
98099d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
98109d794632Smrg
98119d794632Smrg		eval supported=\$$cacheid
9812c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9813c048b52eSmrgprintf "%s\n" "$supported" >&6; }
98149d794632Smrg		if test "$supported" = "yes" ; then
98159d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
98169d794632Smrg			found="yes"
98179d794632Smrg		fi
98189d794632Smrg	fi
98199d794632Smrg
98209d794632Smrg
98219d794632Smrg
98229d794632Smrg
98239d794632Smrg
98249d794632Smrg
98259d794632Smrg
98269d794632Smrg
98279d794632Smrg
98289d794632Smrg
98299d794632Smrg
98309d794632Smrg
98319d794632Smrg
98329d794632Smrg
98339d794632Smrg
98349d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
98359d794632Smrg
98369d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
98379d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9838c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9839c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9840c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9841c048b52eSmrgthen :
9842c048b52eSmrg  printf %s "(cached) " >&6
9843772b5186Smrgelse case e in #(
9844772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
98459d794632Smrg/* end confdefs.h.  */
98469d794632Smrgint i;
98479d794632Smrg_ACEOF
9848c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
9849c048b52eSmrgthen :
98509d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9851772b5186Smrgelse case e in #(
9852772b5186Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9853772b5186Smrgesac
98549d794632Smrgfi
9855772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9856772b5186Smrgesac
98579d794632Smrgfi
9858c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9859c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
98609d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
98619d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
98629d794632Smrgfi
98639d794632Smrg
98649d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
98659d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
98669d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
98679d794632Smrg	fi
98689d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9869c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9870c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9871c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9872c048b52eSmrgthen :
9873c048b52eSmrg  printf %s "(cached) " >&6
9874772b5186Smrgelse case e in #(
9875772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
98769d794632Smrg/* end confdefs.h.  */
98779d794632Smrgint i;
98789d794632Smrg_ACEOF
9879c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
9880c048b52eSmrgthen :
98819d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9882772b5186Smrgelse case e in #(
9883772b5186Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9884772b5186Smrgesac
98859d794632Smrgfi
9886772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9887772b5186Smrgesac
98889d794632Smrgfi
9889c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9890c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
98919d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
98929d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
98939d794632Smrgfi
98949d794632Smrg
98959d794632Smrgfound="no"
98969d794632Smrg
98979d794632Smrg	if test $found = "no" ; then
9898e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
98999d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
99009d794632Smrg		fi
99019d794632Smrg
9902e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
99039d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
99049d794632Smrg		fi
99059d794632Smrg
99069d794632Smrg		CFLAGS="$CFLAGS -Wmissing-braces"
99079d794632Smrg
9908c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9909c048b52eSmrgprintf %s "checking if $CC supports -Wmissing-braces... " >&6; }
99109d794632Smrg		cacheid=xorg_cv_cc_flag__Wmissing_braces
9911c048b52eSmrg		if eval test \${$cacheid+y}
9912c048b52eSmrgthen :
9913c048b52eSmrg  printf %s "(cached) " >&6
9914772b5186Smrgelse case e in #(
9915772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
99169d794632Smrg/* end confdefs.h.  */
99179d794632Smrgint i;
99189d794632Smrgint
9919c048b52eSmrgmain (void)
99209d794632Smrg{
99219d794632Smrg
99229d794632Smrg  ;
99239d794632Smrg  return 0;
99249d794632Smrg}
99259d794632Smrg_ACEOF
9926c048b52eSmrgif ac_fn_c_try_link "$LINENO"
9927c048b52eSmrgthen :
99289d794632Smrg  eval $cacheid=yes
9929772b5186Smrgelse case e in #(
9930772b5186Smrg  e) eval $cacheid=no ;;
9931772b5186Smrgesac
99329d794632Smrgfi
9933c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9934772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
9935772b5186Smrgesac
99369d794632Smrgfi
99379d794632Smrg
99389d794632Smrg
99399d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
99409d794632Smrg
99419d794632Smrg		eval supported=\$$cacheid
9942c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9943c048b52eSmrgprintf "%s\n" "$supported" >&6; }
99449d794632Smrg		if test "$supported" = "yes" ; then
99459d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
99469d794632Smrg			found="yes"
99479d794632Smrg		fi
99489d794632Smrg	fi
99499d794632Smrg
99509d794632Smrg
99519d794632Smrg
99529d794632Smrg
99539d794632Smrg
99549d794632Smrg
99559d794632Smrg
99569d794632Smrg
99579d794632Smrg
99589d794632Smrg
99599d794632Smrg
99609d794632Smrg
99619d794632Smrg
99629d794632Smrg
99639d794632Smrg
99649d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
99659d794632Smrg
99669d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
99679d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9968c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9969c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9970c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9971c048b52eSmrgthen :
9972c048b52eSmrg  printf %s "(cached) " >&6
9973772b5186Smrgelse case e in #(
9974772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
99759d794632Smrg/* end confdefs.h.  */
99769d794632Smrgint i;
99779d794632Smrg_ACEOF
9978c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
9979c048b52eSmrgthen :
99809d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9981772b5186Smrgelse case e in #(
9982772b5186Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9983772b5186Smrgesac
99849d794632Smrgfi
9985772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9986772b5186Smrgesac
99879d794632Smrgfi
9988c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9989c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
99909d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
99919d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
99929d794632Smrgfi
99939d794632Smrg
99949d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
99959d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
99969d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
99979d794632Smrg	fi
99989d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9999c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10000c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10001c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10002c048b52eSmrgthen :
10003c048b52eSmrg  printf %s "(cached) " >&6
10004772b5186Smrgelse case e in #(
10005772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
100069d794632Smrg/* end confdefs.h.  */
100079d794632Smrgint i;
100089d794632Smrg_ACEOF
10009c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
10010c048b52eSmrgthen :
100119d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10012772b5186Smrgelse case e in #(
10013772b5186Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10014772b5186Smrgesac
100159d794632Smrgfi
10016772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10017772b5186Smrgesac
100189d794632Smrgfi
10019c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10020c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
100219d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
100229d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
100239d794632Smrgfi
100249d794632Smrg
100259d794632Smrgfound="no"
100269d794632Smrg
100279d794632Smrg	if test $found = "no" ; then
10028e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
100299d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
100309d794632Smrg		fi
100319d794632Smrg
10032e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
100339d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
100349d794632Smrg		fi
100359d794632Smrg
100369d794632Smrg		CFLAGS="$CFLAGS -Wsequence-point"
100379d794632Smrg
10038c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
10039c048b52eSmrgprintf %s "checking if $CC supports -Wsequence-point... " >&6; }
100409d794632Smrg		cacheid=xorg_cv_cc_flag__Wsequence_point
10041c048b52eSmrg		if eval test \${$cacheid+y}
10042c048b52eSmrgthen :
10043c048b52eSmrg  printf %s "(cached) " >&6
10044772b5186Smrgelse case e in #(
10045772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
100469d794632Smrg/* end confdefs.h.  */
100479d794632Smrgint i;
100489d794632Smrgint
10049c048b52eSmrgmain (void)
100509d794632Smrg{
100519d794632Smrg
100529d794632Smrg  ;
100539d794632Smrg  return 0;
100549d794632Smrg}
100559d794632Smrg_ACEOF
10056c048b52eSmrgif ac_fn_c_try_link "$LINENO"
10057c048b52eSmrgthen :
100589d794632Smrg  eval $cacheid=yes
10059772b5186Smrgelse case e in #(
10060772b5186Smrg  e) eval $cacheid=no ;;
10061772b5186Smrgesac
100629d794632Smrgfi
10063c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10064772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
10065772b5186Smrgesac
100669d794632Smrgfi
100679d794632Smrg
100689d794632Smrg
100699d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
100709d794632Smrg
100719d794632Smrg		eval supported=\$$cacheid
10072c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10073c048b52eSmrgprintf "%s\n" "$supported" >&6; }
100749d794632Smrg		if test "$supported" = "yes" ; then
100759d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
100769d794632Smrg			found="yes"
100779d794632Smrg		fi
100789d794632Smrg	fi
100799d794632Smrg
100809d794632Smrg
100819d794632Smrg
100829d794632Smrg
100839d794632Smrg
100849d794632Smrg
100859d794632Smrg
100869d794632Smrg
100879d794632Smrg
100889d794632Smrg
100899d794632Smrg
100909d794632Smrg
100919d794632Smrg
100929d794632Smrg
100939d794632Smrg
100949d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
100959d794632Smrg
100969d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
100979d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10098c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10099c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10100c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10101c048b52eSmrgthen :
10102c048b52eSmrg  printf %s "(cached) " >&6
10103772b5186Smrgelse case e in #(
10104772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
101059d794632Smrg/* end confdefs.h.  */
101069d794632Smrgint i;
101079d794632Smrg_ACEOF
10108c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
10109c048b52eSmrgthen :
101109d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
10111772b5186Smrgelse case e in #(
10112772b5186Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10113772b5186Smrgesac
101149d794632Smrgfi
10115772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10116772b5186Smrgesac
101179d794632Smrgfi
10118c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10119c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
101209d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
101219d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
101229d794632Smrgfi
101239d794632Smrg
101249d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
101259d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
101269d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
101279d794632Smrg	fi
101289d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10129c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10130c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10131c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10132c048b52eSmrgthen :
10133c048b52eSmrg  printf %s "(cached) " >&6
10134772b5186Smrgelse case e in #(
10135772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
101369d794632Smrg/* end confdefs.h.  */
101379d794632Smrgint i;
101389d794632Smrg_ACEOF
10139c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
10140c048b52eSmrgthen :
101419d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10142772b5186Smrgelse case e in #(
10143772b5186Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10144772b5186Smrgesac
101459d794632Smrgfi
10146772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10147772b5186Smrgesac
101489d794632Smrgfi
10149c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10150c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
101519d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
101529d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
101539d794632Smrgfi
101549d794632Smrg
101559d794632Smrgfound="no"
101569d794632Smrg
101579d794632Smrg	if test $found = "no" ; then
10158e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
101599d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
101609d794632Smrg		fi
101619d794632Smrg
10162e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
101639d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
101649d794632Smrg		fi
101659d794632Smrg
101669d794632Smrg		CFLAGS="$CFLAGS -Wreturn-type"
101679d794632Smrg
10168c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10169c048b52eSmrgprintf %s "checking if $CC supports -Wreturn-type... " >&6; }
101709d794632Smrg		cacheid=xorg_cv_cc_flag__Wreturn_type
10171c048b52eSmrg		if eval test \${$cacheid+y}
10172c048b52eSmrgthen :
10173c048b52eSmrg  printf %s "(cached) " >&6
10174772b5186Smrgelse case e in #(
10175772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
101769d794632Smrg/* end confdefs.h.  */
101779d794632Smrgint i;
101789d794632Smrgint
10179c048b52eSmrgmain (void)
101809d794632Smrg{
101819d794632Smrg
101829d794632Smrg  ;
101839d794632Smrg  return 0;
101849d794632Smrg}
101859d794632Smrg_ACEOF
10186c048b52eSmrgif ac_fn_c_try_link "$LINENO"
10187c048b52eSmrgthen :
101889d794632Smrg  eval $cacheid=yes
10189772b5186Smrgelse case e in #(
10190772b5186Smrg  e) eval $cacheid=no ;;
10191772b5186Smrgesac
101929d794632Smrgfi
10193c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10194772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
10195772b5186Smrgesac
101969d794632Smrgfi
101979d794632Smrg
101989d794632Smrg
101999d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
102009d794632Smrg
102019d794632Smrg		eval supported=\$$cacheid
10202c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10203c048b52eSmrgprintf "%s\n" "$supported" >&6; }
102049d794632Smrg		if test "$supported" = "yes" ; then
102059d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
102069d794632Smrg			found="yes"
102079d794632Smrg		fi
102089d794632Smrg	fi
102099d794632Smrg
102109d794632Smrg
102119d794632Smrg
102129d794632Smrg
102139d794632Smrg
102149d794632Smrg
102159d794632Smrg
102169d794632Smrg
102179d794632Smrg
102189d794632Smrg
102199d794632Smrg
102209d794632Smrg
102219d794632Smrg
102229d794632Smrg
102239d794632Smrg
102249d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
102259d794632Smrg
102269d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
102279d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10228c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10229c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10230c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10231c048b52eSmrgthen :
10232c048b52eSmrg  printf %s "(cached) " >&6
10233772b5186Smrgelse case e in #(
10234772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
102359d794632Smrg/* end confdefs.h.  */
102369d794632Smrgint i;
102379d794632Smrg_ACEOF
10238c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
10239c048b52eSmrgthen :
102409d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
10241772b5186Smrgelse case e in #(
10242772b5186Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10243772b5186Smrgesac
102449d794632Smrgfi
10245772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10246772b5186Smrgesac
102479d794632Smrgfi
10248c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10249c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
102509d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
102519d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
102529d794632Smrgfi
102539d794632Smrg
102549d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
102559d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
102569d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
102579d794632Smrg	fi
102589d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10259c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10260c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10261c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10262c048b52eSmrgthen :
10263c048b52eSmrg  printf %s "(cached) " >&6
10264772b5186Smrgelse case e in #(
10265772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
102669d794632Smrg/* end confdefs.h.  */
102679d794632Smrgint i;
102689d794632Smrg_ACEOF
10269c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
10270c048b52eSmrgthen :
102719d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10272772b5186Smrgelse case e in #(
10273772b5186Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10274772b5186Smrgesac
102759d794632Smrgfi
10276772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10277772b5186Smrgesac
102789d794632Smrgfi
10279c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10280c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
102819d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
102829d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
102839d794632Smrgfi
102849d794632Smrg
102859d794632Smrgfound="no"
102869d794632Smrg
102879d794632Smrg	if test $found = "no" ; then
10288e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
102899d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
102909d794632Smrg		fi
102919d794632Smrg
10292e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
102939d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
102949d794632Smrg		fi
102959d794632Smrg
102969d794632Smrg		CFLAGS="$CFLAGS -Wtrigraphs"
102979d794632Smrg
10298c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10299c048b52eSmrgprintf %s "checking if $CC supports -Wtrigraphs... " >&6; }
103009d794632Smrg		cacheid=xorg_cv_cc_flag__Wtrigraphs
10301c048b52eSmrg		if eval test \${$cacheid+y}
10302c048b52eSmrgthen :
10303c048b52eSmrg  printf %s "(cached) " >&6
10304772b5186Smrgelse case e in #(
10305772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
103069d794632Smrg/* end confdefs.h.  */
103079d794632Smrgint i;
103089d794632Smrgint
10309c048b52eSmrgmain (void)
103109d794632Smrg{
103119d794632Smrg
103129d794632Smrg  ;
103139d794632Smrg  return 0;
103149d794632Smrg}
103159d794632Smrg_ACEOF
10316c048b52eSmrgif ac_fn_c_try_link "$LINENO"
10317c048b52eSmrgthen :
103189d794632Smrg  eval $cacheid=yes
10319772b5186Smrgelse case e in #(
10320772b5186Smrg  e) eval $cacheid=no ;;
10321772b5186Smrgesac
103229d794632Smrgfi
10323c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10324772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
10325772b5186Smrgesac
103269d794632Smrgfi
103279d794632Smrg
103289d794632Smrg
103299d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
103309d794632Smrg
103319d794632Smrg		eval supported=\$$cacheid
10332c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10333c048b52eSmrgprintf "%s\n" "$supported" >&6; }
103349d794632Smrg		if test "$supported" = "yes" ; then
103359d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
103369d794632Smrg			found="yes"
103379d794632Smrg		fi
103389d794632Smrg	fi
103399d794632Smrg
103409d794632Smrg
103419d794632Smrg
103429d794632Smrg
103439d794632Smrg
103449d794632Smrg
103459d794632Smrg
103469d794632Smrg
103479d794632Smrg
103489d794632Smrg
103499d794632Smrg
103509d794632Smrg
103519d794632Smrg
103529d794632Smrg
103539d794632Smrg
103549d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
103559d794632Smrg
103569d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
103579d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10358c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10359c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10360c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10361c048b52eSmrgthen :
10362c048b52eSmrg  printf %s "(cached) " >&6
10363772b5186Smrgelse case e in #(
10364772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
103659d794632Smrg/* end confdefs.h.  */
103669d794632Smrgint i;
103679d794632Smrg_ACEOF
10368c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
10369c048b52eSmrgthen :
103709d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
10371772b5186Smrgelse case e in #(
10372772b5186Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10373772b5186Smrgesac
103749d794632Smrgfi
10375772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10376772b5186Smrgesac
103779d794632Smrgfi
10378c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10379c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
103809d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
103819d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
103829d794632Smrgfi
103839d794632Smrg
103849d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
103859d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
103869d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
103879d794632Smrg	fi
103889d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10389c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10390c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10391c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10392c048b52eSmrgthen :
10393c048b52eSmrg  printf %s "(cached) " >&6
10394772b5186Smrgelse case e in #(
10395772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
103969d794632Smrg/* end confdefs.h.  */
103979d794632Smrgint i;
103989d794632Smrg_ACEOF
10399c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
10400c048b52eSmrgthen :
104019d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10402772b5186Smrgelse case e in #(
10403772b5186Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10404772b5186Smrgesac
104059d794632Smrgfi
10406772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10407772b5186Smrgesac
104089d794632Smrgfi
10409c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10410c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
104119d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
104129d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
104139d794632Smrgfi
104149d794632Smrg
104159d794632Smrgfound="no"
104169d794632Smrg
104179d794632Smrg	if test $found = "no" ; then
10418e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
104199d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
104209d794632Smrg		fi
104219d794632Smrg
10422e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
104239d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
104249d794632Smrg		fi
104259d794632Smrg
104269d794632Smrg		CFLAGS="$CFLAGS -Warray-bounds"
104279d794632Smrg
10428c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10429c048b52eSmrgprintf %s "checking if $CC supports -Warray-bounds... " >&6; }
104309d794632Smrg		cacheid=xorg_cv_cc_flag__Warray_bounds
10431c048b52eSmrg		if eval test \${$cacheid+y}
10432c048b52eSmrgthen :
10433c048b52eSmrg  printf %s "(cached) " >&6
10434772b5186Smrgelse case e in #(
10435772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
104369d794632Smrg/* end confdefs.h.  */
104379d794632Smrgint i;
104389d794632Smrgint
10439c048b52eSmrgmain (void)
104409d794632Smrg{
104419d794632Smrg
104429d794632Smrg  ;
104439d794632Smrg  return 0;
104449d794632Smrg}
104459d794632Smrg_ACEOF
10446c048b52eSmrgif ac_fn_c_try_link "$LINENO"
10447c048b52eSmrgthen :
104489d794632Smrg  eval $cacheid=yes
10449772b5186Smrgelse case e in #(
10450772b5186Smrg  e) eval $cacheid=no ;;
10451772b5186Smrgesac
104529d794632Smrgfi
10453c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10454772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
10455772b5186Smrgesac
104569d794632Smrgfi
104579d794632Smrg
104589d794632Smrg
104599d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
104609d794632Smrg
104619d794632Smrg		eval supported=\$$cacheid
10462c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10463c048b52eSmrgprintf "%s\n" "$supported" >&6; }
104649d794632Smrg		if test "$supported" = "yes" ; then
104659d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
104669d794632Smrg			found="yes"
104679d794632Smrg		fi
104689d794632Smrg	fi
104699d794632Smrg
104709d794632Smrg
104719d794632Smrg
104729d794632Smrg
104739d794632Smrg
104749d794632Smrg
104759d794632Smrg
104769d794632Smrg
104779d794632Smrg
104789d794632Smrg
104799d794632Smrg
104809d794632Smrg
104819d794632Smrg
104829d794632Smrg
104839d794632Smrg
104849d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
104859d794632Smrg
104869d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
104879d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10488c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10489c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10490c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10491c048b52eSmrgthen :
10492c048b52eSmrg  printf %s "(cached) " >&6
10493772b5186Smrgelse case e in #(
10494772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
104959d794632Smrg/* end confdefs.h.  */
104969d794632Smrgint i;
104979d794632Smrg_ACEOF
10498c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
10499c048b52eSmrgthen :
105009d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
10501772b5186Smrgelse case e in #(
10502772b5186Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10503772b5186Smrgesac
105049d794632Smrgfi
10505772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10506772b5186Smrgesac
105079d794632Smrgfi
10508c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10509c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
105109d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
105119d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
105129d794632Smrgfi
105139d794632Smrg
105149d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
105159d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
105169d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
105179d794632Smrg	fi
105189d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10519c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10520c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10521c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10522c048b52eSmrgthen :
10523c048b52eSmrg  printf %s "(cached) " >&6
10524772b5186Smrgelse case e in #(
10525772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
105269d794632Smrg/* end confdefs.h.  */
105279d794632Smrgint i;
105289d794632Smrg_ACEOF
10529c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
10530c048b52eSmrgthen :
105319d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10532772b5186Smrgelse case e in #(
10533772b5186Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10534772b5186Smrgesac
105359d794632Smrgfi
10536772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10537772b5186Smrgesac
105389d794632Smrgfi
10539c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10540c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
105419d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
105429d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
105439d794632Smrgfi
105449d794632Smrg
105459d794632Smrgfound="no"
105469d794632Smrg
105479d794632Smrg	if test $found = "no" ; then
10548e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
105499d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
105509d794632Smrg		fi
105519d794632Smrg
10552e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
105539d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
105549d794632Smrg		fi
105559d794632Smrg
105569d794632Smrg		CFLAGS="$CFLAGS -Wwrite-strings"
105579d794632Smrg
10558c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10559c048b52eSmrgprintf %s "checking if $CC supports -Wwrite-strings... " >&6; }
105609d794632Smrg		cacheid=xorg_cv_cc_flag__Wwrite_strings
10561c048b52eSmrg		if eval test \${$cacheid+y}
10562c048b52eSmrgthen :
10563c048b52eSmrg  printf %s "(cached) " >&6
10564772b5186Smrgelse case e in #(
10565772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
105669d794632Smrg/* end confdefs.h.  */
105679d794632Smrgint i;
105689d794632Smrgint
10569c048b52eSmrgmain (void)
105709d794632Smrg{
105719d794632Smrg
105729d794632Smrg  ;
105739d794632Smrg  return 0;
105749d794632Smrg}
105759d794632Smrg_ACEOF
10576c048b52eSmrgif ac_fn_c_try_link "$LINENO"
10577c048b52eSmrgthen :
105789d794632Smrg  eval $cacheid=yes
10579772b5186Smrgelse case e in #(
10580772b5186Smrg  e) eval $cacheid=no ;;
10581772b5186Smrgesac
105829d794632Smrgfi
10583c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10584772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
10585772b5186Smrgesac
105869d794632Smrgfi
105879d794632Smrg
105889d794632Smrg
105899d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
105909d794632Smrg
105919d794632Smrg		eval supported=\$$cacheid
10592c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10593c048b52eSmrgprintf "%s\n" "$supported" >&6; }
105949d794632Smrg		if test "$supported" = "yes" ; then
105959d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
105969d794632Smrg			found="yes"
105979d794632Smrg		fi
105989d794632Smrg	fi
105999d794632Smrg
106009d794632Smrg
106019d794632Smrg
106029d794632Smrg
106039d794632Smrg
106049d794632Smrg
106059d794632Smrg
106069d794632Smrg
106079d794632Smrg
106089d794632Smrg
106099d794632Smrg
106109d794632Smrg
106119d794632Smrg
106129d794632Smrg
106139d794632Smrg
106149d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
106159d794632Smrg
106169d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
106179d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10618c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10619c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10620c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10621c048b52eSmrgthen :
10622c048b52eSmrg  printf %s "(cached) " >&6
10623772b5186Smrgelse case e in #(
10624772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
106259d794632Smrg/* end confdefs.h.  */
106269d794632Smrgint i;
106279d794632Smrg_ACEOF
10628c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
10629c048b52eSmrgthen :
106309d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
10631772b5186Smrgelse case e in #(
10632772b5186Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10633772b5186Smrgesac
106349d794632Smrgfi
10635772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10636772b5186Smrgesac
106379d794632Smrgfi
10638c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10639c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
106409d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
106419d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
106429d794632Smrgfi
106439d794632Smrg
106449d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
106459d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
106469d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
106479d794632Smrg	fi
106489d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10649c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10650c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10651c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10652c048b52eSmrgthen :
10653c048b52eSmrg  printf %s "(cached) " >&6
10654772b5186Smrgelse case e in #(
10655772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
106569d794632Smrg/* end confdefs.h.  */
106579d794632Smrgint i;
106589d794632Smrg_ACEOF
10659c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
10660c048b52eSmrgthen :
106619d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10662772b5186Smrgelse case e in #(
10663772b5186Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10664772b5186Smrgesac
106659d794632Smrgfi
10666772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10667772b5186Smrgesac
106689d794632Smrgfi
10669c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10670c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
106719d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
106729d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
106739d794632Smrgfi
106749d794632Smrg
106759d794632Smrgfound="no"
106769d794632Smrg
106779d794632Smrg	if test $found = "no" ; then
10678e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
106799d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
106809d794632Smrg		fi
106819d794632Smrg
10682e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
106839d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
106849d794632Smrg		fi
106859d794632Smrg
106869d794632Smrg		CFLAGS="$CFLAGS -Waddress"
106879d794632Smrg
10688c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10689c048b52eSmrgprintf %s "checking if $CC supports -Waddress... " >&6; }
106909d794632Smrg		cacheid=xorg_cv_cc_flag__Waddress
10691c048b52eSmrg		if eval test \${$cacheid+y}
10692c048b52eSmrgthen :
10693c048b52eSmrg  printf %s "(cached) " >&6
10694772b5186Smrgelse case e in #(
10695772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
106969d794632Smrg/* end confdefs.h.  */
106979d794632Smrgint i;
106989d794632Smrgint
10699c048b52eSmrgmain (void)
107009d794632Smrg{
107019d794632Smrg
107029d794632Smrg  ;
107039d794632Smrg  return 0;
107049d794632Smrg}
107059d794632Smrg_ACEOF
10706c048b52eSmrgif ac_fn_c_try_link "$LINENO"
10707c048b52eSmrgthen :
107089d794632Smrg  eval $cacheid=yes
10709772b5186Smrgelse case e in #(
10710772b5186Smrg  e) eval $cacheid=no ;;
10711772b5186Smrgesac
107129d794632Smrgfi
10713c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10714772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
10715772b5186Smrgesac
107169d794632Smrgfi
107179d794632Smrg
107189d794632Smrg
107199d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
107209d794632Smrg
107219d794632Smrg		eval supported=\$$cacheid
10722c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10723c048b52eSmrgprintf "%s\n" "$supported" >&6; }
107249d794632Smrg		if test "$supported" = "yes" ; then
107259d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
107269d794632Smrg			found="yes"
107279d794632Smrg		fi
107289d794632Smrg	fi
107299d794632Smrg
107309d794632Smrg
107319d794632Smrg
107329d794632Smrg
107339d794632Smrg
107349d794632Smrg
107359d794632Smrg
107369d794632Smrg
107379d794632Smrg
107389d794632Smrg
107399d794632Smrg
107409d794632Smrg
107419d794632Smrg
107429d794632Smrg
107439d794632Smrg
107449d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
107459d794632Smrg
107469d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
107479d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10748c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10749c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10750c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10751c048b52eSmrgthen :
10752c048b52eSmrg  printf %s "(cached) " >&6
10753772b5186Smrgelse case e in #(
10754772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107559d794632Smrg/* end confdefs.h.  */
107569d794632Smrgint i;
107579d794632Smrg_ACEOF
10758c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
10759c048b52eSmrgthen :
107609d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
10761772b5186Smrgelse case e in #(
10762772b5186Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10763772b5186Smrgesac
107649d794632Smrgfi
10765772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10766772b5186Smrgesac
107679d794632Smrgfi
10768c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10769c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
107709d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
107719d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
107729d794632Smrgfi
107739d794632Smrg
107749d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
107759d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
107769d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
107779d794632Smrg	fi
107789d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10779c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10780c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10781c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10782c048b52eSmrgthen :
10783c048b52eSmrg  printf %s "(cached) " >&6
10784772b5186Smrgelse case e in #(
10785772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107869d794632Smrg/* end confdefs.h.  */
107879d794632Smrgint i;
107889d794632Smrg_ACEOF
10789c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
10790c048b52eSmrgthen :
107919d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10792772b5186Smrgelse case e in #(
10793772b5186Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10794772b5186Smrgesac
107959d794632Smrgfi
10796772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10797772b5186Smrgesac
107989d794632Smrgfi
10799c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10800c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
108019d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
108029d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
108039d794632Smrgfi
108049d794632Smrg
108059d794632Smrgfound="no"
108069d794632Smrg
108079d794632Smrg	if test $found = "no" ; then
10808e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
108099d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
108109d794632Smrg		fi
108119d794632Smrg
10812e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
108139d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
108149d794632Smrg		fi
108159d794632Smrg
108169d794632Smrg		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
108179d794632Smrg
10818c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10819c048b52eSmrgprintf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
108209d794632Smrg		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10821c048b52eSmrg		if eval test \${$cacheid+y}
10822c048b52eSmrgthen :
10823c048b52eSmrg  printf %s "(cached) " >&6
10824772b5186Smrgelse case e in #(
10825772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
108269d794632Smrg/* end confdefs.h.  */
108279d794632Smrgint i;
108289d794632Smrgint
10829c048b52eSmrgmain (void)
108309d794632Smrg{
108319d794632Smrg
108329d794632Smrg  ;
108339d794632Smrg  return 0;
108349d794632Smrg}
108359d794632Smrg_ACEOF
10836c048b52eSmrgif ac_fn_c_try_link "$LINENO"
10837c048b52eSmrgthen :
108389d794632Smrg  eval $cacheid=yes
10839772b5186Smrgelse case e in #(
10840772b5186Smrg  e) eval $cacheid=no ;;
10841772b5186Smrgesac
108429d794632Smrgfi
10843c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10844772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
10845772b5186Smrgesac
108469d794632Smrgfi
108479d794632Smrg
108489d794632Smrg
108499d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
108509d794632Smrg
108519d794632Smrg		eval supported=\$$cacheid
10852c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10853c048b52eSmrgprintf "%s\n" "$supported" >&6; }
108549d794632Smrg		if test "$supported" = "yes" ; then
108559d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
108569d794632Smrg			found="yes"
108579d794632Smrg		fi
108589d794632Smrg	fi
108599d794632Smrg
108609d794632Smrg
108619d794632Smrg
108629d794632Smrg
108639d794632Smrg
108649d794632Smrg
108659d794632Smrg
108669d794632Smrg
108679d794632Smrg
108689d794632Smrg
108699d794632Smrg
108709d794632Smrg
108719d794632Smrg
108729d794632Smrg
108739d794632Smrg
108749d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
108759d794632Smrg
108769d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
108779d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10878c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10879c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10880c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10881c048b52eSmrgthen :
10882c048b52eSmrg  printf %s "(cached) " >&6
10883772b5186Smrgelse case e in #(
10884772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
108859d794632Smrg/* end confdefs.h.  */
108869d794632Smrgint i;
108879d794632Smrg_ACEOF
10888c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
10889c048b52eSmrgthen :
108909d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
10891772b5186Smrgelse case e in #(
10892772b5186Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10893772b5186Smrgesac
108949d794632Smrgfi
10895772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10896772b5186Smrgesac
108979d794632Smrgfi
10898c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10899c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
109009d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
109019d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
109029d794632Smrgfi
109039d794632Smrg
109049d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
109059d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
109069d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
109079d794632Smrg	fi
109089d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10909c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10910c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10911c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10912c048b52eSmrgthen :
10913c048b52eSmrg  printf %s "(cached) " >&6
10914772b5186Smrgelse case e in #(
10915772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
109169d794632Smrg/* end confdefs.h.  */
109179d794632Smrgint i;
109189d794632Smrg_ACEOF
10919c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
10920c048b52eSmrgthen :
109219d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10922772b5186Smrgelse case e in #(
10923772b5186Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10924772b5186Smrgesac
109259d794632Smrgfi
10926772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10927772b5186Smrgesac
109289d794632Smrgfi
10929c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10930c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
109319d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
109329d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
109339d794632Smrgfi
109349d794632Smrg
109359d794632Smrgfound="no"
109369d794632Smrg
109379d794632Smrg	if test $found = "no" ; then
10938e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
109399d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
109409d794632Smrg		fi
109419d794632Smrg
10942e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
109439d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
109449d794632Smrg		fi
109459d794632Smrg
109469d794632Smrg		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
109479d794632Smrg
10948c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10949c048b52eSmrgprintf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
109509d794632Smrg		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10951c048b52eSmrg		if eval test \${$cacheid+y}
10952c048b52eSmrgthen :
10953c048b52eSmrg  printf %s "(cached) " >&6
10954772b5186Smrgelse case e in #(
10955772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
109569d794632Smrg/* end confdefs.h.  */
109579d794632Smrgint i;
109589d794632Smrgint
10959c048b52eSmrgmain (void)
109609d794632Smrg{
109619d794632Smrg
109629d794632Smrg  ;
109639d794632Smrg  return 0;
109649d794632Smrg}
109659d794632Smrg_ACEOF
10966c048b52eSmrgif ac_fn_c_try_link "$LINENO"
10967c048b52eSmrgthen :
109689d794632Smrg  eval $cacheid=yes
10969772b5186Smrgelse case e in #(
10970772b5186Smrg  e) eval $cacheid=no ;;
10971772b5186Smrgesac
109729d794632Smrgfi
10973c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10974772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
10975772b5186Smrgesac
109769d794632Smrgfi
109779d794632Smrg
109789d794632Smrg
109799d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
109809d794632Smrg
109819d794632Smrg		eval supported=\$$cacheid
10982c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10983c048b52eSmrgprintf "%s\n" "$supported" >&6; }
109849d794632Smrg		if test "$supported" = "yes" ; then
109859d794632Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
109869d794632Smrg			found="yes"
109879d794632Smrg		fi
109889d794632Smrg	fi
109899d794632Smrg
109909d794632Smrg
109919d794632Smrgfi
109929d794632Smrg
109939d794632Smrg
109949d794632Smrg
109959d794632Smrg
109969d794632Smrg
109979d794632Smrg
109989d794632Smrg
109999d794632Smrg		CWARNFLAGS="$BASE_CFLAGS"
110009d794632Smrg		if  test "x$GCC" = xyes ; then
110019d794632Smrg		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
110029d794632Smrg		fi
110039d794632Smrg
110049d794632Smrg
110059d794632Smrg
110069d794632Smrg
110079d794632Smrg
110089d794632Smrg
110099d794632Smrg
110109d794632Smrg
110119d794632Smrg# Check whether --enable-strict-compilation was given.
11012c048b52eSmrgif test ${enable_strict_compilation+y}
11013c048b52eSmrgthen :
110149d794632Smrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
11015772b5186Smrgelse case e in #(
11016772b5186Smrg  e) STRICT_COMPILE=no ;;
11017772b5186Smrgesac
110189d794632Smrgfi
110199d794632Smrg
110209d794632Smrg
110219d794632Smrg
110229d794632Smrg
110239d794632Smrg
110249d794632Smrg
110259d794632SmrgSTRICT_CFLAGS=""
110269d794632Smrg
110279d794632Smrg
110289d794632Smrg
110299d794632Smrg
110309d794632Smrg
110319d794632Smrg
110329d794632Smrg
110339d794632Smrg
110349d794632Smrg
110359d794632Smrg
110369d794632Smrg
110379d794632Smrg
110389d794632Smrg
110399d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
110409d794632Smrg
110419d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
110429d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11043c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11044c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11045c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
11046c048b52eSmrgthen :
11047c048b52eSmrg  printf %s "(cached) " >&6
11048772b5186Smrgelse case e in #(
11049772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
110509d794632Smrg/* end confdefs.h.  */
110519d794632Smrgint i;
110529d794632Smrg_ACEOF
11053c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
11054c048b52eSmrgthen :
110559d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
11056772b5186Smrgelse case e in #(
11057772b5186Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11058772b5186Smrgesac
110599d794632Smrgfi
11060772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11061772b5186Smrgesac
110629d794632Smrgfi
11063c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11064c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
110659d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
110669d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
110679d794632Smrgfi
110689d794632Smrg
110699d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
110709d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
110719d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
110729d794632Smrg	fi
110739d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11074c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11075c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11076c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11077c048b52eSmrgthen :
11078c048b52eSmrg  printf %s "(cached) " >&6
11079772b5186Smrgelse case e in #(
11080772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
110819d794632Smrg/* end confdefs.h.  */
110829d794632Smrgint i;
110839d794632Smrg_ACEOF
11084c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
11085c048b52eSmrgthen :
110869d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
11087772b5186Smrgelse case e in #(
11088772b5186Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11089772b5186Smrgesac
110909d794632Smrgfi
11091772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11092772b5186Smrgesac
110939d794632Smrgfi
11094c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11095c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
110969d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
110979d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
110989d794632Smrgfi
110999d794632Smrg
111009d794632Smrgfound="no"
111019d794632Smrg
111029d794632Smrg	if test $found = "no" ; then
11103e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
111049d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
111059d794632Smrg		fi
111069d794632Smrg
11107e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
111089d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
111099d794632Smrg		fi
111109d794632Smrg
111119d794632Smrg		CFLAGS="$CFLAGS -pedantic"
111129d794632Smrg
11113c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
11114c048b52eSmrgprintf %s "checking if $CC supports -pedantic... " >&6; }
111159d794632Smrg		cacheid=xorg_cv_cc_flag__pedantic
11116c048b52eSmrg		if eval test \${$cacheid+y}
11117c048b52eSmrgthen :
11118c048b52eSmrg  printf %s "(cached) " >&6
11119772b5186Smrgelse case e in #(
11120772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
111219d794632Smrg/* end confdefs.h.  */
111229d794632Smrgint i;
111239d794632Smrgint
11124c048b52eSmrgmain (void)
111259d794632Smrg{
111269d794632Smrg
111279d794632Smrg  ;
111289d794632Smrg  return 0;
111299d794632Smrg}
111309d794632Smrg_ACEOF
11131c048b52eSmrgif ac_fn_c_try_link "$LINENO"
11132c048b52eSmrgthen :
111339d794632Smrg  eval $cacheid=yes
11134772b5186Smrgelse case e in #(
11135772b5186Smrg  e) eval $cacheid=no ;;
11136772b5186Smrgesac
111379d794632Smrgfi
11138c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
11139772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
11140772b5186Smrgesac
111419d794632Smrgfi
111429d794632Smrg
111439d794632Smrg
111449d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
111459d794632Smrg
111469d794632Smrg		eval supported=\$$cacheid
11147c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11148c048b52eSmrgprintf "%s\n" "$supported" >&6; }
111499d794632Smrg		if test "$supported" = "yes" ; then
111509d794632Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
111519d794632Smrg			found="yes"
111529d794632Smrg		fi
111539d794632Smrg	fi
111549d794632Smrg
111559d794632Smrg
111569d794632Smrg
111579d794632Smrg
111589d794632Smrg
111599d794632Smrg
111609d794632Smrg
111619d794632Smrg
111629d794632Smrg
111639d794632Smrg
111649d794632Smrg
111659d794632Smrg
111669d794632Smrg
111679d794632Smrg
111689d794632Smrg
111699d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
111709d794632Smrg
111719d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
111729d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11173c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11174c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11175c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
11176c048b52eSmrgthen :
11177c048b52eSmrg  printf %s "(cached) " >&6
11178772b5186Smrgelse case e in #(
11179772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
111809d794632Smrg/* end confdefs.h.  */
111819d794632Smrgint i;
111829d794632Smrg_ACEOF
11183c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
11184c048b52eSmrgthen :
111859d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
11186772b5186Smrgelse case e in #(
11187772b5186Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11188772b5186Smrgesac
111899d794632Smrgfi
11190772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11191772b5186Smrgesac
111929d794632Smrgfi
11193c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11194c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
111959d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
111969d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
111979d794632Smrgfi
111989d794632Smrg
111999d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
112009d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
112019d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
112029d794632Smrg	fi
112039d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11204c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11205c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11206c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11207c048b52eSmrgthen :
11208c048b52eSmrg  printf %s "(cached) " >&6
11209772b5186Smrgelse case e in #(
11210772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
112119d794632Smrg/* end confdefs.h.  */
112129d794632Smrgint i;
112139d794632Smrg_ACEOF
11214c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
11215c048b52eSmrgthen :
112169d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
11217772b5186Smrgelse case e in #(
11218772b5186Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11219772b5186Smrgesac
112209d794632Smrgfi
11221772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11222772b5186Smrgesac
112239d794632Smrgfi
11224c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11225c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
112269d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
112279d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
112289d794632Smrgfi
112299d794632Smrg
112309d794632Smrgfound="no"
112319d794632Smrg
112329d794632Smrg	if test $found = "no" ; then
11233e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
112349d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
112359d794632Smrg		fi
112369d794632Smrg
11237e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
112389d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
112399d794632Smrg		fi
112409d794632Smrg
112419d794632Smrg		CFLAGS="$CFLAGS -Werror"
112429d794632Smrg
11243c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11244c048b52eSmrgprintf %s "checking if $CC supports -Werror... " >&6; }
112459d794632Smrg		cacheid=xorg_cv_cc_flag__Werror
11246c048b52eSmrg		if eval test \${$cacheid+y}
11247c048b52eSmrgthen :
11248c048b52eSmrg  printf %s "(cached) " >&6
11249772b5186Smrgelse case e in #(
11250772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
112519d794632Smrg/* end confdefs.h.  */
112529d794632Smrgint i;
112539d794632Smrgint
11254c048b52eSmrgmain (void)
112559d794632Smrg{
112569d794632Smrg
112579d794632Smrg  ;
112589d794632Smrg  return 0;
112599d794632Smrg}
112609d794632Smrg_ACEOF
11261c048b52eSmrgif ac_fn_c_try_link "$LINENO"
11262c048b52eSmrgthen :
112639d794632Smrg  eval $cacheid=yes
11264772b5186Smrgelse case e in #(
11265772b5186Smrg  e) eval $cacheid=no ;;
11266772b5186Smrgesac
112679d794632Smrgfi
11268c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
11269772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
11270772b5186Smrgesac
112719d794632Smrgfi
112729d794632Smrg
112739d794632Smrg
112749d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
112759d794632Smrg
112769d794632Smrg		eval supported=\$$cacheid
11277c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11278c048b52eSmrgprintf "%s\n" "$supported" >&6; }
112799d794632Smrg		if test "$supported" = "yes" ; then
112809d794632Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
112819d794632Smrg			found="yes"
112829d794632Smrg		fi
112839d794632Smrg	fi
112849d794632Smrg
112859d794632Smrg	if test $found = "no" ; then
11286e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
112879d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
112889d794632Smrg		fi
112899d794632Smrg
11290e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
112919d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
112929d794632Smrg		fi
112939d794632Smrg
112949d794632Smrg		CFLAGS="$CFLAGS -errwarn"
112959d794632Smrg
11296c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11297c048b52eSmrgprintf %s "checking if $CC supports -errwarn... " >&6; }
112989d794632Smrg		cacheid=xorg_cv_cc_flag__errwarn
11299c048b52eSmrg		if eval test \${$cacheid+y}
11300c048b52eSmrgthen :
11301c048b52eSmrg  printf %s "(cached) " >&6
11302772b5186Smrgelse case e in #(
11303772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
113049d794632Smrg/* end confdefs.h.  */
113059d794632Smrgint i;
113069d794632Smrgint
11307c048b52eSmrgmain (void)
113089d794632Smrg{
113099d794632Smrg
113109d794632Smrg  ;
113119d794632Smrg  return 0;
113129d794632Smrg}
113139d794632Smrg_ACEOF
11314c048b52eSmrgif ac_fn_c_try_link "$LINENO"
11315c048b52eSmrgthen :
113169d794632Smrg  eval $cacheid=yes
11317772b5186Smrgelse case e in #(
11318772b5186Smrg  e) eval $cacheid=no ;;
11319772b5186Smrgesac
113209d794632Smrgfi
11321c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
11322772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
11323772b5186Smrgesac
113249d794632Smrgfi
113259d794632Smrg
113269d794632Smrg
113279d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
113289d794632Smrg
113299d794632Smrg		eval supported=\$$cacheid
11330c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11331c048b52eSmrgprintf "%s\n" "$supported" >&6; }
113329d794632Smrg		if test "$supported" = "yes" ; then
113339d794632Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
113349d794632Smrg			found="yes"
113359d794632Smrg		fi
113369d794632Smrg	fi
113379d794632Smrg
113389d794632Smrg
113399d794632Smrg
113409d794632Smrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
113419d794632Smrg# activate it with -Werror, so we add it here explicitly.
113429d794632Smrg
113439d794632Smrg
113449d794632Smrg
113459d794632Smrg
113469d794632Smrg
113479d794632Smrg
113489d794632Smrg
113499d794632Smrg
113509d794632Smrg
113519d794632Smrg
113529d794632Smrg
113539d794632Smrg
113549d794632Smrg
113559d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS"
113569d794632Smrg
113579d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
113589d794632Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11359c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11360c048b52eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11361c048b52eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
11362c048b52eSmrgthen :
11363c048b52eSmrg  printf %s "(cached) " >&6
11364772b5186Smrgelse case e in #(
11365772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
113669d794632Smrg/* end confdefs.h.  */
113679d794632Smrgint i;
113689d794632Smrg_ACEOF
11369c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
11370c048b52eSmrgthen :
113719d794632Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
11372772b5186Smrgelse case e in #(
11373772b5186Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11374772b5186Smrgesac
113759d794632Smrgfi
11376772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11377772b5186Smrgesac
113789d794632Smrgfi
11379c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11380c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
113819d794632Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
113829d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
113839d794632Smrgfi
113849d794632Smrg
113859d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
113869d794632Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
113879d794632Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
113889d794632Smrg	fi
113899d794632Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11390c048b52eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11391c048b52eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11392c048b52eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11393c048b52eSmrgthen :
11394c048b52eSmrg  printf %s "(cached) " >&6
11395772b5186Smrgelse case e in #(
11396772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
113979d794632Smrg/* end confdefs.h.  */
113989d794632Smrgint i;
113999d794632Smrg_ACEOF
11400c048b52eSmrgif ac_fn_c_try_compile "$LINENO"
11401c048b52eSmrgthen :
114029d794632Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
11403772b5186Smrgelse case e in #(
11404772b5186Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11405772b5186Smrgesac
114069d794632Smrgfi
11407772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11408772b5186Smrgesac
114099d794632Smrgfi
11410c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11411c048b52eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
114129d794632Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
114139d794632Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
114149d794632Smrgfi
114159d794632Smrg
114169d794632Smrgfound="no"
114179d794632Smrg
114189d794632Smrg	if test $found = "no" ; then
11419e8ac26b0Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
114209d794632Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
114219d794632Smrg		fi
114229d794632Smrg
11423e8ac26b0Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
114249d794632Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
114259d794632Smrg		fi
114269d794632Smrg
114279d794632Smrg		CFLAGS="$CFLAGS -Werror=attributes"
114289d794632Smrg
11429c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11430c048b52eSmrgprintf %s "checking if $CC supports -Werror=attributes... " >&6; }
11431e8ac26b0Smrg		cacheid=xorg_cv_cc_flag__Werror_attributes
11432c048b52eSmrg		if eval test \${$cacheid+y}
11433c048b52eSmrgthen :
11434c048b52eSmrg  printf %s "(cached) " >&6
11435772b5186Smrgelse case e in #(
11436772b5186Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
114379d794632Smrg/* end confdefs.h.  */
114389d794632Smrgint i;
114399d794632Smrgint
11440c048b52eSmrgmain (void)
114419d794632Smrg{
114429d794632Smrg
114439d794632Smrg  ;
114449d794632Smrg  return 0;
114459d794632Smrg}
114469d794632Smrg_ACEOF
11447c048b52eSmrgif ac_fn_c_try_link "$LINENO"
11448c048b52eSmrgthen :
114499d794632Smrg  eval $cacheid=yes
11450772b5186Smrgelse case e in #(
11451772b5186Smrg  e) eval $cacheid=no ;;
11452772b5186Smrgesac
114539d794632Smrgfi
11454c048b52eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
11455772b5186Smrg    conftest$ac_exeext conftest.$ac_ext ;;
11456772b5186Smrgesac
114579d794632Smrgfi
114589d794632Smrg
114599d794632Smrg
114609d794632Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
114619d794632Smrg
114629d794632Smrg		eval supported=\$$cacheid
11463c048b52eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11464c048b52eSmrgprintf "%s\n" "$supported" >&6; }
114659d794632Smrg		if test "$supported" = "yes" ; then
114669d794632Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
114679d794632Smrg			found="yes"
114689d794632Smrg		fi
114699d794632Smrg	fi
114709d794632Smrg
114719d794632Smrg
114729d794632Smrg
114739d794632Smrgif test "x$STRICT_COMPILE" = "xyes"; then
114749d794632Smrg    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
114759d794632Smrg    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
114769d794632Smrgfi
114779d794632Smrg
114789d794632Smrg
114799d794632Smrg
114809d794632Smrg
114819d794632Smrg
114829d794632Smrg
11483772b5186Smrg
11484772b5186Smrg
114859d794632Smrgcat >>confdefs.h <<_ACEOF
114869d794632Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
114879d794632Smrg_ACEOF
114889d794632Smrg
114899d794632Smrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
114909d794632Smrg	if test "x$PVM" = "x"; then
114919d794632Smrg		PVM="0"
114929d794632Smrg	fi
114939d794632Smrg
11494c048b52eSmrgprintf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
114959d794632Smrg
114969d794632Smrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
114979d794632Smrg	if test "x$PVP" = "x"; then
114989d794632Smrg		PVP="0"
114999d794632Smrg	fi
115009d794632Smrg
11501c048b52eSmrgprintf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
115029d794632Smrg
115039d794632Smrg
115049d794632Smrg
11505c048b52eSmrgCHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
115069d794632Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11507c048b52eSmrg|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11508c048b52eSmrgtouch \$(top_srcdir)/ChangeLog; \
11509c048b52eSmrgecho 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
115109d794632Smrg
115119d794632Smrg
115129d794632Smrg
115139d794632Smrg
115149d794632Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
115159d794632SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
115169d794632Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11517c048b52eSmrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11518c048b52eSmrgtouch \$(top_srcdir)/INSTALL; \
11519c048b52eSmrgecho 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
115209d794632Smrg
115219d794632Smrg
115229d794632Smrg
115239d794632Smrg
115249d794632Smrg
115259d794632Smrg
11526c048b52eSmrgcase $host_os in
11527c048b52eSmrg    solaris*)
11528c048b52eSmrg        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11529c048b52eSmrg        # check for a man page file found in later versions that use
11530c048b52eSmrg        # traditional section numbers instead
11531c048b52eSmrg        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11532c048b52eSmrgprintf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11533c048b52eSmrgif test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11534c048b52eSmrgthen :
11535c048b52eSmrg  printf %s "(cached) " >&6
11536772b5186Smrgelse case e in #(
11537772b5186Smrg  e) test "$cross_compiling" = yes &&
11538c048b52eSmrg  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11539c048b52eSmrgif test -r "/usr/share/man/man7/attributes.7"; then
11540c048b52eSmrg  ac_cv_file__usr_share_man_man7_attributes_7=yes
11541c048b52eSmrgelse
11542c048b52eSmrg  ac_cv_file__usr_share_man_man7_attributes_7=no
11543772b5186Smrgfi ;;
11544772b5186Smrgesac
11545c048b52eSmrgfi
11546c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11547c048b52eSmrgprintf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11548c048b52eSmrgif test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11549c048b52eSmrgthen :
11550c048b52eSmrg  SYSV_MAN_SECTIONS=false
11551772b5186Smrgelse case e in #(
11552772b5186Smrg  e) SYSV_MAN_SECTIONS=true ;;
11553772b5186Smrgesac
11554c048b52eSmrgfi
11555c048b52eSmrg
11556c048b52eSmrg        ;;
11557c048b52eSmrg    *) SYSV_MAN_SECTIONS=false ;;
11558c048b52eSmrgesac
11559c048b52eSmrg
115609d794632Smrgif test x$APP_MAN_SUFFIX = x    ; then
115619d794632Smrg    APP_MAN_SUFFIX=1
115629d794632Smrgfi
115639d794632Smrgif test x$APP_MAN_DIR = x    ; then
115649d794632Smrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
115659d794632Smrgfi
115669d794632Smrg
115679d794632Smrgif test x$LIB_MAN_SUFFIX = x    ; then
115689fe995a9Smrg    LIB_MAN_SUFFIX=3
115699fe995a9Smrgfi
115709fe995a9Smrgif test x$LIB_MAN_DIR = x    ; then
115719fe995a9Smrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
115729fe995a9Smrgfi
115739fe995a9Smrg
115749fe995a9Smrgif test x$FILE_MAN_SUFFIX = x    ; then
11575c048b52eSmrg    case $SYSV_MAN_SECTIONS in
11576c048b52eSmrg	true)				FILE_MAN_SUFFIX=4  ;;
115776fbef84aSmrg	*)				FILE_MAN_SUFFIX=5  ;;
115789fe995a9Smrg    esac
115799fe995a9Smrgfi
115809fe995a9Smrgif test x$FILE_MAN_DIR = x    ; then
115819fe995a9Smrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
115829fe995a9Smrgfi
115839fe995a9Smrg
115849fe995a9Smrgif test x$MISC_MAN_SUFFIX = x    ; then
11585c048b52eSmrg    case $SYSV_MAN_SECTIONS in
11586c048b52eSmrg	true)				MISC_MAN_SUFFIX=5  ;;
115876fbef84aSmrg	*)				MISC_MAN_SUFFIX=7  ;;
115889fe995a9Smrg    esac
115899fe995a9Smrgfi
115909fe995a9Smrgif test x$MISC_MAN_DIR = x    ; then
115919fe995a9Smrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
115929fe995a9Smrgfi
115939fe995a9Smrg
115949fe995a9Smrgif test x$DRIVER_MAN_SUFFIX = x    ; then
11595c048b52eSmrg    case $SYSV_MAN_SECTIONS in
11596c048b52eSmrg	true)				DRIVER_MAN_SUFFIX=7  ;;
115976fbef84aSmrg	*)				DRIVER_MAN_SUFFIX=4  ;;
115989fe995a9Smrg    esac
115999fe995a9Smrgfi
116009fe995a9Smrgif test x$DRIVER_MAN_DIR = x    ; then
116019fe995a9Smrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
116029fe995a9Smrgfi
116039fe995a9Smrg
116049fe995a9Smrgif test x$ADMIN_MAN_SUFFIX = x    ; then
11605c048b52eSmrg    case $SYSV_MAN_SECTIONS in
11606c048b52eSmrg	true)				ADMIN_MAN_SUFFIX=1m ;;
116076fbef84aSmrg	*)				ADMIN_MAN_SUFFIX=8  ;;
116089fe995a9Smrg    esac
116099fe995a9Smrgfi
116109fe995a9Smrgif test x$ADMIN_MAN_DIR = x    ; then
116119fe995a9Smrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
116129fe995a9Smrgfi
116139fe995a9Smrg
116149fe995a9Smrg
116159fe995a9Smrg
116169fe995a9Smrg
116179fe995a9Smrg
116189fe995a9Smrg
116199fe995a9Smrg
116209fe995a9Smrg
116219fe995a9Smrg
116229fe995a9Smrg
116239fe995a9Smrg
116249fe995a9Smrg
116259fe995a9Smrg
116269fe995a9Smrg
116279fe995a9Smrg
11628b62cc08cSmrgXORG_MAN_PAGE="X Version 11"
11629b62cc08cSmrg
11630b62cc08cSmrgMAN_SUBSTS="\
11631b62cc08cSmrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11632b62cc08cSmrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11633b62cc08cSmrg	-e 's|__xservername__|Xorg|g' \
11634b62cc08cSmrg	-e 's|__xconfigfile__|xorg.conf|g' \
11635b62cc08cSmrg	-e 's|__projectroot__|\$(prefix)|g' \
11636b62cc08cSmrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11637b62cc08cSmrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11638b62cc08cSmrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11639b62cc08cSmrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11640b62cc08cSmrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11641b62cc08cSmrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11642b62cc08cSmrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11643b62cc08cSmrg
11644b62cc08cSmrg
11645b62cc08cSmrg
11646b62cc08cSmrg# Check whether --enable-silent-rules was given.
11647c048b52eSmrgif test ${enable_silent_rules+y}
11648c048b52eSmrgthen :
11649b62cc08cSmrg  enableval=$enable_silent_rules;
11650b62cc08cSmrgfi
11651b62cc08cSmrg
116529d794632Smrgcase $enable_silent_rules in # (((
116539d794632Smrg  yes) AM_DEFAULT_VERBOSITY=0;;
116549d794632Smrg   no) AM_DEFAULT_VERBOSITY=1;;
116559d794632Smrg    *) AM_DEFAULT_VERBOSITY=0;;
11656b62cc08cSmrgesac
116579d794632Smrgam_make=${MAKE-make}
11658c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11659c048b52eSmrgprintf %s "checking whether $am_make supports nested variables... " >&6; }
11660c048b52eSmrgif test ${am_cv_make_support_nested_variables+y}
11661c048b52eSmrgthen :
11662c048b52eSmrg  printf %s "(cached) " >&6
11663772b5186Smrgelse case e in #(
11664772b5186Smrg  e) if printf "%s\n" 'TRUE=$(BAR$(V))
116659d794632SmrgBAR0=false
116669d794632SmrgBAR1=true
116679d794632SmrgV=1
116689d794632Smrgam__doit:
116699d794632Smrg	@$(TRUE)
116709d794632Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
116719d794632Smrg  am_cv_make_support_nested_variables=yes
116729d794632Smrgelse
116739d794632Smrg  am_cv_make_support_nested_variables=no
11674772b5186Smrgfi ;;
11675772b5186Smrgesac
116769d794632Smrgfi
11677c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11678c048b52eSmrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
116799d794632Smrgif test $am_cv_make_support_nested_variables = yes; then
116809d794632Smrg    AM_V='$(V)'
116819d794632Smrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
116829d794632Smrgelse
116839d794632Smrg  AM_V=$AM_DEFAULT_VERBOSITY
116849d794632Smrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
116859d794632Smrgfi
11686b62cc08cSmrgAM_BACKSLASH='\'
11687b62cc08cSmrg
11688b62cc08cSmrg
116899fe995a9Smrg
11690772b5186Smrg
11691772b5186Smrg# Checks for typedefs, structures, and compiler characteristics.
11692772b5186Smrg# Check whether --enable-largefile was given.
11693772b5186Smrgif test ${enable_largefile+y}
11694772b5186Smrgthen :
11695772b5186Smrg  enableval=$enable_largefile;
11696772b5186Smrgfi
11697772b5186Smrgif test "$enable_largefile,$enable_year2038" != no,no
11698772b5186Smrgthen :
11699772b5186Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
11700772b5186Smrgprintf %s "checking for $CC option to enable large file support... " >&6; }
11701772b5186Smrgif test ${ac_cv_sys_largefile_opts+y}
11702772b5186Smrgthen :
11703772b5186Smrg  printf %s "(cached) " >&6
11704772b5186Smrgelse case e in #(
11705772b5186Smrg  e) ac_save_CC="$CC"
11706772b5186Smrg  ac_opt_found=no
11707772b5186Smrg  for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
11708772b5186Smrg    if test x"$ac_opt" != x"none needed"
11709772b5186Smrgthen :
11710772b5186Smrg  CC="$ac_save_CC $ac_opt"
11711772b5186Smrgfi
11712772b5186Smrg    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11713772b5186Smrg/* end confdefs.h.  */
11714772b5186Smrg#include <sys/types.h>
11715772b5186Smrg#ifndef FTYPE
11716772b5186Smrg# define FTYPE off_t
11717772b5186Smrg#endif
11718772b5186Smrg /* Check that FTYPE can represent 2**63 - 1 correctly.
11719772b5186Smrg    We can't simply define LARGE_FTYPE to be 9223372036854775807,
11720772b5186Smrg    since some C++ compilers masquerading as C compilers
11721772b5186Smrg    incorrectly reject 9223372036854775807.  */
11722772b5186Smrg#define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
11723772b5186Smrg  int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
11724772b5186Smrg		       && LARGE_FTYPE % 2147483647 == 1)
11725772b5186Smrg		      ? 1 : -1];
11726772b5186Smrgint
11727772b5186Smrgmain (void)
11728772b5186Smrg{
11729772b5186Smrg
11730772b5186Smrg  ;
11731772b5186Smrg  return 0;
11732772b5186Smrg}
11733772b5186Smrg_ACEOF
11734772b5186Smrgif ac_fn_c_try_compile "$LINENO"
11735772b5186Smrgthen :
11736772b5186Smrg  if test x"$ac_opt" = x"none needed"
11737772b5186Smrgthen :
11738772b5186Smrg  # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
11739772b5186Smrg	 CC="$CC -DFTYPE=ino_t"
11740772b5186Smrg	 if ac_fn_c_try_compile "$LINENO"
11741772b5186Smrgthen :
11742772b5186Smrg
11743772b5186Smrgelse case e in #(
11744772b5186Smrg  e) CC="$CC -D_FILE_OFFSET_BITS=64"
11745772b5186Smrg	    if ac_fn_c_try_compile "$LINENO"
11746772b5186Smrgthen :
11747772b5186Smrg  ac_opt='-D_FILE_OFFSET_BITS=64'
11748772b5186Smrgfi
11749772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam ;;
11750772b5186Smrgesac
11751772b5186Smrgfi
11752772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam
11753772b5186Smrgfi
11754772b5186Smrg      ac_cv_sys_largefile_opts=$ac_opt
11755772b5186Smrg      ac_opt_found=yes
11756772b5186Smrgfi
11757772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11758772b5186Smrg    test $ac_opt_found = no || break
11759772b5186Smrg  done
11760772b5186Smrg  CC="$ac_save_CC"
11761772b5186Smrg
11762772b5186Smrg  test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
11763772b5186Smrgesac
11764772b5186Smrgfi
11765772b5186Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
11766772b5186Smrgprintf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
11767772b5186Smrg
11768772b5186Smrgac_have_largefile=yes
11769772b5186Smrgcase $ac_cv_sys_largefile_opts in #(
11770772b5186Smrg  "none needed") :
11771772b5186Smrg     ;; #(
11772772b5186Smrg  "supported through gnulib") :
11773772b5186Smrg     ;; #(
11774772b5186Smrg  "support not detected") :
11775772b5186Smrg    ac_have_largefile=no ;; #(
11776772b5186Smrg  "-D_FILE_OFFSET_BITS=64") :
11777772b5186Smrg
11778772b5186Smrgprintf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
11779772b5186Smrg ;; #(
11780772b5186Smrg  "-D_LARGE_FILES=1") :
11781772b5186Smrg
11782772b5186Smrgprintf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
11783772b5186Smrg ;; #(
11784772b5186Smrg  "-n32") :
11785772b5186Smrg    CC="$CC -n32" ;; #(
11786772b5186Smrg  *) :
11787772b5186Smrg    as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
11788772b5186Smrgesac
11789772b5186Smrg
11790772b5186Smrgif test "$enable_year2038" != no
11791772b5186Smrgthen :
11792772b5186Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
11793772b5186Smrgprintf %s "checking for $CC option for timestamps after 2038... " >&6; }
11794772b5186Smrgif test ${ac_cv_sys_year2038_opts+y}
11795772b5186Smrgthen :
11796772b5186Smrg  printf %s "(cached) " >&6
11797772b5186Smrgelse case e in #(
11798772b5186Smrg  e) ac_save_CPPFLAGS="$CPPFLAGS"
11799772b5186Smrg  ac_opt_found=no
11800772b5186Smrg  for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
11801772b5186Smrg    if test x"$ac_opt" != x"none needed"
11802772b5186Smrgthen :
11803772b5186Smrg  CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
11804772b5186Smrgfi
11805772b5186Smrg    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11806772b5186Smrg/* end confdefs.h.  */
11807772b5186Smrg
11808772b5186Smrg  #include <time.h>
11809772b5186Smrg  /* Check that time_t can represent 2**32 - 1 correctly.  */
11810772b5186Smrg  #define LARGE_TIME_T \\
11811772b5186Smrg    ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
11812772b5186Smrg  int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
11813772b5186Smrg                           && LARGE_TIME_T % 65537 == 0)
11814772b5186Smrg                          ? 1 : -1];
11815772b5186Smrg
11816772b5186Smrgint
11817772b5186Smrgmain (void)
11818772b5186Smrg{
11819772b5186Smrg
11820772b5186Smrg  ;
11821772b5186Smrg  return 0;
11822772b5186Smrg}
11823772b5186Smrg_ACEOF
11824772b5186Smrgif ac_fn_c_try_compile "$LINENO"
11825772b5186Smrgthen :
11826772b5186Smrg  ac_cv_sys_year2038_opts="$ac_opt"
11827772b5186Smrg      ac_opt_found=yes
11828772b5186Smrgfi
11829772b5186Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11830772b5186Smrg    test $ac_opt_found = no || break
11831772b5186Smrg  done
11832772b5186Smrg  CPPFLAGS="$ac_save_CPPFLAGS"
11833772b5186Smrg  test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
11834772b5186Smrgesac
11835772b5186Smrgfi
11836772b5186Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
11837772b5186Smrgprintf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
11838772b5186Smrg
11839772b5186Smrgac_have_year2038=yes
11840772b5186Smrgcase $ac_cv_sys_year2038_opts in #(
11841772b5186Smrg  "none needed") :
11842772b5186Smrg     ;; #(
11843772b5186Smrg  "support not detected") :
11844772b5186Smrg    ac_have_year2038=no ;; #(
11845772b5186Smrg  "-D_TIME_BITS=64") :
11846772b5186Smrg
11847772b5186Smrgprintf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
11848772b5186Smrg ;; #(
11849772b5186Smrg  "-D__MINGW_USE_VC2005_COMPAT") :
11850772b5186Smrg
11851772b5186Smrgprintf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
11852772b5186Smrg ;; #(
11853772b5186Smrg  "-U_USE_32_BIT_TIME_T"*) :
11854772b5186Smrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11855772b5186Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11856772b5186Smrgas_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
11857772b5186Smrgwill stop working after mid-January 2038. Remove
11858772b5186Smrg_USE_32BIT_TIME_T from the compiler flags.
11859772b5186SmrgSee 'config.log' for more details" "$LINENO" 5; } ;; #(
11860772b5186Smrg  *) :
11861772b5186Smrg    as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
11862772b5186Smrgesac
11863772b5186Smrg
11864772b5186Smrgfi
11865772b5186Smrg
11866772b5186Smrgfi
11867772b5186Smrg
11868772b5186Smrg# Checks for library functions.
11869772b5186Smrgac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
11870772b5186Smrgif test "x$ac_cv_func_reallocarray" = xyes
11871772b5186Smrgthen :
11872772b5186Smrg  printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
11873772b5186Smrg
11874772b5186Smrgfi
11875772b5186Smrg
11876772b5186Smrg
11877b62cc08cSmrg# Checks for pkg-config packages
118789fe995a9Smrg
11879b62cc08cSmrgpkg_failed=no
11880c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ICEAUTH" >&5
11881c048b52eSmrgprintf %s "checking for ICEAUTH... " >&6; }
11882b62cc08cSmrg
11883b62cc08cSmrgif test -n "$ICEAUTH_CFLAGS"; then
11884b62cc08cSmrg    pkg_cv_ICEAUTH_CFLAGS="$ICEAUTH_CFLAGS"
11885b62cc08cSmrg elif test -n "$PKG_CONFIG"; then
11886b62cc08cSmrg    if test -n "$PKG_CONFIG" && \
11887c048b52eSmrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.22 ice\""; } >&5
118889d794632Smrg  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.22 ice") 2>&5
11889b62cc08cSmrg  ac_status=$?
11890c048b52eSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11891b62cc08cSmrg  test $ac_status = 0; }; then
118929d794632Smrg  pkg_cv_ICEAUTH_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.22 ice" 2>/dev/null`
118936fbef84aSmrg		      test "x$?" != "x0" && pkg_failed=yes
11894b62cc08cSmrgelse
11895b62cc08cSmrg  pkg_failed=yes
11896b62cc08cSmrgfi
11897b62cc08cSmrg else
11898b62cc08cSmrg    pkg_failed=untried
11899b62cc08cSmrgfi
11900b62cc08cSmrgif test -n "$ICEAUTH_LIBS"; then
11901b62cc08cSmrg    pkg_cv_ICEAUTH_LIBS="$ICEAUTH_LIBS"
11902b62cc08cSmrg elif test -n "$PKG_CONFIG"; then
11903b62cc08cSmrg    if test -n "$PKG_CONFIG" && \
11904c048b52eSmrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.22 ice\""; } >&5
119059d794632Smrg  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.22 ice") 2>&5
11906b62cc08cSmrg  ac_status=$?
11907c048b52eSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11908b62cc08cSmrg  test $ac_status = 0; }; then
119099d794632Smrg  pkg_cv_ICEAUTH_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.22 ice" 2>/dev/null`
119106fbef84aSmrg		      test "x$?" != "x0" && pkg_failed=yes
119119fe995a9Smrgelse
11912b62cc08cSmrg  pkg_failed=yes
11913b62cc08cSmrgfi
11914b62cc08cSmrg else
11915b62cc08cSmrg    pkg_failed=untried
119169fe995a9Smrgfi
119179fe995a9Smrg
119189fe995a9Smrg
119199fe995a9Smrg
11920b62cc08cSmrgif test $pkg_failed = yes; then
11921c048b52eSmrg   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11922c048b52eSmrgprintf "%s\n" "no" >&6; }
119239fe995a9Smrg
11924b62cc08cSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11925b62cc08cSmrg        _pkg_short_errors_supported=yes
11926b62cc08cSmrgelse
11927b62cc08cSmrg        _pkg_short_errors_supported=no
11928b62cc08cSmrgfi
11929b62cc08cSmrg        if test $_pkg_short_errors_supported = yes; then
119306fbef84aSmrg	        ICEAUTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.22 ice" 2>&1`
11931b62cc08cSmrg        else
119326fbef84aSmrg	        ICEAUTH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.22 ice" 2>&1`
11933b62cc08cSmrg        fi
11934b62cc08cSmrg	# Put the nasty error message in config.log where it belongs
11935b62cc08cSmrg	echo "$ICEAUTH_PKG_ERRORS" >&5
119369fe995a9Smrg
119379d794632Smrg	as_fn_error $? "Package requirements (xproto >= 7.0.22 ice) were not met:
11938b62cc08cSmrg
11939b62cc08cSmrg$ICEAUTH_PKG_ERRORS
11940b62cc08cSmrg
11941b62cc08cSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
11942b62cc08cSmrginstalled software in a non-standard prefix.
11943b62cc08cSmrg
11944b62cc08cSmrgAlternatively, you may set the environment variables ICEAUTH_CFLAGS
11945b62cc08cSmrgand ICEAUTH_LIBS to avoid the need to call pkg-config.
119466fbef84aSmrgSee the pkg-config man page for more details." "$LINENO" 5
11947b62cc08cSmrgelif test $pkg_failed = untried; then
11948c048b52eSmrg     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11949c048b52eSmrgprintf "%s\n" "no" >&6; }
11950772b5186Smrg	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11951772b5186Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11952b62cc08cSmrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11953b62cc08cSmrgis in your PATH or set the PKG_CONFIG environment variable to the full
11954b62cc08cSmrgpath to pkg-config.
11955b62cc08cSmrg
11956b62cc08cSmrgAlternatively, you may set the environment variables ICEAUTH_CFLAGS
11957b62cc08cSmrgand ICEAUTH_LIBS to avoid the need to call pkg-config.
11958b62cc08cSmrgSee the pkg-config man page for more details.
11959b62cc08cSmrg
11960b62cc08cSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
11961772b5186SmrgSee 'config.log' for more details" "$LINENO" 5; }
11962b62cc08cSmrgelse
11963b62cc08cSmrg	ICEAUTH_CFLAGS=$pkg_cv_ICEAUTH_CFLAGS
11964b62cc08cSmrg	ICEAUTH_LIBS=$pkg_cv_ICEAUTH_LIBS
11965c048b52eSmrg        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11966c048b52eSmrgprintf "%s\n" "yes" >&6; }
119676fbef84aSmrg
11968b62cc08cSmrgfi
11969b62cc08cSmrg
11970b62cc08cSmrg
11971b62cc08cSmrg
11972b62cc08cSmrg
11973b62cc08cSmrg
11974b62cc08cSmrg
11975b62cc08cSmrg# Check whether --with-lint was given.
11976c048b52eSmrgif test ${with_lint+y}
11977c048b52eSmrgthen :
11978b62cc08cSmrg  withval=$with_lint; use_lint=$withval
11979772b5186Smrgelse case e in #(
11980772b5186Smrg  e) use_lint=no ;;
11981772b5186Smrgesac
11982b62cc08cSmrgfi
11983b62cc08cSmrg
11984b62cc08cSmrg
11985b62cc08cSmrg# Obtain platform specific info like program name and options
11986b62cc08cSmrg# The lint program on FreeBSD and NetBSD is different from the one on Solaris
11987b62cc08cSmrgcase $host_os in
11988b62cc08cSmrg  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
11989b62cc08cSmrg	lint_name=splint
11990b62cc08cSmrg	lint_options="-badflag"
11991b62cc08cSmrg	;;
11992b62cc08cSmrg  *freebsd* | *netbsd*)
11993b62cc08cSmrg	lint_name=lint
11994b62cc08cSmrg	lint_options="-u -b"
11995b62cc08cSmrg	;;
11996b62cc08cSmrg  *solaris*)
11997b62cc08cSmrg	lint_name=lint
11998b62cc08cSmrg	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
11999b62cc08cSmrg	;;
12000b62cc08cSmrgesac
12001b62cc08cSmrg
12002b62cc08cSmrg# Test for the presence of the program (either guessed by the code or spelled out by the user)
12003b62cc08cSmrgif test "x$use_lint" = x"yes" ; then
12004b62cc08cSmrg   # Extract the first word of "$lint_name", so it can be a program name with args.
12005b62cc08cSmrgset dummy $lint_name; ac_word=$2
12006c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12007c048b52eSmrgprintf %s "checking for $ac_word... " >&6; }
12008c048b52eSmrgif test ${ac_cv_path_LINT+y}
12009c048b52eSmrgthen :
12010c048b52eSmrg  printf %s "(cached) " >&6
12011772b5186Smrgelse case e in #(
12012772b5186Smrg  e) case $LINT in
12013b62cc08cSmrg  [\\/]* | ?:[\\/]*)
12014b62cc08cSmrg  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
12015b62cc08cSmrg  ;;
12016b62cc08cSmrg  *)
12017b62cc08cSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12018b62cc08cSmrgfor as_dir in $PATH
12019b62cc08cSmrgdo
12020b62cc08cSmrg  IFS=$as_save_IFS
12021c048b52eSmrg  case $as_dir in #(((
12022c048b52eSmrg    '') as_dir=./ ;;
12023c048b52eSmrg    */) ;;
12024c048b52eSmrg    *) as_dir=$as_dir/ ;;
12025c048b52eSmrg  esac
12026b62cc08cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
12027c048b52eSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12028c048b52eSmrg    ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
12029c048b52eSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12030b62cc08cSmrg    break 2
12031b62cc08cSmrg  fi
12032b62cc08cSmrgdone
12033b62cc08cSmrg  done
12034b62cc08cSmrgIFS=$as_save_IFS
12035b62cc08cSmrg
12036b62cc08cSmrg  ;;
12037772b5186Smrgesac ;;
12038b62cc08cSmrgesac
12039b62cc08cSmrgfi
12040b62cc08cSmrgLINT=$ac_cv_path_LINT
12041b62cc08cSmrgif test -n "$LINT"; then
12042c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
12043c048b52eSmrgprintf "%s\n" "$LINT" >&6; }
12044b62cc08cSmrgelse
12045c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12046c048b52eSmrgprintf "%s\n" "no" >&6; }
12047b62cc08cSmrgfi
12048b62cc08cSmrg
12049b62cc08cSmrg
12050b62cc08cSmrg   if test "x$LINT" = "x"; then
12051b62cc08cSmrg        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
12052b62cc08cSmrg   fi
12053b62cc08cSmrgelif test "x$use_lint" = x"no" ; then
12054b62cc08cSmrg   if test "x$LINT" != "x"; then
12055c048b52eSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
12056c048b52eSmrgprintf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
12057b62cc08cSmrg   fi
12058b62cc08cSmrgelse
12059b62cc08cSmrg   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
12060b62cc08cSmrgfi
12061b62cc08cSmrg
12062b62cc08cSmrg# User supplied flags override default flags
12063b62cc08cSmrgif test "x$LINT_FLAGS" != "x"; then
12064b62cc08cSmrg   lint_options=$LINT_FLAGS
12065b62cc08cSmrgfi
12066b62cc08cSmrg
12067b62cc08cSmrgLINT_FLAGS=$lint_options
12068b62cc08cSmrg
12069b62cc08cSmrg if test "x$LINT" != x; then
12070b62cc08cSmrg  LINT_TRUE=
12071b62cc08cSmrg  LINT_FALSE='#'
12072b62cc08cSmrgelse
12073b62cc08cSmrg  LINT_TRUE='#'
12074b62cc08cSmrg  LINT_FALSE=
12075b62cc08cSmrgfi
120769fe995a9Smrg
120779fe995a9Smrg
120789fe995a9Smrg
120799fe995a9Smrg
1208090b6713cSmrgac_config_files="$ac_config_files Makefile man/Makefile"
120819fe995a9Smrg
120829fe995a9Smrgcat >confcache <<\_ACEOF
120839fe995a9Smrg# This file is a shell script that caches the results of configure
120849fe995a9Smrg# tests run on this system so they can be shared between configure
120859fe995a9Smrg# scripts and configure runs, see configure's option --config-cache.
120869fe995a9Smrg# It is not useful on other systems.  If it contains results you don't
120879fe995a9Smrg# want to keep, you may remove or edit it.
120889fe995a9Smrg#
120899fe995a9Smrg# config.status only pays attention to the cache file if you give it
120909fe995a9Smrg# the --recheck option to rerun configure.
120919fe995a9Smrg#
12092772b5186Smrg# 'ac_cv_env_foo' variables (set or unset) will be overridden when
12093772b5186Smrg# loading this file, other *unset* 'ac_cv_foo' will be assigned the
120949fe995a9Smrg# following values.
120959fe995a9Smrg
120969fe995a9Smrg_ACEOF
120979fe995a9Smrg
120989fe995a9Smrg# The following way of writing the cache mishandles newlines in values,
120999fe995a9Smrg# but we know of no workaround that is simple, portable, and efficient.
121009fe995a9Smrg# So, we kill variables containing newlines.
121019fe995a9Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
121029fe995a9Smrg# and sets the high bit in the cache file unless we assign to the vars.
121039fe995a9Smrg(
121049fe995a9Smrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
121059fe995a9Smrg    eval ac_val=\$$ac_var
121069fe995a9Smrg    case $ac_val in #(
121079fe995a9Smrg    *${as_nl}*)
121089fe995a9Smrg      case $ac_var in #(
12109c048b52eSmrg      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12110c048b52eSmrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
121119fe995a9Smrg      esac
121129fe995a9Smrg      case $ac_var in #(
121139fe995a9Smrg      _ | IFS | as_nl) ;; #(
12114b62cc08cSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12115b62cc08cSmrg      *) { eval $ac_var=; unset $ac_var;} ;;
121169fe995a9Smrg      esac ;;
121179fe995a9Smrg    esac
121189fe995a9Smrg  done
121199fe995a9Smrg
121209fe995a9Smrg  (set) 2>&1 |
121219fe995a9Smrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
121229fe995a9Smrg    *${as_nl}ac_space=\ *)
12123772b5186Smrg      # 'set' does not quote correctly, so add quotes: double-quote
12124b62cc08cSmrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
121259fe995a9Smrg      sed -n \
121269fe995a9Smrg	"s/'/'\\\\''/g;
121279fe995a9Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
121289fe995a9Smrg      ;; #(
121299fe995a9Smrg    *)
12130772b5186Smrg      # 'set' quotes correctly as required by POSIX, so do not add quotes.
121319fe995a9Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
121329fe995a9Smrg      ;;
121339fe995a9Smrg    esac |
121349fe995a9Smrg    sort
121359fe995a9Smrg) |
121369fe995a9Smrg  sed '
121379fe995a9Smrg     /^ac_cv_env_/b end
121389fe995a9Smrg     t clear
121399fe995a9Smrg     :clear
12140c048b52eSmrg     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
121419fe995a9Smrg     t end
121429fe995a9Smrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
121439fe995a9Smrg     :end' >>confcache
121449fe995a9Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
121459fe995a9Smrg  if test -w "$cache_file"; then
12146b62cc08cSmrg    if test "x$cache_file" != "x/dev/null"; then
12147c048b52eSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12148c048b52eSmrgprintf "%s\n" "$as_me: updating cache $cache_file" >&6;}
12149b62cc08cSmrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
12150b62cc08cSmrg	cat confcache >"$cache_file"
12151b62cc08cSmrg      else
12152b62cc08cSmrg        case $cache_file in #(
12153b62cc08cSmrg        */* | ?:*)
12154b62cc08cSmrg	  mv -f confcache "$cache_file"$$ &&
12155b62cc08cSmrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12156b62cc08cSmrg        *)
12157b62cc08cSmrg	  mv -f confcache "$cache_file" ;;
12158b62cc08cSmrg	esac
12159b62cc08cSmrg      fi
12160b62cc08cSmrg    fi
121619fe995a9Smrg  else
12162c048b52eSmrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12163c048b52eSmrgprintf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
121649fe995a9Smrg  fi
121659fe995a9Smrgfi
121669fe995a9Smrgrm -f confcache
121679fe995a9Smrg
121689fe995a9Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
121699fe995a9Smrg# Let make expand exec_prefix.
121709fe995a9Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
121719fe995a9Smrg
121729fe995a9SmrgDEFS=-DHAVE_CONFIG_H
121739fe995a9Smrg
121749fe995a9Smrgac_libobjs=
121759fe995a9Smrgac_ltlibobjs=
12176b62cc08cSmrgU=
121779fe995a9Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
121789fe995a9Smrg  # 1. Remove the extension, and $U if already installed.
121799fe995a9Smrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12180c048b52eSmrg  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
121819fe995a9Smrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
121829fe995a9Smrg  #    will be set to the directory where LIBOBJS objects are built.
12183b62cc08cSmrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12184b62cc08cSmrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
121859fe995a9Smrgdone
121869fe995a9SmrgLIBOBJS=$ac_libobjs
121879fe995a9Smrg
121889fe995a9SmrgLTLIBOBJS=$ac_ltlibobjs
121899fe995a9Smrg
121909fe995a9Smrg
12191c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12192c048b52eSmrgprintf %s "checking that generated files are newer than configure... " >&6; }
121939d794632Smrg   if test -n "$am_sleep_pid"; then
121949d794632Smrg     # Hide warnings about reused PIDs.
121959d794632Smrg     wait $am_sleep_pid 2>/dev/null
121969d794632Smrg   fi
12197c048b52eSmrg   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
12198c048b52eSmrgprintf "%s\n" "done" >&6; }
12199772b5186Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12200772b5186Smrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
12201772b5186SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
12202772b5186Smrgfi
12203772b5186Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12204772b5186Smrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12205772b5186SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
12206772b5186Smrgfi
12207b62cc08cSmrg if test -n "$EXEEXT"; then
12208b62cc08cSmrg  am__EXEEXT_TRUE=
12209b62cc08cSmrg  am__EXEEXT_FALSE='#'
12210b62cc08cSmrgelse
12211b62cc08cSmrg  am__EXEEXT_TRUE='#'
12212b62cc08cSmrg  am__EXEEXT_FALSE=
12213b62cc08cSmrgfi
12214b62cc08cSmrg
12215772b5186Smrg# Check whether --enable-year2038 was given.
12216772b5186Smrgif test ${enable_year2038+y}
12217772b5186Smrgthen :
12218772b5186Smrg  enableval=$enable_year2038;
122199fe995a9Smrgfi
12220772b5186Smrg
122219fe995a9Smrgif test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
12222b62cc08cSmrg  as_fn_error $? "conditional \"LINT\" was never defined.
12223b62cc08cSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
122249fe995a9Smrgfi
122259fe995a9Smrg
12226b62cc08cSmrg: "${CONFIG_STATUS=./config.status}"
12227b62cc08cSmrgac_write_fail=0
122289fe995a9Smrgac_clean_files_save=$ac_clean_files
122299fe995a9Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
12230c048b52eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12231c048b52eSmrgprintf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
12232b62cc08cSmrgas_write_fail=0
12233b62cc08cSmrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
122349fe995a9Smrg#! $SHELL
122359fe995a9Smrg# Generated by $as_me.
122369fe995a9Smrg# Run this file to recreate the current configuration.
122379fe995a9Smrg# Compiler output produced by configure, useful for debugging
122389fe995a9Smrg# configure, is in config.log if it exists.
122399fe995a9Smrg
122409fe995a9Smrgdebug=false
122419fe995a9Smrgac_cs_recheck=false
122429fe995a9Smrgac_cs_silent=false
122439fe995a9Smrg
12244b62cc08cSmrgSHELL=\${CONFIG_SHELL-$SHELL}
12245b62cc08cSmrgexport SHELL
12246b62cc08cSmrg_ASEOF
12247b62cc08cSmrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12248b62cc08cSmrg## -------------------- ##
12249b62cc08cSmrg## M4sh Initialization. ##
12250b62cc08cSmrg## -------------------- ##
122519fe995a9Smrg
122529fe995a9Smrg# Be more Bourne compatible
122539fe995a9SmrgDUALCASE=1; export DUALCASE # for MKS sh
12254c048b52eSmrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
12255c048b52eSmrgthen :
122569fe995a9Smrg  emulate sh
122579fe995a9Smrg  NULLCMD=:
12258b62cc08cSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
122599fe995a9Smrg  # is contrary to our usage.  Disable this feature.
122609fe995a9Smrg  alias -g '${1+"$@"}'='"$@"'
122619fe995a9Smrg  setopt NO_GLOB_SUBST
12262772b5186Smrgelse case e in #(
12263772b5186Smrg  e) case `(set -o) 2>/dev/null` in #(
12264b62cc08cSmrg  *posix*) :
12265b62cc08cSmrg    set -o posix ;; #(
12266b62cc08cSmrg  *) :
12267b62cc08cSmrg     ;;
12268772b5186Smrgesac ;;
122699fe995a9Smrgesac
122709fe995a9Smrgfi
122719fe995a9Smrg
122729fe995a9Smrg
12273c048b52eSmrg
12274c048b52eSmrg# Reset variables that may have inherited troublesome values from
12275c048b52eSmrg# the environment.
12276c048b52eSmrg
12277c048b52eSmrg# IFS needs to be set, to space, tab, and newline, in precisely that order.
12278c048b52eSmrg# (If _AS_PATH_WALK were called with IFS unset, it would have the
12279c048b52eSmrg# side effect of setting IFS to empty, thus disabling word splitting.)
12280c048b52eSmrg# Quoting is to prevent editors from complaining about space-tab.
12281b62cc08cSmrgas_nl='
12282b62cc08cSmrg'
12283b62cc08cSmrgexport as_nl
12284c048b52eSmrgIFS=" ""	$as_nl"
12285c048b52eSmrg
12286c048b52eSmrgPS1='$ '
12287c048b52eSmrgPS2='> '
12288c048b52eSmrgPS4='+ '
12289c048b52eSmrg
12290c048b52eSmrg# Ensure predictable behavior from utilities with locale-dependent output.
12291c048b52eSmrgLC_ALL=C
12292c048b52eSmrgexport LC_ALL
12293c048b52eSmrgLANGUAGE=C
12294c048b52eSmrgexport LANGUAGE
12295c048b52eSmrg
12296c048b52eSmrg# We cannot yet rely on "unset" to work, but we need these variables
12297c048b52eSmrg# to be unset--not just set to an empty or harmless value--now, to
12298c048b52eSmrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
12299c048b52eSmrg# also avoids known problems related to "unset" and subshell syntax
12300c048b52eSmrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12301c048b52eSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12302c048b52eSmrgdo eval test \${$as_var+y} \
12303c048b52eSmrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12304c048b52eSmrgdone
12305c048b52eSmrg
12306c048b52eSmrg# Ensure that fds 0, 1, and 2 are open.
12307c048b52eSmrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12308c048b52eSmrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12309c048b52eSmrgif (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
123109fe995a9Smrg
12311b62cc08cSmrg# The user is always right.
12312c048b52eSmrgif ${PATH_SEPARATOR+false} :; then
12313b62cc08cSmrg  PATH_SEPARATOR=:
12314b62cc08cSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12315b62cc08cSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12316b62cc08cSmrg      PATH_SEPARATOR=';'
12317b62cc08cSmrg  }
123189fe995a9Smrgfi
123199fe995a9Smrg
123209fe995a9Smrg
123219fe995a9Smrg# Find who we are.  Look in the path if we contain no directory separator.
12322b62cc08cSmrgas_myself=
12323b62cc08cSmrgcase $0 in #((
123249fe995a9Smrg  *[\\/]* ) as_myself=$0 ;;
123259fe995a9Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
123269fe995a9Smrgfor as_dir in $PATH
123279fe995a9Smrgdo
123289fe995a9Smrg  IFS=$as_save_IFS
12329c048b52eSmrg  case $as_dir in #(((
12330c048b52eSmrg    '') as_dir=./ ;;
12331c048b52eSmrg    */) ;;
12332c048b52eSmrg    *) as_dir=$as_dir/ ;;
12333c048b52eSmrg  esac
12334c048b52eSmrg    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12335b62cc08cSmrg  done
123369fe995a9SmrgIFS=$as_save_IFS
123379fe995a9Smrg
123389fe995a9Smrg     ;;
123399fe995a9Smrgesac
12340772b5186Smrg# We did not find ourselves, most probably we were run as 'sh COMMAND'
123419fe995a9Smrg# in which case we are not to be found in the path.
123429fe995a9Smrgif test "x$as_myself" = x; then
123439fe995a9Smrg  as_myself=$0
123449fe995a9Smrgfi
123459fe995a9Smrgif test ! -f "$as_myself"; then
12346c048b52eSmrg  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12347b62cc08cSmrg  exit 1
123489fe995a9Smrgfi
123499fe995a9Smrg
12350b62cc08cSmrg
12351b62cc08cSmrg
12352b62cc08cSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
12353b62cc08cSmrg# ----------------------------------------
12354b62cc08cSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12355b62cc08cSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12356b62cc08cSmrg# script with STATUS, using 1 if that was 0.
12357b62cc08cSmrgas_fn_error ()
12358b62cc08cSmrg{
12359b62cc08cSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
12360b62cc08cSmrg  if test "$4"; then
12361b62cc08cSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12362c048b52eSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
123639fe995a9Smrg  fi
12364c048b52eSmrg  printf "%s\n" "$as_me: error: $2" >&2
12365b62cc08cSmrg  as_fn_exit $as_status
12366b62cc08cSmrg} # as_fn_error
12367b62cc08cSmrg
12368b62cc08cSmrg
12369b62cc08cSmrg# as_fn_set_status STATUS
12370b62cc08cSmrg# -----------------------
12371b62cc08cSmrg# Set $? to STATUS, without forking.
12372b62cc08cSmrgas_fn_set_status ()
12373b62cc08cSmrg{
12374b62cc08cSmrg  return $1
12375b62cc08cSmrg} # as_fn_set_status
12376b62cc08cSmrg
12377b62cc08cSmrg# as_fn_exit STATUS
12378b62cc08cSmrg# -----------------
12379b62cc08cSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12380b62cc08cSmrgas_fn_exit ()
12381b62cc08cSmrg{
12382b62cc08cSmrg  set +e
12383b62cc08cSmrg  as_fn_set_status $1
12384b62cc08cSmrg  exit $1
12385b62cc08cSmrg} # as_fn_exit
12386b62cc08cSmrg
12387b62cc08cSmrg# as_fn_unset VAR
12388b62cc08cSmrg# ---------------
12389b62cc08cSmrg# Portably unset VAR.
12390b62cc08cSmrgas_fn_unset ()
12391b62cc08cSmrg{
12392b62cc08cSmrg  { eval $1=; unset $1;}
12393b62cc08cSmrg}
12394b62cc08cSmrgas_unset=as_fn_unset
12395c048b52eSmrg
12396b62cc08cSmrg# as_fn_append VAR VALUE
12397b62cc08cSmrg# ----------------------
12398b62cc08cSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take
12399b62cc08cSmrg# advantage of any shell optimizations that allow amortized linear growth over
12400b62cc08cSmrg# repeated appends, instead of the typical quadratic growth present in naive
12401b62cc08cSmrg# implementations.
12402c048b52eSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12403c048b52eSmrgthen :
12404b62cc08cSmrg  eval 'as_fn_append ()
12405b62cc08cSmrg  {
12406b62cc08cSmrg    eval $1+=\$2
12407b62cc08cSmrg  }'
12408772b5186Smrgelse case e in #(
12409772b5186Smrg  e) as_fn_append ()
12410b62cc08cSmrg  {
12411b62cc08cSmrg    eval $1=\$$1\$2
12412772b5186Smrg  } ;;
12413772b5186Smrgesac
12414b62cc08cSmrgfi # as_fn_append
12415b62cc08cSmrg
12416b62cc08cSmrg# as_fn_arith ARG...
12417b62cc08cSmrg# ------------------
12418b62cc08cSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the
12419b62cc08cSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
12420b62cc08cSmrg# must be portable across $(()) and expr.
12421c048b52eSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12422c048b52eSmrgthen :
12423b62cc08cSmrg  eval 'as_fn_arith ()
12424b62cc08cSmrg  {
12425b62cc08cSmrg    as_val=$(( $* ))
12426b62cc08cSmrg  }'
12427772b5186Smrgelse case e in #(
12428772b5186Smrg  e) as_fn_arith ()
12429b62cc08cSmrg  {
12430b62cc08cSmrg    as_val=`expr "$@" || test $? -eq 1`
12431772b5186Smrg  } ;;
12432772b5186Smrgesac
12433b62cc08cSmrgfi # as_fn_arith
12434b62cc08cSmrg
124359fe995a9Smrg
124369fe995a9Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
124379fe995a9Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
124389fe995a9Smrg  as_expr=expr
124399fe995a9Smrgelse
124409fe995a9Smrg  as_expr=false
124419fe995a9Smrgfi
124429fe995a9Smrg
124439fe995a9Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124449fe995a9Smrg  as_basename=basename
124459fe995a9Smrgelse
124469fe995a9Smrg  as_basename=false
124479fe995a9Smrgfi
124489fe995a9Smrg
12449b62cc08cSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12450b62cc08cSmrg  as_dirname=dirname
12451b62cc08cSmrgelse
12452b62cc08cSmrg  as_dirname=false
12453b62cc08cSmrgfi
124549fe995a9Smrg
124559fe995a9Smrgas_me=`$as_basename -- "$0" ||
124569fe995a9Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
124579fe995a9Smrg	 X"$0" : 'X\(//\)$' \| \
124589fe995a9Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12459c048b52eSmrgprintf "%s\n" X/"$0" |
124609fe995a9Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
124619fe995a9Smrg	    s//\1/
124629fe995a9Smrg	    q
124639fe995a9Smrg	  }
124649fe995a9Smrg	  /^X\/\(\/\/\)$/{
124659fe995a9Smrg	    s//\1/
124669fe995a9Smrg	    q
124679fe995a9Smrg	  }
124689fe995a9Smrg	  /^X\/\(\/\).*/{
124699fe995a9Smrg	    s//\1/
124709fe995a9Smrg	    q
124719fe995a9Smrg	  }
124729fe995a9Smrg	  s/.*/./; q'`
124739fe995a9Smrg
12474b62cc08cSmrg# Avoid depending upon Character Ranges.
12475b62cc08cSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
12476b62cc08cSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12477b62cc08cSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
12478b62cc08cSmrgas_cr_digits='0123456789'
12479b62cc08cSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits
124809fe995a9Smrg
12481c048b52eSmrg
12482c048b52eSmrg# Determine whether it's possible to make 'echo' print without a newline.
12483c048b52eSmrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12484c048b52eSmrg# for compatibility with existing Makefiles.
124859fe995a9SmrgECHO_C= ECHO_N= ECHO_T=
12486b62cc08cSmrgcase `echo -n x` in #(((((
124879fe995a9Smrg-n*)
12488b62cc08cSmrg  case `echo 'xy\c'` in
124899fe995a9Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12490b62cc08cSmrg  xy)  ECHO_C='\c';;
12491b62cc08cSmrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12492b62cc08cSmrg       ECHO_T='	';;
124939fe995a9Smrg  esac;;
124949fe995a9Smrg*)
124959fe995a9Smrg  ECHO_N='-n';;
124969fe995a9Smrgesac
124979fe995a9Smrg
12498c048b52eSmrg# For backward compatibility with old third-party macros, we provide
12499c048b52eSmrg# the shell variables $as_echo and $as_echo_n.  New code should use
12500c048b52eSmrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12501c048b52eSmrgas_echo='printf %s\n'
12502c048b52eSmrgas_echo_n='printf %s'
12503c048b52eSmrg
125049fe995a9Smrgrm -f conf$$ conf$$.exe conf$$.file
125059fe995a9Smrgif test -d conf$$.dir; then
125069fe995a9Smrg  rm -f conf$$.dir/conf$$.file
125079fe995a9Smrgelse
125089fe995a9Smrg  rm -f conf$$.dir
12509b62cc08cSmrg  mkdir conf$$.dir 2>/dev/null
12510b62cc08cSmrgfi
12511b62cc08cSmrgif (echo >conf$$.file) 2>/dev/null; then
12512b62cc08cSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
12513b62cc08cSmrg    as_ln_s='ln -s'
12514b62cc08cSmrg    # ... but there are two gotchas:
12515772b5186Smrg    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
12516772b5186Smrg    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
12517772b5186Smrg    # In both cases, we have to default to 'cp -pR'.
12518b62cc08cSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12519e8ac26b0Smrg      as_ln_s='cp -pR'
12520b62cc08cSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
12521b62cc08cSmrg    as_ln_s=ln
12522b62cc08cSmrg  else
12523e8ac26b0Smrg    as_ln_s='cp -pR'
12524b62cc08cSmrg  fi
125259fe995a9Smrgelse
12526e8ac26b0Smrg  as_ln_s='cp -pR'
125279fe995a9Smrgfi
125289fe995a9Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
125299fe995a9Smrgrmdir conf$$.dir 2>/dev/null
125309fe995a9Smrg
12531b62cc08cSmrg
12532b62cc08cSmrg# as_fn_mkdir_p
12533b62cc08cSmrg# -------------
12534b62cc08cSmrg# Create "$as_dir" as a directory, including parents if necessary.
12535b62cc08cSmrgas_fn_mkdir_p ()
12536b62cc08cSmrg{
12537b62cc08cSmrg
12538b62cc08cSmrg  case $as_dir in #(
12539b62cc08cSmrg  -*) as_dir=./$as_dir;;
12540b62cc08cSmrg  esac
12541b62cc08cSmrg  test -d "$as_dir" || eval $as_mkdir_p || {
12542b62cc08cSmrg    as_dirs=
12543b62cc08cSmrg    while :; do
12544b62cc08cSmrg      case $as_dir in #(
12545c048b52eSmrg      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12546b62cc08cSmrg      *) as_qdir=$as_dir;;
12547b62cc08cSmrg      esac
12548b62cc08cSmrg      as_dirs="'$as_qdir' $as_dirs"
12549b62cc08cSmrg      as_dir=`$as_dirname -- "$as_dir" ||
12550b62cc08cSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12551b62cc08cSmrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
12552b62cc08cSmrg	 X"$as_dir" : 'X\(//\)$' \| \
12553b62cc08cSmrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12554c048b52eSmrgprintf "%s\n" X"$as_dir" |
12555b62cc08cSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12556b62cc08cSmrg	    s//\1/
12557b62cc08cSmrg	    q
12558b62cc08cSmrg	  }
12559b62cc08cSmrg	  /^X\(\/\/\)[^/].*/{
12560b62cc08cSmrg	    s//\1/
12561b62cc08cSmrg	    q
12562b62cc08cSmrg	  }
12563b62cc08cSmrg	  /^X\(\/\/\)$/{
12564b62cc08cSmrg	    s//\1/
12565b62cc08cSmrg	    q
12566b62cc08cSmrg	  }
12567b62cc08cSmrg	  /^X\(\/\).*/{
12568b62cc08cSmrg	    s//\1/
12569b62cc08cSmrg	    q
12570b62cc08cSmrg	  }
12571b62cc08cSmrg	  s/.*/./; q'`
12572b62cc08cSmrg      test -d "$as_dir" && break
12573b62cc08cSmrg    done
12574b62cc08cSmrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
12575b62cc08cSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12576b62cc08cSmrg
12577b62cc08cSmrg
12578b62cc08cSmrg} # as_fn_mkdir_p
125799fe995a9Smrgif mkdir -p . 2>/dev/null; then
12580b62cc08cSmrg  as_mkdir_p='mkdir -p "$as_dir"'
125819fe995a9Smrgelse
125829fe995a9Smrg  test -d ./-p && rmdir ./-p
125839fe995a9Smrg  as_mkdir_p=false
125849fe995a9Smrgfi
125859fe995a9Smrg
12586e8ac26b0Smrg
12587e8ac26b0Smrg# as_fn_executable_p FILE
12588e8ac26b0Smrg# -----------------------
12589e8ac26b0Smrg# Test if FILE is an executable regular file.
12590e8ac26b0Smrgas_fn_executable_p ()
12591e8ac26b0Smrg{
12592e8ac26b0Smrg  test -f "$1" && test -x "$1"
12593e8ac26b0Smrg} # as_fn_executable_p
12594e8ac26b0Smrgas_test_x='test -x'
12595e8ac26b0Smrgas_executable_p=as_fn_executable_p
125969fe995a9Smrg
125979fe995a9Smrg# Sed expression to map a string onto a valid CPP name.
12598772b5186Smrgas_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12599772b5186Smrgas_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
126009fe995a9Smrg
126019fe995a9Smrg# Sed expression to map a string onto a valid variable name.
12602772b5186Smrgas_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12603772b5186Smrgas_tr_sh="eval sed '$as_sed_sh'" # deprecated
126049fe995a9Smrg
126059fe995a9Smrg
126069fe995a9Smrgexec 6>&1
12607b62cc08cSmrg## ----------------------------------- ##
12608b62cc08cSmrg## Main body of $CONFIG_STATUS script. ##
12609b62cc08cSmrg## ----------------------------------- ##
12610b62cc08cSmrg_ASEOF
12611b62cc08cSmrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
126129fe995a9Smrg
12613b62cc08cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12614b62cc08cSmrg# Save the log message, to keep $0 and so on meaningful, and to
126159fe995a9Smrg# report actual input values of CONFIG_FILES etc. instead of their
126169fe995a9Smrg# values after options handling.
126179fe995a9Smrgac_log="
12618772b5186SmrgThis file was extended by iceauth $as_me 1.0.10, which was
12619772b5186Smrggenerated by GNU Autoconf 2.72.  Invocation command line was
126209fe995a9Smrg
126219fe995a9Smrg  CONFIG_FILES    = $CONFIG_FILES
126229fe995a9Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
126239fe995a9Smrg  CONFIG_LINKS    = $CONFIG_LINKS
126249fe995a9Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
126259fe995a9Smrg  $ $0 $@
126269fe995a9Smrg
126279fe995a9Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
126289fe995a9Smrg"
126299fe995a9Smrg
126309fe995a9Smrg_ACEOF
126319fe995a9Smrg
12632b62cc08cSmrgcase $ac_config_files in *"
12633b62cc08cSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
12634b62cc08cSmrgesac
12635b62cc08cSmrg
12636b62cc08cSmrgcase $ac_config_headers in *"
12637b62cc08cSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12638b62cc08cSmrgesac
12639b62cc08cSmrg
12640b62cc08cSmrg
12641b62cc08cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
126429fe995a9Smrg# Files that config.status was made for.
126439fe995a9Smrgconfig_files="$ac_config_files"
126449fe995a9Smrgconfig_headers="$ac_config_headers"
126459fe995a9Smrgconfig_commands="$ac_config_commands"
126469fe995a9Smrg
126479fe995a9Smrg_ACEOF
126489fe995a9Smrg
12649b62cc08cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
126509fe995a9Smrgac_cs_usage="\
12651772b5186Smrg'$as_me' instantiates files and other configuration actions
12652b62cc08cSmrgfrom templates according to the current configuration.  Unless the files
12653b62cc08cSmrgand actions are specified as TAGs, all are instantiated by default.
126549fe995a9Smrg
12655b62cc08cSmrgUsage: $0 [OPTION]... [TAG]...
126569fe995a9Smrg
126579fe995a9Smrg  -h, --help       print this help, then exit
126589fe995a9Smrg  -V, --version    print version number and configuration settings, then exit
12659b62cc08cSmrg      --config     print configuration, then exit
12660b62cc08cSmrg  -q, --quiet, --silent
12661b62cc08cSmrg                   do not print progress messages
126629fe995a9Smrg  -d, --debug      don't remove temporary files
126639fe995a9Smrg      --recheck    update $as_me by reconfiguring in the same conditions
12664b62cc08cSmrg      --file=FILE[:TEMPLATE]
12665b62cc08cSmrg                   instantiate the configuration file FILE
12666b62cc08cSmrg      --header=FILE[:TEMPLATE]
12667b62cc08cSmrg                   instantiate the configuration header FILE
126689fe995a9Smrg
126699fe995a9SmrgConfiguration files:
126709fe995a9Smrg$config_files
126719fe995a9Smrg
126729fe995a9SmrgConfiguration headers:
126739fe995a9Smrg$config_headers
126749fe995a9Smrg
126759fe995a9SmrgConfiguration commands:
126769fe995a9Smrg$config_commands
126779fe995a9Smrg
12678772b5186SmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/iceauth/-/issues>."
126799fe995a9Smrg
126809fe995a9Smrg_ACEOF
12681c048b52eSmrgac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12682c048b52eSmrgac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12683b62cc08cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12684c048b52eSmrgac_cs_config='$ac_cs_config_escaped'
126859fe995a9Smrgac_cs_version="\\
12686772b5186Smrgiceauth config.status 1.0.10
12687772b5186Smrgconfigured by $0, generated by GNU Autoconf 2.72,
12688b62cc08cSmrg  with options \\"\$ac_cs_config\\"
126899fe995a9Smrg
12690772b5186SmrgCopyright (C) 2023 Free Software Foundation, Inc.
126919fe995a9SmrgThis config.status script is free software; the Free Software Foundation
126929fe995a9Smrggives unlimited permission to copy, distribute and modify it."
126939fe995a9Smrg
126949fe995a9Smrgac_pwd='$ac_pwd'
126959fe995a9Smrgsrcdir='$srcdir'
126969fe995a9SmrgINSTALL='$INSTALL'
126979fe995a9SmrgMKDIR_P='$MKDIR_P'
12698b62cc08cSmrgAWK='$AWK'
12699b62cc08cSmrgtest -n "\$AWK" || AWK=awk
127009fe995a9Smrg_ACEOF
127019fe995a9Smrg
12702b62cc08cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12703b62cc08cSmrg# The default lists apply if the user does not specify any file.
127049fe995a9Smrgac_need_defaults=:
127059fe995a9Smrgwhile test $# != 0
127069fe995a9Smrgdo
127079fe995a9Smrg  case $1 in
12708b62cc08cSmrg  --*=?*)
127099fe995a9Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
127109fe995a9Smrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
127119fe995a9Smrg    ac_shift=:
127129fe995a9Smrg    ;;
12713b62cc08cSmrg  --*=)
12714b62cc08cSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12715b62cc08cSmrg    ac_optarg=
12716b62cc08cSmrg    ac_shift=:
12717b62cc08cSmrg    ;;
127189fe995a9Smrg  *)
127199fe995a9Smrg    ac_option=$1
127209fe995a9Smrg    ac_optarg=$2
127219fe995a9Smrg    ac_shift=shift
127229fe995a9Smrg    ;;
127239fe995a9Smrg  esac
127249fe995a9Smrg
127259fe995a9Smrg  case $ac_option in
127269fe995a9Smrg  # Handling of the options.
127279fe995a9Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
127289fe995a9Smrg    ac_cs_recheck=: ;;
127299fe995a9Smrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12730c048b52eSmrg    printf "%s\n" "$ac_cs_version"; exit ;;
12731b62cc08cSmrg  --config | --confi | --conf | --con | --co | --c )
12732c048b52eSmrg    printf "%s\n" "$ac_cs_config"; exit ;;
127339fe995a9Smrg  --debug | --debu | --deb | --de | --d | -d )
127349fe995a9Smrg    debug=: ;;
127359fe995a9Smrg  --file | --fil | --fi | --f )
127369fe995a9Smrg    $ac_shift
12737b62cc08cSmrg    case $ac_optarg in
12738c048b52eSmrg    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12739b62cc08cSmrg    '') as_fn_error $? "missing file argument" ;;
12740b62cc08cSmrg    esac
12741b62cc08cSmrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
127429fe995a9Smrg    ac_need_defaults=false;;
127439fe995a9Smrg  --header | --heade | --head | --hea )
127449fe995a9Smrg    $ac_shift
12745b62cc08cSmrg    case $ac_optarg in
12746c048b52eSmrg    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12747b62cc08cSmrg    esac
12748b62cc08cSmrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
127499fe995a9Smrg    ac_need_defaults=false;;
127509fe995a9Smrg  --he | --h)
127519fe995a9Smrg    # Conflict between --help and --header
12752772b5186Smrg    as_fn_error $? "ambiguous option: '$1'
12753772b5186SmrgTry '$0 --help' for more information.";;
127549fe995a9Smrg  --help | --hel | -h )
12755c048b52eSmrg    printf "%s\n" "$ac_cs_usage"; exit ;;
127569fe995a9Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
127579fe995a9Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
127589fe995a9Smrg    ac_cs_silent=: ;;
127599fe995a9Smrg
127609fe995a9Smrg  # This is an error.
12761772b5186Smrg  -*) as_fn_error $? "unrecognized option: '$1'
12762772b5186SmrgTry '$0 --help' for more information." ;;
127639fe995a9Smrg
12764b62cc08cSmrg  *) as_fn_append ac_config_targets " $1"
127659fe995a9Smrg     ac_need_defaults=false ;;
127669fe995a9Smrg
127679fe995a9Smrg  esac
127689fe995a9Smrg  shift
127699fe995a9Smrgdone
127709fe995a9Smrg
127719fe995a9Smrgac_configure_extra_args=
127729fe995a9Smrg
127739fe995a9Smrgif $ac_cs_silent; then
127749fe995a9Smrg  exec 6>/dev/null
127759fe995a9Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
127769fe995a9Smrgfi
127779fe995a9Smrg
127789fe995a9Smrg_ACEOF
12779b62cc08cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
127809fe995a9Smrgif \$ac_cs_recheck; then
12781e8ac26b0Smrg  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12782b62cc08cSmrg  shift
12783c048b52eSmrg  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12784b62cc08cSmrg  CONFIG_SHELL='$SHELL'
127859fe995a9Smrg  export CONFIG_SHELL
12786b62cc08cSmrg  exec "\$@"
127879fe995a9Smrgfi
127889fe995a9Smrg
127899fe995a9Smrg_ACEOF
12790b62cc08cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
127919fe995a9Smrgexec 5>>config.log
127929fe995a9Smrg{
127939fe995a9Smrg  echo
127949fe995a9Smrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
127959fe995a9Smrg## Running $as_me. ##
127969fe995a9Smrg_ASBOX
12797c048b52eSmrg  printf "%s\n" "$ac_log"
127989fe995a9Smrg} >&5
127999fe995a9Smrg
128009fe995a9Smrg_ACEOF
12801b62cc08cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
128029fe995a9Smrg#
128039fe995a9Smrg# INIT-COMMANDS
128049fe995a9Smrg#
12805c048b52eSmrgAMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
128069fe995a9Smrg
128079fe995a9Smrg_ACEOF
128089fe995a9Smrg
12809b62cc08cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
128109fe995a9Smrg
128119fe995a9Smrg# Handling of arguments.
128129fe995a9Smrgfor ac_config_target in $ac_config_targets
128139fe995a9Smrgdo
128149fe995a9Smrg  case $ac_config_target in
128159fe995a9Smrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
128169fe995a9Smrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
128179fe995a9Smrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1281890b6713cSmrg    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
128199fe995a9Smrg
12820772b5186Smrg  *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
128219fe995a9Smrg  esac
128229fe995a9Smrgdone
128239fe995a9Smrg
128249fe995a9Smrg
128259fe995a9Smrg# If the user did not use the arguments to specify the items to instantiate,
128269fe995a9Smrg# then the envvar interface is used.  Set only those that are not.
128279fe995a9Smrg# We use the long form for the default assignment because of an extremely
128289fe995a9Smrg# bizarre bug on SunOS 4.1.3.
128299fe995a9Smrgif $ac_need_defaults; then
12830c048b52eSmrg  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12831c048b52eSmrg  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12832c048b52eSmrg  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
128339fe995a9Smrgfi
128349fe995a9Smrg
128359fe995a9Smrg# Have a temporary directory for convenience.  Make it in the build tree
128369fe995a9Smrg# simply because there is no reason against having it here, and in addition,
128379fe995a9Smrg# creating and moving files from /tmp can sometimes cause problems.
128389fe995a9Smrg# Hook for its removal unless debugging.
128399fe995a9Smrg# Note that there is a small window in which the directory will not be cleaned:
12840772b5186Smrg# after its creation but before its name has been assigned to '$tmp'.
128419fe995a9Smrg$debug ||
128429fe995a9Smrg{
12843b62cc08cSmrg  tmp= ac_tmp=
128449fe995a9Smrg  trap 'exit_status=$?
12845b62cc08cSmrg  : "${ac_tmp:=$tmp}"
12846b62cc08cSmrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
128479fe995a9Smrg' 0
12848b62cc08cSmrg  trap 'as_fn_exit 1' 1 2 13 15
128499fe995a9Smrg}
128509fe995a9Smrg# Create a (secure) tmp directory for tmp files.
128519fe995a9Smrg
128529fe995a9Smrg{
128539fe995a9Smrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12854b62cc08cSmrg  test -d "$tmp"
128559fe995a9Smrg}  ||
128569fe995a9Smrg{
128579fe995a9Smrg  tmp=./conf$$-$RANDOM
128589fe995a9Smrg  (umask 077 && mkdir "$tmp")
12859b62cc08cSmrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12860b62cc08cSmrgac_tmp=$tmp
128619fe995a9Smrg
12862b62cc08cSmrg# Set up the scripts for CONFIG_FILES section.
12863b62cc08cSmrg# No need to generate them if there are no CONFIG_FILES.
12864772b5186Smrg# This happens for instance with './config.status config.h'.
128659fe995a9Smrgif test -n "$CONFIG_FILES"; then
128669fe995a9Smrg
128679fe995a9Smrg
12868b62cc08cSmrgac_cr=`echo X | tr X '\015'`
12869b62cc08cSmrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
12870b62cc08cSmrg# But we know of no other shell where ac_cr would be empty at this
12871b62cc08cSmrg# point, so we can use a bashism as a fallback.
12872b62cc08cSmrgif test "x$ac_cr" = x; then
12873b62cc08cSmrg  eval ac_cr=\$\'\\r\'
12874b62cc08cSmrgfi
12875b62cc08cSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12876b62cc08cSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12877b62cc08cSmrg  ac_cs_awk_cr='\\r'
12878b62cc08cSmrgelse
12879b62cc08cSmrg  ac_cs_awk_cr=$ac_cr
128809fe995a9Smrgfi
128819fe995a9Smrg
12882b62cc08cSmrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
128839fe995a9Smrg_ACEOF
128849fe995a9Smrg
128859fe995a9Smrg
12886b62cc08cSmrg{
12887b62cc08cSmrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
12888b62cc08cSmrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12889b62cc08cSmrg  echo "_ACEOF"
12890b62cc08cSmrg} >conf$$subs.sh ||
12891b62cc08cSmrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12892b62cc08cSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
128939fe995a9Smrgac_delim='%!_!# '
128949fe995a9Smrgfor ac_last_try in false false false false false :; do
12895b62cc08cSmrg  . ./conf$$subs.sh ||
12896b62cc08cSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
128979fe995a9Smrg
12898b62cc08cSmrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12899b62cc08cSmrg  if test $ac_delim_n = $ac_delim_num; then
129009fe995a9Smrg    break
129019fe995a9Smrg  elif $ac_last_try; then
12902b62cc08cSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
129039fe995a9Smrg  else
129049fe995a9Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
129059fe995a9Smrg  fi
129069fe995a9Smrgdone
12907b62cc08cSmrgrm -f conf$$subs.sh
129089fe995a9Smrg
12909b62cc08cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12910b62cc08cSmrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12911b62cc08cSmrg_ACEOF
12912b62cc08cSmrgsed -n '
12913b62cc08cSmrgh
12914b62cc08cSmrgs/^/S["/; s/!.*/"]=/
12915b62cc08cSmrgp
12916b62cc08cSmrgg
12917b62cc08cSmrgs/^[^!]*!//
12918b62cc08cSmrg:repl
12919b62cc08cSmrgt repl
12920b62cc08cSmrgs/'"$ac_delim"'$//
12921b62cc08cSmrgt delim
12922b62cc08cSmrg:nl
12923b62cc08cSmrgh
12924b62cc08cSmrgs/\(.\{148\}\)..*/\1/
12925b62cc08cSmrgt more1
12926b62cc08cSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12927b62cc08cSmrgp
12928b62cc08cSmrgn
12929b62cc08cSmrgb repl
12930b62cc08cSmrg:more1
12931b62cc08cSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
12932b62cc08cSmrgp
12933b62cc08cSmrgg
12934b62cc08cSmrgs/.\{148\}//
12935b62cc08cSmrgt nl
12936b62cc08cSmrg:delim
12937b62cc08cSmrgh
12938b62cc08cSmrgs/\(.\{148\}\)..*/\1/
12939b62cc08cSmrgt more2
12940b62cc08cSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/
12941b62cc08cSmrgp
12942b62cc08cSmrgb
12943b62cc08cSmrg:more2
12944b62cc08cSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
12945b62cc08cSmrgp
12946b62cc08cSmrgg
12947b62cc08cSmrgs/.\{148\}//
12948b62cc08cSmrgt delim
12949b62cc08cSmrg' <conf$$subs.awk | sed '
12950b62cc08cSmrg/^[^""]/{
12951b62cc08cSmrg  N
12952b62cc08cSmrg  s/\n//
12953b62cc08cSmrg}
12954b62cc08cSmrg' >>$CONFIG_STATUS || ac_write_fail=1
12955b62cc08cSmrgrm -f conf$$subs.awk
12956b62cc08cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12957b62cc08cSmrg_ACAWK
12958b62cc08cSmrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12959b62cc08cSmrg  for (key in S) S_is_set[key] = 1
12960b62cc08cSmrg  FS = ""
12961b62cc08cSmrg
12962b62cc08cSmrg}
12963b62cc08cSmrg{
12964b62cc08cSmrg  line = $ 0
12965b62cc08cSmrg  nfields = split(line, field, "@")
12966b62cc08cSmrg  substed = 0
12967b62cc08cSmrg  len = length(field[1])
12968b62cc08cSmrg  for (i = 2; i < nfields; i++) {
12969b62cc08cSmrg    key = field[i]
12970b62cc08cSmrg    keylen = length(key)
12971b62cc08cSmrg    if (S_is_set[key]) {
12972b62cc08cSmrg      value = S[key]
12973b62cc08cSmrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12974b62cc08cSmrg      len += length(value) + length(field[++i])
12975b62cc08cSmrg      substed = 1
12976b62cc08cSmrg    } else
12977b62cc08cSmrg      len += 1 + keylen
12978b62cc08cSmrg  }
12979b62cc08cSmrg
12980b62cc08cSmrg  print line
12981b62cc08cSmrg}
129829fe995a9Smrg
12983b62cc08cSmrg_ACAWK
129849fe995a9Smrg_ACEOF
12985b62cc08cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12986b62cc08cSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12987b62cc08cSmrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12988b62cc08cSmrgelse
12989b62cc08cSmrg  cat
12990b62cc08cSmrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12991b62cc08cSmrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
129929fe995a9Smrg_ACEOF
129939fe995a9Smrg
12994b62cc08cSmrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12995b62cc08cSmrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
129969fe995a9Smrg# trailing colons and then remove the whole line if VPATH becomes empty
129979fe995a9Smrg# (actually we leave an empty line to preserve line numbers).
129989fe995a9Smrgif test "x$srcdir" = x.; then
12999b62cc08cSmrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13000b62cc08cSmrgh
13001b62cc08cSmrgs///
13002b62cc08cSmrgs/^/:/
13003b62cc08cSmrgs/[	 ]*$/:/
13004b62cc08cSmrgs/:\$(srcdir):/:/g
13005b62cc08cSmrgs/:\${srcdir}:/:/g
13006b62cc08cSmrgs/:@srcdir@:/:/g
13007b62cc08cSmrgs/^:*//
130089fe995a9Smrgs/:*$//
13009b62cc08cSmrgx
13010b62cc08cSmrgs/\(=[	 ]*\).*/\1/
13011b62cc08cSmrgG
13012b62cc08cSmrgs/\n//
130139fe995a9Smrgs/^[^=]*=[	 ]*$//
130149fe995a9Smrg}'
130159fe995a9Smrgfi
130169fe995a9Smrg
13017b62cc08cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
130189fe995a9Smrgfi # test -n "$CONFIG_FILES"
130199fe995a9Smrg
13020b62cc08cSmrg# Set up the scripts for CONFIG_HEADERS section.
13021b62cc08cSmrg# No need to generate them if there are no CONFIG_HEADERS.
13022772b5186Smrg# This happens for instance with './config.status Makefile'.
13023b62cc08cSmrgif test -n "$CONFIG_HEADERS"; then
13024b62cc08cSmrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13025b62cc08cSmrgBEGIN {
13026b62cc08cSmrg_ACEOF
13027b62cc08cSmrg
13028772b5186Smrg# Transform confdefs.h into an awk script 'defines.awk', embedded as
13029b62cc08cSmrg# here-document in config.status, that substitutes the proper values into
13030b62cc08cSmrg# config.h.in to produce config.h.
13031b62cc08cSmrg
13032b62cc08cSmrg# Create a delimiter string that does not exist in confdefs.h, to ease
13033b62cc08cSmrg# handling of long lines.
13034b62cc08cSmrgac_delim='%!_!# '
13035b62cc08cSmrgfor ac_last_try in false false :; do
13036b62cc08cSmrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13037b62cc08cSmrg  if test -z "$ac_tt"; then
13038b62cc08cSmrg    break
13039b62cc08cSmrg  elif $ac_last_try; then
13040b62cc08cSmrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13041b62cc08cSmrg  else
13042b62cc08cSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13043b62cc08cSmrg  fi
13044b62cc08cSmrgdone
13045b62cc08cSmrg
13046b62cc08cSmrg# For the awk script, D is an array of macro values keyed by name,
13047b62cc08cSmrg# likewise P contains macro parameters if any.  Preserve backslash
13048b62cc08cSmrg# newline sequences.
13049b62cc08cSmrg
13050b62cc08cSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13051b62cc08cSmrgsed -n '
13052b62cc08cSmrgs/.\{148\}/&'"$ac_delim"'/g
13053b62cc08cSmrgt rset
13054b62cc08cSmrg:rset
13055b62cc08cSmrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13056b62cc08cSmrgt def
13057b62cc08cSmrgd
13058b62cc08cSmrg:def
13059b62cc08cSmrgs/\\$//
13060b62cc08cSmrgt bsnl
13061b62cc08cSmrgs/["\\]/\\&/g
13062b62cc08cSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13063b62cc08cSmrgD["\1"]=" \3"/p
13064b62cc08cSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13065b62cc08cSmrgd
13066b62cc08cSmrg:bsnl
13067b62cc08cSmrgs/["\\]/\\&/g
13068b62cc08cSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13069b62cc08cSmrgD["\1"]=" \3\\\\\\n"\\/p
13070b62cc08cSmrgt cont
13071b62cc08cSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13072b62cc08cSmrgt cont
13073b62cc08cSmrgd
13074b62cc08cSmrg:cont
13075b62cc08cSmrgn
13076b62cc08cSmrgs/.\{148\}/&'"$ac_delim"'/g
13077b62cc08cSmrgt clear
13078b62cc08cSmrg:clear
13079b62cc08cSmrgs/\\$//
13080b62cc08cSmrgt bsnlc
13081b62cc08cSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
13082b62cc08cSmrgd
13083b62cc08cSmrg:bsnlc
13084b62cc08cSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13085b62cc08cSmrgb cont
13086b62cc08cSmrg' <confdefs.h | sed '
13087b62cc08cSmrgs/'"$ac_delim"'/"\\\
13088b62cc08cSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
13089b62cc08cSmrg
13090b62cc08cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13091b62cc08cSmrg  for (key in D) D_is_set[key] = 1
13092b62cc08cSmrg  FS = ""
13093b62cc08cSmrg}
13094b62cc08cSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13095b62cc08cSmrg  line = \$ 0
13096b62cc08cSmrg  split(line, arg, " ")
13097b62cc08cSmrg  if (arg[1] == "#") {
13098b62cc08cSmrg    defundef = arg[2]
13099b62cc08cSmrg    mac1 = arg[3]
13100b62cc08cSmrg  } else {
13101b62cc08cSmrg    defundef = substr(arg[1], 2)
13102b62cc08cSmrg    mac1 = arg[2]
13103b62cc08cSmrg  }
13104b62cc08cSmrg  split(mac1, mac2, "(") #)
13105b62cc08cSmrg  macro = mac2[1]
13106b62cc08cSmrg  prefix = substr(line, 1, index(line, defundef) - 1)
13107b62cc08cSmrg  if (D_is_set[macro]) {
13108b62cc08cSmrg    # Preserve the white space surrounding the "#".
13109b62cc08cSmrg    print prefix "define", macro P[macro] D[macro]
13110b62cc08cSmrg    next
13111b62cc08cSmrg  } else {
13112b62cc08cSmrg    # Replace #undef with comments.  This is necessary, for example,
13113b62cc08cSmrg    # in the case of _POSIX_SOURCE, which is predefined and required
13114b62cc08cSmrg    # on some systems where configure will not decide to define it.
13115b62cc08cSmrg    if (defundef == "undef") {
13116b62cc08cSmrg      print "/*", prefix defundef, macro, "*/"
13117b62cc08cSmrg      next
13118b62cc08cSmrg    }
13119b62cc08cSmrg  }
13120b62cc08cSmrg}
13121b62cc08cSmrg{ print }
13122b62cc08cSmrg_ACAWK
13123b62cc08cSmrg_ACEOF
13124b62cc08cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13125b62cc08cSmrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13126b62cc08cSmrgfi # test -n "$CONFIG_HEADERS"
13127b62cc08cSmrg
131289fe995a9Smrg
13129b62cc08cSmrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13130b62cc08cSmrgshift
13131b62cc08cSmrgfor ac_tag
131329fe995a9Smrgdo
131339fe995a9Smrg  case $ac_tag in
131349fe995a9Smrg  :[FHLC]) ac_mode=$ac_tag; continue;;
131359fe995a9Smrg  esac
131369fe995a9Smrg  case $ac_mode$ac_tag in
131379fe995a9Smrg  :[FHL]*:*);;
13138772b5186Smrg  :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
131399fe995a9Smrg  :[FH]-) ac_tag=-:-;;
131409fe995a9Smrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
131419fe995a9Smrg  esac
131429fe995a9Smrg  ac_save_IFS=$IFS
131439fe995a9Smrg  IFS=:
131449fe995a9Smrg  set x $ac_tag
131459fe995a9Smrg  IFS=$ac_save_IFS
131469fe995a9Smrg  shift
131479fe995a9Smrg  ac_file=$1
131489fe995a9Smrg  shift
131499fe995a9Smrg
131509fe995a9Smrg  case $ac_mode in
131519fe995a9Smrg  :L) ac_source=$1;;
131529fe995a9Smrg  :[FH])
131539fe995a9Smrg    ac_file_inputs=
131549fe995a9Smrg    for ac_f
131559fe995a9Smrg    do
131569fe995a9Smrg      case $ac_f in
13157b62cc08cSmrg      -) ac_f="$ac_tmp/stdin";;
131589fe995a9Smrg      *) # Look for the file first in the build tree, then in the source tree
131599fe995a9Smrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13160772b5186Smrg	 # because $ac_f cannot contain ':'.
131619fe995a9Smrg	 test -f "$ac_f" ||
131629fe995a9Smrg	   case $ac_f in
131639fe995a9Smrg	   [\\/$]*) false;;
131649fe995a9Smrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
131659fe995a9Smrg	   esac ||
13166772b5186Smrg	   as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
131679fe995a9Smrg      esac
13168c048b52eSmrg      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13169b62cc08cSmrg      as_fn_append ac_file_inputs " '$ac_f'"
131709fe995a9Smrg    done
131719fe995a9Smrg
13172772b5186Smrg    # Let's still pretend it is 'configure' which instantiates (i.e., don't
131739fe995a9Smrg    # use $as_me), people would be surprised to read:
131749fe995a9Smrg    #    /* config.h.  Generated by config.status.  */
13175b62cc08cSmrg    configure_input='Generated from '`
13176c048b52eSmrg	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13177b62cc08cSmrg	`' by configure.'
131789fe995a9Smrg    if test x"$ac_file" != x-; then
131799fe995a9Smrg      configure_input="$ac_file.  $configure_input"
13180c048b52eSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13181c048b52eSmrgprintf "%s\n" "$as_me: creating $ac_file" >&6;}
131829fe995a9Smrg    fi
13183b62cc08cSmrg    # Neutralize special characters interpreted by sed in replacement strings.
13184b62cc08cSmrg    case $configure_input in #(
13185b62cc08cSmrg    *\&* | *\|* | *\\* )
13186c048b52eSmrg       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
13187b62cc08cSmrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13188b62cc08cSmrg    *) ac_sed_conf_input=$configure_input;;
13189b62cc08cSmrg    esac
131909fe995a9Smrg
131919fe995a9Smrg    case $ac_tag in
13192b62cc08cSmrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13193b62cc08cSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
131949fe995a9Smrg    esac
131959fe995a9Smrg    ;;
131969fe995a9Smrg  esac
131979fe995a9Smrg
131989fe995a9Smrg  ac_dir=`$as_dirname -- "$ac_file" ||
131999fe995a9Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
132009fe995a9Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
132019fe995a9Smrg	 X"$ac_file" : 'X\(//\)$' \| \
132029fe995a9Smrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13203c048b52eSmrgprintf "%s\n" X"$ac_file" |
132049fe995a9Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
132059fe995a9Smrg	    s//\1/
132069fe995a9Smrg	    q
132079fe995a9Smrg	  }
132089fe995a9Smrg	  /^X\(\/\/\)[^/].*/{
132099fe995a9Smrg	    s//\1/
132109fe995a9Smrg	    q
132119fe995a9Smrg	  }
132129fe995a9Smrg	  /^X\(\/\/\)$/{
132139fe995a9Smrg	    s//\1/
132149fe995a9Smrg	    q
132159fe995a9Smrg	  }
132169fe995a9Smrg	  /^X\(\/\).*/{
132179fe995a9Smrg	    s//\1/
132189fe995a9Smrg	    q
132199fe995a9Smrg	  }
132209fe995a9Smrg	  s/.*/./; q'`
13221b62cc08cSmrg  as_dir="$ac_dir"; as_fn_mkdir_p
132229fe995a9Smrg  ac_builddir=.
132239fe995a9Smrg
132249fe995a9Smrgcase "$ac_dir" in
132259fe995a9Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
132269fe995a9Smrg*)
13227c048b52eSmrg  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
132289fe995a9Smrg  # A ".." for each directory in $ac_dir_suffix.
13229c048b52eSmrg  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
132309fe995a9Smrg  case $ac_top_builddir_sub in
132319fe995a9Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
132329fe995a9Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
132339fe995a9Smrg  esac ;;
132349fe995a9Smrgesac
132359fe995a9Smrgac_abs_top_builddir=$ac_pwd
132369fe995a9Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
132379fe995a9Smrg# for backward compatibility:
132389fe995a9Smrgac_top_builddir=$ac_top_build_prefix
132399fe995a9Smrg
132409fe995a9Smrgcase $srcdir in
132419fe995a9Smrg  .)  # We are building in place.
132429fe995a9Smrg    ac_srcdir=.
132439fe995a9Smrg    ac_top_srcdir=$ac_top_builddir_sub
132449fe995a9Smrg    ac_abs_top_srcdir=$ac_pwd ;;
132459fe995a9Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
132469fe995a9Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
132479fe995a9Smrg    ac_top_srcdir=$srcdir
132489fe995a9Smrg    ac_abs_top_srcdir=$srcdir ;;
132499fe995a9Smrg  *) # Relative name.
132509fe995a9Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
132519fe995a9Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
132529fe995a9Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
132539fe995a9Smrgesac
132549fe995a9Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
132559fe995a9Smrg
132569fe995a9Smrg
132579fe995a9Smrg  case $ac_mode in
132589fe995a9Smrg  :F)
132599fe995a9Smrg  #
132609fe995a9Smrg  # CONFIG_FILE
132619fe995a9Smrg  #
132629fe995a9Smrg
132639fe995a9Smrg  case $INSTALL in
132649fe995a9Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
132659fe995a9Smrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
132669fe995a9Smrg  esac
132679fe995a9Smrg  ac_MKDIR_P=$MKDIR_P
132689fe995a9Smrg  case $MKDIR_P in
132699fe995a9Smrg  [\\/$]* | ?:[\\/]* ) ;;
132709fe995a9Smrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
132719fe995a9Smrg  esac
132729fe995a9Smrg_ACEOF
132739fe995a9Smrg
13274b62cc08cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
132759fe995a9Smrg# If the template does not know about datarootdir, expand it.
132769fe995a9Smrg# FIXME: This hack should be removed a few years after 2.60.
132779fe995a9Smrgac_datarootdir_hack=; ac_datarootdir_seen=
13278b62cc08cSmrgac_sed_dataroot='
13279b62cc08cSmrg/datarootdir/ {
132809fe995a9Smrg  p
132819fe995a9Smrg  q
132829fe995a9Smrg}
132839fe995a9Smrg/@datadir@/p
132849fe995a9Smrg/@docdir@/p
132859fe995a9Smrg/@infodir@/p
132869fe995a9Smrg/@localedir@/p
13287b62cc08cSmrg/@mandir@/p'
13288b62cc08cSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
132899fe995a9Smrg*datarootdir*) ac_datarootdir_seen=yes;;
132909fe995a9Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13291c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13292c048b52eSmrgprintf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
132939fe995a9Smrg_ACEOF
13294b62cc08cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
132959fe995a9Smrg  ac_datarootdir_hack='
132969fe995a9Smrg  s&@datadir@&$datadir&g
132979fe995a9Smrg  s&@docdir@&$docdir&g
132989fe995a9Smrg  s&@infodir@&$infodir&g
132999fe995a9Smrg  s&@localedir@&$localedir&g
133009fe995a9Smrg  s&@mandir@&$mandir&g
13301b62cc08cSmrg  s&\\\${datarootdir}&$datarootdir&g' ;;
133029fe995a9Smrgesac
133039fe995a9Smrg_ACEOF
133049fe995a9Smrg
13305772b5186Smrg# Neutralize VPATH when '$srcdir' = '.'.
133069fe995a9Smrg# Shell code in configure.ac might set extrasub.
133079fe995a9Smrg# FIXME: do we really want to maintain this feature?
13308b62cc08cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13309b62cc08cSmrgac_sed_extra="$ac_vpsub
133109fe995a9Smrg$extrasub
133119fe995a9Smrg_ACEOF
13312b62cc08cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
133139fe995a9Smrg:t
133149fe995a9Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13315b62cc08cSmrgs|@configure_input@|$ac_sed_conf_input|;t t
133169fe995a9Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t
13317b62cc08cSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
133189fe995a9Smrgs&@srcdir@&$ac_srcdir&;t t
133199fe995a9Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
133209fe995a9Smrgs&@top_srcdir@&$ac_top_srcdir&;t t
133219fe995a9Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
133229fe995a9Smrgs&@builddir@&$ac_builddir&;t t
133239fe995a9Smrgs&@abs_builddir@&$ac_abs_builddir&;t t
133249fe995a9Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
133259fe995a9Smrgs&@INSTALL@&$ac_INSTALL&;t t
133269fe995a9Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
133279fe995a9Smrg$ac_datarootdir_hack
13328b62cc08cSmrg"
13329b62cc08cSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13330b62cc08cSmrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
133319fe995a9Smrg
133329fe995a9Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13333b62cc08cSmrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13334b62cc08cSmrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13335b62cc08cSmrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13336772b5186Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13337b62cc08cSmrgwhich seems to be undefined.  Please make sure it is defined" >&5
13338772b5186Smrgprintf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13339b62cc08cSmrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
13340b62cc08cSmrg
13341b62cc08cSmrg  rm -f "$ac_tmp/stdin"
133429fe995a9Smrg  case $ac_file in
13343b62cc08cSmrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13344b62cc08cSmrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13345b62cc08cSmrg  esac \
13346b62cc08cSmrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
133479fe995a9Smrg ;;
133489fe995a9Smrg  :H)
133499fe995a9Smrg  #
133509fe995a9Smrg  # CONFIG_HEADER
133519fe995a9Smrg  #
133529fe995a9Smrg  if test x"$ac_file" != x-; then
13353b62cc08cSmrg    {
13354c048b52eSmrg      printf "%s\n" "/* $configure_input  */" >&1 \
13355b62cc08cSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13356b62cc08cSmrg    } >"$ac_tmp/config.h" \
13357b62cc08cSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13358b62cc08cSmrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13359c048b52eSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13360c048b52eSmrgprintf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
133619fe995a9Smrg    else
13362b62cc08cSmrg      rm -f "$ac_file"
13363b62cc08cSmrg      mv "$ac_tmp/config.h" "$ac_file" \
13364b62cc08cSmrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
133659fe995a9Smrg    fi
133669fe995a9Smrg  else
13367c048b52eSmrg    printf "%s\n" "/* $configure_input  */" >&1 \
13368b62cc08cSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13369b62cc08cSmrg      || as_fn_error $? "could not create -" "$LINENO" 5
133709fe995a9Smrg  fi
13371b62cc08cSmrg# Compute "$ac_file"'s index in $config_headers.
13372b62cc08cSmrg_am_arg="$ac_file"
133739fe995a9Smrg_am_stamp_count=1
133749fe995a9Smrgfor _am_header in $config_headers :; do
133759fe995a9Smrg  case $_am_header in
13376b62cc08cSmrg    $_am_arg | $_am_arg:* )
133779fe995a9Smrg      break ;;
133789fe995a9Smrg    * )
133799fe995a9Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
133809fe995a9Smrg  esac
133819fe995a9Smrgdone
13382b62cc08cSmrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13383b62cc08cSmrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13384b62cc08cSmrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13385b62cc08cSmrg	 X"$_am_arg" : 'X\(//\)$' \| \
13386b62cc08cSmrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13387c048b52eSmrgprintf "%s\n" X"$_am_arg" |
133889fe995a9Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
133899fe995a9Smrg	    s//\1/
133909fe995a9Smrg	    q
133919fe995a9Smrg	  }
133929fe995a9Smrg	  /^X\(\/\/\)[^/].*/{
133939fe995a9Smrg	    s//\1/
133949fe995a9Smrg	    q
133959fe995a9Smrg	  }
133969fe995a9Smrg	  /^X\(\/\/\)$/{
133979fe995a9Smrg	    s//\1/
133989fe995a9Smrg	    q
133999fe995a9Smrg	  }
134009fe995a9Smrg	  /^X\(\/\).*/{
134019fe995a9Smrg	    s//\1/
134029fe995a9Smrg	    q
134039fe995a9Smrg	  }
134049fe995a9Smrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
134059fe995a9Smrg ;;
134069fe995a9Smrg
13407c048b52eSmrg  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13408c048b52eSmrgprintf "%s\n" "$as_me: executing $ac_file commands" >&6;}
134099fe995a9Smrg ;;
134109fe995a9Smrg  esac
134119fe995a9Smrg
134129fe995a9Smrg
134139fe995a9Smrg  case $ac_file$ac_mode in
13414b62cc08cSmrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
134159d794632Smrg  # Older Autoconf quotes --file arguments for eval, but not when files
13416b62cc08cSmrg  # are listed without --file.  Let's play safe and only enable the eval
13417b62cc08cSmrg  # if we detect the quoting.
13418c048b52eSmrg  # TODO: see whether this extra hack can be removed once we start
13419c048b52eSmrg  # requiring Autoconf 2.70 or later.
13420c048b52eSmrg  case $CONFIG_FILES in #(
13421c048b52eSmrg  *\'*) :
13422c048b52eSmrg    eval set x "$CONFIG_FILES" ;; #(
13423c048b52eSmrg  *) :
13424c048b52eSmrg    set x $CONFIG_FILES ;; #(
13425c048b52eSmrg  *) :
13426c048b52eSmrg     ;;
13427c048b52eSmrgesac
13428b62cc08cSmrg  shift
13429c048b52eSmrg  # Used to flag and report bootstrapping failures.
13430c048b52eSmrg  am_rc=0
13431c048b52eSmrg  for am_mf
13432b62cc08cSmrg  do
13433b62cc08cSmrg    # Strip MF so we end up with the name of the file.
13434c048b52eSmrg    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13435c048b52eSmrg    # Check whether this is an Automake generated Makefile which includes
13436c048b52eSmrg    # dependency-tracking related rules and includes.
13437c048b52eSmrg    # Grep'ing the whole file directly is not great: AIX grep has a line
13438b62cc08cSmrg    # limit of 2048, but all sed's we know have understand at least 4000.
13439c048b52eSmrg    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13440c048b52eSmrg      || continue
13441c048b52eSmrg    am_dirpart=`$as_dirname -- "$am_mf" ||
13442c048b52eSmrg$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13443c048b52eSmrg	 X"$am_mf" : 'X\(//\)[^/]' \| \
13444c048b52eSmrg	 X"$am_mf" : 'X\(//\)$' \| \
13445c048b52eSmrg	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13446c048b52eSmrgprintf "%s\n" X"$am_mf" |
134479fe995a9Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
134489fe995a9Smrg	    s//\1/
134499fe995a9Smrg	    q
134509fe995a9Smrg	  }
134519fe995a9Smrg	  /^X\(\/\/\)[^/].*/{
134529fe995a9Smrg	    s//\1/
134539fe995a9Smrg	    q
134549fe995a9Smrg	  }
134559fe995a9Smrg	  /^X\(\/\/\)$/{
134569fe995a9Smrg	    s//\1/
134579fe995a9Smrg	    q
134589fe995a9Smrg	  }
134599fe995a9Smrg	  /^X\(\/\).*/{
134609fe995a9Smrg	    s//\1/
134619fe995a9Smrg	    q
134629fe995a9Smrg	  }
134639fe995a9Smrg	  s/.*/./; q'`
13464c048b52eSmrg    am_filepart=`$as_basename -- "$am_mf" ||
13465c048b52eSmrg$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13466c048b52eSmrg	 X"$am_mf" : 'X\(//\)$' \| \
13467c048b52eSmrg	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13468c048b52eSmrgprintf "%s\n" X/"$am_mf" |
13469c048b52eSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
134709fe995a9Smrg	    s//\1/
134719fe995a9Smrg	    q
134729fe995a9Smrg	  }
13473c048b52eSmrg	  /^X\/\(\/\/\)$/{
134749fe995a9Smrg	    s//\1/
134759fe995a9Smrg	    q
134769fe995a9Smrg	  }
13477c048b52eSmrg	  /^X\/\(\/\).*/{
134789fe995a9Smrg	    s//\1/
134799fe995a9Smrg	    q
134809fe995a9Smrg	  }
134819fe995a9Smrg	  s/.*/./; q'`
13482c048b52eSmrg    { echo "$as_me:$LINENO: cd "$am_dirpart" \
13483c048b52eSmrg      && sed -e '/# am--include-marker/d' "$am_filepart" \
13484c048b52eSmrg        | $MAKE -f - am--depfiles" >&5
13485c048b52eSmrg   (cd "$am_dirpart" \
13486c048b52eSmrg      && sed -e '/# am--include-marker/d' "$am_filepart" \
13487c048b52eSmrg        | $MAKE -f - am--depfiles) >&5 2>&5
13488c048b52eSmrg   ac_status=$?
13489c048b52eSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490c048b52eSmrg   (exit $ac_status); } || am_rc=$?
134919fe995a9Smrg  done
13492c048b52eSmrg  if test $am_rc -ne 0; then
13493772b5186Smrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13494772b5186Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13495c048b52eSmrgas_fn_error $? "Something went wrong bootstrapping makefile fragments
13496c048b52eSmrg    for automatic dependency tracking.  If GNU make was not used, consider
13497c048b52eSmrg    re-running the configure script with MAKE=\"gmake\" (or whatever is
13498c048b52eSmrg    necessary).  You can also try re-running configure with the
13499c048b52eSmrg    '--disable-dependency-tracking' option to at least be able to build
13500c048b52eSmrg    the package (albeit without support for automatic dependency tracking).
13501772b5186SmrgSee 'config.log' for more details" "$LINENO" 5; }
13502c048b52eSmrg  fi
13503c048b52eSmrg  { am_dirpart=; unset am_dirpart;}
13504c048b52eSmrg  { am_filepart=; unset am_filepart;}
13505c048b52eSmrg  { am_mf=; unset am_mf;}
13506c048b52eSmrg  { am_rc=; unset am_rc;}
13507c048b52eSmrg  rm -f conftest-deps.mk
13508b62cc08cSmrg}
135099fe995a9Smrg ;;
135109fe995a9Smrg
135119fe995a9Smrg  esac
135129fe995a9Smrgdone # for ac_tag
135139fe995a9Smrg
135149fe995a9Smrg
13515b62cc08cSmrgas_fn_exit 0
135169fe995a9Smrg_ACEOF
135179fe995a9Smrgac_clean_files=$ac_clean_files_save
135189fe995a9Smrg
13519b62cc08cSmrgtest $ac_write_fail = 0 ||
13520b62cc08cSmrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13521b62cc08cSmrg
135229fe995a9Smrg
135239fe995a9Smrg# configure is writing to config.log, and then calls config.status.
135249fe995a9Smrg# config.status does its own redirection, appending to config.log.
135259fe995a9Smrg# Unfortunately, on DOS this fails, as config.log is still kept open
135269fe995a9Smrg# by configure, so config.status won't be able to write to it; its
135279fe995a9Smrg# output is simply discarded.  So we exec the FD to /dev/null,
135289fe995a9Smrg# effectively closing config.log, so it can be properly (re)opened and
135299fe995a9Smrg# appended to by config.status.  When coming back to configure, we
135309fe995a9Smrg# need to make the FD available again.
135319fe995a9Smrgif test "$no_create" != yes; then
135329fe995a9Smrg  ac_cs_success=:
135339fe995a9Smrg  ac_config_status_args=
135349fe995a9Smrg  test "$silent" = yes &&
135359fe995a9Smrg    ac_config_status_args="$ac_config_status_args --quiet"
135369fe995a9Smrg  exec 5>/dev/null
135379fe995a9Smrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
135389fe995a9Smrg  exec 5>>config.log
135399fe995a9Smrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
135409fe995a9Smrg  # would make configure fail if this is the last instruction.
13541b62cc08cSmrg  $ac_cs_success || as_fn_exit 1
13542b62cc08cSmrgfi
13543b62cc08cSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13544c048b52eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13545c048b52eSmrgprintf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
135469fe995a9Smrgfi
135479fe995a9Smrg
13548c048b52eSmrg
13549