configure revision c9e4df9b
1264fa531Smrg#! /bin/sh
2264fa531Smrg# Guess values for system-dependent variables and create Makefiles.
3c9e4df9bSmrg# Generated by GNU Autoconf 2.71 for x11perf 1.6.2.
4264fa531Smrg#
5c9e4df9bSmrg# Report bugs to <https://gitlab.freedesktop.org/xorg/test/x11perf/-/issues>.
6264fa531Smrg#
7736a7e2cSmrg#
8c9e4df9bSmrg# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9c9e4df9bSmrg# Inc.
10736a7e2cSmrg#
11736a7e2cSmrg#
12264fa531Smrg# This configure script is free software; the Free Software Foundation
13264fa531Smrg# gives unlimited permission to copy, distribute and modify it.
14736a7e2cSmrg## -------------------- ##
15736a7e2cSmrg## M4sh Initialization. ##
16736a7e2cSmrg## -------------------- ##
17264fa531Smrg
18c37a63b8Smrg# Be more Bourne compatible
19c37a63b8SmrgDUALCASE=1; export DUALCASE # for MKS sh
20c9e4df9bSmrgas_nop=:
21c9e4df9bSmrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22c9e4df9bSmrgthen :
23264fa531Smrg  emulate sh
24264fa531Smrg  NULLCMD=:
25c37a63b8Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26264fa531Smrg  # is contrary to our usage.  Disable this feature.
27264fa531Smrg  alias -g '${1+"$@"}'='"$@"'
28c37a63b8Smrg  setopt NO_GLOB_SUBST
29c9e4df9bSmrgelse $as_nop
30736a7e2cSmrg  case `(set -o) 2>/dev/null` in #(
31736a7e2cSmrg  *posix*) :
32736a7e2cSmrg    set -o posix ;; #(
33736a7e2cSmrg  *) :
34736a7e2cSmrg     ;;
35c37a63b8Smrgesac
36c37a63b8Smrgfi
37c37a63b8Smrg
38c37a63b8Smrg
39c9e4df9bSmrg
40c9e4df9bSmrg# Reset variables that may have inherited troublesome values from
41c9e4df9bSmrg# the environment.
42c9e4df9bSmrg
43c9e4df9bSmrg# IFS needs to be set, to space, tab, and newline, in precisely that order.
44c9e4df9bSmrg# (If _AS_PATH_WALK were called with IFS unset, it would have the
45c9e4df9bSmrg# side effect of setting IFS to empty, thus disabling word splitting.)
46c9e4df9bSmrg# Quoting is to prevent editors from complaining about space-tab.
47c37a63b8Smrgas_nl='
48c37a63b8Smrg'
49c37a63b8Smrgexport as_nl
50c9e4df9bSmrgIFS=" ""	$as_nl"
51c9e4df9bSmrg
52c9e4df9bSmrgPS1='$ '
53c9e4df9bSmrgPS2='> '
54c9e4df9bSmrgPS4='+ '
55c9e4df9bSmrg
56c9e4df9bSmrg# Ensure predictable behavior from utilities with locale-dependent output.
57c9e4df9bSmrgLC_ALL=C
58c9e4df9bSmrgexport LC_ALL
59c9e4df9bSmrgLANGUAGE=C
60c9e4df9bSmrgexport LANGUAGE
61c9e4df9bSmrg
62c9e4df9bSmrg# We cannot yet rely on "unset" to work, but we need these variables
63c9e4df9bSmrg# to be unset--not just set to an empty or harmless value--now, to
64c9e4df9bSmrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65c9e4df9bSmrg# also avoids known problems related to "unset" and subshell syntax
66c9e4df9bSmrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67c9e4df9bSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68c9e4df9bSmrgdo eval test \${$as_var+y} \
69c9e4df9bSmrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70c9e4df9bSmrgdone
71c9e4df9bSmrg
72c9e4df9bSmrg# Ensure that fds 0, 1, and 2 are open.
73c9e4df9bSmrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74c9e4df9bSmrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75c9e4df9bSmrgif (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76c37a63b8Smrg
77c37a63b8Smrg# The user is always right.
78c9e4df9bSmrgif ${PATH_SEPARATOR+false} :; then
79c37a63b8Smrg  PATH_SEPARATOR=:
80c37a63b8Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81c37a63b8Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82c37a63b8Smrg      PATH_SEPARATOR=';'
83c37a63b8Smrg  }
84264fa531Smrgfi
85264fa531Smrg
86264fa531Smrg
87c37a63b8Smrg# Find who we are.  Look in the path if we contain no directory separator.
88736a7e2cSmrgas_myself=
89736a7e2cSmrgcase $0 in #((
90c37a63b8Smrg  *[\\/]* ) as_myself=$0 ;;
91c37a63b8Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92c37a63b8Smrgfor as_dir in $PATH
93c37a63b8Smrgdo
94c37a63b8Smrg  IFS=$as_save_IFS
95c9e4df9bSmrg  case $as_dir in #(((
96c9e4df9bSmrg    '') as_dir=./ ;;
97c9e4df9bSmrg    */) ;;
98c9e4df9bSmrg    *) as_dir=$as_dir/ ;;
99c9e4df9bSmrg  esac
100c9e4df9bSmrg    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101736a7e2cSmrg  done
102c37a63b8SmrgIFS=$as_save_IFS
103c37a63b8Smrg
104c37a63b8Smrg     ;;
105c37a63b8Smrgesac
106c37a63b8Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
107c37a63b8Smrg# in which case we are not to be found in the path.
108c37a63b8Smrgif test "x$as_myself" = x; then
109c37a63b8Smrg  as_myself=$0
110c37a63b8Smrgfi
111c37a63b8Smrgif test ! -f "$as_myself"; then
112c9e4df9bSmrg  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113736a7e2cSmrg  exit 1
114c37a63b8Smrgfi
115c37a63b8Smrg
116736a7e2cSmrg
117533545b5Smrg# Use a proper internal environment variable to ensure we don't fall
118533545b5Smrg  # into an infinite loop, continuously re-executing ourselves.
119533545b5Smrg  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120533545b5Smrg    _as_can_reexec=no; export _as_can_reexec;
121533545b5Smrg    # We cannot yet assume a decent shell, so we have to provide a
122533545b5Smrg# neutralization value for shells without unset; and this also
123533545b5Smrg# works around shells that cannot unset nonexistent variables.
124533545b5Smrg# Preserve -v and -x to the replacement shell.
125533545b5SmrgBASH_ENV=/dev/null
126533545b5SmrgENV=/dev/null
127533545b5Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128533545b5Smrgcase $- in # ((((
129533545b5Smrg  *v*x* | *x*v* ) as_opts=-vx ;;
130533545b5Smrg  *v* ) as_opts=-v ;;
131533545b5Smrg  *x* ) as_opts=-x ;;
132533545b5Smrg  * ) as_opts= ;;
133533545b5Smrgesac
134533545b5Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135533545b5Smrg# Admittedly, this is quite paranoid, since all the known shells bail
136533545b5Smrg# out after a failed `exec'.
137c9e4df9bSmrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138c9e4df9bSmrgexit 255
139533545b5Smrg  fi
140533545b5Smrg  # We don't want this to propagate to other subprocesses.
141533545b5Smrg          { _as_can_reexec=; unset _as_can_reexec;}
142736a7e2cSmrgif test "x$CONFIG_SHELL" = x; then
143c9e4df9bSmrg  as_bourne_compatible="as_nop=:
144c9e4df9bSmrgif test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145c9e4df9bSmrgthen :
146736a7e2cSmrg  emulate sh
147736a7e2cSmrg  NULLCMD=:
148736a7e2cSmrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149736a7e2cSmrg  # is contrary to our usage.  Disable this feature.
150736a7e2cSmrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151736a7e2cSmrg  setopt NO_GLOB_SUBST
152c9e4df9bSmrgelse \$as_nop
153736a7e2cSmrg  case \`(set -o) 2>/dev/null\` in #(
154736a7e2cSmrg  *posix*) :
155736a7e2cSmrg    set -o posix ;; #(
156736a7e2cSmrg  *) :
157736a7e2cSmrg     ;;
158736a7e2cSmrgesac
159736a7e2cSmrgfi
160736a7e2cSmrg"
161736a7e2cSmrg  as_required="as_fn_return () { (exit \$1); }
162736a7e2cSmrgas_fn_success () { as_fn_return 0; }
163736a7e2cSmrgas_fn_failure () { as_fn_return 1; }
164736a7e2cSmrgas_fn_ret_success () { return 0; }
165736a7e2cSmrgas_fn_ret_failure () { return 1; }
166736a7e2cSmrg
167736a7e2cSmrgexitcode=0
168736a7e2cSmrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
169736a7e2cSmrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170736a7e2cSmrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171736a7e2cSmrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172c9e4df9bSmrgif ( set x; as_fn_ret_success y && test x = \"\$1\" )
173c9e4df9bSmrgthen :
174736a7e2cSmrg
175c9e4df9bSmrgelse \$as_nop
176736a7e2cSmrg  exitcode=1; echo positional parameters were not saved.
177736a7e2cSmrgfi
178533545b5Smrgtest x\$exitcode = x0 || exit 1
179c9e4df9bSmrgblah=\$(echo \$(echo blah))
180c9e4df9bSmrgtest x\"\$blah\" = xblah || exit 1
181533545b5Smrgtest -x / || exit 1"
182736a7e2cSmrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183736a7e2cSmrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184736a7e2cSmrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185736a7e2cSmrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186736a7e2cSmrgtest \$(( 1 + 1 )) = 2 || exit 1"
187c9e4df9bSmrg  if (eval "$as_required") 2>/dev/null
188c9e4df9bSmrgthen :
189736a7e2cSmrg  as_have_required=yes
190c9e4df9bSmrgelse $as_nop
191736a7e2cSmrg  as_have_required=no
192736a7e2cSmrgfi
193c9e4df9bSmrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194c9e4df9bSmrgthen :
195736a7e2cSmrg
196c9e4df9bSmrgelse $as_nop
197736a7e2cSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198736a7e2cSmrgas_found=false
199736a7e2cSmrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200736a7e2cSmrgdo
201736a7e2cSmrg  IFS=$as_save_IFS
202c9e4df9bSmrg  case $as_dir in #(((
203c9e4df9bSmrg    '') as_dir=./ ;;
204c9e4df9bSmrg    */) ;;
205c9e4df9bSmrg    *) as_dir=$as_dir/ ;;
206c9e4df9bSmrg  esac
207736a7e2cSmrg  as_found=:
208736a7e2cSmrg  case $as_dir in #(
209736a7e2cSmrg	 /*)
210736a7e2cSmrg	   for as_base in sh bash ksh sh5; do
211736a7e2cSmrg	     # Try only shells that exist, to save several forks.
212c9e4df9bSmrg	     as_shell=$as_dir$as_base
213736a7e2cSmrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214c9e4df9bSmrg		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215c9e4df9bSmrgthen :
216736a7e2cSmrg  CONFIG_SHELL=$as_shell as_have_required=yes
217c9e4df9bSmrg		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218c9e4df9bSmrgthen :
219736a7e2cSmrg  break 2
220736a7e2cSmrgfi
221736a7e2cSmrgfi
222736a7e2cSmrg	   done;;
223736a7e2cSmrg       esac
224736a7e2cSmrg  as_found=false
225736a7e2cSmrgdone
226736a7e2cSmrgIFS=$as_save_IFS
227c9e4df9bSmrgif $as_found
228c9e4df9bSmrgthen :
229c9e4df9bSmrg
230c9e4df9bSmrgelse $as_nop
231c9e4df9bSmrg  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232c9e4df9bSmrg	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233c9e4df9bSmrgthen :
234c9e4df9bSmrg  CONFIG_SHELL=$SHELL as_have_required=yes
235c9e4df9bSmrgfi
236c9e4df9bSmrgfi
237736a7e2cSmrg
238736a7e2cSmrg
239c9e4df9bSmrg      if test "x$CONFIG_SHELL" != x
240c9e4df9bSmrgthen :
241533545b5Smrg  export CONFIG_SHELL
242533545b5Smrg             # We cannot yet assume a decent shell, so we have to provide a
243533545b5Smrg# neutralization value for shells without unset; and this also
244533545b5Smrg# works around shells that cannot unset nonexistent variables.
245533545b5Smrg# Preserve -v and -x to the replacement shell.
246533545b5SmrgBASH_ENV=/dev/null
247533545b5SmrgENV=/dev/null
248533545b5Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249533545b5Smrgcase $- in # ((((
250533545b5Smrg  *v*x* | *x*v* ) as_opts=-vx ;;
251533545b5Smrg  *v* ) as_opts=-v ;;
252533545b5Smrg  *x* ) as_opts=-x ;;
253533545b5Smrg  * ) as_opts= ;;
254533545b5Smrgesac
255533545b5Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256533545b5Smrg# Admittedly, this is quite paranoid, since all the known shells bail
257533545b5Smrg# out after a failed `exec'.
258c9e4df9bSmrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259533545b5Smrgexit 255
260736a7e2cSmrgfi
261736a7e2cSmrg
262c9e4df9bSmrg    if test x$as_have_required = xno
263c9e4df9bSmrgthen :
264c9e4df9bSmrg  printf "%s\n" "$0: This script requires a shell more modern than all"
265c9e4df9bSmrg  printf "%s\n" "$0: the shells that I found on your system."
266c9e4df9bSmrg  if test ${ZSH_VERSION+y} ; then
267c9e4df9bSmrg    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268c9e4df9bSmrg    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269736a7e2cSmrg  else
270c9e4df9bSmrg    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
271c9e4df9bSmrg$0: https://gitlab.freedesktop.org/xorg/test/x11perf/-/issues
272736a7e2cSmrg$0: about your system, including any error possibly output
273736a7e2cSmrg$0: before this message. Then install a modern shell, or
274736a7e2cSmrg$0: manually run the script under such a shell if you do
275736a7e2cSmrg$0: have one."
276736a7e2cSmrg  fi
277736a7e2cSmrg  exit 1
278736a7e2cSmrgfi
279736a7e2cSmrgfi
280736a7e2cSmrgfi
281736a7e2cSmrgSHELL=${CONFIG_SHELL-/bin/sh}
282736a7e2cSmrgexport SHELL
283736a7e2cSmrg# Unset more variables known to interfere with behavior of common tools.
284736a7e2cSmrgCLICOLOR_FORCE= GREP_OPTIONS=
285736a7e2cSmrgunset CLICOLOR_FORCE GREP_OPTIONS
286736a7e2cSmrg
287736a7e2cSmrg## --------------------- ##
288736a7e2cSmrg## M4sh Shell Functions. ##
289736a7e2cSmrg## --------------------- ##
290736a7e2cSmrg# as_fn_unset VAR
291736a7e2cSmrg# ---------------
292736a7e2cSmrg# Portably unset VAR.
293736a7e2cSmrgas_fn_unset ()
294736a7e2cSmrg{
295736a7e2cSmrg  { eval $1=; unset $1;}
296736a7e2cSmrg}
297736a7e2cSmrgas_unset=as_fn_unset
298736a7e2cSmrg
299c9e4df9bSmrg
300736a7e2cSmrg# as_fn_set_status STATUS
301736a7e2cSmrg# -----------------------
302736a7e2cSmrg# Set $? to STATUS, without forking.
303736a7e2cSmrgas_fn_set_status ()
304736a7e2cSmrg{
305736a7e2cSmrg  return $1
306736a7e2cSmrg} # as_fn_set_status
307736a7e2cSmrg
308736a7e2cSmrg# as_fn_exit STATUS
309736a7e2cSmrg# -----------------
310736a7e2cSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
311736a7e2cSmrgas_fn_exit ()
312736a7e2cSmrg{
313736a7e2cSmrg  set +e
314736a7e2cSmrg  as_fn_set_status $1
315736a7e2cSmrg  exit $1
316736a7e2cSmrg} # as_fn_exit
317c9e4df9bSmrg# as_fn_nop
318c9e4df9bSmrg# ---------
319c9e4df9bSmrg# Do nothing but, unlike ":", preserve the value of $?.
320c9e4df9bSmrgas_fn_nop ()
321c9e4df9bSmrg{
322c9e4df9bSmrg  return $?
323c9e4df9bSmrg}
324c9e4df9bSmrgas_nop=as_fn_nop
325736a7e2cSmrg
326736a7e2cSmrg# as_fn_mkdir_p
327736a7e2cSmrg# -------------
328736a7e2cSmrg# Create "$as_dir" as a directory, including parents if necessary.
329736a7e2cSmrgas_fn_mkdir_p ()
330736a7e2cSmrg{
331736a7e2cSmrg
332736a7e2cSmrg  case $as_dir in #(
333736a7e2cSmrg  -*) as_dir=./$as_dir;;
334736a7e2cSmrg  esac
335736a7e2cSmrg  test -d "$as_dir" || eval $as_mkdir_p || {
336736a7e2cSmrg    as_dirs=
337736a7e2cSmrg    while :; do
338736a7e2cSmrg      case $as_dir in #(
339c9e4df9bSmrg      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340736a7e2cSmrg      *) as_qdir=$as_dir;;
341736a7e2cSmrg      esac
342736a7e2cSmrg      as_dirs="'$as_qdir' $as_dirs"
343736a7e2cSmrg      as_dir=`$as_dirname -- "$as_dir" ||
344736a7e2cSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345736a7e2cSmrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
346736a7e2cSmrg	 X"$as_dir" : 'X\(//\)$' \| \
347736a7e2cSmrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348c9e4df9bSmrgprintf "%s\n" X"$as_dir" |
349736a7e2cSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350736a7e2cSmrg	    s//\1/
351736a7e2cSmrg	    q
352736a7e2cSmrg	  }
353736a7e2cSmrg	  /^X\(\/\/\)[^/].*/{
354736a7e2cSmrg	    s//\1/
355736a7e2cSmrg	    q
356736a7e2cSmrg	  }
357736a7e2cSmrg	  /^X\(\/\/\)$/{
358736a7e2cSmrg	    s//\1/
359736a7e2cSmrg	    q
360736a7e2cSmrg	  }
361736a7e2cSmrg	  /^X\(\/\).*/{
362736a7e2cSmrg	    s//\1/
363736a7e2cSmrg	    q
364736a7e2cSmrg	  }
365736a7e2cSmrg	  s/.*/./; q'`
366736a7e2cSmrg      test -d "$as_dir" && break
367736a7e2cSmrg    done
368736a7e2cSmrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
369736a7e2cSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370736a7e2cSmrg
371736a7e2cSmrg
372736a7e2cSmrg} # as_fn_mkdir_p
373533545b5Smrg
374533545b5Smrg# as_fn_executable_p FILE
375533545b5Smrg# -----------------------
376533545b5Smrg# Test if FILE is an executable regular file.
377533545b5Smrgas_fn_executable_p ()
378533545b5Smrg{
379533545b5Smrg  test -f "$1" && test -x "$1"
380533545b5Smrg} # as_fn_executable_p
381736a7e2cSmrg# as_fn_append VAR VALUE
382736a7e2cSmrg# ----------------------
383736a7e2cSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take
384736a7e2cSmrg# advantage of any shell optimizations that allow amortized linear growth over
385736a7e2cSmrg# repeated appends, instead of the typical quadratic growth present in naive
386736a7e2cSmrg# implementations.
387c9e4df9bSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388c9e4df9bSmrgthen :
389736a7e2cSmrg  eval 'as_fn_append ()
390736a7e2cSmrg  {
391736a7e2cSmrg    eval $1+=\$2
392736a7e2cSmrg  }'
393c9e4df9bSmrgelse $as_nop
394736a7e2cSmrg  as_fn_append ()
395736a7e2cSmrg  {
396736a7e2cSmrg    eval $1=\$$1\$2
397736a7e2cSmrg  }
398736a7e2cSmrgfi # as_fn_append
399736a7e2cSmrg
400736a7e2cSmrg# as_fn_arith ARG...
401736a7e2cSmrg# ------------------
402736a7e2cSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the
403736a7e2cSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
404736a7e2cSmrg# must be portable across $(()) and expr.
405c9e4df9bSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
406c9e4df9bSmrgthen :
407736a7e2cSmrg  eval 'as_fn_arith ()
408736a7e2cSmrg  {
409736a7e2cSmrg    as_val=$(( $* ))
410736a7e2cSmrg  }'
411c9e4df9bSmrgelse $as_nop
412736a7e2cSmrg  as_fn_arith ()
413736a7e2cSmrg  {
414736a7e2cSmrg    as_val=`expr "$@" || test $? -eq 1`
415736a7e2cSmrg  }
416736a7e2cSmrgfi # as_fn_arith
417736a7e2cSmrg
418c9e4df9bSmrg# as_fn_nop
419c9e4df9bSmrg# ---------
420c9e4df9bSmrg# Do nothing but, unlike ":", preserve the value of $?.
421c9e4df9bSmrgas_fn_nop ()
422c9e4df9bSmrg{
423c9e4df9bSmrg  return $?
424c9e4df9bSmrg}
425c9e4df9bSmrgas_nop=as_fn_nop
426736a7e2cSmrg
427736a7e2cSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
428736a7e2cSmrg# ----------------------------------------
429736a7e2cSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
430736a7e2cSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
431736a7e2cSmrg# script with STATUS, using 1 if that was 0.
432736a7e2cSmrgas_fn_error ()
433736a7e2cSmrg{
434736a7e2cSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
435736a7e2cSmrg  if test "$4"; then
436736a7e2cSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
437c9e4df9bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
438736a7e2cSmrg  fi
439c9e4df9bSmrg  printf "%s\n" "$as_me: error: $2" >&2
440736a7e2cSmrg  as_fn_exit $as_status
441736a7e2cSmrg} # as_fn_error
442736a7e2cSmrg
443c37a63b8Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
444c37a63b8Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
445264fa531Smrg  as_expr=expr
446264fa531Smrgelse
447264fa531Smrg  as_expr=false
448264fa531Smrgfi
449264fa531Smrg
450c37a63b8Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
451264fa531Smrg  as_basename=basename
452264fa531Smrgelse
453264fa531Smrg  as_basename=false
454264fa531Smrgfi
455264fa531Smrg
456736a7e2cSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
457736a7e2cSmrg  as_dirname=dirname
458736a7e2cSmrgelse
459736a7e2cSmrg  as_dirname=false
460736a7e2cSmrgfi
461264fa531Smrg
462c37a63b8Smrgas_me=`$as_basename -- "$0" ||
463264fa531Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
464264fa531Smrg	 X"$0" : 'X\(//\)$' \| \
465c37a63b8Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
466c9e4df9bSmrgprintf "%s\n" X/"$0" |
467c37a63b8Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
468c37a63b8Smrg	    s//\1/
469c37a63b8Smrg	    q
470c37a63b8Smrg	  }
471c37a63b8Smrg	  /^X\/\(\/\/\)$/{
472c37a63b8Smrg	    s//\1/
473c37a63b8Smrg	    q
474c37a63b8Smrg	  }
475c37a63b8Smrg	  /^X\/\(\/\).*/{
476c37a63b8Smrg	    s//\1/
477c37a63b8Smrg	    q
478c37a63b8Smrg	  }
479c37a63b8Smrg	  s/.*/./; q'`
480264fa531Smrg
481736a7e2cSmrg# Avoid depending upon Character Ranges.
482736a7e2cSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
483736a7e2cSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
484736a7e2cSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
485736a7e2cSmrgas_cr_digits='0123456789'
486736a7e2cSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits
487264fa531Smrg
488264fa531Smrg
489736a7e2cSmrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
490736a7e2cSmrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
491736a7e2cSmrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
492736a7e2cSmrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
493736a7e2cSmrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
494736a7e2cSmrg  sed -n '
495736a7e2cSmrg    p
496736a7e2cSmrg    /[$]LINENO/=
497736a7e2cSmrg  ' <$as_myself |
498736a7e2cSmrg    sed '
499736a7e2cSmrg      s/[$]LINENO.*/&-/
500736a7e2cSmrg      t lineno
501736a7e2cSmrg      b
502736a7e2cSmrg      :lineno
503736a7e2cSmrg      N
504736a7e2cSmrg      :loop
505736a7e2cSmrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
506736a7e2cSmrg      t loop
507736a7e2cSmrg      s/-\n.*//
508736a7e2cSmrg    ' >$as_me.lineno &&
509736a7e2cSmrg  chmod +x "$as_me.lineno" ||
510c9e4df9bSmrg    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511264fa531Smrg
512533545b5Smrg  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513533545b5Smrg  # already done that, so ensure we don't try to do so again and fall
514533545b5Smrg  # in an infinite loop.  This has already happened in practice.
515533545b5Smrg  _as_can_reexec=no; export _as_can_reexec
516736a7e2cSmrg  # Don't try to exec as it changes $[0], causing all sort of problems
517736a7e2cSmrg  # (the dirname of $[0] is not the place where we might find the
518736a7e2cSmrg  # original and so on.  Autoconf is especially sensitive to this).
519736a7e2cSmrg  . "./$as_me.lineno"
520736a7e2cSmrg  # Exit status is that of the last command.
521736a7e2cSmrg  exit
522c37a63b8Smrg}
523264fa531Smrg
524c9e4df9bSmrg
525c9e4df9bSmrg# Determine whether it's possible to make 'echo' print without a newline.
526c9e4df9bSmrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527c9e4df9bSmrg# for compatibility with existing Makefiles.
528736a7e2cSmrgECHO_C= ECHO_N= ECHO_T=
529736a7e2cSmrgcase `echo -n x` in #(((((
530736a7e2cSmrg-n*)
531736a7e2cSmrg  case `echo 'xy\c'` in
532736a7e2cSmrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
533736a7e2cSmrg  xy)  ECHO_C='\c';;
534736a7e2cSmrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
535736a7e2cSmrg       ECHO_T='	';;
536736a7e2cSmrg  esac;;
537736a7e2cSmrg*)
538736a7e2cSmrg  ECHO_N='-n';;
539736a7e2cSmrgesac
540264fa531Smrg
541c9e4df9bSmrg# For backward compatibility with old third-party macros, we provide
542c9e4df9bSmrg# the shell variables $as_echo and $as_echo_n.  New code should use
543c9e4df9bSmrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544c9e4df9bSmrgas_echo='printf %s\n'
545c9e4df9bSmrgas_echo_n='printf %s'
546c9e4df9bSmrg
547c9e4df9bSmrg
548736a7e2cSmrgrm -f conf$$ conf$$.exe conf$$.file
549736a7e2cSmrgif test -d conf$$.dir; then
550736a7e2cSmrg  rm -f conf$$.dir/conf$$.file
551736a7e2cSmrgelse
552736a7e2cSmrg  rm -f conf$$.dir
553736a7e2cSmrg  mkdir conf$$.dir 2>/dev/null
554c37a63b8Smrgfi
555736a7e2cSmrgif (echo >conf$$.file) 2>/dev/null; then
556736a7e2cSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
557736a7e2cSmrg    as_ln_s='ln -s'
558736a7e2cSmrg    # ... but there are two gotchas:
559736a7e2cSmrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
560736a7e2cSmrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
561533545b5Smrg    # In both cases, we have to default to `cp -pR'.
562736a7e2cSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
563533545b5Smrg      as_ln_s='cp -pR'
564736a7e2cSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
565736a7e2cSmrg    as_ln_s=ln
566736a7e2cSmrg  else
567533545b5Smrg    as_ln_s='cp -pR'
568736a7e2cSmrg  fi
569c37a63b8Smrgelse
570533545b5Smrg  as_ln_s='cp -pR'
571c37a63b8Smrgfi
572736a7e2cSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
573736a7e2cSmrgrmdir conf$$.dir 2>/dev/null
574c37a63b8Smrg
575736a7e2cSmrgif mkdir -p . 2>/dev/null; then
576736a7e2cSmrg  as_mkdir_p='mkdir -p "$as_dir"'
577736a7e2cSmrgelse
578736a7e2cSmrg  test -d ./-p && rmdir ./-p
579736a7e2cSmrg  as_mkdir_p=false
580c37a63b8Smrgfi
581c37a63b8Smrg
582533545b5Smrgas_test_x='test -x'
583533545b5Smrgas_executable_p=as_fn_executable_p
584c37a63b8Smrg
585736a7e2cSmrg# Sed expression to map a string onto a valid CPP name.
586736a7e2cSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
587c37a63b8Smrg
588736a7e2cSmrg# Sed expression to map a string onto a valid variable name.
589736a7e2cSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
590c37a63b8Smrg
591c37a63b8Smrg
592736a7e2cSmrgtest -n "$DJDIR" || exec 7<&0 </dev/null
593736a7e2cSmrgexec 6>&1
594264fa531Smrg
595264fa531Smrg# Name of the host.
596736a7e2cSmrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
597264fa531Smrg# so uname gets run too.
598264fa531Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
599264fa531Smrg
600264fa531Smrg#
601264fa531Smrg# Initializations.
602264fa531Smrg#
603264fa531Smrgac_default_prefix=/usr/local
604c37a63b8Smrgac_clean_files=
605264fa531Smrgac_config_libobj_dir=.
606c37a63b8SmrgLIBOBJS=
607264fa531Smrgcross_compiling=no
608264fa531Smrgsubdirs=
609264fa531SmrgMFLAGS=
610264fa531SmrgMAKEFLAGS=
611264fa531Smrg
612264fa531Smrg# Identity of this package.
613264fa531SmrgPACKAGE_NAME='x11perf'
614264fa531SmrgPACKAGE_TARNAME='x11perf'
615c9e4df9bSmrgPACKAGE_VERSION='1.6.2'
616c9e4df9bSmrgPACKAGE_STRING='x11perf 1.6.2'
617c9e4df9bSmrgPACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/test/x11perf/-/issues'
618736a7e2cSmrgPACKAGE_URL=''
619264fa531Smrg
620736a7e2cSmrgac_unique_file="Makefile.am"
621c37a63b8Smrg# Factoring default headers for most tests.
622c37a63b8Smrgac_includes_default="\
623c9e4df9bSmrg#include <stddef.h>
624c9e4df9bSmrg#ifdef HAVE_STDIO_H
625c9e4df9bSmrg# include <stdio.h>
626c37a63b8Smrg#endif
627c9e4df9bSmrg#ifdef HAVE_STDLIB_H
628c37a63b8Smrg# include <stdlib.h>
629c37a63b8Smrg#endif
630c37a63b8Smrg#ifdef HAVE_STRING_H
631c37a63b8Smrg# include <string.h>
632c37a63b8Smrg#endif
633c37a63b8Smrg#ifdef HAVE_INTTYPES_H
634c37a63b8Smrg# include <inttypes.h>
635c37a63b8Smrg#endif
636c37a63b8Smrg#ifdef HAVE_STDINT_H
637c37a63b8Smrg# include <stdint.h>
638c37a63b8Smrg#endif
639c9e4df9bSmrg#ifdef HAVE_STRINGS_H
640c9e4df9bSmrg# include <strings.h>
641c9e4df9bSmrg#endif
642c9e4df9bSmrg#ifdef HAVE_SYS_TYPES_H
643c9e4df9bSmrg# include <sys/types.h>
644c9e4df9bSmrg#endif
645c9e4df9bSmrg#ifdef HAVE_SYS_STAT_H
646c9e4df9bSmrg# include <sys/stat.h>
647c9e4df9bSmrg#endif
648c37a63b8Smrg#ifdef HAVE_UNISTD_H
649c37a63b8Smrg# include <unistd.h>
650c37a63b8Smrg#endif"
651c37a63b8Smrg
652c9e4df9bSmrgac_header_c_list=
653c37a63b8Smrgac_subst_vars='am__EXEEXT_FALSE
654c37a63b8Smrgam__EXEEXT_TRUE
655c37a63b8SmrgLTLIBOBJS
656c37a63b8SmrgLIBOBJS
657c37a63b8SmrgXEXT_LIBS
658c37a63b8SmrgXEXT_CFLAGS
659c37a63b8SmrgXFT_LIBS
660c37a63b8SmrgXFT_CFLAGS
661c37a63b8SmrgXRENDER_LIBS
662c37a63b8SmrgXRENDER_CFLAGS
663c37a63b8SmrgX11PERF_LIBS
664c37a63b8SmrgX11PERF_CFLAGS
665e4ee1255SmrgMKTEMP
666e4ee1255Smrgx11perfcompdir
667736a7e2cSmrgMAN_SUBSTS
668736a7e2cSmrgXORG_MAN_PAGE
669c37a63b8SmrgADMIN_MAN_DIR
670c37a63b8SmrgDRIVER_MAN_DIR
671c37a63b8SmrgMISC_MAN_DIR
672c37a63b8SmrgFILE_MAN_DIR
673c37a63b8SmrgLIB_MAN_DIR
674c37a63b8SmrgAPP_MAN_DIR
675c37a63b8SmrgADMIN_MAN_SUFFIX
676c37a63b8SmrgDRIVER_MAN_SUFFIX
677c37a63b8SmrgMISC_MAN_SUFFIX
678c37a63b8SmrgFILE_MAN_SUFFIX
679c37a63b8SmrgLIB_MAN_SUFFIX
680c37a63b8SmrgAPP_MAN_SUFFIX
681736a7e2cSmrgSED
682c37a63b8Smrghost_os
683c37a63b8Smrghost_vendor
684c37a63b8Smrghost_cpu
685c37a63b8Smrghost
686c37a63b8Smrgbuild_os
687c37a63b8Smrgbuild_vendor
688c37a63b8Smrgbuild_cpu
689c37a63b8Smrgbuild
690736a7e2cSmrgINSTALL_CMD
69165c1f7cfSmrgPKG_CONFIG_LIBDIR
69265c1f7cfSmrgPKG_CONFIG_PATH
693736a7e2cSmrgPKG_CONFIG
694c37a63b8SmrgCHANGELOG_CMD
695e4ee1255SmrgSTRICT_CFLAGS
696c37a63b8SmrgCWARNFLAGS
697533545b5SmrgBASE_CFLAGS
698c37a63b8Smrgam__fastdepCC_FALSE
699c37a63b8Smrgam__fastdepCC_TRUE
700c37a63b8SmrgCCDEPMODE
701533545b5Smrgam__nodep
702c37a63b8SmrgAMDEPBACKSLASH
703c37a63b8SmrgAMDEP_FALSE
704c37a63b8SmrgAMDEP_TRUE
705c37a63b8Smrgam__include
706c37a63b8SmrgDEPDIR
707c37a63b8SmrgOBJEXT
708c37a63b8SmrgEXEEXT
709c37a63b8Smrgac_ct_CC
710c37a63b8SmrgCPPFLAGS
711c37a63b8SmrgLDFLAGS
712c37a63b8SmrgCFLAGS
713c37a63b8SmrgCC
714533545b5SmrgAM_BACKSLASH
715533545b5SmrgAM_DEFAULT_VERBOSITY
716533545b5SmrgAM_DEFAULT_V
717533545b5SmrgAM_V
718c9e4df9bSmrgCSCOPE
719c9e4df9bSmrgETAGS
720c9e4df9bSmrgCTAGS
721c37a63b8Smrgam__untar
722c37a63b8Smrgam__tar
723c37a63b8SmrgAMTAR
724c37a63b8Smrgam__leading_dot
725c37a63b8SmrgSET_MAKE
726c37a63b8SmrgAWK
727c37a63b8Smrgmkdir_p
728c37a63b8SmrgMKDIR_P
729c37a63b8SmrgINSTALL_STRIP_PROGRAM
730c37a63b8SmrgSTRIP
731c37a63b8Smrginstall_sh
732c37a63b8SmrgMAKEINFO
733c37a63b8SmrgAUTOHEADER
734c37a63b8SmrgAUTOMAKE
735c37a63b8SmrgAUTOCONF
736c37a63b8SmrgACLOCAL
737c37a63b8SmrgVERSION
738c37a63b8SmrgPACKAGE
739c37a63b8SmrgCYGPATH_W
740c37a63b8Smrgam__isrc
741c37a63b8SmrgINSTALL_DATA
742c37a63b8SmrgINSTALL_SCRIPT
743c37a63b8SmrgINSTALL_PROGRAM
744c37a63b8Smrgtarget_alias
745c37a63b8Smrghost_alias
746c37a63b8Smrgbuild_alias
747c37a63b8SmrgLIBS
748c37a63b8SmrgECHO_T
749c37a63b8SmrgECHO_N
750c37a63b8SmrgECHO_C
751c37a63b8SmrgDEFS
752c37a63b8Smrgmandir
753c37a63b8Smrglocaledir
754c37a63b8Smrglibdir
755c37a63b8Smrgpsdir
756c37a63b8Smrgpdfdir
757c37a63b8Smrgdvidir
758c37a63b8Smrghtmldir
759c37a63b8Smrginfodir
760c37a63b8Smrgdocdir
761c37a63b8Smrgoldincludedir
762c37a63b8Smrgincludedir
763c9e4df9bSmrgrunstatedir
764c37a63b8Smrglocalstatedir
765c37a63b8Smrgsharedstatedir
766c37a63b8Smrgsysconfdir
767c37a63b8Smrgdatadir
768c37a63b8Smrgdatarootdir
769c37a63b8Smrglibexecdir
770c37a63b8Smrgsbindir
771c37a63b8Smrgbindir
772c37a63b8Smrgprogram_transform_name
773c37a63b8Smrgprefix
774c37a63b8Smrgexec_prefix
775736a7e2cSmrgPACKAGE_URL
776c37a63b8SmrgPACKAGE_BUGREPORT
777c37a63b8SmrgPACKAGE_STRING
778c37a63b8SmrgPACKAGE_VERSION
779c37a63b8SmrgPACKAGE_TARNAME
780c37a63b8SmrgPACKAGE_NAME
781c37a63b8SmrgPATH_SEPARATOR
782c9e4df9bSmrgSHELL
783c9e4df9bSmrgam__quote'
784264fa531Smrgac_subst_files=''
785c37a63b8Smrgac_user_opts='
786c37a63b8Smrgenable_option_checking
787533545b5Smrgenable_silent_rules
788c37a63b8Smrgenable_dependency_tracking
789533545b5Smrgenable_selective_werror
790c37a63b8Smrgenable_strict_compilation
791c37a63b8Smrg'
792c37a63b8Smrg      ac_precious_vars='build_alias
793c37a63b8Smrghost_alias
794c37a63b8Smrgtarget_alias
795c37a63b8SmrgCC
796c37a63b8SmrgCFLAGS
797c37a63b8SmrgLDFLAGS
798c37a63b8SmrgLIBS
799c37a63b8SmrgCPPFLAGS
800c37a63b8SmrgPKG_CONFIG
80165c1f7cfSmrgPKG_CONFIG_PATH
80265c1f7cfSmrgPKG_CONFIG_LIBDIR
803c37a63b8SmrgX11PERF_CFLAGS
804c37a63b8SmrgX11PERF_LIBS
805c37a63b8SmrgXRENDER_CFLAGS
806c37a63b8SmrgXRENDER_LIBS
807c37a63b8SmrgXFT_CFLAGS
808c37a63b8SmrgXFT_LIBS
809c37a63b8SmrgXEXT_CFLAGS
810c37a63b8SmrgXEXT_LIBS'
811c37a63b8Smrg
812264fa531Smrg
813264fa531Smrg# Initialize some variables set by options.
814264fa531Smrgac_init_help=
815264fa531Smrgac_init_version=false
816c37a63b8Smrgac_unrecognized_opts=
817c37a63b8Smrgac_unrecognized_sep=
818264fa531Smrg# The variables have the same names as the options, with
819264fa531Smrg# dashes changed to underlines.
820264fa531Smrgcache_file=/dev/null
821264fa531Smrgexec_prefix=NONE
822264fa531Smrgno_create=
823264fa531Smrgno_recursion=
824264fa531Smrgprefix=NONE
825264fa531Smrgprogram_prefix=NONE
826264fa531Smrgprogram_suffix=NONE
827264fa531Smrgprogram_transform_name=s,x,x,
828264fa531Smrgsilent=
829264fa531Smrgsite=
830264fa531Smrgsrcdir=
831264fa531Smrgverbose=
832264fa531Smrgx_includes=NONE
833264fa531Smrgx_libraries=NONE
834264fa531Smrg
835264fa531Smrg# Installation directory options.
836264fa531Smrg# These are left unexpanded so users can "make install exec_prefix=/foo"
837264fa531Smrg# and all the variables that are supposed to be based on exec_prefix
838264fa531Smrg# by default will actually change.
839264fa531Smrg# Use braces instead of parens because sh, perl, etc. also accept them.
840c37a63b8Smrg# (The list follows the same order as the GNU Coding Standards.)
841264fa531Smrgbindir='${exec_prefix}/bin'
842264fa531Smrgsbindir='${exec_prefix}/sbin'
843264fa531Smrglibexecdir='${exec_prefix}/libexec'
844c37a63b8Smrgdatarootdir='${prefix}/share'
845c37a63b8Smrgdatadir='${datarootdir}'
846264fa531Smrgsysconfdir='${prefix}/etc'
847264fa531Smrgsharedstatedir='${prefix}/com'
848264fa531Smrglocalstatedir='${prefix}/var'
849c9e4df9bSmrgrunstatedir='${localstatedir}/run'
850264fa531Smrgincludedir='${prefix}/include'
851264fa531Smrgoldincludedir='/usr/include'
852c37a63b8Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
853c37a63b8Smrginfodir='${datarootdir}/info'
854c37a63b8Smrghtmldir='${docdir}'
855c37a63b8Smrgdvidir='${docdir}'
856c37a63b8Smrgpdfdir='${docdir}'
857c37a63b8Smrgpsdir='${docdir}'
858c37a63b8Smrglibdir='${exec_prefix}/lib'
859c37a63b8Smrglocaledir='${datarootdir}/locale'
860c37a63b8Smrgmandir='${datarootdir}/man'
861264fa531Smrg
862264fa531Smrgac_prev=
863c37a63b8Smrgac_dashdash=
864264fa531Smrgfor ac_option
865264fa531Smrgdo
866264fa531Smrg  # If the previous option needs an argument, assign it.
867264fa531Smrg  if test -n "$ac_prev"; then
868c37a63b8Smrg    eval $ac_prev=\$ac_option
869264fa531Smrg    ac_prev=
870264fa531Smrg    continue
871264fa531Smrg  fi
872264fa531Smrg
873c37a63b8Smrg  case $ac_option in
874736a7e2cSmrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
875736a7e2cSmrg  *=)   ac_optarg= ;;
876736a7e2cSmrg  *)    ac_optarg=yes ;;
877c37a63b8Smrg  esac
878264fa531Smrg
879c37a63b8Smrg  case $ac_dashdash$ac_option in
880c37a63b8Smrg  --)
881c37a63b8Smrg    ac_dashdash=yes ;;
882264fa531Smrg
883264fa531Smrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
884264fa531Smrg    ac_prev=bindir ;;
885264fa531Smrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
886264fa531Smrg    bindir=$ac_optarg ;;
887264fa531Smrg
888264fa531Smrg  -build | --build | --buil | --bui | --bu)
889264fa531Smrg    ac_prev=build_alias ;;
890264fa531Smrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
891264fa531Smrg    build_alias=$ac_optarg ;;
892264fa531Smrg
893264fa531Smrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
894264fa531Smrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
895264fa531Smrg    ac_prev=cache_file ;;
896264fa531Smrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
897264fa531Smrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
898264fa531Smrg    cache_file=$ac_optarg ;;
899264fa531Smrg
900264fa531Smrg  --config-cache | -C)
901264fa531Smrg    cache_file=config.cache ;;
902264fa531Smrg
903c37a63b8Smrg  -datadir | --datadir | --datadi | --datad)
904264fa531Smrg    ac_prev=datadir ;;
905c37a63b8Smrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
906264fa531Smrg    datadir=$ac_optarg ;;
907264fa531Smrg
908c37a63b8Smrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
909c37a63b8Smrg  | --dataroo | --dataro | --datar)
910c37a63b8Smrg    ac_prev=datarootdir ;;
911c37a63b8Smrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
912c37a63b8Smrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
913c37a63b8Smrg    datarootdir=$ac_optarg ;;
914c37a63b8Smrg
915264fa531Smrg  -disable-* | --disable-*)
916c37a63b8Smrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
917264fa531Smrg    # Reject names that are not valid shell variable names.
918c37a63b8Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919c9e4df9bSmrg      as_fn_error $? "invalid feature name: \`$ac_useropt'"
920c37a63b8Smrg    ac_useropt_orig=$ac_useropt
921c9e4df9bSmrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
922c37a63b8Smrg    case $ac_user_opts in
923c37a63b8Smrg      *"
924c37a63b8Smrg"enable_$ac_useropt"
925c37a63b8Smrg"*) ;;
926c37a63b8Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
927c37a63b8Smrg	 ac_unrecognized_sep=', ';;
928c37a63b8Smrg    esac
929c37a63b8Smrg    eval enable_$ac_useropt=no ;;
930c37a63b8Smrg
931c37a63b8Smrg  -docdir | --docdir | --docdi | --doc | --do)
932c37a63b8Smrg    ac_prev=docdir ;;
933c37a63b8Smrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934c37a63b8Smrg    docdir=$ac_optarg ;;
935c37a63b8Smrg
936c37a63b8Smrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
937c37a63b8Smrg    ac_prev=dvidir ;;
938c37a63b8Smrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939c37a63b8Smrg    dvidir=$ac_optarg ;;
940264fa531Smrg
941264fa531Smrg  -enable-* | --enable-*)
942c37a63b8Smrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
943264fa531Smrg    # Reject names that are not valid shell variable names.
944c37a63b8Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945c9e4df9bSmrg      as_fn_error $? "invalid feature name: \`$ac_useropt'"
946c37a63b8Smrg    ac_useropt_orig=$ac_useropt
947c9e4df9bSmrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
948c37a63b8Smrg    case $ac_user_opts in
949c37a63b8Smrg      *"
950c37a63b8Smrg"enable_$ac_useropt"
951c37a63b8Smrg"*) ;;
952c37a63b8Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
953c37a63b8Smrg	 ac_unrecognized_sep=', ';;
954264fa531Smrg    esac
955c37a63b8Smrg    eval enable_$ac_useropt=\$ac_optarg ;;
956264fa531Smrg
957264fa531Smrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
958264fa531Smrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
959264fa531Smrg  | --exec | --exe | --ex)
960264fa531Smrg    ac_prev=exec_prefix ;;
961264fa531Smrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
962264fa531Smrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
963264fa531Smrg  | --exec=* | --exe=* | --ex=*)
964264fa531Smrg    exec_prefix=$ac_optarg ;;
965264fa531Smrg
966264fa531Smrg  -gas | --gas | --ga | --g)
967264fa531Smrg    # Obsolete; use --with-gas.
968264fa531Smrg    with_gas=yes ;;
969264fa531Smrg
970264fa531Smrg  -help | --help | --hel | --he | -h)
971264fa531Smrg    ac_init_help=long ;;
972264fa531Smrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
973264fa531Smrg    ac_init_help=recursive ;;
974264fa531Smrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
975264fa531Smrg    ac_init_help=short ;;
976264fa531Smrg
977264fa531Smrg  -host | --host | --hos | --ho)
978264fa531Smrg    ac_prev=host_alias ;;
979264fa531Smrg  -host=* | --host=* | --hos=* | --ho=*)
980264fa531Smrg    host_alias=$ac_optarg ;;
981264fa531Smrg
982c37a63b8Smrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
983c37a63b8Smrg    ac_prev=htmldir ;;
984c37a63b8Smrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
985c37a63b8Smrg  | --ht=*)
986c37a63b8Smrg    htmldir=$ac_optarg ;;
987c37a63b8Smrg
988264fa531Smrg  -includedir | --includedir | --includedi | --included | --include \
989264fa531Smrg  | --includ | --inclu | --incl | --inc)
990264fa531Smrg    ac_prev=includedir ;;
991264fa531Smrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
992264fa531Smrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
993264fa531Smrg    includedir=$ac_optarg ;;
994264fa531Smrg
995264fa531Smrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
996264fa531Smrg    ac_prev=infodir ;;
997264fa531Smrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
998264fa531Smrg    infodir=$ac_optarg ;;
999264fa531Smrg
1000264fa531Smrg  -libdir | --libdir | --libdi | --libd)
1001264fa531Smrg    ac_prev=libdir ;;
1002264fa531Smrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1003264fa531Smrg    libdir=$ac_optarg ;;
1004264fa531Smrg
1005264fa531Smrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1006264fa531Smrg  | --libexe | --libex | --libe)
1007264fa531Smrg    ac_prev=libexecdir ;;
1008264fa531Smrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1009264fa531Smrg  | --libexe=* | --libex=* | --libe=*)
1010264fa531Smrg    libexecdir=$ac_optarg ;;
1011264fa531Smrg
1012c37a63b8Smrg  -localedir | --localedir | --localedi | --localed | --locale)
1013c37a63b8Smrg    ac_prev=localedir ;;
1014c37a63b8Smrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1015c37a63b8Smrg    localedir=$ac_optarg ;;
1016c37a63b8Smrg
1017264fa531Smrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
1018c37a63b8Smrg  | --localstate | --localstat | --localsta | --localst | --locals)
1019264fa531Smrg    ac_prev=localstatedir ;;
1020264fa531Smrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1021c37a63b8Smrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1022264fa531Smrg    localstatedir=$ac_optarg ;;
1023264fa531Smrg
1024264fa531Smrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1025264fa531Smrg    ac_prev=mandir ;;
1026264fa531Smrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1027264fa531Smrg    mandir=$ac_optarg ;;
1028264fa531Smrg
1029264fa531Smrg  -nfp | --nfp | --nf)
1030264fa531Smrg    # Obsolete; use --without-fp.
1031264fa531Smrg    with_fp=no ;;
1032264fa531Smrg
1033264fa531Smrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1034264fa531Smrg  | --no-cr | --no-c | -n)
1035264fa531Smrg    no_create=yes ;;
1036264fa531Smrg
1037264fa531Smrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1038264fa531Smrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1039264fa531Smrg    no_recursion=yes ;;
1040264fa531Smrg
1041264fa531Smrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1042264fa531Smrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1043264fa531Smrg  | --oldin | --oldi | --old | --ol | --o)
1044264fa531Smrg    ac_prev=oldincludedir ;;
1045264fa531Smrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1046264fa531Smrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1047264fa531Smrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1048264fa531Smrg    oldincludedir=$ac_optarg ;;
1049264fa531Smrg
1050264fa531Smrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1051264fa531Smrg    ac_prev=prefix ;;
1052264fa531Smrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1053264fa531Smrg    prefix=$ac_optarg ;;
1054264fa531Smrg
1055264fa531Smrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1056264fa531Smrg  | --program-pre | --program-pr | --program-p)
1057264fa531Smrg    ac_prev=program_prefix ;;
1058264fa531Smrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1059264fa531Smrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1060264fa531Smrg    program_prefix=$ac_optarg ;;
1061264fa531Smrg
1062264fa531Smrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1063264fa531Smrg  | --program-suf | --program-su | --program-s)
1064264fa531Smrg    ac_prev=program_suffix ;;
1065264fa531Smrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1066264fa531Smrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1067264fa531Smrg    program_suffix=$ac_optarg ;;
1068264fa531Smrg
1069264fa531Smrg  -program-transform-name | --program-transform-name \
1070264fa531Smrg  | --program-transform-nam | --program-transform-na \
1071264fa531Smrg  | --program-transform-n | --program-transform- \
1072264fa531Smrg  | --program-transform | --program-transfor \
1073264fa531Smrg  | --program-transfo | --program-transf \
1074264fa531Smrg  | --program-trans | --program-tran \
1075264fa531Smrg  | --progr-tra | --program-tr | --program-t)
1076264fa531Smrg    ac_prev=program_transform_name ;;
1077264fa531Smrg  -program-transform-name=* | --program-transform-name=* \
1078264fa531Smrg  | --program-transform-nam=* | --program-transform-na=* \
1079264fa531Smrg  | --program-transform-n=* | --program-transform-=* \
1080264fa531Smrg  | --program-transform=* | --program-transfor=* \
1081264fa531Smrg  | --program-transfo=* | --program-transf=* \
1082264fa531Smrg  | --program-trans=* | --program-tran=* \
1083264fa531Smrg  | --progr-tra=* | --program-tr=* | --program-t=*)
1084264fa531Smrg    program_transform_name=$ac_optarg ;;
1085264fa531Smrg
1086c37a63b8Smrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1087c37a63b8Smrg    ac_prev=pdfdir ;;
1088c37a63b8Smrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1089c37a63b8Smrg    pdfdir=$ac_optarg ;;
1090c37a63b8Smrg
1091c37a63b8Smrg  -psdir | --psdir | --psdi | --psd | --ps)
1092c37a63b8Smrg    ac_prev=psdir ;;
1093c37a63b8Smrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1094c37a63b8Smrg    psdir=$ac_optarg ;;
1095c37a63b8Smrg
1096264fa531Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1097264fa531Smrg  | -silent | --silent | --silen | --sile | --sil)
1098264fa531Smrg    silent=yes ;;
1099264fa531Smrg
1100c9e4df9bSmrg  -runstatedir | --runstatedir | --runstatedi | --runstated \
1101c9e4df9bSmrg  | --runstate | --runstat | --runsta | --runst | --runs \
1102c9e4df9bSmrg  | --run | --ru | --r)
1103c9e4df9bSmrg    ac_prev=runstatedir ;;
1104c9e4df9bSmrg  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1105c9e4df9bSmrg  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1106c9e4df9bSmrg  | --run=* | --ru=* | --r=*)
1107c9e4df9bSmrg    runstatedir=$ac_optarg ;;
1108c9e4df9bSmrg
1109264fa531Smrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1110264fa531Smrg    ac_prev=sbindir ;;
1111264fa531Smrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1112264fa531Smrg  | --sbi=* | --sb=*)
1113264fa531Smrg    sbindir=$ac_optarg ;;
1114264fa531Smrg
1115264fa531Smrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1116264fa531Smrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1117264fa531Smrg  | --sharedst | --shareds | --shared | --share | --shar \
1118264fa531Smrg  | --sha | --sh)
1119264fa531Smrg    ac_prev=sharedstatedir ;;
1120264fa531Smrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1121264fa531Smrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1122264fa531Smrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1123264fa531Smrg  | --sha=* | --sh=*)
1124264fa531Smrg    sharedstatedir=$ac_optarg ;;
1125264fa531Smrg
1126264fa531Smrg  -site | --site | --sit)
1127264fa531Smrg    ac_prev=site ;;
1128264fa531Smrg  -site=* | --site=* | --sit=*)
1129264fa531Smrg    site=$ac_optarg ;;
1130264fa531Smrg
1131264fa531Smrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1132264fa531Smrg    ac_prev=srcdir ;;
1133264fa531Smrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1134264fa531Smrg    srcdir=$ac_optarg ;;
1135264fa531Smrg
1136264fa531Smrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1137264fa531Smrg  | --syscon | --sysco | --sysc | --sys | --sy)
1138264fa531Smrg    ac_prev=sysconfdir ;;
1139264fa531Smrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1140264fa531Smrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1141264fa531Smrg    sysconfdir=$ac_optarg ;;
1142264fa531Smrg
1143264fa531Smrg  -target | --target | --targe | --targ | --tar | --ta | --t)
1144264fa531Smrg    ac_prev=target_alias ;;
1145264fa531Smrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1146264fa531Smrg    target_alias=$ac_optarg ;;
1147264fa531Smrg
1148264fa531Smrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1149264fa531Smrg    verbose=yes ;;
1150264fa531Smrg
1151264fa531Smrg  -version | --version | --versio | --versi | --vers | -V)
1152264fa531Smrg    ac_init_version=: ;;
1153264fa531Smrg
1154264fa531Smrg  -with-* | --with-*)
1155c37a63b8Smrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1156264fa531Smrg    # Reject names that are not valid shell variable names.
1157c37a63b8Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158c9e4df9bSmrg      as_fn_error $? "invalid package name: \`$ac_useropt'"
1159c37a63b8Smrg    ac_useropt_orig=$ac_useropt
1160c9e4df9bSmrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1161c37a63b8Smrg    case $ac_user_opts in
1162c37a63b8Smrg      *"
1163c37a63b8Smrg"with_$ac_useropt"
1164c37a63b8Smrg"*) ;;
1165c37a63b8Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1166c37a63b8Smrg	 ac_unrecognized_sep=', ';;
1167264fa531Smrg    esac
1168c37a63b8Smrg    eval with_$ac_useropt=\$ac_optarg ;;
1169264fa531Smrg
1170264fa531Smrg  -without-* | --without-*)
1171c37a63b8Smrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1172264fa531Smrg    # Reject names that are not valid shell variable names.
1173c37a63b8Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174c9e4df9bSmrg      as_fn_error $? "invalid package name: \`$ac_useropt'"
1175c37a63b8Smrg    ac_useropt_orig=$ac_useropt
1176c9e4df9bSmrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1177c37a63b8Smrg    case $ac_user_opts in
1178c37a63b8Smrg      *"
1179c37a63b8Smrg"with_$ac_useropt"
1180c37a63b8Smrg"*) ;;
1181c37a63b8Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1182c37a63b8Smrg	 ac_unrecognized_sep=', ';;
1183c37a63b8Smrg    esac
1184c37a63b8Smrg    eval with_$ac_useropt=no ;;
1185264fa531Smrg
1186264fa531Smrg  --x)
1187264fa531Smrg    # Obsolete; use --with-x.
1188264fa531Smrg    with_x=yes ;;
1189264fa531Smrg
1190264fa531Smrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1191264fa531Smrg  | --x-incl | --x-inc | --x-in | --x-i)
1192264fa531Smrg    ac_prev=x_includes ;;
1193264fa531Smrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1194264fa531Smrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1195264fa531Smrg    x_includes=$ac_optarg ;;
1196264fa531Smrg
1197264fa531Smrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1198264fa531Smrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1199264fa531Smrg    ac_prev=x_libraries ;;
1200264fa531Smrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1201264fa531Smrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1202264fa531Smrg    x_libraries=$ac_optarg ;;
1203264fa531Smrg
1204736a7e2cSmrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1205736a7e2cSmrgTry \`$0 --help' for more information"
1206264fa531Smrg    ;;
1207264fa531Smrg
1208264fa531Smrg  *=*)
1209264fa531Smrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1210264fa531Smrg    # Reject names that are not valid shell variable names.
1211736a7e2cSmrg    case $ac_envvar in #(
1212736a7e2cSmrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
1213736a7e2cSmrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1214736a7e2cSmrg    esac
1215c37a63b8Smrg    eval $ac_envvar=\$ac_optarg
1216264fa531Smrg    export $ac_envvar ;;
1217264fa531Smrg
1218264fa531Smrg  *)
1219264fa531Smrg    # FIXME: should be removed in autoconf 3.0.
1220c9e4df9bSmrg    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1221264fa531Smrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222c9e4df9bSmrg      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1223736a7e2cSmrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1224264fa531Smrg    ;;
1225264fa531Smrg
1226264fa531Smrg  esac
1227264fa531Smrgdone
1228264fa531Smrg
1229264fa531Smrgif test -n "$ac_prev"; then
1230264fa531Smrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1231736a7e2cSmrg  as_fn_error $? "missing argument to $ac_option"
1232264fa531Smrgfi
1233264fa531Smrg
1234c37a63b8Smrgif test -n "$ac_unrecognized_opts"; then
1235c37a63b8Smrg  case $enable_option_checking in
1236c37a63b8Smrg    no) ;;
1237736a7e2cSmrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1238c9e4df9bSmrg    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1239264fa531Smrg  esac
1240c37a63b8Smrgfi
1241264fa531Smrg
1242c37a63b8Smrg# Check all directory arguments for consistency.
1243c37a63b8Smrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1244c37a63b8Smrg		datadir sysconfdir sharedstatedir localstatedir includedir \
1245c37a63b8Smrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1246c9e4df9bSmrg		libdir localedir mandir runstatedir
1247264fa531Smrgdo
1248c37a63b8Smrg  eval ac_val=\$$ac_var
1249c37a63b8Smrg  # Remove trailing slashes.
1250264fa531Smrg  case $ac_val in
1251c37a63b8Smrg    */ )
1252c37a63b8Smrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1253c37a63b8Smrg      eval $ac_var=\$ac_val;;
1254264fa531Smrg  esac
1255c37a63b8Smrg  # Be sure to have absolute directory names.
1256c37a63b8Smrg  case $ac_val in
1257c37a63b8Smrg    [\\/$]* | ?:[\\/]* )  continue;;
1258c37a63b8Smrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1259c37a63b8Smrg  esac
1260736a7e2cSmrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1261264fa531Smrgdone
1262264fa531Smrg
1263264fa531Smrg# There might be people who depend on the old broken behavior: `$host'
1264264fa531Smrg# used to hold the argument of --host etc.
1265264fa531Smrg# FIXME: To remove some day.
1266264fa531Smrgbuild=$build_alias
1267264fa531Smrghost=$host_alias
1268264fa531Smrgtarget=$target_alias
1269264fa531Smrg
1270264fa531Smrg# FIXME: To remove some day.
1271264fa531Smrgif test "x$host_alias" != x; then
1272264fa531Smrg  if test "x$build_alias" = x; then
1273264fa531Smrg    cross_compiling=maybe
1274264fa531Smrg  elif test "x$build_alias" != "x$host_alias"; then
1275264fa531Smrg    cross_compiling=yes
1276264fa531Smrg  fi
1277264fa531Smrgfi
1278264fa531Smrg
1279264fa531Smrgac_tool_prefix=
1280264fa531Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
1281264fa531Smrg
1282264fa531Smrgtest "$silent" = yes && exec 6>/dev/null
1283264fa531Smrg
1284264fa531Smrg
1285c37a63b8Smrgac_pwd=`pwd` && test -n "$ac_pwd" &&
1286c37a63b8Smrgac_ls_di=`ls -di .` &&
1287c37a63b8Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1288736a7e2cSmrg  as_fn_error $? "working directory cannot be determined"
1289c37a63b8Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1290736a7e2cSmrg  as_fn_error $? "pwd does not report name of working directory"
1291c37a63b8Smrg
1292c37a63b8Smrg
1293c37a63b8Smrg# Find the source files, if location was not specified.
1294264fa531Smrgif test -z "$srcdir"; then
1295264fa531Smrg  ac_srcdir_defaulted=yes
1296c37a63b8Smrg  # Try the directory containing this script, then the parent directory.
1297c37a63b8Smrg  ac_confdir=`$as_dirname -- "$as_myself" ||
1298c37a63b8Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1299c37a63b8Smrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
1300c37a63b8Smrg	 X"$as_myself" : 'X\(//\)$' \| \
1301c37a63b8Smrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1302c9e4df9bSmrgprintf "%s\n" X"$as_myself" |
1303c37a63b8Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1304c37a63b8Smrg	    s//\1/
1305c37a63b8Smrg	    q
1306c37a63b8Smrg	  }
1307c37a63b8Smrg	  /^X\(\/\/\)[^/].*/{
1308c37a63b8Smrg	    s//\1/
1309c37a63b8Smrg	    q
1310c37a63b8Smrg	  }
1311c37a63b8Smrg	  /^X\(\/\/\)$/{
1312c37a63b8Smrg	    s//\1/
1313c37a63b8Smrg	    q
1314c37a63b8Smrg	  }
1315c37a63b8Smrg	  /^X\(\/\).*/{
1316c37a63b8Smrg	    s//\1/
1317c37a63b8Smrg	    q
1318c37a63b8Smrg	  }
1319c37a63b8Smrg	  s/.*/./; q'`
1320264fa531Smrg  srcdir=$ac_confdir
1321c37a63b8Smrg  if test ! -r "$srcdir/$ac_unique_file"; then
1322264fa531Smrg    srcdir=..
1323264fa531Smrg  fi
1324264fa531Smrgelse
1325264fa531Smrg  ac_srcdir_defaulted=no
1326264fa531Smrgfi
1327c37a63b8Smrgif test ! -r "$srcdir/$ac_unique_file"; then
1328c37a63b8Smrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1329736a7e2cSmrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1330264fa531Smrgfi
1331c37a63b8Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1332c37a63b8Smrgac_abs_confdir=`(
1333736a7e2cSmrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1334c37a63b8Smrg	pwd)`
1335c37a63b8Smrg# When building in place, set srcdir=.
1336c37a63b8Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then
1337c37a63b8Smrg  srcdir=.
1338c37a63b8Smrgfi
1339c37a63b8Smrg# Remove unnecessary trailing slashes from srcdir.
1340c37a63b8Smrg# Double slashes in file names in object file debugging info
1341c37a63b8Smrg# mess up M-x gdb in Emacs.
1342c37a63b8Smrgcase $srcdir in
1343c37a63b8Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1344c37a63b8Smrgesac
1345c37a63b8Smrgfor ac_var in $ac_precious_vars; do
1346c37a63b8Smrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1347c37a63b8Smrg  eval ac_env_${ac_var}_value=\$${ac_var}
1348c37a63b8Smrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1349c37a63b8Smrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1350c37a63b8Smrgdone
1351264fa531Smrg
1352264fa531Smrg#
1353264fa531Smrg# Report the --help message.
1354264fa531Smrg#
1355264fa531Smrgif test "$ac_init_help" = "long"; then
1356264fa531Smrg  # Omit some internal or obsolete options to make the list less imposing.
1357264fa531Smrg  # This message is too long to be a string in the A/UX 3.1 sh.
1358264fa531Smrg  cat <<_ACEOF
1359c9e4df9bSmrg\`configure' configures x11perf 1.6.2 to adapt to many kinds of systems.
1360264fa531Smrg
1361264fa531SmrgUsage: $0 [OPTION]... [VAR=VALUE]...
1362264fa531Smrg
1363264fa531SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
1364264fa531SmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
1365264fa531Smrg
1366264fa531SmrgDefaults for the options are specified in brackets.
1367264fa531Smrg
1368264fa531SmrgConfiguration:
1369264fa531Smrg  -h, --help              display this help and exit
1370264fa531Smrg      --help=short        display options specific to this package
1371264fa531Smrg      --help=recursive    display the short help of all the included packages
1372264fa531Smrg  -V, --version           display version information and exit
1373736a7e2cSmrg  -q, --quiet, --silent   do not print \`checking ...' messages
1374264fa531Smrg      --cache-file=FILE   cache test results in FILE [disabled]
1375264fa531Smrg  -C, --config-cache      alias for \`--cache-file=config.cache'
1376264fa531Smrg  -n, --no-create         do not create output files
1377264fa531Smrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1378264fa531Smrg
1379264fa531SmrgInstallation directories:
1380264fa531Smrg  --prefix=PREFIX         install architecture-independent files in PREFIX
1381c37a63b8Smrg                          [$ac_default_prefix]
1382264fa531Smrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1383c37a63b8Smrg                          [PREFIX]
1384264fa531Smrg
1385264fa531SmrgBy default, \`make install' will install all the files in
1386264fa531Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1387264fa531Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
1388264fa531Smrgfor instance \`--prefix=\$HOME'.
1389264fa531Smrg
1390264fa531SmrgFor better control, use the options below.
1391264fa531Smrg
1392264fa531SmrgFine tuning of the installation directories:
1393c37a63b8Smrg  --bindir=DIR            user executables [EPREFIX/bin]
1394c37a63b8Smrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1395c37a63b8Smrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
1396c37a63b8Smrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1397c37a63b8Smrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1398c37a63b8Smrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1399c9e4df9bSmrg  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1400c37a63b8Smrg  --libdir=DIR            object code libraries [EPREFIX/lib]
1401c37a63b8Smrg  --includedir=DIR        C header files [PREFIX/include]
1402c37a63b8Smrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1403c37a63b8Smrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1404c37a63b8Smrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1405c37a63b8Smrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
1406c37a63b8Smrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1407c37a63b8Smrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
1408c37a63b8Smrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/x11perf]
1409c37a63b8Smrg  --htmldir=DIR           html documentation [DOCDIR]
1410c37a63b8Smrg  --dvidir=DIR            dvi documentation [DOCDIR]
1411c37a63b8Smrg  --pdfdir=DIR            pdf documentation [DOCDIR]
1412c37a63b8Smrg  --psdir=DIR             ps documentation [DOCDIR]
1413264fa531Smrg_ACEOF
1414264fa531Smrg
1415264fa531Smrg  cat <<\_ACEOF
1416264fa531Smrg
1417264fa531SmrgProgram names:
1418264fa531Smrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
1419264fa531Smrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
1420264fa531Smrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1421264fa531Smrg
1422264fa531SmrgSystem types:
1423264fa531Smrg  --build=BUILD     configure for building on BUILD [guessed]
1424264fa531Smrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1425264fa531Smrg_ACEOF
1426264fa531Smrgfi
1427264fa531Smrg
1428264fa531Smrgif test -n "$ac_init_help"; then
1429264fa531Smrg  case $ac_init_help in
1430c9e4df9bSmrg     short | recursive ) echo "Configuration of x11perf 1.6.2:";;
1431264fa531Smrg   esac
1432264fa531Smrg  cat <<\_ACEOF
1433264fa531Smrg
1434264fa531SmrgOptional Features:
1435c37a63b8Smrg  --disable-option-checking  ignore unrecognized --enable/--with options
1436264fa531Smrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1437264fa531Smrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1438533545b5Smrg  --enable-silent-rules   less verbose build output (undo: "make V=1")
1439533545b5Smrg  --disable-silent-rules  verbose build output (undo: "make V=0")
1440533545b5Smrg  --enable-dependency-tracking
1441533545b5Smrg                          do not reject slow dependency extractors
1442533545b5Smrg  --disable-dependency-tracking
1443533545b5Smrg                          speeds up one-time build
1444533545b5Smrg  --disable-selective-werror
1445533545b5Smrg                          Turn off selective compiler errors. (default:
1446533545b5Smrg                          enabled)
1447c37a63b8Smrg  --enable-strict-compilation
1448c37a63b8Smrg                          Enable all warnings from compiler and make them
1449c37a63b8Smrg                          errors (default: disabled)
1450264fa531Smrg
1451264fa531SmrgSome influential environment variables:
1452264fa531Smrg  CC          C compiler command
1453264fa531Smrg  CFLAGS      C compiler flags
1454264fa531Smrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1455264fa531Smrg              nonstandard directory <lib dir>
1456c37a63b8Smrg  LIBS        libraries to pass to the linker, e.g. -l<library>
1457736a7e2cSmrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1458c37a63b8Smrg              you have headers in a nonstandard directory <include dir>
1459264fa531Smrg  PKG_CONFIG  path to pkg-config utility
146065c1f7cfSmrg  PKG_CONFIG_PATH
146165c1f7cfSmrg              directories to add to pkg-config's search path
146265c1f7cfSmrg  PKG_CONFIG_LIBDIR
146365c1f7cfSmrg              path overriding pkg-config's built-in search path
1464264fa531Smrg  X11PERF_CFLAGS
1465264fa531Smrg              C compiler flags for X11PERF, overriding pkg-config
1466264fa531Smrg  X11PERF_LIBS
1467264fa531Smrg              linker flags for X11PERF, overriding pkg-config
1468264fa531Smrg  XRENDER_CFLAGS
1469264fa531Smrg              C compiler flags for XRENDER, overriding pkg-config
1470264fa531Smrg  XRENDER_LIBS
1471264fa531Smrg              linker flags for XRENDER, overriding pkg-config
1472264fa531Smrg  XFT_CFLAGS  C compiler flags for XFT, overriding pkg-config
1473264fa531Smrg  XFT_LIBS    linker flags for XFT, overriding pkg-config
1474264fa531Smrg  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1475264fa531Smrg  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1476264fa531Smrg
1477264fa531SmrgUse these variables to override the choices made by `configure' or to help
1478264fa531Smrgit to find libraries and programs with nonstandard names/locations.
1479264fa531Smrg
1480c9e4df9bSmrgReport bugs to <https://gitlab.freedesktop.org/xorg/test/x11perf/-/issues>.
1481264fa531Smrg_ACEOF
1482c37a63b8Smrgac_status=$?
1483264fa531Smrgfi
1484264fa531Smrg
1485264fa531Smrgif test "$ac_init_help" = "recursive"; then
1486264fa531Smrg  # If there are subdirs, report their specific --help.
1487264fa531Smrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1488c37a63b8Smrg    test -d "$ac_dir" ||
1489c37a63b8Smrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1490c37a63b8Smrg      continue
1491264fa531Smrg    ac_builddir=.
1492264fa531Smrg
1493c37a63b8Smrgcase "$ac_dir" in
1494c37a63b8Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495c37a63b8Smrg*)
1496c9e4df9bSmrg  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1497c37a63b8Smrg  # A ".." for each directory in $ac_dir_suffix.
1498c9e4df9bSmrg  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1499c37a63b8Smrg  case $ac_top_builddir_sub in
1500c37a63b8Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501c37a63b8Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1502c37a63b8Smrg  esac ;;
1503c37a63b8Smrgesac
1504c37a63b8Smrgac_abs_top_builddir=$ac_pwd
1505c37a63b8Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
1506c37a63b8Smrg# for backward compatibility:
1507c37a63b8Smrgac_top_builddir=$ac_top_build_prefix
1508264fa531Smrg
1509264fa531Smrgcase $srcdir in
1510c37a63b8Smrg  .)  # We are building in place.
1511264fa531Smrg    ac_srcdir=.
1512c37a63b8Smrg    ac_top_srcdir=$ac_top_builddir_sub
1513c37a63b8Smrg    ac_abs_top_srcdir=$ac_pwd ;;
1514c37a63b8Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
1515264fa531Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
1516c37a63b8Smrg    ac_top_srcdir=$srcdir
1517c37a63b8Smrg    ac_abs_top_srcdir=$srcdir ;;
1518c37a63b8Smrg  *) # Relative name.
1519c37a63b8Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1520c37a63b8Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
1521c37a63b8Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1522264fa531Smrgesac
1523c37a63b8Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1524c37a63b8Smrg
1525c37a63b8Smrg    cd "$ac_dir" || { ac_status=$?; continue; }
1526c9e4df9bSmrg    # Check for configure.gnu first; this name is used for a wrapper for
1527c9e4df9bSmrg    # Metaconfig's "Configure" on case-insensitive file systems.
1528c37a63b8Smrg    if test -f "$ac_srcdir/configure.gnu"; then
1529c37a63b8Smrg      echo &&
1530c37a63b8Smrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1531c37a63b8Smrg    elif test -f "$ac_srcdir/configure"; then
1532c37a63b8Smrg      echo &&
1533c37a63b8Smrg      $SHELL "$ac_srcdir/configure" --help=recursive
1534264fa531Smrg    else
1535c9e4df9bSmrg      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1536c37a63b8Smrg    fi || ac_status=$?
1537c37a63b8Smrg    cd "$ac_pwd" || { ac_status=$?; break; }
1538264fa531Smrg  done
1539264fa531Smrgfi
1540264fa531Smrg
1541c37a63b8Smrgtest -n "$ac_init_help" && exit $ac_status
1542264fa531Smrgif $ac_init_version; then
1543264fa531Smrg  cat <<\_ACEOF
1544c9e4df9bSmrgx11perf configure 1.6.2
1545c9e4df9bSmrggenerated by GNU Autoconf 2.71
1546264fa531Smrg
1547c9e4df9bSmrgCopyright (C) 2021 Free Software Foundation, Inc.
1548264fa531SmrgThis configure script is free software; the Free Software Foundation
1549264fa531Smrggives unlimited permission to copy, distribute and modify it.
1550264fa531Smrg_ACEOF
1551c37a63b8Smrg  exit
1552264fa531Smrgfi
1553264fa531Smrg
1554736a7e2cSmrg## ------------------------ ##
1555736a7e2cSmrg## Autoconf initialization. ##
1556736a7e2cSmrg## ------------------------ ##
1557264fa531Smrg
1558736a7e2cSmrg# ac_fn_c_try_compile LINENO
1559736a7e2cSmrg# --------------------------
1560736a7e2cSmrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
1561736a7e2cSmrgac_fn_c_try_compile ()
1562264fa531Smrg{
1563736a7e2cSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564c9e4df9bSmrg  rm -f conftest.$ac_objext conftest.beam
1565736a7e2cSmrg  if { { ac_try="$ac_compile"
1566736a7e2cSmrgcase "(($ac_try" in
1567736a7e2cSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568736a7e2cSmrg  *) ac_try_echo=$ac_try;;
1569736a7e2cSmrgesac
1570736a7e2cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571c9e4df9bSmrgprintf "%s\n" "$ac_try_echo"; } >&5
1572736a7e2cSmrg  (eval "$ac_compile") 2>conftest.err
1573736a7e2cSmrg  ac_status=$?
1574736a7e2cSmrg  if test -s conftest.err; then
1575736a7e2cSmrg    grep -v '^ *+' conftest.err >conftest.er1
1576736a7e2cSmrg    cat conftest.er1 >&5
1577736a7e2cSmrg    mv -f conftest.er1 conftest.err
1578736a7e2cSmrg  fi
1579c9e4df9bSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580736a7e2cSmrg  test $ac_status = 0; } && {
1581736a7e2cSmrg	 test -z "$ac_c_werror_flag" ||
1582736a7e2cSmrg	 test ! -s conftest.err
1583c9e4df9bSmrg       } && test -s conftest.$ac_objext
1584c9e4df9bSmrgthen :
1585736a7e2cSmrg  ac_retval=0
1586c9e4df9bSmrgelse $as_nop
1587c9e4df9bSmrg  printf "%s\n" "$as_me: failed program was:" >&5
1588736a7e2cSmrgsed 's/^/| /' conftest.$ac_ext >&5
1589264fa531Smrg
1590736a7e2cSmrg	ac_retval=1
1591736a7e2cSmrgfi
1592736a7e2cSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1593736a7e2cSmrg  as_fn_set_status $ac_retval
1594264fa531Smrg
1595736a7e2cSmrg} # ac_fn_c_try_compile
1596264fa531Smrg
1597c9e4df9bSmrg# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1598c9e4df9bSmrg# ------------------------------------------------------------------
1599736a7e2cSmrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1600c9e4df9bSmrg# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1601c9e4df9bSmrgac_fn_check_decl ()
1602736a7e2cSmrg{
1603736a7e2cSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604736a7e2cSmrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
1605c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1606c9e4df9bSmrgprintf %s "checking whether $as_decl_name is declared... " >&6; }
1607c9e4df9bSmrgif eval test \${$3+y}
1608c9e4df9bSmrgthen :
1609c9e4df9bSmrg  printf %s "(cached) " >&6
1610c9e4df9bSmrgelse $as_nop
1611736a7e2cSmrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1612c9e4df9bSmrg  eval ac_save_FLAGS=\$$6
1613c9e4df9bSmrg  as_fn_append $6 " $5"
1614736a7e2cSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1615736a7e2cSmrg/* end confdefs.h.  */
1616736a7e2cSmrg$4
1617736a7e2cSmrgint
1618c9e4df9bSmrgmain (void)
1619736a7e2cSmrg{
1620736a7e2cSmrg#ifndef $as_decl_name
1621736a7e2cSmrg#ifdef __cplusplus
1622736a7e2cSmrg  (void) $as_decl_use;
1623736a7e2cSmrg#else
1624736a7e2cSmrg  (void) $as_decl_name;
1625736a7e2cSmrg#endif
1626736a7e2cSmrg#endif
1627736a7e2cSmrg
1628736a7e2cSmrg  ;
1629736a7e2cSmrg  return 0;
1630736a7e2cSmrg}
1631736a7e2cSmrg_ACEOF
1632c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
1633c9e4df9bSmrgthen :
1634736a7e2cSmrg  eval "$3=yes"
1635c9e4df9bSmrgelse $as_nop
1636736a7e2cSmrg  eval "$3=no"
1637736a7e2cSmrgfi
1638c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1639c9e4df9bSmrg  eval $6=\$ac_save_FLAGS
1640736a7e2cSmrg
1641736a7e2cSmrgfi
1642c9e4df9bSmrgeval ac_res=\$$3
1643c9e4df9bSmrg	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1644c9e4df9bSmrgprintf "%s\n" "$ac_res" >&6; }
1645736a7e2cSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1646736a7e2cSmrg
1647c9e4df9bSmrg} # ac_fn_check_decl
1648736a7e2cSmrg
1649736a7e2cSmrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1650736a7e2cSmrg# -------------------------------------------------------
1651736a7e2cSmrg# Tests whether HEADER exists and can be compiled using the include files in
1652736a7e2cSmrg# INCLUDES, setting the cache variable VAR accordingly.
1653736a7e2cSmrgac_fn_c_check_header_compile ()
1654736a7e2cSmrg{
1655736a7e2cSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1657c9e4df9bSmrgprintf %s "checking for $2... " >&6; }
1658c9e4df9bSmrgif eval test \${$3+y}
1659c9e4df9bSmrgthen :
1660c9e4df9bSmrg  printf %s "(cached) " >&6
1661c9e4df9bSmrgelse $as_nop
1662736a7e2cSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1663736a7e2cSmrg/* end confdefs.h.  */
1664736a7e2cSmrg$4
1665736a7e2cSmrg#include <$2>
1666736a7e2cSmrg_ACEOF
1667c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
1668c9e4df9bSmrgthen :
1669736a7e2cSmrg  eval "$3=yes"
1670c9e4df9bSmrgelse $as_nop
1671736a7e2cSmrg  eval "$3=no"
1672736a7e2cSmrgfi
1673c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1674736a7e2cSmrgfi
1675736a7e2cSmrgeval ac_res=\$$3
1676c9e4df9bSmrg	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1677c9e4df9bSmrgprintf "%s\n" "$ac_res" >&6; }
1678736a7e2cSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679736a7e2cSmrg
1680736a7e2cSmrg} # ac_fn_c_check_header_compile
1681736a7e2cSmrg
1682736a7e2cSmrg# ac_fn_c_try_link LINENO
1683736a7e2cSmrg# -----------------------
1684736a7e2cSmrg# Try to link conftest.$ac_ext, and return whether this succeeded.
1685736a7e2cSmrgac_fn_c_try_link ()
1686736a7e2cSmrg{
1687736a7e2cSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688c9e4df9bSmrg  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1689736a7e2cSmrg  if { { ac_try="$ac_link"
1690736a7e2cSmrgcase "(($ac_try" in
1691736a7e2cSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692736a7e2cSmrg  *) ac_try_echo=$ac_try;;
1693736a7e2cSmrgesac
1694736a7e2cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695c9e4df9bSmrgprintf "%s\n" "$ac_try_echo"; } >&5
1696736a7e2cSmrg  (eval "$ac_link") 2>conftest.err
1697736a7e2cSmrg  ac_status=$?
1698736a7e2cSmrg  if test -s conftest.err; then
1699736a7e2cSmrg    grep -v '^ *+' conftest.err >conftest.er1
1700736a7e2cSmrg    cat conftest.er1 >&5
1701736a7e2cSmrg    mv -f conftest.er1 conftest.err
1702736a7e2cSmrg  fi
1703c9e4df9bSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704736a7e2cSmrg  test $ac_status = 0; } && {
1705736a7e2cSmrg	 test -z "$ac_c_werror_flag" ||
1706736a7e2cSmrg	 test ! -s conftest.err
1707736a7e2cSmrg       } && test -s conftest$ac_exeext && {
1708736a7e2cSmrg	 test "$cross_compiling" = yes ||
1709533545b5Smrg	 test -x conftest$ac_exeext
1710c9e4df9bSmrg       }
1711c9e4df9bSmrgthen :
1712736a7e2cSmrg  ac_retval=0
1713c9e4df9bSmrgelse $as_nop
1714c9e4df9bSmrg  printf "%s\n" "$as_me: failed program was:" >&5
1715736a7e2cSmrgsed 's/^/| /' conftest.$ac_ext >&5
1716736a7e2cSmrg
1717736a7e2cSmrg	ac_retval=1
1718736a7e2cSmrgfi
1719736a7e2cSmrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1720736a7e2cSmrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1721736a7e2cSmrg  # interfere with the next link command; also delete a directory that is
1722736a7e2cSmrg  # left behind by Apple's compiler.  We do this before executing the actions.
1723736a7e2cSmrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1724736a7e2cSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725736a7e2cSmrg  as_fn_set_status $ac_retval
1726736a7e2cSmrg
1727736a7e2cSmrg} # ac_fn_c_try_link
1728736a7e2cSmrg
1729736a7e2cSmrg# ac_fn_c_check_func LINENO FUNC VAR
1730736a7e2cSmrg# ----------------------------------
1731736a7e2cSmrg# Tests whether FUNC exists, setting the cache variable VAR accordingly
1732736a7e2cSmrgac_fn_c_check_func ()
1733736a7e2cSmrg{
1734736a7e2cSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1736c9e4df9bSmrgprintf %s "checking for $2... " >&6; }
1737c9e4df9bSmrgif eval test \${$3+y}
1738c9e4df9bSmrgthen :
1739c9e4df9bSmrg  printf %s "(cached) " >&6
1740c9e4df9bSmrgelse $as_nop
1741736a7e2cSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742736a7e2cSmrg/* end confdefs.h.  */
1743736a7e2cSmrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1744736a7e2cSmrg   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1745736a7e2cSmrg#define $2 innocuous_$2
1746736a7e2cSmrg
1747736a7e2cSmrg/* System header to define __stub macros and hopefully few prototypes,
1748c9e4df9bSmrg   which can conflict with char $2 (); below.  */
1749736a7e2cSmrg
1750c9e4df9bSmrg#include <limits.h>
1751736a7e2cSmrg#undef $2
1752736a7e2cSmrg
1753736a7e2cSmrg/* Override any GCC internal prototype to avoid an error.
1754736a7e2cSmrg   Use char because int might match the return type of a GCC
1755736a7e2cSmrg   builtin and then its argument prototype would still apply.  */
1756736a7e2cSmrg#ifdef __cplusplus
1757736a7e2cSmrgextern "C"
1758736a7e2cSmrg#endif
1759736a7e2cSmrgchar $2 ();
1760736a7e2cSmrg/* The GNU C library defines this for functions which it implements
1761736a7e2cSmrg    to always fail with ENOSYS.  Some functions are actually named
1762736a7e2cSmrg    something starting with __ and the normal name is an alias.  */
1763736a7e2cSmrg#if defined __stub_$2 || defined __stub___$2
1764736a7e2cSmrgchoke me
1765736a7e2cSmrg#endif
1766736a7e2cSmrg
1767736a7e2cSmrgint
1768c9e4df9bSmrgmain (void)
1769736a7e2cSmrg{
1770736a7e2cSmrgreturn $2 ();
1771736a7e2cSmrg  ;
1772736a7e2cSmrg  return 0;
1773736a7e2cSmrg}
1774736a7e2cSmrg_ACEOF
1775c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
1776c9e4df9bSmrgthen :
1777736a7e2cSmrg  eval "$3=yes"
1778c9e4df9bSmrgelse $as_nop
1779736a7e2cSmrg  eval "$3=no"
1780736a7e2cSmrgfi
1781c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
1782736a7e2cSmrg    conftest$ac_exeext conftest.$ac_ext
1783736a7e2cSmrgfi
1784736a7e2cSmrgeval ac_res=\$$3
1785c9e4df9bSmrg	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786c9e4df9bSmrgprintf "%s\n" "$ac_res" >&6; }
1787736a7e2cSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788736a7e2cSmrg
1789736a7e2cSmrg} # ac_fn_c_check_func
1790c9e4df9bSmrgac_configure_args_raw=
1791c9e4df9bSmrgfor ac_arg
1792c9e4df9bSmrgdo
1793c9e4df9bSmrg  case $ac_arg in
1794c9e4df9bSmrg  *\'*)
1795c9e4df9bSmrg    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1796c9e4df9bSmrg  esac
1797c9e4df9bSmrg  as_fn_append ac_configure_args_raw " '$ac_arg'"
1798c9e4df9bSmrgdone
1799c9e4df9bSmrg
1800c9e4df9bSmrgcase $ac_configure_args_raw in
1801c9e4df9bSmrg  *$as_nl*)
1802c9e4df9bSmrg    ac_safe_unquote= ;;
1803c9e4df9bSmrg  *)
1804c9e4df9bSmrg    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1805c9e4df9bSmrg    ac_unsafe_a="$ac_unsafe_z#~"
1806c9e4df9bSmrg    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1807c9e4df9bSmrg    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1808c9e4df9bSmrgesac
1809c9e4df9bSmrg
1810736a7e2cSmrgcat >config.log <<_ACEOF
1811736a7e2cSmrgThis file contains any messages produced by compilers while
1812736a7e2cSmrgrunning configure, to aid debugging if configure makes a mistake.
1813736a7e2cSmrg
1814c9e4df9bSmrgIt was created by x11perf $as_me 1.6.2, which was
1815c9e4df9bSmrggenerated by GNU Autoconf 2.71.  Invocation command line was
1816736a7e2cSmrg
1817c9e4df9bSmrg  $ $0$ac_configure_args_raw
1818736a7e2cSmrg
1819736a7e2cSmrg_ACEOF
1820736a7e2cSmrgexec 5>>config.log
1821736a7e2cSmrg{
1822736a7e2cSmrgcat <<_ASUNAME
1823736a7e2cSmrg## --------- ##
1824736a7e2cSmrg## Platform. ##
1825736a7e2cSmrg## --------- ##
1826736a7e2cSmrg
1827736a7e2cSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1828736a7e2cSmrguname -m = `(uname -m) 2>/dev/null || echo unknown`
1829736a7e2cSmrguname -r = `(uname -r) 2>/dev/null || echo unknown`
1830736a7e2cSmrguname -s = `(uname -s) 2>/dev/null || echo unknown`
1831736a7e2cSmrguname -v = `(uname -v) 2>/dev/null || echo unknown`
1832736a7e2cSmrg
1833736a7e2cSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1834736a7e2cSmrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1835736a7e2cSmrg
1836736a7e2cSmrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1837736a7e2cSmrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1838736a7e2cSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1839736a7e2cSmrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1840736a7e2cSmrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1841736a7e2cSmrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1842736a7e2cSmrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1843736a7e2cSmrg
1844736a7e2cSmrg_ASUNAME
1845264fa531Smrg
1846264fa531Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1847264fa531Smrgfor as_dir in $PATH
1848264fa531Smrgdo
1849264fa531Smrg  IFS=$as_save_IFS
1850c9e4df9bSmrg  case $as_dir in #(((
1851c9e4df9bSmrg    '') as_dir=./ ;;
1852c9e4df9bSmrg    */) ;;
1853c9e4df9bSmrg    *) as_dir=$as_dir/ ;;
1854c9e4df9bSmrg  esac
1855c9e4df9bSmrg    printf "%s\n" "PATH: $as_dir"
1856736a7e2cSmrg  done
1857c37a63b8SmrgIFS=$as_save_IFS
1858264fa531Smrg
1859264fa531Smrg} >&5
1860264fa531Smrg
1861264fa531Smrgcat >&5 <<_ACEOF
1862264fa531Smrg
1863264fa531Smrg
1864264fa531Smrg## ----------- ##
1865264fa531Smrg## Core tests. ##
1866264fa531Smrg## ----------- ##
1867264fa531Smrg
1868264fa531Smrg_ACEOF
1869264fa531Smrg
1870264fa531Smrg
1871264fa531Smrg# Keep a trace of the command line.
1872264fa531Smrg# Strip out --no-create and --no-recursion so they do not pile up.
1873264fa531Smrg# Strip out --silent because we don't want to record it for future runs.
1874264fa531Smrg# Also quote any args containing shell meta-characters.
1875264fa531Smrg# Make two passes to allow for proper duplicate-argument suppression.
1876264fa531Smrgac_configure_args=
1877264fa531Smrgac_configure_args0=
1878264fa531Smrgac_configure_args1=
1879264fa531Smrgac_must_keep_next=false
1880264fa531Smrgfor ac_pass in 1 2
1881264fa531Smrgdo
1882264fa531Smrg  for ac_arg
1883264fa531Smrg  do
1884264fa531Smrg    case $ac_arg in
1885264fa531Smrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1886264fa531Smrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1887264fa531Smrg    | -silent | --silent | --silen | --sile | --sil)
1888264fa531Smrg      continue ;;
1889c37a63b8Smrg    *\'*)
1890c9e4df9bSmrg      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1891264fa531Smrg    esac
1892264fa531Smrg    case $ac_pass in
1893736a7e2cSmrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1894264fa531Smrg    2)
1895736a7e2cSmrg      as_fn_append ac_configure_args1 " '$ac_arg'"
1896264fa531Smrg      if test $ac_must_keep_next = true; then
1897264fa531Smrg	ac_must_keep_next=false # Got value, back to normal.
1898264fa531Smrg      else
1899264fa531Smrg	case $ac_arg in
1900264fa531Smrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
1901264fa531Smrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1902264fa531Smrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1903264fa531Smrg	  | -with-* | --with-* | -without-* | --without-* | --x)
1904264fa531Smrg	    case "$ac_configure_args0 " in
1905264fa531Smrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1906264fa531Smrg	    esac
1907264fa531Smrg	    ;;
1908264fa531Smrg	  -* ) ac_must_keep_next=true ;;
1909264fa531Smrg	esac
1910264fa531Smrg      fi
1911736a7e2cSmrg      as_fn_append ac_configure_args " '$ac_arg'"
1912264fa531Smrg      ;;
1913264fa531Smrg    esac
1914264fa531Smrg  done
1915264fa531Smrgdone
1916736a7e2cSmrg{ ac_configure_args0=; unset ac_configure_args0;}
1917736a7e2cSmrg{ ac_configure_args1=; unset ac_configure_args1;}
1918264fa531Smrg
1919264fa531Smrg# When interrupted or exit'd, cleanup temporary files, and complete
1920264fa531Smrg# config.log.  We remove comments because anyway the quotes in there
1921264fa531Smrg# would cause problems or look ugly.
1922c37a63b8Smrg# WARNING: Use '\'' to represent an apostrophe within the trap.
1923c37a63b8Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1924264fa531Smrgtrap 'exit_status=$?
1925c9e4df9bSmrg  # Sanitize IFS.
1926c9e4df9bSmrg  IFS=" ""	$as_nl"
1927264fa531Smrg  # Save into config.log some information that might help in debugging.
1928264fa531Smrg  {
1929264fa531Smrg    echo
1930264fa531Smrg
1931c9e4df9bSmrg    printf "%s\n" "## ---------------- ##
1932264fa531Smrg## Cache variables. ##
1933736a7e2cSmrg## ---------------- ##"
1934264fa531Smrg    echo
1935264fa531Smrg    # The following way of writing the cache mishandles newlines in values,
1936c37a63b8Smrg(
1937c37a63b8Smrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1938c37a63b8Smrg    eval ac_val=\$$ac_var
1939c37a63b8Smrg    case $ac_val in #(
1940c37a63b8Smrg    *${as_nl}*)
1941c37a63b8Smrg      case $ac_var in #(
1942c9e4df9bSmrg      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1943c9e4df9bSmrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1944c37a63b8Smrg      esac
1945c37a63b8Smrg      case $ac_var in #(
1946c37a63b8Smrg      _ | IFS | as_nl) ;; #(
1947c37a63b8Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1948736a7e2cSmrg      *) { eval $ac_var=; unset $ac_var;} ;;
1949c37a63b8Smrg      esac ;;
1950c37a63b8Smrg    esac
1951c37a63b8Smrg  done
1952264fa531Smrg  (set) 2>&1 |
1953c37a63b8Smrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1954c37a63b8Smrg    *${as_nl}ac_space=\ *)
1955264fa531Smrg      sed -n \
1956c37a63b8Smrg	"s/'\''/'\''\\\\'\'''\''/g;
1957c37a63b8Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1958c37a63b8Smrg      ;; #(
1959264fa531Smrg    *)
1960c37a63b8Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1961264fa531Smrg      ;;
1962c37a63b8Smrg    esac |
1963c37a63b8Smrg    sort
1964c37a63b8Smrg)
1965264fa531Smrg    echo
1966264fa531Smrg
1967c9e4df9bSmrg    printf "%s\n" "## ----------------- ##
1968264fa531Smrg## Output variables. ##
1969736a7e2cSmrg## ----------------- ##"
1970264fa531Smrg    echo
1971264fa531Smrg    for ac_var in $ac_subst_vars
1972264fa531Smrg    do
1973c37a63b8Smrg      eval ac_val=\$$ac_var
1974c37a63b8Smrg      case $ac_val in
1975c9e4df9bSmrg      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1976c37a63b8Smrg      esac
1977c9e4df9bSmrg      printf "%s\n" "$ac_var='\''$ac_val'\''"
1978264fa531Smrg    done | sort
1979264fa531Smrg    echo
1980264fa531Smrg
1981264fa531Smrg    if test -n "$ac_subst_files"; then
1982c9e4df9bSmrg      printf "%s\n" "## ------------------- ##
1983c37a63b8Smrg## File substitutions. ##
1984736a7e2cSmrg## ------------------- ##"
1985264fa531Smrg      echo
1986264fa531Smrg      for ac_var in $ac_subst_files
1987264fa531Smrg      do
1988c37a63b8Smrg	eval ac_val=\$$ac_var
1989c37a63b8Smrg	case $ac_val in
1990c9e4df9bSmrg	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1991c37a63b8Smrg	esac
1992c9e4df9bSmrg	printf "%s\n" "$ac_var='\''$ac_val'\''"
1993264fa531Smrg      done | sort
1994264fa531Smrg      echo
1995264fa531Smrg    fi
1996264fa531Smrg
1997264fa531Smrg    if test -s confdefs.h; then
1998c9e4df9bSmrg      printf "%s\n" "## ----------- ##
1999264fa531Smrg## confdefs.h. ##
2000736a7e2cSmrg## ----------- ##"
2001264fa531Smrg      echo
2002c37a63b8Smrg      cat confdefs.h
2003264fa531Smrg      echo
2004264fa531Smrg    fi
2005264fa531Smrg    test "$ac_signal" != 0 &&
2006c9e4df9bSmrg      printf "%s\n" "$as_me: caught signal $ac_signal"
2007c9e4df9bSmrg    printf "%s\n" "$as_me: exit $exit_status"
2008264fa531Smrg  } >&5
2009c37a63b8Smrg  rm -f core *.core core.conftest.* &&
2010c37a63b8Smrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2011264fa531Smrg    exit $exit_status
2012c37a63b8Smrg' 0
2013264fa531Smrgfor ac_signal in 1 2 13 15; do
2014736a7e2cSmrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2015264fa531Smrgdone
2016264fa531Smrgac_signal=0
2017264fa531Smrg
2018264fa531Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
2019c37a63b8Smrgrm -f -r conftest* confdefs.h
2020264fa531Smrg
2021c9e4df9bSmrgprintf "%s\n" "/* confdefs.h */" > confdefs.h
2022736a7e2cSmrg
2023264fa531Smrg# Predefined preprocessor variables.
2024264fa531Smrg
2025c9e4df9bSmrgprintf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2026264fa531Smrg
2027c9e4df9bSmrgprintf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2028264fa531Smrg
2029c9e4df9bSmrgprintf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2030264fa531Smrg
2031c9e4df9bSmrgprintf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2032264fa531Smrg
2033c9e4df9bSmrgprintf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2034264fa531Smrg
2035c9e4df9bSmrgprintf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2036736a7e2cSmrg
2037264fa531Smrg
2038264fa531Smrg# Let the site file select an alternate cache file if it wants to.
2039c37a63b8Smrg# Prefer an explicitly selected file to automatically selected ones.
2040c37a63b8Smrgif test -n "$CONFIG_SITE"; then
2041c9e4df9bSmrg  ac_site_files="$CONFIG_SITE"
2042c37a63b8Smrgelif test "x$prefix" != xNONE; then
2043c9e4df9bSmrg  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2044c37a63b8Smrgelse
2045c9e4df9bSmrg  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2046264fa531Smrgfi
2047c9e4df9bSmrg
2048c9e4df9bSmrgfor ac_site_file in $ac_site_files
2049c37a63b8Smrgdo
2050c9e4df9bSmrg  case $ac_site_file in #(
2051c9e4df9bSmrg  */*) :
2052c9e4df9bSmrg     ;; #(
2053c9e4df9bSmrg  *) :
2054c9e4df9bSmrg    ac_site_file=./$ac_site_file ;;
2055c9e4df9bSmrgesac
2056c9e4df9bSmrg  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2057c9e4df9bSmrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2058c9e4df9bSmrgprintf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2059264fa531Smrg    sed 's/^/| /' "$ac_site_file" >&5
2060736a7e2cSmrg    . "$ac_site_file" \
2061c9e4df9bSmrg      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2062c9e4df9bSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2063736a7e2cSmrgas_fn_error $? "failed to load site script $ac_site_file
2064736a7e2cSmrgSee \`config.log' for more details" "$LINENO" 5; }
2065264fa531Smrg  fi
2066264fa531Smrgdone
2067264fa531Smrg
2068264fa531Smrgif test -r "$cache_file"; then
2069736a7e2cSmrg  # Some versions of bash will fail to source /dev/null (special files
2070736a7e2cSmrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2071736a7e2cSmrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2072c9e4df9bSmrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2073c9e4df9bSmrgprintf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2074264fa531Smrg    case $cache_file in
2075c37a63b8Smrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2076c37a63b8Smrg      *)                      . "./$cache_file";;
2077264fa531Smrg    esac
2078264fa531Smrg  fi
2079264fa531Smrgelse
2080c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2081c9e4df9bSmrgprintf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2082264fa531Smrg  >$cache_file
2083264fa531Smrgfi
2084264fa531Smrg
2085c9e4df9bSmrg# Test code for whether the C compiler supports C89 (global declarations)
2086c9e4df9bSmrgac_c_conftest_c89_globals='
2087c9e4df9bSmrg/* Does the compiler advertise C89 conformance?
2088c9e4df9bSmrg   Do not test the value of __STDC__, because some compilers set it to 0
2089c9e4df9bSmrg   while being otherwise adequately conformant. */
2090c9e4df9bSmrg#if !defined __STDC__
2091c9e4df9bSmrg# error "Compiler does not advertise C89 conformance"
2092c9e4df9bSmrg#endif
2093264fa531Smrg
2094c9e4df9bSmrg#include <stddef.h>
2095c9e4df9bSmrg#include <stdarg.h>
2096c9e4df9bSmrgstruct stat;
2097c9e4df9bSmrg/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2098c9e4df9bSmrgstruct buf { int x; };
2099c9e4df9bSmrgstruct buf * (*rcsopen) (struct buf *, struct stat *, int);
2100c9e4df9bSmrgstatic char *e (p, i)
2101c9e4df9bSmrg     char **p;
2102c9e4df9bSmrg     int i;
2103c9e4df9bSmrg{
2104c9e4df9bSmrg  return p[i];
2105c9e4df9bSmrg}
2106c9e4df9bSmrgstatic char *f (char * (*g) (char **, int), char **p, ...)
2107c9e4df9bSmrg{
2108c9e4df9bSmrg  char *s;
2109c9e4df9bSmrg  va_list v;
2110c9e4df9bSmrg  va_start (v,p);
2111c9e4df9bSmrg  s = g (p, va_arg (v,int));
2112c9e4df9bSmrg  va_end (v);
2113c9e4df9bSmrg  return s;
2114c9e4df9bSmrg}
2115736a7e2cSmrg
2116c9e4df9bSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2117c9e4df9bSmrg   function prototypes and stuff, but not \xHH hex character constants.
2118c9e4df9bSmrg   These do not provoke an error unfortunately, instead are silently treated
2119c9e4df9bSmrg   as an "x".  The following induces an error, until -std is added to get
2120c9e4df9bSmrg   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2121c9e4df9bSmrg   array size at least.  It is necessary to write \x00 == 0 to get something
2122c9e4df9bSmrg   that is true only with -std.  */
2123c9e4df9bSmrgint osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2124736a7e2cSmrg
2125c9e4df9bSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2126c9e4df9bSmrg   inside strings and character constants.  */
2127c9e4df9bSmrg#define FOO(x) '\''x'\''
2128c9e4df9bSmrgint xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2129736a7e2cSmrg
2130c9e4df9bSmrgint test (int i, double x);
2131c9e4df9bSmrgstruct s1 {int (*f) (int a);};
2132c9e4df9bSmrgstruct s2 {int (*f) (double a);};
2133c9e4df9bSmrgint pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2134c9e4df9bSmrg               int, int);'
2135264fa531Smrg
2136c9e4df9bSmrg# Test code for whether the C compiler supports C89 (body of main).
2137c9e4df9bSmrgac_c_conftest_c89_main='
2138c9e4df9bSmrgok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2139c9e4df9bSmrg'
2140c37a63b8Smrg
2141c9e4df9bSmrg# Test code for whether the C compiler supports C99 (global declarations)
2142c9e4df9bSmrgac_c_conftest_c99_globals='
2143c9e4df9bSmrg// Does the compiler advertise C99 conformance?
2144c9e4df9bSmrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2145c9e4df9bSmrg# error "Compiler does not advertise C99 conformance"
2146c9e4df9bSmrg#endif
2147c37a63b8Smrg
2148c9e4df9bSmrg#include <stdbool.h>
2149c9e4df9bSmrgextern int puts (const char *);
2150c9e4df9bSmrgextern int printf (const char *, ...);
2151c9e4df9bSmrgextern int dprintf (int, const char *, ...);
2152c9e4df9bSmrgextern void *malloc (size_t);
2153264fa531Smrg
2154c9e4df9bSmrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2155c9e4df9bSmrg// dprintf is used instead of fprintf to avoid needing to declare
2156c9e4df9bSmrg// FILE and stderr.
2157c9e4df9bSmrg#define debug(...) dprintf (2, __VA_ARGS__)
2158c9e4df9bSmrg#define showlist(...) puts (#__VA_ARGS__)
2159c9e4df9bSmrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2160c9e4df9bSmrgstatic void
2161c9e4df9bSmrgtest_varargs_macros (void)
2162c9e4df9bSmrg{
2163c9e4df9bSmrg  int x = 1234;
2164c9e4df9bSmrg  int y = 5678;
2165c9e4df9bSmrg  debug ("Flag");
2166c9e4df9bSmrg  debug ("X = %d\n", x);
2167c9e4df9bSmrg  showlist (The first, second, and third items.);
2168c9e4df9bSmrg  report (x>y, "x is %d but y is %d", x, y);
2169c9e4df9bSmrg}
2170c9e4df9bSmrg
2171c9e4df9bSmrg// Check long long types.
2172c9e4df9bSmrg#define BIG64 18446744073709551615ull
2173c9e4df9bSmrg#define BIG32 4294967295ul
2174c9e4df9bSmrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2175c9e4df9bSmrg#if !BIG_OK
2176c9e4df9bSmrg  #error "your preprocessor is broken"
2177c9e4df9bSmrg#endif
2178c9e4df9bSmrg#if BIG_OK
2179c9e4df9bSmrg#else
2180c9e4df9bSmrg  #error "your preprocessor is broken"
2181c9e4df9bSmrg#endif
2182c9e4df9bSmrgstatic long long int bignum = -9223372036854775807LL;
2183c9e4df9bSmrgstatic unsigned long long int ubignum = BIG64;
2184c9e4df9bSmrg
2185c9e4df9bSmrgstruct incomplete_array
2186c9e4df9bSmrg{
2187c9e4df9bSmrg  int datasize;
2188c9e4df9bSmrg  double data[];
2189c9e4df9bSmrg};
2190c9e4df9bSmrg
2191c9e4df9bSmrgstruct named_init {
2192c9e4df9bSmrg  int number;
2193c9e4df9bSmrg  const wchar_t *name;
2194c9e4df9bSmrg  double average;
2195c9e4df9bSmrg};
2196c9e4df9bSmrg
2197c9e4df9bSmrgtypedef const char *ccp;
2198c9e4df9bSmrg
2199c9e4df9bSmrgstatic inline int
2200c9e4df9bSmrgtest_restrict (ccp restrict text)
2201c9e4df9bSmrg{
2202c9e4df9bSmrg  // See if C++-style comments work.
2203c9e4df9bSmrg  // Iterate through items via the restricted pointer.
2204c9e4df9bSmrg  // Also check for declarations in for loops.
2205c9e4df9bSmrg  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2206c9e4df9bSmrg    continue;
2207c9e4df9bSmrg  return 0;
2208c9e4df9bSmrg}
2209c9e4df9bSmrg
2210c9e4df9bSmrg// Check varargs and va_copy.
2211c9e4df9bSmrgstatic bool
2212c9e4df9bSmrgtest_varargs (const char *format, ...)
2213c9e4df9bSmrg{
2214c9e4df9bSmrg  va_list args;
2215c9e4df9bSmrg  va_start (args, format);
2216c9e4df9bSmrg  va_list args_copy;
2217c9e4df9bSmrg  va_copy (args_copy, args);
2218c9e4df9bSmrg
2219c9e4df9bSmrg  const char *str = "";
2220c9e4df9bSmrg  int number = 0;
2221c9e4df9bSmrg  float fnumber = 0;
2222c9e4df9bSmrg
2223c9e4df9bSmrg  while (*format)
2224c9e4df9bSmrg    {
2225c9e4df9bSmrg      switch (*format++)
2226c9e4df9bSmrg	{
2227c9e4df9bSmrg	case '\''s'\'': // string
2228c9e4df9bSmrg	  str = va_arg (args_copy, const char *);
2229c9e4df9bSmrg	  break;
2230c9e4df9bSmrg	case '\''d'\'': // int
2231c9e4df9bSmrg	  number = va_arg (args_copy, int);
2232c9e4df9bSmrg	  break;
2233c9e4df9bSmrg	case '\''f'\'': // float
2234c9e4df9bSmrg	  fnumber = va_arg (args_copy, double);
2235c9e4df9bSmrg	  break;
2236c9e4df9bSmrg	default:
2237c9e4df9bSmrg	  break;
2238c9e4df9bSmrg	}
2239c9e4df9bSmrg    }
2240c9e4df9bSmrg  va_end (args_copy);
2241c9e4df9bSmrg  va_end (args);
2242c9e4df9bSmrg
2243c9e4df9bSmrg  return *str && number && fnumber;
2244c9e4df9bSmrg}
2245c9e4df9bSmrg'
2246c9e4df9bSmrg
2247c9e4df9bSmrg# Test code for whether the C compiler supports C99 (body of main).
2248c9e4df9bSmrgac_c_conftest_c99_main='
2249c9e4df9bSmrg  // Check bool.
2250c9e4df9bSmrg  _Bool success = false;
2251c9e4df9bSmrg  success |= (argc != 0);
2252c9e4df9bSmrg
2253c9e4df9bSmrg  // Check restrict.
2254c9e4df9bSmrg  if (test_restrict ("String literal") == 0)
2255c9e4df9bSmrg    success = true;
2256c9e4df9bSmrg  char *restrict newvar = "Another string";
2257c9e4df9bSmrg
2258c9e4df9bSmrg  // Check varargs.
2259c9e4df9bSmrg  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2260c9e4df9bSmrg  test_varargs_macros ();
2261c9e4df9bSmrg
2262c9e4df9bSmrg  // Check flexible array members.
2263c9e4df9bSmrg  struct incomplete_array *ia =
2264c9e4df9bSmrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2265c9e4df9bSmrg  ia->datasize = 10;
2266c9e4df9bSmrg  for (int i = 0; i < ia->datasize; ++i)
2267c9e4df9bSmrg    ia->data[i] = i * 1.234;
2268c9e4df9bSmrg
2269c9e4df9bSmrg  // Check named initializers.
2270c9e4df9bSmrg  struct named_init ni = {
2271c9e4df9bSmrg    .number = 34,
2272c9e4df9bSmrg    .name = L"Test wide string",
2273c9e4df9bSmrg    .average = 543.34343,
2274c9e4df9bSmrg  };
2275c9e4df9bSmrg
2276c9e4df9bSmrg  ni.number = 58;
2277c9e4df9bSmrg
2278c9e4df9bSmrg  int dynamic_array[ni.number];
2279c9e4df9bSmrg  dynamic_array[0] = argv[0][0];
2280c9e4df9bSmrg  dynamic_array[ni.number - 1] = 543;
2281c9e4df9bSmrg
2282c9e4df9bSmrg  // work around unused variable warnings
2283c9e4df9bSmrg  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2284c9e4df9bSmrg	 || dynamic_array[ni.number - 1] != 543);
2285c9e4df9bSmrg'
2286c9e4df9bSmrg
2287c9e4df9bSmrg# Test code for whether the C compiler supports C11 (global declarations)
2288c9e4df9bSmrgac_c_conftest_c11_globals='
2289c9e4df9bSmrg// Does the compiler advertise C11 conformance?
2290c9e4df9bSmrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2291c9e4df9bSmrg# error "Compiler does not advertise C11 conformance"
2292c9e4df9bSmrg#endif
2293c9e4df9bSmrg
2294c9e4df9bSmrg// Check _Alignas.
2295c9e4df9bSmrgchar _Alignas (double) aligned_as_double;
2296c9e4df9bSmrgchar _Alignas (0) no_special_alignment;
2297c9e4df9bSmrgextern char aligned_as_int;
2298c9e4df9bSmrgchar _Alignas (0) _Alignas (int) aligned_as_int;
2299c9e4df9bSmrg
2300c9e4df9bSmrg// Check _Alignof.
2301c9e4df9bSmrgenum
2302c9e4df9bSmrg{
2303c9e4df9bSmrg  int_alignment = _Alignof (int),
2304c9e4df9bSmrg  int_array_alignment = _Alignof (int[100]),
2305c9e4df9bSmrg  char_alignment = _Alignof (char)
2306c9e4df9bSmrg};
2307c9e4df9bSmrg_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2308c9e4df9bSmrg
2309c9e4df9bSmrg// Check _Noreturn.
2310c9e4df9bSmrgint _Noreturn does_not_return (void) { for (;;) continue; }
2311c9e4df9bSmrg
2312c9e4df9bSmrg// Check _Static_assert.
2313c9e4df9bSmrgstruct test_static_assert
2314c9e4df9bSmrg{
2315c9e4df9bSmrg  int x;
2316c9e4df9bSmrg  _Static_assert (sizeof (int) <= sizeof (long int),
2317c9e4df9bSmrg                  "_Static_assert does not work in struct");
2318c9e4df9bSmrg  long int y;
2319c9e4df9bSmrg};
2320c9e4df9bSmrg
2321c9e4df9bSmrg// Check UTF-8 literals.
2322c9e4df9bSmrg#define u8 syntax error!
2323c9e4df9bSmrgchar const utf8_literal[] = u8"happens to be ASCII" "another string";
2324c9e4df9bSmrg
2325c9e4df9bSmrg// Check duplicate typedefs.
2326c9e4df9bSmrgtypedef long *long_ptr;
2327c9e4df9bSmrgtypedef long int *long_ptr;
2328c9e4df9bSmrgtypedef long_ptr long_ptr;
2329c9e4df9bSmrg
2330c9e4df9bSmrg// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2331c9e4df9bSmrgstruct anonymous
2332c9e4df9bSmrg{
2333c9e4df9bSmrg  union {
2334c9e4df9bSmrg    struct { int i; int j; };
2335c9e4df9bSmrg    struct { int k; long int l; } w;
2336c9e4df9bSmrg  };
2337c9e4df9bSmrg  int m;
2338c9e4df9bSmrg} v1;
2339c9e4df9bSmrg'
2340c9e4df9bSmrg
2341c9e4df9bSmrg# Test code for whether the C compiler supports C11 (body of main).
2342c9e4df9bSmrgac_c_conftest_c11_main='
2343c9e4df9bSmrg  _Static_assert ((offsetof (struct anonymous, i)
2344c9e4df9bSmrg		   == offsetof (struct anonymous, w.k)),
2345c9e4df9bSmrg		  "Anonymous union alignment botch");
2346c9e4df9bSmrg  v1.i = 2;
2347c9e4df9bSmrg  v1.w.k = 5;
2348c9e4df9bSmrg  ok |= v1.i != 5;
2349c9e4df9bSmrg'
2350c9e4df9bSmrg
2351c9e4df9bSmrg# Test code for whether the C compiler supports C11 (complete).
2352c9e4df9bSmrgac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2353c9e4df9bSmrg${ac_c_conftest_c99_globals}
2354c9e4df9bSmrg${ac_c_conftest_c11_globals}
2355c9e4df9bSmrg
2356c9e4df9bSmrgint
2357c9e4df9bSmrgmain (int argc, char **argv)
2358c9e4df9bSmrg{
2359c9e4df9bSmrg  int ok = 0;
2360c9e4df9bSmrg  ${ac_c_conftest_c89_main}
2361c9e4df9bSmrg  ${ac_c_conftest_c99_main}
2362c9e4df9bSmrg  ${ac_c_conftest_c11_main}
2363c9e4df9bSmrg  return ok;
2364c9e4df9bSmrg}
2365c9e4df9bSmrg"
2366c9e4df9bSmrg
2367c9e4df9bSmrg# Test code for whether the C compiler supports C99 (complete).
2368c9e4df9bSmrgac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2369c9e4df9bSmrg${ac_c_conftest_c99_globals}
2370c9e4df9bSmrg
2371c9e4df9bSmrgint
2372c9e4df9bSmrgmain (int argc, char **argv)
2373c9e4df9bSmrg{
2374c9e4df9bSmrg  int ok = 0;
2375c9e4df9bSmrg  ${ac_c_conftest_c89_main}
2376c9e4df9bSmrg  ${ac_c_conftest_c99_main}
2377c9e4df9bSmrg  return ok;
2378c9e4df9bSmrg}
2379c9e4df9bSmrg"
2380c9e4df9bSmrg
2381c9e4df9bSmrg# Test code for whether the C compiler supports C89 (complete).
2382c9e4df9bSmrgac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2383c9e4df9bSmrg
2384c9e4df9bSmrgint
2385c9e4df9bSmrgmain (int argc, char **argv)
2386c9e4df9bSmrg{
2387c9e4df9bSmrg  int ok = 0;
2388c9e4df9bSmrg  ${ac_c_conftest_c89_main}
2389c9e4df9bSmrg  return ok;
2390c9e4df9bSmrg}
2391c9e4df9bSmrg"
2392c9e4df9bSmrg
2393c9e4df9bSmrgas_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2394c9e4df9bSmrgas_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2395c9e4df9bSmrgas_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2396c9e4df9bSmrgas_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2397c9e4df9bSmrgas_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2398c9e4df9bSmrgas_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2399c9e4df9bSmrgas_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2400c9e4df9bSmrgas_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2401c9e4df9bSmrgas_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2402c9e4df9bSmrg
2403c9e4df9bSmrg# Auxiliary files required by this configure script.
2404c9e4df9bSmrgac_aux_files="config.guess config.sub compile missing install-sh"
2405c9e4df9bSmrg
2406c9e4df9bSmrg# Locations in which to look for auxiliary files.
2407c9e4df9bSmrgac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2408c9e4df9bSmrg
2409c9e4df9bSmrg# Search for a directory containing all of the required auxiliary files,
2410c9e4df9bSmrg# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2411c9e4df9bSmrg# If we don't find one directory that contains all the files we need,
2412c9e4df9bSmrg# we report the set of missing files from the *first* directory in
2413c9e4df9bSmrg# $ac_aux_dir_candidates and give up.
2414c9e4df9bSmrgac_missing_aux_files=""
2415c9e4df9bSmrgac_first_candidate=:
2416c9e4df9bSmrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2417c9e4df9bSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2418c9e4df9bSmrgas_found=false
2419c9e4df9bSmrgfor as_dir in $ac_aux_dir_candidates
2420c9e4df9bSmrgdo
2421c9e4df9bSmrg  IFS=$as_save_IFS
2422c9e4df9bSmrg  case $as_dir in #(((
2423c9e4df9bSmrg    '') as_dir=./ ;;
2424c9e4df9bSmrg    */) ;;
2425c9e4df9bSmrg    *) as_dir=$as_dir/ ;;
2426c9e4df9bSmrg  esac
2427c9e4df9bSmrg  as_found=:
2428c9e4df9bSmrg
2429c9e4df9bSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2430c9e4df9bSmrg  ac_aux_dir_found=yes
2431c9e4df9bSmrg  ac_install_sh=
2432c9e4df9bSmrg  for ac_aux in $ac_aux_files
2433c9e4df9bSmrg  do
2434c9e4df9bSmrg    # As a special case, if "install-sh" is required, that requirement
2435c9e4df9bSmrg    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2436c9e4df9bSmrg    # and $ac_install_sh is set appropriately for whichever one is found.
2437c9e4df9bSmrg    if test x"$ac_aux" = x"install-sh"
2438c9e4df9bSmrg    then
2439c9e4df9bSmrg      if test -f "${as_dir}install-sh"; then
2440c9e4df9bSmrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2441c9e4df9bSmrg        ac_install_sh="${as_dir}install-sh -c"
2442c9e4df9bSmrg      elif test -f "${as_dir}install.sh"; then
2443c9e4df9bSmrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2444c9e4df9bSmrg        ac_install_sh="${as_dir}install.sh -c"
2445c9e4df9bSmrg      elif test -f "${as_dir}shtool"; then
2446c9e4df9bSmrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2447c9e4df9bSmrg        ac_install_sh="${as_dir}shtool install -c"
2448c9e4df9bSmrg      else
2449c9e4df9bSmrg        ac_aux_dir_found=no
2450c9e4df9bSmrg        if $ac_first_candidate; then
2451c9e4df9bSmrg          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2452c9e4df9bSmrg        else
2453c9e4df9bSmrg          break
2454c9e4df9bSmrg        fi
2455c9e4df9bSmrg      fi
2456c9e4df9bSmrg    else
2457c9e4df9bSmrg      if test -f "${as_dir}${ac_aux}"; then
2458c9e4df9bSmrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2459c9e4df9bSmrg      else
2460c9e4df9bSmrg        ac_aux_dir_found=no
2461c9e4df9bSmrg        if $ac_first_candidate; then
2462c9e4df9bSmrg          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2463c9e4df9bSmrg        else
2464c9e4df9bSmrg          break
2465c9e4df9bSmrg        fi
2466c9e4df9bSmrg      fi
2467c9e4df9bSmrg    fi
2468c9e4df9bSmrg  done
2469c9e4df9bSmrg  if test "$ac_aux_dir_found" = yes; then
2470c9e4df9bSmrg    ac_aux_dir="$as_dir"
2471c9e4df9bSmrg    break
2472c9e4df9bSmrg  fi
2473c9e4df9bSmrg  ac_first_candidate=false
2474c9e4df9bSmrg
2475c9e4df9bSmrg  as_found=false
2476c9e4df9bSmrgdone
2477c9e4df9bSmrgIFS=$as_save_IFS
2478c9e4df9bSmrgif $as_found
2479c9e4df9bSmrgthen :
2480c9e4df9bSmrg
2481c9e4df9bSmrgelse $as_nop
2482c9e4df9bSmrg  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2483c9e4df9bSmrgfi
2484c9e4df9bSmrg
2485c9e4df9bSmrg
2486c9e4df9bSmrg# These three variables are undocumented and unsupported,
2487c9e4df9bSmrg# and are intended to be withdrawn in a future Autoconf release.
2488c9e4df9bSmrg# They can cause serious problems if a builder's source tree is in a directory
2489c9e4df9bSmrg# whose full name contains unusual characters.
2490c9e4df9bSmrgif test -f "${ac_aux_dir}config.guess"; then
2491c9e4df9bSmrg  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2492c9e4df9bSmrgfi
2493c9e4df9bSmrgif test -f "${ac_aux_dir}config.sub"; then
2494c9e4df9bSmrg  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2495c9e4df9bSmrgfi
2496c9e4df9bSmrgif test -f "$ac_aux_dir/configure"; then
2497c9e4df9bSmrg  ac_configure="$SHELL ${ac_aux_dir}configure"
2498c9e4df9bSmrgfi
2499c9e4df9bSmrg
2500c9e4df9bSmrg# Check that the precious variables saved in the cache have kept the same
2501c9e4df9bSmrg# value.
2502c9e4df9bSmrgac_cache_corrupted=false
2503c9e4df9bSmrgfor ac_var in $ac_precious_vars; do
2504c9e4df9bSmrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2505c9e4df9bSmrg  eval ac_new_set=\$ac_env_${ac_var}_set
2506c9e4df9bSmrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2507c9e4df9bSmrg  eval ac_new_val=\$ac_env_${ac_var}_value
2508c9e4df9bSmrg  case $ac_old_set,$ac_new_set in
2509c9e4df9bSmrg    set,)
2510c9e4df9bSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2511c9e4df9bSmrgprintf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2512c9e4df9bSmrg      ac_cache_corrupted=: ;;
2513c9e4df9bSmrg    ,set)
2514c9e4df9bSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2515c9e4df9bSmrgprintf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2516c9e4df9bSmrg      ac_cache_corrupted=: ;;
2517c9e4df9bSmrg    ,);;
2518c9e4df9bSmrg    *)
2519c9e4df9bSmrg      if test "x$ac_old_val" != "x$ac_new_val"; then
2520c9e4df9bSmrg	# differences in whitespace do not lead to failure.
2521c9e4df9bSmrg	ac_old_val_w=`echo x $ac_old_val`
2522c9e4df9bSmrg	ac_new_val_w=`echo x $ac_new_val`
2523c9e4df9bSmrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2524c9e4df9bSmrg	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2525c9e4df9bSmrgprintf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2526c9e4df9bSmrg	  ac_cache_corrupted=:
2527c9e4df9bSmrg	else
2528c9e4df9bSmrg	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2529c9e4df9bSmrgprintf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2530c9e4df9bSmrg	  eval $ac_var=\$ac_old_val
2531c9e4df9bSmrg	fi
2532c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2533c9e4df9bSmrgprintf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2534c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2535c9e4df9bSmrgprintf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2536c9e4df9bSmrg      fi;;
2537c9e4df9bSmrg  esac
2538c9e4df9bSmrg  # Pass precious variables to config.status.
2539c9e4df9bSmrg  if test "$ac_new_set" = set; then
2540c9e4df9bSmrg    case $ac_new_val in
2541c9e4df9bSmrg    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2542c9e4df9bSmrg    *) ac_arg=$ac_var=$ac_new_val ;;
2543c9e4df9bSmrg    esac
2544c9e4df9bSmrg    case " $ac_configure_args " in
2545c9e4df9bSmrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2546c9e4df9bSmrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2547c9e4df9bSmrg    esac
2548c9e4df9bSmrg  fi
2549c9e4df9bSmrgdone
2550c9e4df9bSmrgif $ac_cache_corrupted; then
2551c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2552c9e4df9bSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2553c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2554c9e4df9bSmrgprintf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2555c9e4df9bSmrg  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2556c9e4df9bSmrg	    and start over" "$LINENO" 5
2557c9e4df9bSmrgfi
2558c9e4df9bSmrg## -------------------- ##
2559c9e4df9bSmrg## Main body of script. ##
2560c9e4df9bSmrg## -------------------- ##
2561c9e4df9bSmrg
2562c9e4df9bSmrgac_ext=c
2563c9e4df9bSmrgac_cpp='$CPP $CPPFLAGS'
2564c9e4df9bSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2565c9e4df9bSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2566c9e4df9bSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2567c9e4df9bSmrg
2568c9e4df9bSmrg
2569c9e4df9bSmrg
2570c9e4df9bSmrgac_config_headers="$ac_config_headers config.h"
2571c9e4df9bSmrg
2572c9e4df9bSmrg
2573c9e4df9bSmrg# Initialize Automake
2574c9e4df9bSmrgam__api_version='1.16'
2575c9e4df9bSmrg
2576c9e4df9bSmrg
2577c9e4df9bSmrg
2578c9e4df9bSmrg  # Find a good install program.  We prefer a C program (faster),
2579c9e4df9bSmrg# so one script is as good as another.  But avoid the broken or
2580264fa531Smrg# incompatible versions:
2581264fa531Smrg# SysV /etc/install, /usr/sbin/install
2582264fa531Smrg# SunOS /usr/etc/install
2583264fa531Smrg# IRIX /sbin/install
2584264fa531Smrg# AIX /bin/install
2585264fa531Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
2586264fa531Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2587264fa531Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2588264fa531Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2589264fa531Smrg# OS/2's system install, which has a completely different semantic
2590264fa531Smrg# ./install, which can be erroneously created by make from ./install.sh.
2591c37a63b8Smrg# Reject install programs that cannot install multiple files.
2592c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2593c9e4df9bSmrgprintf %s "checking for a BSD-compatible install... " >&6; }
2594264fa531Smrgif test -z "$INSTALL"; then
2595c9e4df9bSmrgif test ${ac_cv_path_install+y}
2596c9e4df9bSmrgthen :
2597c9e4df9bSmrg  printf %s "(cached) " >&6
2598c9e4df9bSmrgelse $as_nop
2599264fa531Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600264fa531Smrgfor as_dir in $PATH
2601264fa531Smrgdo
2602264fa531Smrg  IFS=$as_save_IFS
2603c9e4df9bSmrg  case $as_dir in #(((
2604c9e4df9bSmrg    '') as_dir=./ ;;
2605c9e4df9bSmrg    */) ;;
2606c9e4df9bSmrg    *) as_dir=$as_dir/ ;;
2607c9e4df9bSmrg  esac
2608c9e4df9bSmrg    # Account for fact that we put trailing slashes in our PATH walk.
2609c9e4df9bSmrgcase $as_dir in #((
2610c9e4df9bSmrg  ./ | /[cC]/* | \
2611264fa531Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2612736a7e2cSmrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2613264fa531Smrg  /usr/ucb/* ) ;;
2614264fa531Smrg  *)
2615264fa531Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
2616264fa531Smrg    # Don't use installbsd from OSF since it installs stuff as root
2617264fa531Smrg    # by default.
2618264fa531Smrg    for ac_prog in ginstall scoinst install; do
2619264fa531Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
2620c9e4df9bSmrg	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2621264fa531Smrg	  if test $ac_prog = install &&
2622c9e4df9bSmrg	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2623264fa531Smrg	    # AIX install.  It has an incompatible calling convention.
2624264fa531Smrg	    :
2625264fa531Smrg	  elif test $ac_prog = install &&
2626c9e4df9bSmrg	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2627264fa531Smrg	    # program-specific install script used by HP pwplus--don't use.
2628264fa531Smrg	    :
2629264fa531Smrg	  else
2630c37a63b8Smrg	    rm -rf conftest.one conftest.two conftest.dir
2631c37a63b8Smrg	    echo one > conftest.one
2632c37a63b8Smrg	    echo two > conftest.two
2633c37a63b8Smrg	    mkdir conftest.dir
2634c9e4df9bSmrg	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2635c37a63b8Smrg	      test -s conftest.one && test -s conftest.two &&
2636c37a63b8Smrg	      test -s conftest.dir/conftest.one &&
2637c37a63b8Smrg	      test -s conftest.dir/conftest.two
2638c37a63b8Smrg	    then
2639c9e4df9bSmrg	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2640c37a63b8Smrg	      break 3
2641c37a63b8Smrg	    fi
2642264fa531Smrg	  fi
2643264fa531Smrg	fi
2644264fa531Smrg      done
2645264fa531Smrg    done
2646264fa531Smrg    ;;
2647264fa531Smrgesac
2648c37a63b8Smrg
2649736a7e2cSmrg  done
2650c37a63b8SmrgIFS=$as_save_IFS
2651264fa531Smrg
2652c37a63b8Smrgrm -rf conftest.one conftest.two conftest.dir
2653264fa531Smrg
2654264fa531Smrgfi
2655c9e4df9bSmrg  if test ${ac_cv_path_install+y}; then
2656264fa531Smrg    INSTALL=$ac_cv_path_install
2657264fa531Smrg  else
2658c37a63b8Smrg    # As a last resort, use the slow shell script.  Don't cache a
2659c37a63b8Smrg    # value for INSTALL within a source directory, because that will
2660264fa531Smrg    # break other packages using the cache if that directory is
2661c37a63b8Smrg    # removed, or if the value is a relative name.
2662264fa531Smrg    INSTALL=$ac_install_sh
2663264fa531Smrg  fi
2664264fa531Smrgfi
2665c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2666c9e4df9bSmrgprintf "%s\n" "$INSTALL" >&6; }
2667264fa531Smrg
2668264fa531Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2669264fa531Smrg# It thinks the first close brace ends the variable substitution.
2670264fa531Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2671264fa531Smrg
2672264fa531Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2673264fa531Smrg
2674264fa531Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2675264fa531Smrg
2676c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2677c9e4df9bSmrgprintf %s "checking whether build environment is sane... " >&6; }
2678c37a63b8Smrg# Reject unsafe characters in $srcdir or the absolute working directory
2679c37a63b8Smrg# name.  Accept space and tab only in the latter.
2680c37a63b8Smrgam_lf='
2681c37a63b8Smrg'
2682c37a63b8Smrgcase `pwd` in
2683c37a63b8Smrg  *[\\\"\#\$\&\'\`$am_lf]*)
2684736a7e2cSmrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2685c37a63b8Smrgesac
2686c37a63b8Smrgcase $srcdir in
2687c37a63b8Smrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2688533545b5Smrg    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2689c37a63b8Smrgesac
2690c37a63b8Smrg
2691533545b5Smrg# Do 'set' in a subshell so we don't clobber the current shell's
2692264fa531Smrg# arguments.  Must try -L first in case configure is actually a
2693264fa531Smrg# symlink; some systems play weird games with the mod time of symlinks
2694264fa531Smrg# (eg FreeBSD returns the mod time of the symlink's containing
2695264fa531Smrg# directory).
2696264fa531Smrgif (
2697533545b5Smrg   am_has_slept=no
2698533545b5Smrg   for am_try in 1 2; do
2699533545b5Smrg     echo "timestamp, slept: $am_has_slept" > conftest.file
2700533545b5Smrg     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2701533545b5Smrg     if test "$*" = "X"; then
2702533545b5Smrg	# -L didn't work.
2703533545b5Smrg	set X `ls -t "$srcdir/configure" conftest.file`
2704533545b5Smrg     fi
2705533545b5Smrg     if test "$*" != "X $srcdir/configure conftest.file" \
2706533545b5Smrg	&& test "$*" != "X conftest.file $srcdir/configure"; then
2707533545b5Smrg
2708533545b5Smrg	# If neither matched, then we have a broken ls.  This can happen
2709533545b5Smrg	# if, for instance, CONFIG_SHELL is bash and it inherits a
2710533545b5Smrg	# broken ls alias from the environment.  This has actually
2711533545b5Smrg	# happened.  Such a system could not be considered "sane".
2712533545b5Smrg	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2713533545b5Smrg  alias in your environment" "$LINENO" 5
2714533545b5Smrg     fi
2715533545b5Smrg     if test "$2" = conftest.file || test $am_try -eq 2; then
2716533545b5Smrg       break
2717533545b5Smrg     fi
2718533545b5Smrg     # Just in case.
2719533545b5Smrg     sleep 1
2720533545b5Smrg     am_has_slept=yes
2721533545b5Smrg   done
2722264fa531Smrg   test "$2" = conftest.file
2723264fa531Smrg   )
2724264fa531Smrgthen
2725264fa531Smrg   # Ok.
2726264fa531Smrg   :
2727264fa531Smrgelse
2728736a7e2cSmrg   as_fn_error $? "newly created file is older than distributed files!
2729736a7e2cSmrgCheck your system clock" "$LINENO" 5
2730264fa531Smrgfi
2731c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2732c9e4df9bSmrgprintf "%s\n" "yes" >&6; }
2733533545b5Smrg# If we didn't sleep, we still need to ensure time stamps of config.status and
2734533545b5Smrg# generated files are strictly newer.
2735533545b5Smrgam_sleep_pid=
2736533545b5Smrgif grep 'slept: no' conftest.file >/dev/null 2>&1; then
2737533545b5Smrg  ( sleep 1 ) &
2738533545b5Smrg  am_sleep_pid=$!
2739533545b5Smrgfi
2740533545b5Smrg
2741533545b5Smrgrm -f conftest.file
2742533545b5Smrg
2743264fa531Smrgtest "$program_prefix" != NONE &&
2744c37a63b8Smrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2745264fa531Smrg# Use a double $ so make ignores it.
2746264fa531Smrgtest "$program_suffix" != NONE &&
2747c37a63b8Smrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2748c37a63b8Smrg# Double any \ or $.
2749264fa531Smrg# By default was `s,x,x', remove it if useless.
2750c37a63b8Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2751c9e4df9bSmrgprogram_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2752c9e4df9bSmrg
2753264fa531Smrg
2754533545b5Smrg# Expand $ac_aux_dir to an absolute path.
2755533545b5Smrgam_aux_dir=`cd "$ac_aux_dir" && pwd`
2756264fa531Smrg
2757c9e4df9bSmrg
2758c9e4df9bSmrg  if test x"${MISSING+set}" != xset; then
2759c9e4df9bSmrg  MISSING="\${SHELL} '$am_aux_dir/missing'"
2760c37a63b8Smrgfi
2761264fa531Smrg# Use eval to expand $SHELL
2762533545b5Smrgif eval "$MISSING --is-lightweight"; then
2763533545b5Smrg  am_missing_run="$MISSING "
2764264fa531Smrgelse
2765264fa531Smrg  am_missing_run=
2766c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2767c9e4df9bSmrgprintf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2768c37a63b8Smrgfi
2769c37a63b8Smrg
2770533545b5Smrgif test x"${install_sh+set}" != xset; then
2771c37a63b8Smrg  case $am_aux_dir in
2772c37a63b8Smrg  *\ * | *\	*)
2773c37a63b8Smrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2774c37a63b8Smrg  *)
2775c37a63b8Smrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
2776c37a63b8Smrg  esac
2777c37a63b8Smrgfi
2778c37a63b8Smrg
2779533545b5Smrg# Installed binaries are usually stripped using 'strip' when the user
2780533545b5Smrg# run "make install-strip".  However 'strip' might not be the right
2781c37a63b8Smrg# tool to use in cross-compilation environments, therefore Automake
2782533545b5Smrg# will honor the 'STRIP' environment variable to overrule this program.
2783c37a63b8Smrgif test "$cross_compiling" != no; then
2784c37a63b8Smrg  if test -n "$ac_tool_prefix"; then
2785c37a63b8Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2786c37a63b8Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
2787c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2788c9e4df9bSmrgprintf %s "checking for $ac_word... " >&6; }
2789c9e4df9bSmrgif test ${ac_cv_prog_STRIP+y}
2790c9e4df9bSmrgthen :
2791c9e4df9bSmrg  printf %s "(cached) " >&6
2792c9e4df9bSmrgelse $as_nop
2793c37a63b8Smrg  if test -n "$STRIP"; then
2794c37a63b8Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2795c37a63b8Smrgelse
2796c37a63b8Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797c37a63b8Smrgfor as_dir in $PATH
2798c37a63b8Smrgdo
2799c37a63b8Smrg  IFS=$as_save_IFS
2800c9e4df9bSmrg  case $as_dir in #(((
2801c9e4df9bSmrg    '') as_dir=./ ;;
2802c9e4df9bSmrg    */) ;;
2803c9e4df9bSmrg    *) as_dir=$as_dir/ ;;
2804c9e4df9bSmrg  esac
2805736a7e2cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2806c9e4df9bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2807c37a63b8Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2808c9e4df9bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2809c37a63b8Smrg    break 2
2810c37a63b8Smrg  fi
2811c37a63b8Smrgdone
2812736a7e2cSmrg  done
2813c37a63b8SmrgIFS=$as_save_IFS
2814c37a63b8Smrg
2815c37a63b8Smrgfi
2816c37a63b8Smrgfi
2817c37a63b8SmrgSTRIP=$ac_cv_prog_STRIP
2818c37a63b8Smrgif test -n "$STRIP"; then
2819c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2820c9e4df9bSmrgprintf "%s\n" "$STRIP" >&6; }
2821c37a63b8Smrgelse
2822c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823c9e4df9bSmrgprintf "%s\n" "no" >&6; }
2824c37a63b8Smrgfi
2825c37a63b8Smrg
2826c37a63b8Smrg
2827c37a63b8Smrgfi
2828c37a63b8Smrgif test -z "$ac_cv_prog_STRIP"; then
2829c37a63b8Smrg  ac_ct_STRIP=$STRIP
2830c37a63b8Smrg  # Extract the first word of "strip", so it can be a program name with args.
2831c37a63b8Smrgset dummy strip; ac_word=$2
2832c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2833c9e4df9bSmrgprintf %s "checking for $ac_word... " >&6; }
2834c9e4df9bSmrgif test ${ac_cv_prog_ac_ct_STRIP+y}
2835c9e4df9bSmrgthen :
2836c9e4df9bSmrg  printf %s "(cached) " >&6
2837c9e4df9bSmrgelse $as_nop
2838c37a63b8Smrg  if test -n "$ac_ct_STRIP"; then
2839c37a63b8Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2840c37a63b8Smrgelse
2841c37a63b8Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842c37a63b8Smrgfor as_dir in $PATH
2843c37a63b8Smrgdo
2844c37a63b8Smrg  IFS=$as_save_IFS
2845c9e4df9bSmrg  case $as_dir in #(((
2846c9e4df9bSmrg    '') as_dir=./ ;;
2847c9e4df9bSmrg    */) ;;
2848c9e4df9bSmrg    *) as_dir=$as_dir/ ;;
2849c9e4df9bSmrg  esac
2850736a7e2cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2851c9e4df9bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2852c37a63b8Smrg    ac_cv_prog_ac_ct_STRIP="strip"
2853c9e4df9bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2854c37a63b8Smrg    break 2
2855c37a63b8Smrg  fi
2856c37a63b8Smrgdone
2857736a7e2cSmrg  done
2858c37a63b8SmrgIFS=$as_save_IFS
2859c37a63b8Smrg
2860c37a63b8Smrgfi
2861c37a63b8Smrgfi
2862c37a63b8Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2863c37a63b8Smrgif test -n "$ac_ct_STRIP"; then
2864c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2865c9e4df9bSmrgprintf "%s\n" "$ac_ct_STRIP" >&6; }
2866c37a63b8Smrgelse
2867c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868c9e4df9bSmrgprintf "%s\n" "no" >&6; }
2869c37a63b8Smrgfi
2870c37a63b8Smrg
2871c37a63b8Smrg  if test "x$ac_ct_STRIP" = x; then
2872c37a63b8Smrg    STRIP=":"
2873c37a63b8Smrg  else
2874c37a63b8Smrg    case $cross_compiling:$ac_tool_warned in
2875c37a63b8Smrgyes:)
2876c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2877c9e4df9bSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2878c37a63b8Smrgac_tool_warned=yes ;;
2879c37a63b8Smrgesac
2880c37a63b8Smrg    STRIP=$ac_ct_STRIP
2881c37a63b8Smrg  fi
2882c37a63b8Smrgelse
2883c37a63b8Smrg  STRIP="$ac_cv_prog_STRIP"
2884c37a63b8Smrgfi
2885c37a63b8Smrg
2886c37a63b8Smrgfi
2887c37a63b8SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2888c37a63b8Smrg
2889c9e4df9bSmrg
2890c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2891c9e4df9bSmrgprintf %s "checking for a race-free mkdir -p... " >&6; }
2892c37a63b8Smrgif test -z "$MKDIR_P"; then
2893c9e4df9bSmrg  if test ${ac_cv_path_mkdir+y}
2894c9e4df9bSmrgthen :
2895c9e4df9bSmrg  printf %s "(cached) " >&6
2896c9e4df9bSmrgelse $as_nop
2897c37a63b8Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898c37a63b8Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2899c37a63b8Smrgdo
2900c37a63b8Smrg  IFS=$as_save_IFS
2901c9e4df9bSmrg  case $as_dir in #(((
2902c9e4df9bSmrg    '') as_dir=./ ;;
2903c9e4df9bSmrg    */) ;;
2904c9e4df9bSmrg    *) as_dir=$as_dir/ ;;
2905c9e4df9bSmrg  esac
2906736a7e2cSmrg    for ac_prog in mkdir gmkdir; do
2907c37a63b8Smrg	 for ac_exec_ext in '' $ac_executable_extensions; do
2908c9e4df9bSmrg	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2909c9e4df9bSmrg	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2910c9e4df9bSmrg	     'mkdir ('*'coreutils) '* | \
2911c9e4df9bSmrg	     'BusyBox '* | \
2912c37a63b8Smrg	     'mkdir (fileutils) '4.1*)
2913c9e4df9bSmrg	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2914c37a63b8Smrg	       break 3;;
2915c37a63b8Smrg	   esac
2916c37a63b8Smrg	 done
2917c37a63b8Smrg       done
2918736a7e2cSmrg  done
2919c37a63b8SmrgIFS=$as_save_IFS
2920c37a63b8Smrg
2921264fa531Smrgfi
2922264fa531Smrg
2923736a7e2cSmrg  test -d ./--version && rmdir ./--version
2924c9e4df9bSmrg  if test ${ac_cv_path_mkdir+y}; then
2925c37a63b8Smrg    MKDIR_P="$ac_cv_path_mkdir -p"
2926c37a63b8Smrg  else
2927c37a63b8Smrg    # As a last resort, use the slow shell script.  Don't cache a
2928c37a63b8Smrg    # value for MKDIR_P within a source directory, because that will
2929c37a63b8Smrg    # break other packages using the cache if that directory is
2930c37a63b8Smrg    # removed, or if the value is a relative name.
2931c37a63b8Smrg    MKDIR_P="$ac_install_sh -d"
2932c37a63b8Smrg  fi
2933c37a63b8Smrgfi
2934c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2935c9e4df9bSmrgprintf "%s\n" "$MKDIR_P" >&6; }
2936c37a63b8Smrg
2937264fa531Smrgfor ac_prog in gawk mawk nawk awk
2938264fa531Smrgdo
2939264fa531Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
2940264fa531Smrgset dummy $ac_prog; ac_word=$2
2941c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2942c9e4df9bSmrgprintf %s "checking for $ac_word... " >&6; }
2943c9e4df9bSmrgif test ${ac_cv_prog_AWK+y}
2944c9e4df9bSmrgthen :
2945c9e4df9bSmrg  printf %s "(cached) " >&6
2946c9e4df9bSmrgelse $as_nop
2947264fa531Smrg  if test -n "$AWK"; then
2948264fa531Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2949264fa531Smrgelse
2950264fa531Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951264fa531Smrgfor as_dir in $PATH
2952264fa531Smrgdo
2953264fa531Smrg  IFS=$as_save_IFS
2954c9e4df9bSmrg  case $as_dir in #(((
2955c9e4df9bSmrg    '') as_dir=./ ;;
2956c9e4df9bSmrg    */) ;;
2957c9e4df9bSmrg    *) as_dir=$as_dir/ ;;
2958c9e4df9bSmrg  esac
2959736a7e2cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2960c9e4df9bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2961264fa531Smrg    ac_cv_prog_AWK="$ac_prog"
2962c9e4df9bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2963264fa531Smrg    break 2
2964264fa531Smrg  fi
2965264fa531Smrgdone
2966736a7e2cSmrg  done
2967c37a63b8SmrgIFS=$as_save_IFS
2968264fa531Smrg
2969264fa531Smrgfi
2970264fa531Smrgfi
2971264fa531SmrgAWK=$ac_cv_prog_AWK
2972264fa531Smrgif test -n "$AWK"; then
2973c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2974c9e4df9bSmrgprintf "%s\n" "$AWK" >&6; }
2975264fa531Smrgelse
2976c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977c9e4df9bSmrgprintf "%s\n" "no" >&6; }
2978264fa531Smrgfi
2979264fa531Smrg
2980c37a63b8Smrg
2981264fa531Smrg  test -n "$AWK" && break
2982264fa531Smrgdone
2983264fa531Smrg
2984c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2985c9e4df9bSmrgprintf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2986c37a63b8Smrgset x ${MAKE-make}
2987c9e4df9bSmrgac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2988c9e4df9bSmrgif eval test \${ac_cv_prog_make_${ac_make}_set+y}
2989c9e4df9bSmrgthen :
2990c9e4df9bSmrg  printf %s "(cached) " >&6
2991c9e4df9bSmrgelse $as_nop
2992264fa531Smrg  cat >conftest.make <<\_ACEOF
2993c37a63b8SmrgSHELL = /bin/sh
2994264fa531Smrgall:
2995c37a63b8Smrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
2996264fa531Smrg_ACEOF
2997736a7e2cSmrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2998c37a63b8Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
2999c37a63b8Smrg  *@@@%%%=?*=@@@%%%*)
3000c37a63b8Smrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
3001c37a63b8Smrg  *)
3002c37a63b8Smrg    eval ac_cv_prog_make_${ac_make}_set=no;;
3003c37a63b8Smrgesac
3004264fa531Smrgrm -f conftest.make
3005264fa531Smrgfi
3006c37a63b8Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3007c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3008c9e4df9bSmrgprintf "%s\n" "yes" >&6; }
3009264fa531Smrg  SET_MAKE=
3010264fa531Smrgelse
3011c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012c9e4df9bSmrgprintf "%s\n" "no" >&6; }
3013264fa531Smrg  SET_MAKE="MAKE=${MAKE-make}"
3014264fa531Smrgfi
3015264fa531Smrg
3016264fa531Smrgrm -rf .tst 2>/dev/null
3017264fa531Smrgmkdir .tst 2>/dev/null
3018264fa531Smrgif test -d .tst; then
3019264fa531Smrg  am__leading_dot=.
3020264fa531Smrgelse
3021264fa531Smrg  am__leading_dot=_
3022264fa531Smrgfi
3023264fa531Smrgrmdir .tst 2>/dev/null
3024264fa531Smrg
3025533545b5Smrg# Check whether --enable-silent-rules was given.
3026c9e4df9bSmrgif test ${enable_silent_rules+y}
3027c9e4df9bSmrgthen :
3028533545b5Smrg  enableval=$enable_silent_rules;
3029533545b5Smrgfi
3030533545b5Smrg
3031533545b5Smrgcase $enable_silent_rules in # (((
3032533545b5Smrg  yes) AM_DEFAULT_VERBOSITY=0;;
3033533545b5Smrg   no) AM_DEFAULT_VERBOSITY=1;;
3034533545b5Smrg    *) AM_DEFAULT_VERBOSITY=1;;
3035533545b5Smrgesac
3036533545b5Smrgam_make=${MAKE-make}
3037c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3038c9e4df9bSmrgprintf %s "checking whether $am_make supports nested variables... " >&6; }
3039c9e4df9bSmrgif test ${am_cv_make_support_nested_variables+y}
3040c9e4df9bSmrgthen :
3041c9e4df9bSmrg  printf %s "(cached) " >&6
3042c9e4df9bSmrgelse $as_nop
3043c9e4df9bSmrg  if printf "%s\n" 'TRUE=$(BAR$(V))
3044533545b5SmrgBAR0=false
3045533545b5SmrgBAR1=true
3046533545b5SmrgV=1
3047533545b5Smrgam__doit:
3048533545b5Smrg	@$(TRUE)
3049533545b5Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3050533545b5Smrg  am_cv_make_support_nested_variables=yes
3051533545b5Smrgelse
3052533545b5Smrg  am_cv_make_support_nested_variables=no
3053533545b5Smrgfi
3054533545b5Smrgfi
3055c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3056c9e4df9bSmrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3057533545b5Smrgif test $am_cv_make_support_nested_variables = yes; then
3058533545b5Smrg    AM_V='$(V)'
3059533545b5Smrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3060533545b5Smrgelse
3061533545b5Smrg  AM_V=$AM_DEFAULT_VERBOSITY
3062533545b5Smrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3063533545b5Smrgfi
3064533545b5SmrgAM_BACKSLASH='\'
3065533545b5Smrg
3066c37a63b8Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
3067c37a63b8Smrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3068c37a63b8Smrg  # is not polluted with repeated "-I."
3069c37a63b8Smrg  am__isrc=' -I$(srcdir)'
3070c37a63b8Smrg  # test to see if srcdir already configured
3071c37a63b8Smrg  if test -f $srcdir/config.status; then
3072736a7e2cSmrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3073c37a63b8Smrg  fi
3074264fa531Smrgfi
3075264fa531Smrg
3076264fa531Smrg# test whether we have cygpath
3077264fa531Smrgif test -z "$CYGPATH_W"; then
3078264fa531Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
3079264fa531Smrg    CYGPATH_W='cygpath -w'
3080264fa531Smrg  else
3081264fa531Smrg    CYGPATH_W=echo
3082264fa531Smrg  fi
3083264fa531Smrgfi
3084264fa531Smrg
3085264fa531Smrg
3086264fa531Smrg# Define the identity of the package.
3087264fa531Smrg PACKAGE='x11perf'
3088c9e4df9bSmrg VERSION='1.6.2'
3089264fa531Smrg
3090264fa531Smrg
3091c9e4df9bSmrgprintf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3092264fa531Smrg
3093264fa531Smrg
3094c9e4df9bSmrgprintf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3095264fa531Smrg
3096264fa531Smrg# Some tools Automake needs.
3097264fa531Smrg
3098264fa531SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3099264fa531Smrg
3100264fa531Smrg
3101264fa531SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3102264fa531Smrg
3103264fa531Smrg
3104264fa531SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3105264fa531Smrg
3106264fa531Smrg
3107264fa531SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3108264fa531Smrg
3109264fa531Smrg
3110264fa531SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3111264fa531Smrg
3112533545b5Smrg# For better backward compatibility.  To be removed once Automake 1.9.x
3113533545b5Smrg# dies out for good.  For more background, see:
3114c9e4df9bSmrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3115c9e4df9bSmrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3116533545b5Smrgmkdir_p='$(MKDIR_P)'
3117264fa531Smrg
3118533545b5Smrg# We need awk for the "check" target (and possibly the TAP driver).  The
3119533545b5Smrg# system "awk" is bad on some platforms.
3120533545b5Smrg# Always define AMTAR for backward compatibility.  Yes, it's still used
3121533545b5Smrg# in the wild :-(  We should find a proper way to deprecate it ...
3122533545b5SmrgAMTAR='$${TAR-tar}'
3123264fa531Smrg
3124264fa531Smrg
3125533545b5Smrg# We'll loop over all known methods to create a tar archive until one works.
3126533545b5Smrg_am_tools='gnutar  pax cpio none'
3127264fa531Smrg
3128533545b5Smrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3129264fa531Smrg
3130264fa531Smrg
3131264fa531Smrg
3132264fa531Smrg
3133264fa531Smrg
3134c9e4df9bSmrg# Variables for tags utilities; see am/tags.am
3135c9e4df9bSmrgif test -z "$CTAGS"; then
3136c9e4df9bSmrg  CTAGS=ctags
3137c9e4df9bSmrgfi
3138c9e4df9bSmrg
3139c9e4df9bSmrgif test -z "$ETAGS"; then
3140c9e4df9bSmrg  ETAGS=etags
3141c9e4df9bSmrgfi
3142c9e4df9bSmrg
3143c9e4df9bSmrgif test -z "$CSCOPE"; then
3144c9e4df9bSmrg  CSCOPE=cscope
3145c9e4df9bSmrgfi
3146c9e4df9bSmrg
3147c9e4df9bSmrg
3148264fa531Smrg
3149533545b5Smrg# POSIX will say in a future version that running "rm -f" with no argument
3150533545b5Smrg# is OK; and we want to be able to make that assumption in our Makefile
3151533545b5Smrg# recipes.  So use an aggressive probe to check that the usage we want is
3152533545b5Smrg# actually supported "in the wild" to an acceptable degree.
3153533545b5Smrg# See automake bug#10828.
3154533545b5Smrg# To make any issue more visible, cause the running configure to be aborted
3155533545b5Smrg# by default if the 'rm' program in use doesn't match our expectations; the
3156533545b5Smrg# user can still override this though.
3157533545b5Smrgif rm -f && rm -fr && rm -rf; then : OK; else
3158533545b5Smrg  cat >&2 <<'END'
3159533545b5SmrgOops!
3160533545b5Smrg
3161533545b5SmrgYour 'rm' program seems unable to run without file operands specified
3162533545b5Smrgon the command line, even when the '-f' option is present.  This is contrary
3163533545b5Smrgto the behaviour of most rm programs out there, and not conforming with
3164533545b5Smrgthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3165533545b5Smrg
3166533545b5SmrgPlease tell bug-automake@gnu.org about your system, including the value
3167533545b5Smrgof your $PATH and any error possibly output before this message.  This
3168533545b5Smrgcan help us improve future automake versions.
3169533545b5Smrg
3170533545b5SmrgEND
3171533545b5Smrg  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3172533545b5Smrg    echo 'Configuration will proceed anyway, since you have set the' >&2
3173533545b5Smrg    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3174533545b5Smrg    echo >&2
3175533545b5Smrg  else
3176533545b5Smrg    cat >&2 <<'END'
3177533545b5SmrgAborting the configuration process, to ensure you take notice of the issue.
3178533545b5Smrg
3179533545b5SmrgYou can download and install GNU coreutils to get an 'rm' implementation
3180c9e4df9bSmrgthat behaves properly: <https://www.gnu.org/software/coreutils/>.
3181533545b5Smrg
3182533545b5SmrgIf you want to complete the configuration process using your problematic
3183533545b5Smrg'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3184533545b5Smrgto "yes", and re-run configure.
3185264fa531Smrg
3186533545b5SmrgEND
3187533545b5Smrg    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3188533545b5Smrg  fi
3189533545b5Smrgfi
3190264fa531Smrg
3191264fa531Smrg
3192736a7e2cSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3193264fa531Smrg
3194c37a63b8Smrg
3195c37a63b8Smrg
3196c37a63b8Smrg
3197c37a63b8Smrg
3198c37a63b8Smrg
3199c37a63b8Smrg
3200c37a63b8Smrg
3201c37a63b8Smrg
3202c37a63b8Smrg
3203c37a63b8Smrg
3204c9e4df9bSmrg
3205c9e4df9bSmrg
3206c9e4df9bSmrg
3207c9e4df9bSmrg
3208c9e4df9bSmrg
3209c9e4df9bSmrg
3210c9e4df9bSmrg
3211c9e4df9bSmrg
3212c9e4df9bSmrg
3213736a7e2cSmrgDEPDIR="${am__leading_dot}deps"
3214c37a63b8Smrg
3215736a7e2cSmrgac_config_commands="$ac_config_commands depfiles"
3216c37a63b8Smrg
3217c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3218c9e4df9bSmrgprintf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3219c9e4df9bSmrgcat > confinc.mk << 'END'
3220736a7e2cSmrgam__doit:
3221c9e4df9bSmrg	@echo this is the am__doit target >confinc.out
3222736a7e2cSmrg.PHONY: am__doit
3223736a7e2cSmrgEND
3224736a7e2cSmrgam__include="#"
3225736a7e2cSmrgam__quote=
3226c9e4df9bSmrg# BSD make does it like this.
3227c9e4df9bSmrgecho '.include "confinc.mk" # ignored' > confmf.BSD
3228c9e4df9bSmrg# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3229c9e4df9bSmrgecho 'include confinc.mk # ignored' > confmf.GNU
3230c9e4df9bSmrg_am_result=no
3231c9e4df9bSmrgfor s in GNU BSD; do
3232c9e4df9bSmrg  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3233c9e4df9bSmrg   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3234c9e4df9bSmrg   ac_status=$?
3235c9e4df9bSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236c9e4df9bSmrg   (exit $ac_status); }
3237c9e4df9bSmrg  case $?:`cat confinc.out 2>/dev/null` in #(
3238c9e4df9bSmrg  '0:this is the am__doit target') :
3239c9e4df9bSmrg    case $s in #(
3240c9e4df9bSmrg  BSD) :
3241c9e4df9bSmrg    am__include='.include' am__quote='"' ;; #(
3242c9e4df9bSmrg  *) :
3243c9e4df9bSmrg    am__include='include' am__quote='' ;;
3244c9e4df9bSmrgesac ;; #(
3245c9e4df9bSmrg  *) :
3246736a7e2cSmrg     ;;
3247c9e4df9bSmrgesac
3248c9e4df9bSmrg  if test "$am__include" != "#"; then
3249c9e4df9bSmrg    _am_result="yes ($s style)"
3250c9e4df9bSmrg    break
3251c9e4df9bSmrg  fi
3252c9e4df9bSmrgdone
3253c9e4df9bSmrgrm -f confinc.* confmf.*
3254c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3255c9e4df9bSmrgprintf "%s\n" "${_am_result}" >&6; }
3256736a7e2cSmrg
3257736a7e2cSmrg# Check whether --enable-dependency-tracking was given.
3258c9e4df9bSmrgif test ${enable_dependency_tracking+y}
3259c9e4df9bSmrgthen :
3260736a7e2cSmrg  enableval=$enable_dependency_tracking;
3261736a7e2cSmrgfi
3262736a7e2cSmrg
3263736a7e2cSmrgif test "x$enable_dependency_tracking" != xno; then
3264736a7e2cSmrg  am_depcomp="$ac_aux_dir/depcomp"
3265736a7e2cSmrg  AMDEPBACKSLASH='\'
3266533545b5Smrg  am__nodep='_no'
3267736a7e2cSmrgfi
3268736a7e2cSmrg if test "x$enable_dependency_tracking" != xno; then
3269736a7e2cSmrg  AMDEP_TRUE=
3270736a7e2cSmrg  AMDEP_FALSE='#'
3271736a7e2cSmrgelse
3272736a7e2cSmrg  AMDEP_TRUE='#'
3273736a7e2cSmrg  AMDEP_FALSE=
3274736a7e2cSmrgfi
3275736a7e2cSmrg
3276736a7e2cSmrg
3277736a7e2cSmrgac_ext=c
3278736a7e2cSmrgac_cpp='$CPP $CPPFLAGS'
3279736a7e2cSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3280736a7e2cSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3281736a7e2cSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3282736a7e2cSmrgif test -n "$ac_tool_prefix"; then
3283736a7e2cSmrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3284736a7e2cSmrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
3285c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3286c9e4df9bSmrgprintf %s "checking for $ac_word... " >&6; }
3287c9e4df9bSmrgif test ${ac_cv_prog_CC+y}
3288c9e4df9bSmrgthen :
3289c9e4df9bSmrg  printf %s "(cached) " >&6
3290c9e4df9bSmrgelse $as_nop
3291736a7e2cSmrg  if test -n "$CC"; then
3292736a7e2cSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
3293736a7e2cSmrgelse
3294736a7e2cSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295736a7e2cSmrgfor as_dir in $PATH
3296736a7e2cSmrgdo
3297736a7e2cSmrg  IFS=$as_save_IFS
3298c9e4df9bSmrg  case $as_dir in #(((
3299c9e4df9bSmrg    '') as_dir=./ ;;
3300c9e4df9bSmrg    */) ;;
3301c9e4df9bSmrg    *) as_dir=$as_dir/ ;;
3302c9e4df9bSmrg  esac
3303736a7e2cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3304c9e4df9bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3305736a7e2cSmrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3306c9e4df9bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3307736a7e2cSmrg    break 2
3308736a7e2cSmrg  fi
3309736a7e2cSmrgdone
3310736a7e2cSmrg  done
3311736a7e2cSmrgIFS=$as_save_IFS
3312736a7e2cSmrg
3313736a7e2cSmrgfi
3314736a7e2cSmrgfi
3315736a7e2cSmrgCC=$ac_cv_prog_CC
3316264fa531Smrgif test -n "$CC"; then
3317c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3318c9e4df9bSmrgprintf "%s\n" "$CC" >&6; }
3319264fa531Smrgelse
3320c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3321c9e4df9bSmrgprintf "%s\n" "no" >&6; }
3322264fa531Smrgfi
3323264fa531Smrg
3324c37a63b8Smrg
3325264fa531Smrgfi
3326264fa531Smrgif test -z "$ac_cv_prog_CC"; then
3327264fa531Smrg  ac_ct_CC=$CC
3328264fa531Smrg  # Extract the first word of "gcc", so it can be a program name with args.
3329264fa531Smrgset dummy gcc; ac_word=$2
3330c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3331c9e4df9bSmrgprintf %s "checking for $ac_word... " >&6; }
3332c9e4df9bSmrgif test ${ac_cv_prog_ac_ct_CC+y}
3333c9e4df9bSmrgthen :
3334c9e4df9bSmrg  printf %s "(cached) " >&6
3335c9e4df9bSmrgelse $as_nop
3336264fa531Smrg  if test -n "$ac_ct_CC"; then
3337264fa531Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3338264fa531Smrgelse
3339264fa531Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340264fa531Smrgfor as_dir in $PATH
3341264fa531Smrgdo
3342264fa531Smrg  IFS=$as_save_IFS
3343c9e4df9bSmrg  case $as_dir in #(((
3344c9e4df9bSmrg    '') as_dir=./ ;;
3345c9e4df9bSmrg    */) ;;
3346c9e4df9bSmrg    *) as_dir=$as_dir/ ;;
3347c9e4df9bSmrg  esac
3348736a7e2cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3349c9e4df9bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3350264fa531Smrg    ac_cv_prog_ac_ct_CC="gcc"
3351c9e4df9bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3352264fa531Smrg    break 2
3353264fa531Smrg  fi
3354264fa531Smrgdone
3355736a7e2cSmrg  done
3356c37a63b8SmrgIFS=$as_save_IFS
3357264fa531Smrg
3358264fa531Smrgfi
3359264fa531Smrgfi
3360264fa531Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
3361264fa531Smrgif test -n "$ac_ct_CC"; then
3362c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3363c9e4df9bSmrgprintf "%s\n" "$ac_ct_CC" >&6; }
3364264fa531Smrgelse
3365c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366c9e4df9bSmrgprintf "%s\n" "no" >&6; }
3367264fa531Smrgfi
3368264fa531Smrg
3369c37a63b8Smrg  if test "x$ac_ct_CC" = x; then
3370c37a63b8Smrg    CC=""
3371c37a63b8Smrg  else
3372c37a63b8Smrg    case $cross_compiling:$ac_tool_warned in
3373c37a63b8Smrgyes:)
3374c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3375c9e4df9bSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3376c37a63b8Smrgac_tool_warned=yes ;;
3377c37a63b8Smrgesac
3378c37a63b8Smrg    CC=$ac_ct_CC
3379c37a63b8Smrg  fi
3380264fa531Smrgelse
3381264fa531Smrg  CC="$ac_cv_prog_CC"
3382264fa531Smrgfi
3383264fa531Smrg
3384264fa531Smrgif test -z "$CC"; then
3385c37a63b8Smrg          if test -n "$ac_tool_prefix"; then
3386c37a63b8Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3387264fa531Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
3388c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3389c9e4df9bSmrgprintf %s "checking for $ac_word... " >&6; }
3390c9e4df9bSmrgif test ${ac_cv_prog_CC+y}
3391c9e4df9bSmrgthen :
3392c9e4df9bSmrg  printf %s "(cached) " >&6
3393c9e4df9bSmrgelse $as_nop
3394264fa531Smrg  if test -n "$CC"; then
3395264fa531Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
3396264fa531Smrgelse
3397264fa531Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3398264fa531Smrgfor as_dir in $PATH
3399264fa531Smrgdo
3400264fa531Smrg  IFS=$as_save_IFS
3401c9e4df9bSmrg  case $as_dir in #(((
3402c9e4df9bSmrg    '') as_dir=./ ;;
3403c9e4df9bSmrg    */) ;;
3404c9e4df9bSmrg    *) as_dir=$as_dir/ ;;
3405c9e4df9bSmrg  esac
3406736a7e2cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3407c9e4df9bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3408264fa531Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
3409c9e4df9bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3410264fa531Smrg    break 2
3411264fa531Smrg  fi
3412264fa531Smrgdone
3413736a7e2cSmrg  done
3414c37a63b8SmrgIFS=$as_save_IFS
3415264fa531Smrg
3416264fa531Smrgfi
3417264fa531Smrgfi
3418264fa531SmrgCC=$ac_cv_prog_CC
3419264fa531Smrgif test -n "$CC"; then
3420c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3421c9e4df9bSmrgprintf "%s\n" "$CC" >&6; }
3422264fa531Smrgelse
3423c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3424c9e4df9bSmrgprintf "%s\n" "no" >&6; }
3425264fa531Smrgfi
3426264fa531Smrg
3427264fa531Smrg
3428c37a63b8Smrg  fi
3429264fa531Smrgfi
3430264fa531Smrgif test -z "$CC"; then
3431264fa531Smrg  # Extract the first word of "cc", so it can be a program name with args.
3432264fa531Smrgset dummy cc; ac_word=$2
3433c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3434c9e4df9bSmrgprintf %s "checking for $ac_word... " >&6; }
3435c9e4df9bSmrgif test ${ac_cv_prog_CC+y}
3436c9e4df9bSmrgthen :
3437c9e4df9bSmrg  printf %s "(cached) " >&6
3438c9e4df9bSmrgelse $as_nop
3439264fa531Smrg  if test -n "$CC"; then
3440264fa531Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
3441264fa531Smrgelse
3442264fa531Smrg  ac_prog_rejected=no
3443264fa531Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444264fa531Smrgfor as_dir in $PATH
3445264fa531Smrgdo
3446264fa531Smrg  IFS=$as_save_IFS
3447c9e4df9bSmrg  case $as_dir in #(((
3448c9e4df9bSmrg    '') as_dir=./ ;;
3449c9e4df9bSmrg    */) ;;
3450c9e4df9bSmrg    *) as_dir=$as_dir/ ;;
3451c9e4df9bSmrg  esac
3452736a7e2cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3453c9e4df9bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3454c9e4df9bSmrg    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3455264fa531Smrg       ac_prog_rejected=yes
3456264fa531Smrg       continue
3457264fa531Smrg     fi
3458264fa531Smrg    ac_cv_prog_CC="cc"
3459c9e4df9bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3460264fa531Smrg    break 2
3461264fa531Smrg  fi
3462264fa531Smrgdone
3463736a7e2cSmrg  done
3464c37a63b8SmrgIFS=$as_save_IFS
3465264fa531Smrg
3466264fa531Smrgif test $ac_prog_rejected = yes; then
3467264fa531Smrg  # We found a bogon in the path, so make sure we never use it.
3468264fa531Smrg  set dummy $ac_cv_prog_CC
3469264fa531Smrg  shift
3470264fa531Smrg  if test $# != 0; then
3471264fa531Smrg    # We chose a different compiler from the bogus one.
3472264fa531Smrg    # However, it has the same basename, so the bogon will be chosen
3473264fa531Smrg    # first if we set CC to just the basename; use the full file name.
3474264fa531Smrg    shift
3475c9e4df9bSmrg    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3476264fa531Smrg  fi
3477264fa531Smrgfi
3478264fa531Smrgfi
3479264fa531Smrgfi
3480264fa531SmrgCC=$ac_cv_prog_CC
3481264fa531Smrgif test -n "$CC"; then
3482c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3483c9e4df9bSmrgprintf "%s\n" "$CC" >&6; }
3484264fa531Smrgelse
3485c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3486c9e4df9bSmrgprintf "%s\n" "no" >&6; }
3487264fa531Smrgfi
3488264fa531Smrg
3489c37a63b8Smrg
3490264fa531Smrgfi
3491264fa531Smrgif test -z "$CC"; then
3492264fa531Smrg  if test -n "$ac_tool_prefix"; then
3493c37a63b8Smrg  for ac_prog in cl.exe
3494264fa531Smrg  do
3495264fa531Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3496264fa531Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
3497c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498c9e4df9bSmrgprintf %s "checking for $ac_word... " >&6; }
3499c9e4df9bSmrgif test ${ac_cv_prog_CC+y}
3500c9e4df9bSmrgthen :
3501c9e4df9bSmrg  printf %s "(cached) " >&6
3502c9e4df9bSmrgelse $as_nop
3503264fa531Smrg  if test -n "$CC"; then
3504264fa531Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
3505264fa531Smrgelse
3506264fa531Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507264fa531Smrgfor as_dir in $PATH
3508264fa531Smrgdo
3509264fa531Smrg  IFS=$as_save_IFS
3510c9e4df9bSmrg  case $as_dir in #(((
3511c9e4df9bSmrg    '') as_dir=./ ;;
3512c9e4df9bSmrg    */) ;;
3513c9e4df9bSmrg    *) as_dir=$as_dir/ ;;
3514c9e4df9bSmrg  esac
3515736a7e2cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3516c9e4df9bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3517264fa531Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3518c9e4df9bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3519264fa531Smrg    break 2
3520264fa531Smrg  fi
3521264fa531Smrgdone
3522736a7e2cSmrg  done
3523c37a63b8SmrgIFS=$as_save_IFS
3524264fa531Smrg
3525264fa531Smrgfi
3526264fa531Smrgfi
3527264fa531SmrgCC=$ac_cv_prog_CC
3528264fa531Smrgif test -n "$CC"; then
3529c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3530c9e4df9bSmrgprintf "%s\n" "$CC" >&6; }
3531264fa531Smrgelse
3532c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3533c9e4df9bSmrgprintf "%s\n" "no" >&6; }
3534264fa531Smrgfi
3535264fa531Smrg
3536c37a63b8Smrg
3537264fa531Smrg    test -n "$CC" && break
3538264fa531Smrg  done
3539264fa531Smrgfi
3540264fa531Smrgif test -z "$CC"; then
3541264fa531Smrg  ac_ct_CC=$CC
3542c37a63b8Smrg  for ac_prog in cl.exe
3543264fa531Smrgdo
3544264fa531Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
3545264fa531Smrgset dummy $ac_prog; ac_word=$2
3546c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3547c9e4df9bSmrgprintf %s "checking for $ac_word... " >&6; }
3548c9e4df9bSmrgif test ${ac_cv_prog_ac_ct_CC+y}
3549c9e4df9bSmrgthen :
3550c9e4df9bSmrg  printf %s "(cached) " >&6
3551c9e4df9bSmrgelse $as_nop
3552264fa531Smrg  if test -n "$ac_ct_CC"; then
3553264fa531Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3554264fa531Smrgelse
3555264fa531Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3556264fa531Smrgfor as_dir in $PATH
3557264fa531Smrgdo
3558264fa531Smrg  IFS=$as_save_IFS
3559c9e4df9bSmrg  case $as_dir in #(((
3560c9e4df9bSmrg    '') as_dir=./ ;;
3561c9e4df9bSmrg    */) ;;
3562c9e4df9bSmrg    *) as_dir=$as_dir/ ;;
3563c9e4df9bSmrg  esac
3564736a7e2cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3565c9e4df9bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3566264fa531Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
3567c9e4df9bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3568264fa531Smrg    break 2
3569264fa531Smrg  fi
3570264fa531Smrgdone
3571736a7e2cSmrg  done
3572c37a63b8SmrgIFS=$as_save_IFS
3573264fa531Smrg
3574264fa531Smrgfi
3575264fa531Smrgfi
3576264fa531Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
3577264fa531Smrgif test -n "$ac_ct_CC"; then
3578c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3579c9e4df9bSmrgprintf "%s\n" "$ac_ct_CC" >&6; }
3580264fa531Smrgelse
3581c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3582c9e4df9bSmrgprintf "%s\n" "no" >&6; }
3583264fa531Smrgfi
3584264fa531Smrg
3585c37a63b8Smrg
3586264fa531Smrg  test -n "$ac_ct_CC" && break
3587264fa531Smrgdone
3588264fa531Smrg
3589c37a63b8Smrg  if test "x$ac_ct_CC" = x; then
3590c37a63b8Smrg    CC=""
3591c37a63b8Smrg  else
3592c37a63b8Smrg    case $cross_compiling:$ac_tool_warned in
3593c37a63b8Smrgyes:)
3594c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3595c9e4df9bSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3596c9e4df9bSmrgac_tool_warned=yes ;;
3597c9e4df9bSmrgesac
3598c9e4df9bSmrg    CC=$ac_ct_CC
3599c9e4df9bSmrg  fi
3600c9e4df9bSmrgfi
3601c9e4df9bSmrg
3602c9e4df9bSmrgfi
3603c9e4df9bSmrgif test -z "$CC"; then
3604c9e4df9bSmrg  if test -n "$ac_tool_prefix"; then
3605c9e4df9bSmrg  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3606c9e4df9bSmrgset dummy ${ac_tool_prefix}clang; ac_word=$2
3607c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3608c9e4df9bSmrgprintf %s "checking for $ac_word... " >&6; }
3609c9e4df9bSmrgif test ${ac_cv_prog_CC+y}
3610c9e4df9bSmrgthen :
3611c9e4df9bSmrg  printf %s "(cached) " >&6
3612c9e4df9bSmrgelse $as_nop
3613c9e4df9bSmrg  if test -n "$CC"; then
3614c9e4df9bSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
3615c9e4df9bSmrgelse
3616c9e4df9bSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3617c9e4df9bSmrgfor as_dir in $PATH
3618c9e4df9bSmrgdo
3619c9e4df9bSmrg  IFS=$as_save_IFS
3620c9e4df9bSmrg  case $as_dir in #(((
3621c9e4df9bSmrg    '') as_dir=./ ;;
3622c9e4df9bSmrg    */) ;;
3623c9e4df9bSmrg    *) as_dir=$as_dir/ ;;
3624c9e4df9bSmrg  esac
3625c9e4df9bSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3626c9e4df9bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3627c9e4df9bSmrg    ac_cv_prog_CC="${ac_tool_prefix}clang"
3628c9e4df9bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3629c9e4df9bSmrg    break 2
3630c9e4df9bSmrg  fi
3631c9e4df9bSmrgdone
3632c9e4df9bSmrg  done
3633c9e4df9bSmrgIFS=$as_save_IFS
3634c9e4df9bSmrg
3635c9e4df9bSmrgfi
3636c9e4df9bSmrgfi
3637c9e4df9bSmrgCC=$ac_cv_prog_CC
3638c9e4df9bSmrgif test -n "$CC"; then
3639c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3640c9e4df9bSmrgprintf "%s\n" "$CC" >&6; }
3641c9e4df9bSmrgelse
3642c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3643c9e4df9bSmrgprintf "%s\n" "no" >&6; }
3644c9e4df9bSmrgfi
3645c9e4df9bSmrg
3646c9e4df9bSmrg
3647c9e4df9bSmrgfi
3648c9e4df9bSmrgif test -z "$ac_cv_prog_CC"; then
3649c9e4df9bSmrg  ac_ct_CC=$CC
3650c9e4df9bSmrg  # Extract the first word of "clang", so it can be a program name with args.
3651c9e4df9bSmrgset dummy clang; ac_word=$2
3652c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3653c9e4df9bSmrgprintf %s "checking for $ac_word... " >&6; }
3654c9e4df9bSmrgif test ${ac_cv_prog_ac_ct_CC+y}
3655c9e4df9bSmrgthen :
3656c9e4df9bSmrg  printf %s "(cached) " >&6
3657c9e4df9bSmrgelse $as_nop
3658c9e4df9bSmrg  if test -n "$ac_ct_CC"; then
3659c9e4df9bSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3660c9e4df9bSmrgelse
3661c9e4df9bSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662c9e4df9bSmrgfor as_dir in $PATH
3663c9e4df9bSmrgdo
3664c9e4df9bSmrg  IFS=$as_save_IFS
3665c9e4df9bSmrg  case $as_dir in #(((
3666c9e4df9bSmrg    '') as_dir=./ ;;
3667c9e4df9bSmrg    */) ;;
3668c9e4df9bSmrg    *) as_dir=$as_dir/ ;;
3669c9e4df9bSmrg  esac
3670c9e4df9bSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3671c9e4df9bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3672c9e4df9bSmrg    ac_cv_prog_ac_ct_CC="clang"
3673c9e4df9bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3674c9e4df9bSmrg    break 2
3675c9e4df9bSmrg  fi
3676c9e4df9bSmrgdone
3677c9e4df9bSmrg  done
3678c9e4df9bSmrgIFS=$as_save_IFS
3679c9e4df9bSmrg
3680c9e4df9bSmrgfi
3681c9e4df9bSmrgfi
3682c9e4df9bSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
3683c9e4df9bSmrgif test -n "$ac_ct_CC"; then
3684c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3685c9e4df9bSmrgprintf "%s\n" "$ac_ct_CC" >&6; }
3686c9e4df9bSmrgelse
3687c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3688c9e4df9bSmrgprintf "%s\n" "no" >&6; }
3689c9e4df9bSmrgfi
3690c9e4df9bSmrg
3691c9e4df9bSmrg  if test "x$ac_ct_CC" = x; then
3692c9e4df9bSmrg    CC=""
3693c9e4df9bSmrg  else
3694c9e4df9bSmrg    case $cross_compiling:$ac_tool_warned in
3695c9e4df9bSmrgyes:)
3696c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3697c9e4df9bSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3698c37a63b8Smrgac_tool_warned=yes ;;
3699c37a63b8Smrgesac
3700c37a63b8Smrg    CC=$ac_ct_CC
3701c37a63b8Smrg  fi
3702c9e4df9bSmrgelse
3703c9e4df9bSmrg  CC="$ac_cv_prog_CC"
3704264fa531Smrgfi
3705264fa531Smrg
3706264fa531Smrgfi
3707264fa531Smrg
3708264fa531Smrg
3709c9e4df9bSmrgtest -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3710c9e4df9bSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3711736a7e2cSmrgas_fn_error $? "no acceptable C compiler found in \$PATH
3712736a7e2cSmrgSee \`config.log' for more details" "$LINENO" 5; }
3713264fa531Smrg
3714264fa531Smrg# Provide some information about the compiler.
3715c9e4df9bSmrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3716c37a63b8Smrgset X $ac_compile
3717c37a63b8Smrgac_compiler=$2
3718c9e4df9bSmrgfor ac_option in --version -v -V -qversion -version; do
3719736a7e2cSmrg  { { ac_try="$ac_compiler $ac_option >&5"
3720c37a63b8Smrgcase "(($ac_try" in
3721c37a63b8Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722c37a63b8Smrg  *) ac_try_echo=$ac_try;;
3723c37a63b8Smrgesac
3724736a7e2cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3725c9e4df9bSmrgprintf "%s\n" "$ac_try_echo"; } >&5
3726736a7e2cSmrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3727264fa531Smrg  ac_status=$?
3728736a7e2cSmrg  if test -s conftest.err; then
3729736a7e2cSmrg    sed '10a\
3730736a7e2cSmrg... rest of stderr output deleted ...
3731736a7e2cSmrg         10q' conftest.err >conftest.er1
3732736a7e2cSmrg    cat conftest.er1 >&5
3733736a7e2cSmrg  fi
3734736a7e2cSmrg  rm -f conftest.er1 conftest.err
3735c9e4df9bSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3736736a7e2cSmrg  test $ac_status = 0; }
3737736a7e2cSmrgdone
3738264fa531Smrg
3739736a7e2cSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740264fa531Smrg/* end confdefs.h.  */
3741264fa531Smrg
3742264fa531Smrgint
3743c9e4df9bSmrgmain (void)
3744264fa531Smrg{
3745264fa531Smrg
3746264fa531Smrg  ;
3747264fa531Smrg  return 0;
3748264fa531Smrg}
3749264fa531Smrg_ACEOF
3750264fa531Smrgac_clean_files_save=$ac_clean_files
3751c37a63b8Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3752264fa531Smrg# Try to create an executable without -o first, disregard a.out.
3753264fa531Smrg# It will help us diagnose broken compilers, and finding out an intuition
3754264fa531Smrg# of exeext.
3755c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3756c9e4df9bSmrgprintf %s "checking whether the C compiler works... " >&6; }
3757c9e4df9bSmrgac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3758c37a63b8Smrg
3759c37a63b8Smrg# The possible output files:
3760c37a63b8Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3761c37a63b8Smrg
3762c37a63b8Smrgac_rmfiles=
3763c37a63b8Smrgfor ac_file in $ac_files
3764c37a63b8Smrgdo
3765c37a63b8Smrg  case $ac_file in
3766c37a63b8Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3767c37a63b8Smrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3768c37a63b8Smrg  esac
3769c37a63b8Smrgdone
3770c37a63b8Smrgrm -f $ac_rmfiles
3771c37a63b8Smrg
3772736a7e2cSmrgif { { ac_try="$ac_link_default"
3773c37a63b8Smrgcase "(($ac_try" in
3774c37a63b8Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3775c37a63b8Smrg  *) ac_try_echo=$ac_try;;
3776c37a63b8Smrgesac
3777736a7e2cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3778c9e4df9bSmrgprintf "%s\n" "$ac_try_echo"; } >&5
3779c37a63b8Smrg  (eval "$ac_link_default") 2>&5
3780264fa531Smrg  ac_status=$?
3781c9e4df9bSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3782c9e4df9bSmrg  test $ac_status = 0; }
3783c9e4df9bSmrgthen :
3784c37a63b8Smrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3785c37a63b8Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3786c37a63b8Smrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3787c37a63b8Smrg# so that the user can short-circuit this test for compilers unknown to
3788c37a63b8Smrg# Autoconf.
3789c37a63b8Smrgfor ac_file in $ac_files ''
3790264fa531Smrgdo
3791264fa531Smrg  test -f "$ac_file" || continue
3792264fa531Smrg  case $ac_file in
3793c37a63b8Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3794264fa531Smrg	;;
3795264fa531Smrg    [ab].out )
3796264fa531Smrg	# We found the default executable, but exeext='' is most
3797264fa531Smrg	# certainly right.
3798264fa531Smrg	break;;
3799264fa531Smrg    *.* )
3800c9e4df9bSmrg	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3801c37a63b8Smrg	then :; else
3802c37a63b8Smrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3803c37a63b8Smrg	fi
3804c37a63b8Smrg	# We set ac_cv_exeext here because the later test for it is not
3805c37a63b8Smrg	# safe: cross compilers may not add the suffix if given an `-o'
3806c37a63b8Smrg	# argument, so we may need to know it at that point already.
3807c37a63b8Smrg	# Even if this section looks crufty: it has the advantage of
3808c37a63b8Smrg	# actually working.
3809264fa531Smrg	break;;
3810264fa531Smrg    * )
3811264fa531Smrg	break;;
3812264fa531Smrg  esac
3813264fa531Smrgdone
3814c37a63b8Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
3815c37a63b8Smrg
3816c9e4df9bSmrgelse $as_nop
3817c37a63b8Smrg  ac_file=''
3818c37a63b8Smrgfi
3819c9e4df9bSmrgif test -z "$ac_file"
3820c9e4df9bSmrgthen :
3821c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3822c9e4df9bSmrgprintf "%s\n" "no" >&6; }
3823c9e4df9bSmrgprintf "%s\n" "$as_me: failed program was:" >&5
3824264fa531Smrgsed 's/^/| /' conftest.$ac_ext >&5
3825264fa531Smrg
3826c9e4df9bSmrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3827c9e4df9bSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3828736a7e2cSmrgas_fn_error 77 "C compiler cannot create executables
3829736a7e2cSmrgSee \`config.log' for more details" "$LINENO" 5; }
3830c9e4df9bSmrgelse $as_nop
3831c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3832c9e4df9bSmrgprintf "%s\n" "yes" >&6; }
3833c9e4df9bSmrgfi
3834c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3835c9e4df9bSmrgprintf %s "checking for C compiler default output file name... " >&6; }
3836c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3837c9e4df9bSmrgprintf "%s\n" "$ac_file" >&6; }
3838264fa531Smrgac_exeext=$ac_cv_exeext
3839264fa531Smrg
3840c37a63b8Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3841264fa531Smrgac_clean_files=$ac_clean_files_save
3842c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3843c9e4df9bSmrgprintf %s "checking for suffix of executables... " >&6; }
3844736a7e2cSmrgif { { ac_try="$ac_link"
3845c37a63b8Smrgcase "(($ac_try" in
3846c37a63b8Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847c37a63b8Smrg  *) ac_try_echo=$ac_try;;
3848c37a63b8Smrgesac
3849736a7e2cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3850c9e4df9bSmrgprintf "%s\n" "$ac_try_echo"; } >&5
3851c37a63b8Smrg  (eval "$ac_link") 2>&5
3852264fa531Smrg  ac_status=$?
3853c9e4df9bSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3854c9e4df9bSmrg  test $ac_status = 0; }
3855c9e4df9bSmrgthen :
3856264fa531Smrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3857264fa531Smrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3858264fa531Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with
3859264fa531Smrg# `rm'.
3860264fa531Smrgfor ac_file in conftest.exe conftest conftest.*; do
3861264fa531Smrg  test -f "$ac_file" || continue
3862264fa531Smrg  case $ac_file in
3863c37a63b8Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3864264fa531Smrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3865264fa531Smrg	  break;;
3866264fa531Smrg    * ) break;;
3867264fa531Smrg  esac
3868264fa531Smrgdone
3869c9e4df9bSmrgelse $as_nop
3870c9e4df9bSmrg  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3871c9e4df9bSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3872736a7e2cSmrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
3873736a7e2cSmrgSee \`config.log' for more details" "$LINENO" 5; }
3874264fa531Smrgfi
3875736a7e2cSmrgrm -f conftest conftest$ac_cv_exeext
3876c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3877c9e4df9bSmrgprintf "%s\n" "$ac_cv_exeext" >&6; }
3878264fa531Smrg
3879264fa531Smrgrm -f conftest.$ac_ext
3880264fa531SmrgEXEEXT=$ac_cv_exeext
3881264fa531Smrgac_exeext=$EXEEXT
3882736a7e2cSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3883736a7e2cSmrg/* end confdefs.h.  */
3884736a7e2cSmrg#include <stdio.h>
3885736a7e2cSmrgint
3886c9e4df9bSmrgmain (void)
3887736a7e2cSmrg{
3888736a7e2cSmrgFILE *f = fopen ("conftest.out", "w");
3889736a7e2cSmrg return ferror (f) || fclose (f) != 0;
3890736a7e2cSmrg
3891736a7e2cSmrg  ;
3892736a7e2cSmrg  return 0;
3893736a7e2cSmrg}
3894736a7e2cSmrg_ACEOF
3895736a7e2cSmrgac_clean_files="$ac_clean_files conftest.out"
3896736a7e2cSmrg# Check that the compiler produces executables we can run.  If not, either
3897736a7e2cSmrg# the compiler is broken, or we cross compile.
3898c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3899c9e4df9bSmrgprintf %s "checking whether we are cross compiling... " >&6; }
3900736a7e2cSmrgif test "$cross_compiling" != yes; then
3901736a7e2cSmrg  { { ac_try="$ac_link"
3902736a7e2cSmrgcase "(($ac_try" in
3903736a7e2cSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3904736a7e2cSmrg  *) ac_try_echo=$ac_try;;
3905736a7e2cSmrgesac
3906736a7e2cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3907c9e4df9bSmrgprintf "%s\n" "$ac_try_echo"; } >&5
3908736a7e2cSmrg  (eval "$ac_link") 2>&5
3909736a7e2cSmrg  ac_status=$?
3910c9e4df9bSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3911736a7e2cSmrg  test $ac_status = 0; }
3912736a7e2cSmrg  if { ac_try='./conftest$ac_cv_exeext'
3913736a7e2cSmrg  { { case "(($ac_try" in
3914736a7e2cSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915736a7e2cSmrg  *) ac_try_echo=$ac_try;;
3916736a7e2cSmrgesac
3917736a7e2cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3918c9e4df9bSmrgprintf "%s\n" "$ac_try_echo"; } >&5
3919736a7e2cSmrg  (eval "$ac_try") 2>&5
3920736a7e2cSmrg  ac_status=$?
3921c9e4df9bSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3922736a7e2cSmrg  test $ac_status = 0; }; }; then
3923736a7e2cSmrg    cross_compiling=no
3924736a7e2cSmrg  else
3925736a7e2cSmrg    if test "$cross_compiling" = maybe; then
3926736a7e2cSmrg	cross_compiling=yes
3927736a7e2cSmrg    else
3928c9e4df9bSmrg	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3929c9e4df9bSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3930c9e4df9bSmrgas_fn_error 77 "cannot run C compiled programs.
3931736a7e2cSmrgIf you meant to cross compile, use \`--host'.
3932736a7e2cSmrgSee \`config.log' for more details" "$LINENO" 5; }
3933736a7e2cSmrg    fi
3934736a7e2cSmrg  fi
3935736a7e2cSmrgfi
3936c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3937c9e4df9bSmrgprintf "%s\n" "$cross_compiling" >&6; }
3938736a7e2cSmrg
3939736a7e2cSmrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3940736a7e2cSmrgac_clean_files=$ac_clean_files_save
3941c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3942c9e4df9bSmrgprintf %s "checking for suffix of object files... " >&6; }
3943c9e4df9bSmrgif test ${ac_cv_objext+y}
3944c9e4df9bSmrgthen :
3945c9e4df9bSmrg  printf %s "(cached) " >&6
3946c9e4df9bSmrgelse $as_nop
3947736a7e2cSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3948264fa531Smrg/* end confdefs.h.  */
3949264fa531Smrg
3950264fa531Smrgint
3951c9e4df9bSmrgmain (void)
3952264fa531Smrg{
3953264fa531Smrg
3954264fa531Smrg  ;
3955264fa531Smrg  return 0;
3956264fa531Smrg}
3957264fa531Smrg_ACEOF
3958264fa531Smrgrm -f conftest.o conftest.obj
3959736a7e2cSmrgif { { ac_try="$ac_compile"
3960c37a63b8Smrgcase "(($ac_try" in
3961c37a63b8Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962c37a63b8Smrg  *) ac_try_echo=$ac_try;;
3963c37a63b8Smrgesac
3964736a7e2cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3965c9e4df9bSmrgprintf "%s\n" "$ac_try_echo"; } >&5
3966c37a63b8Smrg  (eval "$ac_compile") 2>&5
3967264fa531Smrg  ac_status=$?
3968c9e4df9bSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3969c9e4df9bSmrg  test $ac_status = 0; }
3970c9e4df9bSmrgthen :
3971c37a63b8Smrg  for ac_file in conftest.o conftest.obj conftest.*; do
3972c37a63b8Smrg  test -f "$ac_file" || continue;
3973264fa531Smrg  case $ac_file in
3974c37a63b8Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3975264fa531Smrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3976264fa531Smrg       break;;
3977264fa531Smrg  esac
3978264fa531Smrgdone
3979c9e4df9bSmrgelse $as_nop
3980c9e4df9bSmrg  printf "%s\n" "$as_me: failed program was:" >&5
3981264fa531Smrgsed 's/^/| /' conftest.$ac_ext >&5
3982264fa531Smrg
3983c9e4df9bSmrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3984c9e4df9bSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3985736a7e2cSmrgas_fn_error $? "cannot compute suffix of object files: cannot compile
3986736a7e2cSmrgSee \`config.log' for more details" "$LINENO" 5; }
3987264fa531Smrgfi
3988264fa531Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
3989264fa531Smrgfi
3990c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3991c9e4df9bSmrgprintf "%s\n" "$ac_cv_objext" >&6; }
3992264fa531SmrgOBJEXT=$ac_cv_objext
3993264fa531Smrgac_objext=$OBJEXT
3994c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3995c9e4df9bSmrgprintf %s "checking whether the compiler supports GNU C... " >&6; }
3996c9e4df9bSmrgif test ${ac_cv_c_compiler_gnu+y}
3997c9e4df9bSmrgthen :
3998c9e4df9bSmrg  printf %s "(cached) " >&6
3999c9e4df9bSmrgelse $as_nop
4000736a7e2cSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001264fa531Smrg/* end confdefs.h.  */
4002264fa531Smrg
4003264fa531Smrgint
4004c9e4df9bSmrgmain (void)
4005264fa531Smrg{
4006264fa531Smrg#ifndef __GNUC__
4007264fa531Smrg       choke me
4008264fa531Smrg#endif
4009264fa531Smrg
4010264fa531Smrg  ;
4011264fa531Smrg  return 0;
4012264fa531Smrg}
4013264fa531Smrg_ACEOF
4014c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
4015c9e4df9bSmrgthen :
4016264fa531Smrg  ac_compiler_gnu=yes
4017c9e4df9bSmrgelse $as_nop
4018736a7e2cSmrg  ac_compiler_gnu=no
4019264fa531Smrgfi
4020c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4021264fa531Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
4022264fa531Smrg
4023264fa531Smrgfi
4024c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4025c9e4df9bSmrgprintf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4026c9e4df9bSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
4027c9e4df9bSmrg
4028c37a63b8Smrgif test $ac_compiler_gnu = yes; then
4029c37a63b8Smrg  GCC=yes
4030c37a63b8Smrgelse
4031c37a63b8Smrg  GCC=
4032c37a63b8Smrgfi
4033c9e4df9bSmrgac_test_CFLAGS=${CFLAGS+y}
4034264fa531Smrgac_save_CFLAGS=$CFLAGS
4035c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4036c9e4df9bSmrgprintf %s "checking whether $CC accepts -g... " >&6; }
4037c9e4df9bSmrgif test ${ac_cv_prog_cc_g+y}
4038c9e4df9bSmrgthen :
4039c9e4df9bSmrg  printf %s "(cached) " >&6
4040c9e4df9bSmrgelse $as_nop
4041c37a63b8Smrg  ac_save_c_werror_flag=$ac_c_werror_flag
4042c37a63b8Smrg   ac_c_werror_flag=yes
4043c37a63b8Smrg   ac_cv_prog_cc_g=no
4044c37a63b8Smrg   CFLAGS="-g"
4045736a7e2cSmrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046264fa531Smrg/* end confdefs.h.  */
4047264fa531Smrg
4048264fa531Smrgint
4049c9e4df9bSmrgmain (void)
4050264fa531Smrg{
4051264fa531Smrg
4052264fa531Smrg  ;
4053264fa531Smrg  return 0;
4054264fa531Smrg}
4055264fa531Smrg_ACEOF
4056c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
4057c9e4df9bSmrgthen :
4058c37a63b8Smrg  ac_cv_prog_cc_g=yes
4059c9e4df9bSmrgelse $as_nop
4060736a7e2cSmrg  CFLAGS=""
4061736a7e2cSmrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062c37a63b8Smrg/* end confdefs.h.  */
4063c37a63b8Smrg
4064c37a63b8Smrgint
4065c9e4df9bSmrgmain (void)
4066c37a63b8Smrg{
4067c37a63b8Smrg
4068c37a63b8Smrg  ;
4069c37a63b8Smrg  return 0;
4070c37a63b8Smrg}
4071c37a63b8Smrg_ACEOF
4072c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
4073c9e4df9bSmrgthen :
4074c37a63b8Smrg
4075c9e4df9bSmrgelse $as_nop
4076736a7e2cSmrg  ac_c_werror_flag=$ac_save_c_werror_flag
4077c37a63b8Smrg	 CFLAGS="-g"
4078736a7e2cSmrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079c37a63b8Smrg/* end confdefs.h.  */
4080c37a63b8Smrg
4081c37a63b8Smrgint
4082c9e4df9bSmrgmain (void)
4083c37a63b8Smrg{
4084c37a63b8Smrg
4085c37a63b8Smrg  ;
4086c37a63b8Smrg  return 0;
4087c37a63b8Smrg}
4088c37a63b8Smrg_ACEOF
4089c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
4090c9e4df9bSmrgthen :
4091264fa531Smrg  ac_cv_prog_cc_g=yes
4092c37a63b8Smrgfi
4093c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4094c37a63b8Smrgfi
4095c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4096264fa531Smrgfi
4097c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4098c37a63b8Smrg   ac_c_werror_flag=$ac_save_c_werror_flag
4099264fa531Smrgfi
4100c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4101c9e4df9bSmrgprintf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4102c9e4df9bSmrgif test $ac_test_CFLAGS; then
4103264fa531Smrg  CFLAGS=$ac_save_CFLAGS
4104264fa531Smrgelif test $ac_cv_prog_cc_g = yes; then
4105264fa531Smrg  if test "$GCC" = yes; then
4106264fa531Smrg    CFLAGS="-g -O2"
4107264fa531Smrg  else
4108264fa531Smrg    CFLAGS="-g"
4109264fa531Smrg  fi
4110264fa531Smrgelse
4111264fa531Smrg  if test "$GCC" = yes; then
4112264fa531Smrg    CFLAGS="-O2"
4113264fa531Smrg  else
4114264fa531Smrg    CFLAGS=
4115264fa531Smrg  fi
4116264fa531Smrgfi
4117c9e4df9bSmrgac_prog_cc_stdc=no
4118c9e4df9bSmrgif test x$ac_prog_cc_stdc = xno
4119c9e4df9bSmrgthen :
4120c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4121c9e4df9bSmrgprintf %s "checking for $CC option to enable C11 features... " >&6; }
4122c9e4df9bSmrgif test ${ac_cv_prog_cc_c11+y}
4123c9e4df9bSmrgthen :
4124c9e4df9bSmrg  printf %s "(cached) " >&6
4125c9e4df9bSmrgelse $as_nop
4126c9e4df9bSmrg  ac_cv_prog_cc_c11=no
4127264fa531Smrgac_save_CC=$CC
4128736a7e2cSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129264fa531Smrg/* end confdefs.h.  */
4130c9e4df9bSmrg$ac_c_conftest_c11_program
4131c9e4df9bSmrg_ACEOF
4132c9e4df9bSmrgfor ac_arg in '' -std=gnu11
4133c9e4df9bSmrgdo
4134c9e4df9bSmrg  CC="$ac_save_CC $ac_arg"
4135c9e4df9bSmrg  if ac_fn_c_try_compile "$LINENO"
4136c9e4df9bSmrgthen :
4137c9e4df9bSmrg  ac_cv_prog_cc_c11=$ac_arg
4138c9e4df9bSmrgfi
4139c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam
4140c9e4df9bSmrg  test "x$ac_cv_prog_cc_c11" != "xno" && break
4141c9e4df9bSmrgdone
4142c9e4df9bSmrgrm -f conftest.$ac_ext
4143c9e4df9bSmrgCC=$ac_save_CC
4144c9e4df9bSmrgfi
4145264fa531Smrg
4146c9e4df9bSmrgif test "x$ac_cv_prog_cc_c11" = xno
4147c9e4df9bSmrgthen :
4148c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4149c9e4df9bSmrgprintf "%s\n" "unsupported" >&6; }
4150c9e4df9bSmrgelse $as_nop
4151c9e4df9bSmrg  if test "x$ac_cv_prog_cc_c11" = x
4152c9e4df9bSmrgthen :
4153c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4154c9e4df9bSmrgprintf "%s\n" "none needed" >&6; }
4155c9e4df9bSmrgelse $as_nop
4156c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4157c9e4df9bSmrgprintf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4158c9e4df9bSmrg     CC="$CC $ac_cv_prog_cc_c11"
4159c9e4df9bSmrgfi
4160c9e4df9bSmrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4161c9e4df9bSmrg  ac_prog_cc_stdc=c11
4162c9e4df9bSmrgfi
4163c9e4df9bSmrgfi
4164c9e4df9bSmrgif test x$ac_prog_cc_stdc = xno
4165c9e4df9bSmrgthen :
4166c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4167c9e4df9bSmrgprintf %s "checking for $CC option to enable C99 features... " >&6; }
4168c9e4df9bSmrgif test ${ac_cv_prog_cc_c99+y}
4169c9e4df9bSmrgthen :
4170c9e4df9bSmrg  printf %s "(cached) " >&6
4171c9e4df9bSmrgelse $as_nop
4172c9e4df9bSmrg  ac_cv_prog_cc_c99=no
4173c9e4df9bSmrgac_save_CC=$CC
4174c9e4df9bSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4175c9e4df9bSmrg/* end confdefs.h.  */
4176c9e4df9bSmrg$ac_c_conftest_c99_program
4177c9e4df9bSmrg_ACEOF
4178c9e4df9bSmrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4179c9e4df9bSmrgdo
4180c9e4df9bSmrg  CC="$ac_save_CC $ac_arg"
4181c9e4df9bSmrg  if ac_fn_c_try_compile "$LINENO"
4182c9e4df9bSmrgthen :
4183c9e4df9bSmrg  ac_cv_prog_cc_c99=$ac_arg
4184c9e4df9bSmrgfi
4185c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam
4186c9e4df9bSmrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
4187c9e4df9bSmrgdone
4188c9e4df9bSmrgrm -f conftest.$ac_ext
4189c9e4df9bSmrgCC=$ac_save_CC
4190c9e4df9bSmrgfi
4191c37a63b8Smrg
4192c9e4df9bSmrgif test "x$ac_cv_prog_cc_c99" = xno
4193c9e4df9bSmrgthen :
4194c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4195c9e4df9bSmrgprintf "%s\n" "unsupported" >&6; }
4196c9e4df9bSmrgelse $as_nop
4197c9e4df9bSmrg  if test "x$ac_cv_prog_cc_c99" = x
4198c9e4df9bSmrgthen :
4199c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4200c9e4df9bSmrgprintf "%s\n" "none needed" >&6; }
4201c9e4df9bSmrgelse $as_nop
4202c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4203c9e4df9bSmrgprintf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4204c9e4df9bSmrg     CC="$CC $ac_cv_prog_cc_c99"
4205c9e4df9bSmrgfi
4206c9e4df9bSmrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4207c9e4df9bSmrg  ac_prog_cc_stdc=c99
4208c9e4df9bSmrgfi
4209c9e4df9bSmrgfi
4210c9e4df9bSmrgif test x$ac_prog_cc_stdc = xno
4211c9e4df9bSmrgthen :
4212c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4213c9e4df9bSmrgprintf %s "checking for $CC option to enable C89 features... " >&6; }
4214c9e4df9bSmrgif test ${ac_cv_prog_cc_c89+y}
4215c9e4df9bSmrgthen :
4216c9e4df9bSmrg  printf %s "(cached) " >&6
4217c9e4df9bSmrgelse $as_nop
4218c9e4df9bSmrg  ac_cv_prog_cc_c89=no
4219c9e4df9bSmrgac_save_CC=$CC
4220c9e4df9bSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221c9e4df9bSmrg/* end confdefs.h.  */
4222c9e4df9bSmrg$ac_c_conftest_c89_program
4223264fa531Smrg_ACEOF
4224c9e4df9bSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4225264fa531Smrgdo
4226264fa531Smrg  CC="$ac_save_CC $ac_arg"
4227c9e4df9bSmrg  if ac_fn_c_try_compile "$LINENO"
4228c9e4df9bSmrgthen :
4229c37a63b8Smrg  ac_cv_prog_cc_c89=$ac_arg
4230264fa531Smrgfi
4231c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam
4232c37a63b8Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
4233264fa531Smrgdone
4234c37a63b8Smrgrm -f conftest.$ac_ext
4235264fa531SmrgCC=$ac_save_CC
4236264fa531Smrgfi
4237264fa531Smrg
4238c9e4df9bSmrgif test "x$ac_cv_prog_cc_c89" = xno
4239c9e4df9bSmrgthen :
4240c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4241c9e4df9bSmrgprintf "%s\n" "unsupported" >&6; }
4242c9e4df9bSmrgelse $as_nop
4243c9e4df9bSmrg  if test "x$ac_cv_prog_cc_c89" = x
4244c9e4df9bSmrgthen :
4245c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4246c9e4df9bSmrgprintf "%s\n" "none needed" >&6; }
4247c9e4df9bSmrgelse $as_nop
4248c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4249c9e4df9bSmrgprintf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4250c9e4df9bSmrg     CC="$CC $ac_cv_prog_cc_c89"
4251c9e4df9bSmrgfi
4252c9e4df9bSmrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4253c9e4df9bSmrg  ac_prog_cc_stdc=c89
4254c9e4df9bSmrgfi
4255736a7e2cSmrgfi
4256264fa531Smrg
4257264fa531Smrgac_ext=c
4258264fa531Smrgac_cpp='$CPP $CPPFLAGS'
4259264fa531Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4260264fa531Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4261264fa531Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
4262264fa531Smrg
4263c9e4df9bSmrg
4264c9e4df9bSmrg  ac_ext=c
4265533545b5Smrgac_cpp='$CPP $CPPFLAGS'
4266533545b5Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4267533545b5Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4268533545b5Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
4269c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4270c9e4df9bSmrgprintf %s "checking whether $CC understands -c and -o together... " >&6; }
4271c9e4df9bSmrgif test ${am_cv_prog_cc_c_o+y}
4272c9e4df9bSmrgthen :
4273c9e4df9bSmrg  printf %s "(cached) " >&6
4274c9e4df9bSmrgelse $as_nop
4275533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276533545b5Smrg/* end confdefs.h.  */
4277533545b5Smrg
4278533545b5Smrgint
4279c9e4df9bSmrgmain (void)
4280533545b5Smrg{
4281533545b5Smrg
4282533545b5Smrg  ;
4283533545b5Smrg  return 0;
4284533545b5Smrg}
4285533545b5Smrg_ACEOF
4286533545b5Smrg  # Make sure it works both with $CC and with simple cc.
4287533545b5Smrg  # Following AC_PROG_CC_C_O, we do the test twice because some
4288533545b5Smrg  # compilers refuse to overwrite an existing .o file with -o,
4289533545b5Smrg  # though they will create one.
4290533545b5Smrg  am_cv_prog_cc_c_o=yes
4291533545b5Smrg  for am_i in 1 2; do
4292533545b5Smrg    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4293533545b5Smrg   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4294533545b5Smrg   ac_status=$?
4295533545b5Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296533545b5Smrg   (exit $ac_status); } \
4297533545b5Smrg         && test -f conftest2.$ac_objext; then
4298533545b5Smrg      : OK
4299533545b5Smrg    else
4300533545b5Smrg      am_cv_prog_cc_c_o=no
4301533545b5Smrg      break
4302533545b5Smrg    fi
4303533545b5Smrg  done
4304533545b5Smrg  rm -f core conftest*
4305533545b5Smrg  unset am_i
4306533545b5Smrgfi
4307c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4308c9e4df9bSmrgprintf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4309533545b5Smrgif test "$am_cv_prog_cc_c_o" != yes; then
4310533545b5Smrg   # Losing compiler, so override with the script.
4311533545b5Smrg   # FIXME: It is wrong to rewrite CC.
4312533545b5Smrg   # But if we don't then we get into trouble of one sort or another.
4313533545b5Smrg   # A longer-term fix would be to have automake use am__CC in this case,
4314533545b5Smrg   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4315533545b5Smrg   CC="$am_aux_dir/compile $CC"
4316533545b5Smrgfi
4317533545b5Smrgac_ext=c
4318533545b5Smrgac_cpp='$CPP $CPPFLAGS'
4319533545b5Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4320533545b5Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4321533545b5Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
4322533545b5Smrg
4323533545b5Smrg
4324264fa531Smrgdepcc="$CC"   am_compiler_list=
4325264fa531Smrg
4326c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4327c9e4df9bSmrgprintf %s "checking dependency style of $depcc... " >&6; }
4328c9e4df9bSmrgif test ${am_cv_CC_dependencies_compiler_type+y}
4329c9e4df9bSmrgthen :
4330c9e4df9bSmrg  printf %s "(cached) " >&6
4331c9e4df9bSmrgelse $as_nop
4332264fa531Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4333264fa531Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
4334264fa531Smrg  # making bogus files that we don't know about and never remove.  For
4335264fa531Smrg  # instance it was reported that on HP-UX the gcc test will end up
4336533545b5Smrg  # making a dummy file named 'D' -- because '-MD' means "put the output
4337533545b5Smrg  # in D".
4338533545b5Smrg  rm -rf conftest.dir
4339264fa531Smrg  mkdir conftest.dir
4340264fa531Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
4341264fa531Smrg  # using a relative directory.
4342264fa531Smrg  cp "$am_depcomp" conftest.dir
4343264fa531Smrg  cd conftest.dir
4344264fa531Smrg  # We will build objects and dependencies in a subdirectory because
4345264fa531Smrg  # it helps to detect inapplicable dependency modes.  For instance
4346264fa531Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
4347264fa531Smrg  # side effect of compilation, but ICC will put the dependencies in
4348264fa531Smrg  # the current directory while Tru64 will put them in the object
4349264fa531Smrg  # directory.
4350264fa531Smrg  mkdir sub
4351264fa531Smrg
4352264fa531Smrg  am_cv_CC_dependencies_compiler_type=none
4353264fa531Smrg  if test "$am_compiler_list" = ""; then
4354264fa531Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4355264fa531Smrg  fi
4356c37a63b8Smrg  am__universal=false
4357c37a63b8Smrg  case " $depcc " in #(
4358c37a63b8Smrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4359c37a63b8Smrg     esac
4360c37a63b8Smrg
4361264fa531Smrg  for depmode in $am_compiler_list; do
4362264fa531Smrg    # Setup a source with many dependencies, because some compilers
4363264fa531Smrg    # like to wrap large dependency lists on column 80 (with \), and
4364264fa531Smrg    # we should not choose a depcomp mode which is confused by this.
4365264fa531Smrg    #
4366264fa531Smrg    # We need to recreate these files for each test, as the compiler may
4367264fa531Smrg    # overwrite some of them when testing with obscure command lines.
4368264fa531Smrg    # This happens at least with the AIX C compiler.
4369264fa531Smrg    : > sub/conftest.c
4370264fa531Smrg    for i in 1 2 3 4 5 6; do
4371264fa531Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4372533545b5Smrg      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4373533545b5Smrg      # Solaris 10 /bin/sh.
4374533545b5Smrg      echo '/* dummy */' > sub/conftst$i.h
4375264fa531Smrg    done
4376264fa531Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4377264fa531Smrg
4378533545b5Smrg    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4379c37a63b8Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
4380533545b5Smrg    # handle '-M -o', and we need to detect this.  Also, some Intel
4381533545b5Smrg    # versions had trouble with output in subdirs.
4382c37a63b8Smrg    am__obj=sub/conftest.${OBJEXT-o}
4383c37a63b8Smrg    am__minus_obj="-o $am__obj"
4384264fa531Smrg    case $depmode in
4385c37a63b8Smrg    gcc)
4386c37a63b8Smrg      # This depmode causes a compiler race in universal mode.
4387c37a63b8Smrg      test "$am__universal" = false || continue
4388c37a63b8Smrg      ;;
4389264fa531Smrg    nosideeffect)
4390533545b5Smrg      # After this tag, mechanisms are not by side-effect, so they'll
4391533545b5Smrg      # only be used when explicitly requested.
4392264fa531Smrg      if test "x$enable_dependency_tracking" = xyes; then
4393264fa531Smrg	continue
4394264fa531Smrg      else
4395264fa531Smrg	break
4396264fa531Smrg      fi
4397264fa531Smrg      ;;
4398533545b5Smrg    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4399533545b5Smrg      # This compiler won't grok '-c -o', but also, the minuso test has
4400c37a63b8Smrg      # not run yet.  These depmodes are late enough in the game, and
4401c37a63b8Smrg      # so weak that their functioning should not be impacted.
4402c37a63b8Smrg      am__obj=conftest.${OBJEXT-o}
4403c37a63b8Smrg      am__minus_obj=
4404c37a63b8Smrg      ;;
4405264fa531Smrg    none) break ;;
4406264fa531Smrg    esac
4407264fa531Smrg    if depmode=$depmode \
4408c37a63b8Smrg       source=sub/conftest.c object=$am__obj \
4409264fa531Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4410c37a63b8Smrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4411264fa531Smrg         >/dev/null 2>conftest.err &&
4412c37a63b8Smrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4413264fa531Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4414c37a63b8Smrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4415264fa531Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4416c9e4df9bSmrg      # icc doesn't choke on unknown options, it will just issue warnings
4417c9e4df9bSmrg      # or remarks (even with -Werror).  So we grep stderr for any message
4418c9e4df9bSmrg      # that says an option was ignored or not supported.
4419c9e4df9bSmrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
4420c9e4df9bSmrg      #   icc: Command line warning: ignoring option '-M'; no argument required
4421c9e4df9bSmrg      # The diagnosis changed in icc 8.0:
4422c9e4df9bSmrg      #   icc: Command line remark: option '-MP' not supported
4423c9e4df9bSmrg      if (grep 'ignoring option' conftest.err ||
4424c9e4df9bSmrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4425c9e4df9bSmrg        am_cv_CC_dependencies_compiler_type=$depmode
4426c9e4df9bSmrg        break
4427c9e4df9bSmrg      fi
4428c37a63b8Smrg    fi
4429c37a63b8Smrg  done
4430c37a63b8Smrg
4431c9e4df9bSmrg  cd ..
4432c9e4df9bSmrg  rm -rf conftest.dir
4433c37a63b8Smrgelse
4434c9e4df9bSmrg  am_cv_CC_dependencies_compiler_type=none
4435c37a63b8Smrgfi
4436c37a63b8Smrg
4437c37a63b8Smrgfi
4438c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4439c9e4df9bSmrgprintf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4440c9e4df9bSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4441c37a63b8Smrg
4442c9e4df9bSmrg if
4443c9e4df9bSmrg  test "x$enable_dependency_tracking" != xno \
4444c9e4df9bSmrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4445c9e4df9bSmrg  am__fastdepCC_TRUE=
4446c9e4df9bSmrg  am__fastdepCC_FALSE='#'
4447c37a63b8Smrgelse
4448c9e4df9bSmrg  am__fastdepCC_TRUE='#'
4449c9e4df9bSmrg  am__fastdepCC_FALSE=
4450c37a63b8Smrgfi
4451c37a63b8Smrg
4452c37a63b8Smrg
4453c37a63b8Smrg
4454c9e4df9bSmrg
4455c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4456c9e4df9bSmrgprintf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4457c9e4df9bSmrgif test ${ac_cv_c_undeclared_builtin_options+y}
4458c9e4df9bSmrgthen :
4459c9e4df9bSmrg  printf %s "(cached) " >&6
4460c9e4df9bSmrgelse $as_nop
4461c9e4df9bSmrg  ac_save_CFLAGS=$CFLAGS
4462c9e4df9bSmrg   ac_cv_c_undeclared_builtin_options='cannot detect'
4463c9e4df9bSmrg   for ac_arg in '' -fno-builtin; do
4464c9e4df9bSmrg     CFLAGS="$ac_save_CFLAGS $ac_arg"
4465c9e4df9bSmrg     # This test program should *not* compile successfully.
4466c9e4df9bSmrg     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4467c37a63b8Smrg/* end confdefs.h.  */
4468c37a63b8Smrg
4469c37a63b8Smrgint
4470c9e4df9bSmrgmain (void)
4471c37a63b8Smrg{
4472c9e4df9bSmrg(void) strchr;
4473c37a63b8Smrg  ;
4474c37a63b8Smrg  return 0;
4475c37a63b8Smrg}
4476c37a63b8Smrg_ACEOF
4477c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
4478c9e4df9bSmrgthen :
4479c37a63b8Smrg
4480c9e4df9bSmrgelse $as_nop
4481c9e4df9bSmrg  # This test program should compile successfully.
4482c9e4df9bSmrg        # No library function is consistently available on
4483c9e4df9bSmrg        # freestanding implementations, so test against a dummy
4484c9e4df9bSmrg        # declaration.  Include always-available headers on the
4485c9e4df9bSmrg        # off chance that they somehow elicit warnings.
4486c9e4df9bSmrg        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4487c37a63b8Smrg/* end confdefs.h.  */
4488c9e4df9bSmrg#include <float.h>
4489c9e4df9bSmrg#include <limits.h>
4490c9e4df9bSmrg#include <stdarg.h>
4491c9e4df9bSmrg#include <stddef.h>
4492c9e4df9bSmrgextern void ac_decl (int, char *);
4493c37a63b8Smrg
4494c37a63b8Smrgint
4495c9e4df9bSmrgmain (void)
4496c37a63b8Smrg{
4497c9e4df9bSmrg(void) ac_decl (0, (char *) 0);
4498c9e4df9bSmrg  (void) ac_decl;
4499c9e4df9bSmrg
4500c9e4df9bSmrg  ;
4501c37a63b8Smrg  return 0;
4502c37a63b8Smrg}
4503c37a63b8Smrg_ACEOF
4504c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
4505c9e4df9bSmrgthen :
4506c9e4df9bSmrg  if test x"$ac_arg" = x
4507c9e4df9bSmrgthen :
4508c9e4df9bSmrg  ac_cv_c_undeclared_builtin_options='none needed'
4509c9e4df9bSmrgelse $as_nop
4510c9e4df9bSmrg  ac_cv_c_undeclared_builtin_options=$ac_arg
4511c37a63b8Smrgfi
4512c9e4df9bSmrg          break
4513c37a63b8Smrgfi
4514c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4515c37a63b8Smrgfi
4516c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4517c9e4df9bSmrg    done
4518c9e4df9bSmrg    CFLAGS=$ac_save_CFLAGS
4519c9e4df9bSmrg
4520c9e4df9bSmrgfi
4521c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4522c9e4df9bSmrgprintf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4523c9e4df9bSmrg  case $ac_cv_c_undeclared_builtin_options in #(
4524c9e4df9bSmrg  'cannot detect') :
4525c9e4df9bSmrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4526c9e4df9bSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4527c9e4df9bSmrgas_fn_error $? "cannot make $CC report undeclared builtins
4528c9e4df9bSmrgSee \`config.log' for more details" "$LINENO" 5; } ;; #(
4529c9e4df9bSmrg  'none needed') :
4530c9e4df9bSmrg    ac_c_undeclared_builtin_options='' ;; #(
4531c9e4df9bSmrg  *) :
4532c9e4df9bSmrg    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4533c9e4df9bSmrgesac
4534c9e4df9bSmrg
4535c9e4df9bSmrgac_header= ac_cache=
4536c9e4df9bSmrgfor ac_item in $ac_header_c_list
4537c9e4df9bSmrgdo
4538c9e4df9bSmrg  if test $ac_cache; then
4539c9e4df9bSmrg    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4540c9e4df9bSmrg    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4541c9e4df9bSmrg      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4542c9e4df9bSmrg    fi
4543c9e4df9bSmrg    ac_header= ac_cache=
4544c9e4df9bSmrg  elif test $ac_header; then
4545c9e4df9bSmrg    ac_cache=$ac_item
4546c9e4df9bSmrg  else
4547c9e4df9bSmrg    ac_header=$ac_item
4548c9e4df9bSmrg  fi
4549c9e4df9bSmrgdone
4550c9e4df9bSmrg
4551c37a63b8Smrg
4552c37a63b8Smrg
4553c37a63b8Smrg
4554c37a63b8Smrg
4555c37a63b8Smrg
4556c37a63b8Smrg
4557c37a63b8Smrg
4558c9e4df9bSmrgif test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4559c9e4df9bSmrgthen :
4560c37a63b8Smrg
4561c9e4df9bSmrgprintf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4562c9e4df9bSmrg
4563c9e4df9bSmrgfi
4564c37a63b8Smrg
4565533545b5Smrg
4566533545b5Smrg
4567c9e4df9bSmrg
4568c9e4df9bSmrgac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4569c9e4df9bSmrgif test "x$ac_cv_have_decl___clang__" = xyes
4570c9e4df9bSmrgthen :
4571e4ee1255Smrg  CLANGCC="yes"
4572c9e4df9bSmrgelse $as_nop
4573e4ee1255Smrg  CLANGCC="no"
4574e4ee1255Smrgfi
4575c9e4df9bSmrgac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4576c9e4df9bSmrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4577c9e4df9bSmrgthen :
4578e4ee1255Smrg  INTELCC="yes"
4579c9e4df9bSmrgelse $as_nop
4580e4ee1255Smrg  INTELCC="no"
4581e4ee1255Smrgfi
4582c9e4df9bSmrgac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4583c9e4df9bSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4584c9e4df9bSmrgthen :
4585e4ee1255Smrg  SUNCC="yes"
4586c9e4df9bSmrgelse $as_nop
4587e4ee1255Smrg  SUNCC="no"
4588e4ee1255Smrgfi
4589e4ee1255Smrg
4590e4ee1255Smrg
4591e4ee1255Smrg
4592e4ee1255Smrg
459365c1f7cfSmrg
459465c1f7cfSmrg
459565c1f7cfSmrg
459665c1f7cfSmrg
4597736a7e2cSmrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4598736a7e2cSmrg	if test -n "$ac_tool_prefix"; then
4599736a7e2cSmrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4600736a7e2cSmrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4601c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4602c9e4df9bSmrgprintf %s "checking for $ac_word... " >&6; }
4603c9e4df9bSmrgif test ${ac_cv_path_PKG_CONFIG+y}
4604c9e4df9bSmrgthen :
4605c9e4df9bSmrg  printf %s "(cached) " >&6
4606c9e4df9bSmrgelse $as_nop
4607736a7e2cSmrg  case $PKG_CONFIG in
4608736a7e2cSmrg  [\\/]* | ?:[\\/]*)
4609736a7e2cSmrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4610736a7e2cSmrg  ;;
4611736a7e2cSmrg  *)
4612736a7e2cSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613736a7e2cSmrgfor as_dir in $PATH
4614c37a63b8Smrgdo
4615736a7e2cSmrg  IFS=$as_save_IFS
4616c9e4df9bSmrg  case $as_dir in #(((
4617c9e4df9bSmrg    '') as_dir=./ ;;
4618c9e4df9bSmrg    */) ;;
4619c9e4df9bSmrg    *) as_dir=$as_dir/ ;;
4620c9e4df9bSmrg  esac
4621736a7e2cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4622c9e4df9bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4623c9e4df9bSmrg    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4624c9e4df9bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4625736a7e2cSmrg    break 2
4626736a7e2cSmrg  fi
4627736a7e2cSmrgdone
4628736a7e2cSmrg  done
4629736a7e2cSmrgIFS=$as_save_IFS
4630736a7e2cSmrg
4631736a7e2cSmrg  ;;
4632c37a63b8Smrgesac
4633736a7e2cSmrgfi
4634736a7e2cSmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
4635736a7e2cSmrgif test -n "$PKG_CONFIG"; then
4636c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4637c9e4df9bSmrgprintf "%s\n" "$PKG_CONFIG" >&6; }
4638c37a63b8Smrgelse
4639c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4640c9e4df9bSmrgprintf "%s\n" "no" >&6; }
4641c37a63b8Smrgfi
4642c37a63b8Smrg
4643c37a63b8Smrg
4644c37a63b8Smrgfi
4645736a7e2cSmrgif test -z "$ac_cv_path_PKG_CONFIG"; then
4646736a7e2cSmrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
4647736a7e2cSmrg  # Extract the first word of "pkg-config", so it can be a program name with args.
4648736a7e2cSmrgset dummy pkg-config; ac_word=$2
4649c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650c9e4df9bSmrgprintf %s "checking for $ac_word... " >&6; }
4651c9e4df9bSmrgif test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4652c9e4df9bSmrgthen :
4653c9e4df9bSmrg  printf %s "(cached) " >&6
4654c9e4df9bSmrgelse $as_nop
4655736a7e2cSmrg  case $ac_pt_PKG_CONFIG in
4656736a7e2cSmrg  [\\/]* | ?:[\\/]*)
4657736a7e2cSmrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4658736a7e2cSmrg  ;;
4659c37a63b8Smrg  *)
4660736a7e2cSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661736a7e2cSmrgfor as_dir in $PATH
4662736a7e2cSmrgdo
4663736a7e2cSmrg  IFS=$as_save_IFS
4664c9e4df9bSmrg  case $as_dir in #(((
4665c9e4df9bSmrg    '') as_dir=./ ;;
4666c9e4df9bSmrg    */) ;;
4667c9e4df9bSmrg    *) as_dir=$as_dir/ ;;
4668c9e4df9bSmrg  esac
4669736a7e2cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4670c9e4df9bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4671c9e4df9bSmrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4672c9e4df9bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4673736a7e2cSmrg    break 2
4674736a7e2cSmrg  fi
4675736a7e2cSmrgdone
4676736a7e2cSmrg  done
4677736a7e2cSmrgIFS=$as_save_IFS
4678736a7e2cSmrg
4679736a7e2cSmrg  ;;
4680c37a63b8Smrgesac
4681736a7e2cSmrgfi
4682736a7e2cSmrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4683736a7e2cSmrgif test -n "$ac_pt_PKG_CONFIG"; then
4684c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4685c9e4df9bSmrgprintf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4686736a7e2cSmrgelse
4687c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4688c9e4df9bSmrgprintf "%s\n" "no" >&6; }
4689736a7e2cSmrgfi
4690c37a63b8Smrg
4691736a7e2cSmrg  if test "x$ac_pt_PKG_CONFIG" = x; then
4692736a7e2cSmrg    PKG_CONFIG=""
4693736a7e2cSmrg  else
4694736a7e2cSmrg    case $cross_compiling:$ac_tool_warned in
4695736a7e2cSmrgyes:)
4696c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4697c9e4df9bSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4698736a7e2cSmrgac_tool_warned=yes ;;
4699736a7e2cSmrgesac
4700736a7e2cSmrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
4701736a7e2cSmrg  fi
4702736a7e2cSmrgelse
4703736a7e2cSmrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4704736a7e2cSmrgfi
4705c37a63b8Smrg
4706736a7e2cSmrgfi
4707736a7e2cSmrgif test -n "$PKG_CONFIG"; then
4708736a7e2cSmrg	_pkg_min_version=0.9.0
4709c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4710c9e4df9bSmrgprintf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4711736a7e2cSmrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4712c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4713c9e4df9bSmrgprintf "%s\n" "yes" >&6; }
4714736a7e2cSmrg	else
4715c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4716c9e4df9bSmrgprintf "%s\n" "no" >&6; }
4717736a7e2cSmrg		PKG_CONFIG=""
4718736a7e2cSmrg	fi
4719736a7e2cSmrgfi
4720c37a63b8Smrg
4721c9e4df9bSmrg
4722c9e4df9bSmrg  # Make sure we can run config.sub.
4723c9e4df9bSmrg$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4724c9e4df9bSmrg  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4725c9e4df9bSmrg
4726c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4727c9e4df9bSmrgprintf %s "checking build system type... " >&6; }
4728c9e4df9bSmrgif test ${ac_cv_build+y}
4729c9e4df9bSmrgthen :
4730c9e4df9bSmrg  printf %s "(cached) " >&6
4731c9e4df9bSmrgelse $as_nop
4732c37a63b8Smrg  ac_build_alias=$build_alias
4733c37a63b8Smrgtest "x$ac_build_alias" = x &&
4734c9e4df9bSmrg  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4735c37a63b8Smrgtest "x$ac_build_alias" = x &&
4736736a7e2cSmrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4737c9e4df9bSmrgac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4738c9e4df9bSmrg  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4739c37a63b8Smrg
4740c37a63b8Smrgfi
4741c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4742c9e4df9bSmrgprintf "%s\n" "$ac_cv_build" >&6; }
4743c37a63b8Smrgcase $ac_cv_build in
4744c37a63b8Smrg*-*-*) ;;
4745736a7e2cSmrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4746c37a63b8Smrgesac
4747c37a63b8Smrgbuild=$ac_cv_build
4748c37a63b8Smrgac_save_IFS=$IFS; IFS='-'
4749c37a63b8Smrgset x $ac_cv_build
4750c37a63b8Smrgshift
4751c37a63b8Smrgbuild_cpu=$1
4752c37a63b8Smrgbuild_vendor=$2
4753c37a63b8Smrgshift; shift
4754c37a63b8Smrg# Remember, the first character of IFS is used to create $*,
4755c37a63b8Smrg# except with old shells:
4756c37a63b8Smrgbuild_os=$*
4757c37a63b8SmrgIFS=$ac_save_IFS
4758c37a63b8Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4759c37a63b8Smrg
4760c37a63b8Smrg
4761c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4762c9e4df9bSmrgprintf %s "checking host system type... " >&6; }
4763c9e4df9bSmrgif test ${ac_cv_host+y}
4764c9e4df9bSmrgthen :
4765c9e4df9bSmrg  printf %s "(cached) " >&6
4766c9e4df9bSmrgelse $as_nop
4767c37a63b8Smrg  if test "x$host_alias" = x; then
4768c37a63b8Smrg  ac_cv_host=$ac_cv_build
4769c37a63b8Smrgelse
4770c9e4df9bSmrg  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4771c9e4df9bSmrg    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4772c37a63b8Smrgfi
4773c37a63b8Smrg
4774c37a63b8Smrgfi
4775c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4776c9e4df9bSmrgprintf "%s\n" "$ac_cv_host" >&6; }
4777c37a63b8Smrgcase $ac_cv_host in
4778c37a63b8Smrg*-*-*) ;;
4779736a7e2cSmrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4780c37a63b8Smrgesac
4781c37a63b8Smrghost=$ac_cv_host
4782c37a63b8Smrgac_save_IFS=$IFS; IFS='-'
4783c37a63b8Smrgset x $ac_cv_host
4784c37a63b8Smrgshift
4785c37a63b8Smrghost_cpu=$1
4786c37a63b8Smrghost_vendor=$2
4787c37a63b8Smrgshift; shift
4788c37a63b8Smrg# Remember, the first character of IFS is used to create $*,
4789c37a63b8Smrg# except with old shells:
4790c37a63b8Smrghost_os=$*
4791c37a63b8SmrgIFS=$ac_save_IFS
4792c37a63b8Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4793c37a63b8Smrg
4794c37a63b8Smrg
4795c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4796c9e4df9bSmrgprintf %s "checking for a sed that does not truncate output... " >&6; }
4797c9e4df9bSmrgif test ${ac_cv_path_SED+y}
4798c9e4df9bSmrgthen :
4799c9e4df9bSmrg  printf %s "(cached) " >&6
4800c9e4df9bSmrgelse $as_nop
4801736a7e2cSmrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4802736a7e2cSmrg     for ac_i in 1 2 3 4 5 6 7; do
4803736a7e2cSmrg       ac_script="$ac_script$as_nl$ac_script"
4804736a7e2cSmrg     done
4805736a7e2cSmrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4806736a7e2cSmrg     { ac_script=; unset ac_script;}
4807736a7e2cSmrg     if test -z "$SED"; then
4808736a7e2cSmrg  ac_path_SED_found=false
4809736a7e2cSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
4810736a7e2cSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811736a7e2cSmrgfor as_dir in $PATH
4812736a7e2cSmrgdo
4813736a7e2cSmrg  IFS=$as_save_IFS
4814c9e4df9bSmrg  case $as_dir in #(((
4815c9e4df9bSmrg    '') as_dir=./ ;;
4816c9e4df9bSmrg    */) ;;
4817c9e4df9bSmrg    *) as_dir=$as_dir/ ;;
4818c9e4df9bSmrg  esac
4819c9e4df9bSmrg    for ac_prog in sed gsed
4820c9e4df9bSmrg   do
4821736a7e2cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4822c9e4df9bSmrg      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4823533545b5Smrg      as_fn_executable_p "$ac_path_SED" || continue
4824736a7e2cSmrg# Check for GNU ac_path_SED and select it if it is found.
4825736a7e2cSmrg  # Check for GNU $ac_path_SED
4826736a7e2cSmrgcase `"$ac_path_SED" --version 2>&1` in
4827736a7e2cSmrg*GNU*)
4828736a7e2cSmrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4829736a7e2cSmrg*)
4830736a7e2cSmrg  ac_count=0
4831c9e4df9bSmrg  printf %s 0123456789 >"conftest.in"
4832736a7e2cSmrg  while :
4833736a7e2cSmrg  do
4834736a7e2cSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
4835736a7e2cSmrg    mv "conftest.tmp" "conftest.in"
4836736a7e2cSmrg    cp "conftest.in" "conftest.nl"
4837c9e4df9bSmrg    printf "%s\n" '' >> "conftest.nl"
4838736a7e2cSmrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4839736a7e2cSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4840736a7e2cSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
4841736a7e2cSmrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
4842736a7e2cSmrg      # Best one so far, save it but keep looking for a better one
4843736a7e2cSmrg      ac_cv_path_SED="$ac_path_SED"
4844736a7e2cSmrg      ac_path_SED_max=$ac_count
4845736a7e2cSmrg    fi
4846736a7e2cSmrg    # 10*(2^10) chars as input seems more than enough
4847736a7e2cSmrg    test $ac_count -gt 10 && break
4848736a7e2cSmrg  done
4849736a7e2cSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4850736a7e2cSmrgesac
4851736a7e2cSmrg
4852736a7e2cSmrg      $ac_path_SED_found && break 3
4853736a7e2cSmrg    done
4854736a7e2cSmrg  done
4855736a7e2cSmrg  done
4856736a7e2cSmrgIFS=$as_save_IFS
4857736a7e2cSmrg  if test -z "$ac_cv_path_SED"; then
4858736a7e2cSmrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4859736a7e2cSmrg  fi
4860736a7e2cSmrgelse
4861736a7e2cSmrg  ac_cv_path_SED=$SED
4862736a7e2cSmrgfi
4863736a7e2cSmrg
4864736a7e2cSmrgfi
4865c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4866c9e4df9bSmrgprintf "%s\n" "$ac_cv_path_SED" >&6; }
4867736a7e2cSmrg SED="$ac_cv_path_SED"
4868736a7e2cSmrg  rm -f conftest.sed
4869736a7e2cSmrg
4870736a7e2cSmrg
4871c37a63b8Smrg
4872c37a63b8Smrg
4873c37a63b8Smrg
4874e4ee1255Smrg
4875533545b5Smrg# Check whether --enable-selective-werror was given.
4876c9e4df9bSmrgif test ${enable_selective_werror+y}
4877c9e4df9bSmrgthen :
4878533545b5Smrg  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4879c9e4df9bSmrgelse $as_nop
4880533545b5Smrg  SELECTIVE_WERROR=yes
4881c37a63b8Smrgfi
4882c37a63b8Smrg
4883c37a63b8Smrg
4884c37a63b8Smrg
4885c37a63b8Smrg
4886c37a63b8Smrg
4887533545b5Smrg# -v is too short to test reliably with XORG_TESTSET_CFLAG
4888533545b5Smrgif test "x$SUNCC" = "xyes"; then
4889533545b5Smrg    BASE_CFLAGS="-v"
4890533545b5Smrgelse
4891533545b5Smrg    BASE_CFLAGS=""
4892533545b5Smrgfi
4893c37a63b8Smrg
4894533545b5Smrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4895e4ee1255Smrg
4896533545b5Smrg
4897533545b5Smrg
4898533545b5Smrg
4899533545b5Smrg
4900533545b5Smrg
4901533545b5Smrg
4902533545b5Smrg
4903533545b5Smrg
4904533545b5Smrg
4905533545b5Smrg
4906533545b5Smrg
4907533545b5Smrg
4908533545b5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
4909533545b5Smrg
4910533545b5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4911533545b5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4912c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4913c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4914c9e4df9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
4915c9e4df9bSmrgthen :
4916c9e4df9bSmrg  printf %s "(cached) " >&6
4917c9e4df9bSmrgelse $as_nop
4918533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4919533545b5Smrg/* end confdefs.h.  */
4920533545b5Smrgint i;
4921533545b5Smrg_ACEOF
4922c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
4923c9e4df9bSmrgthen :
4924533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
4925c9e4df9bSmrgelse $as_nop
4926533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
4927533545b5Smrgfi
4928c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4929533545b5Smrgfi
4930c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4931c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4932533545b5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4933533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
4934c37a63b8Smrgfi
4935c37a63b8Smrg
4936533545b5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4937533545b5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4938533545b5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4939533545b5Smrg	fi
4940533545b5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4941c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4942c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4943c9e4df9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4944c9e4df9bSmrgthen :
4945c9e4df9bSmrg  printf %s "(cached) " >&6
4946c9e4df9bSmrgelse $as_nop
4947533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4948e4ee1255Smrg/* end confdefs.h.  */
4949533545b5Smrgint i;
4950e4ee1255Smrg_ACEOF
4951c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
4952c9e4df9bSmrgthen :
4953533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
4954c9e4df9bSmrgelse $as_nop
4955533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
4956c37a63b8Smrgfi
4957c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4958c37a63b8Smrgfi
4959c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4960c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4961533545b5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4962533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
4963c37a63b8Smrgfi
4964e4ee1255Smrg
4965533545b5Smrgfound="no"
4966c37a63b8Smrg
4967533545b5Smrg	if test $found = "no" ; then
4968533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4969533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4970533545b5Smrg		fi
4971c37a63b8Smrg
4972533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4973533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4974533545b5Smrg		fi
4975c37a63b8Smrg
4976533545b5Smrg		CFLAGS="$CFLAGS -Wall"
4977c37a63b8Smrg
4978c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4979c9e4df9bSmrgprintf %s "checking if $CC supports -Wall... " >&6; }
4980533545b5Smrg		cacheid=xorg_cv_cc_flag__Wall
4981c9e4df9bSmrg		if eval test \${$cacheid+y}
4982c9e4df9bSmrgthen :
4983c9e4df9bSmrg  printf %s "(cached) " >&6
4984c9e4df9bSmrgelse $as_nop
4985533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4986533545b5Smrg/* end confdefs.h.  */
4987533545b5Smrgint i;
4988533545b5Smrgint
4989c9e4df9bSmrgmain (void)
4990533545b5Smrg{
4991533545b5Smrg
4992533545b5Smrg  ;
4993533545b5Smrg  return 0;
4994533545b5Smrg}
4995c37a63b8Smrg_ACEOF
4996c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
4997c9e4df9bSmrgthen :
4998533545b5Smrg  eval $cacheid=yes
4999c9e4df9bSmrgelse $as_nop
5000533545b5Smrg  eval $cacheid=no
5001533545b5Smrgfi
5002c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5003533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
5004533545b5Smrgfi
5005c37a63b8Smrg
5006c37a63b8Smrg
5007533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
5008c37a63b8Smrg
5009533545b5Smrg		eval supported=\$$cacheid
5010c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5011c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
5012533545b5Smrg		if test "$supported" = "yes" ; then
5013533545b5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5014533545b5Smrg			found="yes"
5015533545b5Smrg		fi
5016c37a63b8Smrg	fi
5017c37a63b8Smrg
5018c37a63b8Smrg
5019c37a63b8Smrg
5020c37a63b8Smrg
5021736a7e2cSmrg
5022736a7e2cSmrg
5023736a7e2cSmrg
5024736a7e2cSmrg
5025c37a63b8Smrg
5026c37a63b8Smrg
5027c37a63b8Smrg
5028c37a63b8Smrg
5029c37a63b8Smrg
5030c37a63b8Smrg
5031c37a63b8Smrg
5032533545b5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
5033c37a63b8Smrg
5034533545b5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5035533545b5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5036c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5037c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5038c9e4df9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5039c9e4df9bSmrgthen :
5040c9e4df9bSmrg  printf %s "(cached) " >&6
5041c9e4df9bSmrgelse $as_nop
5042533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5043533545b5Smrg/* end confdefs.h.  */
5044533545b5Smrgint i;
5045533545b5Smrg_ACEOF
5046c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
5047c9e4df9bSmrgthen :
5048533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
5049c9e4df9bSmrgelse $as_nop
5050533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
5051c37a63b8Smrgfi
5052c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5053c37a63b8Smrgfi
5054c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5055c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5056533545b5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5057533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
5058c37a63b8Smrgfi
5059c37a63b8Smrg
5060533545b5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5061533545b5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5062533545b5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5063533545b5Smrg	fi
5064533545b5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5065c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5066c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5067c9e4df9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5068c9e4df9bSmrgthen :
5069c9e4df9bSmrg  printf %s "(cached) " >&6
5070c9e4df9bSmrgelse $as_nop
5071533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5072533545b5Smrg/* end confdefs.h.  */
5073533545b5Smrgint i;
5074533545b5Smrg_ACEOF
5075c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
5076c9e4df9bSmrgthen :
5077533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5078c9e4df9bSmrgelse $as_nop
5079533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
5080c37a63b8Smrgfi
5081c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5082533545b5Smrgfi
5083c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5084c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5085533545b5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5086533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
5087c37a63b8Smrgfi
5088c37a63b8Smrg
5089533545b5Smrgfound="no"
5090533545b5Smrg
5091533545b5Smrg	if test $found = "no" ; then
5092533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5093533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5094533545b5Smrg		fi
5095533545b5Smrg
5096533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5097533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5098533545b5Smrg		fi
5099533545b5Smrg
5100533545b5Smrg		CFLAGS="$CFLAGS -Wpointer-arith"
5101533545b5Smrg
5102c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5103c9e4df9bSmrgprintf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5104533545b5Smrg		cacheid=xorg_cv_cc_flag__Wpointer_arith
5105c9e4df9bSmrg		if eval test \${$cacheid+y}
5106c9e4df9bSmrgthen :
5107c9e4df9bSmrg  printf %s "(cached) " >&6
5108c9e4df9bSmrgelse $as_nop
5109533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5110533545b5Smrg/* end confdefs.h.  */
5111533545b5Smrgint i;
5112533545b5Smrgint
5113c9e4df9bSmrgmain (void)
5114533545b5Smrg{
5115533545b5Smrg
5116533545b5Smrg  ;
5117533545b5Smrg  return 0;
5118533545b5Smrg}
5119533545b5Smrg_ACEOF
5120c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
5121c9e4df9bSmrgthen :
5122533545b5Smrg  eval $cacheid=yes
5123c9e4df9bSmrgelse $as_nop
5124533545b5Smrg  eval $cacheid=no
5125c37a63b8Smrgfi
5126c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5127533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
5128533545b5Smrgfi
5129533545b5Smrg
5130533545b5Smrg
5131533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
5132533545b5Smrg
5133533545b5Smrg		eval supported=\$$cacheid
5134c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5135c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
5136533545b5Smrg		if test "$supported" = "yes" ; then
5137533545b5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5138533545b5Smrg			found="yes"
5139533545b5Smrg		fi
5140533545b5Smrg	fi
5141533545b5Smrg
5142533545b5Smrg
5143533545b5Smrg
5144533545b5Smrg
5145533545b5Smrg
5146533545b5Smrg
5147533545b5Smrg
5148533545b5Smrg
5149533545b5Smrg
5150533545b5Smrg
5151533545b5Smrg
5152533545b5Smrg
5153533545b5Smrg
5154533545b5Smrg
5155533545b5Smrg
5156533545b5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
5157533545b5Smrg
5158533545b5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5159533545b5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5160c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5161c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5162c9e4df9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5163c9e4df9bSmrgthen :
5164c9e4df9bSmrg  printf %s "(cached) " >&6
5165c9e4df9bSmrgelse $as_nop
5166533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5167533545b5Smrg/* end confdefs.h.  */
5168533545b5Smrgint i;
5169533545b5Smrg_ACEOF
5170c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
5171c9e4df9bSmrgthen :
5172533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
5173c9e4df9bSmrgelse $as_nop
5174533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
5175533545b5Smrgfi
5176c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5177533545b5Smrgfi
5178c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5179c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5180533545b5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5181533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
5182533545b5Smrgfi
5183533545b5Smrg
5184533545b5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5185533545b5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5186533545b5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5187533545b5Smrg	fi
5188533545b5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5189c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5190c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5191c9e4df9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5192c9e4df9bSmrgthen :
5193c9e4df9bSmrg  printf %s "(cached) " >&6
5194c9e4df9bSmrgelse $as_nop
5195533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5196533545b5Smrg/* end confdefs.h.  */
5197533545b5Smrgint i;
5198533545b5Smrg_ACEOF
5199c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
5200c9e4df9bSmrgthen :
5201533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5202c9e4df9bSmrgelse $as_nop
5203533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
5204533545b5Smrgfi
5205c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5206533545b5Smrgfi
5207c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5208c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5209533545b5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5210533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
5211533545b5Smrgfi
5212533545b5Smrg
5213533545b5Smrgfound="no"
5214533545b5Smrg
5215533545b5Smrg	if test $found = "no" ; then
5216533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5217533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5218533545b5Smrg		fi
5219533545b5Smrg
5220533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5221533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5222533545b5Smrg		fi
5223533545b5Smrg
5224533545b5Smrg		CFLAGS="$CFLAGS -Wmissing-declarations"
5225533545b5Smrg
5226c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5227c9e4df9bSmrgprintf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5228533545b5Smrg		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5229c9e4df9bSmrg		if eval test \${$cacheid+y}
5230c9e4df9bSmrgthen :
5231c9e4df9bSmrg  printf %s "(cached) " >&6
5232c9e4df9bSmrgelse $as_nop
5233533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5234533545b5Smrg/* end confdefs.h.  */
5235533545b5Smrgint i;
5236533545b5Smrgint
5237c9e4df9bSmrgmain (void)
5238533545b5Smrg{
5239533545b5Smrg
5240533545b5Smrg  ;
5241533545b5Smrg  return 0;
5242533545b5Smrg}
5243533545b5Smrg_ACEOF
5244c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
5245c9e4df9bSmrgthen :
5246533545b5Smrg  eval $cacheid=yes
5247c9e4df9bSmrgelse $as_nop
5248533545b5Smrg  eval $cacheid=no
5249533545b5Smrgfi
5250c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5251533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
5252533545b5Smrgfi
5253533545b5Smrg
5254533545b5Smrg
5255533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
5256533545b5Smrg
5257533545b5Smrg		eval supported=\$$cacheid
5258c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5259c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
5260533545b5Smrg		if test "$supported" = "yes" ; then
5261533545b5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5262533545b5Smrg			found="yes"
5263533545b5Smrg		fi
5264533545b5Smrg	fi
5265533545b5Smrg
5266533545b5Smrg
5267533545b5Smrg
5268533545b5Smrg
5269533545b5Smrg
5270533545b5Smrg
5271533545b5Smrg
5272533545b5Smrg
5273533545b5Smrg
5274533545b5Smrg
5275533545b5Smrg
5276533545b5Smrg
5277533545b5Smrg
5278533545b5Smrg
5279533545b5Smrg
5280533545b5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
5281533545b5Smrg
5282533545b5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5283533545b5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5284c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5285c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5286c9e4df9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5287c9e4df9bSmrgthen :
5288c9e4df9bSmrg  printf %s "(cached) " >&6
5289c9e4df9bSmrgelse $as_nop
5290533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291533545b5Smrg/* end confdefs.h.  */
5292533545b5Smrgint i;
5293533545b5Smrg_ACEOF
5294c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
5295c9e4df9bSmrgthen :
5296533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
5297c9e4df9bSmrgelse $as_nop
5298533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
5299533545b5Smrgfi
5300c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5301533545b5Smrgfi
5302c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5303c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5304533545b5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5305533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
5306533545b5Smrgfi
5307533545b5Smrg
5308533545b5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5309533545b5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5310533545b5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5311533545b5Smrg	fi
5312533545b5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5313c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5314c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5315c9e4df9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5316c9e4df9bSmrgthen :
5317c9e4df9bSmrg  printf %s "(cached) " >&6
5318c9e4df9bSmrgelse $as_nop
5319533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320533545b5Smrg/* end confdefs.h.  */
5321533545b5Smrgint i;
5322533545b5Smrg_ACEOF
5323c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
5324c9e4df9bSmrgthen :
5325533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5326c9e4df9bSmrgelse $as_nop
5327533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
5328533545b5Smrgfi
5329c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5330533545b5Smrgfi
5331c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5332c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5333533545b5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5334533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
5335533545b5Smrgfi
5336533545b5Smrg
5337533545b5Smrgfound="no"
5338533545b5Smrg
5339533545b5Smrg	if test $found = "no" ; then
5340533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5341533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5342533545b5Smrg		fi
5343533545b5Smrg
5344533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5345533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5346533545b5Smrg		fi
5347533545b5Smrg
5348533545b5Smrg		CFLAGS="$CFLAGS -Wformat=2"
5349533545b5Smrg
5350c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5351c9e4df9bSmrgprintf %s "checking if $CC supports -Wformat=2... " >&6; }
5352533545b5Smrg		cacheid=xorg_cv_cc_flag__Wformat_2
5353c9e4df9bSmrg		if eval test \${$cacheid+y}
5354c9e4df9bSmrgthen :
5355c9e4df9bSmrg  printf %s "(cached) " >&6
5356c9e4df9bSmrgelse $as_nop
5357533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5358533545b5Smrg/* end confdefs.h.  */
5359533545b5Smrgint i;
5360533545b5Smrgint
5361c9e4df9bSmrgmain (void)
5362533545b5Smrg{
5363533545b5Smrg
5364533545b5Smrg  ;
5365533545b5Smrg  return 0;
5366533545b5Smrg}
5367533545b5Smrg_ACEOF
5368c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
5369c9e4df9bSmrgthen :
5370533545b5Smrg  eval $cacheid=yes
5371c9e4df9bSmrgelse $as_nop
5372533545b5Smrg  eval $cacheid=no
5373533545b5Smrgfi
5374c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5375533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
5376533545b5Smrgfi
5377533545b5Smrg
5378533545b5Smrg
5379533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
5380533545b5Smrg
5381533545b5Smrg		eval supported=\$$cacheid
5382c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5383c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
5384533545b5Smrg		if test "$supported" = "yes" ; then
5385533545b5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5386533545b5Smrg			found="yes"
5387533545b5Smrg		fi
5388533545b5Smrg	fi
5389533545b5Smrg
5390533545b5Smrg	if test $found = "no" ; then
5391533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5392533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5393533545b5Smrg		fi
5394533545b5Smrg
5395533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5396533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5397533545b5Smrg		fi
5398533545b5Smrg
5399533545b5Smrg		CFLAGS="$CFLAGS -Wformat"
5400533545b5Smrg
5401c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5402c9e4df9bSmrgprintf %s "checking if $CC supports -Wformat... " >&6; }
5403533545b5Smrg		cacheid=xorg_cv_cc_flag__Wformat
5404c9e4df9bSmrg		if eval test \${$cacheid+y}
5405c9e4df9bSmrgthen :
5406c9e4df9bSmrg  printf %s "(cached) " >&6
5407c9e4df9bSmrgelse $as_nop
5408533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5409533545b5Smrg/* end confdefs.h.  */
5410533545b5Smrgint i;
5411533545b5Smrgint
5412c9e4df9bSmrgmain (void)
5413533545b5Smrg{
5414533545b5Smrg
5415533545b5Smrg  ;
5416533545b5Smrg  return 0;
5417533545b5Smrg}
5418533545b5Smrg_ACEOF
5419c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
5420c9e4df9bSmrgthen :
5421533545b5Smrg  eval $cacheid=yes
5422c9e4df9bSmrgelse $as_nop
5423533545b5Smrg  eval $cacheid=no
5424533545b5Smrgfi
5425c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5426533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
5427533545b5Smrgfi
5428533545b5Smrg
5429533545b5Smrg
5430533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
5431533545b5Smrg
5432533545b5Smrg		eval supported=\$$cacheid
5433c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5434c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
5435533545b5Smrg		if test "$supported" = "yes" ; then
5436533545b5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5437533545b5Smrg			found="yes"
5438533545b5Smrg		fi
5439533545b5Smrg	fi
5440533545b5Smrg
5441533545b5Smrg
5442533545b5Smrg
5443533545b5Smrg
5444533545b5Smrg
5445533545b5Smrg
5446533545b5Smrg
5447533545b5Smrg
5448533545b5Smrg
5449533545b5Smrg
5450533545b5Smrg
5451533545b5Smrg
5452533545b5Smrg
5453533545b5Smrg
5454533545b5Smrg
5455533545b5Smrg
5456533545b5Smrg
5457533545b5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
5458533545b5Smrg
5459533545b5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5460533545b5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5461c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5462c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5463c9e4df9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5464c9e4df9bSmrgthen :
5465c9e4df9bSmrg  printf %s "(cached) " >&6
5466c9e4df9bSmrgelse $as_nop
5467533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5468533545b5Smrg/* end confdefs.h.  */
5469533545b5Smrgint i;
5470533545b5Smrg_ACEOF
5471c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
5472c9e4df9bSmrgthen :
5473533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
5474c9e4df9bSmrgelse $as_nop
5475533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
5476533545b5Smrgfi
5477c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5478533545b5Smrgfi
5479c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5480c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5481533545b5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5482533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
5483533545b5Smrgfi
5484533545b5Smrg
5485533545b5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5486533545b5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5487533545b5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5488533545b5Smrg	fi
5489533545b5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5490c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5491c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5492c9e4df9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5493c9e4df9bSmrgthen :
5494c9e4df9bSmrg  printf %s "(cached) " >&6
5495c9e4df9bSmrgelse $as_nop
5496533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5497533545b5Smrg/* end confdefs.h.  */
5498533545b5Smrgint i;
5499533545b5Smrg_ACEOF
5500c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
5501c9e4df9bSmrgthen :
5502533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5503c9e4df9bSmrgelse $as_nop
5504533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
5505533545b5Smrgfi
5506c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5507533545b5Smrgfi
5508c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5509c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5510533545b5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5511533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
5512533545b5Smrgfi
5513533545b5Smrg
5514533545b5Smrgfound="no"
5515533545b5Smrg
5516533545b5Smrg	if test $found = "no" ; then
5517533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5518533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5519533545b5Smrg		fi
5520533545b5Smrg
5521533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5522533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5523533545b5Smrg		fi
5524533545b5Smrg
5525533545b5Smrg		CFLAGS="$CFLAGS -Wstrict-prototypes"
5526533545b5Smrg
5527c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5528c9e4df9bSmrgprintf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5529533545b5Smrg		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5530c9e4df9bSmrg		if eval test \${$cacheid+y}
5531c9e4df9bSmrgthen :
5532c9e4df9bSmrg  printf %s "(cached) " >&6
5533c9e4df9bSmrgelse $as_nop
5534533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5535533545b5Smrg/* end confdefs.h.  */
5536533545b5Smrgint i;
5537533545b5Smrgint
5538c9e4df9bSmrgmain (void)
5539533545b5Smrg{
5540533545b5Smrg
5541533545b5Smrg  ;
5542533545b5Smrg  return 0;
5543533545b5Smrg}
5544533545b5Smrg_ACEOF
5545c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
5546c9e4df9bSmrgthen :
5547533545b5Smrg  eval $cacheid=yes
5548c9e4df9bSmrgelse $as_nop
5549533545b5Smrg  eval $cacheid=no
5550533545b5Smrgfi
5551c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5552533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
5553533545b5Smrgfi
5554533545b5Smrg
5555533545b5Smrg
5556533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
5557533545b5Smrg
5558533545b5Smrg		eval supported=\$$cacheid
5559c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5560c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
5561533545b5Smrg		if test "$supported" = "yes" ; then
5562533545b5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5563533545b5Smrg			found="yes"
5564533545b5Smrg		fi
5565533545b5Smrg	fi
5566533545b5Smrg
5567533545b5Smrg
5568533545b5Smrg
5569533545b5Smrg
5570533545b5Smrg
5571533545b5Smrg
5572533545b5Smrg
5573533545b5Smrg
5574533545b5Smrg
5575533545b5Smrg
5576533545b5Smrg
5577533545b5Smrg
5578533545b5Smrg
5579533545b5Smrg
5580533545b5Smrg
5581533545b5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
5582533545b5Smrg
5583533545b5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5584533545b5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5585c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5586c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5587c9e4df9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5588c9e4df9bSmrgthen :
5589c9e4df9bSmrg  printf %s "(cached) " >&6
5590c9e4df9bSmrgelse $as_nop
5591533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5592533545b5Smrg/* end confdefs.h.  */
5593533545b5Smrgint i;
5594533545b5Smrg_ACEOF
5595c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
5596c9e4df9bSmrgthen :
5597533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
5598c9e4df9bSmrgelse $as_nop
5599533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
5600533545b5Smrgfi
5601c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5602533545b5Smrgfi
5603c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5604c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5605533545b5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5606533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
5607533545b5Smrgfi
5608533545b5Smrg
5609533545b5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5610533545b5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5611533545b5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5612533545b5Smrg	fi
5613533545b5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5614c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5615c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5616c9e4df9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5617c9e4df9bSmrgthen :
5618c9e4df9bSmrg  printf %s "(cached) " >&6
5619c9e4df9bSmrgelse $as_nop
5620533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5621533545b5Smrg/* end confdefs.h.  */
5622533545b5Smrgint i;
5623533545b5Smrg_ACEOF
5624c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
5625c9e4df9bSmrgthen :
5626533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5627c9e4df9bSmrgelse $as_nop
5628533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
5629533545b5Smrgfi
5630c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5631533545b5Smrgfi
5632c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5633c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5634533545b5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5635533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
5636533545b5Smrgfi
5637533545b5Smrg
5638533545b5Smrgfound="no"
5639533545b5Smrg
5640533545b5Smrg	if test $found = "no" ; then
5641533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5642533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5643533545b5Smrg		fi
5644533545b5Smrg
5645533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5646533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5647533545b5Smrg		fi
5648533545b5Smrg
5649533545b5Smrg		CFLAGS="$CFLAGS -Wmissing-prototypes"
5650533545b5Smrg
5651c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5652c9e4df9bSmrgprintf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5653533545b5Smrg		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5654c9e4df9bSmrg		if eval test \${$cacheid+y}
5655c9e4df9bSmrgthen :
5656c9e4df9bSmrg  printf %s "(cached) " >&6
5657c9e4df9bSmrgelse $as_nop
5658533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5659533545b5Smrg/* end confdefs.h.  */
5660533545b5Smrgint i;
5661533545b5Smrgint
5662c9e4df9bSmrgmain (void)
5663533545b5Smrg{
5664533545b5Smrg
5665533545b5Smrg  ;
5666533545b5Smrg  return 0;
5667533545b5Smrg}
5668533545b5Smrg_ACEOF
5669c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
5670c9e4df9bSmrgthen :
5671533545b5Smrg  eval $cacheid=yes
5672c9e4df9bSmrgelse $as_nop
5673533545b5Smrg  eval $cacheid=no
5674533545b5Smrgfi
5675c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5676533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
5677533545b5Smrgfi
5678533545b5Smrg
5679533545b5Smrg
5680533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
5681533545b5Smrg
5682533545b5Smrg		eval supported=\$$cacheid
5683c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5684c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
5685533545b5Smrg		if test "$supported" = "yes" ; then
5686533545b5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5687533545b5Smrg			found="yes"
5688533545b5Smrg		fi
5689533545b5Smrg	fi
5690533545b5Smrg
5691533545b5Smrg
5692533545b5Smrg
5693533545b5Smrg
5694533545b5Smrg
5695533545b5Smrg
5696533545b5Smrg
5697533545b5Smrg
5698533545b5Smrg
5699533545b5Smrg
5700533545b5Smrg
5701533545b5Smrg
5702533545b5Smrg
5703533545b5Smrg
5704533545b5Smrg
5705533545b5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
5706533545b5Smrg
5707533545b5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5708533545b5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5709c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5710c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5711c9e4df9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5712c9e4df9bSmrgthen :
5713c9e4df9bSmrg  printf %s "(cached) " >&6
5714c9e4df9bSmrgelse $as_nop
5715533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5716533545b5Smrg/* end confdefs.h.  */
5717533545b5Smrgint i;
5718533545b5Smrg_ACEOF
5719c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
5720c9e4df9bSmrgthen :
5721533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
5722c9e4df9bSmrgelse $as_nop
5723533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
5724533545b5Smrgfi
5725c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5726533545b5Smrgfi
5727c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5728c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5729533545b5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5730533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
5731533545b5Smrgfi
5732533545b5Smrg
5733533545b5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5734533545b5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5735533545b5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5736533545b5Smrg	fi
5737533545b5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5738c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5739c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5740c9e4df9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5741c9e4df9bSmrgthen :
5742c9e4df9bSmrg  printf %s "(cached) " >&6
5743c9e4df9bSmrgelse $as_nop
5744533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5745533545b5Smrg/* end confdefs.h.  */
5746533545b5Smrgint i;
5747533545b5Smrg_ACEOF
5748c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
5749c9e4df9bSmrgthen :
5750533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5751c9e4df9bSmrgelse $as_nop
5752533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
5753533545b5Smrgfi
5754c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5755533545b5Smrgfi
5756c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5757c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5758533545b5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5759533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
5760533545b5Smrgfi
5761533545b5Smrg
5762533545b5Smrgfound="no"
5763533545b5Smrg
5764533545b5Smrg	if test $found = "no" ; then
5765533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5766533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5767533545b5Smrg		fi
5768533545b5Smrg
5769533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5770533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5771533545b5Smrg		fi
5772533545b5Smrg
5773533545b5Smrg		CFLAGS="$CFLAGS -Wnested-externs"
5774533545b5Smrg
5775c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5776c9e4df9bSmrgprintf %s "checking if $CC supports -Wnested-externs... " >&6; }
5777533545b5Smrg		cacheid=xorg_cv_cc_flag__Wnested_externs
5778c9e4df9bSmrg		if eval test \${$cacheid+y}
5779c9e4df9bSmrgthen :
5780c9e4df9bSmrg  printf %s "(cached) " >&6
5781c9e4df9bSmrgelse $as_nop
5782533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5783533545b5Smrg/* end confdefs.h.  */
5784533545b5Smrgint i;
5785533545b5Smrgint
5786c9e4df9bSmrgmain (void)
5787533545b5Smrg{
5788533545b5Smrg
5789533545b5Smrg  ;
5790533545b5Smrg  return 0;
5791533545b5Smrg}
5792533545b5Smrg_ACEOF
5793c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
5794c9e4df9bSmrgthen :
5795533545b5Smrg  eval $cacheid=yes
5796c9e4df9bSmrgelse $as_nop
5797533545b5Smrg  eval $cacheid=no
5798533545b5Smrgfi
5799c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5800533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
5801533545b5Smrgfi
5802533545b5Smrg
5803533545b5Smrg
5804533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
5805533545b5Smrg
5806533545b5Smrg		eval supported=\$$cacheid
5807c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5808c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
5809533545b5Smrg		if test "$supported" = "yes" ; then
5810533545b5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5811533545b5Smrg			found="yes"
5812533545b5Smrg		fi
5813533545b5Smrg	fi
5814533545b5Smrg
5815533545b5Smrg
5816533545b5Smrg
5817533545b5Smrg
5818533545b5Smrg
5819533545b5Smrg
5820533545b5Smrg
5821533545b5Smrg
5822533545b5Smrg
5823533545b5Smrg
5824533545b5Smrg
5825533545b5Smrg
5826533545b5Smrg
5827533545b5Smrg
5828533545b5Smrg
5829533545b5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
5830533545b5Smrg
5831533545b5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5832533545b5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5833c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5834c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5835c9e4df9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5836c9e4df9bSmrgthen :
5837c9e4df9bSmrg  printf %s "(cached) " >&6
5838c9e4df9bSmrgelse $as_nop
5839533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5840533545b5Smrg/* end confdefs.h.  */
5841533545b5Smrgint i;
5842533545b5Smrg_ACEOF
5843c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
5844c9e4df9bSmrgthen :
5845533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
5846c9e4df9bSmrgelse $as_nop
5847533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
5848533545b5Smrgfi
5849c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5850533545b5Smrgfi
5851c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5852c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5853533545b5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5854533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
5855533545b5Smrgfi
5856533545b5Smrg
5857533545b5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5858533545b5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5859533545b5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5860533545b5Smrg	fi
5861533545b5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5862c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5863c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5864c9e4df9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5865c9e4df9bSmrgthen :
5866c9e4df9bSmrg  printf %s "(cached) " >&6
5867c9e4df9bSmrgelse $as_nop
5868533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869533545b5Smrg/* end confdefs.h.  */
5870533545b5Smrgint i;
5871533545b5Smrg_ACEOF
5872c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
5873c9e4df9bSmrgthen :
5874533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5875c9e4df9bSmrgelse $as_nop
5876533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
5877533545b5Smrgfi
5878c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5879533545b5Smrgfi
5880c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5881c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5882533545b5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5883533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
5884533545b5Smrgfi
5885533545b5Smrg
5886533545b5Smrgfound="no"
5887533545b5Smrg
5888533545b5Smrg	if test $found = "no" ; then
5889533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5890533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5891533545b5Smrg		fi
5892533545b5Smrg
5893533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5894533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5895533545b5Smrg		fi
5896533545b5Smrg
5897533545b5Smrg		CFLAGS="$CFLAGS -Wbad-function-cast"
5898533545b5Smrg
5899c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5900c9e4df9bSmrgprintf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5901533545b5Smrg		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5902c9e4df9bSmrg		if eval test \${$cacheid+y}
5903c9e4df9bSmrgthen :
5904c9e4df9bSmrg  printf %s "(cached) " >&6
5905c9e4df9bSmrgelse $as_nop
5906533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5907533545b5Smrg/* end confdefs.h.  */
5908533545b5Smrgint i;
5909533545b5Smrgint
5910c9e4df9bSmrgmain (void)
5911533545b5Smrg{
5912533545b5Smrg
5913533545b5Smrg  ;
5914533545b5Smrg  return 0;
5915533545b5Smrg}
5916533545b5Smrg_ACEOF
5917c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
5918c9e4df9bSmrgthen :
5919533545b5Smrg  eval $cacheid=yes
5920c9e4df9bSmrgelse $as_nop
5921533545b5Smrg  eval $cacheid=no
5922533545b5Smrgfi
5923c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5924533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
5925533545b5Smrgfi
5926533545b5Smrg
5927533545b5Smrg
5928533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
5929533545b5Smrg
5930533545b5Smrg		eval supported=\$$cacheid
5931c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5932c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
5933533545b5Smrg		if test "$supported" = "yes" ; then
5934533545b5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5935533545b5Smrg			found="yes"
5936533545b5Smrg		fi
5937533545b5Smrg	fi
5938533545b5Smrg
5939533545b5Smrg
5940533545b5Smrg
5941533545b5Smrg
5942533545b5Smrg
5943533545b5Smrg
5944533545b5Smrg
5945533545b5Smrg
5946533545b5Smrg
5947533545b5Smrg
5948533545b5Smrg
5949533545b5Smrg
5950533545b5Smrg
5951533545b5Smrg
5952533545b5Smrg
5953533545b5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
5954533545b5Smrg
5955533545b5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5956533545b5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5957c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5958c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5959c9e4df9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5960c9e4df9bSmrgthen :
5961c9e4df9bSmrg  printf %s "(cached) " >&6
5962c9e4df9bSmrgelse $as_nop
5963533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5964533545b5Smrg/* end confdefs.h.  */
5965533545b5Smrgint i;
5966533545b5Smrg_ACEOF
5967c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
5968c9e4df9bSmrgthen :
5969533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
5970c9e4df9bSmrgelse $as_nop
5971533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
5972533545b5Smrgfi
5973c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5974533545b5Smrgfi
5975c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5976c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5977533545b5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5978533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
5979533545b5Smrgfi
5980533545b5Smrg
5981533545b5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5982533545b5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5983533545b5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5984533545b5Smrg	fi
5985533545b5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5986c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5987c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5988c9e4df9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5989c9e4df9bSmrgthen :
5990c9e4df9bSmrg  printf %s "(cached) " >&6
5991c9e4df9bSmrgelse $as_nop
5992533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5993533545b5Smrg/* end confdefs.h.  */
5994533545b5Smrgint i;
5995533545b5Smrg_ACEOF
5996c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
5997c9e4df9bSmrgthen :
5998533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5999c9e4df9bSmrgelse $as_nop
6000533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
6001533545b5Smrgfi
6002c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6003533545b5Smrgfi
6004c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6005c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6006533545b5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6007533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
6008533545b5Smrgfi
6009533545b5Smrg
6010533545b5Smrgfound="no"
6011533545b5Smrg
6012533545b5Smrg	if test $found = "no" ; then
6013533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6014533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6015533545b5Smrg		fi
6016533545b5Smrg
6017533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6018533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6019533545b5Smrg		fi
6020533545b5Smrg
6021533545b5Smrg		CFLAGS="$CFLAGS -Wold-style-definition"
6022533545b5Smrg
6023c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6024c9e4df9bSmrgprintf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6025533545b5Smrg		cacheid=xorg_cv_cc_flag__Wold_style_definition
6026c9e4df9bSmrg		if eval test \${$cacheid+y}
6027c9e4df9bSmrgthen :
6028c9e4df9bSmrg  printf %s "(cached) " >&6
6029c9e4df9bSmrgelse $as_nop
6030533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6031533545b5Smrg/* end confdefs.h.  */
6032533545b5Smrgint i;
6033533545b5Smrgint
6034c9e4df9bSmrgmain (void)
6035533545b5Smrg{
6036533545b5Smrg
6037533545b5Smrg  ;
6038533545b5Smrg  return 0;
6039533545b5Smrg}
6040533545b5Smrg_ACEOF
6041c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
6042c9e4df9bSmrgthen :
6043533545b5Smrg  eval $cacheid=yes
6044c9e4df9bSmrgelse $as_nop
6045533545b5Smrg  eval $cacheid=no
6046533545b5Smrgfi
6047c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6048533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
6049533545b5Smrgfi
6050533545b5Smrg
6051533545b5Smrg
6052533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
6053533545b5Smrg
6054533545b5Smrg		eval supported=\$$cacheid
6055c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6056c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
6057533545b5Smrg		if test "$supported" = "yes" ; then
6058533545b5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6059533545b5Smrg			found="yes"
6060533545b5Smrg		fi
6061533545b5Smrg	fi
6062533545b5Smrg
6063533545b5Smrg	if test $found = "no" ; then
6064533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6065533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6066533545b5Smrg		fi
6067533545b5Smrg
6068533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6069533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6070533545b5Smrg		fi
6071533545b5Smrg
6072533545b5Smrg		CFLAGS="$CFLAGS -fd"
6073533545b5Smrg
6074c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6075c9e4df9bSmrgprintf %s "checking if $CC supports -fd... " >&6; }
6076533545b5Smrg		cacheid=xorg_cv_cc_flag__fd
6077c9e4df9bSmrg		if eval test \${$cacheid+y}
6078c9e4df9bSmrgthen :
6079c9e4df9bSmrg  printf %s "(cached) " >&6
6080c9e4df9bSmrgelse $as_nop
6081533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6082533545b5Smrg/* end confdefs.h.  */
6083533545b5Smrgint i;
6084533545b5Smrgint
6085c9e4df9bSmrgmain (void)
6086533545b5Smrg{
6087533545b5Smrg
6088533545b5Smrg  ;
6089533545b5Smrg  return 0;
6090533545b5Smrg}
6091533545b5Smrg_ACEOF
6092c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
6093c9e4df9bSmrgthen :
6094533545b5Smrg  eval $cacheid=yes
6095c9e4df9bSmrgelse $as_nop
6096533545b5Smrg  eval $cacheid=no
6097533545b5Smrgfi
6098c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6099533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
6100533545b5Smrgfi
6101533545b5Smrg
6102533545b5Smrg
6103533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
6104533545b5Smrg
6105533545b5Smrg		eval supported=\$$cacheid
6106c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6107c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
6108533545b5Smrg		if test "$supported" = "yes" ; then
6109533545b5Smrg			BASE_CFLAGS="$BASE_CFLAGS -fd"
6110533545b5Smrg			found="yes"
6111533545b5Smrg		fi
6112533545b5Smrg	fi
6113533545b5Smrg
6114533545b5Smrg
6115533545b5Smrg
6116533545b5Smrg
6117533545b5Smrg
6118533545b5Smrg
6119533545b5Smrg
6120533545b5Smrg
6121533545b5Smrg
6122533545b5Smrg
6123533545b5Smrg
6124533545b5Smrg
6125533545b5Smrg
6126533545b5Smrg
6127533545b5Smrg
6128533545b5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
6129533545b5Smrg
6130533545b5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6131533545b5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6132c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6133c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6134c9e4df9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6135c9e4df9bSmrgthen :
6136c9e4df9bSmrg  printf %s "(cached) " >&6
6137c9e4df9bSmrgelse $as_nop
6138533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6139533545b5Smrg/* end confdefs.h.  */
6140533545b5Smrgint i;
6141533545b5Smrg_ACEOF
6142c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
6143c9e4df9bSmrgthen :
6144533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
6145c9e4df9bSmrgelse $as_nop
6146533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
6147533545b5Smrgfi
6148c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6149533545b5Smrgfi
6150c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6151c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6152533545b5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6153533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
6154533545b5Smrgfi
6155533545b5Smrg
6156533545b5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6157533545b5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6158533545b5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6159533545b5Smrg	fi
6160533545b5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6161c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6162c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6163c9e4df9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6164c9e4df9bSmrgthen :
6165c9e4df9bSmrg  printf %s "(cached) " >&6
6166c9e4df9bSmrgelse $as_nop
6167533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6168533545b5Smrg/* end confdefs.h.  */
6169533545b5Smrgint i;
6170533545b5Smrg_ACEOF
6171c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
6172c9e4df9bSmrgthen :
6173533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6174c9e4df9bSmrgelse $as_nop
6175533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
6176533545b5Smrgfi
6177c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6178533545b5Smrgfi
6179c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6180c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6181533545b5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6182533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
6183533545b5Smrgfi
6184533545b5Smrg
6185533545b5Smrgfound="no"
6186533545b5Smrg
6187533545b5Smrg	if test $found = "no" ; then
6188533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6189533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6190533545b5Smrg		fi
6191533545b5Smrg
6192533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6193533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6194533545b5Smrg		fi
6195533545b5Smrg
6196533545b5Smrg		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6197533545b5Smrg
6198c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6199c9e4df9bSmrgprintf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6200533545b5Smrg		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6201c9e4df9bSmrg		if eval test \${$cacheid+y}
6202c9e4df9bSmrgthen :
6203c9e4df9bSmrg  printf %s "(cached) " >&6
6204c9e4df9bSmrgelse $as_nop
6205533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6206533545b5Smrg/* end confdefs.h.  */
6207533545b5Smrgint i;
6208533545b5Smrgint
6209c9e4df9bSmrgmain (void)
6210533545b5Smrg{
6211533545b5Smrg
6212533545b5Smrg  ;
6213533545b5Smrg  return 0;
6214533545b5Smrg}
6215533545b5Smrg_ACEOF
6216c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
6217c9e4df9bSmrgthen :
6218533545b5Smrg  eval $cacheid=yes
6219c9e4df9bSmrgelse $as_nop
6220533545b5Smrg  eval $cacheid=no
6221533545b5Smrgfi
6222c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6223533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
6224533545b5Smrgfi
6225533545b5Smrg
6226533545b5Smrg
6227533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
6228533545b5Smrg
6229533545b5Smrg		eval supported=\$$cacheid
6230c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6231c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
6232533545b5Smrg		if test "$supported" = "yes" ; then
6233533545b5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6234533545b5Smrg			found="yes"
6235533545b5Smrg		fi
6236533545b5Smrg	fi
6237533545b5Smrg
6238533545b5Smrg
6239533545b5Smrg
6240533545b5Smrg
6241533545b5Smrg
6242533545b5Smrg# This chunk adds additional warnings that could catch undesired effects.
6243533545b5Smrg
6244533545b5Smrg
6245533545b5Smrg
6246533545b5Smrg
6247533545b5Smrg
6248533545b5Smrg
6249533545b5Smrg
6250533545b5Smrg
6251533545b5Smrg
6252533545b5Smrg
6253533545b5Smrg
6254533545b5Smrg
6255533545b5Smrg
6256533545b5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
6257533545b5Smrg
6258533545b5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6259533545b5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6260c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6261c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6262c9e4df9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6263c9e4df9bSmrgthen :
6264c9e4df9bSmrg  printf %s "(cached) " >&6
6265c9e4df9bSmrgelse $as_nop
6266533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6267533545b5Smrg/* end confdefs.h.  */
6268533545b5Smrgint i;
6269533545b5Smrg_ACEOF
6270c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
6271c9e4df9bSmrgthen :
6272533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
6273c9e4df9bSmrgelse $as_nop
6274533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
6275533545b5Smrgfi
6276c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6277533545b5Smrgfi
6278c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6279c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6280533545b5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6281533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
6282533545b5Smrgfi
6283533545b5Smrg
6284533545b5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6285533545b5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6286533545b5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6287533545b5Smrg	fi
6288533545b5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6289c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6290c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6291c9e4df9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6292c9e4df9bSmrgthen :
6293c9e4df9bSmrg  printf %s "(cached) " >&6
6294c9e4df9bSmrgelse $as_nop
6295533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6296533545b5Smrg/* end confdefs.h.  */
6297533545b5Smrgint i;
6298533545b5Smrg_ACEOF
6299c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
6300c9e4df9bSmrgthen :
6301533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6302c9e4df9bSmrgelse $as_nop
6303533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
6304533545b5Smrgfi
6305c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6306533545b5Smrgfi
6307c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6308c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6309533545b5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6310533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
6311533545b5Smrgfi
6312533545b5Smrg
6313533545b5Smrgfound="no"
6314533545b5Smrg
6315533545b5Smrg	if test $found = "no" ; then
6316533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6317533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6318533545b5Smrg		fi
6319533545b5Smrg
6320533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6321533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6322533545b5Smrg		fi
6323533545b5Smrg
6324533545b5Smrg		CFLAGS="$CFLAGS -Wunused"
6325533545b5Smrg
6326c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6327c9e4df9bSmrgprintf %s "checking if $CC supports -Wunused... " >&6; }
6328533545b5Smrg		cacheid=xorg_cv_cc_flag__Wunused
6329c9e4df9bSmrg		if eval test \${$cacheid+y}
6330c9e4df9bSmrgthen :
6331c9e4df9bSmrg  printf %s "(cached) " >&6
6332c9e4df9bSmrgelse $as_nop
6333533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6334533545b5Smrg/* end confdefs.h.  */
6335533545b5Smrgint i;
6336533545b5Smrgint
6337c9e4df9bSmrgmain (void)
6338533545b5Smrg{
6339533545b5Smrg
6340533545b5Smrg  ;
6341533545b5Smrg  return 0;
6342533545b5Smrg}
6343533545b5Smrg_ACEOF
6344c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
6345c9e4df9bSmrgthen :
6346533545b5Smrg  eval $cacheid=yes
6347c9e4df9bSmrgelse $as_nop
6348533545b5Smrg  eval $cacheid=no
6349533545b5Smrgfi
6350c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6351533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
6352533545b5Smrgfi
6353533545b5Smrg
6354533545b5Smrg
6355533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
6356533545b5Smrg
6357533545b5Smrg		eval supported=\$$cacheid
6358c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6359c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
6360533545b5Smrg		if test "$supported" = "yes" ; then
6361533545b5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6362533545b5Smrg			found="yes"
6363533545b5Smrg		fi
6364533545b5Smrg	fi
6365533545b5Smrg
6366533545b5Smrg
6367533545b5Smrg
6368533545b5Smrg
6369533545b5Smrg
6370533545b5Smrg
6371533545b5Smrg
6372533545b5Smrg
6373533545b5Smrg
6374533545b5Smrg
6375533545b5Smrg
6376533545b5Smrg
6377533545b5Smrg
6378533545b5Smrg
6379533545b5Smrg
6380533545b5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
6381533545b5Smrg
6382533545b5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6383533545b5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6384c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6385c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6386c9e4df9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6387c9e4df9bSmrgthen :
6388c9e4df9bSmrg  printf %s "(cached) " >&6
6389c9e4df9bSmrgelse $as_nop
6390533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6391533545b5Smrg/* end confdefs.h.  */
6392533545b5Smrgint i;
6393533545b5Smrg_ACEOF
6394c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
6395c9e4df9bSmrgthen :
6396533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
6397c9e4df9bSmrgelse $as_nop
6398533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
6399533545b5Smrgfi
6400c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6401533545b5Smrgfi
6402c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6403c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6404533545b5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6405533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
6406533545b5Smrgfi
6407533545b5Smrg
6408533545b5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6409533545b5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6410533545b5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6411533545b5Smrg	fi
6412533545b5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6413c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6414c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6415c9e4df9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6416c9e4df9bSmrgthen :
6417c9e4df9bSmrg  printf %s "(cached) " >&6
6418c9e4df9bSmrgelse $as_nop
6419533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6420533545b5Smrg/* end confdefs.h.  */
6421533545b5Smrgint i;
6422533545b5Smrg_ACEOF
6423c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
6424c9e4df9bSmrgthen :
6425533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6426c9e4df9bSmrgelse $as_nop
6427533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
6428533545b5Smrgfi
6429c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6430533545b5Smrgfi
6431c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6432c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6433533545b5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6434533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
6435533545b5Smrgfi
6436533545b5Smrg
6437533545b5Smrgfound="no"
6438533545b5Smrg
6439533545b5Smrg	if test $found = "no" ; then
6440533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6441533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6442533545b5Smrg		fi
6443533545b5Smrg
6444533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6445533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6446533545b5Smrg		fi
6447533545b5Smrg
6448533545b5Smrg		CFLAGS="$CFLAGS -Wuninitialized"
6449533545b5Smrg
6450c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6451c9e4df9bSmrgprintf %s "checking if $CC supports -Wuninitialized... " >&6; }
6452533545b5Smrg		cacheid=xorg_cv_cc_flag__Wuninitialized
6453c9e4df9bSmrg		if eval test \${$cacheid+y}
6454c9e4df9bSmrgthen :
6455c9e4df9bSmrg  printf %s "(cached) " >&6
6456c9e4df9bSmrgelse $as_nop
6457533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6458533545b5Smrg/* end confdefs.h.  */
6459533545b5Smrgint i;
6460533545b5Smrgint
6461c9e4df9bSmrgmain (void)
6462533545b5Smrg{
6463533545b5Smrg
6464533545b5Smrg  ;
6465533545b5Smrg  return 0;
6466533545b5Smrg}
6467533545b5Smrg_ACEOF
6468c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
6469c9e4df9bSmrgthen :
6470533545b5Smrg  eval $cacheid=yes
6471c9e4df9bSmrgelse $as_nop
6472533545b5Smrg  eval $cacheid=no
6473533545b5Smrgfi
6474c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6475533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
6476533545b5Smrgfi
6477533545b5Smrg
6478533545b5Smrg
6479533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
6480533545b5Smrg
6481533545b5Smrg		eval supported=\$$cacheid
6482c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6483c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
6484533545b5Smrg		if test "$supported" = "yes" ; then
6485533545b5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6486533545b5Smrg			found="yes"
6487533545b5Smrg		fi
6488533545b5Smrg	fi
6489533545b5Smrg
6490533545b5Smrg
6491533545b5Smrg
6492533545b5Smrg
6493533545b5Smrg
6494533545b5Smrg
6495533545b5Smrg
6496533545b5Smrg
6497533545b5Smrg
6498533545b5Smrg
6499533545b5Smrg
6500533545b5Smrg
6501533545b5Smrg
6502533545b5Smrg
6503533545b5Smrg
6504533545b5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
6505533545b5Smrg
6506533545b5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6507533545b5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6508c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6509c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6510c9e4df9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6511c9e4df9bSmrgthen :
6512c9e4df9bSmrg  printf %s "(cached) " >&6
6513c9e4df9bSmrgelse $as_nop
6514533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6515533545b5Smrg/* end confdefs.h.  */
6516533545b5Smrgint i;
6517533545b5Smrg_ACEOF
6518c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
6519c9e4df9bSmrgthen :
6520533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
6521c9e4df9bSmrgelse $as_nop
6522533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
6523533545b5Smrgfi
6524c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6525533545b5Smrgfi
6526c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6527c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6528533545b5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6529533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
6530533545b5Smrgfi
6531533545b5Smrg
6532533545b5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6533533545b5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6534533545b5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6535533545b5Smrg	fi
6536533545b5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6537c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6538c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6539c9e4df9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6540c9e4df9bSmrgthen :
6541c9e4df9bSmrg  printf %s "(cached) " >&6
6542c9e4df9bSmrgelse $as_nop
6543533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6544533545b5Smrg/* end confdefs.h.  */
6545533545b5Smrgint i;
6546533545b5Smrg_ACEOF
6547c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
6548c9e4df9bSmrgthen :
6549533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6550c9e4df9bSmrgelse $as_nop
6551533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
6552533545b5Smrgfi
6553c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6554533545b5Smrgfi
6555c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6556c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6557533545b5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6558533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
6559533545b5Smrgfi
6560533545b5Smrg
6561533545b5Smrgfound="no"
6562533545b5Smrg
6563533545b5Smrg	if test $found = "no" ; then
6564533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6565533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6566533545b5Smrg		fi
6567533545b5Smrg
6568533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6569533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6570533545b5Smrg		fi
6571533545b5Smrg
6572533545b5Smrg		CFLAGS="$CFLAGS -Wshadow"
6573533545b5Smrg
6574c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6575c9e4df9bSmrgprintf %s "checking if $CC supports -Wshadow... " >&6; }
6576533545b5Smrg		cacheid=xorg_cv_cc_flag__Wshadow
6577c9e4df9bSmrg		if eval test \${$cacheid+y}
6578c9e4df9bSmrgthen :
6579c9e4df9bSmrg  printf %s "(cached) " >&6
6580c9e4df9bSmrgelse $as_nop
6581533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6582533545b5Smrg/* end confdefs.h.  */
6583533545b5Smrgint i;
6584533545b5Smrgint
6585c9e4df9bSmrgmain (void)
6586533545b5Smrg{
6587533545b5Smrg
6588533545b5Smrg  ;
6589533545b5Smrg  return 0;
6590533545b5Smrg}
6591533545b5Smrg_ACEOF
6592c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
6593c9e4df9bSmrgthen :
6594533545b5Smrg  eval $cacheid=yes
6595c9e4df9bSmrgelse $as_nop
6596533545b5Smrg  eval $cacheid=no
6597533545b5Smrgfi
6598c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6599533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
6600533545b5Smrgfi
6601533545b5Smrg
6602533545b5Smrg
6603533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
6604533545b5Smrg
6605533545b5Smrg		eval supported=\$$cacheid
6606c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6607c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
6608533545b5Smrg		if test "$supported" = "yes" ; then
6609533545b5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6610533545b5Smrg			found="yes"
6611533545b5Smrg		fi
6612533545b5Smrg	fi
6613533545b5Smrg
6614533545b5Smrg
6615533545b5Smrg
6616533545b5Smrg
6617533545b5Smrg
6618533545b5Smrg
6619533545b5Smrg
6620533545b5Smrg
6621533545b5Smrg
6622533545b5Smrg
6623533545b5Smrg
6624533545b5Smrg
6625533545b5Smrg
6626533545b5Smrg
6627533545b5Smrg
6628533545b5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
6629533545b5Smrg
6630533545b5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6631533545b5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6632c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6633c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6634c9e4df9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6635c9e4df9bSmrgthen :
6636c9e4df9bSmrg  printf %s "(cached) " >&6
6637c9e4df9bSmrgelse $as_nop
6638533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6639533545b5Smrg/* end confdefs.h.  */
6640533545b5Smrgint i;
6641533545b5Smrg_ACEOF
6642c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
6643c9e4df9bSmrgthen :
6644533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
6645c9e4df9bSmrgelse $as_nop
6646533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
6647533545b5Smrgfi
6648c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6649533545b5Smrgfi
6650c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6651c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6652533545b5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6653533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
6654533545b5Smrgfi
6655533545b5Smrg
6656533545b5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6657533545b5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6658533545b5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6659533545b5Smrg	fi
6660533545b5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6661c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6662c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6663c9e4df9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6664c9e4df9bSmrgthen :
6665c9e4df9bSmrg  printf %s "(cached) " >&6
6666c9e4df9bSmrgelse $as_nop
6667533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6668533545b5Smrg/* end confdefs.h.  */
6669533545b5Smrgint i;
6670533545b5Smrg_ACEOF
6671c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
6672c9e4df9bSmrgthen :
6673533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6674c9e4df9bSmrgelse $as_nop
6675533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
6676533545b5Smrgfi
6677c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6678533545b5Smrgfi
6679c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6680c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6681533545b5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6682533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
6683533545b5Smrgfi
6684533545b5Smrg
6685533545b5Smrgfound="no"
6686533545b5Smrg
6687533545b5Smrg	if test $found = "no" ; then
6688533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6689533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6690533545b5Smrg		fi
6691533545b5Smrg
6692533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6693533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6694533545b5Smrg		fi
6695533545b5Smrg
6696533545b5Smrg		CFLAGS="$CFLAGS -Wmissing-noreturn"
6697533545b5Smrg
6698c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6699c9e4df9bSmrgprintf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6700533545b5Smrg		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6701c9e4df9bSmrg		if eval test \${$cacheid+y}
6702c9e4df9bSmrgthen :
6703c9e4df9bSmrg  printf %s "(cached) " >&6
6704c9e4df9bSmrgelse $as_nop
6705533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6706533545b5Smrg/* end confdefs.h.  */
6707533545b5Smrgint i;
6708533545b5Smrgint
6709c9e4df9bSmrgmain (void)
6710533545b5Smrg{
6711533545b5Smrg
6712533545b5Smrg  ;
6713533545b5Smrg  return 0;
6714533545b5Smrg}
6715533545b5Smrg_ACEOF
6716c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
6717c9e4df9bSmrgthen :
6718533545b5Smrg  eval $cacheid=yes
6719c9e4df9bSmrgelse $as_nop
6720533545b5Smrg  eval $cacheid=no
6721533545b5Smrgfi
6722c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6723533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
6724533545b5Smrgfi
6725533545b5Smrg
6726533545b5Smrg
6727533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
6728533545b5Smrg
6729533545b5Smrg		eval supported=\$$cacheid
6730c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6731c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
6732533545b5Smrg		if test "$supported" = "yes" ; then
6733533545b5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6734533545b5Smrg			found="yes"
6735533545b5Smrg		fi
6736533545b5Smrg	fi
6737533545b5Smrg
6738533545b5Smrg
6739533545b5Smrg
6740533545b5Smrg
6741533545b5Smrg
6742533545b5Smrg
6743533545b5Smrg
6744533545b5Smrg
6745533545b5Smrg
6746533545b5Smrg
6747533545b5Smrg
6748533545b5Smrg
6749533545b5Smrg
6750533545b5Smrg
6751533545b5Smrg
6752533545b5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
6753533545b5Smrg
6754533545b5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6755533545b5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6756c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6757c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6758c9e4df9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6759c9e4df9bSmrgthen :
6760c9e4df9bSmrg  printf %s "(cached) " >&6
6761c9e4df9bSmrgelse $as_nop
6762533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6763533545b5Smrg/* end confdefs.h.  */
6764533545b5Smrgint i;
6765533545b5Smrg_ACEOF
6766c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
6767c9e4df9bSmrgthen :
6768533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
6769c9e4df9bSmrgelse $as_nop
6770533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
6771533545b5Smrgfi
6772c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6773533545b5Smrgfi
6774c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6775c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6776533545b5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6777533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
6778533545b5Smrgfi
6779533545b5Smrg
6780533545b5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6781533545b5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6782533545b5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6783533545b5Smrg	fi
6784533545b5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6785c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6786c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6787c9e4df9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6788c9e4df9bSmrgthen :
6789c9e4df9bSmrg  printf %s "(cached) " >&6
6790c9e4df9bSmrgelse $as_nop
6791533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6792533545b5Smrg/* end confdefs.h.  */
6793533545b5Smrgint i;
6794533545b5Smrg_ACEOF
6795c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
6796c9e4df9bSmrgthen :
6797533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6798c9e4df9bSmrgelse $as_nop
6799533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
6800533545b5Smrgfi
6801c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6802533545b5Smrgfi
6803c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6804c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6805533545b5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6806533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
6807533545b5Smrgfi
6808533545b5Smrg
6809533545b5Smrgfound="no"
6810533545b5Smrg
6811533545b5Smrg	if test $found = "no" ; then
6812533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6813533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6814533545b5Smrg		fi
6815533545b5Smrg
6816533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6817533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6818533545b5Smrg		fi
6819533545b5Smrg
6820533545b5Smrg		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6821533545b5Smrg
6822c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6823c9e4df9bSmrgprintf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6824533545b5Smrg		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6825c9e4df9bSmrg		if eval test \${$cacheid+y}
6826c9e4df9bSmrgthen :
6827c9e4df9bSmrg  printf %s "(cached) " >&6
6828c9e4df9bSmrgelse $as_nop
6829533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6830533545b5Smrg/* end confdefs.h.  */
6831533545b5Smrgint i;
6832533545b5Smrgint
6833c9e4df9bSmrgmain (void)
6834533545b5Smrg{
6835533545b5Smrg
6836533545b5Smrg  ;
6837533545b5Smrg  return 0;
6838533545b5Smrg}
6839533545b5Smrg_ACEOF
6840c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
6841c9e4df9bSmrgthen :
6842533545b5Smrg  eval $cacheid=yes
6843c9e4df9bSmrgelse $as_nop
6844533545b5Smrg  eval $cacheid=no
6845533545b5Smrgfi
6846c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6847533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
6848533545b5Smrgfi
6849533545b5Smrg
6850533545b5Smrg
6851533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
6852533545b5Smrg
6853533545b5Smrg		eval supported=\$$cacheid
6854c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6855c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
6856533545b5Smrg		if test "$supported" = "yes" ; then
6857533545b5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6858533545b5Smrg			found="yes"
6859533545b5Smrg		fi
6860533545b5Smrg	fi
6861533545b5Smrg
6862533545b5Smrg
6863533545b5Smrg
6864533545b5Smrg
6865533545b5Smrg
6866533545b5Smrg
6867533545b5Smrg
6868533545b5Smrg
6869533545b5Smrg
6870533545b5Smrg
6871533545b5Smrg
6872533545b5Smrg
6873533545b5Smrg
6874533545b5Smrg
6875533545b5Smrg
6876533545b5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
6877533545b5Smrg
6878533545b5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6879533545b5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6880c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6881c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6882c9e4df9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6883c9e4df9bSmrgthen :
6884c9e4df9bSmrg  printf %s "(cached) " >&6
6885c9e4df9bSmrgelse $as_nop
6886533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6887533545b5Smrg/* end confdefs.h.  */
6888533545b5Smrgint i;
6889533545b5Smrg_ACEOF
6890c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
6891c9e4df9bSmrgthen :
6892533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
6893c9e4df9bSmrgelse $as_nop
6894533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
6895533545b5Smrgfi
6896c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6897533545b5Smrgfi
6898c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6899c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6900533545b5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6901533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
6902533545b5Smrgfi
6903533545b5Smrg
6904533545b5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6905533545b5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6906533545b5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6907533545b5Smrg	fi
6908533545b5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6909c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6910c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6911c9e4df9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6912c9e4df9bSmrgthen :
6913c9e4df9bSmrg  printf %s "(cached) " >&6
6914c9e4df9bSmrgelse $as_nop
6915533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6916533545b5Smrg/* end confdefs.h.  */
6917533545b5Smrgint i;
6918533545b5Smrg_ACEOF
6919c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
6920c9e4df9bSmrgthen :
6921533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6922c9e4df9bSmrgelse $as_nop
6923533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
6924533545b5Smrgfi
6925c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6926533545b5Smrgfi
6927c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6928c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6929533545b5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6930533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
6931533545b5Smrgfi
6932533545b5Smrg
6933533545b5Smrgfound="no"
6934533545b5Smrg
6935533545b5Smrg	if test $found = "no" ; then
6936533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6937533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6938533545b5Smrg		fi
6939533545b5Smrg
6940533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6941533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6942533545b5Smrg		fi
6943533545b5Smrg
6944533545b5Smrg		CFLAGS="$CFLAGS -Wredundant-decls"
6945533545b5Smrg
6946c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6947c9e4df9bSmrgprintf %s "checking if $CC supports -Wredundant-decls... " >&6; }
6948533545b5Smrg		cacheid=xorg_cv_cc_flag__Wredundant_decls
6949c9e4df9bSmrg		if eval test \${$cacheid+y}
6950c9e4df9bSmrgthen :
6951c9e4df9bSmrg  printf %s "(cached) " >&6
6952c9e4df9bSmrgelse $as_nop
6953533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6954533545b5Smrg/* end confdefs.h.  */
6955533545b5Smrgint i;
6956533545b5Smrgint
6957c9e4df9bSmrgmain (void)
6958533545b5Smrg{
6959533545b5Smrg
6960533545b5Smrg  ;
6961533545b5Smrg  return 0;
6962533545b5Smrg}
6963533545b5Smrg_ACEOF
6964c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
6965c9e4df9bSmrgthen :
6966533545b5Smrg  eval $cacheid=yes
6967c9e4df9bSmrgelse $as_nop
6968533545b5Smrg  eval $cacheid=no
6969533545b5Smrgfi
6970c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6971533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
6972533545b5Smrgfi
6973533545b5Smrg
6974533545b5Smrg
6975533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
6976533545b5Smrg
6977533545b5Smrg		eval supported=\$$cacheid
6978c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6979c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
6980533545b5Smrg		if test "$supported" = "yes" ; then
6981533545b5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6982533545b5Smrg			found="yes"
6983533545b5Smrg		fi
6984533545b5Smrg	fi
6985533545b5Smrg
6986533545b5Smrg
6987533545b5Smrg
6988533545b5Smrg
6989533545b5Smrg
6990533545b5Smrg
6991533545b5Smrg
6992533545b5Smrg
6993533545b5Smrg
6994533545b5Smrg
6995533545b5Smrg
6996533545b5Smrg
6997533545b5Smrg
6998533545b5Smrg
6999533545b5Smrg
7000533545b5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
7001533545b5Smrg
7002533545b5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7003533545b5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7004c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7005c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7006c9e4df9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7007c9e4df9bSmrgthen :
7008c9e4df9bSmrg  printf %s "(cached) " >&6
7009c9e4df9bSmrgelse $as_nop
7010533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7011533545b5Smrg/* end confdefs.h.  */
7012533545b5Smrgint i;
7013533545b5Smrg_ACEOF
7014c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
7015c9e4df9bSmrgthen :
7016533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
7017c9e4df9bSmrgelse $as_nop
7018533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
7019533545b5Smrgfi
7020c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7021533545b5Smrgfi
7022c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7023c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7024533545b5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7025533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
7026533545b5Smrgfi
7027533545b5Smrg
7028533545b5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7029533545b5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7030533545b5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7031533545b5Smrg	fi
7032533545b5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7033c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7034c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7035c9e4df9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7036c9e4df9bSmrgthen :
7037c9e4df9bSmrg  printf %s "(cached) " >&6
7038c9e4df9bSmrgelse $as_nop
7039533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7040533545b5Smrg/* end confdefs.h.  */
7041533545b5Smrgint i;
7042533545b5Smrg_ACEOF
7043c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
7044c9e4df9bSmrgthen :
7045533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7046c9e4df9bSmrgelse $as_nop
7047533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
7048533545b5Smrgfi
7049c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7050533545b5Smrgfi
7051c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7052c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7053533545b5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7054533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
7055533545b5Smrgfi
7056533545b5Smrg
7057533545b5Smrgfound="no"
7058533545b5Smrg
7059533545b5Smrg	if test $found = "no" ; then
7060533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7061533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7062533545b5Smrg		fi
7063533545b5Smrg
7064533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7065533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7066533545b5Smrg		fi
7067533545b5Smrg
7068533545b5Smrg		CFLAGS="$CFLAGS -Wlogical-op"
7069533545b5Smrg
7070c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7071c9e4df9bSmrgprintf %s "checking if $CC supports -Wlogical-op... " >&6; }
7072533545b5Smrg		cacheid=xorg_cv_cc_flag__Wlogical_op
7073c9e4df9bSmrg		if eval test \${$cacheid+y}
7074c9e4df9bSmrgthen :
7075c9e4df9bSmrg  printf %s "(cached) " >&6
7076c9e4df9bSmrgelse $as_nop
7077533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7078533545b5Smrg/* end confdefs.h.  */
7079533545b5Smrgint i;
7080533545b5Smrgint
7081c9e4df9bSmrgmain (void)
7082533545b5Smrg{
7083533545b5Smrg
7084533545b5Smrg  ;
7085533545b5Smrg  return 0;
7086533545b5Smrg}
7087533545b5Smrg_ACEOF
7088c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
7089c9e4df9bSmrgthen :
7090533545b5Smrg  eval $cacheid=yes
7091c9e4df9bSmrgelse $as_nop
7092533545b5Smrg  eval $cacheid=no
7093533545b5Smrgfi
7094c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7095533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
7096533545b5Smrgfi
7097533545b5Smrg
7098533545b5Smrg
7099533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
7100533545b5Smrg
7101533545b5Smrg		eval supported=\$$cacheid
7102c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7103c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
7104533545b5Smrg		if test "$supported" = "yes" ; then
7105533545b5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7106533545b5Smrg			found="yes"
7107533545b5Smrg		fi
7108533545b5Smrg	fi
7109533545b5Smrg
7110533545b5Smrg
7111533545b5Smrg
7112533545b5Smrg# These are currently disabled because they are noisy.  They will be enabled
7113533545b5Smrg# in the future once the codebase is sufficiently modernized to silence
7114533545b5Smrg# them.  For now, I don't want them to drown out the other warnings.
7115533545b5Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7116533545b5Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7117533545b5Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7118533545b5Smrg
7119533545b5Smrg# Turn some warnings into errors, so we don't accidently get successful builds
7120533545b5Smrg# when there are problems that should be fixed.
7121533545b5Smrg
7122533545b5Smrgif test "x$SELECTIVE_WERROR" = "xyes" ; then
7123533545b5Smrg
7124533545b5Smrg
7125533545b5Smrg
7126533545b5Smrg
7127533545b5Smrg
7128533545b5Smrg
7129533545b5Smrg
7130533545b5Smrg
7131533545b5Smrg
7132533545b5Smrg
7133533545b5Smrg
7134533545b5Smrg
7135533545b5Smrg
7136533545b5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
7137533545b5Smrg
7138533545b5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7139533545b5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7140c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7141c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7142c9e4df9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7143c9e4df9bSmrgthen :
7144c9e4df9bSmrg  printf %s "(cached) " >&6
7145c9e4df9bSmrgelse $as_nop
7146533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7147533545b5Smrg/* end confdefs.h.  */
7148533545b5Smrgint i;
7149533545b5Smrg_ACEOF
7150c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
7151c9e4df9bSmrgthen :
7152533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
7153c9e4df9bSmrgelse $as_nop
7154533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
7155533545b5Smrgfi
7156c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7157533545b5Smrgfi
7158c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7159c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7160533545b5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7161533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
7162533545b5Smrgfi
7163533545b5Smrg
7164533545b5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7165533545b5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7166533545b5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7167533545b5Smrg	fi
7168533545b5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7169c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7170c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7171c9e4df9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7172c9e4df9bSmrgthen :
7173c9e4df9bSmrg  printf %s "(cached) " >&6
7174c9e4df9bSmrgelse $as_nop
7175533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7176533545b5Smrg/* end confdefs.h.  */
7177533545b5Smrgint i;
7178533545b5Smrg_ACEOF
7179c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
7180c9e4df9bSmrgthen :
7181533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7182c9e4df9bSmrgelse $as_nop
7183533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
7184533545b5Smrgfi
7185c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7186533545b5Smrgfi
7187c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7188c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7189533545b5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7190533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
7191533545b5Smrgfi
7192533545b5Smrg
7193533545b5Smrgfound="no"
7194533545b5Smrg
7195533545b5Smrg	if test $found = "no" ; then
7196533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7197533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7198533545b5Smrg		fi
7199533545b5Smrg
7200533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7201533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7202533545b5Smrg		fi
7203533545b5Smrg
7204533545b5Smrg		CFLAGS="$CFLAGS -Werror=implicit"
7205533545b5Smrg
7206c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7207c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=implicit... " >&6; }
7208533545b5Smrg		cacheid=xorg_cv_cc_flag__Werror_implicit
7209c9e4df9bSmrg		if eval test \${$cacheid+y}
7210c9e4df9bSmrgthen :
7211c9e4df9bSmrg  printf %s "(cached) " >&6
7212c9e4df9bSmrgelse $as_nop
7213533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7214533545b5Smrg/* end confdefs.h.  */
7215533545b5Smrgint i;
7216533545b5Smrgint
7217c9e4df9bSmrgmain (void)
7218533545b5Smrg{
7219533545b5Smrg
7220533545b5Smrg  ;
7221533545b5Smrg  return 0;
7222533545b5Smrg}
7223533545b5Smrg_ACEOF
7224c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
7225c9e4df9bSmrgthen :
7226533545b5Smrg  eval $cacheid=yes
7227c9e4df9bSmrgelse $as_nop
7228533545b5Smrg  eval $cacheid=no
7229533545b5Smrgfi
7230c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7231533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
7232533545b5Smrgfi
7233533545b5Smrg
7234533545b5Smrg
7235533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
7236533545b5Smrg
7237533545b5Smrg		eval supported=\$$cacheid
7238c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7239c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
7240533545b5Smrg		if test "$supported" = "yes" ; then
7241533545b5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7242533545b5Smrg			found="yes"
7243533545b5Smrg		fi
7244533545b5Smrg	fi
7245533545b5Smrg
7246533545b5Smrg	if test $found = "no" ; then
7247533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7248533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7249533545b5Smrg		fi
7250533545b5Smrg
7251533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7252533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7253533545b5Smrg		fi
7254533545b5Smrg
7255533545b5Smrg		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7256533545b5Smrg
7257c9e4df9bSmrg		{ 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
7258c9e4df9bSmrgprintf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7259533545b5Smrg		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7260c9e4df9bSmrg		if eval test \${$cacheid+y}
7261c9e4df9bSmrgthen :
7262c9e4df9bSmrg  printf %s "(cached) " >&6
7263c9e4df9bSmrgelse $as_nop
7264533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7265533545b5Smrg/* end confdefs.h.  */
7266533545b5Smrgint i;
7267533545b5Smrgint
7268c9e4df9bSmrgmain (void)
7269533545b5Smrg{
7270533545b5Smrg
7271533545b5Smrg  ;
7272533545b5Smrg  return 0;
7273533545b5Smrg}
7274533545b5Smrg_ACEOF
7275c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
7276c9e4df9bSmrgthen :
7277533545b5Smrg  eval $cacheid=yes
7278c9e4df9bSmrgelse $as_nop
7279533545b5Smrg  eval $cacheid=no
7280533545b5Smrgfi
7281c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7282533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
7283533545b5Smrgfi
7284533545b5Smrg
7285533545b5Smrg
7286533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
7287533545b5Smrg
7288533545b5Smrg		eval supported=\$$cacheid
7289c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7290c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
7291533545b5Smrg		if test "$supported" = "yes" ; then
7292533545b5Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7293533545b5Smrg			found="yes"
7294533545b5Smrg		fi
7295533545b5Smrg	fi
7296533545b5Smrg
7297533545b5Smrg
7298533545b5Smrg
7299533545b5Smrg
7300533545b5Smrg
7301533545b5Smrg
7302533545b5Smrg
7303533545b5Smrg
7304533545b5Smrg
7305533545b5Smrg
7306533545b5Smrg
7307533545b5Smrg
7308533545b5Smrg
7309533545b5Smrg
7310533545b5Smrg
7311533545b5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
7312533545b5Smrg
7313533545b5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7314533545b5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7315c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7316c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7317c9e4df9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7318c9e4df9bSmrgthen :
7319c9e4df9bSmrg  printf %s "(cached) " >&6
7320c9e4df9bSmrgelse $as_nop
7321533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7322533545b5Smrg/* end confdefs.h.  */
7323533545b5Smrgint i;
7324533545b5Smrg_ACEOF
7325c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
7326c9e4df9bSmrgthen :
7327533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
7328c9e4df9bSmrgelse $as_nop
7329533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
7330533545b5Smrgfi
7331c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7332533545b5Smrgfi
7333c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7334c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7335533545b5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7336533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
7337533545b5Smrgfi
7338533545b5Smrg
7339533545b5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7340533545b5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7341533545b5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7342533545b5Smrg	fi
7343533545b5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7344c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7345c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7346c9e4df9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7347c9e4df9bSmrgthen :
7348c9e4df9bSmrg  printf %s "(cached) " >&6
7349c9e4df9bSmrgelse $as_nop
7350533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7351533545b5Smrg/* end confdefs.h.  */
7352533545b5Smrgint i;
7353533545b5Smrg_ACEOF
7354c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
7355c9e4df9bSmrgthen :
7356533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7357c9e4df9bSmrgelse $as_nop
7358533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
7359533545b5Smrgfi
7360c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7361533545b5Smrgfi
7362c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7363c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7364533545b5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7365533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
7366533545b5Smrgfi
7367533545b5Smrg
7368533545b5Smrgfound="no"
7369533545b5Smrg
7370533545b5Smrg	if test $found = "no" ; then
7371533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7372533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7373533545b5Smrg		fi
7374533545b5Smrg
7375533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7376533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7377533545b5Smrg		fi
7378533545b5Smrg
7379533545b5Smrg		CFLAGS="$CFLAGS -Werror=nonnull"
7380533545b5Smrg
7381c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7382c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7383533545b5Smrg		cacheid=xorg_cv_cc_flag__Werror_nonnull
7384c9e4df9bSmrg		if eval test \${$cacheid+y}
7385c9e4df9bSmrgthen :
7386c9e4df9bSmrg  printf %s "(cached) " >&6
7387c9e4df9bSmrgelse $as_nop
7388533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7389533545b5Smrg/* end confdefs.h.  */
7390533545b5Smrgint i;
7391533545b5Smrgint
7392c9e4df9bSmrgmain (void)
7393533545b5Smrg{
7394533545b5Smrg
7395533545b5Smrg  ;
7396533545b5Smrg  return 0;
7397533545b5Smrg}
7398533545b5Smrg_ACEOF
7399c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
7400c9e4df9bSmrgthen :
7401533545b5Smrg  eval $cacheid=yes
7402c9e4df9bSmrgelse $as_nop
7403533545b5Smrg  eval $cacheid=no
7404533545b5Smrgfi
7405c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7406533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
7407533545b5Smrgfi
7408533545b5Smrg
7409533545b5Smrg
7410533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
7411533545b5Smrg
7412533545b5Smrg		eval supported=\$$cacheid
7413c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7414c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
7415533545b5Smrg		if test "$supported" = "yes" ; then
7416533545b5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7417533545b5Smrg			found="yes"
7418533545b5Smrg		fi
7419533545b5Smrg	fi
7420533545b5Smrg
7421533545b5Smrg
7422533545b5Smrg
7423533545b5Smrg
7424533545b5Smrg
7425533545b5Smrg
7426533545b5Smrg
7427533545b5Smrg
7428533545b5Smrg
7429533545b5Smrg
7430533545b5Smrg
7431533545b5Smrg
7432533545b5Smrg
7433533545b5Smrg
7434533545b5Smrg
7435533545b5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
7436533545b5Smrg
7437533545b5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7438533545b5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7439c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7440c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7441c9e4df9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7442c9e4df9bSmrgthen :
7443c9e4df9bSmrg  printf %s "(cached) " >&6
7444c9e4df9bSmrgelse $as_nop
7445533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7446533545b5Smrg/* end confdefs.h.  */
7447533545b5Smrgint i;
7448533545b5Smrg_ACEOF
7449c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
7450c9e4df9bSmrgthen :
7451533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
7452c9e4df9bSmrgelse $as_nop
7453533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
7454533545b5Smrgfi
7455c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7456533545b5Smrgfi
7457c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7458c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7459533545b5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7460533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
7461533545b5Smrgfi
7462533545b5Smrg
7463533545b5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7464533545b5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7465533545b5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7466533545b5Smrg	fi
7467533545b5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7468c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7469c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7470c9e4df9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7471c9e4df9bSmrgthen :
7472c9e4df9bSmrg  printf %s "(cached) " >&6
7473c9e4df9bSmrgelse $as_nop
7474533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475533545b5Smrg/* end confdefs.h.  */
7476533545b5Smrgint i;
7477533545b5Smrg_ACEOF
7478c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
7479c9e4df9bSmrgthen :
7480533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7481c9e4df9bSmrgelse $as_nop
7482533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
7483533545b5Smrgfi
7484c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7485533545b5Smrgfi
7486c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7487c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7488533545b5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7489533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
7490533545b5Smrgfi
7491533545b5Smrg
7492533545b5Smrgfound="no"
7493533545b5Smrg
7494533545b5Smrg	if test $found = "no" ; then
7495533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7496533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7497533545b5Smrg		fi
7498533545b5Smrg
7499533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7500533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7501533545b5Smrg		fi
7502533545b5Smrg
7503533545b5Smrg		CFLAGS="$CFLAGS -Werror=init-self"
7504533545b5Smrg
7505c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7506c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=init-self... " >&6; }
7507533545b5Smrg		cacheid=xorg_cv_cc_flag__Werror_init_self
7508c9e4df9bSmrg		if eval test \${$cacheid+y}
7509c9e4df9bSmrgthen :
7510c9e4df9bSmrg  printf %s "(cached) " >&6
7511c9e4df9bSmrgelse $as_nop
7512533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7513533545b5Smrg/* end confdefs.h.  */
7514533545b5Smrgint i;
7515533545b5Smrgint
7516c9e4df9bSmrgmain (void)
7517533545b5Smrg{
7518533545b5Smrg
7519533545b5Smrg  ;
7520533545b5Smrg  return 0;
7521533545b5Smrg}
7522533545b5Smrg_ACEOF
7523c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
7524c9e4df9bSmrgthen :
7525533545b5Smrg  eval $cacheid=yes
7526c9e4df9bSmrgelse $as_nop
7527533545b5Smrg  eval $cacheid=no
7528533545b5Smrgfi
7529c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7530533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
7531533545b5Smrgfi
7532533545b5Smrg
7533533545b5Smrg
7534533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
7535533545b5Smrg
7536533545b5Smrg		eval supported=\$$cacheid
7537c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7538c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
7539533545b5Smrg		if test "$supported" = "yes" ; then
7540533545b5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7541533545b5Smrg			found="yes"
7542533545b5Smrg		fi
7543533545b5Smrg	fi
7544533545b5Smrg
7545533545b5Smrg
7546533545b5Smrg
7547533545b5Smrg
7548533545b5Smrg
7549533545b5Smrg
7550533545b5Smrg
7551533545b5Smrg
7552533545b5Smrg
7553533545b5Smrg
7554533545b5Smrg
7555533545b5Smrg
7556533545b5Smrg
7557533545b5Smrg
7558533545b5Smrg
7559533545b5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
7560533545b5Smrg
7561533545b5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7562533545b5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7563c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7564c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7565c9e4df9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7566c9e4df9bSmrgthen :
7567c9e4df9bSmrg  printf %s "(cached) " >&6
7568c9e4df9bSmrgelse $as_nop
7569533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7570533545b5Smrg/* end confdefs.h.  */
7571533545b5Smrgint i;
7572533545b5Smrg_ACEOF
7573c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
7574c9e4df9bSmrgthen :
7575533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
7576c9e4df9bSmrgelse $as_nop
7577533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
7578533545b5Smrgfi
7579c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7580533545b5Smrgfi
7581c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7582c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7583533545b5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7584533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
7585533545b5Smrgfi
7586533545b5Smrg
7587533545b5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7588533545b5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7589533545b5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7590533545b5Smrg	fi
7591533545b5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7592c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7593c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7594c9e4df9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7595c9e4df9bSmrgthen :
7596c9e4df9bSmrg  printf %s "(cached) " >&6
7597c9e4df9bSmrgelse $as_nop
7598533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7599533545b5Smrg/* end confdefs.h.  */
7600533545b5Smrgint i;
7601533545b5Smrg_ACEOF
7602c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
7603c9e4df9bSmrgthen :
7604533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7605c9e4df9bSmrgelse $as_nop
7606533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
7607533545b5Smrgfi
7608c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7609533545b5Smrgfi
7610c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7611c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7612533545b5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7613533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
7614533545b5Smrgfi
7615533545b5Smrg
7616533545b5Smrgfound="no"
7617533545b5Smrg
7618533545b5Smrg	if test $found = "no" ; then
7619533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7620533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7621533545b5Smrg		fi
7622533545b5Smrg
7623533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7624533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7625533545b5Smrg		fi
7626533545b5Smrg
7627533545b5Smrg		CFLAGS="$CFLAGS -Werror=main"
7628533545b5Smrg
7629c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7630c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=main... " >&6; }
7631533545b5Smrg		cacheid=xorg_cv_cc_flag__Werror_main
7632c9e4df9bSmrg		if eval test \${$cacheid+y}
7633c9e4df9bSmrgthen :
7634c9e4df9bSmrg  printf %s "(cached) " >&6
7635c9e4df9bSmrgelse $as_nop
7636533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7637533545b5Smrg/* end confdefs.h.  */
7638533545b5Smrgint i;
7639533545b5Smrgint
7640c9e4df9bSmrgmain (void)
7641533545b5Smrg{
7642533545b5Smrg
7643533545b5Smrg  ;
7644533545b5Smrg  return 0;
7645533545b5Smrg}
7646533545b5Smrg_ACEOF
7647c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
7648c9e4df9bSmrgthen :
7649533545b5Smrg  eval $cacheid=yes
7650c9e4df9bSmrgelse $as_nop
7651533545b5Smrg  eval $cacheid=no
7652533545b5Smrgfi
7653c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7654533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
7655533545b5Smrgfi
7656533545b5Smrg
7657533545b5Smrg
7658533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
7659533545b5Smrg
7660533545b5Smrg		eval supported=\$$cacheid
7661c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7662c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
7663533545b5Smrg		if test "$supported" = "yes" ; then
7664533545b5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7665533545b5Smrg			found="yes"
7666533545b5Smrg		fi
7667533545b5Smrg	fi
7668533545b5Smrg
7669533545b5Smrg
7670533545b5Smrg
7671533545b5Smrg
7672533545b5Smrg
7673533545b5Smrg
7674533545b5Smrg
7675533545b5Smrg
7676533545b5Smrg
7677533545b5Smrg
7678533545b5Smrg
7679533545b5Smrg
7680533545b5Smrg
7681533545b5Smrg
7682533545b5Smrg
7683533545b5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
7684533545b5Smrg
7685533545b5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7686533545b5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7687c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7688c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7689c9e4df9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7690c9e4df9bSmrgthen :
7691c9e4df9bSmrg  printf %s "(cached) " >&6
7692c9e4df9bSmrgelse $as_nop
7693533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7694533545b5Smrg/* end confdefs.h.  */
7695533545b5Smrgint i;
7696533545b5Smrg_ACEOF
7697c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
7698c9e4df9bSmrgthen :
7699533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
7700c9e4df9bSmrgelse $as_nop
7701533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
7702533545b5Smrgfi
7703c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7704533545b5Smrgfi
7705c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7706c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7707533545b5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7708533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
7709533545b5Smrgfi
7710533545b5Smrg
7711533545b5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7712533545b5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7713533545b5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7714533545b5Smrg	fi
7715533545b5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7716c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7717c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7718c9e4df9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7719c9e4df9bSmrgthen :
7720c9e4df9bSmrg  printf %s "(cached) " >&6
7721c9e4df9bSmrgelse $as_nop
7722533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723533545b5Smrg/* end confdefs.h.  */
7724533545b5Smrgint i;
7725533545b5Smrg_ACEOF
7726c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
7727c9e4df9bSmrgthen :
7728533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7729c9e4df9bSmrgelse $as_nop
7730533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
7731533545b5Smrgfi
7732c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7733533545b5Smrgfi
7734c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7735c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7736533545b5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7737533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
7738533545b5Smrgfi
7739533545b5Smrg
7740533545b5Smrgfound="no"
7741533545b5Smrg
7742533545b5Smrg	if test $found = "no" ; then
7743533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7744533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7745533545b5Smrg		fi
7746533545b5Smrg
7747533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7748533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7749533545b5Smrg		fi
7750533545b5Smrg
7751533545b5Smrg		CFLAGS="$CFLAGS -Werror=missing-braces"
7752533545b5Smrg
7753c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7754c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7755533545b5Smrg		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7756c9e4df9bSmrg		if eval test \${$cacheid+y}
7757c9e4df9bSmrgthen :
7758c9e4df9bSmrg  printf %s "(cached) " >&6
7759c9e4df9bSmrgelse $as_nop
7760533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7761533545b5Smrg/* end confdefs.h.  */
7762533545b5Smrgint i;
7763533545b5Smrgint
7764c9e4df9bSmrgmain (void)
7765533545b5Smrg{
7766533545b5Smrg
7767533545b5Smrg  ;
7768533545b5Smrg  return 0;
7769533545b5Smrg}
7770533545b5Smrg_ACEOF
7771c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
7772c9e4df9bSmrgthen :
7773533545b5Smrg  eval $cacheid=yes
7774c9e4df9bSmrgelse $as_nop
7775533545b5Smrg  eval $cacheid=no
7776533545b5Smrgfi
7777c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7778533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
7779533545b5Smrgfi
7780533545b5Smrg
7781533545b5Smrg
7782533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
7783533545b5Smrg
7784533545b5Smrg		eval supported=\$$cacheid
7785c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7786c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
7787533545b5Smrg		if test "$supported" = "yes" ; then
7788533545b5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7789533545b5Smrg			found="yes"
7790533545b5Smrg		fi
7791533545b5Smrg	fi
7792533545b5Smrg
7793533545b5Smrg
7794533545b5Smrg
7795533545b5Smrg
7796533545b5Smrg
7797533545b5Smrg
7798533545b5Smrg
7799533545b5Smrg
7800533545b5Smrg
7801533545b5Smrg
7802533545b5Smrg
7803533545b5Smrg
7804533545b5Smrg
7805533545b5Smrg
7806533545b5Smrg
7807533545b5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
7808533545b5Smrg
7809533545b5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7810533545b5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7811c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7812c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7813c9e4df9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7814c9e4df9bSmrgthen :
7815c9e4df9bSmrg  printf %s "(cached) " >&6
7816c9e4df9bSmrgelse $as_nop
7817533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7818533545b5Smrg/* end confdefs.h.  */
7819533545b5Smrgint i;
7820533545b5Smrg_ACEOF
7821c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
7822c9e4df9bSmrgthen :
7823533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
7824c9e4df9bSmrgelse $as_nop
7825533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
7826533545b5Smrgfi
7827c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7828533545b5Smrgfi
7829c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7830c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7831533545b5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7832533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
7833533545b5Smrgfi
7834533545b5Smrg
7835533545b5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7836533545b5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7837533545b5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7838533545b5Smrg	fi
7839533545b5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7840c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7841c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7842c9e4df9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7843c9e4df9bSmrgthen :
7844c9e4df9bSmrg  printf %s "(cached) " >&6
7845c9e4df9bSmrgelse $as_nop
7846533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7847533545b5Smrg/* end confdefs.h.  */
7848533545b5Smrgint i;
7849533545b5Smrg_ACEOF
7850c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
7851c9e4df9bSmrgthen :
7852533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7853c9e4df9bSmrgelse $as_nop
7854533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
7855533545b5Smrgfi
7856c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7857533545b5Smrgfi
7858c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7859c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7860533545b5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7861533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
7862533545b5Smrgfi
7863533545b5Smrg
7864533545b5Smrgfound="no"
7865533545b5Smrg
7866533545b5Smrg	if test $found = "no" ; then
7867533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7868533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7869533545b5Smrg		fi
7870533545b5Smrg
7871533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7872533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7873533545b5Smrg		fi
7874533545b5Smrg
7875533545b5Smrg		CFLAGS="$CFLAGS -Werror=sequence-point"
7876533545b5Smrg
7877c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7878c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7879533545b5Smrg		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7880c9e4df9bSmrg		if eval test \${$cacheid+y}
7881c9e4df9bSmrgthen :
7882c9e4df9bSmrg  printf %s "(cached) " >&6
7883c9e4df9bSmrgelse $as_nop
7884533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7885533545b5Smrg/* end confdefs.h.  */
7886533545b5Smrgint i;
7887533545b5Smrgint
7888c9e4df9bSmrgmain (void)
7889533545b5Smrg{
7890533545b5Smrg
7891533545b5Smrg  ;
7892533545b5Smrg  return 0;
7893533545b5Smrg}
7894533545b5Smrg_ACEOF
7895c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
7896c9e4df9bSmrgthen :
7897533545b5Smrg  eval $cacheid=yes
7898c9e4df9bSmrgelse $as_nop
7899533545b5Smrg  eval $cacheid=no
7900533545b5Smrgfi
7901c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7902533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
7903533545b5Smrgfi
7904533545b5Smrg
7905533545b5Smrg
7906533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
7907533545b5Smrg
7908533545b5Smrg		eval supported=\$$cacheid
7909c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7910c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
7911533545b5Smrg		if test "$supported" = "yes" ; then
7912533545b5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7913533545b5Smrg			found="yes"
7914533545b5Smrg		fi
7915533545b5Smrg	fi
7916533545b5Smrg
7917533545b5Smrg
7918533545b5Smrg
7919533545b5Smrg
7920533545b5Smrg
7921533545b5Smrg
7922533545b5Smrg
7923533545b5Smrg
7924533545b5Smrg
7925533545b5Smrg
7926533545b5Smrg
7927533545b5Smrg
7928533545b5Smrg
7929533545b5Smrg
7930533545b5Smrg
7931533545b5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
7932533545b5Smrg
7933533545b5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7934533545b5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7935c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7936c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7937c9e4df9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7938c9e4df9bSmrgthen :
7939c9e4df9bSmrg  printf %s "(cached) " >&6
7940c9e4df9bSmrgelse $as_nop
7941533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7942533545b5Smrg/* end confdefs.h.  */
7943533545b5Smrgint i;
7944533545b5Smrg_ACEOF
7945c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
7946c9e4df9bSmrgthen :
7947533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
7948c9e4df9bSmrgelse $as_nop
7949533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
7950533545b5Smrgfi
7951c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7952533545b5Smrgfi
7953c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7954c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7955533545b5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7956533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
7957533545b5Smrgfi
7958533545b5Smrg
7959533545b5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7960533545b5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7961533545b5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7962533545b5Smrg	fi
7963533545b5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7964c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7965c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7966c9e4df9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7967c9e4df9bSmrgthen :
7968c9e4df9bSmrg  printf %s "(cached) " >&6
7969c9e4df9bSmrgelse $as_nop
7970533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7971533545b5Smrg/* end confdefs.h.  */
7972533545b5Smrgint i;
7973533545b5Smrg_ACEOF
7974c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
7975c9e4df9bSmrgthen :
7976533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7977c9e4df9bSmrgelse $as_nop
7978533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
7979533545b5Smrgfi
7980c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7981533545b5Smrgfi
7982c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7983c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7984533545b5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7985533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
7986533545b5Smrgfi
7987533545b5Smrg
7988533545b5Smrgfound="no"
7989533545b5Smrg
7990533545b5Smrg	if test $found = "no" ; then
7991533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7992533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7993533545b5Smrg		fi
7994533545b5Smrg
7995533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7996533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7997533545b5Smrg		fi
7998533545b5Smrg
7999533545b5Smrg		CFLAGS="$CFLAGS -Werror=return-type"
8000533545b5Smrg
8001c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8002c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=return-type... " >&6; }
8003533545b5Smrg		cacheid=xorg_cv_cc_flag__Werror_return_type
8004c9e4df9bSmrg		if eval test \${$cacheid+y}
8005c9e4df9bSmrgthen :
8006c9e4df9bSmrg  printf %s "(cached) " >&6
8007c9e4df9bSmrgelse $as_nop
8008533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8009533545b5Smrg/* end confdefs.h.  */
8010533545b5Smrgint i;
8011533545b5Smrgint
8012c9e4df9bSmrgmain (void)
8013533545b5Smrg{
8014533545b5Smrg
8015533545b5Smrg  ;
8016533545b5Smrg  return 0;
8017533545b5Smrg}
8018533545b5Smrg_ACEOF
8019c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
8020c9e4df9bSmrgthen :
8021533545b5Smrg  eval $cacheid=yes
8022c9e4df9bSmrgelse $as_nop
8023533545b5Smrg  eval $cacheid=no
8024533545b5Smrgfi
8025c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8026533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
8027533545b5Smrgfi
8028533545b5Smrg
8029533545b5Smrg
8030533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
8031533545b5Smrg
8032533545b5Smrg		eval supported=\$$cacheid
8033c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8034c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
8035533545b5Smrg		if test "$supported" = "yes" ; then
8036533545b5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8037533545b5Smrg			found="yes"
8038533545b5Smrg		fi
8039533545b5Smrg	fi
8040533545b5Smrg
8041533545b5Smrg	if test $found = "no" ; then
8042533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8043533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8044533545b5Smrg		fi
8045533545b5Smrg
8046533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8047533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8048533545b5Smrg		fi
8049533545b5Smrg
8050533545b5Smrg		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8051533545b5Smrg
8052c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8053c9e4df9bSmrgprintf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8054533545b5Smrg		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8055c9e4df9bSmrg		if eval test \${$cacheid+y}
8056c9e4df9bSmrgthen :
8057c9e4df9bSmrg  printf %s "(cached) " >&6
8058c9e4df9bSmrgelse $as_nop
8059533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8060533545b5Smrg/* end confdefs.h.  */
8061533545b5Smrgint i;
8062533545b5Smrgint
8063c9e4df9bSmrgmain (void)
8064533545b5Smrg{
8065533545b5Smrg
8066533545b5Smrg  ;
8067533545b5Smrg  return 0;
8068533545b5Smrg}
8069533545b5Smrg_ACEOF
8070c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
8071c9e4df9bSmrgthen :
8072533545b5Smrg  eval $cacheid=yes
8073c9e4df9bSmrgelse $as_nop
8074533545b5Smrg  eval $cacheid=no
8075533545b5Smrgfi
8076c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8077533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
8078533545b5Smrgfi
8079533545b5Smrg
8080533545b5Smrg
8081533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
8082533545b5Smrg
8083533545b5Smrg		eval supported=\$$cacheid
8084c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8085c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
8086533545b5Smrg		if test "$supported" = "yes" ; then
8087533545b5Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8088533545b5Smrg			found="yes"
8089533545b5Smrg		fi
8090533545b5Smrg	fi
8091533545b5Smrg
8092533545b5Smrg
8093533545b5Smrg
8094533545b5Smrg
8095533545b5Smrg
8096533545b5Smrg
8097533545b5Smrg
8098533545b5Smrg
8099533545b5Smrg
8100533545b5Smrg
8101533545b5Smrg
8102533545b5Smrg
8103533545b5Smrg
8104533545b5Smrg
8105533545b5Smrg
8106533545b5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
8107533545b5Smrg
8108533545b5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8109533545b5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8110c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8111c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8112c9e4df9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8113c9e4df9bSmrgthen :
8114c9e4df9bSmrg  printf %s "(cached) " >&6
8115c9e4df9bSmrgelse $as_nop
8116533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8117533545b5Smrg/* end confdefs.h.  */
8118533545b5Smrgint i;
8119533545b5Smrg_ACEOF
8120c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
8121c9e4df9bSmrgthen :
8122533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
8123c9e4df9bSmrgelse $as_nop
8124533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
8125533545b5Smrgfi
8126c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8127533545b5Smrgfi
8128c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8129c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8130533545b5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8131533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
8132533545b5Smrgfi
8133533545b5Smrg
8134533545b5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8135533545b5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8136533545b5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8137533545b5Smrg	fi
8138533545b5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8139c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8140c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8141c9e4df9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8142c9e4df9bSmrgthen :
8143c9e4df9bSmrg  printf %s "(cached) " >&6
8144c9e4df9bSmrgelse $as_nop
8145533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8146533545b5Smrg/* end confdefs.h.  */
8147533545b5Smrgint i;
8148533545b5Smrg_ACEOF
8149c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
8150c9e4df9bSmrgthen :
8151533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8152c9e4df9bSmrgelse $as_nop
8153533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
8154533545b5Smrgfi
8155c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8156533545b5Smrgfi
8157c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8158c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8159533545b5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8160533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
8161533545b5Smrgfi
8162533545b5Smrg
8163533545b5Smrgfound="no"
8164533545b5Smrg
8165533545b5Smrg	if test $found = "no" ; then
8166533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8167533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8168533545b5Smrg		fi
8169533545b5Smrg
8170533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8171533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8172533545b5Smrg		fi
8173533545b5Smrg
8174533545b5Smrg		CFLAGS="$CFLAGS -Werror=trigraphs"
8175533545b5Smrg
8176c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8177c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8178533545b5Smrg		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8179c9e4df9bSmrg		if eval test \${$cacheid+y}
8180c9e4df9bSmrgthen :
8181c9e4df9bSmrg  printf %s "(cached) " >&6
8182c9e4df9bSmrgelse $as_nop
8183533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8184533545b5Smrg/* end confdefs.h.  */
8185533545b5Smrgint i;
8186533545b5Smrgint
8187c9e4df9bSmrgmain (void)
8188533545b5Smrg{
8189533545b5Smrg
8190533545b5Smrg  ;
8191533545b5Smrg  return 0;
8192533545b5Smrg}
8193533545b5Smrg_ACEOF
8194c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
8195c9e4df9bSmrgthen :
8196533545b5Smrg  eval $cacheid=yes
8197c9e4df9bSmrgelse $as_nop
8198533545b5Smrg  eval $cacheid=no
8199533545b5Smrgfi
8200c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8201533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
8202533545b5Smrgfi
8203533545b5Smrg
8204533545b5Smrg
8205533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
8206533545b5Smrg
8207533545b5Smrg		eval supported=\$$cacheid
8208c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8209c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
8210533545b5Smrg		if test "$supported" = "yes" ; then
8211533545b5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8212533545b5Smrg			found="yes"
8213533545b5Smrg		fi
8214533545b5Smrg	fi
8215533545b5Smrg
8216533545b5Smrg
8217533545b5Smrg
8218533545b5Smrg
8219533545b5Smrg
8220533545b5Smrg
8221533545b5Smrg
8222533545b5Smrg
8223533545b5Smrg
8224533545b5Smrg
8225533545b5Smrg
8226533545b5Smrg
8227533545b5Smrg
8228533545b5Smrg
8229533545b5Smrg
8230533545b5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
8231533545b5Smrg
8232533545b5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8233533545b5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8234c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8235c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8236c9e4df9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8237c9e4df9bSmrgthen :
8238c9e4df9bSmrg  printf %s "(cached) " >&6
8239c9e4df9bSmrgelse $as_nop
8240533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8241533545b5Smrg/* end confdefs.h.  */
8242533545b5Smrgint i;
8243533545b5Smrg_ACEOF
8244c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
8245c9e4df9bSmrgthen :
8246533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
8247c9e4df9bSmrgelse $as_nop
8248533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
8249533545b5Smrgfi
8250c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8251533545b5Smrgfi
8252c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8253c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8254533545b5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8255533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
8256533545b5Smrgfi
8257533545b5Smrg
8258533545b5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8259533545b5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8260533545b5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8261533545b5Smrg	fi
8262533545b5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8263c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8264c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8265c9e4df9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8266c9e4df9bSmrgthen :
8267c9e4df9bSmrg  printf %s "(cached) " >&6
8268c9e4df9bSmrgelse $as_nop
8269533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8270533545b5Smrg/* end confdefs.h.  */
8271533545b5Smrgint i;
8272533545b5Smrg_ACEOF
8273c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
8274c9e4df9bSmrgthen :
8275533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8276c9e4df9bSmrgelse $as_nop
8277533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
8278533545b5Smrgfi
8279c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8280533545b5Smrgfi
8281c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8282c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8283533545b5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8284533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
8285533545b5Smrgfi
8286533545b5Smrg
8287533545b5Smrgfound="no"
8288533545b5Smrg
8289533545b5Smrg	if test $found = "no" ; then
8290533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8291533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8292533545b5Smrg		fi
8293533545b5Smrg
8294533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8295533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8296533545b5Smrg		fi
8297533545b5Smrg
8298533545b5Smrg		CFLAGS="$CFLAGS -Werror=array-bounds"
8299533545b5Smrg
8300c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8301c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8302533545b5Smrg		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8303c9e4df9bSmrg		if eval test \${$cacheid+y}
8304c9e4df9bSmrgthen :
8305c9e4df9bSmrg  printf %s "(cached) " >&6
8306c9e4df9bSmrgelse $as_nop
8307533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8308533545b5Smrg/* end confdefs.h.  */
8309533545b5Smrgint i;
8310533545b5Smrgint
8311c9e4df9bSmrgmain (void)
8312533545b5Smrg{
8313533545b5Smrg
8314533545b5Smrg  ;
8315533545b5Smrg  return 0;
8316533545b5Smrg}
8317533545b5Smrg_ACEOF
8318c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
8319c9e4df9bSmrgthen :
8320533545b5Smrg  eval $cacheid=yes
8321c9e4df9bSmrgelse $as_nop
8322533545b5Smrg  eval $cacheid=no
8323533545b5Smrgfi
8324c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8325533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
8326533545b5Smrgfi
8327533545b5Smrg
8328533545b5Smrg
8329533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
8330533545b5Smrg
8331533545b5Smrg		eval supported=\$$cacheid
8332c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8333c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
8334533545b5Smrg		if test "$supported" = "yes" ; then
8335533545b5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8336533545b5Smrg			found="yes"
8337533545b5Smrg		fi
8338533545b5Smrg	fi
8339533545b5Smrg
8340533545b5Smrg
8341533545b5Smrg
8342533545b5Smrg
8343533545b5Smrg
8344533545b5Smrg
8345533545b5Smrg
8346533545b5Smrg
8347533545b5Smrg
8348533545b5Smrg
8349533545b5Smrg
8350533545b5Smrg
8351533545b5Smrg
8352533545b5Smrg
8353533545b5Smrg
8354533545b5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
8355533545b5Smrg
8356533545b5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8357533545b5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8358c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8359c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8360c9e4df9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8361c9e4df9bSmrgthen :
8362c9e4df9bSmrg  printf %s "(cached) " >&6
8363c9e4df9bSmrgelse $as_nop
8364533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8365533545b5Smrg/* end confdefs.h.  */
8366533545b5Smrgint i;
8367533545b5Smrg_ACEOF
8368c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
8369c9e4df9bSmrgthen :
8370533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
8371c9e4df9bSmrgelse $as_nop
8372533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
8373533545b5Smrgfi
8374c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8375533545b5Smrgfi
8376c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8377c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8378533545b5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8379533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
8380533545b5Smrgfi
8381533545b5Smrg
8382533545b5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8383533545b5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8384533545b5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8385533545b5Smrg	fi
8386533545b5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8387c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8388c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8389c9e4df9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8390c9e4df9bSmrgthen :
8391c9e4df9bSmrg  printf %s "(cached) " >&6
8392c9e4df9bSmrgelse $as_nop
8393533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8394533545b5Smrg/* end confdefs.h.  */
8395533545b5Smrgint i;
8396533545b5Smrg_ACEOF
8397c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
8398c9e4df9bSmrgthen :
8399533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8400c9e4df9bSmrgelse $as_nop
8401533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
8402533545b5Smrgfi
8403c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8404533545b5Smrgfi
8405c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8406c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8407533545b5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8408533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
8409533545b5Smrgfi
8410533545b5Smrg
8411533545b5Smrgfound="no"
8412533545b5Smrg
8413533545b5Smrg	if test $found = "no" ; then
8414533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8415533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8416533545b5Smrg		fi
8417533545b5Smrg
8418533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8419533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8420533545b5Smrg		fi
8421533545b5Smrg
8422533545b5Smrg		CFLAGS="$CFLAGS -Werror=write-strings"
8423533545b5Smrg
8424c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8425c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8426533545b5Smrg		cacheid=xorg_cv_cc_flag__Werror_write_strings
8427c9e4df9bSmrg		if eval test \${$cacheid+y}
8428c9e4df9bSmrgthen :
8429c9e4df9bSmrg  printf %s "(cached) " >&6
8430c9e4df9bSmrgelse $as_nop
8431533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8432533545b5Smrg/* end confdefs.h.  */
8433533545b5Smrgint i;
8434533545b5Smrgint
8435c9e4df9bSmrgmain (void)
8436533545b5Smrg{
8437533545b5Smrg
8438533545b5Smrg  ;
8439533545b5Smrg  return 0;
8440533545b5Smrg}
8441533545b5Smrg_ACEOF
8442c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
8443c9e4df9bSmrgthen :
8444533545b5Smrg  eval $cacheid=yes
8445c9e4df9bSmrgelse $as_nop
8446533545b5Smrg  eval $cacheid=no
8447533545b5Smrgfi
8448c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8449533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
8450533545b5Smrgfi
8451533545b5Smrg
8452533545b5Smrg
8453533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
8454533545b5Smrg
8455533545b5Smrg		eval supported=\$$cacheid
8456c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8457c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
8458533545b5Smrg		if test "$supported" = "yes" ; then
8459533545b5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8460533545b5Smrg			found="yes"
8461533545b5Smrg		fi
8462533545b5Smrg	fi
8463533545b5Smrg
8464533545b5Smrg
8465533545b5Smrg
8466533545b5Smrg
8467533545b5Smrg
8468533545b5Smrg
8469533545b5Smrg
8470533545b5Smrg
8471533545b5Smrg
8472533545b5Smrg
8473533545b5Smrg
8474533545b5Smrg
8475533545b5Smrg
8476533545b5Smrg
8477533545b5Smrg
8478533545b5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
8479533545b5Smrg
8480533545b5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8481533545b5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8482c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8483c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8484c9e4df9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8485c9e4df9bSmrgthen :
8486c9e4df9bSmrg  printf %s "(cached) " >&6
8487c9e4df9bSmrgelse $as_nop
8488533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8489533545b5Smrg/* end confdefs.h.  */
8490533545b5Smrgint i;
8491533545b5Smrg_ACEOF
8492c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
8493c9e4df9bSmrgthen :
8494533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
8495c9e4df9bSmrgelse $as_nop
8496533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
8497533545b5Smrgfi
8498c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8499533545b5Smrgfi
8500c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8501c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8502533545b5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8503533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
8504533545b5Smrgfi
8505533545b5Smrg
8506533545b5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8507533545b5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8508533545b5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8509533545b5Smrg	fi
8510533545b5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8511c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8512c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8513c9e4df9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8514c9e4df9bSmrgthen :
8515c9e4df9bSmrg  printf %s "(cached) " >&6
8516c9e4df9bSmrgelse $as_nop
8517533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8518533545b5Smrg/* end confdefs.h.  */
8519533545b5Smrgint i;
8520533545b5Smrg_ACEOF
8521c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
8522c9e4df9bSmrgthen :
8523533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8524c9e4df9bSmrgelse $as_nop
8525533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
8526533545b5Smrgfi
8527c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8528533545b5Smrgfi
8529c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8530c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8531533545b5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8532533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
8533533545b5Smrgfi
8534533545b5Smrg
8535533545b5Smrgfound="no"
8536533545b5Smrg
8537533545b5Smrg	if test $found = "no" ; then
8538533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8539533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8540533545b5Smrg		fi
8541533545b5Smrg
8542533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8543533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8544533545b5Smrg		fi
8545533545b5Smrg
8546533545b5Smrg		CFLAGS="$CFLAGS -Werror=address"
8547533545b5Smrg
8548c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8549c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=address... " >&6; }
8550533545b5Smrg		cacheid=xorg_cv_cc_flag__Werror_address
8551c9e4df9bSmrg		if eval test \${$cacheid+y}
8552c9e4df9bSmrgthen :
8553c9e4df9bSmrg  printf %s "(cached) " >&6
8554c9e4df9bSmrgelse $as_nop
8555533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8556533545b5Smrg/* end confdefs.h.  */
8557533545b5Smrgint i;
8558533545b5Smrgint
8559c9e4df9bSmrgmain (void)
8560533545b5Smrg{
8561533545b5Smrg
8562533545b5Smrg  ;
8563533545b5Smrg  return 0;
8564533545b5Smrg}
8565533545b5Smrg_ACEOF
8566c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
8567c9e4df9bSmrgthen :
8568533545b5Smrg  eval $cacheid=yes
8569c9e4df9bSmrgelse $as_nop
8570533545b5Smrg  eval $cacheid=no
8571533545b5Smrgfi
8572c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8573533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
8574533545b5Smrgfi
8575533545b5Smrg
8576533545b5Smrg
8577533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
8578533545b5Smrg
8579533545b5Smrg		eval supported=\$$cacheid
8580c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8581c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
8582533545b5Smrg		if test "$supported" = "yes" ; then
8583533545b5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8584533545b5Smrg			found="yes"
8585533545b5Smrg		fi
8586533545b5Smrg	fi
8587533545b5Smrg
8588533545b5Smrg
8589533545b5Smrg
8590533545b5Smrg
8591533545b5Smrg
8592533545b5Smrg
8593533545b5Smrg
8594533545b5Smrg
8595533545b5Smrg
8596533545b5Smrg
8597533545b5Smrg
8598533545b5Smrg
8599533545b5Smrg
8600533545b5Smrg
8601533545b5Smrg
8602533545b5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
8603533545b5Smrg
8604533545b5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8605533545b5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8606c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8607c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8608c9e4df9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8609c9e4df9bSmrgthen :
8610c9e4df9bSmrg  printf %s "(cached) " >&6
8611c9e4df9bSmrgelse $as_nop
8612533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8613533545b5Smrg/* end confdefs.h.  */
8614533545b5Smrgint i;
8615533545b5Smrg_ACEOF
8616c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
8617c9e4df9bSmrgthen :
8618533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
8619c9e4df9bSmrgelse $as_nop
8620533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
8621533545b5Smrgfi
8622c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8623533545b5Smrgfi
8624c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8625c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8626533545b5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8627533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
8628533545b5Smrgfi
8629533545b5Smrg
8630533545b5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8631533545b5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8632533545b5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8633533545b5Smrg	fi
8634533545b5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8635c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8636c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8637c9e4df9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8638c9e4df9bSmrgthen :
8639c9e4df9bSmrg  printf %s "(cached) " >&6
8640c9e4df9bSmrgelse $as_nop
8641533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8642533545b5Smrg/* end confdefs.h.  */
8643533545b5Smrgint i;
8644533545b5Smrg_ACEOF
8645c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
8646c9e4df9bSmrgthen :
8647533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8648c9e4df9bSmrgelse $as_nop
8649533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
8650533545b5Smrgfi
8651c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8652533545b5Smrgfi
8653c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8654c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8655533545b5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8656533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
8657533545b5Smrgfi
8658533545b5Smrg
8659533545b5Smrgfound="no"
8660533545b5Smrg
8661533545b5Smrg	if test $found = "no" ; then
8662533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8663533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8664533545b5Smrg		fi
8665533545b5Smrg
8666533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8667533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8668533545b5Smrg		fi
8669533545b5Smrg
8670533545b5Smrg		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8671533545b5Smrg
8672c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8673c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8674533545b5Smrg		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8675c9e4df9bSmrg		if eval test \${$cacheid+y}
8676c9e4df9bSmrgthen :
8677c9e4df9bSmrg  printf %s "(cached) " >&6
8678c9e4df9bSmrgelse $as_nop
8679533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8680533545b5Smrg/* end confdefs.h.  */
8681533545b5Smrgint i;
8682533545b5Smrgint
8683c9e4df9bSmrgmain (void)
8684533545b5Smrg{
8685533545b5Smrg
8686533545b5Smrg  ;
8687533545b5Smrg  return 0;
8688533545b5Smrg}
8689533545b5Smrg_ACEOF
8690c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
8691c9e4df9bSmrgthen :
8692533545b5Smrg  eval $cacheid=yes
8693c9e4df9bSmrgelse $as_nop
8694533545b5Smrg  eval $cacheid=no
8695533545b5Smrgfi
8696c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8697533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
8698533545b5Smrgfi
8699533545b5Smrg
8700533545b5Smrg
8701533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
8702533545b5Smrg
8703533545b5Smrg		eval supported=\$$cacheid
8704c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8705c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
8706533545b5Smrg		if test "$supported" = "yes" ; then
8707533545b5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8708533545b5Smrg			found="yes"
8709533545b5Smrg		fi
8710533545b5Smrg	fi
8711533545b5Smrg
8712533545b5Smrg	if test $found = "no" ; then
8713533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8714533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8715533545b5Smrg		fi
8716533545b5Smrg
8717533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8718533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8719533545b5Smrg		fi
8720533545b5Smrg
8721533545b5Smrg		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8722533545b5Smrg
8723c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8724c9e4df9bSmrgprintf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8725533545b5Smrg		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8726c9e4df9bSmrg		if eval test \${$cacheid+y}
8727c9e4df9bSmrgthen :
8728c9e4df9bSmrg  printf %s "(cached) " >&6
8729c9e4df9bSmrgelse $as_nop
8730533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8731533545b5Smrg/* end confdefs.h.  */
8732533545b5Smrgint i;
8733533545b5Smrgint
8734c9e4df9bSmrgmain (void)
8735533545b5Smrg{
8736533545b5Smrg
8737533545b5Smrg  ;
8738533545b5Smrg  return 0;
8739533545b5Smrg}
8740533545b5Smrg_ACEOF
8741c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
8742c9e4df9bSmrgthen :
8743533545b5Smrg  eval $cacheid=yes
8744c9e4df9bSmrgelse $as_nop
8745533545b5Smrg  eval $cacheid=no
8746533545b5Smrgfi
8747c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8748533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
8749533545b5Smrgfi
8750533545b5Smrg
8751533545b5Smrg
8752533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
8753533545b5Smrg
8754533545b5Smrg		eval supported=\$$cacheid
8755c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8756c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
8757533545b5Smrg		if test "$supported" = "yes" ; then
8758533545b5Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8759533545b5Smrg			found="yes"
8760533545b5Smrg		fi
8761533545b5Smrg	fi
8762533545b5Smrg
8763533545b5Smrg
8764533545b5Smrg
8765533545b5Smrg
8766533545b5Smrg
8767533545b5Smrg
8768533545b5Smrg
8769533545b5Smrg
8770533545b5Smrg
8771533545b5Smrg
8772533545b5Smrg
8773533545b5Smrg
8774533545b5Smrg
8775533545b5Smrg
8776533545b5Smrg
8777533545b5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
8778533545b5Smrg
8779533545b5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8780533545b5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8781c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8782c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8783c9e4df9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8784c9e4df9bSmrgthen :
8785c9e4df9bSmrg  printf %s "(cached) " >&6
8786c9e4df9bSmrgelse $as_nop
8787533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8788533545b5Smrg/* end confdefs.h.  */
8789533545b5Smrgint i;
8790533545b5Smrg_ACEOF
8791c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
8792c9e4df9bSmrgthen :
8793533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
8794c9e4df9bSmrgelse $as_nop
8795533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
8796533545b5Smrgfi
8797c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8798533545b5Smrgfi
8799c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8800c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8801533545b5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8802533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
8803533545b5Smrgfi
8804533545b5Smrg
8805533545b5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8806533545b5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8807533545b5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8808533545b5Smrg	fi
8809533545b5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8810c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8811c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8812c9e4df9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8813c9e4df9bSmrgthen :
8814c9e4df9bSmrg  printf %s "(cached) " >&6
8815c9e4df9bSmrgelse $as_nop
8816533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8817533545b5Smrg/* end confdefs.h.  */
8818533545b5Smrgint i;
8819533545b5Smrg_ACEOF
8820c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
8821c9e4df9bSmrgthen :
8822533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8823c9e4df9bSmrgelse $as_nop
8824533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
8825533545b5Smrgfi
8826c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8827533545b5Smrgfi
8828c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8829c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8830533545b5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8831533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
8832533545b5Smrgfi
8833533545b5Smrg
8834533545b5Smrgfound="no"
8835533545b5Smrg
8836533545b5Smrg	if test $found = "no" ; then
8837533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8838533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8839533545b5Smrg		fi
8840533545b5Smrg
8841533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8842533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8843533545b5Smrg		fi
8844533545b5Smrg
8845533545b5Smrg		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8846533545b5Smrg
8847c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8848c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8849533545b5Smrg		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8850c9e4df9bSmrg		if eval test \${$cacheid+y}
8851c9e4df9bSmrgthen :
8852c9e4df9bSmrg  printf %s "(cached) " >&6
8853c9e4df9bSmrgelse $as_nop
8854533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8855533545b5Smrg/* end confdefs.h.  */
8856533545b5Smrgint i;
8857533545b5Smrgint
8858c9e4df9bSmrgmain (void)
8859533545b5Smrg{
8860533545b5Smrg
8861533545b5Smrg  ;
8862533545b5Smrg  return 0;
8863533545b5Smrg}
8864533545b5Smrg_ACEOF
8865c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
8866c9e4df9bSmrgthen :
8867533545b5Smrg  eval $cacheid=yes
8868c9e4df9bSmrgelse $as_nop
8869533545b5Smrg  eval $cacheid=no
8870533545b5Smrgfi
8871c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8872533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
8873533545b5Smrgfi
8874533545b5Smrg
8875533545b5Smrg
8876533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
8877533545b5Smrg
8878533545b5Smrg		eval supported=\$$cacheid
8879c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8880c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
8881533545b5Smrg		if test "$supported" = "yes" ; then
8882533545b5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8883533545b5Smrg			found="yes"
8884533545b5Smrg		fi
8885533545b5Smrg	fi
8886533545b5Smrg
8887533545b5Smrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8888533545b5Smrgelse
8889c9e4df9bSmrg{ 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
8890c9e4df9bSmrgprintf "%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;}
8891533545b5Smrg
8892533545b5Smrg
8893533545b5Smrg
8894533545b5Smrg
8895533545b5Smrg
8896533545b5Smrg
8897533545b5Smrg
8898533545b5Smrg
8899533545b5Smrg
8900533545b5Smrg
8901533545b5Smrg
8902533545b5Smrg
8903533545b5Smrg
8904533545b5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
8905533545b5Smrg
8906533545b5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8907533545b5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8908c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8909c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8910c9e4df9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8911c9e4df9bSmrgthen :
8912c9e4df9bSmrg  printf %s "(cached) " >&6
8913c9e4df9bSmrgelse $as_nop
8914533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8915533545b5Smrg/* end confdefs.h.  */
8916533545b5Smrgint i;
8917533545b5Smrg_ACEOF
8918c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
8919c9e4df9bSmrgthen :
8920533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
8921c9e4df9bSmrgelse $as_nop
8922533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
8923533545b5Smrgfi
8924c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8925533545b5Smrgfi
8926c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8927c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8928533545b5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8929533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
8930533545b5Smrgfi
8931533545b5Smrg
8932533545b5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8933533545b5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8934533545b5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8935533545b5Smrg	fi
8936533545b5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8937c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8938c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8939c9e4df9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8940c9e4df9bSmrgthen :
8941c9e4df9bSmrg  printf %s "(cached) " >&6
8942c9e4df9bSmrgelse $as_nop
8943533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8944533545b5Smrg/* end confdefs.h.  */
8945533545b5Smrgint i;
8946533545b5Smrg_ACEOF
8947c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
8948c9e4df9bSmrgthen :
8949533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8950c9e4df9bSmrgelse $as_nop
8951533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
8952533545b5Smrgfi
8953c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8954533545b5Smrgfi
8955c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8956c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8957533545b5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8958533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
8959533545b5Smrgfi
8960533545b5Smrg
8961533545b5Smrgfound="no"
8962533545b5Smrg
8963533545b5Smrg	if test $found = "no" ; then
8964533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8965533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8966533545b5Smrg		fi
8967533545b5Smrg
8968533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8969533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8970533545b5Smrg		fi
8971533545b5Smrg
8972533545b5Smrg		CFLAGS="$CFLAGS -Wimplicit"
8973533545b5Smrg
8974c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8975c9e4df9bSmrgprintf %s "checking if $CC supports -Wimplicit... " >&6; }
8976533545b5Smrg		cacheid=xorg_cv_cc_flag__Wimplicit
8977c9e4df9bSmrg		if eval test \${$cacheid+y}
8978c9e4df9bSmrgthen :
8979c9e4df9bSmrg  printf %s "(cached) " >&6
8980c9e4df9bSmrgelse $as_nop
8981533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8982533545b5Smrg/* end confdefs.h.  */
8983533545b5Smrgint i;
8984533545b5Smrgint
8985c9e4df9bSmrgmain (void)
8986533545b5Smrg{
8987533545b5Smrg
8988533545b5Smrg  ;
8989533545b5Smrg  return 0;
8990533545b5Smrg}
8991533545b5Smrg_ACEOF
8992c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
8993c9e4df9bSmrgthen :
8994533545b5Smrg  eval $cacheid=yes
8995c9e4df9bSmrgelse $as_nop
8996533545b5Smrg  eval $cacheid=no
8997533545b5Smrgfi
8998c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8999533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
9000533545b5Smrgfi
9001533545b5Smrg
9002533545b5Smrg
9003533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
9004533545b5Smrg
9005533545b5Smrg		eval supported=\$$cacheid
9006c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9007c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
9008533545b5Smrg		if test "$supported" = "yes" ; then
9009533545b5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9010533545b5Smrg			found="yes"
9011533545b5Smrg		fi
9012533545b5Smrg	fi
9013533545b5Smrg
9014533545b5Smrg
9015533545b5Smrg
9016533545b5Smrg
9017533545b5Smrg
9018533545b5Smrg
9019533545b5Smrg
9020533545b5Smrg
9021533545b5Smrg
9022533545b5Smrg
9023533545b5Smrg
9024533545b5Smrg
9025533545b5Smrg
9026533545b5Smrg
9027533545b5Smrg
9028533545b5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
9029533545b5Smrg
9030533545b5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9031533545b5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9032c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9033c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9034c9e4df9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9035c9e4df9bSmrgthen :
9036c9e4df9bSmrg  printf %s "(cached) " >&6
9037c9e4df9bSmrgelse $as_nop
9038533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9039533545b5Smrg/* end confdefs.h.  */
9040533545b5Smrgint i;
9041533545b5Smrg_ACEOF
9042c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
9043c9e4df9bSmrgthen :
9044533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9045c9e4df9bSmrgelse $as_nop
9046533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
9047533545b5Smrgfi
9048c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9049533545b5Smrgfi
9050c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9051c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9052533545b5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9053533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9054533545b5Smrgfi
9055533545b5Smrg
9056533545b5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9057533545b5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9058533545b5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9059533545b5Smrg	fi
9060533545b5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9061c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9062c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9063c9e4df9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9064c9e4df9bSmrgthen :
9065c9e4df9bSmrg  printf %s "(cached) " >&6
9066c9e4df9bSmrgelse $as_nop
9067533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9068533545b5Smrg/* end confdefs.h.  */
9069533545b5Smrgint i;
9070533545b5Smrg_ACEOF
9071c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
9072c9e4df9bSmrgthen :
9073533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9074c9e4df9bSmrgelse $as_nop
9075533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
9076533545b5Smrgfi
9077c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9078533545b5Smrgfi
9079c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9080c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9081533545b5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9082533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9083533545b5Smrgfi
9084533545b5Smrg
9085533545b5Smrgfound="no"
9086533545b5Smrg
9087533545b5Smrg	if test $found = "no" ; then
9088533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9089533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9090533545b5Smrg		fi
9091533545b5Smrg
9092533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9093533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9094533545b5Smrg		fi
9095533545b5Smrg
9096533545b5Smrg		CFLAGS="$CFLAGS -Wnonnull"
9097533545b5Smrg
9098c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9099c9e4df9bSmrgprintf %s "checking if $CC supports -Wnonnull... " >&6; }
9100533545b5Smrg		cacheid=xorg_cv_cc_flag__Wnonnull
9101c9e4df9bSmrg		if eval test \${$cacheid+y}
9102c9e4df9bSmrgthen :
9103c9e4df9bSmrg  printf %s "(cached) " >&6
9104c9e4df9bSmrgelse $as_nop
9105533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9106533545b5Smrg/* end confdefs.h.  */
9107533545b5Smrgint i;
9108533545b5Smrgint
9109c9e4df9bSmrgmain (void)
9110533545b5Smrg{
9111533545b5Smrg
9112533545b5Smrg  ;
9113533545b5Smrg  return 0;
9114533545b5Smrg}
9115533545b5Smrg_ACEOF
9116c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
9117c9e4df9bSmrgthen :
9118533545b5Smrg  eval $cacheid=yes
9119c9e4df9bSmrgelse $as_nop
9120533545b5Smrg  eval $cacheid=no
9121533545b5Smrgfi
9122c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9123533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
9124533545b5Smrgfi
9125533545b5Smrg
9126533545b5Smrg
9127533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
9128533545b5Smrg
9129533545b5Smrg		eval supported=\$$cacheid
9130c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9131c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
9132533545b5Smrg		if test "$supported" = "yes" ; then
9133533545b5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9134533545b5Smrg			found="yes"
9135533545b5Smrg		fi
9136533545b5Smrg	fi
9137533545b5Smrg
9138533545b5Smrg
9139533545b5Smrg
9140533545b5Smrg
9141533545b5Smrg
9142533545b5Smrg
9143533545b5Smrg
9144533545b5Smrg
9145533545b5Smrg
9146533545b5Smrg
9147533545b5Smrg
9148533545b5Smrg
9149533545b5Smrg
9150533545b5Smrg
9151533545b5Smrg
9152533545b5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
9153533545b5Smrg
9154533545b5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9155533545b5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9156c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9157c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9158c9e4df9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9159c9e4df9bSmrgthen :
9160c9e4df9bSmrg  printf %s "(cached) " >&6
9161c9e4df9bSmrgelse $as_nop
9162533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9163533545b5Smrg/* end confdefs.h.  */
9164533545b5Smrgint i;
9165533545b5Smrg_ACEOF
9166c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
9167c9e4df9bSmrgthen :
9168533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9169c9e4df9bSmrgelse $as_nop
9170533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
9171533545b5Smrgfi
9172c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9173533545b5Smrgfi
9174c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9175c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9176533545b5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9177533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9178533545b5Smrgfi
9179533545b5Smrg
9180533545b5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9181533545b5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9182533545b5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9183533545b5Smrg	fi
9184533545b5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9185c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9186c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9187c9e4df9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9188c9e4df9bSmrgthen :
9189c9e4df9bSmrg  printf %s "(cached) " >&6
9190c9e4df9bSmrgelse $as_nop
9191533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9192533545b5Smrg/* end confdefs.h.  */
9193533545b5Smrgint i;
9194533545b5Smrg_ACEOF
9195c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
9196c9e4df9bSmrgthen :
9197533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9198c9e4df9bSmrgelse $as_nop
9199533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
9200533545b5Smrgfi
9201c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9202533545b5Smrgfi
9203c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9204c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9205533545b5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9206533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9207533545b5Smrgfi
9208533545b5Smrg
9209533545b5Smrgfound="no"
9210533545b5Smrg
9211533545b5Smrg	if test $found = "no" ; then
9212533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9213533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9214533545b5Smrg		fi
9215533545b5Smrg
9216533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9217533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9218533545b5Smrg		fi
9219533545b5Smrg
9220533545b5Smrg		CFLAGS="$CFLAGS -Winit-self"
9221533545b5Smrg
9222c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9223c9e4df9bSmrgprintf %s "checking if $CC supports -Winit-self... " >&6; }
9224533545b5Smrg		cacheid=xorg_cv_cc_flag__Winit_self
9225c9e4df9bSmrg		if eval test \${$cacheid+y}
9226c9e4df9bSmrgthen :
9227c9e4df9bSmrg  printf %s "(cached) " >&6
9228c9e4df9bSmrgelse $as_nop
9229533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9230533545b5Smrg/* end confdefs.h.  */
9231533545b5Smrgint i;
9232533545b5Smrgint
9233c9e4df9bSmrgmain (void)
9234533545b5Smrg{
9235533545b5Smrg
9236533545b5Smrg  ;
9237533545b5Smrg  return 0;
9238533545b5Smrg}
9239533545b5Smrg_ACEOF
9240c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
9241c9e4df9bSmrgthen :
9242533545b5Smrg  eval $cacheid=yes
9243c9e4df9bSmrgelse $as_nop
9244533545b5Smrg  eval $cacheid=no
9245533545b5Smrgfi
9246c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9247533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
9248533545b5Smrgfi
9249533545b5Smrg
9250533545b5Smrg
9251533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
9252533545b5Smrg
9253533545b5Smrg		eval supported=\$$cacheid
9254c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9255c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
9256533545b5Smrg		if test "$supported" = "yes" ; then
9257533545b5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9258533545b5Smrg			found="yes"
9259533545b5Smrg		fi
9260533545b5Smrg	fi
9261533545b5Smrg
9262533545b5Smrg
9263533545b5Smrg
9264533545b5Smrg
9265533545b5Smrg
9266533545b5Smrg
9267533545b5Smrg
9268533545b5Smrg
9269533545b5Smrg
9270533545b5Smrg
9271533545b5Smrg
9272533545b5Smrg
9273533545b5Smrg
9274533545b5Smrg
9275533545b5Smrg
9276533545b5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
9277533545b5Smrg
9278533545b5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9279533545b5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9280c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9281c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9282c9e4df9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9283c9e4df9bSmrgthen :
9284c9e4df9bSmrg  printf %s "(cached) " >&6
9285c9e4df9bSmrgelse $as_nop
9286533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9287533545b5Smrg/* end confdefs.h.  */
9288533545b5Smrgint i;
9289533545b5Smrg_ACEOF
9290c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
9291c9e4df9bSmrgthen :
9292533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9293c9e4df9bSmrgelse $as_nop
9294533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
9295533545b5Smrgfi
9296c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9297533545b5Smrgfi
9298c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9299c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9300533545b5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9301533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9302533545b5Smrgfi
9303533545b5Smrg
9304533545b5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9305533545b5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9306533545b5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9307533545b5Smrg	fi
9308533545b5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9309c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9310c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9311c9e4df9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9312c9e4df9bSmrgthen :
9313c9e4df9bSmrg  printf %s "(cached) " >&6
9314c9e4df9bSmrgelse $as_nop
9315533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9316533545b5Smrg/* end confdefs.h.  */
9317533545b5Smrgint i;
9318533545b5Smrg_ACEOF
9319c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
9320c9e4df9bSmrgthen :
9321533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9322c9e4df9bSmrgelse $as_nop
9323533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
9324533545b5Smrgfi
9325c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9326533545b5Smrgfi
9327c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9328c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9329533545b5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9330533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9331533545b5Smrgfi
9332533545b5Smrg
9333533545b5Smrgfound="no"
9334533545b5Smrg
9335533545b5Smrg	if test $found = "no" ; then
9336533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9337533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9338533545b5Smrg		fi
9339533545b5Smrg
9340533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9341533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9342533545b5Smrg		fi
9343533545b5Smrg
9344533545b5Smrg		CFLAGS="$CFLAGS -Wmain"
9345533545b5Smrg
9346c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9347c9e4df9bSmrgprintf %s "checking if $CC supports -Wmain... " >&6; }
9348533545b5Smrg		cacheid=xorg_cv_cc_flag__Wmain
9349c9e4df9bSmrg		if eval test \${$cacheid+y}
9350c9e4df9bSmrgthen :
9351c9e4df9bSmrg  printf %s "(cached) " >&6
9352c9e4df9bSmrgelse $as_nop
9353533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9354533545b5Smrg/* end confdefs.h.  */
9355533545b5Smrgint i;
9356533545b5Smrgint
9357c9e4df9bSmrgmain (void)
9358533545b5Smrg{
9359533545b5Smrg
9360533545b5Smrg  ;
9361533545b5Smrg  return 0;
9362533545b5Smrg}
9363533545b5Smrg_ACEOF
9364c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
9365c9e4df9bSmrgthen :
9366533545b5Smrg  eval $cacheid=yes
9367c9e4df9bSmrgelse $as_nop
9368533545b5Smrg  eval $cacheid=no
9369533545b5Smrgfi
9370c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9371533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
9372533545b5Smrgfi
9373533545b5Smrg
9374533545b5Smrg
9375533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
9376533545b5Smrg
9377533545b5Smrg		eval supported=\$$cacheid
9378c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9379c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
9380533545b5Smrg		if test "$supported" = "yes" ; then
9381533545b5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9382533545b5Smrg			found="yes"
9383533545b5Smrg		fi
9384533545b5Smrg	fi
9385533545b5Smrg
9386533545b5Smrg
9387533545b5Smrg
9388533545b5Smrg
9389533545b5Smrg
9390533545b5Smrg
9391533545b5Smrg
9392533545b5Smrg
9393533545b5Smrg
9394533545b5Smrg
9395533545b5Smrg
9396533545b5Smrg
9397533545b5Smrg
9398533545b5Smrg
9399533545b5Smrg
9400533545b5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
9401533545b5Smrg
9402533545b5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9403533545b5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9404c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9405c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9406c9e4df9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9407c9e4df9bSmrgthen :
9408c9e4df9bSmrg  printf %s "(cached) " >&6
9409c9e4df9bSmrgelse $as_nop
9410533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9411533545b5Smrg/* end confdefs.h.  */
9412533545b5Smrgint i;
9413533545b5Smrg_ACEOF
9414c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
9415c9e4df9bSmrgthen :
9416533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9417c9e4df9bSmrgelse $as_nop
9418533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
9419533545b5Smrgfi
9420c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9421533545b5Smrgfi
9422c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9423c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9424533545b5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9425533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9426533545b5Smrgfi
9427533545b5Smrg
9428533545b5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9429533545b5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9430533545b5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9431533545b5Smrg	fi
9432533545b5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9433c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9434c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9435c9e4df9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9436c9e4df9bSmrgthen :
9437c9e4df9bSmrg  printf %s "(cached) " >&6
9438c9e4df9bSmrgelse $as_nop
9439533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9440533545b5Smrg/* end confdefs.h.  */
9441533545b5Smrgint i;
9442533545b5Smrg_ACEOF
9443c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
9444c9e4df9bSmrgthen :
9445533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9446c9e4df9bSmrgelse $as_nop
9447533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
9448533545b5Smrgfi
9449c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9450533545b5Smrgfi
9451c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9452c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9453533545b5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9454533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9455533545b5Smrgfi
9456533545b5Smrg
9457533545b5Smrgfound="no"
9458533545b5Smrg
9459533545b5Smrg	if test $found = "no" ; then
9460533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9461533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9462533545b5Smrg		fi
9463533545b5Smrg
9464533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9465533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9466533545b5Smrg		fi
9467533545b5Smrg
9468533545b5Smrg		CFLAGS="$CFLAGS -Wmissing-braces"
9469533545b5Smrg
9470c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9471c9e4df9bSmrgprintf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9472533545b5Smrg		cacheid=xorg_cv_cc_flag__Wmissing_braces
9473c9e4df9bSmrg		if eval test \${$cacheid+y}
9474c9e4df9bSmrgthen :
9475c9e4df9bSmrg  printf %s "(cached) " >&6
9476c9e4df9bSmrgelse $as_nop
9477533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9478533545b5Smrg/* end confdefs.h.  */
9479533545b5Smrgint i;
9480533545b5Smrgint
9481c9e4df9bSmrgmain (void)
9482533545b5Smrg{
9483533545b5Smrg
9484533545b5Smrg  ;
9485533545b5Smrg  return 0;
9486533545b5Smrg}
9487533545b5Smrg_ACEOF
9488c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
9489c9e4df9bSmrgthen :
9490533545b5Smrg  eval $cacheid=yes
9491c9e4df9bSmrgelse $as_nop
9492533545b5Smrg  eval $cacheid=no
9493533545b5Smrgfi
9494c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9495533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
9496533545b5Smrgfi
9497533545b5Smrg
9498533545b5Smrg
9499533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
9500533545b5Smrg
9501533545b5Smrg		eval supported=\$$cacheid
9502c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9503c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
9504533545b5Smrg		if test "$supported" = "yes" ; then
9505533545b5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9506533545b5Smrg			found="yes"
9507533545b5Smrg		fi
9508533545b5Smrg	fi
9509533545b5Smrg
9510533545b5Smrg
9511533545b5Smrg
9512533545b5Smrg
9513533545b5Smrg
9514533545b5Smrg
9515533545b5Smrg
9516533545b5Smrg
9517533545b5Smrg
9518533545b5Smrg
9519533545b5Smrg
9520533545b5Smrg
9521533545b5Smrg
9522533545b5Smrg
9523533545b5Smrg
9524533545b5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
9525533545b5Smrg
9526533545b5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9527533545b5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9528c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9529c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9530c9e4df9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9531c9e4df9bSmrgthen :
9532c9e4df9bSmrg  printf %s "(cached) " >&6
9533c9e4df9bSmrgelse $as_nop
9534533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9535533545b5Smrg/* end confdefs.h.  */
9536533545b5Smrgint i;
9537533545b5Smrg_ACEOF
9538c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
9539c9e4df9bSmrgthen :
9540533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9541c9e4df9bSmrgelse $as_nop
9542533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
9543533545b5Smrgfi
9544c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9545533545b5Smrgfi
9546c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9547c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9548533545b5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9549533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9550533545b5Smrgfi
9551533545b5Smrg
9552533545b5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9553533545b5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9554533545b5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9555533545b5Smrg	fi
9556533545b5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9557c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9558c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9559c9e4df9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9560c9e4df9bSmrgthen :
9561c9e4df9bSmrg  printf %s "(cached) " >&6
9562c9e4df9bSmrgelse $as_nop
9563533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9564533545b5Smrg/* end confdefs.h.  */
9565533545b5Smrgint i;
9566533545b5Smrg_ACEOF
9567c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
9568c9e4df9bSmrgthen :
9569533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9570c9e4df9bSmrgelse $as_nop
9571533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
9572533545b5Smrgfi
9573c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9574533545b5Smrgfi
9575c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9576c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9577533545b5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9578533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9579533545b5Smrgfi
9580533545b5Smrg
9581533545b5Smrgfound="no"
9582533545b5Smrg
9583533545b5Smrg	if test $found = "no" ; then
9584533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9585533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9586533545b5Smrg		fi
9587533545b5Smrg
9588533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9589533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9590533545b5Smrg		fi
9591533545b5Smrg
9592533545b5Smrg		CFLAGS="$CFLAGS -Wsequence-point"
9593533545b5Smrg
9594c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9595c9e4df9bSmrgprintf %s "checking if $CC supports -Wsequence-point... " >&6; }
9596533545b5Smrg		cacheid=xorg_cv_cc_flag__Wsequence_point
9597c9e4df9bSmrg		if eval test \${$cacheid+y}
9598c9e4df9bSmrgthen :
9599c9e4df9bSmrg  printf %s "(cached) " >&6
9600c9e4df9bSmrgelse $as_nop
9601533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9602533545b5Smrg/* end confdefs.h.  */
9603533545b5Smrgint i;
9604533545b5Smrgint
9605c9e4df9bSmrgmain (void)
9606533545b5Smrg{
9607533545b5Smrg
9608533545b5Smrg  ;
9609533545b5Smrg  return 0;
9610533545b5Smrg}
9611533545b5Smrg_ACEOF
9612c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
9613c9e4df9bSmrgthen :
9614533545b5Smrg  eval $cacheid=yes
9615c9e4df9bSmrgelse $as_nop
9616533545b5Smrg  eval $cacheid=no
9617533545b5Smrgfi
9618c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9619533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
9620533545b5Smrgfi
9621533545b5Smrg
9622533545b5Smrg
9623533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
9624533545b5Smrg
9625533545b5Smrg		eval supported=\$$cacheid
9626c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9627c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
9628533545b5Smrg		if test "$supported" = "yes" ; then
9629533545b5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9630533545b5Smrg			found="yes"
9631533545b5Smrg		fi
9632533545b5Smrg	fi
9633533545b5Smrg
9634533545b5Smrg
9635533545b5Smrg
9636533545b5Smrg
9637533545b5Smrg
9638533545b5Smrg
9639533545b5Smrg
9640533545b5Smrg
9641533545b5Smrg
9642533545b5Smrg
9643533545b5Smrg
9644533545b5Smrg
9645533545b5Smrg
9646533545b5Smrg
9647533545b5Smrg
9648533545b5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
9649533545b5Smrg
9650533545b5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9651533545b5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9652c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9653c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9654c9e4df9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9655c9e4df9bSmrgthen :
9656c9e4df9bSmrg  printf %s "(cached) " >&6
9657c9e4df9bSmrgelse $as_nop
9658533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9659533545b5Smrg/* end confdefs.h.  */
9660533545b5Smrgint i;
9661533545b5Smrg_ACEOF
9662c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
9663c9e4df9bSmrgthen :
9664533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9665c9e4df9bSmrgelse $as_nop
9666533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
9667533545b5Smrgfi
9668c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9669533545b5Smrgfi
9670c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9671c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9672533545b5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9673533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9674533545b5Smrgfi
9675533545b5Smrg
9676533545b5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9677533545b5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9678533545b5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9679533545b5Smrg	fi
9680533545b5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9681c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9682c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9683c9e4df9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9684c9e4df9bSmrgthen :
9685c9e4df9bSmrg  printf %s "(cached) " >&6
9686c9e4df9bSmrgelse $as_nop
9687533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9688533545b5Smrg/* end confdefs.h.  */
9689533545b5Smrgint i;
9690533545b5Smrg_ACEOF
9691c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
9692c9e4df9bSmrgthen :
9693533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9694c9e4df9bSmrgelse $as_nop
9695533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
9696533545b5Smrgfi
9697c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9698533545b5Smrgfi
9699c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9700c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9701533545b5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9702533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9703533545b5Smrgfi
9704533545b5Smrg
9705533545b5Smrgfound="no"
9706533545b5Smrg
9707533545b5Smrg	if test $found = "no" ; then
9708533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9709533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9710533545b5Smrg		fi
9711533545b5Smrg
9712533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9713533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9714533545b5Smrg		fi
9715533545b5Smrg
9716533545b5Smrg		CFLAGS="$CFLAGS -Wreturn-type"
9717533545b5Smrg
9718c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9719c9e4df9bSmrgprintf %s "checking if $CC supports -Wreturn-type... " >&6; }
9720533545b5Smrg		cacheid=xorg_cv_cc_flag__Wreturn_type
9721c9e4df9bSmrg		if eval test \${$cacheid+y}
9722c9e4df9bSmrgthen :
9723c9e4df9bSmrg  printf %s "(cached) " >&6
9724c9e4df9bSmrgelse $as_nop
9725533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9726533545b5Smrg/* end confdefs.h.  */
9727533545b5Smrgint i;
9728533545b5Smrgint
9729c9e4df9bSmrgmain (void)
9730533545b5Smrg{
9731533545b5Smrg
9732533545b5Smrg  ;
9733533545b5Smrg  return 0;
9734533545b5Smrg}
9735533545b5Smrg_ACEOF
9736c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
9737c9e4df9bSmrgthen :
9738533545b5Smrg  eval $cacheid=yes
9739c9e4df9bSmrgelse $as_nop
9740533545b5Smrg  eval $cacheid=no
9741533545b5Smrgfi
9742c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9743533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
9744533545b5Smrgfi
9745533545b5Smrg
9746533545b5Smrg
9747533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
9748533545b5Smrg
9749533545b5Smrg		eval supported=\$$cacheid
9750c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9751c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
9752533545b5Smrg		if test "$supported" = "yes" ; then
9753533545b5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9754533545b5Smrg			found="yes"
9755533545b5Smrg		fi
9756533545b5Smrg	fi
9757533545b5Smrg
9758533545b5Smrg
9759533545b5Smrg
9760533545b5Smrg
9761533545b5Smrg
9762533545b5Smrg
9763533545b5Smrg
9764533545b5Smrg
9765533545b5Smrg
9766533545b5Smrg
9767533545b5Smrg
9768533545b5Smrg
9769533545b5Smrg
9770533545b5Smrg
9771533545b5Smrg
9772533545b5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
9773533545b5Smrg
9774533545b5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9775533545b5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9776c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9777c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9778c9e4df9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9779c9e4df9bSmrgthen :
9780c9e4df9bSmrg  printf %s "(cached) " >&6
9781c9e4df9bSmrgelse $as_nop
9782533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9783533545b5Smrg/* end confdefs.h.  */
9784533545b5Smrgint i;
9785533545b5Smrg_ACEOF
9786c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
9787c9e4df9bSmrgthen :
9788533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9789c9e4df9bSmrgelse $as_nop
9790533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
9791533545b5Smrgfi
9792c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9793533545b5Smrgfi
9794c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9795c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9796533545b5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9797533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9798533545b5Smrgfi
9799533545b5Smrg
9800533545b5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9801533545b5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9802533545b5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9803533545b5Smrg	fi
9804533545b5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9805c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9806c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9807c9e4df9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9808c9e4df9bSmrgthen :
9809c9e4df9bSmrg  printf %s "(cached) " >&6
9810c9e4df9bSmrgelse $as_nop
9811533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9812533545b5Smrg/* end confdefs.h.  */
9813533545b5Smrgint i;
9814533545b5Smrg_ACEOF
9815c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
9816c9e4df9bSmrgthen :
9817533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9818c9e4df9bSmrgelse $as_nop
9819533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
9820533545b5Smrgfi
9821c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9822533545b5Smrgfi
9823c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9824c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9825533545b5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9826533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9827533545b5Smrgfi
9828533545b5Smrg
9829533545b5Smrgfound="no"
9830533545b5Smrg
9831533545b5Smrg	if test $found = "no" ; then
9832533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9833533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9834533545b5Smrg		fi
9835533545b5Smrg
9836533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9837533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9838533545b5Smrg		fi
9839533545b5Smrg
9840533545b5Smrg		CFLAGS="$CFLAGS -Wtrigraphs"
9841533545b5Smrg
9842c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9843c9e4df9bSmrgprintf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9844533545b5Smrg		cacheid=xorg_cv_cc_flag__Wtrigraphs
9845c9e4df9bSmrg		if eval test \${$cacheid+y}
9846c9e4df9bSmrgthen :
9847c9e4df9bSmrg  printf %s "(cached) " >&6
9848c9e4df9bSmrgelse $as_nop
9849533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9850533545b5Smrg/* end confdefs.h.  */
9851533545b5Smrgint i;
9852533545b5Smrgint
9853c9e4df9bSmrgmain (void)
9854533545b5Smrg{
9855533545b5Smrg
9856533545b5Smrg  ;
9857533545b5Smrg  return 0;
9858533545b5Smrg}
9859533545b5Smrg_ACEOF
9860c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
9861c9e4df9bSmrgthen :
9862533545b5Smrg  eval $cacheid=yes
9863c9e4df9bSmrgelse $as_nop
9864533545b5Smrg  eval $cacheid=no
9865533545b5Smrgfi
9866c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9867533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
9868533545b5Smrgfi
9869533545b5Smrg
9870533545b5Smrg
9871533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
9872533545b5Smrg
9873533545b5Smrg		eval supported=\$$cacheid
9874c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9875c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
9876533545b5Smrg		if test "$supported" = "yes" ; then
9877533545b5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9878533545b5Smrg			found="yes"
9879533545b5Smrg		fi
9880533545b5Smrg	fi
9881533545b5Smrg
9882533545b5Smrg
9883533545b5Smrg
9884533545b5Smrg
9885533545b5Smrg
9886533545b5Smrg
9887533545b5Smrg
9888533545b5Smrg
9889533545b5Smrg
9890533545b5Smrg
9891533545b5Smrg
9892533545b5Smrg
9893533545b5Smrg
9894533545b5Smrg
9895533545b5Smrg
9896533545b5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
9897533545b5Smrg
9898533545b5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9899533545b5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9900c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9901c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9902c9e4df9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9903c9e4df9bSmrgthen :
9904c9e4df9bSmrg  printf %s "(cached) " >&6
9905c9e4df9bSmrgelse $as_nop
9906533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9907533545b5Smrg/* end confdefs.h.  */
9908533545b5Smrgint i;
9909533545b5Smrg_ACEOF
9910c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
9911c9e4df9bSmrgthen :
9912533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9913c9e4df9bSmrgelse $as_nop
9914533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
9915533545b5Smrgfi
9916c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9917533545b5Smrgfi
9918c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9919c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9920533545b5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9921533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9922533545b5Smrgfi
9923533545b5Smrg
9924533545b5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9925533545b5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9926533545b5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9927533545b5Smrg	fi
9928533545b5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9929c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9930c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9931c9e4df9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9932c9e4df9bSmrgthen :
9933c9e4df9bSmrg  printf %s "(cached) " >&6
9934c9e4df9bSmrgelse $as_nop
9935533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9936533545b5Smrg/* end confdefs.h.  */
9937533545b5Smrgint i;
9938533545b5Smrg_ACEOF
9939c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
9940c9e4df9bSmrgthen :
9941533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9942c9e4df9bSmrgelse $as_nop
9943533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
9944533545b5Smrgfi
9945c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9946533545b5Smrgfi
9947c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9948c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9949533545b5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9950533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9951533545b5Smrgfi
9952533545b5Smrg
9953533545b5Smrgfound="no"
9954533545b5Smrg
9955533545b5Smrg	if test $found = "no" ; then
9956533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9957533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9958533545b5Smrg		fi
9959533545b5Smrg
9960533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9961533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9962533545b5Smrg		fi
9963533545b5Smrg
9964533545b5Smrg		CFLAGS="$CFLAGS -Warray-bounds"
9965533545b5Smrg
9966c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9967c9e4df9bSmrgprintf %s "checking if $CC supports -Warray-bounds... " >&6; }
9968533545b5Smrg		cacheid=xorg_cv_cc_flag__Warray_bounds
9969c9e4df9bSmrg		if eval test \${$cacheid+y}
9970c9e4df9bSmrgthen :
9971c9e4df9bSmrg  printf %s "(cached) " >&6
9972c9e4df9bSmrgelse $as_nop
9973533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9974533545b5Smrg/* end confdefs.h.  */
9975533545b5Smrgint i;
9976533545b5Smrgint
9977c9e4df9bSmrgmain (void)
9978533545b5Smrg{
9979533545b5Smrg
9980533545b5Smrg  ;
9981533545b5Smrg  return 0;
9982533545b5Smrg}
9983533545b5Smrg_ACEOF
9984c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
9985c9e4df9bSmrgthen :
9986533545b5Smrg  eval $cacheid=yes
9987c9e4df9bSmrgelse $as_nop
9988533545b5Smrg  eval $cacheid=no
9989533545b5Smrgfi
9990c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9991533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
9992533545b5Smrgfi
9993533545b5Smrg
9994533545b5Smrg
9995533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
9996533545b5Smrg
9997533545b5Smrg		eval supported=\$$cacheid
9998c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9999c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
10000533545b5Smrg		if test "$supported" = "yes" ; then
10001533545b5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10002533545b5Smrg			found="yes"
10003533545b5Smrg		fi
10004533545b5Smrg	fi
10005533545b5Smrg
10006533545b5Smrg
10007533545b5Smrg
10008533545b5Smrg
10009533545b5Smrg
10010533545b5Smrg
10011533545b5Smrg
10012533545b5Smrg
10013533545b5Smrg
10014533545b5Smrg
10015533545b5Smrg
10016533545b5Smrg
10017533545b5Smrg
10018533545b5Smrg
10019533545b5Smrg
10020533545b5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
10021533545b5Smrg
10022533545b5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10023533545b5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10024c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10025c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10026c9e4df9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10027c9e4df9bSmrgthen :
10028c9e4df9bSmrg  printf %s "(cached) " >&6
10029c9e4df9bSmrgelse $as_nop
10030533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10031533545b5Smrg/* end confdefs.h.  */
10032533545b5Smrgint i;
10033533545b5Smrg_ACEOF
10034c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
10035c9e4df9bSmrgthen :
10036533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
10037c9e4df9bSmrgelse $as_nop
10038533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
10039533545b5Smrgfi
10040c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10041533545b5Smrgfi
10042c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10043c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10044533545b5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10045533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
10046533545b5Smrgfi
10047533545b5Smrg
10048533545b5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10049533545b5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10050533545b5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10051533545b5Smrg	fi
10052533545b5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10053c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10054c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10055c9e4df9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10056c9e4df9bSmrgthen :
10057c9e4df9bSmrg  printf %s "(cached) " >&6
10058c9e4df9bSmrgelse $as_nop
10059533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10060533545b5Smrg/* end confdefs.h.  */
10061533545b5Smrgint i;
10062533545b5Smrg_ACEOF
10063c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
10064c9e4df9bSmrgthen :
10065533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10066c9e4df9bSmrgelse $as_nop
10067533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
10068533545b5Smrgfi
10069c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10070533545b5Smrgfi
10071c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10072c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10073533545b5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10074533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
10075533545b5Smrgfi
10076533545b5Smrg
10077533545b5Smrgfound="no"
10078533545b5Smrg
10079533545b5Smrg	if test $found = "no" ; then
10080533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10081533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10082533545b5Smrg		fi
10083533545b5Smrg
10084533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10085533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10086533545b5Smrg		fi
10087533545b5Smrg
10088533545b5Smrg		CFLAGS="$CFLAGS -Wwrite-strings"
10089533545b5Smrg
10090c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10091c9e4df9bSmrgprintf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10092533545b5Smrg		cacheid=xorg_cv_cc_flag__Wwrite_strings
10093c9e4df9bSmrg		if eval test \${$cacheid+y}
10094c9e4df9bSmrgthen :
10095c9e4df9bSmrg  printf %s "(cached) " >&6
10096c9e4df9bSmrgelse $as_nop
10097533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10098533545b5Smrg/* end confdefs.h.  */
10099533545b5Smrgint i;
10100533545b5Smrgint
10101c9e4df9bSmrgmain (void)
10102533545b5Smrg{
10103533545b5Smrg
10104533545b5Smrg  ;
10105533545b5Smrg  return 0;
10106533545b5Smrg}
10107533545b5Smrg_ACEOF
10108c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
10109c9e4df9bSmrgthen :
10110533545b5Smrg  eval $cacheid=yes
10111c9e4df9bSmrgelse $as_nop
10112533545b5Smrg  eval $cacheid=no
10113533545b5Smrgfi
10114c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10115533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
10116533545b5Smrgfi
10117533545b5Smrg
10118533545b5Smrg
10119533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
10120533545b5Smrg
10121533545b5Smrg		eval supported=\$$cacheid
10122c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10123c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
10124533545b5Smrg		if test "$supported" = "yes" ; then
10125533545b5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10126533545b5Smrg			found="yes"
10127533545b5Smrg		fi
10128533545b5Smrg	fi
10129533545b5Smrg
10130533545b5Smrg
10131533545b5Smrg
10132533545b5Smrg
10133533545b5Smrg
10134533545b5Smrg
10135533545b5Smrg
10136533545b5Smrg
10137533545b5Smrg
10138533545b5Smrg
10139533545b5Smrg
10140533545b5Smrg
10141533545b5Smrg
10142533545b5Smrg
10143533545b5Smrg
10144533545b5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
10145533545b5Smrg
10146533545b5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10147533545b5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10148c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10149c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10150c9e4df9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10151c9e4df9bSmrgthen :
10152c9e4df9bSmrg  printf %s "(cached) " >&6
10153c9e4df9bSmrgelse $as_nop
10154533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10155533545b5Smrg/* end confdefs.h.  */
10156533545b5Smrgint i;
10157533545b5Smrg_ACEOF
10158c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
10159c9e4df9bSmrgthen :
10160533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
10161c9e4df9bSmrgelse $as_nop
10162533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
10163533545b5Smrgfi
10164c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10165533545b5Smrgfi
10166c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10167c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10168533545b5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10169533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
10170533545b5Smrgfi
10171533545b5Smrg
10172533545b5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10173533545b5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10174533545b5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10175533545b5Smrg	fi
10176533545b5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10177c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10178c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10179c9e4df9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10180c9e4df9bSmrgthen :
10181c9e4df9bSmrg  printf %s "(cached) " >&6
10182c9e4df9bSmrgelse $as_nop
10183533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10184533545b5Smrg/* end confdefs.h.  */
10185533545b5Smrgint i;
10186533545b5Smrg_ACEOF
10187c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
10188c9e4df9bSmrgthen :
10189533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10190c9e4df9bSmrgelse $as_nop
10191533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
10192533545b5Smrgfi
10193c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10194533545b5Smrgfi
10195c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10196c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10197533545b5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10198533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
10199533545b5Smrgfi
10200533545b5Smrg
10201533545b5Smrgfound="no"
10202533545b5Smrg
10203533545b5Smrg	if test $found = "no" ; then
10204533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10205533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10206533545b5Smrg		fi
10207533545b5Smrg
10208533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10209533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10210533545b5Smrg		fi
10211533545b5Smrg
10212533545b5Smrg		CFLAGS="$CFLAGS -Waddress"
10213533545b5Smrg
10214c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10215c9e4df9bSmrgprintf %s "checking if $CC supports -Waddress... " >&6; }
10216533545b5Smrg		cacheid=xorg_cv_cc_flag__Waddress
10217c9e4df9bSmrg		if eval test \${$cacheid+y}
10218c9e4df9bSmrgthen :
10219c9e4df9bSmrg  printf %s "(cached) " >&6
10220c9e4df9bSmrgelse $as_nop
10221533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10222533545b5Smrg/* end confdefs.h.  */
10223533545b5Smrgint i;
10224533545b5Smrgint
10225c9e4df9bSmrgmain (void)
10226533545b5Smrg{
10227533545b5Smrg
10228533545b5Smrg  ;
10229533545b5Smrg  return 0;
10230533545b5Smrg}
10231533545b5Smrg_ACEOF
10232c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
10233c9e4df9bSmrgthen :
10234533545b5Smrg  eval $cacheid=yes
10235c9e4df9bSmrgelse $as_nop
10236533545b5Smrg  eval $cacheid=no
10237533545b5Smrgfi
10238c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10239533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
10240533545b5Smrgfi
10241533545b5Smrg
10242533545b5Smrg
10243533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
10244533545b5Smrg
10245533545b5Smrg		eval supported=\$$cacheid
10246c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10247c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
10248533545b5Smrg		if test "$supported" = "yes" ; then
10249533545b5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10250533545b5Smrg			found="yes"
10251533545b5Smrg		fi
10252533545b5Smrg	fi
10253533545b5Smrg
10254533545b5Smrg
10255533545b5Smrg
10256533545b5Smrg
10257533545b5Smrg
10258533545b5Smrg
10259533545b5Smrg
10260533545b5Smrg
10261533545b5Smrg
10262533545b5Smrg
10263533545b5Smrg
10264533545b5Smrg
10265533545b5Smrg
10266533545b5Smrg
10267533545b5Smrg
10268533545b5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
10269533545b5Smrg
10270533545b5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10271533545b5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10272c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10273c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10274c9e4df9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10275c9e4df9bSmrgthen :
10276c9e4df9bSmrg  printf %s "(cached) " >&6
10277c9e4df9bSmrgelse $as_nop
10278533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10279533545b5Smrg/* end confdefs.h.  */
10280533545b5Smrgint i;
10281533545b5Smrg_ACEOF
10282c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
10283c9e4df9bSmrgthen :
10284533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
10285c9e4df9bSmrgelse $as_nop
10286533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
10287533545b5Smrgfi
10288c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10289533545b5Smrgfi
10290c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10291c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10292533545b5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10293533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
10294533545b5Smrgfi
10295533545b5Smrg
10296533545b5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10297533545b5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10298533545b5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10299533545b5Smrg	fi
10300533545b5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10301c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10302c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10303c9e4df9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10304c9e4df9bSmrgthen :
10305c9e4df9bSmrg  printf %s "(cached) " >&6
10306c9e4df9bSmrgelse $as_nop
10307533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10308533545b5Smrg/* end confdefs.h.  */
10309533545b5Smrgint i;
10310533545b5Smrg_ACEOF
10311c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
10312c9e4df9bSmrgthen :
10313533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10314c9e4df9bSmrgelse $as_nop
10315533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
10316533545b5Smrgfi
10317c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10318533545b5Smrgfi
10319c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10320c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10321533545b5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10322533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
10323533545b5Smrgfi
10324533545b5Smrg
10325533545b5Smrgfound="no"
10326533545b5Smrg
10327533545b5Smrg	if test $found = "no" ; then
10328533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10329533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10330533545b5Smrg		fi
10331533545b5Smrg
10332533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10333533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10334533545b5Smrg		fi
10335533545b5Smrg
10336533545b5Smrg		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10337533545b5Smrg
10338c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10339c9e4df9bSmrgprintf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10340533545b5Smrg		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10341c9e4df9bSmrg		if eval test \${$cacheid+y}
10342c9e4df9bSmrgthen :
10343c9e4df9bSmrg  printf %s "(cached) " >&6
10344c9e4df9bSmrgelse $as_nop
10345533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10346533545b5Smrg/* end confdefs.h.  */
10347533545b5Smrgint i;
10348533545b5Smrgint
10349c9e4df9bSmrgmain (void)
10350533545b5Smrg{
10351533545b5Smrg
10352533545b5Smrg  ;
10353533545b5Smrg  return 0;
10354533545b5Smrg}
10355533545b5Smrg_ACEOF
10356c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
10357c9e4df9bSmrgthen :
10358533545b5Smrg  eval $cacheid=yes
10359c9e4df9bSmrgelse $as_nop
10360533545b5Smrg  eval $cacheid=no
10361533545b5Smrgfi
10362c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10363533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
10364533545b5Smrgfi
10365533545b5Smrg
10366533545b5Smrg
10367533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
10368533545b5Smrg
10369533545b5Smrg		eval supported=\$$cacheid
10370c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10371c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
10372533545b5Smrg		if test "$supported" = "yes" ; then
10373533545b5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10374533545b5Smrg			found="yes"
10375533545b5Smrg		fi
10376533545b5Smrg	fi
10377533545b5Smrg
10378533545b5Smrg
10379533545b5Smrg
10380533545b5Smrg
10381533545b5Smrg
10382533545b5Smrg
10383533545b5Smrg
10384533545b5Smrg
10385533545b5Smrg
10386533545b5Smrg
10387533545b5Smrg
10388533545b5Smrg
10389533545b5Smrg
10390533545b5Smrg
10391533545b5Smrg
10392533545b5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
10393533545b5Smrg
10394533545b5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10395533545b5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10396c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10397c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10398c9e4df9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10399c9e4df9bSmrgthen :
10400c9e4df9bSmrg  printf %s "(cached) " >&6
10401c9e4df9bSmrgelse $as_nop
10402533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10403533545b5Smrg/* end confdefs.h.  */
10404533545b5Smrgint i;
10405533545b5Smrg_ACEOF
10406c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
10407c9e4df9bSmrgthen :
10408533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
10409c9e4df9bSmrgelse $as_nop
10410533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
10411533545b5Smrgfi
10412c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10413533545b5Smrgfi
10414c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10415c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10416533545b5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10417533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
10418533545b5Smrgfi
10419533545b5Smrg
10420533545b5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10421533545b5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10422533545b5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10423533545b5Smrg	fi
10424533545b5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10425c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10426c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10427c9e4df9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10428c9e4df9bSmrgthen :
10429c9e4df9bSmrg  printf %s "(cached) " >&6
10430c9e4df9bSmrgelse $as_nop
10431533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10432533545b5Smrg/* end confdefs.h.  */
10433533545b5Smrgint i;
10434533545b5Smrg_ACEOF
10435c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
10436c9e4df9bSmrgthen :
10437533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10438c9e4df9bSmrgelse $as_nop
10439533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
10440533545b5Smrgfi
10441c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10442533545b5Smrgfi
10443c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10444c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10445533545b5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10446533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
10447533545b5Smrgfi
10448533545b5Smrg
10449533545b5Smrgfound="no"
10450533545b5Smrg
10451533545b5Smrg	if test $found = "no" ; then
10452533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10453533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10454533545b5Smrg		fi
10455533545b5Smrg
10456533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10457533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10458533545b5Smrg		fi
10459533545b5Smrg
10460533545b5Smrg		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10461533545b5Smrg
10462c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10463c9e4df9bSmrgprintf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10464533545b5Smrg		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10465c9e4df9bSmrg		if eval test \${$cacheid+y}
10466c9e4df9bSmrgthen :
10467c9e4df9bSmrg  printf %s "(cached) " >&6
10468c9e4df9bSmrgelse $as_nop
10469533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10470533545b5Smrg/* end confdefs.h.  */
10471533545b5Smrgint i;
10472533545b5Smrgint
10473c9e4df9bSmrgmain (void)
10474533545b5Smrg{
10475533545b5Smrg
10476533545b5Smrg  ;
10477533545b5Smrg  return 0;
10478533545b5Smrg}
10479533545b5Smrg_ACEOF
10480c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
10481c9e4df9bSmrgthen :
10482533545b5Smrg  eval $cacheid=yes
10483c9e4df9bSmrgelse $as_nop
10484533545b5Smrg  eval $cacheid=no
10485533545b5Smrgfi
10486c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10487533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
10488533545b5Smrgfi
10489533545b5Smrg
10490533545b5Smrg
10491533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
10492533545b5Smrg
10493533545b5Smrg		eval supported=\$$cacheid
10494c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10495c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
10496533545b5Smrg		if test "$supported" = "yes" ; then
10497533545b5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10498533545b5Smrg			found="yes"
10499533545b5Smrg		fi
10500533545b5Smrg	fi
10501533545b5Smrg
10502533545b5Smrg
10503533545b5Smrgfi
10504533545b5Smrg
10505533545b5Smrg
10506533545b5Smrg
10507533545b5Smrg
10508533545b5Smrg
10509533545b5Smrg
10510533545b5Smrg
10511533545b5Smrg		CWARNFLAGS="$BASE_CFLAGS"
10512533545b5Smrg		if  test "x$GCC" = xyes ; then
10513533545b5Smrg		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10514533545b5Smrg		fi
10515533545b5Smrg
10516533545b5Smrg
10517533545b5Smrg
10518533545b5Smrg
10519533545b5Smrg
10520533545b5Smrg
10521533545b5Smrg
10522533545b5Smrg
10523533545b5Smrg# Check whether --enable-strict-compilation was given.
10524c9e4df9bSmrgif test ${enable_strict_compilation+y}
10525c9e4df9bSmrgthen :
10526533545b5Smrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10527c9e4df9bSmrgelse $as_nop
10528533545b5Smrg  STRICT_COMPILE=no
10529533545b5Smrgfi
10530533545b5Smrg
10531533545b5Smrg
10532533545b5Smrg
10533533545b5Smrg
10534533545b5Smrg
10535533545b5Smrg
10536533545b5SmrgSTRICT_CFLAGS=""
10537533545b5Smrg
10538533545b5Smrg
10539533545b5Smrg
10540533545b5Smrg
10541533545b5Smrg
10542533545b5Smrg
10543533545b5Smrg
10544533545b5Smrg
10545533545b5Smrg
10546533545b5Smrg
10547533545b5Smrg
10548533545b5Smrg
10549533545b5Smrg
10550533545b5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
10551533545b5Smrg
10552533545b5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10553533545b5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10554c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10555c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10556c9e4df9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10557c9e4df9bSmrgthen :
10558c9e4df9bSmrg  printf %s "(cached) " >&6
10559c9e4df9bSmrgelse $as_nop
10560533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10561533545b5Smrg/* end confdefs.h.  */
10562533545b5Smrgint i;
10563533545b5Smrg_ACEOF
10564c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
10565c9e4df9bSmrgthen :
10566533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
10567c9e4df9bSmrgelse $as_nop
10568533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
10569533545b5Smrgfi
10570c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10571533545b5Smrgfi
10572c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10573c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10574533545b5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10575533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
10576533545b5Smrgfi
10577533545b5Smrg
10578533545b5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10579533545b5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10580533545b5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10581533545b5Smrg	fi
10582533545b5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10583c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10584c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10585c9e4df9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10586c9e4df9bSmrgthen :
10587c9e4df9bSmrg  printf %s "(cached) " >&6
10588c9e4df9bSmrgelse $as_nop
10589533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10590533545b5Smrg/* end confdefs.h.  */
10591533545b5Smrgint i;
10592533545b5Smrg_ACEOF
10593c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
10594c9e4df9bSmrgthen :
10595533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10596c9e4df9bSmrgelse $as_nop
10597533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
10598533545b5Smrgfi
10599c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10600533545b5Smrgfi
10601c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10602c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10603533545b5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10604533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
10605533545b5Smrgfi
10606533545b5Smrg
10607533545b5Smrgfound="no"
10608533545b5Smrg
10609533545b5Smrg	if test $found = "no" ; then
10610533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10611533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10612533545b5Smrg		fi
10613533545b5Smrg
10614533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10615533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10616533545b5Smrg		fi
10617533545b5Smrg
10618533545b5Smrg		CFLAGS="$CFLAGS -pedantic"
10619533545b5Smrg
10620c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10621c9e4df9bSmrgprintf %s "checking if $CC supports -pedantic... " >&6; }
10622533545b5Smrg		cacheid=xorg_cv_cc_flag__pedantic
10623c9e4df9bSmrg		if eval test \${$cacheid+y}
10624c9e4df9bSmrgthen :
10625c9e4df9bSmrg  printf %s "(cached) " >&6
10626c9e4df9bSmrgelse $as_nop
10627533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10628533545b5Smrg/* end confdefs.h.  */
10629533545b5Smrgint i;
10630533545b5Smrgint
10631c9e4df9bSmrgmain (void)
10632533545b5Smrg{
10633533545b5Smrg
10634533545b5Smrg  ;
10635533545b5Smrg  return 0;
10636533545b5Smrg}
10637533545b5Smrg_ACEOF
10638c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
10639c9e4df9bSmrgthen :
10640533545b5Smrg  eval $cacheid=yes
10641c9e4df9bSmrgelse $as_nop
10642533545b5Smrg  eval $cacheid=no
10643533545b5Smrgfi
10644c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10645533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
10646533545b5Smrgfi
10647533545b5Smrg
10648533545b5Smrg
10649533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
10650533545b5Smrg
10651533545b5Smrg		eval supported=\$$cacheid
10652c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10653c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
10654533545b5Smrg		if test "$supported" = "yes" ; then
10655533545b5Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10656533545b5Smrg			found="yes"
10657533545b5Smrg		fi
10658533545b5Smrg	fi
10659533545b5Smrg
10660533545b5Smrg
10661533545b5Smrg
10662533545b5Smrg
10663533545b5Smrg
10664533545b5Smrg
10665533545b5Smrg
10666533545b5Smrg
10667533545b5Smrg
10668533545b5Smrg
10669533545b5Smrg
10670533545b5Smrg
10671533545b5Smrg
10672533545b5Smrg
10673533545b5Smrg
10674533545b5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
10675533545b5Smrg
10676533545b5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10677533545b5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10678c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10679c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10680c9e4df9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10681c9e4df9bSmrgthen :
10682c9e4df9bSmrg  printf %s "(cached) " >&6
10683c9e4df9bSmrgelse $as_nop
10684533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10685533545b5Smrg/* end confdefs.h.  */
10686533545b5Smrgint i;
10687533545b5Smrg_ACEOF
10688c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
10689c9e4df9bSmrgthen :
10690533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
10691c9e4df9bSmrgelse $as_nop
10692533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
10693533545b5Smrgfi
10694c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10695533545b5Smrgfi
10696c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10697c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10698533545b5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10699533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
10700533545b5Smrgfi
10701533545b5Smrg
10702533545b5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10703533545b5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10704533545b5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10705533545b5Smrg	fi
10706533545b5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10707c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10708c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10709c9e4df9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10710c9e4df9bSmrgthen :
10711c9e4df9bSmrg  printf %s "(cached) " >&6
10712c9e4df9bSmrgelse $as_nop
10713533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10714533545b5Smrg/* end confdefs.h.  */
10715533545b5Smrgint i;
10716533545b5Smrg_ACEOF
10717c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
10718c9e4df9bSmrgthen :
10719533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10720c9e4df9bSmrgelse $as_nop
10721533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
10722533545b5Smrgfi
10723c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10724533545b5Smrgfi
10725c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10726c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10727533545b5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10728533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
10729533545b5Smrgfi
10730533545b5Smrg
10731533545b5Smrgfound="no"
10732533545b5Smrg
10733533545b5Smrg	if test $found = "no" ; then
10734533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10735533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10736533545b5Smrg		fi
10737533545b5Smrg
10738533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10739533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10740533545b5Smrg		fi
10741533545b5Smrg
10742533545b5Smrg		CFLAGS="$CFLAGS -Werror"
10743533545b5Smrg
10744c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10745c9e4df9bSmrgprintf %s "checking if $CC supports -Werror... " >&6; }
10746533545b5Smrg		cacheid=xorg_cv_cc_flag__Werror
10747c9e4df9bSmrg		if eval test \${$cacheid+y}
10748c9e4df9bSmrgthen :
10749c9e4df9bSmrg  printf %s "(cached) " >&6
10750c9e4df9bSmrgelse $as_nop
10751533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10752533545b5Smrg/* end confdefs.h.  */
10753533545b5Smrgint i;
10754533545b5Smrgint
10755c9e4df9bSmrgmain (void)
10756533545b5Smrg{
10757533545b5Smrg
10758533545b5Smrg  ;
10759533545b5Smrg  return 0;
10760533545b5Smrg}
10761533545b5Smrg_ACEOF
10762c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
10763c9e4df9bSmrgthen :
10764533545b5Smrg  eval $cacheid=yes
10765c9e4df9bSmrgelse $as_nop
10766533545b5Smrg  eval $cacheid=no
10767533545b5Smrgfi
10768c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10769533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
10770533545b5Smrgfi
10771533545b5Smrg
10772533545b5Smrg
10773533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
10774533545b5Smrg
10775533545b5Smrg		eval supported=\$$cacheid
10776c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10777c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
10778533545b5Smrg		if test "$supported" = "yes" ; then
10779533545b5Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10780533545b5Smrg			found="yes"
10781533545b5Smrg		fi
10782533545b5Smrg	fi
10783533545b5Smrg
10784533545b5Smrg	if test $found = "no" ; then
10785533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10786533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10787533545b5Smrg		fi
10788533545b5Smrg
10789533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10790533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10791533545b5Smrg		fi
10792533545b5Smrg
10793533545b5Smrg		CFLAGS="$CFLAGS -errwarn"
10794533545b5Smrg
10795c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10796c9e4df9bSmrgprintf %s "checking if $CC supports -errwarn... " >&6; }
10797533545b5Smrg		cacheid=xorg_cv_cc_flag__errwarn
10798c9e4df9bSmrg		if eval test \${$cacheid+y}
10799c9e4df9bSmrgthen :
10800c9e4df9bSmrg  printf %s "(cached) " >&6
10801c9e4df9bSmrgelse $as_nop
10802533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10803533545b5Smrg/* end confdefs.h.  */
10804533545b5Smrgint i;
10805533545b5Smrgint
10806c9e4df9bSmrgmain (void)
10807533545b5Smrg{
10808533545b5Smrg
10809533545b5Smrg  ;
10810533545b5Smrg  return 0;
10811533545b5Smrg}
10812533545b5Smrg_ACEOF
10813c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
10814c9e4df9bSmrgthen :
10815533545b5Smrg  eval $cacheid=yes
10816c9e4df9bSmrgelse $as_nop
10817533545b5Smrg  eval $cacheid=no
10818533545b5Smrgfi
10819c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10820533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
10821533545b5Smrgfi
10822533545b5Smrg
10823533545b5Smrg
10824533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
10825533545b5Smrg
10826533545b5Smrg		eval supported=\$$cacheid
10827c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10828c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
10829533545b5Smrg		if test "$supported" = "yes" ; then
10830533545b5Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10831533545b5Smrg			found="yes"
10832533545b5Smrg		fi
10833533545b5Smrg	fi
10834533545b5Smrg
10835533545b5Smrg
10836533545b5Smrg
10837533545b5Smrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10838533545b5Smrg# activate it with -Werror, so we add it here explicitly.
10839533545b5Smrg
10840533545b5Smrg
10841533545b5Smrg
10842533545b5Smrg
10843533545b5Smrg
10844533545b5Smrg
10845533545b5Smrg
10846533545b5Smrg
10847533545b5Smrg
10848533545b5Smrg
10849533545b5Smrg
10850533545b5Smrg
10851533545b5Smrg
10852533545b5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
10853533545b5Smrg
10854533545b5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10855533545b5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10856c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10857c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10858c9e4df9bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10859c9e4df9bSmrgthen :
10860c9e4df9bSmrg  printf %s "(cached) " >&6
10861c9e4df9bSmrgelse $as_nop
10862533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10863533545b5Smrg/* end confdefs.h.  */
10864533545b5Smrgint i;
10865533545b5Smrg_ACEOF
10866c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
10867c9e4df9bSmrgthen :
10868533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
10869c9e4df9bSmrgelse $as_nop
10870533545b5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
10871533545b5Smrgfi
10872c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10873533545b5Smrgfi
10874c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10875c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10876533545b5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10877533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
10878533545b5Smrgfi
10879533545b5Smrg
10880533545b5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10881533545b5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10882533545b5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10883533545b5Smrg	fi
10884533545b5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10885c9e4df9bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10886c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10887c9e4df9bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10888c9e4df9bSmrgthen :
10889c9e4df9bSmrg  printf %s "(cached) " >&6
10890c9e4df9bSmrgelse $as_nop
10891533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10892533545b5Smrg/* end confdefs.h.  */
10893533545b5Smrgint i;
10894533545b5Smrg_ACEOF
10895c9e4df9bSmrgif ac_fn_c_try_compile "$LINENO"
10896c9e4df9bSmrgthen :
10897533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10898c9e4df9bSmrgelse $as_nop
10899533545b5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
10900533545b5Smrgfi
10901c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10902533545b5Smrgfi
10903c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10904c9e4df9bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10905533545b5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10906533545b5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
10907533545b5Smrgfi
10908533545b5Smrg
10909533545b5Smrgfound="no"
10910533545b5Smrg
10911533545b5Smrg	if test $found = "no" ; then
10912533545b5Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10913533545b5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10914533545b5Smrg		fi
10915533545b5Smrg
10916533545b5Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10917533545b5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10918533545b5Smrg		fi
10919533545b5Smrg
10920533545b5Smrg		CFLAGS="$CFLAGS -Werror=attributes"
10921533545b5Smrg
10922c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10923c9e4df9bSmrgprintf %s "checking if $CC supports -Werror=attributes... " >&6; }
10924533545b5Smrg		cacheid=xorg_cv_cc_flag__Werror_attributes
10925c9e4df9bSmrg		if eval test \${$cacheid+y}
10926c9e4df9bSmrgthen :
10927c9e4df9bSmrg  printf %s "(cached) " >&6
10928c9e4df9bSmrgelse $as_nop
10929533545b5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10930533545b5Smrg/* end confdefs.h.  */
10931533545b5Smrgint i;
10932533545b5Smrgint
10933c9e4df9bSmrgmain (void)
10934533545b5Smrg{
10935533545b5Smrg
10936533545b5Smrg  ;
10937533545b5Smrg  return 0;
10938533545b5Smrg}
10939533545b5Smrg_ACEOF
10940c9e4df9bSmrgif ac_fn_c_try_link "$LINENO"
10941c9e4df9bSmrgthen :
10942533545b5Smrg  eval $cacheid=yes
10943c9e4df9bSmrgelse $as_nop
10944533545b5Smrg  eval $cacheid=no
10945533545b5Smrgfi
10946c9e4df9bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10947533545b5Smrg    conftest$ac_exeext conftest.$ac_ext
10948533545b5Smrgfi
10949533545b5Smrg
10950533545b5Smrg
10951533545b5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
10952533545b5Smrg
10953533545b5Smrg		eval supported=\$$cacheid
10954c9e4df9bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10955c9e4df9bSmrgprintf "%s\n" "$supported" >&6; }
10956533545b5Smrg		if test "$supported" = "yes" ; then
10957533545b5Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10958533545b5Smrg			found="yes"
10959533545b5Smrg		fi
10960533545b5Smrg	fi
10961533545b5Smrg
10962533545b5Smrg
10963533545b5Smrg
10964533545b5Smrgif test "x$STRICT_COMPILE" = "xyes"; then
10965533545b5Smrg    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10966533545b5Smrg    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10967533545b5Smrgfi
10968533545b5Smrg
10969533545b5Smrg
10970533545b5Smrg
10971533545b5Smrg
10972533545b5Smrg
10973533545b5Smrg
10974533545b5Smrgcat >>confdefs.h <<_ACEOF
10975533545b5Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10976533545b5Smrg_ACEOF
10977533545b5Smrg
10978533545b5Smrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10979533545b5Smrg	if test "x$PVM" = "x"; then
10980533545b5Smrg		PVM="0"
10981533545b5Smrg	fi
10982533545b5Smrg
10983c9e4df9bSmrgprintf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
10984533545b5Smrg
10985533545b5Smrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10986533545b5Smrg	if test "x$PVP" = "x"; then
10987533545b5Smrg		PVP="0"
10988533545b5Smrg	fi
10989533545b5Smrg
10990c9e4df9bSmrgprintf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
10991533545b5Smrg
10992533545b5Smrg
10993533545b5Smrg
10994c9e4df9bSmrgCHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10995533545b5Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10996c9e4df9bSmrg|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10997c9e4df9bSmrgtouch \$(top_srcdir)/ChangeLog; \
10998c9e4df9bSmrgecho 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10999533545b5Smrg
11000533545b5Smrg
11001533545b5Smrg
11002533545b5Smrg
11003533545b5Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11004533545b5SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11005533545b5Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11006c9e4df9bSmrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11007c9e4df9bSmrgtouch \$(top_srcdir)/INSTALL; \
11008c9e4df9bSmrgecho 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11009c9e4df9bSmrg
11010533545b5Smrg
11011533545b5Smrg
11012533545b5Smrg
11013533545b5Smrg
11014533545b5Smrg
11015c9e4df9bSmrgcase $host_os in
11016c9e4df9bSmrg    solaris*)
11017c9e4df9bSmrg        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11018c9e4df9bSmrg        # check for a man page file found in later versions that use
11019c9e4df9bSmrg        # traditional section numbers instead
11020c9e4df9bSmrg        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11021c9e4df9bSmrgprintf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11022c9e4df9bSmrgif test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11023c9e4df9bSmrgthen :
11024c9e4df9bSmrg  printf %s "(cached) " >&6
11025c9e4df9bSmrgelse $as_nop
11026c9e4df9bSmrg  test "$cross_compiling" = yes &&
11027c9e4df9bSmrg  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11028c9e4df9bSmrgif test -r "/usr/share/man/man7/attributes.7"; then
11029c9e4df9bSmrg  ac_cv_file__usr_share_man_man7_attributes_7=yes
11030c9e4df9bSmrgelse
11031c9e4df9bSmrg  ac_cv_file__usr_share_man_man7_attributes_7=no
11032c9e4df9bSmrgfi
11033c9e4df9bSmrgfi
11034c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11035c9e4df9bSmrgprintf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11036c9e4df9bSmrgif test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11037c9e4df9bSmrgthen :
11038c9e4df9bSmrg  SYSV_MAN_SECTIONS=false
11039c9e4df9bSmrgelse $as_nop
11040c9e4df9bSmrg  SYSV_MAN_SECTIONS=true
11041c9e4df9bSmrgfi
11042c9e4df9bSmrg
11043c9e4df9bSmrg        ;;
11044c9e4df9bSmrg    *) SYSV_MAN_SECTIONS=false ;;
11045c9e4df9bSmrgesac
11046533545b5Smrg
11047533545b5Smrgif test x$APP_MAN_SUFFIX = x    ; then
11048533545b5Smrg    APP_MAN_SUFFIX=1
11049533545b5Smrgfi
11050533545b5Smrgif test x$APP_MAN_DIR = x    ; then
11051533545b5Smrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11052533545b5Smrgfi
11053533545b5Smrg
11054533545b5Smrgif test x$LIB_MAN_SUFFIX = x    ; then
11055533545b5Smrg    LIB_MAN_SUFFIX=3
11056533545b5Smrgfi
11057533545b5Smrgif test x$LIB_MAN_DIR = x    ; then
11058533545b5Smrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11059533545b5Smrgfi
11060533545b5Smrg
11061533545b5Smrgif test x$FILE_MAN_SUFFIX = x    ; then
11062c9e4df9bSmrg    case $SYSV_MAN_SECTIONS in
11063c9e4df9bSmrg	true)				FILE_MAN_SUFFIX=4  ;;
1106465c1f7cfSmrg	*)				FILE_MAN_SUFFIX=5  ;;
11065533545b5Smrg    esac
11066533545b5Smrgfi
11067533545b5Smrgif test x$FILE_MAN_DIR = x    ; then
11068533545b5Smrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11069533545b5Smrgfi
11070533545b5Smrg
11071533545b5Smrgif test x$MISC_MAN_SUFFIX = x    ; then
11072c9e4df9bSmrg    case $SYSV_MAN_SECTIONS in
11073c9e4df9bSmrg	true)				MISC_MAN_SUFFIX=5  ;;
1107465c1f7cfSmrg	*)				MISC_MAN_SUFFIX=7  ;;
11075533545b5Smrg    esac
11076533545b5Smrgfi
11077533545b5Smrgif test x$MISC_MAN_DIR = x    ; then
11078533545b5Smrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11079533545b5Smrgfi
11080533545b5Smrg
11081533545b5Smrgif test x$DRIVER_MAN_SUFFIX = x    ; then
11082c9e4df9bSmrg    case $SYSV_MAN_SECTIONS in
11083c9e4df9bSmrg	true)				DRIVER_MAN_SUFFIX=7  ;;
1108465c1f7cfSmrg	*)				DRIVER_MAN_SUFFIX=4  ;;
11085533545b5Smrg    esac
11086533545b5Smrgfi
11087533545b5Smrgif test x$DRIVER_MAN_DIR = x    ; then
11088533545b5Smrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11089533545b5Smrgfi
11090533545b5Smrg
11091533545b5Smrgif test x$ADMIN_MAN_SUFFIX = x    ; then
11092c9e4df9bSmrg    case $SYSV_MAN_SECTIONS in
11093c9e4df9bSmrg	true)				ADMIN_MAN_SUFFIX=1m ;;
1109465c1f7cfSmrg	*)				ADMIN_MAN_SUFFIX=8  ;;
11095533545b5Smrg    esac
11096533545b5Smrgfi
11097533545b5Smrgif test x$ADMIN_MAN_DIR = x    ; then
11098533545b5Smrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11099c37a63b8Smrgfi
11100c37a63b8Smrg
11101c37a63b8Smrg
11102c37a63b8Smrg
11103c37a63b8Smrg
11104c37a63b8Smrg
11105c37a63b8Smrg
11106c37a63b8Smrg
11107c37a63b8Smrg
11108c37a63b8Smrg
11109c37a63b8Smrg
11110c37a63b8Smrg
11111c37a63b8Smrg
11112c37a63b8Smrg
11113c37a63b8Smrg
11114c37a63b8Smrg
11115736a7e2cSmrgXORG_MAN_PAGE="X Version 11"
11116c37a63b8Smrg
11117736a7e2cSmrgMAN_SUBSTS="\
11118736a7e2cSmrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11119736a7e2cSmrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11120736a7e2cSmrg	-e 's|__xservername__|Xorg|g' \
11121736a7e2cSmrg	-e 's|__xconfigfile__|xorg.conf|g' \
11122736a7e2cSmrg	-e 's|__projectroot__|\$(prefix)|g' \
11123736a7e2cSmrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11124736a7e2cSmrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11125736a7e2cSmrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11126736a7e2cSmrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11127736a7e2cSmrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11128736a7e2cSmrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11129736a7e2cSmrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11130c37a63b8Smrg
11131264fa531Smrg
11132736a7e2cSmrg
11133736a7e2cSmrg# Check whether --enable-silent-rules was given.
11134c9e4df9bSmrgif test ${enable_silent_rules+y}
11135c9e4df9bSmrgthen :
11136736a7e2cSmrg  enableval=$enable_silent_rules;
11137264fa531Smrgfi
11138264fa531Smrg
11139533545b5Smrgcase $enable_silent_rules in # (((
11140533545b5Smrg  yes) AM_DEFAULT_VERBOSITY=0;;
11141533545b5Smrg   no) AM_DEFAULT_VERBOSITY=1;;
11142533545b5Smrg    *) AM_DEFAULT_VERBOSITY=0;;
11143736a7e2cSmrgesac
11144533545b5Smrgam_make=${MAKE-make}
11145c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11146c9e4df9bSmrgprintf %s "checking whether $am_make supports nested variables... " >&6; }
11147c9e4df9bSmrgif test ${am_cv_make_support_nested_variables+y}
11148c9e4df9bSmrgthen :
11149c9e4df9bSmrg  printf %s "(cached) " >&6
11150c9e4df9bSmrgelse $as_nop
11151c9e4df9bSmrg  if printf "%s\n" 'TRUE=$(BAR$(V))
11152533545b5SmrgBAR0=false
11153533545b5SmrgBAR1=true
11154533545b5SmrgV=1
11155533545b5Smrgam__doit:
11156533545b5Smrg	@$(TRUE)
11157533545b5Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11158533545b5Smrg  am_cv_make_support_nested_variables=yes
11159264fa531Smrgelse
11160533545b5Smrg  am_cv_make_support_nested_variables=no
11161264fa531Smrgfi
11162264fa531Smrgfi
11163c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11164c9e4df9bSmrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11165533545b5Smrgif test $am_cv_make_support_nested_variables = yes; then
11166533545b5Smrg    AM_V='$(V)'
11167533545b5Smrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11168533545b5Smrgelse
11169533545b5Smrg  AM_V=$AM_DEFAULT_VERBOSITY
11170533545b5Smrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11171533545b5Smrgfi
11172533545b5SmrgAM_BACKSLASH='\'
11173264fa531Smrg
11174264fa531Smrg
11175264fa531Smrg
11176e4ee1255Smrg# Define the installation directory for the x11 performance compare scripts
11177e4ee1255Smrgx11perfcompdir=$libdir/X11/x11perfcomp
11178e4ee1255Smrg
11179e4ee1255Smrg
11180e4ee1255Smrg# Checks for programs run by the scripts we install
11181e4ee1255Smrg# Extract the first word of "mktemp", so it can be a program name with args.
11182e4ee1255Smrgset dummy mktemp; ac_word=$2
11183c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11184c9e4df9bSmrgprintf %s "checking for $ac_word... " >&6; }
11185c9e4df9bSmrgif test ${ac_cv_path_MKTEMP+y}
11186c9e4df9bSmrgthen :
11187c9e4df9bSmrg  printf %s "(cached) " >&6
11188c9e4df9bSmrgelse $as_nop
11189e4ee1255Smrg  case $MKTEMP in
11190e4ee1255Smrg  [\\/]* | ?:[\\/]*)
11191e4ee1255Smrg  ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
11192e4ee1255Smrg  ;;
11193e4ee1255Smrg  *)
11194e4ee1255Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11195e4ee1255Smrgfor as_dir in $PATH
11196e4ee1255Smrgdo
11197e4ee1255Smrg  IFS=$as_save_IFS
11198c9e4df9bSmrg  case $as_dir in #(((
11199c9e4df9bSmrg    '') as_dir=./ ;;
11200c9e4df9bSmrg    */) ;;
11201c9e4df9bSmrg    *) as_dir=$as_dir/ ;;
11202c9e4df9bSmrg  esac
11203e4ee1255Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
11204c9e4df9bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11205c9e4df9bSmrg    ac_cv_path_MKTEMP="$as_dir$ac_word$ac_exec_ext"
11206c9e4df9bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11207e4ee1255Smrg    break 2
11208e4ee1255Smrg  fi
11209e4ee1255Smrgdone
11210e4ee1255Smrg  done
11211e4ee1255SmrgIFS=$as_save_IFS
11212e4ee1255Smrg
11213e4ee1255Smrg  ;;
11214e4ee1255Smrgesac
11215e4ee1255Smrgfi
11216e4ee1255SmrgMKTEMP=$ac_cv_path_MKTEMP
11217e4ee1255Smrgif test -n "$MKTEMP"; then
11218c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
11219c9e4df9bSmrgprintf "%s\n" "$MKTEMP" >&6; }
11220e4ee1255Smrgelse
11221c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11222c9e4df9bSmrgprintf "%s\n" "no" >&6; }
11223e4ee1255Smrgfi
11224e4ee1255Smrg
11225e4ee1255Smrg
11226e4ee1255Smrg
11227264fa531Smrg# Checks for pkg-config packages
11228264fa531Smrg
11229264fa531Smrgpkg_failed=no
11230c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11PERF" >&5
11231c9e4df9bSmrgprintf %s "checking for X11PERF... " >&6; }
11232c37a63b8Smrg
11233c37a63b8Smrgif test -n "$X11PERF_CFLAGS"; then
11234c37a63b8Smrg    pkg_cv_X11PERF_CFLAGS="$X11PERF_CFLAGS"
11235c37a63b8Smrg elif test -n "$PKG_CONFIG"; then
11236c37a63b8Smrg    if test -n "$PKG_CONFIG" && \
11237c9e4df9bSmrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xmuu xproto >= 7.0.17\""; } >&5
11238533545b5Smrg  ($PKG_CONFIG --exists --print-errors "x11 xmuu xproto >= 7.0.17") 2>&5
11239264fa531Smrg  ac_status=$?
11240c9e4df9bSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11241736a7e2cSmrg  test $ac_status = 0; }; then
11242533545b5Smrg  pkg_cv_X11PERF_CFLAGS=`$PKG_CONFIG --cflags "x11 xmuu xproto >= 7.0.17" 2>/dev/null`
1124365c1f7cfSmrg		      test "x$?" != "x0" && pkg_failed=yes
11244264fa531Smrgelse
11245264fa531Smrg  pkg_failed=yes
11246264fa531Smrgfi
11247c37a63b8Smrg else
11248c37a63b8Smrg    pkg_failed=untried
11249264fa531Smrgfi
11250c37a63b8Smrgif test -n "$X11PERF_LIBS"; then
11251c37a63b8Smrg    pkg_cv_X11PERF_LIBS="$X11PERF_LIBS"
11252c37a63b8Smrg elif test -n "$PKG_CONFIG"; then
11253c37a63b8Smrg    if test -n "$PKG_CONFIG" && \
11254c9e4df9bSmrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xmuu xproto >= 7.0.17\""; } >&5
11255533545b5Smrg  ($PKG_CONFIG --exists --print-errors "x11 xmuu xproto >= 7.0.17") 2>&5
11256264fa531Smrg  ac_status=$?
11257c9e4df9bSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11258736a7e2cSmrg  test $ac_status = 0; }; then
11259533545b5Smrg  pkg_cv_X11PERF_LIBS=`$PKG_CONFIG --libs "x11 xmuu xproto >= 7.0.17" 2>/dev/null`
1126065c1f7cfSmrg		      test "x$?" != "x0" && pkg_failed=yes
11261264fa531Smrgelse
11262264fa531Smrg  pkg_failed=yes
11263264fa531Smrgfi
11264c37a63b8Smrg else
11265c37a63b8Smrg    pkg_failed=untried
11266264fa531Smrgfi
11267264fa531Smrg
11268c37a63b8Smrg
11269c37a63b8Smrg
11270264fa531Smrgif test $pkg_failed = yes; then
11271c9e4df9bSmrg   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11272c9e4df9bSmrgprintf "%s\n" "no" >&6; }
11273c37a63b8Smrg
11274c37a63b8Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11275c37a63b8Smrg        _pkg_short_errors_supported=yes
11276c37a63b8Smrgelse
11277c37a63b8Smrg        _pkg_short_errors_supported=no
11278c37a63b8Smrgfi
11279c37a63b8Smrg        if test $_pkg_short_errors_supported = yes; then
1128065c1f7cfSmrg	        X11PERF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xmuu xproto >= 7.0.17" 2>&1`
11281c37a63b8Smrg        else
1128265c1f7cfSmrg	        X11PERF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xmuu xproto >= 7.0.17" 2>&1`
11283c37a63b8Smrg        fi
11284264fa531Smrg	# Put the nasty error message in config.log where it belongs
11285c37a63b8Smrg	echo "$X11PERF_PKG_ERRORS" >&5
11286c37a63b8Smrg
11287533545b5Smrg	as_fn_error $? "Package requirements (x11 xmuu xproto >= 7.0.17) were not met:
11288c37a63b8Smrg
11289c37a63b8Smrg$X11PERF_PKG_ERRORS
11290c37a63b8Smrg
11291264fa531SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
11292264fa531Smrginstalled software in a non-standard prefix.
11293264fa531Smrg
11294c37a63b8SmrgAlternatively, you may set the environment variables X11PERF_CFLAGS
11295c37a63b8Smrgand X11PERF_LIBS to avoid the need to call pkg-config.
1129665c1f7cfSmrgSee the pkg-config man page for more details." "$LINENO" 5
11297264fa531Smrgelif test $pkg_failed = untried; then
11298c9e4df9bSmrg     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11299c9e4df9bSmrgprintf "%s\n" "no" >&6; }
11300c9e4df9bSmrg	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11301c9e4df9bSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11302736a7e2cSmrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11303264fa531Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
11304264fa531Smrgpath to pkg-config.
11305264fa531Smrg
11306c37a63b8SmrgAlternatively, you may set the environment variables X11PERF_CFLAGS
11307c37a63b8Smrgand X11PERF_LIBS to avoid the need to call pkg-config.
11308c37a63b8SmrgSee the pkg-config man page for more details.
11309264fa531Smrg
11310c37a63b8SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
11311736a7e2cSmrgSee \`config.log' for more details" "$LINENO" 5; }
11312264fa531Smrgelse
11313264fa531Smrg	X11PERF_CFLAGS=$pkg_cv_X11PERF_CFLAGS
11314264fa531Smrg	X11PERF_LIBS=$pkg_cv_X11PERF_LIBS
11315c9e4df9bSmrg        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11316c9e4df9bSmrgprintf "%s\n" "yes" >&6; }
1131765c1f7cfSmrg
11318264fa531Smrgfi
11319264fa531Smrg
11320264fa531Smrg# Check for Xrender library
11321264fa531Smrg
11322264fa531Smrgpkg_failed=no
11323c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRENDER" >&5
11324c9e4df9bSmrgprintf %s "checking for XRENDER... " >&6; }
11325c37a63b8Smrg
11326c37a63b8Smrgif test -n "$XRENDER_CFLAGS"; then
11327c37a63b8Smrg    pkg_cv_XRENDER_CFLAGS="$XRENDER_CFLAGS"
11328c37a63b8Smrg elif test -n "$PKG_CONFIG"; then
11329c37a63b8Smrg    if test -n "$PKG_CONFIG" && \
11330c9e4df9bSmrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender\""; } >&5
11331264fa531Smrg  ($PKG_CONFIG --exists --print-errors "xrender") 2>&5
11332264fa531Smrg  ac_status=$?
11333c9e4df9bSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11334736a7e2cSmrg  test $ac_status = 0; }; then
11335264fa531Smrg  pkg_cv_XRENDER_CFLAGS=`$PKG_CONFIG --cflags "xrender" 2>/dev/null`
1133665c1f7cfSmrg		      test "x$?" != "x0" && pkg_failed=yes
11337264fa531Smrgelse
11338264fa531Smrg  pkg_failed=yes
11339264fa531Smrgfi
11340c37a63b8Smrg else
11341c37a63b8Smrg    pkg_failed=untried
11342264fa531Smrgfi
11343c37a63b8Smrgif test -n "$XRENDER_LIBS"; then
11344c37a63b8Smrg    pkg_cv_XRENDER_LIBS="$XRENDER_LIBS"
11345c37a63b8Smrg elif test -n "$PKG_CONFIG"; then
11346c37a63b8Smrg    if test -n "$PKG_CONFIG" && \
11347c9e4df9bSmrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender\""; } >&5
11348264fa531Smrg  ($PKG_CONFIG --exists --print-errors "xrender") 2>&5
11349264fa531Smrg  ac_status=$?
11350c9e4df9bSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11351736a7e2cSmrg  test $ac_status = 0; }; then
11352264fa531Smrg  pkg_cv_XRENDER_LIBS=`$PKG_CONFIG --libs "xrender" 2>/dev/null`
1135365c1f7cfSmrg		      test "x$?" != "x0" && pkg_failed=yes
11354264fa531Smrgelse
11355264fa531Smrg  pkg_failed=yes
11356264fa531Smrgfi
11357c37a63b8Smrg else
11358c37a63b8Smrg    pkg_failed=untried
11359264fa531Smrgfi
11360264fa531Smrg
11361c37a63b8Smrg
11362c37a63b8Smrg
11363264fa531Smrgif test $pkg_failed = yes; then
11364c9e4df9bSmrg   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11365c9e4df9bSmrgprintf "%s\n" "no" >&6; }
11366c37a63b8Smrg
11367c37a63b8Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11368c37a63b8Smrg        _pkg_short_errors_supported=yes
11369c37a63b8Smrgelse
11370c37a63b8Smrg        _pkg_short_errors_supported=no
11371c37a63b8Smrgfi
11372c37a63b8Smrg        if test $_pkg_short_errors_supported = yes; then
1137365c1f7cfSmrg	        XRENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrender" 2>&1`
11374c37a63b8Smrg        else
1137565c1f7cfSmrg	        XRENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrender" 2>&1`
11376c37a63b8Smrg        fi
11377264fa531Smrg	# Put the nasty error message in config.log where it belongs
11378c37a63b8Smrg	echo "$XRENDER_PKG_ERRORS" >&5
11379264fa531Smrg
1138065c1f7cfSmrg	xrender_found=no
11381264fa531Smrgelif test $pkg_failed = untried; then
11382c9e4df9bSmrg     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11383c9e4df9bSmrgprintf "%s\n" "no" >&6; }
11384264fa531Smrg	xrender_found=no
11385264fa531Smrgelse
11386264fa531Smrg	XRENDER_CFLAGS=$pkg_cv_XRENDER_CFLAGS
11387264fa531Smrg	XRENDER_LIBS=$pkg_cv_XRENDER_LIBS
11388c9e4df9bSmrg        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11389c9e4df9bSmrgprintf "%s\n" "yes" >&6; }
11390264fa531Smrg	xrender_found=yes
11391264fa531Smrgfi
11392264fa531Smrgcase "$xrender_found" in
11393264fa531Smrgyes)
11394264fa531Smrg
11395c9e4df9bSmrgprintf "%s\n" "#define XRENDER 1" >>confdefs.h
11396264fa531Smrg
11397264fa531Smrg	;;
11398264fa531Smrgesac
11399264fa531Smrg
11400264fa531Smrg# Check for Xft library
11401264fa531Smrg
11402264fa531Smrgpkg_failed=no
11403c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFT" >&5
11404c9e4df9bSmrgprintf %s "checking for XFT... " >&6; }
11405c37a63b8Smrg
11406c37a63b8Smrgif test -n "$XFT_CFLAGS"; then
11407c37a63b8Smrg    pkg_cv_XFT_CFLAGS="$XFT_CFLAGS"
11408c37a63b8Smrg elif test -n "$PKG_CONFIG"; then
11409c37a63b8Smrg    if test -n "$PKG_CONFIG" && \
11410c9e4df9bSmrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft\""; } >&5
11411264fa531Smrg  ($PKG_CONFIG --exists --print-errors "xft") 2>&5
11412264fa531Smrg  ac_status=$?
11413c9e4df9bSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11414736a7e2cSmrg  test $ac_status = 0; }; then
11415264fa531Smrg  pkg_cv_XFT_CFLAGS=`$PKG_CONFIG --cflags "xft" 2>/dev/null`
1141665c1f7cfSmrg		      test "x$?" != "x0" && pkg_failed=yes
11417264fa531Smrgelse
11418264fa531Smrg  pkg_failed=yes
11419264fa531Smrgfi
11420c37a63b8Smrg else
11421c37a63b8Smrg    pkg_failed=untried
11422264fa531Smrgfi
11423c37a63b8Smrgif test -n "$XFT_LIBS"; then
11424c37a63b8Smrg    pkg_cv_XFT_LIBS="$XFT_LIBS"
11425c37a63b8Smrg elif test -n "$PKG_CONFIG"; then
11426c37a63b8Smrg    if test -n "$PKG_CONFIG" && \
11427c9e4df9bSmrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft\""; } >&5
11428264fa531Smrg  ($PKG_CONFIG --exists --print-errors "xft") 2>&5
11429264fa531Smrg  ac_status=$?
11430c9e4df9bSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11431736a7e2cSmrg  test $ac_status = 0; }; then
11432264fa531Smrg  pkg_cv_XFT_LIBS=`$PKG_CONFIG --libs "xft" 2>/dev/null`
1143365c1f7cfSmrg		      test "x$?" != "x0" && pkg_failed=yes
11434264fa531Smrgelse
11435264fa531Smrg  pkg_failed=yes
11436264fa531Smrgfi
11437c37a63b8Smrg else
11438c37a63b8Smrg    pkg_failed=untried
11439264fa531Smrgfi
11440264fa531Smrg
11441c37a63b8Smrg
11442c37a63b8Smrg
11443264fa531Smrgif test $pkg_failed = yes; then
11444c9e4df9bSmrg   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11445c9e4df9bSmrgprintf "%s\n" "no" >&6; }
11446c37a63b8Smrg
11447c37a63b8Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11448c37a63b8Smrg        _pkg_short_errors_supported=yes
11449c37a63b8Smrgelse
11450c37a63b8Smrg        _pkg_short_errors_supported=no
11451c37a63b8Smrgfi
11452c37a63b8Smrg        if test $_pkg_short_errors_supported = yes; then
1145365c1f7cfSmrg	        XFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xft" 2>&1`
11454c37a63b8Smrg        else
1145565c1f7cfSmrg	        XFT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xft" 2>&1`
11456c37a63b8Smrg        fi
11457264fa531Smrg	# Put the nasty error message in config.log where it belongs
11458c37a63b8Smrg	echo "$XFT_PKG_ERRORS" >&5
11459264fa531Smrg
1146065c1f7cfSmrg	xft_found=no
11461264fa531Smrgelif test $pkg_failed = untried; then
11462c9e4df9bSmrg     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11463c9e4df9bSmrgprintf "%s\n" "no" >&6; }
11464264fa531Smrg	xft_found=no
11465264fa531Smrgelse
11466264fa531Smrg	XFT_CFLAGS=$pkg_cv_XFT_CFLAGS
11467264fa531Smrg	XFT_LIBS=$pkg_cv_XFT_LIBS
11468c9e4df9bSmrg        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11469c9e4df9bSmrgprintf "%s\n" "yes" >&6; }
11470264fa531Smrg	xft_found=yes
11471264fa531Smrgfi
11472264fa531Smrgcase "$xft_found" in
11473264fa531Smrgyes)
11474264fa531Smrg
11475c9e4df9bSmrgprintf "%s\n" "#define XFT 1" >>confdefs.h
11476264fa531Smrg
11477264fa531Smrg	;;
11478264fa531Smrgesac
11479264fa531Smrg
11480264fa531Smrg# Check for MIT-SHM extension
11481264fa531Smrg
11482264fa531Smrgpkg_failed=no
11483c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
11484c9e4df9bSmrgprintf %s "checking for XEXT... " >&6; }
11485c37a63b8Smrg
11486c37a63b8Smrgif test -n "$XEXT_CFLAGS"; then
11487c37a63b8Smrg    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
11488c37a63b8Smrg elif test -n "$PKG_CONFIG"; then
11489c37a63b8Smrg    if test -n "$PKG_CONFIG" && \
11490c9e4df9bSmrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
11491264fa531Smrg  ($PKG_CONFIG --exists --print-errors "xext") 2>&5
11492264fa531Smrg  ac_status=$?
11493c9e4df9bSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11494736a7e2cSmrg  test $ac_status = 0; }; then
11495264fa531Smrg  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
1149665c1f7cfSmrg		      test "x$?" != "x0" && pkg_failed=yes
11497264fa531Smrgelse
11498264fa531Smrg  pkg_failed=yes
11499264fa531Smrgfi
11500c37a63b8Smrg else
11501c37a63b8Smrg    pkg_failed=untried
11502264fa531Smrgfi
11503c37a63b8Smrgif test -n "$XEXT_LIBS"; then
11504c37a63b8Smrg    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
11505c37a63b8Smrg elif test -n "$PKG_CONFIG"; then
11506c37a63b8Smrg    if test -n "$PKG_CONFIG" && \
11507c9e4df9bSmrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
11508264fa531Smrg  ($PKG_CONFIG --exists --print-errors "xext") 2>&5
11509264fa531Smrg  ac_status=$?
11510c9e4df9bSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11511736a7e2cSmrg  test $ac_status = 0; }; then
11512264fa531Smrg  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
1151365c1f7cfSmrg		      test "x$?" != "x0" && pkg_failed=yes
11514264fa531Smrgelse
11515264fa531Smrg  pkg_failed=yes
11516264fa531Smrgfi
11517c37a63b8Smrg else
11518c37a63b8Smrg    pkg_failed=untried
11519264fa531Smrgfi
11520264fa531Smrg
11521736a7e2cSmrg
11522736a7e2cSmrg
11523736a7e2cSmrgif test $pkg_failed = yes; then
11524c9e4df9bSmrg   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11525c9e4df9bSmrgprintf "%s\n" "no" >&6; }
11526736a7e2cSmrg
11527736a7e2cSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11528736a7e2cSmrg        _pkg_short_errors_supported=yes
11529736a7e2cSmrgelse
11530736a7e2cSmrg        _pkg_short_errors_supported=no
11531264fa531Smrgfi
11532736a7e2cSmrg        if test $_pkg_short_errors_supported = yes; then
1153365c1f7cfSmrg	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xext" 2>&1`
11534736a7e2cSmrg        else
1153565c1f7cfSmrg	        XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xext" 2>&1`
11536736a7e2cSmrg        fi
11537736a7e2cSmrg	# Put the nasty error message in config.log where it belongs
11538736a7e2cSmrg	echo "$XEXT_PKG_ERRORS" >&5
11539c37a63b8Smrg
1154065c1f7cfSmrg	xext_found=no
11541736a7e2cSmrgelif test $pkg_failed = untried; then
11542c9e4df9bSmrg     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11543c9e4df9bSmrgprintf "%s\n" "no" >&6; }
11544736a7e2cSmrg	xext_found=no
11545736a7e2cSmrgelse
11546736a7e2cSmrg	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
11547736a7e2cSmrg	XEXT_LIBS=$pkg_cv_XEXT_LIBS
11548c9e4df9bSmrg        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11549c9e4df9bSmrgprintf "%s\n" "yes" >&6; }
11550736a7e2cSmrg	xext_found=yes
11551264fa531Smrgfi
11552736a7e2cSmrgcase "$xext_found" in
11553736a7e2cSmrgyes)
11554736a7e2cSmrg	save_LIBS="$LIBS"
11555736a7e2cSmrg	LIBS="$XEXT_LIBS $LIBS"
11556c9e4df9bSmrg
11557c9e4df9bSmrg  for ac_func in XShmQueryExtension
11558736a7e2cSmrgdo :
11559736a7e2cSmrg  ac_fn_c_check_func "$LINENO" "XShmQueryExtension" "ac_cv_func_XShmQueryExtension"
11560c9e4df9bSmrgif test "x$ac_cv_func_XShmQueryExtension" = xyes
11561c9e4df9bSmrgthen :
11562c9e4df9bSmrg  printf "%s\n" "#define HAVE_XSHMQUERYEXTENSION 1" >>confdefs.h
11563264fa531Smrg
11564c9e4df9bSmrgprintf "%s\n" "#define MITSHM 1" >>confdefs.h
11565264fa531Smrg
11566264fa531Smrgfi
11567264fa531Smrg
11568c9e4df9bSmrgdone
11569264fa531Smrg	LIBS="$save_LIBS"
11570264fa531Smrg	;;
11571264fa531Smrgesac
11572264fa531Smrg
11573e4ee1255Smrgac_config_files="$ac_config_files Makefile man/Makefile"
11574264fa531Smrg
11575264fa531Smrgcat >confcache <<\_ACEOF
11576264fa531Smrg# This file is a shell script that caches the results of configure
11577264fa531Smrg# tests run on this system so they can be shared between configure
11578264fa531Smrg# scripts and configure runs, see configure's option --config-cache.
11579264fa531Smrg# It is not useful on other systems.  If it contains results you don't
11580264fa531Smrg# want to keep, you may remove or edit it.
11581264fa531Smrg#
11582264fa531Smrg# config.status only pays attention to the cache file if you give it
11583264fa531Smrg# the --recheck option to rerun configure.
11584264fa531Smrg#
11585264fa531Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
11586264fa531Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
11587264fa531Smrg# following values.
11588264fa531Smrg
11589264fa531Smrg_ACEOF
11590264fa531Smrg
11591264fa531Smrg# The following way of writing the cache mishandles newlines in values,
11592264fa531Smrg# but we know of no workaround that is simple, portable, and efficient.
11593c37a63b8Smrg# So, we kill variables containing newlines.
11594264fa531Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
11595264fa531Smrg# and sets the high bit in the cache file unless we assign to the vars.
11596c37a63b8Smrg(
11597c37a63b8Smrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11598c37a63b8Smrg    eval ac_val=\$$ac_var
11599c37a63b8Smrg    case $ac_val in #(
11600c37a63b8Smrg    *${as_nl}*)
11601c37a63b8Smrg      case $ac_var in #(
11602c9e4df9bSmrg      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11603c9e4df9bSmrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11604c37a63b8Smrg      esac
11605c37a63b8Smrg      case $ac_var in #(
11606c37a63b8Smrg      _ | IFS | as_nl) ;; #(
11607c37a63b8Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11608736a7e2cSmrg      *) { eval $ac_var=; unset $ac_var;} ;;
11609c37a63b8Smrg      esac ;;
11610c37a63b8Smrg    esac
11611c37a63b8Smrg  done
11612c37a63b8Smrg
11613264fa531Smrg  (set) 2>&1 |
11614c37a63b8Smrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11615c37a63b8Smrg    *${as_nl}ac_space=\ *)
11616736a7e2cSmrg      # `set' does not quote correctly, so add quotes: double-quote
11617736a7e2cSmrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
11618264fa531Smrg      sed -n \
11619264fa531Smrg	"s/'/'\\\\''/g;
11620264fa531Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11621c37a63b8Smrg      ;; #(
11622264fa531Smrg    *)
11623264fa531Smrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
11624c37a63b8Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11625264fa531Smrg      ;;
11626c37a63b8Smrg    esac |
11627c37a63b8Smrg    sort
11628c37a63b8Smrg) |
11629264fa531Smrg  sed '
11630c37a63b8Smrg     /^ac_cv_env_/b end
11631264fa531Smrg     t clear
11632c37a63b8Smrg     :clear
11633c9e4df9bSmrg     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11634264fa531Smrg     t end
11635c37a63b8Smrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11636c37a63b8Smrg     :end' >>confcache
11637c37a63b8Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11638c37a63b8Smrg  if test -w "$cache_file"; then
11639736a7e2cSmrg    if test "x$cache_file" != "x/dev/null"; then
11640c9e4df9bSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11641c9e4df9bSmrgprintf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11642736a7e2cSmrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
11643736a7e2cSmrg	cat confcache >"$cache_file"
11644736a7e2cSmrg      else
11645736a7e2cSmrg        case $cache_file in #(
11646736a7e2cSmrg        */* | ?:*)
11647736a7e2cSmrg	  mv -f confcache "$cache_file"$$ &&
11648736a7e2cSmrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11649736a7e2cSmrg        *)
11650736a7e2cSmrg	  mv -f confcache "$cache_file" ;;
11651736a7e2cSmrg	esac
11652736a7e2cSmrg      fi
11653736a7e2cSmrg    fi
11654264fa531Smrg  else
11655c9e4df9bSmrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11656c9e4df9bSmrgprintf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11657264fa531Smrg  fi
11658264fa531Smrgfi
11659264fa531Smrgrm -f confcache
11660264fa531Smrg
11661264fa531Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
11662264fa531Smrg# Let make expand exec_prefix.
11663264fa531Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11664264fa531Smrg
11665264fa531SmrgDEFS=-DHAVE_CONFIG_H
11666264fa531Smrg
11667264fa531Smrgac_libobjs=
11668264fa531Smrgac_ltlibobjs=
11669736a7e2cSmrgU=
11670264fa531Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11671264fa531Smrg  # 1. Remove the extension, and $U if already installed.
11672c37a63b8Smrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11673c9e4df9bSmrg  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11674c37a63b8Smrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11675c37a63b8Smrg  #    will be set to the directory where LIBOBJS objects are built.
11676736a7e2cSmrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11677736a7e2cSmrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11678264fa531Smrgdone
11679264fa531SmrgLIBOBJS=$ac_libobjs
11680264fa531Smrg
11681264fa531SmrgLTLIBOBJS=$ac_ltlibobjs
11682264fa531Smrg
11683264fa531Smrg
11684c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11685c9e4df9bSmrgprintf %s "checking that generated files are newer than configure... " >&6; }
11686533545b5Smrg   if test -n "$am_sleep_pid"; then
11687533545b5Smrg     # Hide warnings about reused PIDs.
11688533545b5Smrg     wait $am_sleep_pid 2>/dev/null
11689533545b5Smrg   fi
11690c9e4df9bSmrg   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11691c9e4df9bSmrgprintf "%s\n" "done" >&6; }
11692c37a63b8Smrg if test -n "$EXEEXT"; then
11693c37a63b8Smrg  am__EXEEXT_TRUE=
11694c37a63b8Smrg  am__EXEEXT_FALSE='#'
11695c37a63b8Smrgelse
11696c37a63b8Smrg  am__EXEEXT_TRUE='#'
11697c37a63b8Smrg  am__EXEEXT_FALSE=
11698c37a63b8Smrgfi
11699c37a63b8Smrg
11700264fa531Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11701736a7e2cSmrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
11702736a7e2cSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
11703264fa531Smrgfi
11704264fa531Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11705736a7e2cSmrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11706736a7e2cSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
11707264fa531Smrgfi
11708264fa531Smrg
11709736a7e2cSmrg: "${CONFIG_STATUS=./config.status}"
11710c37a63b8Smrgac_write_fail=0
11711264fa531Smrgac_clean_files_save=$ac_clean_files
11712264fa531Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
11713c9e4df9bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11714c9e4df9bSmrgprintf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11715736a7e2cSmrgas_write_fail=0
11716736a7e2cSmrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11717264fa531Smrg#! $SHELL
11718264fa531Smrg# Generated by $as_me.
11719264fa531Smrg# Run this file to recreate the current configuration.
11720264fa531Smrg# Compiler output produced by configure, useful for debugging
11721264fa531Smrg# configure, is in config.log if it exists.
11722264fa531Smrg
11723264fa531Smrgdebug=false
11724264fa531Smrgac_cs_recheck=false
11725264fa531Smrgac_cs_silent=false
11726264fa531Smrg
11727736a7e2cSmrgSHELL=\${CONFIG_SHELL-$SHELL}
11728736a7e2cSmrgexport SHELL
11729736a7e2cSmrg_ASEOF
11730736a7e2cSmrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11731736a7e2cSmrg## -------------------- ##
11732736a7e2cSmrg## M4sh Initialization. ##
11733736a7e2cSmrg## -------------------- ##
11734264fa531Smrg
11735c37a63b8Smrg# Be more Bourne compatible
11736c37a63b8SmrgDUALCASE=1; export DUALCASE # for MKS sh
11737c9e4df9bSmrgas_nop=:
11738c9e4df9bSmrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11739c9e4df9bSmrgthen :
11740264fa531Smrg  emulate sh
11741264fa531Smrg  NULLCMD=:
11742c37a63b8Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11743264fa531Smrg  # is contrary to our usage.  Disable this feature.
11744264fa531Smrg  alias -g '${1+"$@"}'='"$@"'
11745c37a63b8Smrg  setopt NO_GLOB_SUBST
11746c9e4df9bSmrgelse $as_nop
11747736a7e2cSmrg  case `(set -o) 2>/dev/null` in #(
11748736a7e2cSmrg  *posix*) :
11749736a7e2cSmrg    set -o posix ;; #(
11750736a7e2cSmrg  *) :
11751736a7e2cSmrg     ;;
11752c37a63b8Smrgesac
11753c37a63b8Smrgfi
11754c37a63b8Smrg
11755c37a63b8Smrg
11756c9e4df9bSmrg
11757c9e4df9bSmrg# Reset variables that may have inherited troublesome values from
11758c9e4df9bSmrg# the environment.
11759c9e4df9bSmrg
11760c9e4df9bSmrg# IFS needs to be set, to space, tab, and newline, in precisely that order.
11761c9e4df9bSmrg# (If _AS_PATH_WALK were called with IFS unset, it would have the
11762c9e4df9bSmrg# side effect of setting IFS to empty, thus disabling word splitting.)
11763c9e4df9bSmrg# Quoting is to prevent editors from complaining about space-tab.
11764c37a63b8Smrgas_nl='
11765c37a63b8Smrg'
11766c37a63b8Smrgexport as_nl
11767c9e4df9bSmrgIFS=" ""	$as_nl"
11768c9e4df9bSmrg
11769c9e4df9bSmrgPS1='$ '
11770c9e4df9bSmrgPS2='> '
11771c9e4df9bSmrgPS4='+ '
11772c9e4df9bSmrg
11773c9e4df9bSmrg# Ensure predictable behavior from utilities with locale-dependent output.
11774c9e4df9bSmrgLC_ALL=C
11775c9e4df9bSmrgexport LC_ALL
11776c9e4df9bSmrgLANGUAGE=C
11777c9e4df9bSmrgexport LANGUAGE
11778c9e4df9bSmrg
11779c9e4df9bSmrg# We cannot yet rely on "unset" to work, but we need these variables
11780c9e4df9bSmrg# to be unset--not just set to an empty or harmless value--now, to
11781c9e4df9bSmrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
11782c9e4df9bSmrg# also avoids known problems related to "unset" and subshell syntax
11783c9e4df9bSmrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11784c9e4df9bSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11785c9e4df9bSmrgdo eval test \${$as_var+y} \
11786c9e4df9bSmrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11787c9e4df9bSmrgdone
11788c9e4df9bSmrg
11789c9e4df9bSmrg# Ensure that fds 0, 1, and 2 are open.
11790c9e4df9bSmrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11791c9e4df9bSmrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11792c9e4df9bSmrgif (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
11793c37a63b8Smrg
11794c37a63b8Smrg# The user is always right.
11795c9e4df9bSmrgif ${PATH_SEPARATOR+false} :; then
11796c37a63b8Smrg  PATH_SEPARATOR=:
11797c37a63b8Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11798c37a63b8Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11799c37a63b8Smrg      PATH_SEPARATOR=';'
11800c37a63b8Smrg  }
11801264fa531Smrgfi
11802264fa531Smrg
11803264fa531Smrg
11804c37a63b8Smrg# Find who we are.  Look in the path if we contain no directory separator.
11805736a7e2cSmrgas_myself=
11806736a7e2cSmrgcase $0 in #((
11807c37a63b8Smrg  *[\\/]* ) as_myself=$0 ;;
11808c37a63b8Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11809c37a63b8Smrgfor as_dir in $PATH
11810c37a63b8Smrgdo
11811c37a63b8Smrg  IFS=$as_save_IFS
11812c9e4df9bSmrg  case $as_dir in #(((
11813c9e4df9bSmrg    '') as_dir=./ ;;
11814c9e4df9bSmrg    */) ;;
11815c9e4df9bSmrg    *) as_dir=$as_dir/ ;;
11816c9e4df9bSmrg  esac
11817c9e4df9bSmrg    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11818736a7e2cSmrg  done
11819c37a63b8SmrgIFS=$as_save_IFS
11820c37a63b8Smrg
11821c37a63b8Smrg     ;;
11822c37a63b8Smrgesac
11823c37a63b8Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
11824c37a63b8Smrg# in which case we are not to be found in the path.
11825c37a63b8Smrgif test "x$as_myself" = x; then
11826c37a63b8Smrg  as_myself=$0
11827c37a63b8Smrgfi
11828c37a63b8Smrgif test ! -f "$as_myself"; then
11829c9e4df9bSmrg  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11830736a7e2cSmrg  exit 1
11831c37a63b8Smrgfi
11832c37a63b8Smrg
11833736a7e2cSmrg
11834736a7e2cSmrg
11835736a7e2cSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
11836736a7e2cSmrg# ----------------------------------------
11837736a7e2cSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11838736a7e2cSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11839736a7e2cSmrg# script with STATUS, using 1 if that was 0.
11840736a7e2cSmrgas_fn_error ()
11841736a7e2cSmrg{
11842736a7e2cSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
11843736a7e2cSmrg  if test "$4"; then
11844736a7e2cSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11845c9e4df9bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11846736a7e2cSmrg  fi
11847c9e4df9bSmrg  printf "%s\n" "$as_me: error: $2" >&2
11848736a7e2cSmrg  as_fn_exit $as_status
11849736a7e2cSmrg} # as_fn_error
11850736a7e2cSmrg
11851736a7e2cSmrg
11852c9e4df9bSmrg
11853736a7e2cSmrg# as_fn_set_status STATUS
11854736a7e2cSmrg# -----------------------
11855736a7e2cSmrg# Set $? to STATUS, without forking.
11856736a7e2cSmrgas_fn_set_status ()
11857736a7e2cSmrg{
11858736a7e2cSmrg  return $1
11859736a7e2cSmrg} # as_fn_set_status
11860736a7e2cSmrg
11861736a7e2cSmrg# as_fn_exit STATUS
11862736a7e2cSmrg# -----------------
11863736a7e2cSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11864736a7e2cSmrgas_fn_exit ()
11865736a7e2cSmrg{
11866736a7e2cSmrg  set +e
11867736a7e2cSmrg  as_fn_set_status $1
11868736a7e2cSmrg  exit $1
11869736a7e2cSmrg} # as_fn_exit
11870736a7e2cSmrg
11871736a7e2cSmrg# as_fn_unset VAR
11872736a7e2cSmrg# ---------------
11873736a7e2cSmrg# Portably unset VAR.
11874736a7e2cSmrgas_fn_unset ()
11875736a7e2cSmrg{
11876736a7e2cSmrg  { eval $1=; unset $1;}
11877736a7e2cSmrg}
11878736a7e2cSmrgas_unset=as_fn_unset
11879c9e4df9bSmrg
11880736a7e2cSmrg# as_fn_append VAR VALUE
11881736a7e2cSmrg# ----------------------
11882736a7e2cSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take
11883736a7e2cSmrg# advantage of any shell optimizations that allow amortized linear growth over
11884736a7e2cSmrg# repeated appends, instead of the typical quadratic growth present in naive
11885736a7e2cSmrg# implementations.
11886c9e4df9bSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11887c9e4df9bSmrgthen :
11888736a7e2cSmrg  eval 'as_fn_append ()
11889736a7e2cSmrg  {
11890736a7e2cSmrg    eval $1+=\$2
11891736a7e2cSmrg  }'
11892c9e4df9bSmrgelse $as_nop
11893736a7e2cSmrg  as_fn_append ()
11894736a7e2cSmrg  {
11895736a7e2cSmrg    eval $1=\$$1\$2
11896736a7e2cSmrg  }
11897736a7e2cSmrgfi # as_fn_append
11898736a7e2cSmrg
11899736a7e2cSmrg# as_fn_arith ARG...
11900736a7e2cSmrg# ------------------
11901736a7e2cSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the
11902736a7e2cSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
11903736a7e2cSmrg# must be portable across $(()) and expr.
11904c9e4df9bSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11905c9e4df9bSmrgthen :
11906736a7e2cSmrg  eval 'as_fn_arith ()
11907736a7e2cSmrg  {
11908736a7e2cSmrg    as_val=$(( $* ))
11909736a7e2cSmrg  }'
11910c9e4df9bSmrgelse $as_nop
11911736a7e2cSmrg  as_fn_arith ()
11912736a7e2cSmrg  {
11913736a7e2cSmrg    as_val=`expr "$@" || test $? -eq 1`
11914736a7e2cSmrg  }
11915736a7e2cSmrgfi # as_fn_arith
11916736a7e2cSmrg
11917736a7e2cSmrg
11918c37a63b8Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
11919c37a63b8Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11920264fa531Smrg  as_expr=expr
11921264fa531Smrgelse
11922264fa531Smrg  as_expr=false
11923264fa531Smrgfi
11924264fa531Smrg
11925c37a63b8Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11926264fa531Smrg  as_basename=basename
11927264fa531Smrgelse
11928264fa531Smrg  as_basename=false
11929264fa531Smrgfi
11930264fa531Smrg
11931736a7e2cSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11932736a7e2cSmrg  as_dirname=dirname
11933736a7e2cSmrgelse
11934736a7e2cSmrg  as_dirname=false
11935736a7e2cSmrgfi
11936264fa531Smrg
11937c37a63b8Smrgas_me=`$as_basename -- "$0" ||
11938264fa531Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11939264fa531Smrg	 X"$0" : 'X\(//\)$' \| \
11940c37a63b8Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11941c9e4df9bSmrgprintf "%s\n" X/"$0" |
11942c37a63b8Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
11943c37a63b8Smrg	    s//\1/
11944c37a63b8Smrg	    q
11945c37a63b8Smrg	  }
11946c37a63b8Smrg	  /^X\/\(\/\/\)$/{
11947c37a63b8Smrg	    s//\1/
11948c37a63b8Smrg	    q
11949c37a63b8Smrg	  }
11950c37a63b8Smrg	  /^X\/\(\/\).*/{
11951c37a63b8Smrg	    s//\1/
11952c37a63b8Smrg	    q
11953c37a63b8Smrg	  }
11954c37a63b8Smrg	  s/.*/./; q'`
11955264fa531Smrg
11956736a7e2cSmrg# Avoid depending upon Character Ranges.
11957736a7e2cSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
11958736a7e2cSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11959736a7e2cSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
11960736a7e2cSmrgas_cr_digits='0123456789'
11961736a7e2cSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits
11962264fa531Smrg
11963c9e4df9bSmrg
11964c9e4df9bSmrg# Determine whether it's possible to make 'echo' print without a newline.
11965c9e4df9bSmrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11966c9e4df9bSmrg# for compatibility with existing Makefiles.
11967c37a63b8SmrgECHO_C= ECHO_N= ECHO_T=
11968736a7e2cSmrgcase `echo -n x` in #(((((
11969c37a63b8Smrg-n*)
11970736a7e2cSmrg  case `echo 'xy\c'` in
11971c37a63b8Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11972736a7e2cSmrg  xy)  ECHO_C='\c';;
11973736a7e2cSmrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11974736a7e2cSmrg       ECHO_T='	';;
11975c37a63b8Smrg  esac;;
11976c37a63b8Smrg*)
11977c37a63b8Smrg  ECHO_N='-n';;
11978c37a63b8Smrgesac
11979264fa531Smrg
11980c9e4df9bSmrg# For backward compatibility with old third-party macros, we provide
11981c9e4df9bSmrg# the shell variables $as_echo and $as_echo_n.  New code should use
11982c9e4df9bSmrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11983c9e4df9bSmrgas_echo='printf %s\n'
11984c9e4df9bSmrgas_echo_n='printf %s'
11985c9e4df9bSmrg
11986264fa531Smrgrm -f conf$$ conf$$.exe conf$$.file
11987c37a63b8Smrgif test -d conf$$.dir; then
11988c37a63b8Smrg  rm -f conf$$.dir/conf$$.file
11989c37a63b8Smrgelse
11990c37a63b8Smrg  rm -f conf$$.dir
11991c37a63b8Smrg  mkdir conf$$.dir 2>/dev/null
11992c37a63b8Smrgfi
11993c37a63b8Smrgif (echo >conf$$.file) 2>/dev/null; then
11994c37a63b8Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
11995264fa531Smrg    as_ln_s='ln -s'
11996c37a63b8Smrg    # ... but there are two gotchas:
11997c37a63b8Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11998c37a63b8Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11999533545b5Smrg    # In both cases, we have to default to `cp -pR'.
12000c37a63b8Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12001533545b5Smrg      as_ln_s='cp -pR'
12002c37a63b8Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
12003c37a63b8Smrg    as_ln_s=ln
12004c37a63b8Smrg  else
12005533545b5Smrg    as_ln_s='cp -pR'
12006264fa531Smrg  fi
12007264fa531Smrgelse
12008533545b5Smrg  as_ln_s='cp -pR'
12009264fa531Smrgfi
12010c37a63b8Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12011c37a63b8Smrgrmdir conf$$.dir 2>/dev/null
12012264fa531Smrg
12013736a7e2cSmrg
12014736a7e2cSmrg# as_fn_mkdir_p
12015736a7e2cSmrg# -------------
12016736a7e2cSmrg# Create "$as_dir" as a directory, including parents if necessary.
12017736a7e2cSmrgas_fn_mkdir_p ()
12018736a7e2cSmrg{
12019736a7e2cSmrg
12020736a7e2cSmrg  case $as_dir in #(
12021736a7e2cSmrg  -*) as_dir=./$as_dir;;
12022736a7e2cSmrg  esac
12023736a7e2cSmrg  test -d "$as_dir" || eval $as_mkdir_p || {
12024736a7e2cSmrg    as_dirs=
12025736a7e2cSmrg    while :; do
12026736a7e2cSmrg      case $as_dir in #(
12027c9e4df9bSmrg      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12028736a7e2cSmrg      *) as_qdir=$as_dir;;
12029736a7e2cSmrg      esac
12030736a7e2cSmrg      as_dirs="'$as_qdir' $as_dirs"
12031736a7e2cSmrg      as_dir=`$as_dirname -- "$as_dir" ||
12032736a7e2cSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12033736a7e2cSmrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
12034736a7e2cSmrg	 X"$as_dir" : 'X\(//\)$' \| \
12035736a7e2cSmrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12036c9e4df9bSmrgprintf "%s\n" X"$as_dir" |
12037736a7e2cSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12038736a7e2cSmrg	    s//\1/
12039736a7e2cSmrg	    q
12040736a7e2cSmrg	  }
12041736a7e2cSmrg	  /^X\(\/\/\)[^/].*/{
12042736a7e2cSmrg	    s//\1/
12043736a7e2cSmrg	    q
12044736a7e2cSmrg	  }
12045736a7e2cSmrg	  /^X\(\/\/\)$/{
12046736a7e2cSmrg	    s//\1/
12047736a7e2cSmrg	    q
12048736a7e2cSmrg	  }
12049736a7e2cSmrg	  /^X\(\/\).*/{
12050736a7e2cSmrg	    s//\1/
12051736a7e2cSmrg	    q
12052736a7e2cSmrg	  }
12053736a7e2cSmrg	  s/.*/./; q'`
12054736a7e2cSmrg      test -d "$as_dir" && break
12055736a7e2cSmrg    done
12056736a7e2cSmrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
12057736a7e2cSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12058736a7e2cSmrg
12059736a7e2cSmrg
12060736a7e2cSmrg} # as_fn_mkdir_p
12061264fa531Smrgif mkdir -p . 2>/dev/null; then
12062736a7e2cSmrg  as_mkdir_p='mkdir -p "$as_dir"'
12063264fa531Smrgelse
12064264fa531Smrg  test -d ./-p && rmdir ./-p
12065264fa531Smrg  as_mkdir_p=false
12066264fa531Smrgfi
12067264fa531Smrg
12068533545b5Smrg
12069533545b5Smrg# as_fn_executable_p FILE
12070533545b5Smrg# -----------------------
12071533545b5Smrg# Test if FILE is an executable regular file.
12072533545b5Smrgas_fn_executable_p ()
12073533545b5Smrg{
12074533545b5Smrg  test -f "$1" && test -x "$1"
12075533545b5Smrg} # as_fn_executable_p
12076533545b5Smrgas_test_x='test -x'
12077533545b5Smrgas_executable_p=as_fn_executable_p
12078264fa531Smrg
12079264fa531Smrg# Sed expression to map a string onto a valid CPP name.
12080264fa531Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12081264fa531Smrg
12082264fa531Smrg# Sed expression to map a string onto a valid variable name.
12083264fa531Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12084264fa531Smrg
12085264fa531Smrg
12086264fa531Smrgexec 6>&1
12087736a7e2cSmrg## ----------------------------------- ##
12088736a7e2cSmrg## Main body of $CONFIG_STATUS script. ##
12089736a7e2cSmrg## ----------------------------------- ##
12090736a7e2cSmrg_ASEOF
12091736a7e2cSmrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12092264fa531Smrg
12093736a7e2cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12094736a7e2cSmrg# Save the log message, to keep $0 and so on meaningful, and to
12095264fa531Smrg# report actual input values of CONFIG_FILES etc. instead of their
12096c37a63b8Smrg# values after options handling.
12097c37a63b8Smrgac_log="
12098c9e4df9bSmrgThis file was extended by x11perf $as_me 1.6.2, which was
12099c9e4df9bSmrggenerated by GNU Autoconf 2.71.  Invocation command line was
12100264fa531Smrg
12101264fa531Smrg  CONFIG_FILES    = $CONFIG_FILES
12102264fa531Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
12103264fa531Smrg  CONFIG_LINKS    = $CONFIG_LINKS
12104264fa531Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
12105264fa531Smrg  $ $0 $@
12106264fa531Smrg
12107c37a63b8Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
12108c37a63b8Smrg"
12109c37a63b8Smrg
12110264fa531Smrg_ACEOF
12111264fa531Smrg
12112c37a63b8Smrgcase $ac_config_files in *"
12113c37a63b8Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
12114c37a63b8Smrgesac
12115264fa531Smrg
12116c37a63b8Smrgcase $ac_config_headers in *"
12117c37a63b8Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12118c37a63b8Smrgesac
12119264fa531Smrg
12120264fa531Smrg
12121c37a63b8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12122c37a63b8Smrg# Files that config.status was made for.
12123c37a63b8Smrgconfig_files="$ac_config_files"
12124c37a63b8Smrgconfig_headers="$ac_config_headers"
12125c37a63b8Smrgconfig_commands="$ac_config_commands"
12126264fa531Smrg
12127c37a63b8Smrg_ACEOF
12128264fa531Smrg
12129c37a63b8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12130264fa531Smrgac_cs_usage="\
12131736a7e2cSmrg\`$as_me' instantiates files and other configuration actions
12132736a7e2cSmrgfrom templates according to the current configuration.  Unless the files
12133736a7e2cSmrgand actions are specified as TAGs, all are instantiated by default.
12134264fa531Smrg
12135736a7e2cSmrgUsage: $0 [OPTION]... [TAG]...
12136264fa531Smrg
12137264fa531Smrg  -h, --help       print this help, then exit
12138c37a63b8Smrg  -V, --version    print version number and configuration settings, then exit
12139736a7e2cSmrg      --config     print configuration, then exit
12140c37a63b8Smrg  -q, --quiet, --silent
12141c37a63b8Smrg                   do not print progress messages
12142264fa531Smrg  -d, --debug      don't remove temporary files
12143264fa531Smrg      --recheck    update $as_me by reconfiguring in the same conditions
12144c37a63b8Smrg      --file=FILE[:TEMPLATE]
12145c37a63b8Smrg                   instantiate the configuration file FILE
12146c37a63b8Smrg      --header=FILE[:TEMPLATE]
12147c37a63b8Smrg                   instantiate the configuration header FILE
12148264fa531Smrg
12149264fa531SmrgConfiguration files:
12150264fa531Smrg$config_files
12151264fa531Smrg
12152264fa531SmrgConfiguration headers:
12153264fa531Smrg$config_headers
12154264fa531Smrg
12155264fa531SmrgConfiguration commands:
12156264fa531Smrg$config_commands
12157264fa531Smrg
12158c9e4df9bSmrgReport bugs to <https://gitlab.freedesktop.org/xorg/test/x11perf/-/issues>."
12159264fa531Smrg
12160c37a63b8Smrg_ACEOF
12161c9e4df9bSmrgac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12162c9e4df9bSmrgac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12163c37a63b8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12164c9e4df9bSmrgac_cs_config='$ac_cs_config_escaped'
12165264fa531Smrgac_cs_version="\\
12166c9e4df9bSmrgx11perf config.status 1.6.2
12167c9e4df9bSmrgconfigured by $0, generated by GNU Autoconf 2.71,
12168736a7e2cSmrg  with options \\"\$ac_cs_config\\"
12169264fa531Smrg
12170c9e4df9bSmrgCopyright (C) 2021 Free Software Foundation, Inc.
12171264fa531SmrgThis config.status script is free software; the Free Software Foundation
12172264fa531Smrggives unlimited permission to copy, distribute and modify it."
12173c37a63b8Smrg
12174c37a63b8Smrgac_pwd='$ac_pwd'
12175c37a63b8Smrgsrcdir='$srcdir'
12176c37a63b8SmrgINSTALL='$INSTALL'
12177c37a63b8SmrgMKDIR_P='$MKDIR_P'
12178c37a63b8SmrgAWK='$AWK'
12179c37a63b8Smrgtest -n "\$AWK" || AWK=awk
12180264fa531Smrg_ACEOF
12181264fa531Smrg
12182c37a63b8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12183c37a63b8Smrg# The default lists apply if the user does not specify any file.
12184264fa531Smrgac_need_defaults=:
12185264fa531Smrgwhile test $# != 0
12186264fa531Smrgdo
12187264fa531Smrg  case $1 in
12188736a7e2cSmrg  --*=?*)
12189c37a63b8Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12190c37a63b8Smrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12191264fa531Smrg    ac_shift=:
12192264fa531Smrg    ;;
12193736a7e2cSmrg  --*=)
12194736a7e2cSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12195736a7e2cSmrg    ac_optarg=
12196736a7e2cSmrg    ac_shift=:
12197736a7e2cSmrg    ;;
12198c37a63b8Smrg  *)
12199264fa531Smrg    ac_option=$1
12200264fa531Smrg    ac_optarg=$2
12201264fa531Smrg    ac_shift=shift
12202264fa531Smrg    ;;
12203264fa531Smrg  esac
12204264fa531Smrg
12205264fa531Smrg  case $ac_option in
12206264fa531Smrg  # Handling of the options.
12207264fa531Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12208264fa531Smrg    ac_cs_recheck=: ;;
12209c37a63b8Smrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12210c9e4df9bSmrg    printf "%s\n" "$ac_cs_version"; exit ;;
12211736a7e2cSmrg  --config | --confi | --conf | --con | --co | --c )
12212c9e4df9bSmrg    printf "%s\n" "$ac_cs_config"; exit ;;
12213c37a63b8Smrg  --debug | --debu | --deb | --de | --d | -d )
12214264fa531Smrg    debug=: ;;
12215264fa531Smrg  --file | --fil | --fi | --f )
12216264fa531Smrg    $ac_shift
12217c37a63b8Smrg    case $ac_optarg in
12218c9e4df9bSmrg    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12219736a7e2cSmrg    '') as_fn_error $? "missing file argument" ;;
12220c37a63b8Smrg    esac
12221736a7e2cSmrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
12222264fa531Smrg    ac_need_defaults=false;;
12223264fa531Smrg  --header | --heade | --head | --hea )
12224264fa531Smrg    $ac_shift
12225c37a63b8Smrg    case $ac_optarg in
12226c9e4df9bSmrg    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12227c37a63b8Smrg    esac
12228736a7e2cSmrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12229264fa531Smrg    ac_need_defaults=false;;
12230c37a63b8Smrg  --he | --h)
12231c37a63b8Smrg    # Conflict between --help and --header
12232736a7e2cSmrg    as_fn_error $? "ambiguous option: \`$1'
12233736a7e2cSmrgTry \`$0 --help' for more information.";;
12234c37a63b8Smrg  --help | --hel | -h )
12235c9e4df9bSmrg    printf "%s\n" "$ac_cs_usage"; exit ;;
12236264fa531Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12237264fa531Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12238264fa531Smrg    ac_cs_silent=: ;;
12239264fa531Smrg
12240264fa531Smrg  # This is an error.
12241736a7e2cSmrg  -*) as_fn_error $? "unrecognized option: \`$1'
12242736a7e2cSmrgTry \`$0 --help' for more information." ;;
12243264fa531Smrg
12244736a7e2cSmrg  *) as_fn_append ac_config_targets " $1"
12245c37a63b8Smrg     ac_need_defaults=false ;;
12246264fa531Smrg
12247264fa531Smrg  esac
12248264fa531Smrg  shift
12249264fa531Smrgdone
12250264fa531Smrg
12251264fa531Smrgac_configure_extra_args=
12252264fa531Smrg
12253264fa531Smrgif $ac_cs_silent; then
12254264fa531Smrg  exec 6>/dev/null
12255264fa531Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
12256264fa531Smrgfi
12257264fa531Smrg
12258264fa531Smrg_ACEOF
12259c37a63b8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12260264fa531Smrgif \$ac_cs_recheck; then
12261533545b5Smrg  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12262c37a63b8Smrg  shift
12263c9e4df9bSmrg  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12264c37a63b8Smrg  CONFIG_SHELL='$SHELL'
12265c37a63b8Smrg  export CONFIG_SHELL
12266c37a63b8Smrg  exec "\$@"
12267264fa531Smrgfi
12268264fa531Smrg
12269264fa531Smrg_ACEOF
12270c37a63b8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12271c37a63b8Smrgexec 5>>config.log
12272c37a63b8Smrg{
12273c37a63b8Smrg  echo
12274c37a63b8Smrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12275c37a63b8Smrg## Running $as_me. ##
12276c37a63b8Smrg_ASBOX
12277c9e4df9bSmrg  printf "%s\n" "$ac_log"
12278c37a63b8Smrg} >&5
12279264fa531Smrg
12280c37a63b8Smrg_ACEOF
12281c37a63b8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12282264fa531Smrg#
12283c37a63b8Smrg# INIT-COMMANDS
12284264fa531Smrg#
12285c9e4df9bSmrgAMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12286264fa531Smrg
12287264fa531Smrg_ACEOF
12288264fa531Smrg
12289c37a63b8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12290264fa531Smrg
12291c37a63b8Smrg# Handling of arguments.
12292264fa531Smrgfor ac_config_target in $ac_config_targets
12293264fa531Smrgdo
12294c37a63b8Smrg  case $ac_config_target in
12295c37a63b8Smrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12296c37a63b8Smrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12297c37a63b8Smrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12298e4ee1255Smrg    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12299c37a63b8Smrg
12300736a7e2cSmrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12301264fa531Smrg  esac
12302264fa531Smrgdone
12303264fa531Smrg
12304c37a63b8Smrg
12305264fa531Smrg# If the user did not use the arguments to specify the items to instantiate,
12306264fa531Smrg# then the envvar interface is used.  Set only those that are not.
12307264fa531Smrg# We use the long form for the default assignment because of an extremely
12308264fa531Smrg# bizarre bug on SunOS 4.1.3.
12309264fa531Smrgif $ac_need_defaults; then
12310c9e4df9bSmrg  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12311c9e4df9bSmrg  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12312c9e4df9bSmrg  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12313264fa531Smrgfi
12314264fa531Smrg
12315264fa531Smrg# Have a temporary directory for convenience.  Make it in the build tree
12316c37a63b8Smrg# simply because there is no reason against having it here, and in addition,
12317264fa531Smrg# creating and moving files from /tmp can sometimes cause problems.
12318c37a63b8Smrg# Hook for its removal unless debugging.
12319c37a63b8Smrg# Note that there is a small window in which the directory will not be cleaned:
12320c37a63b8Smrg# after its creation but before its name has been assigned to `$tmp'.
12321264fa531Smrg$debug ||
12322264fa531Smrg{
12323736a7e2cSmrg  tmp= ac_tmp=
12324c37a63b8Smrg  trap 'exit_status=$?
12325736a7e2cSmrg  : "${ac_tmp:=$tmp}"
12326736a7e2cSmrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12327c37a63b8Smrg' 0
12328736a7e2cSmrg  trap 'as_fn_exit 1' 1 2 13 15
12329264fa531Smrg}
12330264fa531Smrg# Create a (secure) tmp directory for tmp files.
12331264fa531Smrg
12332264fa531Smrg{
12333c37a63b8Smrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12334736a7e2cSmrg  test -d "$tmp"
12335264fa531Smrg}  ||
12336264fa531Smrg{
12337c37a63b8Smrg  tmp=./conf$$-$RANDOM
12338c37a63b8Smrg  (umask 077 && mkdir "$tmp")
12339736a7e2cSmrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12340736a7e2cSmrgac_tmp=$tmp
12341264fa531Smrg
12342c37a63b8Smrg# Set up the scripts for CONFIG_FILES section.
12343c37a63b8Smrg# No need to generate them if there are no CONFIG_FILES.
12344c37a63b8Smrg# This happens for instance with `./config.status config.h'.
12345c37a63b8Smrgif test -n "$CONFIG_FILES"; then
12346c37a63b8Smrg
12347c37a63b8Smrg
12348736a7e2cSmrgac_cr=`echo X | tr X '\015'`
12349736a7e2cSmrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
12350736a7e2cSmrg# But we know of no other shell where ac_cr would be empty at this
12351736a7e2cSmrg# point, so we can use a bashism as a fallback.
12352736a7e2cSmrgif test "x$ac_cr" = x; then
12353736a7e2cSmrg  eval ac_cr=\$\'\\r\'
12354736a7e2cSmrgfi
12355c37a63b8Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12356c37a63b8Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12357c37a63b8Smrg  ac_cs_awk_cr='\\r'
12358c37a63b8Smrgelse
12359c37a63b8Smrg  ac_cs_awk_cr=$ac_cr
12360c37a63b8Smrgfi
12361c37a63b8Smrg
12362736a7e2cSmrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12363264fa531Smrg_ACEOF
12364264fa531Smrg
12365264fa531Smrg
12366c37a63b8Smrg{
12367c37a63b8Smrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
12368c37a63b8Smrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12369c37a63b8Smrg  echo "_ACEOF"
12370c37a63b8Smrg} >conf$$subs.sh ||
12371736a7e2cSmrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12372736a7e2cSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12373c37a63b8Smrgac_delim='%!_!# '
12374c37a63b8Smrgfor ac_last_try in false false false false false :; do
12375c37a63b8Smrg  . ./conf$$subs.sh ||
12376736a7e2cSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12377264fa531Smrg
12378c37a63b8Smrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12379c37a63b8Smrg  if test $ac_delim_n = $ac_delim_num; then
12380c37a63b8Smrg    break
12381c37a63b8Smrg  elif $ac_last_try; then
12382736a7e2cSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12383c37a63b8Smrg  else
12384c37a63b8Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12385c37a63b8Smrg  fi
12386c37a63b8Smrgdone
12387c37a63b8Smrgrm -f conf$$subs.sh
12388264fa531Smrg
12389c37a63b8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12390736a7e2cSmrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12391264fa531Smrg_ACEOF
12392c37a63b8Smrgsed -n '
12393c37a63b8Smrgh
12394c37a63b8Smrgs/^/S["/; s/!.*/"]=/
12395c37a63b8Smrgp
12396c37a63b8Smrgg
12397c37a63b8Smrgs/^[^!]*!//
12398c37a63b8Smrg:repl
12399c37a63b8Smrgt repl
12400c37a63b8Smrgs/'"$ac_delim"'$//
12401c37a63b8Smrgt delim
12402c37a63b8Smrg:nl
12403c37a63b8Smrgh
12404736a7e2cSmrgs/\(.\{148\}\)..*/\1/
12405c37a63b8Smrgt more1
12406c37a63b8Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12407c37a63b8Smrgp
12408c37a63b8Smrgn
12409c37a63b8Smrgb repl
12410c37a63b8Smrg:more1
12411c37a63b8Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
12412c37a63b8Smrgp
12413c37a63b8Smrgg
12414c37a63b8Smrgs/.\{148\}//
12415c37a63b8Smrgt nl
12416c37a63b8Smrg:delim
12417c37a63b8Smrgh
12418736a7e2cSmrgs/\(.\{148\}\)..*/\1/
12419c37a63b8Smrgt more2
12420c37a63b8Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/
12421c37a63b8Smrgp
12422c37a63b8Smrgb
12423c37a63b8Smrg:more2
12424c37a63b8Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
12425c37a63b8Smrgp
12426c37a63b8Smrgg
12427c37a63b8Smrgs/.\{148\}//
12428c37a63b8Smrgt delim
12429c37a63b8Smrg' <conf$$subs.awk | sed '
12430c37a63b8Smrg/^[^""]/{
12431c37a63b8Smrg  N
12432c37a63b8Smrg  s/\n//
12433c37a63b8Smrg}
12434c37a63b8Smrg' >>$CONFIG_STATUS || ac_write_fail=1
12435c37a63b8Smrgrm -f conf$$subs.awk
12436c37a63b8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12437c37a63b8Smrg_ACAWK
12438736a7e2cSmrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12439c37a63b8Smrg  for (key in S) S_is_set[key] = 1
12440c37a63b8Smrg  FS = ""
12441264fa531Smrg
12442c37a63b8Smrg}
12443c37a63b8Smrg{
12444c37a63b8Smrg  line = $ 0
12445c37a63b8Smrg  nfields = split(line, field, "@")
12446c37a63b8Smrg  substed = 0
12447c37a63b8Smrg  len = length(field[1])
12448c37a63b8Smrg  for (i = 2; i < nfields; i++) {
12449c37a63b8Smrg    key = field[i]
12450c37a63b8Smrg    keylen = length(key)
12451c37a63b8Smrg    if (S_is_set[key]) {
12452c37a63b8Smrg      value = S[key]
12453c37a63b8Smrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12454c37a63b8Smrg      len += length(value) + length(field[++i])
12455c37a63b8Smrg      substed = 1
12456c37a63b8Smrg    } else
12457c37a63b8Smrg      len += 1 + keylen
12458c37a63b8Smrg  }
12459c37a63b8Smrg
12460c37a63b8Smrg  print line
12461c37a63b8Smrg}
12462c37a63b8Smrg
12463c37a63b8Smrg_ACAWK
12464c37a63b8Smrg_ACEOF
12465c37a63b8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12466c37a63b8Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12467c37a63b8Smrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12468c37a63b8Smrgelse
12469c37a63b8Smrg  cat
12470736a7e2cSmrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12471736a7e2cSmrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12472c37a63b8Smrg_ACEOF
12473c37a63b8Smrg
12474736a7e2cSmrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12475736a7e2cSmrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12476c37a63b8Smrg# trailing colons and then remove the whole line if VPATH becomes empty
12477c37a63b8Smrg# (actually we leave an empty line to preserve line numbers).
12478c37a63b8Smrgif test "x$srcdir" = x.; then
12479736a7e2cSmrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12480736a7e2cSmrgh
12481736a7e2cSmrgs///
12482736a7e2cSmrgs/^/:/
12483736a7e2cSmrgs/[	 ]*$/:/
12484736a7e2cSmrgs/:\$(srcdir):/:/g
12485736a7e2cSmrgs/:\${srcdir}:/:/g
12486736a7e2cSmrgs/:@srcdir@:/:/g
12487736a7e2cSmrgs/^:*//
12488c37a63b8Smrgs/:*$//
12489736a7e2cSmrgx
12490736a7e2cSmrgs/\(=[	 ]*\).*/\1/
12491736a7e2cSmrgG
12492736a7e2cSmrgs/\n//
12493c37a63b8Smrgs/^[^=]*=[	 ]*$//
12494c37a63b8Smrg}'
12495c37a63b8Smrgfi
12496c37a63b8Smrg
12497c37a63b8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12498264fa531Smrgfi # test -n "$CONFIG_FILES"
12499264fa531Smrg
12500c37a63b8Smrg# Set up the scripts for CONFIG_HEADERS section.
12501c37a63b8Smrg# No need to generate them if there are no CONFIG_HEADERS.
12502c37a63b8Smrg# This happens for instance with `./config.status Makefile'.
12503c37a63b8Smrgif test -n "$CONFIG_HEADERS"; then
12504736a7e2cSmrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12505c37a63b8SmrgBEGIN {
12506264fa531Smrg_ACEOF
12507c37a63b8Smrg
12508c37a63b8Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as
12509c37a63b8Smrg# here-document in config.status, that substitutes the proper values into
12510c37a63b8Smrg# config.h.in to produce config.h.
12511c37a63b8Smrg
12512c37a63b8Smrg# Create a delimiter string that does not exist in confdefs.h, to ease
12513c37a63b8Smrg# handling of long lines.
12514c37a63b8Smrgac_delim='%!_!# '
12515c37a63b8Smrgfor ac_last_try in false false :; do
12516736a7e2cSmrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12517736a7e2cSmrg  if test -z "$ac_tt"; then
12518c37a63b8Smrg    break
12519c37a63b8Smrg  elif $ac_last_try; then
12520736a7e2cSmrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12521c37a63b8Smrg  else
12522c37a63b8Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12523c37a63b8Smrg  fi
12524c37a63b8Smrgdone
12525c37a63b8Smrg
12526c37a63b8Smrg# For the awk script, D is an array of macro values keyed by name,
12527c37a63b8Smrg# likewise P contains macro parameters if any.  Preserve backslash
12528c37a63b8Smrg# newline sequences.
12529c37a63b8Smrg
12530c37a63b8Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12531c37a63b8Smrgsed -n '
12532c37a63b8Smrgs/.\{148\}/&'"$ac_delim"'/g
12533c37a63b8Smrgt rset
12534c37a63b8Smrg:rset
12535c37a63b8Smrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12536c37a63b8Smrgt def
12537c37a63b8Smrgd
12538c37a63b8Smrg:def
12539c37a63b8Smrgs/\\$//
12540c37a63b8Smrgt bsnl
12541c37a63b8Smrgs/["\\]/\\&/g
12542c37a63b8Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12543c37a63b8SmrgD["\1"]=" \3"/p
12544c37a63b8Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12545c37a63b8Smrgd
12546c37a63b8Smrg:bsnl
12547c37a63b8Smrgs/["\\]/\\&/g
12548c37a63b8Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12549c37a63b8SmrgD["\1"]=" \3\\\\\\n"\\/p
12550c37a63b8Smrgt cont
12551c37a63b8Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12552c37a63b8Smrgt cont
12553c37a63b8Smrgd
12554c37a63b8Smrg:cont
12555c37a63b8Smrgn
12556c37a63b8Smrgs/.\{148\}/&'"$ac_delim"'/g
12557c37a63b8Smrgt clear
12558c37a63b8Smrg:clear
12559c37a63b8Smrgs/\\$//
12560c37a63b8Smrgt bsnlc
12561c37a63b8Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
12562c37a63b8Smrgd
12563c37a63b8Smrg:bsnlc
12564c37a63b8Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12565c37a63b8Smrgb cont
12566c37a63b8Smrg' <confdefs.h | sed '
12567c37a63b8Smrgs/'"$ac_delim"'/"\\\
12568c37a63b8Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
12569c37a63b8Smrg
12570c37a63b8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12571c37a63b8Smrg  for (key in D) D_is_set[key] = 1
12572c37a63b8Smrg  FS = ""
12573c37a63b8Smrg}
12574c37a63b8Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12575c37a63b8Smrg  line = \$ 0
12576c37a63b8Smrg  split(line, arg, " ")
12577c37a63b8Smrg  if (arg[1] == "#") {
12578c37a63b8Smrg    defundef = arg[2]
12579c37a63b8Smrg    mac1 = arg[3]
12580c37a63b8Smrg  } else {
12581c37a63b8Smrg    defundef = substr(arg[1], 2)
12582c37a63b8Smrg    mac1 = arg[2]
12583c37a63b8Smrg  }
12584c37a63b8Smrg  split(mac1, mac2, "(") #)
12585c37a63b8Smrg  macro = mac2[1]
12586c37a63b8Smrg  prefix = substr(line, 1, index(line, defundef) - 1)
12587c37a63b8Smrg  if (D_is_set[macro]) {
12588c37a63b8Smrg    # Preserve the white space surrounding the "#".
12589c37a63b8Smrg    print prefix "define", macro P[macro] D[macro]
12590c37a63b8Smrg    next
12591c37a63b8Smrg  } else {
12592c37a63b8Smrg    # Replace #undef with comments.  This is necessary, for example,
12593c37a63b8Smrg    # in the case of _POSIX_SOURCE, which is predefined and required
12594c37a63b8Smrg    # on some systems where configure will not decide to define it.
12595c37a63b8Smrg    if (defundef == "undef") {
12596c37a63b8Smrg      print "/*", prefix defundef, macro, "*/"
12597c37a63b8Smrg      next
12598c37a63b8Smrg    }
12599c37a63b8Smrg  }
12600c37a63b8Smrg}
12601c37a63b8Smrg{ print }
12602c37a63b8Smrg_ACAWK
12603c37a63b8Smrg_ACEOF
12604c37a63b8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12605736a7e2cSmrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12606c37a63b8Smrgfi # test -n "$CONFIG_HEADERS"
12607c37a63b8Smrg
12608c37a63b8Smrg
12609c37a63b8Smrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12610c37a63b8Smrgshift
12611c37a63b8Smrgfor ac_tag
12612c37a63b8Smrgdo
12613c37a63b8Smrg  case $ac_tag in
12614c37a63b8Smrg  :[FHLC]) ac_mode=$ac_tag; continue;;
12615c37a63b8Smrg  esac
12616c37a63b8Smrg  case $ac_mode$ac_tag in
12617c37a63b8Smrg  :[FHL]*:*);;
12618736a7e2cSmrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12619c37a63b8Smrg  :[FH]-) ac_tag=-:-;;
12620c37a63b8Smrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12621c37a63b8Smrg  esac
12622c37a63b8Smrg  ac_save_IFS=$IFS
12623c37a63b8Smrg  IFS=:
12624c37a63b8Smrg  set x $ac_tag
12625c37a63b8Smrg  IFS=$ac_save_IFS
12626c37a63b8Smrg  shift
12627c37a63b8Smrg  ac_file=$1
12628c37a63b8Smrg  shift
12629c37a63b8Smrg
12630c37a63b8Smrg  case $ac_mode in
12631c37a63b8Smrg  :L) ac_source=$1;;
12632c37a63b8Smrg  :[FH])
12633c37a63b8Smrg    ac_file_inputs=
12634c37a63b8Smrg    for ac_f
12635c37a63b8Smrg    do
12636c37a63b8Smrg      case $ac_f in
12637736a7e2cSmrg      -) ac_f="$ac_tmp/stdin";;
12638c37a63b8Smrg      *) # Look for the file first in the build tree, then in the source tree
12639c37a63b8Smrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12640c37a63b8Smrg	 # because $ac_f cannot contain `:'.
12641c37a63b8Smrg	 test -f "$ac_f" ||
12642c37a63b8Smrg	   case $ac_f in
12643c37a63b8Smrg	   [\\/$]*) false;;
12644c37a63b8Smrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12645c37a63b8Smrg	   esac ||
12646736a7e2cSmrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12647c37a63b8Smrg      esac
12648c9e4df9bSmrg      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12649736a7e2cSmrg      as_fn_append ac_file_inputs " '$ac_f'"
12650c37a63b8Smrg    done
12651c37a63b8Smrg
12652c37a63b8Smrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
12653c37a63b8Smrg    # use $as_me), people would be surprised to read:
12654c37a63b8Smrg    #    /* config.h.  Generated by config.status.  */
12655c37a63b8Smrg    configure_input='Generated from '`
12656c9e4df9bSmrg	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12657c37a63b8Smrg	`' by configure.'
12658c37a63b8Smrg    if test x"$ac_file" != x-; then
12659c37a63b8Smrg      configure_input="$ac_file.  $configure_input"
12660c9e4df9bSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12661c9e4df9bSmrgprintf "%s\n" "$as_me: creating $ac_file" >&6;}
12662c37a63b8Smrg    fi
12663c37a63b8Smrg    # Neutralize special characters interpreted by sed in replacement strings.
12664c37a63b8Smrg    case $configure_input in #(
12665c37a63b8Smrg    *\&* | *\|* | *\\* )
12666c9e4df9bSmrg       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12667c37a63b8Smrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12668c37a63b8Smrg    *) ac_sed_conf_input=$configure_input;;
12669c37a63b8Smrg    esac
12670c37a63b8Smrg
12671c37a63b8Smrg    case $ac_tag in
12672736a7e2cSmrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12673736a7e2cSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12674c37a63b8Smrg    esac
12675c37a63b8Smrg    ;;
12676264fa531Smrg  esac
12677264fa531Smrg
12678c37a63b8Smrg  ac_dir=`$as_dirname -- "$ac_file" ||
12679264fa531Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12680264fa531Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
12681264fa531Smrg	 X"$ac_file" : 'X\(//\)$' \| \
12682c37a63b8Smrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12683c9e4df9bSmrgprintf "%s\n" X"$ac_file" |
12684c37a63b8Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12685c37a63b8Smrg	    s//\1/
12686c37a63b8Smrg	    q
12687c37a63b8Smrg	  }
12688c37a63b8Smrg	  /^X\(\/\/\)[^/].*/{
12689c37a63b8Smrg	    s//\1/
12690c37a63b8Smrg	    q
12691c37a63b8Smrg	  }
12692c37a63b8Smrg	  /^X\(\/\/\)$/{
12693c37a63b8Smrg	    s//\1/
12694c37a63b8Smrg	    q
12695c37a63b8Smrg	  }
12696c37a63b8Smrg	  /^X\(\/\).*/{
12697c37a63b8Smrg	    s//\1/
12698c37a63b8Smrg	    q
12699c37a63b8Smrg	  }
12700c37a63b8Smrg	  s/.*/./; q'`
12701736a7e2cSmrg  as_dir="$ac_dir"; as_fn_mkdir_p
12702264fa531Smrg  ac_builddir=.
12703264fa531Smrg
12704c37a63b8Smrgcase "$ac_dir" in
12705c37a63b8Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12706c37a63b8Smrg*)
12707c9e4df9bSmrg  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12708c37a63b8Smrg  # A ".." for each directory in $ac_dir_suffix.
12709c9e4df9bSmrg  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12710c37a63b8Smrg  case $ac_top_builddir_sub in
12711c37a63b8Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12712c37a63b8Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12713c37a63b8Smrg  esac ;;
12714c37a63b8Smrgesac
12715c37a63b8Smrgac_abs_top_builddir=$ac_pwd
12716c37a63b8Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
12717c37a63b8Smrg# for backward compatibility:
12718c37a63b8Smrgac_top_builddir=$ac_top_build_prefix
12719264fa531Smrg
12720264fa531Smrgcase $srcdir in
12721c37a63b8Smrg  .)  # We are building in place.
12722264fa531Smrg    ac_srcdir=.
12723c37a63b8Smrg    ac_top_srcdir=$ac_top_builddir_sub
12724c37a63b8Smrg    ac_abs_top_srcdir=$ac_pwd ;;
12725c37a63b8Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
12726264fa531Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
12727c37a63b8Smrg    ac_top_srcdir=$srcdir
12728c37a63b8Smrg    ac_abs_top_srcdir=$srcdir ;;
12729c37a63b8Smrg  *) # Relative name.
12730c37a63b8Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12731c37a63b8Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
12732c37a63b8Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12733264fa531Smrgesac
12734c37a63b8Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12735264fa531Smrg
12736264fa531Smrg
12737c37a63b8Smrg  case $ac_mode in
12738c37a63b8Smrg  :F)
12739c37a63b8Smrg  #
12740c37a63b8Smrg  # CONFIG_FILE
12741c37a63b8Smrg  #
12742264fa531Smrg
12743264fa531Smrg  case $INSTALL in
12744264fa531Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12745c37a63b8Smrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12746264fa531Smrg  esac
12747c37a63b8Smrg  ac_MKDIR_P=$MKDIR_P
12748c37a63b8Smrg  case $MKDIR_P in
12749c37a63b8Smrg  [\\/$]* | ?:[\\/]* ) ;;
12750c37a63b8Smrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12751c37a63b8Smrg  esac
12752c37a63b8Smrg_ACEOF
12753264fa531Smrg
12754c37a63b8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12755c37a63b8Smrg# If the template does not know about datarootdir, expand it.
12756c37a63b8Smrg# FIXME: This hack should be removed a few years after 2.60.
12757c37a63b8Smrgac_datarootdir_hack=; ac_datarootdir_seen=
12758c37a63b8Smrgac_sed_dataroot='
12759c37a63b8Smrg/datarootdir/ {
12760c37a63b8Smrg  p
12761c37a63b8Smrg  q
12762c37a63b8Smrg}
12763c37a63b8Smrg/@datadir@/p
12764c37a63b8Smrg/@docdir@/p
12765c37a63b8Smrg/@infodir@/p
12766c37a63b8Smrg/@localedir@/p
12767736a7e2cSmrg/@mandir@/p'
12768c37a63b8Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12769c37a63b8Smrg*datarootdir*) ac_datarootdir_seen=yes;;
12770c37a63b8Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12771c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12772c9e4df9bSmrgprintf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12773264fa531Smrg_ACEOF
12774c37a63b8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12775c37a63b8Smrg  ac_datarootdir_hack='
12776c37a63b8Smrg  s&@datadir@&$datadir&g
12777c37a63b8Smrg  s&@docdir@&$docdir&g
12778c37a63b8Smrg  s&@infodir@&$infodir&g
12779c37a63b8Smrg  s&@localedir@&$localedir&g
12780c37a63b8Smrg  s&@mandir@&$mandir&g
12781736a7e2cSmrg  s&\\\${datarootdir}&$datarootdir&g' ;;
12782c37a63b8Smrgesac
12783c37a63b8Smrg_ACEOF
12784c37a63b8Smrg
12785c37a63b8Smrg# Neutralize VPATH when `$srcdir' = `.'.
12786c37a63b8Smrg# Shell code in configure.ac might set extrasub.
12787c37a63b8Smrg# FIXME: do we really want to maintain this feature?
12788c37a63b8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12789c37a63b8Smrgac_sed_extra="$ac_vpsub
12790264fa531Smrg$extrasub
12791264fa531Smrg_ACEOF
12792c37a63b8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12793264fa531Smrg:t
12794264fa531Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12795c37a63b8Smrgs|@configure_input@|$ac_sed_conf_input|;t t
12796c37a63b8Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t
12797c37a63b8Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
12798c37a63b8Smrgs&@srcdir@&$ac_srcdir&;t t
12799c37a63b8Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
12800c37a63b8Smrgs&@top_srcdir@&$ac_top_srcdir&;t t
12801c37a63b8Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12802c37a63b8Smrgs&@builddir@&$ac_builddir&;t t
12803c37a63b8Smrgs&@abs_builddir@&$ac_abs_builddir&;t t
12804c37a63b8Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12805c37a63b8Smrgs&@INSTALL@&$ac_INSTALL&;t t
12806c37a63b8Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
12807c37a63b8Smrg$ac_datarootdir_hack
12808c37a63b8Smrg"
12809736a7e2cSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12810736a7e2cSmrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12811264fa531Smrg
12812c37a63b8Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12813736a7e2cSmrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12814736a7e2cSmrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12815736a7e2cSmrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12816c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12817736a7e2cSmrgwhich seems to be undefined.  Please make sure it is defined" >&5
12818c9e4df9bSmrgprintf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12819736a7e2cSmrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
12820264fa531Smrg
12821736a7e2cSmrg  rm -f "$ac_tmp/stdin"
12822264fa531Smrg  case $ac_file in
12823736a7e2cSmrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12824736a7e2cSmrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12825c37a63b8Smrg  esac \
12826736a7e2cSmrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12827c37a63b8Smrg ;;
12828c37a63b8Smrg  :H)
12829c37a63b8Smrg  #
12830c37a63b8Smrg  # CONFIG_HEADER
12831c37a63b8Smrg  #
12832264fa531Smrg  if test x"$ac_file" != x-; then
12833c37a63b8Smrg    {
12834c9e4df9bSmrg      printf "%s\n" "/* $configure_input  */" >&1 \
12835736a7e2cSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12836736a7e2cSmrg    } >"$ac_tmp/config.h" \
12837736a7e2cSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12838736a7e2cSmrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12839c9e4df9bSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12840c9e4df9bSmrgprintf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12841264fa531Smrg    else
12842c37a63b8Smrg      rm -f "$ac_file"
12843736a7e2cSmrg      mv "$ac_tmp/config.h" "$ac_file" \
12844736a7e2cSmrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12845264fa531Smrg    fi
12846264fa531Smrg  else
12847c9e4df9bSmrg    printf "%s\n" "/* $configure_input  */" >&1 \
12848736a7e2cSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12849736a7e2cSmrg      || as_fn_error $? "could not create -" "$LINENO" 5
12850264fa531Smrg  fi
12851c37a63b8Smrg# Compute "$ac_file"'s index in $config_headers.
12852c37a63b8Smrg_am_arg="$ac_file"
12853264fa531Smrg_am_stamp_count=1
12854264fa531Smrgfor _am_header in $config_headers :; do
12855264fa531Smrg  case $_am_header in
12856c37a63b8Smrg    $_am_arg | $_am_arg:* )
12857264fa531Smrg      break ;;
12858264fa531Smrg    * )
12859264fa531Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12860264fa531Smrg  esac
12861264fa531Smrgdone
12862c37a63b8Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12863c37a63b8Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12864c37a63b8Smrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12865c37a63b8Smrg	 X"$_am_arg" : 'X\(//\)$' \| \
12866c37a63b8Smrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12867c9e4df9bSmrgprintf "%s\n" X"$_am_arg" |
12868c37a63b8Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12869c37a63b8Smrg	    s//\1/
12870c37a63b8Smrg	    q
12871c37a63b8Smrg	  }
12872c37a63b8Smrg	  /^X\(\/\/\)[^/].*/{
12873c37a63b8Smrg	    s//\1/
12874c37a63b8Smrg	    q
12875c37a63b8Smrg	  }
12876c37a63b8Smrg	  /^X\(\/\/\)$/{
12877c37a63b8Smrg	    s//\1/
12878c37a63b8Smrg	    q
12879c37a63b8Smrg	  }
12880c37a63b8Smrg	  /^X\(\/\).*/{
12881c37a63b8Smrg	    s//\1/
12882c37a63b8Smrg	    q
12883c37a63b8Smrg	  }
12884c37a63b8Smrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
12885c37a63b8Smrg ;;
12886264fa531Smrg
12887c9e4df9bSmrg  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12888c9e4df9bSmrgprintf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12889c37a63b8Smrg ;;
12890c37a63b8Smrg  esac
12891264fa531Smrg
12892264fa531Smrg
12893c37a63b8Smrg  case $ac_file$ac_mode in
12894c37a63b8Smrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12895533545b5Smrg  # Older Autoconf quotes --file arguments for eval, but not when files
12896c37a63b8Smrg  # are listed without --file.  Let's play safe and only enable the eval
12897c37a63b8Smrg  # if we detect the quoting.
12898c9e4df9bSmrg  # TODO: see whether this extra hack can be removed once we start
12899c9e4df9bSmrg  # requiring Autoconf 2.70 or later.
12900c9e4df9bSmrg  case $CONFIG_FILES in #(
12901c9e4df9bSmrg  *\'*) :
12902c9e4df9bSmrg    eval set x "$CONFIG_FILES" ;; #(
12903c9e4df9bSmrg  *) :
12904c9e4df9bSmrg    set x $CONFIG_FILES ;; #(
12905c9e4df9bSmrg  *) :
12906c9e4df9bSmrg     ;;
12907c9e4df9bSmrgesac
12908c37a63b8Smrg  shift
12909c9e4df9bSmrg  # Used to flag and report bootstrapping failures.
12910c9e4df9bSmrg  am_rc=0
12911c9e4df9bSmrg  for am_mf
12912c37a63b8Smrg  do
12913c37a63b8Smrg    # Strip MF so we end up with the name of the file.
12914c9e4df9bSmrg    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12915c9e4df9bSmrg    # Check whether this is an Automake generated Makefile which includes
12916c9e4df9bSmrg    # dependency-tracking related rules and includes.
12917c9e4df9bSmrg    # Grep'ing the whole file directly is not great: AIX grep has a line
12918c37a63b8Smrg    # limit of 2048, but all sed's we know have understand at least 4000.
12919c9e4df9bSmrg    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12920c9e4df9bSmrg      || continue
12921c9e4df9bSmrg    am_dirpart=`$as_dirname -- "$am_mf" ||
12922c9e4df9bSmrg$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12923c9e4df9bSmrg	 X"$am_mf" : 'X\(//\)[^/]' \| \
12924c9e4df9bSmrg	 X"$am_mf" : 'X\(//\)$' \| \
12925c9e4df9bSmrg	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12926c9e4df9bSmrgprintf "%s\n" X"$am_mf" |
12927c37a63b8Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12928c37a63b8Smrg	    s//\1/
12929c37a63b8Smrg	    q
12930c37a63b8Smrg	  }
12931c37a63b8Smrg	  /^X\(\/\/\)[^/].*/{
12932c37a63b8Smrg	    s//\1/
12933c37a63b8Smrg	    q
12934c37a63b8Smrg	  }
12935c37a63b8Smrg	  /^X\(\/\/\)$/{
12936c37a63b8Smrg	    s//\1/
12937c37a63b8Smrg	    q
12938c37a63b8Smrg	  }
12939c37a63b8Smrg	  /^X\(\/\).*/{
12940c37a63b8Smrg	    s//\1/
12941c37a63b8Smrg	    q
12942c37a63b8Smrg	  }
12943c37a63b8Smrg	  s/.*/./; q'`
12944c9e4df9bSmrg    am_filepart=`$as_basename -- "$am_mf" ||
12945c9e4df9bSmrg$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12946c9e4df9bSmrg	 X"$am_mf" : 'X\(//\)$' \| \
12947c9e4df9bSmrg	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12948c9e4df9bSmrgprintf "%s\n" X/"$am_mf" |
12949c9e4df9bSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
12950c37a63b8Smrg	    s//\1/
12951c37a63b8Smrg	    q
12952c37a63b8Smrg	  }
12953c9e4df9bSmrg	  /^X\/\(\/\/\)$/{
12954c37a63b8Smrg	    s//\1/
12955c37a63b8Smrg	    q
12956c37a63b8Smrg	  }
12957c9e4df9bSmrg	  /^X\/\(\/\).*/{
12958c37a63b8Smrg	    s//\1/
12959c37a63b8Smrg	    q
12960c37a63b8Smrg	  }
12961c37a63b8Smrg	  s/.*/./; q'`
12962c9e4df9bSmrg    { echo "$as_me:$LINENO: cd "$am_dirpart" \
12963c9e4df9bSmrg      && sed -e '/# am--include-marker/d' "$am_filepart" \
12964c9e4df9bSmrg        | $MAKE -f - am--depfiles" >&5
12965c9e4df9bSmrg   (cd "$am_dirpart" \
12966c9e4df9bSmrg      && sed -e '/# am--include-marker/d' "$am_filepart" \
12967c9e4df9bSmrg        | $MAKE -f - am--depfiles) >&5 2>&5
12968c9e4df9bSmrg   ac_status=$?
12969c9e4df9bSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970c9e4df9bSmrg   (exit $ac_status); } || am_rc=$?
12971264fa531Smrg  done
12972c9e4df9bSmrg  if test $am_rc -ne 0; then
12973c9e4df9bSmrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12974c9e4df9bSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12975c9e4df9bSmrgas_fn_error $? "Something went wrong bootstrapping makefile fragments
12976c9e4df9bSmrg    for automatic dependency tracking.  If GNU make was not used, consider
12977c9e4df9bSmrg    re-running the configure script with MAKE=\"gmake\" (or whatever is
12978c9e4df9bSmrg    necessary).  You can also try re-running configure with the
12979c9e4df9bSmrg    '--disable-dependency-tracking' option to at least be able to build
12980c9e4df9bSmrg    the package (albeit without support for automatic dependency tracking).
12981c9e4df9bSmrgSee \`config.log' for more details" "$LINENO" 5; }
12982c9e4df9bSmrg  fi
12983c9e4df9bSmrg  { am_dirpart=; unset am_dirpart;}
12984c9e4df9bSmrg  { am_filepart=; unset am_filepart;}
12985c9e4df9bSmrg  { am_mf=; unset am_mf;}
12986c9e4df9bSmrg  { am_rc=; unset am_rc;}
12987c9e4df9bSmrg  rm -f conftest-deps.mk
12988c37a63b8Smrg}
12989264fa531Smrg ;;
12990c37a63b8Smrg
12991264fa531Smrg  esac
12992c37a63b8Smrgdone # for ac_tag
12993264fa531Smrg
12994264fa531Smrg
12995736a7e2cSmrgas_fn_exit 0
12996264fa531Smrg_ACEOF
12997264fa531Smrgac_clean_files=$ac_clean_files_save
12998264fa531Smrg
12999c37a63b8Smrgtest $ac_write_fail = 0 ||
13000736a7e2cSmrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13001c37a63b8Smrg
13002264fa531Smrg
13003264fa531Smrg# configure is writing to config.log, and then calls config.status.
13004264fa531Smrg# config.status does its own redirection, appending to config.log.
13005264fa531Smrg# Unfortunately, on DOS this fails, as config.log is still kept open
13006264fa531Smrg# by configure, so config.status won't be able to write to it; its
13007264fa531Smrg# output is simply discarded.  So we exec the FD to /dev/null,
13008264fa531Smrg# effectively closing config.log, so it can be properly (re)opened and
13009264fa531Smrg# appended to by config.status.  When coming back to configure, we
13010264fa531Smrg# need to make the FD available again.
13011264fa531Smrgif test "$no_create" != yes; then
13012264fa531Smrg  ac_cs_success=:
13013264fa531Smrg  ac_config_status_args=
13014264fa531Smrg  test "$silent" = yes &&
13015264fa531Smrg    ac_config_status_args="$ac_config_status_args --quiet"
13016264fa531Smrg  exec 5>/dev/null
13017264fa531Smrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13018264fa531Smrg  exec 5>>config.log
13019264fa531Smrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13020264fa531Smrg  # would make configure fail if this is the last instruction.
13021736a7e2cSmrg  $ac_cs_success || as_fn_exit 1
13022264fa531Smrgfi
13023c37a63b8Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13024c9e4df9bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13025c9e4df9bSmrgprintf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13026c37a63b8Smrgfi
13027264fa531Smrg
13028c9e4df9bSmrg
13029